@ranger-testing/ranger-cli 3.1.4 → 3.1.5-alpha.9b89f77-48
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/deleteProfile.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/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.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/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.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/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.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 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.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/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x8ab750=_0x465d;(function(_0x48897e,_0x2653b6){const _0x367b41=_0x465d,_0x3fa4dc=_0x48897e();while(!![]){try{const _0x3881da=-parseInt(_0x367b41(0x1f6))/0x1*(-parseInt(_0x367b41(0x201))/0x2)+-parseInt(_0x367b41(0x256))/0x3+-parseInt(_0x367b41(0x26c))/0x4*(-parseInt(_0x367b41(0x25d))/0x5)+parseInt(_0x367b41(0x1ef))/0x6*(parseInt(_0x367b41(0x244))/0x7)+-parseInt(_0x367b41(0x278))/0x8+parseInt(_0x367b41(0x270))/0x9*(parseInt(_0x367b41(0x27d))/0xa)+parseInt(_0x367b41(0x22b))/0xb*(-parseInt(_0x367b41(0x2a9))/0xc);if(_0x3881da===_0x2653b6)break;else _0x3fa4dc['push'](_0x3fa4dc['shift']());}catch(_0x505d80){_0x3fa4dc['push'](_0x3fa4dc['shift']());}}}(_0x229a,0xa78cf));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x4615f1 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';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x1e26dd=>_0x8ab750(0x22c)+_0x1e26dd+'\x1b[0m';function getGitRepoUrl(){const _0x2e5d32=_0x8ab750,_0xe3f904={'ymHFO':'git\x20remote\x20get-url\x20origin','mBwLJ':_0x2e5d32(0x208),'inWGo':_0x2e5d32(0x261)};try{const _0x254fd8=execSync(_0xe3f904['ymHFO'],{'encoding':_0x2e5d32(0x222),'stdio':[_0xe3f904['mBwLJ'],_0xe3f904[_0x2e5d32(0x2b2)],'pipe']})[_0x2e5d32(0x2a6)]();return _0x254fd8['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0xe3f904['inWGo'])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x35310b=_0x8ab750;try{return execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':'utf-8','stdio':[_0x35310b(0x208),_0x35310b(0x208),'pipe']})[_0x35310b(0x2a6)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x54adcb=_0x8ab750,_0x5a8b56={'oAsNQ':function(_0x50d917,_0x571aad,_0x2174ca){return _0x50d917(_0x571aad,_0x2174ca);},'AHkxZ':'utf-8'},_0x478bb6=_0x5a8b56[_0x54adcb(0x2a2)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x478bb6))return null;try{const _0x895cfc=await readFile(_0x478bb6,_0x5a8b56['AHkxZ']);return _0x895cfc['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x349f27){const _0x4e61fc=_0x8ab750,_0x5cdb3b={'mSZkN':function(_0x54f894){return _0x54f894();},'Hgofi':function(_0x1a59eb,_0x416118){return _0x1a59eb(_0x416118);},'xBaKd':function(_0x52a3bd,_0x44a1a2,_0x586fe2){return _0x52a3bd(_0x44a1a2,_0x586fe2);},'Shygm':function(_0x301012,_0x2fa3c6,_0x2f369e,_0x7dbc37){return _0x301012(_0x2fa3c6,_0x2f369e,_0x7dbc37);}},_0x1a1ea0=_0x5cdb3b['mSZkN'](getRangerDir),_0xa2c0bf=join(_0x1a1ea0,ACTIVE_FEATURE_FILE);!_0x5cdb3b[_0x4e61fc(0x25a)](existsSync,_0x1a1ea0)&&await _0x5cdb3b['xBaKd'](mkdir,_0x1a1ea0,{'recursive':!![]}),await _0x5cdb3b[_0x4e61fc(0x1f5)](writeFile,_0xa2c0bf,_0x349f27,_0x4e61fc(0x222));}function getProgressDisplay(_0x5f4313){const _0x354971=_0x8ab750,_0x215867={'GezJi':function(_0x2a4cf1,_0x543a50){return _0x2a4cf1+_0x543a50;},'GiGyz':function(_0x30f63c,_0x562ffb){return _0x30f63c/_0x562ffb;},'ovMyR':function(_0x1724f3,_0x1a5267){return _0x1724f3-_0x1a5267;},'yPuUe':function(_0x2185ec,_0x553b2d){return _0x2185ec>_0x553b2d;},'WNTRM':function(_0x2c651e,_0x1d8455){return _0x2c651e>_0x1d8455;}},_0x49d6c0=_0x5f4313[_0x354971(0x1ea)]||0x0,_0x5619ff=_0x5f4313['verificationInProgressItems']||0x0,_0x2b63f0=_0x5f4313['blockedItems']||0x0,_0x217105=_0x5f4313['incompleteItems']||0x0,_0x5575fb=_0x5f4313[_0x354971(0x266)]||0x0,_0x356a14=_0x215867[_0x354971(0x26d)](_0x215867['GezJi'](_0x49d6c0,_0x5619ff),_0x2b63f0)+_0x217105+_0x5575fb;if(_0x356a14===0x0)return'-';const _0x2fa79e=0xa,_0x6e34de=Math[_0x354971(0x259)](_0x215867['GiGyz'](_0x49d6c0,_0x356a14)*_0x2fa79e),_0x2eb02e='█'[_0x354971(0x277)](_0x6e34de)+'░'['repeat'](_0x215867[_0x354971(0x291)](_0x2fa79e,_0x6e34de)),_0x20b8e5=[];if(_0x215867['yPuUe'](_0x2b63f0,0x0))_0x20b8e5['push'](_0x2b63f0+_0x354971(0x254));if(_0x215867[_0x354971(0x1e7)](_0x217105,0x0))_0x20b8e5[_0x354971(0x238)](_0x217105+'\x20incomplete');if(_0x5619ff>0x0)_0x20b8e5[_0x354971(0x238)](_0x5619ff+'\x20in\x20progress');const _0x369a86=_0x215867[_0x354971(0x231)](_0x20b8e5['length'],0x0)?'\x20('+_0x20b8e5[_0x354971(0x23a)](',\x20')+')':'';return _0x2eb02e+'\x20'+_0x49d6c0+'/'+_0x356a14+'\x20verified'+_0x369a86;}function getCurrentSessionItems(_0x218462,_0xa6e51){const _0x156a27=_0x8ab750;if(!_0x218462[_0x156a27(0x299)])return _0xa6e51['filter'](_0x5d2225=>!_0x5d2225['sessionId']);return _0xa6e51['filter'](_0x4e2ee6=>_0x4e2ee6['sessionId']===_0x218462[_0x156a27(0x299)]||!_0x4e2ee6['sessionId']);}function displayFeature(_0x37881a,_0xfa183a){const _0x4cc51d=_0x8ab750,_0x19b617={'WpbqM':function(_0xecc16d,_0x40e176){return _0xecc16d(_0x40e176);},'vtaDE':function(_0x1162a0,_0x833e68){return _0x1162a0===_0x833e68;},'ZnTJO':'approved','EOVPJ':function(_0x575efc,_0x196052){return _0x575efc===_0x196052;},'DAjHA':function(_0x4f9126,_0x36374d){return _0x4f9126===_0x36374d;},'fIova':'closed','LHXHZ':'verification_in_progress','vCLAH':function(_0x5a45a8,_0x3fb8b5){return _0x5a45a8!==_0x3fb8b5;},'CuVDw':'verified','xAoZv':function(_0x4537f9,_0x384a8d){return _0x4537f9+_0x384a8d;},'ZjxLG':function(_0x541345,_0x272506){return _0x541345===_0x272506;},'LnfxV':'blocked','aBWIf':_0x4cc51d(0x26b)};console[_0x4cc51d(0x20e)]('\x0a'+_0x37881a[_0x4cc51d(0x232)]+'\x20('+_0x37881a[_0x4cc51d(0x265)]+')');_0x37881a[_0x4cc51d(0x298)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x19b617[_0x4cc51d(0x24c)](getProgressDisplay,_0x37881a['stats']));_0x37881a['description']&&console['log'](_0x4cc51d(0x2ac)+_0x37881a['description']);_0x37881a['gitRepoUrl']&&console['log']('\x20\x20\x20Repository:\x20'+_0x37881a[_0x4cc51d(0x292)]);_0x37881a[_0x4cc51d(0x29f)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x37881a['gitBranch']);console[_0x4cc51d(0x20e)](_0x4cc51d(0x1fe)+new Date(_0x37881a[_0x4cc51d(0x239)])['toLocaleString']());_0x37881a[_0x4cc51d(0x1e9)]&&console[_0x4cc51d(0x20e)]('\x20\x20\x20Completed:\x20'+new Date(_0x37881a[_0x4cc51d(0x1e9)])[_0x4cc51d(0x234)]());if(_0xfa183a&&_0xfa183a['length']>0x0){console[_0x4cc51d(0x20e)]('\x0a\x20\x20\x20Scenarios:');for(let _0x14c9d6=0x0;_0x14c9d6<_0xfa183a['length'];_0x14c9d6++){const _0x4d2a18=_0xfa183a[_0x14c9d6];let _0x4b3d4f;if(_0x4d2a18['status']==='closed'&&_0x19b617[_0x4cc51d(0x206)](_0x4d2a18['terminalReason'],_0x19b617['ZnTJO']))_0x4b3d4f='✅';else{if(_0x19b617['vtaDE'](_0x4d2a18['status'],'verified'))_0x4b3d4f='🟢';else{if(_0x19b617['EOVPJ'](_0x4d2a18[_0x4cc51d(0x1f1)],'incomplete'))_0x4b3d4f='🟠';else{if(_0x19b617[_0x4cc51d(0x237)](_0x4d2a18[_0x4cc51d(0x1f1)],_0x4cc51d(0x233)))_0x4b3d4f='🛑';else{if(_0x19b617[_0x4cc51d(0x2aa)](_0x4d2a18['status'],_0x19b617['fIova']))_0x4b3d4f='⛔';else _0x4d2a18['status']===_0x19b617[_0x4cc51d(0x283)]?_0x4b3d4f='⏳':_0x4b3d4f='⬜';}}}}const _0x5f3537=_0x4d2a18[_0x4cc51d(0x253)]>0x1?'\x20(v'+_0x4d2a18[_0x4cc51d(0x253)]+')':'',_0x3aecf0=_0x4d2a18['version']>0x1&&_0x4d2a18[_0x4cc51d(0x23d)]&&_0x19b617[_0x4cc51d(0x20c)](_0x4d2a18[_0x4cc51d(0x1f1)],_0x19b617[_0x4cc51d(0x219)])&&_0x4d2a18[_0x4cc51d(0x1f1)]!==_0x19b617[_0x4cc51d(0x1f9)]?'\x20[has\x20reviewer\x20feedback]':'';console[_0x4cc51d(0x20e)](_0x4cc51d(0x20d)+_0x19b617['xAoZv'](_0x14c9d6,0x1)+'.\x20'+_0x4b3d4f+'\x20'+_0x4d2a18[_0x4cc51d(0x23b)]+_0x5f3537+_0x3aecf0);_0x19b617['ZjxLG'](_0x4d2a18[_0x4cc51d(0x1f1)],_0x19b617[_0x4cc51d(0x293)])&&_0x4d2a18[_0x4cc51d(0x20f)]&&console[_0x4cc51d(0x20e)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x4d2a18[_0x4cc51d(0x20f)]);_0x19b617['ZjxLG'](_0x4d2a18[_0x4cc51d(0x1f1)],_0x19b617['aBWIf'])&&_0x4d2a18[_0x4cc51d(0x25e)]&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x4d2a18[_0x4cc51d(0x25e)]);if(_0x4d2a18[_0x4cc51d(0x1f1)]===_0x19b617['fIova']&&_0x4d2a18['terminalReason']==='approved')console['log'](_0x4cc51d(0x272));else _0x19b617['ZjxLG'](_0x4d2a18['status'],_0x19b617['fIova'])&&_0x4d2a18['canceledReason']&&console['log'](_0x4cc51d(0x245)+_0x4d2a18['canceledReason']);}}}export async function featureCreate(_0x40305d,_0x241be6){const _0x3ebdb8=_0x8ab750,_0x13b5d0={'tPExS':function(_0x5bbbd3,_0x696459){return _0x5bbbd3===_0x696459;},'LENSe':function(_0x32a2b1){return _0x32a2b1();},'BeVbP':function(_0x4d3d56,_0x2e0f26){return _0x4d3d56(_0x2e0f26);},'jWViX':_0x3ebdb8(0x280),'YErVD':function(_0x46261c,_0x5c4034){return _0x46261c(_0x5c4034);},'ilkgC':function(_0x5c79dd,_0x17972){return _0x5c79dd(_0x17972);},'Dgeht':function(_0x591059,_0xb75ded,_0x52a0dc){return _0x591059(_0xb75ded,_0x52a0dc);}},{envNames:_0xc3fef7}=await getEnvNames();if(_0x13b5d0['tPExS'](_0xc3fef7[_0x3ebdb8(0x207)],0x0)&&!process[_0x3ebdb8(0x268)]['RANGER_TEST_USERNAME']){let _0x3da41f=0x0;try{_0x3da41f=(await _0x13b5d0[_0x3ebdb8(0x2ad)](listCloudProfiles))[_0x3ebdb8(0x207)];}catch{_0x3da41f=0x1;}_0x13b5d0['tPExS'](_0x3da41f,0x0)&&console['warn']('\x0a'+_0x13b5d0[_0x3ebdb8(0x2a3)](formatProfileRequiredMessage,_0x37eabd=>bold(_0x37eabd)));}const _0x41912d=_0x241be6['scenarios']?_0x241be6['scenarios']['map'](_0x50324e=>_0x50324e['trim']()):[],_0x714c6b=_0x13b5d0['LENSe'](getGitRepoUrl),_0x4e5e77=getGitBranch();console[_0x3ebdb8(0x20e)](_0x13b5d0['jWViX']);const _0x1bae43=await _0x13b5d0['YErVD'](createFeature,{'name':_0x40305d,'description':_0x241be6[_0x3ebdb8(0x23b)],'checklist':_0x41912d,'gitRepoUrl':_0x714c6b,'gitBranch':_0x4e5e77});await setActiveFeatureId(_0x1bae43['id']),await _0x13b5d0['ilkgC'](tryStartCurrentSession,_0x1bae43['id']);const _0x1a57a9=process['env'][_0x3ebdb8(0x1ec)];_0x1a57a9&&_0x13b5d0[_0x3ebdb8(0x1fb)](registerSession,_0x1a57a9,_0x1bae43['id']),console[_0x3ebdb8(0x20e)](_0x3ebdb8(0x1eb)+_0x1bae43['id']),displayFeature(_0x1bae43,_0x1bae43[_0x3ebdb8(0x209)]),console[_0x3ebdb8(0x20e)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x40580e){const _0x2774b8=_0x8ab750,_0x19be75={'wnQcw':function(_0x56247b,_0x39fec0){return _0x56247b(_0x39fec0);},'gTRbc':'\x0aNo\x20feature\x20reviews\x20found.','uGNRn':function(_0x3a8463,_0xd5ee4f){return _0x3a8463>_0xd5ee4f;},'whbxx':function(_0x6f1aec,_0x254486){return _0x6f1aec(_0x254486);},'jDKHJ':function(_0x3b0edf,_0x5e17e1){return _0x3b0edf+_0x5e17e1;},'cAcXw':'\x20--current-branch'},_0x24d1d6={'limit':_0x40580e['limit']??0xa,'offset':_0x40580e[_0x2774b8(0x212)]??0x0,'includeDeleted':_0x40580e['includeDeleted']};_0x40580e[_0x2774b8(0x1ff)]&&(_0x24d1d6[_0x2774b8(0x292)]=getGitRepoUrl(),_0x24d1d6['gitBranch']=getGitBranch());const _0x18c9e0=await _0x19be75['wnQcw'](listFeatures,_0x24d1d6);if(_0x18c9e0[_0x2774b8(0x203)]['length']===0x0){console[_0x2774b8(0x20e)](_0x19be75['gTRbc']);return;}const _0x22f5d7=_0x19be75['uGNRn'](_0x18c9e0[_0x2774b8(0x224)],_0x18c9e0[_0x2774b8(0x203)][_0x2774b8(0x207)])?'Showing\x20'+_0x18c9e0['items']['length']+'\x20of\x20'+_0x18c9e0[_0x2774b8(0x224)]:_0x18c9e0['totalCount']+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x22f5d7+':\x0a');for(const _0x2d6dad of _0x18c9e0[_0x2774b8(0x203)]){console['log'](''+_0x2d6dad['name']),console[_0x2774b8(0x20e)]('\x20\x20\x20ID:\x20'+_0x2d6dad['id']),_0x2d6dad[_0x2774b8(0x298)]&&console[_0x2774b8(0x20e)]('\x20\x20\x20Progress:\x20'+_0x19be75['whbxx'](getProgressDisplay,_0x2d6dad[_0x2774b8(0x298)])),_0x2d6dad[_0x2774b8(0x29f)]&&console['log'](_0x2774b8(0x27e)+_0x2d6dad[_0x2774b8(0x29f)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x2d6dad[_0x2774b8(0x239)])['toLocaleDateString']()),console['log']('');}const _0x20bdf5=_0x24d1d6[_0x2774b8(0x29e)]??0xa,_0x33a91d=_0x19be75[_0x2774b8(0x2a5)](_0x24d1d6['offset']??0x0,_0x18c9e0[_0x2774b8(0x203)][_0x2774b8(0x207)]);if(_0x33a91d<_0x18c9e0['totalCount']){const _0x10e7c4=_0x20bdf5!==0xa?'\x20--limit\x20'+_0x20bdf5:'',_0x3e8924=_0x40580e['currentBranch']?_0x19be75[_0x2774b8(0x242)]:'',_0x5ee0ca=_0x40580e[_0x2774b8(0x1e6)]?'\x20--include-deleted':'';console[_0x2774b8(0x20e)](_0x2774b8(0x1f2)+_0x33a91d+_0x10e7c4+_0x3e8924+_0x5ee0ca);}}export async function featureShow(_0x8518c1){const _0x2b07bc=_0x8ab750,_0x4a3e4e={'vdTGG':function(_0x366d97,_0xdf8953){return _0x366d97(_0xdf8953);}},_0x5436d4=_0x8518c1||await getActiveFeatureId();if(!_0x5436d4)throw new Error(_0x2b07bc(0x202));const _0x448525=await _0x4a3e4e['vdTGG'](getFeature,_0x5436d4);displayFeature(_0x448525,_0x448525[_0x2b07bc(0x209)]);}export async function featureResume(_0x43a15a){const _0x2c3a9e=_0x8ab750,_0x426a95={'crbgJ':function(_0x38175c,_0x30f290){return _0x38175c(_0x30f290);},'aLVkg':function(_0x5e6536,_0x20e270,_0x7636ce){return _0x5e6536(_0x20e270,_0x7636ce);},'KBRJz':function(_0x223eff,_0x4cab10){return _0x223eff(_0x4cab10);},'kSLad':function(_0x75637b,_0x1b8955,_0x45bff0){return _0x75637b(_0x1b8955,_0x45bff0);},'bWafj':function(_0x2fbb0e,_0x22f085){return _0x2fbb0e&&_0x22f085;},'DlAEF':_0x2c3a9e(0x21c),'povQz':function(_0x520bda,_0x215124){return _0x520bda(_0x215124);},'cOUHn':_0x2c3a9e(0x26f),'RTRtX':'selected','boUTA':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','xgiZg':function(_0x85d548,_0x5ce14d){return _0x85d548(_0x5ce14d);}};if(_0x43a15a){const _0x5023c2=await _0x426a95[_0x2c3a9e(0x274)](getFeature,_0x43a15a);await setActiveFeatureId(_0x5023c2['id']);const _0x3c8cd1=getGitBranch();_0x3c8cd1&&_0x3c8cd1!==_0x5023c2['gitBranch']&&(await _0x426a95[_0x2c3a9e(0x26e)](updateFeature,_0x5023c2['id'],{'gitBranch':_0x3c8cd1}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3c8cd1));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x5023c2[_0x2c3a9e(0x232)]+'\x20('+_0x5023c2['id']+')'),await _0x426a95[_0x2c3a9e(0x1fc)](tryStartCurrentSession,_0x5023c2['id']);const _0x55d618=process[_0x2c3a9e(0x268)][_0x2c3a9e(0x1ec)];_0x55d618&&_0x426a95[_0x2c3a9e(0x235)](registerSession,_0x55d618,_0x5023c2['id']);displayFeature(_0x5023c2,_0x5023c2[_0x2c3a9e(0x209)]),await printFeedbackNudge(_0x5023c2['id']);return;}const _0x14688e=getGitRepoUrl(),_0x1d1a23=getGitBranch();if(_0x426a95[_0x2c3a9e(0x223)](!_0x14688e,!_0x1d1a23))throw new Error(_0x2c3a9e(0x2af));console['log'](_0x2c3a9e(0x240)+(_0x14688e||_0x426a95['DlAEF'])+_0x2c3a9e(0x22a)+(_0x1d1a23||_0x426a95[_0x2c3a9e(0x275)])+'...');const _0xc845b=await _0x426a95['povQz'](listFeatures,{'gitRepoUrl':_0x14688e,'gitBranch':_0x1d1a23}),_0x4eca6d=_0xc845b['items']['filter'](_0x36c1c1=>_0x36c1c1['status']?_0x36c1c1[_0x2c3a9e(0x1f1)]!==_0x2c3a9e(0x20b):!_0x36c1c1['completedAt']);if(_0x4eca6d['length']===0x0){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x2c3a9e(0x20e)](_0x2c3a9e(0x27c));return;}let _0x2ab368;if(_0x4eca6d[_0x2c3a9e(0x207)]===0x1)_0x2ab368=_0x4eca6d[0x0];else{const _0xd42459=process[_0x2c3a9e(0x27b)]['isTTY']&&process['stdout'][_0x2c3a9e(0x217)];if(!_0xd42459){console['log'](_0x2c3a9e(0x285));for(const _0x41d5de of _0x4eca6d){console[_0x2c3a9e(0x20e)]('\x20\x20'+_0x41d5de['name']),console['log'](_0x2c3a9e(0x279)+_0x41d5de['id']),_0x41d5de['stats']&&console[_0x2c3a9e(0x20e)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x41d5de['stats'])),_0x41d5de['gitBranch']&&console[_0x2c3a9e(0x20e)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x41d5de[_0x2c3a9e(0x29f)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x223bc1}=await _0x4615f1[_0x2c3a9e(0x284)]([{'type':_0x426a95['cOUHn'],'name':_0x426a95['RTRtX'],'message':_0x426a95[_0x2c3a9e(0x1f8)],'choices':_0x4eca6d[_0x2c3a9e(0x294)](_0x5af4d1=>({'name':_0x5af4d1[_0x2c3a9e(0x232)]+'\x20('+_0x5af4d1['id']+')','value':_0x5af4d1['id']}))}]);_0x2ab368=_0x4eca6d[_0x2c3a9e(0x2a8)](_0x3ba8cb=>_0x3ba8cb['id']===_0x223bc1);}await _0x426a95['povQz'](setActiveFeatureId,_0x2ab368['id']);_0x1d1a23&&_0x1d1a23!==_0x2ab368[_0x2c3a9e(0x29f)]&&(await updateFeature(_0x2ab368['id'],{'gitBranch':_0x1d1a23}),console[_0x2c3a9e(0x20e)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x1d1a23));console[_0x2c3a9e(0x20e)](_0x2c3a9e(0x273)+_0x2ab368['name']+'\x20('+_0x2ab368['id']+')'),await _0x426a95[_0x2c3a9e(0x1fc)](tryStartCurrentSession,_0x2ab368['id']);const _0x217fdc=await _0x426a95[_0x2c3a9e(0x257)](getFeature,_0x2ab368['id']),_0x3cad36=process[_0x2c3a9e(0x268)][_0x2c3a9e(0x1ec)];_0x3cad36&®isterSession(_0x3cad36,_0x217fdc['id']),displayFeature(_0x217fdc,_0x217fdc[_0x2c3a9e(0x209)]),await _0x426a95[_0x2c3a9e(0x1fc)](printFeedbackNudge,_0x217fdc['id']);}function _0x465d(_0x544676,_0x4e6a20){_0x544676=_0x544676-0x1e6;const _0x229a0a=_0x229a();let _0x465d1a=_0x229a0a[_0x544676];return _0x465d1a;}async function printFeedbackNudge(_0x31d512){const _0x53e783=_0x8ab750,_0x4b77ac={'PzlGi':function(_0x70a563,_0x4d7cda){return _0x70a563(_0x4d7cda);},'ldmCZ':function(_0x3e5bf7,_0x5c133e,_0x10768f){return _0x3e5bf7(_0x5c133e,_0x10768f);},'BFSIW':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x8fce1d}=await _0x4b77ac[_0x53e783(0x28b)](getActionItems,_0x31d512);let _0x370f42=0x0,_0x4a4213=0x0;for(const _0x31d5ef of _0x8fce1d){const _0x1ccc67=await _0x4b77ac['ldmCZ'](getItemFeedback,_0x31d512,_0x31d5ef['id']);_0x1ccc67[_0x53e783(0x27a)][_0x53e783(0x207)]>0x0&&(_0x370f42+=_0x1ccc67['unaddressedComments']['length'],_0x4a4213++);}_0x370f42>0x0&&(console[_0x53e783(0x20e)]('\x0a⚠️\x20\x20'+_0x370f42+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x4a4213+'\x20scenario(s).'),console['log'](_0x4b77ac['BFSIW']));}catch{}}async function tryStartCurrentSession(_0xf8440c){const _0x85598b=_0x8ab750,_0x3b9794={'AXGJc':function(_0x57e7b0,_0x320124){return _0x57e7b0(_0x320124);},'XHgBz':function(_0x6f18ff,_0x37d0c5,_0x68c70c){return _0x6f18ff(_0x37d0c5,_0x68c70c);}};try{const {sessions:_0x4c3385}=await _0x3b9794[_0x85598b(0x251)](listFeatureSessions,_0xf8440c),_0x163b32=_0x4c3385[_0x85598b(0x2a8)](_0x2ec8b6=>_0x2ec8b6['status']===_0x85598b(0x25b));_0x163b32&&(await _0x3b9794[_0x85598b(0x29d)](startSession,_0xf8440c,_0x163b32['id']),console[_0x85598b(0x20e)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x163b32['iteration']));}catch{}}export async function featureReport(_0x27d424,_0x56ea3a){const _0x2c2ff5=_0x8ab750,_0x5c41b5={'pIXcy':function(_0x21965a){return _0x21965a();},'obTkt':'\x0aGenerating\x20report...','aBMJG':function(_0xedaf13,_0x5cf3a9,_0x4683e9){return _0xedaf13(_0x5cf3a9,_0x4683e9);},'VNtfs':function(_0x30da7e,_0x5b5d90,_0x48ea07,_0x561a31){return _0x30da7e(_0x5b5d90,_0x48ea07,_0x561a31);},'KiQrs':function(_0x1d9d05,_0x3507e0,_0x592133){return _0x1d9d05(_0x3507e0,_0x592133);}},_0x45b791=_0x27d424||await _0x5c41b5[_0x2c2ff5(0x250)](getActiveFeatureId);if(!_0x45b791)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console[_0x2c2ff5(0x20e)](_0x5c41b5['obTkt']);const _0x3b6456=await _0x5c41b5['aBMJG'](getFeatureReportMarkdown,_0x45b791,{'style':_0x56ea3a['style']}),_0x684ce0=_0x56ea3a[_0x2c2ff5(0x260)]||_0x5c41b5[_0x2c2ff5(0x28e)](join,getRangerDir(),'reports',_0x45b791+_0x2c2ff5(0x282)),_0x24bc28=_0x5c41b5['KiQrs'](join,_0x684ce0,'..');!existsSync(_0x24bc28)&&await _0x5c41b5[_0x2c2ff5(0x23f)](mkdir,_0x24bc28,{'recursive':!![]}),await writeFile(_0x684ce0,_0x3b6456,_0x2c2ff5(0x222)),console[_0x2c2ff5(0x20e)]('\x0a✅\x20Report\x20generated:\x20'+_0x684ce0);}function getScenarioResult(_0xe0c203){const _0x79033f=_0x8ab750,_0x112812={'Vgblq':function(_0x24fd96,_0x485aa6){return _0x24fd96===_0x485aa6;},'GefYR':_0x79033f(0x29c)};if(_0x112812['Vgblq'](_0xe0c203['status'],_0x79033f(0x29c)))return _0xe0c203[_0x79033f(0x230)]??_0x112812[_0x79033f(0x290)];if(_0xe0c203[_0x79033f(0x1f1)]==='verification_in_progress')return'in_progress';return _0xe0c203['status'];}function getScenarioRationale(_0x1148df,_0x54ec78){const _0x48d13f=_0x8ab750;if(_0x54ec78)return _0x54ec78;if(_0x1148df[_0x48d13f(0x20f)])return _0x1148df['blockedReason'];if(_0x1148df['incompleteReason'])return _0x1148df['incompleteReason'];if(_0x1148df['canceledReason'])return _0x1148df['canceledReason'];if(_0x1148df['notes'])return _0x1148df[_0x48d13f(0x258)];return null;}export async function featureReportPrDescription(_0x56ef87,_0x2caa0f){const _0x86a209=_0x8ab750,_0x4d7864={'CyvJT':function(_0x16238f){return _0x16238f();},'DdQVk':function(_0x232b65,_0x481e6f){return _0x232b65(_0x481e6f);},'IwVPg':function(_0x51c284,_0x20c2f4){return _0x51c284===_0x20c2f4;},'gSKrk':function(_0x40f424,_0x11fba9){return _0x40f424<_0x11fba9;},'FmDzk':_0x86a209(0x23c),'JdytI':function(_0x143ce0,_0x1280eb,_0x18813a,_0x5e6f62){return _0x143ce0(_0x1280eb,_0x18813a,_0x5e6f62);},'SYrDZ':function(_0xe654c0,_0x245df9,_0x5ccad9){return _0xe654c0(_0x245df9,_0x5ccad9);}},_0x45d6d4=_0x56ef87||await _0x4d7864['CyvJT'](getActiveFeatureId);if(!_0x45d6d4)throw new Error(_0x86a209(0x288));const _0x5ceacf=await _0x4d7864['DdQVk'](getFeature,_0x45d6d4),_0x243c98=_0x5ceacf['checklistItems']||[],_0x14b4d0=getCurrentSessionItems(_0x5ceacf,_0x243c98);_0x4d7864[_0x86a209(0x267)](_0x14b4d0['length'],0x0)&&(console[_0x86a209(0x248)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x2e0998=_0x2caa0f[_0x86a209(0x1f7)]??[],_0x5eadab=_0x2e0998[_0x86a209(0x236)](_0x267cc5=>!Number['isInteger'](_0x267cc5)||_0x267cc5<0x1||_0x267cc5>_0x14b4d0['length']);if(_0x5eadab[_0x86a209(0x207)]>0x0){console['error'](_0x86a209(0x296)+_0x5eadab[_0x86a209(0x23a)](',\x20')),console[_0x86a209(0x20e)](_0x86a209(0x21e));for(let _0x48e301=0x0;_0x4d7864['gSKrk'](_0x48e301,_0x14b4d0['length']);_0x48e301++){console['log']('\x20\x20'+(_0x48e301+0x1)+'.\x20'+_0x14b4d0[_0x48e301][_0x86a209(0x23b)]);}process['exit'](0x1);}const _0x2b87de=new Set(_0x2e0998['map'](_0x45ca77=>_0x45ca77-0x1)),_0x55790b=_0x14b4d0[_0x86a209(0x236)]((_0x72bd9b,_0x281faa)=>!_0x2b87de['has'](_0x281faa));_0x55790b['length']===0x0&&(console[_0x86a209(0x248)](_0x4d7864[_0x86a209(0x216)]),process['exit'](0x1));if(_0x2caa0f[_0x86a209(0x205)])await _0x4d7864[_0x86a209(0x28c)](outputJsonReport,_0x45d6d4,_0x5ceacf,_0x55790b);else{const _0x10574a=await _0x4d7864['SYrDZ'](getFeatureReportMarkdown,_0x45d6d4,{'itemIds':_0x55790b[_0x86a209(0x294)](_0x226a79=>_0x226a79['id'])});process['stdout']['write'](_0x10574a[_0x86a209(0x2a1)]()+'\x0a');}}async function outputJsonReport(_0x4e5cf0,_0x1967fc,_0x4ace95){const _0x3ceea0=_0x8ab750,_0x568b4a={'WSMCi':function(_0x512c06,_0x433a51){return _0x512c06(_0x433a51);},'BdpvO':function(_0x596f22,_0x2fde68){return _0x596f22>_0x2fde68;},'sPvIQ':function(_0x4a76d3,_0x462968){return _0x4a76d3===_0x462968;},'giJPS':function(_0xe68c05,_0x291553,_0x5e7c38){return _0xe68c05(_0x291553,_0x5e7c38);}},_0x4f17a6=getApiBaseUrl(),_0x2f8122=await getFeatureReport(_0x4e5cf0),_0x1658d9=new Map(_0x2f8122[_0x3ceea0(0x209)]['map'](_0x22203e=>[_0x22203e['id'],_0x22203e])),_0x49476e=await Promise['all'](_0x4ace95[_0x3ceea0(0x294)](async _0x1ac244=>{const _0x1689b2=_0x3ceea0,_0x583bea=_0x1658d9[_0x1689b2(0x29b)](_0x1ac244['id']),_0x50238b=_0x583bea?.['linkedSession']??null;let _0x1ea4a5=[];if(_0x1ac244[_0x1689b2(0x228)])try{const {steps:_0x3e773b}=await _0x568b4a[_0x1689b2(0x229)](getBrowserSessionSteps,_0x1ac244[_0x1689b2(0x228)]);_0x568b4a['BdpvO'](_0x3e773b['length'],0x0)&&(_0x1ea4a5=_0x3e773b[_0x1689b2(0x294)](_0xe47cf=>{const _0x142ca7=_0x1689b2,_0x3cf051=_0xe47cf['assets'][_0x142ca7(0x2a8)](_0x3a6b5a=>_0x3a6b5a[_0x142ca7(0x2b0)]==='screenshot'&&_0x3a6b5a['timing']===_0x142ca7(0x246))??_0xe47cf['assets']['find'](_0x5c2264=>_0x5c2264['assetType']===_0x142ca7(0x2a0));let _0x550327=null,_0x5eccea=null;if(_0x3cf051){const _0x1c6417=_0x3cf051[_0x142ca7(0x27f)]['location'][_0x142ca7(0x281)]('/')[_0x142ca7(0x241)]();_0x550327=_0x4f17a6+'/api/v1/mcp/browser-sessions/'+_0x1ac244['browserSessionId']+'/artifacts/'+_0x1c6417,_0x1c6417&&(_0x5eccea=_0x1c6417[_0x142ca7(0x210)](/\.\w+$/,'')[_0x142ca7(0x210)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x5eccea||_0xe47cf['description']||_0xe47cf['stepName']||'Step\x20'+_0xe47cf['position'],'screenshot':_0x550327,'is_key_step':_0xe47cf['isKeyStep']};}));}catch{}return _0x568b4a['sPvIQ'](_0x1ea4a5[_0x1689b2(0x207)],0x0)&&_0x50238b?.['screenshotUrls']&&(_0x1ea4a5=_0x50238b['screenshotUrls']['map']((_0x284b6c,_0x27cf52)=>({'description':_0x1689b2(0x2ae)+(_0x27cf52+0x1),'screenshot':_0x284b6c,'is_key_step':![]}))),{'description':_0x1ac244[_0x1689b2(0x23b)],'result':getScenarioResult(_0x1ac244),'rationale':_0x568b4a['giJPS'](getScenarioRationale,_0x1ac244,_0x50238b?.[_0x1689b2(0x271)]),'steps':_0x1ea4a5};})),_0x706da6={'url':_0x1967fc['dashboardUrl'],'scenarios':_0x49476e};process['stdout']['write'](JSON['stringify'](_0x706da6,null,0x2)+'\x0a');}function _0x229a(){const _0xbae704=['iteration','QtSYs','802998oEaOKP','.png','status','Next\x20page:\x20ranger\x20list\x20--offset\x20','WeYwc','mVZXY','Shygm','366178iscNZe','excludeScenarios','boUTA','CuVDw','completed','Dgeht','KBRJz','Current\x20session\x20not\x20found.','\x20\x20\x20Created:\x20','currentBranch','OZVxH','2XOpatt','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','items','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','json','vtaDE','length','pipe','checklistItems','domRef','verified','vCLAH','\x20\x20\x20','log','blockedReason','replace','Cannot\x20conclude\x20session\x20with\x20status:\x20','offset','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','\x20\x20\x20Status:\x20','type','FmDzk','isTTY','element','fIova','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','Please\x20finish\x20your\x20review\x20first:','any','VSAuj','\x0aAvailable\x20scenarios:','latestReview','\x20\x20💬\x20','):\x20\x22','utf-8','bWafj','totalCount','LWoiS','Unknown','\x20\x20✅\x20No\x20feedback\x20to\x20address','browserSessionId','WSMCi','\x20/\x20','99JpOesu','\x1b[1m','cKfwf','submittedAt','fXYin','terminalReason','WNTRM','name','blocked','toLocaleString','kSLad','filter','DAjHA','push','createdAt','join','description','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','parentItemId','toLocaleDateString','KiQrs','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','pop','cAcXw','qNfnn','21mlAnFB','\x20\x20\x20\x20\x20\x20Cancelled:\x20','after','\x0a📋\x20Feedback\x20for:\x20','error','from','\x20concluded.','selector','WpbqM','HeqpF','assetUrl','scenario','pIXcy','AXGJc','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','version','\x20blocked','slice','774876qQwVIB','xgiZg','notes','round','Hgofi','ready','\x20unaddressed\x20comment(s)','5Yblxxw','incompleteReason','\x20Session\x20','output','github.com/','vmfmK','tEnYh','qnBFu','dashboardUrl','pendingItems','IwVPg','env','exit','in_progress','incomplete','2868288DtiVMa','GezJi','aLVkg','list','72DtfhNh','agentResponse','\x20\x20\x20\x20\x20\x20Approved','\x0a✅\x20Resumed\x20feature\x20review:\x20','crbgJ','DlAEF','coordinates','repeat','5136288cTAkvq','\x20\x20\x20\x20\x20ID:\x20','unaddressedComments','stdin','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','1045850iRXAII','\x20\x20\x20Branch:\x20','storage','\x0aCreating\x20feature\x20review...','split','.md','LHXHZ','prompt','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20(v','\x20\x20Expected\x20flow:','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','bHdup','\x20scenarios.','PzlGi','JdytI','spatial','VNtfs','NJKqs','GefYR','ovMyR','gitRepoUrl','LnfxV','map','XKGLB','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','\x20\x20\x20Completed:\x20','stats','currentSessionId','\x20at\x20[','get','closed','XHgBz','limit','gitBranch','screenshot','trimEnd','oAsNQ','BeVbP','toFixed','jDKHJ','trim','numeric','find','979752ubysUu','EOVPJ','bXtwv','\x20\x20\x20Description:\x20','LENSe','Screenshot\x20','Not\x20in\x20a\x20git\x20repository.','assetType',':\x20\x22','mBwLJ','includeDeleted','yPuUe','qjujW','completedAt','verifiedItems','\x0a✅\x20Feature\x20review\x20created:\x20','CLAUDE_SESSION_ID'];_0x229a=function(){return _0xbae704;};return _0x229a();}export async function featureConcludeSession(_0x206699){const _0x5096e8=_0x8ab750,_0x1dc33c={'SiONY':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','bXtwv':_0x5096e8(0x1fd),'qGQSE':function(_0x576d14,_0x56c04b){return _0x576d14===_0x56c04b;},'qjujW':'\x0a✅\x20Session\x20is\x20already\x20completed.','dLClV':_0x5096e8(0x26a),'qNfnn':'\x0aConcluding\x20session...'},_0x19996b=_0x206699||await getActiveFeatureId();if(!_0x19996b)throw new Error(_0x1dc33c['SiONY']);const _0x5b4920=await getFeature(_0x19996b);if(!_0x5b4920[_0x5096e8(0x299)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x384e77}=await listFeatureSessions(_0x19996b),_0x1b6891=_0x384e77[_0x5096e8(0x2a8)](_0x1a954c=>_0x1a954c['id']===_0x5b4920[_0x5096e8(0x299)]);if(!_0x1b6891)throw new Error(_0x1dc33c[_0x5096e8(0x2ab)]);if(_0x1dc33c['qGQSE'](_0x1b6891['status'],'completed')){console[_0x5096e8(0x20e)](_0x1dc33c[_0x5096e8(0x1e8)]);return;}if(_0x1b6891['status']!==_0x1dc33c['dLClV'])throw new Error(_0x5096e8(0x211)+_0x1b6891[_0x5096e8(0x1f1)]);console[_0x5096e8(0x20e)](_0x1dc33c[_0x5096e8(0x243)]),await concludeSession(_0x19996b,_0x5b4920[_0x5096e8(0x299)]),console[_0x5096e8(0x20e)]('\x0a✅\x20Session\x20'+_0x1b6891[_0x5096e8(0x1ed)]+_0x5096e8(0x24a)),console['log'](_0x5096e8(0x213));}export async function featureSessions(_0x5d3a17){const _0x5ca9da=_0x8ab750,_0x225241={'JEyJg':function(_0x4103c7){return _0x4103c7();},'twDmb':function(_0x532fe8,_0x4d7edb){return _0x532fe8(_0x4d7edb);}},_0x229b54=_0x5d3a17||await _0x225241['JEyJg'](getActiveFeatureId);if(!_0x229b54)throw new Error(_0x5ca9da(0x288));const _0x4df233=await _0x225241['twDmb'](getFeature,_0x229b54);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x4df233[_0x5ca9da(0x232)]+'\x0a');const {sessions:_0x15765d}=await listFeatureSessions(_0x229b54);if(_0x15765d['length']===0x0){console[_0x5ca9da(0x20e)]('No\x20sessions\x20found.');return;}for(const _0x1e423b of _0x15765d){const _0x35378e=_0x1e423b['status']===_0x5ca9da(0x1fa)?'✅':_0x1e423b['status']==='in_progress'?'🔄':'▶️';console[_0x5ca9da(0x20e)](_0x35378e+_0x5ca9da(0x25f)+_0x1e423b['iteration']+'\x20('+_0x1e423b['id']+')'),console['log'](_0x5ca9da(0x214)+_0x1e423b['status']),console[_0x5ca9da(0x20e)](_0x5ca9da(0x1fe)+new Date(_0x1e423b['createdAt'])['toLocaleString']()),_0x1e423b['completedAt']&&console[_0x5ca9da(0x20e)](_0x5ca9da(0x297)+new Date(_0x1e423b[_0x5ca9da(0x1e9)])[_0x5ca9da(0x234)]()),console['log']('');}}export async function featureAddScenario(_0x5d8d69,_0x59d0c3){const _0x48623d=_0x8ab750,_0x5381d8={'tEnYh':function(_0x42a399,_0x3f6597){return _0x42a399(_0x3f6597);}},_0x2d0321=_0x59d0c3||await getActiveFeatureId();if(!_0x2d0321)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 _0x4211ac=await getFeature(_0x2d0321);if(_0x4211ac[_0x48623d(0x21f)]&&!_0x4211ac[_0x48623d(0x21f)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x4211ac[_0x48623d(0x265)]);await createChecklistItem(_0x2d0321,_0x5d8d69);const _0x156a6f=await _0x5381d8[_0x48623d(0x263)](getFeature,_0x2d0321);console['log']('\x0a✅\x20Scenario\x20added'),displayFeature(_0x156a6f,_0x156a6f['checklistItems']);}export async function featureEditScenario(_0x4ae09f,_0x4d43f2){const _0x4ead76=_0x8ab750,_0x563a20={'qnBFu':function(_0x57b673){return _0x57b673();},'WeYwc':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','uEyEd':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','xkJJx':function(_0x43cdf4,_0x22334b){return _0x43cdf4(_0x22334b);},'XKGLB':_0x4ead76(0x21b),'HhxKw':function(_0x279ad3,_0x3f8484){return _0x279ad3===_0x3f8484;},'fXYin':_0x4ead76(0x252),'HeqpF':_0x4ead76(0x21e),'cKfwf':function(_0x415c10,_0x2d87d9){return _0x415c10<_0x2d87d9;},'rgunK':function(_0x3dabfd,_0xa44aa9){return _0x3dabfd-_0xa44aa9;},'sUfqK':function(_0x5343ed,_0x1aad7d){return _0x5343ed<_0x1aad7d;},'zeemc':function(_0x5b16ee,_0x1c81b4){return _0x5b16ee>=_0x1c81b4;},'ZjYNH':function(_0x5baab9,_0x12f133){return _0x5baab9<_0x12f133;},'ANWfh':function(_0x3ddff2,_0x3d16ce){return _0x3ddff2+_0x3d16ce;},'AksUt':function(_0x10cfe4,_0x573140){return _0x10cfe4(_0x573140);},'WGNbU':function(_0x25f38b,_0x38ba11,_0x2fdee5){return _0x25f38b(_0x38ba11,_0x2fdee5);}},_0x10204c=_0x4d43f2['id']||await _0x563a20[_0x4ead76(0x264)](getActiveFeatureId);!_0x10204c&&(console[_0x4ead76(0x248)](_0x563a20[_0x4ead76(0x1f3)]),console['error'](_0x563a20['uEyEd']),process[_0x4ead76(0x269)](0x1));const _0x2e13cd=await _0x563a20['xkJJx'](getFeature,_0x10204c);_0x2e13cd['latestReview']&&!_0x2e13cd[_0x4ead76(0x21f)][_0x4ead76(0x22e)]&&(console[_0x4ead76(0x248)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error'](_0x563a20[_0x4ead76(0x295)]),console[_0x4ead76(0x248)]('\x20\x20'+_0x2e13cd['dashboardUrl']),process['exit'](0x1));const _0x5efa4b=_0x2e13cd['checklistItems']||[];_0x563a20['HhxKw'](_0x5efa4b[_0x4ead76(0x207)],0x0)&&(console[_0x4ead76(0x248)](_0x563a20[_0x4ead76(0x22f)]),process['exit'](0x1));if(_0x4d43f2['scenario']===undefined){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x563a20[_0x4ead76(0x24d)]);for(let _0x4d67e5=0x0;_0x563a20[_0x4ead76(0x22d)](_0x4d67e5,_0x5efa4b['length']);_0x4d67e5++){console['log']('\x20\x20'+(_0x4d67e5+0x1)+'.\x20'+_0x5efa4b[_0x4d67e5][_0x4ead76(0x23b)]);}process['exit'](0x1);}const _0x45a39a=_0x563a20['rgunK'](_0x4d43f2['scenario'],0x1);if(_0x563a20['sUfqK'](_0x45a39a,0x0)||_0x563a20['zeemc'](_0x45a39a,_0x5efa4b['length'])){console[_0x4ead76(0x248)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x4d43f2[_0x4ead76(0x24f)]+'.\x20Feature\x20review\x20has\x20'+_0x5efa4b[_0x4ead76(0x207)]+_0x4ead76(0x28a)),console[_0x4ead76(0x20e)](_0x563a20[_0x4ead76(0x24d)]);for(let _0x15db9b=0x0;_0x563a20['ZjYNH'](_0x15db9b,_0x5efa4b[_0x4ead76(0x207)]);_0x15db9b++){console[_0x4ead76(0x20e)]('\x20\x20'+_0x563a20['ANWfh'](_0x15db9b,0x1)+'.\x20'+_0x5efa4b[_0x15db9b]['description']);}process[_0x4ead76(0x269)](0x1);}const _0x242ebd=_0x5efa4b[_0x45a39a];await updateChecklistItem(_0x10204c,_0x242ebd['id'],{'description':_0x4ae09f});const _0xf81773=await _0x563a20['AksUt'](getFeature,_0x10204c);console[_0x4ead76(0x20e)]('\x0a✅\x20Scenario\x20updated'),_0x563a20['WGNbU'](displayFeature,_0xf81773,_0xf81773['checklistItems']);}async function downloadFeedbackImage(_0x136484,_0x1aa48c){const _0x5a3847=_0x8ab750,_0x4850b0={'xTANq':'feedback-images','pMOCa':function(_0x3ef981,_0x1002e7,_0x2f231e){return _0x3ef981(_0x1002e7,_0x2f231e);},'OUlZI':function(_0x1b51eb,_0x38e806){return _0x1b51eb(_0x38e806);},'VSAuj':function(_0x30fd4f,_0x4b0dbe,_0x1d2c91){return _0x30fd4f(_0x4b0dbe,_0x1d2c91);}};try{const _0x517e1d=join(getRangerDir(),_0x4850b0['xTANq']);await _0x4850b0['pMOCa'](mkdir,_0x517e1d,{'recursive':!![]});const _0x4ebc49=join(_0x517e1d,'comment_'+_0x1aa48c+_0x5a3847(0x1f0)),_0x3d7742=await _0x4850b0['OUlZI'](fetch,_0x136484);if(!_0x3d7742['ok'])return null;const _0x34d63f=Buffer[_0x5a3847(0x249)](await _0x3d7742['arrayBuffer']());return await _0x4850b0[_0x5a3847(0x21d)](writeFile,_0x4ebc49,_0x34d63f),_0x4ebc49;}catch{return null;}}export async function featureGetReview(_0x43a714){const _0x46913f=_0x8ab750,_0x1e9315={'LWoiS':function(_0x560a63){return _0x560a63();},'UxTmo':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','soDtM':function(_0x59df78,_0x519583){return _0x59df78(_0x519583);},'yWNCu':function(_0x38f433,_0x25a989){return _0x38f433<_0x25a989;},'qODwj':function(_0x204c84,_0x53aff2){return _0x204c84>_0x53aff2;},'WrzFU':function(_0x183b8d,_0x934b37){return _0x183b8d>_0x934b37;},'QtSYs':_0x46913f(0x2a7),'vmfmK':function(_0x2be11a,_0x4c4152,_0x2ee4cb){return _0x2be11a(_0x4c4152,_0x2ee4cb);},'mVZXY':_0x46913f(0x218),'bHdup':'point'},_0x38b6c2=_0x43a714||await _0x1e9315[_0x46913f(0x225)](getActiveFeatureId);if(!_0x38b6c2)throw new Error(_0x1e9315['UxTmo']);const _0x17e5a4=await _0x1e9315['soDtM'](getFeature,_0x38b6c2),{items:_0xb46c49}=await getActionItems(_0x38b6c2);console[_0x46913f(0x20e)](_0x46913f(0x247)+_0x17e5a4[_0x46913f(0x232)]+'\x20('+_0x17e5a4['id']+')\x0a');if(_0xb46c49[_0x46913f(0x207)]===0x0){console[_0x46913f(0x20e)]('No\x20scenarios\x20found.');return;}for(let _0x328dfb=0x0;_0x1e9315['yWNCu'](_0x328dfb,_0xb46c49[_0x46913f(0x207)]);_0x328dfb++){const _0x42e436=_0xb46c49[_0x328dfb],_0xafec62=_0x1e9315['qODwj'](_0x42e436[_0x46913f(0x253)],0x1)?_0x46913f(0x286)+_0x42e436['version']+')':'',_0x306620=await getItemFeedback(_0x38b6c2,_0x42e436['id']);if(_0x1e9315['WrzFU'](_0x306620[_0x46913f(0x27a)]['length'],0x0)){console[_0x46913f(0x20e)]('Scenario\x20'+(_0x328dfb+0x1)+_0x46913f(0x2b1)+_0x42e436[_0x46913f(0x23b)]+'\x22'+_0xafec62+'\x20—\x20'+_0x306620[_0x46913f(0x27a)]['length']+_0x46913f(0x25c));for(const _0x498774 of _0x306620[_0x46913f(0x27a)]){const _0x424010=new Date(_0x498774[_0x46913f(0x239)])[_0x46913f(0x23e)]('en-US',{'month':'short','day':_0x1e9315[_0x46913f(0x1ee)]}),_0x55c868=_0x498774['authorName']||_0x498774['authorEmail']||_0x46913f(0x226);console[_0x46913f(0x20e)](_0x46913f(0x220)+_0x55c868+'\x20('+_0x424010+_0x46913f(0x221)+_0x498774['content']+'\x22');if(_0x498774['assetUrl']){const _0x39739c=await _0x1e9315[_0x46913f(0x262)](downloadFeedbackImage,_0x498774[_0x46913f(0x24e)],_0x498774['id']);_0x39739c&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x39739c);}if(_0x498774['domRef']){const _0x448d5d=_0x498774[_0x46913f(0x20a)][_0x46913f(0x24b)][_0x46913f(0x281)]('\x20>\x20')['pop']()?.[_0x46913f(0x281)](':')[0x0]||_0x1e9315[_0x46913f(0x1f4)],_0x34fcd1=_0x498774[_0x46913f(0x20a)]['textContent']?'\x20\x22'+_0x498774[_0x46913f(0x20a)]['textContent'][_0x46913f(0x255)](0x0,0x3c)+'\x22':'';console[_0x46913f(0x20e)](_0x46913f(0x204)+_0x448d5d+'>'+_0x34fcd1),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x498774['domRef'][_0x46913f(0x24b)]);}else{if(_0x498774['spatial']){const _0x3982dc=_0x498774['spatial'][_0x46913f(0x276)];_0x498774[_0x46913f(0x28d)][_0x46913f(0x215)]===_0x1e9315[_0x46913f(0x289)]&&_0x3982dc['length']>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x3982dc[0x0][_0x46913f(0x2a4)](0x2)+',\x20'+_0x3982dc[0x1][_0x46913f(0x2a4)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x498774['spatial'][_0x46913f(0x215)]+_0x46913f(0x29a)+_0x3982dc[_0x46913f(0x294)](_0x4490af=>_0x4490af[_0x46913f(0x2a4)](0x2))[_0x46913f(0x23a)](',\x20')+']');}}}if(_0x306620['canonicalFlow']){console[_0x46913f(0x20e)](_0x46913f(0x287));for(const _0x5d77ab of _0x306620['canonicalFlow']['split']('\x0a')){console[_0x46913f(0x20e)]('\x20\x20\x20\x20'+_0x5d77ab);}}}else console[_0x46913f(0x20e)]('Scenario\x20'+(_0x328dfb+0x1)+':\x20\x22'+_0x42e436['description']+'\x22'+_0xafec62+'\x20—\x20no\x20comments'),console['log'](_0x46913f(0x227));console['log']('');}}export async function featureDelete(_0x360d6c){const _0x11d201=_0x8ab750,_0x3fac0b={'nUzSQ':function(_0x270362,_0x29c1f0){return _0x270362(_0x29c1f0);},'OZVxH':function(_0x582040,_0x75a2e4){return _0x582040+_0x75a2e4;}},_0x2833d1=_0x360d6c||await getActiveFeatureId();if(!_0x2833d1)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 _0x4be771=await getFeature(_0x2833d1);await _0x3fac0b['nUzSQ'](softDeleteFeature,_0x2833d1),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x4be771[_0x11d201(0x232)]+'\x20('+_0x2833d1+')'),console[_0x11d201(0x20e)](_0x3fac0b[_0x11d201(0x200)](_0x11d201(0x21a),_0x2833d1));}export async function featureRestore(_0x8b096b){const _0x3b3612=_0x8ab750,_0xf39d6d={'XZpro':function(_0x3be8a8,_0x3a31be){return _0x3be8a8(_0x3a31be);},'NJKqs':function(_0x43c355,_0x916ca5,_0x2612ee){return _0x43c355(_0x916ca5,_0x2612ee);}};await restoreFeature(_0x8b096b);const _0x29f4fa=await _0xf39d6d['XZpro'](getFeature,_0x8b096b);console[_0x3b3612(0x20e)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x29f4fa[_0x3b3612(0x232)]+'\x20('+_0x8b096b+')'),_0xf39d6d[_0x3b3612(0x28f)](displayFeature,_0x29f4fa,_0x29f4fa[_0x3b3612(0x209)]);}
|
|
1
|
+
const _0x2de799=_0x19c8;(function(_0x362bab,_0x1e8dc6){const _0x580cda=_0x19c8,_0x217d28=_0x362bab();while(!![]){try{const _0x21785f=-parseInt(_0x580cda(0x1b2))/0x1*(parseInt(_0x580cda(0x1aa))/0x2)+parseInt(_0x580cda(0x1d0))/0x3+parseInt(_0x580cda(0x160))/0x4*(parseInt(_0x580cda(0x1ed))/0x5)+parseInt(_0x580cda(0x1d2))/0x6*(parseInt(_0x580cda(0x138))/0x7)+-parseInt(_0x580cda(0x1ba))/0x8+-parseInt(_0x580cda(0x181))/0x9+parseInt(_0x580cda(0x179))/0xa;if(_0x21785f===_0x1e8dc6)break;else _0x217d28['push'](_0x217d28['shift']());}catch(_0x5cb9a8){_0x217d28['push'](_0x217d28['shift']());}}}(_0xb7f8,0xc3305));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x16d2a9 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';function _0xb7f8(){const _0x3b3550=['\x20(v','checklistItems','from','\x20\x20\x20Created:\x20','in_progress','canceledReason','UwHMk','assets','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','AQXah','\x0a✅\x20Session\x20','Cannot\x20conclude\x20session\x20with\x20status:\x20','dwNMM','blockedItems','\x20\x20\x20ID:\x20','sMbPL','spatial','...','Khojw','iGEVI','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','git\x20remote\x20get-url\x20origin','QTrvH','DEstT','description','UGwmj','JUJBv','32xSKqOO','huTeB','\x20\x20\x20Description:\x20','log','offset','\x20feature\x20review(s)\x20found','jHuDB','filter','KPgAE','isTTY','uGkVg','\x0aCreating\x20feature\x20review...','status','stats','pWVOa','\x0aAvailable\x20scenarios:','slice','toLocaleDateString','):\x20\x22','orIUN','storage','rxfNS','Screenshot\x20','approved','\x20--limit\x20','17872340BntEWS','HvoyT','RlRst','XxCvZ','incompleteReason','\x0a✅\x20Scenario\x20updated','exit','EfnSR','8176653RHoHkc','OAHOE','trimEnd','split','repeat','ATvpH','FIjaB','ofuaK','\x20>\x20','pmfsx','gitRepoUrl','push','assetUrl','createdAt','ivbGd','gitBranch','\x20\x20✅\x20No\x20feedback\x20to\x20address','feedback-images','unaddressedComments','HgyvR','LocKy','find','SLgfA','IwTMz','items','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','trim','rsPne','IBLRm','verifiedItems','CiPGF','length','XCsvO','totalCount','CLAUDE_SESSION_ID','stdin','\x20\x20\x20\x20\x20ID:\x20','HVPZw','SGDVb','\x0aNo\x20feature\x20reviews\x20found.','\x1b[1m','17398cRHAtm','map','join','selector','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','nzYfn','utf-8','screenshot','158vtirSD','name','artxB','arrayBuffer','element','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','hovJP','RFMmu','9448016TPHGQq','eztzI','github.com/','hVAbJ','QCmFk','jINYB','ezMST','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','error','screenshotUrls','scenario','No\x20scenarios\x20found.','en-US','fdrCP','\x0a✅\x20Feature\x20review\x20created:\x20','dashboardUrl','uDTdv','authorName','\x0a✅\x20Session\x20is\x20already\x20completed.','terminalReason','iteration','XJLbn','2201955iZsHmD','zjlnz','18LoWFPO','\x20\x20💬\x20','browserSessionId','\x20concluded.','GLJXF','\x20\x20\x20\x20\x20\x20Blocked:\x20','toFixed','YMPSb','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','PIDVX','sessionId','0|1|4|5|3|2','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20blocked','hWVeB','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','ehaZb','excludeScenarios','buVKk','\x20\x20\x20Completed:\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','LxIcd','TJSgn','\x20scenarios.','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','iAlGh','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','834240IfRJfk','verification_in_progress','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x20of\x20','.\x20Feature\x20review\x20has\x20','completed','currentBranch','CWNPo','closed','pop','AwmGv','DEKob','UbtJL','Unknown','hhPhl','limit','env','version','replace','\x0a✅\x20Report\x20generated:\x20','Not\x20in\x20a\x20git\x20repository.','RANGER_TEST_USERNAME','includeDeleted','ready','blockedReason','stdout','ZUznZ','canonicalFlow','incomplete','type','latestReview','.md','\x20\x20\x20\x20\x20\x20Cancelled:\x20','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','coordinates','numeric','AuGYQ','\x20unaddressed\x20comment(s)','QsLlb','950719AXyHkA','\x20--current-branch','lQHvT','completedAt','\x20\x20\x20Progress:\x20','euSNE','toLocaleString','write','KNRPm','\x20incomplete','currentSessionId','verificationInProgressItems','get'];_0xb7f8=function(){return _0x3b3550;};return _0xb7f8();}import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x3cff46=>_0x2de799(0x1a9)+_0x3cff46+'\x1b[0m';function getGitRepoUrl(){const _0x3a714e=_0x2de799,_0x494d74={'YMPSb':function(_0x37ee97,_0x48d60e,_0x4a11b4){return _0x37ee97(_0x48d60e,_0x4a11b4);},'CiPGF':'pipe'};try{const _0x51ae31=_0x494d74[_0x3a714e(0x1d9)](execSync,_0x3a714e(0x15a),{'encoding':'utf-8','stdio':['pipe','pipe',_0x494d74[_0x3a714e(0x19f)]]})['trim']();return _0x51ae31['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x3a714e(0x1bc))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xc154df=_0x2de799,_0x17f976={'CWNPo':function(_0x2c154d,_0x1630a6,_0x3cffbb){return _0x2c154d(_0x1630a6,_0x3cffbb);},'UqBvd':'utf-8','KNRPm':'pipe'};try{return _0x17f976[_0xc154df(0x118)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x17f976['UqBvd'],'stdio':[_0x17f976[_0xc154df(0x140)],_0x17f976['KNRPm'],_0x17f976['KNRPm']]})[_0xc154df(0x19b)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x47cc01=_0x2de799,_0xf72b0={'XJLbn':function(_0x1a7875,_0xf60f48,_0x110e93){return _0x1a7875(_0xf60f48,_0x110e93);},'KPgAE':function(_0x448713,_0x532619){return _0x448713(_0x532619);},'myFAJ':_0x47cc01(0x1b0)},_0x13dfb9=_0xf72b0[_0x47cc01(0x1cf)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0xf72b0[_0x47cc01(0x168)](existsSync,_0x13dfb9))return null;try{const _0x306eb1=await readFile(_0x13dfb9,_0xf72b0['myFAJ']);return _0x306eb1['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x4c4b52){const _0x42de12=_0x2de799,_0xa2441b={'JjxiY':function(_0x50780c){return _0x50780c();},'UbtJL':function(_0x50399a,_0x53af84,_0x45d825){return _0x50399a(_0x53af84,_0x45d825);},'MbRpA':function(_0x3b8c03,_0x3b7b57){return _0x3b8c03(_0x3b7b57);},'JZrZO':function(_0x128f18,_0x351d59,_0x432caa,_0x5b5e73){return _0x128f18(_0x351d59,_0x432caa,_0x5b5e73);}},_0x222efb=_0xa2441b['JjxiY'](getRangerDir),_0x203092=_0xa2441b[_0x42de12(0x11d)](join,_0x222efb,ACTIVE_FEATURE_FILE);!_0xa2441b['MbRpA'](existsSync,_0x222efb)&&await mkdir(_0x222efb,{'recursive':!![]}),await _0xa2441b['JZrZO'](writeFile,_0x203092,_0x4c4b52,'utf-8');}function getProgressDisplay(_0x244206){const _0x349d90=_0x2de799,_0x35e2b4={'dwNMM':function(_0x256331,_0xc703be){return _0x256331+_0xc703be;},'uGkVg':function(_0x5b813a,_0x267479){return _0x5b813a+_0x267479;},'WgCPI':function(_0x3e5bb4,_0x24d4af){return _0x3e5bb4-_0x24d4af;},'HgyvR':function(_0x69aee9,_0x5f52ff){return _0x69aee9>_0x5f52ff;},'buVKk':function(_0x5b207e,_0x617748){return _0x5b207e>_0x617748;}},_0x31b4b2=_0x244206[_0x349d90(0x19e)]||0x0,_0x480e09=_0x244206[_0x349d90(0x143)]||0x0,_0x533d07=_0x244206[_0x349d90(0x152)]||0x0,_0x146275=_0x244206['incompleteItems']||0x0,_0x4ca6fa=_0x244206['pendingItems']||0x0,_0x141cb4=_0x35e2b4['dwNMM'](_0x35e2b4[_0x349d90(0x16a)](_0x35e2b4[_0x349d90(0x151)](_0x31b4b2+_0x480e09,_0x533d07),_0x146275),_0x4ca6fa);if(_0x141cb4===0x0)return'-';const _0x24b984=0xa,_0x46af60=Math['round'](_0x31b4b2/_0x141cb4*_0x24b984),_0xbd67a1='█'['repeat'](_0x46af60)+'░'[_0x349d90(0x185)](_0x35e2b4['WgCPI'](_0x24b984,_0x46af60)),_0x143f88=[];if(_0x533d07>0x0)_0x143f88[_0x349d90(0x18c)](_0x533d07+_0x349d90(0x1df));if(_0x35e2b4[_0x349d90(0x194)](_0x146275,0x0))_0x143f88[_0x349d90(0x18c)](_0x146275+_0x349d90(0x141));if(_0x480e09>0x0)_0x143f88[_0x349d90(0x18c)](_0x480e09+'\x20in\x20progress');const _0x34a711=_0x35e2b4[_0x349d90(0x1e4)](_0x143f88[_0x349d90(0x1a0)],0x0)?'\x20('+_0x143f88['join'](',\x20')+')':'';return _0xbd67a1+'\x20'+_0x31b4b2+'/'+_0x141cb4+'\x20verified'+_0x34a711;}function _0x19c8(_0x15711d,_0x4d9e13){_0x15711d=_0x15711d-0x118;const _0xb7f8fe=_0xb7f8();let _0x19c8f9=_0xb7f8fe[_0x15711d];return _0x19c8f9;}function getCurrentSessionItems(_0x7d08f8,_0x199306){const _0x139093=_0x2de799;if(!_0x7d08f8[_0x139093(0x142)])return _0x199306['filter'](_0x2bb060=>!_0x2bb060[_0x139093(0x1dc)]);return _0x199306['filter'](_0xf42be0=>_0xf42be0['sessionId']===_0x7d08f8['currentSessionId']||!_0xf42be0[_0x139093(0x1dc)]);}function displayFeature(_0x48c997,_0x5c09e1){const _0x3f1f7c=_0x2de799,_0x3b4c9d={'zjlnz':function(_0x24d480,_0x49bbd8){return _0x24d480>_0x49bbd8;},'MdVdz':function(_0x1436e3,_0x362644){return _0x1436e3<_0x362644;},'iAlGh':function(_0x35df9d,_0x54f5c4){return _0x35df9d===_0x54f5c4;},'fdrCP':_0x3f1f7c(0x119),'nEnZF':'approved','Kllkb':'verified','TJSgn':function(_0x5ea5f5,_0x59e68a){return _0x5ea5f5===_0x59e68a;},'VxApn':'blocked','rSsvW':function(_0x501054,_0x399bdf){return _0x501054>_0x399bdf;},'FOhwH':function(_0x51ad9a,_0x24ddba){return _0x51ad9a!==_0x24ddba;},'jHuDB':_0x3f1f7c(0x12d)};console[_0x3f1f7c(0x163)]('\x0a'+_0x48c997['name']+'\x20('+_0x48c997[_0x3f1f7c(0x1c9)]+')');_0x48c997[_0x3f1f7c(0x16d)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x48c997['stats']));_0x48c997['description']&&console['log'](_0x3f1f7c(0x162)+_0x48c997[_0x3f1f7c(0x15d)]);_0x48c997[_0x3f1f7c(0x18b)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x48c997[_0x3f1f7c(0x18b)]);_0x48c997['gitBranch']&&console[_0x3f1f7c(0x163)]('\x20\x20\x20Branch:\x20'+_0x48c997[_0x3f1f7c(0x190)]);console[_0x3f1f7c(0x163)](_0x3f1f7c(0x148)+new Date(_0x48c997['createdAt'])[_0x3f1f7c(0x13e)]());_0x48c997['completedAt']&&console[_0x3f1f7c(0x163)](_0x3f1f7c(0x1e5)+new Date(_0x48c997['completedAt'])['toLocaleString']());if(_0x5c09e1&&_0x3b4c9d[_0x3f1f7c(0x1d1)](_0x5c09e1[_0x3f1f7c(0x1a0)],0x0)){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x2fdf9d=0x0;_0x3b4c9d['MdVdz'](_0x2fdf9d,_0x5c09e1[_0x3f1f7c(0x1a0)]);_0x2fdf9d++){const _0x47faa8=_0x5c09e1[_0x2fdf9d];let _0x394f3f;if(_0x3b4c9d[_0x3f1f7c(0x1eb)](_0x47faa8[_0x3f1f7c(0x16c)],_0x3b4c9d['fdrCP'])&&_0x3b4c9d['iAlGh'](_0x47faa8[_0x3f1f7c(0x1cd)],_0x3b4c9d['nEnZF']))_0x394f3f='✅';else{if(_0x3b4c9d['iAlGh'](_0x47faa8['status'],_0x3b4c9d['Kllkb']))_0x394f3f='🟢';else{if(_0x3b4c9d[_0x3f1f7c(0x1e8)](_0x47faa8[_0x3f1f7c(0x16c)],_0x3f1f7c(0x12d)))_0x394f3f='🟠';else{if(_0x47faa8['status']===_0x3b4c9d['VxApn'])_0x394f3f='🛑';else{if(_0x47faa8[_0x3f1f7c(0x16c)]===_0x3b4c9d[_0x3f1f7c(0x1c7)])_0x394f3f='⛔';else _0x3b4c9d[_0x3f1f7c(0x1e8)](_0x47faa8['status'],_0x3f1f7c(0x1ee))?_0x394f3f='⏳':_0x394f3f='⬜';}}}}const _0x24c28c=_0x3b4c9d['rSsvW'](_0x47faa8[_0x3f1f7c(0x122)],0x1)?_0x3f1f7c(0x145)+_0x47faa8[_0x3f1f7c(0x122)]+')':'',_0x2956a5=_0x3b4c9d[_0x3f1f7c(0x1d1)](_0x47faa8[_0x3f1f7c(0x122)],0x1)&&_0x47faa8['parentItemId']&&_0x3b4c9d['FOhwH'](_0x47faa8[_0x3f1f7c(0x16c)],_0x3f1f7c(0x119))&&_0x47faa8[_0x3f1f7c(0x16c)]!=='verified'?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+(_0x2fdf9d+0x1)+'.\x20'+_0x394f3f+'\x20'+_0x47faa8['description']+_0x24c28c+_0x2956a5);_0x47faa8['status']===_0x3b4c9d['VxApn']&&_0x47faa8[_0x3f1f7c(0x129)]&&console[_0x3f1f7c(0x163)](_0x3f1f7c(0x1d7)+_0x47faa8[_0x3f1f7c(0x129)]);_0x3b4c9d['TJSgn'](_0x47faa8[_0x3f1f7c(0x16c)],_0x3b4c9d[_0x3f1f7c(0x166)])&&_0x47faa8['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x47faa8['incompleteReason']);if(_0x47faa8['status']===_0x3b4c9d['fdrCP']&&_0x3b4c9d[_0x3f1f7c(0x1e8)](_0x47faa8['terminalReason'],_0x3f1f7c(0x177)))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x3b4c9d['TJSgn'](_0x47faa8['status'],_0x3f1f7c(0x119))&&_0x47faa8[_0x3f1f7c(0x14a)]&&console[_0x3f1f7c(0x163)](_0x3f1f7c(0x131)+_0x47faa8['canceledReason']);}}}export async function featureCreate(_0x5d870b,_0x26647e){const _0xba20dc=_0x2de799,_0x3c02ad={'iGEVI':function(_0x1b4d5e){return _0x1b4d5e();},'twjyL':function(_0x5c129f){return _0x5c129f();},'ofuaK':_0xba20dc(0x16b),'QCmFk':function(_0x1adff1,_0x3814dd){return _0x1adff1(_0x3814dd);},'FIjaB':function(_0x1f7386,_0x132e15){return _0x1f7386(_0x132e15);},'ZPUuf':function(_0x45c7b8,_0x43386f,_0x2d313c){return _0x45c7b8(_0x43386f,_0x2d313c);}},{envNames:_0x1f01f5}=await _0x3c02ad[_0xba20dc(0x158)](getEnvNames);if(_0x1f01f5['length']===0x0&&!process['env'][_0xba20dc(0x126)]){let _0x5d0e0f=0x0;try{_0x5d0e0f=(await listCloudProfiles())['length'];}catch{_0x5d0e0f=0x1;}_0x5d0e0f===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x4d4756=>bold(_0x4d4756)));}const _0x123ee9=_0x26647e['scenarios']?_0x26647e['scenarios'][_0xba20dc(0x1ab)](_0x1de1b9=>_0x1de1b9['trim']()):[],_0x9bf368=_0x3c02ad['iGEVI'](getGitRepoUrl),_0x247495=_0x3c02ad['twjyL'](getGitBranch);console[_0xba20dc(0x163)](_0x3c02ad[_0xba20dc(0x188)]);const _0x49e7c8=await _0x3c02ad[_0xba20dc(0x1be)](createFeature,{'name':_0x5d870b,'description':_0x26647e['description'],'checklist':_0x123ee9,'gitRepoUrl':_0x9bf368,'gitBranch':_0x247495});await _0x3c02ad['QCmFk'](setActiveFeatureId,_0x49e7c8['id']),await _0x3c02ad[_0xba20dc(0x187)](tryStartCurrentSession,_0x49e7c8['id']);const _0x53536f=process[_0xba20dc(0x121)][_0xba20dc(0x1a3)];_0x53536f&®isterSession(_0x53536f,_0x49e7c8['id']),console[_0xba20dc(0x163)](_0xba20dc(0x1c8)+_0x49e7c8['id']),_0x3c02ad['ZPUuf'](displayFeature,_0x49e7c8,_0x49e7c8['checklistItems']),console[_0xba20dc(0x163)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0xe41d08){const _0x3b7d16=_0x2de799,_0x30b2a3={'rxfNS':function(_0x24f3ad){return _0x24f3ad();},'ehaZb':function(_0x36fd01,_0x4866c1){return _0x36fd01(_0x4866c1);},'IwTMz':function(_0xa2dcaf,_0x4e41b7){return _0xa2dcaf===_0x4e41b7;},'gxTuV':function(_0x358932,_0x18d237){return _0x358932>_0x18d237;},'LocKy':function(_0x53769f,_0x511807){return _0x53769f+_0x511807;},'orIUN':function(_0x41de49,_0x422994){return _0x41de49<_0x422994;}},_0x1dc3a1={'limit':_0xe41d08[_0x3b7d16(0x120)]??0xa,'offset':_0xe41d08[_0x3b7d16(0x164)]??0x0,'includeDeleted':_0xe41d08[_0x3b7d16(0x127)]};_0xe41d08['currentBranch']&&(_0x1dc3a1[_0x3b7d16(0x18b)]=getGitRepoUrl(),_0x1dc3a1['gitBranch']=_0x30b2a3[_0x3b7d16(0x175)](getGitBranch));const _0xfa5920=await _0x30b2a3['ehaZb'](listFeatures,_0x1dc3a1);if(_0x30b2a3[_0x3b7d16(0x198)](_0xfa5920[_0x3b7d16(0x199)][_0x3b7d16(0x1a0)],0x0)){console['log'](_0x3b7d16(0x1a8));return;}const _0x164b60=_0x30b2a3['gxTuV'](_0xfa5920['totalCount'],_0xfa5920['items']['length'])?'Showing\x20'+_0xfa5920['items']['length']+_0x3b7d16(0x1f0)+_0xfa5920['totalCount']:_0xfa5920[_0x3b7d16(0x1a2)]+_0x3b7d16(0x165);console['log']('\x0a'+_0x164b60+':\x0a');for(const _0x56a04f of _0xfa5920['items']){const _0x353b55=_0x3b7d16(0x1dd)[_0x3b7d16(0x184)]('|');let _0x55e2b5=0x0;while(!![]){switch(_0x353b55[_0x55e2b5++]){case'0':console[_0x3b7d16(0x163)](''+_0x56a04f[_0x3b7d16(0x1b3)]);continue;case'1':console[_0x3b7d16(0x163)](_0x3b7d16(0x153)+_0x56a04f['id']);continue;case'2':console[_0x3b7d16(0x163)]('');continue;case'3':console[_0x3b7d16(0x163)]('\x20\x20\x20Created:\x20'+new Date(_0x56a04f['createdAt'])[_0x3b7d16(0x171)]());continue;case'4':_0x56a04f[_0x3b7d16(0x16d)]&&console['log'](_0x3b7d16(0x13c)+_0x30b2a3[_0x3b7d16(0x1e2)](getProgressDisplay,_0x56a04f[_0x3b7d16(0x16d)]));continue;case'5':_0x56a04f['gitBranch']&&console[_0x3b7d16(0x163)]('\x20\x20\x20Branch:\x20'+_0x56a04f[_0x3b7d16(0x190)]);continue;}break;}}const _0x5f0798=_0x1dc3a1[_0x3b7d16(0x120)]??0xa,_0x2cc522=_0x30b2a3[_0x3b7d16(0x195)](_0x1dc3a1[_0x3b7d16(0x164)]??0x0,_0xfa5920['items']['length']);if(_0x30b2a3[_0x3b7d16(0x173)](_0x2cc522,_0xfa5920['totalCount'])){const _0x1664f0=_0x5f0798!==0xa?_0x3b7d16(0x178)+_0x5f0798:'',_0x3932cc=_0xe41d08[_0x3b7d16(0x1f3)]?_0x3b7d16(0x139):'',_0x39318f=_0xe41d08[_0x3b7d16(0x127)]?'\x20--include-deleted':'';console[_0x3b7d16(0x163)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x2cc522+_0x1664f0+_0x3932cc+_0x39318f);}}export async function featureShow(_0x18aa21){const _0x4db689=_0x2de799,_0x56e02d={'zTipA':function(_0x21dd9f){return _0x21dd9f();},'eSuvU':_0x4db689(0x1ec)},_0x3553d8=_0x18aa21||await _0x56e02d['zTipA'](getActiveFeatureId);if(!_0x3553d8)throw new Error(_0x56e02d['eSuvU']);const _0x1a3f1f=await getFeature(_0x3553d8);displayFeature(_0x1a3f1f,_0x1a3f1f[_0x4db689(0x146)]);}export async function featureResume(_0x1e5e96){const _0xd4d292=_0x2de799,_0xd0aeed={'JUJBv':function(_0x3a1042,_0x186f7e){return _0x3a1042(_0x186f7e);},'UGwmj':function(_0x565fec){return _0x565fec();},'pWVOa':function(_0x10f8ab,_0x434b61,_0x3ea72b){return _0x10f8ab(_0x434b61,_0x3ea72b);},'LxIcd':_0xd4d292(0x125),'duiWe':function(_0x5433f0,_0x542d46){return _0x5433f0||_0x542d46;},'DEstT':'any','jINYB':function(_0x3e7728,_0x57453c){return _0x3e7728||_0x57453c;},'jMsJY':function(_0x4f4319,_0x410473){return _0x4f4319(_0x410473);},'pmfsx':_0xd4d292(0x1e6),'HWIDd':_0xd4d292(0x1de),'gSrRP':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','hhPhl':'list','eztzI':_0xd4d292(0x1ef),'SGDVb':function(_0x4dd97b,_0x5ebf8e,_0x5e20c8){return _0x4dd97b(_0x5ebf8e,_0x5e20c8);}};if(_0x1e5e96){const _0x25c7a6=await _0xd0aeed['JUJBv'](getFeature,_0x1e5e96);await _0xd0aeed[_0xd4d292(0x15f)](setActiveFeatureId,_0x25c7a6['id']);const _0x2909da=_0xd0aeed['UGwmj'](getGitBranch);_0x2909da&&_0x2909da!==_0x25c7a6['gitBranch']&&(await _0xd0aeed[_0xd4d292(0x16e)](updateFeature,_0x25c7a6['id'],{'gitBranch':_0x2909da}),console[_0xd4d292(0x163)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2909da));console[_0xd4d292(0x163)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x25c7a6[_0xd4d292(0x1b3)]+'\x20('+_0x25c7a6['id']+')'),await tryStartCurrentSession(_0x25c7a6['id']);const _0x1e1c2c=process['env']['CLAUDE_SESSION_ID'];_0x1e1c2c&®isterSession(_0x1e1c2c,_0x25c7a6['id']);_0xd0aeed[_0xd4d292(0x16e)](displayFeature,_0x25c7a6,_0x25c7a6[_0xd4d292(0x146)]),await printFeedbackNudge(_0x25c7a6['id']);return;}const _0x22edd7=_0xd0aeed[_0xd4d292(0x15e)](getGitRepoUrl),_0x2c8bf9=getGitBranch();if(!_0x22edd7&&!_0x2c8bf9)throw new Error(_0xd0aeed[_0xd4d292(0x1e7)]);console[_0xd4d292(0x163)](_0xd4d292(0x132)+_0xd0aeed['duiWe'](_0x22edd7,_0xd0aeed['DEstT'])+'\x20/\x20'+_0xd0aeed[_0xd4d292(0x1bf)](_0x2c8bf9,_0xd0aeed[_0xd4d292(0x15c)])+_0xd4d292(0x156));const _0x380354=await _0xd0aeed['jMsJY'](listFeatures,{'gitRepoUrl':_0x22edd7,'gitBranch':_0x2c8bf9}),_0x296c4e=_0x380354[_0xd4d292(0x199)]['filter'](_0x10d1ec=>_0x10d1ec[_0xd4d292(0x16c)]?_0x10d1ec[_0xd4d292(0x16c)]!=='verified':!_0x10d1ec[_0xd4d292(0x13b)]);if(_0x296c4e[_0xd4d292(0x1a0)]===0x0){console[_0xd4d292(0x163)](_0xd0aeed[_0xd4d292(0x18a)]),console['log'](_0xd0aeed['HWIDd']);return;}let _0xbdab02;if(_0x296c4e[_0xd4d292(0x1a0)]===0x1)_0xbdab02=_0x296c4e[0x0];else{const _0x1ea1bb=process[_0xd4d292(0x1a4)][_0xd4d292(0x169)]&&process[_0xd4d292(0x12a)][_0xd4d292(0x169)];if(!_0x1ea1bb){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x5ee792 of _0x296c4e){console[_0xd4d292(0x163)]('\x20\x20'+_0x5ee792[_0xd4d292(0x1b3)]),console[_0xd4d292(0x163)](_0xd4d292(0x1a5)+_0x5ee792['id']),_0x5ee792[_0xd4d292(0x16d)]&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x5ee792[_0xd4d292(0x16d)])),_0x5ee792[_0xd4d292(0x190)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x5ee792[_0xd4d292(0x190)]);}throw new Error(_0xd0aeed['gSrRP']);}const {selected:_0x50ed32}=await _0x16d2a9['prompt']([{'type':_0xd0aeed[_0xd4d292(0x11f)],'name':'selected','message':_0xd0aeed[_0xd4d292(0x1bb)],'choices':_0x296c4e[_0xd4d292(0x1ab)](_0x4bc377=>({'name':_0x4bc377[_0xd4d292(0x1b3)]+'\x20('+_0x4bc377['id']+')','value':_0x4bc377['id']}))}]);_0xbdab02=_0x296c4e[_0xd4d292(0x196)](_0x18a8c3=>_0x18a8c3['id']===_0x50ed32);}await _0xd0aeed['jMsJY'](setActiveFeatureId,_0xbdab02['id']);_0x2c8bf9&&_0x2c8bf9!==_0xbdab02['gitBranch']&&(await _0xd0aeed['pWVOa'](updateFeature,_0xbdab02['id'],{'gitBranch':_0x2c8bf9}),console[_0xd4d292(0x163)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2c8bf9));console[_0xd4d292(0x163)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xbdab02['name']+'\x20('+_0xbdab02['id']+')'),await tryStartCurrentSession(_0xbdab02['id']);const _0x36dd95=await getFeature(_0xbdab02['id']),_0x1efc11=process['env'][_0xd4d292(0x1a3)];_0x1efc11&&_0xd0aeed[_0xd4d292(0x1a7)](registerSession,_0x1efc11,_0x36dd95['id']),_0xd0aeed['pWVOa'](displayFeature,_0x36dd95,_0x36dd95[_0xd4d292(0x146)]),await _0xd0aeed['JUJBv'](printFeedbackNudge,_0x36dd95['id']);}async function printFeedbackNudge(_0x38bd8d){const _0x2d2bf0=_0x2de799,_0x5f3e74={'TStgr':function(_0x3740e6,_0x23d4d1){return _0x3740e6>_0x23d4d1;}};try{const {items:_0x48a068}=await getActionItems(_0x38bd8d);let _0x158e65=0x0,_0x534c88=0x0;for(const _0x1b4753 of _0x48a068){const _0x3ac698=await getItemFeedback(_0x38bd8d,_0x1b4753['id']);_0x5f3e74['TStgr'](_0x3ac698[_0x2d2bf0(0x193)]['length'],0x0)&&(_0x158e65+=_0x3ac698['unaddressedComments']['length'],_0x534c88++);}_0x5f3e74['TStgr'](_0x158e65,0x0)&&(console[_0x2d2bf0(0x163)]('\x0a⚠️\x20\x20'+_0x158e65+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x534c88+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x47f3c2){const _0x457217=_0x2de799,_0x5959e3={'ivbGd':function(_0x2397ab,_0x55d13e){return _0x2397ab(_0x55d13e);},'hWVeB':function(_0x34f6e9,_0xa670f5,_0x4ade45){return _0x34f6e9(_0xa670f5,_0x4ade45);}};try{const {sessions:_0x4cc2cd}=await _0x5959e3[_0x457217(0x18f)](listFeatureSessions,_0x47f3c2),_0x459d1c=_0x4cc2cd[_0x457217(0x196)](_0x4ff947=>_0x4ff947['status']===_0x457217(0x128));_0x459d1c&&(await _0x5959e3[_0x457217(0x1e0)](startSession,_0x47f3c2,_0x459d1c['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x459d1c[_0x457217(0x1ce)]));}catch{}}export async function featureReport(_0x5773c7,_0x51d59d){const _0x55656c=_0x2de799,_0x4a9f12={'lQHvT':'\x0aGenerating\x20report...','AoOmt':'reports','sKofz':function(_0x2aae4d,_0x321149,_0x1f3c15){return _0x2aae4d(_0x321149,_0x1f3c15);},'RlRst':function(_0x54dc7f,_0x3bf6c5,_0x35a979){return _0x54dc7f(_0x3bf6c5,_0x35a979);},'xlkiO':function(_0x5181ca,_0x379208,_0x226c04,_0x3232e0){return _0x5181ca(_0x379208,_0x226c04,_0x3232e0);}},_0x4ec459=_0x5773c7||await getActiveFeatureId();if(!_0x4ec459)throw new Error(_0x55656c(0x1da));console[_0x55656c(0x163)](_0x4a9f12[_0x55656c(0x13a)]);const _0x4ac370=await getFeatureReportMarkdown(_0x4ec459,{'style':_0x51d59d['style']}),_0x4a0b05=_0x51d59d['output']||join(getRangerDir(),_0x4a9f12['AoOmt'],_0x4ec459+_0x55656c(0x130)),_0x464d5c=_0x4a9f12['sKofz'](join,_0x4a0b05,'..');!existsSync(_0x464d5c)&&await _0x4a9f12[_0x55656c(0x17b)](mkdir,_0x464d5c,{'recursive':!![]}),await _0x4a9f12['xlkiO'](writeFile,_0x4a0b05,_0x4ac370,'utf-8'),console['log'](_0x55656c(0x124)+_0x4a0b05);}function getScenarioResult(_0x285ac4){const _0x1b86e7=_0x2de799,_0x21daad={'EfnSR':function(_0x44d52b,_0x3aed73){return _0x44d52b===_0x3aed73;},'hovJP':_0x1b86e7(0x119),'UwHMk':'in_progress'};if(_0x21daad[_0x1b86e7(0x180)](_0x285ac4[_0x1b86e7(0x16c)],_0x21daad[_0x1b86e7(0x1b8)]))return _0x285ac4['terminalReason']??_0x1b86e7(0x119);if(_0x285ac4[_0x1b86e7(0x16c)]==='verification_in_progress')return _0x21daad[_0x1b86e7(0x14b)];return _0x285ac4['status'];}function getScenarioRationale(_0x13835d,_0x443da8){const _0x285b76=_0x2de799,_0x385e57={'nzYfn':'0|3|5|4|2|1'},_0x2eac68=_0x385e57[_0x285b76(0x1af)][_0x285b76(0x184)]('|');let _0x19c0e4=0x0;while(!![]){switch(_0x2eac68[_0x19c0e4++]){case'0':if(_0x443da8)return _0x443da8;continue;case'1':return null;case'2':if(_0x13835d['notes'])return _0x13835d['notes'];continue;case'3':if(_0x13835d['blockedReason'])return _0x13835d[_0x285b76(0x129)];continue;case'4':if(_0x13835d[_0x285b76(0x14a)])return _0x13835d['canceledReason'];continue;case'5':if(_0x13835d[_0x285b76(0x17d)])return _0x13835d['incompleteReason'];continue;}break;}}export async function featureReportPrDescription(_0x42f7b9,_0x3a6a82){const _0xe8ab5=_0x2de799,_0x143f52={'euSNE':function(_0x256fba,_0x35b902){return _0x256fba(_0x35b902);},'ATvpH':function(_0x3b86eb,_0x593319,_0xbdd860){return _0x3b86eb(_0x593319,_0xbdd860);},'oNtXc':function(_0x3e8c20,_0xa4659f){return _0x3e8c20>_0xa4659f;},'AwmGv':function(_0xf037f6,_0x5e2024,_0x431307,_0x4385a8){return _0xf037f6(_0x5e2024,_0x431307,_0x4385a8);}},_0x3c5cd8=_0x42f7b9||await getActiveFeatureId();if(!_0x3c5cd8)throw new Error(_0xe8ab5(0x1da));const _0x398548=await _0x143f52[_0xe8ab5(0x13d)](getFeature,_0x3c5cd8),_0x238812=_0x398548[_0xe8ab5(0x146)]||[],_0x5c6b46=_0x143f52[_0xe8ab5(0x186)](getCurrentSessionItems,_0x398548,_0x238812);_0x5c6b46[_0xe8ab5(0x1a0)]===0x0&&(console[_0xe8ab5(0x1c2)](_0xe8ab5(0x1ae)),process['exit'](0x1));const _0x287f36=_0x3a6a82[_0xe8ab5(0x1e3)]??[],_0x385e09=_0x287f36[_0xe8ab5(0x167)](_0x5b6cf7=>!Number['isInteger'](_0x5b6cf7)||_0x5b6cf7<0x1||_0x5b6cf7>_0x5c6b46[_0xe8ab5(0x1a0)]);if(_0x143f52['oNtXc'](_0x385e09['length'],0x0)){console['error'](_0xe8ab5(0x159)+_0x385e09[_0xe8ab5(0x1ac)](',\x20')),console['log']('\x0aAvailable\x20scenarios:');for(let _0xe26649=0x0;_0xe26649<_0x5c6b46[_0xe8ab5(0x1a0)];_0xe26649++){console['log']('\x20\x20'+(_0xe26649+0x1)+'.\x20'+_0x5c6b46[_0xe26649]['description']);}process[_0xe8ab5(0x17f)](0x1);}const _0x51751e=new Set(_0x287f36[_0xe8ab5(0x1ab)](_0x240d7e=>_0x240d7e-0x1)),_0x1e3e3d=_0x5c6b46['filter']((_0x50b29e,_0x479dea)=>!_0x51751e['has'](_0x479dea));_0x1e3e3d[_0xe8ab5(0x1a0)]===0x0&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x3a6a82['json'])await _0x143f52[_0xe8ab5(0x11b)](outputJsonReport,_0x3c5cd8,_0x398548,_0x1e3e3d);else{const _0x716424=await getFeatureReportMarkdown(_0x3c5cd8,{'itemIds':_0x1e3e3d['map'](_0x5e4a52=>_0x5e4a52['id'])});process[_0xe8ab5(0x12a)]['write'](_0x716424[_0xe8ab5(0x183)]()+'\x0a');}}async function outputJsonReport(_0x912873,_0x1d89d6,_0x19b10e){const _0x20c4bc=_0x2de799,_0xfefa93={'DiXyM':function(_0x49a85f,_0x271718){return _0x49a85f(_0x271718);},'XVVSp':function(_0x128488,_0x4679b1){return _0x128488>_0x4679b1;},'HVPZw':function(_0x426e49,_0x25c1c2){return _0x426e49(_0x25c1c2);},'SxnZm':function(_0x138b64,_0x57453a,_0x5d7220){return _0x138b64(_0x57453a,_0x5d7220);}},_0xcb5cf4=getApiBaseUrl(),_0x20a88e=await getFeatureReport(_0x912873),_0x58bf44=new Map(_0x20a88e['checklistItems']['map'](_0x4d8c5e=>[_0x4d8c5e['id'],_0x4d8c5e])),_0x43de65=await Promise['all'](_0x19b10e[_0x20c4bc(0x1ab)](async _0x12d926=>{const _0x24dbf3=_0x20c4bc,_0x4b1570=_0x58bf44[_0x24dbf3(0x144)](_0x12d926['id']),_0x3a698c=_0x4b1570?.['linkedSession']??null;let _0x49938d=[];if(_0x12d926['browserSessionId'])try{const {steps:_0x5dd5b5}=await _0xfefa93['DiXyM'](getBrowserSessionSteps,_0x12d926[_0x24dbf3(0x1d4)]);_0xfefa93['XVVSp'](_0x5dd5b5['length'],0x0)&&(_0x49938d=_0x5dd5b5[_0x24dbf3(0x1ab)](_0x22e832=>{const _0x2ce72d=_0x24dbf3,_0xc032f8=_0x22e832['assets'][_0x2ce72d(0x196)](_0x285e11=>_0x285e11['assetType']===_0x2ce72d(0x1b1)&&_0x285e11['timing']==='after')??_0x22e832[_0x2ce72d(0x14c)]['find'](_0x16cef1=>_0x16cef1['assetType']===_0x2ce72d(0x1b1));let _0x675151=null,_0x3b626b=null;if(_0xc032f8){const _0x5d8e65=_0xc032f8[_0x2ce72d(0x174)]['location']['split']('/')['pop']();_0x675151=_0xcb5cf4+'/api/v1/mcp/browser-sessions/'+_0x12d926['browserSessionId']+'/artifacts/'+_0x5d8e65,_0x5d8e65&&(_0x3b626b=_0x5d8e65['replace'](/\.\w+$/,'')[_0x2ce72d(0x123)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x3b626b||_0x22e832['description']||_0x22e832['stepName']||'Step\x20'+_0x22e832['position'],'screenshot':_0x675151,'is_key_step':_0x22e832['isKeyStep']};}));}catch{}return _0x49938d['length']===0x0&&_0x3a698c?.[_0x24dbf3(0x1c3)]&&(_0x49938d=_0x3a698c['screenshotUrls'][_0x24dbf3(0x1ab)]((_0xcee53e,_0x1c6ae6)=>({'description':_0x24dbf3(0x176)+(_0x1c6ae6+0x1),'screenshot':_0xcee53e,'is_key_step':![]}))),{'description':_0x12d926[_0x24dbf3(0x15d)],'result':_0xfefa93[_0x24dbf3(0x1a6)](getScenarioResult,_0x12d926),'rationale':_0xfefa93['SxnZm'](getScenarioRationale,_0x12d926,_0x3a698c?.['agentResponse']),'steps':_0x49938d};})),_0x31abee={'url':_0x1d89d6['dashboardUrl'],'scenarios':_0x43de65};process['stdout'][_0x20c4bc(0x13f)](JSON['stringify'](_0x31abee,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x50e378){const _0x150136=_0x2de799,_0x597d03={'rsPne':function(_0x2c0a74){return _0x2c0a74();},'jhtIP':'Current\x20session\x20not\x20found.','hVAbJ':function(_0x5c68a0,_0x41f397){return _0x5c68a0!==_0x41f397;},'UDkIl':function(_0x4070eb,_0x4c1590,_0x1540c5){return _0x4070eb(_0x4c1590,_0x1540c5);}},_0x4e33e6=_0x50e378||await _0x597d03[_0x150136(0x19c)](getActiveFeatureId);if(!_0x4e33e6)throw new Error(_0x150136(0x1ec));const _0x3d0c3f=await getFeature(_0x4e33e6);if(!_0x3d0c3f['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x3bd469}=await listFeatureSessions(_0x4e33e6),_0x37d7b1=_0x3bd469['find'](_0x1f129d=>_0x1f129d['id']===_0x3d0c3f[_0x150136(0x142)]);if(!_0x37d7b1)throw new Error(_0x597d03['jhtIP']);if(_0x37d7b1[_0x150136(0x16c)]===_0x150136(0x1f2)){console[_0x150136(0x163)](_0x150136(0x1cc));return;}if(_0x597d03[_0x150136(0x1bd)](_0x37d7b1[_0x150136(0x16c)],_0x150136(0x149)))throw new Error(_0x150136(0x150)+_0x37d7b1['status']);console[_0x150136(0x163)]('\x0aConcluding\x20session...'),await _0x597d03['UDkIl'](concludeSession,_0x4e33e6,_0x3d0c3f[_0x150136(0x142)]),console[_0x150136(0x163)](_0x150136(0x14f)+_0x37d7b1[_0x150136(0x1ce)]+_0x150136(0x1d5)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4fb1bd){const _0x43a2f4=_0x2de799,_0x39b37d={'uDTdv':_0x43a2f4(0x1da),'fObnB':function(_0xa481ed,_0x401bb4){return _0xa481ed(_0x401bb4);},'DEKob':function(_0xd8f310,_0x568ef9){return _0xd8f310(_0x568ef9);},'qyfyA':'No\x20sessions\x20found.','ezMST':function(_0x3fa1e9,_0x107d2f){return _0x3fa1e9===_0x107d2f;},'EkBKM':_0x43a2f4(0x1f2)},_0x234116=_0x4fb1bd||await getActiveFeatureId();if(!_0x234116)throw new Error(_0x39b37d[_0x43a2f4(0x1ca)]);const _0x3eb863=await _0x39b37d['fObnB'](getFeature,_0x234116);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3eb863['name']+'\x0a');const {sessions:_0x4c915b}=await _0x39b37d[_0x43a2f4(0x11c)](listFeatureSessions,_0x234116);if(_0x4c915b['length']===0x0){console['log'](_0x39b37d['qyfyA']);return;}for(const _0x39b4a9 of _0x4c915b){const _0xdacf6d=_0x39b37d[_0x43a2f4(0x1c0)](_0x39b4a9[_0x43a2f4(0x16c)],_0x39b37d['EkBKM'])?'✅':_0x39b4a9['status']==='in_progress'?'🔄':'▶️';console['log'](_0xdacf6d+'\x20Session\x20'+_0x39b4a9[_0x43a2f4(0x1ce)]+'\x20('+_0x39b4a9['id']+')'),console[_0x43a2f4(0x163)]('\x20\x20\x20Status:\x20'+_0x39b4a9[_0x43a2f4(0x16c)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x39b4a9[_0x43a2f4(0x18e)])['toLocaleString']()),_0x39b4a9['completedAt']&&console['log'](_0x43a2f4(0x1e5)+new Date(_0x39b4a9['completedAt'])[_0x43a2f4(0x13e)]()),console[_0x43a2f4(0x163)]('');}}export async function featureAddScenario(_0x3451e6,_0x3c1aaa){const _0x2cfc8d=_0x2de799,_0x36d55d={'SEdqw':function(_0x311342){return _0x311342();},'TgxgJ':function(_0x239818,_0x5aa383){return _0x239818(_0x5aa383);},'aEDeH':function(_0x1b3b2a,_0xe6c44f,_0x21522c){return _0x1b3b2a(_0xe6c44f,_0x21522c);}},_0x95777c=_0x3c1aaa||await _0x36d55d['SEdqw'](getActiveFeatureId);if(!_0x95777c)throw new Error(_0x2cfc8d(0x1ec));const _0x858113=await _0x36d55d['TgxgJ'](getFeature,_0x95777c);if(_0x858113['latestReview']&&!_0x858113['latestReview']['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x858113[_0x2cfc8d(0x1c9)]);await createChecklistItem(_0x95777c,_0x3451e6);const _0x30cff5=await getFeature(_0x95777c);console['log']('\x0a✅\x20Scenario\x20added'),_0x36d55d['aEDeH'](displayFeature,_0x30cff5,_0x30cff5['checklistItems']);}export async function featureEditScenario(_0xb77cc8,_0x1c5b62){const _0x4ce355=_0x2de799,_0x5a407={'Pobor':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','OuvIe':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ZUznZ':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','RFMmu':'Please\x20finish\x20your\x20review\x20first:','JESyK':function(_0x15328e,_0x4821e7){return _0x15328e===_0x4821e7;},'eRlWl':_0x4ce355(0x1c1),'plLsi':function(_0x47cbcf,_0x5607fa){return _0x47cbcf-_0x5607fa;},'QsLlb':function(_0x302604,_0x4ad3e1){return _0x302604<_0x4ad3e1;},'PIDVX':function(_0x49ae18,_0x7b8d9c){return _0x49ae18>=_0x7b8d9c;},'AQXah':_0x4ce355(0x16f),'QTrvH':function(_0x3f1c37,_0xaf3cda){return _0x3f1c37+_0xaf3cda;},'Khojw':function(_0x594011,_0x3a4aa1,_0x880ac4,_0x15fff2){return _0x594011(_0x3a4aa1,_0x880ac4,_0x15fff2);},'OAHOE':function(_0x1b7135,_0x26af2f){return _0x1b7135(_0x26af2f);}},_0x22e09a=_0x1c5b62['id']||await getActiveFeatureId();!_0x22e09a&&(console[_0x4ce355(0x1c2)](_0x5a407['Pobor']),console[_0x4ce355(0x1c2)](_0x5a407['OuvIe']),process['exit'](0x1));const _0x349d40=await getFeature(_0x22e09a);_0x349d40[_0x4ce355(0x12f)]&&!_0x349d40[_0x4ce355(0x12f)]['submittedAt']&&(console['error'](_0x5a407[_0x4ce355(0x12b)]),console['error'](_0x5a407[_0x4ce355(0x1b9)]),console['error']('\x20\x20'+_0x349d40['dashboardUrl']),process[_0x4ce355(0x17f)](0x1));const _0x42e6d2=_0x349d40['checklistItems']||[];_0x42e6d2['length']===0x0&&(console['error'](_0x4ce355(0x14d)),process['exit'](0x1));if(_0x5a407['JESyK'](_0x1c5b62['scenario'],undefined)){console['error'](_0x5a407['eRlWl']),console['log']('\x0aAvailable\x20scenarios:');for(let _0x5aee62=0x0;_0x5aee62<_0x42e6d2[_0x4ce355(0x1a0)];_0x5aee62++){console[_0x4ce355(0x163)]('\x20\x20'+(_0x5aee62+0x1)+'.\x20'+_0x42e6d2[_0x5aee62]['description']);}process[_0x4ce355(0x17f)](0x1);}const _0x1ffbd4=_0x5a407['plLsi'](_0x1c5b62[_0x4ce355(0x1c4)],0x1);if(_0x5a407['QsLlb'](_0x1ffbd4,0x0)||_0x5a407[_0x4ce355(0x1db)](_0x1ffbd4,_0x42e6d2[_0x4ce355(0x1a0)])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x1c5b62[_0x4ce355(0x1c4)]+_0x4ce355(0x1f1)+_0x42e6d2['length']+_0x4ce355(0x1e9)),console['log'](_0x5a407[_0x4ce355(0x14e)]);for(let _0x4be5b9=0x0;_0x5a407[_0x4ce355(0x137)](_0x4be5b9,_0x42e6d2[_0x4ce355(0x1a0)]);_0x4be5b9++){console['log']('\x20\x20'+_0x5a407[_0x4ce355(0x15b)](_0x4be5b9,0x1)+'.\x20'+_0x42e6d2[_0x4be5b9][_0x4ce355(0x15d)]);}process[_0x4ce355(0x17f)](0x1);}const _0x698f02=_0x42e6d2[_0x1ffbd4];await _0x5a407[_0x4ce355(0x157)](updateChecklistItem,_0x22e09a,_0x698f02['id'],{'description':_0xb77cc8});const _0x54c042=await _0x5a407[_0x4ce355(0x182)](getFeature,_0x22e09a);console[_0x4ce355(0x163)](_0x4ce355(0x17e)),displayFeature(_0x54c042,_0x54c042['checklistItems']);}async function downloadFeedbackImage(_0x506742,_0x35cbf8){const _0x4fb16c=_0x2de799,_0x45492a={'sMbPL':function(_0x19a376,_0x42b823,_0x809ec5){return _0x19a376(_0x42b823,_0x809ec5);},'PONIc':_0x4fb16c(0x192),'zosnB':function(_0x243235,_0x47cd77){return _0x243235(_0x47cd77);},'TMIaV':function(_0x2060e4,_0x10a630,_0x283134){return _0x2060e4(_0x10a630,_0x283134);}};try{const _0x1227cc=_0x45492a[_0x4fb16c(0x154)](join,getRangerDir(),_0x45492a['PONIc']);await mkdir(_0x1227cc,{'recursive':!![]});const _0x53693b=join(_0x1227cc,'comment_'+_0x35cbf8+'.png'),_0x422753=await _0x45492a['zosnB'](fetch,_0x506742);if(!_0x422753['ok'])return null;const _0x269191=Buffer[_0x4fb16c(0x147)](await _0x422753[_0x4fb16c(0x1b5)]());return await _0x45492a['TMIaV'](writeFile,_0x53693b,_0x269191),_0x53693b;}catch{return null;}}export async function featureGetReview(_0x5a54b6){const _0x1e53f8=_0x2de799,_0x5a967c={'HeKpj':_0x1e53f8(0x1ec),'XxCvZ':function(_0x1ee902,_0x472943){return _0x1ee902(_0x472943);},'IBLRm':function(_0x5a75fb,_0x17ab70){return _0x5a75fb===_0x17ab70;},'AuGYQ':_0x1e53f8(0x1c5),'NjyqB':function(_0x385a2f,_0x107ef8){return _0x385a2f<_0x107ef8;},'XCsvO':function(_0x1bd39f,_0x9a40a3){return _0x1bd39f>_0x9a40a3;},'artxB':'short','huTeB':_0x1e53f8(0x134),'SLgfA':_0x1e53f8(0x189),'YSZPr':_0x1e53f8(0x1b6),'FPGbj':function(_0x1a3903,_0x20f9bf){return _0x1a3903>=_0x20f9bf;},'fHWwJ':function(_0x167057,_0x149e24){return _0x167057+_0x149e24;}},_0x1d7148=_0x5a54b6||await getActiveFeatureId();if(!_0x1d7148)throw new Error(_0x5a967c['HeKpj']);const _0x27f95f=await _0x5a967c[_0x1e53f8(0x17c)](getFeature,_0x1d7148),{items:_0x2b4c6e}=await getActionItems(_0x1d7148);console[_0x1e53f8(0x163)]('\x0a📋\x20Feedback\x20for:\x20'+_0x27f95f['name']+'\x20('+_0x27f95f['id']+')\x0a');if(_0x5a967c[_0x1e53f8(0x19d)](_0x2b4c6e['length'],0x0)){console[_0x1e53f8(0x163)](_0x5a967c[_0x1e53f8(0x135)]);return;}for(let _0x5d08c7=0x0;_0x5a967c['NjyqB'](_0x5d08c7,_0x2b4c6e['length']);_0x5d08c7++){const _0x802920=_0x2b4c6e[_0x5d08c7],_0x73c2ff=_0x5a967c[_0x1e53f8(0x1a1)](_0x802920['version'],0x1)?_0x1e53f8(0x145)+_0x802920[_0x1e53f8(0x122)]+')':'',_0x517871=await getItemFeedback(_0x1d7148,_0x802920['id']);if(_0x517871[_0x1e53f8(0x193)][_0x1e53f8(0x1a0)]>0x0){console[_0x1e53f8(0x163)]('Scenario\x20'+(_0x5d08c7+0x1)+':\x20\x22'+_0x802920[_0x1e53f8(0x15d)]+'\x22'+_0x73c2ff+'\x20—\x20'+_0x517871[_0x1e53f8(0x193)][_0x1e53f8(0x1a0)]+_0x1e53f8(0x136));for(const _0x2a8ac6 of _0x517871['unaddressedComments']){const _0x53e04b=new Date(_0x2a8ac6[_0x1e53f8(0x18e)])[_0x1e53f8(0x171)](_0x1e53f8(0x1c6),{'month':_0x5a967c[_0x1e53f8(0x1b4)],'day':_0x5a967c[_0x1e53f8(0x161)]}),_0x124ad0=_0x2a8ac6[_0x1e53f8(0x1cb)]||_0x2a8ac6['authorEmail']||_0x1e53f8(0x11e);console[_0x1e53f8(0x163)](_0x1e53f8(0x1d3)+_0x124ad0+'\x20('+_0x53e04b+_0x1e53f8(0x172)+_0x2a8ac6['content']+'\x22');if(_0x2a8ac6[_0x1e53f8(0x18d)]){const _0x5512a8=await downloadFeedbackImage(_0x2a8ac6[_0x1e53f8(0x18d)],_0x2a8ac6['id']);_0x5512a8&&console['log'](_0x1e53f8(0x19a)+_0x5512a8);}if(_0x2a8ac6['domRef']){const _0x2de2fd=_0x2a8ac6['domRef'][_0x1e53f8(0x1ad)]['split'](_0x5a967c[_0x1e53f8(0x197)])[_0x1e53f8(0x11a)]()?.['split'](':')[0x0]||_0x5a967c['YSZPr'],_0x1a1987=_0x2a8ac6['domRef']['textContent']?'\x20\x22'+_0x2a8ac6['domRef']['textContent'][_0x1e53f8(0x170)](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x2de2fd+'>'+_0x1a1987),console[_0x1e53f8(0x163)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x2a8ac6['domRef']['selector']);}else{if(_0x2a8ac6['spatial']){const _0x2c85fe=_0x2a8ac6[_0x1e53f8(0x155)][_0x1e53f8(0x133)];_0x5a967c[_0x1e53f8(0x19d)](_0x2a8ac6[_0x1e53f8(0x155)]['type'],'point')&&_0x5a967c['FPGbj'](_0x2c85fe['length'],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x2c85fe[0x0]['toFixed'](0x2)+',\x20'+_0x2c85fe[0x1]['toFixed'](0x2)+')'):console[_0x1e53f8(0x163)](_0x1e53f8(0x1b7)+_0x2a8ac6['spatial'][_0x1e53f8(0x12e)]+'\x20at\x20['+_0x2c85fe[_0x1e53f8(0x1ab)](_0x126c58=>_0x126c58[_0x1e53f8(0x1d8)](0x2))['join'](',\x20')+']');}}}if(_0x517871[_0x1e53f8(0x12c)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x598b25 of _0x517871['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x598b25);}}}else console['log']('Scenario\x20'+_0x5a967c['fHWwJ'](_0x5d08c7,0x1)+':\x20\x22'+_0x802920[_0x1e53f8(0x15d)]+'\x22'+_0x73c2ff+'\x20—\x20no\x20comments'),console[_0x1e53f8(0x163)](_0x1e53f8(0x191));console[_0x1e53f8(0x163)]('');}}export async function featureDelete(_0x671f42){const _0x557821=_0x2de799,_0x31de4e={'GLJXF':_0x557821(0x1ec),'HvoyT':_0x557821(0x1e1)},_0x124bad=_0x671f42||await getActiveFeatureId();if(!_0x124bad)throw new Error(_0x31de4e[_0x557821(0x1d6)]);const _0x4daf8a=await getFeature(_0x124bad);await softDeleteFeature(_0x124bad),console['log'](_0x557821(0x1ea)+_0x4daf8a[_0x557821(0x1b3)]+'\x20('+_0x124bad+')'),console['log'](_0x31de4e[_0x557821(0x17a)]+_0x124bad);}export async function featureRestore(_0x442596){const _0x2ec679=_0x2de799,_0x28c38c={'BNunF':function(_0x2d111d,_0x2da73d){return _0x2d111d(_0x2da73d);}};await _0x28c38c['BNunF'](restoreFeature,_0x442596);const _0x102d7f=await _0x28c38c['BNunF'](getFeature,_0x442596);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x102d7f[_0x2ec679(0x1b3)]+'\x20('+_0x442596+')'),displayFeature(_0x102d7f,_0x102d7f[_0x2ec679(0x146)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39a839,_0x4ce307){const _0x3bc7a1=_0x2812,_0xf70a6a=_0x39a839();while(!![]){try{const _0xf0c80e=-parseInt(_0x3bc7a1(0x148))/0x1+-parseInt(_0x3bc7a1(0x149))/0x2+-parseInt(_0x3bc7a1(0x14a))/0x3*(-parseInt(_0x3bc7a1(0x14c))/0x4)+parseInt(_0x3bc7a1(0x14f))/0x5*(-parseInt(_0x3bc7a1(0x158))/0x6)+-parseInt(_0x3bc7a1(0x156))/0x7*(-parseInt(_0x3bc7a1(0x151))/0x8)+-parseInt(_0x3bc7a1(0x153))/0x9*(parseInt(_0x3bc7a1(0x14d))/0xa)+parseInt(_0x3bc7a1(0x155))/0xb*(parseInt(_0x3bc7a1(0x159))/0xc);if(_0xf0c80e===_0x4ce307)break;else _0xf70a6a['push'](_0xf70a6a['shift']());}catch(_0x3d6252){_0xf70a6a['push'](_0xf70a6a['shift']());}}}(_0x23fe,0x55bfa));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function _0x23fe(){const _0x343a13=['5CAqetW','error','48CcbVAd','jkvEx','57312sTSowX','exit','121Pslzgu','377419pOZqwv','once','1422306MrLqDd','742332akTNBc','raHIz','yoVMW','SIGINT','178582mTpBOd','416058clbvOX','20757qslDHP','join','20yoAwzg','100pEPiUt','Valid\x20hooks:\x20'];_0x23fe=function(){return _0x343a13;};return _0x23fe();}function installCancellationHandlers(){const _0x244adf=_0x2812,_0x5e79a3={'yoVMW':_0x244adf(0x147),'raHIz':'SIGTERM','lSHsU':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x354d72=()=>{const _0x29e739=_0x244adf;process[_0x29e739(0x154)](0x0);};process['once'](_0x5e79a3[_0x244adf(0x146)],_0x354d72),process[_0x244adf(0x157)](_0x5e79a3[_0x244adf(0x145)],_0x354d72),process['once'](_0x5e79a3['lSHsU'],_0x354d72),cancellationHandlersInstalled=!![];}function _0x2812(_0x453cc0,_0xefb100){_0x453cc0=_0x453cc0-0x145;const _0x23fe0c=_0x23fe();let _0x28121d=_0x23fe0c[_0x453cc0];return _0x28121d;}export async function hook(_0x48ae20,_0x2da8b9){const _0x5433d0=_0x2812,_0xc855ad={'jkvEx':function(_0x59c298){return _0x59c298();},'LvUrs':function(_0x51b110,_0x3eb017){return _0x51b110(_0x3eb017);}};_0xc855ad[_0x5433d0(0x152)](installCancellationHandlers);const _0x36e07f=HOOKS[_0x48ae20];if(!_0x36e07f){const _0x1fd0e1=Object['keys'](HOOKS)[_0x5433d0(0x14b)](',\x20');console[_0x5433d0(0x150)]('Unknown\x20hook:\x20'+_0x48ae20),console['error'](_0x5433d0(0x14e)+_0x1fd0e1),process[_0x5433d0(0x154)](0x1);}await _0xc855ad['LvUrs'](_0x36e07f,_0x2da8b9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x4faf32=_0x39ce;(function(_0x520cae,_0x143f22){const _0x123f14=_0x39ce,_0x1380bc=_0x520cae();while(!![]){try{const _0x58c1a7=parseInt(_0x123f14(0x105))/0x1*(parseInt(_0x123f14(0x100))/0x2)+parseInt(_0x123f14(0xfd))/0x3*(parseInt(_0x123f14(0x106))/0x4)+-parseInt(_0x123f14(0xfb))/0x5+parseInt(_0x123f14(0xf7))/0x6+-parseInt(_0x123f14(0xfe))/0x7+parseInt(_0x123f14(0x102))/0x8+-parseInt(_0x123f14(0xff))/0x9*(parseInt(_0x123f14(0x103))/0xa);if(_0x58c1a7===_0x143f22)break;else _0x1380bc['push'](_0x1380bc['shift']());}catch(_0x3f43a1){_0x1380bc['push'](_0x1380bc['shift']());}}}(_0x303f,0x56a84));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x39ce(_0x2df153,_0x54113a){_0x2df153=_0x2df153-0xf7;const _0x303f55=_0x303f();let _0x39ce82=_0x303f55[_0x2df153];return _0x39ce82;}import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x4faf32(0xfa);export async function autoPrompt(){const _0x59e809=_0x4faf32,_0x244945={'CrwGR':function(_0x3afbd4,_0x34b4d4){return _0x3afbd4===_0x34b4d4;},'gcYqC':_0x59e809(0xfc),'SEPDI':function(_0x391f60,_0x524043){return _0x391f60(_0x524043);},'fOXzH':function(_0x3150a3,_0x51a938){return _0x3150a3(_0x51a938);}};if(_0x244945[_0x59e809(0xf9)](resolveHookMode(),_0x244945['gcYqC']))return;const _0x177b2=await readHookInput(),_0x3a90e1=_0x177b2?.[_0x59e809(0x104)];if(!_0x3a90e1)return;if(isSessionEnabled(_0x3a90e1)||_0x244945[_0x59e809(0xf8)](hasSessionBeenPrompted,_0x3a90e1))return;_0x244945[_0x59e809(0x101)](markSessionPrompted,_0x3a90e1),console['log'](AUTO_PROMPT_TEXT);}function _0x303f(){const _0x112364=['1478320zbOdfo','1170QSnRnt','session_id','79eRfaWI','12ZlTmZy','2349750gILfvY','SEPDI','CrwGR','\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.','1341300obdXCn','off','553224qtmPis','3155978RVgSUk','51426aqCFTK','15518bkrMCy','fOXzH'];_0x303f=function(){return _0x112364;};return _0x303f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x34cb(_0x408118,_0x155378){_0x408118=_0x408118-0x8a;const _0x33bda9=_0x33bd();let _0x34cb27=_0x33bda9[_0x408118];return _0x34cb27;}(function(_0x3952f4,_0x46b1e3){const _0x2262cf=_0x34cb,_0x4ccc90=_0x3952f4();while(!![]){try{const _0x52addb=-parseInt(_0x2262cf(0x8a))/0x1*(-parseInt(_0x2262cf(0x8e))/0x2)+parseInt(_0x2262cf(0x95))/0x3*(-parseInt(_0x2262cf(0x8c))/0x4)+parseInt(_0x2262cf(0x9a))/0x5*(parseInt(_0x2262cf(0x94))/0x6)+parseInt(_0x2262cf(0x97))/0x7+parseInt(_0x2262cf(0x93))/0x8*(parseInt(_0x2262cf(0x8b))/0x9)+parseInt(_0x2262cf(0x8f))/0xa*(-parseInt(_0x2262cf(0x96))/0xb)+-parseInt(_0x2262cf(0x92))/0xc*(parseInt(_0x2262cf(0x91))/0xd);if(_0x52addb===_0x46b1e3)break;else _0x4ccc90['push'](_0x4ccc90['shift']());}catch(_0x529ce8){_0x4ccc90['push'](_0x4ccc90['shift']());}}}(_0x33bd,0x94bd5));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x33bd(){const _0x45471f=['4055390mHlZnE','.\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`.','13wPENWR','21270300HybOoB','9123536qyUXhx','4079010lPnPeV','933054yaeSGn','11QsVnvP','5111792dOUgbg','VxRcb','\x20and\x20branch\x20\x27','5uzgzQK','CLAUDE_SESSION_ID','3467ZQEsVj','9uFrQoY','4vcWmxj','master','316bELUiU'];_0x33bd=function(){return _0x45471f;};return _0x33bd();}export async function disable(_0xf5caed){const _0x548d5e=_0x34cb,_0xd9659b={'VxRcb':function(_0x11c162,_0x24f313){return _0x11c162!==_0x24f313;},'AkvbY':'main','NLFEg':function(_0x1cd3bb,_0x19871c){return _0x1cd3bb(_0x19871c);},'gkNas':function(_0x23aabb,_0x1f85b6){return _0x23aabb!==_0x1f85b6;}},_0xa6aae9=_0xf5caed||process['env'][_0x548d5e(0x9b)]||'';_0xa6aae9&&disableSession(_0xa6aae9);const _0x346ce0=getCurrentBranch();_0x346ce0&&_0xd9659b[_0x548d5e(0x98)](_0x346ce0,_0xd9659b['AkvbY'])&&_0x346ce0!==_0x548d5e(0x8d)&&disableBranch(_0x346ce0),_0xd9659b['NLFEg'](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x346ce0&&_0xd9659b['gkNas'](_0x346ce0,'main')&&_0x346ce0!==_0x548d5e(0x8d)?_0x548d5e(0x99)+_0x346ce0+'\x27':'')+_0x548d5e(0x90));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47a989,_0x552708){const _0x1fb058=_0x4f7b,_0x56ca2c=_0x47a989();while(!![]){try{const _0x1fda65=-parseInt(_0x1fb058(0x165))/0x1*(-parseInt(_0x1fb058(0x162))/0x2)+parseInt(_0x1fb058(0x16f))/0x3+parseInt(_0x1fb058(0x16d))/0x4+-parseInt(_0x1fb058(0x16e))/0x5*(parseInt(_0x1fb058(0x160))/0x6)+-parseInt(_0x1fb058(0x15f))/0x7+-parseInt(_0x1fb058(0x16b))/0x8+-parseInt(_0x1fb058(0x16a))/0x9;if(_0x1fda65===_0x552708)break;else _0x56ca2c['push'](_0x56ca2c['shift']());}catch(_0x4d84f6){_0x56ca2c['push'](_0x56ca2c['shift']());}}}(_0x469c,0xc0d0c));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 _0x4f7b(_0x485e71,_0x430fe1){_0x485e71=_0x485e71-0x15f;const _0x469ca4=_0x469c();let _0x4f7bda=_0x469ca4[_0x485e71];return _0x4f7bda;}export async function enable(_0x4c023e){const _0xc81cab=_0x4f7b,_0x1a4af1={'KNQxf':function(_0x23425e){return _0x23425e();},'lgOjZ':function(_0x23e9ef){return _0x23e9ef();},'qCEKU':function(_0x284b97,_0x2910ee){return _0x284b97!==_0x2910ee;},'kvZhq':'master','AnMBB':function(_0x277594,_0x1d440e){return _0x277594(_0x1d440e);}},_0x42db88=_0x4c023e||process['env'][_0xc81cab(0x168)]||'',_0x1743b7=Boolean(_0x4c023e),_0x50bd68=await _0x1a4af1['KNQxf'](getToken);if(!_0x50bd68){const _0xeb9122=_0x1743b7?'ranger\x20setup\x20--opencode':'ranger\x20setup',_0x1db87e=_0x1743b7?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';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`'+_0xeb9122+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x1db87e);return;}try{await _0x1a4af1[_0xc81cab(0x161)](update);}catch{}_0x42db88&&enableSession(_0x42db88);const _0x2d2a1a=_0x1a4af1['lgOjZ'](getCurrentBranch),_0xcdf094=_0x2d2a1a&&_0x2d2a1a!==_0xc81cab(0x163)&&_0x1a4af1[_0xc81cab(0x167)](_0x2d2a1a,_0x1a4af1[_0xc81cab(0x169)])?_0xc81cab(0x16c)+_0x2d2a1a+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x110878=getRangerSkillContent();_0x1a4af1['AnMBB'](printBlock,'#\x20RANGER\x20ENABLED'+_0xcdf094+_0xc81cab(0x166)+_0x110878+_0xc81cab(0x164));}function _0x469c(){const _0x54076c=['\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','qCEKU','CLAUDE_SESSION_ID','kvZhq','2114649fvOLHR','5291424rZBbSn','\x0a\x0a**Branch\x20\x27','1238936ZRLzlP','2773315PzJvjm','4381233YfHHws','6572146NSZKHx','6dMpomD','KNQxf','2819114uHPInu','main','\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`.','1QnPOGe'];_0x469c=function(){return _0x54076c;};return _0x469c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d2eec,_0x224228){const _0x3dbfdc=_0x385b,_0x582075=_0x4d2eec();while(!![]){try{const _0x99c31d=parseInt(_0x3dbfdc(0x9f))/0x1+-parseInt(_0x3dbfdc(0xa0))/0x2+-parseInt(_0x3dbfdc(0xa3))/0x3+parseInt(_0x3dbfdc(0xa5))/0x4+-parseInt(_0x3dbfdc(0xa6))/0x5+parseInt(_0x3dbfdc(0xa4))/0x6*(parseInt(_0x3dbfdc(0xa7))/0x7)+-parseInt(_0x3dbfdc(0x9e))/0x8*(-parseInt(_0x3dbfdc(0xa2))/0x9);if(_0x99c31d===_0x224228)break;else _0x582075['push'](_0x582075['shift']());}catch(_0x17abd8){_0x582075['push'](_0x582075['shift']());}}}(_0x45e5,0x6b336));function _0x385b(_0x8e2946,_0x1af222){_0x8e2946=_0x8e2946-0x9e;const _0x45e56c=_0x45e5();let _0x385bca=_0x45e56c[_0x8e2946];return _0x385bca;}import{printBlock,getEnabledSessionId}from'./output.js';function _0x45e5(){const _0x3f480d=['12TRACWG','838712TIhhfJ','806310QrYrkd','685125SyWJuV','5129064AKgKJe','328074vFMuWw','1245070fHiSON','AguzP','9dfljPS','455232nasBdf'];_0x45e5=function(){return _0x3f480d;};return _0x45e5();}export async function exitPlanMode(_0x2bb7cb){const _0x4e09fb=_0x385b,_0x3df945={'AguzP':function(_0x4c04cd,_0x2f236a){return _0x4c04cd(_0x2f236a);}},_0x81c645=await getEnabledSessionId(_0x2bb7cb);if(!_0x81c645)return;_0x3df945[_0x4e09fb(0xa1)](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a223c,_0x6eb491){var _0x47afde=_0xbd04,_0x24fa3e=_0x5a223c();while(!![]){try{var _0x5bb46e=-parseInt(_0x47afde(0xad))/0x1*(parseInt(_0x47afde(0xb4))/0x2)+parseInt(_0x47afde(0xb0))/0x3*(parseInt(_0x47afde(0xb5))/0x4)+-parseInt(_0x47afde(0xaf))/0x5+-parseInt(_0x47afde(0xb1))/0x6*(-parseInt(_0x47afde(0xac))/0x7)+-parseInt(_0x47afde(0xb2))/0x8*(-parseInt(_0x47afde(0xab))/0x9)+parseInt(_0x47afde(0xae))/0xa+parseInt(_0x47afde(0xaa))/0xb*(-parseInt(_0x47afde(0xb3))/0xc);if(_0x5bb46e===_0x6eb491)break;else _0x24fa3e['push'](_0x24fa3e['shift']());}catch(_0x43a598){_0x24fa3e['push'](_0x24fa3e['shift']());}}}(_0x363e,0x9726b));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';function _0x363e(){var _0x3f3758=['39SrwANh','58650hDxGjW','2980592JzgDTq','2892pvNAPQ','8ObkbQB','58692YdXplp','9064tdrhVB','18KFEeaG','427DPxqXu','91299zRqhgt','2417810cofxgO','2955290bReuSC'];_0x363e=function(){return _0x3f3758;};return _0x363e();}function _0xbd04(_0x251a81,_0x2bc184){_0x251a81=_0x251a81-0xaa;var _0x363e1d=_0x363e();var _0xbd048c=_0x363e1d[_0x251a81];return _0xbd048c;}export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x252d1c,_0x485e38){const _0x4c585e=_0x573c,_0xf6da8b=_0x252d1c();while(!![]){try{const _0x55fa17=-parseInt(_0x4c585e(0x131))/0x1+parseInt(_0x4c585e(0x136))/0x2+parseInt(_0x4c585e(0x133))/0x3+-parseInt(_0x4c585e(0x135))/0x4*(-parseInt(_0x4c585e(0x130))/0x5)+parseInt(_0x4c585e(0x12f))/0x6+-parseInt(_0x4c585e(0x138))/0x7*(parseInt(_0x4c585e(0x12d))/0x8)+-parseInt(_0x4c585e(0x134))/0x9*(parseInt(_0x4c585e(0x132))/0xa);if(_0x55fa17===_0x485e38)break;else _0xf6da8b['push'](_0xf6da8b['shift']());}catch(_0x28dbf6){_0xf6da8b['push'](_0xf6da8b['shift']());}}}(_0x4aa3,0x1bc5c));import{isSessionEnabled}from'../utils/sessionCache.js';function _0x573c(_0x224ad2,_0x340976){_0x224ad2=_0x224ad2-0x12d;const _0x4aa3bc=_0x4aa3();let _0x573ccd=_0x4aa3bc[_0x224ad2];return _0x573ccd;}export function printBlock(_0x2b89cf){const _0x457e12=_0x573c;console[_0x457e12(0x137)](_0x2b89cf);}export async function readHookInput(){const _0x2510bb=_0x573c;let _0x557d41='';try{for await(const _0x33ab06 of process['stdin']){_0x557d41+=_0x33ab06;}}catch{return null;}if(!_0x557d41['trim']())return null;try{return JSON[_0x2510bb(0x12e)](_0x557d41);}catch{return null;}}function _0x4aa3(){const _0x512a1a=['1695590fdzXNC','532551zJaSWP','9vaeGiG','1388BUfOmC','454834qZIrVe','log','7tRRwHm','1364872UfepJs','parse','1018134oqdspx','1165CDscZW','201550kVxYdI'];_0x4aa3=function(){return _0x512a1a;};return _0x4aa3();}export async function getEnabledSessionId(_0x303cae){if(_0x303cae)return isSessionEnabled(_0x303cae)?_0x303cae:null;const _0xaf1699=await readHookInput(),_0x71bf5c=_0xaf1699?.['session_id'];if(!_0x71bf5c||!isSessionEnabled(_0x71bf5c))return null;return _0x71bf5c;}export async function getEnabledHookContext(_0x48cc7e){const _0x597ccf={'WLQiv':function(_0x1b3cb8,_0x50e42c){return _0x1b3cb8(_0x50e42c);}};if(_0x48cc7e){if(!_0x597ccf['WLQiv'](isSessionEnabled,_0x48cc7e))return null;return{'sessionId':_0x48cc7e,'input':{'session_id':_0x48cc7e}};}const _0xc931cf=await readHookInput(),_0x1b7d17=_0xc931cf?.['session_id'];if(!_0x1b7d17||!isSessionEnabled(_0x1b7d17))return null;return{'sessionId':_0x1b7d17,'input':_0xc931cf};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x561f89,_0x5f6fba){const _0x7f1602=_0xc0ee,_0x1175ba=_0x561f89();while(!![]){try{const _0x547fec=parseInt(_0x7f1602(0xb4))/0x1+parseInt(_0x7f1602(0xb5))/0x2*(-parseInt(_0x7f1602(0xb0))/0x3)+-parseInt(_0x7f1602(0xb3))/0x4*(-parseInt(_0x7f1602(0xab))/0x5)+parseInt(_0x7f1602(0xb6))/0x6+-parseInt(_0x7f1602(0xac))/0x7*(-parseInt(_0x7f1602(0xad))/0x8)+-parseInt(_0x7f1602(0xb7))/0x9*(-parseInt(_0x7f1602(0xa9))/0xa)+-parseInt(_0x7f1602(0xb2))/0xb;if(_0x547fec===_0x5f6fba)break;else _0x1175ba['push'](_0x1175ba['shift']());}catch(_0x1bb04f){_0x1175ba['push'](_0x1175ba['shift']());}}}(_0x4c26,0x21544));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0xc0ee(_0x786892,_0x484aab){_0x786892=_0x786892-0xa9;const _0x4c26c8=_0x4c26();let _0xc0eea2=_0x4c26c8[_0x786892];return _0xc0eea2;}function _0x4c26(){const _0x9d4589=['686819AHltCV','8EhrwUk','RBFiZ','===\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===','33IinMiK','plan','4009940iLKYoT','4emGcWt','190254JhLjKa','14318UdsnjO','1368096jEtgTW','8523hegRkK','430qWjpOq','sessionId','113485YfcNmD'];_0x4c26=function(){return _0x9d4589;};return _0x4c26();}export async function planReminder(_0x48ae26){const _0x3df84e=_0xc0ee,_0x3c3767={'NDLZF':function(_0x51bbeb,_0x49b10a){return _0x51bbeb!==_0x49b10a;},'EQCsj':_0x3df84e(0xb1),'RBFiZ':function(_0x664fad,_0x34613b){return _0x664fad(_0x34613b);}},_0x3ab361=await getEnabledHookContext(_0x48ae26);if(!_0x3ab361)return;if(_0x3c3767['NDLZF'](_0x3ab361['input']['permission_mode'],_0x3c3767['EQCsj']))return;if(!shouldShowPlanReminder(_0x3ab361[_0x3df84e(0xaa)]))return;_0x3c3767[_0x3df84e(0xae)](printBlock,_0x3df84e(0xaf));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x642e(_0x541ff6,_0x345f59){_0x541ff6=_0x541ff6-0x6b;const _0xb1a33e=_0xb1a3();let _0x642ea0=_0xb1a33e[_0x541ff6];return _0x642ea0;}(function(_0x508ebd,_0x351873){const _0x14ff32=_0x642e,_0x228cde=_0x508ebd();while(!![]){try{const _0x1363ee=parseInt(_0x14ff32(0x6e))/0x1*(-parseInt(_0x14ff32(0x6b))/0x2)+parseInt(_0x14ff32(0x73))/0x3*(-parseInt(_0x14ff32(0x74))/0x4)+parseInt(_0x14ff32(0x75))/0x5+parseInt(_0x14ff32(0x72))/0x6+-parseInt(_0x14ff32(0x70))/0x7+-parseInt(_0x14ff32(0x6d))/0x8*(parseInt(_0x14ff32(0x71))/0x9)+parseInt(_0x14ff32(0x6c))/0xa;if(_0x1363ee===_0x351873)break;else _0x228cde['push'](_0x228cde['shift']());}catch(_0x5e6fd2){_0x228cde['push'](_0x228cde['shift']());}}}(_0xb1a3,0x2c187));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x3692b0){const _0x2ba967=_0x642e,_0xca87d0=await getEnabledSessionId(_0x3692b0);if(!_0xca87d0)return;printBlock(_0x2ba967(0x6f));}function _0xb1a3(){const _0x4b9746=['20iWNJrX','1801470yPLfpP','1558ggKfdS','2827570LhbNPD','8JdFxZz','153BofJdo','===\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===','324324tBMgqL','1276749ABgQeb','919674NAuYKp','185001cvhOVa'];_0xb1a3=function(){return _0x4b9746;};return _0xb1a3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1544(_0x30b775,_0xf65b5f){_0x30b775=_0x30b775-0x13d;const _0x5304b5=_0x5304();let _0x15447f=_0x5304b5[_0x30b775];return _0x15447f;}function _0x5304(){const _0x458647=['2341140QyrwSy','stringify','3DimjiW','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.','18681066TErNRS','159394eUNzWs','RigBt','556440KwprTk','1603898dAScNY','21EaehtI','5274040WjKbiA','8075392QeRsoW','log'];_0x5304=function(){return _0x458647;};return _0x5304();}(function(_0x48a9a4,_0x1777df){const _0x46bcdc=_0x1544,_0x540b04=_0x48a9a4();while(!![]){try{const _0x577d06=-parseInt(_0x46bcdc(0x13e))/0x1+-parseInt(_0x46bcdc(0x141))/0x2*(parseInt(_0x46bcdc(0x148))/0x3)+-parseInt(_0x46bcdc(0x146))/0x4+-parseInt(_0x46bcdc(0x143))/0x5+-parseInt(_0x46bcdc(0x140))/0x6*(-parseInt(_0x46bcdc(0x142))/0x7)+parseInt(_0x46bcdc(0x144))/0x8+parseInt(_0x46bcdc(0x13d))/0x9;if(_0x577d06===_0x1777df)break;else _0x540b04['push'](_0x540b04['shift']());}catch(_0x1e2101){_0x540b04['push'](_0x540b04['shift']());}}}(_0x5304,0xba01a));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x12b8d8){const _0x9fc006=_0x1544,_0x257d0c={'RigBt':function(_0x8a709b){return _0x8a709b();},'Ibxvg':function(_0x2163c5,_0x456cfe){return _0x2163c5(_0x456cfe);},'eIXzI':'PostToolUse'},_0x550fd5=await getEnabledSessionId(_0x12b8d8);if(!_0x550fd5)return;updateBranchTracking(_0x550fd5);const _0x3559a1=await _0x257d0c[_0x9fc006(0x13f)](getToken);if(!_0x3559a1)return;const _0x3f4d8f=_0x257d0c['Ibxvg'](getSessionEntry,_0x550fd5);if(_0x3f4d8f){const _0x511c89={'hookSpecificOutput':{'hookEventName':_0x257d0c['eIXzI'],'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[_0x9fc006(0x147)](_0x511c89));return;}const _0x8e3d6a={'hookSpecificOutput':{'hookEventName':_0x257d0c['eIXzI'],'additionalContext':_0x9fc006(0x149)}};console[_0x9fc006(0x145)](JSON[_0x9fc006(0x147)](_0x8e3d6a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x33bf07,_0x1f4de0){const _0x3485af=_0xdd1e,_0x21d380=_0x33bf07();while(!![]){try{const _0x53d5e2=-parseInt(_0x3485af(0x129))/0x1*(parseInt(_0x3485af(0x12a))/0x2)+-parseInt(_0x3485af(0x122))/0x3*(parseInt(_0x3485af(0x128))/0x4)+parseInt(_0x3485af(0x12b))/0x5*(-parseInt(_0x3485af(0x121))/0x6)+parseInt(_0x3485af(0x124))/0x7+-parseInt(_0x3485af(0x12c))/0x8+-parseInt(_0x3485af(0x127))/0x9+parseInt(_0x3485af(0x123))/0xa*(parseInt(_0x3485af(0x125))/0xb);if(_0x53d5e2===_0x1f4de0)break;else _0x21d380['push'](_0x21d380['shift']());}catch(_0x4643f6){_0x21d380['push'](_0x21d380['shift']());}}}(_0xcdc4,0xb7d37));function _0xdd1e(_0xbcb643,_0x47e644){_0xbcb643=_0xbcb643-0x121;const _0xcdc4d8=_0xcdc4();let _0xdd1ef8=_0xcdc4d8[_0xbcb643];return _0xdd1ef8;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x5c004b){const _0x452142=_0xdd1e,_0x3bb420={'XtcIE':function(_0x1ab13e,_0x2b2fef){return _0x1ab13e(_0x2b2fef);}},_0x47aad1=await getEnabledSessionId(_0x5c004b);if(!_0x47aad1)return;try{const _0x41ca5b=await getToken();if(!_0x41ca5b)return;_0x3bb420['XtcIE'](printBlock,_0x452142(0x126));}catch{}}function _0xcdc4(){const _0x4b8e1c=['5331312IjxOzr','399268dHeTFE','6249TrKQut','418YKipkF','3179260DQVoZD','1230512pYDRNg','12AHaqTv','42YNkwmx','5790XTbKAI','3606267RZhXuc','94215XIkpqM','===\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`.'];_0xcdc4=function(){return _0x4b8e1c;};return _0xcdc4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x881251,_0x13a5eb){const _0x220c49=_0x3c5b,_0x345b3d=_0x881251();while(!![]){try{const _0x51164c=-parseInt(_0x220c49(0xab))/0x1+parseInt(_0x220c49(0xaf))/0x2+parseInt(_0x220c49(0xad))/0x3*(-parseInt(_0x220c49(0xa9))/0x4)+parseInt(_0x220c49(0xae))/0x5+-parseInt(_0x220c49(0xb0))/0x6+parseInt(_0x220c49(0xb4))/0x7+parseInt(_0x220c49(0xb3))/0x8*(-parseInt(_0x220c49(0xa8))/0x9);if(_0x51164c===_0x13a5eb)break;else _0x345b3d['push'](_0x345b3d['shift']());}catch(_0xe58b30){_0x345b3d['push'](_0x345b3d['shift']());}}}(_0xc3b1,0x5188e));function _0xc3b1(){const _0x575dc2=['kTMjF','841256KJjbGE','2693019UoIpfs','27kQDXBv','4ChgaDP','CLAUDE_SESSION_ID','41873lDcgIR','session_id','1219737fSsKJQ','3253095IzgRBp','309274uQBEHy','552504vFKaBz','env'];_0xc3b1=function(){return _0x575dc2;};return _0xc3b1();}function _0x3c5b(_0x5e7e9a,_0x42c053){_0x5e7e9a=_0x5e7e9a-0xa8;const _0xc3b172=_0xc3b1();let _0x3c5bdf=_0xc3b172[_0x5e7e9a];return _0x3c5bdf;}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x553111){const _0x5d053d=_0x3c5b,_0x1c683c={'kTMjF':function(_0x1d9d2f){return _0x1d9d2f();},'pabcL':'clear'},_0x342023=process[_0x5d053d(0xb1)][_0x5d053d(0xaa)];let _0x96f61d=_0x553111,_0x4ab85e;if(!_0x553111){if(_0x342023&&!isSessionEnabled(_0x342023))return;const _0x5d0b18=await _0x1c683c[_0x5d053d(0xb2)](readHookInput);_0x96f61d=_0x5d0b18?.[_0x5d053d(0xac)]||_0x342023,_0x4ab85e=_0x5d0b18?.['reason'];}if(!_0x96f61d)return;_0x4ab85e===_0x1c683c['pabcL']&&recordEnabledSessionCleared(_0x96f61d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x25f44e=_0x4932;(function(_0x521f63,_0x59a055){const _0x509770=_0x4932,_0xf64d32=_0x521f63();while(!![]){try{const _0x3bd2a1=parseInt(_0x509770(0x1b6))/0x1+-parseInt(_0x509770(0x1b0))/0x2+parseInt(_0x509770(0x1a6))/0x3*(parseInt(_0x509770(0x1a8))/0x4)+parseInt(_0x509770(0x1ae))/0x5+parseInt(_0x509770(0x1a2))/0x6*(parseInt(_0x509770(0x1b3))/0x7)+parseInt(_0x509770(0x1b5))/0x8+-parseInt(_0x509770(0x1ab))/0x9;if(_0x3bd2a1===_0x59a055)break;else _0xf64d32['push'](_0xf64d32['shift']());}catch(_0x55c308){_0xf64d32['push'](_0xf64d32['shift']());}}}(_0x198e,0x746d3));import{appendFile}from'fs/promises';function _0x198e(){const _0x10fb8f=['xhwhp','env','RbgMb','stringify','trackCommandEnd','1578wGFaTW','XykHH','trackCommandStart','session_id','9PYPeyi','iuBNl','478748MjTVDK','utjfY','parse','7623009CvfOLS','SessionStart','UajpK','1171895xCOIWP','=================================================================\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=================================================================','1531698mGfCyH','NVBAZ','ncfLG','13643AExxzN','hsSEh','365464dEvyrp','938023xBaHGx','main'];_0x198e=function(){return _0x10fb8f;};return _0x198e();}import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';function _0x4932(_0x1aafcb,_0x5decce){_0x1aafcb=_0x1aafcb-0x1a2;const _0x198ec3=_0x198e();let _0x4932c0=_0x198ec3[_0x1aafcb];return _0x4932c0;}const RANGER_AUTO_ENABLED_PROMPT=_0x25f44e(0x1af);export async function sessionStart(_0x29f1b2){const _0x96241b=_0x25f44e,_0x4d3b94={'aAlwn':function(_0x422bf0,_0xba77a6){return _0x422bf0||_0xba77a6;},'sfVAJ':_0x96241b(0x1a5),'hkcIz':'source','XykHH':function(_0x15d732,_0x57aba3,_0x253a66){return _0x15d732(_0x57aba3,_0x253a66);},'iuBNl':function(_0x534d9b,_0x1cff2b){return _0x534d9b(_0x1cff2b);},'hsSEh':function(_0x132561,_0x12dec1){return _0x132561(_0x12dec1);},'UajpK':function(_0x88e376,_0xf3b25){return _0x88e376===_0xf3b25;},'utjfY':function(_0x5e011f){return _0x5e011f();},'vgzNj':function(_0x4e6577,_0x39696d){return _0x4e6577(_0x39696d);},'RbgMb':'hook:session-start','bFrpK':'success','RgZtC':function(_0x495f7e){return _0x495f7e();},'xhwhp':function(_0x5ae8f3,_0x53bbc4){return _0x5ae8f3!==_0x53bbc4;},'ncfLG':'master','cfbPR':_0x96241b(0x1ac),'NVBAZ':function(_0x267b14,_0x1aa13c){return _0x267b14+_0x1aa13c;}};let _0x2c0a66=_0x4d3b94['aAlwn'](_0x29f1b2,''),_0x4adffd;if(!_0x29f1b2){let _0x1b160c='';for await(const _0x5596c1 of process['stdin']){_0x1b160c+=_0x5596c1;}try{const _0xb3a6c6=JSON[_0x96241b(0x1aa)](_0x1b160c);_0x2c0a66=_0xb3a6c6[_0x4d3b94['sfVAJ']]||'',_0x4adffd=_0xb3a6c6[_0x4d3b94['hkcIz']];}catch{}const _0x3c6cc2=process[_0x96241b(0x1b9)]['CLAUDE_ENV_FILE'];if(_0x3c6cc2&&_0x2c0a66)try{await _0x4d3b94[_0x96241b(0x1a3)](appendFile,_0x3c6cc2,'export\x20CLAUDE_SESSION_ID=\x22'+_0x2c0a66+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x2c0a66){_0x4d3b94[_0x96241b(0x1a7)](shouldAutoEnableAfterClear,_0x4adffd)&&_0x4d3b94['iuBNl'](autoEnableAfterClear,_0x2c0a66);_0x4d3b94[_0x96241b(0x1b4)](initBranchTracking,_0x2c0a66);_0x4d3b94[_0x96241b(0x1ad)](_0x4d3b94[_0x96241b(0x1a9)](resolveHookMode),'on')&&_0x4d3b94['vgzNj'](enableSession,_0x2c0a66);const _0x8a4e61=isSessionEnabled(_0x2c0a66);try{const _0x36f77a=createTelemetryCollector(_0x4d3b94[_0x96241b(0x1ba)]);await _0x36f77a[_0x96241b(0x1a4)]({'sessionId':_0x2c0a66,'hooksEnabled':_0x8a4e61}),await _0x36f77a[_0x96241b(0x1bc)](_0x4d3b94['bFrpK']);}catch{}if(_0x8a4e61){const _0x3b545c=_0x4d3b94['RgZtC'](getCurrentBranch),_0x42c1aa=_0x3b545c&&_0x3b545c!==_0x96241b(0x1b7)&&_0x4d3b94[_0x96241b(0x1b8)](_0x3b545c,_0x4d3b94[_0x96241b(0x1b2)])?'\x20(Branch:\x20'+_0x3b545c+')':'',_0x27e331={'hookSpecificOutput':{'hookEventName':_0x4d3b94['cfbPR'],'additionalContext':_0x4d3b94[_0x96241b(0x1b1)](RANGER_AUTO_ENABLED_PROMPT,_0x42c1aa)}};console['log'](JSON[_0x96241b(0x1bb)](_0x27e331));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1ce9(){const _0x22fd50=['status','verified','UQYtZ','trackCommandEnd','24510bTxfZI','blocked','829649fgIxCd','Stop','10244328hLwUYx','34JhKrTf','NHudP','2196rwguAK','RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20','filter','6107840DicGFX','featureId','XXtsq','uvXnG','stringify','7JpwUsO','https://dashboard.ranger.net/features/','success','8837946VcqWqG','7150860ojiTCz','hkmSl','sessionId','GnwEb','128355IajFJz'];_0x1ce9=function(){return _0x22fd50;};return _0x1ce9();}(function(_0xa9fc58,_0x5b7f07){const _0x204904=_0x502f,_0x5025f4=_0xa9fc58();while(!![]){try{const _0x3f5996=-parseInt(_0x204904(0xc4))/0x1+-parseInt(_0x204904(0xc7))/0x2*(-parseInt(_0x204904(0xd9))/0x3)+parseInt(_0x204904(0xcc))/0x4+-parseInt(_0x204904(0xd5))/0x5+parseInt(_0x204904(0xd4))/0x6+parseInt(_0x204904(0xd1))/0x7*(-parseInt(_0x204904(0xc6))/0x8)+parseInt(_0x204904(0xc9))/0x9*(parseInt(_0x204904(0xc2))/0xa);if(_0x3f5996===_0x5b7f07)break;else _0x5025f4['push'](_0x5025f4['shift']());}catch(_0x5bb1d9){_0x5025f4['push'](_0x5025f4['shift']());}}}(_0x1ce9,0xbfa52));import{getToken}from'../utils/keychain.js';function _0x502f(_0x2d9d4c,_0x38911a){_0x2d9d4c=_0x2d9d4c-0xc1;const _0x1ce960=_0x1ce9();let _0x502f47=_0x1ce960[_0x2d9d4c];return _0x502f47;}import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x38aa32){const _0x3b6fe9=_0x502f,_0x4092e4={'NHudP':function(_0x1d3311,_0x1c6a0d){return _0x1d3311(_0x1c6a0d);},'FHoef':function(_0x29cf80,_0xa6b4c2,_0x5614fd,_0x4a6f1a){return _0x29cf80(_0xa6b4c2,_0x5614fd,_0x4a6f1a);},'XXtsq':function(_0x36bb6e,_0x3febb3){return _0x36bb6e&&_0x3febb3;},'ZDmiA':function(_0x2722c6,_0x210644){return _0x2722c6&&_0x210644;},'uvXnG':function(_0x160cb6,_0x2b040e,_0x6e8fd){return _0x160cb6(_0x2b040e,_0x6e8fd);}},_0x469be3=await _0x4092e4['NHudP'](getEnabledHookContext,_0x38aa32),_0x179778=_0x469be3?.['sessionId']??null;let _0x9d6834=!![];if(!_0x179778){await _0x4092e4['FHoef'](trackStop,_0x179778,![],_0x9d6834);return;}try{const _0x9259f=_0x4092e4['NHudP'](getSessionEntry,_0x179778);if(!_0x9259f){await trackStop(_0x179778,!![],_0x9d6834);return;}const _0x2970fe=await getToken(),_0x22fb7d=_0x3b6fe9(0xd2)+_0x9259f['featureId'];let _0x572e85=null,_0x1a2a1d=![],_0x215530=![];if(_0x2970fe)try{const _0x460943=await _0x4092e4[_0x3b6fe9(0xc8)](getFeature,_0x9259f[_0x3b6fe9(0xcd)]);_0x572e85=_0x460943['currentSessionId']??null;const _0x4e7dc2=_0x460943['checklistItems'][_0x3b6fe9(0xcb)](_0x2f6464=>_0x2f6464[_0x3b6fe9(0xd7)]===_0x572e85);_0x1a2a1d=_0x4e7dc2['some'](_0x37b1cb=>_0x37b1cb['status']!==_0x3b6fe9(0xdb)&&_0x37b1cb['status']!==_0x3b6fe9(0xc3)&&_0x37b1cb['status']!=='closed'&&_0x37b1cb['status']!=='incomplete'),_0x215530=_0x4e7dc2['some'](_0x33681d=>_0x33681d[_0x3b6fe9(0xda)]==='verification_in_progress');}catch{}if(_0x4092e4[_0x3b6fe9(0xce)](_0x2970fe,_0x572e85)&&_0x1a2a1d){if(!_0x215530&&shouldShowStopReminder(_0x179778)){const _0x59f04b={'hookSpecificOutput':{'hookEventName':_0x3b6fe9(0xc5),'additionalContext':_0x3b6fe9(0xca)+_0x22fb7d}};console['log'](JSON[_0x3b6fe9(0xd0)](_0x59f04b));}}if(_0x4092e4['ZDmiA'](_0x2970fe,_0x572e85)&&!_0x1a2a1d)try{await _0x4092e4[_0x3b6fe9(0xcf)](concludeSession,_0x9259f['featureId'],_0x572e85);}catch{}await trackStop(_0x179778,!![],_0x9d6834);return;}catch{await trackStop(_0x179778,!![],_0x9d6834);return;}}async function trackStop(_0x3157e6,_0x3ad502,_0x27dd03){const _0x31f577=_0x502f,_0x3525d2={'kgTIK':function(_0xe509a9,_0xef3afb){return _0xe509a9(_0xef3afb);},'GnwEb':'hook:stop','UQYtZ':function(_0xc18e8a,_0x394a52){return _0xc18e8a??_0x394a52;},'hkmSl':_0x31f577(0xd3)};try{const _0x43aa32=_0x3525d2['kgTIK'](createTelemetryCollector,_0x3525d2[_0x31f577(0xd8)]);await _0x43aa32['trackCommandStart']({'sessionId':_0x3525d2[_0x31f577(0xdc)](_0x3157e6,undefined),'hooksEnabled':_0x3ad502,'stopAllowed':_0x27dd03}),await _0x43aa32[_0x31f577(0xc1)](_0x3525d2[_0x31f577(0xd6)]);}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x41da(){var _0x395e27=['77rpyDBF','3160090CPLnkB','1285828hNWvRq','792664oNgmOh','6RdWZOo','2165265UrIzVq','10WBsLBx','5742247vpTEyU','182570OELker','1160540eFOLZq','45atMrmK'];_0x41da=function(){return _0x395e27;};return _0x41da();}(function(_0x4c37e8,_0x2f9301){var _0x1eba61=_0x2255,_0x469b95=_0x4c37e8();while(!![]){try{var _0x354abe=-parseInt(_0x1eba61(0x1db))/0x1*(-parseInt(_0x1eba61(0x1e4))/0x2)+parseInt(_0x1eba61(0x1e3))/0x3+parseInt(_0x1eba61(0x1e0))/0x4+parseInt(_0x1eba61(0x1df))/0x5+-parseInt(_0x1eba61(0x1e2))/0x6*(parseInt(_0x1eba61(0x1da))/0x7)+-parseInt(_0x1eba61(0x1e1))/0x8*(parseInt(_0x1eba61(0x1dd))/0x9)+parseInt(_0x1eba61(0x1dc))/0xa*(-parseInt(_0x1eba61(0x1de))/0xb);if(_0x354abe===_0x2f9301)break;else _0x469b95['push'](_0x469b95['shift']());}catch(_0xe5d6fc){_0x469b95['push'](_0x469b95['shift']());}}}(_0x41da,0x704be));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';function _0x2255(_0x5213f4,_0x18bede){_0x5213f4=_0x5213f4-0x1da;var _0x41da23=_0x41da();var _0x225515=_0x41da23[_0x5213f4];return _0x225515;}export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
|