@ranger-testing/ranger-cli 3.1.5 → 3.1.6-alpha.4de822b-51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x46b8ce=_0x3533;(function(_0x144891,_0x464084){const _0x3ac13c=_0x3533,_0x45cdbe=_0x144891();while(!![]){try{const _0x58833d=parseInt(_0x3ac13c(0x1c9))/0x1*(-parseInt(_0x3ac13c(0x1dc))/0x2)+-parseInt(_0x3ac13c(0x19b))/0x3*(-parseInt(_0x3ac13c(0x158))/0x4)+parseInt(_0x3ac13c(0x1c3))/0x5+parseInt(_0x3ac13c(0x1af))/0x6*(-parseInt(_0x3ac13c(0x177))/0x7)+parseInt(_0x3ac13c(0x156))/0x8+parseInt(_0x3ac13c(0x17f))/0x9*(-parseInt(_0x3ac13c(0x1c8))/0xa)+-parseInt(_0x3ac13c(0x1d3))/0xb*(-parseInt(_0x3ac13c(0x225))/0xc);if(_0x58833d===_0x464084)break;else _0x45cdbe['push'](_0x45cdbe['shift']());}catch(_0x20ed7b){_0x45cdbe['push'](_0x45cdbe['shift']());}}}(_0x441f,0xcec13));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x2e466d 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';function _0x441f(){const _0x5f5253=['.\x20Feature\x20review\x20has\x20','gitBranch','\x20\x20\x20Updated\x20branch\x20to:\x20','replace','vvIHR','QWeMC','incomplete','5|4|0|3|2|1','env','linkedSession','length','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','CLAUDE_SESSION_ID','any','terminalReason','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','LxaZD','XcvPh','Cannot\x20conclude\x20session\x20with\x20status:\x20','currentSessionId','iteration','incompleteReason','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','2328ROoVuX','timing','stepName','list','QXUeX','short','pendingItems','\x20\x20\x20Completed:\x20','arrayBuffer','includeDeleted','IpFld','in_progress','submittedAt','dashboardUrl','xOhSx','JFYEO','XDtzI','items','\x0aCreating\x20feature\x20review...','incompleteItems','6pZsajM','\x0a✅\x20Feature\x20review\x20created:\x20','pop','ready','LUuVb','approved','OlJeU','closed','completedAt','verification_in_progress','assetUrl','\x0a✅\x20Restored\x20feature\x20review:\x20','\x20--current-branch','sessionId','name','assets','get','kbekc','VpuNI','push','6014960xRAzcB','QJCBM','Please\x20finish\x20your\x20review\x20first:','screenshotUrls',':\x20\x22','13870800TOEKSy','257021kEAsYf','\x0a✅\x20Session\x20is\x20already\x20completed.','\x20\x20Expected\x20flow:','log','.md','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','scenario','totalCount','Next\x20page:\x20ranger\x20list\x20--offset\x20','coviW','6984098FIAzfK','Current\x20session\x20not\x20found.','stdout','\x20--limit\x20','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x0a\x20\x20\x20Scenarios:','stringify','domRef','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','6trFCxs','toLocaleString','lvNlW','utf-8','qOIDV','limit','CZCMX','ZIeZS','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20\x20\x20Created:\x20','status','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','blocked','location','EDEZP','TmCBn','SKpzG','nHXzo','Screenshot\x20','has','\x20verified','jfJSz','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','parentItemId','content','\x20at\x20[','\x20of\x20','bQkRs','\x20\x20\x20\x20\x20\x20Approved','coordinates','wlqOx','selector','pipe','IXavt','currentBranch','feedback-images','position','type','completed','AilgJ','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','wrwni','ISXLO','notes','toFixed','map','checklistItems','isTTY','/artifacts/','\x0aNo\x20feature\x20reviews\x20found.','\x20--include-deleted','\x20\x20\x20\x20\x20Branch:\x20','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','hvGYf','spatial','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','RJSVp','gitRepoUrl','\x20\x20\x20\x20\x20ID:\x20','vfYKe','createdAt','\x20/\x20','write','offset','):\x20\x22','\x20\x20\x20Status:\x20','\x20\x20\x20Description:\x20','Otljq','liEXp','\x20—\x20','meaAV','rKoCs','\x20in\x20progress','12DLowVP','split','\x1b[1m','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','oZVHC','github.com/','IEUhS','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','spvnE','EHZNQ','rXugz','\x20\x20\x20Progress:\x20','DTXyG','\x20\x20\x20▶️\x20Started\x20session\x20','5189976zgycSg','Unknown','8452NMgkrK','\x0a✅\x20Report\x20generated:\x20','scenarios','trimEnd','canonicalFlow','\x20scenarios.','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','gyslW','authorName','\x0aGenerating\x20report...','stats','find','ctYrY','TfVjs','isKeyStep','RcrTz','canceledReason','\x20blocked','slice','\x0aAvailable\x20scenarios:','blockedReason','description','InFww','\x20\x20\x20\x20\x20Progress:\x20','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','QuaeM','error','output','jqjNJ','assetType','7849345wXLbPR','version','filter','TDICd','rgNjn','unaddressedComments','qdQSu','jTmcC','9BaXGHZ','latestReview','nKYtZ','json','trim'];_0x441f=function(){return _0x5f5253;};return _0x441f();}import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x171702=>_0x46b8ce(0x227)+_0x171702+'\x1b[0m';function getGitRepoUrl(){const _0x109d2b=_0x46b8ce,_0x1236a3={'jJJAp':_0x109d2b(0x1df),'mIQYr':'pipe'};try{const _0x4dd005=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x1236a3['jJJAp'],'stdio':[_0x109d2b(0x1fc),_0x109d2b(0x1fc),_0x1236a3['mIQYr']]})['trim']();return _0x4dd005[_0x109d2b(0x187)](/\.git$/,'')[_0x109d2b(0x187)](/^git@github\.com:/,_0x109d2b(0x14d))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x5c20d4=_0x46b8ce,_0x536f82={'OlJeU':function(_0x209ada,_0x39462a,_0xdd6714){return _0x209ada(_0x39462a,_0xdd6714);},'YHURc':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','oxyTb':'utf-8'};try{return _0x536f82[_0x5c20d4(0x1b5)](execSync,_0x536f82['YHURc'],{'encoding':_0x536f82['oxyTb'],'stdio':[_0x5c20d4(0x1fc),'pipe',_0x5c20d4(0x1fc)]})[_0x5c20d4(0x183)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x251b2b=_0x46b8ce,_0x355a71={'nbhrx':function(_0x560d58){return _0x560d58();},'CkImb':function(_0x3bee76,_0xb91bb){return _0x3bee76(_0xb91bb);}},_0x49cd79=join(_0x355a71['nbhrx'](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x355a71['CkImb'](existsSync,_0x49cd79))return null;try{const _0xb8656d=await readFile(_0x49cd79,'utf-8');return _0xb8656d[_0x251b2b(0x183)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x527316){const _0x571bfc=_0x46b8ce,_0x3c2e4c={'swPcG':function(_0x28146d,_0x3bbd5){return _0x28146d(_0x3bbd5);},'IpFld':function(_0x2d635a,_0x4fcb55,_0x58b841){return _0x2d635a(_0x4fcb55,_0x58b841);},'jqjNJ':function(_0x341786,_0x131d79,_0x86dba1,_0x3bafa0){return _0x341786(_0x131d79,_0x86dba1,_0x3bafa0);}},_0x4fb747=getRangerDir(),_0x1d9ac6=join(_0x4fb747,ACTIVE_FEATURE_FILE);!_0x3c2e4c['swPcG'](existsSync,_0x4fb747)&&await _0x3c2e4c[_0x571bfc(0x1a5)](mkdir,_0x4fb747,{'recursive':!![]}),await _0x3c2e4c[_0x571bfc(0x175)](writeFile,_0x1d9ac6,_0x527316,_0x571bfc(0x1df));}function getProgressDisplay(_0x5c30fd){const _0x1ebac1=_0x46b8ce,_0x29d7c2={'fZWRD':function(_0x186140,_0x646367){return _0x186140+_0x646367;},'rXugz':function(_0x553e7c,_0x3c99a6){return _0x553e7c===_0x3c99a6;},'PvUOx':function(_0x2a582e,_0xf4a3ae){return _0x2a582e*_0xf4a3ae;},'lvNlW':function(_0x1484f9,_0x3be6fb){return _0x1484f9/_0x3be6fb;},'QEquH':function(_0x302ea7,_0x4b5350){return _0x302ea7+_0x4b5350;},'GirFS':function(_0x4b2323,_0x226eff){return _0x4b2323>_0x226eff;},'QpGZf':function(_0x36c43c,_0x33ea82){return _0x36c43c>_0x33ea82;}},_0x355ca8=_0x5c30fd['verifiedItems']||0x0,_0x4d7d86=_0x5c30fd['verificationInProgressItems']||0x0,_0x5e98cf=_0x5c30fd['blockedItems']||0x0,_0x4224e0=_0x5c30fd[_0x1ebac1(0x1ae)]||0x0,_0x56de2c=_0x5c30fd[_0x1ebac1(0x1a1)]||0x0,_0x3dab13=_0x29d7c2['fZWRD'](_0x29d7c2['fZWRD'](_0x355ca8,_0x4d7d86)+_0x5e98cf,_0x4224e0)+_0x56de2c;if(_0x29d7c2[_0x1ebac1(0x152)](_0x3dab13,0x0))return'-';const _0x1c397d=0xa,_0x10f4d3=Math['round'](_0x29d7c2['PvUOx'](_0x29d7c2[_0x1ebac1(0x1de)](_0x355ca8,_0x3dab13),_0x1c397d)),_0x135127=_0x29d7c2['QEquH']('█'['repeat'](_0x10f4d3),'░'['repeat'](_0x1c397d-_0x10f4d3)),_0x1cd5ae=[];if(_0x5e98cf>0x0)_0x1cd5ae[_0x1ebac1(0x1c2)](_0x5e98cf+_0x1ebac1(0x16a));if(_0x29d7c2['GirFS'](_0x4224e0,0x0))_0x1cd5ae[_0x1ebac1(0x1c2)](_0x4224e0+'\x20incomplete');if(_0x29d7c2['QpGZf'](_0x4d7d86,0x0))_0x1cd5ae[_0x1ebac1(0x1c2)](_0x4d7d86+_0x1ebac1(0x224));const _0x51cc54=_0x1cd5ae[_0x1ebac1(0x18e)]>0x0?'\x20('+_0x1cd5ae['join'](',\x20')+')':'';return _0x135127+'\x20'+_0x355ca8+'/'+_0x3dab13+_0x1ebac1(0x1f0)+_0x51cc54;}function getCurrentSessionItems(_0x2b9ee3,_0x365340){const _0x5616e0=_0x46b8ce;if(!_0x2b9ee3['currentSessionId'])return _0x365340[_0x5616e0(0x179)](_0x63b883=>!_0x63b883[_0x5616e0(0x1bc)]);return _0x365340['filter'](_0x19c96e=>_0x19c96e[_0x5616e0(0x1bc)]===_0x2b9ee3['currentSessionId']||!_0x19c96e['sessionId']);}function displayFeature(_0x366103,_0x24c8bf){const _0x22e66e=_0x46b8ce,_0x2c7917={'DTXyG':function(_0x243f9f,_0x3f8e8f){return _0x243f9f>_0x3f8e8f;},'dLFQx':_0x22e66e(0x1d8),'LxaZD':function(_0xe1575b,_0x5ef5f7){return _0xe1575b===_0x5ef5f7;},'WMltw':_0x22e66e(0x1b6),'EHZNQ':function(_0x233eff,_0x55d923){return _0x233eff===_0x55d923;},'TDICd':_0x22e66e(0x18a),'JCXps':_0x22e66e(0x1b8),'ijCYT':function(_0x8d08a,_0x4e69b6){return _0x8d08a>_0x4e69b6;},'SKpzG':function(_0x4b28f7,_0x40f739){return _0x4b28f7+_0x40f739;},'Nnaus':'blocked','spvnE':_0x22e66e(0x1b4)};console[_0x22e66e(0x1cc)]('\x0a'+_0x366103['name']+'\x20('+_0x366103[_0x22e66e(0x1a8)]+')');_0x366103[_0x22e66e(0x163)]&&console['log'](_0x22e66e(0x153)+getProgressDisplay(_0x366103['stats']));_0x366103['description']&&console['log'](_0x22e66e(0x21e)+_0x366103['description']);_0x366103[_0x22e66e(0x215)]&&console[_0x22e66e(0x1cc)]('\x20\x20\x20Repository:\x20'+_0x366103[_0x22e66e(0x215)]);_0x366103['gitBranch']&&console[_0x22e66e(0x1cc)]('\x20\x20\x20Branch:\x20'+_0x366103[_0x22e66e(0x185)]);console['log'](_0x22e66e(0x1e5)+new Date(_0x366103[_0x22e66e(0x218)])[_0x22e66e(0x1dd)]());_0x366103[_0x22e66e(0x1b7)]&&console['log'](_0x22e66e(0x1a2)+new Date(_0x366103[_0x22e66e(0x1b7)])['toLocaleString']());if(_0x24c8bf&&_0x2c7917[_0x22e66e(0x154)](_0x24c8bf['length'],0x0)){console[_0x22e66e(0x1cc)](_0x2c7917['dLFQx']);for(let _0x18b7bc=0x0;_0x18b7bc<_0x24c8bf['length'];_0x18b7bc++){const _0x225526=_0x24c8bf[_0x18b7bc];let _0x10040e;if(_0x2c7917['LxaZD'](_0x225526[_0x22e66e(0x1e6)],_0x2c7917['WMltw'])&&_0x225526['terminalReason']==='approved')_0x10040e='✅';else{if(_0x225526['status']==='verified')_0x10040e='🟢';else{if(_0x2c7917['EHZNQ'](_0x225526['status'],_0x2c7917[_0x22e66e(0x17a)]))_0x10040e='🟠';else{if(_0x2c7917[_0x22e66e(0x151)](_0x225526['status'],_0x22e66e(0x1e8)))_0x10040e='🛑';else{if(_0x225526['status']===_0x22e66e(0x1b6))_0x10040e='⛔';else _0x225526[_0x22e66e(0x1e6)]===_0x2c7917['JCXps']?_0x10040e='⏳':_0x10040e='⬜';}}}}const _0x2231b7=_0x225526['version']>0x1?'\x20(v'+_0x225526[_0x22e66e(0x178)]+')':'',_0x439992=_0x2c7917['ijCYT'](_0x225526['version'],0x1)&&_0x225526[_0x22e66e(0x1f3)]&&_0x225526[_0x22e66e(0x1e6)]!==_0x22e66e(0x1b6)&&_0x225526[_0x22e66e(0x1e6)]!=='verified'?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+_0x2c7917[_0x22e66e(0x1ec)](_0x18b7bc,0x1)+'.\x20'+_0x10040e+'\x20'+_0x225526['description']+_0x2231b7+_0x439992);_0x225526['status']===_0x2c7917['Nnaus']&&_0x225526['blockedReason']&&console[_0x22e66e(0x1cc)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x225526[_0x22e66e(0x16d)]);_0x225526[_0x22e66e(0x1e6)]==='incomplete'&&_0x225526[_0x22e66e(0x199)]&&console[_0x22e66e(0x1cc)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x225526[_0x22e66e(0x199)]);if(_0x225526[_0x22e66e(0x1e6)]==='closed'&&_0x225526[_0x22e66e(0x192)]===_0x2c7917[_0x22e66e(0x150)])console['log'](_0x22e66e(0x1f8));else _0x2c7917[_0x22e66e(0x194)](_0x225526['status'],_0x22e66e(0x1b6))&&_0x225526['canceledReason']&&console[_0x22e66e(0x1cc)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x225526['canceledReason']);}}}export async function featureCreate(_0x5dff96,_0x47b81a){const _0x5e7411=_0x46b8ce,_0x2d424b={'SOzrx':function(_0x5f1d05){return _0x5f1d05();},'VpuNI':function(_0x2ac1ff,_0x1af2b3){return _0x2ac1ff===_0x1af2b3;},'CZCMX':function(_0x381167){return _0x381167();},'ZIeZS':function(_0x536dfc,_0x5e66de){return _0x536dfc(_0x5e66de);}},{envNames:_0x19ea94}=await _0x2d424b['SOzrx'](getEnvNames);if(_0x2d424b[_0x5e7411(0x1c1)](_0x19ea94['length'],0x0)&&!process['env']['RANGER_TEST_USERNAME']){let _0x2f4905=0x0;try{_0x2f4905=(await listCloudProfiles())['length'];}catch{_0x2f4905=0x1;}_0x2f4905===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x369e46=>bold(_0x369e46)));}const _0xc3b4f3=_0x47b81a[_0x5e7411(0x15a)]?_0x47b81a['scenarios']['map'](_0x424ad9=>_0x424ad9['trim']()):[],_0x9ad5af=_0x2d424b[_0x5e7411(0x1e2)](getGitRepoUrl),_0x294e74=_0x2d424b['CZCMX'](getGitBranch);console[_0x5e7411(0x1cc)](_0x5e7411(0x1ad));const _0x4a245a=await _0x2d424b[_0x5e7411(0x1e3)](createFeature,{'name':_0x5dff96,'description':_0x47b81a[_0x5e7411(0x16e)],'checklist':_0xc3b4f3,'gitRepoUrl':_0x9ad5af,'gitBranch':_0x294e74});await setActiveFeatureId(_0x4a245a['id']),await tryStartCurrentSession(_0x4a245a['id']);const _0x223485=process[_0x5e7411(0x18c)][_0x5e7411(0x190)];_0x223485&®isterSession(_0x223485,_0x4a245a['id']),console[_0x5e7411(0x1cc)](_0x5e7411(0x1b0)+_0x4a245a['id']),displayFeature(_0x4a245a,_0x4a245a['checklistItems']),console['log'](_0x5e7411(0x193));}export async function featureList(_0x48e0f6){const _0x194298=_0x46b8ce,_0x416a42={'BmbDn':function(_0x451912){return _0x451912();},'UDgWe':function(_0x2af26e){return _0x2af26e();},'ENXZs':_0x194298(0x20d),'boOXV':function(_0x829c7b,_0xc00a0c){return _0x829c7b(_0xc00a0c);},'QWeMC':function(_0x3af368,_0x55b412){return _0x3af368<_0x55b412;},'ISXLO':_0x194298(0x1bb)},_0x27a4e5={'limit':_0x48e0f6['limit']??0xa,'offset':_0x48e0f6['offset']??0x0,'includeDeleted':_0x48e0f6['includeDeleted']};_0x48e0f6[_0x194298(0x1fe)]&&(_0x27a4e5[_0x194298(0x215)]=_0x416a42['BmbDn'](getGitRepoUrl),_0x27a4e5[_0x194298(0x185)]=_0x416a42['UDgWe'](getGitBranch));const _0x3b8e79=await listFeatures(_0x27a4e5);if(_0x3b8e79[_0x194298(0x1ac)][_0x194298(0x18e)]===0x0){console['log'](_0x416a42['ENXZs']);return;}const _0x5c43c6=_0x3b8e79['totalCount']>_0x3b8e79[_0x194298(0x1ac)][_0x194298(0x18e)]?'Showing\x20'+_0x3b8e79[_0x194298(0x1ac)][_0x194298(0x18e)]+_0x194298(0x1f6)+_0x3b8e79['totalCount']:_0x3b8e79[_0x194298(0x1d0)]+'\x20feature\x20review(s)\x20found';console[_0x194298(0x1cc)]('\x0a'+_0x5c43c6+':\x0a');for(const _0x5e2fb4 of _0x3b8e79['items']){const _0x113e0c=_0x194298(0x18b)[_0x194298(0x226)]('|');let _0x20d1ec=0x0;while(!![]){switch(_0x113e0c[_0x20d1ec++]){case'0':_0x5e2fb4['stats']&&console[_0x194298(0x1cc)]('\x20\x20\x20Progress:\x20'+_0x416a42['boOXV'](getProgressDisplay,_0x5e2fb4['stats']));continue;case'1':console['log']('');continue;case'2':console[_0x194298(0x1cc)](_0x194298(0x1e5)+new Date(_0x5e2fb4[_0x194298(0x218)])['toLocaleDateString']());continue;case'3':_0x5e2fb4[_0x194298(0x185)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x5e2fb4[_0x194298(0x185)]);continue;case'4':console[_0x194298(0x1cc)]('\x20\x20\x20ID:\x20'+_0x5e2fb4['id']);continue;case'5':console['log'](''+_0x5e2fb4['name']);continue;}break;}}const _0x578717=_0x27a4e5[_0x194298(0x1e1)]??0xa,_0x27ab69=(_0x27a4e5[_0x194298(0x21b)]??0x0)+_0x3b8e79['items']['length'];if(_0x416a42[_0x194298(0x189)](_0x27ab69,_0x3b8e79[_0x194298(0x1d0)])){const _0x862b63=_0x578717!==0xa?_0x194298(0x1d6)+_0x578717:'',_0x3a3170=_0x48e0f6[_0x194298(0x1fe)]?_0x416a42[_0x194298(0x206)]:'',_0x40bf63=_0x48e0f6[_0x194298(0x1a4)]?_0x194298(0x20e):'';console['log'](_0x194298(0x1d1)+_0x27ab69+_0x862b63+_0x3a3170+_0x40bf63);}}export async function featureShow(_0x48f8ef){const _0x3d61a0=_0x46b8ce,_0x5691de={'qRJof':_0x3d61a0(0x1e7),'EynPs':function(_0x2429ec,_0x2b0fc2,_0x58ad69){return _0x2429ec(_0x2b0fc2,_0x58ad69);}},_0x2d36de=_0x48f8ef||await getActiveFeatureId();if(!_0x2d36de)throw new Error(_0x5691de['qRJof']);const _0x2b58dd=await getFeature(_0x2d36de);_0x5691de['EynPs'](displayFeature,_0x2b58dd,_0x2b58dd['checklistItems']);}export async function featureResume(_0x1ed5b8){const _0x3da8aa=_0x46b8ce,_0x3ee92b={'nKYtZ':function(_0x2f631f,_0x1017e5){return _0x2f631f(_0x1017e5);},'bQkRs':function(_0x4ab439,_0xab6971){return _0x4ab439!==_0xab6971;},'SBSjs':function(_0x17eda7,_0x4b51d4,_0x54dcc0){return _0x17eda7(_0x4b51d4,_0x54dcc0);},'sriHH':function(_0x5435bf,_0x2cd8a6){return _0x5435bf(_0x2cd8a6);},'EDEZP':function(_0x4d32d3){return _0x4d32d3();},'hvGYf':'Not\x20in\x20a\x20git\x20repository.','sCutE':function(_0x17abe5,_0x36c223){return _0x17abe5||_0x36c223;},'Psuja':function(_0x463fcc,_0x44b13b){return _0x463fcc===_0x44b13b;},'mmeNL':function(_0x1e7124,_0x41ae70){return _0x1e7124===_0x41ae70;},'rgNjn':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','HuLWe':'selected','UJwHk':function(_0x55d3df,_0x1154f6){return _0x55d3df!==_0x1154f6;},'mKCWb':function(_0xaa0d7d,_0x439669,_0x36dbee){return _0xaa0d7d(_0x439669,_0x36dbee);},'FJzEd':function(_0x12f682,_0x275878,_0x4f8f30){return _0x12f682(_0x275878,_0x4f8f30);}};if(_0x1ed5b8){const _0x1b415f=await _0x3ee92b[_0x3da8aa(0x181)](getFeature,_0x1ed5b8);await _0x3ee92b[_0x3da8aa(0x181)](setActiveFeatureId,_0x1b415f['id']);const _0x5be25a=getGitBranch();_0x5be25a&&_0x3ee92b[_0x3da8aa(0x1f7)](_0x5be25a,_0x1b415f[_0x3da8aa(0x185)])&&(await updateFeature(_0x1b415f['id'],{'gitBranch':_0x5be25a}),console[_0x3da8aa(0x1cc)](_0x3da8aa(0x186)+_0x5be25a));console['log'](_0x3da8aa(0x15f)+_0x1b415f[_0x3da8aa(0x1bd)]+'\x20('+_0x1b415f['id']+')'),await tryStartCurrentSession(_0x1b415f['id']);const _0x24ed33=process[_0x3da8aa(0x18c)][_0x3da8aa(0x190)];_0x24ed33&®isterSession(_0x24ed33,_0x1b415f['id']);_0x3ee92b['SBSjs'](displayFeature,_0x1b415f,_0x1b415f[_0x3da8aa(0x20a)]),await _0x3ee92b['sriHH'](printFeedbackNudge,_0x1b415f['id']);return;}const _0x427d45=_0x3ee92b[_0x3da8aa(0x1ea)](getGitRepoUrl),_0x34f596=_0x3ee92b['EDEZP'](getGitBranch);if(!_0x427d45&&!_0x34f596)throw new Error(_0x3ee92b[_0x3da8aa(0x211)]);console[_0x3da8aa(0x1cc)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x3ee92b['sCutE'](_0x427d45,_0x3da8aa(0x191))+_0x3da8aa(0x219)+_0x3ee92b['sCutE'](_0x34f596,_0x3da8aa(0x191))+'...');const _0x4e2a4b=await listFeatures({'gitRepoUrl':_0x427d45,'gitBranch':_0x34f596}),_0x305536=_0x4e2a4b['items']['filter'](_0xac8272=>_0xac8272['status']?_0xac8272['status']!=='verified':!_0xac8272['completedAt']);if(_0x3ee92b['Psuja'](_0x305536[_0x3da8aa(0x18e)],0x0)){console[_0x3da8aa(0x1cc)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x3da8aa(0x1cc)](_0x3da8aa(0x210));return;}let _0x3c0bc5;if(_0x3ee92b['mmeNL'](_0x305536[_0x3da8aa(0x18e)],0x1))_0x3c0bc5=_0x305536[0x0];else{const _0x5def50=process['stdin'][_0x3da8aa(0x20b)]&&process[_0x3da8aa(0x1d5)]['isTTY'];if(!_0x5def50){console['log'](_0x3da8aa(0x1e4));for(const _0x109f59 of _0x305536){console[_0x3da8aa(0x1cc)]('\x20\x20'+_0x109f59[_0x3da8aa(0x1bd)]),console['log'](_0x3da8aa(0x216)+_0x109f59['id']),_0x109f59['stats']&&console['log'](_0x3da8aa(0x170)+_0x3ee92b[_0x3da8aa(0x181)](getProgressDisplay,_0x109f59['stats'])),_0x109f59[_0x3da8aa(0x185)]&&console[_0x3da8aa(0x1cc)](_0x3da8aa(0x20f)+_0x109f59[_0x3da8aa(0x185)]);}throw new Error(_0x3ee92b[_0x3da8aa(0x17b)]);}const {selected:_0x427427}=await _0x2e466d['prompt']([{'type':_0x3da8aa(0x19e),'name':_0x3ee92b['HuLWe'],'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x305536[_0x3da8aa(0x209)](_0x444c97=>({'name':_0x444c97['name']+'\x20('+_0x444c97['id']+')','value':_0x444c97['id']}))}]);_0x3c0bc5=_0x305536[_0x3da8aa(0x164)](_0x459b09=>_0x459b09['id']===_0x427427);}await setActiveFeatureId(_0x3c0bc5['id']);_0x34f596&&_0x3ee92b['UJwHk'](_0x34f596,_0x3c0bc5[_0x3da8aa(0x185)])&&(await _0x3ee92b['mKCWb'](updateFeature,_0x3c0bc5['id'],{'gitBranch':_0x34f596}),console['log'](_0x3da8aa(0x186)+_0x34f596));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3c0bc5[_0x3da8aa(0x1bd)]+'\x20('+_0x3c0bc5['id']+')'),await tryStartCurrentSession(_0x3c0bc5['id']);const _0x208f8d=await getFeature(_0x3c0bc5['id']),_0x52bf82=process[_0x3da8aa(0x18c)][_0x3da8aa(0x190)];_0x52bf82&&_0x3ee92b['FJzEd'](registerSession,_0x52bf82,_0x208f8d['id']),displayFeature(_0x208f8d,_0x208f8d[_0x3da8aa(0x20a)]),await printFeedbackNudge(_0x208f8d['id']);}async function printFeedbackNudge(_0x27949f){const _0x305e19=_0x46b8ce,_0x1946b8={'XcvPh':function(_0x96b558,_0x5d7de4,_0x139137){return _0x96b558(_0x5d7de4,_0x139137);},'rKoCs':function(_0x4d4aa4,_0x2a0750){return _0x4d4aa4>_0x2a0750;},'IXavt':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x2f55e4}=await getActionItems(_0x27949f);let _0x33d550=0x0,_0x5acd4b=0x0;for(const _0x36617a of _0x2f55e4){const _0x3bcfc5=await _0x1946b8[_0x305e19(0x195)](getItemFeedback,_0x27949f,_0x36617a['id']);_0x1946b8[_0x305e19(0x223)](_0x3bcfc5[_0x305e19(0x17c)]['length'],0x0)&&(_0x33d550+=_0x3bcfc5[_0x305e19(0x17c)]['length'],_0x5acd4b++);}_0x1946b8['rKoCs'](_0x33d550,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x33d550+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x5acd4b+'\x20scenario(s).'),console['log'](_0x1946b8[_0x305e19(0x1fd)]));}catch{}}async function tryStartCurrentSession(_0x203731){const _0x1937e9=_0x46b8ce,_0x25ed25={'qdQSu':function(_0x577af5,_0x33b714){return _0x577af5(_0x33b714);}};try{const {sessions:_0x17a9e4}=await _0x25ed25[_0x1937e9(0x17d)](listFeatureSessions,_0x203731),_0x4aa1a7=_0x17a9e4['find'](_0x48295c=>_0x48295c[_0x1937e9(0x1e6)]===_0x1937e9(0x1b2));_0x4aa1a7&&(await startSession(_0x203731,_0x4aa1a7['id']),console[_0x1937e9(0x1cc)](_0x1937e9(0x155)+_0x4aa1a7['iteration']));}catch{}}export async function featureReport(_0x50831f,_0xeac083){const _0x2f6248=_0x46b8ce,_0x3537c2={'TmCBn':_0x2f6248(0x162),'QuaeM':function(_0x1d3d01,_0x3e3bd0,_0x2fb156){return _0x1d3d01(_0x3e3bd0,_0x2fb156);},'lByVy':function(_0x2a7e41,_0xdc1539,_0x383837){return _0x2a7e41(_0xdc1539,_0x383837);},'sXEyj':'utf-8'},_0x4efe91=_0x50831f||await getActiveFeatureId();if(!_0x4efe91)throw new Error(_0x2f6248(0x19a));console[_0x2f6248(0x1cc)](_0x3537c2[_0x2f6248(0x1eb)]);const _0x3384ab=await getFeatureReportMarkdown(_0x4efe91,{'style':_0xeac083['style']}),_0xc46266=_0xeac083[_0x2f6248(0x174)]||join(getRangerDir(),'reports',_0x4efe91+_0x2f6248(0x1cd)),_0x221fbb=_0x3537c2[_0x2f6248(0x172)](join,_0xc46266,'..');!existsSync(_0x221fbb)&&await _0x3537c2['lByVy'](mkdir,_0x221fbb,{'recursive':!![]}),await writeFile(_0xc46266,_0x3384ab,_0x3537c2['sXEyj']),console[_0x2f6248(0x1cc)](_0x2f6248(0x159)+_0xc46266);}function getScenarioResult(_0x15e27c){const _0x23245d=_0x46b8ce,_0x3bf082={'meaAV':'closed','XDtzI':'verification_in_progress'};if(_0x15e27c[_0x23245d(0x1e6)]===_0x3bf082[_0x23245d(0x222)])return _0x15e27c[_0x23245d(0x192)]??_0x3bf082['meaAV'];if(_0x15e27c['status']===_0x3bf082[_0x23245d(0x1ab)])return'in_progress';return _0x15e27c[_0x23245d(0x1e6)];}function getScenarioRationale(_0x50de1e,_0x2c2258){const _0x584977=_0x46b8ce,_0x4f6597='1|2|0|4|3|5'['split']('|');let _0x589c42=0x0;while(!![]){switch(_0x4f6597[_0x589c42++]){case'0':if(_0x50de1e[_0x584977(0x199)])return _0x50de1e[_0x584977(0x199)];continue;case'1':if(_0x2c2258)return _0x2c2258;continue;case'2':if(_0x50de1e['blockedReason'])return _0x50de1e[_0x584977(0x16d)];continue;case'3':if(_0x50de1e[_0x584977(0x207)])return _0x50de1e['notes'];continue;case'4':if(_0x50de1e[_0x584977(0x169)])return _0x50de1e['canceledReason'];continue;case'5':return null;}break;}}function _0x3533(_0x23c6a3,_0x2c8f08){_0x23c6a3=_0x23c6a3-0x14c;const _0x441f2f=_0x441f();let _0x353351=_0x441f2f[_0x23c6a3];return _0x353351;}export async function featureReportPrDescription(_0x4bd805,_0x5d71a0){const _0x2c89d9=_0x46b8ce,_0x208364={'xOhSx':_0x2c89d9(0x19a),'jfJSz':function(_0x21c096,_0x2dd63a){return _0x21c096===_0x2dd63a;},'xgjoH':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','vvIHR':function(_0x1edd4e,_0x1c9bfa){return _0x1edd4e>_0x1c9bfa;},'pCDbU':function(_0x3f6cef,_0x2c174d){return _0x3f6cef+_0x2c174d;}},_0x54c8b5=_0x4bd805||await getActiveFeatureId();if(!_0x54c8b5)throw new Error(_0x208364[_0x2c89d9(0x1a9)]);const _0x2a2cf7=await getFeature(_0x54c8b5),_0x149cbb=_0x2a2cf7[_0x2c89d9(0x20a)]||[],_0xafab73=getCurrentSessionItems(_0x2a2cf7,_0x149cbb);_0x208364[_0x2c89d9(0x1f1)](_0xafab73[_0x2c89d9(0x18e)],0x0)&&(console['error'](_0x208364['xgjoH']),process['exit'](0x1));const _0x3de342=_0x5d71a0['excludeScenarios']??[],_0x4d5d5c=_0x3de342[_0x2c89d9(0x179)](_0x1597a9=>!Number['isInteger'](_0x1597a9)||_0x1597a9<0x1||_0x1597a9>_0xafab73[_0x2c89d9(0x18e)]);if(_0x208364[_0x2c89d9(0x188)](_0x4d5d5c[_0x2c89d9(0x18e)],0x0)){console['error'](_0x2c89d9(0x14f)+_0x4d5d5c['join'](',\x20')),console[_0x2c89d9(0x1cc)]('\x0aAvailable\x20scenarios:');for(let _0x5bee31=0x0;_0x5bee31<_0xafab73[_0x2c89d9(0x18e)];_0x5bee31++){console['log']('\x20\x20'+_0x208364['pCDbU'](_0x5bee31,0x1)+'.\x20'+_0xafab73[_0x5bee31][_0x2c89d9(0x16e)]);}process['exit'](0x1);}const _0x656024=new Set(_0x3de342[_0x2c89d9(0x209)](_0x31fab1=>_0x31fab1-0x1)),_0x59da5a=_0xafab73['filter']((_0x3db2bd,_0x372a3a)=>!_0x656024[_0x2c89d9(0x1ef)](_0x372a3a));_0x208364['jfJSz'](_0x59da5a[_0x2c89d9(0x18e)],0x0)&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x5d71a0[_0x2c89d9(0x182)])await outputJsonReport(_0x54c8b5,_0x2a2cf7,_0x59da5a);else{const _0x24540c=await getFeatureReportMarkdown(_0x54c8b5,{'itemIds':_0x59da5a[_0x2c89d9(0x209)](_0x2e07d7=>_0x2e07d7['id'])});process['stdout']['write'](_0x24540c[_0x2c89d9(0x15b)]()+'\x0a');}}async function outputJsonReport(_0x49b7a8,_0x21d707,_0x3087b8){const _0x510279=_0x46b8ce,_0x486e22={'cycir':function(_0x250434,_0x3ba3ad){return _0x250434(_0x3ba3ad);},'qoBVj':function(_0x16fff8,_0x273158){return _0x16fff8>_0x273158;},'ctYrY':function(_0x3376a1,_0x420025){return _0x3376a1===_0x420025;},'RJSVp':function(_0x5f4bcc,_0x397a37){return _0x5f4bcc(_0x397a37);},'wlqOx':function(_0x1eec11,_0x4533f2,_0x5214ec){return _0x1eec11(_0x4533f2,_0x5214ec);},'mFQLu':function(_0x36bec4){return _0x36bec4();},'ybYrf':function(_0x27b07e,_0x5efe30){return _0x27b07e(_0x5efe30);}},_0x35d098=_0x486e22['mFQLu'](getApiBaseUrl),_0x2465a5=await _0x486e22['ybYrf'](getFeatureReport,_0x49b7a8),_0x3fbc72=new Map(_0x2465a5['checklistItems'][_0x510279(0x209)](_0x54b95e=>[_0x54b95e['id'],_0x54b95e])),_0x297496=await Promise['all'](_0x3087b8['map'](async _0xd34e55=>{const _0x466a7e=_0x510279,_0x2bce9a=_0x3fbc72[_0x466a7e(0x1bf)](_0xd34e55['id']),_0x42da52=_0x2bce9a?.[_0x466a7e(0x18d)]??null;let _0x2a8824=[];if(_0xd34e55['browserSessionId'])try{const {steps:_0x4afae2}=await _0x486e22['cycir'](getBrowserSessionSteps,_0xd34e55['browserSessionId']);_0x486e22['qoBVj'](_0x4afae2[_0x466a7e(0x18e)],0x0)&&(_0x2a8824=_0x4afae2[_0x466a7e(0x209)](_0x5d2dc1=>{const _0x17c1b5=_0x466a7e,_0x3731b6=_0x5d2dc1[_0x17c1b5(0x1be)][_0x17c1b5(0x164)](_0x2f2980=>_0x2f2980[_0x17c1b5(0x176)]==='screenshot'&&_0x2f2980[_0x17c1b5(0x19c)]==='after')??_0x5d2dc1[_0x17c1b5(0x1be)]['find'](_0xea80e=>_0xea80e[_0x17c1b5(0x176)]==='screenshot');let _0x4cdf52=null,_0x260413=null;if(_0x3731b6){const _0x581994=_0x3731b6['storage'][_0x17c1b5(0x1e9)]['split']('/')[_0x17c1b5(0x1b1)]();_0x4cdf52=_0x35d098+'/api/v1/mcp/browser-sessions/'+_0xd34e55['browserSessionId']+_0x17c1b5(0x20c)+_0x581994,_0x581994&&(_0x260413=_0x581994[_0x17c1b5(0x187)](/\.\w+$/,'')[_0x17c1b5(0x187)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x260413||_0x5d2dc1['description']||_0x5d2dc1[_0x17c1b5(0x19d)]||'Step\x20'+_0x5d2dc1[_0x17c1b5(0x200)],'screenshot':_0x4cdf52,'is_key_step':_0x5d2dc1[_0x17c1b5(0x167)]};}));}catch{}return _0x486e22[_0x466a7e(0x165)](_0x2a8824['length'],0x0)&&_0x42da52?.[_0x466a7e(0x1c6)]&&(_0x2a8824=_0x42da52[_0x466a7e(0x1c6)][_0x466a7e(0x209)]((_0x5854ea,_0x126aa7)=>({'description':_0x466a7e(0x1ee)+(_0x126aa7+0x1),'screenshot':_0x5854ea,'is_key_step':![]}))),{'description':_0xd34e55['description'],'result':_0x486e22[_0x466a7e(0x214)](getScenarioResult,_0xd34e55),'rationale':_0x486e22[_0x466a7e(0x1fa)](getScenarioRationale,_0xd34e55,_0x42da52?.['agentResponse']),'steps':_0x2a8824};})),_0x287c58={'url':_0x21d707[_0x510279(0x1a8)],'scenarios':_0x297496};process[_0x510279(0x1d5)][_0x510279(0x21a)](JSON[_0x510279(0x1d9)](_0x287c58,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x56c52a){const _0x47b14e=_0x46b8ce,_0x264330={'lNIZH':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','hmuDU':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','ALvxp':function(_0x2ac2b6,_0x2826cb){return _0x2ac2b6(_0x2826cb);},'LUuVb':function(_0x163841,_0xdb05cf){return _0x163841===_0xdb05cf;},'kbekc':function(_0x1d1558,_0x597c70){return _0x1d1558!==_0x597c70;},'RcrTz':_0x47b14e(0x1a6),'oZVHC':'\x0aConcluding\x20session...','dOTKj':function(_0x4e153f,_0x2b6213,_0x20b20a){return _0x4e153f(_0x2b6213,_0x20b20a);}},_0x5150d5=_0x56c52a||await getActiveFeatureId();if(!_0x5150d5)throw new Error(_0x264330['lNIZH']);const _0x553f26=await getFeature(_0x5150d5);if(!_0x553f26[_0x47b14e(0x197)])throw new Error(_0x264330['hmuDU']);const {sessions:_0x197d28}=await _0x264330['ALvxp'](listFeatureSessions,_0x5150d5),_0x1f047f=_0x197d28['find'](_0x387746=>_0x387746['id']===_0x553f26[_0x47b14e(0x197)]);if(!_0x1f047f)throw new Error(_0x47b14e(0x1d4));if(_0x264330[_0x47b14e(0x1b3)](_0x1f047f[_0x47b14e(0x1e6)],_0x47b14e(0x202))){console['log'](_0x47b14e(0x1ca));return;}if(_0x264330[_0x47b14e(0x1c0)](_0x1f047f['status'],_0x264330[_0x47b14e(0x168)]))throw new Error(_0x47b14e(0x196)+_0x1f047f['status']);console[_0x47b14e(0x1cc)](_0x264330[_0x47b14e(0x14c)]),await _0x264330['dOTKj'](concludeSession,_0x5150d5,_0x553f26[_0x47b14e(0x197)]),console[_0x47b14e(0x1cc)]('\x0a✅\x20Session\x20'+_0x1f047f['iteration']+'\x20concluded.'),console['log'](_0x47b14e(0x228));}export async function featureSessions(_0x2a1cee){const _0x9f8529=_0x46b8ce,_0x18f2a0={'qOIDV':_0x9f8529(0x19a),'InFww':function(_0x4d741a,_0x4a0a59){return _0x4d741a(_0x4a0a59);},'JFYEO':function(_0x1d48f6,_0x374b90){return _0x1d48f6===_0x374b90;},'eAKnE':'completed','udFdi':_0x9f8529(0x1a6)},_0x55108f=_0x2a1cee||await getActiveFeatureId();if(!_0x55108f)throw new Error(_0x18f2a0[_0x9f8529(0x1e0)]);const _0x2a97d8=await _0x18f2a0[_0x9f8529(0x16f)](getFeature,_0x55108f);console[_0x9f8529(0x1cc)](_0x9f8529(0x171)+_0x2a97d8['name']+'\x0a');const {sessions:_0x421b43}=await listFeatureSessions(_0x55108f);if(_0x18f2a0[_0x9f8529(0x1aa)](_0x421b43['length'],0x0)){console[_0x9f8529(0x1cc)]('No\x20sessions\x20found.');return;}for(const _0x2c90fc of _0x421b43){const _0x52db3b=_0x2c90fc[_0x9f8529(0x1e6)]===_0x18f2a0['eAKnE']?'✅':_0x18f2a0[_0x9f8529(0x1aa)](_0x2c90fc['status'],_0x18f2a0['udFdi'])?'🔄':'▶️';console['log'](_0x52db3b+'\x20Session\x20'+_0x2c90fc[_0x9f8529(0x198)]+'\x20('+_0x2c90fc['id']+')'),console['log'](_0x9f8529(0x21d)+_0x2c90fc['status']),console['log'](_0x9f8529(0x1e5)+new Date(_0x2c90fc['createdAt'])['toLocaleString']()),_0x2c90fc[_0x9f8529(0x1b7)]&&console['log'](_0x9f8529(0x1a2)+new Date(_0x2c90fc[_0x9f8529(0x1b7)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x365ceb,_0x1af0db){const _0x5c6b30=_0x46b8ce,_0x229f21={'lhpjU':function(_0x2eea8d){return _0x2eea8d();},'nHXzo':_0x5c6b30(0x1e7),'ZJVHT':function(_0x337ef8,_0xeb01c){return _0x337ef8(_0xeb01c);},'jTmcC':function(_0x3d1e6b,_0x34fa97){return _0x3d1e6b(_0x34fa97);},'WFSZJ':function(_0x592971,_0x380a8d,_0x161da2){return _0x592971(_0x380a8d,_0x161da2);}},_0x40f705=_0x1af0db||await _0x229f21['lhpjU'](getActiveFeatureId);if(!_0x40f705)throw new Error(_0x229f21[_0x5c6b30(0x1ed)]);const _0x2e5005=await _0x229f21['ZJVHT'](getFeature,_0x40f705);if(_0x2e5005[_0x5c6b30(0x180)]&&!_0x2e5005['latestReview'][_0x5c6b30(0x1a7)])throw new Error(_0x5c6b30(0x1db)+_0x2e5005['dashboardUrl']);await createChecklistItem(_0x40f705,_0x365ceb);const _0x1fa035=await _0x229f21[_0x5c6b30(0x17e)](getFeature,_0x40f705);console['log']('\x0a✅\x20Scenario\x20added'),_0x229f21['WFSZJ'](displayFeature,_0x1fa035,_0x1fa035['checklistItems']);}export async function featureEditScenario(_0x228f3a,_0x11da72){const _0x5b6d61=_0x46b8ce,_0x3539fa={'QXUeX':function(_0x190012,_0x7d06e6){return _0x190012(_0x7d06e6);},'QJCBM':function(_0x4b03a4,_0x28e039){return _0x4b03a4===_0x28e039;},'kStOw':_0x5b6d61(0x18f),'gUGBu':function(_0x25e649,_0x5ce57d){return _0x25e649<_0x5ce57d;},'TfVjs':function(_0x5c8e2a,_0x5570c7){return _0x5c8e2a+_0x5570c7;},'IEUhS':function(_0x16ae8d,_0x432b97){return _0x16ae8d-_0x432b97;},'wrwni':function(_0x1717ab,_0x1dc31b){return _0x1717ab(_0x1dc31b);}},_0x446435=_0x11da72['id']||await getActiveFeatureId();!_0x446435&&(console[_0x5b6d61(0x173)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x5b6d61(0x173)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x23a46c=await _0x3539fa[_0x5b6d61(0x19f)](getFeature,_0x446435);_0x23a46c['latestReview']&&!_0x23a46c['latestReview'][_0x5b6d61(0x1a7)]&&(console[_0x5b6d61(0x173)](_0x5b6d61(0x213)),console['error'](_0x5b6d61(0x1c5)),console[_0x5b6d61(0x173)]('\x20\x20'+_0x23a46c['dashboardUrl']),process['exit'](0x1));const _0x33576d=_0x23a46c[_0x5b6d61(0x20a)]||[];_0x3539fa['QJCBM'](_0x33576d['length'],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x3539fa[_0x5b6d61(0x1c4)](_0x11da72[_0x5b6d61(0x1cf)],undefined)){console[_0x5b6d61(0x173)](_0x3539fa['kStOw']),console[_0x5b6d61(0x1cc)]('\x0aAvailable\x20scenarios:');for(let _0x3bd541=0x0;_0x3539fa['gUGBu'](_0x3bd541,_0x33576d['length']);_0x3bd541++){console['log']('\x20\x20'+_0x3539fa[_0x5b6d61(0x166)](_0x3bd541,0x1)+'.\x20'+_0x33576d[_0x3bd541][_0x5b6d61(0x16e)]);}process['exit'](0x1);}const _0x6ed64e=_0x3539fa[_0x5b6d61(0x14e)](_0x11da72[_0x5b6d61(0x1cf)],0x1);if(_0x6ed64e<0x0||_0x6ed64e>=_0x33576d['length']){console[_0x5b6d61(0x173)](_0x5b6d61(0x15e)+_0x11da72[_0x5b6d61(0x1cf)]+_0x5b6d61(0x184)+_0x33576d['length']+_0x5b6d61(0x15d)),console['log'](_0x5b6d61(0x16c));for(let _0x26c81d=0x0;_0x26c81d<_0x33576d[_0x5b6d61(0x18e)];_0x26c81d++){console['log']('\x20\x20'+(_0x26c81d+0x1)+'.\x20'+_0x33576d[_0x26c81d][_0x5b6d61(0x16e)]);}process['exit'](0x1);}const _0xd6f300=_0x33576d[_0x6ed64e];await updateChecklistItem(_0x446435,_0xd6f300['id'],{'description':_0x228f3a});const _0x1349b3=await _0x3539fa[_0x5b6d61(0x205)](getFeature,_0x446435);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x1349b3,_0x1349b3[_0x5b6d61(0x20a)]);}async function downloadFeedbackImage(_0x3d3ff5,_0x46a40){const _0x47734d=_0x46b8ce,_0x2ed07b={'JGbVt':function(_0x299fc0,_0x10accd,_0x3c62d3){return _0x299fc0(_0x10accd,_0x3c62d3);},'giFzd':_0x47734d(0x1ff),'vfYKe':function(_0x2f6a46,_0x2f380e,_0x1c59b7){return _0x2f6a46(_0x2f380e,_0x1c59b7);}};try{const _0x25c359=_0x2ed07b['JGbVt'](join,getRangerDir(),_0x2ed07b['giFzd']);await _0x2ed07b[_0x47734d(0x217)](mkdir,_0x25c359,{'recursive':!![]});const _0x1ea732=join(_0x25c359,'comment_'+_0x46a40+'.png'),_0x36d534=await fetch(_0x3d3ff5);if(!_0x36d534['ok'])return null;const _0x1409d3=Buffer['from'](await _0x36d534[_0x47734d(0x1a3)]());return await _0x2ed07b[_0x47734d(0x217)](writeFile,_0x1ea732,_0x1409d3),_0x1ea732;}catch{return null;}}export async function featureGetReview(_0x4e21ab){const _0x5509fd=_0x46b8ce,_0x504eb1={'QXPkC':function(_0x2c766a){return _0x2c766a();},'JamQQ':function(_0x385688,_0x5a7ae1){return _0x385688<_0x5a7ae1;},'fPsWw':'en-US','VtOeU':function(_0x41f2fd,_0x19272a){return _0x41f2fd===_0x19272a;},'MrGpC':'point','liEXp':function(_0x3ab5cb,_0x1cd9e8){return _0x3ab5cb+_0x1cd9e8;}},_0x35c170=_0x4e21ab||await _0x504eb1['QXPkC'](getActiveFeatureId);if(!_0x35c170)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 _0x572fab=await getFeature(_0x35c170),{items:_0x35bf3c}=await getActionItems(_0x35c170);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x572fab['name']+'\x20('+_0x572fab['id']+')\x0a');if(_0x35bf3c[_0x5509fd(0x18e)]===0x0){console['log']('No\x20scenarios\x20found.');return;}for(let _0x95f569=0x0;_0x504eb1['JamQQ'](_0x95f569,_0x35bf3c[_0x5509fd(0x18e)]);_0x95f569++){const _0x18a65b=_0x35bf3c[_0x95f569],_0x3c1122=_0x18a65b[_0x5509fd(0x178)]>0x1?'\x20(v'+_0x18a65b['version']+')':'',_0x513153=await getItemFeedback(_0x35c170,_0x18a65b['id']);if(_0x513153['unaddressedComments']['length']>0x0){console['log']('Scenario\x20'+(_0x95f569+0x1)+_0x5509fd(0x1c7)+_0x18a65b[_0x5509fd(0x16e)]+'\x22'+_0x3c1122+_0x5509fd(0x221)+_0x513153[_0x5509fd(0x17c)][_0x5509fd(0x18e)]+'\x20unaddressed\x20comment(s)');for(const _0x597f2e of _0x513153[_0x5509fd(0x17c)]){const _0x271f1e=new Date(_0x597f2e['createdAt'])['toLocaleDateString'](_0x504eb1['fPsWw'],{'month':_0x5509fd(0x1a0),'day':'numeric'}),_0x1dd646=_0x597f2e[_0x5509fd(0x161)]||_0x597f2e['authorEmail']||_0x5509fd(0x157);console['log']('\x20\x20💬\x20'+_0x1dd646+'\x20('+_0x271f1e+_0x5509fd(0x21c)+_0x597f2e[_0x5509fd(0x1f4)]+'\x22');if(_0x597f2e[_0x5509fd(0x1b9)]){const _0x4ac863=await downloadFeedbackImage(_0x597f2e['assetUrl'],_0x597f2e['id']);_0x4ac863&&console[_0x5509fd(0x1cc)](_0x5509fd(0x1ce)+_0x4ac863);}if(_0x597f2e[_0x5509fd(0x1da)]){const _0x37b607=_0x597f2e[_0x5509fd(0x1da)][_0x5509fd(0x1fb)]['split']('\x20>\x20')[_0x5509fd(0x1b1)]()?.[_0x5509fd(0x226)](':')[0x0]||'element',_0x21f591=_0x597f2e[_0x5509fd(0x1da)]['textContent']?'\x20\x22'+_0x597f2e['domRef']['textContent'][_0x5509fd(0x16b)](0x0,0x3c)+'\x22':'';console['log'](_0x5509fd(0x204)+_0x37b607+'>'+_0x21f591),console[_0x5509fd(0x1cc)](_0x5509fd(0x1d7)+_0x597f2e['domRef'][_0x5509fd(0x1fb)]);}else{if(_0x597f2e['spatial']){const _0xd589c5=_0x597f2e[_0x5509fd(0x212)][_0x5509fd(0x1f9)];_0x504eb1['VtOeU'](_0x597f2e['spatial']['type'],_0x504eb1['MrGpC'])&&_0xd589c5['length']>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0xd589c5[0x0][_0x5509fd(0x208)](0x2)+',\x20'+_0xd589c5[0x1][_0x5509fd(0x208)](0x2)+')'):console[_0x5509fd(0x1cc)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x597f2e[_0x5509fd(0x212)][_0x5509fd(0x201)]+_0x5509fd(0x1f5)+_0xd589c5['map'](_0x7fc514=>_0x7fc514[_0x5509fd(0x208)](0x2))['join'](',\x20')+']');}}}if(_0x513153['canonicalFlow']){console[_0x5509fd(0x1cc)](_0x5509fd(0x1cb));for(const _0x295ebe of _0x513153[_0x5509fd(0x15c)]['split']('\x0a')){console[_0x5509fd(0x1cc)]('\x20\x20\x20\x20'+_0x295ebe);}}}else console['log']('Scenario\x20'+_0x504eb1[_0x5509fd(0x220)](_0x95f569,0x1)+':\x20\x22'+_0x18a65b[_0x5509fd(0x16e)]+'\x22'+_0x3c1122+'\x20—\x20no\x20comments'),console[_0x5509fd(0x1cc)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x5509fd(0x1cc)]('');}}export async function featureDelete(_0x27d380){const _0x49b24b=_0x46b8ce,_0x32aa11={'wBLiM':function(_0x105c14){return _0x105c14();},'coviW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','YCAIH':function(_0x456996,_0x197f93){return _0x456996(_0x197f93);}},_0x56c29f=_0x27d380||await _0x32aa11['wBLiM'](getActiveFeatureId);if(!_0x56c29f)throw new Error(_0x32aa11[_0x49b24b(0x1d2)]);const _0xbb6bba=await getFeature(_0x56c29f);await _0x32aa11['YCAIH'](softDeleteFeature,_0x56c29f),console['log'](_0x49b24b(0x1f2)+_0xbb6bba[_0x49b24b(0x1bd)]+'\x20('+_0x56c29f+')'),console['log']('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x56c29f);}export async function featureRestore(_0x539377){const _0x2870cf=_0x46b8ce,_0x3c1d3f={'AilgJ':function(_0x4607a9,_0x4351cb){return _0x4607a9(_0x4351cb);},'Otljq':function(_0x3e5d8b,_0x11b2e3){return _0x3e5d8b(_0x11b2e3);},'gyslW':function(_0x47cb98,_0x17edd6,_0x2887e8){return _0x47cb98(_0x17edd6,_0x2887e8);}};await _0x3c1d3f[_0x2870cf(0x203)](restoreFeature,_0x539377);const _0x31ab6e=await _0x3c1d3f[_0x2870cf(0x21f)](getFeature,_0x539377);console[_0x2870cf(0x1cc)](_0x2870cf(0x1ba)+_0x31ab6e[_0x2870cf(0x1bd)]+'\x20('+_0x539377+')'),_0x3c1d3f[_0x2870cf(0x160)](displayFeature,_0x31ab6e,_0x31ab6e[_0x2870cf(0x20a)]);}
|
|
1
|
+
const _0x5efecc=_0xdae6;(function(_0x56bf49,_0x4703fe){const _0x9a7372=_0xdae6,_0x3317c4=_0x56bf49();while(!![]){try{const _0x4303af=parseInt(_0x9a7372(0x181))/0x1+-parseInt(_0x9a7372(0x1bf))/0x2+parseInt(_0x9a7372(0x1f2))/0x3*(parseInt(_0x9a7372(0x182))/0x4)+-parseInt(_0x9a7372(0x22f))/0x5+-parseInt(_0x9a7372(0x212))/0x6*(-parseInt(_0x9a7372(0x239))/0x7)+-parseInt(_0x9a7372(0x1bc))/0x8+parseInt(_0x9a7372(0x1ac))/0x9*(parseInt(_0x9a7372(0x21f))/0xa);if(_0x4303af===_0x4703fe)break;else _0x3317c4['push'](_0x3317c4['shift']());}catch(_0xf4dcda){_0x3317c4['push'](_0x3317c4['shift']());}}}(_0x4d20,0x4f51d));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3f166d from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';function _0xdae6(_0x2d5851,_0x171a05){_0x2d5851=_0x2d5851-0x177;const _0x4d2066=_0x4d20();let _0xdae6c8=_0x4d2066[_0x2d5851];return _0xdae6c8;}import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x4d5817=>_0x5efecc(0x1f1)+_0x4d5817+'\x1b[0m';function _0x4d20(){const _0x37355b=['EpGzN','\x20/\x20','screenshotUrls','fiOBP','Screenshot\x20','stats','WdyAi','\x20at\x20[','cTqZy','\x20—\x20','\x20verified','RANGER_TEST_USERNAME','4504896nERxHI','totalCount','\x0aCreating\x20feature\x20review...','239146cesWkw','toLocaleString','toLocaleDateString','textContent','\x20\x20\x20Updated\x20branch\x20to:\x20','pdaRS','VcEgs','location','\x20\x20\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','checklistItems','\x20\x20\x20\x20\x20\x20Cancelled:\x20','write','canceledReason','browserSessionId','exit','/api/v1/mcp/browser-sessions/','agentResponse','kagjk','\x20incomplete','\x0a✅\x20Scenario\x20updated','limit','/artifacts/','PcDVe','\x20\x20\x20ID:\x20','split','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x0a❌\x20Invalid\x20scenario\x20index:\x20','dashboardUrl','currentSessionId','KppCM','bdOvK','xSjst','sgtQw','get','output','\x20--limit\x20','sessionId','KpgYJ','HvRzg','Vmvli','after','\x0a✅\x20Report\x20generated:\x20','vmyUc','\x0aConcluding\x20session...','incomplete','\x20blocked','Step\x20','\x20\x20\x20Completed:\x20','HUteh','\x1b[1m','10356UfrrtQ','SJmHm','latestReview','completedAt','RpACz','XOOMW','WJQXt','YrjSy','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','has','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','No\x20scenarios\x20found.','lKOdS','stringify','\x0a✅\x20Scenario\x20added','any','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x20\x20\x20Branch:\x20','linkedSession','\x20\x20\x20Description:\x20','version','reports','json','jWPre','WEIre','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','map','trim','\x0a⚠️\x20\x20','position','gitRepoUrl','selector','19662WSlvKJ','nKGHi','\x20\x20\x20\x20\x20\x20Blocked:\x20','includeDeleted','gitBranch','canonicalFlow','ZcSaU','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','screenshot','repeat','gnORF','offset','pipe','119030JTqtdE','JwBJY','domRef','hoWob','assetUrl','DYqix','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','type','\x0aNo\x20feature\x20reviews\x20found.','unaddressedComments','MzAWS','description','git\x20remote\x20get-url\x20origin','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','log','excludeScenarios','185055rxaaFU','all','XBjAc','approved','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a✅\x20Session\x20','vAUFM','GJwCx','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','verification_in_progress','133nBuvpE','createdAt','parentItemId','\x0a✅\x20Restored\x20feature\x20review:\x20','\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20Approved','tsCjO','SdAKj','WVAFK','iteration','stdout','stdin','style','oNWMu','UsMEO','dHjXb','cEkcX','blockedReason','\x20—\x20no\x20comments','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','WKklP','):\x20\x22','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x0a✅\x20Feature\x20review\x20created:\x20','trimEnd','ZJSZv','\x20feature\x20review(s)\x20found','2|4|1|0|3|5','\x20\x20\x20Progress:\x20','replace','Cyirz','OedDm','Xhfmi','145779NgHFdP','128JLVltH','filter','closed','NnwFe','vHEYu','utf-8','completed','Mxpwb','length','timing','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','submittedAt','xLgXi','rrvGZ','lfgvE','join','WhyDG','Please\x20finish\x20your\x20review\x20first:','\x0a✅\x20Resumed\x20feature\x20review:\x20','Scenario\x20','iksCS','push','gutMO','EeUVu','list','Cannot\x20conclude\x20session\x20with\x20status:\x20','items','env','\x20>\x20','spatial','blocked','coordinates','status','error','name','\x0a\x20\x20\x20Scenarios:','\x20\x20\x20\x20\x20Branch:\x20','\x20concluded.','point','oWkqA','VaeYn','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','549kQVvLh','content','gBOWS','assets'];_0x4d20=function(){return _0x37355b;};return _0x4d20();}function getGitRepoUrl(){const _0x2111e2=_0x5efecc,_0x78d3d1={'lvedu':_0x2111e2(0x22b),'pdaRS':_0x2111e2(0x187)};try{const _0x1d8c43=execSync(_0x78d3d1['lvedu'],{'encoding':_0x78d3d1[_0x2111e2(0x1c4)],'stdio':[_0x2111e2(0x21e),_0x2111e2(0x21e),'pipe']})['trim']();return _0x1d8c43[_0x2111e2(0x17d)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')[_0x2111e2(0x17d)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x4b23d7=_0x5efecc,_0x3ad765={'Vmvli':function(_0x40cc00,_0x5bfa16,_0x33a4d9){return _0x40cc00(_0x5bfa16,_0x33a4d9);},'PcDVe':'utf-8','WEIre':_0x4b23d7(0x21e)};try{return _0x3ad765[_0x4b23d7(0x1e7)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x3ad765[_0x4b23d7(0x1d6)],'stdio':[_0x3ad765['WEIre'],_0x3ad765[_0x4b23d7(0x20a)],_0x3ad765['WEIre']]})[_0x4b23d7(0x20d)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x2b6e66=_0x5efecc,_0x29e251={'WJQXt':function(_0x20a0b9,_0xc25a02,_0x290651){return _0x20a0b9(_0xc25a02,_0x290651);},'fuNFG':'utf-8'},_0x20350a=_0x29e251[_0x2b6e66(0x1f8)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x20350a))return null;try{const _0xa2eeb6=await readFile(_0x20350a,_0x29e251['fuNFG']);return _0xa2eeb6['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x61ee0a){const _0x2412a0=_0x5efecc,_0x123a31={'dHjXb':function(_0x1e75cf){return _0x1e75cf();},'aLvfc':function(_0x5e588d,_0x3afff7,_0x47de5f){return _0x5e588d(_0x3afff7,_0x47de5f);},'MzAWS':function(_0x1e2231,_0xcae4b2,_0x62ab51,_0x39bbc4){return _0x1e2231(_0xcae4b2,_0x62ab51,_0x39bbc4);},'iksCS':_0x2412a0(0x187)},_0x3fa2c9=_0x123a31[_0x2412a0(0x248)](getRangerDir),_0x522089=join(_0x3fa2c9,ACTIVE_FEATURE_FILE);!existsSync(_0x3fa2c9)&&await _0x123a31['aLvfc'](mkdir,_0x3fa2c9,{'recursive':!![]}),await _0x123a31[_0x2412a0(0x229)](writeFile,_0x522089,_0x61ee0a,_0x123a31[_0x2412a0(0x196)]);}function getProgressDisplay(_0x42e4b0){const _0x30d18d=_0x5efecc,_0xaf2cf1={'CVkIE':function(_0x4cf2f0,_0x36928e){return _0x4cf2f0+_0x36928e;},'nKGHi':function(_0xac437d,_0x343b0e){return _0xac437d+_0x343b0e;},'GJwCx':function(_0x48b468,_0x18a784){return _0x48b468>_0x18a784;},'vmyUc':function(_0x1b4fe8,_0x37bf75){return _0x1b4fe8>_0x37bf75;}},_0x1fd6c1=_0x42e4b0['verifiedItems']||0x0,_0x462c56=_0x42e4b0['verificationInProgressItems']||0x0,_0x97e2dd=_0x42e4b0['blockedItems']||0x0,_0x54e9f7=_0x42e4b0['incompleteItems']||0x0,_0x3378b3=_0x42e4b0['pendingItems']||0x0,_0x364526=_0xaf2cf1['CVkIE'](_0xaf2cf1[_0x30d18d(0x213)](_0x1fd6c1,_0x462c56),_0x97e2dd)+_0x54e9f7+_0x3378b3;if(_0x364526===0x0)return'-';const _0x2e511d=0xa,_0x3dccbd=Math['round'](_0x1fd6c1/_0x364526*_0x2e511d),_0x502992='█'[_0x30d18d(0x21b)](_0x3dccbd)+'░'['repeat'](_0x2e511d-_0x3dccbd),_0xcccfae=[];if(_0xaf2cf1[_0x30d18d(0x236)](_0x97e2dd,0x0))_0xcccfae['push'](_0x97e2dd+_0x30d18d(0x1ed));if(_0x54e9f7>0x0)_0xcccfae[_0x30d18d(0x197)](_0x54e9f7+_0x30d18d(0x1d2));if(_0xaf2cf1[_0x30d18d(0x1ea)](_0x462c56,0x0))_0xcccfae['push'](_0x462c56+'\x20in\x20progress');const _0x38775d=_0xaf2cf1['GJwCx'](_0xcccfae[_0x30d18d(0x18a)],0x0)?'\x20('+_0xcccfae[_0x30d18d(0x191)](',\x20')+')':'';return _0x502992+'\x20'+_0x1fd6c1+'/'+_0x364526+_0x30d18d(0x1ba)+_0x38775d;}function getCurrentSessionItems(_0x3d646e,_0x2adc2c){const _0x30d6a0=_0x5efecc;if(!_0x3d646e['currentSessionId'])return _0x2adc2c[_0x30d6a0(0x183)](_0x35415f=>!_0x35415f['sessionId']);return _0x2adc2c['filter'](_0x421799=>_0x421799[_0x30d6a0(0x1e4)]===_0x3d646e[_0x30d6a0(0x1dc)]||!_0x421799[_0x30d6a0(0x1e4)]);}function displayFeature(_0x84a1f7,_0x500901){const _0x12d35c=_0x5efecc,_0x335ec5={'vQrDr':_0x12d35c(0x1a5),'RpACz':function(_0x56a8cd,_0x4ffced){return _0x56a8cd===_0x4ffced;},'Mxpwb':function(_0x3564fc,_0x1f4a29){return _0x3564fc===_0x1f4a29;},'QnMkP':_0x12d35c(0x184),'xWJSi':'\x20[has\x20reviewer\x20feedback]','vAUFM':'blocked','DFOJv':_0x12d35c(0x1ec),'umOIY':_0x12d35c(0x232)};console['log']('\x0a'+_0x84a1f7['name']+'\x20('+_0x84a1f7[_0x12d35c(0x1db)]+')');_0x84a1f7[_0x12d35c(0x1b5)]&&console[_0x12d35c(0x22d)](_0x12d35c(0x17c)+getProgressDisplay(_0x84a1f7['stats']));_0x84a1f7[_0x12d35c(0x22a)]&&console[_0x12d35c(0x22d)](_0x12d35c(0x205)+_0x84a1f7['description']);_0x84a1f7[_0x12d35c(0x210)]&&console[_0x12d35c(0x22d)]('\x20\x20\x20Repository:\x20'+_0x84a1f7['gitRepoUrl']);_0x84a1f7['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x84a1f7['gitBranch']);console[_0x12d35c(0x22d)]('\x20\x20\x20Created:\x20'+new Date(_0x84a1f7['createdAt'])['toLocaleString']());_0x84a1f7[_0x12d35c(0x1f5)]&&console[_0x12d35c(0x22d)]('\x20\x20\x20Completed:\x20'+new Date(_0x84a1f7['completedAt'])['toLocaleString']());if(_0x500901&&_0x500901['length']>0x0){console['log'](_0x335ec5['vQrDr']);for(let _0x4c87de=0x0;_0x4c87de<_0x500901['length'];_0x4c87de++){const _0x28730a=_0x500901[_0x4c87de];let _0x57a9b6;if(_0x28730a[_0x12d35c(0x1a2)]==='closed'&&_0x28730a['terminalReason']===_0x12d35c(0x232))_0x57a9b6='✅';else{if(_0x28730a[_0x12d35c(0x1a2)]==='verified')_0x57a9b6='🟢';else{if(_0x335ec5[_0x12d35c(0x1f6)](_0x28730a['status'],_0x12d35c(0x1ec)))_0x57a9b6='🟠';else{if(_0x335ec5['RpACz'](_0x28730a[_0x12d35c(0x1a2)],_0x12d35c(0x1a0)))_0x57a9b6='🛑';else{if(_0x28730a[_0x12d35c(0x1a2)]===_0x12d35c(0x184))_0x57a9b6='⛔';else _0x335ec5[_0x12d35c(0x189)](_0x28730a['status'],'verification_in_progress')?_0x57a9b6='⏳':_0x57a9b6='⬜';}}}}const _0x522049=_0x28730a[_0x12d35c(0x206)]>0x1?'\x20(v'+_0x28730a[_0x12d35c(0x206)]+')':'',_0x16d3cb=_0x28730a[_0x12d35c(0x206)]>0x1&&_0x28730a[_0x12d35c(0x23b)]&&_0x28730a[_0x12d35c(0x1a2)]!==_0x335ec5['QnMkP']&&_0x28730a['status']!=='verified'?_0x335ec5['xWJSi']:'';console[_0x12d35c(0x22d)](_0x12d35c(0x1c7)+(_0x4c87de+0x1)+'.\x20'+_0x57a9b6+'\x20'+_0x28730a[_0x12d35c(0x22a)]+_0x522049+_0x16d3cb);_0x28730a[_0x12d35c(0x1a2)]===_0x335ec5[_0x12d35c(0x235)]&&_0x28730a['blockedReason']&&console['log'](_0x12d35c(0x214)+_0x28730a[_0x12d35c(0x24a)]);_0x335ec5['Mxpwb'](_0x28730a[_0x12d35c(0x1a2)],_0x335ec5['DFOJv'])&&_0x28730a['incompleteReason']&&console[_0x12d35c(0x22d)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x28730a['incompleteReason']);if(_0x28730a[_0x12d35c(0x1a2)]==='closed'&&_0x28730a['terminalReason']===_0x335ec5['umOIY'])console['log'](_0x12d35c(0x23e));else _0x28730a[_0x12d35c(0x1a2)]===_0x335ec5['QnMkP']&&_0x28730a[_0x12d35c(0x1cc)]&&console['log'](_0x12d35c(0x1ca)+_0x28730a['canceledReason']);}}}export async function featureCreate(_0x23dcd6,_0x17172c){const _0x587575=_0x5efecc,_0x134164={'XOOMW':function(_0x122225,_0x30ed11){return _0x122225===_0x30ed11;},'hizCV':function(_0x57906c){return _0x57906c();},'LQyDY':function(_0x4a8d2f){return _0x4a8d2f();},'ASWBm':_0x587575(0x1be),'wzNSM':function(_0x4f97d1,_0x5e4529,_0x10473f){return _0x4f97d1(_0x5e4529,_0x10473f);}},{envNames:_0x53c606}=await getEnvNames();if(_0x134164['XOOMW'](_0x53c606['length'],0x0)&&!process[_0x587575(0x19d)][_0x587575(0x1bb)]){let _0x2a3c70=0x0;try{_0x2a3c70=(await _0x134164['hizCV'](listCloudProfiles))[_0x587575(0x18a)];}catch{_0x2a3c70=0x1;}_0x134164[_0x587575(0x1f7)](_0x2a3c70,0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x2387e3=>bold(_0x2387e3)));}const _0x5cc702=_0x17172c['scenarios']?_0x17172c['scenarios'][_0x587575(0x20c)](_0x540fa0=>_0x540fa0['trim']()):[],_0x19b5ab=_0x134164['LQyDY'](getGitRepoUrl),_0x3d587a=getGitBranch();console[_0x587575(0x22d)](_0x134164['ASWBm']);const _0x5850aa=await createFeature({'name':_0x23dcd6,'description':_0x17172c[_0x587575(0x22a)],'checklist':_0x5cc702,'gitRepoUrl':_0x19b5ab,'gitBranch':_0x3d587a});await setActiveFeatureId(_0x5850aa['id']),await tryStartCurrentSession(_0x5850aa['id']);const _0x5ca6bb=process['env']['CLAUDE_SESSION_ID'];_0x5ca6bb&&_0x134164['wzNSM'](registerSession,_0x5ca6bb,_0x5850aa['id']),console[_0x587575(0x22d)](_0x587575(0x177)+_0x5850aa['id']),displayFeature(_0x5850aa,_0x5850aa['checklistItems']),console['log'](_0x587575(0x18c));}export async function featureList(_0x4535dc){const _0x5ea0a8=_0x5efecc,_0x40585d={'gutMO':function(_0x35fa17){return _0x35fa17();},'ZJSZv':_0x5ea0a8(0x227),'hJReR':_0x5ea0a8(0x17b),'lKOdS':function(_0x130f82,_0x2b57ec){return _0x130f82(_0x2b57ec);},'bdOvK':function(_0x5e41a8,_0x3669fd){return _0x5e41a8+_0x3669fd;},'ZLmmQ':function(_0x3a3890,_0x538f09){return _0x3a3890<_0x538f09;},'fNalq':'\x20--current-branch'},_0x1e6ea7={'limit':_0x4535dc[_0x5ea0a8(0x1d4)]??0xa,'offset':_0x4535dc[_0x5ea0a8(0x21d)]??0x0,'includeDeleted':_0x4535dc[_0x5ea0a8(0x215)]};_0x4535dc['currentBranch']&&(_0x1e6ea7['gitRepoUrl']=getGitRepoUrl(),_0x1e6ea7[_0x5ea0a8(0x216)]=_0x40585d[_0x5ea0a8(0x198)](getGitBranch));const _0x117008=await listFeatures(_0x1e6ea7);if(_0x117008[_0x5ea0a8(0x19c)]['length']===0x0){console[_0x5ea0a8(0x22d)](_0x40585d[_0x5ea0a8(0x179)]);return;}const _0x52155f=_0x117008['totalCount']>_0x117008[_0x5ea0a8(0x19c)]['length']?'Showing\x20'+_0x117008['items']['length']+'\x20of\x20'+_0x117008['totalCount']:_0x117008['totalCount']+_0x5ea0a8(0x17a);console[_0x5ea0a8(0x22d)]('\x0a'+_0x52155f+':\x0a');for(const _0x2fa8f7 of _0x117008['items']){const _0x512e97=_0x40585d['hJReR'][_0x5ea0a8(0x1d8)]('|');let _0x54b122=0x0;while(!![]){switch(_0x512e97[_0x54b122++]){case'0':_0x2fa8f7['gitBranch']&&console['log'](_0x5ea0a8(0x203)+_0x2fa8f7[_0x5ea0a8(0x216)]);continue;case'1':_0x2fa8f7['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x40585d[_0x5ea0a8(0x1fe)](getProgressDisplay,_0x2fa8f7['stats']));continue;case'2':console[_0x5ea0a8(0x22d)](''+_0x2fa8f7[_0x5ea0a8(0x1a4)]);continue;case'3':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x2fa8f7['createdAt'])['toLocaleDateString']());continue;case'4':console[_0x5ea0a8(0x22d)](_0x5ea0a8(0x1d7)+_0x2fa8f7['id']);continue;case'5':console[_0x5ea0a8(0x22d)]('');continue;}break;}}const _0x4979f7=_0x1e6ea7['limit']??0xa,_0x10df4b=_0x40585d[_0x5ea0a8(0x1de)](_0x1e6ea7[_0x5ea0a8(0x21d)]??0x0,_0x117008['items'][_0x5ea0a8(0x18a)]);if(_0x40585d['ZLmmQ'](_0x10df4b,_0x117008[_0x5ea0a8(0x1bd)])){const _0x30f4f0=_0x4979f7!==0xa?_0x5ea0a8(0x1e3)+_0x4979f7:'',_0x1d6d12=_0x4535dc['currentBranch']?_0x40585d['fNalq']:'',_0x386454=_0x4535dc[_0x5ea0a8(0x215)]?'\x20--include-deleted':'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x10df4b+_0x30f4f0+_0x1d6d12+_0x386454);}}export async function featureShow(_0x31fbd0){const _0x3362f8=_0x5efecc,_0x210ed9=_0x31fbd0||await getActiveFeatureId();if(!_0x210ed9)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x59052b=await getFeature(_0x210ed9);displayFeature(_0x59052b,_0x59052b[_0x3362f8(0x1c9)]);}export async function featureResume(_0x34eb81){const _0x455186=_0x5efecc,_0x43b863={'KpgYJ':function(_0x52283a,_0x477db8){return _0x52283a(_0x477db8);},'gkEnD':function(_0x5d4ad9){return _0x5d4ad9();},'cTqZy':function(_0x2079ac,_0x3c7507,_0x4ed013){return _0x2079ac(_0x3c7507,_0x4ed013);},'vHEYu':function(_0x21ea27,_0x1f7f72,_0x2717e8){return _0x21ea27(_0x1f7f72,_0x2717e8);},'ODqvI':'Not\x20in\x20a\x20git\x20repository.','oWkqA':function(_0x1bb78c,_0x593e6c){return _0x1bb78c||_0x593e6c;},'WhyDG':_0x455186(0x201),'Xhfmi':function(_0x93333c,_0x5d2bc0){return _0x93333c(_0x5d2bc0);},'DYqix':function(_0x320e32,_0x526d25){return _0x320e32===_0x526d25;},'SJmHm':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','mKrBH':_0x455186(0x1ab),'lfgvE':_0x455186(0x1c8),'hdHpR':_0x455186(0x19a),'HntbK':function(_0x891e3c,_0xb0f356){return _0x891e3c!==_0xb0f356;},'VaeYn':function(_0x43c232,_0x5ed381,_0x25c9c0){return _0x43c232(_0x5ed381,_0x25c9c0);},'KLfjX':function(_0x5de0ca,_0x1e0884,_0x573ce0){return _0x5de0ca(_0x1e0884,_0x573ce0);},'UsMEO':function(_0x3e1cc7,_0x4738ed,_0x46a0db){return _0x3e1cc7(_0x4738ed,_0x46a0db);}};if(_0x34eb81){const _0x245392=await getFeature(_0x34eb81);await _0x43b863[_0x455186(0x1e5)](setActiveFeatureId,_0x245392['id']);const _0x4444fa=_0x43b863['gkEnD'](getGitBranch);_0x4444fa&&_0x4444fa!==_0x245392[_0x455186(0x216)]&&(await _0x43b863[_0x455186(0x1b8)](updateFeature,_0x245392['id'],{'gitBranch':_0x4444fa}),console[_0x455186(0x22d)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4444fa));console['log'](_0x455186(0x194)+_0x245392[_0x455186(0x1a4)]+'\x20('+_0x245392['id']+')'),await tryStartCurrentSession(_0x245392['id']);const _0x599c62=process['env']['CLAUDE_SESSION_ID'];_0x599c62&&_0x43b863[_0x455186(0x1b8)](registerSession,_0x599c62,_0x245392['id']);_0x43b863[_0x455186(0x186)](displayFeature,_0x245392,_0x245392[_0x455186(0x1c9)]),await _0x43b863['KpgYJ'](printFeedbackNudge,_0x245392['id']);return;}const _0xc84ad0=getGitRepoUrl(),_0x4c55a3=getGitBranch();if(!_0xc84ad0&&!_0x4c55a3)throw new Error(_0x43b863['ODqvI']);console[_0x455186(0x22d)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x43b863[_0x455186(0x1a9)](_0xc84ad0,_0x43b863[_0x455186(0x192)])+_0x455186(0x1b1)+(_0x4c55a3||_0x43b863['WhyDG'])+'...');const _0x489078=await _0x43b863[_0x455186(0x180)](listFeatures,{'gitRepoUrl':_0xc84ad0,'gitBranch':_0x4c55a3}),_0x377305=_0x489078['items']['filter'](_0x47e86a=>_0x47e86a[_0x455186(0x1a2)]?_0x47e86a['status']!=='verified':!_0x47e86a[_0x455186(0x1f5)]);if(_0x43b863[_0x455186(0x224)](_0x377305[_0x455186(0x18a)],0x0)){console['log'](_0x43b863[_0x455186(0x1f3)]),console[_0x455186(0x22d)](_0x43b863['mKrBH']);return;}let _0x4d3cef;if(_0x43b863[_0x455186(0x224)](_0x377305[_0x455186(0x18a)],0x1))_0x4d3cef=_0x377305[0x0];else{const _0x287b29=process[_0x455186(0x244)]['isTTY']&&process[_0x455186(0x243)]['isTTY'];if(!_0x287b29){console['log'](_0x43b863[_0x455186(0x190)]);for(const _0x482e37 of _0x377305){console[_0x455186(0x22d)]('\x20\x20'+_0x482e37[_0x455186(0x1a4)]),console[_0x455186(0x22d)]('\x20\x20\x20\x20\x20ID:\x20'+_0x482e37['id']),_0x482e37['stats']&&console[_0x455186(0x22d)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x482e37[_0x455186(0x1b5)])),_0x482e37[_0x455186(0x216)]&&console[_0x455186(0x22d)](_0x455186(0x1a6)+_0x482e37['gitBranch']);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x37419e}=await _0x3f166d['prompt']([{'type':_0x43b863['hdHpR'],'name':'selected','message':_0x455186(0x202),'choices':_0x377305[_0x455186(0x20c)](_0x523d04=>({'name':_0x523d04['name']+'\x20('+_0x523d04['id']+')','value':_0x523d04['id']}))}]);_0x4d3cef=_0x377305['find'](_0x2d2b3c=>_0x2d2b3c['id']===_0x37419e);}await _0x43b863['KpgYJ'](setActiveFeatureId,_0x4d3cef['id']);_0x4c55a3&&_0x43b863['HntbK'](_0x4c55a3,_0x4d3cef['gitBranch'])&&(await _0x43b863[_0x455186(0x1aa)](updateFeature,_0x4d3cef['id'],{'gitBranch':_0x4c55a3}),console[_0x455186(0x22d)](_0x455186(0x1c3)+_0x4c55a3));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x4d3cef['name']+'\x20('+_0x4d3cef['id']+')'),await _0x43b863[_0x455186(0x1e5)](tryStartCurrentSession,_0x4d3cef['id']);const _0x16dcf3=await getFeature(_0x4d3cef['id']),_0x5eaf69=process['env']['CLAUDE_SESSION_ID'];_0x5eaf69&&_0x43b863['KLfjX'](registerSession,_0x5eaf69,_0x16dcf3['id']),_0x43b863[_0x455186(0x247)](displayFeature,_0x16dcf3,_0x16dcf3['checklistItems']),await printFeedbackNudge(_0x16dcf3['id']);}async function printFeedbackNudge(_0x30933f){const _0x1efe06=_0x5efecc,_0x15946d={'KXqqL':function(_0x468b46,_0x2a24e9,_0x49e8fd){return _0x468b46(_0x2a24e9,_0x49e8fd);},'ZqeqC':function(_0x5c59c2,_0x38061a){return _0x5c59c2>_0x38061a;},'HUteh':_0x1efe06(0x24c)};try{const {items:_0x34d013}=await getActionItems(_0x30933f);let _0x3baa3f=0x0,_0x3b4c57=0x0;for(const _0x440092 of _0x34d013){const _0x473599=await _0x15946d['KXqqL'](getItemFeedback,_0x30933f,_0x440092['id']);_0x15946d['ZqeqC'](_0x473599['unaddressedComments'][_0x1efe06(0x18a)],0x0)&&(_0x3baa3f+=_0x473599['unaddressedComments'][_0x1efe06(0x18a)],_0x3b4c57++);}_0x3baa3f>0x0&&(console[_0x1efe06(0x22d)](_0x1efe06(0x20e)+_0x3baa3f+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x3b4c57+'\x20scenario(s).'),console['log'](_0x15946d[_0x1efe06(0x1f0)]));}catch{}}async function tryStartCurrentSession(_0x2a5f86){const _0xa695a0=_0x5efecc,_0x3f5c0a={'yBiLo':function(_0x5715dc,_0x399b2b){return _0x5715dc(_0x399b2b);}};try{const {sessions:_0x3f9ae2}=await _0x3f5c0a['yBiLo'](listFeatureSessions,_0x2a5f86),_0x4b0a15=_0x3f9ae2['find'](_0x2342cd=>_0x2342cd['status']==='ready');_0x4b0a15&&(await startSession(_0x2a5f86,_0x4b0a15['id']),console[_0xa695a0(0x22d)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x4b0a15[_0xa695a0(0x242)]));}catch{}}export async function featureReport(_0x10a815,_0x4b42c3){const _0x2633c1=_0x5efecc,_0x46b43e={'oNWMu':function(_0x3552f5){return _0x3552f5();},'gnORF':function(_0x53702c,_0x2e6dda,_0x58273b){return _0x53702c(_0x2e6dda,_0x58273b);},'xLgXi':function(_0x5c7c2f,_0x4715c1,_0xf4e199,_0x174389){return _0x5c7c2f(_0x4715c1,_0xf4e199,_0x174389);},'mUDvc':_0x2633c1(0x207),'JwBJY':function(_0x595a10,_0x2457a2){return _0x595a10(_0x2457a2);},'gBOWS':_0x2633c1(0x187)},_0xe8911b=_0x10a815||await _0x46b43e[_0x2633c1(0x246)](getActiveFeatureId);if(!_0xe8911b)throw new Error(_0x2633c1(0x233));console['log']('\x0aGenerating\x20report...');const _0x5f0be7=await _0x46b43e[_0x2633c1(0x21c)](getFeatureReportMarkdown,_0xe8911b,{'style':_0x4b42c3[_0x2633c1(0x245)]}),_0x28b21c=_0x4b42c3[_0x2633c1(0x1e2)]||_0x46b43e[_0x2633c1(0x18e)](join,getRangerDir(),_0x46b43e['mUDvc'],_0xe8911b+'.md'),_0x3f2db4=join(_0x28b21c,'..');!_0x46b43e[_0x2633c1(0x220)](existsSync,_0x3f2db4)&&await mkdir(_0x3f2db4,{'recursive':!![]}),await writeFile(_0x28b21c,_0x5f0be7,_0x46b43e[_0x2633c1(0x1ae)]),console['log'](_0x2633c1(0x1e9)+_0x28b21c);}function getScenarioResult(_0xfea360){const _0x288e2b=_0x5efecc,_0x3c3019={'mhbiZ':function(_0x2d5c37,_0x430d89){return _0x2d5c37===_0x430d89;},'WKklP':'closed','fiOBP':'in_progress'};if(_0x3c3019['mhbiZ'](_0xfea360['status'],_0x3c3019[_0x288e2b(0x24d)]))return _0xfea360['terminalReason']??'closed';if(_0xfea360['status']===_0x288e2b(0x238))return _0x3c3019[_0x288e2b(0x1b3)];return _0xfea360['status'];}function getScenarioRationale(_0x1d8731,_0x31ebbb){const _0x1402f9=_0x5efecc,_0x4e2a2c='0|1|3|4|5|2'[_0x1402f9(0x1d8)]('|');let _0x34a6ca=0x0;while(!![]){switch(_0x4e2a2c[_0x34a6ca++]){case'0':if(_0x31ebbb)return _0x31ebbb;continue;case'1':if(_0x1d8731[_0x1402f9(0x24a)])return _0x1d8731['blockedReason'];continue;case'2':return null;case'3':if(_0x1d8731['incompleteReason'])return _0x1d8731['incompleteReason'];continue;case'4':if(_0x1d8731[_0x1402f9(0x1cc)])return _0x1d8731['canceledReason'];continue;case'5':if(_0x1d8731['notes'])return _0x1d8731['notes'];continue;}break;}}export async function featureReportPrDescription(_0xff0781,_0x236702){const _0x51bb7d=_0x5efecc,_0x46729d={'xSjst':function(_0x58afa2,_0xf7cd7,_0x4e88dd){return _0x58afa2(_0xf7cd7,_0x4e88dd);},'YOPnJ':_0x51bb7d(0x20b),'hoWob':function(_0xb4cff5,_0x314a66){return _0xb4cff5>_0x314a66;},'WVAFK':'\x0aAvailable\x20scenarios:','Cyirz':function(_0x532c71,_0x185591){return _0x532c71<_0x185591;},'xJyFM':function(_0x44f466,_0x380b3a){return _0x44f466===_0x380b3a;},'hwLOh':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','kagjk':function(_0x192bec,_0x107542,_0x204fae,_0x2323f8){return _0x192bec(_0x107542,_0x204fae,_0x2323f8);},'PxbvL':function(_0x5aa624,_0x1301bb,_0x246000){return _0x5aa624(_0x1301bb,_0x246000);}},_0x1fc487=_0xff0781||await getActiveFeatureId();if(!_0x1fc487)throw new Error(_0x51bb7d(0x233));const _0x1c39a9=await getFeature(_0x1fc487),_0x36a164=_0x1c39a9[_0x51bb7d(0x1c9)]||[],_0x48c7f3=_0x46729d[_0x51bb7d(0x1df)](getCurrentSessionItems,_0x1c39a9,_0x36a164);_0x48c7f3['length']===0x0&&(console[_0x51bb7d(0x1a3)](_0x46729d['YOPnJ']),process['exit'](0x1));const _0x2f1c67=_0x236702[_0x51bb7d(0x22e)]??[],_0x26aad1=_0x2f1c67['filter'](_0x116d6b=>!Number['isInteger'](_0x116d6b)||_0x116d6b<0x1||_0x116d6b>_0x48c7f3[_0x51bb7d(0x18a)]);if(_0x46729d[_0x51bb7d(0x222)](_0x26aad1['length'],0x0)){console[_0x51bb7d(0x1a3)](_0x51bb7d(0x1fc)+_0x26aad1[_0x51bb7d(0x191)](',\x20')),console['log'](_0x46729d[_0x51bb7d(0x241)]);for(let _0x3f6c12=0x0;_0x46729d[_0x51bb7d(0x17e)](_0x3f6c12,_0x48c7f3[_0x51bb7d(0x18a)]);_0x3f6c12++){console['log']('\x20\x20'+(_0x3f6c12+0x1)+'.\x20'+_0x48c7f3[_0x3f6c12]['description']);}process['exit'](0x1);}const _0xfb3279=new Set(_0x2f1c67['map'](_0x222d9a=>_0x222d9a-0x1)),_0x3658ac=_0x48c7f3['filter']((_0x2ac0b2,_0x4cda87)=>!_0xfb3279[_0x51bb7d(0x1fb)](_0x4cda87));_0x46729d['xJyFM'](_0x3658ac[_0x51bb7d(0x18a)],0x0)&&(console['error'](_0x46729d['hwLOh']),process['exit'](0x1));if(_0x236702[_0x51bb7d(0x208)])await _0x46729d[_0x51bb7d(0x1d1)](outputJsonReport,_0x1fc487,_0x1c39a9,_0x3658ac);else{const _0x13953b=await _0x46729d['PxbvL'](getFeatureReportMarkdown,_0x1fc487,{'itemIds':_0x3658ac['map'](_0x1dd929=>_0x1dd929['id'])});process[_0x51bb7d(0x243)][_0x51bb7d(0x1cb)](_0x13953b[_0x51bb7d(0x178)]()+'\x0a');}}async function outputJsonReport(_0x317fec,_0x18204b,_0x5d11fe){const _0x2220f9=_0x5efecc,_0x56bc98={'vrVdp':function(_0x9ea42b,_0x1744d8){return _0x9ea42b===_0x1744d8;},'tsCjO':function(_0x11e6f2,_0x44e4ba){return _0x11e6f2(_0x44e4ba);},'EeUVu':function(_0x466785,_0x103112,_0xa50803){return _0x466785(_0x103112,_0xa50803);},'LRyeK':function(_0x378c68){return _0x378c68();},'HXHtB':function(_0x127ec0,_0x5e065b){return _0x127ec0+_0x5e065b;}},_0x50f7fe=_0x56bc98['LRyeK'](getApiBaseUrl),_0x1b6887=await getFeatureReport(_0x317fec),_0x236d46=new Map(_0x1b6887['checklistItems'][_0x2220f9(0x20c)](_0x24f3ab=>[_0x24f3ab['id'],_0x24f3ab])),_0x5f3fe7=await Promise[_0x2220f9(0x230)](_0x5d11fe['map'](async _0x594884=>{const _0x313a9d=_0x2220f9,_0x1fe40a=_0x236d46[_0x313a9d(0x1e1)](_0x594884['id']),_0x216cb2=_0x1fe40a?.[_0x313a9d(0x204)]??null;let _0x2071d3=[];if(_0x594884[_0x313a9d(0x1cd)])try{const {steps:_0x17fcda}=await getBrowserSessionSteps(_0x594884[_0x313a9d(0x1cd)]);_0x17fcda[_0x313a9d(0x18a)]>0x0&&(_0x2071d3=_0x17fcda[_0x313a9d(0x20c)](_0x52655c=>{const _0x30a9e5=_0x313a9d,_0x549d69=_0x52655c[_0x30a9e5(0x1af)]['find'](_0x2e4669=>_0x2e4669['assetType']==='screenshot'&&_0x2e4669[_0x30a9e5(0x18b)]===_0x30a9e5(0x1e8))??_0x52655c[_0x30a9e5(0x1af)]['find'](_0x457565=>_0x457565['assetType']===_0x30a9e5(0x21a));let _0x2f09e8=null,_0x1cf562=null;if(_0x549d69){const _0x1f45ce=_0x549d69['storage'][_0x30a9e5(0x1c6)]['split']('/')['pop']();_0x2f09e8=_0x50f7fe+_0x30a9e5(0x1cf)+_0x594884[_0x30a9e5(0x1cd)]+_0x30a9e5(0x1d5)+_0x1f45ce,_0x1f45ce&&(_0x1cf562=_0x1f45ce['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x1cf562||_0x52655c['description']||_0x52655c['stepName']||_0x30a9e5(0x1ee)+_0x52655c[_0x30a9e5(0x20f)],'screenshot':_0x2f09e8,'is_key_step':_0x52655c['isKeyStep']};}));}catch{}return _0x56bc98['vrVdp'](_0x2071d3[_0x313a9d(0x18a)],0x0)&&_0x216cb2?.['screenshotUrls']&&(_0x2071d3=_0x216cb2[_0x313a9d(0x1b2)]['map']((_0x325ca7,_0xac5fb2)=>({'description':_0x313a9d(0x1b4)+(_0xac5fb2+0x1),'screenshot':_0x325ca7,'is_key_step':![]}))),{'description':_0x594884[_0x313a9d(0x22a)],'result':_0x56bc98[_0x313a9d(0x23f)](getScenarioResult,_0x594884),'rationale':_0x56bc98[_0x313a9d(0x199)](getScenarioRationale,_0x594884,_0x216cb2?.[_0x313a9d(0x1d0)]),'steps':_0x2071d3};})),_0xca27={'url':_0x18204b['dashboardUrl'],'scenarios':_0x5f3fe7};process[_0x2220f9(0x243)]['write'](_0x56bc98['HXHtB'](JSON[_0x2220f9(0x1ff)](_0xca27,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x25d7e1){const _0x445038=_0x5efecc,_0x4db3a3={'SdAKj':function(_0x48144b){return _0x48144b();},'xoUEA':_0x445038(0x1fa),'HvRzg':function(_0x3fb871,_0x47d968){return _0x3fb871(_0x47d968);},'sgtQw':function(_0x31ff47,_0x329804){return _0x31ff47===_0x329804;},'fCqXm':'\x0a✅\x20Session\x20is\x20already\x20completed.','gWEtO':'in_progress'},_0x4d725b=_0x25d7e1||await _0x4db3a3[_0x445038(0x240)](getActiveFeatureId);if(!_0x4d725b)throw new Error(_0x4db3a3['xoUEA']);const _0x4252bf=await _0x4db3a3[_0x445038(0x1e6)](getFeature,_0x4d725b);if(!_0x4252bf[_0x445038(0x1dc)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x1493ea}=await _0x4db3a3[_0x445038(0x1e6)](listFeatureSessions,_0x4d725b),_0x1c31e9=_0x1493ea['find'](_0x4f4f80=>_0x4f4f80['id']===_0x4252bf['currentSessionId']);if(!_0x1c31e9)throw new Error('Current\x20session\x20not\x20found.');if(_0x4db3a3[_0x445038(0x1e0)](_0x1c31e9[_0x445038(0x1a2)],_0x445038(0x188))){console[_0x445038(0x22d)](_0x4db3a3['fCqXm']);return;}if(_0x1c31e9[_0x445038(0x1a2)]!==_0x4db3a3['gWEtO'])throw new Error(_0x445038(0x19b)+_0x1c31e9[_0x445038(0x1a2)]);console[_0x445038(0x22d)](_0x445038(0x1eb)),await concludeSession(_0x4d725b,_0x4252bf['currentSessionId']),console['log'](_0x445038(0x234)+_0x1c31e9['iteration']+_0x445038(0x1a7)),console[_0x445038(0x22d)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x29f46a){const _0x4561e2=_0x5efecc,_0x151d52={'lNXJV':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ZcSaU':function(_0x8995b,_0x103037){return _0x8995b(_0x103037);},'Ihtxf':function(_0x212990,_0x392272){return _0x212990===_0x392272;},'fbOyT':function(_0xcf1afb,_0x50a125){return _0xcf1afb===_0x50a125;}},_0x10502f=_0x29f46a||await getActiveFeatureId();if(!_0x10502f)throw new Error(_0x151d52['lNXJV']);const _0x2ffd66=await getFeature(_0x10502f);console[_0x4561e2(0x22d)](_0x4561e2(0x237)+_0x2ffd66['name']+'\x0a');const {sessions:_0x31d12c}=await _0x151d52[_0x4561e2(0x218)](listFeatureSessions,_0x10502f);if(_0x31d12c['length']===0x0){console[_0x4561e2(0x22d)]('No\x20sessions\x20found.');return;}for(const _0x285467 of _0x31d12c){const _0x2ecee9=_0x151d52['Ihtxf'](_0x285467['status'],'completed')?'✅':_0x151d52['fbOyT'](_0x285467[_0x4561e2(0x1a2)],'in_progress')?'🔄':'▶️';console[_0x4561e2(0x22d)](_0x2ecee9+'\x20Session\x20'+_0x285467[_0x4561e2(0x242)]+'\x20('+_0x285467['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x285467['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x285467[_0x4561e2(0x23a)])[_0x4561e2(0x1c0)]()),_0x285467['completedAt']&&console[_0x4561e2(0x22d)](_0x4561e2(0x1ef)+new Date(_0x285467[_0x4561e2(0x1f5)])[_0x4561e2(0x1c0)]()),console['log']('');}}export async function featureAddScenario(_0x581bf9,_0x1540d2){const _0x355f51=_0x5efecc,_0x2e0bf4={'VLzMN':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Zoiip':function(_0x59bcb9,_0x5de3fc){return _0x59bcb9(_0x5de3fc);},'jWPre':function(_0x42afab,_0x216ef7,_0x2d2e6c){return _0x42afab(_0x216ef7,_0x2d2e6c);}},_0x2452c6=_0x1540d2||await getActiveFeatureId();if(!_0x2452c6)throw new Error(_0x2e0bf4['VLzMN']);const _0x4ebd12=await _0x2e0bf4['Zoiip'](getFeature,_0x2452c6);if(_0x4ebd12['latestReview']&&!_0x4ebd12['latestReview'][_0x355f51(0x18d)])throw new Error(_0x355f51(0x1d9)+_0x4ebd12[_0x355f51(0x1db)]);await _0x2e0bf4[_0x355f51(0x209)](createChecklistItem,_0x2452c6,_0x581bf9);const _0x2d5475=await getFeature(_0x2452c6);console[_0x355f51(0x22d)](_0x355f51(0x200)),displayFeature(_0x2d5475,_0x2d5475['checklistItems']);}export async function featureEditScenario(_0x56be05,_0x1bc9bd){const _0x56b4d2=_0x5efecc,_0x4c75f4={'OedDm':function(_0x1ed569,_0x3fca71){return _0x1ed569(_0x3fca71);},'AdkHp':_0x56b4d2(0x219),'XBjAc':'\x0aAvailable\x20scenarios:','KppCM':function(_0x5413a4,_0x1469a2){return _0x5413a4+_0x1469a2;},'EpGzN':function(_0x4ee4fe,_0x4724c8,_0x21ae59,_0x59d2dc){return _0x4ee4fe(_0x4724c8,_0x21ae59,_0x59d2dc);},'pzXem':function(_0x32ce09,_0x15617d,_0x4f1561){return _0x32ce09(_0x15617d,_0x4f1561);}},_0x56e5aa=_0x1bc9bd['id']||await getActiveFeatureId();!_0x56e5aa&&(console['error'](_0x56b4d2(0x225)),console[_0x56b4d2(0x1a3)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x474b83=await _0x4c75f4[_0x56b4d2(0x17f)](getFeature,_0x56e5aa);_0x474b83['latestReview']&&!_0x474b83[_0x56b4d2(0x1f4)][_0x56b4d2(0x18d)]&&(console[_0x56b4d2(0x1a3)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x56b4d2(0x1a3)](_0x56b4d2(0x193)),console['error']('\x20\x20'+_0x474b83[_0x56b4d2(0x1db)]),process[_0x56b4d2(0x1ce)](0x1));const _0x5e24c8=_0x474b83['checklistItems']||[];_0x5e24c8['length']===0x0&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x1bc9bd['scenario']===undefined){console[_0x56b4d2(0x1a3)](_0x4c75f4['AdkHp']),console['log'](_0x4c75f4[_0x56b4d2(0x231)]);for(let _0x2b7333=0x0;_0x2b7333<_0x5e24c8['length'];_0x2b7333++){console[_0x56b4d2(0x22d)]('\x20\x20'+_0x4c75f4[_0x56b4d2(0x1dd)](_0x2b7333,0x1)+'.\x20'+_0x5e24c8[_0x2b7333]['description']);}process[_0x56b4d2(0x1ce)](0x1);}const _0x8fdf3d=_0x1bc9bd['scenario']-0x1;if(_0x8fdf3d<0x0||_0x8fdf3d>=_0x5e24c8['length']){console[_0x56b4d2(0x1a3)](_0x56b4d2(0x1da)+_0x1bc9bd['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x5e24c8[_0x56b4d2(0x18a)]+'\x20scenarios.'),console['log'](_0x4c75f4['XBjAc']);for(let _0x5a8772=0x0;_0x5a8772<_0x5e24c8[_0x56b4d2(0x18a)];_0x5a8772++){console[_0x56b4d2(0x22d)]('\x20\x20'+(_0x5a8772+0x1)+'.\x20'+_0x5e24c8[_0x5a8772][_0x56b4d2(0x22a)]);}process['exit'](0x1);}const _0x1f6ed3=_0x5e24c8[_0x8fdf3d];await _0x4c75f4[_0x56b4d2(0x1b0)](updateChecklistItem,_0x56e5aa,_0x1f6ed3['id'],{'description':_0x56be05});const _0x43c7a1=await getFeature(_0x56e5aa);console[_0x56b4d2(0x22d)](_0x56b4d2(0x1d3)),_0x4c75f4['pzXem'](displayFeature,_0x43c7a1,_0x43c7a1['checklistItems']);}async function downloadFeedbackImage(_0x6e92b,_0x5df0fb){const _0x4bfad3=_0x5efecc,_0x3d503d={'cEkcX':function(_0x2b6558,_0x449386,_0x3ca04b){return _0x2b6558(_0x449386,_0x3ca04b);},'GSdsl':function(_0x34da97,_0x1ce714){return _0x34da97(_0x1ce714);}};try{const _0x1a380a=join(getRangerDir(),'feedback-images');await _0x3d503d[_0x4bfad3(0x249)](mkdir,_0x1a380a,{'recursive':!![]});const _0x574f6c=join(_0x1a380a,'comment_'+_0x5df0fb+'.png'),_0x166c84=await _0x3d503d['GSdsl'](fetch,_0x6e92b);if(!_0x166c84['ok'])return null;const _0x150d7e=Buffer['from'](await _0x166c84['arrayBuffer']());return await writeFile(_0x574f6c,_0x150d7e),_0x574f6c;}catch{return null;}}export async function featureGetReview(_0x185cd6){const _0x1fe8ef=_0x5efecc,_0x55c784={'iLSee':function(_0x642747){return _0x642747();},'YrjSy':_0x1fe8ef(0x1fa),'NnwFe':function(_0x50a059,_0x571299){return _0x50a059===_0x571299;},'GAaYA':_0x1fe8ef(0x1fd),'pICmN':function(_0xcfa591,_0x504588){return _0xcfa591<_0x504588;},'WdyAi':function(_0x1aa49f,_0x21b06d){return _0x1aa49f>_0x21b06d;},'vPNPn':function(_0x2bbf44,_0xee7a39){return _0x2bbf44+_0xee7a39;},'rrvGZ':'numeric','VcEgs':function(_0x222a91,_0x3dce9b){return _0x222a91>=_0x3dce9b;}},_0x3159e3=_0x185cd6||await _0x55c784['iLSee'](getActiveFeatureId);if(!_0x3159e3)throw new Error(_0x55c784[_0x1fe8ef(0x1f9)]);const _0x325f71=await getFeature(_0x3159e3),{items:_0x25384b}=await getActionItems(_0x3159e3);console[_0x1fe8ef(0x22d)]('\x0a📋\x20Feedback\x20for:\x20'+_0x325f71[_0x1fe8ef(0x1a4)]+'\x20('+_0x325f71['id']+')\x0a');if(_0x55c784[_0x1fe8ef(0x185)](_0x25384b['length'],0x0)){console['log'](_0x55c784['GAaYA']);return;}for(let _0x352b5a=0x0;_0x55c784['pICmN'](_0x352b5a,_0x25384b[_0x1fe8ef(0x18a)]);_0x352b5a++){const _0x3441b3=_0x25384b[_0x352b5a],_0x39ae2a=_0x55c784[_0x1fe8ef(0x1b6)](_0x3441b3[_0x1fe8ef(0x206)],0x1)?'\x20(v'+_0x3441b3[_0x1fe8ef(0x206)]+')':'',_0x59a883=await getItemFeedback(_0x3159e3,_0x3441b3['id']);if(_0x59a883[_0x1fe8ef(0x228)]['length']>0x0){console[_0x1fe8ef(0x22d)](_0x1fe8ef(0x195)+_0x55c784['vPNPn'](_0x352b5a,0x1)+':\x20\x22'+_0x3441b3[_0x1fe8ef(0x22a)]+'\x22'+_0x39ae2a+_0x1fe8ef(0x1b9)+_0x59a883[_0x1fe8ef(0x228)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x2ccb33 of _0x59a883['unaddressedComments']){const _0x415274=new Date(_0x2ccb33['createdAt'])[_0x1fe8ef(0x1c1)]('en-US',{'month':'short','day':_0x55c784[_0x1fe8ef(0x18f)]}),_0x29b4cd=_0x2ccb33['authorName']||_0x2ccb33['authorEmail']||'Unknown';console['log']('\x20\x20💬\x20'+_0x29b4cd+'\x20('+_0x415274+_0x1fe8ef(0x24e)+_0x2ccb33[_0x1fe8ef(0x1ad)]+'\x22');if(_0x2ccb33[_0x1fe8ef(0x223)]){const _0x3573d9=await downloadFeedbackImage(_0x2ccb33['assetUrl'],_0x2ccb33['id']);_0x3573d9&&console[_0x1fe8ef(0x22d)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x3573d9);}if(_0x2ccb33['domRef']){const _0x5f0028=_0x2ccb33[_0x1fe8ef(0x221)][_0x1fe8ef(0x211)][_0x1fe8ef(0x1d8)](_0x1fe8ef(0x19e))['pop']()?.['split'](':')[0x0]||'element',_0x58b044=_0x2ccb33[_0x1fe8ef(0x221)][_0x1fe8ef(0x1c2)]?'\x20\x22'+_0x2ccb33['domRef'][_0x1fe8ef(0x1c2)]['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x5f0028+'>'+_0x58b044),console[_0x1fe8ef(0x22d)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x2ccb33[_0x1fe8ef(0x221)][_0x1fe8ef(0x211)]);}else{if(_0x2ccb33[_0x1fe8ef(0x19f)]){const _0x41300c=_0x2ccb33['spatial'][_0x1fe8ef(0x1a1)];_0x55c784[_0x1fe8ef(0x185)](_0x2ccb33[_0x1fe8ef(0x19f)][_0x1fe8ef(0x226)],_0x1fe8ef(0x1a8))&&_0x55c784[_0x1fe8ef(0x1c5)](_0x41300c['length'],0x2)?console['log'](_0x1fe8ef(0x22c)+_0x41300c[0x0]['toFixed'](0x2)+',\x20'+_0x41300c[0x1]['toFixed'](0x2)+')'):console[_0x1fe8ef(0x22d)](_0x1fe8ef(0x24f)+_0x2ccb33['spatial'][_0x1fe8ef(0x226)]+_0x1fe8ef(0x1b7)+_0x41300c[_0x1fe8ef(0x20c)](_0x1fe1f6=>_0x1fe1f6['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x59a883[_0x1fe8ef(0x217)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x1c6175 of _0x59a883['canonicalFlow'][_0x1fe8ef(0x1d8)]('\x0a')){console['log'](_0x1fe8ef(0x23d)+_0x1c6175);}}}else console[_0x1fe8ef(0x22d)]('Scenario\x20'+(_0x352b5a+0x1)+':\x20\x22'+_0x3441b3[_0x1fe8ef(0x22a)]+'\x22'+_0x39ae2a+_0x1fe8ef(0x24b)),console[_0x1fe8ef(0x22d)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x1fe8ef(0x22d)]('');}}export async function featureDelete(_0xb230da){const _0x320016=_0x5efecc,_0xc2f6b7={'GncbI':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x3d3655=_0xb230da||await getActiveFeatureId();if(!_0x3d3655)throw new Error(_0x320016(0x1fa));const _0xeb6a58=await getFeature(_0x3d3655);await softDeleteFeature(_0x3d3655),console[_0x320016(0x22d)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0xeb6a58['name']+'\x20('+_0x3d3655+')'),console['log'](_0xc2f6b7['GncbI']+_0x3d3655);}export async function featureRestore(_0x210ccd){const _0x3b649b=_0x5efecc,_0xb0ad9c={'iNSTL':function(_0x409ef7,_0x57d7cb,_0x120913){return _0x409ef7(_0x57d7cb,_0x120913);}};await restoreFeature(_0x210ccd);const _0x1ecdda=await getFeature(_0x210ccd);console[_0x3b649b(0x22d)](_0x3b649b(0x23c)+_0x1ecdda['name']+'\x20('+_0x210ccd+')'),_0xb0ad9c['iNSTL'](displayFeature,_0x1ecdda,_0x1ecdda['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x231f97,_0x10ccb6){const _0xdb2e61=_0x25ca,_0xf49ed8=_0x231f97();while(!![]){try{const _0x2eec69=-parseInt(_0xdb2e61(0xbc))/0x1*(-parseInt(_0xdb2e61(0xc3))/0x2)+parseInt(_0xdb2e61(0xc4))/0x3+-parseInt(_0xdb2e61(0xc0))/0x4+-parseInt(_0xdb2e61(0xbf))/0x5+-parseInt(_0xdb2e61(0xc5))/0x6*(-parseInt(_0xdb2e61(0xb6))/0x7)+-parseInt(_0xdb2e61(0xc6))/0x8*(parseInt(_0xdb2e61(0xc8))/0x9)+-parseInt(_0xdb2e61(0xbe))/0xa*(-parseInt(_0xdb2e61(0xb9))/0xb);if(_0x2eec69===_0x10ccb6)break;else _0xf49ed8['push'](_0xf49ed8['shift']());}catch(_0x1dcabb){_0xf49ed8['push'](_0xf49ed8['shift']());}}}(_0x3955,0xa13ad));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x25ca(_0x43645d,_0x2c5017){_0x43645d=_0x43645d-0xb4;const _0x3955b2=_0x3955();let _0x25ca4b=_0x3955b2[_0x43645d];return _0x25ca4b;}const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x2976c0=_0x25ca,_0x5248e9={'eLAOt':_0x2976c0(0xbb),'mYwTL':_0x2976c0(0xba)};if(cancellationHandlersInstalled)return;const _0x272e67=()=>{const _0x1dedd0=_0x2976c0;process[_0x1dedd0(0xb4)](0x0);};process['once'](_0x5248e9['eLAOt'],_0x272e67),process[_0x2976c0(0xbd)](_0x2976c0(0xc1),_0x272e67),process['once'](_0x5248e9[_0x2976c0(0xb5)],_0x272e67),cancellationHandlersInstalled=!![];}function _0x3955(){const _0x455604=['5TKejhQ','once','237590YaYCpZ','3527720VTWqZM','4985408DEFNVY','SIGTERM','JFugs','404078ieobCr','411654IylawP','338466Eojpao','32clQkyb','Valid\x20hooks:\x20','719622lzJZZw','exit','mYwTL','77cBPRXJ','join','xPuhf','539QTojmh','SIGHUP','SIGINT'];_0x3955=function(){return _0x455604;};return _0x3955();}export async function hook(_0x5cc179,_0x27c9bb){const _0x46766a=_0x25ca,_0x2fec15={'JFugs':function(_0x3d6915){return _0x3d6915();},'xPuhf':function(_0x1ed65c,_0x1581d8){return _0x1ed65c(_0x1581d8);}};_0x2fec15[_0x46766a(0xc2)](installCancellationHandlers);const _0x307849=HOOKS[_0x5cc179];if(!_0x307849){const _0x10118e=Object['keys'](HOOKS)[_0x46766a(0xb7)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x5cc179),console['error'](_0x46766a(0xc7)+_0x10118e),process[_0x46766a(0xb4)](0x1);}await _0x2fec15[_0x46766a(0xb8)](_0x307849,_0x27c9bb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37f7af,_0x555e8c){const _0x4c57ea=_0x2ca2,_0xec5441=_0x37f7af();while(!![]){try{const _0xaa2bef=parseInt(_0x4c57ea(0x177))/0x1+parseInt(_0x4c57ea(0x17b))/0x2*(parseInt(_0x4c57ea(0x181))/0x3)+parseInt(_0x4c57ea(0x183))/0x4+-parseInt(_0x4c57ea(0x178))/0x5*(-parseInt(_0x4c57ea(0x176))/0x6)+parseInt(_0x4c57ea(0x182))/0x7+-parseInt(_0x4c57ea(0x180))/0x8*(-parseInt(_0x4c57ea(0x17d))/0x9)+parseInt(_0x4c57ea(0x17a))/0xa*(-parseInt(_0x4c57ea(0x17f))/0xb);if(_0xaa2bef===_0x555e8c)break;else _0xec5441['push'](_0xec5441['shift']());}catch(_0x26b0fc){_0xec5441['push'](_0xec5441['shift']());}}}(_0x1e10,0xcdfe2));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x1e10(){const _0x3c333e=['2802LQrCjW','178302eALXga','10655AooGUD','log','20CCjJDd','2cWGDdl','HwgpH','10683mdlhwp','session_id','10618366xoztME','1832ZBwdvU','3744282NGrbwi','281225tahbpI','163148ofiFBv','ZPUUN'];_0x1e10=function(){return _0x3c333e;};return _0x1e10();}import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';function _0x2ca2(_0x9a752,_0x37721d){_0x9a752=_0x9a752-0x175;const _0x1e101b=_0x1e10();let _0x2ca2ed=_0x1e101b[_0x9a752];return _0x2ca2ed;}export async function autoPrompt(){const _0xffcc5d=_0x2ca2,_0x192349={'NuMpG':function(_0x1ed7ef,_0x1595b4){return _0x1ed7ef===_0x1595b4;},'HwgpH':function(_0x5d3b1e){return _0x5d3b1e();},'TTQTT':'off','ZPUUN':function(_0x5aa55a,_0x1d3790){return _0x5aa55a(_0x1d3790);}};if(_0x192349['NuMpG'](_0x192349[_0xffcc5d(0x17c)](resolveHookMode),_0x192349['TTQTT']))return;const _0x3502f0=await readHookInput(),_0x3d480d=_0x3502f0?.[_0xffcc5d(0x17e)];if(!_0x3d480d)return;if(_0x192349['ZPUUN'](isSessionEnabled,_0x3d480d)||hasSessionBeenPrompted(_0x3d480d))return;_0x192349[_0xffcc5d(0x175)](markSessionPrompted,_0x3d480d),console[_0xffcc5d(0x179)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b16e8,_0x12cd48){const _0x315e23=_0x54c7,_0xb95800=_0x5b16e8();while(!![]){try{const _0x5cdbf5=-parseInt(_0x315e23(0x147))/0x1*(parseInt(_0x315e23(0x143))/0x2)+parseInt(_0x315e23(0x142))/0x3+parseInt(_0x315e23(0x146))/0x4+parseInt(_0x315e23(0x139))/0x5*(-parseInt(_0x315e23(0x13c))/0x6)+parseInt(_0x315e23(0x13f))/0x7+-parseInt(_0x315e23(0x13a))/0x8*(parseInt(_0x315e23(0x149))/0x9)+parseInt(_0x315e23(0x13b))/0xa*(-parseInt(_0x315e23(0x13d))/0xb);if(_0x5cdbf5===_0x12cd48)break;else _0xb95800['push'](_0xb95800['shift']());}catch(_0x5e1c78){_0xb95800['push'](_0xb95800['shift']());}}}(_0x2854,0x1bf93));function _0x54c7(_0x4857cb,_0x59521e){_0x4857cb=_0x4857cb-0x139;const _0x285489=_0x2854();let _0x54c733=_0x285489[_0x4857cb];return _0x54c733;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x2854(){const _0x306a07=['DZzoX','931203mncGwq','OWBDe','vNBNf','442341eRryuw','34382qCyoHL','smNit','\x20and\x20branch\x20\x27','846200BbMAQp','2KllpJH','hApbE','9NYBXpw','master','5BppRPH','538408MdnXZz','119350GDbBPt','365604HBHQmK','198wlAtvW'];_0x2854=function(){return _0x306a07;};return _0x2854();}import{printBlock}from'./output.js';export async function disable(_0x2c6c1a){const _0x11f87b=_0x54c7,_0x130f8d={'ezeux':function(_0x1b7b6f,_0x1c1502){return _0x1b7b6f(_0x1c1502);},'OWBDe':function(_0x47443c){return _0x47443c();},'DZzoX':'main','AjHyP':function(_0x9b9913,_0x46c8ea){return _0x9b9913!==_0x46c8ea;},'smNit':_0x11f87b(0x14a),'vNBNf':function(_0xca9b03,_0x820ab2){return _0xca9b03(_0x820ab2);},'XMFFG':function(_0x2c3803,_0x49689a){return _0x2c3803(_0x49689a);},'hApbE':function(_0x3ec2f5,_0x4c87b9){return _0x3ec2f5!==_0x4c87b9;}},_0x17e91c=_0x2c6c1a||process['env']['CLAUDE_SESSION_ID']||'';_0x17e91c&&_0x130f8d['ezeux'](disableSession,_0x17e91c);const _0x1fc8f4=_0x130f8d[_0x11f87b(0x140)](getCurrentBranch);_0x1fc8f4&&_0x1fc8f4!==_0x130f8d[_0x11f87b(0x13e)]&&_0x130f8d['AjHyP'](_0x1fc8f4,_0x130f8d[_0x11f87b(0x144)])&&_0x130f8d[_0x11f87b(0x141)](disableBranch,_0x1fc8f4),_0x130f8d['XMFFG'](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x1fc8f4&&_0x1fc8f4!==_0x130f8d[_0x11f87b(0x13e)]&&_0x130f8d[_0x11f87b(0x148)](_0x1fc8f4,_0x130f8d['smNit'])?_0x11f87b(0x145)+_0x1fc8f4+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3811fe,_0x39b7ca){const _0x400965=_0x187e,_0x4027a8=_0x3811fe();while(!![]){try{const _0x1dcea1=-parseInt(_0x400965(0x129))/0x1+parseInt(_0x400965(0x11e))/0x2*(parseInt(_0x400965(0x121))/0x3)+-parseInt(_0x400965(0x127))/0x4*(parseInt(_0x400965(0x12a))/0x5)+parseInt(_0x400965(0x119))/0x6+parseInt(_0x400965(0x12c))/0x7*(-parseInt(_0x400965(0x128))/0x8)+parseInt(_0x400965(0x11f))/0x9*(-parseInt(_0x400965(0x12d))/0xa)+parseInt(_0x400965(0x11c))/0xb*(parseInt(_0x400965(0x118))/0xc);if(_0x1dcea1===_0x39b7ca)break;else _0x4027a8['push'](_0x4027a8['shift']());}catch(_0x29247f){_0x4027a8['push'](_0x4027a8['shift']());}}}(_0x511a,0x485bf));function _0x187e(_0x581130,_0x1f937e){_0x581130=_0x581130-0x115;const _0x511aad=_0x511a();let _0x187e96=_0x511aad[_0x581130];return _0x187e96;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x511a(){const _0x246584=['main','\x0a\x0a**Branch\x20\x27','Jxexm','rHETk','99492vZbNha','2382504Oqutjb','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','master','1045jTHLVF','\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.','4oxltdv','235575cMdEEt','env','230001ipcyPQ','CLAUDE_SESSION_ID','aJIRD','ranger\x20setup','#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`','DeMRU','60placlY','8VqpxZl','477779PaYXNq','23755InIdZQ','ranger\x20setup\x20--opencode','3082002MKQAUW','20wyoHfv'];_0x511a=function(){return _0x246584;};return _0x511a();}import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x44d448){const _0x36d18a=_0x187e,_0x2178f9={'frwoH':function(_0x5c8dca,_0x202e4b){return _0x5c8dca(_0x202e4b);},'rHETk':_0x36d18a(0x11a),'Jxexm':function(_0x5aad0c){return _0x5aad0c();},'DeMRU':function(_0x575f4d,_0x27c190){return _0x575f4d(_0x27c190);},'aJIRD':function(_0x4ad689){return _0x4ad689();}},_0x190581=_0x44d448||process[_0x36d18a(0x120)][_0x36d18a(0x122)]||'',_0xd81171=_0x2178f9['frwoH'](Boolean,_0x44d448),_0x3012c6=await getToken();if(!_0x3012c6){const _0x364f1c=_0xd81171?_0x36d18a(0x12b):_0x36d18a(0x124),_0x41a5a9=_0xd81171?_0x2178f9[_0x36d18a(0x117)]:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock(_0x36d18a(0x125)+_0x364f1c+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x41a5a9);return;}try{await _0x2178f9[_0x36d18a(0x116)](update);}catch{}_0x190581&&_0x2178f9[_0x36d18a(0x126)](enableSession,_0x190581);const _0x396767=_0x2178f9[_0x36d18a(0x123)](getCurrentBranch),_0x4774ac=_0x396767&&_0x396767!==_0x36d18a(0x12e)&&_0x396767!==_0x36d18a(0x11b)?_0x36d18a(0x115)+_0x396767+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x9c9647=getRangerSkillContent();_0x2178f9['DeMRU'](printBlock,'#\x20RANGER\x20ENABLED'+_0x4774ac+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x9c9647+_0x36d18a(0x11d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x542b(_0x4180df,_0xe069b4){_0x4180df=_0x4180df-0x91;const _0x24115c=_0x2411();let _0x542bdd=_0x24115c[_0x4180df];return _0x542bdd;}(function(_0x40d8ea,_0x5b40e5){const _0x1c515c=_0x542b,_0x4f9696=_0x40d8ea();while(!![]){try{const _0x3b1b01=-parseInt(_0x1c515c(0x94))/0x1+-parseInt(_0x1c515c(0x91))/0x2+parseInt(_0x1c515c(0x99))/0x3*(-parseInt(_0x1c515c(0x98))/0x4)+-parseInt(_0x1c515c(0x95))/0x5+-parseInt(_0x1c515c(0x92))/0x6+parseInt(_0x1c515c(0x93))/0x7+parseInt(_0x1c515c(0x9a))/0x8*(parseInt(_0x1c515c(0x96))/0x9);if(_0x3b1b01===_0x5b40e5)break;else _0x4f9696['push'](_0x4f9696['shift']());}catch(_0x13d432){_0x4f9696['push'](_0x4f9696['shift']());}}}(_0x2411,0x86c4c));function _0x2411(){const _0x4fc45d=['2404514upaGgQ','1078070yFvmop','1524940WwOJyV','117tMPXXQ','===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===','2796QyDWOU','174vHGNJA','1286976ncMqQK','378552zgHLud','1619700aUNGLd'];_0x2411=function(){return _0x4fc45d;};return _0x2411();}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x3da233){const _0x42a636=_0x542b,_0x5c0a99=await getEnabledSessionId(_0x3da233);if(!_0x5c0a99)return;printBlock(_0x42a636(0x97));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a55ae,_0xe8eb1c){var _0x226e7c=_0x3b94,_0x1ab13f=_0x2a55ae();while(!![]){try{var _0x50ece6=parseInt(_0x226e7c(0x88))/0x1*(-parseInt(_0x226e7c(0x85))/0x2)+parseInt(_0x226e7c(0x84))/0x3+parseInt(_0x226e7c(0x83))/0x4*(parseInt(_0x226e7c(0x8a))/0x5)+-parseInt(_0x226e7c(0x89))/0x6+-parseInt(_0x226e7c(0x86))/0x7*(parseInt(_0x226e7c(0x87))/0x8)+-parseInt(_0x226e7c(0x8b))/0x9+parseInt(_0x226e7c(0x8d))/0xa*(parseInt(_0x226e7c(0x8c))/0xb);if(_0x50ece6===_0xe8eb1c)break;else _0x1ab13f['push'](_0x1ab13f['shift']());}catch(_0x17bb16){_0x1ab13f['push'](_0x1ab13f['shift']());}}}(_0x2d39,0x51e37));export{sessionStart}from'./sessionStart.js';function _0x2d39(){var _0x2e7c3b=['3321063nvGNwi','3839594vOEPFI','10ONGsCw','77996tfKodV','1623999yZfYJX','513580KQiLBM','7LfxGJD','193608faBLxJ','1UuKXnS','131808rtQpEi','30FmzvYB'];_0x2d39=function(){return _0x2e7c3b;};return _0x2d39();}export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';function _0x3b94(_0x2402a6,_0x1c910f){_0x2402a6=_0x2402a6-0x83;var _0x2d393c=_0x2d39();var _0x3b9447=_0x2d393c[_0x2402a6];return _0x3b9447;}export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3abf(_0x37a96c,_0x2d661c){_0x37a96c=_0x37a96c-0x1c6;const _0x3b3224=_0x3b32();let _0x3abf10=_0x3b3224[_0x37a96c];return _0x3abf10;}(function(_0x34ea97,_0x4693c8){const _0x8435fc=_0x3abf,_0x1e5679=_0x34ea97();while(!![]){try{const _0x143229=parseInt(_0x8435fc(0x1c6))/0x1+-parseInt(_0x8435fc(0x1cd))/0x2+parseInt(_0x8435fc(0x1d1))/0x3+parseInt(_0x8435fc(0x1d0))/0x4+-parseInt(_0x8435fc(0x1c8))/0x5+-parseInt(_0x8435fc(0x1ce))/0x6+-parseInt(_0x8435fc(0x1cf))/0x7*(-parseInt(_0x8435fc(0x1cb))/0x8);if(_0x143229===_0x4693c8)break;else _0x1e5679['push'](_0x1e5679['shift']());}catch(_0x534902){_0x1e5679['push'](_0x1e5679['shift']());}}}(_0x3b32,0xd2d2d));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x22fea2){console['log'](_0x22fea2);}function _0x3b32(){const _0x594030=['49fnkmHe','2817948rokXPL','1039773keeDNm','879889uFokgm','nPzdj','3864495YIqamA','session_id','trim','1872944COMItT','TEQYP','580448vPVHWR','9858822CEbuZR'];_0x3b32=function(){return _0x594030;};return _0x3b32();}export async function readHookInput(){const _0x509e53=_0x3abf;let _0x2490ff='';try{for await(const _0x32fce0 of process['stdin']){_0x2490ff+=_0x32fce0;}}catch{return null;}if(!_0x2490ff[_0x509e53(0x1ca)]())return null;try{return JSON['parse'](_0x2490ff);}catch{return null;}}export async function getEnabledSessionId(_0x49aa2f){const _0x56fc7b=_0x3abf,_0x4a5d56={'nPzdj':function(_0x200242,_0x40c710){return _0x200242(_0x40c710);}};if(_0x49aa2f)return _0x4a5d56[_0x56fc7b(0x1c7)](isSessionEnabled,_0x49aa2f)?_0x49aa2f:null;const _0x22b149=await readHookInput(),_0x522810=_0x22b149?.['session_id'];if(!_0x522810||!_0x4a5d56[_0x56fc7b(0x1c7)](isSessionEnabled,_0x522810))return null;return _0x522810;}export async function getEnabledHookContext(_0xefb197){const _0x1bc853=_0x3abf,_0x3203c7={'FnZYa':function(_0x4e8b0b,_0x138d25){return _0x4e8b0b(_0x138d25);},'TEQYP':function(_0x5001ae,_0x42b3d0){return _0x5001ae(_0x42b3d0);}};if(_0xefb197){if(!_0x3203c7['FnZYa'](isSessionEnabled,_0xefb197))return null;return{'sessionId':_0xefb197,'input':{'session_id':_0xefb197}};}const _0x5d76ad=await readHookInput(),_0x44dab6=_0x5d76ad?.[_0x1bc853(0x1c9)];if(!_0x44dab6||!_0x3203c7[_0x1bc853(0x1cc)](isSessionEnabled,_0x44dab6))return null;return{'sessionId':_0x44dab6,'input':_0x5d76ad};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4540(_0x2c0531,_0x461caa){_0x2c0531=_0x2c0531-0x127;const _0x3376dd=_0x3376();let _0x4540b3=_0x3376dd[_0x2c0531];return _0x4540b3;}function _0x3376(){const _0x538b89=['61724kbixVw','11gDaogC','870261WTqKcg','4obhzNQ','224OldEQq','1277644neDeIQ','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===','3wJpoZB','681312XHOkiw','permission_mode','2302690nGbsGx','plan','940085Gprwjr','85959LutzXU','fipxW'];_0x3376=function(){return _0x538b89;};return _0x3376();}(function(_0x181aa3,_0x4b5331){const _0x4babce=_0x4540,_0xbacb0c=_0x181aa3();while(!![]){try{const _0x26debd=-parseInt(_0x4babce(0x135))/0x1*(-parseInt(_0x4babce(0x132))/0x2)+parseInt(_0x4babce(0x12a))/0x3*(-parseInt(_0x4babce(0x128))/0x4)+parseInt(_0x4babce(0x12f))/0x5+parseInt(_0x4babce(0x12b))/0x6+parseInt(_0x4babce(0x134))/0x7+-parseInt(_0x4babce(0x127))/0x8*(parseInt(_0x4babce(0x130))/0x9)+parseInt(_0x4babce(0x12d))/0xa*(parseInt(_0x4babce(0x133))/0xb);if(_0x26debd===_0x4b5331)break;else _0xbacb0c['push'](_0xbacb0c['shift']());}catch(_0x3f4bb1){_0xbacb0c['push'](_0xbacb0c['shift']());}}}(_0x3376,0x2f102));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x57cf83){const _0xbc49b3=_0x4540,_0x2c0802={'qZMRM':function(_0x503f19,_0x24d96a){return _0x503f19(_0x24d96a);},'fipxW':_0xbc49b3(0x12e)},_0x105c30=await _0x2c0802['qZMRM'](getEnabledHookContext,_0x57cf83);if(!_0x105c30)return;if(_0x105c30['input'][_0xbc49b3(0x12c)]!==_0x2c0802[_0xbc49b3(0x131)])return;if(!shouldShowPlanReminder(_0x105c30['sessionId']))return;printBlock(_0xbc49b3(0x129));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1009(_0x42363d,_0x20ac0e){_0x42363d=_0x42363d-0x134;const _0x28065d=_0x2806();let _0x1009e9=_0x28065d[_0x42363d];return _0x1009e9;}function _0x2806(){const _0x541834=['4690710aEVZbK','2376437oVXQKz','14379547TJxyzN','5DYmlyl','311fiLTll','2123hoZvGx','798SHGFwR','110lkXXYN','24BoSCKc','2476iMBogP','12cSfmgN','1356JUrxnE','2480886QikdkB'];_0x2806=function(){return _0x541834;};return _0x2806();}(function(_0x18da62,_0x307a45){const _0x1b9df1=_0x1009,_0x5c7342=_0x18da62();while(!![]){try{const _0xebf599=-parseInt(_0x1b9df1(0x135))/0x1*(parseInt(_0x1b9df1(0x13c))/0x2)+-parseInt(_0x1b9df1(0x137))/0x3*(parseInt(_0x1b9df1(0x13a))/0x4)+-parseInt(_0x1b9df1(0x134))/0x5*(parseInt(_0x1b9df1(0x13e))/0x6)+-parseInt(_0x1b9df1(0x13f))/0x7+parseInt(_0x1b9df1(0x139))/0x8*(parseInt(_0x1b9df1(0x13d))/0x9)+parseInt(_0x1b9df1(0x138))/0xa*(-parseInt(_0x1b9df1(0x136))/0xb)+parseInt(_0x1b9df1(0x13b))/0xc*(parseInt(_0x1b9df1(0x140))/0xd);if(_0xebf599===_0x307a45)break;else _0x5c7342['push'](_0x5c7342['shift']());}catch(_0x29d1af){_0x5c7342['push'](_0x5c7342['shift']());}}}(_0x2806,0x69ffa));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x172aba){const _0xe89021={'DmBdC':function(_0xc9b1fe,_0x29bd67){return _0xc9b1fe(_0x29bd67);}},_0x1f4cf7=await getEnabledSessionId(_0x172aba);if(!_0x1f4cf7)return;_0xe89021['DmBdC'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5b31(_0x5ecfc0,_0x33f4eb){_0x5ecfc0=_0x5ecfc0-0x1d7;const _0x48c646=_0x48c6();let _0x5b3187=_0x48c646[_0x5ecfc0];return _0x5b3187;}(function(_0x35aa0a,_0x328df3){const _0x4b205a=_0x5b31,_0x721d66=_0x35aa0a();while(!![]){try{const _0xc98ac1=parseInt(_0x4b205a(0x1e3))/0x1*(-parseInt(_0x4b205a(0x1d8))/0x2)+parseInt(_0x4b205a(0x1db))/0x3+parseInt(_0x4b205a(0x1de))/0x4+parseInt(_0x4b205a(0x1e4))/0x5*(parseInt(_0x4b205a(0x1da))/0x6)+parseInt(_0x4b205a(0x1dd))/0x7*(parseInt(_0x4b205a(0x1e5))/0x8)+parseInt(_0x4b205a(0x1dc))/0x9+-parseInt(_0x4b205a(0x1e6))/0xa*(parseInt(_0x4b205a(0x1d7))/0xb);if(_0xc98ac1===_0x328df3)break;else _0x721d66['push'](_0x721d66['shift']());}catch(_0x4bb5c8){_0x721d66['push'](_0x721d66['shift']());}}}(_0x48c6,0x1902c));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x48c6(){const _0x3f570c=['hEKeQ','109axUKHc','372665EoSdVA','626512WrHpLJ','21290PinLRa','2365dmTaJQ','746adLwdP','JWeGV','12apBrWP','498984kNNfdd','735687NBcsiG','7MlBdqD','501540xXqHNT','log','RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.','PostToolUse'];_0x48c6=function(){return _0x3f570c;};return _0x48c6();}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0xb8581){const _0x514cdd=_0x5b31,_0x371136={'xuMzY':function(_0x578fa8,_0x4b97bd){return _0x578fa8(_0x4b97bd);},'hEKeQ':function(_0x472eb9){return _0x472eb9();},'JWeGV':function(_0x449c88,_0x4bcad0){return _0x449c88(_0x4bcad0);}},_0x291a88=await _0x371136['xuMzY'](getEnabledSessionId,_0xb8581);if(!_0x291a88)return;updateBranchTracking(_0x291a88);const _0x5e1b80=await _0x371136[_0x514cdd(0x1e2)](getToken);if(!_0x5e1b80)return;const _0x2b327a=_0x371136[_0x514cdd(0x1d9)](getSessionEntry,_0x291a88);if(_0x2b327a){const _0x5864b2={'hookSpecificOutput':{'hookEventName':_0x514cdd(0x1e1),'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON['stringify'](_0x5864b2));return;}const _0x3e243f={'hookSpecificOutput':{'hookEventName':_0x514cdd(0x1e1),'additionalContext':_0x514cdd(0x1e0)}};console[_0x514cdd(0x1df)](JSON['stringify'](_0x3e243f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2465(_0x3e116a,_0x5c824a){_0x3e116a=_0x3e116a-0x9e;const _0x19d4af=_0x19d4();let _0x2465ce=_0x19d4af[_0x3e116a];return _0x2465ce;}(function(_0x19406e,_0x26be76){const _0xa63a78=_0x2465,_0x26023c=_0x19406e();while(!![]){try{const _0x47d8d9=parseInt(_0xa63a78(0xa1))/0x1*(-parseInt(_0xa63a78(0xa5))/0x2)+-parseInt(_0xa63a78(0x9e))/0x3+-parseInt(_0xa63a78(0xa3))/0x4+parseInt(_0xa63a78(0xa2))/0x5*(-parseInt(_0xa63a78(0x9f))/0x6)+-parseInt(_0xa63a78(0xa6))/0x7+parseInt(_0xa63a78(0xa0))/0x8+parseInt(_0xa63a78(0xa4))/0x9;if(_0x47d8d9===_0x26be76)break;else _0x26023c['push'](_0x26023c['shift']());}catch(_0x11d2b3){_0x26023c['push'](_0x26023c['shift']());}}}(_0x19d4,0x5620a));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x5ad22b){const _0x2effc9=await getEnabledSessionId(_0x5ad22b);if(!_0x2effc9)return;try{const _0x5cd83c=await getToken();if(!_0x5cd83c)return;printBlock('===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}function _0x19d4(){const _0xc59491=['6igtZum','701864yTGoOv','16119KQaZBE','968145tELPTY','2474864fIYXvQ','14919840vqGikf','4ozHzJh','1587523sAhgUc','964029TszeeM'];_0x19d4=function(){return _0xc59491;};return _0x19d4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1a42(_0x53b9cb,_0x3d3238){_0x53b9cb=_0x53b9cb-0x1b9;const _0x4e4c4a=_0x4e4c();let _0x1a421b=_0x4e4c4a[_0x53b9cb];return _0x1a421b;}(function(_0x36322e,_0x12f807){const _0x17e9d9=_0x1a42,_0x40b6d9=_0x36322e();while(!![]){try{const _0x201336=parseInt(_0x17e9d9(0x1c2))/0x1*(-parseInt(_0x17e9d9(0x1c4))/0x2)+parseInt(_0x17e9d9(0x1bf))/0x3*(parseInt(_0x17e9d9(0x1bc))/0x4)+parseInt(_0x17e9d9(0x1c3))/0x5+-parseInt(_0x17e9d9(0x1c0))/0x6*(parseInt(_0x17e9d9(0x1bd))/0x7)+parseInt(_0x17e9d9(0x1c1))/0x8*(parseInt(_0x17e9d9(0x1c5))/0x9)+parseInt(_0x17e9d9(0x1bb))/0xa+-parseInt(_0x17e9d9(0x1be))/0xb;if(_0x201336===_0x12f807)break;else _0x40b6d9['push'](_0x40b6d9['shift']());}catch(_0x1fb798){_0x40b6d9['push'](_0x40b6d9['shift']());}}}(_0x4e4c,0x932af));function _0x4e4c(){const _0x37f254=['3rfJMqy','706410UicrWQ','140758JFfBzo','610497MMOydR','env','bxsHr','6711140WTHuYS','16076lMLdou','6974506cFMDKF','7846465tIxArz','771ohaHeU','6XKOSuJ','80rzFePu'];_0x4e4c=function(){return _0x37f254;};return _0x4e4c();}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x14ae45){const _0x5152dc=_0x1a42,_0x55ad52={'sNAAM':function(_0xca6b48,_0xc8db0e){return _0xca6b48(_0xc8db0e);},'EdjmX':function(_0x403ca9){return _0x403ca9();},'bxsHr':function(_0x314803,_0x3e9b5d){return _0x314803===_0x3e9b5d;},'cIfKL':'clear'},_0x22c023=process[_0x5152dc(0x1b9)]['CLAUDE_SESSION_ID'];let _0x25aa6e=_0x14ae45,_0x238275;if(!_0x14ae45){if(_0x22c023&&!_0x55ad52['sNAAM'](isSessionEnabled,_0x22c023))return;const _0x85e3aa=await _0x55ad52['EdjmX'](readHookInput);_0x25aa6e=_0x85e3aa?.['session_id']||_0x22c023,_0x238275=_0x85e3aa?.['reason'];}if(!_0x25aa6e)return;_0x55ad52[_0x5152dc(0x1ba)](_0x238275,_0x55ad52['cIfKL'])&&recordEnabledSessionCleared(_0x25aa6e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x34d4da=_0x1c0a;(function(_0x47a263,_0x1adb26){const _0x131ce4=_0x1c0a,_0x5cbaf2=_0x47a263();while(!![]){try{const _0x383eee=parseInt(_0x131ce4(0x17f))/0x1+-parseInt(_0x131ce4(0x178))/0x2*(-parseInt(_0x131ce4(0x179))/0x3)+-parseInt(_0x131ce4(0x172))/0x4+parseInt(_0x131ce4(0x180))/0x5*(-parseInt(_0x131ce4(0x16c))/0x6)+-parseInt(_0x131ce4(0x170))/0x7*(-parseInt(_0x131ce4(0x183))/0x8)+parseInt(_0x131ce4(0x16b))/0x9+-parseInt(_0x131ce4(0x17e))/0xa;if(_0x383eee===_0x1adb26)break;else _0x5cbaf2['push'](_0x5cbaf2['shift']());}catch(_0x37cf1b){_0x5cbaf2['push'](_0x5cbaf2['shift']());}}}(_0x5ca7,0x9eb6b));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';function _0x1c0a(_0x31f00c,_0x9cf744){_0x31f00c=_0x31f00c-0x16a;const _0x5ca7b9=_0x5ca7();let _0x1c0aaf=_0x5ca7b9[_0x31f00c];return _0x1c0aaf;}import{resolveHookMode}from'../utils/environment.js';function _0x5ca7(){const _0x1db7e6=['201760MXNZSA','source','log','trackCommandStart','jqFiz','SessionStart','10nbPInm','430740slPDLO','GTxWB','stdin','pAAuf','\x20(Branch:\x20','6209880EsAIAN','1143945THFDlP','5RiCZuk','ezZKl','CnwHr','8336kjLSvP','YYSIZ','1302525WVAJZq','5479494dyaZyX','hook:session-start','MsMvo','=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================','1533vqDrik','env'];_0x5ca7=function(){return _0x1db7e6;};return _0x5ca7();}const RANGER_AUTO_ENABLED_PROMPT=_0x34d4da(0x16f);export async function sessionStart(_0xeb39ec){const _0x12c544=_0x34d4da,_0x27ecc6={'CnwHr':function(_0x3ad808,_0x3321e4){return _0x3ad808||_0x3321e4;},'ezZKl':'session_id','bcBcf':function(_0x3754e9,_0x5cad4d){return _0x3754e9&&_0x5cad4d;},'MsMvo':function(_0x743f95){return _0x743f95();},'GTxWB':function(_0x4a0175,_0x3c1efb){return _0x4a0175(_0x3c1efb);},'jqFiz':function(_0x4040f3,_0x2b2c9d){return _0x4040f3(_0x2b2c9d);},'wprGM':_0x12c544(0x16d),'pAAuf':function(_0xd0af34,_0x11a382){return _0xd0af34!==_0x11a382;},'aMOZJ':'master','YYSIZ':_0x12c544(0x177),'SGNST':function(_0x398569,_0x537c28){return _0x398569+_0x537c28;}};let _0x1c2803=_0x27ecc6[_0x12c544(0x182)](_0xeb39ec,''),_0x5aa4fa;if(!_0xeb39ec){let _0x1b890e='';for await(const _0x130a5f of process[_0x12c544(0x17b)]){_0x1b890e+=_0x130a5f;}try{const _0x231f90=JSON['parse'](_0x1b890e);_0x1c2803=_0x231f90[_0x27ecc6[_0x12c544(0x181)]]||'',_0x5aa4fa=_0x231f90[_0x12c544(0x173)];}catch{}const _0x54a6aa=process[_0x12c544(0x171)]['CLAUDE_ENV_FILE'];if(_0x27ecc6['bcBcf'](_0x54a6aa,_0x1c2803))try{await appendFile(_0x54a6aa,'export\x20CLAUDE_SESSION_ID=\x22'+_0x1c2803+'\x22\x0a');}catch{}}try{await _0x27ecc6[_0x12c544(0x16e)](getToken);}catch{}if(_0x1c2803){shouldAutoEnableAfterClear(_0x5aa4fa)&&_0x27ecc6[_0x12c544(0x17a)](autoEnableAfterClear,_0x1c2803);_0x27ecc6['GTxWB'](initBranchTracking,_0x1c2803);_0x27ecc6['MsMvo'](resolveHookMode)==='on'&&_0x27ecc6['jqFiz'](enableSession,_0x1c2803);const _0x58eb0b=_0x27ecc6[_0x12c544(0x176)](isSessionEnabled,_0x1c2803);try{const _0x54a9bf=createTelemetryCollector(_0x27ecc6['wprGM']);await _0x54a9bf[_0x12c544(0x175)]({'sessionId':_0x1c2803,'hooksEnabled':_0x58eb0b}),await _0x54a9bf['trackCommandEnd']('success');}catch{}if(_0x58eb0b){const _0x5b1c82=_0x27ecc6[_0x12c544(0x16e)](getCurrentBranch),_0x3f7f90=_0x5b1c82&&_0x27ecc6[_0x12c544(0x17c)](_0x5b1c82,'main')&&_0x5b1c82!==_0x27ecc6['aMOZJ']?_0x12c544(0x17d)+_0x5b1c82+')':'',_0x2c7d64={'hookSpecificOutput':{'hookEventName':_0x27ecc6[_0x12c544(0x16a)],'additionalContext':_0x27ecc6['SGNST'](RANGER_AUTO_ENABLED_PROMPT,_0x3f7f90)}};console[_0x12c544(0x174)](JSON['stringify'](_0x2c7d64));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x102c38,_0x48743b){const _0x507ea2=_0x1089,_0xe547b5=_0x102c38();while(!![]){try{const _0x546961=-parseInt(_0x507ea2(0x10b))/0x1+-parseInt(_0x507ea2(0x100))/0x2+parseInt(_0x507ea2(0x101))/0x3+-parseInt(_0x507ea2(0x107))/0x4+parseInt(_0x507ea2(0x106))/0x5+-parseInt(_0x507ea2(0x108))/0x6*(-parseInt(_0x507ea2(0x111))/0x7)+-parseInt(_0x507ea2(0x10c))/0x8*(-parseInt(_0x507ea2(0x102))/0x9);if(_0x546961===_0x48743b)break;else _0xe547b5['push'](_0xe547b5['shift']());}catch(_0x1de1b0){_0xe547b5['push'](_0xe547b5['shift']());}}}(_0x1b89,0x200d2));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x1b89(){const _0x54c93e=['blocked','362272NKBzGg','556173OubJot','5463LkprMV','sessionId','currentSessionId','checklistItems','185385ruuuNd','221004ZHveNI','21126JBSyGa','Stop','trackCommandEnd','94697RGnHcY','1816jkomdq','verified','trackCommandStart','VtHsd','incomplete','203jcAhKi','hook:stop','success','RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20','utiib','XIAhP','status'];_0x1b89=function(){return _0x54c93e;};return _0x1b89();}export async function stopHook(_0x9067b3){const _0x211c34=_0x1089,_0x55df20={'gcjpt':function(_0x3e241b,_0xf53711){return _0x3e241b(_0xf53711);},'XIAhP':function(_0xfb398a,_0x2cc4fe,_0x45e34c,_0x28fb57){return _0xfb398a(_0x2cc4fe,_0x45e34c,_0x28fb57);},'IqDNx':function(_0x720b59,_0x1e8a05){return _0x720b59(_0x1e8a05);},'utiib':function(_0x19f832){return _0x19f832();},'VtHsd':function(_0x59a0ed,_0x40809b){return _0x59a0ed(_0x40809b);},'dFTQj':_0x211c34(0x109),'EOWPe':function(_0x3a548f,_0x5dda95,_0x1efeff){return _0x3a548f(_0x5dda95,_0x1efeff);}},_0x6bd12c=await _0x55df20['gcjpt'](getEnabledHookContext,_0x9067b3),_0x51950c=_0x6bd12c?.[_0x211c34(0x103)]??null;let _0x173ecb=!![];if(!_0x51950c){await _0x55df20[_0x211c34(0x116)](trackStop,_0x51950c,![],_0x173ecb);return;}try{const _0x3b1f74=_0x55df20['IqDNx'](getSessionEntry,_0x51950c);if(!_0x3b1f74){await _0x55df20[_0x211c34(0x116)](trackStop,_0x51950c,!![],_0x173ecb);return;}const _0x156972=await _0x55df20[_0x211c34(0x115)](getToken),_0x4ad65c='https://dashboard.ranger.net/features/'+_0x3b1f74['featureId'];let _0x513dab=null,_0x439324=![],_0x5ac88d=![];if(_0x156972)try{const _0x39f2af=await _0x55df20[_0x211c34(0x10f)](getFeature,_0x3b1f74['featureId']);_0x513dab=_0x39f2af[_0x211c34(0x104)]??null;const _0xc72343=_0x39f2af[_0x211c34(0x105)]['filter'](_0x4b3ace=>_0x4b3ace[_0x211c34(0x103)]===_0x513dab);_0x439324=_0xc72343['some'](_0x1b5db0=>_0x1b5db0[_0x211c34(0x117)]!==_0x211c34(0x10d)&&_0x1b5db0[_0x211c34(0x117)]!==_0x211c34(0x118)&&_0x1b5db0[_0x211c34(0x117)]!=='closed'&&_0x1b5db0[_0x211c34(0x117)]!==_0x211c34(0x110)),_0x5ac88d=_0xc72343['some'](_0x2ada5b=>_0x2ada5b['status']==='verification_in_progress');}catch{}if(_0x156972&&_0x513dab&&_0x439324){if(!_0x5ac88d&&shouldShowStopReminder(_0x51950c)){const _0x352ce1={'hookSpecificOutput':{'hookEventName':_0x55df20['dFTQj'],'additionalContext':_0x211c34(0x114)+_0x4ad65c}};console['log'](JSON['stringify'](_0x352ce1));}}if(_0x156972&&_0x513dab&&!_0x439324)try{await _0x55df20['EOWPe'](concludeSession,_0x3b1f74['featureId'],_0x513dab);}catch{}await _0x55df20['XIAhP'](trackStop,_0x51950c,!![],_0x173ecb);return;}catch{await trackStop(_0x51950c,!![],_0x173ecb);return;}}function _0x1089(_0x58a8d1,_0x3ba7b2){_0x58a8d1=_0x58a8d1-0x100;const _0x1b89b2=_0x1b89();let _0x10898e=_0x1b89b2[_0x58a8d1];return _0x10898e;}async function trackStop(_0x39b9a9,_0x903c74,_0x152414){const _0x3708c5=_0x1089,_0x1b774e={'ninIi':_0x3708c5(0x112)};try{const _0x53e43b=createTelemetryCollector(_0x1b774e['ninIi']);await _0x53e43b[_0x3708c5(0x10e)]({'sessionId':_0x39b9a9??undefined,'hooksEnabled':_0x903c74,'stopAllowed':_0x152414}),await _0x53e43b[_0x3708c5(0x10a)](_0x3708c5(0x113));}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a32c2,_0xc0073b){var _0x51e3c1=_0x14e4,_0x134582=_0x3a32c2();while(!![]){try{var _0x266bbb=parseInt(_0x51e3c1(0x1a0))/0x1*(parseInt(_0x51e3c1(0x1a7))/0x2)+-parseInt(_0x51e3c1(0x19f))/0x3*(-parseInt(_0x51e3c1(0x1a8))/0x4)+parseInt(_0x51e3c1(0x1a6))/0x5+-parseInt(_0x51e3c1(0x1a3))/0x6*(parseInt(_0x51e3c1(0x1a1))/0x7)+parseInt(_0x51e3c1(0x1a2))/0x8+-parseInt(_0x51e3c1(0x1a4))/0x9+-parseInt(_0x51e3c1(0x1a5))/0xa*(parseInt(_0x51e3c1(0x19e))/0xb);if(_0x266bbb===_0xc0073b)break;else _0x134582['push'](_0x134582['shift']());}catch(_0x391ac7){_0x134582['push'](_0x134582['shift']());}}}(_0x2487,0x8bdb8));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';function _0x2487(){var _0xd65406=['89276VbxzMX','4912490nUEsAm','147OIsjtm','4yWWkhH','63IbsYui','8046128ncgnZl','358614OweOyi','8712630kUwvpk','30wtmVLH','4912840ecQmkX','168326cxSBsk'];_0x2487=function(){return _0xd65406;};return _0x2487();}function _0x14e4(_0x1b1295,_0x3a94ed){_0x1b1295=_0x1b1295-0x19e;var _0x248757=_0x2487();var _0x14e4e4=_0x248757[_0x1b1295];return _0x14e4e4;}export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
|