@ranger-testing/ranger-cli 3.1.7-alpha.34400c2-56 → 3.1.7-alpha.44736ee-66
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/actors.js +1 -0
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/build/skills/ranger/SKILL.md +8 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x38f2a6=_0x27c7;(function(_0x296963,_0x151ec1){const _0xf20985=_0x27c7,_0x3d4d21=_0x296963();while(!![]){try{const _0xee07d9=-parseInt(_0xf20985(0x137))/0x1*(parseInt(_0xf20985(0x115))/0x2)+parseInt(_0xf20985(0x1ce))/0x3+parseInt(_0xf20985(0x14a))/0x4+-parseInt(_0xf20985(0x11b))/0x5+parseInt(_0xf20985(0x192))/0x6+parseInt(_0xf20985(0x1b2))/0x7*(parseInt(_0xf20985(0x198))/0x8)+-parseInt(_0xf20985(0x18a))/0x9;if(_0xee07d9===_0x151ec1)break;else _0x3d4d21['push'](_0x3d4d21['shift']());}catch(_0xaed219){_0x3d4d21['push'](_0x3d4d21['shift']());}}}(_0x21d2,0x41cb5));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x2925d7 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='active-feature.txt',bold=_0x533d92=>_0x38f2a6(0x173)+_0x533d92+_0x38f2a6(0x176);function getGitRepoUrl(){const _0x332235=_0x38f2a6,_0x54a2a0={'CnROB':function(_0x40da47,_0x376590,_0x87fbb1){return _0x40da47(_0x376590,_0x87fbb1);},'uAXFp':'git\x20remote\x20get-url\x20origin','YLpJL':_0x332235(0x11d),'Ciint':'pipe'};try{const _0x21f5e6=_0x54a2a0['CnROB'](execSync,_0x54a2a0['uAXFp'],{'encoding':_0x54a2a0[_0x332235(0x1af)],'stdio':[_0x332235(0x199),_0x54a2a0[_0x332235(0x186)],_0x332235(0x199)]})[_0x332235(0x161)]();return _0x21f5e6['replace'](/\.git$/,'')[_0x332235(0x141)](/^git@github\.com:/,_0x332235(0x154))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x52f19a=_0x38f2a6,_0x28498b={'QpiNu':function(_0x31c87d,_0x35ef7a,_0x5be23f){return _0x31c87d(_0x35ef7a,_0x5be23f);},'GziQK':_0x52f19a(0x120),'HUOKz':'pipe'};try{return _0x28498b[_0x52f19a(0x12c)](execSync,_0x28498b['GziQK'],{'encoding':'utf-8','stdio':['pipe',_0x52f19a(0x199),_0x28498b['HUOKz']]})[_0x52f19a(0x161)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x317985=_0x38f2a6,_0x1d4134={'fdgVc':function(_0x119f02,_0x1ad815){return _0x119f02(_0x1ad815);},'vLYZT':_0x317985(0x11d)},_0xedfadc=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x1d4134['fdgVc'](existsSync,_0xedfadc))return null;try{const _0x2248d6=await readFile(_0xedfadc,_0x1d4134['vLYZT']);return _0x2248d6['trim']()||null;}catch{return null;}}function _0x21d2(){const _0x17d694=['Zzram','from','ChJhM','stats','):\x20\x22','\x20incomplete','Current\x20session\x20not\x20found.','NuLfQ','19523QMHDvH','position','verified','items','latestReview','BZQXC','submittedAt','RaFic','\x20--limit\x20','scenarios','replace','Step\x20','currentBranch','content','excludeScenarios','\x20—\x20no\x20comments','\x20\x20\x20\x20\x20Progress:\x20','error','HUMRu','2056656czaPeE','screenshot','\x20\x20\x20Created:\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','hANQg','Cannot\x20conclude\x20session\x20with\x20status:\x20','RJdTf','in_progress','selector','browserSessionId','github.com/','find','incompleteReason','rcPmJ','isInteger','0|2|1|4|3|5','length','closed',':\x20\x22','PApQZ','...','stdin','style','trim','AhACh','stringify','vWqoT','toLocaleString','uSynA','verificationInProgressItems','\x20\x20\x20\x20\x20\x20Approved','scenario','trimEnd','\x20\x20\x20Description:\x20','\x20\x20\x20Progress:\x20','MsnCv','\x20\x20\x20\x20\x20Branch:\x20','env','description','QqliL','\x20/\x20','\x1b[1m','coordinates','\x20Session\x20','\x1b[0m','TTDNS','\x20concluded.','sessionId','\x20\x20\x20▶️\x20Started\x20session\x20','RANGER_TEST_USERNAME','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','completed','\x20—\x20','\x20feature\x20review(s)\x20found','\x20\x20\x20','createdAt','after','yNrCg','push','xJovq','Ciint','\x20\x20\x20Completed:\x20','gitRepoUrl','\x0a❌\x20Invalid\x20scenario\x20index:\x20','3701997BAwOhL','\x20scenario(s).','\x20--include-deleted','\x20\x20\x20\x20','toFixed','split','\x0a✅\x20Restored\x20feature\x20review:\x20','\x20\x20\x20\x20\x20ID:\x20','1010502RfFyud','mfmNQ','list','.png','terminalReason','pendingItems','840qhNQxp','pipe','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','Jgnbu','blockedItems','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','canonicalFlow','mTsBG','canceledReason','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x0a✅\x20Report\x20generated:\x20','approved','ejvtv','TIRwI','domRef','oecjU','LmJBv','exit','dashboardUrl','hEkiH','ocFFT','ZMzOI','YLpJL','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','IUnon','22085DeVXpZ','OpxBi','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','qhSXc','screenshotUrls','version','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','xbUEn','OrUNI','upztQ','assets','selected','Scenario\x20','\x0aConcluding\x20session...','\x0aCreating\x20feature\x20review...','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','gIOLe','parentItemId','type','log','map','\x20\x20\x20Updated\x20branch\x20to:\x20','unaddressedComments','pop','isTTY','notes','\x20in\x20progress','blockedReason','1565316ibDfac','BMfAc','cfkhz','kFfFQ','IVsso','write','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','gitBranch','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','\x20--current-branch','has','comment_','status','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','pcPcD','currentSessionId','completedAt','textContent','spatial','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x0a✅\x20Scenario\x20updated','vRRgR','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','stepName','feedback-images','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','nDVmS','timing','DrkaP','limit','element','join','sSuVY','vxIfq','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','BvykE','name','ywqKi','52nxcodk','tCfEj','filter','pgcra','OmJgH','checklistItems','1736020LzCrvV','\x0aAvailable\x20scenarios:','utf-8','\x20blocked','offset','git\x20rev-parse\x20--abbrev-ref\x20HEAD','dOBMD','ypIOB','No\x20active\x20session\x20for\x20this\x20feature\x20review.','ztWBd','iteration','yqvGF','\x0aGenerating\x20report...','\x0a✅\x20Resumed\x20feature\x20review:\x20','toLocaleDateString','repeat','eQtKX','QpiNu','Not\x20in\x20a\x20git\x20repository.','CLAUDE_SESSION_ID'];_0x21d2=function(){return _0x17d694;};return _0x21d2();}async function setActiveFeatureId(_0x3b2fc4){const _0x34018f=_0x38f2a6,_0x4707bd={'juhHr':function(_0x547160){return _0x547160();},'RbIGc':function(_0x199344,_0x3f5f00){return _0x199344(_0x3f5f00);},'QqliL':function(_0x24d6de,_0x483038,_0x58c9e4,_0x4515d9){return _0x24d6de(_0x483038,_0x58c9e4,_0x4515d9);},'FgKPZ':_0x34018f(0x11d)},_0x364cf5=_0x4707bd['juhHr'](getRangerDir),_0x335ebe=join(_0x364cf5,ACTIVE_FEATURE_FILE);!_0x4707bd['RbIGc'](existsSync,_0x364cf5)&&await mkdir(_0x364cf5,{'recursive':!![]}),await _0x4707bd[_0x34018f(0x171)](writeFile,_0x335ebe,_0x3b2fc4,_0x4707bd['FgKPZ']);}function getProgressDisplay(_0x2c2e1a){const _0xe529b6=_0x38f2a6,_0x106dd0={'FCcLz':function(_0x52daea,_0x17610b){return _0x52daea+_0x17610b;},'MYWau':function(_0x54b855,_0x22fca0){return _0x54b855+_0x22fca0;},'XjvlM':function(_0x369c77,_0x36c9ac){return _0x369c77===_0x36c9ac;},'XVjjC':function(_0xd1b471,_0x4c079e){return _0xd1b471/_0x4c079e;},'RxVBg':function(_0x48fbed,_0x5f4076){return _0x48fbed-_0x5f4076;}},_0x5699ca=_0x2c2e1a['verifiedItems']||0x0,_0x172abe=_0x2c2e1a[_0xe529b6(0x167)]||0x0,_0x565a83=_0x2c2e1a[_0xe529b6(0x19d)]||0x0,_0x5ea708=_0x2c2e1a['incompleteItems']||0x0,_0x434b8a=_0x2c2e1a[_0xe529b6(0x197)]||0x0,_0x521343=_0x106dd0['FCcLz'](_0x106dd0['MYWau'](_0x5699ca,_0x172abe),_0x565a83)+_0x5ea708+_0x434b8a;if(_0x106dd0['XjvlM'](_0x521343,0x0))return'-';const _0x45e18b=0xa,_0x55a73b=Math['round'](_0x106dd0['XVjjC'](_0x5699ca,_0x521343)*_0x45e18b),_0x52e882='█'[_0xe529b6(0x12a)](_0x55a73b)+'░'['repeat'](_0x106dd0['RxVBg'](_0x45e18b,_0x55a73b)),_0x21affd=[];if(_0x565a83>0x0)_0x21affd['push'](_0x565a83+_0xe529b6(0x11e));if(_0x5ea708>0x0)_0x21affd['push'](_0x5ea708+_0xe529b6(0x134));if(_0x172abe>0x0)_0x21affd[_0xe529b6(0x184)](_0x172abe+_0xe529b6(0x1cc));const _0x540df2=_0x21affd[_0xe529b6(0x15a)]>0x0?'\x20('+_0x21affd[_0xe529b6(0x10e)](',\x20')+')':'';return _0x52e882+'\x20'+_0x5699ca+'/'+_0x521343+'\x20verified'+_0x540df2;}function getCurrentSessionItems(_0x50bcb0,_0x3a426){const _0x466a58=_0x38f2a6;if(!_0x50bcb0[_0x466a58(0x1dd)])return _0x3a426[_0x466a58(0x117)](_0x256857=>!_0x256857['sessionId']);return _0x3a426['filter'](_0x20eb95=>_0x20eb95['sessionId']===_0x50bcb0[_0x466a58(0x1dd)]||!_0x20eb95[_0x466a58(0x179)]);}function displayFeature(_0xa4600b,_0x294a8f){const _0x43c94d=_0x38f2a6,_0xb66c7={'zfZnV':function(_0x14afcd,_0x3b8d06){return _0x14afcd>_0x3b8d06;},'MYUJq':'\x0a\x20\x20\x20Scenarios:','TKcMq':function(_0x2d16ec,_0x5d08d1){return _0x2d16ec<_0x5d08d1;},'tgAAZ':function(_0x48ba77,_0x4deeb8){return _0x48ba77===_0x4deeb8;},'cfkhz':_0x43c94d(0x15b),'mXVMN':'verified','upztQ':'incomplete','BvykE':'blocked','mfmNQ':'verification_in_progress','rcPmJ':function(_0xaf9525,_0x319d55){return _0xaf9525>_0x319d55;},'pcPcD':function(_0x51afe7,_0x34fccd){return _0x51afe7!==_0x34fccd;},'RJdTf':function(_0x2d7457,_0x110df5){return _0x2d7457!==_0x110df5;},'gIOLe':'\x20[has\x20reviewer\x20feedback]','zljZH':function(_0x44ca30,_0x8ea870){return _0x44ca30+_0x8ea870;},'dOBMD':function(_0x5986b7,_0x273b70){return _0x5986b7===_0x273b70;}};console[_0x43c94d(0x1c5)]('\x0a'+_0xa4600b[_0x43c94d(0x113)]+'\x20('+_0xa4600b[_0x43c94d(0x1ab)]+')');_0xa4600b['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0xa4600b['stats']));_0xa4600b['description']&&console['log'](_0x43c94d(0x16b)+_0xa4600b['description']);_0xa4600b[_0x43c94d(0x188)]&&console[_0x43c94d(0x1c5)]('\x20\x20\x20Repository:\x20'+_0xa4600b[_0x43c94d(0x188)]);_0xa4600b[_0x43c94d(0x1d5)]&&console['log']('\x20\x20\x20Branch:\x20'+_0xa4600b[_0x43c94d(0x1d5)]);console['log'](_0x43c94d(0x14c)+new Date(_0xa4600b[_0x43c94d(0x181)])[_0x43c94d(0x165)]());_0xa4600b['completedAt']&&console[_0x43c94d(0x1c5)](_0x43c94d(0x187)+new Date(_0xa4600b['completedAt'])['toLocaleString']());if(_0x294a8f&&_0xb66c7['zfZnV'](_0x294a8f[_0x43c94d(0x15a)],0x0)){console['log'](_0xb66c7['MYUJq']);for(let _0x4ce937=0x0;_0xb66c7['TKcMq'](_0x4ce937,_0x294a8f[_0x43c94d(0x15a)]);_0x4ce937++){const _0x4bebf7=_0x294a8f[_0x4ce937];let _0x5ebabe;if(_0xb66c7['tgAAZ'](_0x4bebf7[_0x43c94d(0x1da)],_0xb66c7[_0x43c94d(0x1d0)])&&_0xb66c7['tgAAZ'](_0x4bebf7['terminalReason'],_0x43c94d(0x1a4)))_0x5ebabe='✅';else{if(_0x4bebf7['status']===_0xb66c7['mXVMN'])_0x5ebabe='🟢';else{if(_0x4bebf7[_0x43c94d(0x1da)]===_0xb66c7[_0x43c94d(0x1bb)])_0x5ebabe='🟠';else{if(_0x4bebf7['status']===_0xb66c7[_0x43c94d(0x112)])_0x5ebabe='🛑';else{if(_0xb66c7['tgAAZ'](_0x4bebf7[_0x43c94d(0x1da)],'closed'))_0x5ebabe='⛔';else _0xb66c7['tgAAZ'](_0x4bebf7[_0x43c94d(0x1da)],_0xb66c7[_0x43c94d(0x193)])?_0x5ebabe='⏳':_0x5ebabe='⬜';}}}}const _0x591789=_0x4bebf7['version']>0x1?'\x20(v'+_0x4bebf7['version']+')':'',_0xd5d8e0=_0xb66c7[_0x43c94d(0x157)](_0x4bebf7[_0x43c94d(0x1b7)],0x1)&&_0x4bebf7[_0x43c94d(0x1c3)]&&_0xb66c7[_0x43c94d(0x1dc)](_0x4bebf7['status'],_0xb66c7['cfkhz'])&&_0xb66c7[_0x43c94d(0x150)](_0x4bebf7[_0x43c94d(0x1da)],_0xb66c7['mXVMN'])?_0xb66c7[_0x43c94d(0x1c2)]:'';console[_0x43c94d(0x1c5)](_0x43c94d(0x180)+_0xb66c7['zljZH'](_0x4ce937,0x1)+'.\x20'+_0x5ebabe+'\x20'+_0x4bebf7[_0x43c94d(0x170)]+_0x591789+_0xd5d8e0);_0x4bebf7[_0x43c94d(0x1da)]===_0xb66c7['BvykE']&&_0x4bebf7[_0x43c94d(0x1cd)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x4bebf7[_0x43c94d(0x1cd)]);_0xb66c7['dOBMD'](_0x4bebf7['status'],'incomplete')&&_0x4bebf7[_0x43c94d(0x156)]&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x4bebf7['incompleteReason']);if(_0xb66c7['dOBMD'](_0x4bebf7['status'],_0xb66c7[_0x43c94d(0x1d0)])&&_0xb66c7[_0x43c94d(0x121)](_0x4bebf7[_0x43c94d(0x196)],_0x43c94d(0x1a4)))console[_0x43c94d(0x1c5)](_0x43c94d(0x168));else _0x4bebf7['status']===_0xb66c7['cfkhz']&&_0x4bebf7['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x4bebf7[_0x43c94d(0x1a1)]);}}}export async function featureCreate(_0x167a0d,_0x4f5c3b){const _0x16a6e7=_0x38f2a6,_0x3fc3dc={'RlZQx':function(_0x34b8e7,_0x407531){return _0x34b8e7===_0x407531;},'BZQXC':function(_0x4da82d){return _0x4da82d();},'SoMIz':_0x16a6e7(0x1c0),'XTIMH':function(_0x38d06c,_0x1b8316){return _0x38d06c(_0x1b8316);},'IVsso':function(_0x2beb93,_0x1bcccd){return _0x2beb93(_0x1bcccd);},'FAIte':function(_0x2cad53,_0x259302,_0x177820){return _0x2cad53(_0x259302,_0x177820);}},{envNames:_0x23831b}=await getEnvNames();if(_0x3fc3dc['RlZQx'](_0x23831b['length'],0x0)&&!process['env'][_0x16a6e7(0x17b)]){let _0x52a5c8=0x0;try{_0x52a5c8=(await listCloudProfiles())[_0x16a6e7(0x15a)];}catch{_0x52a5c8=0x1;}_0x3fc3dc['RlZQx'](_0x52a5c8,0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x21a33f=>bold(_0x21a33f)));}const _0x31e09d=_0x4f5c3b[_0x16a6e7(0x140)]?_0x4f5c3b[_0x16a6e7(0x140)]['map'](_0x3202ef=>_0x3202ef['trim']()):[],_0x26cc7f=_0x3fc3dc[_0x16a6e7(0x13c)](getGitRepoUrl),_0x194696=getGitBranch();console[_0x16a6e7(0x1c5)](_0x3fc3dc['SoMIz']);const _0x3ae5b5=await _0x3fc3dc['XTIMH'](createFeature,{'name':_0x167a0d,'description':_0x4f5c3b['description'],'checklist':_0x31e09d,'gitRepoUrl':_0x26cc7f,'gitBranch':_0x194696});await setActiveFeatureId(_0x3ae5b5['id']),await _0x3fc3dc[_0x16a6e7(0x1d2)](tryStartCurrentSession,_0x3ae5b5['id']);const _0x2e55c0=process[_0x16a6e7(0x16f)][_0x16a6e7(0x12e)];_0x2e55c0&&_0x3fc3dc['FAIte'](registerSession,_0x2e55c0,_0x3ae5b5['id']),console[_0x16a6e7(0x1c5)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x3ae5b5['id']),displayFeature(_0x3ae5b5,_0x3ae5b5[_0x16a6e7(0x11a)]),console[_0x16a6e7(0x1c5)](_0x16a6e7(0x1a2));}export async function featureList(_0x2a992f){const _0x39c573=_0x38f2a6,_0x15ee2c={'bcjZj':function(_0x70448b){return _0x70448b();},'fzVBp':function(_0x5bef19,_0x22899c){return _0x5bef19>_0x22899c;},'yNrCg':function(_0x5eb25c,_0x33091d){return _0x5eb25c+_0x33091d;},'uSynA':_0x39c573(0x18c)},_0xdbef39={'limit':_0x2a992f['limit']??0xa,'offset':_0x2a992f['offset']??0x0,'includeDeleted':_0x2a992f['includeDeleted']};_0x2a992f[_0x39c573(0x143)]&&(_0xdbef39[_0x39c573(0x188)]=getGitRepoUrl(),_0xdbef39['gitBranch']=_0x15ee2c['bcjZj'](getGitBranch));const _0x237e78=await listFeatures(_0xdbef39);if(_0x237e78['items']['length']===0x0){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x365b8a=_0x15ee2c['fzVBp'](_0x237e78['totalCount'],_0x237e78['items']['length'])?'Showing\x20'+_0x237e78['items'][_0x39c573(0x15a)]+'\x20of\x20'+_0x237e78['totalCount']:_0x237e78['totalCount']+_0x39c573(0x17f);console[_0x39c573(0x1c5)]('\x0a'+_0x365b8a+':\x0a');for(const _0x67f593 of _0x237e78['items']){const _0x299321=_0x39c573(0x159)[_0x39c573(0x18f)]('|');let _0x380134=0x0;while(!![]){switch(_0x299321[_0x380134++]){case'0':console[_0x39c573(0x1c5)](''+_0x67f593[_0x39c573(0x113)]);continue;case'1':_0x67f593[_0x39c573(0x132)]&&console[_0x39c573(0x1c5)](_0x39c573(0x16c)+getProgressDisplay(_0x67f593['stats']));continue;case'2':console[_0x39c573(0x1c5)]('\x20\x20\x20ID:\x20'+_0x67f593['id']);continue;case'3':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x67f593[_0x39c573(0x181)])[_0x39c573(0x129)]());continue;case'4':_0x67f593[_0x39c573(0x1d5)]&&console[_0x39c573(0x1c5)]('\x20\x20\x20Branch:\x20'+_0x67f593['gitBranch']);continue;case'5':console[_0x39c573(0x1c5)]('');continue;}break;}}const _0x4d8e38=_0xdbef39[_0x39c573(0x1eb)]??0xa,_0x558c3a=_0x15ee2c[_0x39c573(0x183)](_0xdbef39[_0x39c573(0x11f)]??0x0,_0x237e78[_0x39c573(0x13a)][_0x39c573(0x15a)]);if(_0x558c3a<_0x237e78['totalCount']){const _0x1dc08b=_0x4d8e38!==0xa?_0x39c573(0x13f)+_0x4d8e38:'',_0x496d4c=_0x2a992f[_0x39c573(0x143)]?_0x39c573(0x1d7):'',_0x54d7cc=_0x2a992f['includeDeleted']?_0x15ee2c[_0x39c573(0x166)]:'';console['log'](_0x39c573(0x14d)+_0x558c3a+_0x1dc08b+_0x496d4c+_0x54d7cc);}}export async function featureShow(_0x1c971b){const _0x1ca107=_0x38f2a6,_0x1af91f={'JOrJg':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','vxIfq':function(_0x230734,_0x490211){return _0x230734(_0x490211);},'lgKXh':function(_0x34c713,_0x316879,_0x4dc4a6){return _0x34c713(_0x316879,_0x4dc4a6);}},_0x211a4c=_0x1c971b||await getActiveFeatureId();if(!_0x211a4c)throw new Error(_0x1af91f['JOrJg']);const _0x3ac563=await _0x1af91f[_0x1ca107(0x110)](getFeature,_0x211a4c);_0x1af91f['lgKXh'](displayFeature,_0x3ac563,_0x3ac563[_0x1ca107(0x11a)]);}export async function featureResume(_0x39ecc8){const _0x4b3d95=_0x38f2a6,_0x2e1f09={'ztWBd':function(_0x52f2d0,_0x2a51c5){return _0x52f2d0(_0x2a51c5);},'OpxBi':function(_0x60f81d){return _0x60f81d();},'vRRgR':function(_0x3880cd,_0x4b132a,_0x3cf893){return _0x3880cd(_0x4b132a,_0x3cf893);},'RaFic':function(_0x174582,_0x2645c1,_0x573720){return _0x174582(_0x2645c1,_0x573720);},'rYcwh':'any','YrIzE':function(_0x69b42e,_0xd0609b){return _0x69b42e===_0xd0609b;},'YSWaj':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','eQaAv':_0x4b3d95(0x1d4),'BMfAc':function(_0x5d76b7,_0x60aed7){return _0x5d76b7!==_0x60aed7;}};if(_0x39ecc8){const _0x531add=await _0x2e1f09['ztWBd'](getFeature,_0x39ecc8);await _0x2e1f09[_0x4b3d95(0x124)](setActiveFeatureId,_0x531add['id']);const _0x59db2e=_0x2e1f09[_0x4b3d95(0x1b3)](getGitBranch);_0x59db2e&&_0x59db2e!==_0x531add['gitBranch']&&(await updateFeature(_0x531add['id'],{'gitBranch':_0x59db2e}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x59db2e));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x531add['name']+'\x20('+_0x531add['id']+')'),await tryStartCurrentSession(_0x531add['id']);const _0x34cf1e=process[_0x4b3d95(0x16f)]['CLAUDE_SESSION_ID'];_0x34cf1e&&_0x2e1f09[_0x4b3d95(0x1e3)](registerSession,_0x34cf1e,_0x531add['id']);_0x2e1f09['RaFic'](displayFeature,_0x531add,_0x531add['checklistItems']),await _0x2e1f09['ztWBd'](printFeedbackNudge,_0x531add['id']);return;}const _0x27a0b7=getGitRepoUrl(),_0x20118f=getGitBranch();if(!_0x27a0b7&&!_0x20118f)throw new Error(_0x4b3d95(0x12d));console['log'](_0x4b3d95(0x1b0)+(_0x27a0b7||'any')+_0x4b3d95(0x172)+(_0x20118f||_0x2e1f09['rYcwh'])+_0x4b3d95(0x15e));const _0x3215c4=await listFeatures({'gitRepoUrl':_0x27a0b7,'gitBranch':_0x20118f}),_0x5229b5=_0x3215c4[_0x4b3d95(0x13a)]['filter'](_0x2a95e5=>_0x2a95e5['status']?_0x2a95e5[_0x4b3d95(0x1da)]!==_0x4b3d95(0x139):!_0x2a95e5[_0x4b3d95(0x1de)]);if(_0x2e1f09['YrIzE'](_0x5229b5[_0x4b3d95(0x15a)],0x0)){console[_0x4b3d95(0x1c5)](_0x2e1f09['YSWaj']),console['log'](_0x2e1f09['eQaAv']);return;}let _0x3a0ec7;if(_0x5229b5['length']===0x1)_0x3a0ec7=_0x5229b5[0x0];else{const _0x5d4915=process[_0x4b3d95(0x15f)][_0x4b3d95(0x1ca)]&&process['stdout']['isTTY'];if(!_0x5d4915){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x4e85a7 of _0x5229b5){console[_0x4b3d95(0x1c5)]('\x20\x20'+_0x4e85a7['name']),console['log'](_0x4b3d95(0x191)+_0x4e85a7['id']),_0x4e85a7['stats']&&console[_0x4b3d95(0x1c5)](_0x4b3d95(0x147)+_0x2e1f09['ztWBd'](getProgressDisplay,_0x4e85a7['stats'])),_0x4e85a7['gitBranch']&&console['log'](_0x4b3d95(0x16e)+_0x4e85a7[_0x4b3d95(0x1d5)]);}throw new Error(_0x4b3d95(0x1db));}const {selected:_0x54b0e9}=await _0x2925d7['prompt']([{'type':_0x4b3d95(0x194),'name':_0x4b3d95(0x1bd),'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x5229b5['map'](_0x3f696c=>({'name':_0x3f696c[_0x4b3d95(0x113)]+'\x20('+_0x3f696c['id']+')','value':_0x3f696c['id']}))}]);_0x3a0ec7=_0x5229b5[_0x4b3d95(0x155)](_0x254218=>_0x254218['id']===_0x54b0e9);}await _0x2e1f09[_0x4b3d95(0x124)](setActiveFeatureId,_0x3a0ec7['id']);_0x20118f&&_0x2e1f09[_0x4b3d95(0x1cf)](_0x20118f,_0x3a0ec7[_0x4b3d95(0x1d5)])&&(await _0x2e1f09[_0x4b3d95(0x13e)](updateFeature,_0x3a0ec7['id'],{'gitBranch':_0x20118f}),console[_0x4b3d95(0x1c5)](_0x4b3d95(0x1c7)+_0x20118f));console['log'](_0x4b3d95(0x128)+_0x3a0ec7[_0x4b3d95(0x113)]+'\x20('+_0x3a0ec7['id']+')'),await tryStartCurrentSession(_0x3a0ec7['id']);const _0x39d851=await getFeature(_0x3a0ec7['id']),_0x11f2ff=process['env'][_0x4b3d95(0x12e)];_0x11f2ff&®isterSession(_0x11f2ff,_0x39d851['id']),_0x2e1f09[_0x4b3d95(0x1e3)](displayFeature,_0x39d851,_0x39d851[_0x4b3d95(0x11a)]),await _0x2e1f09['ztWBd'](printFeedbackNudge,_0x39d851['id']);}async function printFeedbackNudge(_0x3b470c){const _0x39dd86=_0x38f2a6;try{const {items:_0x13c92a}=await getActionItems(_0x3b470c);let _0x2016bd=0x0,_0x219966=0x0;for(const _0x4aa660 of _0x13c92a){const _0x343b15=await getItemFeedback(_0x3b470c,_0x4aa660['id']);_0x343b15['unaddressedComments'][_0x39dd86(0x15a)]>0x0&&(_0x2016bd+=_0x343b15['unaddressedComments'][_0x39dd86(0x15a)],_0x219966++);}_0x2016bd>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x2016bd+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x219966+_0x39dd86(0x18b)),console[_0x39dd86(0x1c5)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x14348b){const _0x171804=_0x38f2a6;try{const {sessions:_0x53f6c0}=await listFeatureSessions(_0x14348b),_0x1f39f6=_0x53f6c0['find'](_0x63d45c=>_0x63d45c['status']==='ready');_0x1f39f6&&(await startSession(_0x14348b,_0x1f39f6['id']),console[_0x171804(0x1c5)](_0x171804(0x17a)+_0x1f39f6['iteration']));}catch{}}export async function featureReport(_0x30d393,_0x2d740e){const _0x8981ed=_0x38f2a6,_0x2eae1a={'IUnon':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','MsnCv':_0x8981ed(0x127),'DxEFD':function(_0x4db681,_0x3e6cce,_0x3755ec){return _0x4db681(_0x3e6cce,_0x3755ec);},'AhXlX':function(_0x174b66){return _0x174b66();},'QbWbM':'reports','AhACh':function(_0x41499a,_0x29265c,_0x1b427b){return _0x41499a(_0x29265c,_0x1b427b);},'womLI':function(_0x3ba9af,_0xff7bc1,_0x1234bf){return _0x3ba9af(_0xff7bc1,_0x1234bf);},'OrxFm':function(_0xcb0c36,_0x28d4bb,_0x517793,_0x75662){return _0xcb0c36(_0x28d4bb,_0x517793,_0x75662);}},_0x1da219=_0x30d393||await getActiveFeatureId();if(!_0x1da219)throw new Error(_0x2eae1a[_0x8981ed(0x1b1)]);console['log'](_0x2eae1a[_0x8981ed(0x16d)]);const _0x9b0719=await _0x2eae1a['DxEFD'](getFeatureReportMarkdown,_0x1da219,{'style':_0x2d740e[_0x8981ed(0x160)]}),_0x12c01c=_0x2d740e['output']||join(_0x2eae1a['AhXlX'](getRangerDir),_0x2eae1a['QbWbM'],_0x1da219+'.md'),_0xc308a=_0x2eae1a[_0x8981ed(0x162)](join,_0x12c01c,'..');!existsSync(_0xc308a)&&await _0x2eae1a['womLI'](mkdir,_0xc308a,{'recursive':!![]}),await _0x2eae1a['OrxFm'](writeFile,_0x12c01c,_0x9b0719,_0x8981ed(0x11d)),console['log'](_0x8981ed(0x1a3)+_0x12c01c);}function getScenarioResult(_0xde38e3){const _0x75eea=_0x38f2a6,_0x21e6e6={'HUMRu':_0x75eea(0x151)};if(_0xde38e3[_0x75eea(0x1da)]===_0x75eea(0x15b))return _0xde38e3[_0x75eea(0x196)]??'closed';if(_0xde38e3['status']==='verification_in_progress')return _0x21e6e6[_0x75eea(0x149)];return _0xde38e3[_0x75eea(0x1da)];}function getScenarioRationale(_0x1c6bd4,_0x4063c8){const _0x109058=_0x38f2a6;if(_0x4063c8)return _0x4063c8;if(_0x1c6bd4[_0x109058(0x1cd)])return _0x1c6bd4['blockedReason'];if(_0x1c6bd4['incompleteReason'])return _0x1c6bd4[_0x109058(0x156)];if(_0x1c6bd4[_0x109058(0x1a1)])return _0x1c6bd4['canceledReason'];if(_0x1c6bd4[_0x109058(0x1cb)])return _0x1c6bd4['notes'];return null;}export async function featureReportPrDescription(_0x1a8c5d,_0x2e363a){const _0x304d3a=_0x38f2a6,_0x4931eb={'ocFFT':function(_0x48dffc){return _0x48dffc();},'NuLfQ':function(_0x41607e,_0x26a2ff){return _0x41607e(_0x26a2ff);},'NHEmn':function(_0x3cfe5f,_0xc7576f,_0x103cb8){return _0x3cfe5f(_0xc7576f,_0x103cb8);},'TTDNS':_0x304d3a(0x19a),'nDVmS':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','hANQg':function(_0x5448a0,_0x31d66f,_0xab6745,_0xe866e5){return _0x5448a0(_0x31d66f,_0xab6745,_0xe866e5);}},_0x14fc00=_0x1a8c5d||await _0x4931eb[_0x304d3a(0x1ad)](getActiveFeatureId);if(!_0x14fc00)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0xda1148=await _0x4931eb[_0x304d3a(0x136)](getFeature,_0x14fc00),_0x187bf3=_0xda1148['checklistItems']||[],_0x3f6d29=_0x4931eb['NHEmn'](getCurrentSessionItems,_0xda1148,_0x187bf3);_0x3f6d29[_0x304d3a(0x15a)]===0x0&&(console[_0x304d3a(0x148)](_0x4931eb[_0x304d3a(0x177)]),process['exit'](0x1));const _0x1f2334=_0x2e363a[_0x304d3a(0x145)]??[],_0x384a1a=_0x1f2334['filter'](_0x22f3b2=>!Number[_0x304d3a(0x158)](_0x22f3b2)||_0x22f3b2<0x1||_0x22f3b2>_0x3f6d29['length']);if(_0x384a1a['length']>0x0){console[_0x304d3a(0x148)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x384a1a[_0x304d3a(0x10e)](',\x20')),console[_0x304d3a(0x1c5)]('\x0aAvailable\x20scenarios:');for(let _0x191c11=0x0;_0x191c11<_0x3f6d29[_0x304d3a(0x15a)];_0x191c11++){console[_0x304d3a(0x1c5)]('\x20\x20'+(_0x191c11+0x1)+'.\x20'+_0x3f6d29[_0x191c11]['description']);}process['exit'](0x1);}const _0x2d4475=new Set(_0x1f2334['map'](_0x30b2da=>_0x30b2da-0x1)),_0x35439b=_0x3f6d29[_0x304d3a(0x117)]((_0x4eca25,_0x389333)=>!_0x2d4475[_0x304d3a(0x1d8)](_0x389333));_0x35439b[_0x304d3a(0x15a)]===0x0&&(console[_0x304d3a(0x148)](_0x4931eb[_0x304d3a(0x1e8)]),process['exit'](0x1));if(_0x2e363a['json'])await _0x4931eb[_0x304d3a(0x14e)](outputJsonReport,_0x14fc00,_0xda1148,_0x35439b);else{const _0x2aaf61=await getFeatureReportMarkdown(_0x14fc00,{'itemIds':_0x35439b[_0x304d3a(0x1c6)](_0x1febcb=>_0x1febcb['id'])});process['stdout']['write'](_0x2aaf61[_0x304d3a(0x16a)]()+'\x0a');}}async function outputJsonReport(_0x101ee9,_0x54e535,_0x515a6c){const _0x5b45e0=_0x38f2a6,_0x53cf22={'tpmNZ':function(_0x502393,_0x58d914){return _0x502393>_0x58d914;},'PApQZ':function(_0x4ac690){return _0x4ac690();}},_0x27418b=_0x53cf22[_0x5b45e0(0x15d)](getApiBaseUrl),_0xa99f90=await getFeatureReport(_0x101ee9),_0x20eb59=new Map(_0xa99f90['checklistItems'][_0x5b45e0(0x1c6)](_0x3f44a0=>[_0x3f44a0['id'],_0x3f44a0])),_0x122b2e=await Promise['all'](_0x515a6c[_0x5b45e0(0x1c6)](async _0x3cd8bb=>{const _0x27d48d=_0x5b45e0,_0x455e29=_0x20eb59['get'](_0x3cd8bb['id']),_0x5c6794=_0x455e29?.['linkedSession']??null;let _0x171ad6=[];if(_0x3cd8bb[_0x27d48d(0x153)])try{const {steps:_0x4c4e2e}=await getBrowserSessionSteps(_0x3cd8bb['browserSessionId']);_0x53cf22['tpmNZ'](_0x4c4e2e[_0x27d48d(0x15a)],0x0)&&(_0x171ad6=_0x4c4e2e[_0x27d48d(0x1c6)](_0x58cbc0=>{const _0xc93600=_0x27d48d,_0x5a4107=_0x58cbc0[_0xc93600(0x1bc)]['find'](_0x575961=>_0x575961['assetType']==='screenshot'&&_0x575961[_0xc93600(0x1e9)]===_0xc93600(0x182))??_0x58cbc0['assets'][_0xc93600(0x155)](_0x5913b2=>_0x5913b2['assetType']===_0xc93600(0x14b));let _0x18411c=null,_0x14b321=null;if(_0x5a4107){const _0x370711=_0x5a4107['storage']['location'][_0xc93600(0x18f)]('/')[_0xc93600(0x1c9)]();_0x18411c=_0x27418b+'/api/v1/mcp/browser-sessions/'+_0x3cd8bb[_0xc93600(0x153)]+'/artifacts/'+_0x370711,_0x370711&&(_0x14b321=_0x370711[_0xc93600(0x141)](/\.\w+$/,'')[_0xc93600(0x141)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x14b321||_0x58cbc0[_0xc93600(0x170)]||_0x58cbc0[_0xc93600(0x1e5)]||_0xc93600(0x142)+_0x58cbc0[_0xc93600(0x138)],'screenshot':_0x18411c,'is_key_step':_0x58cbc0['isKeyStep']};}));}catch{}return _0x171ad6['length']===0x0&&_0x5c6794?.['screenshotUrls']&&(_0x171ad6=_0x5c6794[_0x27d48d(0x1b6)]['map']((_0x97201b,_0x4aecb7)=>({'description':'Screenshot\x20'+(_0x4aecb7+0x1),'screenshot':_0x97201b,'is_key_step':![]}))),{'description':_0x3cd8bb['description'],'result':getScenarioResult(_0x3cd8bb),'rationale':getScenarioRationale(_0x3cd8bb,_0x5c6794?.['agentResponse']),'steps':_0x171ad6};})),_0x45709b={'url':_0x54e535['dashboardUrl'],'scenarios':_0x122b2e};process['stdout'][_0x5b45e0(0x1d3)](JSON[_0x5b45e0(0x163)](_0x45709b,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x1a18ce){const _0x5c9750=_0x38f2a6,_0x2b7df4={'ejvtv':function(_0x47b53f){return _0x47b53f();},'IAVMI':function(_0x16c3e3,_0x4fbd28){return _0x16c3e3(_0x4fbd28);},'QAnEM':_0x5c9750(0x123),'kFfFQ':function(_0x4b3843,_0x4b21d4){return _0x4b3843(_0x4b21d4);},'Zzram':_0x5c9750(0x135),'pgcra':_0x5c9750(0x17d),'qhSXc':_0x5c9750(0x1bf),'UEpQP':function(_0x419dec,_0xdb8ebb,_0x29513b){return _0x419dec(_0xdb8ebb,_0x29513b);}},_0x4fc204=_0x1a18ce||await _0x2b7df4[_0x5c9750(0x1a5)](getActiveFeatureId);if(!_0x4fc204)throw new Error(_0x5c9750(0x111));const _0x36b04c=await _0x2b7df4['IAVMI'](getFeature,_0x4fc204);if(!_0x36b04c[_0x5c9750(0x1dd)])throw new Error(_0x2b7df4['QAnEM']);const {sessions:_0x11fa91}=await _0x2b7df4[_0x5c9750(0x1d1)](listFeatureSessions,_0x4fc204),_0x306c4a=_0x11fa91['find'](_0x262e14=>_0x262e14['id']===_0x36b04c[_0x5c9750(0x1dd)]);if(!_0x306c4a)throw new Error(_0x2b7df4[_0x5c9750(0x12f)]);if(_0x306c4a[_0x5c9750(0x1da)]===_0x2b7df4[_0x5c9750(0x118)]){console['log']('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x306c4a[_0x5c9750(0x1da)]!==_0x5c9750(0x151))throw new Error(_0x5c9750(0x14f)+_0x306c4a['status']);console['log'](_0x2b7df4[_0x5c9750(0x1b5)]),await _0x2b7df4['UEpQP'](concludeSession,_0x4fc204,_0x36b04c[_0x5c9750(0x1dd)]),console[_0x5c9750(0x1c5)]('\x0a✅\x20Session\x20'+_0x306c4a[_0x5c9750(0x125)]+_0x5c9750(0x178)),console['log'](_0x5c9750(0x19b));}export async function featureSessions(_0x1399e2){const _0x1112d4=_0x38f2a6,_0x5cce04={'oGDvL':function(_0x2fa890){return _0x2fa890();},'CyiSY':_0x1112d4(0x1e7),'xJovq':function(_0x432dbe,_0x11e5ed){return _0x432dbe(_0x11e5ed);},'Hkfrv':function(_0x11e761,_0xdfd382){return _0x11e761(_0xdfd382);},'ypIOB':function(_0x4e3c99,_0x1e097c){return _0x4e3c99===_0x1e097c;},'aLgEh':'completed','eQtKX':_0x1112d4(0x151)},_0x31fdf8=_0x1399e2||await _0x5cce04['oGDvL'](getActiveFeatureId);if(!_0x31fdf8)throw new Error(_0x5cce04['CyiSY']);const _0x10472c=await _0x5cce04[_0x1112d4(0x185)](getFeature,_0x31fdf8);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x10472c[_0x1112d4(0x113)]+'\x0a');const {sessions:_0x115715}=await _0x5cce04['Hkfrv'](listFeatureSessions,_0x31fdf8);if(_0x5cce04[_0x1112d4(0x122)](_0x115715[_0x1112d4(0x15a)],0x0)){console['log']('No\x20sessions\x20found.');return;}for(const _0x1c7b5e of _0x115715){const _0x3ef8a4=_0x5cce04['ypIOB'](_0x1c7b5e[_0x1112d4(0x1da)],_0x5cce04['aLgEh'])?'✅':_0x1c7b5e['status']===_0x5cce04[_0x1112d4(0x12b)]?'🔄':'▶️';console[_0x1112d4(0x1c5)](_0x3ef8a4+_0x1112d4(0x175)+_0x1c7b5e[_0x1112d4(0x125)]+'\x20('+_0x1c7b5e['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x1c7b5e[_0x1112d4(0x1da)]),console[_0x1112d4(0x1c5)](_0x1112d4(0x14c)+new Date(_0x1c7b5e['createdAt'])['toLocaleString']()),_0x1c7b5e[_0x1112d4(0x1de)]&&console[_0x1112d4(0x1c5)]('\x20\x20\x20Completed:\x20'+new Date(_0x1c7b5e[_0x1112d4(0x1de)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0xe4b353,_0x488185){const _0x19f0a3=_0x38f2a6,_0x57b7d5={'Nrehr':function(_0x293da7){return _0x293da7();},'OmJgH':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','mTsBG':function(_0x43f303,_0x5696fb,_0x566077){return _0x43f303(_0x5696fb,_0x566077);},'Jgnbu':function(_0x5a7ecd,_0x340967){return _0x5a7ecd(_0x340967);}},_0x506324=_0x488185||await _0x57b7d5['Nrehr'](getActiveFeatureId);if(!_0x506324)throw new Error(_0x57b7d5[_0x19f0a3(0x119)]);const _0x38f55f=await getFeature(_0x506324);if(_0x38f55f['latestReview']&&!_0x38f55f['latestReview']['submittedAt'])throw new Error(_0x19f0a3(0x19e)+_0x38f55f[_0x19f0a3(0x1ab)]);await _0x57b7d5[_0x19f0a3(0x1a0)](createChecklistItem,_0x506324,_0xe4b353);const _0x4b4067=await _0x57b7d5[_0x19f0a3(0x19c)](getFeature,_0x506324);console[_0x19f0a3(0x1c5)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x4b4067,_0x4b4067[_0x19f0a3(0x11a)]);}export async function featureEditScenario(_0x26f1e1,_0x592a53){const _0x3fb36e=_0x38f2a6,_0x50d9c9={'vWqoT':function(_0x23204f){return _0x23204f();},'pOeet':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','xbUEn':_0x3fb36e(0x1b4),'UJsBL':_0x3fb36e(0x1c1),'ykDnS':'Please\x20finish\x20your\x20review\x20first:','LmJBv':function(_0x539829,_0xb1989a){return _0x539829===_0xb1989a;},'kQEru':_0x3fb36e(0x1d6),'tPbcv':_0x3fb36e(0x1e1),'mooGj':_0x3fb36e(0x11c),'nEyoK':function(_0x6e9442,_0x409f68){return _0x6e9442<_0x409f68;},'oecjU':function(_0x37772e,_0x3e58c6){return _0x37772e+_0x3e58c6;},'sSuVY':function(_0x34abb2,_0x2d51bd){return _0x34abb2<_0x2d51bd;},'OrUNI':function(_0x5bcc53,_0x56f869,_0x3e57b7,_0x1c0b18){return _0x5bcc53(_0x56f869,_0x3e57b7,_0x1c0b18);}},_0x1d392e=_0x592a53['id']||await _0x50d9c9[_0x3fb36e(0x164)](getActiveFeatureId);!_0x1d392e&&(console[_0x3fb36e(0x148)](_0x50d9c9['pOeet']),console['error'](_0x50d9c9[_0x3fb36e(0x1b9)]),process[_0x3fb36e(0x1aa)](0x1));const _0x345024=await getFeature(_0x1d392e);_0x345024[_0x3fb36e(0x13b)]&&!_0x345024['latestReview'][_0x3fb36e(0x13d)]&&(console['error'](_0x50d9c9['UJsBL']),console[_0x3fb36e(0x148)](_0x50d9c9['ykDnS']),console['error']('\x20\x20'+_0x345024['dashboardUrl']),process[_0x3fb36e(0x1aa)](0x1));const _0x36a0db=_0x345024[_0x3fb36e(0x11a)]||[];_0x50d9c9[_0x3fb36e(0x1a9)](_0x36a0db['length'],0x0)&&(console[_0x3fb36e(0x148)](_0x50d9c9['kQEru']),process[_0x3fb36e(0x1aa)](0x1));if(_0x592a53[_0x3fb36e(0x169)]===undefined){console[_0x3fb36e(0x148)](_0x50d9c9['tPbcv']),console['log'](_0x50d9c9['mooGj']);for(let _0x4d0293=0x0;_0x50d9c9['nEyoK'](_0x4d0293,_0x36a0db[_0x3fb36e(0x15a)]);_0x4d0293++){console[_0x3fb36e(0x1c5)]('\x20\x20'+_0x50d9c9['oecjU'](_0x4d0293,0x1)+'.\x20'+_0x36a0db[_0x4d0293][_0x3fb36e(0x170)]);}process[_0x3fb36e(0x1aa)](0x1);}const _0x28c98c=_0x592a53[_0x3fb36e(0x169)]-0x1;if(_0x50d9c9[_0x3fb36e(0x10f)](_0x28c98c,0x0)||_0x28c98c>=_0x36a0db[_0x3fb36e(0x15a)]){console['error'](_0x3fb36e(0x189)+_0x592a53[_0x3fb36e(0x169)]+'.\x20Feature\x20review\x20has\x20'+_0x36a0db[_0x3fb36e(0x15a)]+'\x20scenarios.'),console['log']('\x0aAvailable\x20scenarios:');for(let _0x104607=0x0;_0x104607<_0x36a0db[_0x3fb36e(0x15a)];_0x104607++){console[_0x3fb36e(0x1c5)]('\x20\x20'+_0x50d9c9[_0x3fb36e(0x1a8)](_0x104607,0x1)+'.\x20'+_0x36a0db[_0x104607]['description']);}process['exit'](0x1);}const _0x2e9bae=_0x36a0db[_0x28c98c];await _0x50d9c9[_0x3fb36e(0x1ba)](updateChecklistItem,_0x1d392e,_0x2e9bae['id'],{'description':_0x26f1e1});const _0xf5e6c4=await getFeature(_0x1d392e);console[_0x3fb36e(0x1c5)](_0x3fb36e(0x1e2)),displayFeature(_0xf5e6c4,_0xf5e6c4[_0x3fb36e(0x11a)]);}async function downloadFeedbackImage(_0x35c706,_0x1100fd){const _0x46a3b5=_0x38f2a6,_0x506cdb={'yqvGF':function(_0x5809c3,_0x13b1f2,_0x5854b8){return _0x5809c3(_0x13b1f2,_0x5854b8);},'yOCtT':function(_0x24c5c1){return _0x24c5c1();},'ywqKi':function(_0x38ea1e,_0x4fc17e,_0x4a12e0){return _0x38ea1e(_0x4fc17e,_0x4a12e0);},'ZRTFI':function(_0xfedc4a,_0x5f5549,_0x5c97c1){return _0xfedc4a(_0x5f5549,_0x5c97c1);}};try{const _0x1be6e1=_0x506cdb[_0x46a3b5(0x126)](join,_0x506cdb['yOCtT'](getRangerDir),_0x46a3b5(0x1e6));await _0x506cdb[_0x46a3b5(0x114)](mkdir,_0x1be6e1,{'recursive':!![]});const _0x53ec3e=join(_0x1be6e1,_0x46a3b5(0x1d9)+_0x1100fd+_0x46a3b5(0x195)),_0x4ae19f=await fetch(_0x35c706);if(!_0x4ae19f['ok'])return null;const _0x508091=Buffer[_0x46a3b5(0x130)](await _0x4ae19f['arrayBuffer']());return await _0x506cdb['ZRTFI'](writeFile,_0x53ec3e,_0x508091),_0x53ec3e;}catch{return null;}}export async function featureGetReview(_0x3a18be){const _0x2bae57=_0x38f2a6,_0x12e064={'ZMzOI':function(_0x3b9cde,_0x2aa6bb){return _0x3b9cde(_0x2aa6bb);},'mfmba':function(_0x4f91ec,_0x1ab119){return _0x4f91ec===_0x1ab119;},'tCfEj':'No\x20scenarios\x20found.','bGKCq':function(_0xb2cc2c,_0x1cfb8c){return _0xb2cc2c<_0x1cfb8c;},'ChJhM':function(_0x42a8cf,_0x579209){return _0x42a8cf>_0x579209;},'tYvuA':'en-US','DrkaP':'numeric','TIRwI':function(_0x100a67,_0x4157f9,_0x41fd43){return _0x100a67(_0x4157f9,_0x41fd43);},'Ojnar':'point','cZxTQ':function(_0x1e0ab1,_0x30e8aa){return _0x1e0ab1+_0x30e8aa;}},_0x22ec43=_0x3a18be||await getActiveFeatureId();if(!_0x22ec43)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 _0x55ad3c=await getFeature(_0x22ec43),{items:_0x4634da}=await _0x12e064[_0x2bae57(0x1ae)](getActionItems,_0x22ec43);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x55ad3c['name']+'\x20('+_0x55ad3c['id']+')\x0a');if(_0x12e064['mfmba'](_0x4634da[_0x2bae57(0x15a)],0x0)){console['log'](_0x12e064[_0x2bae57(0x116)]);return;}for(let _0x122468=0x0;_0x12e064['bGKCq'](_0x122468,_0x4634da[_0x2bae57(0x15a)]);_0x122468++){const _0x3d2d22=_0x4634da[_0x122468],_0x108d00=_0x12e064['ChJhM'](_0x3d2d22[_0x2bae57(0x1b7)],0x1)?'\x20(v'+_0x3d2d22[_0x2bae57(0x1b7)]+')':'',_0x3f9d50=await getItemFeedback(_0x22ec43,_0x3d2d22['id']);if(_0x12e064[_0x2bae57(0x131)](_0x3f9d50[_0x2bae57(0x1c8)]['length'],0x0)){console[_0x2bae57(0x1c5)]('Scenario\x20'+(_0x122468+0x1)+_0x2bae57(0x15c)+_0x3d2d22[_0x2bae57(0x170)]+'\x22'+_0x108d00+_0x2bae57(0x17e)+_0x3f9d50['unaddressedComments'][_0x2bae57(0x15a)]+'\x20unaddressed\x20comment(s)');for(const _0x1bf3b2 of _0x3f9d50[_0x2bae57(0x1c8)]){const _0x5b286f=new Date(_0x1bf3b2['createdAt'])['toLocaleDateString'](_0x12e064['tYvuA'],{'month':'short','day':_0x12e064[_0x2bae57(0x1ea)]}),_0x383ea9=_0x1bf3b2['authorName']||_0x1bf3b2['authorEmail']||'Unknown';console['log']('\x20\x20💬\x20'+_0x383ea9+'\x20('+_0x5b286f+_0x2bae57(0x133)+_0x1bf3b2[_0x2bae57(0x144)]+'\x22');if(_0x1bf3b2['assetUrl']){const _0x1c8e11=await _0x12e064[_0x2bae57(0x1a6)](downloadFeedbackImage,_0x1bf3b2['assetUrl'],_0x1bf3b2['id']);_0x1c8e11&&console[_0x2bae57(0x1c5)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x1c8e11);}if(_0x1bf3b2[_0x2bae57(0x1a7)]){const _0x1aaf63=_0x1bf3b2['domRef'][_0x2bae57(0x152)][_0x2bae57(0x18f)]('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x2bae57(0x1ec),_0x569195=_0x1bf3b2['domRef'][_0x2bae57(0x1df)]?'\x20\x22'+_0x1bf3b2[_0x2bae57(0x1a7)][_0x2bae57(0x1df)]['slice'](0x0,0x3c)+'\x22':'';console['log'](_0x2bae57(0x1e4)+_0x1aaf63+'>'+_0x569195),console[_0x2bae57(0x1c5)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x1bf3b2['domRef'][_0x2bae57(0x152)]);}else{if(_0x1bf3b2[_0x2bae57(0x1e0)]){const _0x1e709d=_0x1bf3b2[_0x2bae57(0x1e0)][_0x2bae57(0x174)];_0x1bf3b2[_0x2bae57(0x1e0)]['type']===_0x12e064['Ojnar']&&_0x1e709d[_0x2bae57(0x15a)]>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x1e709d[0x0][_0x2bae57(0x18e)](0x2)+',\x20'+_0x1e709d[0x1][_0x2bae57(0x18e)](0x2)+')'):console[_0x2bae57(0x1c5)](_0x2bae57(0x1b8)+_0x1bf3b2['spatial'][_0x2bae57(0x1c4)]+'\x20at\x20['+_0x1e709d['map'](_0x18c4c4=>_0x18c4c4['toFixed'](0x2))[_0x2bae57(0x10e)](',\x20')+']');}}}if(_0x3f9d50[_0x2bae57(0x19f)]){console[_0x2bae57(0x1c5)]('\x20\x20Expected\x20flow:');for(const _0x158fb5 of _0x3f9d50[_0x2bae57(0x19f)][_0x2bae57(0x18f)]('\x0a')){console[_0x2bae57(0x1c5)](_0x2bae57(0x18d)+_0x158fb5);}}}else console[_0x2bae57(0x1c5)](_0x2bae57(0x1be)+_0x12e064['cZxTQ'](_0x122468,0x1)+_0x2bae57(0x15c)+_0x3d2d22['description']+'\x22'+_0x108d00+_0x2bae57(0x146)),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}function _0x27c7(_0x10721b,_0xeea615){_0x10721b=_0x10721b-0x10e;const _0x21d2e7=_0x21d2();let _0x27c7d2=_0x21d2e7[_0x10721b];return _0x27c7d2;}export async function featureDelete(_0x77a332){const _0x155d57=_0x38f2a6,_0x1ca5c3={'ScwEX':function(_0x17f39f){return _0x17f39f();},'hEkiH':function(_0x1198e1,_0x1b1f04){return _0x1198e1+_0x1b1f04;}},_0x41b8e9=_0x77a332||await _0x1ca5c3['ScwEX'](getActiveFeatureId);if(!_0x41b8e9)throw new Error(_0x155d57(0x111));const _0x3e6913=await getFeature(_0x41b8e9);await softDeleteFeature(_0x41b8e9),console['log'](_0x155d57(0x17c)+_0x3e6913['name']+'\x20('+_0x41b8e9+')'),console['log'](_0x1ca5c3[_0x155d57(0x1ac)]('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20',_0x41b8e9));}export async function featureRestore(_0x3e5368){const _0x4895ed=_0x38f2a6;await restoreFeature(_0x3e5368);const _0x10d822=await getFeature(_0x3e5368);console['log'](_0x4895ed(0x190)+_0x10d822['name']+'\x20('+_0x3e5368+')'),displayFeature(_0x10d822,_0x10d822[_0x4895ed(0x11a)]);}
|
|
1
|
+
const _0x207aa7=_0x2d3f;(function(_0x2fc0ca,_0x3d3f19){const _0x295d9a=_0x2d3f,_0x30dbf5=_0x2fc0ca();while(!![]){try{const _0x124467=-parseInt(_0x295d9a(0x1af))/0x1+-parseInt(_0x295d9a(0x139))/0x2*(-parseInt(_0x295d9a(0x11e))/0x3)+-parseInt(_0x295d9a(0x15a))/0x4+-parseInt(_0x295d9a(0x1b9))/0x5*(parseInt(_0x295d9a(0x1e6))/0x6)+-parseInt(_0x295d9a(0x151))/0x7+-parseInt(_0x295d9a(0x153))/0x8*(-parseInt(_0x295d9a(0x1e0))/0x9)+parseInt(_0x295d9a(0x183))/0xa*(parseInt(_0x295d9a(0x16a))/0xb);if(_0x124467===_0x3d3f19)break;else _0x30dbf5['push'](_0x30dbf5['shift']());}catch(_0x1b3350){_0x30dbf5['push'](_0x30dbf5['shift']());}}}(_0x58fa,0xa4952));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x18e4a0 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';function _0x58fa(){const _0x5ffbdb=['assets','EWOTz','RCUFk','createdAt','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','smwVv','toLocaleDateString','Please\x20finish\x20your\x20review\x20first:','currentSessionId','UHaco','incompleteReason','OcbUK','.png','\x20in\x20progress','QvlrW','SeJBf','930454AJJEQq','error','16oGhhVd','RQnNq','utf-8','\x0a✅\x20Resumed\x20feature\x20review:\x20','gitRepoUrl','\x0a⚠️\x20\x20','authorName','3416644lPJYZf','cVMXY','filter','VuLka','scenarios','stdout','any','KYDLz','RgqGJ','in_progress','DTWMp','\x0a✅\x20Scenario\x20added','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20blocked','PpSxY','0|3|1|4|2|5','3608dnpnaa','join','length','latestReview','FTVqN','\x20\x20\x20Created:\x20','\x0aGenerating\x20report...','Rchnj','wCeWK','\x0a📋\x20Feedback\x20for:\x20','repeat','UsMES','position','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','YYFMX','\x20concluded.','toLocaleString','Showing\x20','\x20\x20\x20Branch:\x20','XgJqs','log','all','write','GWPly','blockedItems','84470yQSOGm','GRLyT','XlGZp','trimEnd','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','en-US','hlrUp','ZBarF','arrayBuffer','git\x20remote\x20get-url\x20origin','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','from','notes','\x20(v','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','\x20\x20\x20\x20\x20\x20Blocked:\x20','kAnAG','pop','\x20incomplete','\x20\x20\x20Status:\x20','iteration','jXQir','wvQSd','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','verification_in_progress','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','TtIKy','textContent','\x0a✅\x20Feature\x20review\x20created:\x20','TDYMM','storage','verificationInProgressItems','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','YKZqw','stdin','Screenshot\x20','TqeWj','Cannot\x20conclude\x20session\x20with\x20status:\x20','oVXct','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','selected','agentResponse','isInteger','1209850ElgiWz','No\x20active\x20session\x20for\x20this\x20feature\x20review.','xtSLG','\x0a✅\x20Restored\x20feature\x20review:\x20','excludeScenarios','selector','RgbnK','prompt','nXaJO','includeDeleted','628715tobdQL','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','map','\x0a✅\x20Report\x20generated:\x20','CLAUDE_SESSION_ID','vZiMV','MchUJ','mtEAn','RGaAj','offset','canceledReason','aHFSZ','find','sessionId','screenshotUrls','currentBranch','\x0aNo\x20feature\x20reviews\x20found.','\x0a✅\x20Session\x20is\x20already\x20completed.','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','split','trim','domRef','gOPhH','toFixed','KoRrc','has','push','\x20\x20💬\x20','limit','TJUdc','nVucn','description','OVECY','items','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','verified','\x20\x20\x20','NMrZi','2099826vHrrDi','gpqWz','totalCount','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','JqAQd','stepName','48HTCeqZ','short','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x20--current-branch','closed','LaRnb','gBJKx','TLXIX','replace','\x20\x20Expected\x20flow:','PHYKt','RANGER_TEST_USERNAME','status','gitBranch','completedAt','GIdpl','RUDFz','kMGGG','\x20--limit\x20','Scenario\x20','name','active-feature.txt','1919289ffTOOQ','\x20Session\x20','Not\x20in\x20a\x20git\x20repository.','dashboardUrl','scenario','ready','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','env','canonicalFlow','exit','Lzypc','version','ojpOn','checklistItems','spatial','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','after','\x20\x20\x20▶️\x20Started\x20session\x20','KmTBZ','GimMf','completed','\x20\x20\x20ID:\x20','round','.md','adGvV','stats','unaddressedComments','2ccLnYl','parentItemId','location','point','qRfxW','\x20\x20\x20Completed:\x20','isKeyStep','blocked'];_0x58fa=function(){return _0x5ffbdb;};return _0x58fa();}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=_0x207aa7(0x11d),bold=_0x1a05c4=>'\x1b[1m'+_0x1a05c4+'\x1b[0m';function getGitRepoUrl(){const _0xfd6a7e=_0x207aa7,_0x3ae7de={'TDYMM':function(_0x5a6d21,_0x5ca926,_0x46cedc){return _0x5a6d21(_0x5ca926,_0x46cedc);},'cyjhX':_0xfd6a7e(0x18c),'VuLka':'pipe','IoJyR':'github.com/'};try{const _0x21482=_0x3ae7de[_0xfd6a7e(0x1a0)](execSync,_0x3ae7de['cyjhX'],{'encoding':_0xfd6a7e(0x155),'stdio':[_0x3ae7de[_0xfd6a7e(0x15d)],_0x3ae7de[_0xfd6a7e(0x15d)],_0x3ae7de['VuLka']]})[_0xfd6a7e(0x1ce)]();return _0x21482['replace'](/\.git$/,'')[_0xfd6a7e(0x1ee)](/^git@github\.com:/,_0x3ae7de['IoJyR'])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x32d2fb=_0x207aa7,_0x59d239={'KYDLz':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','IejId':'utf-8','MchUJ':'pipe'};try{return execSync(_0x59d239[_0x32d2fb(0x161)],{'encoding':_0x59d239['IejId'],'stdio':[_0x59d239[_0x32d2fb(0x1bf)],'pipe',_0x59d239[_0x32d2fb(0x1bf)]]})[_0x32d2fb(0x1ce)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x1c3b1c=_0x207aa7,_0x3f8909={'wvQSd':function(_0x47a733,_0x589d28){return _0x47a733(_0x589d28);},'QlWff':'utf-8'},_0x3a3741=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x3f8909[_0x1c3b1c(0x199)](existsSync,_0x3a3741))return null;try{const _0x41b203=await readFile(_0x3a3741,_0x3f8909['QlWff']);return _0x41b203['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x2f32b3){const _0x24745c=_0x207aa7,_0x4249ca={'FTVqN':function(_0x3ef2ab,_0x5855be,_0x192793){return _0x3ef2ab(_0x5855be,_0x192793);},'XlGZp':function(_0x144ff2,_0x1322f5){return _0x144ff2(_0x1322f5);}},_0x12ba36=getRangerDir(),_0x52f64d=_0x4249ca[_0x24745c(0x16e)](join,_0x12ba36,ACTIVE_FEATURE_FILE);!_0x4249ca[_0x24745c(0x185)](existsSync,_0x12ba36)&&await mkdir(_0x12ba36,{'recursive':!![]}),await writeFile(_0x52f64d,_0x2f32b3,'utf-8');}function getProgressDisplay(_0x2baeba){const _0x33e93b=_0x207aa7,_0x42b4ea={'YjWuM':function(_0x39d4ca,_0x5d3ddf){return _0x39d4ca+_0x5d3ddf;},'HMWYj':function(_0xf00053,_0x56b197){return _0xf00053===_0x56b197;},'UHaco':function(_0x3b1f3c,_0x2ff8c8){return _0x3b1f3c>_0x2ff8c8;},'DgmFJ':function(_0x5d6202,_0x2d295a){return _0x5d6202>_0x2d295a;}},_0x3e7a99=_0x2baeba['verifiedItems']||0x0,_0x45573e=_0x2baeba[_0x33e93b(0x1a2)]||0x0,_0x572703=_0x2baeba[_0x33e93b(0x182)]||0x0,_0x49e639=_0x2baeba['incompleteItems']||0x0,_0x3d1095=_0x2baeba['pendingItems']||0x0,_0x32d06e=_0x42b4ea['YjWuM'](_0x3e7a99+_0x45573e+_0x572703,_0x49e639)+_0x3d1095;if(_0x42b4ea['HMWYj'](_0x32d06e,0x0))return'-';const _0x31c62b=0xa,_0x3649f0=Math[_0x33e93b(0x134)](_0x3e7a99/_0x32d06e*_0x31c62b),_0x151a32=_0x42b4ea['YjWuM']('█'[_0x33e93b(0x174)](_0x3649f0),'░'['repeat'](_0x31c62b-_0x3649f0)),_0x48148d=[];if(_0x42b4ea[_0x33e93b(0x14a)](_0x572703,0x0))_0x48148d[_0x33e93b(0x1d4)](_0x572703+_0x33e93b(0x167));if(_0x42b4ea['DgmFJ'](_0x49e639,0x0))_0x48148d['push'](_0x49e639+_0x33e93b(0x195));if(_0x42b4ea['DgmFJ'](_0x45573e,0x0))_0x48148d[_0x33e93b(0x1d4)](_0x45573e+_0x33e93b(0x14e));const _0x355dc8=_0x48148d['length']>0x0?'\x20('+_0x48148d['join'](',\x20')+')':'';return _0x151a32+'\x20'+_0x3e7a99+'/'+_0x32d06e+'\x20verified'+_0x355dc8;}function getCurrentSessionItems(_0x322756,_0x19b1f8){const _0x518dae=_0x207aa7;if(!_0x322756[_0x518dae(0x149)])return _0x19b1f8['filter'](_0x48930c=>!_0x48930c[_0x518dae(0x1c6)]);return _0x19b1f8[_0x518dae(0x15c)](_0x1b33c1=>_0x1b33c1[_0x518dae(0x1c6)]===_0x322756['currentSessionId']||!_0x1b33c1['sessionId']);}function displayFeature(_0x2b85a7,_0x2601d5){const _0x2c9844=_0x207aa7,_0x32b934={'WpqwK':function(_0x52b6c4,_0x380110){return _0x52b6c4(_0x380110);},'ZBarF':function(_0x2dbb9a,_0x30294d){return _0x2dbb9a>_0x30294d;},'nXaJO':'\x0a\x20\x20\x20Scenarios:','XymMx':'closed','dwCok':'approved','YYFMX':_0x2c9844(0x1dd),'VtsbS':function(_0x5c7d41,_0xcf1ac2){return _0x5c7d41===_0xcf1ac2;},'ONJzI':function(_0x306184,_0x5ef59c){return _0x306184===_0x5ef59c;},'YKZqw':function(_0x311452,_0x5305fc){return _0x311452!==_0x5305fc;},'TtIKy':function(_0x55a995,_0x306920){return _0x55a995!==_0x306920;},'TLXIX':function(_0x37cefb,_0x56bd98){return _0x37cefb+_0x56bd98;},'dyezJ':function(_0x362c6b,_0x392a34){return _0x362c6b===_0x392a34;},'wMAxC':function(_0x50cca8,_0x7334c3){return _0x50cca8===_0x7334c3;},'LaRnb':'incomplete'};console['log']('\x0a'+_0x2b85a7[_0x2c9844(0x11c)]+'\x20('+_0x2b85a7[_0x2c9844(0x121)]+')');_0x2b85a7['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x32b934['WpqwK'](getProgressDisplay,_0x2b85a7['stats']));_0x2b85a7[_0x2c9844(0x1d9)]&&console['log']('\x20\x20\x20Description:\x20'+_0x2b85a7[_0x2c9844(0x1d9)]);_0x2b85a7[_0x2c9844(0x157)]&&console[_0x2c9844(0x17e)]('\x20\x20\x20Repository:\x20'+_0x2b85a7['gitRepoUrl']);_0x2b85a7[_0x2c9844(0x115)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x2b85a7['gitBranch']);console[_0x2c9844(0x17e)]('\x20\x20\x20Created:\x20'+new Date(_0x2b85a7['createdAt'])[_0x2c9844(0x17a)]());_0x2b85a7['completedAt']&&console['log'](_0x2c9844(0x13e)+new Date(_0x2b85a7[_0x2c9844(0x116)])[_0x2c9844(0x17a)]());if(_0x2601d5&&_0x32b934[_0x2c9844(0x18a)](_0x2601d5[_0x2c9844(0x16c)],0x0)){console[_0x2c9844(0x17e)](_0x32b934[_0x2c9844(0x1b7)]);for(let _0x420df9=0x0;_0x420df9<_0x2601d5[_0x2c9844(0x16c)];_0x420df9++){const _0x5d02e7=_0x2601d5[_0x420df9];let _0x39b5aa;if(_0x5d02e7['status']===_0x32b934['XymMx']&&_0x5d02e7['terminalReason']===_0x32b934['dwCok'])_0x39b5aa='✅';else{if(_0x5d02e7[_0x2c9844(0x114)]===_0x32b934['YYFMX'])_0x39b5aa='🟢';else{if(_0x32b934['VtsbS'](_0x5d02e7[_0x2c9844(0x114)],'incomplete'))_0x39b5aa='🟠';else{if(_0x5d02e7['status']===_0x2c9844(0x140))_0x39b5aa='🛑';else{if(_0x32b934['ONJzI'](_0x5d02e7[_0x2c9844(0x114)],'closed'))_0x39b5aa='⛔';else _0x5d02e7[_0x2c9844(0x114)]===_0x2c9844(0x19b)?_0x39b5aa='⏳':_0x39b5aa='⬜';}}}}const _0x3388d3=_0x5d02e7['version']>0x1?'\x20(v'+_0x5d02e7[_0x2c9844(0x129)]+')':'',_0x273eff=_0x5d02e7[_0x2c9844(0x129)]>0x1&&_0x5d02e7[_0x2c9844(0x13a)]&&_0x32b934[_0x2c9844(0x1a4)](_0x5d02e7['status'],_0x2c9844(0x1ea))&&_0x32b934[_0x2c9844(0x19d)](_0x5d02e7['status'],_0x32b934[_0x2c9844(0x178)])?'\x20[has\x20reviewer\x20feedback]':'';console[_0x2c9844(0x17e)](_0x2c9844(0x1de)+_0x32b934[_0x2c9844(0x1ed)](_0x420df9,0x1)+'.\x20'+_0x39b5aa+'\x20'+_0x5d02e7[_0x2c9844(0x1d9)]+_0x3388d3+_0x273eff);_0x32b934['dyezJ'](_0x5d02e7['status'],'blocked')&&_0x5d02e7['blockedReason']&&console[_0x2c9844(0x17e)](_0x2c9844(0x192)+_0x5d02e7['blockedReason']);_0x32b934['wMAxC'](_0x5d02e7[_0x2c9844(0x114)],_0x32b934[_0x2c9844(0x1eb)])&&_0x5d02e7['incompleteReason']&&console[_0x2c9844(0x17e)](_0x2c9844(0x1e8)+_0x5d02e7[_0x2c9844(0x14b)]);if(_0x5d02e7['status']===_0x2c9844(0x1ea)&&_0x5d02e7['terminalReason']==='approved')console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x5d02e7['status']===_0x2c9844(0x1ea)&&_0x5d02e7['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x5d02e7[_0x2c9844(0x1c3)]);}}}export async function featureCreate(_0x36c712,_0x279f52){const _0x2e6a3b=_0x207aa7,_0x343375={'qRfxW':function(_0x3f2235){return _0x3f2235();},'adGvV':function(_0x24ba82,_0x28cada){return _0x24ba82(_0x28cada);},'OcbUK':function(_0x500dc3){return _0x500dc3();},'AHDfx':function(_0x2d3f2d,_0x3ed3a3){return _0x2d3f2d(_0x3ed3a3);},'zSVsj':function(_0x34eefa,_0x554cb5,_0x1e6559){return _0x34eefa(_0x554cb5,_0x1e6559);}},{envNames:_0xb11a30}=await getEnvNames();if(_0xb11a30['length']===0x0&&!process[_0x2e6a3b(0x125)][_0x2e6a3b(0x113)]){let _0x145a18=0x0;try{_0x145a18=(await _0x343375[_0x2e6a3b(0x13d)](listCloudProfiles))['length'];}catch{_0x145a18=0x1;}_0x145a18===0x0&&console['warn']('\x0a'+_0x343375[_0x2e6a3b(0x136)](formatProfileRequiredMessage,_0x34c1e2=>bold(_0x34c1e2)));}const _0x384573=_0x279f52[_0x2e6a3b(0x15e)]?_0x279f52['scenarios'][_0x2e6a3b(0x1bb)](_0x17c3ea=>_0x17c3ea['trim']()):[],_0x236e04=_0x343375[_0x2e6a3b(0x14c)](getGitRepoUrl),_0x2db578=_0x343375['qRfxW'](getGitBranch);console[_0x2e6a3b(0x17e)]('\x0aCreating\x20feature\x20review...');const _0x196d72=await _0x343375[_0x2e6a3b(0x136)](createFeature,{'name':_0x36c712,'description':_0x279f52['description'],'checklist':_0x384573,'gitRepoUrl':_0x236e04,'gitBranch':_0x2db578});await _0x343375[_0x2e6a3b(0x136)](setActiveFeatureId,_0x196d72['id']),await _0x343375['AHDfx'](tryStartCurrentSession,_0x196d72['id']);const _0x2ba33d=process['env']['CLAUDE_SESSION_ID'];_0x2ba33d&®isterSession(_0x2ba33d,_0x196d72['id']),console['log'](_0x2e6a3b(0x19f)+_0x196d72['id']),_0x343375['zSVsj'](displayFeature,_0x196d72,_0x196d72['checklistItems']),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0xace50d){const _0x20a726=_0x207aa7,_0x2bbf1f={'eeFgC':function(_0x49b071,_0x4f4934){return _0x49b071(_0x4f4934);},'XgJqs':function(_0x5f26bc,_0x43b391){return _0x5f26bc<_0x43b391;},'Lzypc':function(_0x3e3fd9,_0x1d73fd){return _0x3e3fd9!==_0x1d73fd;},'psDCt':_0x20a726(0x1e9)},_0x6bb18={'limit':_0xace50d[_0x20a726(0x1d6)]??0xa,'offset':_0xace50d[_0x20a726(0x1c2)]??0x0,'includeDeleted':_0xace50d['includeDeleted']};_0xace50d[_0x20a726(0x1c8)]&&(_0x6bb18['gitRepoUrl']=getGitRepoUrl(),_0x6bb18['gitBranch']=getGitBranch());const _0x1ef7c9=await _0x2bbf1f['eeFgC'](listFeatures,_0x6bb18);if(_0x1ef7c9['items'][_0x20a726(0x16c)]===0x0){console[_0x20a726(0x17e)](_0x20a726(0x1c9));return;}const _0xdcf294=_0x1ef7c9[_0x20a726(0x1e2)]>_0x1ef7c9[_0x20a726(0x1db)][_0x20a726(0x16c)]?_0x20a726(0x17b)+_0x1ef7c9[_0x20a726(0x1db)]['length']+'\x20of\x20'+_0x1ef7c9[_0x20a726(0x1e2)]:_0x1ef7c9[_0x20a726(0x1e2)]+'\x20feature\x20review(s)\x20found';console[_0x20a726(0x17e)]('\x0a'+_0xdcf294+':\x0a');for(const _0x5db1a9 of _0x1ef7c9['items']){console[_0x20a726(0x17e)](''+_0x5db1a9['name']),console[_0x20a726(0x17e)](_0x20a726(0x133)+_0x5db1a9['id']),_0x5db1a9['stats']&&console[_0x20a726(0x17e)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x5db1a9[_0x20a726(0x137)])),_0x5db1a9[_0x20a726(0x115)]&&console['log'](_0x20a726(0x17c)+_0x5db1a9['gitBranch']),console[_0x20a726(0x17e)](_0x20a726(0x16f)+new Date(_0x5db1a9['createdAt'])[_0x20a726(0x147)]()),console[_0x20a726(0x17e)]('');}const _0x6a5b48=_0x6bb18[_0x20a726(0x1d6)]??0xa,_0x18b85a=(_0x6bb18[_0x20a726(0x1c2)]??0x0)+_0x1ef7c9['items']['length'];if(_0x2bbf1f[_0x20a726(0x17d)](_0x18b85a,_0x1ef7c9['totalCount'])){const _0x3bc1d3=_0x2bbf1f[_0x20a726(0x128)](_0x6a5b48,0xa)?_0x20a726(0x11a)+_0x6a5b48:'',_0x1cfc6f=_0xace50d[_0x20a726(0x1c8)]?_0x2bbf1f['psDCt']:'',_0x4acf1d=_0xace50d[_0x20a726(0x1b8)]?'\x20--include-deleted':'';console[_0x20a726(0x17e)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x18b85a+_0x3bc1d3+_0x1cfc6f+_0x4acf1d);}}export async function featureShow(_0x3842ba){const _0x26e2bf=_0x207aa7,_0x1e627a={'Rchnj':function(_0xa6b803){return _0xa6b803();}},_0xf2ee35=_0x3842ba||await _0x1e627a[_0x26e2bf(0x171)](getActiveFeatureId);if(!_0xf2ee35)throw new Error(_0x26e2bf(0x19a));const _0x172c9f=await getFeature(_0xf2ee35);displayFeature(_0x172c9f,_0x172c9f['checklistItems']);}export async function featureResume(_0x39c884){const _0x143c37=_0x207aa7,_0x1c52a8={'oVXct':function(_0x476797,_0x319805){return _0x476797(_0x319805);},'gOPhH':function(_0x3e21fe){return _0x3e21fe();},'ohzsw':function(_0x47edf7,_0x3f8d38,_0x4a9f81){return _0x47edf7(_0x3f8d38,_0x4a9f81);},'ojpOn':function(_0x5a5acb,_0x2e5576){return _0x5a5acb(_0x2e5576);},'aHFSZ':function(_0x5d3bd4,_0xc0de62){return _0x5d3bd4||_0xc0de62;},'RCUFk':function(_0x372678,_0x552a56){return _0x372678===_0x552a56;},'NAZBC':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','gBJKx':function(_0x3bb615,_0x4e877c){return _0x3bb615(_0x4e877c);},'KmTBZ':'list','AEhcB':function(_0x376335,_0x56e1d8){return _0x376335(_0x56e1d8);},'KoRrc':function(_0x5e55fd,_0x384fcb,_0x22c6ed){return _0x5e55fd(_0x384fcb,_0x22c6ed);}};if(_0x39c884){const _0x85d5b4=await getFeature(_0x39c884);await _0x1c52a8[_0x143c37(0x1a9)](setActiveFeatureId,_0x85d5b4['id']);const _0x4d856a=_0x1c52a8[_0x143c37(0x1d0)](getGitBranch);_0x4d856a&&_0x4d856a!==_0x85d5b4['gitBranch']&&(await _0x1c52a8['ohzsw'](updateFeature,_0x85d5b4['id'],{'gitBranch':_0x4d856a}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4d856a));console[_0x143c37(0x17e)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x85d5b4['name']+'\x20('+_0x85d5b4['id']+')'),await tryStartCurrentSession(_0x85d5b4['id']);const _0x338348=process[_0x143c37(0x125)][_0x143c37(0x1bd)];_0x338348&®isterSession(_0x338348,_0x85d5b4['id']);displayFeature(_0x85d5b4,_0x85d5b4['checklistItems']),await _0x1c52a8[_0x143c37(0x12a)](printFeedbackNudge,_0x85d5b4['id']);return;}const _0x188773=_0x1c52a8['gOPhH'](getGitRepoUrl),_0x5c8ceb=getGitBranch();if(!_0x188773&&!_0x5c8ceb)throw new Error(_0x143c37(0x120));console[_0x143c37(0x17e)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x188773||_0x143c37(0x160))+'\x20/\x20'+_0x1c52a8[_0x143c37(0x1c4)](_0x5c8ceb,_0x143c37(0x160))+'...');const _0x434ac4=await listFeatures({'gitRepoUrl':_0x188773,'gitBranch':_0x5c8ceb}),_0x59b950=_0x434ac4[_0x143c37(0x1db)]['filter'](_0x1a4dbf=>_0x1a4dbf[_0x143c37(0x114)]?_0x1a4dbf[_0x143c37(0x114)]!=='verified':!_0x1a4dbf[_0x143c37(0x116)]);if(_0x59b950[_0x143c37(0x16c)]===0x0){console['log'](_0x143c37(0x1ab)),console[_0x143c37(0x17e)](_0x143c37(0x19c));return;}let _0x1aa810;if(_0x1c52a8[_0x143c37(0x143)](_0x59b950[_0x143c37(0x16c)],0x1))_0x1aa810=_0x59b950[0x0];else{const _0x8313d5=process[_0x143c37(0x1a5)]['isTTY']&&process[_0x143c37(0x15f)]['isTTY'];if(!_0x8313d5){console['log'](_0x1c52a8['NAZBC']);for(const _0x5859e5 of _0x59b950){console[_0x143c37(0x17e)]('\x20\x20'+_0x5859e5[_0x143c37(0x11c)]),console[_0x143c37(0x17e)]('\x20\x20\x20\x20\x20ID:\x20'+_0x5859e5['id']),_0x5859e5['stats']&&console[_0x143c37(0x17e)]('\x20\x20\x20\x20\x20Progress:\x20'+_0x1c52a8[_0x143c37(0x1ec)](getProgressDisplay,_0x5859e5['stats'])),_0x5859e5['gitBranch']&&console[_0x143c37(0x17e)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x5859e5['gitBranch']);}throw new Error(_0x143c37(0x1ba));}const {selected:_0x1d68d4}=await _0x18e4a0[_0x143c37(0x1b6)]([{'type':_0x1c52a8[_0x143c37(0x130)],'name':_0x143c37(0x1ac),'message':_0x143c37(0x124),'choices':_0x59b950['map'](_0x552a36=>({'name':_0x552a36[_0x143c37(0x11c)]+'\x20('+_0x552a36['id']+')','value':_0x552a36['id']}))}]);_0x1aa810=_0x59b950['find'](_0x1630c6=>_0x1630c6['id']===_0x1d68d4);}await _0x1c52a8['AEhcB'](setActiveFeatureId,_0x1aa810['id']);_0x5c8ceb&&_0x5c8ceb!==_0x1aa810['gitBranch']&&(await updateFeature(_0x1aa810['id'],{'gitBranch':_0x5c8ceb}),console[_0x143c37(0x17e)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x5c8ceb));console['log'](_0x143c37(0x156)+_0x1aa810[_0x143c37(0x11c)]+'\x20('+_0x1aa810['id']+')'),await tryStartCurrentSession(_0x1aa810['id']);const _0x3325e7=await getFeature(_0x1aa810['id']),_0x6a1933=process[_0x143c37(0x125)]['CLAUDE_SESSION_ID'];_0x6a1933&&_0x1c52a8[_0x143c37(0x1d2)](registerSession,_0x6a1933,_0x3325e7['id']),displayFeature(_0x3325e7,_0x3325e7['checklistItems']),await printFeedbackNudge(_0x3325e7['id']);}async function printFeedbackNudge(_0x1c5f23){const _0x38dfb5=_0x207aa7,_0x40c907={'vZiMV':function(_0x16075c,_0x19496d){return _0x16075c(_0x19496d);},'SFWAa':function(_0x44a12e,_0x4c745a){return _0x44a12e>_0x4c745a;}};try{const {items:_0x43ffba}=await _0x40c907[_0x38dfb5(0x1be)](getActionItems,_0x1c5f23);let _0x2bb414=0x0,_0x43798e=0x0;for(const _0xf3ffcc of _0x43ffba){const _0x13d2d6=await getItemFeedback(_0x1c5f23,_0xf3ffcc['id']);_0x40c907['SFWAa'](_0x13d2d6[_0x38dfb5(0x138)][_0x38dfb5(0x16c)],0x0)&&(_0x2bb414+=_0x13d2d6[_0x38dfb5(0x138)]['length'],_0x43798e++);}_0x2bb414>0x0&&(console[_0x38dfb5(0x17e)](_0x38dfb5(0x158)+_0x2bb414+_0x38dfb5(0x1cb)+_0x43798e+'\x20scenario(s).'),console['log'](_0x38dfb5(0x191)));}catch{}}function _0x2d3f(_0x26e7f6,_0x53626f){_0x26e7f6=_0x26e7f6-0x111;const _0x58fa4f=_0x58fa();let _0x2d3f0e=_0x58fa4f[_0x26e7f6];return _0x2d3f0e;}async function tryStartCurrentSession(_0x2f04ec){const _0x1dd5a0=_0x207aa7,_0x3a7084={'nVucn':function(_0x175ed0,_0xd5bffe){return _0x175ed0(_0xd5bffe);}};try{const {sessions:_0x85fbfa}=await _0x3a7084[_0x1dd5a0(0x1d8)](listFeatureSessions,_0x2f04ec),_0x1acefc=_0x85fbfa[_0x1dd5a0(0x1c5)](_0x1ad91a=>_0x1ad91a['status']===_0x1dd5a0(0x123));_0x1acefc&&(await startSession(_0x2f04ec,_0x1acefc['id']),console[_0x1dd5a0(0x17e)](_0x1dd5a0(0x12f)+_0x1acefc[_0x1dd5a0(0x197)]));}catch{}}export async function featureReport(_0x52decc,_0x3ea816){const _0x56924c=_0x207aa7,_0x267df1={'HKVEy':_0x56924c(0x1e3),'Eqddu':_0x56924c(0x170),'GWPly':function(_0x1f6011,_0x107ba4,_0x455903){return _0x1f6011(_0x107ba4,_0x455903);},'NYIXe':function(_0x574c4b,_0x35a63c,_0x1b85c4,_0x361695){return _0x574c4b(_0x35a63c,_0x1b85c4,_0x361695);},'SeJBf':_0x56924c(0x155)},_0x5e6d8a=_0x52decc||await getActiveFeatureId();if(!_0x5e6d8a)throw new Error(_0x267df1['HKVEy']);console[_0x56924c(0x17e)](_0x267df1['Eqddu']);const _0x493e93=await getFeatureReportMarkdown(_0x5e6d8a,{'style':_0x3ea816['style']}),_0xd31872=_0x3ea816['output']||join(getRangerDir(),'reports',_0x5e6d8a+_0x56924c(0x135)),_0x47af01=_0x267df1[_0x56924c(0x181)](join,_0xd31872,'..');!existsSync(_0x47af01)&&await _0x267df1['GWPly'](mkdir,_0x47af01,{'recursive':!![]}),await _0x267df1['NYIXe'](writeFile,_0xd31872,_0x493e93,_0x267df1[_0x56924c(0x150)]),console[_0x56924c(0x17e)](_0x56924c(0x1bc)+_0xd31872);}function getScenarioResult(_0x3acafe){const _0xa81352=_0x207aa7,_0x596e18={'wSScI':function(_0x1b0e29,_0x5c9f7f){return _0x1b0e29===_0x5c9f7f;},'gpqWz':'in_progress'};if(_0x596e18['wSScI'](_0x3acafe[_0xa81352(0x114)],_0xa81352(0x1ea)))return _0x3acafe['terminalReason']??'closed';if(_0x3acafe[_0xa81352(0x114)]==='verification_in_progress')return _0x596e18[_0xa81352(0x1e1)];return _0x3acafe[_0xa81352(0x114)];}function getScenarioRationale(_0x288e36,_0x1b54db){const _0x58f4d3=_0x207aa7,_0x50c4a3={'rdrNS':_0x58f4d3(0x169)},_0x4c3f1f=_0x50c4a3['rdrNS'][_0x58f4d3(0x1cd)]('|');let _0x4992bb=0x0;while(!![]){switch(_0x4c3f1f[_0x4992bb++]){case'0':if(_0x1b54db)return _0x1b54db;continue;case'1':if(_0x288e36['incompleteReason'])return _0x288e36['incompleteReason'];continue;case'2':if(_0x288e36[_0x58f4d3(0x18f)])return _0x288e36['notes'];continue;case'3':if(_0x288e36['blockedReason'])return _0x288e36['blockedReason'];continue;case'4':if(_0x288e36['canceledReason'])return _0x288e36[_0x58f4d3(0x1c3)];continue;case'5':return null;}break;}}export async function featureReportPrDescription(_0x367ecb,_0x7884c1){const _0x1ea83e=_0x207aa7,_0x1819c8={'DBWcw':function(_0x5f03cd){return _0x5f03cd();},'DTWMp':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','TSYUI':function(_0x4fe483,_0x3a2a28){return _0x4fe483(_0x3a2a28);},'iBoSf':function(_0x656ea,_0x3e3b56){return _0x656ea+_0x3e3b56;},'hlrUp':function(_0x113193,_0x2a7ac8){return _0x113193===_0x2a7ac8;}},_0x25258c=_0x367ecb||await _0x1819c8['DBWcw'](getActiveFeatureId);if(!_0x25258c)throw new Error(_0x1819c8[_0x1ea83e(0x164)]);const _0x5397f3=await _0x1819c8['TSYUI'](getFeature,_0x25258c),_0x145f20=_0x5397f3['checklistItems']||[],_0xae620=getCurrentSessionItems(_0x5397f3,_0x145f20);_0xae620[_0x1ea83e(0x16c)]===0x0&&(console['error'](_0x1ea83e(0x1aa)),process['exit'](0x1));const _0x39cb16=_0x7884c1[_0x1ea83e(0x1b3)]??[],_0x1987dc=_0x39cb16['filter'](_0x1b886a=>!Number[_0x1ea83e(0x1ae)](_0x1b886a)||_0x1b886a<0x1||_0x1b886a>_0xae620[_0x1ea83e(0x16c)]);if(_0x1987dc['length']>0x0){console[_0x1ea83e(0x152)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x1987dc[_0x1ea83e(0x16b)](',\x20')),console['log']('\x0aAvailable\x20scenarios:');for(let _0x3e8fd2=0x0;_0x3e8fd2<_0xae620['length'];_0x3e8fd2++){console['log']('\x20\x20'+_0x1819c8['iBoSf'](_0x3e8fd2,0x1)+'.\x20'+_0xae620[_0x3e8fd2][_0x1ea83e(0x1d9)]);}process[_0x1ea83e(0x127)](0x1);}const _0x4c80c3=new Set(_0x39cb16['map'](_0x2824c3=>_0x2824c3-0x1)),_0x2e3fc0=_0xae620['filter']((_0x14ee84,_0xdf10ba)=>!_0x4c80c3[_0x1ea83e(0x1d3)](_0xdf10ba));_0x1819c8[_0x1ea83e(0x189)](_0x2e3fc0[_0x1ea83e(0x16c)],0x0)&&(console[_0x1ea83e(0x152)](_0x1ea83e(0x1cc)),process[_0x1ea83e(0x127)](0x1));if(_0x7884c1['json'])await outputJsonReport(_0x25258c,_0x5397f3,_0x2e3fc0);else{const _0xf5308f=await getFeatureReportMarkdown(_0x25258c,{'itemIds':_0x2e3fc0['map'](_0x2ff8f2=>_0x2ff8f2['id'])});process['stdout']['write'](_0xf5308f[_0x1ea83e(0x186)]()+'\x0a');}}async function outputJsonReport(_0x22d040,_0x51f4b8,_0x3aa8cd){const _0x2812a9=_0x207aa7,_0x1c73e9={'NMrZi':function(_0x401da3,_0x1d9482){return _0x401da3(_0x1d9482);},'RQnNq':function(_0x1d7105,_0x3d2cb7){return _0x1d7105===_0x3d2cb7;},'ybFcw':function(_0x354d4a){return _0x354d4a();},'mtEAn':function(_0xd11d06,_0x1a1bce){return _0xd11d06+_0x1a1bce;}},_0x5b87c8=_0x1c73e9['ybFcw'](getApiBaseUrl),_0x4e0d6c=await _0x1c73e9[_0x2812a9(0x1df)](getFeatureReport,_0x22d040),_0x2334ee=new Map(_0x4e0d6c['checklistItems'][_0x2812a9(0x1bb)](_0x3cfb54=>[_0x3cfb54['id'],_0x3cfb54])),_0x19f55d=await Promise[_0x2812a9(0x17f)](_0x3aa8cd['map'](async _0x565e1b=>{const _0x239bee=_0x2812a9,_0x28b15e=_0x2334ee['get'](_0x565e1b['id']),_0x47aec0=_0x28b15e?.['linkedSession']??null;let _0xea38ee=[];if(_0x565e1b['browserSessionId'])try{const {steps:_0x5a0032}=await _0x1c73e9['NMrZi'](getBrowserSessionSteps,_0x565e1b['browserSessionId']);_0x5a0032['length']>0x0&&(_0xea38ee=_0x5a0032[_0x239bee(0x1bb)](_0x3c1a09=>{const _0x1c59ae=_0x239bee,_0x268d1a=_0x3c1a09['assets'][_0x1c59ae(0x1c5)](_0x4e4f3e=>_0x4e4f3e['assetType']==='screenshot'&&_0x4e4f3e['timing']===_0x1c59ae(0x12e))??_0x3c1a09[_0x1c59ae(0x141)][_0x1c59ae(0x1c5)](_0x46c799=>_0x46c799['assetType']==='screenshot');let _0x49b265=null,_0x4c60d3=null;if(_0x268d1a){const _0x351077=_0x268d1a[_0x1c59ae(0x1a1)][_0x1c59ae(0x13b)]['split']('/')[_0x1c59ae(0x194)]();_0x49b265=_0x5b87c8+'/api/v1/mcp/browser-sessions/'+_0x565e1b['browserSessionId']+'/artifacts/'+_0x351077,_0x351077&&(_0x4c60d3=_0x351077['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x1c59ae(0x1ee)](/[-_]/g,'\x20'));}return{'description':_0x4c60d3||_0x3c1a09[_0x1c59ae(0x1d9)]||_0x3c1a09[_0x1c59ae(0x1e5)]||'Step\x20'+_0x3c1a09[_0x1c59ae(0x176)],'screenshot':_0x49b265,'is_key_step':_0x3c1a09[_0x1c59ae(0x13f)]};}));}catch{}return _0x1c73e9[_0x239bee(0x154)](_0xea38ee['length'],0x0)&&_0x47aec0?.['screenshotUrls']&&(_0xea38ee=_0x47aec0[_0x239bee(0x1c7)]['map']((_0x15e47e,_0x44c9f6)=>({'description':_0x239bee(0x1a6)+(_0x44c9f6+0x1),'screenshot':_0x15e47e,'is_key_step':![]}))),{'description':_0x565e1b[_0x239bee(0x1d9)],'result':getScenarioResult(_0x565e1b),'rationale':getScenarioRationale(_0x565e1b,_0x47aec0?.[_0x239bee(0x1ad)]),'steps':_0xea38ee};})),_0x318020={'url':_0x51f4b8['dashboardUrl'],'scenarios':_0x19f55d};process['stdout'][_0x2812a9(0x180)](_0x1c73e9[_0x2812a9(0x1c0)](JSON['stringify'](_0x318020,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x41769d){const _0xfcb7c2=_0x207aa7,_0x3e7f7a={'wCeWK':_0xfcb7c2(0x19a),'iIrrY':'Current\x20session\x20not\x20found.','uPJMt':function(_0x117978,_0x2b968a){return _0x117978!==_0x2b968a;},'EWOTz':_0xfcb7c2(0x163),'kAnAG':function(_0x16f64a,_0x126684,_0x1e738e){return _0x16f64a(_0x126684,_0x1e738e);}},_0x17c244=_0x41769d||await getActiveFeatureId();if(!_0x17c244)throw new Error(_0x3e7f7a[_0xfcb7c2(0x172)]);const _0x257d81=await getFeature(_0x17c244);if(!_0x257d81[_0xfcb7c2(0x149)])throw new Error(_0xfcb7c2(0x1b0));const {sessions:_0x4cab62}=await listFeatureSessions(_0x17c244),_0x52c7ee=_0x4cab62[_0xfcb7c2(0x1c5)](_0x344aa9=>_0x344aa9['id']===_0x257d81['currentSessionId']);if(!_0x52c7ee)throw new Error(_0x3e7f7a['iIrrY']);if(_0x52c7ee[_0xfcb7c2(0x114)]===_0xfcb7c2(0x132)){console['log'](_0xfcb7c2(0x1ca));return;}if(_0x3e7f7a['uPJMt'](_0x52c7ee['status'],_0x3e7f7a[_0xfcb7c2(0x142)]))throw new Error(_0xfcb7c2(0x1a8)+_0x52c7ee[_0xfcb7c2(0x114)]);console[_0xfcb7c2(0x17e)]('\x0aConcluding\x20session...'),await _0x3e7f7a[_0xfcb7c2(0x193)](concludeSession,_0x17c244,_0x257d81['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x52c7ee[_0xfcb7c2(0x197)]+_0xfcb7c2(0x179)),console[_0xfcb7c2(0x17e)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x412121){const _0x28dec9=_0x207aa7,_0x46687d={'FCVFR':function(_0x5ccb89){return _0x5ccb89();},'tbGeJ':function(_0x1f5566,_0xdb40ce){return _0x1f5566(_0xdb40ce);},'JPjCS':'No\x20sessions\x20found.','tGuGz':function(_0x196c21,_0x23a291){return _0x196c21===_0x23a291;},'Bfvuq':_0x28dec9(0x132)},_0x565170=_0x412121||await _0x46687d['FCVFR'](getActiveFeatureId);if(!_0x565170)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x3fc110=await getFeature(_0x565170);console[_0x28dec9(0x17e)](_0x28dec9(0x187)+_0x3fc110[_0x28dec9(0x11c)]+'\x0a');const {sessions:_0x543a99}=await _0x46687d['tbGeJ'](listFeatureSessions,_0x565170);if(_0x543a99['length']===0x0){console[_0x28dec9(0x17e)](_0x46687d['JPjCS']);return;}for(const _0x15a7d2 of _0x543a99){const _0x1c267b=_0x46687d['tGuGz'](_0x15a7d2['status'],_0x46687d['Bfvuq'])?'✅':_0x15a7d2[_0x28dec9(0x114)]===_0x28dec9(0x163)?'🔄':'▶️';console[_0x28dec9(0x17e)](_0x1c267b+_0x28dec9(0x11f)+_0x15a7d2[_0x28dec9(0x197)]+'\x20('+_0x15a7d2['id']+')'),console[_0x28dec9(0x17e)](_0x28dec9(0x196)+_0x15a7d2['status']),console[_0x28dec9(0x17e)](_0x28dec9(0x16f)+new Date(_0x15a7d2[_0x28dec9(0x144)])['toLocaleString']()),_0x15a7d2[_0x28dec9(0x116)]&&console[_0x28dec9(0x17e)]('\x20\x20\x20Completed:\x20'+new Date(_0x15a7d2['completedAt'])[_0x28dec9(0x17a)]()),console['log']('');}}export async function featureAddScenario(_0x33a9d2,_0x2278b1){const _0x2c1b1e=_0x207aa7,_0x4ad941={'PpSxY':function(_0x48fdda){return _0x48fdda();},'RGaAj':function(_0x55f526,_0x1d1ce1){return _0x55f526(_0x1d1ce1);},'WwMyk':function(_0x3ca00f,_0x3e4eb4,_0x4b32a3){return _0x3ca00f(_0x3e4eb4,_0x4b32a3);}},_0x348957=_0x2278b1||await _0x4ad941[_0x2c1b1e(0x168)](getActiveFeatureId);if(!_0x348957)throw new Error(_0x2c1b1e(0x19a));const _0x4d2345=await _0x4ad941[_0x2c1b1e(0x1c1)](getFeature,_0x348957);if(_0x4d2345['latestReview']&&!_0x4d2345[_0x2c1b1e(0x16d)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x4d2345['dashboardUrl']);await _0x4ad941['WwMyk'](createChecklistItem,_0x348957,_0x33a9d2);const _0x2c191f=await getFeature(_0x348957);console[_0x2c1b1e(0x17e)](_0x2c1b1e(0x165)),displayFeature(_0x2c191f,_0x2c191f['checklistItems']);}export async function featureEditScenario(_0x303b3c,_0x4c3341){const _0x3cd2b9=_0x207aa7,_0x597c57={'uNrdR':function(_0x427df7){return _0x427df7();},'RgqGJ':_0x3cd2b9(0x1dc),'kMGGG':function(_0x443a93,_0x116048){return _0x443a93(_0x116048);},'QvlrW':_0x3cd2b9(0x177),'xtSLG':function(_0x280280,_0x4efb13){return _0x280280===_0x4efb13;},'mDsrd':_0x3cd2b9(0x1a3),'PHYKt':function(_0x5bed3a,_0x1c029d){return _0x5bed3a-_0x1c029d;},'cVMXY':'\x0aAvailable\x20scenarios:','sfwAW':function(_0x20d45b,_0x3f7228){return _0x20d45b<_0x3f7228;},'DjlhP':function(_0x369c2a,_0x1fad91,_0x48ac5c){return _0x369c2a(_0x1fad91,_0x48ac5c);}},_0x131449=_0x4c3341['id']||await _0x597c57['uNrdR'](getActiveFeatureId);!_0x131449&&(console['error'](_0x597c57[_0x3cd2b9(0x162)]),console['error'](_0x3cd2b9(0x12d)),process['exit'](0x1));const _0x380213=await _0x597c57[_0x3cd2b9(0x119)](getFeature,_0x131449);_0x380213['latestReview']&&!_0x380213['latestReview']['submittedAt']&&(console[_0x3cd2b9(0x152)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x3cd2b9(0x152)](_0x3cd2b9(0x148)),console[_0x3cd2b9(0x152)]('\x20\x20'+_0x380213['dashboardUrl']),process['exit'](0x1));const _0x17ff47=_0x380213[_0x3cd2b9(0x12b)]||[];_0x17ff47['length']===0x0&&(console['error'](_0x597c57[_0x3cd2b9(0x14f)]),process['exit'](0x1));if(_0x597c57[_0x3cd2b9(0x1b1)](_0x4c3341['scenario'],undefined)){console[_0x3cd2b9(0x152)](_0x597c57['mDsrd']),console['log']('\x0aAvailable\x20scenarios:');for(let _0x5ce928=0x0;_0x5ce928<_0x17ff47['length'];_0x5ce928++){console['log']('\x20\x20'+(_0x5ce928+0x1)+'.\x20'+_0x17ff47[_0x5ce928][_0x3cd2b9(0x1d9)]);}process['exit'](0x1);}const _0x485fb9=_0x597c57[_0x3cd2b9(0x112)](_0x4c3341[_0x3cd2b9(0x122)],0x1);if(_0x485fb9<0x0||_0x485fb9>=_0x17ff47['length']){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x4c3341['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x17ff47[_0x3cd2b9(0x16c)]+'\x20scenarios.'),console['log'](_0x597c57[_0x3cd2b9(0x15b)]);for(let _0x478a08=0x0;_0x597c57['sfwAW'](_0x478a08,_0x17ff47[_0x3cd2b9(0x16c)]);_0x478a08++){console[_0x3cd2b9(0x17e)]('\x20\x20'+(_0x478a08+0x1)+'.\x20'+_0x17ff47[_0x478a08][_0x3cd2b9(0x1d9)]);}process[_0x3cd2b9(0x127)](0x1);}const _0x21e35b=_0x17ff47[_0x485fb9];await updateChecklistItem(_0x131449,_0x21e35b['id'],{'description':_0x303b3c});const _0x5f2158=await getFeature(_0x131449);console['log']('\x0a✅\x20Scenario\x20updated'),_0x597c57['DjlhP'](displayFeature,_0x5f2158,_0x5f2158[_0x3cd2b9(0x12b)]);}async function downloadFeedbackImage(_0x375422,_0x5e1150){const _0x3fa410=_0x207aa7,_0x3a65c2={'UsMES':function(_0x3178ec,_0x2ba147,_0x2b02a5){return _0x3178ec(_0x2ba147,_0x2b02a5);},'TqeWj':'feedback-images','uhUlR':function(_0x5b984b,_0x41b0fd){return _0x5b984b(_0x41b0fd);}};try{const _0x18d463=_0x3a65c2[_0x3fa410(0x175)](join,getRangerDir(),_0x3a65c2[_0x3fa410(0x1a7)]);await mkdir(_0x18d463,{'recursive':!![]});const _0x2337a1=join(_0x18d463,'comment_'+_0x5e1150+_0x3fa410(0x14d)),_0x5cfa07=await _0x3a65c2['uhUlR'](fetch,_0x375422);if(!_0x5cfa07['ok'])return null;const _0x376568=Buffer[_0x3fa410(0x18e)](await _0x5cfa07[_0x3fa410(0x18b)]());return await _0x3a65c2[_0x3fa410(0x175)](writeFile,_0x2337a1,_0x376568),_0x2337a1;}catch{return null;}}export async function featureGetReview(_0x7ae2eb){const _0x5ea8c5=_0x207aa7,_0x24da2a={'ydlcU':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','RUDFz':function(_0x153421,_0x5a794c){return _0x153421(_0x5a794c);},'GimMf':function(_0x389275,_0x1a8e58){return _0x389275===_0x1a8e58;},'leRNa':'No\x20scenarios\x20found.','smwVv':function(_0x40a8dc,_0x37824f){return _0x40a8dc>_0x37824f;},'RgbnK':function(_0x4b238d,_0x4d55d7){return _0x4b238d+_0x4d55d7;},'TJUdc':'numeric','DONYR':function(_0x269259,_0x5b1928,_0x3f6783){return _0x269259(_0x5b1928,_0x3f6783);},'GRLyT':function(_0x519180,_0x10e531){return _0x519180===_0x10e531;},'OVECY':_0x5ea8c5(0x13c)},_0x2b0d82=_0x7ae2eb||await getActiveFeatureId();if(!_0x2b0d82)throw new Error(_0x24da2a['ydlcU']);const _0xc79201=await getFeature(_0x2b0d82),{items:_0x4b85d5}=await _0x24da2a[_0x5ea8c5(0x118)](getActionItems,_0x2b0d82);console['log'](_0x5ea8c5(0x173)+_0xc79201['name']+'\x20('+_0xc79201['id']+')\x0a');if(_0x24da2a[_0x5ea8c5(0x131)](_0x4b85d5['length'],0x0)){console[_0x5ea8c5(0x17e)](_0x24da2a['leRNa']);return;}for(let _0x5fe6a4=0x0;_0x5fe6a4<_0x4b85d5['length'];_0x5fe6a4++){const _0x53b389=_0x4b85d5[_0x5fe6a4],_0x2492c4=_0x24da2a[_0x5ea8c5(0x146)](_0x53b389['version'],0x1)?_0x5ea8c5(0x190)+_0x53b389['version']+')':'',_0x53f9b8=await getItemFeedback(_0x2b0d82,_0x53b389['id']);if(_0x53f9b8[_0x5ea8c5(0x138)][_0x5ea8c5(0x16c)]>0x0){console[_0x5ea8c5(0x17e)](_0x5ea8c5(0x11b)+_0x24da2a[_0x5ea8c5(0x1b5)](_0x5fe6a4,0x1)+':\x20\x22'+_0x53b389[_0x5ea8c5(0x1d9)]+'\x22'+_0x2492c4+'\x20—\x20'+_0x53f9b8['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x3963d9 of _0x53f9b8[_0x5ea8c5(0x138)]){const _0x5317a5=new Date(_0x3963d9['createdAt'])['toLocaleDateString'](_0x5ea8c5(0x188),{'month':_0x5ea8c5(0x1e7),'day':_0x24da2a[_0x5ea8c5(0x1d7)]}),_0x7a0667=_0x3963d9[_0x5ea8c5(0x159)]||_0x3963d9['authorEmail']||'Unknown';console[_0x5ea8c5(0x17e)](_0x5ea8c5(0x1d5)+_0x7a0667+'\x20('+_0x5317a5+'):\x20\x22'+_0x3963d9['content']+'\x22');if(_0x3963d9['assetUrl']){const _0x281220=await _0x24da2a['DONYR'](downloadFeedbackImage,_0x3963d9['assetUrl'],_0x3963d9['id']);_0x281220&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x281220);}if(_0x3963d9['domRef']){const _0x2b4b1a=_0x3963d9[_0x5ea8c5(0x1cf)][_0x5ea8c5(0x1b4)][_0x5ea8c5(0x1cd)]('\x20>\x20')[_0x5ea8c5(0x194)]()?.['split'](':')[0x0]||'element',_0x2bf386=_0x3963d9[_0x5ea8c5(0x1cf)][_0x5ea8c5(0x19e)]?'\x20\x22'+_0x3963d9[_0x5ea8c5(0x1cf)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x2b4b1a+'>'+_0x2bf386),console[_0x5ea8c5(0x17e)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3963d9['domRef']['selector']);}else{if(_0x3963d9[_0x5ea8c5(0x12c)]){const _0x2cf3c0=_0x3963d9[_0x5ea8c5(0x12c)]['coordinates'];_0x24da2a[_0x5ea8c5(0x184)](_0x3963d9['spatial']['type'],_0x24da2a[_0x5ea8c5(0x1da)])&&_0x2cf3c0[_0x5ea8c5(0x16c)]>=0x2?console[_0x5ea8c5(0x17e)](_0x5ea8c5(0x166)+_0x2cf3c0[0x0]['toFixed'](0x2)+',\x20'+_0x2cf3c0[0x1][_0x5ea8c5(0x1d1)](0x2)+')'):console[_0x5ea8c5(0x17e)](_0x5ea8c5(0x145)+_0x3963d9[_0x5ea8c5(0x12c)]['type']+'\x20at\x20['+_0x2cf3c0['map'](_0x4985ec=>_0x4985ec['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x53f9b8['canonicalFlow']){console['log'](_0x5ea8c5(0x111));for(const _0xaa8c1e of _0x53f9b8[_0x5ea8c5(0x126)]['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0xaa8c1e);}}}else console['log'](_0x5ea8c5(0x11b)+_0x24da2a['RgbnK'](_0x5fe6a4,0x1)+':\x20\x22'+_0x53b389['description']+'\x22'+_0x2492c4+'\x20—\x20no\x20comments'),console[_0x5ea8c5(0x17e)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0xa6bee1){const _0x5e3e7a=_0x207aa7,_0x231480={'JqAQd':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','GIdpl':function(_0x5d1d74,_0x33e18d){return _0x5d1d74(_0x33e18d);}},_0x5867d4=_0xa6bee1||await getActiveFeatureId();if(!_0x5867d4)throw new Error(_0x231480[_0x5e3e7a(0x1e4)]);const _0x306b8a=await getFeature(_0x5867d4);await _0x231480[_0x5e3e7a(0x117)](softDeleteFeature,_0x5867d4),console['log'](_0x5e3e7a(0x18d)+_0x306b8a[_0x5e3e7a(0x11c)]+'\x20('+_0x5867d4+')'),console[_0x5e3e7a(0x17e)]('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x5867d4);}export async function featureRestore(_0x395894){const _0x2dd99b=_0x207aa7,_0x5b282f={'jXQir':function(_0x425ab5,_0x38bd39){return _0x425ab5(_0x38bd39);}};await restoreFeature(_0x395894);const _0x84bcb4=await _0x5b282f[_0x2dd99b(0x198)](getFeature,_0x395894);console[_0x2dd99b(0x17e)](_0x2dd99b(0x1b2)+_0x84bcb4['name']+'\x20('+_0x395894+')'),displayFeature(_0x84bcb4,_0x84bcb4['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x246b(){const _0x1ab559=['973008KsDWSY','join','153NHXwGh','SIGINT','250448wDkHJQ','744540WjeQPx','error','505845huZgTb','561568nnYEEf','94004IHwItX','345072MILkaW','8RrlrkP','keys','Valid\x20hooks:\x20','once'];_0x246b=function(){return _0x1ab559;};return _0x246b();}(function(_0x562adb,_0x58ca41){const _0x12c2fc=_0x2adf,_0x4296bd=_0x562adb();while(!![]){try{const _0x49d7bf=parseInt(_0x12c2fc(0xce))/0x1+-parseInt(_0x12c2fc(0xd4))/0x2+-parseInt(_0x12c2fc(0xcf))/0x3+parseInt(_0x12c2fc(0xd0))/0x4*(parseInt(_0x12c2fc(0xcc))/0x5)+parseInt(_0x12c2fc(0xd9))/0x6+-parseInt(_0x12c2fc(0xcd))/0x7+parseInt(_0x12c2fc(0xd8))/0x8*(parseInt(_0x12c2fc(0xd6))/0x9);if(_0x49d7bf===_0x58ca41)break;else _0x4296bd['push'](_0x4296bd['shift']());}catch(_0x404f67){_0x4296bd['push'](_0x4296bd['shift']());}}}(_0x246b,0x42222));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 _0x4b73e0=_0x2adf;if(cancellationHandlersInstalled)return;const _0x1f6dbc=()=>{process['exit'](0x0);};process[_0x4b73e0(0xd3)](_0x4b73e0(0xd7),_0x1f6dbc),process[_0x4b73e0(0xd3)]('SIGTERM',_0x1f6dbc),process[_0x4b73e0(0xd3)]('SIGHUP',_0x1f6dbc),cancellationHandlersInstalled=!![];}function _0x2adf(_0x18d750,_0x122034){_0x18d750=_0x18d750-0xcc;const _0x246b12=_0x246b();let _0x2adfd3=_0x246b12[_0x18d750];return _0x2adfd3;}export async function hook(_0x3ba072,_0x2efb2c){const _0x32ab7e=_0x2adf,_0x5dcee3={'KRjaI':function(_0x1dd8ab){return _0x1dd8ab();},'mVEWA':function(_0x1eab70,_0x5cf9ba){return _0x1eab70(_0x5cf9ba);}};_0x5dcee3['KRjaI'](installCancellationHandlers);const _0x430d97=HOOKS[_0x3ba072];if(!_0x430d97){const _0x4fe909=Object[_0x32ab7e(0xd1)](HOOKS)[_0x32ab7e(0xd5)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x3ba072),console[_0x32ab7e(0xda)](_0x32ab7e(0xd2)+_0x4fe909),process['exit'](0x1);}await _0x5dcee3['mVEWA'](_0x430d97,_0x2efb2c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x1cf9d8=_0x2e25;(function(_0x5427de,_0x47c801){const _0x3e99de=_0x2e25,_0x37e20b=_0x5427de();while(!![]){try{const _0x363b46=-parseInt(_0x3e99de(0x154))/0x1*(parseInt(_0x3e99de(0x15e))/0x2)+-parseInt(_0x3e99de(0x15a))/0x3*(-parseInt(_0x3e99de(0x15b))/0x4)+-parseInt(_0x3e99de(0x155))/0x5+-parseInt(_0x3e99de(0x15d))/0x6+-parseInt(_0x3e99de(0x15c))/0x7+-parseInt(_0x3e99de(0x158))/0x8+parseInt(_0x3e99de(0x159))/0x9;if(_0x363b46===_0x47c801)break;else _0x37e20b['push'](_0x37e20b['shift']());}catch(_0x1fa465){_0x37e20b['push'](_0x37e20b['shift']());}}}(_0x6bee,0x504fa));function _0x2e25(_0x52f8b0,_0xbfb363){_0x52f8b0=_0x52f8b0-0x154;const _0x6bee4=_0x6bee();let _0x2e25f7=_0x6bee4[_0x52f8b0];return _0x2e25f7;}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x1cf9d8(0x157);function _0x6bee(){const _0x436d81=['2778447YyQWjx','679524krPYQS','15688bddKyF','gOdcu','mNXWS','18tffPxH','380450RqqHpU','log','\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.','4900736exaVJa','11979504TbfXZO','9LDNvEs','450596OnftyE'];_0x6bee=function(){return _0x436d81;};return _0x6bee();}export async function autoPrompt(){const _0x3d3756=_0x1cf9d8,_0x1c4491={'rRgIn':'off','gOdcu':function(_0xd1189d){return _0xd1189d();},'mNXWS':function(_0x32955b,_0xd798c3){return _0x32955b(_0xd798c3);}};if(resolveHookMode()===_0x1c4491['rRgIn'])return;const _0x84d9e8=await _0x1c4491[_0x3d3756(0x15f)](readHookInput),_0x4936d3=_0x84d9e8?.['session_id'];if(!_0x4936d3)return;if(_0x1c4491['mNXWS'](isSessionEnabled,_0x4936d3)||_0x1c4491[_0x3d3756(0x160)](hasSessionBeenPrompted,_0x4936d3))return;_0x1c4491['mNXWS'](markSessionPrompted,_0x4936d3),console[_0x3d3756(0x156)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4177(_0xe0c6a1,_0x387d03){_0xe0c6a1=_0xe0c6a1-0x90;const _0x54df33=_0x54df();let _0x417758=_0x54df33[_0xe0c6a1];return _0x417758;}(function(_0x5270a7,_0x3cf776){const _0x32ecde=_0x4177,_0x5f2760=_0x5270a7();while(!![]){try{const _0x5d849e=-parseInt(_0x32ecde(0x92))/0x1+-parseInt(_0x32ecde(0x95))/0x2*(parseInt(_0x32ecde(0x98))/0x3)+parseInt(_0x32ecde(0x9a))/0x4+parseInt(_0x32ecde(0x96))/0x5+parseInt(_0x32ecde(0x94))/0x6+parseInt(_0x32ecde(0x9c))/0x7*(parseInt(_0x32ecde(0x97))/0x8)+-parseInt(_0x32ecde(0x91))/0x9;if(_0x5d849e===_0x3cf776)break;else _0x5f2760['push'](_0x5f2760['shift']());}catch(_0x1ab21c){_0x5f2760['push'](_0x5f2760['shift']());}}}(_0x54df,0x9f796));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x2a79e5){const _0x373cd2=_0x4177,_0x31dc87={'Lxwmi':function(_0x163185,_0xf9bac0){return _0x163185(_0xf9bac0);},'EUuJg':function(_0x43206c){return _0x43206c();},'wymHs':_0x373cd2(0x9b),'URYCo':'master','abkpz':function(_0x2864db,_0x4d7966){return _0x2864db(_0x4d7966);}},_0x4ac335=_0x2a79e5||process['env']['CLAUDE_SESSION_ID']||'';_0x4ac335&&_0x31dc87['Lxwmi'](disableSession,_0x4ac335);const _0x998d0=_0x31dc87[_0x373cd2(0x99)](getCurrentBranch);_0x998d0&&_0x998d0!==_0x31dc87[_0x373cd2(0x93)]&&_0x998d0!==_0x31dc87['URYCo']&&disableBranch(_0x998d0),_0x31dc87['abkpz'](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x998d0&&_0x998d0!==_0x373cd2(0x9b)&&_0x998d0!=='master'?'\x20and\x20branch\x20\x27'+_0x998d0+'\x27':'')+_0x373cd2(0x90));}function _0x54df(){const _0x28e5c0=['2657364kQYgBl','65290EOdkDQ','3445225pDGsrH','336928mcPuwc','33CybNWb','EUuJg','4043180Fmzhhl','main','56nKCarH','.\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`.','1859904YFKdqX','1260705KQDFxR','wymHs'];_0x54df=function(){return _0x28e5c0;};return _0x54df();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1dc1a6,_0x1dc5a8){const _0x56cb10=_0x36a9,_0x379097=_0x1dc1a6();while(!![]){try{const _0x51955e=parseInt(_0x56cb10(0x1b9))/0x1*(-parseInt(_0x56cb10(0x1b1))/0x2)+parseInt(_0x56cb10(0x1b4))/0x3*(-parseInt(_0x56cb10(0x1a7))/0x4)+parseInt(_0x56cb10(0x1ba))/0x5*(parseInt(_0x56cb10(0x1b3))/0x6)+parseInt(_0x56cb10(0x1b6))/0x7*(-parseInt(_0x56cb10(0x1a6))/0x8)+-parseInt(_0x56cb10(0x1ae))/0x9*(parseInt(_0x56cb10(0x1a4))/0xa)+-parseInt(_0x56cb10(0x1aa))/0xb*(parseInt(_0x56cb10(0x1ab))/0xc)+parseInt(_0x56cb10(0x1a5))/0xd;if(_0x51955e===_0x1dc5a8)break;else _0x379097['push'](_0x379097['shift']());}catch(_0x276ca8){_0x379097['push'](_0x379097['shift']());}}}(_0x533e,0xe6370));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x36a9(_0x2dd30d,_0x466004){_0x2dd30d=_0x2dd30d-0x1a2;const _0x533ec1=_0x533e();let _0x36a9dd=_0x533ec1[_0x2dd30d];return _0x36a9dd;}function _0x533e(){const _0x181f64=['5964ejuOJv','qpZEO','\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`.','185790umqeoC','888qifZMl','\x0a\x0a**Branch\x20\x27','HilRG','1737WRyScF','env','#\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`','678gyBdrw','ranger\x20setup','12FeOhJJ','3459KGBPsU','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','11109798qynkZi','DHwBf','ranger\x20setup\x20--opencode','4783mXhxOi','2925930IzWECc','MsfED','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','95250vCYyrk','101249811EdvGRk','8pjzbLK'];_0x533e=function(){return _0x181f64;};return _0x533e();}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x187061){const _0x55ecef=_0x36a9,_0x5f564b={'qpZEO':function(_0x112400,_0x33a78c){return _0x112400(_0x33a78c);},'GjUSl':_0x55ecef(0x1b2),'HilRG':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','KCQqv':'main','MsfED':function(_0x3b860b,_0x469688){return _0x3b860b!==_0x469688;},'DHwBf':'master','nmisR':function(_0x15a400){return _0x15a400();}},_0x196e36=_0x187061||process[_0x55ecef(0x1af)]['CLAUDE_SESSION_ID']||'',_0x25fbf3=_0x5f564b[_0x55ecef(0x1a8)](Boolean,_0x187061),_0x15088a=await getToken();if(!_0x15088a){const _0x39ad61=_0x25fbf3?_0x55ecef(0x1b8):_0x5f564b['GjUSl'],_0x3b9ebc=_0x25fbf3?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x5f564b[_0x55ecef(0x1ad)];_0x5f564b[_0x55ecef(0x1a8)](printBlock,_0x55ecef(0x1b0)+_0x39ad61+_0x55ecef(0x1a3)+_0x3b9ebc);return;}try{await update();}catch{}_0x196e36&&enableSession(_0x196e36);const _0x19c993=getCurrentBranch(),_0xb2dae7=_0x19c993&&_0x19c993!==_0x5f564b['KCQqv']&&_0x5f564b[_0x55ecef(0x1a2)](_0x19c993,_0x5f564b[_0x55ecef(0x1b7)])?_0x55ecef(0x1ac)+_0x19c993+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x52e411=_0x5f564b['nmisR'](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0xb2dae7+_0x55ecef(0x1b5)+_0x52e411+_0x55ecef(0x1a9));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2f56(_0x5ce305,_0x489e20){_0x5ce305=_0x5ce305-0x15d;const _0x5917cb=_0x5917();let _0x2f560a=_0x5917cb[_0x5ce305];return _0x2f560a;}(function(_0x405266,_0xfb2d54){const _0x23b19f=_0x2f56,_0x593d47=_0x405266();while(!![]){try{const _0x1a34ea=parseInt(_0x23b19f(0x163))/0x1+-parseInt(_0x23b19f(0x161))/0x2+-parseInt(_0x23b19f(0x162))/0x3+parseInt(_0x23b19f(0x15d))/0x4*(parseInt(_0x23b19f(0x15e))/0x5)+-parseInt(_0x23b19f(0x15f))/0x6*(-parseInt(_0x23b19f(0x165))/0x7)+-parseInt(_0x23b19f(0x164))/0x8+parseInt(_0x23b19f(0x160))/0x9;if(_0x1a34ea===_0xfb2d54)break;else _0x593d47['push'](_0x593d47['shift']());}catch(_0x1d0b51){_0x593d47['push'](_0x593d47['shift']());}}}(_0x5917,0xc15f6));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x3a547f){const _0x253c25={'jNasF':function(_0x4a0b70,_0x3fc792){return _0x4a0b70(_0x3fc792);}},_0x3c1105=await getEnabledSessionId(_0x3a547f);if(!_0x3c1105)return;_0x253c25['jNasF'](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}function _0x5917(){const _0x2c779f=['9135472PinDHJ','570094FyjLsz','1287180keQcea','20MGREaH','24FrZlct','10642959jzuAMb','379362SMPwuk','2770167OTJPFQ','251559zKoeZB'];_0x5917=function(){return _0x2c779f;};return _0x5917();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ef10b,_0x303505){var _0x3f0eb7=_0x13c6,_0x4f9dc6=_0x5ef10b();while(!![]){try{var _0x112bd6=-parseInt(_0x3f0eb7(0x95))/0x1*(parseInt(_0x3f0eb7(0x97))/0x2)+-parseInt(_0x3f0eb7(0xa0))/0x3*(parseInt(_0x3f0eb7(0x9f))/0x4)+parseInt(_0x3f0eb7(0x98))/0x5*(parseInt(_0x3f0eb7(0x9d))/0x6)+-parseInt(_0x3f0eb7(0x9a))/0x7+parseInt(_0x3f0eb7(0x99))/0x8*(-parseInt(_0x3f0eb7(0x94))/0x9)+-parseInt(_0x3f0eb7(0x96))/0xa*(parseInt(_0x3f0eb7(0x9b))/0xb)+parseInt(_0x3f0eb7(0x9c))/0xc*(parseInt(_0x3f0eb7(0x9e))/0xd);if(_0x112bd6===_0x303505)break;else _0x4f9dc6['push'](_0x4f9dc6['shift']());}catch(_0x2b54d6){_0x4f9dc6['push'](_0x4f9dc6['shift']());}}}(_0x1f84,0x6f7d6));function _0x1f84(){var _0x32cc26=['428597wqAAWn','30vupMup','2xFMpMU','1757725WPBySM','8aKeOmZ','3003952lYmdJm','1094973oNcCOh','24ATQJNE','12XFLgkm','15486445aOmSmH','40kfsyJt','205296yFGNtO','7094484DvbwvL'];_0x1f84=function(){return _0x32cc26;};return _0x1f84();}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x13c6(_0x37a54b,_0x4d0240){_0x37a54b=_0x37a54b-0x94;var _0x1f8431=_0x1f84();var _0x13c64d=_0x1f8431[_0x37a54b];return _0x13c64d;}export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x354d64,_0x3866f1){const _0x16b514=_0x5768,_0x4eb894=_0x354d64();while(!![]){try{const _0x27203=parseInt(_0x16b514(0x101))/0x1*(parseInt(_0x16b514(0x108))/0x2)+parseInt(_0x16b514(0x102))/0x3+parseInt(_0x16b514(0x106))/0x4*(-parseInt(_0x16b514(0xff))/0x5)+parseInt(_0x16b514(0x104))/0x6*(-parseInt(_0x16b514(0x100))/0x7)+-parseInt(_0x16b514(0x107))/0x8+parseInt(_0x16b514(0x10d))/0x9*(parseInt(_0x16b514(0x10b))/0xa)+parseInt(_0x16b514(0x103))/0xb;if(_0x27203===_0x3866f1)break;else _0x4eb894['push'](_0x4eb894['shift']());}catch(_0x22cd05){_0x4eb894['push'](_0x4eb894['shift']());}}}(_0x2c62,0xd85b7));function _0x2c62(){const _0xdb8de3=['2262430XYTnFz','log','18UbIJPv','trim','118760ZmdIuq','5761kmmksP','162117OjGscj','4930431hIZaPn','10178542gXYcEt','5058kNEUvS','session_id','172jZpFNT','7250496xIsJXn','6IHSicK','TDMHd','SffIF'];_0x2c62=function(){return _0xdb8de3;};return _0x2c62();}function _0x5768(_0x3aad6e,_0x25474c){_0x3aad6e=_0x3aad6e-0xfe;const _0x2c62aa=_0x2c62();let _0x57686b=_0x2c62aa[_0x3aad6e];return _0x57686b;}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x40918a){const _0x10a3e0=_0x5768;console[_0x10a3e0(0x10c)](_0x40918a);}export async function readHookInput(){const _0x273efe=_0x5768;let _0x5e1c4d='';try{for await(const _0x22a281 of process['stdin']){_0x5e1c4d+=_0x22a281;}}catch{return null;}if(!_0x5e1c4d[_0x273efe(0xfe)]())return null;try{return JSON['parse'](_0x5e1c4d);}catch{return null;}}export async function getEnabledSessionId(_0x258b4b){const _0x2a803e=_0x5768,_0x8a34bb={'SffIF':function(_0x32dab8,_0x17d927){return _0x32dab8(_0x17d927);},'mMqHG':function(_0x6c32ee){return _0x6c32ee();}};if(_0x258b4b)return _0x8a34bb[_0x2a803e(0x10a)](isSessionEnabled,_0x258b4b)?_0x258b4b:null;const _0x317c08=await _0x8a34bb['mMqHG'](readHookInput),_0x5c589e=_0x317c08?.['session_id'];if(!_0x5c589e||!isSessionEnabled(_0x5c589e))return null;return _0x5c589e;}export async function getEnabledHookContext(_0x28be8d){const _0x433760=_0x5768,_0x5dcb4={'TDMHd':function(_0x1989ad,_0x2e328a){return _0x1989ad(_0x2e328a);}};if(_0x28be8d){if(!_0x5dcb4[_0x433760(0x109)](isSessionEnabled,_0x28be8d))return null;return{'sessionId':_0x28be8d,'input':{'session_id':_0x28be8d}};}const _0x1ebf49=await readHookInput(),_0x63cad7=_0x1ebf49?.[_0x433760(0x105)];if(!_0x63cad7||!isSessionEnabled(_0x63cad7))return null;return{'sessionId':_0x63cad7,'input':_0x1ebf49};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1af1(_0x4d95aa,_0x54e985){_0x4d95aa=_0x4d95aa-0x15e;const _0x4c0987=_0x4c09();let _0x1af190=_0x4c0987[_0x4d95aa];return _0x1af190;}function _0x4c09(){const _0x1f0a64=['2016zYjPCS','6QgFaYQ','72PAiHKV','692825wKIrhB','569104SSINkD','plan','3zHRJEm','permission_mode','HxBfE','1003670MEbnUm','8082OHBKXo','8387hBrTLc','58709SxTDtw','5544990xscpJz'];_0x4c09=function(){return _0x1f0a64;};return _0x4c09();}(function(_0xc1a2bd,_0x469793){const _0x34cba7=_0x1af1,_0x137ed0=_0xc1a2bd();while(!![]){try{const _0x5d46ab=-parseInt(_0x34cba7(0x164))/0x1*(-parseInt(_0x34cba7(0x168))/0x2)+-parseInt(_0x34cba7(0x15f))/0x3*(-parseInt(_0x34cba7(0x16b))/0x4)+parseInt(_0x34cba7(0x16a))/0x5+-parseInt(_0x34cba7(0x169))/0x6*(-parseInt(_0x34cba7(0x165))/0x7)+-parseInt(_0x34cba7(0x167))/0x8*(-parseInt(_0x34cba7(0x163))/0x9)+parseInt(_0x34cba7(0x162))/0xa+-parseInt(_0x34cba7(0x166))/0xb;if(_0x5d46ab===_0x469793)break;else _0x137ed0['push'](_0x137ed0['shift']());}catch(_0x938069){_0x137ed0['push'](_0x137ed0['shift']());}}}(_0x4c09,0x37f63));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0xa97461){const _0x5b36ca=_0x1af1,_0x82f748={'HxBfE':function(_0x4da108,_0x47d60b){return _0x4da108(_0x47d60b);},'roWst':_0x5b36ca(0x15e)},_0x3f4686=await _0x82f748[_0x5b36ca(0x161)](getEnabledHookContext,_0xa97461);if(!_0x3f4686)return;if(_0x3f4686['input'][_0x5b36ca(0x160)]!==_0x82f748['roWst'])return;if(!_0x82f748['HxBfE'](shouldShowPlanReminder,_0x3f4686['sessionId']))return;_0x82f748[_0x5b36ca(0x161)](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(_0x1a5256,_0x474e6b){const _0x425521=_0x3103,_0x259349=_0x1a5256();while(!![]){try{const _0x5877a0=-parseInt(_0x425521(0x91))/0x1*(-parseInt(_0x425521(0x8e))/0x2)+-parseInt(_0x425521(0x8f))/0x3+parseInt(_0x425521(0x90))/0x4*(-parseInt(_0x425521(0x94))/0x5)+-parseInt(_0x425521(0x8c))/0x6*(parseInt(_0x425521(0x8b))/0x7)+parseInt(_0x425521(0x8d))/0x8*(-parseInt(_0x425521(0x93))/0x9)+parseInt(_0x425521(0x95))/0xa*(-parseInt(_0x425521(0x92))/0xb)+parseInt(_0x425521(0x8a))/0xc;if(_0x5877a0===_0x474e6b)break;else _0x259349['push'](_0x259349['shift']());}catch(_0x424307){_0x259349['push'](_0x259349['shift']());}}}(_0x4ca6,0x471c6));function _0x4ca6(){const _0x505513=['589294dRPeFY','766737HZMYhP','380nNcDEx','1etqEYu','66QAYyJZ','1719ocMJLC','1850TYokcI','122250gcanSj','9437496HusFpK','7RlAhEL','1730562fmjZPi','5752CtUSsY'];_0x4ca6=function(){return _0x505513;};return _0x4ca6();}function _0x3103(_0x1fdeac,_0x4d5b7a){_0x1fdeac=_0x1fdeac-0x8a;const _0x4ca6dc=_0x4ca6();let _0x310335=_0x4ca6dc[_0x1fdeac];return _0x310335;}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x2dee0c){const _0x1c6876={'mXuiw':function(_0x61533a,_0x26cdeb){return _0x61533a(_0x26cdeb);},'RRznL':function(_0xe6b021,_0x56f4ce){return _0xe6b021(_0x56f4ce);}},_0x20a541=await _0x1c6876['mXuiw'](getEnabledSessionId,_0x2dee0c);if(!_0x20a541)return;_0x1c6876['RRznL'](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(_0x131ca5,_0x2a63f5){const _0x506f8a=_0x103d,_0x24e15c=_0x131ca5();while(!![]){try{const _0x183fc2=parseInt(_0x506f8a(0x17c))/0x1+parseInt(_0x506f8a(0x181))/0x2*(-parseInt(_0x506f8a(0x17a))/0x3)+-parseInt(_0x506f8a(0x17b))/0x4*(parseInt(_0x506f8a(0x17d))/0x5)+-parseInt(_0x506f8a(0x178))/0x6+parseInt(_0x506f8a(0x186))/0x7*(parseInt(_0x506f8a(0x17f))/0x8)+parseInt(_0x506f8a(0x180))/0x9*(-parseInt(_0x506f8a(0x17e))/0xa)+parseInt(_0x506f8a(0x184))/0xb;if(_0x183fc2===_0x2a63f5)break;else _0x24e15c['push'](_0x24e15c['shift']());}catch(_0x1b5eb0){_0x24e15c['push'](_0x24e15c['shift']());}}}(_0x4b42,0x6d5b4));function _0x103d(_0x237fb6,_0x5595fd){_0x237fb6=_0x237fb6-0x178;const _0x4b425e=_0x4b42();let _0x103dff=_0x4b425e[_0x237fb6];return _0x103dff;}function _0x4b42(){const _0x4e625e=['PostToolUse','4872546SxsmMM','2265942OLlsaR','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).','15depWHh','1176528WjimEE','218944GSOavi','15OMtLEL','1106580xcQrXW','8XCjhLJ','54topYij','35610TLdJrh','log','rRAQJ','17005208lLQFxn'];_0x4b42=function(){return _0x4e625e;};return _0x4b42();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x28e392){const _0x4aafc7=_0x103d,_0x1b2c07={'rRAQJ':function(_0x3ff302,_0x4e6821){return _0x3ff302(_0x4e6821);},'CllFn':_0x4aafc7(0x185)},_0x2945da=await _0x1b2c07[_0x4aafc7(0x183)](getEnabledSessionId,_0x28e392);if(!_0x2945da)return;updateBranchTracking(_0x2945da);const _0x1858b4=await getToken();if(!_0x1858b4)return;const _0x5babef=getSessionEntry(_0x2945da);if(_0x5babef){const _0xd62864={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x4aafc7(0x179)}};console[_0x4aafc7(0x182)](JSON['stringify'](_0xd62864));return;}const _0x2e2b36={'hookSpecificOutput':{'hookEventName':_0x1b2c07['CllFn'],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON['stringify'](_0x2e2b36));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a706e,_0xcb5fc2){const _0xf5319c=_0x385c,_0x3f92da=_0x2a706e();while(!![]){try{const _0x55fa8c=-parseInt(_0xf5319c(0x13f))/0x1+parseInt(_0xf5319c(0x13d))/0x2+-parseInt(_0xf5319c(0x13b))/0x3*(-parseInt(_0xf5319c(0x139))/0x4)+-parseInt(_0xf5319c(0x13e))/0x5+parseInt(_0xf5319c(0x13c))/0x6+parseInt(_0xf5319c(0x137))/0x7+-parseInt(_0xf5319c(0x138))/0x8*(parseInt(_0xf5319c(0x13a))/0x9);if(_0x55fa8c===_0xcb5fc2)break;else _0x3f92da['push'](_0x3f92da['shift']());}catch(_0x2f6fe1){_0x3f92da['push'](_0x3f92da['shift']());}}}(_0x3b3e,0xb201c));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x3b3e(){const _0x394aed=['6590430RhaMOM','1377547QQIAAw','6275801LmCLHU','8wflgKO','103956ZvfrlQ','1961019wTOYWl','51obhRLq','7475370DtpPOw','2116778prisZm'];_0x3b3e=function(){return _0x394aed;};return _0x3b3e();}function _0x385c(_0x32ec51,_0x5a0118){_0x32ec51=_0x32ec51-0x137;const _0x3b3e76=_0x3b3e();let _0x385cb7=_0x3b3e76[_0x32ec51];return _0x385cb7;}export async function preCompact(_0x412771){const _0x2c18ee={'AexGf':function(_0xcbc9bd){return _0xcbc9bd();}},_0x389d3b=await getEnabledSessionId(_0x412771);if(!_0x389d3b)return;try{const _0x2e2eb8=await _0x2c18ee['AexGf'](getToken);if(!_0x2e2eb8)return;printBlock('===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5158ee,_0x1f09a9){const _0x185a70=_0x1582,_0x563a87=_0x5158ee();while(!![]){try{const _0x44e3ab=parseInt(_0x185a70(0x157))/0x1*(parseInt(_0x185a70(0x15c))/0x2)+parseInt(_0x185a70(0x155))/0x3*(parseInt(_0x185a70(0x152))/0x4)+parseInt(_0x185a70(0x156))/0x5+parseInt(_0x185a70(0x15f))/0x6*(parseInt(_0x185a70(0x15d))/0x7)+parseInt(_0x185a70(0x158))/0x8*(parseInt(_0x185a70(0x15e))/0x9)+-parseInt(_0x185a70(0x154))/0xa+parseInt(_0x185a70(0x153))/0xb*(-parseInt(_0x185a70(0x159))/0xc);if(_0x44e3ab===_0x1f09a9)break;else _0x563a87['push'](_0x563a87['shift']());}catch(_0x33ae4f){_0x563a87['push'](_0x563a87['shift']());}}}(_0x361f,0xb1f96));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x1582(_0x349ef7,_0x4fb6c1){_0x349ef7=_0x349ef7-0x152;const _0x361ff8=_0x361f();let _0x158232=_0x361ff8[_0x349ef7];return _0x158232;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x282d73){const _0x5273ff=_0x1582,_0x315deb={'gjHlp':function(_0x77160f){return _0x77160f();}},_0x19fd1e=process['env'][_0x5273ff(0x15b)];let _0x25930d=_0x282d73,_0x4e2b2b;if(!_0x282d73){if(_0x19fd1e&&!isSessionEnabled(_0x19fd1e))return;const _0x26e6df=await _0x315deb['gjHlp'](readHookInput);_0x25930d=_0x26e6df?.[_0x5273ff(0x15a)]||_0x19fd1e,_0x4e2b2b=_0x26e6df?.[_0x5273ff(0x160)];}if(!_0x25930d)return;_0x4e2b2b==='clear'&&recordEnabledSessionCleared(_0x25930d);}function _0x361f(){const _0x25a569=['24280hNBXwh','57048tSjppL','session_id','CLAUDE_SESSION_ID','2OmNxKS','7617113KiTate','2826eyutuf','6PMavQl','reason','112KGDIJB','6556kXsmYp','5318060oMNesU','92244FJDZaC','5830kBznUR','1190913fBQCfF'];_0x361f=function(){return _0x25a569;};return _0x361f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x157ec8=_0x2b03;function _0x2b03(_0x1ae962,_0x2b7d26){_0x1ae962=_0x1ae962-0x1bb;const _0x2066d2=_0x2066();let _0x2b03ee=_0x2066d2[_0x1ae962];return _0x2b03ee;}(function(_0x3aac3d,_0x3d79fc){const _0x6053a7=_0x2b03,_0x366d8a=_0x3aac3d();while(!![]){try{const _0x5de96a=-parseInt(_0x6053a7(0x1c7))/0x1+-parseInt(_0x6053a7(0x1bd))/0x2+-parseInt(_0x6053a7(0x1bf))/0x3+parseInt(_0x6053a7(0x1c0))/0x4+parseInt(_0x6053a7(0x1c3))/0x5+parseInt(_0x6053a7(0x1c9))/0x6*(parseInt(_0x6053a7(0x1ce))/0x7)+parseInt(_0x6053a7(0x1cb))/0x8*(parseInt(_0x6053a7(0x1c5))/0x9);if(_0x5de96a===_0x3d79fc)break;else _0x366d8a['push'](_0x366d8a['shift']());}catch(_0x36bd1a){_0x366d8a['push'](_0x366d8a['shift']());}}}(_0x2066,0x5186b));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x2066(){const _0x410e7c=['trackCommandEnd','4782088sKcxQN','liZRF','success','7zIuDgp','\x20(Branch:\x20','session_id','1238770NvnQjm','ghyWh','1692180EzpZBZ','1957576oBJxfG','gTCph','master','1403055uELPHY','ffeAC','9UczEIX','stdin','74379enDVMu','=================================================================\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=================================================================','1343934MKolwA'];_0x2066=function(){return _0x410e7c;};return _0x2066();}import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT=_0x157ec8(0x1c8);export async function sessionStart(_0x2d27c8){const _0x1e59cb=_0x157ec8,_0xbe8373={'ghyWh':_0x1e59cb(0x1bc),'XLhLL':function(_0x4665d7,_0x2f2055){return _0x4665d7&&_0x2f2055;},'GpZrz':function(_0x32063d,_0x31aabe,_0x3198e7){return _0x32063d(_0x31aabe,_0x3198e7);},'liZRF':function(_0x4ebe5a,_0x27eb7d){return _0x4ebe5a(_0x27eb7d);},'JdTzv':function(_0x22fda2,_0x552b51){return _0x22fda2(_0x552b51);},'UZFvf':function(_0x2fb28a,_0x460dde){return _0x2fb28a===_0x460dde;},'ffeAC':function(_0x122193,_0x18a9dc){return _0x122193(_0x18a9dc);},'zjiMh':_0x1e59cb(0x1cd),'gTCph':'main','ZXngF':_0x1e59cb(0x1c2)};let _0x373789=_0x2d27c8||'',_0x355614;if(!_0x2d27c8){let _0x41b30a='';for await(const _0x54b786 of process[_0x1e59cb(0x1c6)]){_0x41b30a+=_0x54b786;}try{const _0x3715a3=JSON['parse'](_0x41b30a);_0x373789=_0x3715a3[_0xbe8373[_0x1e59cb(0x1be)]]||'',_0x355614=_0x3715a3['source'];}catch{}const _0x3c8556=process['env']['CLAUDE_ENV_FILE'];if(_0xbe8373['XLhLL'](_0x3c8556,_0x373789))try{await _0xbe8373['GpZrz'](appendFile,_0x3c8556,'export\x20CLAUDE_SESSION_ID=\x22'+_0x373789+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x373789){shouldAutoEnableAfterClear(_0x355614)&&_0xbe8373[_0x1e59cb(0x1cc)](autoEnableAfterClear,_0x373789);_0xbe8373['JdTzv'](initBranchTracking,_0x373789);_0xbe8373['UZFvf'](resolveHookMode(),'on')&&_0xbe8373[_0x1e59cb(0x1c4)](enableSession,_0x373789);const _0x150bc9=_0xbe8373[_0x1e59cb(0x1cc)](isSessionEnabled,_0x373789);try{const _0x55bf11=createTelemetryCollector('hook:session-start');await _0x55bf11['trackCommandStart']({'sessionId':_0x373789,'hooksEnabled':_0x150bc9}),await _0x55bf11[_0x1e59cb(0x1ca)](_0xbe8373['zjiMh']);}catch{}if(_0x150bc9){const _0x8d2d15=getCurrentBranch(),_0x1336a1=_0x8d2d15&&_0x8d2d15!==_0xbe8373[_0x1e59cb(0x1c1)]&&_0x8d2d15!==_0xbe8373['ZXngF']?_0x1e59cb(0x1bb)+_0x8d2d15+')':'',_0x1be6ef={'hookSpecificOutput':{'hookEventName':'SessionStart','additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x1336a1}};console['log'](JSON['stringify'](_0x1be6ef));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28da7b,_0xdcd304){const _0x1c4f87=_0x15ee,_0x48923c=_0x28da7b();while(!![]){try{const _0x3bcd86=-parseInt(_0x1c4f87(0xd1))/0x1*(parseInt(_0x1c4f87(0xbe))/0x2)+parseInt(_0x1c4f87(0xbc))/0x3*(parseInt(_0x1c4f87(0xcb))/0x4)+parseInt(_0x1c4f87(0xce))/0x5*(-parseInt(_0x1c4f87(0xbd))/0x6)+parseInt(_0x1c4f87(0xca))/0x7*(parseInt(_0x1c4f87(0xc3))/0x8)+parseInt(_0x1c4f87(0xc4))/0x9+parseInt(_0x1c4f87(0xcc))/0xa+-parseInt(_0x1c4f87(0xc9))/0xb;if(_0x3bcd86===_0xdcd304)break;else _0x48923c['push'](_0x48923c['shift']());}catch(_0x220e44){_0x48923c['push'](_0x48923c['shift']());}}}(_0x3336,0xf2539));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x15ee(_0x161ee3,_0x3968c7){_0x161ee3=_0x161ee3-0xbb;const _0x333630=_0x3336();let _0x15ee9b=_0x333630[_0x161ee3];return _0x15ee9b;}export async function stopHook(_0x3be63a){const _0x12dc67=_0x15ee,_0x5162a3={'IglIf':function(_0x3aa313,_0xb6a70a){return _0x3aa313(_0xb6a70a);},'gUTeO':function(_0x2b98ba,_0x2c5dc6,_0x3a73d4,_0x1d0c12){return _0x2b98ba(_0x2c5dc6,_0x3a73d4,_0x1d0c12);},'TXPxV':function(_0x237ae6,_0x5a07e7,_0x489107,_0x4ab1bd){return _0x237ae6(_0x5a07e7,_0x489107,_0x4ab1bd);},'rWUbH':function(_0x23bac6,_0x14d335){return _0x23bac6(_0x14d335);},'Lswsf':function(_0x2452f2,_0x23185a){return _0x2452f2&&_0x23185a;},'aMMlw':function(_0x4e992d,_0x99ef80,_0x52735a,_0x19c4ea){return _0x4e992d(_0x99ef80,_0x52735a,_0x19c4ea);}},_0xb8136b=await _0x5162a3[_0x12dc67(0xc8)](getEnabledHookContext,_0x3be63a),_0x5705f5=_0xb8136b?.['sessionId']??null;let _0x123c45=!![];if(!_0x5705f5){await _0x5162a3['gUTeO'](trackStop,_0x5705f5,![],_0x123c45);return;}try{const _0x155f5e=_0x5162a3[_0x12dc67(0xc8)](getSessionEntry,_0x5705f5);if(!_0x155f5e){await _0x5162a3['TXPxV'](trackStop,_0x5705f5,!![],_0x123c45);return;}const _0x4bfca0=await getToken(),_0x39f62b='https://dashboard.ranger.net/features/'+_0x155f5e[_0x12dc67(0xbb)];let _0x19a1b0=null,_0x21acc6=![],_0x20cb0e=![];if(_0x4bfca0)try{const _0x51d736=await getFeature(_0x155f5e[_0x12dc67(0xbb)]);_0x19a1b0=_0x51d736[_0x12dc67(0xbf)]??null;const _0x18170c=_0x51d736[_0x12dc67(0xc5)][_0x12dc67(0xc1)](_0x35a7a9=>_0x35a7a9['sessionId']===_0x19a1b0);_0x21acc6=_0x18170c[_0x12dc67(0xd4)](_0x368eb5=>_0x368eb5['status']!=='verified'&&_0x368eb5['status']!=='blocked'&&_0x368eb5[_0x12dc67(0xd3)]!==_0x12dc67(0xd5)&&_0x368eb5['status']!=='incomplete'),_0x20cb0e=_0x18170c[_0x12dc67(0xd4)](_0x3f6688=>_0x3f6688[_0x12dc67(0xd3)]==='verification_in_progress');}catch{}if(_0x4bfca0&&_0x19a1b0&&_0x21acc6){if(!_0x20cb0e&&_0x5162a3[_0x12dc67(0xd0)](shouldShowStopReminder,_0x5705f5)){const _0x59c171={'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'+_0x39f62b}};console[_0x12dc67(0xc6)](JSON[_0x12dc67(0xcd)](_0x59c171));}}if(_0x5162a3['Lswsf'](_0x4bfca0,_0x19a1b0)&&!_0x21acc6)try{await concludeSession(_0x155f5e['featureId'],_0x19a1b0);}catch{}await trackStop(_0x5705f5,!![],_0x123c45);return;}catch{await _0x5162a3[_0x12dc67(0xc2)](trackStop,_0x5705f5,!![],_0x123c45);return;}}async function trackStop(_0x30c204,_0x259336,_0x179de7){const _0x404ddc=_0x15ee,_0x4435c8={'kczkU':function(_0x14752b,_0x442a79){return _0x14752b??_0x442a79;},'Zymqc':_0x404ddc(0xc0)};try{const _0x165f0a=createTelemetryCollector(_0x404ddc(0xc7));await _0x165f0a['trackCommandStart']({'sessionId':_0x4435c8['kczkU'](_0x30c204,undefined),'hooksEnabled':_0x259336,'stopAllowed':_0x179de7}),await _0x165f0a[_0x404ddc(0xd2)](_0x4435c8[_0x404ddc(0xcf)]);}catch{}}function _0x3336(){const _0x7ed7fd=['12155IstOoG','Zymqc','rWUbH','1043GhLMhh','trackCommandEnd','status','some','closed','featureId','69bTufmn','1314rHGdKo','82mxbInp','currentSessionId','success','filter','aMMlw','64DGBqnQ','14596497pOPXtd','checklistItems','log','hook:stop','IglIf','36101296uERvaZ','987322VhpysG','30748STPbmE','19226550JnSgGk','stringify'];_0x3336=function(){return _0x7ed7fd;};return _0x3336();}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1fae(){var _0x701463=['533148YwPXcL','9230680wLljxS','70bkrAML','34988QcStJs','1382860BUlHHU','7mTYDrV','1114233Dcyapm','8116011TPQtyt','15tAdrxa','4367832DvgHsn'];_0x1fae=function(){return _0x701463;};return _0x1fae();}(function(_0x2d4e56,_0x44c52d){var _0x366203=_0x29f4,_0x259d3a=_0x2d4e56();while(!![]){try{var _0x5dd571=parseInt(_0x366203(0x1c5))/0x1+-parseInt(_0x366203(0x1c2))/0x2*(parseInt(_0x366203(0x1c7))/0x3)+parseInt(_0x366203(0x1c3))/0x4+-parseInt(_0x366203(0x1c1))/0x5*(parseInt(_0x366203(0x1bf))/0x6)+parseInt(_0x366203(0x1c4))/0x7*(parseInt(_0x366203(0x1be))/0x8)+parseInt(_0x366203(0x1c6))/0x9+-parseInt(_0x366203(0x1c0))/0xa;if(_0x5dd571===_0x44c52d)break;else _0x259d3a['push'](_0x259d3a['shift']());}catch(_0x10120d){_0x259d3a['push'](_0x259d3a['shift']());}}}(_0x1fae,0x9f764));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';function _0x29f4(_0x39e9a1,_0x273867){_0x39e9a1=_0x39e9a1-0x1be;var _0x1faecb=_0x1fae();var _0x29f4b4=_0x1faecb[_0x39e9a1];return _0x29f4b4;}export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
|