@ranger-testing/ranger-cli 3.1.4-alpha.fb796e7-45 → 3.1.4-alpha.ffeeafe-46
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 -0
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5d6635=_0x20f5;(function(_0x4718b4,_0x19d5e6){const _0x1f90a0=_0x20f5,_0x4b73ed=_0x4718b4();while(!![]){try{const _0x1d08e4=-parseInt(_0x1f90a0(0x1b7))/0x1*(-parseInt(_0x1f90a0(0x143))/0x2)+parseInt(_0x1f90a0(0x15b))/0x3*(-parseInt(_0x1f90a0(0xfb))/0x4)+parseInt(_0x1f90a0(0x1a9))/0x5+-parseInt(_0x1f90a0(0x112))/0x6+parseInt(_0x1f90a0(0xe7))/0x7*(parseInt(_0x1f90a0(0xfe))/0x8)+-parseInt(_0x1f90a0(0x129))/0x9+parseInt(_0x1f90a0(0x1c2))/0xa*(parseInt(_0x1f90a0(0xee))/0xb);if(_0x1d08e4===_0x19d5e6)break;else _0x4b73ed['push'](_0x4b73ed['shift']());}catch(_0x43878b){_0x4b73ed['push'](_0x4b73ed['shift']());}}}(_0x1c7c,0xf1b83));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x42c5fc from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x5d6635(0x179),bold=_0xb7b9b=>_0x5d6635(0x13e)+_0xb7b9b+_0x5d6635(0xff);function _0x20f5(_0x51af9e,_0x40903e){_0x51af9e=_0x51af9e-0xdd;const _0x1c7c4f=_0x1c7c();let _0x20f5a8=_0x1c7c4f[_0x51af9e];return _0x20f5a8;}function getGitRepoUrl(){const _0x19ac00=_0x5d6635,_0x34cdd8={'csqJh':'pipe','EYtUA':'github.com/'};try{const _0x3b1998=execSync('git\x20remote\x20get-url\x20origin',{'encoding':'utf-8','stdio':[_0x34cdd8[_0x19ac00(0x127)],'pipe',_0x19ac00(0x12c)]})[_0x19ac00(0x11c)]();return _0x3b1998[_0x19ac00(0xfd)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x34cdd8[_0x19ac00(0x189)])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x51a723=_0x5d6635,_0x580b22={'ctHUy':function(_0x4a1aa3,_0x1841a5,_0x22d484){return _0x4a1aa3(_0x1841a5,_0x22d484);},'eVRKs':'pipe'};try{return _0x580b22[_0x51a723(0x140)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x51a723(0x13d),'stdio':[_0x580b22['eVRKs'],_0x580b22['eVRKs'],'pipe']})[_0x51a723(0x11c)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x54cee6=_0x5d6635,_0x428206={'WSrbz':function(_0x3456f1,_0x41bfd8,_0x1fca3f){return _0x3456f1(_0x41bfd8,_0x1fca3f);}},_0x212ee4=_0x428206[_0x54cee6(0x130)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x212ee4))return null;try{const _0x5ef5c0=await readFile(_0x212ee4,_0x54cee6(0x13d));return _0x5ef5c0['trim']()||null;}catch{return null;}}function _0x1c7c(){const _0x9f729d=['\x20unaddressed\x20comment(s)','kcXBc','beIXd','exit','foBJk','52dYBtpV','parentItemId','replace','8734536pMnDeS','\x1b[0m','HbDGG','isTTY','name','.png','\x20at\x20[','ldrLu','any','authorName','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','...','uLEnb','OuRya','scenarios','ShWKV','scenario','toFixed','\x0a\x20\x20\x20Scenarios:','tduKl','220806qMJglK','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','spatial','OUBoV','Not\x20in\x20a\x20git\x20repository.','has','content','):\x20\x22','split','\x20—\x20','trim','IpxES','incomplete','OYIVA','tqEdU','CLAUDE_SESSION_ID','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','timing','\x20of\x20','approved','filter','csqJh','\x20--include-deleted','1908567gPRMIm','verificationInProgressItems','closed','pipe','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','blockedReason','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','WSrbz','\x0aConcluding\x20session...','flcpb','\x0a✅\x20Session\x20','fkotI','\x20[has\x20reviewer\x20feedback]','canonicalFlow','Current\x20session\x20not\x20found.','arrayBuffer','completed','short','trimEnd','LGIbU','utf-8','\x1b[1m','\x20\x20\x20\x20\x20📋\x20Selector:\x20','ctHUy','push','bTfXr','58kLYgTI','ARNhD','\x20\x20\x20\x20\x20\x20Approved','description','all','completedAt','toLocaleString','GgVyr','stdout','env','WHCws','includeDeleted','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','KHsQX','cluRb','stats','linkedSession','coordinates','\x20(v','storage','gljRV','\x20scenario(s).','\x20\x20\x20Updated\x20branch\x20to:\x20','No\x20sessions\x20found.','397983czcALP','/api/v1/mcp/browser-sessions/','uOfsQ','unaddressedComments','\x0a✅\x20Restored\x20feature\x20review:\x20','json','items','lLJFp','aIcGR','\x20\x20\x20Description:\x20','point','Unknown','CPYjl','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','dashboardUrl','RANGER_TEST_USERNAME','sessionId','adVjG','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','bOUuS','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','after','Screenshot\x20','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','FNqsK','.md','xHZpb','FKrev','sBjqj','No\x20active\x20session\x20for\x20this\x20feature\x20review.','active-feature.txt','Jozom','iteration','bwild','\x20Session\x20','gitBranch','\x20\x20\x20\x20\x20\x20Incomplete:\x20','error','verifiedItems','\x20\x20\x20Branch:\x20','CsAsD','wgOcu','uLXRk','\x0a✅\x20Report\x20generated:\x20','Step\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','EYtUA','offset','prompt','BHANJ','LlXSo','.\x20Feature\x20review\x20has\x20','assetUrl','SjGfD','SemOO','log','\x20\x20\x20Progress:\x20','createdAt','\x0a✅\x20Session\x20is\x20already\x20completed.','\x20\x20\x20\x20\x20ID:\x20','MyrTY','uXRoZ','No\x20scenarios\x20found.','notes','NQWHZ','currentBranch','currentSessionId','bogHk','\x0aNo\x20feature\x20reviews\x20found.','Cannot\x20conclude\x20session\x20with\x20status:\x20','xFwJS','incompleteReason','mcqNS','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.',':\x20\x22','GWapF','element','WKgaX','1420840nMZjyh','rDyoj','in_progress','StNhW','\x20\x20\x20Created:\x20','from','style','XEESc','find','BGrVK','yZGyR','XqLye','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x20\x20\x20Status:\x20','38293gixtej','\x20\x20\x20\x20\x20Progress:\x20','\x20concluded.','\x20verified','domRef','version','/artifacts/','verification_in_progress','JLlKM','Tmvno','\x0aAvailable\x20scenarios:','10DsGovh','\x20blocked','\x20scenarios.','sMCFI','isInteger','aDiHy','output','\x20in\x20progress','blocked','fdOxz','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','round','verified','\x0a✅\x20Feature\x20review\x20created:\x20','bWRfx','screenshot','\x20\x20✅\x20No\x20feedback\x20to\x20address','length','7ktNOtf','DeKXd','iWjZr','status','lHNJA','checklistItems','UyIIQ','5247638UsXFqh','blockedItems','\x0aGenerating\x20report...','uXhAr','Showing\x20','map','\x0a❌\x20Invalid\x20scenario\x20index:\x20','stdin'];_0x1c7c=function(){return _0x9f729d;};return _0x1c7c();}async function setActiveFeatureId(_0x4493db){const _0x469c26=_0x5d6635,_0x18d302={'aPPaN':function(_0x23ad8d,_0x635b5a){return _0x23ad8d(_0x635b5a);},'NpvAW':function(_0x228ca7,_0xb724cf,_0x1e998e,_0x2ff5fb){return _0x228ca7(_0xb724cf,_0x1e998e,_0x2ff5fb);}},_0x13781b=getRangerDir(),_0x3b12e0=join(_0x13781b,ACTIVE_FEATURE_FILE);!_0x18d302['aPPaN'](existsSync,_0x13781b)&&await mkdir(_0x13781b,{'recursive':!![]}),await _0x18d302['NpvAW'](writeFile,_0x3b12e0,_0x4493db,_0x469c26(0x13d));}function getProgressDisplay(_0x42625f){const _0x1fc22d=_0x5d6635,_0x367e01={'xJuCa':function(_0x3b3271,_0x17d307){return _0x3b3271+_0x17d307;},'OuRya':function(_0x54858f,_0x4b53b7){return _0x54858f===_0x4b53b7;},'fSRlp':function(_0xe75e15,_0x53f6b1){return _0xe75e15*_0x53f6b1;},'uxPJj':function(_0x11e3db,_0x597607){return _0x11e3db/_0x597607;},'LGIbU':function(_0x45cf72,_0x43742c){return _0x45cf72-_0x43742c;},'phOVY':function(_0x2da949,_0x12fa5c){return _0x2da949>_0x12fa5c;},'uLEnb':function(_0x189e44,_0x445eeb){return _0x189e44>_0x445eeb;}},_0x5e4943=_0x42625f[_0x1fc22d(0x181)]||0x0,_0x343a60=_0x42625f[_0x1fc22d(0x12a)]||0x0,_0x19152a=_0x42625f[_0x1fc22d(0xef)]||0x0,_0x5ccc4d=_0x42625f['incompleteItems']||0x0,_0x5db9b8=_0x42625f['pendingItems']||0x0,_0x88f812=_0x367e01['xJuCa'](_0x367e01['xJuCa'](_0x5e4943,_0x343a60)+_0x19152a,_0x5ccc4d)+_0x5db9b8;if(_0x367e01[_0x1fc22d(0x10b)](_0x88f812,0x0))return'-';const _0x40008=0xa,_0x148f25=Math[_0x1fc22d(0xe0)](_0x367e01['fSRlp'](_0x367e01['uxPJj'](_0x5e4943,_0x88f812),_0x40008)),_0x3cc518='█'['repeat'](_0x148f25)+'░'['repeat'](_0x367e01[_0x1fc22d(0x13c)](_0x40008,_0x148f25)),_0x58a4fa=[];if(_0x19152a>0x0)_0x58a4fa['push'](_0x19152a+_0x1fc22d(0x1c3));if(_0x367e01['phOVY'](_0x5ccc4d,0x0))_0x58a4fa[_0x1fc22d(0x141)](_0x5ccc4d+'\x20incomplete');if(_0x343a60>0x0)_0x58a4fa[_0x1fc22d(0x141)](_0x343a60+_0x1fc22d(0x1c9));const _0x359f1b=_0x367e01[_0x1fc22d(0x10a)](_0x58a4fa[_0x1fc22d(0xe6)],0x0)?'\x20('+_0x58a4fa['join'](',\x20')+')':'';return _0x3cc518+'\x20'+_0x5e4943+'/'+_0x88f812+_0x1fc22d(0x1ba)+_0x359f1b;}function getCurrentSessionItems(_0x5b19a2,_0x284109){const _0x3b592a=_0x5d6635;if(!_0x5b19a2['currentSessionId'])return _0x284109['filter'](_0x54fa20=>!_0x54fa20[_0x3b592a(0x16b)]);return _0x284109['filter'](_0x101dc9=>_0x101dc9[_0x3b592a(0x16b)]===_0x5b19a2['currentSessionId']||!_0x101dc9[_0x3b592a(0x16b)]);}function displayFeature(_0x313a9b,_0x17948){const _0x49bc6a=_0x5d6635,_0x5bb0ff={'zokTY':function(_0x2f3795,_0x2eed66){return _0x2f3795>_0x2eed66;},'MnIMW':_0x49bc6a(0x110),'wgOcu':_0x49bc6a(0x12b),'kcXBc':function(_0x30fe11,_0x45c248){return _0x30fe11===_0x45c248;},'FnPza':'incomplete','UyIIQ':_0x49bc6a(0xdd),'NLVvk':'verification_in_progress','Tmvno':function(_0x2c53b6,_0x257749){return _0x2c53b6>_0x257749;},'MyrTY':function(_0x26ba19,_0x45183b){return _0x26ba19!==_0x45183b;},'sBIjV':'verified','YVlUo':_0x49bc6a(0x135),'VberO':function(_0xfdb9a2,_0x188892){return _0xfdb9a2===_0x188892;},'ldrLu':_0x49bc6a(0x125)};console[_0x49bc6a(0x192)]('\x0a'+_0x313a9b['name']+'\x20('+_0x313a9b['dashboardUrl']+')');_0x313a9b[_0x49bc6a(0x152)]&&console['log'](_0x49bc6a(0x193)+getProgressDisplay(_0x313a9b['stats']));_0x313a9b['description']&&console['log'](_0x49bc6a(0x164)+_0x313a9b['description']);_0x313a9b['gitRepoUrl']&&console['log']('\x20\x20\x20Repository:\x20'+_0x313a9b['gitRepoUrl']);_0x313a9b['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x313a9b[_0x49bc6a(0x17e)]);console[_0x49bc6a(0x192)](_0x49bc6a(0x1ad)+new Date(_0x313a9b['createdAt'])[_0x49bc6a(0x149)]());_0x313a9b[_0x49bc6a(0x148)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x313a9b['completedAt'])[_0x49bc6a(0x149)]());if(_0x17948&&_0x5bb0ff['zokTY'](_0x17948[_0x49bc6a(0xe6)],0x0)){console['log'](_0x5bb0ff['MnIMW']);for(let _0x10d08c=0x0;_0x10d08c<_0x17948['length'];_0x10d08c++){const _0x1a4daa=_0x17948[_0x10d08c];let _0x4ca40f;if(_0x1a4daa['status']===_0x5bb0ff['wgOcu']&&_0x1a4daa['terminalReason']==='approved')_0x4ca40f='✅';else{if(_0x5bb0ff[_0x49bc6a(0xf7)](_0x1a4daa[_0x49bc6a(0xea)],_0x49bc6a(0xe1)))_0x4ca40f='🟢';else{if(_0x1a4daa['status']===_0x5bb0ff['FnPza'])_0x4ca40f='🟠';else{if(_0x1a4daa['status']===_0x5bb0ff[_0x49bc6a(0xed)])_0x4ca40f='🛑';else{if(_0x1a4daa[_0x49bc6a(0xea)]===_0x5bb0ff['wgOcu'])_0x4ca40f='⛔';else _0x5bb0ff[_0x49bc6a(0xf7)](_0x1a4daa[_0x49bc6a(0xea)],_0x5bb0ff['NLVvk'])?_0x4ca40f='⏳':_0x4ca40f='⬜';}}}}const _0x43284c=_0x1a4daa[_0x49bc6a(0x1bc)]>0x1?'\x20(v'+_0x1a4daa[_0x49bc6a(0x1bc)]+')':'',_0x198cf2=_0x5bb0ff[_0x49bc6a(0x1c0)](_0x1a4daa[_0x49bc6a(0x1bc)],0x1)&&_0x1a4daa[_0x49bc6a(0xfc)]&&_0x1a4daa['status']!=='closed'&&_0x5bb0ff[_0x49bc6a(0x197)](_0x1a4daa[_0x49bc6a(0xea)],_0x5bb0ff['sBIjV'])?_0x5bb0ff['YVlUo']:'';console[_0x49bc6a(0x192)]('\x20\x20\x20'+(_0x10d08c+0x1)+'.\x20'+_0x4ca40f+'\x20'+_0x1a4daa['description']+_0x43284c+_0x198cf2);_0x1a4daa[_0x49bc6a(0xea)]===_0x5bb0ff['UyIIQ']&&_0x1a4daa[_0x49bc6a(0x12e)]&&console[_0x49bc6a(0x192)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x1a4daa['blockedReason']);_0x1a4daa['status']===_0x49bc6a(0x11e)&&_0x1a4daa['incompleteReason']&&console[_0x49bc6a(0x192)](_0x49bc6a(0x17f)+_0x1a4daa[_0x49bc6a(0x1a2)]);if(_0x5bb0ff['VberO'](_0x1a4daa['status'],_0x5bb0ff[_0x49bc6a(0x184)])&&_0x5bb0ff['kcXBc'](_0x1a4daa['terminalReason'],_0x5bb0ff[_0x49bc6a(0x105)]))console['log'](_0x49bc6a(0x145));else _0x1a4daa['status']===_0x5bb0ff['wgOcu']&&_0x1a4daa['canceledReason']&&console[_0x49bc6a(0x192)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x1a4daa['canceledReason']);}}}export async function featureCreate(_0x52577f,_0xd7cc3d){const _0x4c2479=_0x5d6635,_0x3980d4={'flcpb':function(_0x328c1b){return _0x328c1b();},'beIXd':function(_0x50aced,_0x39b2f9){return _0x50aced===_0x39b2f9;},'RwOSg':'\x0aCreating\x20feature\x20review...','CPYjl':function(_0x5940dd,_0x31a606,_0x358763){return _0x5940dd(_0x31a606,_0x358763);}},{envNames:_0x1a0586}=await _0x3980d4[_0x4c2479(0x132)](getEnvNames);if(_0x3980d4[_0x4c2479(0xf8)](_0x1a0586['length'],0x0)&&!process[_0x4c2479(0x14c)][_0x4c2479(0x16a)]){let _0x20b1e9=0x0;try{_0x20b1e9=(await _0x3980d4[_0x4c2479(0x132)](listCloudProfiles))['length'];}catch{_0x20b1e9=0x1;}_0x20b1e9===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x22204b=>bold(_0x22204b)));}const _0x10b1d5=_0xd7cc3d['scenarios']?_0xd7cc3d[_0x4c2479(0x10c)][_0x4c2479(0xf3)](_0x26f4c5=>_0x26f4c5[_0x4c2479(0x11c)]()):[],_0x32ab2a=_0x3980d4['flcpb'](getGitRepoUrl),_0x1d7f2f=_0x3980d4['flcpb'](getGitBranch);console[_0x4c2479(0x192)](_0x3980d4['RwOSg']);const _0x15a410=await createFeature({'name':_0x52577f,'description':_0xd7cc3d['description'],'checklist':_0x10b1d5,'gitRepoUrl':_0x32ab2a,'gitBranch':_0x1d7f2f});await setActiveFeatureId(_0x15a410['id']),await tryStartCurrentSession(_0x15a410['id']);const _0x100b4d=process[_0x4c2479(0x14c)]['CLAUDE_SESSION_ID'];_0x100b4d&&_0x3980d4[_0x4c2479(0x167)](registerSession,_0x100b4d,_0x15a410['id']),console[_0x4c2479(0x192)](_0x4c2479(0xe2)+_0x15a410['id']),displayFeature(_0x15a410,_0x15a410[_0x4c2479(0xec)]),console[_0x4c2479(0x192)](_0x4c2479(0x113));}export async function featureList(_0x5b8f3f){const _0x429bb1=_0x5d6635,_0x3321ed={'yZGyR':function(_0x115059){return _0x115059();},'lHNJA':function(_0x3ffb11,_0x4b5ce8){return _0x3ffb11===_0x4b5ce8;},'xFwJS':_0x429bb1(0x19f),'SyuGt':function(_0x510b3b,_0x16ed4b){return _0x510b3b(_0x16ed4b);},'bWRfx':function(_0x52f7da,_0x41715d){return _0x52f7da+_0x41715d;},'GgVyr':function(_0x1536cf,_0x2d63d6){return _0x1536cf<_0x2d63d6;},'FamWo':function(_0x135704,_0x40d3bf){return _0x135704!==_0x40d3bf;},'HVNFC':'\x20--current-branch','gljRV':_0x429bb1(0x128)},_0x4f1f4a={'limit':_0x5b8f3f['limit']??0xa,'offset':_0x5b8f3f[_0x429bb1(0x18a)]??0x0,'includeDeleted':_0x5b8f3f[_0x429bb1(0x14e)]};_0x5b8f3f['currentBranch']&&(_0x4f1f4a['gitRepoUrl']=_0x3321ed[_0x429bb1(0x1b3)](getGitRepoUrl),_0x4f1f4a[_0x429bb1(0x17e)]=getGitBranch());const _0x85fbb=await listFeatures(_0x4f1f4a);if(_0x3321ed[_0x429bb1(0xeb)](_0x85fbb[_0x429bb1(0x161)][_0x429bb1(0xe6)],0x0)){console[_0x429bb1(0x192)](_0x3321ed[_0x429bb1(0x1a1)]);return;}const _0x2bc585=_0x85fbb['totalCount']>_0x85fbb['items'][_0x429bb1(0xe6)]?_0x429bb1(0xf2)+_0x85fbb[_0x429bb1(0x161)][_0x429bb1(0xe6)]+_0x429bb1(0x124)+_0x85fbb['totalCount']:_0x85fbb['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x429bb1(0x192)]('\x0a'+_0x2bc585+':\x0a');for(const _0x24b6ec of _0x85fbb[_0x429bb1(0x161)]){const _0x36d3d8='0|4|3|2|5|1'[_0x429bb1(0x11a)]('|');let _0x4b557d=0x0;while(!![]){switch(_0x36d3d8[_0x4b557d++]){case'0':console['log'](''+_0x24b6ec['name']);continue;case'1':console['log']('');continue;case'2':_0x24b6ec[_0x429bb1(0x17e)]&&console['log'](_0x429bb1(0x182)+_0x24b6ec['gitBranch']);continue;case'3':_0x24b6ec[_0x429bb1(0x152)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x3321ed['SyuGt'](getProgressDisplay,_0x24b6ec['stats']));continue;case'4':console[_0x429bb1(0x192)]('\x20\x20\x20ID:\x20'+_0x24b6ec['id']);continue;case'5':console[_0x429bb1(0x192)](_0x429bb1(0x1ad)+new Date(_0x24b6ec['createdAt'])['toLocaleDateString']());continue;}break;}}const _0x57810b=_0x4f1f4a['limit']??0xa,_0x1a30a9=_0x3321ed[_0x429bb1(0xe3)](_0x4f1f4a['offset']??0x0,_0x85fbb[_0x429bb1(0x161)][_0x429bb1(0xe6)]);if(_0x3321ed[_0x429bb1(0x14a)](_0x1a30a9,_0x85fbb['totalCount'])){const _0x4012b9=_0x3321ed['FamWo'](_0x57810b,0xa)?'\x20--limit\x20'+_0x57810b:'',_0x37e39a=_0x5b8f3f[_0x429bb1(0x19c)]?_0x3321ed['HVNFC']:'',_0x1bab87=_0x5b8f3f['includeDeleted']?_0x3321ed[_0x429bb1(0x157)]:'';console[_0x429bb1(0x192)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x1a30a9+_0x4012b9+_0x37e39a+_0x1bab87);}}export async function featureShow(_0x5db4b){const _0x33b662=_0x5d6635,_0x29d99f={'WHCws':function(_0x4e9369){return _0x4e9369();},'LSwxu':function(_0x2155ef,_0x31e0fb,_0xb77bce){return _0x2155ef(_0x31e0fb,_0xb77bce);}},_0x1b2efd=_0x5db4b||await _0x29d99f[_0x33b662(0x14d)](getActiveFeatureId);if(!_0x1b2efd)throw new Error(_0x33b662(0x16f));const _0x25dc2b=await getFeature(_0x1b2efd);_0x29d99f['LSwxu'](displayFeature,_0x25dc2b,_0x25dc2b['checklistItems']);}export async function featureResume(_0x1192f1){const _0x137ba7=_0x5d6635,_0x573fa2={'SemOO':function(_0x25e02b,_0x5247f3){return _0x25e02b(_0x5247f3);},'uXhAr':function(_0x5a2258){return _0x5a2258();},'lLJFp':function(_0x1b76a2,_0x39932a,_0x575566){return _0x1b76a2(_0x39932a,_0x575566);},'TeByX':function(_0x2c9ce9){return _0x2c9ce9();},'USaSy':function(_0x1e6651,_0x311770){return _0x1e6651&&_0x311770;},'lLvFd':function(_0x3f52f2,_0xa8ab8){return _0x3f52f2||_0xa8ab8;},'iWjZr':_0x137ba7(0x106),'AIQiO':function(_0x495735,_0x443ff9){return _0x495735(_0x443ff9);},'KWPLC':function(_0x3d6aaf,_0x1cea72){return _0x3d6aaf===_0x1cea72;},'sMCFI':_0x137ba7(0x188),'OzJdN':function(_0x4b3a89,_0x5f7bca){return _0x4b3a89(_0x5f7bca);},'tqEdU':function(_0x3fcc13,_0x21a9df){return _0x3fcc13(_0x21a9df);},'BHANJ':function(_0x4783f8,_0x3216c4){return _0x4783f8(_0x3216c4);},'oLbCl':function(_0x2609f6,_0x1fe408,_0xad5c4d){return _0x2609f6(_0x1fe408,_0xad5c4d);}};if(_0x1192f1){const _0x496010=await _0x573fa2[_0x137ba7(0x191)](getFeature,_0x1192f1);await setActiveFeatureId(_0x496010['id']);const _0x846e38=_0x573fa2[_0x137ba7(0xf1)](getGitBranch);_0x846e38&&_0x846e38!==_0x496010[_0x137ba7(0x17e)]&&(await _0x573fa2['lLJFp'](updateFeature,_0x496010['id'],{'gitBranch':_0x846e38}),console['log'](_0x137ba7(0x159)+_0x846e38));console[_0x137ba7(0x192)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x496010['name']+'\x20('+_0x496010['id']+')'),await _0x573fa2[_0x137ba7(0x191)](tryStartCurrentSession,_0x496010['id']);const _0x24cd36=process[_0x137ba7(0x14c)]['CLAUDE_SESSION_ID'];_0x24cd36&&_0x573fa2[_0x137ba7(0x162)](registerSession,_0x24cd36,_0x496010['id']);displayFeature(_0x496010,_0x496010[_0x137ba7(0xec)]),await _0x573fa2['SemOO'](printFeedbackNudge,_0x496010['id']);return;}const _0x10e7f7=_0x573fa2['TeByX'](getGitRepoUrl),_0x4ac0dd=getGitBranch();if(_0x573fa2['USaSy'](!_0x10e7f7,!_0x4ac0dd))throw new Error(_0x137ba7(0x116));console['log'](_0x137ba7(0x16d)+_0x573fa2['lLvFd'](_0x10e7f7,_0x573fa2[_0x137ba7(0xe9)])+'\x20/\x20'+(_0x4ac0dd||_0x573fa2[_0x137ba7(0xe9)])+_0x137ba7(0x109));const _0x1c12db=await _0x573fa2['AIQiO'](listFeatures,{'gitRepoUrl':_0x10e7f7,'gitBranch':_0x4ac0dd}),_0xc8da5b=_0x1c12db['items'][_0x137ba7(0x126)](_0x359f45=>_0x359f45['status']?_0x359f45[_0x137ba7(0xea)]!=='verified':!_0x359f45[_0x137ba7(0x148)]);if(_0x573fa2['KWPLC'](_0xc8da5b['length'],0x0)){console['log'](_0x137ba7(0x1a4)),console[_0x137ba7(0x192)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0xb51bc6;if(_0xc8da5b[_0x137ba7(0xe6)]===0x1)_0xb51bc6=_0xc8da5b[0x0];else{const _0x16d90e=process[_0x137ba7(0xf5)][_0x137ba7(0x101)]&&process['stdout']['isTTY'];if(!_0x16d90e){console['log'](_0x573fa2[_0x137ba7(0x1c5)]);for(const _0x25cd25 of _0xc8da5b){console['log']('\x20\x20'+_0x25cd25[_0x137ba7(0x102)]),console[_0x137ba7(0x192)](_0x137ba7(0x196)+_0x25cd25['id']),_0x25cd25['stats']&&console[_0x137ba7(0x192)](_0x137ba7(0x1b8)+_0x573fa2[_0x137ba7(0x191)](getProgressDisplay,_0x25cd25['stats'])),_0x25cd25['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x25cd25[_0x137ba7(0x17e)]);}throw new Error(_0x137ba7(0x168));}const {selected:_0x486900}=await _0x42c5fc[_0x137ba7(0x18b)]([{'type':'list','name':'selected','message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0xc8da5b[_0x137ba7(0xf3)](_0x2da8de=>({'name':_0x2da8de['name']+'\x20('+_0x2da8de['id']+')','value':_0x2da8de['id']}))}]);_0xb51bc6=_0xc8da5b[_0x137ba7(0x1b1)](_0x2d270e=>_0x2d270e['id']===_0x486900);}await _0x573fa2['OzJdN'](setActiveFeatureId,_0xb51bc6['id']);_0x4ac0dd&&_0x4ac0dd!==_0xb51bc6[_0x137ba7(0x17e)]&&(await updateFeature(_0xb51bc6['id'],{'gitBranch':_0x4ac0dd}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4ac0dd));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xb51bc6[_0x137ba7(0x102)]+'\x20('+_0xb51bc6['id']+')'),await _0x573fa2[_0x137ba7(0x120)](tryStartCurrentSession,_0xb51bc6['id']);const _0x1a01ab=await _0x573fa2['BHANJ'](getFeature,_0xb51bc6['id']),_0x21a9e5=process['env'][_0x137ba7(0x121)];_0x21a9e5&&_0x573fa2['oLbCl'](registerSession,_0x21a9e5,_0x1a01ab['id']),_0x573fa2['lLJFp'](displayFeature,_0x1a01ab,_0x1a01ab[_0x137ba7(0xec)]),await _0x573fa2[_0x137ba7(0x18c)](printFeedbackNudge,_0x1a01ab['id']);}async function printFeedbackNudge(_0x2f651a){const _0x83ca9e=_0x5d6635,_0x3c454e={'adVjG':function(_0x1021fb,_0x3a0f09){return _0x1021fb(_0x3a0f09);},'hLuyG':function(_0x501219,_0x347be7){return _0x501219>_0x347be7;}};try{const {items:_0x56470a}=await _0x3c454e[_0x83ca9e(0x16c)](getActionItems,_0x2f651a);let _0x163009=0x0,_0x51857e=0x0;for(const _0x4c95bd of _0x56470a){const _0x40c727=await getItemFeedback(_0x2f651a,_0x4c95bd['id']);_0x3c454e['hLuyG'](_0x40c727['unaddressedComments'][_0x83ca9e(0xe6)],0x0)&&(_0x163009+=_0x40c727['unaddressedComments'][_0x83ca9e(0xe6)],_0x51857e++);}_0x163009>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x163009+_0x83ca9e(0x12d)+_0x51857e+_0x83ca9e(0x158)),console[_0x83ca9e(0x192)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x3bb480){const _0x4ee691=_0x5d6635;try{const {sessions:_0x2e03d3}=await listFeatureSessions(_0x3bb480),_0x5f2511=_0x2e03d3[_0x4ee691(0x1b1)](_0x56aea8=>_0x56aea8['status']==='ready');_0x5f2511&&(await startSession(_0x3bb480,_0x5f2511['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x5f2511[_0x4ee691(0x17b)]));}catch{}}export async function featureReport(_0x4f84f0,_0x8c3dde){const _0xbe1ca4=_0x5d6635,_0x19d8dc={'BAhyG':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','mVozz':_0xbe1ca4(0xf0),'fdOxz':function(_0x1c853f,_0x577df9,_0x2c9074){return _0x1c853f(_0x577df9,_0x2c9074);},'Rgovc':function(_0x4084cb,_0xc083d8,_0x19ef2d,_0x329162){return _0x4084cb(_0xc083d8,_0x19ef2d,_0x329162);},'kyxow':'reports','aDiHy':function(_0x14efb2,_0x349894){return _0x14efb2(_0x349894);},'mArsq':function(_0x3aca54,_0x7122da,_0xeda229){return _0x3aca54(_0x7122da,_0xeda229);}},_0x156444=_0x4f84f0||await getActiveFeatureId();if(!_0x156444)throw new Error(_0x19d8dc['BAhyG']);console[_0xbe1ca4(0x192)](_0x19d8dc['mVozz']);const _0x47c2f8=await _0x19d8dc['fdOxz'](getFeatureReportMarkdown,_0x156444,{'style':_0x8c3dde[_0xbe1ca4(0x1af)]}),_0x2b8a30=_0x8c3dde[_0xbe1ca4(0x1c8)]||_0x19d8dc['Rgovc'](join,getRangerDir(),_0x19d8dc['kyxow'],_0x156444+_0xbe1ca4(0x174)),_0x4d6fa6=_0x19d8dc[_0xbe1ca4(0xde)](join,_0x2b8a30,'..');!_0x19d8dc[_0xbe1ca4(0x1c7)](existsSync,_0x4d6fa6)&&await _0x19d8dc['mArsq'](mkdir,_0x4d6fa6,{'recursive':!![]}),await writeFile(_0x2b8a30,_0x47c2f8,'utf-8'),console['log'](_0xbe1ca4(0x186)+_0x2b8a30);}function getScenarioResult(_0x132b72){const _0x2c47de=_0x5d6635,_0xa28541={'FNqsK':function(_0x29085d,_0x52fccb){return _0x29085d===_0x52fccb;},'NQWHZ':_0x2c47de(0x12b),'cluRb':_0x2c47de(0x1be),'EuEtK':'in_progress'};if(_0xa28541[_0x2c47de(0x173)](_0x132b72[_0x2c47de(0xea)],_0xa28541[_0x2c47de(0x19b)]))return _0x132b72['terminalReason']??_0xa28541[_0x2c47de(0x19b)];if(_0x132b72['status']===_0xa28541[_0x2c47de(0x151)])return _0xa28541['EuEtK'];return _0x132b72['status'];}function getScenarioRationale(_0x80118e,_0x134610){const _0x528c21=_0x5d6635;if(_0x134610)return _0x134610;if(_0x80118e[_0x528c21(0x12e)])return _0x80118e[_0x528c21(0x12e)];if(_0x80118e['incompleteReason'])return _0x80118e['incompleteReason'];if(_0x80118e['canceledReason'])return _0x80118e['canceledReason'];if(_0x80118e['notes'])return _0x80118e[_0x528c21(0x19a)];return null;}export async function featureReportPrDescription(_0x3375c2,_0x46eadf){const _0x184043=_0x5d6635,_0x46dc99={'XqLye':function(_0x28f364){return _0x28f364();},'JLlKM':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','JrogI':function(_0x429515,_0x1a766d){return _0x429515(_0x1a766d);},'wWTHv':function(_0x2795f2,_0x1efc97){return _0x2795f2>_0x1efc97;},'SjGfD':function(_0x5ce024,_0xd85718){return _0x5ce024+_0xd85718;},'BiXUK':function(_0x5431af,_0x46274b){return _0x5431af===_0x46274b;},'StNhW':_0x184043(0x108),'tduKl':function(_0x1ac8ea,_0x46b59a,_0x52f731,_0x5b55e1){return _0x1ac8ea(_0x46b59a,_0x52f731,_0x5b55e1);}},_0x190847=_0x3375c2||await _0x46dc99[_0x184043(0x1b4)](getActiveFeatureId);if(!_0x190847)throw new Error(_0x46dc99[_0x184043(0x1bf)]);const _0x4763c0=await _0x46dc99['JrogI'](getFeature,_0x190847),_0x2aaa99=_0x4763c0['checklistItems']||[],_0x3ca580=getCurrentSessionItems(_0x4763c0,_0x2aaa99);_0x3ca580[_0x184043(0xe6)]===0x0&&(console[_0x184043(0x180)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x13a1eb=_0x46eadf['excludeScenarios']??[],_0x17a8f9=_0x13a1eb[_0x184043(0x126)](_0xbb5999=>!Number[_0x184043(0x1c6)](_0xbb5999)||_0xbb5999<0x1||_0xbb5999>_0x3ca580['length']);if(_0x46dc99['wWTHv'](_0x17a8f9[_0x184043(0xe6)],0x0)){console[_0x184043(0x180)](_0x184043(0x122)+_0x17a8f9['join'](',\x20')),console[_0x184043(0x192)](_0x184043(0x1c1));for(let _0x4d3457=0x0;_0x4d3457<_0x3ca580['length'];_0x4d3457++){console[_0x184043(0x192)]('\x20\x20'+_0x46dc99[_0x184043(0x190)](_0x4d3457,0x1)+'.\x20'+_0x3ca580[_0x4d3457]['description']);}process[_0x184043(0xf9)](0x1);}const _0x53d655=new Set(_0x13a1eb[_0x184043(0xf3)](_0x18b277=>_0x18b277-0x1)),_0x27f234=_0x3ca580[_0x184043(0x126)]((_0x32a852,_0x326199)=>!_0x53d655[_0x184043(0x117)](_0x326199));_0x46dc99['BiXUK'](_0x27f234['length'],0x0)&&(console['error'](_0x46dc99[_0x184043(0x1ac)]),process['exit'](0x1));if(_0x46eadf[_0x184043(0x160)])await _0x46dc99[_0x184043(0x111)](outputJsonReport,_0x190847,_0x4763c0,_0x27f234);else{const _0x187f9c=await getFeatureReportMarkdown(_0x190847,{'itemIds':_0x27f234[_0x184043(0xf3)](_0x1027b8=>_0x1027b8['id'])});process['stdout']['write'](_0x187f9c[_0x184043(0x13b)]()+'\x0a');}}async function outputJsonReport(_0x2b2d84,_0x15edd0,_0x11f22a){const _0x1e610b=_0x5d6635,_0x51f354={'LlXSo':function(_0x183a10,_0x142cad){return _0x183a10(_0x142cad);},'ShWKV':function(_0xbafe1b,_0x7b801c){return _0xbafe1b===_0x7b801c;},'kGolV':function(_0x1ebd43){return _0x1ebd43();},'xHZpb':function(_0x138284,_0x13859c){return _0x138284(_0x13859c);},'aIcGR':function(_0x2d9d55,_0x2b4044){return _0x2d9d55+_0x2b4044;}},_0xf8484b=_0x51f354['kGolV'](getApiBaseUrl),_0x4b8beb=await _0x51f354[_0x1e610b(0x175)](getFeatureReport,_0x2b2d84),_0x3aa2e5=new Map(_0x4b8beb[_0x1e610b(0xec)][_0x1e610b(0xf3)](_0x37d528=>[_0x37d528['id'],_0x37d528])),_0x596691=await Promise[_0x1e610b(0x147)](_0x11f22a['map'](async _0x3782a6=>{const _0x1e44af=_0x1e610b,_0x4f8e7a=_0x3aa2e5['get'](_0x3782a6['id']),_0x2386c3=_0x4f8e7a?.[_0x1e44af(0x153)]??null;let _0x899b62=[];if(_0x3782a6['browserSessionId'])try{const {steps:_0xe78f57}=await _0x51f354[_0x1e44af(0x18d)](getBrowserSessionSteps,_0x3782a6['browserSessionId']);_0xe78f57[_0x1e44af(0xe6)]>0x0&&(_0x899b62=_0xe78f57[_0x1e44af(0xf3)](_0x22afe3=>{const _0xa8c47d=_0x1e44af,_0x2feb13=_0x22afe3['assets'][_0xa8c47d(0x1b1)](_0x499d6d=>_0x499d6d['assetType']==='screenshot'&&_0x499d6d[_0xa8c47d(0x123)]===_0xa8c47d(0x170))??_0x22afe3['assets'][_0xa8c47d(0x1b1)](_0x26be6f=>_0x26be6f['assetType']===_0xa8c47d(0xe4));let _0x26eaf7=null,_0x40e449=null;if(_0x2feb13){const _0x13dc36=_0x2feb13[_0xa8c47d(0x156)]['location'][_0xa8c47d(0x11a)]('/')['pop']();_0x26eaf7=_0xf8484b+_0xa8c47d(0x15c)+_0x3782a6['browserSessionId']+_0xa8c47d(0x1bd)+_0x13dc36,_0x13dc36&&(_0x40e449=_0x13dc36['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x40e449||_0x22afe3['description']||_0x22afe3['stepName']||_0xa8c47d(0x187)+_0x22afe3['position'],'screenshot':_0x26eaf7,'is_key_step':_0x22afe3['isKeyStep']};}));}catch{}return _0x51f354[_0x1e44af(0x10d)](_0x899b62['length'],0x0)&&_0x2386c3?.['screenshotUrls']&&(_0x899b62=_0x2386c3['screenshotUrls']['map']((_0x119669,_0x2dda4f)=>({'description':_0x1e44af(0x171)+(_0x2dda4f+0x1),'screenshot':_0x119669,'is_key_step':![]}))),{'description':_0x3782a6[_0x1e44af(0x146)],'result':getScenarioResult(_0x3782a6),'rationale':getScenarioRationale(_0x3782a6,_0x2386c3?.['agentResponse']),'steps':_0x899b62};})),_0x27be40={'url':_0x15edd0[_0x1e610b(0x169)],'scenarios':_0x596691};process[_0x1e610b(0x14b)]['write'](_0x51f354[_0x1e610b(0x163)](JSON['stringify'](_0x27be40,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x4f8042){const _0x17a4b1=_0x5d6635,_0x12457f={'fkotI':function(_0x2cdd2c){return _0x2cdd2c();},'uXRoZ':_0x17a4b1(0x178),'QIdJg':function(_0x3e6b83,_0x358fad){return _0x3e6b83(_0x358fad);},'luAUm':function(_0x23759c,_0x48826f){return _0x23759c!==_0x48826f;},'AZytn':_0x17a4b1(0x1ab),'jyICy':_0x17a4b1(0x131)},_0x1e6200=_0x4f8042||await _0x12457f[_0x17a4b1(0x134)](getActiveFeatureId);if(!_0x1e6200)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 _0xd3af79=await getFeature(_0x1e6200);if(!_0xd3af79[_0x17a4b1(0x19d)])throw new Error(_0x12457f[_0x17a4b1(0x198)]);const {sessions:_0x44582a}=await _0x12457f['QIdJg'](listFeatureSessions,_0x1e6200),_0x39c7f9=_0x44582a[_0x17a4b1(0x1b1)](_0x59ce80=>_0x59ce80['id']===_0xd3af79['currentSessionId']);if(!_0x39c7f9)throw new Error(_0x17a4b1(0x137));if(_0x39c7f9[_0x17a4b1(0xea)]==='completed'){console[_0x17a4b1(0x192)](_0x17a4b1(0x195));return;}if(_0x12457f['luAUm'](_0x39c7f9['status'],_0x12457f['AZytn']))throw new Error(_0x17a4b1(0x1a0)+_0x39c7f9['status']);console[_0x17a4b1(0x192)](_0x12457f['jyICy']),await concludeSession(_0x1e6200,_0xd3af79[_0x17a4b1(0x19d)]),console['log'](_0x17a4b1(0x133)+_0x39c7f9['iteration']+_0x17a4b1(0x1b9)),console[_0x17a4b1(0x192)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5e909c){const _0x465292=_0x5d6635,_0x39688d={'BGrVK':_0x465292(0x12f),'ARNhD':function(_0x2c3e50,_0x26da19){return _0x2c3e50===_0x26da19;},'bOUuS':_0x465292(0x15a)},_0xfcbde4=_0x5e909c||await getActiveFeatureId();if(!_0xfcbde4)throw new Error(_0x39688d[_0x465292(0x1b2)]);const _0x41f8d2=await getFeature(_0xfcbde4);console[_0x465292(0x192)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x41f8d2[_0x465292(0x102)]+'\x0a');const {sessions:_0x3253f7}=await listFeatureSessions(_0xfcbde4);if(_0x39688d[_0x465292(0x144)](_0x3253f7['length'],0x0)){console[_0x465292(0x192)](_0x39688d[_0x465292(0x16e)]);return;}for(const _0x279e8a of _0x3253f7){const _0x2503b0=_0x279e8a[_0x465292(0xea)]===_0x465292(0x139)?'✅':_0x279e8a['status']==='in_progress'?'🔄':'▶️';console['log'](_0x2503b0+_0x465292(0x17d)+_0x279e8a[_0x465292(0x17b)]+'\x20('+_0x279e8a['id']+')'),console['log'](_0x465292(0x1b6)+_0x279e8a['status']),console[_0x465292(0x192)](_0x465292(0x1ad)+new Date(_0x279e8a[_0x465292(0x194)])['toLocaleString']()),_0x279e8a[_0x465292(0x148)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x279e8a['completedAt'])[_0x465292(0x149)]()),console[_0x465292(0x192)]('');}}export async function featureAddScenario(_0x56acef,_0x18098f){const _0xf407ae=_0x5d6635,_0x25b5c9={'XYeEp':function(_0x24906c){return _0x24906c();},'uOfsQ':function(_0x27a24e,_0x5d36eb,_0x27ef68){return _0x27a24e(_0x5d36eb,_0x27ef68);},'DeKXd':function(_0x3dce06,_0x20c467){return _0x3dce06(_0x20c467);}},_0x34573c=_0x18098f||await _0x25b5c9['XYeEp'](getActiveFeatureId);if(!_0x34573c)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 _0x4b807a=await getFeature(_0x34573c);if(_0x4b807a['latestReview']&&!_0x4b807a['latestReview']['submittedAt'])throw new Error(_0xf407ae(0x1b5)+_0x4b807a[_0xf407ae(0x169)]);await _0x25b5c9[_0xf407ae(0x15d)](createChecklistItem,_0x34573c,_0x56acef);const _0x1faf0c=await _0x25b5c9[_0xf407ae(0xe8)](getFeature,_0x34573c);console['log']('\x0a✅\x20Scenario\x20added'),displayFeature(_0x1faf0c,_0x1faf0c['checklistItems']);}export async function featureEditScenario(_0x1a3a41,_0xd4207d){const _0x462a8c=_0x5d6635,_0x18f9d4={'CsAsD':function(_0x95582b){return _0x95582b();},'mcqNS':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','Bxzdj':function(_0x3e8e42,_0x30c6aa){return _0x3e8e42===_0x30c6aa;},'RmtKt':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','dZuIA':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','bTfXr':function(_0x135108,_0x47eaba){return _0x135108<_0x47eaba;},'UIzOD':function(_0xd58c46,_0x4383e7){return _0xd58c46+_0x4383e7;},'loUla':function(_0x1ee41b,_0x4abc64){return _0x1ee41b-_0x4abc64;},'Jozom':'\x0aAvailable\x20scenarios:','FKrev':function(_0x47ef4a,_0x57909a){return _0x47ef4a<_0x57909a;},'gIdHH':function(_0x4b22c0,_0x5a7ef1){return _0x4b22c0+_0x5a7ef1;},'bwild':function(_0x699938,_0x5009f3,_0x74053e){return _0x699938(_0x5009f3,_0x74053e);}},_0x1c1ea5=_0xd4207d['id']||await _0x18f9d4[_0x462a8c(0x183)](getActiveFeatureId);!_0x1c1ea5&&(console[_0x462a8c(0x180)](_0x462a8c(0x172)),console[_0x462a8c(0x180)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x631787=await getFeature(_0x1c1ea5);_0x631787['latestReview']&&!_0x631787['latestReview']['submittedAt']&&(console[_0x462a8c(0x180)](_0x18f9d4[_0x462a8c(0x1a3)]),console[_0x462a8c(0x180)]('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x631787[_0x462a8c(0x169)]),process['exit'](0x1));const _0x14d24f=_0x631787[_0x462a8c(0xec)]||[];_0x18f9d4['Bxzdj'](_0x14d24f[_0x462a8c(0xe6)],0x0)&&(console['error'](_0x18f9d4['RmtKt']),process['exit'](0x1));if(_0xd4207d[_0x462a8c(0x10e)]===undefined){console[_0x462a8c(0x180)](_0x18f9d4['dZuIA']),console[_0x462a8c(0x192)](_0x462a8c(0x1c1));for(let _0x2b42ce=0x0;_0x18f9d4[_0x462a8c(0x142)](_0x2b42ce,_0x14d24f['length']);_0x2b42ce++){console[_0x462a8c(0x192)]('\x20\x20'+_0x18f9d4['UIzOD'](_0x2b42ce,0x1)+'.\x20'+_0x14d24f[_0x2b42ce][_0x462a8c(0x146)]);}process[_0x462a8c(0xf9)](0x1);}const _0x3450be=_0x18f9d4['loUla'](_0xd4207d[_0x462a8c(0x10e)],0x1);if(_0x3450be<0x0||_0x3450be>=_0x14d24f[_0x462a8c(0xe6)]){console[_0x462a8c(0x180)](_0x462a8c(0xf4)+_0xd4207d['scenario']+_0x462a8c(0x18e)+_0x14d24f['length']+_0x462a8c(0x1c4)),console['log'](_0x18f9d4[_0x462a8c(0x17a)]);for(let _0x4ae9bd=0x0;_0x18f9d4[_0x462a8c(0x176)](_0x4ae9bd,_0x14d24f[_0x462a8c(0xe6)]);_0x4ae9bd++){console['log']('\x20\x20'+_0x18f9d4['gIdHH'](_0x4ae9bd,0x1)+'.\x20'+_0x14d24f[_0x4ae9bd]['description']);}process['exit'](0x1);}const _0x2e0e28=_0x14d24f[_0x3450be];await updateChecklistItem(_0x1c1ea5,_0x2e0e28['id'],{'description':_0x1a3a41});const _0x4caaa6=await getFeature(_0x1c1ea5);console['log']('\x0a✅\x20Scenario\x20updated'),_0x18f9d4[_0x462a8c(0x17c)](displayFeature,_0x4caaa6,_0x4caaa6['checklistItems']);}async function downloadFeedbackImage(_0x5e2e27,_0x5b5677){const _0x35a75f=_0x5d6635,_0x579d6b={'OYIVA':function(_0x59ce13,_0x515d27,_0x316ca4){return _0x59ce13(_0x515d27,_0x316ca4);},'XEESc':function(_0x1bd9c8){return _0x1bd9c8();},'nCgCQ':'feedback-images','nkQPu':function(_0x16ce82,_0x4bee2c){return _0x16ce82(_0x4bee2c);}};try{const _0x4fc935=_0x579d6b[_0x35a75f(0x11f)](join,_0x579d6b[_0x35a75f(0x1b0)](getRangerDir),_0x579d6b['nCgCQ']);await mkdir(_0x4fc935,{'recursive':!![]});const _0x450452=join(_0x4fc935,'comment_'+_0x5b5677+_0x35a75f(0x103)),_0x507cca=await _0x579d6b['nkQPu'](fetch,_0x5e2e27);if(!_0x507cca['ok'])return null;const _0x533694=Buffer[_0x35a75f(0x1ae)](await _0x507cca[_0x35a75f(0x138)]());return await writeFile(_0x450452,_0x533694),_0x450452;}catch{return null;}}export async function featureGetReview(_0x177d07){const _0x3f133a=_0x5d6635,_0x248b95={'DyvEL':function(_0x5e9de3){return _0x5e9de3();},'KHsQX':function(_0x20f059,_0x57d857){return _0x20f059(_0x57d857);},'WKgaX':function(_0x15a904,_0x2e2f79){return _0x15a904===_0x2e2f79;},'aclga':function(_0x3f867c,_0x2a37f0){return _0x3f867c<_0x2a37f0;},'rCRVh':function(_0x28c71b,_0x301700,_0x3c9ff8){return _0x28c71b(_0x301700,_0x3c9ff8);},'GWapF':_0x3f133a(0x13a),'qtOhZ':'numeric','foBJk':_0x3f133a(0x166),'zjjFC':'\x20>\x20','sBjqj':_0x3f133a(0x1a7),'OUBoV':_0x3f133a(0x165),'rDyoj':function(_0x3b4e7b,_0x285185){return _0x3b4e7b>=_0x285185;}},_0x5d1437=_0x177d07||await _0x248b95['DyvEL'](getActiveFeatureId);if(!_0x5d1437)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 _0x15e0de=await _0x248b95[_0x3f133a(0x150)](getFeature,_0x5d1437),{items:_0x4afb45}=await getActionItems(_0x5d1437);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x15e0de[_0x3f133a(0x102)]+'\x20('+_0x15e0de['id']+')\x0a');if(_0x248b95[_0x3f133a(0x1a8)](_0x4afb45[_0x3f133a(0xe6)],0x0)){console[_0x3f133a(0x192)](_0x3f133a(0x199));return;}for(let _0xe0a952=0x0;_0x248b95['aclga'](_0xe0a952,_0x4afb45[_0x3f133a(0xe6)]);_0xe0a952++){const _0x483dc2=_0x4afb45[_0xe0a952],_0x14d5d8=_0x483dc2['version']>0x1?_0x3f133a(0x155)+_0x483dc2['version']+')':'',_0x214214=await _0x248b95['rCRVh'](getItemFeedback,_0x5d1437,_0x483dc2['id']);if(_0x214214['unaddressedComments'][_0x3f133a(0xe6)]>0x0){console[_0x3f133a(0x192)]('Scenario\x20'+(_0xe0a952+0x1)+_0x3f133a(0x1a5)+_0x483dc2['description']+'\x22'+_0x14d5d8+_0x3f133a(0x11b)+_0x214214[_0x3f133a(0x15e)]['length']+_0x3f133a(0xf6));for(const _0x4342aa of _0x214214['unaddressedComments']){const _0x14e764=new Date(_0x4342aa['createdAt'])['toLocaleDateString']('en-US',{'month':_0x248b95[_0x3f133a(0x1a6)],'day':_0x248b95['qtOhZ']}),_0x301726=_0x4342aa[_0x3f133a(0x107)]||_0x4342aa['authorEmail']||_0x248b95[_0x3f133a(0xfa)];console[_0x3f133a(0x192)]('\x20\x20💬\x20'+_0x301726+'\x20('+_0x14e764+_0x3f133a(0x119)+_0x4342aa[_0x3f133a(0x118)]+'\x22');if(_0x4342aa[_0x3f133a(0x18f)]){const _0x41db12=await _0x248b95['rCRVh'](downloadFeedbackImage,_0x4342aa[_0x3f133a(0x18f)],_0x4342aa['id']);_0x41db12&&console[_0x3f133a(0x192)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x41db12);}if(_0x4342aa['domRef']){const _0x48a062=_0x4342aa[_0x3f133a(0x1bb)]['selector']['split'](_0x248b95['zjjFC'])['pop']()?.[_0x3f133a(0x11a)](':')[0x0]||_0x248b95[_0x3f133a(0x177)],_0x51107b=_0x4342aa['domRef']['textContent']?'\x20\x22'+_0x4342aa['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x3f133a(0x192)](_0x3f133a(0xdf)+_0x48a062+'>'+_0x51107b),console['log'](_0x3f133a(0x13f)+_0x4342aa['domRef']['selector']);}else{if(_0x4342aa['spatial']){const _0x53003a=_0x4342aa[_0x3f133a(0x114)][_0x3f133a(0x154)];_0x248b95[_0x3f133a(0x1a8)](_0x4342aa['spatial']['type'],_0x248b95[_0x3f133a(0x115)])&&_0x248b95[_0x3f133a(0x1aa)](_0x53003a['length'],0x2)?console[_0x3f133a(0x192)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x53003a[0x0][_0x3f133a(0x10f)](0x2)+',\x20'+_0x53003a[0x1][_0x3f133a(0x10f)](0x2)+')'):console[_0x3f133a(0x192)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x4342aa['spatial']['type']+_0x3f133a(0x104)+_0x53003a[_0x3f133a(0xf3)](_0x25d394=>_0x25d394['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x214214['canonicalFlow']){console[_0x3f133a(0x192)]('\x20\x20Expected\x20flow:');for(const _0x1ba8bd of _0x214214[_0x3f133a(0x136)][_0x3f133a(0x11a)]('\x0a')){console[_0x3f133a(0x192)]('\x20\x20\x20\x20'+_0x1ba8bd);}}}else console['log']('Scenario\x20'+(_0xe0a952+0x1)+_0x3f133a(0x1a5)+_0x483dc2[_0x3f133a(0x146)]+'\x22'+_0x14d5d8+'\x20—\x20no\x20comments'),console[_0x3f133a(0x192)](_0x3f133a(0xe5));console['log']('');}}export async function featureDelete(_0xb69b6b){const _0x593259=_0x5d6635,_0x91500b={'bogHk':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','emLnm':function(_0x42467d,_0x44b496){return _0x42467d(_0x44b496);},'uLXRk':_0x593259(0x14f)},_0x4923aa=_0xb69b6b||await getActiveFeatureId();if(!_0x4923aa)throw new Error(_0x91500b[_0x593259(0x19e)]);const _0x4b7abe=await getFeature(_0x4923aa);await _0x91500b['emLnm'](softDeleteFeature,_0x4923aa),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x4b7abe[_0x593259(0x102)]+'\x20('+_0x4923aa+')'),console['log'](_0x91500b[_0x593259(0x185)]+_0x4923aa);}export async function featureRestore(_0x3b6d9a){const _0x2086e2=_0x5d6635,_0x3b36d2={'IpxES':function(_0x3f6813,_0x3438a2){return _0x3f6813(_0x3438a2);},'HbDGG':function(_0x29d374,_0x472b07,_0x51de45){return _0x29d374(_0x472b07,_0x51de45);}};await _0x3b36d2[_0x2086e2(0x11d)](restoreFeature,_0x3b6d9a);const _0x15c5e3=await getFeature(_0x3b6d9a);console[_0x2086e2(0x192)](_0x2086e2(0x15f)+_0x15c5e3[_0x2086e2(0x102)]+'\x20('+_0x3b6d9a+')'),_0x3b36d2[_0x2086e2(0x100)](displayFeature,_0x15c5e3,_0x15c5e3[_0x2086e2(0xec)]);}
|
|
1
|
+
const _0x19025f=_0x2bba;(function(_0x467511,_0xf52cf2){const _0x5179a2=_0x2bba,_0x335402=_0x467511();while(!![]){try{const _0x46ac77=parseInt(_0x5179a2(0x243))/0x1+-parseInt(_0x5179a2(0x220))/0x2+parseInt(_0x5179a2(0x1c7))/0x3+parseInt(_0x5179a2(0x1de))/0x4+parseInt(_0x5179a2(0x226))/0x5*(parseInt(_0x5179a2(0x224))/0x6)+-parseInt(_0x5179a2(0x28e))/0x7+-parseInt(_0x5179a2(0x290))/0x8*(parseInt(_0x5179a2(0x1f4))/0x9);if(_0x46ac77===_0xf52cf2)break;else _0x335402['push'](_0x335402['shift']());}catch(_0x5cf4c9){_0x335402['push'](_0x335402['shift']());}}}(_0x124d,0xb90a3));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';function _0x124d(){const _0x533d1f=['\x0a✅\x20Restored\x20feature\x20review:\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','ExFhA','name','\x20\x20\x20Completed:\x20','lTbuP','stats','items','currentSessionId','uuVsg','\x0a✅\x20Feature\x20review\x20created:\x20','browserSessionId','\x20at\x20[','YIHdZ','740016wFShNd','LHjqj','MzvsC','\x0a\x20\x20\x20Scenarios:','241050NEDQWE','utf-8','85WsOjvH','ERRQv','\x20\x20Expected\x20flow:','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','oPbXv','join','log','timing','includeDeleted','\x20\x20\x20▶️\x20Started\x20session\x20','completed','terminalReason','incompleteItems','/artifacts/','dashboardUrl','\x20\x20\x20Repository:\x20','roRMu','YUlrl','error','.md','\x0a✅\x20Resumed\x20feature\x20review:\x20','Please\x20finish\x20your\x20review\x20first:','screenshotUrls','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','QsUBV','lzLgp','YDuJe','assetType','assets','885826TibGZY','isInteger','\x20\x20\x20\x20\x20\x20Approved','notes','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','active-feature.txt','UWJwe','\x20\x20\x20','env','\x0a⚠️\x20\x20','\x20Session\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','replace','gitBranch','checklistItems','\x20\x20✅\x20No\x20feedback\x20to\x20address','CcGao','rvFsw','slice','assetUrl','...','closed','numeric','\x20>\x20','en-US','syivI','\x20\x20💬\x20','isTTY','version',':\x20\x22','exit','iteration','blocked','EMwal','KtOnj','\x0a📋\x20Feedback\x20for:\x20','LCqqm','verification_in_progress','screenshot','currentBranch','wydOM','short','content','toFixed','any','completedAt','\x20\x20\x20Branch:\x20','stdout','gitRepoUrl','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','DNGRe','ZaatN','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','.png','\x20\x20\x20Updated\x20branch\x20to:\x20','json','git\x20rev-parse\x20--abbrev-ref\x20HEAD','git\x20remote\x20get-url\x20origin','geecQ','tAgFy','UAwXx','FlrJr','status','latestReview','gJsId','find','1|5|2|3|4|0','Screenshot\x20','scenario','jwJyj','trimEnd','\x20[has\x20reviewer\x20feedback]','cCpZt','authorEmail','totalCount','10421698XAnSeJ','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','8eXFGEl','description','pop','DVINq','\x0a✅\x20Scenario\x20added','\x20\x20\x20Created:\x20','github.com/','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','hRkBS','repeat','\x20\x20\x20\x20\x20ID:\x20','VNtnH','2009529OltfFN','VCdWZ','\x20concluded.','in_progress','okkGY','qrVpS','pipe','tfPlN','\x20scenario(s).','Not\x20in\x20a\x20git\x20repository.','domRef','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','\x0a✅\x20Scenario\x20updated','nYhnZ','LacCM','split','\x20of\x20','scenarios','NfRAW','length','fiJSI','CyhwK','5177760tkPwRS','itwhs','OEFNs','wAzSr','TOcCF','BWsLM','MTFPS','has','\x20verified','createdAt','blockedItems','warn','voaKS','push','\x20\x20\x20\x20\x20\x20Cancelled:\x20','\x20(v','blockedReason','wOMmI','spatial','feedback-images','unaddressedComments','\x20—\x20no\x20comments','8247051qvHNSu','trim','arrayBuffer','kohlF','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','No\x20sessions\x20found.','filter','\x0aGenerating\x20report...','QOtZK','Unknown','hHqXi','from','toLocaleDateString','.\x20Feature\x20review\x20has\x20','comment_','ArYcw','AMgoF','\x20\x20\x20Progress:\x20','CLAUDE_SESSION_ID','map','position','incompleteReason','toLocaleString','verified','\x20blocked','):\x20\x22','\x0aConcluding\x20session...','cqRca','type','\x1b[0m'];_0x124d=function(){return _0x533d1f;};return _0x124d();}import{existsSync}from'fs';import{execSync}from'child_process';import _0x4f5e05 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x19025f(0x248),bold=_0x31aeb6=>'\x1b[1m'+_0x31aeb6+_0x19025f(0x211);function getGitRepoUrl(){const _0x4cd3e0=_0x19025f,_0x2d8f7b={'MTFPS':function(_0x4415b7,_0x43b855,_0x598f7d){return _0x4415b7(_0x43b855,_0x598f7d);},'FURwL':_0x4cd3e0(0x27c),'YIHdZ':'pipe'};try{const _0x44127f=_0x2d8f7b[_0x4cd3e0(0x1e4)](execSync,_0x2d8f7b['FURwL'],{'encoding':'utf-8','stdio':[_0x2d8f7b[_0x4cd3e0(0x21f)],'pipe',_0x2d8f7b[_0x4cd3e0(0x21f)]]})[_0x4cd3e0(0x1f5)]();return _0x44127f[_0x4cd3e0(0x24f)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x4cd3e0(0x296))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xb89fe=_0x19025f,_0x32d673={'TdlYM':_0xb89fe(0x1cd)};try{return execSync(_0xb89fe(0x27b),{'encoding':'utf-8','stdio':[_0xb89fe(0x1cd),'pipe',_0x32d673['TdlYM']]})[_0xb89fe(0x1f5)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x1936f2=_0x19025f,_0x381f61={'hRkBS':function(_0x2bd5f6,_0x4d033e,_0x147f1d){return _0x2bd5f6(_0x4d033e,_0x147f1d);},'jUiGH':'utf-8'},_0x141c88=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x141c88))return null;try{const _0x4efe8f=await _0x381f61[_0x1936f2(0x298)](readFile,_0x141c88,_0x381f61['jUiGH']);return _0x4efe8f['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x15b693){const _0x3c2511=_0x19025f,_0xcf5ca3={'WojdQ':function(_0xfb5b78){return _0xfb5b78();},'DNGRe':function(_0x465eb7,_0x118798,_0x318e87){return _0x465eb7(_0x118798,_0x318e87);},'LOznp':function(_0x3b004e,_0x4730a0,_0x386d7e,_0x52620b){return _0x3b004e(_0x4730a0,_0x386d7e,_0x52620b);}},_0x506971=_0xcf5ca3['WojdQ'](getRangerDir),_0x2bf8a9=join(_0x506971,ACTIVE_FEATURE_FILE);!existsSync(_0x506971)&&await _0xcf5ca3[_0x3c2511(0x275)](mkdir,_0x506971,{'recursive':!![]}),await _0xcf5ca3['LOznp'](writeFile,_0x2bf8a9,_0x15b693,_0x3c2511(0x225));}function _0x2bba(_0x1fa2e3,_0x1d686d){_0x1fa2e3=_0x1fa2e3-0x1c6;const _0x124d62=_0x124d();let _0x2bba86=_0x124d62[_0x1fa2e3];return _0x2bba86;}function getProgressDisplay(_0x4ec922){const _0x17241e=_0x19025f,_0x5a8fb9={'sVLtf':function(_0x2b09b4,_0x4013f7){return _0x2b09b4+_0x4013f7;},'utBrB':function(_0xd48758,_0x29dcb8){return _0xd48758+_0x29dcb8;},'cCpZt':function(_0x3e473a,_0x1fe005){return _0x3e473a*_0x1fe005;},'nPocx':function(_0x1671ac,_0x48941b){return _0x1671ac>_0x48941b;}},_0x4f2ab1=_0x4ec922['verifiedItems']||0x0,_0x584ce7=_0x4ec922['verificationInProgressItems']||0x0,_0x4cfedb=_0x4ec922[_0x17241e(0x1e8)]||0x0,_0x567832=_0x4ec922[_0x17241e(0x232)]||0x0,_0x3bf2c5=_0x4ec922['pendingItems']||0x0,_0x503494=_0x5a8fb9['sVLtf'](_0x5a8fb9['utBrB'](_0x4f2ab1,_0x584ce7)+_0x4cfedb+_0x567832,_0x3bf2c5);if(_0x503494===0x0)return'-';const _0x1a4cf0=0xa,_0xe309f6=Math['round'](_0x5a8fb9[_0x17241e(0x28b)](_0x4f2ab1/_0x503494,_0x1a4cf0)),_0x4eef36='█'['repeat'](_0xe309f6)+'░'[_0x17241e(0x299)](_0x1a4cf0-_0xe309f6),_0x438994=[];if(_0x4cfedb>0x0)_0x438994[_0x17241e(0x1eb)](_0x4cfedb+_0x17241e(0x20c));if(_0x567832>0x0)_0x438994[_0x17241e(0x1eb)](_0x567832+'\x20incomplete');if(_0x5a8fb9['nPocx'](_0x584ce7,0x0))_0x438994['push'](_0x584ce7+'\x20in\x20progress');const _0x4a09c4=_0x438994[_0x17241e(0x1db)]>0x0?'\x20('+_0x438994[_0x17241e(0x22b)](',\x20')+')':'';return _0x4eef36+'\x20'+_0x4f2ab1+'/'+_0x503494+_0x17241e(0x1e6)+_0x4a09c4;}function getCurrentSessionItems(_0x4d602e,_0x18b2d2){const _0x90c7a5=_0x19025f;if(!_0x4d602e[_0x90c7a5(0x21a)])return _0x18b2d2['filter'](_0x4e4bfd=>!_0x4e4bfd['sessionId']);return _0x18b2d2[_0x90c7a5(0x1fa)](_0x5f2f00=>_0x5f2f00['sessionId']===_0x4d602e[_0x90c7a5(0x21a)]||!_0x5f2f00['sessionId']);}function displayFeature(_0x610682,_0x4fe190){const _0x46e770=_0x19025f,_0x16f045={'wOMmI':_0x46e770(0x223),'TOcCF':'approved','RQuuh':function(_0x2af78a,_0x56fe4d){return _0x2af78a===_0x56fe4d;},'LerFR':'incomplete','lzLgp':function(_0x53892c,_0x1a372e){return _0x53892c===_0x1a372e;},'ArYcw':_0x46e770(0x258),'VGXGf':'verification_in_progress','voaKS':function(_0x440f3e,_0x340441){return _0x440f3e>_0x340441;},'VWjYz':function(_0x482d0b,_0x1ad798){return _0x482d0b!==_0x1ad798;},'QntEv':_0x46e770(0x20b),'rvFsw':_0x46e770(0x28a),'CcGao':function(_0x8e0504,_0x5a2474){return _0x8e0504+_0x5a2474;},'geecQ':function(_0x3bafcf,_0x592e32){return _0x3bafcf===_0x592e32;}};console[_0x46e770(0x22c)]('\x0a'+_0x610682['name']+'\x20('+_0x610682[_0x46e770(0x234)]+')');_0x610682['stats']&&console[_0x46e770(0x22c)](_0x46e770(0x205)+getProgressDisplay(_0x610682[_0x46e770(0x218)]));_0x610682['description']&&console[_0x46e770(0x22c)]('\x20\x20\x20Description:\x20'+_0x610682['description']);_0x610682['gitRepoUrl']&&console['log'](_0x46e770(0x235)+_0x610682['gitRepoUrl']);_0x610682['gitBranch']&&console['log'](_0x46e770(0x271)+_0x610682['gitBranch']);console[_0x46e770(0x22c)]('\x20\x20\x20Created:\x20'+new Date(_0x610682[_0x46e770(0x1e7)])[_0x46e770(0x20a)]());_0x610682['completedAt']&&console['log'](_0x46e770(0x216)+new Date(_0x610682[_0x46e770(0x270)])['toLocaleString']());if(_0x4fe190&&_0x4fe190['length']>0x0){console[_0x46e770(0x22c)](_0x16f045[_0x46e770(0x1ef)]);for(let _0x401388=0x0;_0x401388<_0x4fe190[_0x46e770(0x1db)];_0x401388++){const _0x178190=_0x4fe190[_0x401388];let _0x13dc80;if(_0x178190[_0x46e770(0x281)]===_0x46e770(0x258)&&_0x178190[_0x46e770(0x231)]===_0x16f045['TOcCF'])_0x13dc80='✅';else{if(_0x16f045['RQuuh'](_0x178190[_0x46e770(0x281)],_0x46e770(0x20b)))_0x13dc80='🟢';else{if(_0x16f045['RQuuh'](_0x178190[_0x46e770(0x281)],_0x16f045['LerFR']))_0x13dc80='🟠';else{if(_0x178190[_0x46e770(0x281)]===_0x46e770(0x263))_0x13dc80='🛑';else{if(_0x16f045['lzLgp'](_0x178190['status'],_0x16f045['ArYcw']))_0x13dc80='⛔';else _0x16f045['lzLgp'](_0x178190['status'],_0x16f045['VGXGf'])?_0x13dc80='⏳':_0x13dc80='⬜';}}}}const _0x197e13=_0x178190[_0x46e770(0x25f)]>0x1?'\x20(v'+_0x178190[_0x46e770(0x25f)]+')':'',_0x2d203a=_0x16f045[_0x46e770(0x1ea)](_0x178190[_0x46e770(0x25f)],0x1)&&_0x178190['parentItemId']&&_0x16f045['VWjYz'](_0x178190['status'],_0x16f045[_0x46e770(0x203)])&&_0x178190['status']!==_0x16f045['QntEv']?_0x16f045[_0x46e770(0x254)]:'';console[_0x46e770(0x22c)](_0x46e770(0x24a)+_0x16f045[_0x46e770(0x253)](_0x401388,0x1)+'.\x20'+_0x13dc80+'\x20'+_0x178190[_0x46e770(0x291)]+_0x197e13+_0x2d203a);_0x178190[_0x46e770(0x281)]===_0x46e770(0x263)&&_0x178190[_0x46e770(0x1ee)]&&console[_0x46e770(0x22c)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x178190[_0x46e770(0x1ee)]);_0x178190[_0x46e770(0x281)]==='incomplete'&&_0x178190[_0x46e770(0x209)]&&console[_0x46e770(0x22c)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x178190[_0x46e770(0x209)]);if(_0x16f045[_0x46e770(0x23f)](_0x178190[_0x46e770(0x281)],_0x16f045[_0x46e770(0x203)])&&_0x16f045[_0x46e770(0x27d)](_0x178190[_0x46e770(0x231)],_0x16f045[_0x46e770(0x1e2)]))console[_0x46e770(0x22c)](_0x46e770(0x245));else _0x178190['status']===_0x16f045['ArYcw']&&_0x178190['canceledReason']&&console['log'](_0x46e770(0x1ec)+_0x178190['canceledReason']);}}}export async function featureCreate(_0x14d89b,_0x29b1c6){const _0x17efd8=_0x19025f,_0x377ef7={'qijxg':function(_0x4ae77d){return _0x4ae77d();},'SwbCH':function(_0x3d9a94,_0x2e958e){return _0x3d9a94===_0x2e958e;},'lTbuP':'\x0aCreating\x20feature\x20review...','mtcQi':function(_0x203254,_0x223619){return _0x203254(_0x223619);}},{envNames:_0x5c0c1c}=await _0x377ef7['qijxg'](getEnvNames);if(_0x5c0c1c[_0x17efd8(0x1db)]===0x0&&!process['env']['RANGER_TEST_USERNAME']){let _0x5982d9=0x0;try{_0x5982d9=(await listCloudProfiles())['length'];}catch{_0x5982d9=0x1;}_0x377ef7['SwbCH'](_0x5982d9,0x0)&&console[_0x17efd8(0x1e9)]('\x0a'+formatProfileRequiredMessage(_0x4d6768=>bold(_0x4d6768)));}const _0x236b80=_0x29b1c6['scenarios']?_0x29b1c6[_0x17efd8(0x1d9)]['map'](_0x266ae2=>_0x266ae2[_0x17efd8(0x1f5)]()):[],_0x4968a9=_0x377ef7['qijxg'](getGitRepoUrl),_0x248616=getGitBranch();console[_0x17efd8(0x22c)](_0x377ef7[_0x17efd8(0x217)]);const _0xa11d48=await createFeature({'name':_0x14d89b,'description':_0x29b1c6['description'],'checklist':_0x236b80,'gitRepoUrl':_0x4968a9,'gitBranch':_0x248616});await _0x377ef7['mtcQi'](setActiveFeatureId,_0xa11d48['id']),await tryStartCurrentSession(_0xa11d48['id']);const _0x406bf0=process[_0x17efd8(0x24b)]['CLAUDE_SESSION_ID'];_0x406bf0&®isterSession(_0x406bf0,_0xa11d48['id']),console['log'](_0x17efd8(0x21c)+_0xa11d48['id']),displayFeature(_0xa11d48,_0xa11d48['checklistItems']),console['log'](_0x17efd8(0x24e));}export async function featureList(_0x1a23e8){const _0x5339e2=_0x19025f,_0x2b01c0={'ogeRv':function(_0x392b42){return _0x392b42();},'grxFa':function(_0x337070,_0x389894){return _0x337070===_0x389894;},'okkGY':function(_0x7e6a9d,_0xd5274){return _0x7e6a9d>_0xd5274;},'jwFHZ':_0x5339e2(0x285),'JyCna':function(_0x21708f,_0x111135){return _0x21708f(_0x111135);},'LOgrZ':function(_0x1b402f,_0x3ca223){return _0x1b402f!==_0x3ca223;},'EOFqa':'\x20--include-deleted'},_0x30039e={'limit':_0x1a23e8['limit']??0xa,'offset':_0x1a23e8['offset']??0x0,'includeDeleted':_0x1a23e8[_0x5339e2(0x22e)]};_0x1a23e8['currentBranch']&&(_0x30039e[_0x5339e2(0x273)]=_0x2b01c0['ogeRv'](getGitRepoUrl),_0x30039e[_0x5339e2(0x250)]=getGitBranch());const _0xf6f247=await listFeatures(_0x30039e);if(_0x2b01c0['grxFa'](_0xf6f247[_0x5339e2(0x219)]['length'],0x0)){console[_0x5339e2(0x22c)]('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0xe5e95e=_0x2b01c0[_0x5339e2(0x1cb)](_0xf6f247['totalCount'],_0xf6f247['items']['length'])?'Showing\x20'+_0xf6f247['items'][_0x5339e2(0x1db)]+_0x5339e2(0x1d8)+_0xf6f247[_0x5339e2(0x28d)]:_0xf6f247['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x5339e2(0x22c)]('\x0a'+_0xe5e95e+':\x0a');for(const _0x5a7aec of _0xf6f247['items']){const _0x458a8c=_0x2b01c0['jwFHZ'][_0x5339e2(0x1d7)]('|');let _0x3db749=0x0;while(!![]){switch(_0x458a8c[_0x3db749++]){case'0':console['log']('');continue;case'1':console['log'](''+_0x5a7aec[_0x5339e2(0x215)]);continue;case'2':_0x5a7aec['stats']&&console[_0x5339e2(0x22c)]('\x20\x20\x20Progress:\x20'+_0x2b01c0['JyCna'](getProgressDisplay,_0x5a7aec[_0x5339e2(0x218)]));continue;case'3':_0x5a7aec[_0x5339e2(0x250)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x5a7aec[_0x5339e2(0x250)]);continue;case'4':console[_0x5339e2(0x22c)](_0x5339e2(0x295)+new Date(_0x5a7aec[_0x5339e2(0x1e7)])['toLocaleDateString']());continue;case'5':console[_0x5339e2(0x22c)]('\x20\x20\x20ID:\x20'+_0x5a7aec['id']);continue;}break;}}const _0x5a25ae=_0x30039e['limit']??0xa,_0xf31427=(_0x30039e['offset']??0x0)+_0xf6f247['items']['length'];if(_0xf31427<_0xf6f247[_0x5339e2(0x28d)]){const _0x474361=_0x2b01c0['LOgrZ'](_0x5a25ae,0xa)?'\x20--limit\x20'+_0x5a25ae:'',_0x5e11db=_0x1a23e8[_0x5339e2(0x26a)]?'\x20--current-branch':'',_0x2230d4=_0x1a23e8[_0x5339e2(0x22e)]?_0x2b01c0['EOFqa']:'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0xf31427+_0x474361+_0x5e11db+_0x2230d4);}}export async function featureShow(_0x2bec5b){const _0x9f704d=_0x19025f,_0x8775fd={'nYhnZ':function(_0x259856){return _0x259856();},'ERRQv':_0x9f704d(0x247),'VTOoO':function(_0x38a34e,_0x57a2f9){return _0x38a34e(_0x57a2f9);}},_0x5ad92a=_0x2bec5b||await _0x8775fd[_0x9f704d(0x1d5)](getActiveFeatureId);if(!_0x5ad92a)throw new Error(_0x8775fd[_0x9f704d(0x227)]);const _0x375fe3=await _0x8775fd['VTOoO'](getFeature,_0x5ad92a);displayFeature(_0x375fe3,_0x375fe3['checklistItems']);}export async function featureResume(_0x4f2ee7){const _0x2f77ab=_0x19025f,_0x554871={'LHjqj':function(_0xd3534b,_0x4f9272){return _0xd3534b(_0x4f9272);},'wAzSr':function(_0x309589,_0x4631e0){return _0x309589(_0x4631e0);},'UAwXx':function(_0x42d548){return _0x42d548();},'eEaFn':function(_0x7024da,_0x7c2395){return _0x7024da!==_0x7c2395;},'tfPlN':function(_0x4e7590,_0x295c55){return _0x4e7590(_0x295c55);},'QOtZK':function(_0x57fe47){return _0x57fe47();},'pnuHb':_0x2f77ab(0x1d0),'uJPHs':_0x2f77ab(0x26f),'BWsLM':function(_0x2b069f,_0x5d78b8){return _0x2b069f||_0x5d78b8;},'WCtjL':function(_0x556e47,_0x3d0db5){return _0x556e47===_0x3d0db5;},'GRZOj':_0x2f77ab(0x213),'uNCnR':_0x2f77ab(0x28f),'xNIgC':_0x2f77ab(0x23d),'EMwal':function(_0x33d47f,_0x527e8b,_0x1215d6){return _0x33d47f(_0x527e8b,_0x1215d6);},'DziqK':function(_0x6fe116,_0x3b80ff){return _0x6fe116(_0x3b80ff);},'gJsId':function(_0xefca8b,_0x33f9cf){return _0xefca8b(_0x33f9cf);}};if(_0x4f2ee7){const _0x457e2e=await _0x554871[_0x2f77ab(0x221)](getFeature,_0x4f2ee7);await _0x554871[_0x2f77ab(0x1e1)](setActiveFeatureId,_0x457e2e['id']);const _0x20dfaf=_0x554871['UAwXx'](getGitBranch);_0x20dfaf&&_0x554871['eEaFn'](_0x20dfaf,_0x457e2e[_0x2f77ab(0x250)])&&(await updateFeature(_0x457e2e['id'],{'gitBranch':_0x20dfaf}),console[_0x2f77ab(0x22c)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x20dfaf));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x457e2e['name']+'\x20('+_0x457e2e['id']+')'),await _0x554871['LHjqj'](tryStartCurrentSession,_0x457e2e['id']);const _0x11e285=process['env']['CLAUDE_SESSION_ID'];_0x11e285&®isterSession(_0x11e285,_0x457e2e['id']);displayFeature(_0x457e2e,_0x457e2e['checklistItems']),await _0x554871[_0x2f77ab(0x1ce)](printFeedbackNudge,_0x457e2e['id']);return;}const _0x13dfb7=_0x554871[_0x2f77ab(0x27f)](getGitRepoUrl),_0x5d9a91=_0x554871[_0x2f77ab(0x1fc)](getGitBranch);if(!_0x13dfb7&&!_0x5d9a91)throw new Error(_0x554871['pnuHb']);console[_0x2f77ab(0x22c)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x13dfb7||_0x554871['uJPHs'])+'\x20/\x20'+_0x554871[_0x2f77ab(0x1e3)](_0x5d9a91,_0x554871['uJPHs'])+_0x2f77ab(0x257));const _0x24b136=await listFeatures({'gitRepoUrl':_0x13dfb7,'gitBranch':_0x5d9a91}),_0x476805=_0x24b136['items']['filter'](_0x2eb934=>_0x2eb934[_0x2f77ab(0x281)]?_0x2eb934[_0x2f77ab(0x281)]!=='verified':!_0x2eb934[_0x2f77ab(0x270)]);if(_0x554871['WCtjL'](_0x476805[_0x2f77ab(0x1db)],0x0)){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x2f77ab(0x22c)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0xbce35;if(_0x476805['length']===0x1)_0xbce35=_0x476805[0x0];else{const _0x349d19=process['stdin']['isTTY']&&process['stdout'][_0x2f77ab(0x25e)];if(!_0x349d19){console[_0x2f77ab(0x22c)](_0x554871['GRZOj']);for(const _0xa294df of _0x476805){console['log']('\x20\x20'+_0xa294df[_0x2f77ab(0x215)]),console[_0x2f77ab(0x22c)](_0x2f77ab(0x29a)+_0xa294df['id']),_0xa294df[_0x2f77ab(0x218)]&&console[_0x2f77ab(0x22c)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0xa294df['stats'])),_0xa294df['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xa294df[_0x2f77ab(0x250)]);}throw new Error(_0x554871['uNCnR']);}const {selected:_0x31aeb7}=await _0x4f5e05['prompt']([{'type':'list','name':'selected','message':_0x554871['xNIgC'],'choices':_0x476805[_0x2f77ab(0x207)](_0x596e88=>({'name':_0x596e88[_0x2f77ab(0x215)]+'\x20('+_0x596e88['id']+')','value':_0x596e88['id']}))}]);_0xbce35=_0x476805['find'](_0x3b8e00=>_0x3b8e00['id']===_0x31aeb7);}await setActiveFeatureId(_0xbce35['id']);_0x5d9a91&&_0x5d9a91!==_0xbce35['gitBranch']&&(await _0x554871[_0x2f77ab(0x264)](updateFeature,_0xbce35['id'],{'gitBranch':_0x5d9a91}),console[_0x2f77ab(0x22c)](_0x2f77ab(0x279)+_0x5d9a91));console['log'](_0x2f77ab(0x23a)+_0xbce35[_0x2f77ab(0x215)]+'\x20('+_0xbce35['id']+')'),await tryStartCurrentSession(_0xbce35['id']);const _0x32ca94=await _0x554871['DziqK'](getFeature,_0xbce35['id']),_0x5205d7=process[_0x2f77ab(0x24b)][_0x2f77ab(0x206)];_0x5205d7&®isterSession(_0x5205d7,_0x32ca94['id']),displayFeature(_0x32ca94,_0x32ca94[_0x2f77ab(0x251)]),await _0x554871[_0x2f77ab(0x283)](printFeedbackNudge,_0x32ca94['id']);}async function printFeedbackNudge(_0x39fd00){const _0x462252=_0x19025f,_0x35f880={'afBGE':function(_0x3e4563,_0x20179d){return _0x3e4563(_0x20179d);}};try{const {items:_0x51f346}=await _0x35f880['afBGE'](getActionItems,_0x39fd00);let _0x5a1daa=0x0,_0xbf0c5f=0x0;for(const _0x3a3846 of _0x51f346){const _0x20e0d0=await getItemFeedback(_0x39fd00,_0x3a3846['id']);_0x20e0d0['unaddressedComments']['length']>0x0&&(_0x5a1daa+=_0x20e0d0['unaddressedComments'][_0x462252(0x1db)],_0xbf0c5f++);}_0x5a1daa>0x0&&(console['log'](_0x462252(0x24c)+_0x5a1daa+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0xbf0c5f+_0x462252(0x1cf)),console[_0x462252(0x22c)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x501a8e){const _0x303a1c=_0x19025f,_0x48f30f={'UWJwe':function(_0x783ca1,_0x4f98bd,_0x6ff199){return _0x783ca1(_0x4f98bd,_0x6ff199);}};try{const {sessions:_0x5c7d3f}=await listFeatureSessions(_0x501a8e),_0x3e366e=_0x5c7d3f['find'](_0x4c915d=>_0x4c915d['status']==='ready');_0x3e366e&&(await _0x48f30f[_0x303a1c(0x249)](startSession,_0x501a8e,_0x3e366e['id']),console[_0x303a1c(0x22c)](_0x303a1c(0x22f)+_0x3e366e[_0x303a1c(0x262)]));}catch{}}export async function featureReport(_0x35f01d,_0x2da9cd){const _0x4fb4e3=_0x19025f,_0x2c58c7={'eTHix':_0x4fb4e3(0x277),'tEuYB':function(_0x2db7aa,_0x48cae7,_0x21729c){return _0x2db7aa(_0x48cae7,_0x21729c);},'EXjAl':function(_0x513c43,_0x2c74bc){return _0x513c43(_0x2c74bc);}},_0xd7d272=_0x35f01d||await getActiveFeatureId();if(!_0xd7d272)throw new Error(_0x2c58c7['eTHix']);console[_0x4fb4e3(0x22c)](_0x4fb4e3(0x1fb));const _0x56f039=await _0x2c58c7['tEuYB'](getFeatureReportMarkdown,_0xd7d272,{'style':_0x2da9cd['style']}),_0x8fbeaf=_0x2da9cd['output']||join(getRangerDir(),'reports',_0xd7d272+_0x4fb4e3(0x239)),_0x5ad6a5=join(_0x8fbeaf,'..');!_0x2c58c7['EXjAl'](existsSync,_0x5ad6a5)&&await mkdir(_0x5ad6a5,{'recursive':!![]}),await writeFile(_0x8fbeaf,_0x56f039,_0x4fb4e3(0x225)),console[_0x4fb4e3(0x22c)]('\x0a✅\x20Report\x20generated:\x20'+_0x8fbeaf);}function getScenarioResult(_0x151308){const _0x84f40e=_0x19025f,_0xaf0188={'QGuuo':'closed','tErZE':function(_0x21135a,_0x1fc791){return _0x21135a===_0x1fc791;},'qrVpS':_0x84f40e(0x1ca)};if(_0x151308['status']===_0xaf0188['QGuuo'])return _0x151308['terminalReason']??_0x84f40e(0x258);if(_0xaf0188['tErZE'](_0x151308[_0x84f40e(0x281)],_0x84f40e(0x268)))return _0xaf0188[_0x84f40e(0x1cc)];return _0x151308[_0x84f40e(0x281)];}function getScenarioRationale(_0x49fe28,_0x1041ae){const _0xaab9d9=_0x19025f;if(_0x1041ae)return _0x1041ae;if(_0x49fe28['blockedReason'])return _0x49fe28['blockedReason'];if(_0x49fe28['incompleteReason'])return _0x49fe28[_0xaab9d9(0x209)];if(_0x49fe28['canceledReason'])return _0x49fe28['canceledReason'];if(_0x49fe28['notes'])return _0x49fe28[_0xaab9d9(0x246)];return null;}export async function featureReportPrDescription(_0x69b940,_0x397d9a){const _0x1d1220=_0x19025f,_0x1f8ac2={'FlrJr':function(_0x70bb12){return _0x70bb12();},'hHqXi':_0x1d1220(0x277),'aoIVY':function(_0x563cfd,_0x4b46c4){return _0x563cfd(_0x4b46c4);},'DVINq':function(_0x15713e,_0x363e9d,_0x38a887){return _0x15713e(_0x363e9d,_0x38a887);},'IeRrj':function(_0x53dd08,_0x9b85c1){return _0x53dd08===_0x9b85c1;},'OENfY':function(_0x2b489f,_0x200a14){return _0x2b489f>_0x200a14;},'JtHnk':function(_0x251516,_0x4d38f9){return _0x251516<_0x4d38f9;},'oPbXv':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','itwhs':function(_0x83416e,_0x586e96,_0xe5ae60,_0x4d9109){return _0x83416e(_0x586e96,_0xe5ae60,_0x4d9109);}},_0x278447=_0x69b940||await _0x1f8ac2[_0x1d1220(0x280)](getActiveFeatureId);if(!_0x278447)throw new Error(_0x1f8ac2[_0x1d1220(0x1fe)]);const _0x11635a=await _0x1f8ac2['aoIVY'](getFeature,_0x278447),_0x4d5bcb=_0x11635a['checklistItems']||[],_0x184ddc=_0x1f8ac2[_0x1d1220(0x293)](getCurrentSessionItems,_0x11635a,_0x4d5bcb);_0x1f8ac2['IeRrj'](_0x184ddc['length'],0x0)&&(console[_0x1d1220(0x238)](_0x1d1220(0x1d2)),process['exit'](0x1));const _0x31cc03=_0x397d9a['excludeScenarios']??[],_0x1ffc67=_0x31cc03['filter'](_0x5e276c=>!Number[_0x1d1220(0x244)](_0x5e276c)||_0x5e276c<0x1||_0x5e276c>_0x184ddc['length']);if(_0x1f8ac2['OENfY'](_0x1ffc67['length'],0x0)){console[_0x1d1220(0x238)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x1ffc67['join'](',\x20')),console[_0x1d1220(0x22c)]('\x0aAvailable\x20scenarios:');for(let _0x47a3f0=0x0;_0x1f8ac2['JtHnk'](_0x47a3f0,_0x184ddc['length']);_0x47a3f0++){console[_0x1d1220(0x22c)]('\x20\x20'+(_0x47a3f0+0x1)+'.\x20'+_0x184ddc[_0x47a3f0]['description']);}process['exit'](0x1);}const _0x4d7780=new Set(_0x31cc03[_0x1d1220(0x207)](_0xdc648a=>_0xdc648a-0x1)),_0x342d21=_0x184ddc['filter']((_0x426397,_0x3e34a2)=>!_0x4d7780[_0x1d1220(0x1e5)](_0x3e34a2));_0x342d21['length']===0x0&&(console[_0x1d1220(0x238)](_0x1f8ac2[_0x1d1220(0x22a)]),process[_0x1d1220(0x261)](0x1));if(_0x397d9a[_0x1d1220(0x27a)])await _0x1f8ac2[_0x1d1220(0x1df)](outputJsonReport,_0x278447,_0x11635a,_0x342d21);else{const _0x11f2ae=await _0x1f8ac2[_0x1d1220(0x293)](getFeatureReportMarkdown,_0x278447,{'itemIds':_0x342d21[_0x1d1220(0x207)](_0xf46b1=>_0xf46b1['id'])});process[_0x1d1220(0x272)]['write'](_0x11f2ae[_0x1d1220(0x289)]()+'\x0a');}}async function outputJsonReport(_0x23fd5a,_0x4da194,_0x1cef56){const _0x90ba82=_0x19025f,_0x9e8fea={'MzvsC':function(_0x178acc,_0x428a19){return _0x178acc(_0x428a19);},'LacCM':function(_0x256743,_0x427a89){return _0x256743===_0x427a89;},'NfRAW':function(_0xf5002d,_0x33bdc5){return _0xf5002d+_0x33bdc5;}},_0x546ea2=getApiBaseUrl(),_0x22e02c=await _0x9e8fea[_0x90ba82(0x222)](getFeatureReport,_0x23fd5a),_0x404f72=new Map(_0x22e02c[_0x90ba82(0x251)]['map'](_0x48e07b=>[_0x48e07b['id'],_0x48e07b])),_0x35d2a4=await Promise['all'](_0x1cef56[_0x90ba82(0x207)](async _0x3cba6b=>{const _0x353b38=_0x90ba82,_0x48bf13=_0x404f72['get'](_0x3cba6b['id']),_0x321328=_0x48bf13?.['linkedSession']??null;let _0x42aaa3=[];if(_0x3cba6b[_0x353b38(0x21d)])try{const {steps:_0x341f92}=await _0x9e8fea[_0x353b38(0x222)](getBrowserSessionSteps,_0x3cba6b['browserSessionId']);_0x341f92['length']>0x0&&(_0x42aaa3=_0x341f92['map'](_0x32899c=>{const _0x1e6955=_0x353b38,_0x581645=_0x32899c[_0x1e6955(0x242)]['find'](_0x203f1f=>_0x203f1f['assetType']===_0x1e6955(0x269)&&_0x203f1f[_0x1e6955(0x22d)]==='after')??_0x32899c[_0x1e6955(0x242)]['find'](_0x2d969f=>_0x2d969f[_0x1e6955(0x241)]===_0x1e6955(0x269));let _0x1d4b48=null,_0x2edab2=null;if(_0x581645){const _0x1abe88=_0x581645['storage']['location']['split']('/')[_0x1e6955(0x292)]();_0x1d4b48=_0x546ea2+'/api/v1/mcp/browser-sessions/'+_0x3cba6b[_0x1e6955(0x21d)]+_0x1e6955(0x233)+_0x1abe88,_0x1abe88&&(_0x2edab2=_0x1abe88['replace'](/\.\w+$/,'')[_0x1e6955(0x24f)](/^(key_)?\d+_/,'')[_0x1e6955(0x24f)](/[-_]/g,'\x20'));}return{'description':_0x2edab2||_0x32899c[_0x1e6955(0x291)]||_0x32899c['stepName']||'Step\x20'+_0x32899c[_0x1e6955(0x208)],'screenshot':_0x1d4b48,'is_key_step':_0x32899c['isKeyStep']};}));}catch{}return _0x9e8fea[_0x353b38(0x1d6)](_0x42aaa3[_0x353b38(0x1db)],0x0)&&_0x321328?.['screenshotUrls']&&(_0x42aaa3=_0x321328[_0x353b38(0x23c)][_0x353b38(0x207)]((_0x1326ac,_0x46dc0d)=>({'description':_0x353b38(0x286)+(_0x46dc0d+0x1),'screenshot':_0x1326ac,'is_key_step':![]}))),{'description':_0x3cba6b[_0x353b38(0x291)],'result':getScenarioResult(_0x3cba6b),'rationale':getScenarioRationale(_0x3cba6b,_0x321328?.['agentResponse']),'steps':_0x42aaa3};})),_0x470471={'url':_0x4da194['dashboardUrl'],'scenarios':_0x35d2a4};process['stdout']['write'](_0x9e8fea[_0x90ba82(0x1da)](JSON['stringify'](_0x470471,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x5574fc){const _0x331482=_0x19025f,_0x1f6c36={'OEFNs':function(_0x139f25){return _0x139f25();},'yJVJC':_0x331482(0x247),'juPKE':function(_0x1ded61,_0x26bfcf){return _0x1ded61(_0x26bfcf);},'uYktC':function(_0x27847e,_0x59d6e5){return _0x27847e===_0x59d6e5;},'gcHQZ':'in_progress','nUfub':_0x331482(0x20e),'kohlF':function(_0x186b0b,_0x47b57e,_0x46ff07){return _0x186b0b(_0x47b57e,_0x46ff07);}},_0x546549=_0x5574fc||await _0x1f6c36[_0x331482(0x1e0)](getActiveFeatureId);if(!_0x546549)throw new Error(_0x1f6c36['yJVJC']);const _0x1cc7f9=await _0x1f6c36['juPKE'](getFeature,_0x546549);if(!_0x1cc7f9['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x5896a5}=await _0x1f6c36['juPKE'](listFeatureSessions,_0x546549),_0x4b8714=_0x5896a5[_0x331482(0x284)](_0x16e397=>_0x16e397['id']===_0x1cc7f9['currentSessionId']);if(!_0x4b8714)throw new Error('Current\x20session\x20not\x20found.');if(_0x1f6c36['uYktC'](_0x4b8714['status'],'completed')){console[_0x331482(0x22c)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x4b8714[_0x331482(0x281)]!==_0x1f6c36['gcHQZ'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x4b8714['status']);console[_0x331482(0x22c)](_0x1f6c36['nUfub']),await _0x1f6c36[_0x331482(0x1f7)](concludeSession,_0x546549,_0x1cc7f9[_0x331482(0x21a)]),console['log']('\x0a✅\x20Session\x20'+_0x4b8714['iteration']+_0x331482(0x1c9)),console[_0x331482(0x22c)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x1e5c02){const _0x35dee4=_0x19025f,_0x8a9bea={'uTBBQ':function(_0x5e03ff,_0x56854c){return _0x5e03ff(_0x56854c);},'fiJSI':function(_0x2c18d1,_0x95ec85){return _0x2c18d1===_0x95ec85;},'lVnFE':_0x35dee4(0x230),'VNtnH':function(_0x2d59c2,_0x287c73){return _0x2d59c2===_0x287c73;}},_0x461a50=_0x1e5c02||await getActiveFeatureId();if(!_0x461a50)throw new Error(_0x35dee4(0x277));const _0x12088d=await _0x8a9bea['uTBBQ'](getFeature,_0x461a50);console[_0x35dee4(0x22c)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x12088d[_0x35dee4(0x215)]+'\x0a');const {sessions:_0x688aea}=await listFeatureSessions(_0x461a50);if(_0x688aea['length']===0x0){console[_0x35dee4(0x22c)](_0x35dee4(0x1f9));return;}for(const _0x507064 of _0x688aea){const _0x44a7c5=_0x8a9bea[_0x35dee4(0x1dc)](_0x507064['status'],_0x8a9bea['lVnFE'])?'✅':_0x8a9bea[_0x35dee4(0x1c6)](_0x507064[_0x35dee4(0x281)],_0x35dee4(0x1ca))?'🔄':'▶️';console['log'](_0x44a7c5+_0x35dee4(0x24d)+_0x507064['iteration']+'\x20('+_0x507064['id']+')'),console[_0x35dee4(0x22c)]('\x20\x20\x20Status:\x20'+_0x507064[_0x35dee4(0x281)]),console[_0x35dee4(0x22c)]('\x20\x20\x20Created:\x20'+new Date(_0x507064['createdAt'])['toLocaleString']()),_0x507064['completedAt']&&console[_0x35dee4(0x22c)](_0x35dee4(0x216)+new Date(_0x507064['completedAt'])[_0x35dee4(0x20a)]()),console['log']('');}}export async function featureAddScenario(_0x24041c,_0x456178){const _0x2b2d77=_0x19025f,_0x586941={'jwJyj':function(_0x1b90e6){return _0x1b90e6();},'ZaatN':function(_0x7c7b6f,_0x37013f){return _0x7c7b6f(_0x37013f);}},_0x380fe5=_0x456178||await _0x586941[_0x2b2d77(0x288)](getActiveFeatureId);if(!_0x380fe5)throw new Error(_0x2b2d77(0x247));const _0x2fab09=await _0x586941[_0x2b2d77(0x276)](getFeature,_0x380fe5);if(_0x2fab09['latestReview']&&!_0x2fab09[_0x2b2d77(0x282)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x2fab09[_0x2b2d77(0x234)]);await createChecklistItem(_0x380fe5,_0x24041c);const _0x200f04=await getFeature(_0x380fe5);console['log'](_0x2b2d77(0x294)),displayFeature(_0x200f04,_0x200f04['checklistItems']);}export async function featureEditScenario(_0x7162f5,_0x3ac9c2){const _0x2630e9=_0x19025f,_0x104e00={'czTrV':function(_0x483f9e){return _0x483f9e();},'roRMu':_0x2630e9(0x274),'KtOnj':function(_0x170f33,_0x53c56e){return _0x170f33(_0x53c56e);},'cqRca':_0x2630e9(0x297),'fCppw':function(_0x2dc701,_0x36dc3e){return _0x2dc701===_0x36dc3e;},'koGMb':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','Vbame':'\x0aAvailable\x20scenarios:','syivI':function(_0x3e6232,_0x5168c4){return _0x3e6232<_0x5168c4;},'uuVsg':function(_0x5602ed,_0x2c52ca){return _0x5602ed>=_0x2c52ca;},'LCqqm':function(_0x104c9f,_0x480d63){return _0x104c9f<_0x480d63;}},_0x1401ec=_0x3ac9c2['id']||await _0x104e00['czTrV'](getActiveFeatureId);!_0x1401ec&&(console[_0x2630e9(0x238)](_0x104e00[_0x2630e9(0x236)]),console[_0x2630e9(0x238)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x7f3045=await _0x104e00[_0x2630e9(0x265)](getFeature,_0x1401ec);_0x7f3045['latestReview']&&!_0x7f3045['latestReview']['submittedAt']&&(console[_0x2630e9(0x238)](_0x104e00[_0x2630e9(0x20f)]),console['error'](_0x2630e9(0x23b)),console['error']('\x20\x20'+_0x7f3045['dashboardUrl']),process[_0x2630e9(0x261)](0x1));const _0x441ca5=_0x7f3045[_0x2630e9(0x251)]||[];_0x441ca5['length']===0x0&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x104e00['fCppw'](_0x3ac9c2['scenario'],undefined)){console['error'](_0x104e00['koGMb']),console['log'](_0x104e00['Vbame']);for(let _0x5355fb=0x0;_0x104e00[_0x2630e9(0x25c)](_0x5355fb,_0x441ca5[_0x2630e9(0x1db)]);_0x5355fb++){console['log']('\x20\x20'+(_0x5355fb+0x1)+'.\x20'+_0x441ca5[_0x5355fb]['description']);}process['exit'](0x1);}const _0x3fdf1e=_0x3ac9c2['scenario']-0x1;if(_0x3fdf1e<0x0||_0x104e00[_0x2630e9(0x21b)](_0x3fdf1e,_0x441ca5[_0x2630e9(0x1db)])){console[_0x2630e9(0x238)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x3ac9c2[_0x2630e9(0x287)]+_0x2630e9(0x201)+_0x441ca5[_0x2630e9(0x1db)]+'\x20scenarios.'),console['log'](_0x104e00['Vbame']);for(let _0x1b5706=0x0;_0x104e00[_0x2630e9(0x267)](_0x1b5706,_0x441ca5['length']);_0x1b5706++){console['log']('\x20\x20'+(_0x1b5706+0x1)+'.\x20'+_0x441ca5[_0x1b5706]['description']);}process['exit'](0x1);}const _0x14060f=_0x441ca5[_0x3fdf1e];await updateChecklistItem(_0x1401ec,_0x14060f['id'],{'description':_0x7162f5});const _0x283115=await getFeature(_0x1401ec);console['log'](_0x2630e9(0x1d4)),displayFeature(_0x283115,_0x283115['checklistItems']);}async function downloadFeedbackImage(_0x4460ce,_0x2d5d19){const _0x59fb29=_0x19025f,_0x2b008f={'YUlrl':function(_0x26c766){return _0x26c766();},'ExFhA':_0x59fb29(0x1f1),'mVqOI':function(_0x52fd01,_0x4070c9,_0x4a1c25){return _0x52fd01(_0x4070c9,_0x4a1c25);},'VRwSw':function(_0x45e949,_0x4f982d,_0x487f83){return _0x45e949(_0x4f982d,_0x487f83);}};try{const _0x4981d2=join(_0x2b008f[_0x59fb29(0x237)](getRangerDir),_0x2b008f[_0x59fb29(0x214)]);await mkdir(_0x4981d2,{'recursive':!![]});const _0x19b447=_0x2b008f['mVqOI'](join,_0x4981d2,_0x59fb29(0x202)+_0x2d5d19+_0x59fb29(0x278)),_0xf81cff=await fetch(_0x4460ce);if(!_0xf81cff['ok'])return null;const _0x3686bb=Buffer[_0x59fb29(0x1ff)](await _0xf81cff[_0x59fb29(0x1f6)]());return await _0x2b008f['VRwSw'](writeFile,_0x19b447,_0x3686bb),_0x19b447;}catch{return null;}}export async function featureGetReview(_0x28318e){const _0xb8336d=_0x19025f,_0x1775f2={'WbPYN':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','wydOM':function(_0x52d343,_0x3a9370){return _0x52d343(_0x3a9370);},'VCdWZ':'No\x20scenarios\x20found.','tAgFy':function(_0x4c9581,_0x2130ec){return _0x4c9581>_0x2130ec;},'QsUBV':function(_0x3a8dbf,_0x7438c0,_0x33817a){return _0x3a8dbf(_0x7438c0,_0x33817a);},'aWFJN':_0xb8336d(0x259),'CyhwK':function(_0x547a0f,_0x17ebc5,_0x457db7){return _0x547a0f(_0x17ebc5,_0x457db7);},'Fciio':'point','bLLLi':function(_0x447eb2,_0x2e24ca){return _0x447eb2>=_0x2e24ca;}},_0x446ed8=_0x28318e||await getActiveFeatureId();if(!_0x446ed8)throw new Error(_0x1775f2['WbPYN']);const _0x57758e=await getFeature(_0x446ed8),{items:_0x1ceb5d}=await _0x1775f2[_0xb8336d(0x26b)](getActionItems,_0x446ed8);console['log'](_0xb8336d(0x266)+_0x57758e[_0xb8336d(0x215)]+'\x20('+_0x57758e['id']+')\x0a');if(_0x1ceb5d[_0xb8336d(0x1db)]===0x0){console[_0xb8336d(0x22c)](_0x1775f2[_0xb8336d(0x1c8)]);return;}for(let _0x8e5f64=0x0;_0x8e5f64<_0x1ceb5d[_0xb8336d(0x1db)];_0x8e5f64++){const _0x46a5b4=_0x1ceb5d[_0x8e5f64],_0x2a935b=_0x1775f2[_0xb8336d(0x27e)](_0x46a5b4[_0xb8336d(0x25f)],0x1)?_0xb8336d(0x1ed)+_0x46a5b4[_0xb8336d(0x25f)]+')':'',_0x210057=await _0x1775f2[_0xb8336d(0x23e)](getItemFeedback,_0x446ed8,_0x46a5b4['id']);if(_0x210057[_0xb8336d(0x1f2)]['length']>0x0){console[_0xb8336d(0x22c)]('Scenario\x20'+(_0x8e5f64+0x1)+':\x20\x22'+_0x46a5b4['description']+'\x22'+_0x2a935b+'\x20—\x20'+_0x210057['unaddressedComments'][_0xb8336d(0x1db)]+'\x20unaddressed\x20comment(s)');for(const _0x3c8b21 of _0x210057[_0xb8336d(0x1f2)]){const _0x4376e2=new Date(_0x3c8b21['createdAt'])[_0xb8336d(0x200)](_0xb8336d(0x25b),{'month':_0xb8336d(0x26c),'day':_0x1775f2['aWFJN']}),_0x2cd1a7=_0x3c8b21['authorName']||_0x3c8b21[_0xb8336d(0x28c)]||_0xb8336d(0x1fd);console[_0xb8336d(0x22c)](_0xb8336d(0x25d)+_0x2cd1a7+'\x20('+_0x4376e2+_0xb8336d(0x20d)+_0x3c8b21[_0xb8336d(0x26d)]+'\x22');if(_0x3c8b21[_0xb8336d(0x256)]){const _0x313f50=await _0x1775f2[_0xb8336d(0x1dd)](downloadFeedbackImage,_0x3c8b21[_0xb8336d(0x256)],_0x3c8b21['id']);_0x313f50&&console['log'](_0xb8336d(0x1f8)+_0x313f50);}if(_0x3c8b21[_0xb8336d(0x1d1)]){const _0x303e51=_0x3c8b21[_0xb8336d(0x1d1)]['selector'][_0xb8336d(0x1d7)](_0xb8336d(0x25a))[_0xb8336d(0x292)]()?.['split'](':')[0x0]||'element',_0x5a9542=_0x3c8b21[_0xb8336d(0x1d1)]['textContent']?'\x20\x22'+_0x3c8b21[_0xb8336d(0x1d1)]['textContent'][_0xb8336d(0x255)](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x303e51+'>'+_0x5a9542),console[_0xb8336d(0x22c)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3c8b21[_0xb8336d(0x1d1)]['selector']);}else{if(_0x3c8b21['spatial']){const _0x27369d=_0x3c8b21[_0xb8336d(0x1f0)]['coordinates'];_0x3c8b21['spatial'][_0xb8336d(0x210)]===_0x1775f2['Fciio']&&_0x1775f2['bLLLi'](_0x27369d[_0xb8336d(0x1db)],0x2)?console[_0xb8336d(0x22c)](_0xb8336d(0x229)+_0x27369d[0x0][_0xb8336d(0x26e)](0x2)+',\x20'+_0x27369d[0x1]['toFixed'](0x2)+')'):console[_0xb8336d(0x22c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3c8b21['spatial']['type']+_0xb8336d(0x21e)+_0x27369d[_0xb8336d(0x207)](_0x4b2efd=>_0x4b2efd[_0xb8336d(0x26e)](0x2))['join'](',\x20')+']');}}}if(_0x210057['canonicalFlow']){console['log'](_0xb8336d(0x228));for(const _0x17a3fe of _0x210057['canonicalFlow'][_0xb8336d(0x1d7)]('\x0a')){console['log']('\x20\x20\x20\x20'+_0x17a3fe);}}}else console['log']('Scenario\x20'+(_0x8e5f64+0x1)+_0xb8336d(0x260)+_0x46a5b4[_0xb8336d(0x291)]+'\x22'+_0x2a935b+_0xb8336d(0x1f3)),console[_0xb8336d(0x22c)](_0xb8336d(0x252));console['log']('');}}export async function featureDelete(_0xacbe95){const _0x4177fd=_0x19025f,_0x2e3183={'hmHVc':function(_0x381bc4){return _0x381bc4();},'setNa':_0x4177fd(0x247),'dFQCE':function(_0x225d8a,_0x5c4779){return _0x225d8a(_0x5c4779);},'YDuJe':function(_0x2157f9,_0x454ce3){return _0x2157f9(_0x454ce3);},'AMgoF':_0x4177fd(0x1d3)},_0x57f1cc=_0xacbe95||await _0x2e3183['hmHVc'](getActiveFeatureId);if(!_0x57f1cc)throw new Error(_0x2e3183['setNa']);const _0xc6df89=await _0x2e3183['dFQCE'](getFeature,_0x57f1cc);await _0x2e3183[_0x4177fd(0x240)](softDeleteFeature,_0x57f1cc),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0xc6df89[_0x4177fd(0x215)]+'\x20('+_0x57f1cc+')'),console['log'](_0x2e3183[_0x4177fd(0x204)]+_0x57f1cc);}export async function featureRestore(_0x308552){const _0x4e3d5c=_0x19025f;await restoreFeature(_0x308552);const _0x4423dd=await getFeature(_0x308552);console['log'](_0x4e3d5c(0x212)+_0x4423dd['name']+'\x20('+_0x308552+')'),displayFeature(_0x4423dd,_0x4423dd['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x58eed0,_0x29d1c6){const _0x7cba9b=_0x5cbe,_0x394521=_0x58eed0();while(!![]){try{const _0x503731=parseInt(_0x7cba9b(0x87))/0x1+parseInt(_0x7cba9b(0x92))/0x2+-parseInt(_0x7cba9b(0x8f))/0x3+-parseInt(_0x7cba9b(0x89))/0x4+-parseInt(_0x7cba9b(0x8e))/0x5*(parseInt(_0x7cba9b(0x8c))/0x6)+-parseInt(_0x7cba9b(0x93))/0x7*(-parseInt(_0x7cba9b(0x8b))/0x8)+-parseInt(_0x7cba9b(0x8a))/0x9;if(_0x503731===_0x29d1c6)break;else _0x394521['push'](_0x394521['shift']());}catch(_0x482120){_0x394521['push'](_0x394521['shift']());}}}(_0x10cf,0x9d57a));function _0x5cbe(_0x14cc55,_0x4138f9){_0x14cc55=_0x14cc55-0x85;const _0x10cfe9=_0x10cf();let _0x5cbe16=_0x10cfe9[_0x14cc55];return _0x5cbe16;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x33d2f3=_0x5cbe,_0x201c89={'IuKXL':'SIGINT','URCjn':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x3f2dd2=()=>{const _0x32de89=_0x5cbe;process[_0x32de89(0x88)](0x0);};process[_0x33d2f3(0x91)](_0x201c89['IuKXL'],_0x3f2dd2),process[_0x33d2f3(0x91)](_0x33d2f3(0x85),_0x3f2dd2),process['once'](_0x201c89['URCjn'],_0x3f2dd2),cancellationHandlersInstalled=!![];}function _0x10cf(){const _0x5c9172=['Unknown\x20hook:\x20','688786loNYxZ','exit','1814584NCPMxr','5264703suNhCh','8849528QwUOuY','67614YXAPjP','XgmZn','20NVWsdO','1120440OGZOll','error','once','613332ETDGsu','7hFxhCV','SIGTERM'];_0x10cf=function(){return _0x5c9172;};return _0x10cf();}export async function hook(_0x651d,_0x1db365){const _0x3f0712=_0x5cbe,_0xf4428a={'jHSun':function(_0x3f0c63){return _0x3f0c63();},'XgmZn':function(_0x97be10,_0x5227eb){return _0x97be10(_0x5227eb);}};_0xf4428a['jHSun'](installCancellationHandlers);const _0x47b13d=HOOKS[_0x651d];if(!_0x47b13d){const _0x2eda6c=Object['keys'](HOOKS)['join'](',\x20');console[_0x3f0712(0x90)](_0x3f0712(0x86)+_0x651d),console[_0x3f0712(0x90)]('Valid\x20hooks:\x20'+_0x2eda6c),process[_0x3f0712(0x88)](0x1);}await _0xf4428a[_0x3f0712(0x8d)](_0x47b13d,_0x1db365);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x455d(){const _0x48e624=['9KiPcvC','427477BoGhxH','16RuOvFD','4385330OWEyVs','1944870cLCDhR','1836989aLcEdb','3392112jIPkrs','4001562FUFMpz','12AivEBh','4743519lpeDIc','6aELNwP'];_0x455d=function(){return _0x48e624;};return _0x455d();}(function(_0x257741,_0x1c4c4c){const _0x2c4196=_0x8227,_0x148539=_0x257741();while(!![]){try{const _0x3f1aa8=parseInt(_0x2c4196(0xf1))/0x1*(parseInt(_0x2c4196(0xef))/0x2)+parseInt(_0x2c4196(0xeb))/0x3+-parseInt(_0x2c4196(0xed))/0x4*(parseInt(_0x2c4196(0xe9))/0x5)+-parseInt(_0x2c4196(0xec))/0x6+parseInt(_0x2c4196(0xea))/0x7*(-parseInt(_0x2c4196(0xe7))/0x8)+parseInt(_0x2c4196(0xf0))/0x9*(parseInt(_0x2c4196(0xe8))/0xa)+parseInt(_0x2c4196(0xee))/0xb;if(_0x3f1aa8===_0x1c4c4c)break;else _0x148539['push'](_0x148539['shift']());}catch(_0x3e9220){_0x148539['push'](_0x148539['shift']());}}}(_0x455d,0xe1a22));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';function _0x8227(_0x19be37,_0x1200fb){_0x19be37=_0x19be37-0xe7;const _0x455df6=_0x455d();let _0x822727=_0x455df6[_0x19be37];return _0x822727;}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 _0x332399={'brwcs':function(_0x4e0d5a,_0x18ebbc){return _0x4e0d5a===_0x18ebbc;},'WgxqL':function(_0x25d8dd,_0x185438){return _0x25d8dd(_0x185438);}};if(_0x332399['brwcs'](resolveHookMode(),'off'))return;const _0x4cb875=await readHookInput(),_0x1a5fd5=_0x4cb875?.['session_id'];if(!_0x1a5fd5)return;if(isSessionEnabled(_0x1a5fd5)||_0x332399['WgxqL'](hasSessionBeenPrompted,_0x1a5fd5))return;markSessionPrompted(_0x1a5fd5),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x462d07,_0x41b775){const _0x40c3f4=_0x58ed,_0x5b5d7b=_0x462d07();while(!![]){try{const _0x4fbc09=-parseInt(_0x40c3f4(0x6b))/0x1*(parseInt(_0x40c3f4(0x67))/0x2)+-parseInt(_0x40c3f4(0x73))/0x3+parseInt(_0x40c3f4(0x6a))/0x4*(parseInt(_0x40c3f4(0x74))/0x5)+parseInt(_0x40c3f4(0x6f))/0x6+parseInt(_0x40c3f4(0x76))/0x7+parseInt(_0x40c3f4(0x68))/0x8*(-parseInt(_0x40c3f4(0x6d))/0x9)+-parseInt(_0x40c3f4(0x71))/0xa*(-parseInt(_0x40c3f4(0x78))/0xb);if(_0x4fbc09===_0x41b775)break;else _0x5b5d7b['push'](_0x5b5d7b['shift']());}catch(_0x2521db){_0x5b5d7b['push'](_0x5b5d7b['shift']());}}}(_0x3d73,0xb4fe5));function _0x3d73(){const _0x16474a=['136235VnwNoD','430sfLTQH','79488oBNufG','eIBoV','84296NgImIm','2046ZQMZwv','main','873LiaJfu','\x20and\x20branch\x20\x27','3349602NpIPCL','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','110uCRnYk','master','801705xOGpGJ','115eweVWm','CsMZY','8631434ApOAnA','ZPoSk'];_0x3d73=function(){return _0x16474a;};return _0x3d73();}function _0x58ed(_0x4e3f88,_0x278726){_0x4e3f88=_0x4e3f88-0x67;const _0x3d73f0=_0x3d73();let _0x58edad=_0x3d73f0[_0x4e3f88];return _0x58edad;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x4bb230){const _0x58e34f=_0x58ed,_0x19f919={'ZPoSk':function(_0x1dd07f){return _0x1dd07f();},'CsMZY':function(_0xfe927d,_0x2a71ec){return _0xfe927d!==_0x2a71ec;},'KfSTD':function(_0x39b858,_0x2b678c){return _0x39b858(_0x2b678c);},'eIBoV':function(_0x2d38bd,_0x4da367){return _0x2d38bd(_0x4da367);},'QwdRw':_0x58e34f(0x6c)},_0x5be3b6=_0x4bb230||process['env']['CLAUDE_SESSION_ID']||'';_0x5be3b6&&disableSession(_0x5be3b6);const _0x165928=_0x19f919[_0x58e34f(0x77)](getCurrentBranch);_0x165928&&_0x165928!=='main'&&_0x19f919[_0x58e34f(0x75)](_0x165928,_0x58e34f(0x72))&&_0x19f919['KfSTD'](disableBranch,_0x165928),_0x19f919[_0x58e34f(0x69)](printBlock,_0x58e34f(0x70)+(_0x165928&&_0x165928!==_0x19f919['QwdRw']&&_0x19f919[_0x58e34f(0x75)](_0x165928,'master')?_0x58e34f(0x6e)+_0x165928+'\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(_0x1a449f,_0x23b5d8){const _0x364779=_0x4ed7,_0x1f7a94=_0x1a449f();while(!![]){try{const _0x31caef=parseInt(_0x364779(0x8a))/0x1*(parseInt(_0x364779(0x88))/0x2)+-parseInt(_0x364779(0x81))/0x3*(-parseInt(_0x364779(0x85))/0x4)+parseInt(_0x364779(0x89))/0x5+parseInt(_0x364779(0x8e))/0x6+-parseInt(_0x364779(0x95))/0x7*(-parseInt(_0x364779(0x87))/0x8)+-parseInt(_0x364779(0x90))/0x9*(-parseInt(_0x364779(0x86))/0xa)+-parseInt(_0x364779(0x96))/0xb;if(_0x31caef===_0x23b5d8)break;else _0x1f7a94['push'](_0x1f7a94['shift']());}catch(_0x3bbbee){_0x1f7a94['push'](_0x1f7a94['shift']());}}}(_0x5de9,0x8382d));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x4ed7(_0x24e9f4,_0x38c40f){_0x24e9f4=_0x24e9f4-0x81;const _0x5de98f=_0x5de9();let _0x4ed7c7=_0x5de98f[_0x24e9f4];return _0x4ed7c7;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x5de9(){const _0x7a1a0f=['1535276WeIZbp','10vaCiRE','8RBtaxF','1612102fFLVvM','3429015dpuXXb','1NlmQZr','env','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','19164WpCYnN','main','5540049WMVgKu','master','inoLc','CLAUDE_SESSION_ID','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','2798635SNFikT','25911204PcARSz','3BAgpOc','mpPfp','ranger\x20setup','cDkeK'];_0x5de9=function(){return _0x7a1a0f;};return _0x5de9();}export async function enable(_0xd65897){const _0x4fb1f4=_0x4ed7,_0x5615ea={'cDkeK':function(_0x5adf2c,_0x3120ed){return _0x5adf2c(_0x3120ed);},'AYuWe':function(_0x31bcaa){return _0x31bcaa();},'inoLc':'ranger\x20setup\x20--opencode','mpPfp':_0x4fb1f4(0x83),'BTLSS':function(_0x21554e,_0x4d663d){return _0x21554e(_0x4d663d);},'XCyFo':function(_0x334ef6){return _0x334ef6();},'ruOdm':function(_0x574b0e,_0x1a2906){return _0x574b0e!==_0x1a2906;},'vPnca':_0x4fb1f4(0x8f),'mJYeS':function(_0x130128){return _0x130128();}},_0x18a867=_0xd65897||process[_0x4fb1f4(0x8b)][_0x4fb1f4(0x93)]||'',_0x38835a=_0x5615ea[_0x4fb1f4(0x84)](Boolean,_0xd65897),_0xe4bc8f=await _0x5615ea['AYuWe'](getToken);if(!_0xe4bc8f){const _0x2f282a=_0x38835a?_0x5615ea[_0x4fb1f4(0x92)]:_0x5615ea[_0x4fb1f4(0x82)],_0x49b93b=_0x38835a?_0x4fb1f4(0x8d):'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x5615ea['BTLSS'](printBlock,'#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x2f282a+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x49b93b);return;}try{await _0x5615ea['XCyFo'](update);}catch{}_0x18a867&&enableSession(_0x18a867);const _0x448058=getCurrentBranch(),_0x239b05=_0x448058&&_0x5615ea['ruOdm'](_0x448058,_0x5615ea['vPnca'])&&_0x448058!==_0x4fb1f4(0x91)?'\x0a\x0a**Branch\x20\x27'+_0x448058+_0x4fb1f4(0x94):'',_0x3cf7eb=_0x5615ea['mJYeS'](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0x239b05+_0x4fb1f4(0x8c)+_0x3cf7eb+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5f49(_0x45147a,_0x502e99){_0x45147a=_0x45147a-0x112;const _0x2726db=_0x2726();let _0x5f490d=_0x2726db[_0x45147a];return _0x5f490d;}(function(_0x37cc52,_0x1d5537){const _0x58ae26=_0x5f49,_0x11a88f=_0x37cc52();while(!![]){try{const _0xc2b03a=-parseInt(_0x58ae26(0x113))/0x1+parseInt(_0x58ae26(0x11c))/0x2+parseInt(_0x58ae26(0x116))/0x3+-parseInt(_0x58ae26(0x119))/0x4*(parseInt(_0x58ae26(0x11a))/0x5)+-parseInt(_0x58ae26(0x118))/0x6*(parseInt(_0x58ae26(0x11d))/0x7)+-parseInt(_0x58ae26(0x112))/0x8+parseInt(_0x58ae26(0x114))/0x9;if(_0xc2b03a===_0x1d5537)break;else _0x11a88f['push'](_0x11a88f['shift']());}catch(_0x316999){_0x11a88f['push'](_0x11a88f['shift']());}}}(_0x2726,0x48e53));function _0x2726(){const _0x138a08=['12IaHNJN','12wlhPrF','417765gacSCH','Rjsdv','812732urNPSW','1092413juygBP','2624784DExtdR','569579SMeHPL','7879419ERcBFk','JovQw','1431528kbhqWR','===\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==='];_0x2726=function(){return _0x138a08;};return _0x2726();}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0xfd73ab){const _0x233857=_0x5f49,_0x40ef3d={'Rjsdv':function(_0x4a8b59,_0x2db5f1){return _0x4a8b59(_0x2db5f1);},'JovQw':function(_0x5ef4e0,_0x439f3e){return _0x5ef4e0(_0x439f3e);}},_0x1d203f=await _0x40ef3d[_0x233857(0x11b)](getEnabledSessionId,_0xfd73ab);if(!_0x1d203f)return;_0x40ef3d[_0x233857(0x115)](printBlock,_0x233857(0x117));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x362244,_0x54b9c7){var _0x1bbc87=_0x29b7,_0x53e610=_0x362244();while(!![]){try{var _0x349f3e=parseInt(_0x1bbc87(0x99))/0x1*(parseInt(_0x1bbc87(0x97))/0x2)+parseInt(_0x1bbc87(0x94))/0x3*(parseInt(_0x1bbc87(0x8d))/0x4)+parseInt(_0x1bbc87(0x98))/0x5*(-parseInt(_0x1bbc87(0x95))/0x6)+parseInt(_0x1bbc87(0x8e))/0x7*(-parseInt(_0x1bbc87(0x90))/0x8)+parseInt(_0x1bbc87(0x91))/0x9*(-parseInt(_0x1bbc87(0x8f))/0xa)+-parseInt(_0x1bbc87(0x92))/0xb*(parseInt(_0x1bbc87(0x93))/0xc)+-parseInt(_0x1bbc87(0x96))/0xd*(-parseInt(_0x1bbc87(0x9a))/0xe);if(_0x349f3e===_0x54b9c7)break;else _0x53e610['push'](_0x53e610['shift']());}catch(_0x369356){_0x53e610['push'](_0x53e610['shift']());}}}(_0x4a1c,0x5050b));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';function _0x29b7(_0x256d3d,_0x1cdb1b){_0x256d3d=_0x256d3d-0x8d;var _0x4a1c0c=_0x4a1c();var _0x29b7c7=_0x4a1c0c[_0x256d3d];return _0x29b7c7;}export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';function _0x4a1c(){var _0x55a80f=['48hcCxSh','204CKeeqh','1494Khphed','182GBryeV','4780sEgFEK','6115jkmpYf','196cslAst','715918wVEfUB','36664VgCKyS','1302sHjujS','1340yvACff','5976mOlKIt','39393xwzktI','1233892NUQHcK'];_0x4a1c=function(){return _0x55a80f;};return _0x4a1c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3340c9,_0x9161ac){const _0x42773b=_0x38a7,_0x13f8b7=_0x3340c9();while(!![]){try{const _0x39c97d=-parseInt(_0x42773b(0x1d7))/0x1*(-parseInt(_0x42773b(0x1d2))/0x2)+-parseInt(_0x42773b(0x1c5))/0x3*(-parseInt(_0x42773b(0x1c8))/0x4)+-parseInt(_0x42773b(0x1ce))/0x5*(parseInt(_0x42773b(0x1cf))/0x6)+parseInt(_0x42773b(0x1d0))/0x7*(-parseInt(_0x42773b(0x1cc))/0x8)+-parseInt(_0x42773b(0x1c7))/0x9*(-parseInt(_0x42773b(0x1c4))/0xa)+-parseInt(_0x42773b(0x1d4))/0xb+parseInt(_0x42773b(0x1c6))/0xc*(parseInt(_0x42773b(0x1cd))/0xd);if(_0x39c97d===_0x9161ac)break;else _0x13f8b7['push'](_0x13f8b7['shift']());}catch(_0x17d492){_0x13f8b7['push'](_0x13f8b7['shift']());}}}(_0x220d,0xbf643));function _0x220d(){const _0x53c3a8=['parse','368PWUCfX','7358GFUrSO','25435KsUHfm','1776zDjLYZ','123403crVQhx','log','546092PUIWGB','trim','2266099nZKqGp','session_id','TRWBu','3dkGCfB','5790TgnOjE','6Ibdlqx','41388rYOIdi','5166knsTLS','406032iidqDw','fzFSy','seqPN'];_0x220d=function(){return _0x53c3a8;};return _0x220d();}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x40fa8f){const _0xc61e42=_0x38a7;console[_0xc61e42(0x1d1)](_0x40fa8f);}function _0x38a7(_0x98da32,_0x431d5f){_0x98da32=_0x98da32-0x1c4;const _0x220d70=_0x220d();let _0x38a724=_0x220d70[_0x98da32];return _0x38a724;}export async function readHookInput(){const _0xb20261=_0x38a7;let _0x4ccbee='';try{for await(const _0x3b29ba of process['stdin']){_0x4ccbee+=_0x3b29ba;}}catch{return null;}if(!_0x4ccbee[_0xb20261(0x1d3)]())return null;try{return JSON[_0xb20261(0x1cb)](_0x4ccbee);}catch{return null;}}export async function getEnabledSessionId(_0x257a3e){const _0x26ea3d=_0x38a7,_0x5c1750={'VgNpI':function(_0xd7133c,_0x370211){return _0xd7133c(_0x370211);},'TRWBu':function(_0x51804a){return _0x51804a();}};if(_0x257a3e)return _0x5c1750['VgNpI'](isSessionEnabled,_0x257a3e)?_0x257a3e:null;const _0x2a5472=await _0x5c1750[_0x26ea3d(0x1d6)](readHookInput),_0x3a6443=_0x2a5472?.['session_id'];if(!_0x3a6443||!_0x5c1750['VgNpI'](isSessionEnabled,_0x3a6443))return null;return _0x3a6443;}export async function getEnabledHookContext(_0x312024){const _0x279af1=_0x38a7,_0x1ed17a={'seqPN':function(_0x27f10f,_0x210687){return _0x27f10f(_0x210687);},'fzFSy':function(_0x104a1e,_0x158f5e){return _0x104a1e(_0x158f5e);}};if(_0x312024){if(!_0x1ed17a[_0x279af1(0x1ca)](isSessionEnabled,_0x312024))return null;return{'sessionId':_0x312024,'input':{'session_id':_0x312024}};}const _0x3ea9d6=await readHookInput(),_0x5200e7=_0x3ea9d6?.[_0x279af1(0x1d5)];if(!_0x5200e7||!_0x1ed17a[_0x279af1(0x1c9)](isSessionEnabled,_0x5200e7))return null;return{'sessionId':_0x5200e7,'input':_0x3ea9d6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1cc422,_0x32aa22){const _0x3d9a6e=_0x48af,_0x3624d2=_0x1cc422();while(!![]){try{const _0x4c177a=-parseInt(_0x3d9a6e(0x1b0))/0x1*(-parseInt(_0x3d9a6e(0x1af))/0x2)+parseInt(_0x3d9a6e(0x1aa))/0x3*(-parseInt(_0x3d9a6e(0x1b7))/0x4)+-parseInt(_0x3d9a6e(0x1ac))/0x5+parseInt(_0x3d9a6e(0x1b1))/0x6*(-parseInt(_0x3d9a6e(0x1b6))/0x7)+parseInt(_0x3d9a6e(0x1ad))/0x8+parseInt(_0x3d9a6e(0x1b4))/0x9*(-parseInt(_0x3d9a6e(0x1b3))/0xa)+parseInt(_0x3d9a6e(0x1b2))/0xb;if(_0x4c177a===_0x32aa22)break;else _0x3624d2['push'](_0x3624d2['shift']());}catch(_0x3700fd){_0x3624d2['push'](_0x3624d2['shift']());}}}(_0x3155,0x5cba9));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x3155(){const _0x55e471=['8Kjcwco','108139Aznxtn','458886GqIQaD','15377439ewKlwd','190WOQTFq','219312JbRvsk','pOgQF','49VxkxLc','1045864pVyMzO','input','3LiwClZ','IQKIN','3460900qnXwNH','4010536sqfRJh','plan'];_0x3155=function(){return _0x55e471;};return _0x3155();}function _0x48af(_0x483665,_0x3f4546){_0x483665=_0x483665-0x1a9;const _0x315543=_0x3155();let _0x48af0e=_0x315543[_0x483665];return _0x48af0e;}export async function planReminder(_0x2e954d){const _0x11e420=_0x48af,_0x47520a={'IQKIN':function(_0x5a8182,_0x48bff8){return _0x5a8182(_0x48bff8);},'bNwtW':_0x11e420(0x1ae),'pOgQF':function(_0x129d9c,_0x5091e5){return _0x129d9c(_0x5091e5);}},_0x114494=await _0x47520a[_0x11e420(0x1ab)](getEnabledHookContext,_0x2e954d);if(!_0x114494)return;if(_0x114494[_0x11e420(0x1a9)]['permission_mode']!==_0x47520a['bNwtW'])return;if(!_0x47520a[_0x11e420(0x1b5)](shouldShowPlanReminder,_0x114494['sessionId']))return;printBlock('===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14fa3e,_0x2f643e){const _0x165da2=_0x50cb,_0x560a99=_0x14fa3e();while(!![]){try{const _0x465ece=parseInt(_0x165da2(0xaf))/0x1+-parseInt(_0x165da2(0xab))/0x2*(-parseInt(_0x165da2(0xa9))/0x3)+parseInt(_0x165da2(0xac))/0x4*(-parseInt(_0x165da2(0xae))/0x5)+parseInt(_0x165da2(0xb1))/0x6*(-parseInt(_0x165da2(0xb2))/0x7)+-parseInt(_0x165da2(0xaa))/0x8*(parseInt(_0x165da2(0xad))/0x9)+-parseInt(_0x165da2(0xb3))/0xa+-parseInt(_0x165da2(0xb0))/0xb*(-parseInt(_0x165da2(0xa8))/0xc);if(_0x465ece===_0x2f643e)break;else _0x560a99['push'](_0x560a99['shift']());}catch(_0x2562f3){_0x560a99['push'](_0x560a99['shift']());}}}(_0x2340,0x644e7));function _0x50cb(_0x2184aa,_0x1bc28d){_0x2184aa=_0x2184aa-0xa8;const _0x234060=_0x2340();let _0x50cbc9=_0x234060[_0x2184aa];return _0x50cbc9;}import{printBlock,getEnabledSessionId}from'./output.js';function _0x2340(){const _0x214438=['7361020IBuRcl','108ikFxMW','3MCeDAJ','872ZhRcKo','732418YYyivm','4grBSIK','36054PvggJh','3313595gsXHNP','481756sqluGV','2672934LzCQkw','127878CdXZPG','259hrJheZ'];_0x2340=function(){return _0x214438;};return _0x2340();}export async function planStart(_0x5e1586){const _0x47c2bb=await getEnabledSessionId(_0x5e1586);if(!_0x47c2bb)return;printBlock('===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14c830,_0x9a98ca){const _0x3e860e=_0x5efa,_0x219e83=_0x14c830();while(!![]){try{const _0x4acd32=-parseInt(_0x3e860e(0x1f2))/0x1+-parseInt(_0x3e860e(0x1ea))/0x2*(parseInt(_0x3e860e(0x1e9))/0x3)+parseInt(_0x3e860e(0x1ec))/0x4*(-parseInt(_0x3e860e(0x1ed))/0x5)+-parseInt(_0x3e860e(0x1ee))/0x6*(parseInt(_0x3e860e(0x1f4))/0x7)+-parseInt(_0x3e860e(0x1f5))/0x8*(parseInt(_0x3e860e(0x1ef))/0x9)+-parseInt(_0x3e860e(0x1eb))/0xa+-parseInt(_0x3e860e(0x1f8))/0xb*(-parseInt(_0x3e860e(0x1f0))/0xc);if(_0x4acd32===_0x9a98ca)break;else _0x219e83['push'](_0x219e83['shift']());}catch(_0x50c184){_0x219e83['push'](_0x219e83['shift']());}}}(_0x14f8,0x232fa));function _0x5efa(_0x40945c,_0x44703f){_0x40945c=_0x40945c-0x1e9;const _0x14f84b=_0x14f8();let _0x5efa89=_0x14f84b[_0x40945c];return _0x5efa89;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x38e8f2){const _0xeb56c2=_0x5efa,_0x4ba6a1={'tnlMy':function(_0x2bbe00,_0x1db517){return _0x2bbe00(_0x1db517);},'ydzZi':function(_0x43a4c9){return _0x43a4c9();}},_0x1ed220=await getEnabledSessionId(_0x38e8f2);if(!_0x1ed220)return;_0x4ba6a1['tnlMy'](updateBranchTracking,_0x1ed220);const _0x34abdb=await _0x4ba6a1['ydzZi'](getToken);if(!_0x34abdb)return;const _0x5e51eb=_0x4ba6a1['tnlMy'](getSessionEntry,_0x1ed220);if(_0x5e51eb){const _0x893a65={'hookSpecificOutput':{'hookEventName':_0xeb56c2(0x1f1),'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON[_0xeb56c2(0x1f7)](_0x893a65));return;}const _0x37cea5={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0xeb56c2(0x1f3)}};console[_0xeb56c2(0x1f6)](JSON['stringify'](_0x37cea5));}function _0x14f8(){const _0x4db0b8=['PostToolUse','42316Tgabqi','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.','49ksAVFK','499736YwyLDe','log','stringify','22yJJsWk','3HKKdDe','113678MYtLGM','2659960NxsIYr','6764VacQId','755GyESSl','354FWgmQt','9lgMsTL','4964964NAtFWd'];_0x14f8=function(){return _0x4db0b8;};return _0x14f8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2956c4,_0x2a4f2f){const _0x5d62d5=_0x1ff6,_0x4ee6cc=_0x2956c4();while(!![]){try{const _0x16f711=parseInt(_0x5d62d5(0x100))/0x1+parseInt(_0x5d62d5(0x102))/0x2+-parseInt(_0x5d62d5(0xfa))/0x3*(-parseInt(_0x5d62d5(0x104))/0x4)+-parseInt(_0x5d62d5(0xfb))/0x5+parseInt(_0x5d62d5(0xfd))/0x6+parseInt(_0x5d62d5(0x103))/0x7*(parseInt(_0x5d62d5(0xfc))/0x8)+-parseInt(_0x5d62d5(0xfe))/0x9*(parseInt(_0x5d62d5(0xff))/0xa);if(_0x16f711===_0x2a4f2f)break;else _0x4ee6cc['push'](_0x4ee6cc['shift']());}catch(_0xd79594){_0x4ee6cc['push'](_0x4ee6cc['shift']());}}}(_0x142b,0x46f1f));import{getToken}from'../utils/keychain.js';function _0x1ff6(_0x38ae3c,_0x1e66a5){_0x38ae3c=_0x38ae3c-0xfa;const _0x142ba2=_0x142b();let _0x1ff619=_0x142ba2[_0x38ae3c];return _0x1ff619;}import{printBlock,getEnabledSessionId}from'./output.js';function _0x142b(){const _0x527900=['10QcPNWM','551041TWOgIQ','===\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`.','779742fwEVss','728YRMUDr','20FbMRaO','188541YAnTzK','2599485kSuxEZ','3856MCxuFA','2682072HZgwqZ','8476191kUJwnB'];_0x142b=function(){return _0x527900;};return _0x142b();}export async function preCompact(_0x29741d){const _0x4af9a3=_0x1ff6,_0x95cbd3={'DsrRP':function(_0x4e8e08,_0x692612){return _0x4e8e08(_0x692612);},'GXHMa':function(_0x57c53b){return _0x57c53b();}},_0x466157=await _0x95cbd3['DsrRP'](getEnabledSessionId,_0x29741d);if(!_0x466157)return;try{const _0x2abe0b=await _0x95cbd3['GXHMa'](getToken);if(!_0x2abe0b)return;printBlock(_0x4af9a3(0x101));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b2ee8,_0x19f02e){const _0x529f66=_0x5c17,_0x1532b1=_0x3b2ee8();while(!![]){try{const _0x264667=-parseInt(_0x529f66(0xd9))/0x1*(parseInt(_0x529f66(0xd8))/0x2)+parseInt(_0x529f66(0xdc))/0x3*(parseInt(_0x529f66(0xd0))/0x4)+-parseInt(_0x529f66(0xd5))/0x5*(parseInt(_0x529f66(0xd6))/0x6)+-parseInt(_0x529f66(0xd3))/0x7+-parseInt(_0x529f66(0xd1))/0x8+parseInt(_0x529f66(0xd7))/0x9*(-parseInt(_0x529f66(0xdd))/0xa)+parseInt(_0x529f66(0xdb))/0xb*(parseInt(_0x529f66(0xd4))/0xc);if(_0x264667===_0x19f02e)break;else _0x1532b1['push'](_0x1532b1['shift']());}catch(_0x4cde28){_0x1532b1['push'](_0x1532b1['shift']());}}}(_0x5dd2,0x4b069));function _0x5c17(_0x263b14,_0x6eb203){_0x263b14=_0x263b14-0xcf;const _0x5dd264=_0x5dd2();let _0x5c17cc=_0x5dd264[_0x263b14];return _0x5c17cc;}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x561279){const _0x3872cd=_0x5c17,_0xe5cf2c={'zHgjR':function(_0x56360a){return _0x56360a();},'KqrgZ':_0x3872cd(0xde)},_0x3668c6=process[_0x3872cd(0xda)][_0x3872cd(0xcf)];let _0x24e67f=_0x561279,_0x4c398b;if(!_0x561279){if(_0x3668c6&&!isSessionEnabled(_0x3668c6))return;const _0x16cf02=await _0xe5cf2c['zHgjR'](readHookInput);_0x24e67f=_0x16cf02?.['session_id']||_0x3668c6,_0x4c398b=_0x16cf02?.['reason'];}if(!_0x24e67f)return;_0x4c398b===_0xe5cf2c[_0x3872cd(0xd2)]&&recordEnabledSessionCleared(_0x24e67f);}function _0x5dd2(){const _0x57e9ba=['6TFMYHo','123705JzYHvV','17786qbxcvv','47hNHwZl','env','6347Akoelf','57FhYefF','190ugJVOt','clear','CLAUDE_SESSION_ID','94444QpuvrC','3470120GscGkh','KqrgZ','922159RLfMZl','26652xmaPck','890965fxHuAz'];_0x5dd2=function(){return _0x57e9ba;};return _0x5dd2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x109224=_0x335b;(function(_0x1aea0b,_0x5b3418){const _0x1b5b6d=_0x335b,_0x2677e9=_0x1aea0b();while(!![]){try{const _0xaad69c=parseInt(_0x1b5b6d(0x178))/0x1*(-parseInt(_0x1b5b6d(0x181))/0x2)+parseInt(_0x1b5b6d(0x16e))/0x3*(-parseInt(_0x1b5b6d(0x177))/0x4)+parseInt(_0x1b5b6d(0x182))/0x5*(parseInt(_0x1b5b6d(0x17e))/0x6)+parseInt(_0x1b5b6d(0x188))/0x7+parseInt(_0x1b5b6d(0x17f))/0x8+parseInt(_0x1b5b6d(0x17c))/0x9*(parseInt(_0x1b5b6d(0x176))/0xa)+-parseInt(_0x1b5b6d(0x183))/0xb*(parseInt(_0x1b5b6d(0x18a))/0xc);if(_0xaad69c===_0x5b3418)break;else _0x2677e9['push'](_0x2677e9['shift']());}catch(_0x383afd){_0x2677e9['push'](_0x2677e9['shift']());}}}(_0x1846,0xd34f0));function _0x335b(_0x633cc8,_0x48646d){_0x633cc8=_0x633cc8-0x16e;const _0x184648=_0x1846();let _0x335beb=_0x184648[_0x633cc8];return _0x335beb;}import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';function _0x1846(){const _0x598a8f=['789XMOLJu','trackCommandEnd','trackCommandStart','export\x20CLAUDE_SESSION_ID=\x22','main','aYXXA','stringify','pLsDK','14840510fGUJKv','22012UFQbVl','1jRkbaz','session_id','CLAUDE_ENV_FILE','stdin','9wEqtav','env','1554klkAOv','11428000UTufiY','=================================================================\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=================================================================','1149736ZkgpcR','1255UBpclv','5049pORrqi','tfKbz','\x20(Branch:\x20','log','hook:session-start','7920612ClHHyK','master','31932GJCUDo','SessionStart'];_0x1846=function(){return _0x598a8f;};return _0x1846();}import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT=_0x109224(0x180);export async function sessionStart(_0x3a1851){const _0x7a57a9=_0x109224,_0x3f3d65={'bXdRx':function(_0x25c21a,_0x2d288c){return _0x25c21a||_0x2d288c;},'dcAHB':_0x7a57a9(0x179),'Oebqz':function(_0x1ce205,_0x23d1da){return _0x1ce205&&_0x23d1da;},'pLsDK':function(_0x2c589c){return _0x2c589c();},'QuBFT':function(_0x37b96f,_0x53fa25){return _0x37b96f(_0x53fa25);},'jENuU':_0x7a57a9(0x187),'PbzFE':'success','SqqTf':function(_0x256e15,_0x563e03){return _0x256e15!==_0x563e03;},'tfKbz':_0x7a57a9(0x172),'aYXXA':_0x7a57a9(0x18b),'bWveq':function(_0x5e7c9b,_0x2b89de){return _0x5e7c9b+_0x2b89de;}};let _0x5adc49=_0x3f3d65['bXdRx'](_0x3a1851,''),_0x581c44;if(!_0x3a1851){let _0x32cc78='';for await(const _0x27e0be of process[_0x7a57a9(0x17b)]){_0x32cc78+=_0x27e0be;}try{const _0x4614fc=JSON['parse'](_0x32cc78);_0x5adc49=_0x4614fc[_0x3f3d65['dcAHB']]||'',_0x581c44=_0x4614fc['source'];}catch{}const _0x18dae3=process[_0x7a57a9(0x17d)][_0x7a57a9(0x17a)];if(_0x3f3d65['Oebqz'](_0x18dae3,_0x5adc49))try{await appendFile(_0x18dae3,_0x7a57a9(0x171)+_0x5adc49+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x5adc49){shouldAutoEnableAfterClear(_0x581c44)&&autoEnableAfterClear(_0x5adc49);initBranchTracking(_0x5adc49);_0x3f3d65[_0x7a57a9(0x175)](resolveHookMode)==='on'&&_0x3f3d65['QuBFT'](enableSession,_0x5adc49);const _0x59bf09=isSessionEnabled(_0x5adc49);try{const _0xf37aa=_0x3f3d65['QuBFT'](createTelemetryCollector,_0x3f3d65['jENuU']);await _0xf37aa[_0x7a57a9(0x170)]({'sessionId':_0x5adc49,'hooksEnabled':_0x59bf09}),await _0xf37aa[_0x7a57a9(0x16f)](_0x3f3d65['PbzFE']);}catch{}if(_0x59bf09){const _0x569161=getCurrentBranch(),_0x52fe2a=_0x569161&&_0x3f3d65['SqqTf'](_0x569161,_0x3f3d65[_0x7a57a9(0x184)])&&_0x569161!==_0x7a57a9(0x189)?_0x7a57a9(0x185)+_0x569161+')':'',_0x3ea815={'hookSpecificOutput':{'hookEventName':_0x3f3d65[_0x7a57a9(0x173)],'additionalContext':_0x3f3d65['bWveq'](RANGER_AUTO_ENABLED_PROMPT,_0x52fe2a)}};console[_0x7a57a9(0x186)](JSON[_0x7a57a9(0x174)](_0x3ea815));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b453e,_0x13d0cb){const _0x3fd54d=_0x2718,_0x2bfff8=_0x2b453e();while(!![]){try{const _0x1887d5=parseInt(_0x3fd54d(0x167))/0x1+-parseInt(_0x3fd54d(0x166))/0x2*(parseInt(_0x3fd54d(0x165))/0x3)+parseInt(_0x3fd54d(0x161))/0x4+-parseInt(_0x3fd54d(0x162))/0x5+parseInt(_0x3fd54d(0x15f))/0x6+parseInt(_0x3fd54d(0x160))/0x7*(-parseInt(_0x3fd54d(0x16a))/0x8)+parseInt(_0x3fd54d(0x15e))/0x9*(parseInt(_0x3fd54d(0x16f))/0xa);if(_0x1887d5===_0x13d0cb)break;else _0x2bfff8['push'](_0x2bfff8['shift']());}catch(_0x370a8a){_0x2bfff8['push'](_0x2bfff8['shift']());}}}(_0x5eb6,0xc4070));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';function _0x2718(_0x1745d4,_0x4e90f3){_0x1745d4=_0x1745d4-0x15e;const _0x5eb6f0=_0x5eb6();let _0x27189a=_0x5eb6f0[_0x1745d4];return _0x27189a;}import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x1718ff){const _0x24fd6f=_0x2718,_0x193c8f={'RIidl':function(_0x18c903,_0x54ef8b){return _0x18c903(_0x54ef8b);},'wQJwD':function(_0x288d5d){return _0x288d5d();},'WpuaK':function(_0x492a78,_0x49f426){return _0x492a78&&_0x49f426;},'YQbuj':function(_0x10fbcb,_0x4dfd39){return _0x10fbcb(_0x4dfd39);},'miDAU':function(_0xb3aef7,_0x33fd35,_0x4c65ee,_0x13118f){return _0xb3aef7(_0x33fd35,_0x4c65ee,_0x13118f);}},_0x2fccb1=await _0x193c8f[_0x24fd6f(0x168)](getEnabledHookContext,_0x1718ff),_0x16fe5f=_0x2fccb1?.[_0x24fd6f(0x173)]??null;let _0x2f1321=!![];if(!_0x16fe5f){await trackStop(_0x16fe5f,![],_0x2f1321);return;}try{const _0x394d4f=getSessionEntry(_0x16fe5f);if(!_0x394d4f){await trackStop(_0x16fe5f,!![],_0x2f1321);return;}const _0x24f4fb=await _0x193c8f[_0x24fd6f(0x16b)](getToken),_0x19db42=_0x24fd6f(0x16c)+_0x394d4f['featureId'];let _0x20c4d8=null,_0x26b649=![],_0x4bcffe=![];if(_0x24f4fb)try{const _0x57aaaf=await _0x193c8f['RIidl'](getFeature,_0x394d4f[_0x24fd6f(0x172)]);_0x20c4d8=_0x57aaaf['currentSessionId']??null;const _0xac6f10=_0x57aaaf['checklistItems']['filter'](_0x5ba9cc=>_0x5ba9cc[_0x24fd6f(0x173)]===_0x20c4d8);_0x26b649=_0xac6f10['some'](_0x26068d=>_0x26068d[_0x24fd6f(0x174)]!=='verified'&&_0x26068d['status']!=='blocked'&&_0x26068d[_0x24fd6f(0x174)]!=='closed'&&_0x26068d[_0x24fd6f(0x174)]!==_0x24fd6f(0x164)),_0x4bcffe=_0xac6f10['some'](_0x555391=>_0x555391[_0x24fd6f(0x174)]===_0x24fd6f(0x16d));}catch{}if(_0x193c8f[_0x24fd6f(0x170)](_0x24f4fb,_0x20c4d8)&&_0x26b649){if(!_0x4bcffe&&_0x193c8f['YQbuj'](shouldShowStopReminder,_0x16fe5f)){const _0x5855a5={'hookSpecificOutput':{'hookEventName':'Stop','additionalContext':'RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20'+_0x19db42}};console['log'](JSON[_0x24fd6f(0x171)](_0x5855a5));}}if(_0x24f4fb&&_0x20c4d8&&!_0x26b649)try{await concludeSession(_0x394d4f['featureId'],_0x20c4d8);}catch{}await trackStop(_0x16fe5f,!![],_0x2f1321);return;}catch{await _0x193c8f[_0x24fd6f(0x163)](trackStop,_0x16fe5f,!![],_0x2f1321);return;}}function _0x5eb6(){const _0x1bd5be=['BugvN','10888088sRlOpq','wQJwD','https://dashboard.ranger.net/features/','verification_in_progress','hook:stop','310UODSlO','WpuaK','stringify','featureId','sessionId','status','735039iGWUWt','2816766uZPUKU','7azbIZb','746592dopVMe','3334055Uykgbp','miDAU','incomplete','1179QLEliC','3804teOTPR','390326JODWhQ','RIidl'];_0x5eb6=function(){return _0x1bd5be;};return _0x5eb6();}async function trackStop(_0x6eed85,_0x1b03c0,_0x2542ca){const _0x470c5d=_0x2718,_0x9dd0ae={'BugvN':function(_0x54a74d,_0x214a2d){return _0x54a74d(_0x214a2d);},'eVeKL':function(_0x2afce6,_0x2f41a9){return _0x2afce6??_0x2f41a9;},'KcIvd':'success'};try{const _0x41143f=_0x9dd0ae[_0x470c5d(0x169)](createTelemetryCollector,_0x470c5d(0x16e));await _0x41143f['trackCommandStart']({'sessionId':_0x9dd0ae['eVeKL'](_0x6eed85,undefined),'hooksEnabled':_0x1b03c0,'stopAllowed':_0x2542ca}),await _0x41143f['trackCommandEnd'](_0x9dd0ae['KcIvd']);}catch{}}
|