@ranger-testing/ranger-cli 3.0.1-alpha.aab0a1c-26 → 3.0.1-alpha.ffffb5b-28
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/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/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -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/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/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2f2042=_0x6a14;(function(_0xc4e5eb,_0x22a47d){const _0x592e61=_0x6a14,_0x40b25c=_0xc4e5eb();while(!![]){try{const _0x460202=-parseInt(_0x592e61(0x1da))/0x1+parseInt(_0x592e61(0x246))/0x2+-parseInt(_0x592e61(0x1c6))/0x3*(-parseInt(_0x592e61(0x21b))/0x4)+parseInt(_0x592e61(0x1e1))/0x5*(parseInt(_0x592e61(0x1ca))/0x6)+-parseInt(_0x592e61(0x22e))/0x7+parseInt(_0x592e61(0x25d))/0x8*(-parseInt(_0x592e61(0x22b))/0x9)+parseInt(_0x592e61(0x29e))/0xa;if(_0x460202===_0x22a47d)break;else _0x40b25c['push'](_0x40b25c['shift']());}catch(_0x52babf){_0x40b25c['push'](_0x40b25c['shift']());}}}(_0x40fd,0xe41fa));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x37234b 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=_0x2f2042(0x1f0),bold=_0x3ec16a=>'\x1b[1m'+_0x3ec16a+'\x1b[0m';function getGitRepoUrl(){const _0x564f6a=_0x2f2042,_0x503d5a={'lkcQk':'git\x20remote\x20get-url\x20origin','lEyED':'utf-8','rbqEN':_0x564f6a(0x203)};try{const _0xefcc36=execSync(_0x503d5a['lkcQk'],{'encoding':_0x503d5a[_0x564f6a(0x1ea)],'stdio':[_0x503d5a[_0x564f6a(0x1fd)],_0x503d5a['rbqEN'],_0x564f6a(0x203)]})['trim']();return _0xefcc36['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x564f6a(0x289))[_0x564f6a(0x241)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x84c36e=_0x2f2042,_0x50892a={'pHciH':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','GdoQG':'utf-8','cjHFM':_0x84c36e(0x203)};try{return execSync(_0x50892a[_0x84c36e(0x29b)],{'encoding':_0x50892a['GdoQG'],'stdio':[_0x84c36e(0x203),'pipe',_0x50892a[_0x84c36e(0x24a)]]})[_0x84c36e(0x205)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x390570=_0x2f2042,_0x1ceda2={'xqoZa':function(_0x2f4bf0,_0x54febd){return _0x2f4bf0(_0x54febd);},'oWJAt':function(_0x171b28,_0x267324,_0x2aa3b4){return _0x171b28(_0x267324,_0x2aa3b4);},'oaihT':_0x390570(0x202)},_0x294c49=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x1ceda2[_0x390570(0x27c)](existsSync,_0x294c49))return null;try{const _0x283cb4=await _0x1ceda2['oWJAt'](readFile,_0x294c49,_0x1ceda2[_0x390570(0x1ec)]);return _0x283cb4[_0x390570(0x205)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x596425){const _0x1e2add=_0x2f2042,_0x14a815={'TEICN':function(_0x2ed69b,_0x9318c1,_0x135913){return _0x2ed69b(_0x9318c1,_0x135913);},'hbZYT':function(_0x4662c7,_0x36a5b7){return _0x4662c7(_0x36a5b7);}},_0x55d1cd=getRangerDir(),_0x165e4c=_0x14a815[_0x1e2add(0x257)](join,_0x55d1cd,ACTIVE_FEATURE_FILE);!_0x14a815[_0x1e2add(0x236)](existsSync,_0x55d1cd)&&await mkdir(_0x55d1cd,{'recursive':!![]}),await writeFile(_0x165e4c,_0x596425,'utf-8');}function getProgressDisplay(_0x3c7171){const _0x1e1a19=_0x2f2042,_0x13b132={'UQhal':function(_0x5d72f4,_0x51154f){return _0x5d72f4+_0x51154f;},'cFZKH':function(_0x3c3c3b,_0x1ce282){return _0x3c3c3b>_0x1ce282;},'dCrUR':function(_0x12e08d,_0x187288){return _0x12e08d>_0x187288;}},_0x4df873=_0x3c7171['verifiedItems']||0x0,_0x1344d9=_0x3c7171[_0x1e1a19(0x1fa)]||0x0,_0x5570a1=_0x3c7171[_0x1e1a19(0x291)]||0x0,_0x5ba358=_0x3c7171['incompleteItems']||0x0,_0xac3d0b=_0x3c7171['pendingItems']||0x0,_0x29162f=_0x13b132['UQhal'](_0x4df873+_0x1344d9+_0x5570a1,_0x5ba358)+_0xac3d0b;if(_0x29162f===0x0)return'-';const _0x2751e1=0xa,_0x5a169=Math['round'](_0x4df873/_0x29162f*_0x2751e1),_0x2cf8ca=_0x13b132['UQhal']('█'['repeat'](_0x5a169),'░'[_0x1e1a19(0x1fe)](_0x2751e1-_0x5a169)),_0x1d8c0b=[];if(_0x13b132[_0x1e1a19(0x28d)](_0x5570a1,0x0))_0x1d8c0b[_0x1e1a19(0x1dd)](_0x5570a1+'\x20blocked');if(_0x13b132[_0x1e1a19(0x28d)](_0x5ba358,0x0))_0x1d8c0b[_0x1e1a19(0x1dd)](_0x5ba358+_0x1e1a19(0x201));if(_0x1344d9>0x0)_0x1d8c0b[_0x1e1a19(0x1dd)](_0x1344d9+'\x20in\x20progress');const _0x511b8c=_0x13b132['dCrUR'](_0x1d8c0b['length'],0x0)?'\x20('+_0x1d8c0b['join'](',\x20')+')':'';return _0x2cf8ca+'\x20'+_0x4df873+'/'+_0x29162f+'\x20verified'+_0x511b8c;}function getCurrentSessionItems(_0x19af89,_0x1580b6){const _0x389a6f=_0x2f2042;if(!_0x19af89[_0x389a6f(0x26b)])return _0x1580b6['filter'](_0x236153=>!_0x236153[_0x389a6f(0x1ef)]);return _0x1580b6['filter'](_0x24581b=>_0x24581b['sessionId']===_0x19af89['currentSessionId']||!_0x24581b['sessionId']);}function displayFeature(_0x4c3372,_0x5b1480){const _0x1421c0=_0x2f2042,_0x6a15b5={'HCVfv':'\x0a\x20\x20\x20Scenarios:','qqRHh':function(_0x4b1215,_0xe5fe55){return _0x4b1215<_0xe5fe55;},'oREnf':function(_0x971ad8,_0x521b8d){return _0x971ad8===_0x521b8d;},'CkhLS':function(_0x4399ff,_0x31d434){return _0x4399ff===_0x31d434;},'nYbTv':'approved','NCIep':'closed','UxFwT':function(_0xd0821,_0x3b4b9d){return _0xd0821===_0x3b4b9d;},'RFliw':_0x1421c0(0x295),'MNZEu':function(_0x482d5b,_0x400a61){return _0x482d5b>_0x400a61;},'iduzO':function(_0x19c32c,_0x5383b5){return _0x19c32c!==_0x5383b5;},'qxdKn':_0x1421c0(0x232)};console['log']('\x0a'+_0x4c3372['name']+'\x20('+_0x4c3372[_0x1421c0(0x294)]+')');_0x4c3372['stats']&&console[_0x1421c0(0x1e5)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x4c3372['stats']));_0x4c3372[_0x1421c0(0x20a)]&&console[_0x1421c0(0x1e5)](_0x1421c0(0x233)+_0x4c3372[_0x1421c0(0x20a)]);_0x4c3372['gitRepoUrl']&&console['log'](_0x1421c0(0x1fc)+_0x4c3372['gitRepoUrl']);_0x4c3372['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x4c3372['gitBranch']);console[_0x1421c0(0x1e5)]('\x20\x20\x20Created:\x20'+new Date(_0x4c3372['createdAt'])[_0x1421c0(0x28f)]());_0x4c3372['completedAt']&&console[_0x1421c0(0x1e5)](_0x1421c0(0x1e7)+new Date(_0x4c3372['completedAt'])['toLocaleString']());if(_0x5b1480&&_0x5b1480['length']>0x0){console[_0x1421c0(0x1e5)](_0x6a15b5[_0x1421c0(0x21a)]);for(let _0x118a3d=0x0;_0x6a15b5[_0x1421c0(0x1c5)](_0x118a3d,_0x5b1480[_0x1421c0(0x1eb)]);_0x118a3d++){const _0x36ffa1=_0x5b1480[_0x118a3d];let _0x42e26f;if(_0x6a15b5[_0x1421c0(0x20b)](_0x36ffa1['status'],'closed')&&_0x6a15b5[_0x1421c0(0x235)](_0x36ffa1[_0x1421c0(0x1e0)],_0x6a15b5[_0x1421c0(0x226)]))_0x42e26f='✅';else{if(_0x36ffa1['status']===_0x1421c0(0x262))_0x42e26f='🟢';else{if(_0x6a15b5['CkhLS'](_0x36ffa1['status'],_0x1421c0(0x232)))_0x42e26f='🟠';else{if(_0x6a15b5['CkhLS'](_0x36ffa1[_0x1421c0(0x250)],'blocked'))_0x42e26f='🛑';else{if(_0x6a15b5[_0x1421c0(0x20b)](_0x36ffa1['status'],_0x6a15b5['NCIep']))_0x42e26f='⛔';else _0x6a15b5[_0x1421c0(0x26f)](_0x36ffa1['status'],_0x6a15b5[_0x1421c0(0x252)])?_0x42e26f='⏳':_0x42e26f='⬜';}}}}const _0x2722a9=_0x36ffa1[_0x1421c0(0x25c)]>0x1?_0x1421c0(0x26d)+_0x36ffa1['version']+')':'',_0x1225a1=_0x6a15b5['MNZEu'](_0x36ffa1[_0x1421c0(0x25c)],0x1)&&_0x36ffa1[_0x1421c0(0x25f)]&&_0x36ffa1['status']!==_0x6a15b5['NCIep']&&_0x6a15b5['iduzO'](_0x36ffa1['status'],_0x1421c0(0x262))?'\x20[has\x20reviewer\x20feedback]':'';console['log'](_0x1421c0(0x229)+(_0x118a3d+0x1)+'.\x20'+_0x42e26f+'\x20'+_0x36ffa1[_0x1421c0(0x20a)]+_0x2722a9+_0x1225a1);_0x6a15b5[_0x1421c0(0x20b)](_0x36ffa1[_0x1421c0(0x250)],'blocked')&&_0x36ffa1[_0x1421c0(0x2a0)]&&console[_0x1421c0(0x1e5)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x36ffa1[_0x1421c0(0x2a0)]);_0x36ffa1[_0x1421c0(0x250)]===_0x6a15b5[_0x1421c0(0x1d4)]&&_0x36ffa1[_0x1421c0(0x1d8)]&&console[_0x1421c0(0x1e5)](_0x1421c0(0x27b)+_0x36ffa1[_0x1421c0(0x1d8)]);if(_0x36ffa1['status']==='closed'&&_0x6a15b5['CkhLS'](_0x36ffa1[_0x1421c0(0x1e0)],_0x1421c0(0x293)))console['log'](_0x1421c0(0x1e8));else _0x36ffa1['status']===_0x6a15b5['NCIep']&&_0x36ffa1['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x36ffa1[_0x1421c0(0x24b)]);}}}function _0x6a14(_0x611223,_0x13b75f){_0x611223=_0x611223-0x1c3;const _0x40fd29=_0x40fd();let _0x6a14d3=_0x40fd29[_0x611223];return _0x6a14d3;}export async function featureCreate(_0x316f20,_0x4c0496){const _0x3abfcf=_0x2f2042,_0x555a66={'Gqaaw':function(_0x3bbd6d,_0x53e62e){return _0x3bbd6d===_0x53e62e;},'YPIKb':function(_0x4d041e){return _0x4d041e();},'yBHZa':function(_0x2aab29,_0x101cdd){return _0x2aab29(_0x101cdd);},'ciecv':_0x3abfcf(0x23d),'dPgoH':function(_0x11f466,_0x6e3c30,_0x516bf6){return _0x11f466(_0x6e3c30,_0x516bf6);}},{envNames:_0x12c7ed}=await getEnvNames();if(_0x555a66[_0x3abfcf(0x268)](_0x12c7ed[_0x3abfcf(0x1eb)],0x0)&&!process['env'][_0x3abfcf(0x23e)]){let _0x41d758=0x0;try{_0x41d758=(await _0x555a66['YPIKb'](listCloudProfiles))[_0x3abfcf(0x1eb)];}catch{_0x41d758=0x1;}_0x41d758===0x0&&console[_0x3abfcf(0x248)]('\x0a'+_0x555a66[_0x3abfcf(0x28e)](formatProfileRequiredMessage,_0x39c232=>bold(_0x39c232)));}const _0x1a284a=_0x4c0496[_0x3abfcf(0x24c)]?_0x4c0496[_0x3abfcf(0x24c)]['map'](_0x2f5dd3=>_0x2f5dd3['trim']()):[],_0x8cb98c=_0x555a66[_0x3abfcf(0x23f)](getGitRepoUrl),_0x3a05c9=getGitBranch();console[_0x3abfcf(0x1e5)](_0x555a66[_0x3abfcf(0x24f)]);const _0x4e11d0=await createFeature({'name':_0x316f20,'description':_0x4c0496['description'],'checklist':_0x1a284a,'gitRepoUrl':_0x8cb98c,'gitBranch':_0x3a05c9});await _0x555a66['yBHZa'](setActiveFeatureId,_0x4e11d0['id']),await tryStartCurrentSession(_0x4e11d0['id']);const _0x1fcd68=process['env'][_0x3abfcf(0x28b)];_0x1fcd68&&_0x555a66['dPgoH'](registerSession,_0x1fcd68,_0x4e11d0['id']),console[_0x3abfcf(0x1e5)](_0x3abfcf(0x1f8)+_0x4e11d0['id']),_0x555a66['dPgoH'](displayFeature,_0x4e11d0,_0x4e11d0[_0x3abfcf(0x297)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0xe50bb1){const _0x4fd439=_0x2f2042,_0x412b58={'CdqKA':function(_0x2b004a){return _0x2b004a();},'oSWox':function(_0x3fa9b0){return _0x3fa9b0();},'PwZcd':function(_0x4b3ad9,_0x9d555c){return _0x4b3ad9(_0x9d555c);},'CUmVd':function(_0x358547,_0x19dfad){return _0x358547>_0x19dfad;},'EgGsC':_0x4fd439(0x207),'UvRCl':_0x4fd439(0x287)},_0x5a0715={'limit':_0xe50bb1[_0x4fd439(0x200)]??0xa,'offset':_0xe50bb1['offset']??0x0,'includeDeleted':_0xe50bb1[_0x4fd439(0x217)]};_0xe50bb1['currentBranch']&&(_0x5a0715['gitRepoUrl']=_0x412b58['CdqKA'](getGitRepoUrl),_0x5a0715[_0x4fd439(0x240)]=_0x412b58['oSWox'](getGitBranch));const _0x1cf700=await _0x412b58['PwZcd'](listFeatures,_0x5a0715);if(_0x1cf700[_0x4fd439(0x214)][_0x4fd439(0x1eb)]===0x0){console['log'](_0x4fd439(0x1f1));return;}const _0x1f2ab3=_0x412b58['CUmVd'](_0x1cf700[_0x4fd439(0x210)],_0x1cf700[_0x4fd439(0x214)][_0x4fd439(0x1eb)])?'Showing\x20'+_0x1cf700['items']['length']+_0x4fd439(0x277)+_0x1cf700[_0x4fd439(0x210)]:_0x1cf700[_0x4fd439(0x210)]+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x1f2ab3+':\x0a');for(const _0x224bfb of _0x1cf700[_0x4fd439(0x214)]){console[_0x4fd439(0x1e5)](''+_0x224bfb[_0x4fd439(0x220)]),console[_0x4fd439(0x1e5)]('\x20\x20\x20ID:\x20'+_0x224bfb['id']),_0x224bfb['stats']&&console[_0x4fd439(0x1e5)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x224bfb[_0x4fd439(0x20e)])),_0x224bfb['gitBranch']&&console[_0x4fd439(0x1e5)](_0x4fd439(0x26c)+_0x224bfb[_0x4fd439(0x240)]),console['log'](_0x4fd439(0x299)+new Date(_0x224bfb[_0x4fd439(0x267)])['toLocaleDateString']()),console[_0x4fd439(0x1e5)]('');}const _0x47decb=_0x5a0715['limit']??0xa,_0x5964c7=(_0x5a0715[_0x4fd439(0x1f7)]??0x0)+_0x1cf700[_0x4fd439(0x214)]['length'];if(_0x5964c7<_0x1cf700['totalCount']){const _0x2f0887=_0x47decb!==0xa?'\x20--limit\x20'+_0x47decb:'',_0x4f3124=_0xe50bb1['currentBranch']?_0x412b58[_0x4fd439(0x28a)]:'',_0x2ad1ff=_0xe50bb1['includeDeleted']?_0x412b58[_0x4fd439(0x269)]:'';console[_0x4fd439(0x1e5)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x5964c7+_0x2f0887+_0x4f3124+_0x2ad1ff);}}export async function featureShow(_0x176f8b){const _0x2cff61=_0x2f2042,_0x38727e={'tCneF':function(_0x4076d1){return _0x4076d1();},'qJCCl':function(_0x41ddba,_0x1e40dd){return _0x41ddba(_0x1e40dd);}},_0x114c09=_0x176f8b||await _0x38727e['tCneF'](getActiveFeatureId);if(!_0x114c09)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 _0x57b79d=await _0x38727e[_0x2cff61(0x242)](getFeature,_0x114c09);displayFeature(_0x57b79d,_0x57b79d[_0x2cff61(0x297)]);}export async function featureResume(_0x269c3e){const _0x576092=_0x2f2042,_0x2d05e7={'nZckQ':function(_0xb362c5,_0x3fb7a1){return _0xb362c5(_0x3fb7a1);},'EGtEy':function(_0x1f8035,_0x2bea07){return _0x1f8035(_0x2bea07);},'bhHrt':function(_0xf4924a,_0x5e5de9){return _0xf4924a!==_0x5e5de9;},'Kmoql':function(_0x2adc26,_0x5a6a18,_0x52c0d8){return _0x2adc26(_0x5a6a18,_0x52c0d8);},'ylCDh':function(_0x4501f9){return _0x4501f9();},'PVNAC':_0x576092(0x249),'CWjzC':function(_0x1c538e,_0x4c840e){return _0x1c538e||_0x4c840e;},'DOfIX':_0x576092(0x243),'mUuXg':function(_0x504e55,_0x182570){return _0x504e55||_0x182570;},'KzCUN':function(_0x5456c7,_0x20111d){return _0x5456c7===_0x20111d;},'noGQM':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','PkaNH':function(_0x5c08e6,_0x3ed7d8){return _0x5c08e6(_0x3ed7d8);},'jNKQB':_0x576092(0x238),'fLaSF':_0x576092(0x21e),'GFOzD':function(_0x9157f6,_0x2e97bc,_0xeaae3){return _0x9157f6(_0x2e97bc,_0xeaae3);},'TWAmr':function(_0x112ab1,_0x70879f,_0x14167e){return _0x112ab1(_0x70879f,_0x14167e);},'ComJd':function(_0x288df6,_0x5d6526){return _0x288df6(_0x5d6526);}};if(_0x269c3e){const _0x10da2e=await _0x2d05e7[_0x576092(0x29d)](getFeature,_0x269c3e);await _0x2d05e7[_0x576092(0x1e9)](setActiveFeatureId,_0x10da2e['id']);const _0x2b60e2=getGitBranch();_0x2b60e2&&_0x2d05e7[_0x576092(0x1de)](_0x2b60e2,_0x10da2e['gitBranch'])&&(await updateFeature(_0x10da2e['id'],{'gitBranch':_0x2b60e2}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2b60e2));console['log'](_0x576092(0x27f)+_0x10da2e['name']+'\x20('+_0x10da2e['id']+')'),await tryStartCurrentSession(_0x10da2e['id']);const _0xc73f4=process['env'][_0x576092(0x28b)];_0xc73f4&®isterSession(_0xc73f4,_0x10da2e['id']);_0x2d05e7['Kmoql'](displayFeature,_0x10da2e,_0x10da2e['checklistItems']),await printFeedbackNudge(_0x10da2e['id']);return;}const _0x2a07dc=_0x2d05e7['ylCDh'](getGitRepoUrl),_0x289d7b=getGitBranch();if(!_0x2a07dc&&!_0x289d7b)throw new Error(_0x2d05e7['PVNAC']);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x2d05e7['CWjzC'](_0x2a07dc,_0x2d05e7['DOfIX'])+'\x20/\x20'+_0x2d05e7['mUuXg'](_0x289d7b,'any')+'...');const _0x3e7509=await listFeatures({'gitRepoUrl':_0x2a07dc,'gitBranch':_0x289d7b}),_0x1d0968=_0x3e7509['items'][_0x576092(0x1fb)](_0x49be7c=>_0x49be7c[_0x576092(0x250)]?_0x49be7c['status']!=='verified':!_0x49be7c[_0x576092(0x1dc)]);if(_0x1d0968[_0x576092(0x1eb)]===0x0){console[_0x576092(0x1e5)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x576092(0x1e5)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x4af12b;if(_0x2d05e7[_0x576092(0x239)](_0x1d0968['length'],0x1))_0x4af12b=_0x1d0968[0x0];else{const _0x3e3dd9=process[_0x576092(0x25a)][_0x576092(0x1e6)]&&process['stdout']['isTTY'];if(!_0x3e3dd9){console[_0x576092(0x1e5)](_0x2d05e7[_0x576092(0x270)]);for(const _0x49f0ce of _0x1d0968){console['log']('\x20\x20'+_0x49f0ce[_0x576092(0x220)]),console['log'](_0x576092(0x255)+_0x49f0ce['id']),_0x49f0ce[_0x576092(0x20e)]&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x2d05e7['PkaNH'](getProgressDisplay,_0x49f0ce['stats'])),_0x49f0ce['gitBranch']&&console[_0x576092(0x1e5)](_0x576092(0x24e)+_0x49f0ce[_0x576092(0x240)]);}throw new Error(_0x576092(0x272));}const {selected:_0x171d6b}=await _0x37234b['prompt']([{'type':_0x576092(0x1cd),'name':_0x2d05e7[_0x576092(0x282)],'message':_0x2d05e7[_0x576092(0x261)],'choices':_0x1d0968[_0x576092(0x22c)](_0x1e53f9=>({'name':_0x1e53f9['name']+'\x20('+_0x1e53f9['id']+')','value':_0x1e53f9['id']}))}]);_0x4af12b=_0x1d0968[_0x576092(0x27d)](_0x49b0b5=>_0x49b0b5['id']===_0x171d6b);}await setActiveFeatureId(_0x4af12b['id']);_0x289d7b&&_0x289d7b!==_0x4af12b['gitBranch']&&(await _0x2d05e7['GFOzD'](updateFeature,_0x4af12b['id'],{'gitBranch':_0x289d7b}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x289d7b));console[_0x576092(0x1e5)](_0x576092(0x27f)+_0x4af12b['name']+'\x20('+_0x4af12b['id']+')'),await _0x2d05e7[_0x576092(0x21d)](tryStartCurrentSession,_0x4af12b['id']);const _0x380ac4=await getFeature(_0x4af12b['id']),_0x2a17e0=process[_0x576092(0x234)]['CLAUDE_SESSION_ID'];_0x2a17e0&®isterSession(_0x2a17e0,_0x380ac4['id']),_0x2d05e7['TWAmr'](displayFeature,_0x380ac4,_0x380ac4['checklistItems']),await _0x2d05e7['ComJd'](printFeedbackNudge,_0x380ac4['id']);}async function printFeedbackNudge(_0x428961){const _0x256890=_0x2f2042,_0xd62f80={'rgVtw':function(_0xdd5337,_0x32bc44){return _0xdd5337(_0x32bc44);},'SOHDq':_0x256890(0x227)};try{const {items:_0x580f8c}=await _0xd62f80[_0x256890(0x298)](getActionItems,_0x428961);let _0x5a978e=0x0,_0x33bdf4=0x0;for(const _0x5575d0 of _0x580f8c){const _0x5b517a=await getItemFeedback(_0x428961,_0x5575d0['id']);_0x5b517a['unaddressedComments'][_0x256890(0x1eb)]>0x0&&(_0x5a978e+=_0x5b517a[_0x256890(0x21f)][_0x256890(0x1eb)],_0x33bdf4++);}_0x5a978e>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x5a978e+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x33bdf4+'\x20scenario(s).'),console['log'](_0xd62f80[_0x256890(0x29f)]));}catch{}}async function tryStartCurrentSession(_0x569955){const _0x5bc043=_0x2f2042;try{const {sessions:_0x116bbc}=await listFeatureSessions(_0x569955),_0x3d49df=_0x116bbc['find'](_0x3a05aa=>_0x3a05aa['status']==='ready');_0x3d49df&&(await startSession(_0x569955,_0x3d49df['id']),console[_0x5bc043(0x1e5)](_0x5bc043(0x1db)+_0x3d49df[_0x5bc043(0x1c8)]));}catch{}}export async function featureReport(_0x5894e8,_0x24e8b0){const _0x5db5bb=_0x2f2042,_0x527784={'khbXp':'\x0aGenerating\x20report...','vTrYn':function(_0x176ff6,_0x1e417b,_0x2d9104,_0xf0f757){return _0x176ff6(_0x1e417b,_0x2d9104,_0xf0f757);},'kKkep':function(_0x4ede7d,_0x24f5f6,_0x127914){return _0x4ede7d(_0x24f5f6,_0x127914);},'sFzRw':function(_0x58c66e,_0xd69020){return _0x58c66e(_0xd69020);},'OxsmU':'utf-8'},_0x8a0265=_0x5894e8||await getActiveFeatureId();if(!_0x8a0265)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log'](_0x527784[_0x5db5bb(0x1ee)]);const _0x5ecccf=await getFeatureReportMarkdown(_0x8a0265,{'style':_0x24e8b0['style']}),_0x4ff59e=_0x24e8b0['output']||_0x527784['vTrYn'](join,getRangerDir(),_0x5db5bb(0x1f5),_0x8a0265+'.md'),_0x24aba4=_0x527784['kKkep'](join,_0x4ff59e,'..');!_0x527784[_0x5db5bb(0x256)](existsSync,_0x24aba4)&&await _0x527784['kKkep'](mkdir,_0x24aba4,{'recursive':!![]}),await writeFile(_0x4ff59e,_0x5ecccf,_0x527784[_0x5db5bb(0x219)]),console[_0x5db5bb(0x1e5)]('\x0a✅\x20Report\x20generated:\x20'+_0x4ff59e);}function getScenarioResult(_0x48c48a){const _0x2fb28e=_0x2f2042,_0x4c8434={'WrOMC':'closed','ZnjhY':_0x2fb28e(0x295),'usWoy':_0x2fb28e(0x21c)};if(_0x48c48a['status']===_0x4c8434['WrOMC'])return _0x48c48a['terminalReason']??_0x4c8434[_0x2fb28e(0x265)];if(_0x48c48a['status']===_0x4c8434['ZnjhY'])return _0x4c8434[_0x2fb28e(0x224)];return _0x48c48a[_0x2fb28e(0x250)];}function getScenarioRationale(_0x3ec833,_0xe268a2){const _0x5bd478=_0x2f2042,_0x85c7d2={'ErcFi':_0x5bd478(0x275)},_0x3495ce=_0x85c7d2[_0x5bd478(0x286)][_0x5bd478(0x266)]('|');let _0x3f6dba=0x0;while(!![]){switch(_0x3495ce[_0x3f6dba++]){case'0':return null;case'1':if(_0x3ec833[_0x5bd478(0x1d8)])return _0x3ec833['incompleteReason'];continue;case'2':if(_0x3ec833['blockedReason'])return _0x3ec833['blockedReason'];continue;case'3':if(_0x3ec833['notes'])return _0x3ec833[_0x5bd478(0x288)];continue;case'4':if(_0xe268a2)return _0xe268a2;continue;case'5':if(_0x3ec833[_0x5bd478(0x24b)])return _0x3ec833['canceledReason'];continue;}break;}}export async function featureReportPrDescription(_0x520892,_0x36f857){const _0x3344cd=_0x2f2042,_0x476e79={'rChCQ':function(_0x64f221){return _0x64f221();},'ZJEyW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','xaDOi':function(_0x3c4f31,_0x2bfd48){return _0x3c4f31(_0x2bfd48);},'ffhTO':function(_0x9145c3,_0x24a761,_0x5f14f4){return _0x9145c3(_0x24a761,_0x5f14f4);},'fPxmz':function(_0x18d1e2,_0x118d97){return _0x18d1e2===_0x118d97;},'juAZX':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','ShFPS':'\x0aAvailable\x20scenarios:','mgMUM':function(_0x348e42,_0x547905){return _0x348e42<_0x547905;},'OJunG':function(_0x122a24,_0x915619,_0x327cb2,_0x1f6881){return _0x122a24(_0x915619,_0x327cb2,_0x1f6881);}},_0x1bbee4=_0x520892||await _0x476e79['rChCQ'](getActiveFeatureId);if(!_0x1bbee4)throw new Error(_0x476e79['ZJEyW']);const _0x4ea718=await _0x476e79[_0x3344cd(0x20f)](getFeature,_0x1bbee4),_0x341596=_0x4ea718['checklistItems']||[],_0x35710c=_0x476e79['ffhTO'](getCurrentSessionItems,_0x4ea718,_0x341596);_0x476e79[_0x3344cd(0x285)](_0x35710c['length'],0x0)&&(console['error'](_0x476e79['juAZX']),process['exit'](0x1));const _0x147375=_0x36f857['excludeScenarios']??[],_0x8b910a=_0x147375[_0x3344cd(0x1fb)](_0x3fd420=>!Number[_0x3344cd(0x274)](_0x3fd420)||_0x3fd420<0x1||_0x3fd420>_0x35710c[_0x3344cd(0x1eb)]);if(_0x8b910a[_0x3344cd(0x1eb)]>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x8b910a[_0x3344cd(0x258)](',\x20')),console['log'](_0x476e79[_0x3344cd(0x281)]);for(let _0x3aab02=0x0;_0x476e79[_0x3344cd(0x225)](_0x3aab02,_0x35710c[_0x3344cd(0x1eb)]);_0x3aab02++){console[_0x3344cd(0x1e5)]('\x20\x20'+(_0x3aab02+0x1)+'.\x20'+_0x35710c[_0x3aab02][_0x3344cd(0x20a)]);}process['exit'](0x1);}const _0x12cd05=new Set(_0x147375[_0x3344cd(0x22c)](_0x5c373e=>_0x5c373e-0x1)),_0x3b6822=_0x35710c['filter']((_0x548c45,_0x4adde2)=>!_0x12cd05[_0x3344cd(0x25b)](_0x4adde2));_0x3b6822[_0x3344cd(0x1eb)]===0x0&&(console['error'](_0x3344cd(0x283)),process['exit'](0x1));if(_0x36f857[_0x3344cd(0x278)])await _0x476e79['OJunG'](outputJsonReport,_0x1bbee4,_0x4ea718,_0x3b6822);else{const _0x5d3d9c=await _0x476e79[_0x3344cd(0x1d6)](getFeatureReportMarkdown,_0x1bbee4,{'itemIds':_0x3b6822['map'](_0x10859c=>_0x10859c['id'])});process[_0x3344cd(0x260)]['write'](_0x5d3d9c[_0x3344cd(0x29a)]()+'\x0a');}}async function outputJsonReport(_0x787214,_0x13b78e,_0x2bc6e0){const _0x4156e5=_0x2f2042,_0x51b7d7={'FPTxu':function(_0x20491c,_0x1e586a){return _0x20491c(_0x1e586a);},'vLkks':function(_0x264c63){return _0x264c63();},'CigqX':function(_0x4a7df1,_0x2d6152){return _0x4a7df1+_0x2d6152;}},_0x39bf82=_0x51b7d7[_0x4156e5(0x1d9)](getApiBaseUrl),_0x588551=await _0x51b7d7['FPTxu'](getFeatureReport,_0x787214),_0x4f7156=new Map(_0x588551[_0x4156e5(0x297)][_0x4156e5(0x22c)](_0x19795c=>[_0x19795c['id'],_0x19795c])),_0x16bdc5=await Promise['all'](_0x2bc6e0[_0x4156e5(0x22c)](async _0x237205=>{const _0x15a0df=_0x4156e5,_0x5dce3c=_0x4f7156['get'](_0x237205['id']),_0x5d2344=_0x5dce3c?.['linkedSession']??null;let _0x5250ed=[];if(_0x237205['browserSessionId'])try{const {steps:_0x18b1c1}=await _0x51b7d7[_0x15a0df(0x259)](getBrowserSessionSteps,_0x237205['browserSessionId']);_0x18b1c1[_0x15a0df(0x1eb)]>0x0&&(_0x5250ed=_0x18b1c1['map'](_0x12b853=>{const _0x5f06b3=_0x15a0df,_0xd340a3=_0x12b853['assets'][_0x5f06b3(0x27d)](_0x3dc63f=>_0x3dc63f[_0x5f06b3(0x27a)]===_0x5f06b3(0x222)&&_0x3dc63f['timing']===_0x5f06b3(0x245))??_0x12b853['assets']['find'](_0x729fc5=>_0x729fc5[_0x5f06b3(0x27a)]===_0x5f06b3(0x222));let _0x24f760=null,_0x7bac8f=null;if(_0xd340a3){const _0xc76c83=_0xd340a3['storage'][_0x5f06b3(0x254)][_0x5f06b3(0x266)]('/')['pop']();_0x24f760=_0x39bf82+'/api/v1/mcp/browser-sessions/'+_0x237205['browserSessionId']+'/artifacts/'+_0xc76c83,_0xc76c83&&(_0x7bac8f=_0xc76c83[_0x5f06b3(0x241)](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x5f06b3(0x241)](/[-_]/g,'\x20'));}return{'description':_0x7bac8f||_0x12b853[_0x5f06b3(0x20a)]||_0x12b853[_0x5f06b3(0x23b)]||'Step\x20'+_0x12b853[_0x5f06b3(0x244)],'screenshot':_0x24f760,'is_key_step':_0x12b853['isKeyStep']};}));}catch{}return _0x5250ed['length']===0x0&&_0x5d2344?.['screenshotUrls']&&(_0x5250ed=_0x5d2344['screenshotUrls']['map']((_0x3fe3fb,_0x5a3f55)=>({'description':_0x15a0df(0x213)+(_0x5a3f55+0x1),'screenshot':_0x3fe3fb,'is_key_step':![]}))),{'description':_0x237205['description'],'result':getScenarioResult(_0x237205),'rationale':getScenarioRationale(_0x237205,_0x5d2344?.['agentResponse']),'steps':_0x5250ed};})),_0x25bc50={'url':_0x13b78e[_0x4156e5(0x294)],'scenarios':_0x16bdc5};process[_0x4156e5(0x260)]['write'](_0x51b7d7['CigqX'](JSON['stringify'](_0x25bc50,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x23cfbe){const _0x59296b=_0x2f2042,_0x3dd3d1={'GLIMS':_0x59296b(0x280),'pgESg':_0x59296b(0x223),'BTbDC':_0x59296b(0x1c7),'fxAXW':'\x0a✅\x20Session\x20is\x20already\x20completed.','EGNYd':function(_0x21dc51,_0x11f6ab){return _0x21dc51!==_0x11f6ab;},'YkPxW':function(_0x40ce60,_0x5e1f2d,_0x4c3890){return _0x40ce60(_0x5e1f2d,_0x4c3890);}},_0x12f1b5=_0x23cfbe||await getActiveFeatureId();if(!_0x12f1b5)throw new Error(_0x3dd3d1['GLIMS']);const _0x50a7cf=await getFeature(_0x12f1b5);if(!_0x50a7cf['currentSessionId'])throw new Error(_0x59296b(0x1e2));const {sessions:_0x1d407b}=await listFeatureSessions(_0x12f1b5),_0x53dd12=_0x1d407b[_0x59296b(0x27d)](_0x1ebf8e=>_0x1ebf8e['id']===_0x50a7cf[_0x59296b(0x26b)]);if(!_0x53dd12)throw new Error(_0x3dd3d1['pgESg']);if(_0x53dd12[_0x59296b(0x250)]===_0x3dd3d1[_0x59296b(0x231)]){console[_0x59296b(0x1e5)](_0x3dd3d1['fxAXW']);return;}if(_0x3dd3d1[_0x59296b(0x206)](_0x53dd12['status'],'in_progress'))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x53dd12['status']);console[_0x59296b(0x1e5)]('\x0aConcluding\x20session...'),await _0x3dd3d1['YkPxW'](concludeSession,_0x12f1b5,_0x50a7cf[_0x59296b(0x26b)]),console['log'](_0x59296b(0x204)+_0x53dd12['iteration']+'\x20concluded.'),console[_0x59296b(0x1e5)](_0x59296b(0x237));}function _0x40fd(){const _0x2d8165=['kQeZp','36dxhlMt','map','\x0a✅\x20Restored\x20feature\x20review:\x20','11560360kVyFCQ','point','error','BTbDC','incomplete','\x20\x20\x20Description:\x20','env','CkhLS','hbZYT','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','selected','KzCUN','exit','stepName','\x20—\x20','\x0aCreating\x20feature\x20review...','RANGER_TEST_USERNAME','YPIKb','gitBranch','replace','qJCCl','any','position','after','549516SoKGGf','\x20>\x20','warn','Not\x20in\x20a\x20git\x20repository.','cjHFM','canceledReason','scenarios','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','\x20\x20\x20\x20\x20Branch:\x20','ciecv','status','\x0a✅\x20Scenario\x20added','RFliw','LdIOo','location','\x20\x20\x20\x20\x20ID:\x20','sFzRw','TEICN','join','FPTxu','stdin','has','version','2844776IvjTMi','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','parentItemId','stdout','fLaSF','verified','canonicalFlow','xXEbE','WrOMC','split','createdAt','Gqaaw','UvRCl','\x0a📋\x20Feedback\x20for:\x20','currentSessionId','\x20\x20\x20Branch:\x20','\x20(v','\x20at\x20[','UxFwT','noGQM','type','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','from','isInteger','4|2|1|5|3|0','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x20of\x20','json','uMjUm','assetType','\x20\x20\x20\x20\x20\x20Incomplete:\x20','xqoZa','find','olNic','\x0a✅\x20Resumed\x20feature\x20review:\x20','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ShFPS','jNKQB','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','comment_','fPxmz','ErcFi','\x20--include-deleted','notes','github.com/','EgGsC','CLAUDE_SESSION_ID','\x20\x20\x20\x20','cFZKH','yBHZa','toLocaleString','arrayBuffer','blockedItems','textContent','approved','dashboardUrl','verification_in_progress','\x20\x20✅\x20No\x20feedback\x20to\x20address','checklistItems','rgVtw','\x20\x20\x20Created:\x20','trimEnd','pHciH','BixOW','nZckQ','25691690KFGNWL','SOHDq','blockedReason','\x0aAvailable\x20scenarios:','.\x20Feature\x20review\x20has\x20','qqRHh','1491IGMlbV','completed','iteration','AiYCm','25158tDUPUC','WmtfQ','domRef','list','feedback-images','pnLxJ','ZgdCD','keeIZ',':\x20\x22','):\x20\x22','qxdKn','mkosG','ffhTO','latestReview','incompleteReason','vLkks','265044CRRipN','\x20\x20\x20▶️\x20Started\x20session\x20','completedAt','push','bhHrt','spatial','terminalReason','1340lSzGTi','No\x20active\x20session\x20for\x20this\x20feature\x20review.','slice','mYPkd','log','isTTY','\x20\x20\x20Completed:\x20','\x20\x20\x20\x20\x20\x20Approved','EGtEy','lEyED','length','oaihT','content','khbXp','sessionId','active-feature.txt','\x0aNo\x20feature\x20reviews\x20found.','Unknown','.png','xshXs','reports','APBHj','offset','\x0a✅\x20Feature\x20review\x20created:\x20','toFixed','verificationInProgressItems','filter','\x20\x20\x20Repository:\x20','rbqEN','repeat','\x20Session\x20','limit','\x20incomplete','utf-8','pipe','\x0a✅\x20Session\x20','trim','EGNYd','\x20--current-branch','scenario','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','description','oREnf','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ZEdQJ','stats','xaDOi','totalCount','selector','No\x20sessions\x20found.','Screenshot\x20','items','submittedAt','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','includeDeleted','jDnRY','OxsmU','HCVfv','2460ddyweX','in_progress','PkaNH','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','unaddressedComments','name','assetUrl','screenshot','Current\x20session\x20not\x20found.','usWoy','mgMUM','nYbTv','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','\x20\x20💬\x20','\x20\x20\x20'];_0x40fd=function(){return _0x2d8165;};return _0x40fd();}export async function featureSessions(_0xe65eb1){const _0x34cd07=_0x2f2042,_0x302436={'LdIOo':function(_0x145b37){return _0x145b37();},'YIuDr':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','pnLxJ':function(_0x4a5fbb,_0x60a6ac){return _0x4a5fbb(_0x60a6ac);},'xXEbE':function(_0x1b698a,_0x8f25ca){return _0x1b698a===_0x8f25ca;},'JPJhA':_0x34cd07(0x212),'xzSsQ':function(_0x39eb32,_0xca50bd){return _0x39eb32===_0xca50bd;},'oTxrR':'in_progress'},_0x50c1b1=_0xe65eb1||await _0x302436[_0x34cd07(0x253)](getActiveFeatureId);if(!_0x50c1b1)throw new Error(_0x302436['YIuDr']);const _0x5147dd=await getFeature(_0x50c1b1);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x5147dd['name']+'\x0a');const {sessions:_0x1a8a37}=await _0x302436[_0x34cd07(0x1cf)](listFeatureSessions,_0x50c1b1);if(_0x302436[_0x34cd07(0x264)](_0x1a8a37[_0x34cd07(0x1eb)],0x0)){console[_0x34cd07(0x1e5)](_0x302436['JPJhA']);return;}for(const _0x9fadc0 of _0x1a8a37){const _0x1f4613=_0x302436['xXEbE'](_0x9fadc0[_0x34cd07(0x250)],_0x34cd07(0x1c7))?'✅':_0x302436['xzSsQ'](_0x9fadc0[_0x34cd07(0x250)],_0x302436['oTxrR'])?'🔄':'▶️';console['log'](_0x1f4613+_0x34cd07(0x1ff)+_0x9fadc0[_0x34cd07(0x1c8)]+'\x20('+_0x9fadc0['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x9fadc0[_0x34cd07(0x250)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x9fadc0['createdAt'])[_0x34cd07(0x28f)]()),_0x9fadc0[_0x34cd07(0x1dc)]&&console['log'](_0x34cd07(0x1e7)+new Date(_0x9fadc0['completedAt'])[_0x34cd07(0x28f)]()),console['log']('');}}export async function featureAddScenario(_0x5043a6,_0x3cff2a){const _0x587076=_0x2f2042,_0x181f11={'uMjUm':_0x587076(0x280),'FePgo':function(_0x53e0f5,_0x32e073,_0x3b84e0){return _0x53e0f5(_0x32e073,_0x3b84e0);}},_0x1f9178=_0x3cff2a||await getActiveFeatureId();if(!_0x1f9178)throw new Error(_0x181f11[_0x587076(0x279)]);const _0x2d5ade=await getFeature(_0x1f9178);if(_0x2d5ade['latestReview']&&!_0x2d5ade['latestReview'][_0x587076(0x215)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x2d5ade['dashboardUrl']);await createChecklistItem(_0x1f9178,_0x5043a6);const _0x5aeb23=await getFeature(_0x1f9178);console['log'](_0x587076(0x251)),_0x181f11['FePgo'](displayFeature,_0x5aeb23,_0x5aeb23[_0x587076(0x297)]);}export async function featureEditScenario(_0x54e2f0,_0x398719){const _0x32c680=_0x2f2042,_0x415d85={'iumRo':function(_0x2747c8){return _0x2747c8();},'xbfsi':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','taBzs':_0x32c680(0x25e),'qNYWZ':'Please\x20finish\x20your\x20review\x20first:','pqfes':function(_0x39cbec,_0x128e19){return _0x39cbec===_0x128e19;},'JooDX':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','olNic':_0x32c680(0x1c3),'jDnRY':function(_0x8ba882,_0x38098c){return _0x8ba882<_0x38098c;},'fozUT':function(_0x5bd8dd,_0x467691){return _0x5bd8dd-_0x467691;},'hIrkJ':function(_0x156247,_0x129c45){return _0x156247+_0x129c45;},'SwHDC':function(_0x3783de,_0x335a28,_0x2c24f3,_0x6ea654){return _0x3783de(_0x335a28,_0x2c24f3,_0x6ea654);},'keeIZ':function(_0x3902a7,_0xd0e45b){return _0x3902a7(_0xd0e45b);},'WmtfQ':function(_0x576bb3,_0x1bbb7d,_0xf83e25){return _0x576bb3(_0x1bbb7d,_0xf83e25);}},_0x3411d8=_0x398719['id']||await _0x415d85['iumRo'](getActiveFeatureId);!_0x3411d8&&(console[_0x32c680(0x230)](_0x32c680(0x20c)),console[_0x32c680(0x230)](_0x415d85['xbfsi']),process[_0x32c680(0x23a)](0x1));const _0x6448bc=await getFeature(_0x3411d8);_0x6448bc[_0x32c680(0x1d7)]&&!_0x6448bc[_0x32c680(0x1d7)][_0x32c680(0x215)]&&(console[_0x32c680(0x230)](_0x415d85['taBzs']),console['error'](_0x415d85['qNYWZ']),console['error']('\x20\x20'+_0x6448bc[_0x32c680(0x294)]),process[_0x32c680(0x23a)](0x1));const _0xdbaf0c=_0x6448bc[_0x32c680(0x297)]||[];_0x415d85['pqfes'](_0xdbaf0c[_0x32c680(0x1eb)],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process[_0x32c680(0x23a)](0x1));if(_0x398719['scenario']===undefined){console['error'](_0x415d85['JooDX']),console['log'](_0x415d85[_0x32c680(0x27e)]);for(let _0x4bc54b=0x0;_0x415d85[_0x32c680(0x218)](_0x4bc54b,_0xdbaf0c[_0x32c680(0x1eb)]);_0x4bc54b++){console[_0x32c680(0x1e5)]('\x20\x20'+(_0x4bc54b+0x1)+'.\x20'+_0xdbaf0c[_0x4bc54b]['description']);}process['exit'](0x1);}const _0x4a3b9b=_0x415d85['fozUT'](_0x398719[_0x32c680(0x208)],0x1);if(_0x4a3b9b<0x0||_0x4a3b9b>=_0xdbaf0c[_0x32c680(0x1eb)]){console[_0x32c680(0x230)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x398719['scenario']+_0x32c680(0x1c4)+_0xdbaf0c[_0x32c680(0x1eb)]+'\x20scenarios.'),console['log'](_0x415d85[_0x32c680(0x27e)]);for(let _0x51fe04=0x0;_0x51fe04<_0xdbaf0c[_0x32c680(0x1eb)];_0x51fe04++){console['log']('\x20\x20'+_0x415d85['hIrkJ'](_0x51fe04,0x1)+'.\x20'+_0xdbaf0c[_0x51fe04]['description']);}process[_0x32c680(0x23a)](0x1);}const _0x565706=_0xdbaf0c[_0x4a3b9b];await _0x415d85['SwHDC'](updateChecklistItem,_0x3411d8,_0x565706['id'],{'description':_0x54e2f0});const _0x3e075b=await _0x415d85[_0x32c680(0x1d1)](getFeature,_0x3411d8);console['log']('\x0a✅\x20Scenario\x20updated'),_0x415d85[_0x32c680(0x1cb)](displayFeature,_0x3e075b,_0x3e075b[_0x32c680(0x297)]);}async function downloadFeedbackImage(_0x509bbe,_0x1a5f6d){const _0x36eb34=_0x2f2042,_0x167bb8={'xshXs':function(_0x1b4f9b,_0x13db83,_0x23eb37){return _0x1b4f9b(_0x13db83,_0x23eb37);},'BixOW':_0x36eb34(0x1ce)};try{const _0x291938=_0x167bb8[_0x36eb34(0x1f4)](join,getRangerDir(),_0x167bb8[_0x36eb34(0x29c)]);await mkdir(_0x291938,{'recursive':!![]});const _0x54a62e=join(_0x291938,_0x36eb34(0x284)+_0x1a5f6d+_0x36eb34(0x1f3)),_0x53dae1=await fetch(_0x509bbe);if(!_0x53dae1['ok'])return null;const _0x36c7cb=Buffer[_0x36eb34(0x273)](await _0x53dae1[_0x36eb34(0x290)]());return await _0x167bb8[_0x36eb34(0x1f4)](writeFile,_0x54a62e,_0x36c7cb),_0x54a62e;}catch{return null;}}export async function featureGetReview(_0x452ea9){const _0x11eca3=_0x2f2042,_0x4c8892={'BwPEC':function(_0x568c95){return _0x568c95();},'APBHj':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','hPKbE':'No\x20scenarios\x20found.','VDXzO':function(_0x5171d2,_0x251d3f){return _0x5171d2<_0x251d3f;},'mkosG':function(_0x1110a1,_0x30fcce){return _0x1110a1>_0x30fcce;},'kQeZp':function(_0x631291,_0x298285){return _0x631291+_0x298285;},'DelmW':'short','rXFmT':'numeric','BjSJn':_0x11eca3(0x1f2),'AiYCm':function(_0xdeb3e1,_0x381e55,_0x39f2d8){return _0xdeb3e1(_0x381e55,_0x39f2d8);},'pKZUv':_0x11eca3(0x247),'ZgdCD':function(_0x13cf5c,_0x331751){return _0x13cf5c===_0x331751;},'UiHKx':_0x11eca3(0x22f),'ZEdQJ':function(_0x2ebb4b,_0x164417){return _0x2ebb4b>=_0x164417;}},_0x12edf6=_0x452ea9||await _0x4c8892['BwPEC'](getActiveFeatureId);if(!_0x12edf6)throw new Error(_0x4c8892[_0x11eca3(0x1f6)]);const _0x396aa1=await getFeature(_0x12edf6),{items:_0x2f3459}=await getActionItems(_0x12edf6);console['log'](_0x11eca3(0x26a)+_0x396aa1['name']+'\x20('+_0x396aa1['id']+')\x0a');if(_0x2f3459[_0x11eca3(0x1eb)]===0x0){console['log'](_0x4c8892['hPKbE']);return;}for(let _0x3dab19=0x0;_0x4c8892['VDXzO'](_0x3dab19,_0x2f3459['length']);_0x3dab19++){const _0x263dc6=_0x2f3459[_0x3dab19],_0x320ab2=_0x263dc6['version']>0x1?'\x20(v'+_0x263dc6['version']+')':'',_0xfdd4eb=await getItemFeedback(_0x12edf6,_0x263dc6['id']);if(_0x4c8892[_0x11eca3(0x1d5)](_0xfdd4eb['unaddressedComments']['length'],0x0)){console['log']('Scenario\x20'+_0x4c8892[_0x11eca3(0x22a)](_0x3dab19,0x1)+':\x20\x22'+_0x263dc6['description']+'\x22'+_0x320ab2+_0x11eca3(0x23c)+_0xfdd4eb[_0x11eca3(0x21f)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x1701f3 of _0xfdd4eb[_0x11eca3(0x21f)]){const _0x3dd121=new Date(_0x1701f3['createdAt'])['toLocaleDateString']('en-US',{'month':_0x4c8892['DelmW'],'day':_0x4c8892['rXFmT']}),_0x44e540=_0x1701f3['authorName']||_0x1701f3['authorEmail']||_0x4c8892['BjSJn'];console[_0x11eca3(0x1e5)](_0x11eca3(0x228)+_0x44e540+'\x20('+_0x3dd121+_0x11eca3(0x1d3)+_0x1701f3[_0x11eca3(0x1ed)]+'\x22');if(_0x1701f3['assetUrl']){const _0x2a6cce=await _0x4c8892[_0x11eca3(0x1c9)](downloadFeedbackImage,_0x1701f3[_0x11eca3(0x221)],_0x1701f3['id']);_0x2a6cce&&console['log'](_0x11eca3(0x216)+_0x2a6cce);}if(_0x1701f3['domRef']){const _0x17567e=_0x1701f3['domRef'][_0x11eca3(0x211)]['split'](_0x4c8892['pKZUv'])['pop']()?.['split'](':')[0x0]||'element',_0x5b15f7=_0x1701f3[_0x11eca3(0x1cc)]['textContent']?'\x20\x22'+_0x1701f3['domRef'][_0x11eca3(0x292)][_0x11eca3(0x1e3)](0x0,0x3c)+'\x22':'';console[_0x11eca3(0x1e5)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x17567e+'>'+_0x5b15f7),console[_0x11eca3(0x1e5)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x1701f3[_0x11eca3(0x1cc)][_0x11eca3(0x211)]);}else{if(_0x1701f3[_0x11eca3(0x1df)]){const _0x27f8da=_0x1701f3['spatial']['coordinates'];_0x4c8892[_0x11eca3(0x1d0)](_0x1701f3[_0x11eca3(0x1df)][_0x11eca3(0x271)],_0x4c8892['UiHKx'])&&_0x4c8892[_0x11eca3(0x20d)](_0x27f8da['length'],0x2)?console[_0x11eca3(0x1e5)](_0x11eca3(0x209)+_0x27f8da[0x0][_0x11eca3(0x1f9)](0x2)+',\x20'+_0x27f8da[0x1][_0x11eca3(0x1f9)](0x2)+')'):console['log'](_0x11eca3(0x276)+_0x1701f3[_0x11eca3(0x1df)][_0x11eca3(0x271)]+_0x11eca3(0x26e)+_0x27f8da[_0x11eca3(0x22c)](_0x211163=>_0x211163['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0xfdd4eb[_0x11eca3(0x263)]){console[_0x11eca3(0x1e5)]('\x20\x20Expected\x20flow:');for(const _0x2db73b of _0xfdd4eb[_0x11eca3(0x263)]['split']('\x0a')){console[_0x11eca3(0x1e5)](_0x11eca3(0x28c)+_0x2db73b);}}}else console['log']('Scenario\x20'+(_0x3dab19+0x1)+_0x11eca3(0x1d2)+_0x263dc6[_0x11eca3(0x20a)]+'\x22'+_0x320ab2+'\x20—\x20no\x20comments'),console[_0x11eca3(0x1e5)](_0x11eca3(0x296));console[_0x11eca3(0x1e5)]('');}}export async function featureDelete(_0x543bfb){const _0x16a9a5=_0x2f2042,_0x18db2b={'mYPkd':_0x16a9a5(0x280),'YkcdL':function(_0x58edeb,_0x10cb92){return _0x58edeb(_0x10cb92);},'nWvVx':function(_0x117609,_0x2edf72){return _0x117609(_0x2edf72);},'ccjxa':_0x16a9a5(0x24d)},_0x5457f8=_0x543bfb||await getActiveFeatureId();if(!_0x5457f8)throw new Error(_0x18db2b[_0x16a9a5(0x1e4)]);const _0x1b4186=await _0x18db2b['YkcdL'](getFeature,_0x5457f8);await _0x18db2b['nWvVx'](softDeleteFeature,_0x5457f8),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x1b4186['name']+'\x20('+_0x5457f8+')'),console[_0x16a9a5(0x1e5)](_0x18db2b['ccjxa']+_0x5457f8);}export async function featureRestore(_0x190afd){const _0x374315=_0x2f2042,_0x1ae7c7={'lWvMe':function(_0x371542,_0x56a3df,_0x12e123){return _0x371542(_0x56a3df,_0x12e123);}};await restoreFeature(_0x190afd);const _0x12cd0d=await getFeature(_0x190afd);console[_0x374315(0x1e5)](_0x374315(0x22d)+_0x12cd0d['name']+'\x20('+_0x190afd+')'),_0x1ae7c7['lWvMe'](displayFeature,_0x12cd0d,_0x12cd0d['checklistItems']);}
|
|
1
|
+
const _0x51e629=_0x2320;(function(_0x4cc1cf,_0x340bd6){const _0x102093=_0x2320,_0x418e94=_0x4cc1cf();while(!![]){try{const _0x3a596b=parseInt(_0x102093(0xc0))/0x1+-parseInt(_0x102093(0xdb))/0x2*(-parseInt(_0x102093(0x12e))/0x3)+parseInt(_0x102093(0x115))/0x4+-parseInt(_0x102093(0x112))/0x5+-parseInt(_0x102093(0x133))/0x6*(parseInt(_0x102093(0xcb))/0x7)+-parseInt(_0x102093(0xaa))/0x8*(parseInt(_0x102093(0x12a))/0x9)+parseInt(_0x102093(0x10d))/0xa;if(_0x3a596b===_0x340bd6)break;else _0x418e94['push'](_0x418e94['shift']());}catch(_0x1c8618){_0x418e94['push'](_0x418e94['shift']());}}}(_0x3ff7,0x35c2d));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';function _0x3ff7(){const _0xbe58fc=['\x20unaddressed\x20comment(s)','tqURI','stringify','ckkKS','EYdXZ','ffUln','error','en-US','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x1b[1m','currentSessionId','blockedReason','\x20verified','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','type','gitBranch','XOVRR','stepName','excludeScenarios','WNCrC','\x20\x20\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','PwYGa','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','QdSGR','\x20>\x20','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','trim','isTTY','textContent','Nzffr','lZliM','KsRjz','asNSb','sessionId','blocked','1902900xzjHcd','checklistItems','hepHy','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','git\x20rev-parse\x20--abbrev-ref\x20HEAD','504040vGijXq','submittedAt','closed','985844eDIUIX','\x20\x20\x20\x20\x20ID:\x20','\x20/\x20','split','\x0a✅\x20Resumed\x20feature\x20review:\x20','\x0aAvailable\x20scenarios:','from','incompleteReason','unaddressedComments','active-feature.txt','BmCMX','yhMcv','content','round','iBsuZ','aNRlq','\x0a✅\x20Restored\x20feature\x20review:\x20','env','assets','description','\x20of\x20','79875eFfBSZ','all','euMpy','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','30vFmnCn','/api/v1/mcp/browser-sessions/','prompt','github.com/','name','348heYcFb','latestReview','join','totalCount','jVDHX','CrSob','yTljB','qxvLn','Unknown','uGrdt','\x0a✅\x20Session\x20','\x1b[0m','offset','/artifacts/','vjToU','QhIwN','vWVGm','PaYlf','xosGB','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x20\x20\x20\x20\x20\x20Approved','qDDPa','toFixed','CtMoI','INCut','Current\x20session\x20not\x20found.','assetType','\x20—\x20no\x20comments','InHrP','pVyEc','\x20blocked','assetUrl','mfuzM','oYAul','twFrw','kyjVN','\x0a✅\x20Feature\x20review\x20created:\x20','TBPAk','qwSKB','wbqHN','completedAt','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','repeat','filter','\x0a❌\x20Invalid\x20scenario\x20index:\x20','utf-8','No\x20scenarios\x20found.','Cannot\x20conclude\x20session\x20with\x20status:\x20','):\x20\x22','mLWhC','stats','hCFUs','screenshotUrls','fTFWz','TeLYx','notes','OWgCt','iteration','\x20in\x20progress','\x20\x20\x20Branch:\x20','\x0a✅\x20Session\x20is\x20already\x20completed.','\x0aConcluding\x20session...','zLsqh','pipe','status','\x20\x20✅\x20No\x20feedback\x20to\x20address','No\x20sessions\x20found.','pop','dashboardUrl','\x20\x20\x20Repository:\x20','aPQZN','write','bbtQn','Scenario\x20','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','verificationInProgressItems','BXQra','adDCB','spatial','find','BFvMj','log','336kaWBLo','arrayBuffer','dhZgi','map','\x20\x20Expected\x20flow:','exit','point','get',':\x20\x22','terminalReason','iUbOZ','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','blockedItems','pFLjK','\x20--current-branch','SirGZ','ajkZS','verified','\x0a✅\x20Report\x20generated:\x20','items','version','canceledReason','394144BZwXhe','completed','limit','\x20[has\x20reviewer\x20feedback]','.png','position','screenshot','length','replace','currentBranch','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','50113BPfgNC','srcUl','\x20\x20\x20Progress:\x20','domRef','warn','selector','after','lVGOC','push','ZtGoQ','reports','RANGER_TEST_USERNAME','peMSA','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x20\x20\x20Created:\x20','ckwiE','55618BiUgGQ','\x20(v','rvFsH','coordinates','\x20\x20\x20ID:\x20','in_progress','SsBmG','CLAUDE_SESSION_ID','Please\x20finish\x20your\x20review\x20first:','canonicalFlow','toLocaleString','stdout','comment_','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'];_0x3ff7=function(){return _0xbe58fc;};return _0x3ff7();}import _0x359ea9 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=_0x51e629(0x11e),bold=_0x4ae1f4=>_0x51e629(0xf2)+_0x4ae1f4+_0x51e629(0x13e);function getGitRepoUrl(){const _0x5d19a2=_0x51e629,_0x3e1ff9={'TbGaS':function(_0x1f94a3,_0x4f943d,_0xb6f1b8){return _0x1f94a3(_0x4f943d,_0xb6f1b8);},'aPQZN':'git\x20remote\x20get-url\x20origin','rXEty':'utf-8','lVGOC':_0x5d19a2(0x97)};try{const _0x3c420b=_0x3e1ff9['TbGaS'](execSync,_0x3e1ff9[_0x5d19a2(0x9e)],{'encoding':_0x3e1ff9['rXEty'],'stdio':[_0x3e1ff9[_0x5d19a2(0xd2)],'pipe',_0x5d19a2(0x97)]})[_0x5d19a2(0x104)]();return _0x3c420b['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x5d19a2(0x131))[_0x5d19a2(0xc8)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x29ea68=_0x51e629,_0x34921d={'mfuzM':_0x29ea68(0x111),'qwSKB':_0x29ea68(0x161),'iUbOZ':'pipe'};try{return execSync(_0x34921d[_0x29ea68(0x154)],{'encoding':_0x34921d[_0x29ea68(0x15a)],'stdio':[_0x34921d[_0x29ea68(0xb4)],_0x34921d[_0x29ea68(0xb4)],'pipe']})[_0x29ea68(0x104)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x3619b3=_0x51e629,_0x28a1bd={'TeLYx':function(_0x5d819b,_0x1273e5,_0x4f9bea){return _0x5d819b(_0x1273e5,_0x4f9bea);}},_0x4142db=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4142db))return null;try{const _0x404ded=await _0x28a1bd[_0x3619b3(0x16a)](readFile,_0x4142db,'utf-8');return _0x404ded[_0x3619b3(0x104)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x22ff9){const _0x463099=_0x51e629,_0x1d527c={'Sdrny':function(_0x147acd,_0xd58bf9,_0x2c7548){return _0x147acd(_0xd58bf9,_0x2c7548);}},_0x52fea1=getRangerDir(),_0x1da4d5=join(_0x52fea1,ACTIVE_FEATURE_FILE);!existsSync(_0x52fea1)&&await _0x1d527c['Sdrny'](mkdir,_0x52fea1,{'recursive':!![]}),await writeFile(_0x1da4d5,_0x22ff9,_0x463099(0x161));}function getProgressDisplay(_0x4f1ff0){const _0x28455f=_0x51e629,_0x229a6d={'njQgD':function(_0x22f43b,_0x17c885){return _0x22f43b+_0x17c885;},'bbasl':function(_0x266b04,_0x1e975b){return _0x266b04+_0x1e975b;},'dckNy':function(_0x17eac5,_0x2f39b6){return _0x17eac5*_0x2f39b6;},'YvGEB':function(_0x3db70c,_0x457c91){return _0x3db70c/_0x457c91;},'KsRjz':function(_0x2dc64b,_0xa11e97){return _0x2dc64b>_0xa11e97;}},_0x2158c5=_0x4f1ff0['verifiedItems']||0x0,_0x29db9f=_0x4f1ff0[_0x28455f(0xa3)]||0x0,_0xcad583=_0x4f1ff0[_0x28455f(0xb6)]||0x0,_0x7ae098=_0x4f1ff0['incompleteItems']||0x0,_0x45bf4d=_0x4f1ff0['pendingItems']||0x0,_0x2d9c0c=_0x229a6d['njQgD'](_0x229a6d['bbasl'](_0x2158c5,_0x29db9f),_0xcad583)+_0x7ae098+_0x45bf4d;if(_0x2d9c0c===0x0)return'-';const _0x8ad574=0xa,_0x18a592=Math[_0x28455f(0x122)](_0x229a6d['dckNy'](_0x229a6d['YvGEB'](_0x2158c5,_0x2d9c0c),_0x8ad574)),_0x3eef78=_0x229a6d['bbasl']('█'[_0x28455f(0x15e)](_0x18a592),'░'['repeat'](_0x8ad574-_0x18a592)),_0x329a07=[];if(_0xcad583>0x0)_0x329a07[_0x28455f(0xd3)](_0xcad583+_0x28455f(0x152));if(_0x229a6d['KsRjz'](_0x7ae098,0x0))_0x329a07[_0x28455f(0xd3)](_0x7ae098+'\x20incomplete');if(_0x29db9f>0x0)_0x329a07[_0x28455f(0xd3)](_0x29db9f+_0x28455f(0x16e));const _0x4fbf63=_0x229a6d[_0x28455f(0x109)](_0x329a07[_0x28455f(0xc7)],0x0)?'\x20('+_0x329a07['join'](',\x20')+')':'';return _0x3eef78+'\x20'+_0x2158c5+'/'+_0x2d9c0c+_0x28455f(0xf5)+_0x4fbf63;}function getCurrentSessionItems(_0x1e2e61,_0x33e7cd){const _0x4542dd=_0x51e629;if(!_0x1e2e61['currentSessionId'])return _0x33e7cd[_0x4542dd(0x15f)](_0x597b68=>!_0x597b68['sessionId']);return _0x33e7cd[_0x4542dd(0x15f)](_0x51a961=>_0x51a961[_0x4542dd(0x10b)]===_0x1e2e61[_0x4542dd(0xf3)]||!_0x51a961[_0x4542dd(0x10b)]);}function displayFeature(_0x400f7d,_0x5041e2){const _0x3e02ef=_0x51e629,_0x5dcb64={'IlquN':'\x0a\x20\x20\x20Scenarios:','TBPAk':_0x3e02ef(0x114),'QhIwN':function(_0x206c25,_0x1b9346){return _0x206c25===_0x1b9346;},'ZtGoQ':function(_0x2f9433,_0x113d1d){return _0x2f9433===_0x113d1d;},'zEvpt':'verified','xosGB':function(_0x3cac72,_0x2db94d){return _0x3cac72===_0x2db94d;},'CQvcW':'incomplete','BFvMj':function(_0x57c7ed,_0x9419ad){return _0x57c7ed>_0x9419ad;},'RwjZn':function(_0x43d24c,_0x188620){return _0x43d24c!==_0x188620;},'aSFYW':_0x3e02ef(0xc3),'WifAx':function(_0x542c22,_0x41d4f0){return _0x542c22===_0x41d4f0;},'mLWhC':function(_0x3a550f,_0x4b302e){return _0x3a550f===_0x4b302e;}};console['log']('\x0a'+_0x400f7d['name']+'\x20('+_0x400f7d[_0x3e02ef(0x9c)]+')');_0x400f7d['stats']&&console['log'](_0x3e02ef(0xcd)+getProgressDisplay(_0x400f7d[_0x3e02ef(0x166)]));_0x400f7d['description']&&console[_0x3e02ef(0xa9)]('\x20\x20\x20Description:\x20'+_0x400f7d['description']);_0x400f7d['gitRepoUrl']&&console['log'](_0x3e02ef(0x9d)+_0x400f7d['gitRepoUrl']);_0x400f7d[_0x3e02ef(0xf8)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x400f7d['gitBranch']);console[_0x3e02ef(0xa9)]('\x20\x20\x20Created:\x20'+new Date(_0x400f7d['createdAt'])[_0x3e02ef(0xe5)]());_0x400f7d['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x400f7d[_0x3e02ef(0x15c)])['toLocaleString']());if(_0x5041e2&&_0x5041e2['length']>0x0){console[_0x3e02ef(0xa9)](_0x5dcb64['IlquN']);for(let _0x1ae527=0x0;_0x1ae527<_0x5041e2['length'];_0x1ae527++){const _0x242501=_0x5041e2[_0x1ae527];let _0x2bde64;if(_0x242501['status']===_0x5dcb64[_0x3e02ef(0x159)]&&_0x5dcb64[_0x3e02ef(0x142)](_0x242501[_0x3e02ef(0xb3)],'approved'))_0x2bde64='✅';else{if(_0x5dcb64[_0x3e02ef(0xd4)](_0x242501['status'],_0x5dcb64['zEvpt']))_0x2bde64='🟢';else{if(_0x5dcb64['xosGB'](_0x242501[_0x3e02ef(0x98)],_0x5dcb64['CQvcW']))_0x2bde64='🟠';else{if(_0x242501[_0x3e02ef(0x98)]==='blocked')_0x2bde64='🛑';else{if(_0x242501[_0x3e02ef(0x98)]===_0x3e02ef(0x114))_0x2bde64='⛔';else _0x5dcb64[_0x3e02ef(0xd4)](_0x242501['status'],'verification_in_progress')?_0x2bde64='⏳':_0x2bde64='⬜';}}}}const _0x11cd80=_0x242501[_0x3e02ef(0xbe)]>0x1?_0x3e02ef(0xdc)+_0x242501['version']+')':'',_0x568e3a=_0x5dcb64[_0x3e02ef(0xa8)](_0x242501[_0x3e02ef(0xbe)],0x1)&&_0x242501['parentItemId']&&_0x5dcb64['RwjZn'](_0x242501['status'],_0x5dcb64[_0x3e02ef(0x159)])&&_0x242501[_0x3e02ef(0x98)]!==_0x5dcb64['zEvpt']?_0x5dcb64['aSFYW']:'';console[_0x3e02ef(0xa9)](_0x3e02ef(0xfd)+(_0x1ae527+0x1)+'.\x20'+_0x2bde64+'\x20'+_0x242501['description']+_0x11cd80+_0x568e3a);_0x242501['status']===_0x3e02ef(0x10c)&&_0x242501['blockedReason']&&console[_0x3e02ef(0xa9)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x242501['blockedReason']);_0x242501['status']===_0x5dcb64['CQvcW']&&_0x242501['incompleteReason']&&console['log'](_0x3e02ef(0xf1)+_0x242501[_0x3e02ef(0x11c)]);if(_0x5dcb64['WifAx'](_0x242501[_0x3e02ef(0x98)],_0x5dcb64['TBPAk'])&&_0x5dcb64[_0x3e02ef(0x165)](_0x242501[_0x3e02ef(0xb3)],'approved'))console[_0x3e02ef(0xa9)](_0x3e02ef(0x148));else _0x5dcb64[_0x3e02ef(0x145)](_0x242501['status'],_0x5dcb64['TBPAk'])&&_0x242501['canceledReason']&&console[_0x3e02ef(0xa9)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x242501['canceledReason']);}}}export async function featureCreate(_0x3a5f52,_0x98ac2d){const _0x1a5a97=_0x51e629,_0x1a9c8b={'ffUln':function(_0x393895){return _0x393895();},'ckkKS':function(_0x37ed8e,_0x571363){return _0x37ed8e===_0x571363;},'buekQ':function(_0x4531a6){return _0x4531a6();},'pVyEc':function(_0x2dff38,_0x12ff4d,_0x56083f){return _0x2dff38(_0x12ff4d,_0x56083f);}},{envNames:_0x2e11ce}=await getEnvNames();if(_0x2e11ce['length']===0x0&&!process[_0x1a5a97(0x126)][_0x1a5a97(0xd6)]){let _0x203b0=0x0;try{_0x203b0=(await _0x1a9c8b[_0x1a5a97(0xee)](listCloudProfiles))['length'];}catch{_0x203b0=0x1;}_0x1a9c8b[_0x1a5a97(0xec)](_0x203b0,0x0)&&console[_0x1a5a97(0xcf)]('\x0a'+formatProfileRequiredMessage(_0x25b0eb=>bold(_0x25b0eb)));}const _0x1e460b=_0x98ac2d['scenarios']?_0x98ac2d['scenarios']['map'](_0x34e009=>_0x34e009[_0x1a5a97(0x104)]()):[],_0xceef41=_0x1a9c8b['ffUln'](getGitRepoUrl),_0x4db550=_0x1a9c8b['buekQ'](getGitBranch);console['log']('\x0aCreating\x20feature\x20review...');const _0x1fbaea=await createFeature({'name':_0x3a5f52,'description':_0x98ac2d[_0x1a5a97(0x128)],'checklist':_0x1e460b,'gitRepoUrl':_0xceef41,'gitBranch':_0x4db550});await setActiveFeatureId(_0x1fbaea['id']),await tryStartCurrentSession(_0x1fbaea['id']);const _0x1aea6c=process[_0x1a5a97(0x126)]['CLAUDE_SESSION_ID'];_0x1aea6c&®isterSession(_0x1aea6c,_0x1fbaea['id']),console[_0x1a5a97(0xa9)](_0x1a5a97(0x158)+_0x1fbaea['id']),_0x1a9c8b[_0x1a5a97(0x151)](displayFeature,_0x1fbaea,_0x1fbaea[_0x1a5a97(0x10e)]),console[_0x1a5a97(0xa9)](_0x1a5a97(0xfe));}export async function featureList(_0x2447eb){const _0x537cd6=_0x51e629,_0x4cbe53={'VEgnV':function(_0x5c7ea3,_0x5cc819){return _0x5c7ea3>_0x5cc819;},'hepHy':function(_0x1f3187,_0x1419d6){return _0x1f3187<_0x1419d6;},'vjToU':'\x20--include-deleted'},_0x5170ce={'limit':_0x2447eb[_0x537cd6(0xc2)]??0xa,'offset':_0x2447eb[_0x537cd6(0x13f)]??0x0,'includeDeleted':_0x2447eb['includeDeleted']};_0x2447eb[_0x537cd6(0xc9)]&&(_0x5170ce['gitRepoUrl']=getGitRepoUrl(),_0x5170ce['gitBranch']=getGitBranch());const _0x53f02=await listFeatures(_0x5170ce);if(_0x53f02[_0x537cd6(0xbd)]['length']===0x0){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x23337d=_0x4cbe53['VEgnV'](_0x53f02['totalCount'],_0x53f02[_0x537cd6(0xbd)][_0x537cd6(0xc7)])?'Showing\x20'+_0x53f02[_0x537cd6(0xbd)]['length']+_0x537cd6(0x129)+_0x53f02['totalCount']:_0x53f02[_0x537cd6(0x136)]+'\x20feature\x20review(s)\x20found';console[_0x537cd6(0xa9)]('\x0a'+_0x23337d+':\x0a');for(const _0x28ac92 of _0x53f02['items']){console['log'](''+_0x28ac92['name']),console[_0x537cd6(0xa9)](_0x537cd6(0xdf)+_0x28ac92['id']),_0x28ac92[_0x537cd6(0x166)]&&console[_0x537cd6(0xa9)](_0x537cd6(0xcd)+getProgressDisplay(_0x28ac92[_0x537cd6(0x166)])),_0x28ac92[_0x537cd6(0xf8)]&&console[_0x537cd6(0xa9)](_0x537cd6(0x16f)+_0x28ac92[_0x537cd6(0xf8)]),console[_0x537cd6(0xa9)](_0x537cd6(0xd9)+new Date(_0x28ac92['createdAt'])['toLocaleDateString']()),console[_0x537cd6(0xa9)]('');}const _0x5c0909=_0x5170ce['limit']??0xa,_0x1cf7b9=(_0x5170ce['offset']??0x0)+_0x53f02['items'][_0x537cd6(0xc7)];if(_0x4cbe53[_0x537cd6(0x10f)](_0x1cf7b9,_0x53f02['totalCount'])){const _0xc42797=_0x5c0909!==0xa?'\x20--limit\x20'+_0x5c0909:'',_0x3bb3c5=_0x2447eb[_0x537cd6(0xc9)]?_0x537cd6(0xb8):'',_0x2eef49=_0x2447eb['includeDeleted']?_0x4cbe53[_0x537cd6(0x141)]:'';console[_0x537cd6(0xa9)](_0x537cd6(0x147)+_0x1cf7b9+_0xc42797+_0x3bb3c5+_0x2eef49);}}export async function featureShow(_0x529230){const _0x5498fd=_0x51e629,_0x165d42={'yTljB':function(_0x3d1546,_0x3eebf8){return _0x3d1546(_0x3eebf8);},'czNKn':function(_0x47968e,_0x33ce80,_0x5562d3){return _0x47968e(_0x33ce80,_0x5562d3);}},_0x532235=_0x529230||await getActiveFeatureId();if(!_0x532235)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 _0x2e0084=await _0x165d42[_0x5498fd(0x139)](getFeature,_0x532235);_0x165d42['czNKn'](displayFeature,_0x2e0084,_0x2e0084[_0x5498fd(0x10e)]);}export async function featureResume(_0x22c44a){const _0x743eb3=_0x51e629,_0x4d14d8={'OWgCt':function(_0x5a81c3,_0x3bd141){return _0x5a81c3(_0x3bd141);},'peMSA':function(_0x295ee4,_0x52edf2){return _0x295ee4(_0x52edf2);},'INCut':function(_0x372267){return _0x372267();},'eqHBl':function(_0x2273e9,_0x4c727c){return _0x2273e9!==_0x4c727c;},'srcUl':function(_0x24bdeb,_0x3d828c,_0x27cf79){return _0x24bdeb(_0x3d828c,_0x27cf79);},'ckwiE':function(_0xe13937,_0x12adf3){return _0xe13937(_0x12adf3);},'qxvLn':function(_0x25d4c0,_0xb60763){return _0x25d4c0&&_0xb60763;},'jVDHX':'any','uPFXq':function(_0x55bb3c,_0x3b43ea){return _0x55bb3c||_0x3b43ea;},'bbtQn':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','jvdGs':_0x743eb3(0x103),'pFLjK':_0x743eb3(0x12d),'asNSb':function(_0x3e68b9,_0x497efa){return _0x3e68b9(_0x497efa);}};if(_0x22c44a){const _0x3f96a1=await _0x4d14d8['OWgCt'](getFeature,_0x22c44a);await _0x4d14d8[_0x743eb3(0xd7)](setActiveFeatureId,_0x3f96a1['id']);const _0x3312f1=_0x4d14d8[_0x743eb3(0x14c)](getGitBranch);_0x3312f1&&_0x4d14d8['eqHBl'](_0x3312f1,_0x3f96a1[_0x743eb3(0xf8)])&&(await updateFeature(_0x3f96a1['id'],{'gitBranch':_0x3312f1}),console[_0x743eb3(0xa9)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3312f1));console[_0x743eb3(0xa9)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3f96a1['name']+'\x20('+_0x3f96a1['id']+')'),await _0x4d14d8[_0x743eb3(0x16c)](tryStartCurrentSession,_0x3f96a1['id']);const _0x1c03e3=process['env'][_0x743eb3(0xe2)];_0x1c03e3&&_0x4d14d8['srcUl'](registerSession,_0x1c03e3,_0x3f96a1['id']);displayFeature(_0x3f96a1,_0x3f96a1[_0x743eb3(0x10e)]),await _0x4d14d8[_0x743eb3(0xda)](printFeedbackNudge,_0x3f96a1['id']);return;}const _0x518100=_0x4d14d8[_0x743eb3(0x14c)](getGitRepoUrl),_0x9eae93=getGitBranch();if(_0x4d14d8[_0x743eb3(0x13a)](!_0x518100,!_0x9eae93))throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x743eb3(0xa9)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x518100||_0x4d14d8[_0x743eb3(0x137)])+_0x743eb3(0x117)+_0x4d14d8['uPFXq'](_0x9eae93,'any')+'...');const _0x53141a=await listFeatures({'gitRepoUrl':_0x518100,'gitBranch':_0x9eae93}),_0x1dcb24=_0x53141a['items'][_0x743eb3(0x15f)](_0x486a98=>_0x486a98[_0x743eb3(0x98)]?_0x486a98[_0x743eb3(0x98)]!==_0x743eb3(0xbb):!_0x486a98[_0x743eb3(0x15c)]);if(_0x1dcb24[_0x743eb3(0xc7)]===0x0){console['log'](_0x4d14d8[_0x743eb3(0xa0)]),console[_0x743eb3(0xa9)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x39fff6;if(_0x1dcb24['length']===0x1)_0x39fff6=_0x1dcb24[0x0];else{const _0x29bdb0=process['stdin']['isTTY']&&process[_0x743eb3(0xe6)][_0x743eb3(0x105)];if(!_0x29bdb0){console[_0x743eb3(0xa9)](_0x743eb3(0xca));for(const _0xeb609b of _0x1dcb24){console[_0x743eb3(0xa9)]('\x20\x20'+_0xeb609b[_0x743eb3(0x132)]),console['log'](_0x743eb3(0x116)+_0xeb609b['id']),_0xeb609b['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0xeb609b['stats'])),_0xeb609b['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xeb609b[_0x743eb3(0xf8)]);}throw new Error(_0x4d14d8['jvdGs']);}const {selected:_0x4956a0}=await _0x359ea9[_0x743eb3(0x130)]([{'type':'list','name':'selected','message':_0x4d14d8[_0x743eb3(0xb7)],'choices':_0x1dcb24['map'](_0x535cb=>({'name':_0x535cb[_0x743eb3(0x132)]+'\x20('+_0x535cb['id']+')','value':_0x535cb['id']}))}]);_0x39fff6=_0x1dcb24[_0x743eb3(0xa7)](_0x13693b=>_0x13693b['id']===_0x4956a0);}await _0x4d14d8[_0x743eb3(0x10a)](setActiveFeatureId,_0x39fff6['id']);_0x9eae93&&_0x4d14d8['eqHBl'](_0x9eae93,_0x39fff6['gitBranch'])&&(await _0x4d14d8['srcUl'](updateFeature,_0x39fff6['id'],{'gitBranch':_0x9eae93}),console[_0x743eb3(0xa9)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x9eae93));console['log'](_0x743eb3(0x119)+_0x39fff6[_0x743eb3(0x132)]+'\x20('+_0x39fff6['id']+')'),await tryStartCurrentSession(_0x39fff6['id']);const _0x5c131f=await getFeature(_0x39fff6['id']),_0x1a186f=process[_0x743eb3(0x126)]['CLAUDE_SESSION_ID'];_0x1a186f&&_0x4d14d8[_0x743eb3(0xcc)](registerSession,_0x1a186f,_0x5c131f['id']),_0x4d14d8[_0x743eb3(0xcc)](displayFeature,_0x5c131f,_0x5c131f['checklistItems']),await _0x4d14d8['asNSb'](printFeedbackNudge,_0x5c131f['id']);}async function printFeedbackNudge(_0x5b26d8){const _0x193a02=_0x51e629,_0x12d659={'adDCB':function(_0xc11993,_0x342bab,_0x205141){return _0xc11993(_0x342bab,_0x205141);},'qDDPa':function(_0x2e8b80,_0x5b1861){return _0x2e8b80>_0x5b1861;}};try{const {items:_0xcefb1c}=await getActionItems(_0x5b26d8);let _0xf91752=0x0,_0x40721f=0x0;for(const _0x375f43 of _0xcefb1c){const _0x178044=await _0x12d659[_0x193a02(0xa5)](getItemFeedback,_0x5b26d8,_0x375f43['id']);_0x12d659[_0x193a02(0x149)](_0x178044[_0x193a02(0x11d)][_0x193a02(0xc7)],0x0)&&(_0xf91752+=_0x178044['unaddressedComments'][_0x193a02(0xc7)],_0x40721f++);}_0xf91752>0x0&&(console[_0x193a02(0xa9)]('\x0a⚠️\x20\x20'+_0xf91752+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x40721f+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x4c4be1){const _0x5d455d=_0x51e629,_0x4c515d={'twFrw':function(_0x438d8f,_0x48f15a,_0x33141e){return _0x438d8f(_0x48f15a,_0x33141e);}};try{const {sessions:_0x5dedc6}=await listFeatureSessions(_0x4c4be1),_0x1b1d7c=_0x5dedc6[_0x5d455d(0xa7)](_0x58513b=>_0x58513b['status']==='ready');_0x1b1d7c&&(await _0x4c515d[_0x5d455d(0x156)](startSession,_0x4c4be1,_0x1b1d7c['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x1b1d7c['iteration']));}catch{}}export async function featureReport(_0x8842c5,_0x3e2599){const _0x58b97e=_0x51e629,_0x308baf={'PwYGa':function(_0x338eb2){return _0x338eb2();},'hCFUs':_0x58b97e(0xf6),'aHaBS':'\x0aGenerating\x20report...','WNCrC':function(_0x565e05,_0x3e2c98,_0x1e72f7,_0x45bb23){return _0x565e05(_0x3e2c98,_0x1e72f7,_0x45bb23);},'iBsuZ':_0x58b97e(0xd5),'ajkZS':function(_0x44284c,_0x2f9b45){return _0x44284c(_0x2f9b45);},'uqfDY':function(_0xdbb704,_0xb15812,_0x76e8ec){return _0xdbb704(_0xb15812,_0x76e8ec);}},_0x44cc41=_0x8842c5||await _0x308baf[_0x58b97e(0xff)](getActiveFeatureId);if(!_0x44cc41)throw new Error(_0x308baf[_0x58b97e(0x167)]);console['log'](_0x308baf['aHaBS']);const _0x2a8ef0=await getFeatureReportMarkdown(_0x44cc41,{'style':_0x3e2599['style']}),_0x2b2640=_0x3e2599['output']||_0x308baf['WNCrC'](join,_0x308baf['PwYGa'](getRangerDir),_0x308baf[_0x58b97e(0x123)],_0x44cc41+'.md'),_0x37e46d=join(_0x2b2640,'..');!_0x308baf[_0x58b97e(0xba)](existsSync,_0x37e46d)&&await _0x308baf['uqfDY'](mkdir,_0x37e46d,{'recursive':!![]}),await _0x308baf[_0x58b97e(0xfc)](writeFile,_0x2b2640,_0x2a8ef0,_0x58b97e(0x161)),console[_0x58b97e(0xa9)](_0x58b97e(0xbc)+_0x2b2640);}function getScenarioResult(_0x2e23f9){const _0x5f0db2=_0x51e629,_0x88ec89={'jQKgk':_0x5f0db2(0x114)};if(_0x2e23f9[_0x5f0db2(0x98)]===_0x88ec89['jQKgk'])return _0x2e23f9['terminalReason']??'closed';if(_0x2e23f9['status']==='verification_in_progress')return _0x5f0db2(0xe0);return _0x2e23f9[_0x5f0db2(0x98)];}function getScenarioRationale(_0x13f193,_0x307a9a){const _0xb7cf86=_0x51e629;if(_0x307a9a)return _0x307a9a;if(_0x13f193[_0xb7cf86(0xf4)])return _0x13f193['blockedReason'];if(_0x13f193['incompleteReason'])return _0x13f193[_0xb7cf86(0x11c)];if(_0x13f193[_0xb7cf86(0xbf)])return _0x13f193['canceledReason'];if(_0x13f193['notes'])return _0x13f193[_0xb7cf86(0x16b)];return null;}export async function featureReportPrDescription(_0x15b907,_0x49aa3d){const _0x5bc196=_0x51e629,_0x4d4aec={'kfwmY':function(_0x3f6daa){return _0x3f6daa();},'aNRlq':function(_0x1241f8,_0x2b89be){return _0x1241f8(_0x2b89be);},'CrSob':function(_0x1565dc,_0x566e4a,_0x566daf){return _0x1565dc(_0x566e4a,_0x566daf);},'EYdXZ':function(_0x2dd27a,_0x408137){return _0x2dd27a===_0x408137;},'vOyaY':_0x5bc196(0x11a),'vquWD':function(_0x10e773,_0x274f10){return _0x10e773===_0x274f10;},'vWVGm':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0xae0409=_0x15b907||await _0x4d4aec['kfwmY'](getActiveFeatureId);if(!_0xae0409)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x209568=await _0x4d4aec[_0x5bc196(0x124)](getFeature,_0xae0409),_0x358899=_0x209568['checklistItems']||[],_0x183508=_0x4d4aec[_0x5bc196(0x138)](getCurrentSessionItems,_0x209568,_0x358899);_0x4d4aec[_0x5bc196(0xed)](_0x183508[_0x5bc196(0xc7)],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x542262=_0x49aa3d[_0x5bc196(0xfb)]??[],_0x5822a6=_0x542262['filter'](_0x2930bb=>!Number['isInteger'](_0x2930bb)||_0x2930bb<0x1||_0x2930bb>_0x183508[_0x5bc196(0xc7)]);if(_0x5822a6['length']>0x0){console['error'](_0x5bc196(0x15d)+_0x5822a6['join'](',\x20')),console[_0x5bc196(0xa9)](_0x4d4aec['vOyaY']);for(let _0x431527=0x0;_0x431527<_0x183508[_0x5bc196(0xc7)];_0x431527++){console['log']('\x20\x20'+(_0x431527+0x1)+'.\x20'+_0x183508[_0x431527][_0x5bc196(0x128)]);}process['exit'](0x1);}const _0x41b544=new Set(_0x542262['map'](_0x5ed9e2=>_0x5ed9e2-0x1)),_0x3de600=_0x183508[_0x5bc196(0x15f)]((_0x1b7089,_0x52297e)=>!_0x41b544['has'](_0x52297e));_0x4d4aec['vquWD'](_0x3de600[_0x5bc196(0xc7)],0x0)&&(console['error'](_0x4d4aec[_0x5bc196(0x143)]),process[_0x5bc196(0xaf)](0x1));if(_0x49aa3d['json'])await outputJsonReport(_0xae0409,_0x209568,_0x3de600);else{const _0x24c116=await getFeatureReportMarkdown(_0xae0409,{'itemIds':_0x3de600[_0x5bc196(0xad)](_0x3797ba=>_0x3797ba['id'])});process['stdout'][_0x5bc196(0x9f)](_0x24c116['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x472126,_0x2b315f,_0x107061){const _0x4f3f94=_0x51e629,_0x438ea4={'BmCMX':function(_0x39369d,_0xccc88f){return _0x39369d===_0xccc88f;},'rvFsH':function(_0x24470e,_0x5d209a){return _0x24470e(_0x5d209a);},'zLsqh':function(_0x96a138,_0x25aadf,_0x2727b5){return _0x96a138(_0x25aadf,_0x2727b5);},'uEmZc':function(_0x17b96e){return _0x17b96e();}},_0x5821d9=_0x438ea4['uEmZc'](getApiBaseUrl),_0x4ea3dc=await getFeatureReport(_0x472126),_0x4c042=new Map(_0x4ea3dc['checklistItems']['map'](_0xb3ad26=>[_0xb3ad26['id'],_0xb3ad26])),_0x389952=await Promise[_0x4f3f94(0x12b)](_0x107061[_0x4f3f94(0xad)](async _0x254c27=>{const _0x28da1e=_0x4f3f94,_0x3fdc2c=_0x4c042[_0x28da1e(0xb1)](_0x254c27['id']),_0x96fe78=_0x3fdc2c?.['linkedSession']??null;let _0x2e4689=[];if(_0x254c27['browserSessionId'])try{const {steps:_0x2d9e53}=await getBrowserSessionSteps(_0x254c27['browserSessionId']);_0x2d9e53[_0x28da1e(0xc7)]>0x0&&(_0x2e4689=_0x2d9e53[_0x28da1e(0xad)](_0x58e7c0=>{const _0x78ecfc=_0x28da1e,_0x423ada=_0x58e7c0[_0x78ecfc(0x127)]['find'](_0x1d8707=>_0x1d8707[_0x78ecfc(0x14e)]==='screenshot'&&_0x1d8707['timing']===_0x78ecfc(0xd1))??_0x58e7c0['assets'][_0x78ecfc(0xa7)](_0x36859c=>_0x36859c[_0x78ecfc(0x14e)]===_0x78ecfc(0xc6));let _0x17092f=null,_0xe1630e=null;if(_0x423ada){const _0x523677=_0x423ada['storage']['location']['split']('/')[_0x78ecfc(0x9b)]();_0x17092f=_0x5821d9+_0x78ecfc(0x12f)+_0x254c27['browserSessionId']+_0x78ecfc(0x140)+_0x523677,_0x523677&&(_0xe1630e=_0x523677[_0x78ecfc(0xc8)](/\.\w+$/,'')[_0x78ecfc(0xc8)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0xe1630e||_0x58e7c0[_0x78ecfc(0x128)]||_0x58e7c0[_0x78ecfc(0xfa)]||'Step\x20'+_0x58e7c0[_0x78ecfc(0xc5)],'screenshot':_0x17092f,'is_key_step':_0x58e7c0['isKeyStep']};}));}catch{}return _0x438ea4[_0x28da1e(0x11f)](_0x2e4689[_0x28da1e(0xc7)],0x0)&&_0x96fe78?.[_0x28da1e(0x168)]&&(_0x2e4689=_0x96fe78[_0x28da1e(0x168)][_0x28da1e(0xad)]((_0x27a175,_0x3a14eb)=>({'description':'Screenshot\x20'+(_0x3a14eb+0x1),'screenshot':_0x27a175,'is_key_step':![]}))),{'description':_0x254c27['description'],'result':_0x438ea4[_0x28da1e(0xdd)](getScenarioResult,_0x254c27),'rationale':_0x438ea4[_0x28da1e(0x96)](getScenarioRationale,_0x254c27,_0x96fe78?.['agentResponse']),'steps':_0x2e4689};})),_0x5cb3b5={'url':_0x2b315f[_0x4f3f94(0x9c)],'scenarios':_0x389952};process[_0x4f3f94(0xe6)]['write'](JSON[_0x4f3f94(0xeb)](_0x5cb3b5,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x487637){const _0x56c751=_0x51e629,_0x280ea3={'wITSK':function(_0x28699e){return _0x28699e();},'QdSGR':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','XZCTc':function(_0x4ed836,_0x12bda7){return _0x4ed836(_0x12bda7);},'XOVRR':function(_0x57db41,_0x5f0c8c){return _0x57db41===_0x5f0c8c;},'SsBmG':_0x56c751(0xc1),'euMpy':_0x56c751(0x170),'PaYlf':function(_0x4fc6cb,_0x30ddaf){return _0x4fc6cb!==_0x30ddaf;}},_0x5ab814=_0x487637||await _0x280ea3['wITSK'](getActiveFeatureId);if(!_0x5ab814)throw new Error(_0x280ea3[_0x56c751(0x101)]);const _0x30a302=await getFeature(_0x5ab814);if(!_0x30a302['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0xc511d4}=await _0x280ea3['XZCTc'](listFeatureSessions,_0x5ab814),_0x5f44ca=_0xc511d4[_0x56c751(0xa7)](_0x3b7a89=>_0x3b7a89['id']===_0x30a302['currentSessionId']);if(!_0x5f44ca)throw new Error(_0x56c751(0x14d));if(_0x280ea3[_0x56c751(0xf9)](_0x5f44ca['status'],_0x280ea3[_0x56c751(0xe1)])){console['log'](_0x280ea3[_0x56c751(0x12c)]);return;}if(_0x280ea3[_0x56c751(0x144)](_0x5f44ca['status'],_0x56c751(0xe0)))throw new Error(_0x56c751(0x163)+_0x5f44ca['status']);console[_0x56c751(0xa9)](_0x56c751(0x95)),await concludeSession(_0x5ab814,_0x30a302[_0x56c751(0xf3)]),console[_0x56c751(0xa9)](_0x56c751(0x13d)+_0x5f44ca['iteration']+'\x20concluded.'),console[_0x56c751(0xa9)](_0x56c751(0x100));}export async function featureSessions(_0x4d4aa3){const _0x5b9577=_0x51e629,_0x2722ba={'JbAOf':function(_0x3aa98f,_0x389350){return _0x3aa98f(_0x389350);},'CtMoI':function(_0x1e201a,_0x5ee4d9){return _0x1e201a===_0x5ee4d9;}},_0x41f0ec=_0x4d4aa3||await getActiveFeatureId();if(!_0x41f0ec)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x10f1ad=await getFeature(_0x41f0ec);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x10f1ad[_0x5b9577(0x132)]+'\x0a');const {sessions:_0x5352b0}=await _0x2722ba['JbAOf'](listFeatureSessions,_0x41f0ec);if(_0x2722ba[_0x5b9577(0x14b)](_0x5352b0['length'],0x0)){console[_0x5b9577(0xa9)](_0x5b9577(0x9a));return;}for(const _0x4597fa of _0x5352b0){const _0x54a820=_0x2722ba[_0x5b9577(0x14b)](_0x4597fa['status'],_0x5b9577(0xc1))?'✅':_0x2722ba['CtMoI'](_0x4597fa[_0x5b9577(0x98)],'in_progress')?'🔄':'▶️';console['log'](_0x54a820+'\x20Session\x20'+_0x4597fa[_0x5b9577(0x16d)]+'\x20('+_0x4597fa['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x4597fa[_0x5b9577(0x98)]),console['log'](_0x5b9577(0xd9)+new Date(_0x4597fa['createdAt'])['toLocaleString']()),_0x4597fa[_0x5b9577(0x15c)]&&console[_0x5b9577(0xa9)]('\x20\x20\x20Completed:\x20'+new Date(_0x4597fa['completedAt'])[_0x5b9577(0xe5)]()),console[_0x5b9577(0xa9)]('');}}export async function featureAddScenario(_0x57c98d,_0x1f1709){const _0x4ce195=_0x51e629,_0x40d7dc={'CSkgm':function(_0xd1ff25){return _0xd1ff25();},'vcNiR':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','BxjVd':function(_0x58041d,_0x377f0a){return _0x58041d(_0x377f0a);},'iGjXU':function(_0xd61020,_0x14ab0a,_0x4ebe5a){return _0xd61020(_0x14ab0a,_0x4ebe5a);}},_0x79a835=_0x1f1709||await _0x40d7dc['CSkgm'](getActiveFeatureId);if(!_0x79a835)throw new Error(_0x40d7dc['vcNiR']);const _0x368600=await getFeature(_0x79a835);if(_0x368600[_0x4ce195(0x134)]&&!_0x368600[_0x4ce195(0x134)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x368600[_0x4ce195(0x9c)]);await createChecklistItem(_0x79a835,_0x57c98d);const _0x442ac0=await _0x40d7dc['BxjVd'](getFeature,_0x79a835);console['log']('\x0a✅\x20Scenario\x20added'),_0x40d7dc['iGjXU'](displayFeature,_0x442ac0,_0x442ac0['checklistItems']);}export async function featureEditScenario(_0x5f13ed,_0x1b230e){const _0x4c7aa6=_0x51e629,_0x166960={'dhZgi':_0x4c7aa6(0xb5),'yhMcv':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','BXQra':_0x4c7aa6(0xa2),'SirGZ':_0x4c7aa6(0xe3),'QJqad':function(_0x11940d,_0x59736a){return _0x11940d===_0x59736a;},'lZliM':'\x0aAvailable\x20scenarios:','SQykx':function(_0xb14171,_0x18a937){return _0xb14171<_0x18a937;},'VRSns':function(_0x1aa20f,_0x385d75,_0x4aac60,_0x450017){return _0x1aa20f(_0x385d75,_0x4aac60,_0x450017);},'ovAIC':function(_0x4bf787,_0x3e48c9){return _0x4bf787(_0x3e48c9);}},_0xe1a776=_0x1b230e['id']||await getActiveFeatureId();!_0xe1a776&&(console[_0x4c7aa6(0xef)](_0x166960[_0x4c7aa6(0xac)]),console['error'](_0x166960[_0x4c7aa6(0x120)]),process['exit'](0x1));const _0x5bb7ef=await getFeature(_0xe1a776);_0x5bb7ef['latestReview']&&!_0x5bb7ef[_0x4c7aa6(0x134)][_0x4c7aa6(0x113)]&&(console['error'](_0x166960[_0x4c7aa6(0xa4)]),console[_0x4c7aa6(0xef)](_0x166960[_0x4c7aa6(0xb9)]),console[_0x4c7aa6(0xef)]('\x20\x20'+_0x5bb7ef['dashboardUrl']),process[_0x4c7aa6(0xaf)](0x1));const _0xd0ad9e=_0x5bb7ef['checklistItems']||[];_0x166960['QJqad'](_0xd0ad9e['length'],0x0)&&(console[_0x4c7aa6(0xef)](_0x4c7aa6(0xe8)),process['exit'](0x1));if(_0x1b230e['scenario']===undefined){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x166960[_0x4c7aa6(0x108)]);for(let _0x3d3d1d=0x0;_0x3d3d1d<_0xd0ad9e['length'];_0x3d3d1d++){console[_0x4c7aa6(0xa9)]('\x20\x20'+(_0x3d3d1d+0x1)+'.\x20'+_0xd0ad9e[_0x3d3d1d][_0x4c7aa6(0x128)]);}process[_0x4c7aa6(0xaf)](0x1);}const _0x1d60a7=_0x1b230e['scenario']-0x1;if(_0x1d60a7<0x0||_0x1d60a7>=_0xd0ad9e[_0x4c7aa6(0xc7)]){console[_0x4c7aa6(0xef)](_0x4c7aa6(0x160)+_0x1b230e['scenario']+'.\x20Feature\x20review\x20has\x20'+_0xd0ad9e[_0x4c7aa6(0xc7)]+'\x20scenarios.'),console[_0x4c7aa6(0xa9)]('\x0aAvailable\x20scenarios:');for(let _0x21c553=0x0;_0x166960['SQykx'](_0x21c553,_0xd0ad9e['length']);_0x21c553++){console[_0x4c7aa6(0xa9)]('\x20\x20'+(_0x21c553+0x1)+'.\x20'+_0xd0ad9e[_0x21c553][_0x4c7aa6(0x128)]);}process[_0x4c7aa6(0xaf)](0x1);}const _0xa6aaee=_0xd0ad9e[_0x1d60a7];await _0x166960['VRSns'](updateChecklistItem,_0xe1a776,_0xa6aaee['id'],{'description':_0x5f13ed});const _0x532b91=await _0x166960['ovAIC'](getFeature,_0xe1a776);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x532b91,_0x532b91['checklistItems']);}async function downloadFeedbackImage(_0x10195b,_0x26e27a){const _0x5aac72=_0x51e629,_0x673a55={'BrkKt':function(_0x5b0fcb,_0xa2acd,_0x57376a){return _0x5b0fcb(_0xa2acd,_0x57376a);},'kyjVN':function(_0x3fb5b8){return _0x3fb5b8();},'sRsvq':'feedback-images'};try{const _0x56d678=_0x673a55['BrkKt'](join,_0x673a55[_0x5aac72(0x157)](getRangerDir),_0x673a55['sRsvq']);await mkdir(_0x56d678,{'recursive':!![]});const _0x331344=_0x673a55['BrkKt'](join,_0x56d678,_0x5aac72(0xe7)+_0x26e27a+_0x5aac72(0xc4)),_0x25ae20=await fetch(_0x10195b);if(!_0x25ae20['ok'])return null;const _0x5b82fb=Buffer[_0x5aac72(0x11b)](await _0x25ae20[_0x5aac72(0xab)]());return await writeFile(_0x331344,_0x5b82fb),_0x331344;}catch{return null;}}function _0x2320(_0x222fc8,_0x81a052){_0x222fc8=_0x222fc8-0x95;const _0x3ff7af=_0x3ff7();let _0x232071=_0x3ff7af[_0x222fc8];return _0x232071;}export async function featureGetReview(_0x19d13b){const _0x45b124=_0x51e629,_0x2222e8={'oYAul':function(_0xf2f6c6,_0x31ff6f){return _0xf2f6c6(_0x31ff6f);},'qlclv':function(_0x529c0e,_0x446242){return _0x529c0e===_0x446242;},'uGrdt':_0x45b124(0x162),'Nzffr':_0x45b124(0xf0),'PpxFt':'numeric','wbqHN':_0x45b124(0x13b),'VXmTW':'element','InHrP':function(_0xcbbf79,_0x20197e){return _0xcbbf79>=_0x20197e;}},_0x3ac0e1=_0x19d13b||await getActiveFeatureId();if(!_0x3ac0e1)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 _0x52c75b=await _0x2222e8[_0x45b124(0x155)](getFeature,_0x3ac0e1),{items:_0x4460bf}=await getActionItems(_0x3ac0e1);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x52c75b['name']+'\x20('+_0x52c75b['id']+')\x0a');if(_0x2222e8['qlclv'](_0x4460bf[_0x45b124(0xc7)],0x0)){console['log'](_0x2222e8[_0x45b124(0x13c)]);return;}for(let _0x339827=0x0;_0x339827<_0x4460bf[_0x45b124(0xc7)];_0x339827++){const _0x224744=_0x4460bf[_0x339827],_0x36bc49=_0x224744[_0x45b124(0xbe)]>0x1?'\x20(v'+_0x224744['version']+')':'',_0x451371=await getItemFeedback(_0x3ac0e1,_0x224744['id']);if(_0x451371[_0x45b124(0x11d)][_0x45b124(0xc7)]>0x0){console[_0x45b124(0xa9)]('Scenario\x20'+(_0x339827+0x1)+_0x45b124(0xb2)+_0x224744['description']+'\x22'+_0x36bc49+'\x20—\x20'+_0x451371['unaddressedComments']['length']+_0x45b124(0xe9));for(const _0x2f31ae of _0x451371['unaddressedComments']){const _0x48c7af=new Date(_0x2f31ae['createdAt'])['toLocaleDateString'](_0x2222e8[_0x45b124(0x107)],{'month':'short','day':_0x2222e8['PpxFt']}),_0x4f3eca=_0x2f31ae['authorName']||_0x2f31ae['authorEmail']||_0x2222e8[_0x45b124(0x15b)];console[_0x45b124(0xa9)]('\x20\x20💬\x20'+_0x4f3eca+'\x20('+_0x48c7af+_0x45b124(0x164)+_0x2f31ae[_0x45b124(0x121)]+'\x22');if(_0x2f31ae[_0x45b124(0x153)]){const _0x1f8ffb=await downloadFeedbackImage(_0x2f31ae['assetUrl'],_0x2f31ae['id']);_0x1f8ffb&&console[_0x45b124(0xa9)](_0x45b124(0x146)+_0x1f8ffb);}if(_0x2f31ae['domRef']){const _0x3764fe=_0x2f31ae['domRef'][_0x45b124(0xd0)]['split'](_0x45b124(0x102))['pop']()?.[_0x45b124(0x118)](':')[0x0]||_0x2222e8['VXmTW'],_0x2b118e=_0x2f31ae['domRef'][_0x45b124(0x106)]?'\x20\x22'+_0x2f31ae[_0x45b124(0xce)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x3764fe+'>'+_0x2b118e),console[_0x45b124(0xa9)](_0x45b124(0xd8)+_0x2f31ae['domRef']['selector']);}else{if(_0x2f31ae[_0x45b124(0xa6)]){const _0x59c925=_0x2f31ae[_0x45b124(0xa6)][_0x45b124(0xde)];_0x2f31ae['spatial']['type']===_0x45b124(0xb0)&&_0x2222e8[_0x45b124(0x150)](_0x59c925[_0x45b124(0xc7)],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x59c925[0x0][_0x45b124(0x14a)](0x2)+',\x20'+_0x59c925[0x1]['toFixed'](0x2)+')'):console[_0x45b124(0xa9)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x2f31ae['spatial'][_0x45b124(0xf7)]+'\x20at\x20['+_0x59c925['map'](_0x45bc07=>_0x45bc07[_0x45b124(0x14a)](0x2))[_0x45b124(0x135)](',\x20')+']');}}}if(_0x451371[_0x45b124(0xe4)]){console[_0x45b124(0xa9)](_0x45b124(0xae));for(const _0x5d261d of _0x451371[_0x45b124(0xe4)]['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x5d261d);}}}else console[_0x45b124(0xa9)](_0x45b124(0xa1)+(_0x339827+0x1)+':\x20\x22'+_0x224744[_0x45b124(0x128)]+'\x22'+_0x36bc49+_0x45b124(0x14f)),console[_0x45b124(0xa9)](_0x45b124(0x99));console[_0x45b124(0xa9)]('');}}export async function featureDelete(_0x547bb6){const _0x31d005=_0x51e629,_0x49d68a={'tqURI':function(_0x138da0){return _0x138da0();},'fTFWz':_0x31d005(0x110),'IoSky':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x3b5acb=_0x547bb6||await _0x49d68a[_0x31d005(0xea)](getActiveFeatureId);if(!_0x3b5acb)throw new Error(_0x49d68a[_0x31d005(0x169)]);const _0x1425bb=await getFeature(_0x3b5acb);await softDeleteFeature(_0x3b5acb),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x1425bb[_0x31d005(0x132)]+'\x20('+_0x3b5acb+')'),console['log'](_0x49d68a['IoSky']+_0x3b5acb);}export async function featureRestore(_0x38f6cc){const _0x57c5d7=_0x51e629;await restoreFeature(_0x38f6cc);const _0x1b6b72=await getFeature(_0x38f6cc);console[_0x57c5d7(0xa9)](_0x57c5d7(0x125)+_0x1b6b72['name']+'\x20('+_0x38f6cc+')'),displayFeature(_0x1b6b72,_0x1b6b72['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x236424,_0x332e7f){const _0x5858d5=_0x250d,_0x4e28b0=_0x236424();while(!![]){try{const _0xd993e5=-parseInt(_0x5858d5(0x94))/0x1+parseInt(_0x5858d5(0xa0))/0x2+-parseInt(_0x5858d5(0x98))/0x3*(parseInt(_0x5858d5(0x99))/0x4)+parseInt(_0x5858d5(0x9d))/0x5*(-parseInt(_0x5858d5(0x9b))/0x6)+parseInt(_0x5858d5(0x97))/0x7+parseInt(_0x5858d5(0x93))/0x8+parseInt(_0x5858d5(0x9f))/0x9;if(_0xd993e5===_0x332e7f)break;else _0x4e28b0['push'](_0x4e28b0['shift']());}catch(_0x227312){_0x4e28b0['push'](_0x4e28b0['shift']());}}}(_0x2020,0x1ebae));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 installCancellationHandlers(){const _0x59ce4b=_0x250d,_0x21081b={'ytoAV':'SIGTERM'};if(cancellationHandlersInstalled)return;const _0x2cb8ab=()=>{const _0x58a815=_0x250d;process[_0x58a815(0xa1)](0x0);};process[_0x59ce4b(0x91)](_0x59ce4b(0x9e),_0x2cb8ab),process[_0x59ce4b(0x91)](_0x21081b[_0x59ce4b(0x9c)],_0x2cb8ab),process['once']('SIGHUP',_0x2cb8ab),cancellationHandlersInstalled=!![];}export async function hook(_0x15f689,_0x48dc77){const _0x188c64=_0x250d,_0x260d54={'gGbZu':function(_0x4a86cd){return _0x4a86cd();}};_0x260d54['gGbZu'](installCancellationHandlers);const _0xbd1a17=HOOKS[_0x15f689];if(!_0xbd1a17){const _0x195020=Object[_0x188c64(0x92)](HOOKS)[_0x188c64(0x95)](',\x20');console[_0x188c64(0x96)](_0x188c64(0x9a)+_0x15f689),console['error']('Valid\x20hooks:\x20'+_0x195020),process[_0x188c64(0xa1)](0x1);}await _0xbd1a17(_0x48dc77);}function _0x250d(_0x429424,_0x47982b){_0x429424=_0x429424-0x91;const _0x202072=_0x2020();let _0x250d59=_0x202072[_0x429424];return _0x250d59;}function _0x2020(){const _0x5b710f=['285974EWjHdq','exit','once','keys','350208HyKbcO','242978kxJNVF','join','error','1684291jMWXXe','27Lixrqz','103340vvCsTM','Unknown\x20hook:\x20','6Nywnuo','ytoAV','699285XyogWX','SIGINT','2824596HGAbCd'];_0x2020=function(){return _0x5b710f;};return _0x2020();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2f6699,_0x17afd6){const _0xe02f86=_0xab52,_0x46408f=_0x2f6699();while(!![]){try{const _0x1beaf1=-parseInt(_0xe02f86(0x1b1))/0x1*(parseInt(_0xe02f86(0x1af))/0x2)+parseInt(_0xe02f86(0x1a7))/0x3+-parseInt(_0xe02f86(0x1b0))/0x4*(parseInt(_0xe02f86(0x1ac))/0x5)+-parseInt(_0xe02f86(0x1ad))/0x6+-parseInt(_0xe02f86(0x1a9))/0x7+parseInt(_0xe02f86(0x1a6))/0x8*(-parseInt(_0xe02f86(0x1b2))/0x9)+parseInt(_0xe02f86(0x1ae))/0xa;if(_0x1beaf1===_0x17afd6)break;else _0x46408f['push'](_0x46408f['shift']());}catch(_0x3f2033){_0x46408f['push'](_0x46408f['shift']());}}}(_0x4b9f,0x27c5b));function _0xab52(_0x224f24,_0xe54119){_0x224f24=_0x224f24-0x1a5;const _0x4b9fc5=_0x4b9f();let _0xab5264=_0x4b9fc5[_0x224f24];return _0xab5264;}import{readHookInput}from'./output.js';function _0x4b9f(){const _0x1af479=['599948bjDqQc','1oNXwDn','99ynhjkb','UjLNr','187088nnsWbz','288129jUosua','log','46361hWuiqp','UWDbp','session_id','5qmDqIw','741912DdMzQE','8151830dIXgZa','421622BzNYDi'];_0x4b9f=function(){return _0x1af479;};return _0x4b9f();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';export async function autoPrompt(){const _0x2ae99c=_0xab52,_0x13b530={'UWDbp':function(_0x1125d6){return _0x1125d6();},'UjLNr':function(_0x118e5d,_0x2b82d8){return _0x118e5d(_0x2b82d8);}},_0x583c2a=await _0x13b530[_0x2ae99c(0x1aa)](readHookInput),_0x1f701c=_0x583c2a?.[_0x2ae99c(0x1ab)];if(!_0x1f701c)return;if(isSessionEnabled(_0x1f701c)||_0x13b530[_0x2ae99c(0x1a5)](hasSessionBeenPrompted,_0x1f701c))return;markSessionPrompted(_0x1f701c),console[_0x2ae99c(0x1a8)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x42f2d6,_0x25b10e){const _0x50cbf0=_0xd0b9,_0x3f1914=_0x42f2d6();while(!![]){try{const _0x43c7eb=-parseInt(_0x50cbf0(0xd5))/0x1*(-parseInt(_0x50cbf0(0xd3))/0x2)+-parseInt(_0x50cbf0(0xdd))/0x3+parseInt(_0x50cbf0(0xd6))/0x4+-parseInt(_0x50cbf0(0xcd))/0x5*(-parseInt(_0x50cbf0(0xcc))/0x6)+-parseInt(_0x50cbf0(0xd9))/0x7*(-parseInt(_0x50cbf0(0xd1))/0x8)+-parseInt(_0x50cbf0(0xd8))/0x9+parseInt(_0x50cbf0(0xd4))/0xa*(-parseInt(_0x50cbf0(0xcb))/0xb);if(_0x43c7eb===_0x25b10e)break;else _0x3f1914['push'](_0x3f1914['shift']());}catch(_0x29e5b3){_0x3f1914['push'](_0x3f1914['shift']());}}}(_0x42ca,0x795e3));function _0xd0b9(_0x10a367,_0x174f81){_0x10a367=_0x10a367-0xca;const _0x42cae4=_0x42ca();let _0xd0b9d4=_0x42cae4[_0x10a367];return _0xd0b9d4;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x42ca(){const _0x35c179=['1048544CrchfO','env','5708061SIfDWY','14DwEDQI','CLAUDE_SESSION_ID','main','master','761424YRGIRX','XdAsS','4882658auDzIW','342822SJKnLH','85ldIviL','wpHPp','vDzSR','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','3117736XwLXoy','\x20and\x20branch\x20\x27','2Fciaaq','20jaOcWW','260017eBlxIb'];_0x42ca=function(){return _0x35c179;};return _0x42ca();}import{printBlock}from'./output.js';export async function disable(_0x25457e){const _0x5ec01e=_0xd0b9,_0x14e7d2={'wpHPp':function(_0x136bc8,_0x11f2b7){return _0x136bc8(_0x11f2b7);},'LTMPc':'main','rAyWV':function(_0x5bd878,_0x2f7dc6){return _0x5bd878!==_0x2f7dc6;},'noZVk':function(_0x548e8a,_0x368dc8){return _0x548e8a(_0x368dc8);},'XdAsS':function(_0x48bddf,_0x819aff){return _0x48bddf!==_0x819aff;},'vDzSR':_0x5ec01e(0xdc)},_0x5d8e10=_0x25457e||process[_0x5ec01e(0xd7)][_0x5ec01e(0xda)]||'';_0x5d8e10&&_0x14e7d2['wpHPp'](disableSession,_0x5d8e10);const _0x3f6018=getCurrentBranch();_0x3f6018&&_0x3f6018!==_0x14e7d2['LTMPc']&&_0x14e7d2['rAyWV'](_0x3f6018,'master')&&_0x14e7d2[_0x5ec01e(0xce)](disableBranch,_0x3f6018),_0x14e7d2['noZVk'](printBlock,_0x5ec01e(0xd0)+(_0x3f6018&&_0x14e7d2[_0x5ec01e(0xca)](_0x3f6018,_0x5ec01e(0xdb))&&_0x14e7d2[_0x5ec01e(0xca)](_0x3f6018,_0x14e7d2[_0x5ec01e(0xcf)])?_0x5ec01e(0xd2)+_0x3f6018+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x439e(){const _0x4cb339=['84194AiIOth','#\x20RANGER\x20ENABLED','470VQKQNa','200223JkWjWL','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','3897dMFKzU','main','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','5rrqiEm','yDHTb','136KavWCt','4099403NozLFC','3307316KkXkLK','#\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`','yFgvs','239967jXBMSW','6HxLtmN','ranger\x20setup\x20--opencode','zZEUO','XZdXx','22706820elXnpy','Kapsd','1006EemdJZ'];_0x439e=function(){return _0x4cb339;};return _0x439e();}(function(_0x2c13c0,_0x3d89c6){const _0x104469=_0x5ab7,_0x44e249=_0x2c13c0();while(!![]){try{const _0x58a1ca=-parseInt(_0x104469(0xb6))/0x1+parseInt(_0x104469(0xb2))/0x2*(-parseInt(_0x104469(0xb8))/0x3)+parseInt(_0x104469(0xa8))/0x4*(-parseInt(_0x104469(0xbb))/0x5)+-parseInt(_0x104469(0xac))/0x6*(parseInt(_0x104469(0xa7))/0x7)+-parseInt(_0x104469(0xa6))/0x8*(-parseInt(_0x104469(0xab))/0x9)+parseInt(_0x104469(0xb5))/0xa*(parseInt(_0x104469(0xb3))/0xb)+parseInt(_0x104469(0xb0))/0xc;if(_0x58a1ca===_0x3d89c6)break;else _0x44e249['push'](_0x44e249['shift']());}catch(_0x373a1d){_0x44e249['push'](_0x44e249['shift']());}}}(_0x439e,0x6b37e));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x5ab7(_0x5dba7c,_0x225880){_0x5dba7c=_0x5dba7c-0xa6;const _0x439e47=_0x439e();let _0x5ab74c=_0x439e47[_0x5dba7c];return _0x5ab74c;}import{update}from'../update.js';export async function enable(_0x1909e7){const _0x774d5e=_0x5ab7,_0x2550ba={'Kapsd':function(_0x913a73,_0x47e527){return _0x913a73(_0x47e527);},'zZEUO':_0x774d5e(0xad),'arWDR':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','XZdXx':function(_0x59fb31){return _0x59fb31();},'yDHTb':function(_0x45ea0d){return _0x45ea0d();},'CsEQv':function(_0x536f47,_0xb3e1b7){return _0x536f47!==_0xb3e1b7;},'yFgvs':_0x774d5e(0xb9)},_0x10dc36=_0x1909e7||process['env']['CLAUDE_SESSION_ID']||'',_0x3655bc=_0x2550ba[_0x774d5e(0xb1)](Boolean,_0x1909e7),_0x217a24=await getToken();if(!_0x217a24){const _0x11f849=_0x3655bc?_0x2550ba[_0x774d5e(0xae)]:'ranger\x20setup',_0x5b2f25=_0x3655bc?_0x2550ba['arWDR']:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock(_0x774d5e(0xa9)+_0x11f849+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x5b2f25);return;}try{await _0x2550ba[_0x774d5e(0xaf)](update);}catch{}_0x10dc36&&enableSession(_0x10dc36);const _0xfd845e=_0x2550ba[_0x774d5e(0xbc)](getCurrentBranch),_0x1d4110=_0xfd845e&&_0x2550ba['CsEQv'](_0xfd845e,_0x2550ba[_0x774d5e(0xaa)])&&_0x2550ba['CsEQv'](_0xfd845e,'master')?'\x0a\x0a**Branch\x20\x27'+_0xfd845e+_0x774d5e(0xb7):'',_0x36f721=_0x2550ba['yDHTb'](getRangerSkillContent);printBlock(_0x774d5e(0xb4)+_0x1d4110+_0x774d5e(0xba)+_0x36f721+'\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`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3ccd(_0x4df4d3,_0x51cd7d){_0x4df4d3=_0x4df4d3-0x1cf;const _0x581938=_0x5819();let _0x3ccd4b=_0x581938[_0x4df4d3];return _0x3ccd4b;}(function(_0x153f7a,_0x297192){const _0x1859d7=_0x3ccd,_0x7f6114=_0x153f7a();while(!![]){try{const _0x3bc659=parseInt(_0x1859d7(0x1d8))/0x1+parseInt(_0x1859d7(0x1d7))/0x2+parseInt(_0x1859d7(0x1d6))/0x3+parseInt(_0x1859d7(0x1d4))/0x4*(parseInt(_0x1859d7(0x1cf))/0x5)+parseInt(_0x1859d7(0x1d3))/0x6+-parseInt(_0x1859d7(0x1d5))/0x7*(-parseInt(_0x1859d7(0x1d0))/0x8)+parseInt(_0x1859d7(0x1d1))/0x9*(-parseInt(_0x1859d7(0x1d2))/0xa);if(_0x3bc659===_0x297192)break;else _0x7f6114['push'](_0x7f6114['shift']());}catch(_0x560256){_0x7f6114['push'](_0x7f6114['shift']());}}}(_0x5819,0x8b5d8));import{printBlock,getEnabledSessionId}from'./output.js';function _0x5819(){const _0x5ec129=['10ACeUEa','2234970jkcRUE','88292YYDBBN','7aURQRt','1650417qzotqU','1838406nIdnLZ','170736Ldichh','220nVnRQr','1679704UNZJyr','23606172MvxQJo'];_0x5819=function(){return _0x5ec129;};return _0x5819();}export async function exitPlanMode(_0x860dee){const _0x147b75=await getEnabledSessionId(_0x860dee);if(!_0x147b75)return;printBlock('===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5712(_0x358207,_0x425710){_0x358207=_0x358207-0x15c;var _0x4cfd32=_0x4cfd();var _0x5712cc=_0x4cfd32[_0x358207];return _0x5712cc;}(function(_0x2e0d56,_0x2e450a){var _0x44f303=_0x5712,_0x426ad5=_0x2e0d56();while(!![]){try{var _0x14ea3d=parseInt(_0x44f303(0x15d))/0x1*(parseInt(_0x44f303(0x160))/0x2)+-parseInt(_0x44f303(0x161))/0x3*(parseInt(_0x44f303(0x15e))/0x4)+-parseInt(_0x44f303(0x162))/0x5*(-parseInt(_0x44f303(0x163))/0x6)+parseInt(_0x44f303(0x166))/0x7+-parseInt(_0x44f303(0x15f))/0x8+-parseInt(_0x44f303(0x165))/0x9+parseInt(_0x44f303(0x164))/0xa*(parseInt(_0x44f303(0x15c))/0xb);if(_0x14ea3d===_0x2e450a)break;else _0x426ad5['push'](_0x426ad5['shift']());}catch(_0x41d633){_0x426ad5['push'](_0x426ad5['shift']());}}}(_0x4cfd,0xa7be5));function _0x4cfd(){var _0x1d78df=['1cTEesQ','168LksHis','8439064JJPzAD','2027574qdFYWp','31035MQRMKR','509965pNDOki','54btzJwe','10994890zqIGDj','11748654VJLIES','3154501csIhEr','11krBCNO'];_0x4cfd=function(){return _0x1d78df;};return _0x4cfd();}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48c6d7,_0x3cfa58){const _0x44e6be=_0x2c95,_0x4efb41=_0x48c6d7();while(!![]){try{const _0x59a7c4=-parseInt(_0x44e6be(0x134))/0x1+-parseInt(_0x44e6be(0x12e))/0x2+-parseInt(_0x44e6be(0x12b))/0x3+parseInt(_0x44e6be(0x135))/0x4*(parseInt(_0x44e6be(0x12c))/0x5)+parseInt(_0x44e6be(0x12d))/0x6*(-parseInt(_0x44e6be(0x12f))/0x7)+parseInt(_0x44e6be(0x129))/0x8*(-parseInt(_0x44e6be(0x132))/0x9)+-parseInt(_0x44e6be(0x137))/0xa*(-parseInt(_0x44e6be(0x128))/0xb);if(_0x59a7c4===_0x3cfa58)break;else _0x4efb41['push'](_0x4efb41['shift']());}catch(_0x388e1c){_0x4efb41['push'](_0x4efb41['shift']());}}}(_0x3324,0xd5b9d));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x18c77a){const _0x3a2cee=_0x2c95;console[_0x3a2cee(0x12a)](_0x18c77a);}export async function readHookInput(){const _0x11dab9=_0x2c95;let _0x24334e='';try{for await(const _0x4b4d50 of process[_0x11dab9(0x133)]){_0x24334e+=_0x4b4d50;}}catch{return null;}if(!_0x24334e[_0x11dab9(0x130)]())return null;try{return JSON['parse'](_0x24334e);}catch{return null;}}export async function getEnabledSessionId(_0x1bb4bf){const _0x39e067=_0x2c95,_0x1d88b9={'hGXwM':function(_0x14cb72){return _0x14cb72();},'DKmag':function(_0x3ce6c8,_0x5ac628){return _0x3ce6c8(_0x5ac628);}};if(_0x1bb4bf)return isSessionEnabled(_0x1bb4bf)?_0x1bb4bf:null;const _0x18a168=await _0x1d88b9[_0x39e067(0x136)](readHookInput),_0x2b4c4d=_0x18a168?.['session_id'];if(!_0x2b4c4d||!_0x1d88b9['DKmag'](isSessionEnabled,_0x2b4c4d))return null;return _0x2b4c4d;}function _0x2c95(_0x58bb95,_0x197e58){_0x58bb95=_0x58bb95-0x128;const _0x33248c=_0x3324();let _0x2c959a=_0x33248c[_0x58bb95];return _0x2c959a;}export async function getEnabledHookContext(_0x1a780f){const _0x1a4d88=_0x2c95,_0x57741b={'lOqcz':function(_0x2f1f0f,_0x1ae052){return _0x2f1f0f(_0x1ae052);},'XUZiG':function(_0x5ac5c7){return _0x5ac5c7();}};if(_0x1a780f){if(!_0x57741b[_0x1a4d88(0x131)](isSessionEnabled,_0x1a780f))return null;return{'sessionId':_0x1a780f,'input':{'session_id':_0x1a780f}};}const _0x3c91ea=await _0x57741b['XUZiG'](readHookInput),_0x5a7b4b=_0x3c91ea?.['session_id'];if(!_0x5a7b4b||!_0x57741b[_0x1a4d88(0x131)](isSessionEnabled,_0x5a7b4b))return null;return{'sessionId':_0x5a7b4b,'input':_0x3c91ea};}function _0x3324(){const _0x7c8d35=['1025244WXqtvJ','6995nJGwKz','2892aTzZJS','3235456sJHoMP','11921DecHjC','trim','lOqcz','11926773BRsHNx','stdin','1122665OfiUYq','4708pTAIku','hGXwM','20140NpNyNv','24343GfQVxd','8pqfROS','log'];_0x3324=function(){return _0x7c8d35;};return _0x3324();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3b13(){const _0x90cfde=['16034288BngBFk','648158SytiCG','12900UnmNJw','887916GryPTz','2202582jvxLij','2278956UCJcvO','GRhat','uLIFQ','11284175QmQabE','2005MGvrOn'];_0x3b13=function(){return _0x90cfde;};return _0x3b13();}(function(_0x2ebc81,_0x43628d){const _0x148264=_0x121f,_0x174353=_0x2ebc81();while(!![]){try{const _0x59d2e7=parseInt(_0x148264(0x13c))/0x1+-parseInt(_0x148264(0x140))/0x2+parseInt(_0x148264(0x13f))/0x3+parseInt(_0x148264(0x13e))/0x4+parseInt(_0x148264(0x13a))/0x5*(parseInt(_0x148264(0x13d))/0x6)+parseInt(_0x148264(0x139))/0x7+-parseInt(_0x148264(0x13b))/0x8;if(_0x59d2e7===_0x43628d)break;else _0x174353['push'](_0x174353['shift']());}catch(_0x2e6406){_0x174353['push'](_0x174353['shift']());}}}(_0x3b13,0xe4356));function _0x121f(_0x1da87b,_0x3d1c62){_0x1da87b=_0x1da87b-0x138;const _0x3b1364=_0x3b13();let _0x121f69=_0x3b1364[_0x1da87b];return _0x121f69;}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x1f3e43){const _0x41a0cc=_0x121f,_0x3bb9d0={'GRhat':function(_0x13e674,_0x58e711){return _0x13e674!==_0x58e711;},'GkIjD':'plan','uLIFQ':function(_0x280258,_0x8441d5){return _0x280258(_0x8441d5);}},_0x25e400=await getEnabledHookContext(_0x1f3e43);if(!_0x25e400)return;if(_0x3bb9d0[_0x41a0cc(0x141)](_0x25e400['input']['permission_mode'],_0x3bb9d0['GkIjD']))return;if(!_0x3bb9d0[_0x41a0cc(0x138)](shouldShowPlanReminder,_0x25e400['sessionId']))return;printBlock('===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x207a06,_0xbe4cba){const _0x5b1b68=_0x597b,_0x2df318=_0x207a06();while(!![]){try{const _0x549fe9=-parseInt(_0x5b1b68(0x10d))/0x1*(-parseInt(_0x5b1b68(0x10f))/0x2)+-parseInt(_0x5b1b68(0x114))/0x3+parseInt(_0x5b1b68(0x112))/0x4+parseInt(_0x5b1b68(0x110))/0x5+-parseInt(_0x5b1b68(0x111))/0x6+parseInt(_0x5b1b68(0x10e))/0x7+-parseInt(_0x5b1b68(0x10c))/0x8;if(_0x549fe9===_0xbe4cba)break;else _0x2df318['push'](_0x2df318['shift']());}catch(_0x152963){_0x2df318['push'](_0x2df318['shift']());}}}(_0x6cda,0x94f23));function _0x597b(_0x54fa61,_0x345400){_0x54fa61=_0x54fa61-0x10c;const _0x6cda80=_0x6cda();let _0x597bc5=_0x6cda80[_0x54fa61];return _0x597bc5;}function _0x6cda(){const _0x1ae6a4=['6398588DNHqhG','2qkZoao','3918455AMpKsY','6906456SPGqiT','463516ICqOVk','===\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===','111432OLcxln','690800ItHyeI','70999OhGBvO'];_0x6cda=function(){return _0x1ae6a4;};return _0x6cda();}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x5597b0){const _0xdea0f1=_0x597b,_0x6c7d80=await getEnabledSessionId(_0x5597b0);if(!_0x6c7d80)return;printBlock(_0xdea0f1(0x113));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa9d22d,_0x15ea47){const _0x57705d=_0x1d10,_0x2530d8=_0xa9d22d();while(!![]){try{const _0x59dac5=-parseInt(_0x57705d(0x111))/0x1*(-parseInt(_0x57705d(0x108))/0x2)+-parseInt(_0x57705d(0x106))/0x3*(parseInt(_0x57705d(0x10e))/0x4)+parseInt(_0x57705d(0x10b))/0x5+parseInt(_0x57705d(0x105))/0x6*(-parseInt(_0x57705d(0x113))/0x7)+-parseInt(_0x57705d(0x109))/0x8*(-parseInt(_0x57705d(0x10f))/0x9)+-parseInt(_0x57705d(0x112))/0xa*(parseInt(_0x57705d(0x10d))/0xb)+-parseInt(_0x57705d(0x110))/0xc*(-parseInt(_0x57705d(0x10c))/0xd);if(_0x59dac5===_0x15ea47)break;else _0x2530d8['push'](_0x2530d8['shift']());}catch(_0xbbaeb0){_0x2530d8['push'](_0x2530d8['shift']());}}}(_0x17e9,0xe613a));function _0x1d10(_0x4eac16,_0x31c341){_0x4eac16=_0x4eac16-0x105;const _0x17e956=_0x17e9();let _0x1d1068=_0x17e956[_0x4eac16];return _0x1d1068;}function _0x17e9(){const _0x35ab18=['120czXkqA','SgVjZ','5502515mXMGfj','13HoTsLa','11kNuYtd','121468iDKlMY','458685QZhtQx','331032HpMEPd','31mPNCRe','200530OxGKZe','7QWdVui','log','wWZdG','7111266YAohCW','6cCFCAJ','PostToolUse','20376UNvHNd'];_0x17e9=function(){return _0x35ab18;};return _0x17e9();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x5e5602){const _0x24ee8b=_0x1d10,_0x3dbb1c={'SgVjZ':function(_0x2c820f,_0x42f5ea){return _0x2c820f(_0x42f5ea);},'wWZdG':function(_0x17e5d1,_0x3b9c3b){return _0x17e5d1(_0x3b9c3b);},'oHnko':function(_0xb33df6,_0x409293){return _0xb33df6(_0x409293);},'OfEhF':_0x24ee8b(0x107)},_0x61fbb2=await _0x3dbb1c[_0x24ee8b(0x10a)](getEnabledSessionId,_0x5e5602);if(!_0x61fbb2)return;_0x3dbb1c[_0x24ee8b(0x115)](updateBranchTracking,_0x61fbb2);const _0x5ae00e=await getToken();if(!_0x5ae00e)return;const _0x3c0631=_0x3dbb1c['oHnko'](getSessionEntry,_0x61fbb2);if(_0x3c0631){const _0x58c19e={'hookSpecificOutput':{'hookEventName':_0x3dbb1c['OfEhF'],'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON['stringify'](_0x58c19e));return;}const _0x29de2a={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console[_0x24ee8b(0x114)](JSON['stringify'](_0x29de2a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5eaa49,_0x13785c){const _0x452bdb=_0x5d4f,_0x175d97=_0x5eaa49();while(!![]){try{const _0x5579b6=-parseInt(_0x452bdb(0xa4))/0x1*(parseInt(_0x452bdb(0xa6))/0x2)+parseInt(_0x452bdb(0xa1))/0x3+parseInt(_0x452bdb(0xa9))/0x4+parseInt(_0x452bdb(0xaa))/0x5*(-parseInt(_0x452bdb(0xa8))/0x6)+parseInt(_0x452bdb(0xac))/0x7*(-parseInt(_0x452bdb(0xa5))/0x8)+-parseInt(_0x452bdb(0xa7))/0x9+parseInt(_0x452bdb(0xa3))/0xa*(parseInt(_0x452bdb(0xab))/0xb);if(_0x5579b6===_0x13785c)break;else _0x175d97['push'](_0x175d97['shift']());}catch(_0x379f93){_0x175d97['push'](_0x175d97['shift']());}}}(_0x35da,0x48312));function _0x5d4f(_0x1a44ab,_0x3f1bde){_0x1a44ab=_0x1a44ab-0xa1;const _0x35daf4=_0x35da();let _0x5d4f52=_0x35daf4[_0x1a44ab];return _0x5d4f52;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x35da(){const _0xcaa6a1=['505476LxVfjl','2223081TuAUEA','6QYdkFj','1885340GtYXwP','2630315MwyqwP','22uJBhbp','2170413XxKZqR','1407348hMJhvs','===\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`.','4719270LjsxBp','2lQTqPI','8PoEMiI'];_0x35da=function(){return _0xcaa6a1;};return _0x35da();}export async function preCompact(_0x4792b0){const _0x820b3c=_0x5d4f,_0x82075b={'zTzOv':function(_0x5e1c20,_0x55ae82){return _0x5e1c20(_0x55ae82);}},_0x5d5ae8=await _0x82075b['zTzOv'](getEnabledSessionId,_0x4792b0);if(!_0x5d5ae8)return;try{const _0x2a99ea=await getToken();if(!_0x2a99ea)return;printBlock(_0x820b3c(0xa2));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x529fb6,_0x59f35f){const _0x56d461=_0xe644,_0x3d6f8f=_0x529fb6();while(!![]){try{const _0x3fa6f3=parseInt(_0x56d461(0x14f))/0x1+parseInt(_0x56d461(0x14d))/0x2*(-parseInt(_0x56d461(0x15a))/0x3)+parseInt(_0x56d461(0x158))/0x4*(-parseInt(_0x56d461(0x15b))/0x5)+parseInt(_0x56d461(0x153))/0x6*(-parseInt(_0x56d461(0x152))/0x7)+parseInt(_0x56d461(0x156))/0x8*(-parseInt(_0x56d461(0x157))/0x9)+parseInt(_0x56d461(0x155))/0xa*(-parseInt(_0x56d461(0x15d))/0xb)+parseInt(_0x56d461(0x150))/0xc*(parseInt(_0x56d461(0x15c))/0xd);if(_0x3fa6f3===_0x59f35f)break;else _0x3d6f8f['push'](_0x3d6f8f['shift']());}catch(_0x4dc1c4){_0x3d6f8f['push'](_0x3d6f8f['shift']());}}}(_0x424f,0x98e99));function _0xe644(_0x3a7cf1,_0x36237c){_0x3a7cf1=_0x3a7cf1-0x14d;const _0x424fc6=_0x424f();let _0xe644ea=_0x424fc6[_0x3a7cf1];return _0xe644ea;}function _0x424f(){const _0x30a49e=['935701dxnRWM','12rowxTn','wQdZF','98qIuJOM','89382quWDpi','clear','311510olsxLq','1296544MXenbE','9sbQjWK','9524oVNVjP','env','39ZwBBCI','1685OAIbuf','32297005DLyhPL','231NBOivI','148702QHdOVX','session_id'];_0x424f=function(){return _0x30a49e;};return _0x424f();}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x7cb4bd){const _0x169eb2=_0xe644,_0x17809c={'wQdZF':function(_0x9d0a4d,_0x2bc7a6){return _0x9d0a4d===_0x2bc7a6;},'rgOoY':_0x169eb2(0x154)},_0x3549d5=process[_0x169eb2(0x159)]['CLAUDE_SESSION_ID'];let _0x5b1f2a=_0x7cb4bd,_0x56b56d;if(!_0x7cb4bd){if(_0x3549d5&&!isSessionEnabled(_0x3549d5))return;const _0x5c3c82=await readHookInput();_0x5b1f2a=_0x5c3c82?.[_0x169eb2(0x14e)]||_0x3549d5,_0x56b56d=_0x5c3c82?.['reason'];}if(!_0x5b1f2a)return;_0x17809c[_0x169eb2(0x151)](_0x56b56d,_0x17809c['rgOoY'])&&recordEnabledSessionCleared(_0x5b1f2a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
(function(_0x42998a,_0x44e756){const _0x53c76e=_0x390c,_0x5d171f=_0x42998a();while(!![]){try{const _0x221ae6=parseInt(_0x53c76e(0xf1))/0x1*(-parseInt(_0x53c76e(0xf4))/0x2)+parseInt(_0x53c76e(0x103))/0x3*(-parseInt(_0x53c76e(0xf7))/0x4)+parseInt(_0x53c76e(0x10a))/0x5*(parseInt(_0x53c76e(0xed))/0x6)+parseInt(_0x53c76e(0x101))/0x7+parseInt(_0x53c76e(0xf2))/0x8*(parseInt(_0x53c76e(0xff))/0x9)+-parseInt(_0x53c76e(0x104))/0xa+parseInt(_0x53c76e(0xfb))/0xb*(parseInt(_0x53c76e(0xf8))/0xc);if(_0x221ae6===_0x44e756)break;else _0x5d171f['push'](_0x5d171f['shift']());}catch(_0x3e037f){_0x5d171f['push'](_0x5d171f['shift']());}}}(_0x1922,0x7d9a4));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x390c(_0x523fc6,_0x229802){_0x523fc6=_0x523fc6-0xed;const _0x1922a2=_0x1922();let _0x390c73=_0x1922a2[_0x523fc6];return _0x390c73;}import{getToken}from'../utils/keychain.js';function _0x1922(){const _0x249cea=['1ljohEU','8wxTSae','trackCommandStart','2037460yiqoqq','rNRrN','stringify','17252UUEAjJ','12dmmgnR','trackCommandEnd','stdin','12620245sQRoTc','vBwQV','rcXpr','akzCg','2721321AYpahH','FrPyz','3607100NgtLUn','parse','66zBoHKH','5040400BiEsNG','aXXWZ','success','KHPmy','log','PrKPb','55720SYvZVM','90HhpUIK','CLAUDE_ENV_FILE','eTEXT','adwDn'];_0x1922=function(){return _0x249cea;};return _0x1922();}const RANGER_AUTO_ENABLED_PROMPT='=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================';export async function sessionStart(_0x45557c){const _0x5002c8=_0x390c,_0x6c9c5a={'rcXpr':'session_id','FrPyz':function(_0x1c5753,_0x134d9a){return _0x1c5753&&_0x134d9a;},'XKJdY':function(_0x8d2641,_0x435518,_0x4e8b9f){return _0x8d2641(_0x435518,_0x4e8b9f);},'rNRrN':function(_0x3e47c9){return _0x3e47c9();},'eTEXT':function(_0x5dfb48,_0x223e2c){return _0x5dfb48(_0x223e2c);},'xiiuU':function(_0xd179d3,_0x919458){return _0xd179d3(_0x919458);},'SXMpT':function(_0x58c7a3,_0x4d3dd9){return _0x58c7a3(_0x4d3dd9);},'akzCg':_0x5002c8(0x106),'aXXWZ':function(_0x71f6ca){return _0x71f6ca();},'vBwQV':'main','KHPmy':'master','adwDn':'SessionStart','PrKPb':function(_0x39f36d,_0x57b1fe){return _0x39f36d+_0x57b1fe;}};let _0x147eba=_0x45557c||'',_0x42fbf1;if(!_0x45557c){let _0x380ea1='';for await(const _0x195937 of process[_0x5002c8(0xfa)]){_0x380ea1+=_0x195937;}try{const _0x27688a=JSON[_0x5002c8(0x102)](_0x380ea1);_0x147eba=_0x27688a[_0x6c9c5a[_0x5002c8(0xfd)]]||'',_0x42fbf1=_0x27688a['source'];}catch{}const _0x76433=process['env'][_0x5002c8(0xee)];if(_0x6c9c5a[_0x5002c8(0x100)](_0x76433,_0x147eba))try{await _0x6c9c5a['XKJdY'](appendFile,_0x76433,'export\x20CLAUDE_SESSION_ID=\x22'+_0x147eba+'\x22\x0a');}catch{}}try{await _0x6c9c5a[_0x5002c8(0xf5)](getToken);}catch{}if(_0x147eba){_0x6c9c5a['eTEXT'](shouldAutoEnableAfterClear,_0x42fbf1)&&autoEnableAfterClear(_0x147eba);_0x6c9c5a[_0x5002c8(0xef)](initBranchTracking,_0x147eba);const _0x515290=_0x6c9c5a['xiiuU'](isSessionEnabled,_0x147eba);try{const _0x2c0acf=_0x6c9c5a['SXMpT'](createTelemetryCollector,'hook:session-start');await _0x2c0acf[_0x5002c8(0xf3)]({'sessionId':_0x147eba,'hooksEnabled':_0x515290}),await _0x2c0acf[_0x5002c8(0xf9)](_0x6c9c5a[_0x5002c8(0xfe)]);}catch{}if(_0x515290){const _0x2c9670=_0x6c9c5a[_0x5002c8(0x105)](getCurrentBranch),_0x32c22c=_0x2c9670&&_0x2c9670!==_0x6c9c5a[_0x5002c8(0xfc)]&&_0x2c9670!==_0x6c9c5a[_0x5002c8(0x107)]?'\x20(Branch:\x20'+_0x2c9670+')':'',_0x69d729={'hookSpecificOutput':{'hookEventName':_0x6c9c5a[_0x5002c8(0xf0)],'additionalContext':_0x6c9c5a[_0x5002c8(0x109)](RANGER_AUTO_ENABLED_PROMPT,_0x32c22c)}};console[_0x5002c8(0x108)](JSON[_0x5002c8(0xf6)](_0x69d729));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4dae(){const _0x29c85e=['currentSessionId','1453723VkOjoK','4355tWJyJe','1950384ycTsNU','success','495267ALwjqv','filter','ZsMwz','7400178VwQLBi','stringify','sNSAx','4366614CtBUxN','checklistItems','AkzAO','verified','status','Stop','log','2920HNyqiu','trackCommandStart','featureId','DBomc','45558JXuczz','sessionId','incomplete','3292alLWHK'];_0x4dae=function(){return _0x29c85e;};return _0x4dae();}(function(_0xf33c7a,_0x221cb5){const _0x295911=_0xd983,_0x50b5a8=_0xf33c7a();while(!![]){try{const _0x380811=-parseInt(_0x295911(0xc4))/0x1+-parseInt(_0x295911(0xc6))/0x2+parseInt(_0x295911(0xc8))/0x3+parseInt(_0x295911(0xdc))/0x4*(parseInt(_0x295911(0xc5))/0x5)+parseInt(_0x295911(0xcb))/0x6+-parseInt(_0x295911(0xce))/0x7+parseInt(_0x295911(0xd5))/0x8*(parseInt(_0x295911(0xd9))/0x9);if(_0x380811===_0x221cb5)break;else _0x50b5a8['push'](_0x50b5a8['shift']());}catch(_0x38ed99){_0x50b5a8['push'](_0x50b5a8['shift']());}}}(_0x4dae,0xde376));function _0xd983(_0x112e34,_0x181694){_0x112e34=_0x112e34-0xc4;const _0x4dae68=_0x4dae();let _0xd98303=_0x4dae68[_0x112e34];return _0xd98303;}import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x238514){const _0x12f627=_0xd983,_0x5dd98f={'sNSAx':function(_0x17a058,_0x397f29,_0x3a4e24,_0x2025c5){return _0x17a058(_0x397f29,_0x3a4e24,_0x2025c5);},'RAbNO':function(_0x196d6a,_0x386c09){return _0x196d6a(_0x386c09);},'ZsMwz':function(_0x302922,_0xce2f2d){return _0x302922&&_0xce2f2d;},'DBomc':function(_0x34682b,_0x3ca21d,_0x4bfcc7){return _0x34682b(_0x3ca21d,_0x4bfcc7);}},_0x3b4700=await getEnabledHookContext(_0x238514),_0x30e0a0=_0x3b4700?.[_0x12f627(0xda)]??null;let _0x228743=!![];if(!_0x30e0a0){await _0x5dd98f[_0x12f627(0xcd)](trackStop,_0x30e0a0,![],_0x228743);return;}try{const _0x2285fb=_0x5dd98f['RAbNO'](getSessionEntry,_0x30e0a0);if(!_0x2285fb){await _0x5dd98f[_0x12f627(0xcd)](trackStop,_0x30e0a0,!![],_0x228743);return;}const _0x309d1a=await getToken(),_0x2cd951='https://dashboard.ranger.net/features/'+_0x2285fb['featureId'];let _0xb9036a=null,_0x2ab879=![],_0x56e82f=![];if(_0x309d1a)try{const _0x25f959=await getFeature(_0x2285fb['featureId']);_0xb9036a=_0x25f959[_0x12f627(0xdd)]??null;const _0x451c89=_0x25f959[_0x12f627(0xcf)][_0x12f627(0xc9)](_0x8ec09d=>_0x8ec09d[_0x12f627(0xda)]===_0xb9036a);_0x2ab879=_0x451c89['some'](_0x38950c=>_0x38950c['status']!==_0x12f627(0xd1)&&_0x38950c[_0x12f627(0xd2)]!=='blocked'&&_0x38950c['status']!=='closed'&&_0x38950c['status']!==_0x12f627(0xdb)),_0x56e82f=_0x451c89['some'](_0x4f762c=>_0x4f762c['status']==='verification_in_progress');}catch{}if(_0x309d1a&&_0xb9036a&&_0x2ab879){if(!_0x56e82f&&shouldShowStopReminder(_0x30e0a0)){const _0x4a4a52={'hookSpecificOutput':{'hookEventName':_0x12f627(0xd3),'additionalContext':'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'+_0x2cd951}};console[_0x12f627(0xd4)](JSON[_0x12f627(0xcc)](_0x4a4a52));}}if(_0x5dd98f[_0x12f627(0xca)](_0x309d1a,_0xb9036a)&&!_0x2ab879)try{await _0x5dd98f[_0x12f627(0xd8)](concludeSession,_0x2285fb[_0x12f627(0xd7)],_0xb9036a);}catch{}await trackStop(_0x30e0a0,!![],_0x228743);return;}catch{await trackStop(_0x30e0a0,!![],_0x228743);return;}}async function trackStop(_0xd59ba,_0x3bce89,_0x65caca){const _0x5db06f=_0xd983,_0x4b7e98={'GjQBX':'hook:stop','AkzAO':_0x5db06f(0xc7)};try{const _0x30646b=createTelemetryCollector(_0x4b7e98['GjQBX']);await _0x30646b[_0x5db06f(0xd6)]({'sessionId':_0xd59ba??undefined,'hooksEnabled':_0x3bce89,'stopAllowed':_0x65caca}),await _0x30646b['trackCommandEnd'](_0x4b7e98[_0x5db06f(0xd0)]);}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x396d(_0x21b156,_0x2a12d6){_0x21b156=_0x21b156-0xa1;var _0x213819=_0x2138();var _0x396d93=_0x213819[_0x21b156];return _0x396d93;}(function(_0x52aad6,_0x18324d){var _0x2a9d19=_0x396d,_0x5d80a6=_0x52aad6();while(!![]){try{var _0x32f840=parseInt(_0x2a9d19(0xa6))/0x1+parseInt(_0x2a9d19(0xa9))/0x2*(-parseInt(_0x2a9d19(0xa1))/0x3)+parseInt(_0x2a9d19(0xa4))/0x4+-parseInt(_0x2a9d19(0xa5))/0x5+parseInt(_0x2a9d19(0xaa))/0x6+-parseInt(_0x2a9d19(0xa8))/0x7*(-parseInt(_0x2a9d19(0xa3))/0x8)+-parseInt(_0x2a9d19(0xa2))/0x9*(parseInt(_0x2a9d19(0xa7))/0xa);if(_0x32f840===_0x18324d)break;else _0x5d80a6['push'](_0x5d80a6['shift']());}catch(_0x1c2a0e){_0x5d80a6['push'](_0x5d80a6['shift']());}}}(_0x2138,0x1d98a));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';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';function _0x2138(){var _0x384d43=['3MSGxJt','53451nVaiBL','407912XoSMzm','494972KJKuPz','262545RdATIa','5402HDKxEk','110IGtWor','21oGUEoD','466366ZuPkaq','1140810tqQgXl'];_0x2138=function(){return _0x384d43;};return _0x2138();}
|