@ranger-testing/ranger-cli 3.1.5-alpha.9b89f77-48 → 3.1.5
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 +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2de799=_0x19c8;(function(_0x362bab,_0x1e8dc6){const _0x580cda=_0x19c8,_0x217d28=_0x362bab();while(!![]){try{const _0x21785f=-parseInt(_0x580cda(0x1b2))/0x1*(parseInt(_0x580cda(0x1aa))/0x2)+parseInt(_0x580cda(0x1d0))/0x3+parseInt(_0x580cda(0x160))/0x4*(parseInt(_0x580cda(0x1ed))/0x5)+parseInt(_0x580cda(0x1d2))/0x6*(parseInt(_0x580cda(0x138))/0x7)+-parseInt(_0x580cda(0x1ba))/0x8+-parseInt(_0x580cda(0x181))/0x9+parseInt(_0x580cda(0x179))/0xa;if(_0x21785f===_0x1e8dc6)break;else _0x217d28['push'](_0x217d28['shift']());}catch(_0x5cb9a8){_0x217d28['push'](_0x217d28['shift']());}}}(_0xb7f8,0xc3305));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x16d2a9 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';function _0xb7f8(){const _0x3b3550=['\x20(v','checklistItems','from','\x20\x20\x20Created:\x20','in_progress','canceledReason','UwHMk','assets','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','AQXah','\x0a✅\x20Session\x20','Cannot\x20conclude\x20session\x20with\x20status:\x20','dwNMM','blockedItems','\x20\x20\x20ID:\x20','sMbPL','spatial','...','Khojw','iGEVI','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','git\x20remote\x20get-url\x20origin','QTrvH','DEstT','description','UGwmj','JUJBv','32xSKqOO','huTeB','\x20\x20\x20Description:\x20','log','offset','\x20feature\x20review(s)\x20found','jHuDB','filter','KPgAE','isTTY','uGkVg','\x0aCreating\x20feature\x20review...','status','stats','pWVOa','\x0aAvailable\x20scenarios:','slice','toLocaleDateString','):\x20\x22','orIUN','storage','rxfNS','Screenshot\x20','approved','\x20--limit\x20','17872340BntEWS','HvoyT','RlRst','XxCvZ','incompleteReason','\x0a✅\x20Scenario\x20updated','exit','EfnSR','8176653RHoHkc','OAHOE','trimEnd','split','repeat','ATvpH','FIjaB','ofuaK','\x20>\x20','pmfsx','gitRepoUrl','push','assetUrl','createdAt','ivbGd','gitBranch','\x20\x20✅\x20No\x20feedback\x20to\x20address','feedback-images','unaddressedComments','HgyvR','LocKy','find','SLgfA','IwTMz','items','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','trim','rsPne','IBLRm','verifiedItems','CiPGF','length','XCsvO','totalCount','CLAUDE_SESSION_ID','stdin','\x20\x20\x20\x20\x20ID:\x20','HVPZw','SGDVb','\x0aNo\x20feature\x20reviews\x20found.','\x1b[1m','17398cRHAtm','map','join','selector','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','nzYfn','utf-8','screenshot','158vtirSD','name','artxB','arrayBuffer','element','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','hovJP','RFMmu','9448016TPHGQq','eztzI','github.com/','hVAbJ','QCmFk','jINYB','ezMST','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','error','screenshotUrls','scenario','No\x20scenarios\x20found.','en-US','fdrCP','\x0a✅\x20Feature\x20review\x20created:\x20','dashboardUrl','uDTdv','authorName','\x0a✅\x20Session\x20is\x20already\x20completed.','terminalReason','iteration','XJLbn','2201955iZsHmD','zjlnz','18LoWFPO','\x20\x20💬\x20','browserSessionId','\x20concluded.','GLJXF','\x20\x20\x20\x20\x20\x20Blocked:\x20','toFixed','YMPSb','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','PIDVX','sessionId','0|1|4|5|3|2','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20blocked','hWVeB','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','ehaZb','excludeScenarios','buVKk','\x20\x20\x20Completed:\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','LxIcd','TJSgn','\x20scenarios.','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','iAlGh','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','834240IfRJfk','verification_in_progress','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x20of\x20','.\x20Feature\x20review\x20has\x20','completed','currentBranch','CWNPo','closed','pop','AwmGv','DEKob','UbtJL','Unknown','hhPhl','limit','env','version','replace','\x0a✅\x20Report\x20generated:\x20','Not\x20in\x20a\x20git\x20repository.','RANGER_TEST_USERNAME','includeDeleted','ready','blockedReason','stdout','ZUznZ','canonicalFlow','incomplete','type','latestReview','.md','\x20\x20\x20\x20\x20\x20Cancelled:\x20','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','coordinates','numeric','AuGYQ','\x20unaddressed\x20comment(s)','QsLlb','950719AXyHkA','\x20--current-branch','lQHvT','completedAt','\x20\x20\x20Progress:\x20','euSNE','toLocaleString','write','KNRPm','\x20incomplete','currentSessionId','verificationInProgressItems','get'];_0xb7f8=function(){return _0x3b3550;};return _0xb7f8();}import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x3cff46=>_0x2de799(0x1a9)+_0x3cff46+'\x1b[0m';function getGitRepoUrl(){const _0x3a714e=_0x2de799,_0x494d74={'YMPSb':function(_0x37ee97,_0x48d60e,_0x4a11b4){return _0x37ee97(_0x48d60e,_0x4a11b4);},'CiPGF':'pipe'};try{const _0x51ae31=_0x494d74[_0x3a714e(0x1d9)](execSync,_0x3a714e(0x15a),{'encoding':'utf-8','stdio':['pipe','pipe',_0x494d74[_0x3a714e(0x19f)]]})['trim']();return _0x51ae31['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x3a714e(0x1bc))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xc154df=_0x2de799,_0x17f976={'CWNPo':function(_0x2c154d,_0x1630a6,_0x3cffbb){return _0x2c154d(_0x1630a6,_0x3cffbb);},'UqBvd':'utf-8','KNRPm':'pipe'};try{return _0x17f976[_0xc154df(0x118)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x17f976['UqBvd'],'stdio':[_0x17f976[_0xc154df(0x140)],_0x17f976['KNRPm'],_0x17f976['KNRPm']]})[_0xc154df(0x19b)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x47cc01=_0x2de799,_0xf72b0={'XJLbn':function(_0x1a7875,_0xf60f48,_0x110e93){return _0x1a7875(_0xf60f48,_0x110e93);},'KPgAE':function(_0x448713,_0x532619){return _0x448713(_0x532619);},'myFAJ':_0x47cc01(0x1b0)},_0x13dfb9=_0xf72b0[_0x47cc01(0x1cf)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0xf72b0[_0x47cc01(0x168)](existsSync,_0x13dfb9))return null;try{const _0x306eb1=await readFile(_0x13dfb9,_0xf72b0['myFAJ']);return _0x306eb1['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x4c4b52){const _0x42de12=_0x2de799,_0xa2441b={'JjxiY':function(_0x50780c){return _0x50780c();},'UbtJL':function(_0x50399a,_0x53af84,_0x45d825){return _0x50399a(_0x53af84,_0x45d825);},'MbRpA':function(_0x3b8c03,_0x3b7b57){return _0x3b8c03(_0x3b7b57);},'JZrZO':function(_0x128f18,_0x351d59,_0x432caa,_0x5b5e73){return _0x128f18(_0x351d59,_0x432caa,_0x5b5e73);}},_0x222efb=_0xa2441b['JjxiY'](getRangerDir),_0x203092=_0xa2441b[_0x42de12(0x11d)](join,_0x222efb,ACTIVE_FEATURE_FILE);!_0xa2441b['MbRpA'](existsSync,_0x222efb)&&await mkdir(_0x222efb,{'recursive':!![]}),await _0xa2441b['JZrZO'](writeFile,_0x203092,_0x4c4b52,'utf-8');}function getProgressDisplay(_0x244206){const _0x349d90=_0x2de799,_0x35e2b4={'dwNMM':function(_0x256331,_0xc703be){return _0x256331+_0xc703be;},'uGkVg':function(_0x5b813a,_0x267479){return _0x5b813a+_0x267479;},'WgCPI':function(_0x3e5bb4,_0x24d4af){return _0x3e5bb4-_0x24d4af;},'HgyvR':function(_0x69aee9,_0x5f52ff){return _0x69aee9>_0x5f52ff;},'buVKk':function(_0x5b207e,_0x617748){return _0x5b207e>_0x617748;}},_0x31b4b2=_0x244206[_0x349d90(0x19e)]||0x0,_0x480e09=_0x244206[_0x349d90(0x143)]||0x0,_0x533d07=_0x244206[_0x349d90(0x152)]||0x0,_0x146275=_0x244206['incompleteItems']||0x0,_0x4ca6fa=_0x244206['pendingItems']||0x0,_0x141cb4=_0x35e2b4['dwNMM'](_0x35e2b4[_0x349d90(0x16a)](_0x35e2b4[_0x349d90(0x151)](_0x31b4b2+_0x480e09,_0x533d07),_0x146275),_0x4ca6fa);if(_0x141cb4===0x0)return'-';const _0x24b984=0xa,_0x46af60=Math['round'](_0x31b4b2/_0x141cb4*_0x24b984),_0xbd67a1='█'['repeat'](_0x46af60)+'░'[_0x349d90(0x185)](_0x35e2b4['WgCPI'](_0x24b984,_0x46af60)),_0x143f88=[];if(_0x533d07>0x0)_0x143f88[_0x349d90(0x18c)](_0x533d07+_0x349d90(0x1df));if(_0x35e2b4[_0x349d90(0x194)](_0x146275,0x0))_0x143f88[_0x349d90(0x18c)](_0x146275+_0x349d90(0x141));if(_0x480e09>0x0)_0x143f88[_0x349d90(0x18c)](_0x480e09+'\x20in\x20progress');const _0x34a711=_0x35e2b4[_0x349d90(0x1e4)](_0x143f88[_0x349d90(0x1a0)],0x0)?'\x20('+_0x143f88['join'](',\x20')+')':'';return _0xbd67a1+'\x20'+_0x31b4b2+'/'+_0x141cb4+'\x20verified'+_0x34a711;}function _0x19c8(_0x15711d,_0x4d9e13){_0x15711d=_0x15711d-0x118;const _0xb7f8fe=_0xb7f8();let _0x19c8f9=_0xb7f8fe[_0x15711d];return _0x19c8f9;}function getCurrentSessionItems(_0x7d08f8,_0x199306){const _0x139093=_0x2de799;if(!_0x7d08f8[_0x139093(0x142)])return _0x199306['filter'](_0x2bb060=>!_0x2bb060[_0x139093(0x1dc)]);return _0x199306['filter'](_0xf42be0=>_0xf42be0['sessionId']===_0x7d08f8['currentSessionId']||!_0xf42be0[_0x139093(0x1dc)]);}function displayFeature(_0x48c997,_0x5c09e1){const _0x3f1f7c=_0x2de799,_0x3b4c9d={'zjlnz':function(_0x24d480,_0x49bbd8){return _0x24d480>_0x49bbd8;},'MdVdz':function(_0x1436e3,_0x362644){return _0x1436e3<_0x362644;},'iAlGh':function(_0x35df9d,_0x54f5c4){return _0x35df9d===_0x54f5c4;},'fdrCP':_0x3f1f7c(0x119),'nEnZF':'approved','Kllkb':'verified','TJSgn':function(_0x5ea5f5,_0x59e68a){return _0x5ea5f5===_0x59e68a;},'VxApn':'blocked','rSsvW':function(_0x501054,_0x399bdf){return _0x501054>_0x399bdf;},'FOhwH':function(_0x51ad9a,_0x24ddba){return _0x51ad9a!==_0x24ddba;},'jHuDB':_0x3f1f7c(0x12d)};console[_0x3f1f7c(0x163)]('\x0a'+_0x48c997['name']+'\x20('+_0x48c997[_0x3f1f7c(0x1c9)]+')');_0x48c997[_0x3f1f7c(0x16d)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x48c997['stats']));_0x48c997['description']&&console['log'](_0x3f1f7c(0x162)+_0x48c997[_0x3f1f7c(0x15d)]);_0x48c997[_0x3f1f7c(0x18b)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x48c997[_0x3f1f7c(0x18b)]);_0x48c997['gitBranch']&&console[_0x3f1f7c(0x163)]('\x20\x20\x20Branch:\x20'+_0x48c997[_0x3f1f7c(0x190)]);console[_0x3f1f7c(0x163)](_0x3f1f7c(0x148)+new Date(_0x48c997['createdAt'])[_0x3f1f7c(0x13e)]());_0x48c997['completedAt']&&console[_0x3f1f7c(0x163)](_0x3f1f7c(0x1e5)+new Date(_0x48c997['completedAt'])['toLocaleString']());if(_0x5c09e1&&_0x3b4c9d[_0x3f1f7c(0x1d1)](_0x5c09e1[_0x3f1f7c(0x1a0)],0x0)){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x2fdf9d=0x0;_0x3b4c9d['MdVdz'](_0x2fdf9d,_0x5c09e1[_0x3f1f7c(0x1a0)]);_0x2fdf9d++){const _0x47faa8=_0x5c09e1[_0x2fdf9d];let _0x394f3f;if(_0x3b4c9d[_0x3f1f7c(0x1eb)](_0x47faa8[_0x3f1f7c(0x16c)],_0x3b4c9d['fdrCP'])&&_0x3b4c9d['iAlGh'](_0x47faa8[_0x3f1f7c(0x1cd)],_0x3b4c9d['nEnZF']))_0x394f3f='✅';else{if(_0x3b4c9d['iAlGh'](_0x47faa8['status'],_0x3b4c9d['Kllkb']))_0x394f3f='🟢';else{if(_0x3b4c9d[_0x3f1f7c(0x1e8)](_0x47faa8[_0x3f1f7c(0x16c)],_0x3f1f7c(0x12d)))_0x394f3f='🟠';else{if(_0x47faa8['status']===_0x3b4c9d['VxApn'])_0x394f3f='🛑';else{if(_0x47faa8[_0x3f1f7c(0x16c)]===_0x3b4c9d[_0x3f1f7c(0x1c7)])_0x394f3f='⛔';else _0x3b4c9d[_0x3f1f7c(0x1e8)](_0x47faa8['status'],_0x3f1f7c(0x1ee))?_0x394f3f='⏳':_0x394f3f='⬜';}}}}const _0x24c28c=_0x3b4c9d['rSsvW'](_0x47faa8[_0x3f1f7c(0x122)],0x1)?_0x3f1f7c(0x145)+_0x47faa8[_0x3f1f7c(0x122)]+')':'',_0x2956a5=_0x3b4c9d[_0x3f1f7c(0x1d1)](_0x47faa8[_0x3f1f7c(0x122)],0x1)&&_0x47faa8['parentItemId']&&_0x3b4c9d['FOhwH'](_0x47faa8[_0x3f1f7c(0x16c)],_0x3f1f7c(0x119))&&_0x47faa8[_0x3f1f7c(0x16c)]!=='verified'?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+(_0x2fdf9d+0x1)+'.\x20'+_0x394f3f+'\x20'+_0x47faa8['description']+_0x24c28c+_0x2956a5);_0x47faa8['status']===_0x3b4c9d['VxApn']&&_0x47faa8[_0x3f1f7c(0x129)]&&console[_0x3f1f7c(0x163)](_0x3f1f7c(0x1d7)+_0x47faa8[_0x3f1f7c(0x129)]);_0x3b4c9d['TJSgn'](_0x47faa8[_0x3f1f7c(0x16c)],_0x3b4c9d[_0x3f1f7c(0x166)])&&_0x47faa8['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x47faa8['incompleteReason']);if(_0x47faa8['status']===_0x3b4c9d['fdrCP']&&_0x3b4c9d[_0x3f1f7c(0x1e8)](_0x47faa8['terminalReason'],_0x3f1f7c(0x177)))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x3b4c9d['TJSgn'](_0x47faa8['status'],_0x3f1f7c(0x119))&&_0x47faa8[_0x3f1f7c(0x14a)]&&console[_0x3f1f7c(0x163)](_0x3f1f7c(0x131)+_0x47faa8['canceledReason']);}}}export async function featureCreate(_0x5d870b,_0x26647e){const _0xba20dc=_0x2de799,_0x3c02ad={'iGEVI':function(_0x1b4d5e){return _0x1b4d5e();},'twjyL':function(_0x5c129f){return _0x5c129f();},'ofuaK':_0xba20dc(0x16b),'QCmFk':function(_0x1adff1,_0x3814dd){return _0x1adff1(_0x3814dd);},'FIjaB':function(_0x1f7386,_0x132e15){return _0x1f7386(_0x132e15);},'ZPUuf':function(_0x45c7b8,_0x43386f,_0x2d313c){return _0x45c7b8(_0x43386f,_0x2d313c);}},{envNames:_0x1f01f5}=await _0x3c02ad[_0xba20dc(0x158)](getEnvNames);if(_0x1f01f5['length']===0x0&&!process['env'][_0xba20dc(0x126)]){let _0x5d0e0f=0x0;try{_0x5d0e0f=(await listCloudProfiles())['length'];}catch{_0x5d0e0f=0x1;}_0x5d0e0f===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x4d4756=>bold(_0x4d4756)));}const _0x123ee9=_0x26647e['scenarios']?_0x26647e['scenarios'][_0xba20dc(0x1ab)](_0x1de1b9=>_0x1de1b9['trim']()):[],_0x9bf368=_0x3c02ad['iGEVI'](getGitRepoUrl),_0x247495=_0x3c02ad['twjyL'](getGitBranch);console[_0xba20dc(0x163)](_0x3c02ad[_0xba20dc(0x188)]);const _0x49e7c8=await _0x3c02ad[_0xba20dc(0x1be)](createFeature,{'name':_0x5d870b,'description':_0x26647e['description'],'checklist':_0x123ee9,'gitRepoUrl':_0x9bf368,'gitBranch':_0x247495});await _0x3c02ad['QCmFk'](setActiveFeatureId,_0x49e7c8['id']),await _0x3c02ad[_0xba20dc(0x187)](tryStartCurrentSession,_0x49e7c8['id']);const _0x53536f=process[_0xba20dc(0x121)][_0xba20dc(0x1a3)];_0x53536f&®isterSession(_0x53536f,_0x49e7c8['id']),console[_0xba20dc(0x163)](_0xba20dc(0x1c8)+_0x49e7c8['id']),_0x3c02ad['ZPUuf'](displayFeature,_0x49e7c8,_0x49e7c8['checklistItems']),console[_0xba20dc(0x163)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0xe41d08){const _0x3b7d16=_0x2de799,_0x30b2a3={'rxfNS':function(_0x24f3ad){return _0x24f3ad();},'ehaZb':function(_0x36fd01,_0x4866c1){return _0x36fd01(_0x4866c1);},'IwTMz':function(_0xa2dcaf,_0x4e41b7){return _0xa2dcaf===_0x4e41b7;},'gxTuV':function(_0x358932,_0x18d237){return _0x358932>_0x18d237;},'LocKy':function(_0x53769f,_0x511807){return _0x53769f+_0x511807;},'orIUN':function(_0x41de49,_0x422994){return _0x41de49<_0x422994;}},_0x1dc3a1={'limit':_0xe41d08[_0x3b7d16(0x120)]??0xa,'offset':_0xe41d08[_0x3b7d16(0x164)]??0x0,'includeDeleted':_0xe41d08[_0x3b7d16(0x127)]};_0xe41d08['currentBranch']&&(_0x1dc3a1[_0x3b7d16(0x18b)]=getGitRepoUrl(),_0x1dc3a1['gitBranch']=_0x30b2a3[_0x3b7d16(0x175)](getGitBranch));const _0xfa5920=await _0x30b2a3['ehaZb'](listFeatures,_0x1dc3a1);if(_0x30b2a3[_0x3b7d16(0x198)](_0xfa5920[_0x3b7d16(0x199)][_0x3b7d16(0x1a0)],0x0)){console['log'](_0x3b7d16(0x1a8));return;}const _0x164b60=_0x30b2a3['gxTuV'](_0xfa5920['totalCount'],_0xfa5920['items']['length'])?'Showing\x20'+_0xfa5920['items']['length']+_0x3b7d16(0x1f0)+_0xfa5920['totalCount']:_0xfa5920[_0x3b7d16(0x1a2)]+_0x3b7d16(0x165);console['log']('\x0a'+_0x164b60+':\x0a');for(const _0x56a04f of _0xfa5920['items']){const _0x353b55=_0x3b7d16(0x1dd)[_0x3b7d16(0x184)]('|');let _0x55e2b5=0x0;while(!![]){switch(_0x353b55[_0x55e2b5++]){case'0':console[_0x3b7d16(0x163)](''+_0x56a04f[_0x3b7d16(0x1b3)]);continue;case'1':console[_0x3b7d16(0x163)](_0x3b7d16(0x153)+_0x56a04f['id']);continue;case'2':console[_0x3b7d16(0x163)]('');continue;case'3':console[_0x3b7d16(0x163)]('\x20\x20\x20Created:\x20'+new Date(_0x56a04f['createdAt'])[_0x3b7d16(0x171)]());continue;case'4':_0x56a04f[_0x3b7d16(0x16d)]&&console['log'](_0x3b7d16(0x13c)+_0x30b2a3[_0x3b7d16(0x1e2)](getProgressDisplay,_0x56a04f[_0x3b7d16(0x16d)]));continue;case'5':_0x56a04f['gitBranch']&&console[_0x3b7d16(0x163)]('\x20\x20\x20Branch:\x20'+_0x56a04f[_0x3b7d16(0x190)]);continue;}break;}}const _0x5f0798=_0x1dc3a1[_0x3b7d16(0x120)]??0xa,_0x2cc522=_0x30b2a3[_0x3b7d16(0x195)](_0x1dc3a1[_0x3b7d16(0x164)]??0x0,_0xfa5920['items']['length']);if(_0x30b2a3[_0x3b7d16(0x173)](_0x2cc522,_0xfa5920['totalCount'])){const _0x1664f0=_0x5f0798!==0xa?_0x3b7d16(0x178)+_0x5f0798:'',_0x3932cc=_0xe41d08[_0x3b7d16(0x1f3)]?_0x3b7d16(0x139):'',_0x39318f=_0xe41d08[_0x3b7d16(0x127)]?'\x20--include-deleted':'';console[_0x3b7d16(0x163)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x2cc522+_0x1664f0+_0x3932cc+_0x39318f);}}export async function featureShow(_0x18aa21){const _0x4db689=_0x2de799,_0x56e02d={'zTipA':function(_0x21dd9f){return _0x21dd9f();},'eSuvU':_0x4db689(0x1ec)},_0x3553d8=_0x18aa21||await _0x56e02d['zTipA'](getActiveFeatureId);if(!_0x3553d8)throw new Error(_0x56e02d['eSuvU']);const _0x1a3f1f=await getFeature(_0x3553d8);displayFeature(_0x1a3f1f,_0x1a3f1f[_0x4db689(0x146)]);}export async function featureResume(_0x1e5e96){const _0xd4d292=_0x2de799,_0xd0aeed={'JUJBv':function(_0x3a1042,_0x186f7e){return _0x3a1042(_0x186f7e);},'UGwmj':function(_0x565fec){return _0x565fec();},'pWVOa':function(_0x10f8ab,_0x434b61,_0x3ea72b){return _0x10f8ab(_0x434b61,_0x3ea72b);},'LxIcd':_0xd4d292(0x125),'duiWe':function(_0x5433f0,_0x542d46){return _0x5433f0||_0x542d46;},'DEstT':'any','jINYB':function(_0x3e7728,_0x57453c){return _0x3e7728||_0x57453c;},'jMsJY':function(_0x4f4319,_0x410473){return _0x4f4319(_0x410473);},'pmfsx':_0xd4d292(0x1e6),'HWIDd':_0xd4d292(0x1de),'gSrRP':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','hhPhl':'list','eztzI':_0xd4d292(0x1ef),'SGDVb':function(_0x4dd97b,_0x5ebf8e,_0x5e20c8){return _0x4dd97b(_0x5ebf8e,_0x5e20c8);}};if(_0x1e5e96){const _0x25c7a6=await _0xd0aeed['JUJBv'](getFeature,_0x1e5e96);await _0xd0aeed[_0xd4d292(0x15f)](setActiveFeatureId,_0x25c7a6['id']);const _0x2909da=_0xd0aeed['UGwmj'](getGitBranch);_0x2909da&&_0x2909da!==_0x25c7a6['gitBranch']&&(await _0xd0aeed[_0xd4d292(0x16e)](updateFeature,_0x25c7a6['id'],{'gitBranch':_0x2909da}),console[_0xd4d292(0x163)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2909da));console[_0xd4d292(0x163)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x25c7a6[_0xd4d292(0x1b3)]+'\x20('+_0x25c7a6['id']+')'),await tryStartCurrentSession(_0x25c7a6['id']);const _0x1e1c2c=process['env']['CLAUDE_SESSION_ID'];_0x1e1c2c&®isterSession(_0x1e1c2c,_0x25c7a6['id']);_0xd0aeed[_0xd4d292(0x16e)](displayFeature,_0x25c7a6,_0x25c7a6[_0xd4d292(0x146)]),await printFeedbackNudge(_0x25c7a6['id']);return;}const _0x22edd7=_0xd0aeed[_0xd4d292(0x15e)](getGitRepoUrl),_0x2c8bf9=getGitBranch();if(!_0x22edd7&&!_0x2c8bf9)throw new Error(_0xd0aeed[_0xd4d292(0x1e7)]);console[_0xd4d292(0x163)](_0xd4d292(0x132)+_0xd0aeed['duiWe'](_0x22edd7,_0xd0aeed['DEstT'])+'\x20/\x20'+_0xd0aeed[_0xd4d292(0x1bf)](_0x2c8bf9,_0xd0aeed[_0xd4d292(0x15c)])+_0xd4d292(0x156));const _0x380354=await _0xd0aeed['jMsJY'](listFeatures,{'gitRepoUrl':_0x22edd7,'gitBranch':_0x2c8bf9}),_0x296c4e=_0x380354[_0xd4d292(0x199)]['filter'](_0x10d1ec=>_0x10d1ec[_0xd4d292(0x16c)]?_0x10d1ec[_0xd4d292(0x16c)]!=='verified':!_0x10d1ec[_0xd4d292(0x13b)]);if(_0x296c4e[_0xd4d292(0x1a0)]===0x0){console[_0xd4d292(0x163)](_0xd0aeed[_0xd4d292(0x18a)]),console['log'](_0xd0aeed['HWIDd']);return;}let _0xbdab02;if(_0x296c4e[_0xd4d292(0x1a0)]===0x1)_0xbdab02=_0x296c4e[0x0];else{const _0x1ea1bb=process[_0xd4d292(0x1a4)][_0xd4d292(0x169)]&&process[_0xd4d292(0x12a)][_0xd4d292(0x169)];if(!_0x1ea1bb){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x5ee792 of _0x296c4e){console[_0xd4d292(0x163)]('\x20\x20'+_0x5ee792[_0xd4d292(0x1b3)]),console[_0xd4d292(0x163)](_0xd4d292(0x1a5)+_0x5ee792['id']),_0x5ee792[_0xd4d292(0x16d)]&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x5ee792[_0xd4d292(0x16d)])),_0x5ee792[_0xd4d292(0x190)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x5ee792[_0xd4d292(0x190)]);}throw new Error(_0xd0aeed['gSrRP']);}const {selected:_0x50ed32}=await _0x16d2a9['prompt']([{'type':_0xd0aeed[_0xd4d292(0x11f)],'name':'selected','message':_0xd0aeed[_0xd4d292(0x1bb)],'choices':_0x296c4e[_0xd4d292(0x1ab)](_0x4bc377=>({'name':_0x4bc377[_0xd4d292(0x1b3)]+'\x20('+_0x4bc377['id']+')','value':_0x4bc377['id']}))}]);_0xbdab02=_0x296c4e[_0xd4d292(0x196)](_0x18a8c3=>_0x18a8c3['id']===_0x50ed32);}await _0xd0aeed['jMsJY'](setActiveFeatureId,_0xbdab02['id']);_0x2c8bf9&&_0x2c8bf9!==_0xbdab02['gitBranch']&&(await _0xd0aeed['pWVOa'](updateFeature,_0xbdab02['id'],{'gitBranch':_0x2c8bf9}),console[_0xd4d292(0x163)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2c8bf9));console[_0xd4d292(0x163)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xbdab02['name']+'\x20('+_0xbdab02['id']+')'),await tryStartCurrentSession(_0xbdab02['id']);const _0x36dd95=await getFeature(_0xbdab02['id']),_0x1efc11=process['env'][_0xd4d292(0x1a3)];_0x1efc11&&_0xd0aeed[_0xd4d292(0x1a7)](registerSession,_0x1efc11,_0x36dd95['id']),_0xd0aeed['pWVOa'](displayFeature,_0x36dd95,_0x36dd95[_0xd4d292(0x146)]),await _0xd0aeed['JUJBv'](printFeedbackNudge,_0x36dd95['id']);}async function printFeedbackNudge(_0x38bd8d){const _0x2d2bf0=_0x2de799,_0x5f3e74={'TStgr':function(_0x3740e6,_0x23d4d1){return _0x3740e6>_0x23d4d1;}};try{const {items:_0x48a068}=await getActionItems(_0x38bd8d);let _0x158e65=0x0,_0x534c88=0x0;for(const _0x1b4753 of _0x48a068){const _0x3ac698=await getItemFeedback(_0x38bd8d,_0x1b4753['id']);_0x5f3e74['TStgr'](_0x3ac698[_0x2d2bf0(0x193)]['length'],0x0)&&(_0x158e65+=_0x3ac698['unaddressedComments']['length'],_0x534c88++);}_0x5f3e74['TStgr'](_0x158e65,0x0)&&(console[_0x2d2bf0(0x163)]('\x0a⚠️\x20\x20'+_0x158e65+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x534c88+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x47f3c2){const _0x457217=_0x2de799,_0x5959e3={'ivbGd':function(_0x2397ab,_0x55d13e){return _0x2397ab(_0x55d13e);},'hWVeB':function(_0x34f6e9,_0xa670f5,_0x4ade45){return _0x34f6e9(_0xa670f5,_0x4ade45);}};try{const {sessions:_0x4cc2cd}=await _0x5959e3[_0x457217(0x18f)](listFeatureSessions,_0x47f3c2),_0x459d1c=_0x4cc2cd[_0x457217(0x196)](_0x4ff947=>_0x4ff947['status']===_0x457217(0x128));_0x459d1c&&(await _0x5959e3[_0x457217(0x1e0)](startSession,_0x47f3c2,_0x459d1c['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x459d1c[_0x457217(0x1ce)]));}catch{}}export async function featureReport(_0x5773c7,_0x51d59d){const _0x55656c=_0x2de799,_0x4a9f12={'lQHvT':'\x0aGenerating\x20report...','AoOmt':'reports','sKofz':function(_0x2aae4d,_0x321149,_0x1f3c15){return _0x2aae4d(_0x321149,_0x1f3c15);},'RlRst':function(_0x54dc7f,_0x3bf6c5,_0x35a979){return _0x54dc7f(_0x3bf6c5,_0x35a979);},'xlkiO':function(_0x5181ca,_0x379208,_0x226c04,_0x3232e0){return _0x5181ca(_0x379208,_0x226c04,_0x3232e0);}},_0x4ec459=_0x5773c7||await getActiveFeatureId();if(!_0x4ec459)throw new Error(_0x55656c(0x1da));console[_0x55656c(0x163)](_0x4a9f12[_0x55656c(0x13a)]);const _0x4ac370=await getFeatureReportMarkdown(_0x4ec459,{'style':_0x51d59d['style']}),_0x4a0b05=_0x51d59d['output']||join(getRangerDir(),_0x4a9f12['AoOmt'],_0x4ec459+_0x55656c(0x130)),_0x464d5c=_0x4a9f12['sKofz'](join,_0x4a0b05,'..');!existsSync(_0x464d5c)&&await _0x4a9f12[_0x55656c(0x17b)](mkdir,_0x464d5c,{'recursive':!![]}),await _0x4a9f12['xlkiO'](writeFile,_0x4a0b05,_0x4ac370,'utf-8'),console['log'](_0x55656c(0x124)+_0x4a0b05);}function getScenarioResult(_0x285ac4){const _0x1b86e7=_0x2de799,_0x21daad={'EfnSR':function(_0x44d52b,_0x3aed73){return _0x44d52b===_0x3aed73;},'hovJP':_0x1b86e7(0x119),'UwHMk':'in_progress'};if(_0x21daad[_0x1b86e7(0x180)](_0x285ac4[_0x1b86e7(0x16c)],_0x21daad[_0x1b86e7(0x1b8)]))return _0x285ac4['terminalReason']??_0x1b86e7(0x119);if(_0x285ac4[_0x1b86e7(0x16c)]==='verification_in_progress')return _0x21daad[_0x1b86e7(0x14b)];return _0x285ac4['status'];}function getScenarioRationale(_0x13835d,_0x443da8){const _0x285b76=_0x2de799,_0x385e57={'nzYfn':'0|3|5|4|2|1'},_0x2eac68=_0x385e57[_0x285b76(0x1af)][_0x285b76(0x184)]('|');let _0x19c0e4=0x0;while(!![]){switch(_0x2eac68[_0x19c0e4++]){case'0':if(_0x443da8)return _0x443da8;continue;case'1':return null;case'2':if(_0x13835d['notes'])return _0x13835d['notes'];continue;case'3':if(_0x13835d['blockedReason'])return _0x13835d[_0x285b76(0x129)];continue;case'4':if(_0x13835d[_0x285b76(0x14a)])return _0x13835d['canceledReason'];continue;case'5':if(_0x13835d[_0x285b76(0x17d)])return _0x13835d['incompleteReason'];continue;}break;}}export async function featureReportPrDescription(_0x42f7b9,_0x3a6a82){const _0xe8ab5=_0x2de799,_0x143f52={'euSNE':function(_0x256fba,_0x35b902){return _0x256fba(_0x35b902);},'ATvpH':function(_0x3b86eb,_0x593319,_0xbdd860){return _0x3b86eb(_0x593319,_0xbdd860);},'oNtXc':function(_0x3e8c20,_0xa4659f){return _0x3e8c20>_0xa4659f;},'AwmGv':function(_0xf037f6,_0x5e2024,_0x431307,_0x4385a8){return _0xf037f6(_0x5e2024,_0x431307,_0x4385a8);}},_0x3c5cd8=_0x42f7b9||await getActiveFeatureId();if(!_0x3c5cd8)throw new Error(_0xe8ab5(0x1da));const _0x398548=await _0x143f52[_0xe8ab5(0x13d)](getFeature,_0x3c5cd8),_0x238812=_0x398548[_0xe8ab5(0x146)]||[],_0x5c6b46=_0x143f52[_0xe8ab5(0x186)](getCurrentSessionItems,_0x398548,_0x238812);_0x5c6b46[_0xe8ab5(0x1a0)]===0x0&&(console[_0xe8ab5(0x1c2)](_0xe8ab5(0x1ae)),process['exit'](0x1));const _0x287f36=_0x3a6a82[_0xe8ab5(0x1e3)]??[],_0x385e09=_0x287f36[_0xe8ab5(0x167)](_0x5b6cf7=>!Number['isInteger'](_0x5b6cf7)||_0x5b6cf7<0x1||_0x5b6cf7>_0x5c6b46[_0xe8ab5(0x1a0)]);if(_0x143f52['oNtXc'](_0x385e09['length'],0x0)){console['error'](_0xe8ab5(0x159)+_0x385e09[_0xe8ab5(0x1ac)](',\x20')),console['log']('\x0aAvailable\x20scenarios:');for(let _0xe26649=0x0;_0xe26649<_0x5c6b46[_0xe8ab5(0x1a0)];_0xe26649++){console['log']('\x20\x20'+(_0xe26649+0x1)+'.\x20'+_0x5c6b46[_0xe26649]['description']);}process[_0xe8ab5(0x17f)](0x1);}const _0x51751e=new Set(_0x287f36[_0xe8ab5(0x1ab)](_0x240d7e=>_0x240d7e-0x1)),_0x1e3e3d=_0x5c6b46['filter']((_0x50b29e,_0x479dea)=>!_0x51751e['has'](_0x479dea));_0x1e3e3d[_0xe8ab5(0x1a0)]===0x0&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x3a6a82['json'])await _0x143f52[_0xe8ab5(0x11b)](outputJsonReport,_0x3c5cd8,_0x398548,_0x1e3e3d);else{const _0x716424=await getFeatureReportMarkdown(_0x3c5cd8,{'itemIds':_0x1e3e3d['map'](_0x5e4a52=>_0x5e4a52['id'])});process[_0xe8ab5(0x12a)]['write'](_0x716424[_0xe8ab5(0x183)]()+'\x0a');}}async function outputJsonReport(_0x912873,_0x1d89d6,_0x19b10e){const _0x20c4bc=_0x2de799,_0xfefa93={'DiXyM':function(_0x49a85f,_0x271718){return _0x49a85f(_0x271718);},'XVVSp':function(_0x128488,_0x4679b1){return _0x128488>_0x4679b1;},'HVPZw':function(_0x426e49,_0x25c1c2){return _0x426e49(_0x25c1c2);},'SxnZm':function(_0x138b64,_0x57453a,_0x5d7220){return _0x138b64(_0x57453a,_0x5d7220);}},_0xcb5cf4=getApiBaseUrl(),_0x20a88e=await getFeatureReport(_0x912873),_0x58bf44=new Map(_0x20a88e['checklistItems']['map'](_0x4d8c5e=>[_0x4d8c5e['id'],_0x4d8c5e])),_0x43de65=await Promise['all'](_0x19b10e[_0x20c4bc(0x1ab)](async _0x12d926=>{const _0x24dbf3=_0x20c4bc,_0x4b1570=_0x58bf44[_0x24dbf3(0x144)](_0x12d926['id']),_0x3a698c=_0x4b1570?.['linkedSession']??null;let _0x49938d=[];if(_0x12d926['browserSessionId'])try{const {steps:_0x5dd5b5}=await _0xfefa93['DiXyM'](getBrowserSessionSteps,_0x12d926[_0x24dbf3(0x1d4)]);_0xfefa93['XVVSp'](_0x5dd5b5['length'],0x0)&&(_0x49938d=_0x5dd5b5[_0x24dbf3(0x1ab)](_0x22e832=>{const _0x2ce72d=_0x24dbf3,_0xc032f8=_0x22e832['assets'][_0x2ce72d(0x196)](_0x285e11=>_0x285e11['assetType']===_0x2ce72d(0x1b1)&&_0x285e11['timing']==='after')??_0x22e832[_0x2ce72d(0x14c)]['find'](_0x16cef1=>_0x16cef1['assetType']===_0x2ce72d(0x1b1));let _0x675151=null,_0x3b626b=null;if(_0xc032f8){const _0x5d8e65=_0xc032f8[_0x2ce72d(0x174)]['location']['split']('/')['pop']();_0x675151=_0xcb5cf4+'/api/v1/mcp/browser-sessions/'+_0x12d926['browserSessionId']+'/artifacts/'+_0x5d8e65,_0x5d8e65&&(_0x3b626b=_0x5d8e65['replace'](/\.\w+$/,'')[_0x2ce72d(0x123)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x3b626b||_0x22e832['description']||_0x22e832['stepName']||'Step\x20'+_0x22e832['position'],'screenshot':_0x675151,'is_key_step':_0x22e832['isKeyStep']};}));}catch{}return _0x49938d['length']===0x0&&_0x3a698c?.[_0x24dbf3(0x1c3)]&&(_0x49938d=_0x3a698c['screenshotUrls'][_0x24dbf3(0x1ab)]((_0xcee53e,_0x1c6ae6)=>({'description':_0x24dbf3(0x176)+(_0x1c6ae6+0x1),'screenshot':_0xcee53e,'is_key_step':![]}))),{'description':_0x12d926[_0x24dbf3(0x15d)],'result':_0xfefa93[_0x24dbf3(0x1a6)](getScenarioResult,_0x12d926),'rationale':_0xfefa93['SxnZm'](getScenarioRationale,_0x12d926,_0x3a698c?.['agentResponse']),'steps':_0x49938d};})),_0x31abee={'url':_0x1d89d6['dashboardUrl'],'scenarios':_0x43de65};process['stdout'][_0x20c4bc(0x13f)](JSON['stringify'](_0x31abee,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x50e378){const _0x150136=_0x2de799,_0x597d03={'rsPne':function(_0x2c0a74){return _0x2c0a74();},'jhtIP':'Current\x20session\x20not\x20found.','hVAbJ':function(_0x5c68a0,_0x41f397){return _0x5c68a0!==_0x41f397;},'UDkIl':function(_0x4070eb,_0x4c1590,_0x1540c5){return _0x4070eb(_0x4c1590,_0x1540c5);}},_0x4e33e6=_0x50e378||await _0x597d03[_0x150136(0x19c)](getActiveFeatureId);if(!_0x4e33e6)throw new Error(_0x150136(0x1ec));const _0x3d0c3f=await getFeature(_0x4e33e6);if(!_0x3d0c3f['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x3bd469}=await listFeatureSessions(_0x4e33e6),_0x37d7b1=_0x3bd469['find'](_0x1f129d=>_0x1f129d['id']===_0x3d0c3f[_0x150136(0x142)]);if(!_0x37d7b1)throw new Error(_0x597d03['jhtIP']);if(_0x37d7b1[_0x150136(0x16c)]===_0x150136(0x1f2)){console[_0x150136(0x163)](_0x150136(0x1cc));return;}if(_0x597d03[_0x150136(0x1bd)](_0x37d7b1[_0x150136(0x16c)],_0x150136(0x149)))throw new Error(_0x150136(0x150)+_0x37d7b1['status']);console[_0x150136(0x163)]('\x0aConcluding\x20session...'),await _0x597d03['UDkIl'](concludeSession,_0x4e33e6,_0x3d0c3f[_0x150136(0x142)]),console[_0x150136(0x163)](_0x150136(0x14f)+_0x37d7b1[_0x150136(0x1ce)]+_0x150136(0x1d5)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4fb1bd){const _0x43a2f4=_0x2de799,_0x39b37d={'uDTdv':_0x43a2f4(0x1da),'fObnB':function(_0xa481ed,_0x401bb4){return _0xa481ed(_0x401bb4);},'DEKob':function(_0xd8f310,_0x568ef9){return _0xd8f310(_0x568ef9);},'qyfyA':'No\x20sessions\x20found.','ezMST':function(_0x3fa1e9,_0x107d2f){return _0x3fa1e9===_0x107d2f;},'EkBKM':_0x43a2f4(0x1f2)},_0x234116=_0x4fb1bd||await getActiveFeatureId();if(!_0x234116)throw new Error(_0x39b37d[_0x43a2f4(0x1ca)]);const _0x3eb863=await _0x39b37d['fObnB'](getFeature,_0x234116);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3eb863['name']+'\x0a');const {sessions:_0x4c915b}=await _0x39b37d[_0x43a2f4(0x11c)](listFeatureSessions,_0x234116);if(_0x4c915b['length']===0x0){console['log'](_0x39b37d['qyfyA']);return;}for(const _0x39b4a9 of _0x4c915b){const _0xdacf6d=_0x39b37d[_0x43a2f4(0x1c0)](_0x39b4a9[_0x43a2f4(0x16c)],_0x39b37d['EkBKM'])?'✅':_0x39b4a9['status']==='in_progress'?'🔄':'▶️';console['log'](_0xdacf6d+'\x20Session\x20'+_0x39b4a9[_0x43a2f4(0x1ce)]+'\x20('+_0x39b4a9['id']+')'),console[_0x43a2f4(0x163)]('\x20\x20\x20Status:\x20'+_0x39b4a9[_0x43a2f4(0x16c)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x39b4a9[_0x43a2f4(0x18e)])['toLocaleString']()),_0x39b4a9['completedAt']&&console['log'](_0x43a2f4(0x1e5)+new Date(_0x39b4a9['completedAt'])[_0x43a2f4(0x13e)]()),console[_0x43a2f4(0x163)]('');}}export async function featureAddScenario(_0x3451e6,_0x3c1aaa){const _0x2cfc8d=_0x2de799,_0x36d55d={'SEdqw':function(_0x311342){return _0x311342();},'TgxgJ':function(_0x239818,_0x5aa383){return _0x239818(_0x5aa383);},'aEDeH':function(_0x1b3b2a,_0xe6c44f,_0x21522c){return _0x1b3b2a(_0xe6c44f,_0x21522c);}},_0x95777c=_0x3c1aaa||await _0x36d55d['SEdqw'](getActiveFeatureId);if(!_0x95777c)throw new Error(_0x2cfc8d(0x1ec));const _0x858113=await _0x36d55d['TgxgJ'](getFeature,_0x95777c);if(_0x858113['latestReview']&&!_0x858113['latestReview']['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x858113[_0x2cfc8d(0x1c9)]);await createChecklistItem(_0x95777c,_0x3451e6);const _0x30cff5=await getFeature(_0x95777c);console['log']('\x0a✅\x20Scenario\x20added'),_0x36d55d['aEDeH'](displayFeature,_0x30cff5,_0x30cff5['checklistItems']);}export async function featureEditScenario(_0xb77cc8,_0x1c5b62){const _0x4ce355=_0x2de799,_0x5a407={'Pobor':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','OuvIe':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ZUznZ':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','RFMmu':'Please\x20finish\x20your\x20review\x20first:','JESyK':function(_0x15328e,_0x4821e7){return _0x15328e===_0x4821e7;},'eRlWl':_0x4ce355(0x1c1),'plLsi':function(_0x47cbcf,_0x5607fa){return _0x47cbcf-_0x5607fa;},'QsLlb':function(_0x302604,_0x4ad3e1){return _0x302604<_0x4ad3e1;},'PIDVX':function(_0x49ae18,_0x7b8d9c){return _0x49ae18>=_0x7b8d9c;},'AQXah':_0x4ce355(0x16f),'QTrvH':function(_0x3f1c37,_0xaf3cda){return _0x3f1c37+_0xaf3cda;},'Khojw':function(_0x594011,_0x3a4aa1,_0x880ac4,_0x15fff2){return _0x594011(_0x3a4aa1,_0x880ac4,_0x15fff2);},'OAHOE':function(_0x1b7135,_0x26af2f){return _0x1b7135(_0x26af2f);}},_0x22e09a=_0x1c5b62['id']||await getActiveFeatureId();!_0x22e09a&&(console[_0x4ce355(0x1c2)](_0x5a407['Pobor']),console[_0x4ce355(0x1c2)](_0x5a407['OuvIe']),process['exit'](0x1));const _0x349d40=await getFeature(_0x22e09a);_0x349d40[_0x4ce355(0x12f)]&&!_0x349d40[_0x4ce355(0x12f)]['submittedAt']&&(console['error'](_0x5a407[_0x4ce355(0x12b)]),console['error'](_0x5a407[_0x4ce355(0x1b9)]),console['error']('\x20\x20'+_0x349d40['dashboardUrl']),process[_0x4ce355(0x17f)](0x1));const _0x42e6d2=_0x349d40['checklistItems']||[];_0x42e6d2['length']===0x0&&(console['error'](_0x4ce355(0x14d)),process['exit'](0x1));if(_0x5a407['JESyK'](_0x1c5b62['scenario'],undefined)){console['error'](_0x5a407['eRlWl']),console['log']('\x0aAvailable\x20scenarios:');for(let _0x5aee62=0x0;_0x5aee62<_0x42e6d2[_0x4ce355(0x1a0)];_0x5aee62++){console[_0x4ce355(0x163)]('\x20\x20'+(_0x5aee62+0x1)+'.\x20'+_0x42e6d2[_0x5aee62]['description']);}process[_0x4ce355(0x17f)](0x1);}const _0x1ffbd4=_0x5a407['plLsi'](_0x1c5b62[_0x4ce355(0x1c4)],0x1);if(_0x5a407['QsLlb'](_0x1ffbd4,0x0)||_0x5a407[_0x4ce355(0x1db)](_0x1ffbd4,_0x42e6d2[_0x4ce355(0x1a0)])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x1c5b62[_0x4ce355(0x1c4)]+_0x4ce355(0x1f1)+_0x42e6d2['length']+_0x4ce355(0x1e9)),console['log'](_0x5a407[_0x4ce355(0x14e)]);for(let _0x4be5b9=0x0;_0x5a407[_0x4ce355(0x137)](_0x4be5b9,_0x42e6d2[_0x4ce355(0x1a0)]);_0x4be5b9++){console['log']('\x20\x20'+_0x5a407[_0x4ce355(0x15b)](_0x4be5b9,0x1)+'.\x20'+_0x42e6d2[_0x4be5b9][_0x4ce355(0x15d)]);}process[_0x4ce355(0x17f)](0x1);}const _0x698f02=_0x42e6d2[_0x1ffbd4];await _0x5a407[_0x4ce355(0x157)](updateChecklistItem,_0x22e09a,_0x698f02['id'],{'description':_0xb77cc8});const _0x54c042=await _0x5a407[_0x4ce355(0x182)](getFeature,_0x22e09a);console[_0x4ce355(0x163)](_0x4ce355(0x17e)),displayFeature(_0x54c042,_0x54c042['checklistItems']);}async function downloadFeedbackImage(_0x506742,_0x35cbf8){const _0x4fb16c=_0x2de799,_0x45492a={'sMbPL':function(_0x19a376,_0x42b823,_0x809ec5){return _0x19a376(_0x42b823,_0x809ec5);},'PONIc':_0x4fb16c(0x192),'zosnB':function(_0x243235,_0x47cd77){return _0x243235(_0x47cd77);},'TMIaV':function(_0x2060e4,_0x10a630,_0x283134){return _0x2060e4(_0x10a630,_0x283134);}};try{const _0x1227cc=_0x45492a[_0x4fb16c(0x154)](join,getRangerDir(),_0x45492a['PONIc']);await mkdir(_0x1227cc,{'recursive':!![]});const _0x53693b=join(_0x1227cc,'comment_'+_0x35cbf8+'.png'),_0x422753=await _0x45492a['zosnB'](fetch,_0x506742);if(!_0x422753['ok'])return null;const _0x269191=Buffer[_0x4fb16c(0x147)](await _0x422753[_0x4fb16c(0x1b5)]());return await _0x45492a['TMIaV'](writeFile,_0x53693b,_0x269191),_0x53693b;}catch{return null;}}export async function featureGetReview(_0x5a54b6){const _0x1e53f8=_0x2de799,_0x5a967c={'HeKpj':_0x1e53f8(0x1ec),'XxCvZ':function(_0x1ee902,_0x472943){return _0x1ee902(_0x472943);},'IBLRm':function(_0x5a75fb,_0x17ab70){return _0x5a75fb===_0x17ab70;},'AuGYQ':_0x1e53f8(0x1c5),'NjyqB':function(_0x385a2f,_0x107ef8){return _0x385a2f<_0x107ef8;},'XCsvO':function(_0x1bd39f,_0x9a40a3){return _0x1bd39f>_0x9a40a3;},'artxB':'short','huTeB':_0x1e53f8(0x134),'SLgfA':_0x1e53f8(0x189),'YSZPr':_0x1e53f8(0x1b6),'FPGbj':function(_0x1a3903,_0x20f9bf){return _0x1a3903>=_0x20f9bf;},'fHWwJ':function(_0x167057,_0x149e24){return _0x167057+_0x149e24;}},_0x1d7148=_0x5a54b6||await getActiveFeatureId();if(!_0x1d7148)throw new Error(_0x5a967c['HeKpj']);const _0x27f95f=await _0x5a967c[_0x1e53f8(0x17c)](getFeature,_0x1d7148),{items:_0x2b4c6e}=await getActionItems(_0x1d7148);console[_0x1e53f8(0x163)]('\x0a📋\x20Feedback\x20for:\x20'+_0x27f95f['name']+'\x20('+_0x27f95f['id']+')\x0a');if(_0x5a967c[_0x1e53f8(0x19d)](_0x2b4c6e['length'],0x0)){console[_0x1e53f8(0x163)](_0x5a967c[_0x1e53f8(0x135)]);return;}for(let _0x5d08c7=0x0;_0x5a967c['NjyqB'](_0x5d08c7,_0x2b4c6e['length']);_0x5d08c7++){const _0x802920=_0x2b4c6e[_0x5d08c7],_0x73c2ff=_0x5a967c[_0x1e53f8(0x1a1)](_0x802920['version'],0x1)?_0x1e53f8(0x145)+_0x802920[_0x1e53f8(0x122)]+')':'',_0x517871=await getItemFeedback(_0x1d7148,_0x802920['id']);if(_0x517871[_0x1e53f8(0x193)][_0x1e53f8(0x1a0)]>0x0){console[_0x1e53f8(0x163)]('Scenario\x20'+(_0x5d08c7+0x1)+':\x20\x22'+_0x802920[_0x1e53f8(0x15d)]+'\x22'+_0x73c2ff+'\x20—\x20'+_0x517871[_0x1e53f8(0x193)][_0x1e53f8(0x1a0)]+_0x1e53f8(0x136));for(const _0x2a8ac6 of _0x517871['unaddressedComments']){const _0x53e04b=new Date(_0x2a8ac6[_0x1e53f8(0x18e)])[_0x1e53f8(0x171)](_0x1e53f8(0x1c6),{'month':_0x5a967c[_0x1e53f8(0x1b4)],'day':_0x5a967c[_0x1e53f8(0x161)]}),_0x124ad0=_0x2a8ac6[_0x1e53f8(0x1cb)]||_0x2a8ac6['authorEmail']||_0x1e53f8(0x11e);console[_0x1e53f8(0x163)](_0x1e53f8(0x1d3)+_0x124ad0+'\x20('+_0x53e04b+_0x1e53f8(0x172)+_0x2a8ac6['content']+'\x22');if(_0x2a8ac6[_0x1e53f8(0x18d)]){const _0x5512a8=await downloadFeedbackImage(_0x2a8ac6[_0x1e53f8(0x18d)],_0x2a8ac6['id']);_0x5512a8&&console['log'](_0x1e53f8(0x19a)+_0x5512a8);}if(_0x2a8ac6['domRef']){const _0x2de2fd=_0x2a8ac6['domRef'][_0x1e53f8(0x1ad)]['split'](_0x5a967c[_0x1e53f8(0x197)])[_0x1e53f8(0x11a)]()?.['split'](':')[0x0]||_0x5a967c['YSZPr'],_0x1a1987=_0x2a8ac6['domRef']['textContent']?'\x20\x22'+_0x2a8ac6['domRef']['textContent'][_0x1e53f8(0x170)](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x2de2fd+'>'+_0x1a1987),console[_0x1e53f8(0x163)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x2a8ac6['domRef']['selector']);}else{if(_0x2a8ac6['spatial']){const _0x2c85fe=_0x2a8ac6[_0x1e53f8(0x155)][_0x1e53f8(0x133)];_0x5a967c[_0x1e53f8(0x19d)](_0x2a8ac6[_0x1e53f8(0x155)]['type'],'point')&&_0x5a967c['FPGbj'](_0x2c85fe['length'],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x2c85fe[0x0]['toFixed'](0x2)+',\x20'+_0x2c85fe[0x1]['toFixed'](0x2)+')'):console[_0x1e53f8(0x163)](_0x1e53f8(0x1b7)+_0x2a8ac6['spatial'][_0x1e53f8(0x12e)]+'\x20at\x20['+_0x2c85fe[_0x1e53f8(0x1ab)](_0x126c58=>_0x126c58[_0x1e53f8(0x1d8)](0x2))['join'](',\x20')+']');}}}if(_0x517871[_0x1e53f8(0x12c)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x598b25 of _0x517871['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x598b25);}}}else console['log']('Scenario\x20'+_0x5a967c['fHWwJ'](_0x5d08c7,0x1)+':\x20\x22'+_0x802920[_0x1e53f8(0x15d)]+'\x22'+_0x73c2ff+'\x20—\x20no\x20comments'),console[_0x1e53f8(0x163)](_0x1e53f8(0x191));console[_0x1e53f8(0x163)]('');}}export async function featureDelete(_0x671f42){const _0x557821=_0x2de799,_0x31de4e={'GLJXF':_0x557821(0x1ec),'HvoyT':_0x557821(0x1e1)},_0x124bad=_0x671f42||await getActiveFeatureId();if(!_0x124bad)throw new Error(_0x31de4e[_0x557821(0x1d6)]);const _0x4daf8a=await getFeature(_0x124bad);await softDeleteFeature(_0x124bad),console['log'](_0x557821(0x1ea)+_0x4daf8a[_0x557821(0x1b3)]+'\x20('+_0x124bad+')'),console['log'](_0x31de4e[_0x557821(0x17a)]+_0x124bad);}export async function featureRestore(_0x442596){const _0x2ec679=_0x2de799,_0x28c38c={'BNunF':function(_0x2d111d,_0x2da73d){return _0x2d111d(_0x2da73d);}};await _0x28c38c['BNunF'](restoreFeature,_0x442596);const _0x102d7f=await _0x28c38c['BNunF'](getFeature,_0x442596);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x102d7f[_0x2ec679(0x1b3)]+'\x20('+_0x442596+')'),displayFeature(_0x102d7f,_0x102d7f[_0x2ec679(0x146)]);}
|
|
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)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x34fb(_0x31e785,_0x4574db){_0x31e785=_0x31e785-0x15d;const _0xca51e9=_0xca51();let _0x34fbd3=_0xca51e9[_0x31e785];return _0x34fbd3;}(function(_0x4dba69,_0x392651){const _0x3c2698=_0x34fb,_0x1d265b=_0x4dba69();while(!![]){try{const _0x829e5c=parseInt(_0x3c2698(0x16f))/0x1+parseInt(_0x3c2698(0x15f))/0x2*(-parseInt(_0x3c2698(0x167))/0x3)+-parseInt(_0x3c2698(0x169))/0x4*(parseInt(_0x3c2698(0x16c))/0x5)+parseInt(_0x3c2698(0x162))/0x6*(-parseInt(_0x3c2698(0x161))/0x7)+parseInt(_0x3c2698(0x16d))/0x8*(parseInt(_0x3c2698(0x163))/0x9)+parseInt(_0x3c2698(0x164))/0xa*(parseInt(_0x3c2698(0x166))/0xb)+parseInt(_0x3c2698(0x160))/0xc*(parseInt(_0x3c2698(0x165))/0xd);if(_0x829e5c===_0x392651)break;else _0x1d265b['push'](_0x1d265b['shift']());}catch(_0x51e535){_0x1d265b['push'](_0x1d265b['shift']());}}}(_0xca51,0x4b5c4));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0xca51(){const _0x6d348a=['324512LiOigZ','840stcYIG','7ygemob','2621196LwUtrm','19251RujnFo','70xeYNyQ','88231FUVsyc','42537XFWckE','3fzckke','join','496924jCEtoT','exit','keys','5MIsxWF','1808OXYGsa','wBJId','46456SUboko','error','once','SIGTERM'];_0xca51=function(){return _0x6d348a;};return _0xca51();}const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x14eb3e=_0x34fb;if(cancellationHandlersInstalled)return;const _0x2ffbf1=()=>{const _0x4c811f=_0x34fb;process[_0x4c811f(0x16a)](0x0);};process['once']('SIGINT',_0x2ffbf1),process[_0x14eb3e(0x15d)](_0x14eb3e(0x15e),_0x2ffbf1),process[_0x14eb3e(0x15d)]('SIGHUP',_0x2ffbf1),cancellationHandlersInstalled=!![];}export async function hook(_0x6e0366,_0x2ead70){const _0x22dbbb=_0x34fb,_0x5ea442={'wBJId':function(_0x4e1f41,_0x4c1695){return _0x4e1f41(_0x4c1695);}};installCancellationHandlers();const _0x11e1ea=HOOKS[_0x6e0366];if(!_0x11e1ea){const _0xb77b90=Object[_0x22dbbb(0x16b)](HOOKS)[_0x22dbbb(0x168)](',\x20');console[_0x22dbbb(0x170)]('Unknown\x20hook:\x20'+_0x6e0366),console[_0x22dbbb(0x170)]('Valid\x20hooks:\x20'+_0xb77b90),process[_0x22dbbb(0x16a)](0x1);}await _0x5ea442[_0x22dbbb(0x16e)](_0x11e1ea,_0x2ead70);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x19f210,_0x12f4b0){const _0x4be623=_0x30d3,_0x2f2b3a=_0x19f210();while(!![]){try{const _0x473b08=-parseInt(_0x4be623(0x158))/0x1*(-parseInt(_0x4be623(0x15a))/0x2)+-parseInt(_0x4be623(0x156))/0x3*(-parseInt(_0x4be623(0x166))/0x4)+parseInt(_0x4be623(0x15d))/0x5+-parseInt(_0x4be623(0x159))/0x6*(-parseInt(_0x4be623(0x15f))/0x7)+-parseInt(_0x4be623(0x163))/0x8*(parseInt(_0x4be623(0x161))/0x9)+-parseInt(_0x4be623(0x15e))/0xa*(parseInt(_0x4be623(0x157))/0xb)+-parseInt(_0x4be623(0x167))/0xc;if(_0x473b08===_0x12f4b0)break;else _0x2f2b3a['push'](_0x2f2b3a['shift']());}catch(_0x389cb3){_0x2f2b3a['push'](_0x2f2b3a['shift']());}}}(_0x2eda,0x28593));function _0x2eda(){const _0x4a5ef3=['51090BZlFDR','10aWtVPw','98XqFfGA','YQiuR','7794vDKJSL','FJhVx','928PsPDFS','log','OufwX','7452LrNzPK','5411964Urxqwa','321pMzMrO','991782fVxrTK','685DBhFUo','124182TCCluQ','898pFCUWR','TZKed','fkVNK'];_0x2eda=function(){return _0x4a5ef3;};return _0x2eda();}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x30d3(_0x18c901,_0x51de8b){_0x18c901=_0x18c901-0x156;const _0x2eda05=_0x2eda();let _0x30d372=_0x2eda05[_0x18c901];return _0x30d372;}import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';export async function autoPrompt(){const _0x577a21=_0x30d3,_0x217c59={'FJhVx':function(_0x1812d3,_0x51fb2a){return _0x1812d3===_0x51fb2a;},'YQiuR':'off','TZKed':function(_0x55cd27){return _0x55cd27();},'fkVNK':function(_0x5346c7,_0x1f4bd7){return _0x5346c7(_0x1f4bd7);},'OufwX':function(_0x11bdac,_0x27c003){return _0x11bdac(_0x27c003);}};if(_0x217c59[_0x577a21(0x162)](resolveHookMode(),_0x217c59[_0x577a21(0x160)]))return;const _0x263508=await _0x217c59[_0x577a21(0x15b)](readHookInput),_0x9c8c20=_0x263508?.['session_id'];if(!_0x9c8c20)return;if(_0x217c59[_0x577a21(0x15c)](isSessionEnabled,_0x9c8c20)||_0x217c59[_0x577a21(0x15c)](hasSessionBeenPrompted,_0x9c8c20))return;_0x217c59[_0x577a21(0x165)](markSessionPrompted,_0x9c8c20),console[_0x577a21(0x164)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2e49(_0x4a4459,_0x3bbbaa){_0x4a4459=_0x4a4459-0xb2;const _0xa7b356=_0xa7b3();let _0x2e49b0=_0xa7b356[_0x4a4459];return _0x2e49b0;}(function(_0x43b2fd,_0x1598e7){const _0x3bc0e0=_0x2e49,_0x53f67e=_0x43b2fd();while(!![]){try{const _0x26f9ea=parseInt(_0x3bc0e0(0xbb))/0x1*(-parseInt(_0x3bc0e0(0xc0))/0x2)+-parseInt(_0x3bc0e0(0xbf))/0x3*(parseInt(_0x3bc0e0(0xba))/0x4)+parseInt(_0x3bc0e0(0xb7))/0x5+-parseInt(_0x3bc0e0(0xb5))/0x6*(-parseInt(_0x3bc0e0(0xb9))/0x7)+-parseInt(_0x3bc0e0(0xb2))/0x8+parseInt(_0x3bc0e0(0xc2))/0x9*(-parseInt(_0x3bc0e0(0xc1))/0xa)+-parseInt(_0x3bc0e0(0xbe))/0xb*(-parseInt(_0x3bc0e0(0xb8))/0xc);if(_0x26f9ea===_0x1598e7)break;else _0x53f67e['push'](_0x53f67e['shift']());}catch(_0x10bbd9){_0x53f67e['push'](_0x53f67e['shift']());}}}(_0xa7b3,0x63542));function _0xa7b3(){const _0x27b050=['TgDac','master','33HhYIAn','395637CegFcF','2126HzZQBp','10QPEkef','3648609HboqpT','3728456yUAkKA','mZOUX','CLAUDE_SESSION_ID','2041026GVQdQd','main','854485dffjHj','5488572alWCld','14LEFzbF','4UevCHE','765qyaHhp'];_0xa7b3=function(){return _0x27b050;};return _0xa7b3();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x3027be){const _0x23a69c=_0x2e49,_0x118484={'PRauZ':function(_0x2cbf96,_0x5eb858){return _0x2cbf96(_0x5eb858);},'YriSb':function(_0x24ca6c){return _0x24ca6c();},'WXyeL':function(_0x57f8e7,_0x56f421){return _0x57f8e7!==_0x56f421;},'mZOUX':_0x23a69c(0xb6),'TgDac':function(_0xd8dbb6,_0x45b8e2){return _0xd8dbb6!==_0x45b8e2;},'yjRSP':function(_0x5026ac,_0x4040cb){return _0x5026ac!==_0x4040cb;}},_0x84c0c2=_0x3027be||process['env'][_0x23a69c(0xb4)]||'';_0x84c0c2&&_0x118484['PRauZ'](disableSession,_0x84c0c2);const _0x4b75cd=_0x118484['YriSb'](getCurrentBranch);_0x4b75cd&&_0x118484['WXyeL'](_0x4b75cd,_0x118484['mZOUX'])&&_0x118484[_0x23a69c(0xbc)](_0x4b75cd,'master')&&disableBranch(_0x4b75cd),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x4b75cd&&_0x4b75cd!==_0x118484[_0x23a69c(0xb3)]&&_0x118484['yjRSP'](_0x4b75cd,_0x23a69c(0xbd))?'\x20and\x20branch\x20\x27'+_0x4b75cd+'\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(_0x37a26f,_0x3d6360){const _0xf917b8=_0x1b57,_0x1927a6=_0x37a26f();while(!![]){try{const _0x2ef439=parseInt(_0xf917b8(0x149))/0x1*(parseInt(_0xf917b8(0x140))/0x2)+-parseInt(_0xf917b8(0x153))/0x3*(parseInt(_0xf917b8(0x146))/0x4)+-parseInt(_0xf917b8(0x141))/0x5*(-parseInt(_0xf917b8(0x144))/0x6)+parseInt(_0xf917b8(0x151))/0x7*(-parseInt(_0xf917b8(0x13f))/0x8)+-parseInt(_0xf917b8(0x143))/0x9+-parseInt(_0xf917b8(0x14c))/0xa+parseInt(_0xf917b8(0x14d))/0xb*(parseInt(_0xf917b8(0x152))/0xc);if(_0x2ef439===_0x3d6360)break;else _0x1927a6['push'](_0x1927a6['shift']());}catch(_0x5eab29){_0x1927a6['push'](_0x1927a6['shift']());}}}(_0x47eb,0xa7903));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x47eb(){const _0x427dd9=['XKosk','master','9484410zpzHwk','21579734lypnfW','#\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`','ranger\x20setup\x20--opencode','UUTSr','16807zwVcyU','12IvjRpw','519rsAodz','ranger\x20setup','1616SCaPFv','1158ZjQrAu','305CPeAZO','#\x20RANGER\x20ENABLED','1418778baoUaK','122946oxVFxL','CLAUDE_SESSION_ID','22232mvEPDy','env','cIjpY','47VKVphD'];_0x47eb=function(){return _0x427dd9;};return _0x47eb();}import{getRangerSkillContent}from'../utils/skillContent.js';function _0x1b57(_0x12dff2,_0x3aa77d){_0x12dff2=_0x12dff2-0x13e;const _0x47eb0a=_0x47eb();let _0x1b57b2=_0x47eb0a[_0x12dff2];return _0x1b57b2;}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x484b19){const _0x45b09b=_0x1b57,_0x5201b3={'PhJZz':_0x45b09b(0x14f),'GyUAa':_0x45b09b(0x13e),'XKosk':function(_0x96f168,_0x3ef034){return _0x96f168(_0x3ef034);},'cIjpY':function(_0x5cbaa4,_0x5aa4e7){return _0x5cbaa4!==_0x5aa4e7;},'UUTSr':function(_0xeffee3,_0x88308d){return _0xeffee3!==_0x88308d;}},_0x253d84=_0x484b19||process[_0x45b09b(0x147)][_0x45b09b(0x145)]||'',_0x46b55c=Boolean(_0x484b19),_0x2993c3=await getToken();if(!_0x2993c3){const _0x2ea981=_0x46b55c?_0x5201b3['PhJZz']:_0x5201b3['GyUAa'],_0x5ba0f7=_0x46b55c?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x5201b3[_0x45b09b(0x14a)](printBlock,_0x45b09b(0x14e)+_0x2ea981+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x5ba0f7);return;}try{await update();}catch{}_0x253d84&&enableSession(_0x253d84);const _0x44f2a3=getCurrentBranch(),_0x2ad73d=_0x44f2a3&&_0x5201b3[_0x45b09b(0x148)](_0x44f2a3,'main')&&_0x5201b3[_0x45b09b(0x150)](_0x44f2a3,_0x45b09b(0x14b))?'\x0a\x0a**Branch\x20\x27'+_0x44f2a3+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x2fbb8f=getRangerSkillContent();_0x5201b3[_0x45b09b(0x14a)](printBlock,_0x45b09b(0x142)+_0x2ad73d+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x2fbb8f+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x26fb(){const _0x444d65=['467110HjIrnW','155253ZgAFOL','7VdIbhg','2xoChAH','3581106mRAVah','586674aSgjye','40edtBJy','76kbwItu','===\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===','33tLmIGB','154090boEmDB','YCJrd','703983HzAQHL','7419288feoQhr'];_0x26fb=function(){return _0x444d65;};return _0x26fb();}(function(_0x31bc64,_0x1ae249){const _0x2da649=_0x1689,_0x2628df=_0x31bc64();while(!![]){try{const _0x479b87=parseInt(_0x2da649(0x149))/0x1+parseInt(_0x2da649(0x140))/0x2*(parseInt(_0x2da649(0x13e))/0x3)+parseInt(_0x2da649(0x144))/0x4*(parseInt(_0x2da649(0x147))/0x5)+parseInt(_0x2da649(0x141))/0x6*(parseInt(_0x2da649(0x13f))/0x7)+-parseInt(_0x2da649(0x143))/0x8*(-parseInt(_0x2da649(0x142))/0x9)+-parseInt(_0x2da649(0x13d))/0xa+parseInt(_0x2da649(0x146))/0xb*(-parseInt(_0x2da649(0x14a))/0xc);if(_0x479b87===_0x1ae249)break;else _0x2628df['push'](_0x2628df['shift']());}catch(_0x5b3062){_0x2628df['push'](_0x2628df['shift']());}}}(_0x26fb,0x5881c));import{printBlock,getEnabledSessionId}from'./output.js';function _0x1689(_0x3f4f4c,_0x2f9b03){_0x3f4f4c=_0x3f4f4c-0x13d;const _0x26fb69=_0x26fb();let _0x168974=_0x26fb69[_0x3f4f4c];return _0x168974;}export async function exitPlanMode(_0x5049ff){const _0x24d8f9=_0x1689,_0x90cf05={'YCJrd':function(_0x2705d4,_0x1cb31f){return _0x2705d4(_0x1cb31f);}},_0x42e006=await _0x90cf05[_0x24d8f9(0x148)](getEnabledSessionId,_0x5049ff);if(!_0x42e006)return;printBlock(_0x24d8f9(0x145));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3e84(){var _0x2f2b0b=['3100980CNTHCE','822141ckiKTx','72DFpXXs','24otTZyf','565530azcanA','164aNrBFg','31865KivHYH','433065hbFSSs','165137oxHRXG','8KMdVEp','33gzIjQz','21932qTBjqR','26eAupaY'];_0x3e84=function(){return _0x2f2b0b;};return _0x3e84();}(function(_0x530c7c,_0x2ed054){var _0x340424=_0x4049,_0x339563=_0x530c7c();while(!![]){try{var _0x51b06e=parseInt(_0x340424(0xc6))/0x1*(parseInt(_0x340424(0xce))/0x2)+parseInt(_0x340424(0xca))/0x3+-parseInt(_0x340424(0xc8))/0x4*(-parseInt(_0x340424(0xc9))/0x5)+-parseInt(_0x340424(0xd2))/0x6*(-parseInt(_0x340424(0xcb))/0x7)+-parseInt(_0x340424(0xcc))/0x8*(parseInt(_0x340424(0xd1))/0x9)+parseInt(_0x340424(0xc7))/0xa*(-parseInt(_0x340424(0xcd))/0xb)+parseInt(_0x340424(0xd0))/0xc*(-parseInt(_0x340424(0xcf))/0xd);if(_0x51b06e===_0x2ed054)break;else _0x339563['push'](_0x339563['shift']());}catch(_0x23c7d7){_0x339563['push'](_0x339563['shift']());}}}(_0x3e84,0x2a806));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';function _0x4049(_0x566331,_0x325a38){_0x566331=_0x566331-0xc6;var _0x3e8407=_0x3e84();var _0x404909=_0x3e8407[_0x566331];return _0x404909;}export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4983e1,_0x4f7234){const _0x59980e=_0x158f,_0x2c9739=_0x4983e1();while(!![]){try{const _0x5b680f=parseInt(_0x59980e(0x85))/0x1*(-parseInt(_0x59980e(0x82))/0x2)+-parseInt(_0x59980e(0x7a))/0x3+-parseInt(_0x59980e(0x7b))/0x4*(parseInt(_0x59980e(0x79))/0x5)+parseInt(_0x59980e(0x81))/0x6+-parseInt(_0x59980e(0x7f))/0x7+-parseInt(_0x59980e(0x86))/0x8+-parseInt(_0x59980e(0x83))/0x9*(-parseInt(_0x59980e(0x7c))/0xa);if(_0x5b680f===_0x4f7234)break;else _0x2c9739['push'](_0x2c9739['shift']());}catch(_0x29bf59){_0x2c9739['push'](_0x2c9739['shift']());}}}(_0x4cff,0x51d18));import{isSessionEnabled}from'../utils/sessionCache.js';function _0x158f(_0x15be7c,_0x26706e){_0x15be7c=_0x15be7c-0x78;const _0x4cff78=_0x4cff();let _0x158f1b=_0x4cff78[_0x15be7c];return _0x158f1b;}export function printBlock(_0x17e7f5){const _0x488b13=_0x158f;console[_0x488b13(0x84)](_0x17e7f5);}function _0x4cff(){const _0x34bf35=['log','2wuIopT','1995200yOXfqF','stdin','1761470bYdPxl','1019037tOuObI','4EWjmop','15749890FtMSBj','KghtW','session_id','353801DVfpcH','trim','1345506ZTTyQQ','472196uplKsE','9piiJjs'];_0x4cff=function(){return _0x34bf35;};return _0x4cff();}export async function readHookInput(){const _0x1fb156=_0x158f;let _0x34f867='';try{for await(const _0x30db20 of process[_0x1fb156(0x78)]){_0x34f867+=_0x30db20;}}catch{return null;}if(!_0x34f867[_0x1fb156(0x80)]())return null;try{return JSON['parse'](_0x34f867);}catch{return null;}}export async function getEnabledSessionId(_0x12ecec){const _0x4f4827=_0x158f,_0x1f03d0={'KghtW':function(_0x4bc72c){return _0x4bc72c();}};if(_0x12ecec)return isSessionEnabled(_0x12ecec)?_0x12ecec:null;const _0x410c6c=await _0x1f03d0[_0x4f4827(0x7d)](readHookInput),_0x2df69d=_0x410c6c?.[_0x4f4827(0x7e)];if(!_0x2df69d||!isSessionEnabled(_0x2df69d))return null;return _0x2df69d;}export async function getEnabledHookContext(_0x2ceca7){const _0x2d04a8=_0x158f,_0x4710fa={'RShZR':function(_0x2d8baa,_0x3a192d){return _0x2d8baa(_0x3a192d);},'TMGww':function(_0x15ee13,_0x28113a){return _0x15ee13(_0x28113a);}};if(_0x2ceca7){if(!_0x4710fa['RShZR'](isSessionEnabled,_0x2ceca7))return null;return{'sessionId':_0x2ceca7,'input':{'session_id':_0x2ceca7}};}const _0x203bd0=await readHookInput(),_0x4eec30=_0x203bd0?.[_0x2d04a8(0x7e)];if(!_0x4eec30||!_0x4710fa['TMGww'](isSessionEnabled,_0x4eec30))return null;return{'sessionId':_0x4eec30,'input':_0x203bd0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x55cf(_0x3733a6,_0x5bc7f1){_0x3733a6=_0x3733a6-0x1a3;const _0x34e84a=_0x34e8();let _0x55cfee=_0x34e84a[_0x3733a6];return _0x55cfee;}(function(_0x275ceb,_0x5a5cf7){const _0x15fdfb=_0x55cf,_0x4b411a=_0x275ceb();while(!![]){try{const _0x381329=parseInt(_0x15fdfb(0x1a5))/0x1*(parseInt(_0x15fdfb(0x1aa))/0x2)+-parseInt(_0x15fdfb(0x1ad))/0x3*(parseInt(_0x15fdfb(0x1ae))/0x4)+parseInt(_0x15fdfb(0x1a9))/0x5*(-parseInt(_0x15fdfb(0x1a3))/0x6)+-parseInt(_0x15fdfb(0x1af))/0x7*(parseInt(_0x15fdfb(0x1a8))/0x8)+-parseInt(_0x15fdfb(0x1ab))/0x9*(-parseInt(_0x15fdfb(0x1b2))/0xa)+-parseInt(_0x15fdfb(0x1b3))/0xb*(parseInt(_0x15fdfb(0x1b1))/0xc)+parseInt(_0x15fdfb(0x1a4))/0xd;if(_0x381329===_0x5a5cf7)break;else _0x4b411a['push'](_0x4b411a['shift']());}catch(_0x206de4){_0x4b411a['push'](_0x4b411a['shift']());}}}(_0x34e8,0xb10cf));function _0x34e8(){const _0x21e39c=['6444ahstcu','22523631lQrUXE','878831IYxuvs','===\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===','sessionId','4805088piIKuJ','5040WfwgsI','2rzVKVR','54207FInRdA','plan','166524zUtUrD','96bLtVXI','7jmnpsh','NTjmd','6456INQQjA','1890bnEIDt','187muGkjD'];_0x34e8=function(){return _0x21e39c;};return _0x34e8();}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x2c90f1){const _0x24ed91=_0x55cf,_0x553bf8={'HyQwg':_0x24ed91(0x1ac),'NTjmd':function(_0x1503f3,_0x2dfb37){return _0x1503f3(_0x2dfb37);}},_0x10603d=await getEnabledHookContext(_0x2c90f1);if(!_0x10603d)return;if(_0x10603d['input']['permission_mode']!==_0x553bf8['HyQwg'])return;if(!shouldShowPlanReminder(_0x10603d[_0x24ed91(0x1a7)]))return;_0x553bf8[_0x24ed91(0x1b0)](printBlock,_0x24ed91(0x1a6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2afd(){const _0x3efdea=['4178152WzeJXw','2XWIFly','===\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===','9376deIIkJ','9079248IwdEIR','1502013DTSIqe','2495UvQXEu','1681003kdpMDs','31939434ZcpHkP','10395553EjysdO'];_0x2afd=function(){return _0x3efdea;};return _0x2afd();}function _0x7e11(_0x1d0597,_0x15c607){_0x1d0597=_0x1d0597-0x7c;const _0x2afdfe=_0x2afd();let _0x7e1186=_0x2afdfe[_0x1d0597];return _0x7e1186;}(function(_0x50fa36,_0x522a88){const _0x3e8d3c=_0x7e11,_0x4fb458=_0x50fa36();while(!![]){try{const _0x4f558f=parseInt(_0x3e8d3c(0x81))/0x1+parseInt(_0x3e8d3c(0x85))/0x2*(parseInt(_0x3e8d3c(0x7f))/0x3)+parseInt(_0x3e8d3c(0x7d))/0x4*(-parseInt(_0x3e8d3c(0x80))/0x5)+parseInt(_0x3e8d3c(0x7e))/0x6+parseInt(_0x3e8d3c(0x83))/0x7+parseInt(_0x3e8d3c(0x84))/0x8+-parseInt(_0x3e8d3c(0x82))/0x9;if(_0x4f558f===_0x522a88)break;else _0x4fb458['push'](_0x4fb458['shift']());}catch(_0x1a2686){_0x4fb458['push'](_0x4fb458['shift']());}}}(_0x2afd,0xf02c4));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x52ae4d){const _0x15ef24=_0x7e11,_0x53a5cc=await getEnabledSessionId(_0x52ae4d);if(!_0x53a5cc)return;printBlock(_0x15ef24(0x7c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b5f41,_0x5f0d1d){const _0x27a62a=_0x29c3,_0x2eb8ee=_0x5b5f41();while(!![]){try{const _0x3fdf09=parseInt(_0x27a62a(0x1c8))/0x1*(-parseInt(_0x27a62a(0x1cb))/0x2)+-parseInt(_0x27a62a(0x1cd))/0x3*(parseInt(_0x27a62a(0x1cc))/0x4)+parseInt(_0x27a62a(0x1c7))/0x5+parseInt(_0x27a62a(0x1ca))/0x6+-parseInt(_0x27a62a(0x1d1))/0x7+parseInt(_0x27a62a(0x1c9))/0x8*(-parseInt(_0x27a62a(0x1c6))/0x9)+parseInt(_0x27a62a(0x1ce))/0xa;if(_0x3fdf09===_0x5f0d1d)break;else _0x2eb8ee['push'](_0x2eb8ee['shift']());}catch(_0x2ebdf2){_0x2eb8ee['push'](_0x2eb8ee['shift']());}}}(_0x3ca0,0x467a6));function _0x29c3(_0xee5c10,_0x344e07){_0xee5c10=_0xee5c10-0x1c5;const _0x3ca029=_0x3ca0();let _0x29c396=_0x3ca029[_0xee5c10];return _0x29c396;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x3ca0(){const _0x411237=['225JKHqmZ','2117405UvjXZM','175aCVQKd','111096kEoDBU','437484SLPKpU','6518RFXKOi','8xfDswE','659967BDdqxi','15066280ArxVSB','stringify','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.','2498069YEeCtE','PostToolUse','log'];_0x3ca0=function(){return _0x411237;};return _0x3ca0();}export async function postEdit(_0x132314){const _0x11953e=_0x29c3,_0x51a7a7={'Ygwws':function(_0x46d44d,_0x1ac51c){return _0x46d44d(_0x1ac51c);},'bpmbg':_0x11953e(0x1d2)},_0x6d1982=await getEnabledSessionId(_0x132314);if(!_0x6d1982)return;updateBranchTracking(_0x6d1982);const _0x471b63=await getToken();if(!_0x471b63)return;const _0x26d817=_0x51a7a7['Ygwws'](getSessionEntry,_0x6d1982);if(_0x26d817){const _0x15d38d={'hookSpecificOutput':{'hookEventName':_0x51a7a7['bpmbg'],'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console[_0x11953e(0x1c5)](JSON[_0x11953e(0x1cf)](_0x15d38d));return;}const _0x232386={'hookSpecificOutput':{'hookEventName':_0x51a7a7['bpmbg'],'additionalContext':_0x11953e(0x1d0)}};console['log'](JSON['stringify'](_0x232386));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5aa5(){const _0x3cd173=['3086070pXPbMS','10AINNNJ','495gUrkzO','71JXoLdd','3KzIXKS','236EZClbN','3072503agPAhb','14389573fQTivH','55280OhzGKZ','3817048LMNGuA','MPhZG','32552FRIdko'];_0x5aa5=function(){return _0x3cd173;};return _0x5aa5();}(function(_0x4b82af,_0x8c8df2){const _0x3a0dbc=_0x4994,_0x5e7ac3=_0x4b82af();while(!![]){try{const _0x178977=-parseInt(_0x3a0dbc(0xc3))/0x1*(parseInt(_0x3a0dbc(0xc5))/0x2)+parseInt(_0x3a0dbc(0xc4))/0x3*(-parseInt(_0x3a0dbc(0xbd))/0x4)+parseInt(_0x3a0dbc(0xbc))/0x5+-parseInt(_0x3a0dbc(0xc0))/0x6+parseInt(_0x3a0dbc(0xc6))/0x7+-parseInt(_0x3a0dbc(0xbf))/0x8*(-parseInt(_0x3a0dbc(0xc2))/0x9)+-parseInt(_0x3a0dbc(0xc1))/0xa*(-parseInt(_0x3a0dbc(0xc7))/0xb);if(_0x178977===_0x8c8df2)break;else _0x5e7ac3['push'](_0x5e7ac3['shift']());}catch(_0x95e5b){_0x5e7ac3['push'](_0x5e7ac3['shift']());}}}(_0x5aa5,0x7b46a));import{getToken}from'../utils/keychain.js';function _0x4994(_0x546b37,_0x1b28b5){_0x546b37=_0x546b37-0xbc;const _0x5aa520=_0x5aa5();let _0x499451=_0x5aa520[_0x546b37];return _0x499451;}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0xa29b4){const _0x468b74=_0x4994,_0x41301b={'MPhZG':function(_0x548b59){return _0x548b59();}},_0x3ca9f6=await getEnabledSessionId(_0xa29b4);if(!_0x3ca9f6)return;try{const _0x2c1609=await _0x41301b[_0x468b74(0xbe)](getToken);if(!_0x2c1609)return;printBlock('===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27476d,_0x363b1b){const _0x4701eb=_0x5c34,_0x481ff5=_0x27476d();while(!![]){try{const _0x44a64c=parseInt(_0x4701eb(0x13c))/0x1*(-parseInt(_0x4701eb(0x139))/0x2)+-parseInt(_0x4701eb(0x134))/0x3*(-parseInt(_0x4701eb(0x137))/0x4)+-parseInt(_0x4701eb(0x13d))/0x5*(-parseInt(_0x4701eb(0x13b))/0x6)+-parseInt(_0x4701eb(0x138))/0x7+parseInt(_0x4701eb(0x132))/0x8*(parseInt(_0x4701eb(0x135))/0x9)+parseInt(_0x4701eb(0x136))/0xa+-parseInt(_0x4701eb(0x131))/0xb;if(_0x44a64c===_0x363b1b)break;else _0x481ff5['push'](_0x481ff5['shift']());}catch(_0x44ebed){_0x481ff5['push'](_0x481ff5['shift']());}}}(_0x164e,0xdd5bb));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x164e(){const _0x214430=['1950GgiGgs','2047bfmakC','19315DRqosU','PERqU','7336307VIJMki','103256LcSYUE','clear','3TzRBuS','1260lkuNGm','4329690JUyFcn','4205752fyDOGK','11025987UZnIuc','1366eBXQcj','session_id'];_0x164e=function(){return _0x214430;};return _0x164e();}function _0x5c34(_0x4debb2,_0x4c58ed){_0x4debb2=_0x4debb2-0x131;const _0x164eea=_0x164e();let _0x5c3448=_0x164eea[_0x4debb2];return _0x5c3448;}import{readHookInput}from'./output.js';export async function sessionEnd(_0xb74df9){const _0x4add95=_0x5c34,_0x24d22c={'PERqU':function(_0x1dc529,_0x4bac18){return _0x1dc529===_0x4bac18;},'yNtvJ':_0x4add95(0x133)},_0x3b70cd=process['env']['CLAUDE_SESSION_ID'];let _0x24a859=_0xb74df9,_0x1e29af;if(!_0xb74df9){if(_0x3b70cd&&!isSessionEnabled(_0x3b70cd))return;const _0x27c762=await readHookInput();_0x24a859=_0x27c762?.[_0x4add95(0x13a)]||_0x3b70cd,_0x1e29af=_0x27c762?.['reason'];}if(!_0x24a859)return;_0x24d22c[_0x4add95(0x13e)](_0x1e29af,_0x24d22c['yNtvJ'])&&recordEnabledSessionCleared(_0x24a859);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4abddf,_0x540d82){const _0x238b51=_0x1ca9,_0x3961d2=_0x4abddf();while(!![]){try{const _0x49c8bf=-parseInt(_0x238b51(0x110))/0x1+parseInt(_0x238b51(0x11d))/0x2*(parseInt(_0x238b51(0x112))/0x3)+-parseInt(_0x238b51(0x123))/0x4*(-parseInt(_0x238b51(0x113))/0x5)+parseInt(_0x238b51(0x11a))/0x6+-parseInt(_0x238b51(0x117))/0x7+-parseInt(_0x238b51(0x125))/0x8+parseInt(_0x238b51(0x111))/0x9*(parseInt(_0x238b51(0x122))/0xa);if(_0x49c8bf===_0x540d82)break;else _0x3961d2['push'](_0x3961d2['shift']());}catch(_0x115ea8){_0x3961d2['push'](_0x3961d2['shift']());}}}(_0x2609,0x7019f));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x2609(){const _0x32900e=['TAksk','bMZAS','5313780uzFclu','CLAUDE_ENV_FILE','export\x20CLAUDE_SESSION_ID=\x22','2ohYvsg','XQgRx','stringify','env','trackCommandEnd','20nktIEz','4AYmpcm','success','3577480yHCSHJ','oIJyf','190773cVZdHS','256023oMSWFA','61851gAOSWY','2677700giRPYK','log','KoFOK','vzSSH','2810892XluoIk'];_0x2609=function(){return _0x32900e;};return _0x2609();}function _0x1ca9(_0x1addb1,_0x38944c){_0x1addb1=_0x1addb1-0x110;const _0x26092b=_0x2609();let _0x1ca9a3=_0x26092b[_0x1addb1];return _0x1ca9a3;}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(_0x5f08bc){const _0x3d3d91=_0x1ca9,_0x4b4774={'aCglW':function(_0x290488,_0x108520){return _0x290488||_0x108520;},'oIJyf':'source','bMZAS':function(_0x2e8142,_0x3ec22e){return _0x2e8142&&_0x3ec22e;},'KoFOK':function(_0x47e391,_0x1572eb){return _0x47e391(_0x1572eb);},'gjoes':function(_0x5be8bd,_0x5b4289){return _0x5be8bd===_0x5b4289;},'mQDQZ':function(_0x121882,_0x2abf35){return _0x121882(_0x2abf35);},'xYysx':'hook:session-start','eBhaY':_0x3d3d91(0x124),'vzSSH':function(_0x25e0b2,_0x373c29){return _0x25e0b2!==_0x373c29;},'XQgRx':'master','TAksk':function(_0x37ba67,_0x3fd803){return _0x37ba67+_0x3fd803;}};let _0x53fa1e=_0x4b4774['aCglW'](_0x5f08bc,''),_0x4ede15;if(!_0x5f08bc){let _0x3a86c9='';for await(const _0x5af1ce of process['stdin']){_0x3a86c9+=_0x5af1ce;}try{const _0x36cf48=JSON['parse'](_0x3a86c9);_0x53fa1e=_0x36cf48['session_id']||'',_0x4ede15=_0x36cf48[_0x4b4774[_0x3d3d91(0x126)]];}catch{}const _0x45f9e2=process[_0x3d3d91(0x120)][_0x3d3d91(0x11b)];if(_0x4b4774[_0x3d3d91(0x119)](_0x45f9e2,_0x53fa1e))try{await appendFile(_0x45f9e2,_0x3d3d91(0x11c)+_0x53fa1e+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x53fa1e){shouldAutoEnableAfterClear(_0x4ede15)&&_0x4b4774[_0x3d3d91(0x115)](autoEnableAfterClear,_0x53fa1e);initBranchTracking(_0x53fa1e);_0x4b4774['gjoes'](resolveHookMode(),'on')&&_0x4b4774['mQDQZ'](enableSession,_0x53fa1e);const _0x38bfa7=isSessionEnabled(_0x53fa1e);try{const _0x38a6cf=createTelemetryCollector(_0x4b4774['xYysx']);await _0x38a6cf['trackCommandStart']({'sessionId':_0x53fa1e,'hooksEnabled':_0x38bfa7}),await _0x38a6cf[_0x3d3d91(0x121)](_0x4b4774['eBhaY']);}catch{}if(_0x38bfa7){const _0x38d64e=getCurrentBranch(),_0x588d34=_0x38d64e&&_0x4b4774['vzSSH'](_0x38d64e,'main')&&_0x4b4774[_0x3d3d91(0x116)](_0x38d64e,_0x4b4774[_0x3d3d91(0x11e)])?'\x20(Branch:\x20'+_0x38d64e+')':'',_0x4292d8={'hookSpecificOutput':{'hookEventName':'SessionStart','additionalContext':_0x4b4774[_0x3d3d91(0x118)](RANGER_AUTO_ENABLED_PROMPT,_0x588d34)}};console[_0x3d3d91(0x114)](JSON[_0x3d3d91(0x11f)](_0x4292d8));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e1d88,_0x140cda){const _0x31d0ba=_0xfaaa,_0x1576e4=_0x3e1d88();while(!![]){try{const _0x16661d=-parseInt(_0x31d0ba(0x19b))/0x1+-parseInt(_0x31d0ba(0x19c))/0x2*(parseInt(_0x31d0ba(0x192))/0x3)+parseInt(_0x31d0ba(0x18d))/0x4+-parseInt(_0x31d0ba(0x199))/0x5*(-parseInt(_0x31d0ba(0x18a))/0x6)+-parseInt(_0x31d0ba(0x197))/0x7*(-parseInt(_0x31d0ba(0x194))/0x8)+parseInt(_0x31d0ba(0x185))/0x9*(-parseInt(_0x31d0ba(0x186))/0xa)+-parseInt(_0x31d0ba(0x18b))/0xb*(-parseInt(_0x31d0ba(0x198))/0xc);if(_0x16661d===_0x140cda)break;else _0x1576e4['push'](_0x1576e4['shift']());}catch(_0x597574){_0x1576e4['push'](_0x1576e4['shift']());}}}(_0x4ca1,0xda8cb));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';function _0xfaaa(_0x1cdb15,_0x348e91){_0x1cdb15=_0x1cdb15-0x185;const _0x4ca1bb=_0x4ca1();let _0xfaaafd=_0x4ca1bb[_0x1cdb15];return _0xfaaafd;}import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';function _0x4ca1(){const _0x18f2d8=['2080904QXWJCI','currentSessionId','sessionId','closed','status','109671daMPTA','blocked','1266976hPLqrI','some','verification_in_progress','56NGZHjN','785220LQFfkh','35TjLFFf','mRWRF','1621165oicEov','32UBRJRw','335205WvYdCt','450ezNdyV','incomplete','checklistItems','iLuvu','1441182tialOw','220LIozmy','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'];_0x4ca1=function(){return _0x18f2d8;};return _0x4ca1();}import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x1b4726){const _0x26f98f=_0xfaaa,_0x17727a={'gKtYV':function(_0xd212eb,_0x17c07a,_0x17cb81,_0x184399){return _0xd212eb(_0x17c07a,_0x17cb81,_0x184399);},'gBPKx':function(_0x4df891){return _0x4df891();},'uVNTd':function(_0xbd707,_0x7e86ed){return _0xbd707(_0x7e86ed);},'pqCiF':'Stop','iLuvu':function(_0x316d46,_0x3f36ef,_0x1c05f0){return _0x316d46(_0x3f36ef,_0x1c05f0);},'oOwZv':function(_0x552d71,_0x457d3e,_0x1ffa5b,_0xfdee07){return _0x552d71(_0x457d3e,_0x1ffa5b,_0xfdee07);}},_0x4be017=await getEnabledHookContext(_0x1b4726),_0x1627ee=_0x4be017?.['sessionId']??null;let _0xf22a66=!![];if(!_0x1627ee){await trackStop(_0x1627ee,![],_0xf22a66);return;}try{const _0x7165b3=getSessionEntry(_0x1627ee);if(!_0x7165b3){await _0x17727a['gKtYV'](trackStop,_0x1627ee,!![],_0xf22a66);return;}const _0x2b25c6=await _0x17727a['gBPKx'](getToken),_0x47ae2a='https://dashboard.ranger.net/features/'+_0x7165b3['featureId'];let _0x33fa1e=null,_0x4877f2=![],_0x1c02b0=![];if(_0x2b25c6)try{const _0x1ccebb=await getFeature(_0x7165b3['featureId']);_0x33fa1e=_0x1ccebb[_0x26f98f(0x18e)]??null;const _0x4f8125=_0x1ccebb[_0x26f98f(0x188)]['filter'](_0x1c6c02=>_0x1c6c02[_0x26f98f(0x18f)]===_0x33fa1e);_0x4877f2=_0x4f8125['some'](_0x3d9d4b=>_0x3d9d4b['status']!=='verified'&&_0x3d9d4b['status']!==_0x26f98f(0x193)&&_0x3d9d4b[_0x26f98f(0x191)]!==_0x26f98f(0x190)&&_0x3d9d4b['status']!==_0x26f98f(0x187)),_0x1c02b0=_0x4f8125[_0x26f98f(0x195)](_0x14d5e1=>_0x14d5e1[_0x26f98f(0x191)]===_0x26f98f(0x196));}catch{}if(_0x2b25c6&&_0x33fa1e&&_0x4877f2){if(!_0x1c02b0&&_0x17727a['uVNTd'](shouldShowStopReminder,_0x1627ee)){const _0x20f337={'hookSpecificOutput':{'hookEventName':_0x17727a['pqCiF'],'additionalContext':_0x26f98f(0x18c)+_0x47ae2a}};console['log'](JSON['stringify'](_0x20f337));}}if(_0x2b25c6&&_0x33fa1e&&!_0x4877f2)try{await _0x17727a[_0x26f98f(0x189)](concludeSession,_0x7165b3['featureId'],_0x33fa1e);}catch{}await trackStop(_0x1627ee,!![],_0xf22a66);return;}catch{await _0x17727a['oOwZv'](trackStop,_0x1627ee,!![],_0xf22a66);return;}}async function trackStop(_0x355a55,_0x25911d,_0x4ff232){const _0xe9c982=_0xfaaa,_0x4fac45={'mRWRF':function(_0xd57ac9,_0x386cac){return _0xd57ac9(_0x386cac);},'CUUmC':function(_0x5bc58e,_0x1c9779){return _0x5bc58e??_0x1c9779;}};try{const _0xba010f=_0x4fac45[_0xe9c982(0x19a)](createTelemetryCollector,'hook:stop');await _0xba010f['trackCommandStart']({'sessionId':_0x4fac45['CUUmC'](_0x355a55,undefined),'hooksEnabled':_0x25911d,'stopAllowed':_0x4ff232}),await _0xba010f['trackCommandEnd']('success');}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3f3ac6,_0x104200){var _0x5f302c=_0xbeb1,_0x427361=_0x3f3ac6();while(!![]){try{var _0x512761=parseInt(_0x5f302c(0xb2))/0x1*(parseInt(_0x5f302c(0xad))/0x2)+-parseInt(_0x5f302c(0xb1))/0x3+parseInt(_0x5f302c(0xb0))/0x4+-parseInt(_0x5f302c(0xaf))/0x5+-parseInt(_0x5f302c(0xab))/0x6+parseInt(_0x5f302c(0xae))/0x7+parseInt(_0x5f302c(0xac))/0x8;if(_0x512761===_0x104200)break;else _0x427361['push'](_0x427361['shift']());}catch(_0x30318a){_0x427361['push'](_0x427361['shift']());}}}(_0x1f92,0x718c4));function _0x1f92(){var _0x10cfce=['2285790zPtqau','5587024IxuQaV','2BQamrR','743211FHuoHS','376180UWLaMm','1510364oJXtEh','1695978XAERzK','304477PNdyHJ'];_0x1f92=function(){return _0x10cfce;};return _0x1f92();}export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';function _0xbeb1(_0x516393,_0x3d07a5){_0x516393=_0x516393-0xab;var _0x1f9254=_0x1f92();var _0xbeb122=_0x1f9254[_0x516393];return _0xbeb122;}export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
|