@ranger-testing/ranger-cli 3.1.5 → 3.1.6-alpha.4287155-52
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 _0x4901ae=_0x11d4;(function(_0x423417,_0x3f71fc){const _0x52310e=_0x11d4,_0x2c9f64=_0x423417();while(!![]){try{const _0x5b73df=-parseInt(_0x52310e(0xfc))/0x1*(parseInt(_0x52310e(0x145))/0x2)+-parseInt(_0x52310e(0xc0))/0x3*(-parseInt(_0x52310e(0x176))/0x4)+-parseInt(_0x52310e(0xfe))/0x5+parseInt(_0x52310e(0xf9))/0x6*(-parseInt(_0x52310e(0xe2))/0x7)+parseInt(_0x52310e(0xeb))/0x8*(parseInt(_0x52310e(0x153))/0x9)+parseInt(_0x52310e(0xba))/0xa*(parseInt(_0x52310e(0x15f))/0xb)+-parseInt(_0x52310e(0xe6))/0xc*(-parseInt(_0x52310e(0xdb))/0xd);if(_0x5b73df===_0x3f71fc)break;else _0x2c9f64['push'](_0x2c9f64['shift']());}catch(_0x5256ad){_0x2c9f64['push'](_0x2c9f64['shift']());}}}(_0x5e02,0x84d56));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x23c83d from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';function _0x5e02(){const _0x54f188=['version','filter','in_progress','gltHU','No\x20active\x20session\x20for\x20this\x20feature\x20review.','xojjC','pwYox','\x1b[0m','toFixed','\x20\x20\x20\x20\x20ID:\x20','AgnnO','dashboardUrl','limit','BBxhQ','\x20\x20\x20ID:\x20','\x0aAvailable\x20scenarios:','\x20\x20\x20','Please\x20finish\x20your\x20review\x20first:','\x20scenarios.','\x20\x20Expected\x20flow:','includeDeleted','ZYvEc','\x20Session\x20','any','map','sgnll','pendingItems','Scenario\x20','MrKYb','location','\x0a✅\x20Report\x20generated:\x20','push','\x20\x20\x20Created:\x20','kdJFW','\x20\x20\x20Description:\x20','toLocaleDateString','storage','/api/v1/mcp/browser-sessions/','\x20>\x20','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','pipe','RjdHR','wOpoF','totalCount','gitRepoUrl','neSCg','ctpLk','QXMRX','emMYM','WvQtR','OsCYj','incompleteReason','\x20in\x20progress','\x20concluded.','XCJNe','\x1b[1m','ILCaN','GfVWG','MPmnO','unaddressedComments','EZpob','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','verification_in_progress','stats','domRef','isTTY','\x20\x20\x20▶️\x20Started\x20session\x20','FxcfM','32yopUHN','VinMJ','exit','yYzUa','xLPRb','Bclno','incomplete','PsEgJ','round','fKeUr','canceledReason','GWItq',':\x20\x22','assetUrl','9POLTok','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','selector','textContent','ZQXdo','incompleteItems','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20blocked','log','/artifacts/','iDLpn','.md','9193492fMXMXz','HSHAc','arrayBuffer','write','canonicalFlow','ikpWV','scenarios','createdAt','stringify','ZlOhd','latestReview','\x20\x20\x20Completed:\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','screenshot','xCPZb','completed','excludeScenarios','status','split','tFnIO','jvkff','ElQbc','wQRQd','5756UwUjYj','trim','aTPCj','feedback-images','XylBz','ready','MnvWU','\x20at\x20[','WrBly','timing','submittedAt','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','length','DrAvF','spatial','CLAUDE_SESSION_ID','completedAt','authorName','blockedItems','PCCdL','notes','RANGER_TEST_USERNAME','wcLBJ','gitBranch','github.com/','\x20scenario(s).','EALvP','blockedReason','ISNLh','sessionId','10kisTYi','Tdibg','rjBec','verified','AVtLJ','error','225cFLtPz','verificationInProgressItems','env','assetType','\x0aCreating\x20feature\x20review...','active-feature.txt','short','...','\x0a✅\x20Session\x20is\x20already\x20completed.','replace','approved','\x20/\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','prompt','toLocaleString','\x20(v','Step\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','join','currentBranch','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','closed','Lzord','browserSessionId','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','dzkNo','Ubgem','3159338PCYFIU','WtBsW','ahwVJ','terminalReason','pSFMj','\x0a\x20\x20\x20Scenarios:','checklistItems','18151sKgLsQ','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','reports','\x0a✅\x20Restored\x20feature\x20review:\x20','48FmUzHR','clFco','name','srDPG','assets','1957800KJkWJg','nKDHa','.\x20Feature\x20review\x20has\x20','KDHVw','has','repeat','\x0a✅\x20Feature\x20review\x20created:\x20','\x20—\x20no\x20comments','description','No\x20scenarios\x20found.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','scenario','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','items','1356FiIYzg','):\x20\x22','emjpk','44936KSNPCV','stdout','1557230KBjBVA','pop','find'];_0x5e02=function(){return _0x54f188;};return _0x5e02();}import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x4901ae(0xc5),bold=_0x730cb0=>_0x4901ae(0x138)+_0x730cb0+_0x4901ae(0x108);function getGitRepoUrl(){const _0x179023=_0x4901ae,_0x5893c0={'AVtLJ':_0x179023(0x129)};try{const _0x18bb7c=execSync('git\x20remote\x20get-url\x20origin',{'encoding':'utf-8','stdio':[_0x5893c0['AVtLJ'],_0x5893c0['AVtLJ'],_0x5893c0[_0x179023(0xbe)]]})[_0x179023(0x177)]();return _0x18bb7c[_0x179023(0xc9)](/\.git$/,'')[_0x179023(0xc9)](/^git@github\.com:/,_0x179023(0xb4))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x2ecd27=_0x4901ae,_0x133554={'FxcfM':function(_0x1bb690,_0x3231b4,_0x3cd96f){return _0x1bb690(_0x3231b4,_0x3cd96f);},'aTPCj':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','emMYM':_0x2ecd27(0x129)};try{return _0x133554[_0x2ecd27(0x144)](execSync,_0x133554[_0x2ecd27(0x178)],{'encoding':'utf-8','stdio':[_0x133554[_0x2ecd27(0x131)],_0x133554['emMYM'],'pipe']})[_0x2ecd27(0x177)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x496ea5=_0x4901ae,_0x1fc231={'PsEgJ':function(_0x50179e,_0x130ed7){return _0x50179e(_0x130ed7);},'bwzXe':function(_0x1d97e6,_0x3f16b0,_0x4a1a73){return _0x1d97e6(_0x3f16b0,_0x4a1a73);}},_0x3a5b44=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x1fc231[_0x496ea5(0x14c)](existsSync,_0x3a5b44))return null;try{const _0x4f3ac4=await _0x1fc231['bwzXe'](readFile,_0x3a5b44,'utf-8');return _0x4f3ac4[_0x496ea5(0x177)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x2edf34){const _0x3a3ce9=_0x4901ae,_0x13aeb5={'MPmnO':function(_0x504afd,_0x452cc9,_0x2c8a1c){return _0x504afd(_0x452cc9,_0x2c8a1c);},'RZIrH':'utf-8'},_0x5196cc=getRangerDir(),_0x3e512e=_0x13aeb5[_0x3a3ce9(0x13b)](join,_0x5196cc,ACTIVE_FEATURE_FILE);!existsSync(_0x5196cc)&&await mkdir(_0x5196cc,{'recursive':!![]}),await writeFile(_0x3e512e,_0x2edf34,_0x13aeb5['RZIrH']);}function getProgressDisplay(_0xf8e34b){const _0x27e402=_0x4901ae,_0x2065d5={'WazEm':function(_0x395d02,_0x3f7811){return _0x395d02-_0x3f7811;},'EALvP':function(_0x14e10c,_0x599b49){return _0x14e10c>_0x599b49;},'rjBec':function(_0x4840a9,_0x1db7cb){return _0x4840a9>_0x1db7cb;},'ahwVJ':function(_0x490010,_0x2bbe85){return _0x490010>_0x2bbe85;}},_0x3d8e49=_0xf8e34b['verifiedItems']||0x0,_0x423564=_0xf8e34b[_0x27e402(0xc1)]||0x0,_0x2ec7bb=_0xf8e34b[_0x27e402(0xae)]||0x0,_0x318e62=_0xf8e34b[_0x27e402(0x158)]||0x0,_0xf87932=_0xf8e34b[_0x27e402(0x11b)]||0x0,_0x36fc93=_0x3d8e49+_0x423564+_0x2ec7bb+_0x318e62+_0xf87932;if(_0x36fc93===0x0)return'-';const _0x17cbfe=0xa,_0x2f5073=Math[_0x27e402(0x14d)](_0x3d8e49/_0x36fc93*_0x17cbfe),_0x908b3='█'[_0x27e402(0xf0)](_0x2f5073)+'░'['repeat'](_0x2065d5['WazEm'](_0x17cbfe,_0x2f5073)),_0x6484cd=[];if(_0x2065d5[_0x27e402(0xb6)](_0x2ec7bb,0x0))_0x6484cd['push'](_0x2ec7bb+_0x27e402(0x15a));if(_0x2065d5[_0x27e402(0xbc)](_0x318e62,0x0))_0x6484cd[_0x27e402(0x120)](_0x318e62+'\x20incomplete');if(_0x423564>0x0)_0x6484cd['push'](_0x423564+_0x27e402(0x135));const _0x404663=_0x2065d5[_0x27e402(0xdd)](_0x6484cd[_0x27e402(0xa8)],0x0)?'\x20('+_0x6484cd[_0x27e402(0xd2)](',\x20')+')':'';return _0x908b3+'\x20'+_0x3d8e49+'/'+_0x36fc93+'\x20verified'+_0x404663;}function getCurrentSessionItems(_0x44213b,_0x3d099c){const _0x383df2=_0x4901ae;if(!_0x44213b['currentSessionId'])return _0x3d099c['filter'](_0x50afa5=>!_0x50afa5[_0x383df2(0xb9)]);return _0x3d099c[_0x383df2(0x102)](_0x3c9005=>_0x3c9005['sessionId']===_0x44213b['currentSessionId']||!_0x3c9005[_0x383df2(0xb9)]);}function displayFeature(_0x3f0f31,_0x18a7b4){const _0x320220=_0x4901ae,_0x5410da={'QXMRX':function(_0x315141,_0x13ffa6){return _0x315141>_0x13ffa6;},'ztnYF':_0x320220(0xe0),'emjpk':_0x320220(0xd5),'gEXBm':function(_0x594548,_0x10e9b9){return _0x594548===_0x10e9b9;},'AgnnO':_0x320220(0xbd),'wQRQd':function(_0x40face,_0x56dbac){return _0x40face===_0x56dbac;},'pwYox':_0x320220(0x13f),'WtBsW':function(_0x447bd7,_0x11ad35){return _0x447bd7>_0x11ad35;},'HSHAc':function(_0x42b026,_0x2094b5){return _0x42b026!==_0x2094b5;},'MIncW':'blocked','OsCYj':_0x320220(0x14b),'eodWA':_0x320220(0xca)};console[_0x320220(0x15b)]('\x0a'+_0x3f0f31['name']+'\x20('+_0x3f0f31[_0x320220(0x10c)]+')');_0x3f0f31[_0x320220(0x140)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x3f0f31[_0x320220(0x140)]));_0x3f0f31['description']&&console[_0x320220(0x15b)](_0x320220(0x123)+_0x3f0f31['description']);_0x3f0f31['gitRepoUrl']&&console[_0x320220(0x15b)]('\x20\x20\x20Repository:\x20'+_0x3f0f31['gitRepoUrl']);_0x3f0f31[_0x320220(0xb3)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x3f0f31[_0x320220(0xb3)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3f0f31['createdAt'])['toLocaleString']());_0x3f0f31[_0x320220(0xac)]&&console[_0x320220(0x15b)](_0x320220(0x16a)+new Date(_0x3f0f31[_0x320220(0xac)])['toLocaleString']());if(_0x18a7b4&&_0x5410da['QXMRX'](_0x18a7b4[_0x320220(0xa8)],0x0)){console[_0x320220(0x15b)](_0x5410da['ztnYF']);for(let _0x4343b0=0x0;_0x4343b0<_0x18a7b4['length'];_0x4343b0++){const _0x1e3c56=_0x18a7b4[_0x4343b0];let _0x57838f;if(_0x1e3c56[_0x320220(0x170)]===_0x5410da['emjpk']&&_0x5410da['gEXBm'](_0x1e3c56[_0x320220(0xde)],_0x320220(0xca)))_0x57838f='✅';else{if(_0x1e3c56[_0x320220(0x170)]===_0x5410da[_0x320220(0x10b)])_0x57838f='🟢';else{if(_0x5410da['gEXBm'](_0x1e3c56['status'],'incomplete'))_0x57838f='🟠';else{if(_0x1e3c56['status']==='blocked')_0x57838f='🛑';else{if(_0x1e3c56['status']===_0x5410da[_0x320220(0xfb)])_0x57838f='⛔';else _0x5410da['wQRQd'](_0x1e3c56[_0x320220(0x170)],_0x5410da[_0x320220(0x107)])?_0x57838f='⏳':_0x57838f='⬜';}}}}const _0x44ca39=_0x5410da[_0x320220(0x130)](_0x1e3c56['version'],0x1)?'\x20(v'+_0x1e3c56[_0x320220(0x101)]+')':'',_0x48905d=_0x5410da[_0x320220(0xdc)](_0x1e3c56['version'],0x1)&&_0x1e3c56['parentItemId']&&_0x1e3c56[_0x320220(0x170)]!=='closed'&&_0x5410da[_0x320220(0x160)](_0x1e3c56['status'],_0x5410da['AgnnO'])?'\x20[has\x20reviewer\x20feedback]':'';console['log'](_0x320220(0x111)+(_0x4343b0+0x1)+'.\x20'+_0x57838f+'\x20'+_0x1e3c56['description']+_0x44ca39+_0x48905d);_0x1e3c56[_0x320220(0x170)]===_0x5410da['MIncW']&&_0x1e3c56[_0x320220(0xb7)]&&console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x1e3c56[_0x320220(0xb7)]);_0x5410da[_0x320220(0x175)](_0x1e3c56['status'],_0x5410da[_0x320220(0x133)])&&_0x1e3c56['incompleteReason']&&console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x1e3c56[_0x320220(0x134)]);if(_0x5410da['gEXBm'](_0x1e3c56[_0x320220(0x170)],_0x320220(0xd5))&&_0x1e3c56[_0x320220(0xde)]===_0x5410da['eodWA'])console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Approved');else _0x1e3c56['status']===_0x320220(0xd5)&&_0x1e3c56[_0x320220(0x14f)]&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x1e3c56[_0x320220(0x14f)]);}}}export async function featureCreate(_0x168f30,_0x75fb48){const _0x27031f=_0x4901ae,_0x509530={'VinMJ':function(_0x41c5aa){return _0x41c5aa();},'GWItq':function(_0x25dca3,_0x3bed99,_0x2198c0){return _0x25dca3(_0x3bed99,_0x2198c0);}},{envNames:_0x424217}=await getEnvNames();if(_0x424217['length']===0x0&&!process['env'][_0x27031f(0xb1)]){let _0x15ea2c=0x0;try{_0x15ea2c=(await listCloudProfiles())['length'];}catch{_0x15ea2c=0x1;}_0x15ea2c===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x3f4ed8=>bold(_0x3f4ed8)));}const _0x8bbf47=_0x75fb48[_0x27031f(0x165)]?_0x75fb48['scenarios'][_0x27031f(0x119)](_0x43427d=>_0x43427d['trim']()):[],_0x1eae66=_0x509530[_0x27031f(0x146)](getGitRepoUrl),_0x368506=getGitBranch();console[_0x27031f(0x15b)](_0x27031f(0xc4));const _0x394d63=await createFeature({'name':_0x168f30,'description':_0x75fb48[_0x27031f(0xf3)],'checklist':_0x8bbf47,'gitRepoUrl':_0x1eae66,'gitBranch':_0x368506});await setActiveFeatureId(_0x394d63['id']),await tryStartCurrentSession(_0x394d63['id']);const _0x34436c=process[_0x27031f(0xc2)]['CLAUDE_SESSION_ID'];_0x34436c&&_0x509530[_0x27031f(0x150)](registerSession,_0x34436c,_0x394d63['id']),console['log'](_0x27031f(0xf1)+_0x394d63['id']),displayFeature(_0x394d63,_0x394d63[_0x27031f(0xe1)]),console[_0x27031f(0x15b)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x5abf7d){const _0x2aa7b1=_0x4901ae,_0x1ceac8={'TDZNR':function(_0x33f21f){return _0x33f21f();},'wOpoF':function(_0x446b7e,_0x24a9c2){return _0x446b7e(_0x24a9c2);},'dzkNo':function(_0x5a9a66,_0x4c8ead){return _0x5a9a66===_0x4c8ead;},'eSKWK':'\x0aNo\x20feature\x20reviews\x20found.','RjdHR':function(_0x45b21e,_0x52d91f){return _0x45b21e>_0x52d91f;},'EZqhd':function(_0x1a1b82,_0x6fc142){return _0x1a1b82<_0x6fc142;},'pzoHG':function(_0x3c5858,_0x5ad8ca){return _0x3c5858!==_0x5ad8ca;},'XylBz':'\x20--include-deleted'},_0x509312={'limit':_0x5abf7d['limit']??0xa,'offset':_0x5abf7d['offset']??0x0,'includeDeleted':_0x5abf7d[_0x2aa7b1(0x115)]};_0x5abf7d[_0x2aa7b1(0xd3)]&&(_0x509312[_0x2aa7b1(0x12d)]=getGitRepoUrl(),_0x509312[_0x2aa7b1(0xb3)]=_0x1ceac8['TDZNR'](getGitBranch));const _0x41bcf3=await _0x1ceac8[_0x2aa7b1(0x12b)](listFeatures,_0x509312);if(_0x1ceac8[_0x2aa7b1(0xd9)](_0x41bcf3['items'][_0x2aa7b1(0xa8)],0x0)){console['log'](_0x1ceac8['eSKWK']);return;}const _0x8f1cbf=_0x1ceac8[_0x2aa7b1(0x12a)](_0x41bcf3[_0x2aa7b1(0x12c)],_0x41bcf3['items']['length'])?'Showing\x20'+_0x41bcf3['items'][_0x2aa7b1(0xa8)]+'\x20of\x20'+_0x41bcf3[_0x2aa7b1(0x12c)]:_0x41bcf3['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x2aa7b1(0x15b)]('\x0a'+_0x8f1cbf+':\x0a');for(const _0x2747c9 of _0x41bcf3[_0x2aa7b1(0xf8)]){const _0x374c7d='5|1|2|4|3|0'['split']('|');let _0x24e596=0x0;while(!![]){switch(_0x374c7d[_0x24e596++]){case'0':console[_0x2aa7b1(0x15b)]('');continue;case'1':console[_0x2aa7b1(0x15b)](_0x2aa7b1(0x10f)+_0x2747c9['id']);continue;case'2':_0x2747c9['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x1ceac8[_0x2aa7b1(0x12b)](getProgressDisplay,_0x2747c9[_0x2aa7b1(0x140)]));continue;case'3':console['log'](_0x2aa7b1(0x121)+new Date(_0x2747c9[_0x2aa7b1(0x166)])[_0x2aa7b1(0x124)]());continue;case'4':_0x2747c9[_0x2aa7b1(0xb3)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x2747c9[_0x2aa7b1(0xb3)]);continue;case'5':console[_0x2aa7b1(0x15b)](''+_0x2747c9['name']);continue;}break;}}const _0x1ab1ee=_0x509312[_0x2aa7b1(0x10d)]??0xa,_0x599745=(_0x509312['offset']??0x0)+_0x41bcf3['items'][_0x2aa7b1(0xa8)];if(_0x1ceac8['EZqhd'](_0x599745,_0x41bcf3[_0x2aa7b1(0x12c)])){const _0x51de00=_0x1ceac8['pzoHG'](_0x1ab1ee,0xa)?'\x20--limit\x20'+_0x1ab1ee:'',_0x24599d=_0x5abf7d[_0x2aa7b1(0xd3)]?'\x20--current-branch':'',_0xb6bd8f=_0x5abf7d['includeDeleted']?_0x1ceac8[_0x2aa7b1(0x17a)]:'';console['log'](_0x2aa7b1(0xcc)+_0x599745+_0x51de00+_0x24599d+_0xb6bd8f);}}export async function featureShow(_0x3cac1e){const _0xd50a28=_0x4901ae,_0x279703={'lwljK':function(_0x320778){return _0x320778();},'Tdibg':_0xd50a28(0x154),'BkCYC':function(_0x42b90b,_0x1a151d){return _0x42b90b(_0x1a151d);}},_0x21ff7d=_0x3cac1e||await _0x279703['lwljK'](getActiveFeatureId);if(!_0x21ff7d)throw new Error(_0x279703[_0xd50a28(0xbb)]);const _0x139eea=await _0x279703['BkCYC'](getFeature,_0x21ff7d);displayFeature(_0x139eea,_0x139eea['checklistItems']);}function _0x11d4(_0x43403a,_0x11a0f2){_0x43403a=_0x43403a-0xa8;const _0x5e0233=_0x5e02();let _0x11d448=_0x5e0233[_0x43403a];return _0x11d448;}export async function featureResume(_0x100c45){const _0x454e8d=_0x4901ae,_0x292fd5={'Ubgem':function(_0x4d365a,_0x3c6c5e){return _0x4d365a(_0x3c6c5e);},'uuCIH':function(_0x2115ae,_0x37e380,_0x569d79){return _0x2115ae(_0x37e380,_0x569d79);},'ZlOhd':function(_0x3cb722,_0xa03f90,_0x4c52b9){return _0x3cb722(_0xa03f90,_0x4c52b9);},'hRUOu':function(_0x5eb599){return _0x5eb599();},'BzHzt':function(_0xe07c73,_0x3d96c2){return _0xe07c73||_0x3d96c2;},'qsLPu':_0x454e8d(0x118),'jvkff':function(_0x29d5a2,_0x1626ec){return _0x29d5a2===_0x1626ec;},'yXHLM':'selected','clFco':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','EZpob':function(_0x270e90,_0x58541f,_0x5856e1){return _0x270e90(_0x58541f,_0x5856e1);}};if(_0x100c45){const _0x3c830a=await _0x292fd5['Ubgem'](getFeature,_0x100c45);await _0x292fd5[_0x454e8d(0xda)](setActiveFeatureId,_0x3c830a['id']);const _0x25c8c6=getGitBranch();_0x25c8c6&&_0x25c8c6!==_0x3c830a[_0x454e8d(0xb3)]&&(await _0x292fd5['uuCIH'](updateFeature,_0x3c830a['id'],{'gitBranch':_0x25c8c6}),console[_0x454e8d(0x15b)](_0x454e8d(0xd1)+_0x25c8c6));console[_0x454e8d(0x15b)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3c830a[_0x454e8d(0xe8)]+'\x20('+_0x3c830a['id']+')'),await tryStartCurrentSession(_0x3c830a['id']);const _0x1ac6af=process[_0x454e8d(0xc2)][_0x454e8d(0xab)];_0x1ac6af&&_0x292fd5['uuCIH'](registerSession,_0x1ac6af,_0x3c830a['id']);_0x292fd5[_0x454e8d(0x168)](displayFeature,_0x3c830a,_0x3c830a['checklistItems']),await _0x292fd5['Ubgem'](printFeedbackNudge,_0x3c830a['id']);return;}const _0x597826=_0x292fd5['hRUOu'](getGitRepoUrl),_0x2458ca=getGitBranch();if(!_0x597826&&!_0x2458ca)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x454e8d(0x15b)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x292fd5['BzHzt'](_0x597826,'any')+_0x454e8d(0xcb)+(_0x2458ca||_0x292fd5['qsLPu'])+_0x454e8d(0xc7));const _0x4c2e51=await _0x292fd5[_0x454e8d(0xda)](listFeatures,{'gitRepoUrl':_0x597826,'gitBranch':_0x2458ca}),_0x3e18c6=_0x4c2e51['items']['filter'](_0x2aca89=>_0x2aca89['status']?_0x2aca89[_0x454e8d(0x170)]!==_0x454e8d(0xbd):!_0x2aca89['completedAt']);if(_0x292fd5[_0x454e8d(0x173)](_0x3e18c6['length'],0x0)){console[_0x454e8d(0x15b)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x454e8d(0x15b)](_0x454e8d(0xd4));return;}let _0x380f65;if(_0x3e18c6['length']===0x1)_0x380f65=_0x3e18c6[0x0];else{const _0x21b007=process['stdin']['isTTY']&&process['stdout'][_0x454e8d(0x142)];if(!_0x21b007){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0xbc0879 of _0x3e18c6){console['log']('\x20\x20'+_0xbc0879[_0x454e8d(0xe8)]),console['log'](_0x454e8d(0x10a)+_0xbc0879['id']),_0xbc0879['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x292fd5[_0x454e8d(0xda)](getProgressDisplay,_0xbc0879['stats'])),_0xbc0879[_0x454e8d(0xb3)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xbc0879[_0x454e8d(0xb3)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x57982a}=await _0x23c83d[_0x454e8d(0xcd)]([{'type':'list','name':_0x292fd5['yXHLM'],'message':_0x292fd5[_0x454e8d(0xe7)],'choices':_0x3e18c6['map'](_0x155daa=>({'name':_0x155daa[_0x454e8d(0xe8)]+'\x20('+_0x155daa['id']+')','value':_0x155daa['id']}))}]);_0x380f65=_0x3e18c6[_0x454e8d(0x100)](_0xe7a79f=>_0xe7a79f['id']===_0x57982a);}await setActiveFeatureId(_0x380f65['id']);_0x2458ca&&_0x2458ca!==_0x380f65['gitBranch']&&(await updateFeature(_0x380f65['id'],{'gitBranch':_0x2458ca}),console[_0x454e8d(0x15b)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2458ca));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x380f65[_0x454e8d(0xe8)]+'\x20('+_0x380f65['id']+')'),await tryStartCurrentSession(_0x380f65['id']);const _0x4ff5b5=await _0x292fd5['Ubgem'](getFeature,_0x380f65['id']),_0x248577=process['env'][_0x454e8d(0xab)];_0x248577&&_0x292fd5[_0x454e8d(0x13d)](registerSession,_0x248577,_0x4ff5b5['id']),displayFeature(_0x4ff5b5,_0x4ff5b5['checklistItems']),await _0x292fd5['Ubgem'](printFeedbackNudge,_0x4ff5b5['id']);}async function printFeedbackNudge(_0x5d4674){const _0x335ba5=_0x4901ae,_0xf8e3a2={'ISNLh':function(_0xc938d3,_0x13e6c5){return _0xc938d3(_0x13e6c5);},'nKDHa':function(_0x134cd7,_0x500cb3,_0x3a2c28){return _0x134cd7(_0x500cb3,_0x3a2c28);},'jfoTX':function(_0x4a54c0,_0x3a99a8){return _0x4a54c0>_0x3a99a8;}};try{const {items:_0x3280d4}=await _0xf8e3a2[_0x335ba5(0xb8)](getActionItems,_0x5d4674);let _0x2fbe8c=0x0,_0x5c6e76=0x0;for(const _0x4132d7 of _0x3280d4){const _0x2f4e7f=await _0xf8e3a2[_0x335ba5(0xec)](getItemFeedback,_0x5d4674,_0x4132d7['id']);_0x2f4e7f[_0x335ba5(0x13c)][_0x335ba5(0xa8)]>0x0&&(_0x2fbe8c+=_0x2f4e7f['unaddressedComments'][_0x335ba5(0xa8)],_0x5c6e76++);}_0xf8e3a2['jfoTX'](_0x2fbe8c,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x2fbe8c+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x5c6e76+_0x335ba5(0xb5)),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x2a9f59){const _0x12a8cf=_0x4901ae;try{const {sessions:_0x5e7b0a}=await listFeatureSessions(_0x2a9f59),_0x2b20b8=_0x5e7b0a['find'](_0x5caade=>_0x5caade['status']===_0x12a8cf(0x17b));_0x2b20b8&&(await startSession(_0x2a9f59,_0x2b20b8['id']),console['log'](_0x12a8cf(0x143)+_0x2b20b8['iteration']));}catch{}}export async function featureReport(_0x44bb25,_0x4a197f){const _0x1133c7=_0x4901ae,_0x37bc8a={'MrKYb':'\x0aGenerating\x20report...','nsXeE':function(_0x5341da,_0x303160,_0x2a9527){return _0x5341da(_0x303160,_0x2a9527);},'DrAvF':function(_0x4b04bf,_0x2ede3d,_0x37be3f,_0xd1254){return _0x4b04bf(_0x2ede3d,_0x37be3f,_0xd1254);},'YqTlS':_0x1133c7(0xe4),'xCPZb':function(_0x59c3e2,_0x12c28e){return _0x59c3e2(_0x12c28e);},'Lzord':'utf-8'},_0x32cfe1=_0x44bb25||await getActiveFeatureId();if(!_0x32cfe1)throw new Error(_0x1133c7(0xf5));console['log'](_0x37bc8a[_0x1133c7(0x11d)]);const _0x3c0dd1=await _0x37bc8a['nsXeE'](getFeatureReportMarkdown,_0x32cfe1,{'style':_0x4a197f['style']}),_0x3846f5=_0x4a197f['output']||_0x37bc8a['DrAvF'](join,getRangerDir(),_0x37bc8a['YqTlS'],_0x32cfe1+_0x1133c7(0x15e)),_0x9d852f=_0x37bc8a['nsXeE'](join,_0x3846f5,'..');!_0x37bc8a[_0x1133c7(0x16d)](existsSync,_0x9d852f)&&await _0x37bc8a['nsXeE'](mkdir,_0x9d852f,{'recursive':!![]}),await _0x37bc8a[_0x1133c7(0xa9)](writeFile,_0x3846f5,_0x3c0dd1,_0x37bc8a[_0x1133c7(0xd6)]),console['log'](_0x1133c7(0x11f)+_0x3846f5);}function getScenarioResult(_0x16a5fe){const _0x31e4df=_0x4901ae,_0x36f7ed={'UNNOW':function(_0x5e58f3,_0x22ba96){return _0x5e58f3===_0x22ba96;},'gkdWl':_0x31e4df(0x13f)};if(_0x36f7ed['UNNOW'](_0x16a5fe[_0x31e4df(0x170)],_0x31e4df(0xd5)))return _0x16a5fe['terminalReason']??'closed';if(_0x16a5fe[_0x31e4df(0x170)]===_0x36f7ed['gkdWl'])return'in_progress';return _0x16a5fe['status'];}function getScenarioRationale(_0x4b3ec0,_0x2a6015){const _0x25850c=_0x4901ae;if(_0x2a6015)return _0x2a6015;if(_0x4b3ec0['blockedReason'])return _0x4b3ec0[_0x25850c(0xb7)];if(_0x4b3ec0[_0x25850c(0x134)])return _0x4b3ec0['incompleteReason'];if(_0x4b3ec0['canceledReason'])return _0x4b3ec0['canceledReason'];if(_0x4b3ec0['notes'])return _0x4b3ec0[_0x25850c(0xb0)];return null;}export async function featureReportPrDescription(_0x408557,_0xee1db2){const _0x38b44f=_0x4901ae,_0x59b065={'CekOn':function(_0x54c8c9){return _0x54c8c9();},'MTCEH':function(_0x2a5fce,_0x46f1d9,_0x30dfe5){return _0x2a5fce(_0x46f1d9,_0x30dfe5);},'PnKrp':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','tFnIO':function(_0x588057,_0x525842){return _0x588057>_0x525842;},'xojjC':function(_0x4a186e,_0x3615b5){return _0x4a186e+_0x3615b5;},'iDLpn':function(_0x30c36b,_0x576f30){return _0x30c36b===_0x576f30;},'PCCdL':_0x38b44f(0x159),'CPKvw':function(_0xe736f9,_0x3e5d66,_0x49fe81,_0x50ac3f){return _0xe736f9(_0x3e5d66,_0x49fe81,_0x50ac3f);}},_0x3001ee=_0x408557||await _0x59b065['CekOn'](getActiveFeatureId);if(!_0x3001ee)throw new Error(_0x38b44f(0xf5));const _0x37cc43=await getFeature(_0x3001ee),_0x55caf2=_0x37cc43['checklistItems']||[],_0x1661de=_0x59b065['MTCEH'](getCurrentSessionItems,_0x37cc43,_0x55caf2);_0x1661de[_0x38b44f(0xa8)]===0x0&&(console[_0x38b44f(0xbf)](_0x59b065['PnKrp']),process['exit'](0x1));const _0x559910=_0xee1db2[_0x38b44f(0x16f)]??[],_0x29421f=_0x559910[_0x38b44f(0x102)](_0x264c5d=>!Number['isInteger'](_0x264c5d)||_0x264c5d<0x1||_0x264c5d>_0x1661de['length']);if(_0x59b065[_0x38b44f(0x172)](_0x29421f['length'],0x0)){console[_0x38b44f(0xbf)](_0x38b44f(0x128)+_0x29421f['join'](',\x20')),console[_0x38b44f(0x15b)]('\x0aAvailable\x20scenarios:');for(let _0x5380c8=0x0;_0x5380c8<_0x1661de[_0x38b44f(0xa8)];_0x5380c8++){console['log']('\x20\x20'+_0x59b065[_0x38b44f(0x106)](_0x5380c8,0x1)+'.\x20'+_0x1661de[_0x5380c8][_0x38b44f(0xf3)]);}process['exit'](0x1);}const _0x5a5e78=new Set(_0x559910[_0x38b44f(0x119)](_0x22cc96=>_0x22cc96-0x1)),_0x5655e8=_0x1661de[_0x38b44f(0x102)]((_0x3e876d,_0x161d7a)=>!_0x5a5e78[_0x38b44f(0xef)](_0x161d7a));_0x59b065[_0x38b44f(0x15d)](_0x5655e8[_0x38b44f(0xa8)],0x0)&&(console[_0x38b44f(0xbf)](_0x59b065[_0x38b44f(0xaf)]),process['exit'](0x1));if(_0xee1db2['json'])await _0x59b065['CPKvw'](outputJsonReport,_0x3001ee,_0x37cc43,_0x5655e8);else{const _0x236672=await getFeatureReportMarkdown(_0x3001ee,{'itemIds':_0x5655e8['map'](_0x4f25d1=>_0x4f25d1['id'])});process[_0x38b44f(0xfd)][_0x38b44f(0x162)](_0x236672['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x5bf704,_0x51677c,_0x59a80d){const _0x56a380=_0x4901ae,_0x3e7e1b={'kdJFW':function(_0x7725be,_0x5f1321){return _0x7725be(_0x5f1321);},'srDPG':function(_0x507942,_0x2ec73e){return _0x507942>_0x2ec73e;},'ZYvEc':function(_0x23d493,_0xea3530,_0x39dfba){return _0x23d493(_0xea3530,_0x39dfba);},'lWokK':function(_0x108fbe,_0x21e6da){return _0x108fbe+_0x21e6da;}},_0x536b22=getApiBaseUrl(),_0x649504=await getFeatureReport(_0x5bf704),_0x101f75=new Map(_0x649504[_0x56a380(0xe1)]['map'](_0x296c8c=>[_0x296c8c['id'],_0x296c8c])),_0x1f38a9=await Promise['all'](_0x59a80d['map'](async _0x3cf74c=>{const _0x384f17=_0x56a380,_0x488e25=_0x101f75['get'](_0x3cf74c['id']),_0x4397cf=_0x488e25?.['linkedSession']??null;let _0x48d908=[];if(_0x3cf74c['browserSessionId'])try{const {steps:_0x198244}=await _0x3e7e1b[_0x384f17(0x122)](getBrowserSessionSteps,_0x3cf74c[_0x384f17(0xd7)]);_0x3e7e1b[_0x384f17(0xe9)](_0x198244['length'],0x0)&&(_0x48d908=_0x198244['map'](_0x298cef=>{const _0x45492b=_0x384f17,_0x3a104d=_0x298cef['assets']['find'](_0x3c4faf=>_0x3c4faf[_0x45492b(0xc3)]===_0x45492b(0x16c)&&_0x3c4faf[_0x45492b(0x17f)]==='after')??_0x298cef[_0x45492b(0xea)][_0x45492b(0x100)](_0x44f636=>_0x44f636['assetType']==='screenshot');let _0x48209a=null,_0x556a20=null;if(_0x3a104d){const _0x35bb5d=_0x3a104d[_0x45492b(0x125)][_0x45492b(0x11e)][_0x45492b(0x171)]('/')[_0x45492b(0xff)]();_0x48209a=_0x536b22+_0x45492b(0x126)+_0x3cf74c['browserSessionId']+_0x45492b(0x15c)+_0x35bb5d,_0x35bb5d&&(_0x556a20=_0x35bb5d['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x45492b(0xc9)](/[-_]/g,'\x20'));}return{'description':_0x556a20||_0x298cef['description']||_0x298cef['stepName']||_0x45492b(0xd0)+_0x298cef['position'],'screenshot':_0x48209a,'is_key_step':_0x298cef['isKeyStep']};}));}catch{}return _0x48d908['length']===0x0&&_0x4397cf?.['screenshotUrls']&&(_0x48d908=_0x4397cf['screenshotUrls']['map']((_0x37f015,_0x3d5163)=>({'description':'Screenshot\x20'+(_0x3d5163+0x1),'screenshot':_0x37f015,'is_key_step':![]}))),{'description':_0x3cf74c[_0x384f17(0xf3)],'result':getScenarioResult(_0x3cf74c),'rationale':_0x3e7e1b[_0x384f17(0x116)](getScenarioRationale,_0x3cf74c,_0x4397cf?.['agentResponse']),'steps':_0x48d908};})),_0x5d825f={'url':_0x51677c[_0x56a380(0x10c)],'scenarios':_0x1f38a9};process[_0x56a380(0xfd)]['write'](_0x3e7e1b['lWokK'](JSON[_0x56a380(0x167)](_0x5d825f,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x267e44){const _0x5e600c=_0x4901ae,_0x15dfa5={'kSREg':function(_0x4506b7){return _0x4506b7();},'mdMAb':_0x5e600c(0x154),'BATyT':_0x5e600c(0x105),'GfVWG':function(_0x57d6af,_0x537fce){return _0x57d6af===_0x537fce;},'asSUU':_0x5e600c(0x16e),'TpHOk':'in_progress','sgnll':'\x0aConcluding\x20session...'},_0xce9bc8=_0x267e44||await _0x15dfa5['kSREg'](getActiveFeatureId);if(!_0xce9bc8)throw new Error(_0x15dfa5['mdMAb']);const _0x5c4d95=await getFeature(_0xce9bc8);if(!_0x5c4d95['currentSessionId'])throw new Error(_0x15dfa5['BATyT']);const {sessions:_0x3c5be7}=await listFeatureSessions(_0xce9bc8),_0x31990a=_0x3c5be7['find'](_0x443644=>_0x443644['id']===_0x5c4d95['currentSessionId']);if(!_0x31990a)throw new Error('Current\x20session\x20not\x20found.');if(_0x15dfa5[_0x5e600c(0x13a)](_0x31990a[_0x5e600c(0x170)],_0x15dfa5['asSUU'])){console[_0x5e600c(0x15b)](_0x5e600c(0xc8));return;}if(_0x31990a['status']!==_0x15dfa5['TpHOk'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x31990a['status']);console[_0x5e600c(0x15b)](_0x15dfa5[_0x5e600c(0x11a)]),await concludeSession(_0xce9bc8,_0x5c4d95['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x31990a['iteration']+_0x5e600c(0x136)),console['log'](_0x5e600c(0xf7));}export async function featureSessions(_0x172bb1){const _0x3ff000=_0x4901ae,_0x245e16={'nEBFV':function(_0x58574f){return _0x58574f();},'xLPRb':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','BBxhQ':function(_0xb39192,_0x3daf8a){return _0xb39192===_0x3daf8a;},'SZFuZ':'No\x20sessions\x20found.','MnvWU':_0x3ff000(0x103)},_0x22c392=_0x172bb1||await _0x245e16['nEBFV'](getActiveFeatureId);if(!_0x22c392)throw new Error(_0x245e16[_0x3ff000(0x149)]);const _0x3066f1=await getFeature(_0x22c392);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3066f1['name']+'\x0a');const {sessions:_0x32d808}=await listFeatureSessions(_0x22c392);if(_0x245e16[_0x3ff000(0x10e)](_0x32d808['length'],0x0)){console[_0x3ff000(0x15b)](_0x245e16['SZFuZ']);return;}for(const _0x415475 of _0x32d808){const _0x37ea47=_0x415475['status']===_0x3ff000(0x16e)?'✅':_0x415475[_0x3ff000(0x170)]===_0x245e16[_0x3ff000(0x17c)]?'🔄':'▶️';console[_0x3ff000(0x15b)](_0x37ea47+_0x3ff000(0x117)+_0x415475['iteration']+'\x20('+_0x415475['id']+')'),console[_0x3ff000(0x15b)]('\x20\x20\x20Status:\x20'+_0x415475[_0x3ff000(0x170)]),console['log'](_0x3ff000(0x121)+new Date(_0x415475[_0x3ff000(0x166)])[_0x3ff000(0xce)]()),_0x415475['completedAt']&&console['log'](_0x3ff000(0x16a)+new Date(_0x415475['completedAt'])['toLocaleString']()),console[_0x3ff000(0x15b)]('');}}export async function featureAddScenario(_0x3ee6b7,_0x38c40d){const _0x39b2c1=_0x4901ae,_0x6898b0={'DuxPR':function(_0xbc0ebf){return _0xbc0ebf();},'mUIQX':_0x39b2c1(0x154),'uwAdo':function(_0x4d68fe,_0x9ff727){return _0x4d68fe(_0x9ff727);},'aVFdY':function(_0x8a724f,_0x5198f2,_0x7e48b9){return _0x8a724f(_0x5198f2,_0x7e48b9);}},_0x385ba5=_0x38c40d||await _0x6898b0['DuxPR'](getActiveFeatureId);if(!_0x385ba5)throw new Error(_0x6898b0['mUIQX']);const _0x108aa5=await _0x6898b0['uwAdo'](getFeature,_0x385ba5);if(_0x108aa5['latestReview']&&!_0x108aa5[_0x39b2c1(0x169)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x108aa5['dashboardUrl']);await _0x6898b0['aVFdY'](createChecklistItem,_0x385ba5,_0x3ee6b7);const _0x33447b=await getFeature(_0x385ba5);console['log']('\x0a✅\x20Scenario\x20added'),displayFeature(_0x33447b,_0x33447b['checklistItems']);}export async function featureEditScenario(_0x321657,_0x2bbafa){const _0xb6ae72=_0x4901ae,_0x462bf6={'yYzUa':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ctpLk':function(_0x1a65ea,_0x412e53){return _0x1a65ea(_0x412e53);},'VOhfI':_0xb6ae72(0x112),'zjmmB':function(_0x451bfa,_0x36f247){return _0x451bfa===_0x36f247;},'XCJNe':function(_0x224e70,_0x3e4ead){return _0x224e70===_0x3e4ead;},'gltHU':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','aVBZf':function(_0x51b4e5,_0x3b17d4){return _0x51b4e5-_0x3b17d4;},'ElQbc':function(_0x31197d,_0x5d2e65){return _0x31197d<_0x5d2e65;},'ZQXdo':function(_0x4f9519,_0x35edc8){return _0x4f9519>=_0x35edc8;},'gYviv':_0xb6ae72(0x110)},_0x203d33=_0x2bbafa['id']||await getActiveFeatureId();!_0x203d33&&(console[_0xb6ae72(0xbf)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x462bf6[_0xb6ae72(0x148)]),process['exit'](0x1));const _0xc2ad5c=await _0x462bf6[_0xb6ae72(0x12f)](getFeature,_0x203d33);_0xc2ad5c[_0xb6ae72(0x169)]&&!_0xc2ad5c[_0xb6ae72(0x169)][_0xb6ae72(0x180)]&&(console['error'](_0xb6ae72(0xe3)),console[_0xb6ae72(0xbf)](_0x462bf6['VOhfI']),console[_0xb6ae72(0xbf)]('\x20\x20'+_0xc2ad5c[_0xb6ae72(0x10c)]),process[_0xb6ae72(0x147)](0x1));const _0x370342=_0xc2ad5c['checklistItems']||[];_0x462bf6['zjmmB'](_0x370342[_0xb6ae72(0xa8)],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x462bf6[_0xb6ae72(0x137)](_0x2bbafa[_0xb6ae72(0xf6)],undefined)){console['error'](_0x462bf6[_0xb6ae72(0x104)]),console[_0xb6ae72(0x15b)]('\x0aAvailable\x20scenarios:');for(let _0x498c07=0x0;_0x498c07<_0x370342['length'];_0x498c07++){console['log']('\x20\x20'+(_0x498c07+0x1)+'.\x20'+_0x370342[_0x498c07][_0xb6ae72(0xf3)]);}process['exit'](0x1);}const _0x5054c6=_0x462bf6['aVBZf'](_0x2bbafa[_0xb6ae72(0xf6)],0x1);if(_0x462bf6[_0xb6ae72(0x174)](_0x5054c6,0x0)||_0x462bf6[_0xb6ae72(0x157)](_0x5054c6,_0x370342[_0xb6ae72(0xa8)])){console[_0xb6ae72(0xbf)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x2bbafa['scenario']+_0xb6ae72(0xed)+_0x370342['length']+_0xb6ae72(0x113)),console['log'](_0x462bf6['gYviv']);for(let _0x4488cd=0x0;_0x462bf6[_0xb6ae72(0x174)](_0x4488cd,_0x370342['length']);_0x4488cd++){console[_0xb6ae72(0x15b)]('\x20\x20'+(_0x4488cd+0x1)+'.\x20'+_0x370342[_0x4488cd]['description']);}process[_0xb6ae72(0x147)](0x1);}const _0x12ae03=_0x370342[_0x5054c6];await updateChecklistItem(_0x203d33,_0x12ae03['id'],{'description':_0x321657});const _0x95a476=await getFeature(_0x203d33);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x95a476,_0x95a476['checklistItems']);}async function downloadFeedbackImage(_0x472353,_0x2779ee){const _0x2f16ac=_0x4901ae,_0x5c0c64={'pSFMj':function(_0x3f3a0d,_0x46b922,_0x146431){return _0x3f3a0d(_0x46b922,_0x146431);},'pRuPt':_0x2f16ac(0x179),'vhPMb':function(_0x5e2402,_0x1ea7ab,_0xebd762){return _0x5e2402(_0x1ea7ab,_0xebd762);}};try{const _0x3e6d6b=_0x5c0c64[_0x2f16ac(0xdf)](join,getRangerDir(),_0x5c0c64['pRuPt']);await _0x5c0c64['vhPMb'](mkdir,_0x3e6d6b,{'recursive':!![]});const _0x1a2605=_0x5c0c64[_0x2f16ac(0xdf)](join,_0x3e6d6b,'comment_'+_0x2779ee+'.png'),_0x251bda=await fetch(_0x472353);if(!_0x251bda['ok'])return null;const _0x4bc387=Buffer['from'](await _0x251bda[_0x2f16ac(0x161)]());return await writeFile(_0x1a2605,_0x4bc387),_0x1a2605;}catch{return null;}}export async function featureGetReview(_0x5ce0d5){const _0x32807f=_0x4901ae,_0xd62190={'zwGMO':function(_0x108326){return _0x108326();},'WrBly':function(_0x225558,_0x406bab){return _0x225558(_0x406bab);},'JESjr':function(_0x427d42,_0xf16782){return _0x427d42(_0xf16782);},'QLRdy':_0x32807f(0xf4),'Bclno':function(_0x1354f9,_0x8aaf6b){return _0x1354f9<_0x8aaf6b;},'xaUhz':function(_0x5ebb69,_0x3fee35,_0x196e8a){return _0x5ebb69(_0x3fee35,_0x196e8a);},'neSCg':function(_0xb7d5bc,_0x555261){return _0xb7d5bc+_0x555261;},'WvQtR':_0x32807f(0xc6),'ILCaN':'numeric','zJdPk':'Unknown','fKeUr':function(_0x4d1531,_0x270bc0,_0xf088e5){return _0x4d1531(_0x270bc0,_0xf088e5);},'KDHVw':_0x32807f(0x127),'ikpWV':function(_0x8f6a3a,_0x433b51){return _0x8f6a3a===_0x433b51;},'wcLBJ':function(_0x1bf4c0,_0x4a5d70){return _0x1bf4c0>=_0x4a5d70;}},_0x34be41=_0x5ce0d5||await _0xd62190['zwGMO'](getActiveFeatureId);if(!_0x34be41)throw new Error(_0x32807f(0x154));const _0x43bdd2=await _0xd62190[_0x32807f(0x17e)](getFeature,_0x34be41),{items:_0x59af4b}=await _0xd62190['JESjr'](getActionItems,_0x34be41);console[_0x32807f(0x15b)]('\x0a📋\x20Feedback\x20for:\x20'+_0x43bdd2['name']+'\x20('+_0x43bdd2['id']+')\x0a');if(_0x59af4b['length']===0x0){console['log'](_0xd62190['QLRdy']);return;}for(let _0xf76204=0x0;_0xd62190[_0x32807f(0x14a)](_0xf76204,_0x59af4b['length']);_0xf76204++){const _0x1685af=_0x59af4b[_0xf76204],_0x2d8cfb=_0x1685af[_0x32807f(0x101)]>0x1?_0x32807f(0xcf)+_0x1685af[_0x32807f(0x101)]+')':'',_0x3c696=await _0xd62190['xaUhz'](getItemFeedback,_0x34be41,_0x1685af['id']);if(_0x3c696['unaddressedComments'][_0x32807f(0xa8)]>0x0){console['log'](_0x32807f(0x11c)+_0xd62190[_0x32807f(0x12e)](_0xf76204,0x1)+':\x20\x22'+_0x1685af['description']+'\x22'+_0x2d8cfb+'\x20—\x20'+_0x3c696[_0x32807f(0x13c)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x5c71cc of _0x3c696[_0x32807f(0x13c)]){const _0x3d170f=new Date(_0x5c71cc['createdAt'])[_0x32807f(0x124)]('en-US',{'month':_0xd62190[_0x32807f(0x132)],'day':_0xd62190[_0x32807f(0x139)]}),_0x58c95e=_0x5c71cc[_0x32807f(0xad)]||_0x5c71cc['authorEmail']||_0xd62190['zJdPk'];console[_0x32807f(0x15b)]('\x20\x20💬\x20'+_0x58c95e+'\x20('+_0x3d170f+_0x32807f(0xfa)+_0x5c71cc['content']+'\x22');if(_0x5c71cc[_0x32807f(0x152)]){const _0x4f4899=await _0xd62190[_0x32807f(0x14e)](downloadFeedbackImage,_0x5c71cc[_0x32807f(0x152)],_0x5c71cc['id']);_0x4f4899&&console[_0x32807f(0x15b)](_0x32807f(0x181)+_0x4f4899);}if(_0x5c71cc[_0x32807f(0x141)]){const _0x769d56=_0x5c71cc[_0x32807f(0x141)][_0x32807f(0x155)][_0x32807f(0x171)](_0xd62190[_0x32807f(0xee)])[_0x32807f(0xff)]()?.[_0x32807f(0x171)](':')[0x0]||'element',_0x5002e8=_0x5c71cc['domRef']['textContent']?'\x20\x22'+_0x5c71cc[_0x32807f(0x141)][_0x32807f(0x156)]['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x769d56+'>'+_0x5002e8),console[_0x32807f(0x15b)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x5c71cc[_0x32807f(0x141)]['selector']);}else{if(_0x5c71cc['spatial']){const _0x41bf21=_0x5c71cc[_0x32807f(0xaa)]['coordinates'];_0xd62190[_0x32807f(0x164)](_0x5c71cc['spatial']['type'],'point')&&_0xd62190[_0x32807f(0xb2)](_0x41bf21['length'],0x2)?console[_0x32807f(0x15b)](_0x32807f(0xd8)+_0x41bf21[0x0]['toFixed'](0x2)+',\x20'+_0x41bf21[0x1][_0x32807f(0x109)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x5c71cc['spatial']['type']+_0x32807f(0x17d)+_0x41bf21['map'](_0x556af2=>_0x556af2[_0x32807f(0x109)](0x2))[_0x32807f(0xd2)](',\x20')+']');}}}if(_0x3c696[_0x32807f(0x163)]){console['log'](_0x32807f(0x114));for(const _0x27116e of _0x3c696[_0x32807f(0x163)][_0x32807f(0x171)]('\x0a')){console[_0x32807f(0x15b)]('\x20\x20\x20\x20'+_0x27116e);}}}else console['log']('Scenario\x20'+(_0xf76204+0x1)+_0x32807f(0x151)+_0x1685af[_0x32807f(0xf3)]+'\x22'+_0x2d8cfb+_0x32807f(0xf2)),console[_0x32807f(0x15b)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x32807f(0x15b)]('');}}export async function featureDelete(_0x82bb8f){const _0x30b236=_0x4901ae,_0x4a9853={'cSpjT':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','KzdeF':_0x30b236(0x13e)},_0x538516=_0x82bb8f||await getActiveFeatureId();if(!_0x538516)throw new Error(_0x4a9853['cSpjT']);const _0x2abdf6=await getFeature(_0x538516);await softDeleteFeature(_0x538516),console['log'](_0x30b236(0x16b)+_0x2abdf6[_0x30b236(0xe8)]+'\x20('+_0x538516+')'),console['log'](_0x4a9853['KzdeF']+_0x538516);}export async function featureRestore(_0x476ee1){const _0x2b2f01=_0x4901ae;await restoreFeature(_0x476ee1);const _0x58f7ee=await getFeature(_0x476ee1);console[_0x2b2f01(0x15b)](_0x2b2f01(0xe5)+_0x58f7ee[_0x2b2f01(0xe8)]+'\x20('+_0x476ee1+')'),displayFeature(_0x58f7ee,_0x58f7ee['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x231ea5,_0x55f1ba){const _0x1dcde7=_0xcd9c,_0x3c3c75=_0x231ea5();while(!![]){try{const _0x48eb2b=parseInt(_0x1dcde7(0xbe))/0x1*(parseInt(_0x1dcde7(0xc9))/0x2)+-parseInt(_0x1dcde7(0xc1))/0x3*(-parseInt(_0x1dcde7(0xbd))/0x4)+-parseInt(_0x1dcde7(0xc0))/0x5*(-parseInt(_0x1dcde7(0xba))/0x6)+parseInt(_0x1dcde7(0xb8))/0x7*(parseInt(_0x1dcde7(0xb9))/0x8)+parseInt(_0x1dcde7(0xc3))/0x9*(parseInt(_0x1dcde7(0xbc))/0xa)+parseInt(_0x1dcde7(0xc6))/0xb+-parseInt(_0x1dcde7(0xc4))/0xc*(parseInt(_0x1dcde7(0xbf))/0xd);if(_0x48eb2b===_0x55f1ba)break;else _0x3c3c75['push'](_0x3c3c75['shift']());}catch(_0x2a75d4){_0x3c3c75['push'](_0x3c3c75['shift']());}}}(_0x460c,0x4e033));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function _0x460c(){const _0x25d003=['172675uwhKHN','363177aSKcOM','SIGINT','56601yzDPWD','10670472SrejdR','Unknown\x20hook:\x20','4939869NwIiMy','once','Valid\x20hooks:\x20','69412KhjIvI','error','7CQRxOh','895952MwwNth','48ghlfaF','exit','40McLwxx','8vWilgJ','3XyRThG','13mzXuMM'];_0x460c=function(){return _0x25d003;};return _0x460c();}function _0xcd9c(_0x3a161d,_0x5f8b98){_0x3a161d=_0x3a161d-0xb7;const _0x460cf1=_0x460c();let _0xcd9c88=_0x460cf1[_0x3a161d];return _0xcd9c88;}function installCancellationHandlers(){const _0x21cd16=_0xcd9c;if(cancellationHandlersInstalled)return;const _0x4f1d41=()=>{process['exit'](0x0);};process[_0x21cd16(0xc7)](_0x21cd16(0xc2),_0x4f1d41),process['once']('SIGTERM',_0x4f1d41),process[_0x21cd16(0xc7)]('SIGHUP',_0x4f1d41),cancellationHandlersInstalled=!![];}export async function hook(_0x5997c9,_0x39af45){const _0x5cd1bf=_0xcd9c;installCancellationHandlers();const _0x41b453=HOOKS[_0x5997c9];if(!_0x41b453){const _0x2dc3f7=Object['keys'](HOOKS)['join'](',\x20');console[_0x5cd1bf(0xb7)](_0x5cd1bf(0xc5)+_0x5997c9),console['error'](_0x5cd1bf(0xc8)+_0x2dc3f7),process[_0x5cd1bf(0xbb)](0x1);}await _0x41b453(_0x39af45);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5447(_0x475d4b,_0x231bf4){_0x475d4b=_0x475d4b-0xdf;const _0x1da71e=_0x1da7();let _0x5447e6=_0x1da71e[_0x475d4b];return _0x5447e6;}const _0x35e6c5=_0x5447;(function(_0x482383,_0x150834){const _0x2891f9=_0x5447,_0x2895ae=_0x482383();while(!![]){try{const _0x164a19=-parseInt(_0x2891f9(0xe4))/0x1*(-parseInt(_0x2891f9(0xec))/0x2)+parseInt(_0x2891f9(0xe7))/0x3*(parseInt(_0x2891f9(0xe8))/0x4)+-parseInt(_0x2891f9(0xe3))/0x5*(parseInt(_0x2891f9(0xe9))/0x6)+-parseInt(_0x2891f9(0xe5))/0x7*(-parseInt(_0x2891f9(0xee))/0x8)+parseInt(_0x2891f9(0xe0))/0x9*(-parseInt(_0x2891f9(0xe2))/0xa)+-parseInt(_0x2891f9(0xed))/0xb*(parseInt(_0x2891f9(0xdf))/0xc)+-parseInt(_0x2891f9(0xea))/0xd*(-parseInt(_0x2891f9(0xeb))/0xe);if(_0x164a19===_0x150834)break;else _0x2895ae['push'](_0x2895ae['shift']());}catch(_0xad07aa){_0x2895ae['push'](_0x2895ae['shift']());}}}(_0x1da7,0x869be));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x35e6c5(0xe1);function _0x1da7(){const _0x3d291a=['2636293Xylvvg','40Saizph','36twKakA','90xOyMQr','\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.','1028170JgGasw','518845XZmUAK','118TVZgKc','774893EkBSbJ','session_id','147171dFraYx','16LYuBLn','48jsEDfH','2939690ehakbP','140uhRqUW','1994sblKqd'];_0x1da7=function(){return _0x3d291a;};return _0x1da7();}export async function autoPrompt(){const _0x968688=_0x35e6c5,_0x652e85={'mrzdh':function(_0x126fb2){return _0x126fb2();},'bfFDD':function(_0x206ba3,_0x57ead9){return _0x206ba3(_0x57ead9);}};if(resolveHookMode()==='off')return;const _0x1eacf5=await _0x652e85['mrzdh'](readHookInput),_0x1d0712=_0x1eacf5?.[_0x968688(0xe6)];if(!_0x1d0712)return;if(isSessionEnabled(_0x1d0712)||_0x652e85['bfFDD'](hasSessionBeenPrompted,_0x1d0712))return;markSessionPrompted(_0x1d0712),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x54f64a,_0xbb1bbe){const _0xb0936c=_0x3d22,_0x26a93e=_0x54f64a();while(!![]){try{const _0x4786b6=-parseInt(_0xb0936c(0x16a))/0x1+-parseInt(_0xb0936c(0x15c))/0x2+-parseInt(_0xb0936c(0x15b))/0x3*(parseInt(_0xb0936c(0x15d))/0x4)+parseInt(_0xb0936c(0x162))/0x5+-parseInt(_0xb0936c(0x158))/0x6*(-parseInt(_0xb0936c(0x161))/0x7)+-parseInt(_0xb0936c(0x167))/0x8*(parseInt(_0xb0936c(0x169))/0x9)+parseInt(_0xb0936c(0x163))/0xa*(parseInt(_0xb0936c(0x160))/0xb);if(_0x4786b6===_0xbb1bbe)break;else _0x26a93e['push'](_0x26a93e['shift']());}catch(_0xc5dd9b){_0x26a93e['push'](_0x26a93e['shift']());}}}(_0x20b4,0x5e63e));function _0x3d22(_0x1a8bb3,_0x34022b){_0x1a8bb3=_0x1a8bb3-0x158;const _0x20b4b6=_0x20b4();let _0x3d2253=_0x20b4b6[_0x1a8bb3];return _0x3d2253;}function _0x20b4(){const _0x50f208=['fPnhT','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','ZdYdH','8rjozok','env','5906997xTFrrL','92968knDPHW','330txDKmT','CLAUDE_SESSION_ID','yJYbB','6NrICyp','581868RCbJxU','1297192DQwCpv','rPzfr','master','10797193dHLkqw','76846mneXVU','2450500JjRkAq','10baoNMY'];_0x20b4=function(){return _0x50f208;};return _0x20b4();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x4d8519){const _0x308709=_0x3d22,_0x436433={'rPzfr':function(_0x20984e,_0x50c8c1){return _0x20984e(_0x50c8c1);},'fPnhT':function(_0x388689,_0x55f10b){return _0x388689!==_0x55f10b;},'ZdYdH':function(_0x1b5216,_0xd5cb4f){return _0x1b5216(_0xd5cb4f);},'NJLmx':function(_0x31915a,_0x5f5760){return _0x31915a!==_0x5f5760;},'yJYbB':function(_0x4a509a,_0x7ee68f){return _0x4a509a!==_0x7ee68f;}},_0x188e6b=_0x4d8519||process[_0x308709(0x168)][_0x308709(0x159)]||'';_0x188e6b&&_0x436433[_0x308709(0x15e)](disableSession,_0x188e6b);const _0xc43736=getCurrentBranch();_0xc43736&&_0xc43736!=='main'&&_0x436433[_0x308709(0x164)](_0xc43736,'master')&&disableBranch(_0xc43736),_0x436433[_0x308709(0x166)](printBlock,_0x308709(0x165)+(_0xc43736&&_0x436433['NJLmx'](_0xc43736,'main')&&_0x436433[_0x308709(0x15a)](_0xc43736,_0x308709(0x15f))?'\x20and\x20branch\x20\x27'+_0xc43736+'\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(_0x35129f,_0x46439d){const _0x313bcb=_0x833b,_0x718acc=_0x35129f();while(!![]){try{const _0x456fbf=-parseInt(_0x313bcb(0xfa))/0x1*(-parseInt(_0x313bcb(0x10d))/0x2)+-parseInt(_0x313bcb(0x110))/0x3*(-parseInt(_0x313bcb(0xfd))/0x4)+parseInt(_0x313bcb(0x106))/0x5*(-parseInt(_0x313bcb(0x10c))/0x6)+-parseInt(_0x313bcb(0x102))/0x7*(parseInt(_0x313bcb(0xfe))/0x8)+parseInt(_0x313bcb(0x100))/0x9+parseInt(_0x313bcb(0xf9))/0xa*(parseInt(_0x313bcb(0x10b))/0xb)+parseInt(_0x313bcb(0x108))/0xc;if(_0x456fbf===_0x46439d)break;else _0x718acc['push'](_0x718acc['shift']());}catch(_0x6b9bfd){_0x718acc['push'](_0x718acc['shift']());}}}(_0x2b69,0xc0fea));function _0x833b(_0x1f9447,_0x412907){_0x1f9447=_0x1f9447-0xf8;const _0x2b69ac=_0x2b69();let _0x833b65=_0x2b69ac[_0x1f9447];return _0x833b65;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x452b23){const _0x234841=_0x833b,_0x332989={'sIhMt':function(_0x83ccaf,_0x522912){return _0x83ccaf(_0x522912);},'WJHdi':function(_0x7c4d52){return _0x7c4d52();},'wDgfE':function(_0x14f00a,_0x551d74){return _0x14f00a(_0x551d74);},'RXhvf':'main','OBGdK':function(_0x38ccaf,_0x462e37){return _0x38ccaf!==_0x462e37;},'uepLM':'master','EjyeI':function(_0x4584b5,_0x29d447){return _0x4584b5(_0x29d447);}},_0x194462=_0x452b23||process[_0x234841(0x104)]['CLAUDE_SESSION_ID']||'',_0x568049=_0x332989['sIhMt'](Boolean,_0x452b23),_0x85ab31=await getToken();if(!_0x85ab31){const _0x14094c=_0x568049?_0x234841(0x103):_0x234841(0x105),_0x438ae9=_0x568049?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x234841(0x10f);printBlock(_0x234841(0x10e)+_0x14094c+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x438ae9);return;}try{await _0x332989[_0x234841(0xff)](update);}catch{}_0x194462&&_0x332989[_0x234841(0xf8)](enableSession,_0x194462);const _0x37b3e8=getCurrentBranch(),_0x11f6de=_0x37b3e8&&_0x37b3e8!==_0x332989['RXhvf']&&_0x332989[_0x234841(0xfb)](_0x37b3e8,_0x332989[_0x234841(0x107)])?_0x234841(0x10a)+_0x37b3e8+_0x234841(0x109):'',_0x2af709=getRangerSkillContent();_0x332989[_0x234841(0xfc)](printBlock,'#\x20RANGER\x20ENABLED'+_0x11f6de+_0x234841(0x101)+_0x2af709+'\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`.');}function _0x2b69(){const _0x5e390e=['\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','\x0a\x0a**Branch\x20\x27','2634797GclAnD','50178dNlFuT','4796EzvaBF','#\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`','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','3esoQuS','wDgfE','30AifAaO','73mMTzQP','OBGdK','EjyeI','2485412OypGNf','8GasRTD','WJHdi','7561044mNFPIc','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','4383393nlsufU','ranger\x20setup\x20--opencode','env','ranger\x20setup','565cjQvUD','uepLM','79440pSOZub'];_0x2b69=function(){return _0x5e390e;};return _0x2b69();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x482333,_0x18a66a){const _0x3fd1fd=_0xe437,_0x4cce8c=_0x482333();while(!![]){try{const _0x297738=parseInt(_0x3fd1fd(0x86))/0x1*(-parseInt(_0x3fd1fd(0x8b))/0x2)+-parseInt(_0x3fd1fd(0x88))/0x3*(-parseInt(_0x3fd1fd(0x89))/0x4)+-parseInt(_0x3fd1fd(0x83))/0x5*(-parseInt(_0x3fd1fd(0x8d))/0x6)+-parseInt(_0x3fd1fd(0x8c))/0x7+-parseInt(_0x3fd1fd(0x82))/0x8+parseInt(_0x3fd1fd(0x87))/0x9+-parseInt(_0x3fd1fd(0x8a))/0xa;if(_0x297738===_0x18a66a)break;else _0x4cce8c['push'](_0x4cce8c['shift']());}catch(_0x25c3ea){_0x4cce8c['push'](_0x4cce8c['shift']());}}}(_0xaea1,0xefdbe));import{printBlock,getEnabledSessionId}from'./output.js';function _0xe437(_0x10369a,_0x41756e){_0x10369a=_0x10369a-0x82;const _0xaea1b3=_0xaea1();let _0xe43709=_0xaea1b3[_0x10369a];return _0xe43709;}function _0xaea1(){const _0x48b3cc=['1058544jUwUMa','343400eObghN','55cIuOhh','===\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===','UoASt','41941CJmkvx','8211636xkznuO','3uwTcme','4259624MSSXQn','10516120Qlafzd','32AgeRmP','8189433PmaQuI'];_0xaea1=function(){return _0x48b3cc;};return _0xaea1();}export async function exitPlanMode(_0x5993a3){const _0x1548dd=_0xe437,_0x21e71b={'UoASt':function(_0x1fe6c4,_0x2e858d){return _0x1fe6c4(_0x2e858d);}},_0x219833=await getEnabledSessionId(_0x5993a3);if(!_0x219833)return;_0x21e71b[_0x1548dd(0x85)](printBlock,_0x1548dd(0x84));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x376330,_0x2776fc){var _0x31b123=_0x1f23,_0x405de1=_0x376330();while(!![]){try{var _0x269cf4=parseInt(_0x31b123(0x14a))/0x1*(parseInt(_0x31b123(0x14d))/0x2)+parseInt(_0x31b123(0x14b))/0x3*(parseInt(_0x31b123(0x14c))/0x4)+parseInt(_0x31b123(0x143))/0x5*(parseInt(_0x31b123(0x145))/0x6)+parseInt(_0x31b123(0x149))/0x7+-parseInt(_0x31b123(0x144))/0x8+-parseInt(_0x31b123(0x148))/0x9*(parseInt(_0x31b123(0x146))/0xa)+parseInt(_0x31b123(0x147))/0xb;if(_0x269cf4===_0x2776fc)break;else _0x405de1['push'](_0x405de1['shift']());}catch(_0x5e296d){_0x405de1['push'](_0x405de1['shift']());}}}(_0x1803,0xa007e));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';function _0x1f23(_0x5e5ceb,_0x81150f){_0x5e5ceb=_0x5e5ceb-0x143;var _0x180390=_0x1803();var _0x1f238a=_0x180390[_0x5e5ceb];return _0x1f238a;}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';function _0x1803(){var _0x13477e=['1847140vvaMkZ','55006xCYgmc','5765nzpXft','5891472tiVYHy','2454yIXhzK','5233330EmDSTJ','772508CbzBcj','9feSSLX','6189120lzfApl','1JfxjEL','3rSavrm'];_0x1803=function(){return _0x13477e;};return _0x1803();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2eb116,_0x488c98){const _0x39833c=_0xa975,_0x194915=_0x2eb116();while(!![]){try{const _0x56bbf1=parseInt(_0x39833c(0x134))/0x1+-parseInt(_0x39833c(0x138))/0x2+-parseInt(_0x39833c(0x141))/0x3*(parseInt(_0x39833c(0x132))/0x4)+parseInt(_0x39833c(0x139))/0x5*(-parseInt(_0x39833c(0x140))/0x6)+parseInt(_0x39833c(0x13a))/0x7+parseInt(_0x39833c(0x133))/0x8*(parseInt(_0x39833c(0x13d))/0x9)+-parseInt(_0x39833c(0x136))/0xa*(-parseInt(_0x39833c(0x135))/0xb);if(_0x56bbf1===_0x488c98)break;else _0x194915['push'](_0x194915['shift']());}catch(_0x1ad843){_0x194915['push'](_0x194915['shift']());}}}(_0x4b8c,0x9844c));function _0xa975(_0x1231c8,_0x4fd591){_0x1231c8=_0x1231c8-0x132;const _0x4b8cc9=_0x4b8c();let _0xa97575=_0x4b8cc9[_0x1231c8];return _0xa97575;}import{isSessionEnabled}from'../utils/sessionCache.js';function _0x4b8c(){const _0x14a514=['trim','1316492gJaRql','29040ODomgn','7384475FMlQwI','LelSv','session_id','18kXNVsK','HzxLY','log','864ZJzpxg','61689pjHQJi','parse','28wdhmAp','1514280JSkUtt','306422jKrzIf','2872727MHVOCG','20ueungf'];_0x4b8c=function(){return _0x14a514;};return _0x4b8c();}export function printBlock(_0xa871c4){const _0x55cbf6=_0xa975;console[_0x55cbf6(0x13f)](_0xa871c4);}export async function readHookInput(){const _0x264f0d=_0xa975;let _0x3b7174='';try{for await(const _0x3f5fc4 of process['stdin']){_0x3b7174+=_0x3f5fc4;}}catch{return null;}if(!_0x3b7174[_0x264f0d(0x137)]())return null;try{return JSON[_0x264f0d(0x142)](_0x3b7174);}catch{return null;}}export async function getEnabledSessionId(_0x54b4da){const _0x34a791=_0xa975,_0x2c1131={'HzxLY':function(_0x4da793,_0x2bb67c){return _0x4da793(_0x2bb67c);}};if(_0x54b4da)return isSessionEnabled(_0x54b4da)?_0x54b4da:null;const _0x58f886=await readHookInput(),_0x5509f9=_0x58f886?.[_0x34a791(0x13c)];if(!_0x5509f9||!_0x2c1131[_0x34a791(0x13e)](isSessionEnabled,_0x5509f9))return null;return _0x5509f9;}export async function getEnabledHookContext(_0x542278){const _0x21fb83=_0xa975,_0x3212ed={'LelSv':function(_0x1da8a9,_0x40e938){return _0x1da8a9(_0x40e938);}};if(_0x542278){if(!isSessionEnabled(_0x542278))return null;return{'sessionId':_0x542278,'input':{'session_id':_0x542278}};}const _0x1681a2=await readHookInput(),_0xd0fb29=_0x1681a2?.['session_id'];if(!_0xd0fb29||!_0x3212ed[_0x21fb83(0x13b)](isSessionEnabled,_0xd0fb29))return null;return{'sessionId':_0xd0fb29,'input':_0x1681a2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x46e7(_0x46d303,_0x56b7ca){_0x46d303=_0x46d303-0x157;const _0xdeb60c=_0xdeb6();let _0x46e78f=_0xdeb60c[_0x46d303];return _0x46e78f;}(function(_0x3f3812,_0x97e81b){const _0x34fb38=_0x46e7,_0x20931e=_0x3f3812();while(!![]){try{const _0x55d3be=-parseInt(_0x34fb38(0x157))/0x1*(parseInt(_0x34fb38(0x158))/0x2)+parseInt(_0x34fb38(0x15b))/0x3+-parseInt(_0x34fb38(0x15f))/0x4*(-parseInt(_0x34fb38(0x15e))/0x5)+-parseInt(_0x34fb38(0x163))/0x6+parseInt(_0x34fb38(0x15d))/0x7*(-parseInt(_0x34fb38(0x160))/0x8)+parseInt(_0x34fb38(0x161))/0x9+parseInt(_0x34fb38(0x164))/0xa;if(_0x55d3be===_0x97e81b)break;else _0x20931e['push'](_0x20931e['shift']());}catch(_0x1ef4a9){_0x20931e['push'](_0x20931e['shift']());}}}(_0xdeb6,0xb3be4));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x169e56){const _0x566c46=_0x46e7,_0x169964={'mXPKJ':function(_0x4f3fa0,_0x9d84c0){return _0x4f3fa0!==_0x9d84c0;},'OudQW':function(_0x2fbd47,_0x1d47e9){return _0x2fbd47(_0x1d47e9);}},_0x1080a7=await getEnabledHookContext(_0x169e56);if(!_0x1080a7)return;if(_0x169964[_0x566c46(0x162)](_0x1080a7['input']['permission_mode'],'plan'))return;if(!shouldShowPlanReminder(_0x1080a7[_0x566c46(0x15c)]))return;_0x169964[_0x566c46(0x15a)](printBlock,_0x566c46(0x159));}function _0xdeb6(){const _0x21b480=['80780SFEHpy','379895tuVjtG','40yKFQNq','784lcgPyL','6050421CQbmaw','mXPKJ','8712030UDyuZK','21361390tXyjgX','568315geCOWi','2wlJJmt','===\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===','OudQW','957810IKMIHy','sessionId'];_0xdeb6=function(){return _0x21b480;};return _0xdeb6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x47e339,_0x4debed){const _0x25560f=_0x3e5c,_0x4f8bfa=_0x47e339();while(!![]){try{const _0x322958=parseInt(_0x25560f(0x101))/0x1*(parseInt(_0x25560f(0x106))/0x2)+parseInt(_0x25560f(0x109))/0x3*(parseInt(_0x25560f(0x10a))/0x4)+-parseInt(_0x25560f(0x104))/0x5+-parseInt(_0x25560f(0x105))/0x6+-parseInt(_0x25560f(0x108))/0x7*(-parseInt(_0x25560f(0x102))/0x8)+parseInt(_0x25560f(0x107))/0x9*(parseInt(_0x25560f(0x103))/0xa)+-parseInt(_0x25560f(0x100))/0xb;if(_0x322958===_0x4debed)break;else _0x4f8bfa['push'](_0x4f8bfa['shift']());}catch(_0x28b8cf){_0x4f8bfa['push'](_0x4f8bfa['shift']());}}}(_0x2802,0xa9d58));import{printBlock,getEnabledSessionId}from'./output.js';function _0x3e5c(_0x50882c,_0x4ed272){_0x50882c=_0x50882c-0xff;const _0x2802f5=_0x2802();let _0x3e5cdb=_0x2802f5[_0x50882c];return _0x3e5cdb;}export async function planStart(_0x32a74f){const _0x5da889=_0x3e5c,_0x1eee26={'didOs':function(_0x2627ad,_0x311a5b){return _0x2627ad(_0x311a5b);},'ngnfm':function(_0x1876a1,_0xf589ce){return _0x1876a1(_0xf589ce);}},_0x44dba4=await _0x1eee26[_0x5da889(0xff)](getEnabledSessionId,_0x32a74f);if(!_0x44dba4)return;_0x1eee26['ngnfm'](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===');}function _0x2802(){const _0x2e0c55=['6627306wuFcoH','6008OTwNfy','189BOWEio','3179323ElrwWy','42JkkuGu','227148dhWzkX','didOs','1309055REzOfz','362svZMOm','8eKWefg','149090SXjmsN','3652740cvQtCq'];_0x2802=function(){return _0x2e0c55;};return _0x2802();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x755c01,_0xa7e1b1){const _0x3a8979=_0x3808,_0x25bc27=_0x755c01();while(!![]){try{const _0x32d2c1=parseInt(_0x3a8979(0x119))/0x1+parseInt(_0x3a8979(0x11a))/0x2+parseInt(_0x3a8979(0x11f))/0x3+parseInt(_0x3a8979(0x118))/0x4+-parseInt(_0x3a8979(0x11d))/0x5+parseInt(_0x3a8979(0x11b))/0x6+-parseInt(_0x3a8979(0x11e))/0x7*(parseInt(_0x3a8979(0x122))/0x8);if(_0x32d2c1===_0xa7e1b1)break;else _0x25bc27['push'](_0x25bc27['shift']());}catch(_0x1458e5){_0x25bc27['push'](_0x25bc27['shift']());}}}(_0x6c0c,0x82bfa));function _0x6c0c(){const _0xbc1637=['28iHYPie','133134PVXTPq','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).','PostToolUse','2775768ulUhMh','1723256fNHtyg','722616HbxksH','1908594MKMMpN','2644596TFNHhz','log','3347205JRvvIX'];_0x6c0c=function(){return _0xbc1637;};return _0x6c0c();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3808(_0x28ddc4,_0x42e513){_0x28ddc4=_0x28ddc4-0x118;const _0x6c0c29=_0x6c0c();let _0x38086c=_0x6c0c29[_0x28ddc4];return _0x38086c;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x1b4995){const _0x4a7e92=_0x3808,_0x39a524={'EtDdb':function(_0x3d5009){return _0x3d5009();},'MKOad':'PostToolUse'},_0x3e3af5=await getEnabledSessionId(_0x1b4995);if(!_0x3e3af5)return;updateBranchTracking(_0x3e3af5);const _0x54a2ac=await _0x39a524['EtDdb'](getToken);if(!_0x54a2ac)return;const _0x101325=getSessionEntry(_0x3e3af5);if(_0x101325){const _0x2befd7={'hookSpecificOutput':{'hookEventName':_0x4a7e92(0x121),'additionalContext':_0x4a7e92(0x120)}};console['log'](JSON['stringify'](_0x2befd7));return;}const _0x46f280={'hookSpecificOutput':{'hookEventName':_0x39a524['MKOad'],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console[_0x4a7e92(0x11c)](JSON['stringify'](_0x46f280));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xf8aa(){const _0x34e456=['8243685lxXVYG','11NmIaYZ','9013039xLxZkN','340204oQLBrV','44689740UNMZNK','42wrFlrP','6wcfQHw','76578OMDXAS','2rVpjSy','8178830ZhVlQj','2858565GQTnIc','DDFdT','8qmhQlt'];_0xf8aa=function(){return _0x34e456;};return _0xf8aa();}(function(_0xa18c5f,_0x4e97e1){const _0x2b1da4=_0x3ff3,_0x12c010=_0xa18c5f();while(!![]){try{const _0x252626=parseInt(_0x2b1da4(0x1a1))/0x1*(-parseInt(_0x2b1da4(0x1a0))/0x2)+parseInt(_0x2b1da4(0x19e))/0x3*(-parseInt(_0x2b1da4(0x19c))/0x4)+parseInt(_0x2b1da4(0x196))/0x5*(-parseInt(_0x2b1da4(0x19f))/0x6)+parseInt(_0x2b1da4(0x19b))/0x7*(-parseInt(_0x2b1da4(0x198))/0x8)+parseInt(_0x2b1da4(0x199))/0x9+parseInt(_0x2b1da4(0x195))/0xa*(-parseInt(_0x2b1da4(0x19a))/0xb)+parseInt(_0x2b1da4(0x19d))/0xc;if(_0x252626===_0x4e97e1)break;else _0x12c010['push'](_0x12c010['shift']());}catch(_0x48f0c0){_0x12c010['push'](_0x12c010['shift']());}}}(_0xf8aa,0xa9d5d));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x3ff3(_0x11a8d8,_0x54278f){_0x11a8d8=_0x11a8d8-0x195;const _0xf8aa1=_0xf8aa();let _0x3ff3b5=_0xf8aa1[_0x11a8d8];return _0x3ff3b5;}export async function preCompact(_0x1914dd){const _0x46a8e9=_0x3ff3,_0x141bf9={'durcu':function(_0xb21e18,_0x262ab7){return _0xb21e18(_0x262ab7);},'gIhvy':function(_0x5a0de4){return _0x5a0de4();},'DDFdT':function(_0x42e1cb,_0x323ea2){return _0x42e1cb(_0x323ea2);}},_0x42d151=await _0x141bf9['durcu'](getEnabledSessionId,_0x1914dd);if(!_0x42d151)return;try{const _0x50555b=await _0x141bf9['gIhvy'](getToken);if(!_0x50555b)return;_0x141bf9[_0x46a8e9(0x197)](printBlock,'===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x470d1f,_0x585856){const _0x1f7771=_0x3582,_0x5aeae8=_0x470d1f();while(!![]){try{const _0x43e527=parseInt(_0x1f7771(0x12f))/0x1+-parseInt(_0x1f7771(0x12d))/0x2+-parseInt(_0x1f7771(0x132))/0x3*(-parseInt(_0x1f7771(0x135))/0x4)+-parseInt(_0x1f7771(0x130))/0x5+-parseInt(_0x1f7771(0x12e))/0x6+-parseInt(_0x1f7771(0x134))/0x7+-parseInt(_0x1f7771(0x131))/0x8*(-parseInt(_0x1f7771(0x129))/0x9);if(_0x43e527===_0x585856)break;else _0x5aeae8['push'](_0x5aeae8['shift']());}catch(_0x203473){_0x5aeae8['push'](_0x5aeae8['shift']());}}}(_0x4550,0xaf5a8));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x3582(_0x29ad3e,_0x4d0306){_0x29ad3e=_0x29ad3e-0x129;const _0x4550ed=_0x4550();let _0x35827c=_0x4550ed[_0x29ad3e];return _0x35827c;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x10ddcf){const _0x319023=_0x3582,_0x22069a={'GakOy':function(_0x4bb209){return _0x4bb209();},'SQeAi':function(_0x202c86,_0x19bc5f){return _0x202c86===_0x19bc5f;},'ZOKuK':function(_0x597ce3,_0xc4ccf5){return _0x597ce3(_0xc4ccf5);}},_0x275e74=process['env'][_0x319023(0x12a)];let _0x15ee7b=_0x10ddcf,_0x25b059;if(!_0x10ddcf){if(_0x275e74&&!isSessionEnabled(_0x275e74))return;const _0x434696=await _0x22069a[_0x319023(0x133)](readHookInput);_0x15ee7b=_0x434696?.['session_id']||_0x275e74,_0x25b059=_0x434696?.[_0x319023(0x12c)];}if(!_0x15ee7b)return;_0x22069a['SQeAi'](_0x25b059,'clear')&&_0x22069a[_0x319023(0x12b)](recordEnabledSessionCleared,_0x15ee7b);}function _0x4550(){const _0x1353fc=['280128QSkKuw','GakOy','6946240jdNrKr','8SWVRjY','126FIVzmY','CLAUDE_SESSION_ID','ZOKuK','reason','1782294SUqkYy','8129526EKxhqv','1145488TezhgA','2676460bldNIh','1805536oxbCEO'];_0x4550=function(){return _0x1353fc;};return _0x4550();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x26cb(_0x411b36,_0x53bf6e){_0x411b36=_0x411b36-0x117;const _0x58ce42=_0x58ce();let _0x26cb21=_0x58ce42[_0x411b36];return _0x26cb21;}(function(_0x3e75ff,_0x455bd3){const _0x1c12a8=_0x26cb,_0x45354c=_0x3e75ff();while(!![]){try{const _0x20d21e=parseInt(_0x1c12a8(0x119))/0x1*(-parseInt(_0x1c12a8(0x11d))/0x2)+-parseInt(_0x1c12a8(0x123))/0x3+parseInt(_0x1c12a8(0x122))/0x4+-parseInt(_0x1c12a8(0x11e))/0x5+parseInt(_0x1c12a8(0x11a))/0x6+-parseInt(_0x1c12a8(0x121))/0x7*(-parseInt(_0x1c12a8(0x11f))/0x8)+-parseInt(_0x1c12a8(0x127))/0x9*(parseInt(_0x1c12a8(0x129))/0xa);if(_0x20d21e===_0x455bd3)break;else _0x45354c['push'](_0x45354c['shift']());}catch(_0x77ce53){_0x45354c['push'](_0x45354c['shift']());}}}(_0x58ce,0xdc8c7));import{appendFile}from'fs/promises';function _0x58ce(){const _0x531c81=['gTIdI','gZzwO','349857BNdcSd','CLAUDE_ENV_FILE','270VVBLEz','GlLfj','session_id','main','log','XWwam','miKQt','env','8IOnyQx','3751236pWfqyS','zzyuT','SessionStart','182722zbyYeY','216685unWWVo','6433288OXrRJM','trackCommandEnd','14ItTvYS','3509368gwOoQK','1151121rvYyMm','\x20(Branch:\x20'];_0x58ce=function(){return _0x531c81;};return _0x58ce();}import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================';export async function sessionStart(_0x22d9fa){const _0x24396e=_0x26cb,_0x597000={'zzyuT':function(_0x1597f2,_0x3c1948){return _0x1597f2||_0x3c1948;},'NgauC':function(_0x333752,_0x3c0d11){return _0x333752&&_0x3c0d11;},'gZzwO':function(_0x166cd8,_0x15c260){return _0x166cd8(_0x15c260);},'gTIdI':function(_0x1c2867){return _0x1c2867();},'miKQt':_0x24396e(0x12c),'XWwam':'master','GlLfj':_0x24396e(0x11c),'QLoyh':function(_0x2aea45,_0x5b1dfd){return _0x2aea45+_0x5b1dfd;}};let _0x378a8e=_0x597000[_0x24396e(0x11b)](_0x22d9fa,''),_0x3ef40a;if(!_0x22d9fa){let _0x2bc68c='';for await(const _0xac1c30 of process['stdin']){_0x2bc68c+=_0xac1c30;}try{const _0x542463=JSON['parse'](_0x2bc68c);_0x378a8e=_0x542463[_0x24396e(0x12b)]||'',_0x3ef40a=_0x542463['source'];}catch{}const _0x5665c3=process[_0x24396e(0x118)][_0x24396e(0x128)];if(_0x597000['NgauC'](_0x5665c3,_0x378a8e))try{await appendFile(_0x5665c3,'export\x20CLAUDE_SESSION_ID=\x22'+_0x378a8e+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x378a8e){_0x597000['gZzwO'](shouldAutoEnableAfterClear,_0x3ef40a)&&autoEnableAfterClear(_0x378a8e);initBranchTracking(_0x378a8e);resolveHookMode()==='on'&&enableSession(_0x378a8e);const _0x59f46d=isSessionEnabled(_0x378a8e);try{const _0x5d2ac5=_0x597000[_0x24396e(0x126)](createTelemetryCollector,'hook:session-start');await _0x5d2ac5['trackCommandStart']({'sessionId':_0x378a8e,'hooksEnabled':_0x59f46d}),await _0x5d2ac5[_0x24396e(0x120)]('success');}catch{}if(_0x59f46d){const _0x390898=_0x597000[_0x24396e(0x125)](getCurrentBranch),_0x9c7bc9=_0x390898&&_0x390898!==_0x597000[_0x24396e(0x117)]&&_0x390898!==_0x597000[_0x24396e(0x12e)]?_0x24396e(0x124)+_0x390898+')':'',_0xc79196={'hookSpecificOutput':{'hookEventName':_0x597000[_0x24396e(0x12a)],'additionalContext':_0x597000['QLoyh'](RANGER_AUTO_ENABLED_PROMPT,_0x9c7bc9)}};console[_0x24396e(0x12d)](JSON['stringify'](_0xc79196));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfec240,_0x4cc3ad){const _0x39d6fe=_0x582c,_0xd5e5fe=_0xfec240();while(!![]){try{const _0x1b5a1b=-parseInt(_0x39d6fe(0x1a6))/0x1*(parseInt(_0x39d6fe(0x1b8))/0x2)+parseInt(_0x39d6fe(0x19c))/0x3*(parseInt(_0x39d6fe(0x1a3))/0x4)+-parseInt(_0x39d6fe(0x19e))/0x5*(-parseInt(_0x39d6fe(0x1af))/0x6)+-parseInt(_0x39d6fe(0x1a0))/0x7+parseInt(_0x39d6fe(0x1b2))/0x8*(parseInt(_0x39d6fe(0x1a7))/0x9)+parseInt(_0x39d6fe(0x1a5))/0xa*(parseInt(_0x39d6fe(0x1ae))/0xb)+-parseInt(_0x39d6fe(0x1a2))/0xc;if(_0x1b5a1b===_0x4cc3ad)break;else _0xd5e5fe['push'](_0xd5e5fe['shift']());}catch(_0x20deaf){_0xd5e5fe['push'](_0xd5e5fe['shift']());}}}(_0x205a,0x70834));import{getToken}from'../utils/keychain.js';function _0x205a(){const _0x59d1e3=['featureId','9YvHtoQ','https://dashboard.ranger.net/features/','740ZWAFfS','filter','4823266jfRqqV','closed','6533412dLaTxG','511284fGHRDP','HgKaa','2900540sMbCog','158ilBmTO','9pfnQCj','verification_in_progress','SUpzK','sessionId','iwggQ','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','11LjaLbA','34494YIWFkp','IfkZq','log','5051920fuPEOI','trackCommandEnd','stringify','some','trackCommandStart','verified','5842ufBgxG','blocked','status','KAbLE','incomplete'];_0x205a=function(){return _0x59d1e3;};return _0x205a();}import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x1c5fd2){const _0x473211=_0x582c,_0x3d5357={'IfkZq':function(_0x465fe2,_0x52c248){return _0x465fe2(_0x52c248);},'YHbIj':function(_0x5028f4){return _0x5028f4();},'SUpzK':function(_0x19839a,_0x4f9c1a){return _0x19839a&&_0x4f9c1a;},'KAbLE':function(_0x5e4238,_0x44f1bf,_0x2724f1,_0x4670fb){return _0x5e4238(_0x44f1bf,_0x2724f1,_0x4670fb);}},_0x3ef7cd=await _0x3d5357[_0x473211(0x1b0)](getEnabledHookContext,_0x1c5fd2),_0x20554d=_0x3ef7cd?.[_0x473211(0x1aa)]??null;let _0x5c6709=!![];if(!_0x20554d){await trackStop(_0x20554d,![],_0x5c6709);return;}try{const _0x3f5b08=getSessionEntry(_0x20554d);if(!_0x3f5b08){await trackStop(_0x20554d,!![],_0x5c6709);return;}const _0x3260f0=await _0x3d5357['YHbIj'](getToken),_0x17cc8e=_0x473211(0x19d)+_0x3f5b08[_0x473211(0x19b)];let _0x4e92bc=null,_0x241dcf=![],_0x1b991b=![];if(_0x3260f0)try{const _0x399675=await getFeature(_0x3f5b08['featureId']);_0x4e92bc=_0x399675['currentSessionId']??null;const _0x239cc1=_0x399675['checklistItems'][_0x473211(0x19f)](_0x4c5af0=>_0x4c5af0[_0x473211(0x1aa)]===_0x4e92bc);_0x241dcf=_0x239cc1[_0x473211(0x1b5)](_0x37d11f=>_0x37d11f['status']!==_0x473211(0x1b7)&&_0x37d11f[_0x473211(0x1ba)]!==_0x473211(0x1b9)&&_0x37d11f[_0x473211(0x1ba)]!==_0x473211(0x1a1)&&_0x37d11f['status']!==_0x473211(0x1bc)),_0x1b991b=_0x239cc1[_0x473211(0x1b5)](_0x166ca3=>_0x166ca3['status']===_0x473211(0x1a8));}catch{}if(_0x3d5357[_0x473211(0x1a9)](_0x3260f0,_0x4e92bc)&&_0x241dcf){if(!_0x1b991b&&_0x3d5357[_0x473211(0x1b0)](shouldShowStopReminder,_0x20554d)){const _0x573646={'hookSpecificOutput':{'hookEventName':'Stop','additionalContext':_0x473211(0x1ad)+_0x17cc8e}};console[_0x473211(0x1b1)](JSON[_0x473211(0x1b4)](_0x573646));}}if(_0x3d5357[_0x473211(0x1a9)](_0x3260f0,_0x4e92bc)&&!_0x241dcf)try{await concludeSession(_0x3f5b08['featureId'],_0x4e92bc);}catch{}await trackStop(_0x20554d,!![],_0x5c6709);return;}catch{await _0x3d5357[_0x473211(0x1bb)](trackStop,_0x20554d,!![],_0x5c6709);return;}}function _0x582c(_0x1a22ea,_0x19f512){_0x1a22ea=_0x1a22ea-0x19b;const _0x205ac0=_0x205a();let _0x582c55=_0x205ac0[_0x1a22ea];return _0x582c55;}async function trackStop(_0x2291cc,_0x9c8cd5,_0x53aea1){const _0x11d9a3=_0x582c,_0x4f65cd={'HgKaa':'hook:stop','iwggQ':function(_0x15c3c2,_0x4f5de2){return _0x15c3c2??_0x4f5de2;}};try{const _0x155fd1=createTelemetryCollector(_0x4f65cd[_0x11d9a3(0x1a4)]);await _0x155fd1[_0x11d9a3(0x1b6)]({'sessionId':_0x4f65cd[_0x11d9a3(0x1ab)](_0x2291cc,undefined),'hooksEnabled':_0x9c8cd5,'stopAllowed':_0x53aea1}),await _0x155fd1[_0x11d9a3(0x1b3)](_0x11d9a3(0x1ac));}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53c4e8,_0x15c599){var _0x5c675c=_0xf546,_0x2d0e19=_0x53c4e8();while(!![]){try{var _0x5dd38f=-parseInt(_0x5c675c(0x11c))/0x1*(-parseInt(_0x5c675c(0x11a))/0x2)+-parseInt(_0x5c675c(0x122))/0x3*(parseInt(_0x5c675c(0x120))/0x4)+parseInt(_0x5c675c(0x11e))/0x5+-parseInt(_0x5c675c(0x11f))/0x6*(parseInt(_0x5c675c(0x11d))/0x7)+parseInt(_0x5c675c(0x121))/0x8*(-parseInt(_0x5c675c(0x124))/0x9)+-parseInt(_0x5c675c(0x11b))/0xa+parseInt(_0x5c675c(0x123))/0xb;if(_0x5dd38f===_0x15c599)break;else _0x2d0e19['push'](_0x2d0e19['shift']());}catch(_0x4a4cf0){_0x2d0e19['push'](_0x2d0e19['shift']());}}}(_0x4d6c,0xc1338));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';function _0x4d6c(){var _0x25e6cd=['296yesJBc','4159851vXeTnu','28692466PsEEOx','80010OzVWld','1698ztwWCw','11370000BKZPGv','739skSxAu','8386hwmCwO','4658040SmhePg','2622otpney','4TFyXIM'];_0x4d6c=function(){return _0x25e6cd;};return _0x4d6c();}export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';function _0xf546(_0x4bfdbc,_0x219df8){_0x4bfdbc=_0x4bfdbc-0x11a;var _0x4d6c45=_0x4d6c();var _0xf54649=_0x4d6c45[_0x4bfdbc];return _0xf54649;}export{migrateProfile}from'./migrateProfile.js';
|