@ranger-testing/ranger-cli 3.1.2-alpha.b450a14-41 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4ac12b=_0x5de5;(function(_0x37d419,_0x5545a0){const _0x189223=_0x5de5,_0x545d81=_0x37d419();while(!![]){try{const _0x44f0be=parseInt(_0x189223(0x1c0))/0x1+-parseInt(_0x189223(0x1ca))/0x2*(-parseInt(_0x189223(0x1de))/0x3)+parseInt(_0x189223(0x221))/0x4+parseInt(_0x189223(0x1ed))/0x5*(-parseInt(_0x189223(0x200))/0x6)+parseInt(_0x189223(0x182))/0x7*(-parseInt(_0x189223(0x1d8))/0x8)+parseInt(_0x189223(0x1f1))/0x9*(parseInt(_0x189223(0x214))/0xa)+-parseInt(_0x189223(0x21e))/0xb;if(_0x44f0be===_0x5545a0)break;else _0x545d81['push'](_0x545d81['shift']());}catch(_0x12b6e9){_0x545d81['push'](_0x545d81['shift']());}}}(_0x4276,0xe09fe));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0xd0c003 from'inquirer';function _0x4276(){const _0x255678=['No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','IjSKs','type','isKeyStep','.png','toLocaleDateString','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','\x20/\x20','canonicalFlow','dqICE','VDlsz','\x0a📋\x20Feedback\x20for:\x20','PdlKO','eOYdj','UKpXI','LHsqs','.md','blockedReason','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','iteration','gitBranch','gCytn','currentSessionId','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','completed','VURVl','\x1b[0m','yXYyt','TkdJV','RANGER_TEST_USERNAME','verifiedItems','screenshot','log','submittedAt','verified','\x20of\x20','includeDeleted','LJxop','YfmCb','/api/v1/mcp/browser-sessions/','TVztY','EUexf','FmbNP','TLpuc','env','verificationInProgressItems','oMzjB','style','IIZCU','blocked','oILIP','220633LmPzKa','incompleteItems','status','nyMrE','en-US','nOVxq','offset','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','yyHCE','No\x20scenarios\x20found.','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','\x20incomplete','write','reports','PdoSk','utf-8','map','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20\x20','length','Olqgx','zuORN','incomplete','\x0a\x20\x20\x20Scenarios:','ANEOV','okKmb','short','blockedItems','\x20concluded.','\x0a✅\x20Restored\x20feature\x20review:\x20','KccQU','assets','wUJst','from','exit','totalCount','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','pipe','description','createdAt','stdout','gdNkE','canceledReason','/artifacts/','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','YthXc','domRef','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','OUWCS','\x0a✅\x20Feature\x20review\x20created:\x20','fTgqo','location','find','point','verification_in_progress','IfsUv','Please\x20finish\x20your\x20review\x20first:','QstQK','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','tBGUy','\x0a✅\x20Resumed\x20feature\x20review:\x20','replace','1212166MuQKff','stdin','unaddressedComments','trim','JEErj','\x20\x20\x20Updated\x20branch\x20to:\x20','list','\x0a✅\x20Scenario\x20added','in_progress','zeKba','41222tLXyox','mXmMG','\x20\x20\x20\x20\x20Progress:\x20','closed','join','items','\x20\x20\x20▶️\x20Started\x20session\x20','selector','\x20\x20\x20\x20\x20\x20Approved','Unknown','\x20verified','XIadm','toLocaleString','ATbeB','184uHldSo','\x20blocked','wCQij','coordinates','CLAUDE_SESSION_ID','limit','63MaxDLs','HlYzS','yRfTW','stringify','ready','mDQMi','parentItemId','latestReview','PFAvS','No\x20active\x20session\x20for\x20this\x20feature\x20review.','lwzWv','browserSessionId','fOWSG','\x20\x20\x20Progress:\x20','output','5mxZFwg','OiGrk','aPdnN','JeVCO','510066XmbygW','emXqY','active-feature.txt',':\x20\x22','\x0a⚠️\x20\x20','ZCDYt','incompleteReason','pop','scenarios','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','...','toFixed','stats','dashboardUrl','spatial','333306culeIk','json','JOrnO','version','slice','name','\x0a❌\x20Invalid\x20scenario\x20index:\x20','github.com/','textContent','TryRo','pKSvy','JEHXM','\x20\x20\x20Created:\x20','filter','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','qBEbZ','element','IeOSu','KFvlh','\x20\x20\x20Branch:\x20','140XbwodM','completedAt','\x20(v','warn','fxSlr','trimEnd','error','\x0a✅\x20Session\x20is\x20already\x20completed.','terminalReason','\x0a✅\x20Scenario\x20updated','15503257zpNYHf','position','\x20Session\x20','2686016gsyKLR','assetUrl','XxRQm','Showing\x20','currentBranch','git\x20rev-parse\x20--abbrev-ref\x20HEAD','isTTY','GBkAl','split','VUCfB','approved','\x20--limit\x20','comment_','\x20>\x20','Scenario\x20','push','any','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x20scenario(s).','\x20\x20Expected\x20flow:','checklistItems','\x20\x20\x20Repository:\x20','sessionId','4|3|1|0|2|5','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'];_0x4276=function(){return _0x255678;};return _0x4276();}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=_0x4ac12b(0x1f3),bold=_0x2bd844=>'\x1b[1m'+_0x2bd844+_0x4ac12b(0x169);function getGitRepoUrl(){const _0x4908a8=_0x4ac12b,_0x4c295c={'UKpXI':function(_0x1be1f3,_0xda1d0d,_0xe1c4e2){return _0x1be1f3(_0xda1d0d,_0xe1c4e2);},'ZCDYt':'git\x20remote\x20get-url\x20origin','hWsUB':_0x4908a8(0x191),'InvuE':_0x4908a8(0x1a7),'iqeXG':_0x4908a8(0x207)};try{const _0x2c2559=_0x4c295c[_0x4908a8(0x248)](execSync,_0x4c295c[_0x4908a8(0x1f6)],{'encoding':_0x4c295c['hWsUB'],'stdio':[_0x4908a8(0x1a7),_0x4c295c['InvuE'],'pipe']})['trim']();return _0x2c2559['replace'](/\.git$/,'')[_0x4908a8(0x1bf)](/^git@github\.com:/,_0x4c295c['iqeXG'])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x54aa81=_0x4ac12b,_0x4ff687={'EUexf':function(_0x11c0a7,_0x2cfe8e,_0x27d52f){return _0x11c0a7(_0x2cfe8e,_0x27d52f);},'hmNYz':'pipe'};try{return _0x4ff687[_0x54aa81(0x178)](execSync,_0x54aa81(0x226),{'encoding':_0x54aa81(0x191),'stdio':[_0x54aa81(0x1a7),_0x54aa81(0x1a7),_0x4ff687['hmNYz']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x276a14=_0x4ac12b,_0x7b3f57=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x7b3f57))return null;try{const _0x527478=await readFile(_0x7b3f57,'utf-8');return _0x527478[_0x276a14(0x1c3)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x42a1e3){const _0x254652=_0x4ac12b,_0x2e43ae={'zuORN':function(_0x3f56d9){return _0x3f56d9();},'PdoSk':function(_0x2e37eb,_0x397022,_0x5a26a4){return _0x2e37eb(_0x397022,_0x5a26a4);}},_0x4ddb6f=_0x2e43ae[_0x254652(0x197)](getRangerDir),_0x385dc8=_0x2e43ae[_0x254652(0x190)](join,_0x4ddb6f,ACTIVE_FEATURE_FILE);!existsSync(_0x4ddb6f)&&await _0x2e43ae['PdoSk'](mkdir,_0x4ddb6f,{'recursive':!![]}),await writeFile(_0x385dc8,_0x42a1e3,_0x254652(0x191));}function getProgressDisplay(_0x10687f){const _0x5d7108=_0x4ac12b,_0x4ce9fb={'gdNkE':function(_0x474555,_0x1ec2dd){return _0x474555+_0x1ec2dd;},'zrBhk':function(_0x215f6c,_0x1e2e68){return _0x215f6c+_0x1e2e68;},'LHsqs':function(_0x24df32,_0x551c29){return _0x24df32+_0x551c29;},'dkyyS':function(_0x3ee45a,_0x5ecf9c){return _0x3ee45a===_0x5ecf9c;},'ObZZg':function(_0x485267,_0xbef5ea){return _0x485267*_0xbef5ea;},'JeVCO':function(_0x480dd2,_0x1910e2){return _0x480dd2/_0x1910e2;},'JOrnO':function(_0x5e7a5f,_0x5b328e){return _0x5e7a5f-_0x5b328e;},'OUWCS':function(_0x3ebd1c,_0xb716db){return _0x3ebd1c>_0xb716db;}},_0x312314=_0x10687f[_0x5d7108(0x16d)]||0x0,_0x160e05=_0x10687f[_0x5d7108(0x17c)]||0x0,_0x1613d8=_0x10687f[_0x5d7108(0x19d)]||0x0,_0x2e891f=_0x10687f[_0x5d7108(0x183)]||0x0,_0x1bacbd=_0x10687f['pendingItems']||0x0,_0x43fd1b=_0x4ce9fb[_0x5d7108(0x1ab)](_0x4ce9fb['zrBhk'](_0x4ce9fb[_0x5d7108(0x249)](_0x312314,_0x160e05)+_0x1613d8,_0x2e891f),_0x1bacbd);if(_0x4ce9fb['dkyyS'](_0x43fd1b,0x0))return'-';const _0x5a86a7=0xa,_0x4cf6eb=Math['round'](_0x4ce9fb['ObZZg'](_0x4ce9fb[_0x5d7108(0x1f0)](_0x312314,_0x43fd1b),_0x5a86a7)),_0x5518c5='█'['repeat'](_0x4cf6eb)+'░'['repeat'](_0x4ce9fb[_0x5d7108(0x202)](_0x5a86a7,_0x4cf6eb)),_0x13dab5=[];if(_0x1613d8>0x0)_0x13dab5['push'](_0x1613d8+_0x5d7108(0x1d9));if(_0x2e891f>0x0)_0x13dab5[_0x5d7108(0x230)](_0x2e891f+_0x5d7108(0x18d));if(_0x4ce9fb[_0x5d7108(0x1b2)](_0x160e05,0x0))_0x13dab5[_0x5d7108(0x230)](_0x160e05+'\x20in\x20progress');const _0x4b63a7=_0x4ce9fb[_0x5d7108(0x1b2)](_0x13dab5['length'],0x0)?'\x20('+_0x13dab5['join'](',\x20')+')':'';return _0x5518c5+'\x20'+_0x312314+'/'+_0x43fd1b+_0x5d7108(0x1d4)+_0x4b63a7;}function getCurrentSessionItems(_0x47c1ef,_0xb7f237){const _0x24840f=_0x4ac12b;if(!_0x47c1ef['currentSessionId'])return _0xb7f237[_0x24840f(0x20d)](_0x20335b=>!_0x20335b[_0x24840f(0x237)]);return _0xb7f237['filter'](_0x55396e=>_0x55396e['sessionId']===_0x47c1ef['currentSessionId']||!_0x55396e['sessionId']);}function displayFeature(_0x173a98,_0x515ad7){const _0x4cc30e=_0x4ac12b,_0x4ee5b3={'TyMXX':function(_0x1f4687,_0x3a9f80){return _0x1f4687(_0x3a9f80);},'VpHAV':_0x4cc30e(0x199),'zeKba':function(_0x362fdd,_0x447571){return _0x362fdd===_0x447571;},'VUCfB':_0x4cc30e(0x171),'VURVl':_0x4cc30e(0x198),'ZVrdm':function(_0x4d7247,_0x1203ef){return _0x4d7247===_0x1203ef;},'TNeBK':function(_0x2387ea,_0x571c4b){return _0x2387ea!==_0x571c4b;},'WAshN':function(_0x5ad721,_0x211f78){return _0x5ad721+_0x211f78;},'fxSlr':'blocked','LJxop':'closed'};console['log']('\x0a'+_0x173a98[_0x4cc30e(0x205)]+'\x20('+_0x173a98['dashboardUrl']+')');_0x173a98['stats']&&console[_0x4cc30e(0x16f)]('\x20\x20\x20Progress:\x20'+_0x4ee5b3['TyMXX'](getProgressDisplay,_0x173a98['stats']));_0x173a98['description']&&console[_0x4cc30e(0x16f)]('\x20\x20\x20Description:\x20'+_0x173a98[_0x4cc30e(0x1a8)]);_0x173a98['gitRepoUrl']&&console['log'](_0x4cc30e(0x236)+_0x173a98['gitRepoUrl']);_0x173a98['gitBranch']&&console[_0x4cc30e(0x16f)](_0x4cc30e(0x213)+_0x173a98['gitBranch']);console['log'](_0x4cc30e(0x20c)+new Date(_0x173a98['createdAt'])['toLocaleString']());_0x173a98['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x173a98['completedAt'])[_0x4cc30e(0x1d6)]());if(_0x515ad7&&_0x515ad7[_0x4cc30e(0x195)]>0x0){console['log'](_0x4ee5b3['VpHAV']);for(let _0x5bc426=0x0;_0x5bc426<_0x515ad7[_0x4cc30e(0x195)];_0x5bc426++){const _0xf5660a=_0x515ad7[_0x5bc426];let _0x32a14d;if(_0xf5660a[_0x4cc30e(0x184)]===_0x4cc30e(0x1cd)&&_0xf5660a[_0x4cc30e(0x21c)]==='approved')_0x32a14d='✅';else{if(_0x4ee5b3[_0x4cc30e(0x1c9)](_0xf5660a[_0x4cc30e(0x184)],_0x4ee5b3[_0x4cc30e(0x22a)]))_0x32a14d='🟢';else{if(_0x4ee5b3['zeKba'](_0xf5660a['status'],_0x4ee5b3[_0x4cc30e(0x168)]))_0x32a14d='🟠';else{if(_0xf5660a['status']===_0x4cc30e(0x180))_0x32a14d='🛑';else{if(_0xf5660a[_0x4cc30e(0x184)]===_0x4cc30e(0x1cd))_0x32a14d='⛔';else _0x4ee5b3['ZVrdm'](_0xf5660a['status'],_0x4cc30e(0x1b8))?_0x32a14d='⏳':_0x32a14d='⬜';}}}}const _0x364b75=_0xf5660a['version']>0x1?'\x20(v'+_0xf5660a[_0x4cc30e(0x203)]+')':'',_0x142ecf=_0xf5660a[_0x4cc30e(0x203)]>0x1&&_0xf5660a[_0x4cc30e(0x1e4)]&&_0xf5660a[_0x4cc30e(0x184)]!==_0x4cc30e(0x1cd)&&_0x4ee5b3['TNeBK'](_0xf5660a[_0x4cc30e(0x184)],_0x4cc30e(0x171))?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+_0x4ee5b3['WAshN'](_0x5bc426,0x1)+'.\x20'+_0x32a14d+'\x20'+_0xf5660a['description']+_0x364b75+_0x142ecf);_0xf5660a['status']===_0x4ee5b3[_0x4cc30e(0x218)]&&_0xf5660a[_0x4cc30e(0x24b)]&&console[_0x4cc30e(0x16f)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0xf5660a['blockedReason']);_0xf5660a[_0x4cc30e(0x184)]===_0x4ee5b3[_0x4cc30e(0x168)]&&_0xf5660a['incompleteReason']&&console[_0x4cc30e(0x16f)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0xf5660a['incompleteReason']);if(_0x4ee5b3[_0x4cc30e(0x1c9)](_0xf5660a['status'],'closed')&&_0xf5660a[_0x4cc30e(0x21c)]===_0x4cc30e(0x22b))console[_0x4cc30e(0x16f)](_0x4cc30e(0x1d2));else _0xf5660a['status']===_0x4ee5b3[_0x4cc30e(0x174)]&&_0xf5660a['canceledReason']&&console[_0x4cc30e(0x16f)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0xf5660a['canceledReason']);}}}export async function featureCreate(_0x214f07,_0x266624){const _0x5f7b24=_0x4ac12b,_0x7e835d={'JEErj':function(_0x1764b8,_0xc2fd11){return _0x1764b8===_0xc2fd11;},'nyMrE':function(_0x38ec35){return _0x38ec35();},'IIZCU':function(_0x1177a0,_0x10a336){return _0x1177a0(_0x10a336);},'lwzWv':'\x0aCreating\x20feature\x20review...'},{envNames:_0x3cb7bf}=await getEnvNames();if(_0x7e835d['JEErj'](_0x3cb7bf['length'],0x0)&&!process['env'][_0x5f7b24(0x16c)]){let _0x2a4993=0x0;try{_0x2a4993=(await _0x7e835d['nyMrE'](listCloudProfiles))[_0x5f7b24(0x195)];}catch{_0x2a4993=0x1;}_0x7e835d[_0x5f7b24(0x1c4)](_0x2a4993,0x0)&&console[_0x5f7b24(0x217)]('\x0a'+_0x7e835d[_0x5f7b24(0x17f)](formatProfileRequiredMessage,_0x289974=>bold(_0x289974)));}const _0x5ba887=_0x266624['scenarios']?_0x266624[_0x5f7b24(0x1f9)]['map'](_0x43324f=>_0x43324f['trim']()):[],_0x4e5ad3=getGitRepoUrl(),_0x2c6a8a=_0x7e835d[_0x5f7b24(0x185)](getGitBranch);console['log'](_0x7e835d[_0x5f7b24(0x1e8)]);const _0x2e4c55=await createFeature({'name':_0x214f07,'description':_0x266624['description'],'checklist':_0x5ba887,'gitRepoUrl':_0x4e5ad3,'gitBranch':_0x2c6a8a});await setActiveFeatureId(_0x2e4c55['id']),await tryStartCurrentSession(_0x2e4c55['id']);const _0xb3e38f=process[_0x5f7b24(0x17b)][_0x5f7b24(0x1dc)];_0xb3e38f&®isterSession(_0xb3e38f,_0x2e4c55['id']),console[_0x5f7b24(0x16f)](_0x5f7b24(0x1b3)+_0x2e4c55['id']),displayFeature(_0x2e4c55,_0x2e4c55[_0x5f7b24(0x235)]),console[_0x5f7b24(0x16f)](_0x5f7b24(0x1a6));}export async function featureList(_0x1ab2dc){const _0x48f9aa=_0x4ac12b,_0x35420a={'StrXr':function(_0x52331f){return _0x52331f();},'ywDfo':function(_0x293f10){return _0x293f10();},'TkdJV':function(_0x426ed4,_0x537d6a){return _0x426ed4===_0x537d6a;},'eOYdj':'\x0aNo\x20feature\x20reviews\x20found.','DIeep':function(_0x44c5fc,_0x2a50f4){return _0x44c5fc>_0x2a50f4;},'YthXc':function(_0x15093b,_0x1c42c5){return _0x15093b(_0x1c42c5);},'iwiTp':'\x20--current-branch'},_0x256bfe={'limit':_0x1ab2dc['limit']??0xa,'offset':_0x1ab2dc['offset']??0x0,'includeDeleted':_0x1ab2dc[_0x48f9aa(0x173)]};_0x1ab2dc['currentBranch']&&(_0x256bfe['gitRepoUrl']=_0x35420a['StrXr'](getGitRepoUrl),_0x256bfe['gitBranch']=_0x35420a['ywDfo'](getGitBranch));const _0x3f2c91=await listFeatures(_0x256bfe);if(_0x35420a[_0x48f9aa(0x16b)](_0x3f2c91['items'][_0x48f9aa(0x195)],0x0)){console[_0x48f9aa(0x16f)](_0x35420a[_0x48f9aa(0x247)]);return;}const _0x50b318=_0x35420a['DIeep'](_0x3f2c91[_0x48f9aa(0x1a5)],_0x3f2c91['items']['length'])?_0x48f9aa(0x224)+_0x3f2c91['items'][_0x48f9aa(0x195)]+_0x48f9aa(0x172)+_0x3f2c91[_0x48f9aa(0x1a5)]:_0x3f2c91['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x48f9aa(0x16f)]('\x0a'+_0x50b318+':\x0a');for(const _0x6c8cb of _0x3f2c91['items']){console[_0x48f9aa(0x16f)](''+_0x6c8cb[_0x48f9aa(0x205)]),console['log']('\x20\x20\x20ID:\x20'+_0x6c8cb['id']),_0x6c8cb[_0x48f9aa(0x1fd)]&&console['log'](_0x48f9aa(0x1eb)+_0x35420a[_0x48f9aa(0x1af)](getProgressDisplay,_0x6c8cb['stats'])),_0x6c8cb[_0x48f9aa(0x24e)]&&console[_0x48f9aa(0x16f)](_0x48f9aa(0x213)+_0x6c8cb[_0x48f9aa(0x24e)]),console[_0x48f9aa(0x16f)](_0x48f9aa(0x20c)+new Date(_0x6c8cb['createdAt'])[_0x48f9aa(0x23f)]()),console['log']('');}const _0x34439d=_0x256bfe[_0x48f9aa(0x1dd)]??0xa,_0x869c5e=(_0x256bfe[_0x48f9aa(0x188)]??0x0)+_0x3f2c91[_0x48f9aa(0x1cf)]['length'];if(_0x869c5e<_0x3f2c91['totalCount']){const _0x443372=_0x34439d!==0xa?_0x48f9aa(0x22c)+_0x34439d:'',_0x2b8897=_0x1ab2dc[_0x48f9aa(0x225)]?_0x35420a['iwiTp']:'',_0x4d7766=_0x1ab2dc['includeDeleted']?'\x20--include-deleted':'';console[_0x48f9aa(0x16f)](_0x48f9aa(0x232)+_0x869c5e+_0x443372+_0x2b8897+_0x4d7766);}}export async function featureShow(_0x255d48){const _0x3800c2=_0x4ac12b,_0x29194e={'ATbeB':function(_0x4b55a9){return _0x4b55a9();},'IeOSu':function(_0x56bf45,_0x5adc16){return _0x56bf45(_0x5adc16);}},_0x29437d=_0x255d48||await _0x29194e[_0x3800c2(0x1d7)](getActiveFeatureId);if(!_0x29437d)throw new Error(_0x3800c2(0x193));const _0x391c5c=await _0x29194e[_0x3800c2(0x211)](getFeature,_0x29437d);displayFeature(_0x391c5c,_0x391c5c['checklistItems']);}export async function featureResume(_0xc3cb90){const _0x4c69c4=_0x4ac12b,_0x2b8975={'PkWVB':function(_0x3a961e){return _0x3a961e();},'gCytn':function(_0x4915cb,_0x4803a6){return _0x4915cb!==_0x4803a6;},'HlYzS':function(_0x319e15,_0x3af4d1,_0x30aa18){return _0x319e15(_0x3af4d1,_0x30aa18);},'XIadm':function(_0x3e2ef9,_0x193873){return _0x3e2ef9(_0x193873);},'kyWPj':function(_0x1d608d){return _0x1d608d();},'RGKrF':function(_0x5144b8,_0x2c5069){return _0x5144b8&&_0x2c5069;},'emXqY':'Not\x20in\x20a\x20git\x20repository.','Eqjxk':function(_0x297c54,_0x598c1f){return _0x297c54||_0x598c1f;},'mDQMi':function(_0x5ee44f,_0x64641c){return _0x5ee44f===_0x64641c;},'KccQU':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','fTgqo':function(_0x526896,_0x15af48){return _0x526896===_0x15af48;},'TLpuc':function(_0x1d37b6,_0x8a6b01){return _0x1d37b6(_0x8a6b01);},'QnCAA':function(_0x243003,_0x3dd691){return _0x243003(_0x3dd691);},'VDlsz':function(_0x455843,_0x632f3f,_0xf5acc4){return _0x455843(_0x632f3f,_0xf5acc4);}};if(_0xc3cb90){const _0x239146=await getFeature(_0xc3cb90);await setActiveFeatureId(_0x239146['id']);const _0x42fd67=_0x2b8975['PkWVB'](getGitBranch);_0x42fd67&&_0x2b8975[_0x4c69c4(0x24f)](_0x42fd67,_0x239146[_0x4c69c4(0x24e)])&&(await _0x2b8975['HlYzS'](updateFeature,_0x239146['id'],{'gitBranch':_0x42fd67}),console[_0x4c69c4(0x16f)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x42fd67));console[_0x4c69c4(0x16f)](_0x4c69c4(0x1be)+_0x239146['name']+'\x20('+_0x239146['id']+')'),await _0x2b8975[_0x4c69c4(0x1d5)](tryStartCurrentSession,_0x239146['id']);const _0x3055e0=process[_0x4c69c4(0x17b)]['CLAUDE_SESSION_ID'];_0x3055e0&&_0x2b8975[_0x4c69c4(0x1df)](registerSession,_0x3055e0,_0x239146['id']);_0x2b8975[_0x4c69c4(0x1df)](displayFeature,_0x239146,_0x239146['checklistItems']),await _0x2b8975[_0x4c69c4(0x1d5)](printFeedbackNudge,_0x239146['id']);return;}const _0x24ebb7=_0x2b8975['kyWPj'](getGitRepoUrl),_0xb1ee48=getGitBranch();if(_0x2b8975['RGKrF'](!_0x24ebb7,!_0xb1ee48))throw new Error(_0x2b8975[_0x4c69c4(0x1f2)]);console[_0x4c69c4(0x16f)](_0x4c69c4(0x239)+(_0x24ebb7||'any')+_0x4c69c4(0x241)+_0x2b8975['Eqjxk'](_0xb1ee48,_0x4c69c4(0x231))+_0x4c69c4(0x1fb));const _0x43d14f=await _0x2b8975['XIadm'](listFeatures,{'gitRepoUrl':_0x24ebb7,'gitBranch':_0xb1ee48}),_0x3a5aff=_0x43d14f['items'][_0x4c69c4(0x20d)](_0x432fc0=>_0x432fc0['status']?_0x432fc0[_0x4c69c4(0x184)]!=='verified':!_0x432fc0[_0x4c69c4(0x215)]);if(_0x2b8975[_0x4c69c4(0x1e3)](_0x3a5aff['length'],0x0)){console[_0x4c69c4(0x16f)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log'](_0x2b8975[_0x4c69c4(0x1a0)]);return;}let _0x205f8d;if(_0x2b8975[_0x4c69c4(0x1b4)](_0x3a5aff['length'],0x1))_0x205f8d=_0x3a5aff[0x0];else{const _0x47c13c=process[_0x4c69c4(0x1c1)]['isTTY']&&process[_0x4c69c4(0x1aa)][_0x4c69c4(0x227)];if(!_0x47c13c){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x182fe5 of _0x3a5aff){console[_0x4c69c4(0x16f)]('\x20\x20'+_0x182fe5['name']),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x182fe5['id']),_0x182fe5['stats']&&console['log'](_0x4c69c4(0x1cc)+_0x2b8975['XIadm'](getProgressDisplay,_0x182fe5['stats'])),_0x182fe5[_0x4c69c4(0x24e)]&&console[_0x4c69c4(0x16f)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x182fe5['gitBranch']);}throw new Error(_0x4c69c4(0x1bc));}const {selected:_0x378477}=await _0xd0c003['prompt']([{'type':_0x4c69c4(0x1c6),'name':'selected','message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x3a5aff[_0x4c69c4(0x192)](_0x10a3fc=>({'name':_0x10a3fc[_0x4c69c4(0x205)]+'\x20('+_0x10a3fc['id']+')','value':_0x10a3fc['id']}))}]);_0x205f8d=_0x3a5aff[_0x4c69c4(0x1b6)](_0x558ec4=>_0x558ec4['id']===_0x378477);}await _0x2b8975[_0x4c69c4(0x17a)](setActiveFeatureId,_0x205f8d['id']);_0xb1ee48&&_0xb1ee48!==_0x205f8d['gitBranch']&&(await updateFeature(_0x205f8d['id'],{'gitBranch':_0xb1ee48}),console[_0x4c69c4(0x16f)](_0x4c69c4(0x1c5)+_0xb1ee48));console[_0x4c69c4(0x16f)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x205f8d['name']+'\x20('+_0x205f8d['id']+')'),await _0x2b8975['TLpuc'](tryStartCurrentSession,_0x205f8d['id']);const _0x5a3eb0=await _0x2b8975['QnCAA'](getFeature,_0x205f8d['id']),_0x244d93=process[_0x4c69c4(0x17b)]['CLAUDE_SESSION_ID'];_0x244d93&®isterSession(_0x244d93,_0x5a3eb0['id']),_0x2b8975[_0x4c69c4(0x244)](displayFeature,_0x5a3eb0,_0x5a3eb0['checklistItems']),await printFeedbackNudge(_0x5a3eb0['id']);}async function printFeedbackNudge(_0x4bf9cd){const _0x239fe0=_0x4ac12b,_0x29c6a8={'IfsUv':function(_0x220bf9,_0x4e76db){return _0x220bf9(_0x4e76db);}};try{const {items:_0x4be9f1}=await _0x29c6a8[_0x239fe0(0x1b9)](getActionItems,_0x4bf9cd);let _0x2cad49=0x0,_0x918c70=0x0;for(const _0x468556 of _0x4be9f1){const _0x4c06ee=await getItemFeedback(_0x4bf9cd,_0x468556['id']);_0x4c06ee[_0x239fe0(0x1c2)][_0x239fe0(0x195)]>0x0&&(_0x2cad49+=_0x4c06ee[_0x239fe0(0x1c2)]['length'],_0x918c70++);}_0x2cad49>0x0&&(console[_0x239fe0(0x16f)](_0x239fe0(0x1f5)+_0x2cad49+_0x239fe0(0x20e)+_0x918c70+_0x239fe0(0x233)),console[_0x239fe0(0x16f)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}function _0x5de5(_0x17fa29,_0x325062){_0x17fa29=_0x17fa29-0x168;const _0x4276c2=_0x4276();let _0x5de598=_0x4276c2[_0x17fa29];return _0x5de598;}async function tryStartCurrentSession(_0x3f1c06){const _0x31be6f=_0x4ac12b;try{const {sessions:_0x41d805}=await listFeatureSessions(_0x3f1c06),_0x43cffb=_0x41d805['find'](_0x222ff5=>_0x222ff5[_0x31be6f(0x184)]===_0x31be6f(0x1e2));_0x43cffb&&(await startSession(_0x3f1c06,_0x43cffb['id']),console[_0x31be6f(0x16f)](_0x31be6f(0x1d0)+_0x43cffb[_0x31be6f(0x24d)]));}catch{}}export async function featureReport(_0x4f05cc,_0x118c09){const _0x5c0ded=_0x4ac12b,_0x2f2a4b={'ANEOV':function(_0x2c437c){return _0x2c437c();},'YfmCb':_0x5c0ded(0x18f),'dqICE':function(_0x356307,_0x44d281,_0x454e1a){return _0x356307(_0x44d281,_0x454e1a);},'GoIVc':function(_0x4961b1,_0x3eea1d,_0x43a8f5,_0x5ce62e){return _0x4961b1(_0x3eea1d,_0x43a8f5,_0x5ce62e);},'mXmMG':_0x5c0ded(0x191)},_0x4b5927=_0x4f05cc||await _0x2f2a4b[_0x5c0ded(0x19a)](getActiveFeatureId);if(!_0x4b5927)throw new Error(_0x5c0ded(0x23a));console[_0x5c0ded(0x16f)]('\x0aGenerating\x20report...');const _0x408198=await getFeatureReportMarkdown(_0x4b5927,{'style':_0x118c09[_0x5c0ded(0x17e)]}),_0x5aae00=_0x118c09[_0x5c0ded(0x1ec)]||join(getRangerDir(),_0x2f2a4b[_0x5c0ded(0x175)],_0x4b5927+_0x5c0ded(0x24a)),_0x4e658e=_0x2f2a4b[_0x5c0ded(0x243)](join,_0x5aae00,'..');!existsSync(_0x4e658e)&&await mkdir(_0x4e658e,{'recursive':!![]}),await _0x2f2a4b['GoIVc'](writeFile,_0x5aae00,_0x408198,_0x2f2a4b[_0x5c0ded(0x1cb)]),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x5aae00);}function getScenarioResult(_0x301fa4){const _0x362ab6=_0x4ac12b,_0x15ae2a={'JZhQa':_0x362ab6(0x1b8)};if(_0x301fa4['status']===_0x362ab6(0x1cd))return _0x301fa4[_0x362ab6(0x21c)]??_0x362ab6(0x1cd);if(_0x301fa4[_0x362ab6(0x184)]===_0x15ae2a['JZhQa'])return _0x362ab6(0x1c8);return _0x301fa4[_0x362ab6(0x184)];}function getScenarioRationale(_0x21055a,_0x315ba9){const _0x3f1f59=_0x4ac12b,_0x35c0d4=_0x3f1f59(0x238)[_0x3f1f59(0x229)]('|');let _0x27a7ec=0x0;while(!![]){switch(_0x35c0d4[_0x27a7ec++]){case'0':if(_0x21055a[_0x3f1f59(0x1ac)])return _0x21055a[_0x3f1f59(0x1ac)];continue;case'1':if(_0x21055a['incompleteReason'])return _0x21055a[_0x3f1f59(0x1f7)];continue;case'2':if(_0x21055a['notes'])return _0x21055a['notes'];continue;case'3':if(_0x21055a[_0x3f1f59(0x24b)])return _0x21055a[_0x3f1f59(0x24b)];continue;case'4':if(_0x315ba9)return _0x315ba9;continue;case'5':return null;}break;}}export async function featureReportPrDescription(_0x58ccf9,_0x1c3dba){const _0x1d5a46=_0x4ac12b,_0x29c782={'qBEbZ':function(_0x343e72,_0x2a5dd2){return _0x343e72===_0x2a5dd2;},'FmbNP':_0x1d5a46(0x189),'Olqgx':'\x0aAvailable\x20scenarios:','yRfTW':function(_0x1f87dd,_0x8e741c,_0x2ed43b,_0x487750){return _0x1f87dd(_0x8e741c,_0x2ed43b,_0x487750);}},_0x5d4853=_0x58ccf9||await getActiveFeatureId();if(!_0x5d4853)throw new Error(_0x1d5a46(0x23a));const _0x50cdca=await getFeature(_0x5d4853),_0x45d9ab=_0x50cdca[_0x1d5a46(0x235)]||[],_0x433e6d=getCurrentSessionItems(_0x50cdca,_0x45d9ab);_0x29c782[_0x1d5a46(0x20f)](_0x433e6d[_0x1d5a46(0x195)],0x0)&&(console['error'](_0x29c782[_0x1d5a46(0x179)]),process['exit'](0x1));const _0x467917=_0x1c3dba['excludeScenarios']??[],_0x423f51=_0x467917['filter'](_0x37ab8b=>!Number['isInteger'](_0x37ab8b)||_0x37ab8b<0x1||_0x37ab8b>_0x433e6d[_0x1d5a46(0x195)]);if(_0x423f51['length']>0x0){console['error'](_0x1d5a46(0x1fa)+_0x423f51['join'](',\x20')),console['log'](_0x29c782[_0x1d5a46(0x196)]);for(let _0xc3cee5=0x0;_0xc3cee5<_0x433e6d[_0x1d5a46(0x195)];_0xc3cee5++){console['log']('\x20\x20'+(_0xc3cee5+0x1)+'.\x20'+_0x433e6d[_0xc3cee5]['description']);}process['exit'](0x1);}const _0x4f0763=new Set(_0x467917[_0x1d5a46(0x192)](_0x5deaea=>_0x5deaea-0x1)),_0x30cd26=_0x433e6d['filter']((_0x8d6953,_0x4443dc)=>!_0x4f0763['has'](_0x4443dc));_0x29c782[_0x1d5a46(0x20f)](_0x30cd26['length'],0x0)&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x1d5a46(0x1a4)](0x1));if(_0x1c3dba[_0x1d5a46(0x201)])await _0x29c782[_0x1d5a46(0x1e0)](outputJsonReport,_0x5d4853,_0x50cdca,_0x30cd26);else{const _0x5bb4d6=await getFeatureReportMarkdown(_0x5d4853,{'itemIds':_0x30cd26[_0x1d5a46(0x192)](_0x55fd0f=>_0x55fd0f['id'])});process['stdout'][_0x1d5a46(0x18e)](_0x5bb4d6[_0x1d5a46(0x219)]()+'\x0a');}}async function outputJsonReport(_0x18512c,_0x1ebf24,_0x6f061f){const _0x26ab54=_0x4ac12b,_0x287144={'AKHJI':function(_0x2ebe38,_0x6b5cd5){return _0x2ebe38>_0x6b5cd5;},'wUJst':function(_0x1460da,_0xe73b80){return _0x1460da===_0xe73b80;},'iJiBA':function(_0x50c9e9,_0x5c2508){return _0x50c9e9(_0x5c2508);},'JDNaa':function(_0x6b508f,_0x847a1f,_0x1d294b){return _0x6b508f(_0x847a1f,_0x1d294b);},'dzdzS':function(_0x540d1c,_0x154fb2){return _0x540d1c(_0x154fb2);}},_0x19ce8b=getApiBaseUrl(),_0x5afa3c=await _0x287144['dzdzS'](getFeatureReport,_0x18512c),_0x41fea2=new Map(_0x5afa3c[_0x26ab54(0x235)]['map'](_0x14032b=>[_0x14032b['id'],_0x14032b])),_0x2f83fa=await Promise['all'](_0x6f061f['map'](async _0x2b52f1=>{const _0x4ab014=_0x26ab54,_0x497048=_0x41fea2['get'](_0x2b52f1['id']),_0x123e84=_0x497048?.['linkedSession']??null;let _0x188762=[];if(_0x2b52f1[_0x4ab014(0x1e9)])try{const {steps:_0x305aee}=await getBrowserSessionSteps(_0x2b52f1[_0x4ab014(0x1e9)]);_0x287144['AKHJI'](_0x305aee[_0x4ab014(0x195)],0x0)&&(_0x188762=_0x305aee[_0x4ab014(0x192)](_0x9539be=>{const _0xf4f425=_0x4ab014,_0x33c150=_0x9539be[_0xf4f425(0x1a1)]['find'](_0x2b585d=>_0x2b585d['assetType']===_0xf4f425(0x16e)&&_0x2b585d['timing']==='after')??_0x9539be['assets']['find'](_0x192b94=>_0x192b94['assetType']===_0xf4f425(0x16e));let _0x4dd142=null,_0x11b09c=null;if(_0x33c150){const _0x3172b1=_0x33c150['storage'][_0xf4f425(0x1b5)][_0xf4f425(0x229)]('/')['pop']();_0x4dd142=_0x19ce8b+_0xf4f425(0x176)+_0x2b52f1['browserSessionId']+_0xf4f425(0x1ad)+_0x3172b1,_0x3172b1&&(_0x11b09c=_0x3172b1[_0xf4f425(0x1bf)](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0xf4f425(0x1bf)](/[-_]/g,'\x20'));}return{'description':_0x11b09c||_0x9539be[_0xf4f425(0x1a8)]||_0x9539be['stepName']||'Step\x20'+_0x9539be[_0xf4f425(0x21f)],'screenshot':_0x4dd142,'is_key_step':_0x9539be[_0xf4f425(0x23d)]};}));}catch{}return _0x287144[_0x4ab014(0x1a2)](_0x188762['length'],0x0)&&_0x123e84?.['screenshotUrls']&&(_0x188762=_0x123e84['screenshotUrls']['map']((_0x2488a3,_0x219db3)=>({'description':'Screenshot\x20'+(_0x219db3+0x1),'screenshot':_0x2488a3,'is_key_step':![]}))),{'description':_0x2b52f1['description'],'result':_0x287144['iJiBA'](getScenarioResult,_0x2b52f1),'rationale':_0x287144['JDNaa'](getScenarioRationale,_0x2b52f1,_0x123e84?.['agentResponse']),'steps':_0x188762};})),_0x2e98ed={'url':_0x1ebf24['dashboardUrl'],'scenarios':_0x2f83fa};process[_0x26ab54(0x1aa)][_0x26ab54(0x18e)](JSON[_0x26ab54(0x1e1)](_0x2e98ed,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x450fcb){const _0x2b3571=_0x4ac12b,_0x1c2a05={'ZBhso':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','PdlKO':_0x2b3571(0x21b),'okKmb':function(_0x3dbba2,_0x6087c0){return _0x3dbba2!==_0x6087c0;}},_0x5d92a5=_0x450fcb||await getActiveFeatureId();if(!_0x5d92a5)throw new Error(_0x1c2a05['ZBhso']);const _0xe38709=await getFeature(_0x5d92a5);if(!_0xe38709['currentSessionId'])throw new Error(_0x2b3571(0x1e7));const {sessions:_0x5e701b}=await listFeatureSessions(_0x5d92a5),_0x4c010b=_0x5e701b['find'](_0x35c3d6=>_0x35c3d6['id']===_0xe38709['currentSessionId']);if(!_0x4c010b)throw new Error('Current\x20session\x20not\x20found.');if(_0x4c010b['status']===_0x2b3571(0x252)){console[_0x2b3571(0x16f)](_0x1c2a05[_0x2b3571(0x246)]);return;}if(_0x1c2a05[_0x2b3571(0x19b)](_0x4c010b['status'],'in_progress'))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x4c010b['status']);console['log']('\x0aConcluding\x20session...'),await concludeSession(_0x5d92a5,_0xe38709[_0x2b3571(0x250)]),console['log']('\x0a✅\x20Session\x20'+_0x4c010b['iteration']+_0x2b3571(0x19e)),console[_0x2b3571(0x16f)](_0x2b3571(0x251));}export async function featureSessions(_0x58660f){const _0x3a14c1=_0x4ac12b,_0x3c1401={'TryRo':function(_0x3f1410){return _0x3f1410();},'JEHXM':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','gSDTA':function(_0x2f8438,_0x4f8a09){return _0x2f8438(_0x4f8a09);},'rzulx':function(_0x4142c3,_0x559ffa){return _0x4142c3===_0x559ffa;},'OBlXm':'No\x20sessions\x20found.','pKSvy':function(_0x499b85,_0x168a31){return _0x499b85===_0x168a31;},'lyjvR':_0x3a14c1(0x252)},_0xe083a7=_0x58660f||await _0x3c1401[_0x3a14c1(0x209)](getActiveFeatureId);if(!_0xe083a7)throw new Error(_0x3c1401[_0x3a14c1(0x20b)]);const _0x1413b9=await _0x3c1401['gSDTA'](getFeature,_0xe083a7);console[_0x3a14c1(0x16f)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x1413b9['name']+'\x0a');const {sessions:_0x10aebc}=await listFeatureSessions(_0xe083a7);if(_0x3c1401['rzulx'](_0x10aebc['length'],0x0)){console[_0x3a14c1(0x16f)](_0x3c1401['OBlXm']);return;}for(const _0xb34066 of _0x10aebc){const _0x41ef6a=_0x3c1401[_0x3a14c1(0x20a)](_0xb34066[_0x3a14c1(0x184)],_0x3c1401['lyjvR'])?'✅':_0xb34066['status']===_0x3a14c1(0x1c8)?'🔄':'▶️';console[_0x3a14c1(0x16f)](_0x41ef6a+_0x3a14c1(0x220)+_0xb34066['iteration']+'\x20('+_0xb34066['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0xb34066['status']),console[_0x3a14c1(0x16f)](_0x3a14c1(0x20c)+new Date(_0xb34066[_0x3a14c1(0x1a9)])['toLocaleString']()),_0xb34066[_0x3a14c1(0x215)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0xb34066['completedAt'])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x2c95ec,_0x4d3fe5){const _0x21b03a=_0x4ac12b,_0x3132cb=_0x4d3fe5||await getActiveFeatureId();if(!_0x3132cb)throw new Error(_0x21b03a(0x193));const _0x533573=await getFeature(_0x3132cb);if(_0x533573['latestReview']&&!_0x533573['latestReview']['submittedAt'])throw new Error(_0x21b03a(0x1b1)+_0x533573[_0x21b03a(0x1fe)]);await createChecklistItem(_0x3132cb,_0x2c95ec);const _0x4ba252=await getFeature(_0x3132cb);console[_0x21b03a(0x16f)](_0x21b03a(0x1c7)),displayFeature(_0x4ba252,_0x4ba252['checklistItems']);}export async function featureEditScenario(_0x2ee9bc,_0x1d17c5){const _0x5c56b3=_0x4ac12b,_0x45d897={'afknK':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','yyHCE':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','KFvlh':_0x5c56b3(0x1ba),'PQruf':'\x0aAvailable\x20scenarios:','wCQij':function(_0xbb28d9,_0x3885c9){return _0xbb28d9+_0x3885c9;},'GiGqN':function(_0x98356e,_0x238f5b){return _0x98356e<_0x238f5b;},'tBGUy':function(_0x14269d,_0x3a0b39){return _0x14269d>=_0x3a0b39;},'yXYyt':function(_0x4b2d45,_0x21676f){return _0x4b2d45+_0x21676f;},'OiGrk':function(_0x198a9f,_0x235f51){return _0x198a9f(_0x235f51);},'xWskA':function(_0xb1a484,_0x37d881,_0x471c63){return _0xb1a484(_0x37d881,_0x471c63);}},_0x3d57ba=_0x1d17c5['id']||await getActiveFeatureId();!_0x3d57ba&&(console['error'](_0x45d897['afknK']),console[_0x5c56b3(0x21a)](_0x45d897[_0x5c56b3(0x18a)]),process[_0x5c56b3(0x1a4)](0x1));const _0x58c772=await getFeature(_0x3d57ba);_0x58c772[_0x5c56b3(0x1e5)]&&!_0x58c772['latestReview'][_0x5c56b3(0x170)]&&(console[_0x5c56b3(0x21a)](_0x5c56b3(0x18c)),console['error'](_0x45d897[_0x5c56b3(0x212)]),console['error']('\x20\x20'+_0x58c772['dashboardUrl']),process[_0x5c56b3(0x1a4)](0x1));const _0x1259eb=_0x58c772['checklistItems']||[];_0x1259eb['length']===0x0&&(console[_0x5c56b3(0x21a)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x1d17c5['scenario']===undefined){console[_0x5c56b3(0x21a)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x45d897['PQruf']);for(let _0x6bbc4d=0x0;_0x6bbc4d<_0x1259eb[_0x5c56b3(0x195)];_0x6bbc4d++){console[_0x5c56b3(0x16f)]('\x20\x20'+_0x45d897[_0x5c56b3(0x1da)](_0x6bbc4d,0x1)+'.\x20'+_0x1259eb[_0x6bbc4d][_0x5c56b3(0x1a8)]);}process['exit'](0x1);}const _0x22ff73=_0x1d17c5['scenario']-0x1;if(_0x45d897['GiGqN'](_0x22ff73,0x0)||_0x45d897[_0x5c56b3(0x1bd)](_0x22ff73,_0x1259eb['length'])){console['error'](_0x5c56b3(0x206)+_0x1d17c5['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x1259eb[_0x5c56b3(0x195)]+'\x20scenarios.'),console[_0x5c56b3(0x16f)](_0x45d897['PQruf']);for(let _0x3b0881=0x0;_0x3b0881<_0x1259eb[_0x5c56b3(0x195)];_0x3b0881++){console[_0x5c56b3(0x16f)]('\x20\x20'+_0x45d897[_0x5c56b3(0x16a)](_0x3b0881,0x1)+'.\x20'+_0x1259eb[_0x3b0881]['description']);}process['exit'](0x1);}const _0x3b8fbe=_0x1259eb[_0x22ff73];await updateChecklistItem(_0x3d57ba,_0x3b8fbe['id'],{'description':_0x2ee9bc});const _0x4c7d58=await _0x45d897[_0x5c56b3(0x1ee)](getFeature,_0x3d57ba);console['log'](_0x5c56b3(0x21d)),_0x45d897['xWskA'](displayFeature,_0x4c7d58,_0x4c7d58['checklistItems']);}async function downloadFeedbackImage(_0x39edee,_0x34a0f3){const _0x585d97=_0x4ac12b,_0x190c52={'QstQK':function(_0x3dc84c,_0x54c5c4,_0x30942f){return _0x3dc84c(_0x54c5c4,_0x30942f);},'oMzjB':function(_0x27847a,_0x1736d2,_0x12b2dd){return _0x27847a(_0x1736d2,_0x12b2dd);}};try{const _0x149fdb=_0x190c52[_0x585d97(0x1bb)](join,getRangerDir(),'feedback-images');await _0x190c52[_0x585d97(0x17d)](mkdir,_0x149fdb,{'recursive':!![]});const _0x2c31be=join(_0x149fdb,_0x585d97(0x22d)+_0x34a0f3+_0x585d97(0x23e)),_0xdf96f5=await fetch(_0x39edee);if(!_0xdf96f5['ok'])return null;const _0x58831c=Buffer[_0x585d97(0x1a3)](await _0xdf96f5['arrayBuffer']());return await writeFile(_0x2c31be,_0x58831c),_0x2c31be;}catch{return null;}}export async function featureGetReview(_0x105822){const _0x2b300f=_0x4ac12b,_0xbe66f9={'PFAvS':function(_0x4a9894){return _0x4a9894();},'TVztY':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','TVJao':function(_0xd06d11,_0x5f41b6){return _0xd06d11(_0x5f41b6);},'rpPyd':function(_0x5f54d9,_0x65e8d4){return _0x5f54d9>_0x65e8d4;},'jVnAT':_0x2b300f(0x186),'aPdnN':function(_0x1d1b2a,_0x5e3662,_0x1ccab2){return _0x1d1b2a(_0x5e3662,_0x1ccab2);},'XxRQm':_0x2b300f(0x22e),'djvTu':_0x2b300f(0x210),'fOWSG':function(_0x41c1c3,_0x422ca3){return _0x41c1c3>=_0x422ca3;},'Jfrow':function(_0x1f1433,_0x40d65e){return _0x1f1433+_0x40d65e;}},_0x54de27=_0x105822||await _0xbe66f9[_0x2b300f(0x1e6)](getActiveFeatureId);if(!_0x54de27)throw new Error(_0xbe66f9[_0x2b300f(0x177)]);const _0xbc1428=await getFeature(_0x54de27),{items:_0x4e60f5}=await _0xbe66f9['TVJao'](getActionItems,_0x54de27);console[_0x2b300f(0x16f)](_0x2b300f(0x245)+_0xbc1428['name']+'\x20('+_0xbc1428['id']+')\x0a');if(_0x4e60f5[_0x2b300f(0x195)]===0x0){console[_0x2b300f(0x16f)](_0x2b300f(0x18b));return;}for(let _0x2efa9f=0x0;_0x2efa9f<_0x4e60f5[_0x2b300f(0x195)];_0x2efa9f++){const _0xbfbde3=_0x4e60f5[_0x2efa9f],_0x3534ce=_0xbfbde3[_0x2b300f(0x203)]>0x1?_0x2b300f(0x216)+_0xbfbde3[_0x2b300f(0x203)]+')':'',_0x11cbd3=await getItemFeedback(_0x54de27,_0xbfbde3['id']);if(_0xbe66f9['rpPyd'](_0x11cbd3[_0x2b300f(0x1c2)][_0x2b300f(0x195)],0x0)){console['log']('Scenario\x20'+(_0x2efa9f+0x1)+_0x2b300f(0x1f4)+_0xbfbde3['description']+'\x22'+_0x3534ce+'\x20—\x20'+_0x11cbd3['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x52a0a5 of _0x11cbd3['unaddressedComments']){const _0x40c02c=new Date(_0x52a0a5[_0x2b300f(0x1a9)])['toLocaleDateString'](_0xbe66f9['jVnAT'],{'month':_0x2b300f(0x19c),'day':'numeric'}),_0x1411f0=_0x52a0a5['authorName']||_0x52a0a5['authorEmail']||_0x2b300f(0x1d3);console['log']('\x20\x20💬\x20'+_0x1411f0+'\x20('+_0x40c02c+'):\x20\x22'+_0x52a0a5['content']+'\x22');if(_0x52a0a5['assetUrl']){const _0x26d702=await _0xbe66f9[_0x2b300f(0x1ef)](downloadFeedbackImage,_0x52a0a5[_0x2b300f(0x222)],_0x52a0a5['id']);_0x26d702&&console[_0x2b300f(0x16f)](_0x2b300f(0x240)+_0x26d702);}if(_0x52a0a5['domRef']){const _0x1f1f91=_0x52a0a5['domRef'][_0x2b300f(0x1d1)][_0x2b300f(0x229)](_0xbe66f9[_0x2b300f(0x223)])[_0x2b300f(0x1f8)]()?.['split'](':')[0x0]||_0xbe66f9['djvTu'],_0x415059=_0x52a0a5[_0x2b300f(0x1b0)][_0x2b300f(0x208)]?'\x20\x22'+_0x52a0a5['domRef']['textContent'][_0x2b300f(0x204)](0x0,0x3c)+'\x22':'';console['log'](_0x2b300f(0x1ae)+_0x1f1f91+'>'+_0x415059),console[_0x2b300f(0x16f)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x52a0a5[_0x2b300f(0x1b0)][_0x2b300f(0x1d1)]);}else{if(_0x52a0a5[_0x2b300f(0x1ff)]){const _0x3b8a1f=_0x52a0a5['spatial'][_0x2b300f(0x1db)];_0x52a0a5[_0x2b300f(0x1ff)]['type']===_0x2b300f(0x1b7)&&_0xbe66f9[_0x2b300f(0x1ea)](_0x3b8a1f[_0x2b300f(0x195)],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x3b8a1f[0x0]['toFixed'](0x2)+',\x20'+_0x3b8a1f[0x1][_0x2b300f(0x1fc)](0x2)+')'):console[_0x2b300f(0x16f)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x52a0a5[_0x2b300f(0x1ff)][_0x2b300f(0x23c)]+'\x20at\x20['+_0x3b8a1f[_0x2b300f(0x192)](_0x333a59=>_0x333a59[_0x2b300f(0x1fc)](0x2))[_0x2b300f(0x1ce)](',\x20')+']');}}}if(_0x11cbd3[_0x2b300f(0x242)]){console['log'](_0x2b300f(0x234));for(const _0x437207 of _0x11cbd3[_0x2b300f(0x242)][_0x2b300f(0x229)]('\x0a')){console[_0x2b300f(0x16f)](_0x2b300f(0x194)+_0x437207);}}}else console[_0x2b300f(0x16f)](_0x2b300f(0x22f)+_0xbe66f9['Jfrow'](_0x2efa9f,0x1)+_0x2b300f(0x1f4)+_0xbfbde3[_0x2b300f(0x1a8)]+'\x22'+_0x3534ce+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x2b300f(0x16f)]('');}}export async function featureDelete(_0x4da950){const _0x59b07a=_0x4ac12b,_0x4ab3e0={'nOVxq':function(_0x386bc4){return _0x386bc4();},'IjSKs':function(_0x1f4a8d,_0x5a2308){return _0x1f4a8d(_0x5a2308);},'oILIP':_0x59b07a(0x24c)},_0x380dd2=_0x4da950||await _0x4ab3e0[_0x59b07a(0x187)](getActiveFeatureId);if(!_0x380dd2)throw new Error(_0x59b07a(0x193));const _0x2ad4b8=await getFeature(_0x380dd2);await _0x4ab3e0[_0x59b07a(0x23b)](softDeleteFeature,_0x380dd2),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x2ad4b8[_0x59b07a(0x205)]+'\x20('+_0x380dd2+')'),console[_0x59b07a(0x16f)](_0x4ab3e0[_0x59b07a(0x181)]+_0x380dd2);}export async function featureRestore(_0x35ed22){const _0x4c58e8=_0x4ac12b,_0x8ac80a={'GBkAl':function(_0x19062e,_0x10b0db){return _0x19062e(_0x10b0db);},'iTSRJ':function(_0x40bd96,_0x56ebec,_0xcd03bf){return _0x40bd96(_0x56ebec,_0xcd03bf);}};await _0x8ac80a[_0x4c58e8(0x228)](restoreFeature,_0x35ed22);const _0x4a5fa7=await getFeature(_0x35ed22);console['log'](_0x4c58e8(0x19f)+_0x4a5fa7[_0x4c58e8(0x205)]+'\x20('+_0x35ed22+')'),_0x8ac80a['iTSRJ'](displayFeature,_0x4a5fa7,_0x4a5fa7['checklistItems']);}
|
|
1
|
+
const _0x38484d=_0x434d;(function(_0x27be0e,_0x4b0c2e){const _0x148c1c=_0x434d,_0x4a6240=_0x27be0e();while(!![]){try{const _0x4ea8f8=-parseInt(_0x148c1c(0x1d5))/0x1+-parseInt(_0x148c1c(0x1b4))/0x2*(parseInt(_0x148c1c(0x1b9))/0x3)+-parseInt(_0x148c1c(0x212))/0x4*(parseInt(_0x148c1c(0x264))/0x5)+-parseInt(_0x148c1c(0x254))/0x6+parseInt(_0x148c1c(0x1df))/0x7*(parseInt(_0x148c1c(0x258))/0x8)+parseInt(_0x148c1c(0x24e))/0x9+-parseInt(_0x148c1c(0x261))/0xa*(-parseInt(_0x148c1c(0x266))/0xb);if(_0x4ea8f8===_0x4b0c2e)break;else _0x4a6240['push'](_0x4a6240['shift']());}catch(_0x5046b7){_0x4a6240['push'](_0x4a6240['shift']());}}}(_0x580f,0xc697f));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x28f351 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';function _0x434d(_0x445de8,_0x4bcfad){_0x445de8=_0x445de8-0x1a9;const _0x580f54=_0x580f();let _0x434de9=_0x580f54[_0x445de8];return _0x434de9;}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=_0x38484d(0x26d),bold=_0x5ea521=>_0x38484d(0x1ae)+_0x5ea521+_0x38484d(0x219);function getGitRepoUrl(){const _0x3a15cf=_0x38484d,_0xc99143={'XjBuQ':function(_0xaf1a27,_0x17d120,_0x37979f){return _0xaf1a27(_0x17d120,_0x37979f);},'BymzY':'git\x20remote\x20get-url\x20origin','Zgvem':'utf-8','RFRaf':_0x3a15cf(0x278)};try{const _0x204410=_0xc99143[_0x3a15cf(0x26a)](execSync,_0xc99143['BymzY'],{'encoding':_0xc99143['Zgvem'],'stdio':[_0x3a15cf(0x278),_0x3a15cf(0x278),_0xc99143[_0x3a15cf(0x1d0)]]})['trim']();return _0x204410[_0x3a15cf(0x1f5)](/\.git$/,'')[_0x3a15cf(0x1f5)](/^git@github\.com:/,_0x3a15cf(0x1f0))[_0x3a15cf(0x1f5)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x5c732f=_0x38484d,_0x2189c5={'ExPqf':function(_0x486b0d,_0x4087c1,_0x5a293f){return _0x486b0d(_0x4087c1,_0x5a293f);},'pgWrl':_0x5c732f(0x1e7),'uTRvi':'utf-8','hhyzV':'pipe'};try{return _0x2189c5['ExPqf'](execSync,_0x2189c5['pgWrl'],{'encoding':_0x2189c5[_0x5c732f(0x276)],'stdio':[_0x2189c5['hhyzV'],_0x2189c5['hhyzV'],_0x2189c5['hhyzV']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x3b314e=_0x38484d,_0x51f7e6={'gPecM':function(_0x1b1ef9,_0xc56620,_0x5765e0){return _0x1b1ef9(_0xc56620,_0x5765e0);},'adQky':function(_0xf98e49,_0x1f71e6){return _0xf98e49(_0x1f71e6);}},_0x163b9d=_0x51f7e6['gPecM'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x51f7e6[_0x3b314e(0x238)](existsSync,_0x163b9d))return null;try{const _0x572980=await readFile(_0x163b9d,'utf-8');return _0x572980[_0x3b314e(0x1c0)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x2aa543){const _0xc26a7d=_0x38484d,_0x164ce4={'FlSXa':function(_0x6d0f6a,_0x4bedd3,_0x5d90a7){return _0x6d0f6a(_0x4bedd3,_0x5d90a7);},'YRYBn':function(_0x4c6ebb,_0x534558,_0x39610d,_0x68ddb6){return _0x4c6ebb(_0x534558,_0x39610d,_0x68ddb6);}},_0x183e81=getRangerDir(),_0xbdda91=join(_0x183e81,ACTIVE_FEATURE_FILE);!existsSync(_0x183e81)&&await _0x164ce4['FlSXa'](mkdir,_0x183e81,{'recursive':!![]}),await _0x164ce4['YRYBn'](writeFile,_0xbdda91,_0x2aa543,_0xc26a7d(0x1e9));}function getProgressDisplay(_0x2a0690){const _0x3e8fc2=_0x38484d,_0xf20d1a={'dMkvO':function(_0x51c75f,_0x38e126){return _0x51c75f+_0x38e126;},'UMQQy':function(_0x55f26b,_0x3bee6b){return _0x55f26b*_0x3bee6b;},'uknpa':function(_0x34c6e0,_0x566554){return _0x34c6e0/_0x566554;},'VwBnZ':function(_0x13ae18,_0x58c902){return _0x13ae18+_0x58c902;},'KjByi':function(_0x227ccd,_0x5bdb07){return _0x227ccd-_0x5bdb07;},'nCAgn':function(_0x1e3991,_0x232be6){return _0x1e3991>_0x232be6;},'jnerF':function(_0x5c7a64,_0x20e6b9){return _0x5c7a64>_0x20e6b9;}},_0x1af63b=_0x2a0690[_0x3e8fc2(0x247)]||0x0,_0x33a618=_0x2a0690[_0x3e8fc2(0x263)]||0x0,_0x2a3b86=_0x2a0690[_0x3e8fc2(0x223)]||0x0,_0x5b9d85=_0x2a0690[_0x3e8fc2(0x1d6)]||0x0,_0xe74943=_0x2a0690['pendingItems']||0x0,_0x2481ab=_0xf20d1a['dMkvO'](_0xf20d1a['dMkvO'](_0x1af63b,_0x33a618),_0x2a3b86)+_0x5b9d85+_0xe74943;if(_0x2481ab===0x0)return'-';const _0x3a915b=0xa,_0x3b03f3=Math['round'](_0xf20d1a['UMQQy'](_0xf20d1a[_0x3e8fc2(0x1b8)](_0x1af63b,_0x2481ab),_0x3a915b)),_0x11a87b=_0xf20d1a[_0x3e8fc2(0x229)]('█'[_0x3e8fc2(0x1f6)](_0x3b03f3),'░'[_0x3e8fc2(0x1f6)](_0xf20d1a['KjByi'](_0x3a915b,_0x3b03f3))),_0x3c3320=[];if(_0x2a3b86>0x0)_0x3c3320[_0x3e8fc2(0x25e)](_0x2a3b86+'\x20blocked');if(_0xf20d1a['nCAgn'](_0x5b9d85,0x0))_0x3c3320['push'](_0x5b9d85+'\x20incomplete');if(_0xf20d1a['jnerF'](_0x33a618,0x0))_0x3c3320['push'](_0x33a618+_0x3e8fc2(0x242));const _0x42233a=_0x3c3320['length']>0x0?'\x20('+_0x3c3320['join'](',\x20')+')':'';return _0x11a87b+'\x20'+_0x1af63b+'/'+_0x2481ab+'\x20verified'+_0x42233a;}function getCurrentSessionItems(_0x3e6f1a,_0x313563){const _0x4796f5=_0x38484d;if(!_0x3e6f1a['currentSessionId'])return _0x313563[_0x4796f5(0x218)](_0x59c832=>!_0x59c832['sessionId']);return _0x313563['filter'](_0x4caf8b=>_0x4caf8b[_0x4796f5(0x1b1)]===_0x3e6f1a[_0x4796f5(0x243)]||!_0x4caf8b[_0x4796f5(0x1b1)]);}function displayFeature(_0x2421dd,_0x4d7431){const _0x445080=_0x38484d,_0x455f90={'oyTUj':function(_0x3bf397,_0x3100b8){return _0x3bf397(_0x3100b8);},'WlBfz':_0x445080(0x216),'XTLxd':_0x445080(0x1c1),'QrGIE':function(_0x5e39b4,_0x2917eb){return _0x5e39b4===_0x2917eb;},'iBfDh':'verified','pyVfs':function(_0x21a0d2,_0x131d65){return _0x21a0d2===_0x131d65;},'ruEIX':'incomplete','ccwvR':function(_0x2db7bd,_0x2de13a){return _0x2db7bd===_0x2de13a;},'GAkAB':'blocked','bMIJX':function(_0xc0f30a,_0x2980be){return _0xc0f30a>_0x2980be;},'ozSEZ':function(_0x151861,_0x970729){return _0x151861>_0x970729;},'HBdtw':function(_0x37ac5b,_0x5d5224){return _0x37ac5b!==_0x5d5224;},'dHlUJ':function(_0x2aee13,_0x5edaf4){return _0x2aee13===_0x5edaf4;}};console['log']('\x0a'+_0x2421dd[_0x445080(0x1bb)]+'\x20('+_0x2421dd[_0x445080(0x1d7)]+')');_0x2421dd[_0x445080(0x21c)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x455f90['oyTUj'](getProgressDisplay,_0x2421dd['stats']));_0x2421dd[_0x445080(0x235)]&&console[_0x445080(0x1ec)](_0x445080(0x1e5)+_0x2421dd['description']);_0x2421dd['gitRepoUrl']&&console['log'](_0x445080(0x27c)+_0x2421dd[_0x445080(0x24f)]);_0x2421dd[_0x445080(0x1be)]&&console[_0x445080(0x1ec)](_0x445080(0x1cf)+_0x2421dd[_0x445080(0x1be)]);console[_0x445080(0x1ec)]('\x20\x20\x20Created:\x20'+new Date(_0x2421dd['createdAt'])[_0x445080(0x1b7)]());_0x2421dd['completedAt']&&console[_0x445080(0x1ec)]('\x20\x20\x20Completed:\x20'+new Date(_0x2421dd['completedAt'])['toLocaleString']());if(_0x4d7431&&_0x4d7431['length']>0x0){console['log'](_0x445080(0x1d3));for(let _0x18a512=0x0;_0x18a512<_0x4d7431['length'];_0x18a512++){const _0x3fc9cd=_0x4d7431[_0x18a512];let _0xda0f12;if(_0x3fc9cd['status']===_0x455f90[_0x445080(0x221)]&&_0x3fc9cd['terminalReason']===_0x455f90[_0x445080(0x1c8)])_0xda0f12='✅';else{if(_0x455f90['QrGIE'](_0x3fc9cd[_0x445080(0x1cc)],_0x455f90[_0x445080(0x282)]))_0xda0f12='🟢';else{if(_0x455f90['pyVfs'](_0x3fc9cd[_0x445080(0x1cc)],_0x455f90['ruEIX']))_0xda0f12='🟠';else{if(_0x455f90['ccwvR'](_0x3fc9cd[_0x445080(0x1cc)],_0x455f90[_0x445080(0x287)]))_0xda0f12='🛑';else{if(_0x455f90[_0x445080(0x285)](_0x3fc9cd['status'],_0x455f90[_0x445080(0x221)]))_0xda0f12='⛔';else _0x3fc9cd['status']==='verification_in_progress'?_0xda0f12='⏳':_0xda0f12='⬜';}}}}const _0x31072a=_0x455f90['bMIJX'](_0x3fc9cd[_0x445080(0x245)],0x1)?_0x445080(0x25c)+_0x3fc9cd['version']+')':'',_0x2fd890=_0x455f90[_0x445080(0x27e)](_0x3fc9cd['version'],0x1)&&_0x3fc9cd['parentItemId']&&_0x455f90[_0x445080(0x1d2)](_0x3fc9cd['status'],_0x455f90[_0x445080(0x221)])&&_0x3fc9cd[_0x445080(0x1cc)]!==_0x455f90['iBfDh']?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+(_0x18a512+0x1)+'.\x20'+_0xda0f12+'\x20'+_0x3fc9cd[_0x445080(0x235)]+_0x31072a+_0x2fd890);_0x455f90[_0x445080(0x25f)](_0x3fc9cd['status'],_0x455f90['GAkAB'])&&_0x3fc9cd['blockedReason']&&console[_0x445080(0x1ec)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x3fc9cd[_0x445080(0x279)]);_0x455f90['dHlUJ'](_0x3fc9cd[_0x445080(0x1cc)],_0x455f90['ruEIX'])&&_0x3fc9cd[_0x445080(0x233)]&&console['log'](_0x445080(0x1b5)+_0x3fc9cd[_0x445080(0x233)]);if(_0x455f90['dHlUJ'](_0x3fc9cd['status'],_0x455f90[_0x445080(0x221)])&&_0x455f90['ccwvR'](_0x3fc9cd['terminalReason'],_0x455f90['XTLxd']))console['log'](_0x445080(0x1bc));else _0x3fc9cd[_0x445080(0x1cc)]===_0x455f90['WlBfz']&&_0x3fc9cd[_0x445080(0x25d)]&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x3fc9cd['canceledReason']);}}}export async function featureCreate(_0x4c3eda,_0x460670){const _0xe20f35=_0x38484d,_0x39df7a={'uRHQP':function(_0x2af243,_0x5695f0){return _0x2af243===_0x5695f0;},'iqbSd':function(_0x4f8987,_0x3b3396){return _0x4f8987(_0x3b3396);},'PhwxU':function(_0x31bc88,_0x80f42f){return _0x31bc88(_0x80f42f);},'DjhRt':function(_0x454ab7,_0x85d648,_0x37ab3a){return _0x454ab7(_0x85d648,_0x37ab3a);}},{envNames:_0xd559ce}=await getEnvNames();if(_0x39df7a['uRHQP'](_0xd559ce[_0xe20f35(0x213)],0x0)&&!process['env'][_0xe20f35(0x1f1)]){let _0x533441=0x0;try{_0x533441=(await listCloudProfiles())[_0xe20f35(0x213)];}catch{_0x533441=0x1;}_0x39df7a[_0xe20f35(0x1d9)](_0x533441,0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x393032=>bold(_0x393032)));}const _0x5bcb60=_0x460670['scenarios']?_0x460670[_0xe20f35(0x209)]['map'](_0x5ab192=>_0x5ab192['trim']()):[],_0x1e113f=getGitRepoUrl(),_0x19ffa2=getGitBranch();console[_0xe20f35(0x1ec)]('\x0aCreating\x20feature\x20review...');const _0x305119=await createFeature({'name':_0x4c3eda,'description':_0x460670['description'],'checklist':_0x5bcb60,'gitRepoUrl':_0x1e113f,'gitBranch':_0x19ffa2});await _0x39df7a['iqbSd'](setActiveFeatureId,_0x305119['id']),await _0x39df7a[_0xe20f35(0x1c6)](tryStartCurrentSession,_0x305119['id']);const _0x440300=process['env'][_0xe20f35(0x22f)];_0x440300&®isterSession(_0x440300,_0x305119['id']),console[_0xe20f35(0x1ec)](_0xe20f35(0x22b)+_0x305119['id']),_0x39df7a[_0xe20f35(0x237)](displayFeature,_0x305119,_0x305119[_0xe20f35(0x1f8)]),console['log'](_0xe20f35(0x259));}export async function featureList(_0x59b38b){const _0x22bd3c=_0x38484d,_0x135e0c={'ehBbv':function(_0x5c7406){return _0x5c7406();},'Rdtyr':function(_0x583cc0,_0x4cb1e1){return _0x583cc0(_0x4cb1e1);},'XcCTU':_0x22bd3c(0x21b),'JsCgM':function(_0x2e19cb,_0x11097d){return _0x2e19cb>_0x11097d;},'fSoHp':_0x22bd3c(0x1ee)},_0x15e0ee={'limit':_0x59b38b['limit']??0xa,'offset':_0x59b38b[_0x22bd3c(0x208)]??0x0,'includeDeleted':_0x59b38b[_0x22bd3c(0x288)]};_0x59b38b[_0x22bd3c(0x26c)]&&(_0x15e0ee[_0x22bd3c(0x24f)]=_0x135e0c['ehBbv'](getGitRepoUrl),_0x15e0ee[_0x22bd3c(0x1be)]=_0x135e0c[_0x22bd3c(0x1af)](getGitBranch));const _0x39e1d0=await _0x135e0c[_0x22bd3c(0x22e)](listFeatures,_0x15e0ee);if(_0x39e1d0[_0x22bd3c(0x1aa)]['length']===0x0){console[_0x22bd3c(0x1ec)](_0x135e0c['XcCTU']);return;}const _0x2bebb5=_0x135e0c[_0x22bd3c(0x20f)](_0x39e1d0['totalCount'],_0x39e1d0[_0x22bd3c(0x1aa)]['length'])?'Showing\x20'+_0x39e1d0[_0x22bd3c(0x1aa)]['length']+'\x20of\x20'+_0x39e1d0[_0x22bd3c(0x25b)]:_0x39e1d0[_0x22bd3c(0x25b)]+_0x22bd3c(0x273);console[_0x22bd3c(0x1ec)]('\x0a'+_0x2bebb5+':\x0a');for(const _0x48f171 of _0x39e1d0['items']){console[_0x22bd3c(0x1ec)](''+_0x48f171[_0x22bd3c(0x1bb)]),console[_0x22bd3c(0x1ec)](_0x22bd3c(0x23c)+_0x48f171['id']),_0x48f171[_0x22bd3c(0x21c)]&&console[_0x22bd3c(0x1ec)](_0x22bd3c(0x27a)+getProgressDisplay(_0x48f171['stats'])),_0x48f171['gitBranch']&&console[_0x22bd3c(0x1ec)](_0x22bd3c(0x1cf)+_0x48f171['gitBranch']),console[_0x22bd3c(0x1ec)]('\x20\x20\x20Created:\x20'+new Date(_0x48f171['createdAt'])[_0x22bd3c(0x271)]()),console[_0x22bd3c(0x1ec)]('');}const _0x3cf474=_0x15e0ee['limit']??0xa,_0x1e5e70=(_0x15e0ee[_0x22bd3c(0x208)]??0x0)+_0x39e1d0[_0x22bd3c(0x1aa)][_0x22bd3c(0x213)];if(_0x1e5e70<_0x39e1d0['totalCount']){const _0x356919=_0x3cf474!==0xa?_0x22bd3c(0x1e1)+_0x3cf474:'',_0x1130ee=_0x59b38b[_0x22bd3c(0x26c)]?_0x135e0c[_0x22bd3c(0x281)]:'',_0x18aeed=_0x59b38b[_0x22bd3c(0x288)]?'\x20--include-deleted':'';console[_0x22bd3c(0x1ec)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x1e5e70+_0x356919+_0x1130ee+_0x18aeed);}}function _0x580f(){const _0x1b3ccb=['lthIA','jLOlz','586NqauGe','\x20\x20\x20\x20\x20\x20Incomplete:\x20','join','toLocaleString','uknpa','762dTxVEA','.\x20Feature\x20review\x20has\x20','name','\x20\x20\x20\x20\x20\x20Approved','\x20scenario(s).','gitBranch','ZWcQE','trim','approved','reports','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','TgIzM','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','PhwxU','\x20at\x20[','XTLxd','exit','gDJQo','\x20\x20\x20Completed:\x20','status','write','/artifacts/','\x20\x20\x20Branch:\x20','RFRaf','\x0aConcluding\x20session...','HBdtw','\x0a\x20\x20\x20Scenarios:','assetUrl','1609032iIVVym','incompleteItems','dashboardUrl','GFTyB','uRHQP','env','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','CpsAr','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20\x20\x20Progress:\x20','9126026SkHAPv','Klbml','\x20--limit\x20','arrayBuffer','scenario','slice','\x20\x20\x20Description:\x20','BBkZZ','git\x20rev-parse\x20--abbrev-ref\x20HEAD','assetType','utf-8','scGHp','stepName','log','\x20\x20\x20Updated\x20branch\x20to:\x20','\x20--current-branch','\x20>\x20','github.com/','RANGER_TEST_USERNAME','content','gkCCT','Screenshot\x20','replace','repeat','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','checklistItems','yCozj','pop','spatial','Qlgaz','mtMPG','\x20\x20\x20\x20\x20Branch:\x20','XzNhF','\x0a✅\x20Scenario\x20updated','fJToz','cOhTT','canonicalFlow','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','after','oQBXg','offset','scenarios','eDgPv','\x20\x20\x20\x20\x20ID:\x20','\x20Session\x20','QWLrj','\x0a📋\x20Feedback\x20for:\x20','JsCgM','VkjaL','cAwsz','372IVExCD','length','selector','bNJcr','closed','rGMcQ','filter','\x1b[0m','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0aNo\x20feature\x20reviews\x20found.','stats','xSzOP','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','No\x20scenarios\x20found.','iQrmr','WlBfz','fVUXh','blockedItems','Qpsmq','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x20scenarios.','NtDLQ','iteration','VwBnZ','Please\x20finish\x20your\x20review\x20first:','\x0a✅\x20Feature\x20review\x20created:\x20','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','screenshotUrls','Rdtyr','CLAUDE_SESSION_ID','QdksZ','map','isInteger','incompleteReason','Kdetd','description','No\x20active\x20session\x20for\x20this\x20feature\x20review.','DjhRt','adQky','linkedSession','domRef','sgKKV','\x20\x20\x20ID:\x20','from','QAsCI','point','\x0a✅\x20Report\x20generated:\x20','Ruudu','\x20in\x20progress','currentSessionId','latestReview','version','any','verifiedItems','toFixed','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','SKgkA','completedAt','vAXms','DXuAV','5048982QiVtuW','gitRepoUrl','find','isTTY','...','textContent','7832418LicXsG','CMdqx','Itlsm','unaddressedComments','8NMCRjb','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x20concluded.','totalCount','\x20(v','canceledReason','push','QrGIE','\x20\x20Expected\x20flow:','90znKPdJ','stdout','verificationInProgressItems','71255IdNqfi','vXUXe','3988017eEebeG','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','Scenario\x20','browserSessionId','XjBuQ','xykPU','currentBranch','active-feature.txt','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','coordinates','output','toLocaleDateString','completed','\x20feature\x20review(s)\x20found','usfZa','split','uTRvi','lkDiE','pipe','blockedReason','\x20\x20\x20Progress:\x20','error','\x20\x20\x20Repository:\x20','\x0aAvailable\x20scenarios:','ozSEZ','\x20\x20\x20▶️\x20Started\x20session\x20','Not\x20in\x20a\x20git\x20repository.','fSoHp','iBfDh','excludeScenarios','stdin','pyVfs','has','GAkAB','includeDeleted','vvfro','\x0a✅\x20Resumed\x20feature\x20review:\x20','authorEmail','items','in_progress','yOnfm','assets','\x1b[1m','ehBbv','BxjKP','sessionId'];_0x580f=function(){return _0x1b3ccb;};return _0x580f();}export async function featureShow(_0x44f4bb){const _0x4d756a=_0x38484d,_0x415f65={'Ugfud':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ZWcQE':function(_0xd74f52,_0x1236e4){return _0xd74f52(_0x1236e4);}},_0x4ea60e=_0x44f4bb||await getActiveFeatureId();if(!_0x4ea60e)throw new Error(_0x415f65['Ugfud']);const _0x15e11e=await _0x415f65[_0x4d756a(0x1bf)](getFeature,_0x4ea60e);displayFeature(_0x15e11e,_0x15e11e[_0x4d756a(0x1f8)]);}export async function featureResume(_0x314e32){const _0x5ee3b6=_0x38484d,_0x5817ad={'HBCUT':function(_0x5874b6,_0x1b2c87,_0x2e5731){return _0x5874b6(_0x1b2c87,_0x2e5731);},'yCozj':function(_0x2e0679,_0x2a38bb){return _0x2e0679(_0x2a38bb);},'BBkZZ':function(_0x54b30d){return _0x54b30d();},'rGMcQ':function(_0x39073d){return _0x39073d();},'YqNPW':_0x5ee3b6(0x246),'MxiMs':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','yOnfm':_0x5ee3b6(0x267),'xUenG':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','YBMBX':'list','GFTyB':function(_0x10c89d,_0x2e3ed2){return _0x10c89d!==_0x2e3ed2;},'sLgwZ':function(_0x565e67,_0x5ed141){return _0x565e67(_0x5ed141);},'Klbml':function(_0x48bcd4,_0x12adb5,_0x191e54){return _0x48bcd4(_0x12adb5,_0x191e54);}};if(_0x314e32){const _0x54bef8=await getFeature(_0x314e32);await setActiveFeatureId(_0x54bef8['id']);const _0x59757f=getGitBranch();_0x59757f&&_0x59757f!==_0x54bef8['gitBranch']&&(await updateFeature(_0x54bef8['id'],{'gitBranch':_0x59757f}),console['log'](_0x5ee3b6(0x1ed)+_0x59757f));console[_0x5ee3b6(0x1ec)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x54bef8['name']+'\x20('+_0x54bef8['id']+')'),await tryStartCurrentSession(_0x54bef8['id']);const _0x1cfe9d=process['env']['CLAUDE_SESSION_ID'];_0x1cfe9d&&_0x5817ad['HBCUT'](registerSession,_0x1cfe9d,_0x54bef8['id']);displayFeature(_0x54bef8,_0x54bef8[_0x5ee3b6(0x1f8)]),await _0x5817ad[_0x5ee3b6(0x1f9)](printFeedbackNudge,_0x54bef8['id']);return;}const _0xd43a83=_0x5817ad[_0x5ee3b6(0x1e6)](getGitRepoUrl),_0x33e7e8=_0x5817ad[_0x5ee3b6(0x217)](getGitBranch);if(!_0xd43a83&&!_0x33e7e8)throw new Error(_0x5ee3b6(0x280));console['log'](_0x5ee3b6(0x205)+(_0xd43a83||_0x5ee3b6(0x246))+'\x20/\x20'+(_0x33e7e8||_0x5817ad['YqNPW'])+_0x5ee3b6(0x252));const _0x550764=await listFeatures({'gitRepoUrl':_0xd43a83,'gitBranch':_0x33e7e8}),_0x5c9ed9=_0x550764[_0x5ee3b6(0x1aa)]['filter'](_0x5b7dc9=>_0x5b7dc9[_0x5ee3b6(0x1cc)]?_0x5b7dc9[_0x5ee3b6(0x1cc)]!=='verified':!_0x5b7dc9[_0x5ee3b6(0x24b)]);if(_0x5c9ed9[_0x5ee3b6(0x213)]===0x0){console[_0x5ee3b6(0x1ec)](_0x5817ad['MxiMs']),console[_0x5ee3b6(0x1ec)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x279cd8;if(_0x5c9ed9['length']===0x1)_0x279cd8=_0x5c9ed9[0x0];else{const _0x534a20=process[_0x5ee3b6(0x284)]['isTTY']&&process[_0x5ee3b6(0x262)][_0x5ee3b6(0x251)];if(!_0x534a20){console['log'](_0x5817ad[_0x5ee3b6(0x1ac)]);for(const _0x4bc789 of _0x5c9ed9){console['log']('\x20\x20'+_0x4bc789['name']),console['log'](_0x5ee3b6(0x20b)+_0x4bc789['id']),_0x4bc789['stats']&&console[_0x5ee3b6(0x1ec)](_0x5ee3b6(0x1de)+_0x5817ad['yCozj'](getProgressDisplay,_0x4bc789[_0x5ee3b6(0x21c)])),_0x4bc789[_0x5ee3b6(0x1be)]&&console[_0x5ee3b6(0x1ec)](_0x5ee3b6(0x1fe)+_0x4bc789['gitBranch']);}throw new Error(_0x5817ad['xUenG']);}const {selected:_0x34e2b5}=await _0x28f351['prompt']([{'type':_0x5817ad['YBMBX'],'name':'selected','message':_0x5ee3b6(0x22c),'choices':_0x5c9ed9['map'](_0x10983d=>({'name':_0x10983d['name']+'\x20('+_0x10983d['id']+')','value':_0x10983d['id']}))}]);_0x279cd8=_0x5c9ed9['find'](_0x186b08=>_0x186b08['id']===_0x34e2b5);}await setActiveFeatureId(_0x279cd8['id']);_0x33e7e8&&_0x5817ad[_0x5ee3b6(0x1d8)](_0x33e7e8,_0x279cd8['gitBranch'])&&(await _0x5817ad['HBCUT'](updateFeature,_0x279cd8['id'],{'gitBranch':_0x33e7e8}),console['log'](_0x5ee3b6(0x1ed)+_0x33e7e8));console['log'](_0x5ee3b6(0x28a)+_0x279cd8[_0x5ee3b6(0x1bb)]+'\x20('+_0x279cd8['id']+')'),await _0x5817ad['sLgwZ'](tryStartCurrentSession,_0x279cd8['id']);const _0x13c45f=await getFeature(_0x279cd8['id']),_0x32d29b=process[_0x5ee3b6(0x1da)][_0x5ee3b6(0x22f)];_0x32d29b&&_0x5817ad[_0x5ee3b6(0x1e0)](registerSession,_0x32d29b,_0x13c45f['id']),displayFeature(_0x13c45f,_0x13c45f['checklistItems']),await printFeedbackNudge(_0x13c45f['id']);}async function printFeedbackNudge(_0x5be54e){const _0xc20279=_0x38484d,_0x4c87de={'gCTOw':function(_0xdc0e1a,_0xe4d28b){return _0xdc0e1a(_0xe4d28b);},'XzNhF':function(_0x1b6c6b,_0x3fbbfc,_0xf55996){return _0x1b6c6b(_0x3fbbfc,_0xf55996);},'sgKKV':_0xc20279(0x249)};try{const {items:_0x37795c}=await _0x4c87de['gCTOw'](getActionItems,_0x5be54e);let _0x256db5=0x0,_0x3a588f=0x0;for(const _0x1fc48e of _0x37795c){const _0x2e8603=await _0x4c87de[_0xc20279(0x1ff)](getItemFeedback,_0x5be54e,_0x1fc48e['id']);_0x2e8603[_0xc20279(0x257)]['length']>0x0&&(_0x256db5+=_0x2e8603[_0xc20279(0x257)][_0xc20279(0x213)],_0x3a588f++);}_0x256db5>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x256db5+_0xc20279(0x1c3)+_0x3a588f+_0xc20279(0x1bd)),console[_0xc20279(0x1ec)](_0x4c87de[_0xc20279(0x23b)]));}catch{}}async function tryStartCurrentSession(_0x49a868){const _0x8bd9a7=_0x38484d,_0x15dfe6={'CMnHL':function(_0x8ac1ea,_0x53b112){return _0x8ac1ea(_0x53b112);}};try{const {sessions:_0x3e6126}=await _0x15dfe6['CMnHL'](listFeatureSessions,_0x49a868),_0x1ef7c4=_0x3e6126[_0x8bd9a7(0x250)](_0x1515aa=>_0x1515aa[_0x8bd9a7(0x1cc)]==='ready');_0x1ef7c4&&(await startSession(_0x49a868,_0x1ef7c4['id']),console[_0x8bd9a7(0x1ec)](_0x8bd9a7(0x27f)+_0x1ef7c4[_0x8bd9a7(0x228)]));}catch{}}export async function featureReport(_0x4e1228,_0x1f264e){const _0xdd5ad4=_0x38484d,_0x16a565={'jkeNU':function(_0x35d7f1){return _0x35d7f1();},'AHGSp':'\x0aGenerating\x20report...','UKYBd':function(_0x531ea6,_0x216c14,_0x11d1dd){return _0x531ea6(_0x216c14,_0x11d1dd);},'Qpsmq':function(_0x8029ad,_0xe41c0c,_0x39526c,_0x269b69){return _0x8029ad(_0xe41c0c,_0x39526c,_0x269b69);},'vvfro':_0xdd5ad4(0x1c2),'MgWsK':function(_0x36c54a,_0x3d18a7,_0x581b75){return _0x36c54a(_0x3d18a7,_0x581b75);},'yupEJ':function(_0x204af5,_0x500bbd){return _0x204af5(_0x500bbd);},'KXqxW':function(_0x4fb5f7,_0x22aba6,_0x44cfad){return _0x4fb5f7(_0x22aba6,_0x44cfad);},'wosee':'utf-8'},_0x216793=_0x4e1228||await _0x16a565['jkeNU'](getActiveFeatureId);if(!_0x216793)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log'](_0x16a565['AHGSp']);const _0x25228e=await _0x16a565['UKYBd'](getFeatureReportMarkdown,_0x216793,{'style':_0x1f264e['style']}),_0x12cf93=_0x1f264e[_0xdd5ad4(0x270)]||_0x16a565['Qpsmq'](join,getRangerDir(),_0x16a565[_0xdd5ad4(0x289)],_0x216793+'.md'),_0x3422d4=_0x16a565['MgWsK'](join,_0x12cf93,'..');!_0x16a565['yupEJ'](existsSync,_0x3422d4)&&await _0x16a565['KXqxW'](mkdir,_0x3422d4,{'recursive':!![]}),await _0x16a565[_0xdd5ad4(0x224)](writeFile,_0x12cf93,_0x25228e,_0x16a565['wosee']),console[_0xdd5ad4(0x1ec)](_0xdd5ad4(0x240)+_0x12cf93);}function getScenarioResult(_0x160542){const _0xba6eeb=_0x38484d,_0x20601f={'INaGQ':function(_0x3e0d9d,_0x1463be){return _0x3e0d9d===_0x1463be;},'Ruudu':'verification_in_progress'};if(_0x160542['status']==='closed')return _0x160542['terminalReason']??'closed';if(_0x20601f['INaGQ'](_0x160542[_0xba6eeb(0x1cc)],_0x20601f[_0xba6eeb(0x241)]))return'in_progress';return _0x160542['status'];}function getScenarioRationale(_0x395d2b,_0x407575){const _0x1ea690=_0x38484d;if(_0x407575)return _0x407575;if(_0x395d2b['blockedReason'])return _0x395d2b['blockedReason'];if(_0x395d2b['incompleteReason'])return _0x395d2b['incompleteReason'];if(_0x395d2b['canceledReason'])return _0x395d2b[_0x1ea690(0x25d)];if(_0x395d2b['notes'])return _0x395d2b['notes'];return null;}export async function featureReportPrDescription(_0x972322,_0x178540){const _0x1c07a4=_0x38484d,_0x1e2f9d={'AYlxG':function(_0x2996c8){return _0x2996c8();},'FGVpm':function(_0x27180b,_0x525dc5){return _0x27180b(_0x525dc5);},'VkjaL':function(_0x2b35c9,_0xbf7cec,_0x490b05){return _0x2b35c9(_0xbf7cec,_0x490b05);},'YPnPN':function(_0x5ad505,_0x2fb073){return _0x5ad505===_0x2fb073;},'xsGFC':function(_0x4573ed,_0x273f07){return _0x4573ed>_0x273f07;},'oQBXg':'\x0aAvailable\x20scenarios:','QAsCI':function(_0x3d9eb1,_0x3e55eb){return _0x3d9eb1<_0x3e55eb;},'Itlsm':_0x1c07a4(0x26e),'oeneU':function(_0x53b63f,_0x2af6d4,_0x374246,_0x424399){return _0x53b63f(_0x2af6d4,_0x374246,_0x424399);}},_0x1efd88=_0x972322||await _0x1e2f9d['AYlxG'](getActiveFeatureId);if(!_0x1efd88)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x5c24b9=await _0x1e2f9d['FGVpm'](getFeature,_0x1efd88),_0x30d599=_0x5c24b9[_0x1c07a4(0x1f8)]||[],_0x5b9686=_0x1e2f9d[_0x1c07a4(0x210)](getCurrentSessionItems,_0x5c24b9,_0x30d599);_0x1e2f9d['YPnPN'](_0x5b9686['length'],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x27509e=_0x178540[_0x1c07a4(0x283)]??[],_0x5dac57=_0x27509e[_0x1c07a4(0x218)](_0x49a7a3=>!Number[_0x1c07a4(0x232)](_0x49a7a3)||_0x49a7a3<0x1||_0x49a7a3>_0x5b9686[_0x1c07a4(0x213)]);if(_0x1e2f9d['xsGFC'](_0x5dac57[_0x1c07a4(0x213)],0x0)){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x5dac57['join'](',\x20')),console['log'](_0x1e2f9d[_0x1c07a4(0x207)]);for(let _0x439b3f=0x0;_0x1e2f9d[_0x1c07a4(0x23e)](_0x439b3f,_0x5b9686[_0x1c07a4(0x213)]);_0x439b3f++){console['log']('\x20\x20'+(_0x439b3f+0x1)+'.\x20'+_0x5b9686[_0x439b3f][_0x1c07a4(0x235)]);}process['exit'](0x1);}const _0x20af09=new Set(_0x27509e['map'](_0x22286d=>_0x22286d-0x1)),_0x49db7a=_0x5b9686[_0x1c07a4(0x218)]((_0xf9d665,_0x1f15af)=>!_0x20af09[_0x1c07a4(0x286)](_0x1f15af));_0x49db7a['length']===0x0&&(console['error'](_0x1e2f9d[_0x1c07a4(0x256)]),process['exit'](0x1));if(_0x178540['json'])await _0x1e2f9d['oeneU'](outputJsonReport,_0x1efd88,_0x5c24b9,_0x49db7a);else{const _0x3db0f0=await _0x1e2f9d[_0x1c07a4(0x210)](getFeatureReportMarkdown,_0x1efd88,{'itemIds':_0x49db7a[_0x1c07a4(0x231)](_0x56ab56=>_0x56ab56['id'])});process[_0x1c07a4(0x262)]['write'](_0x3db0f0['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x577d29,_0x5c263c,_0x4a315e){const _0x28ea03=_0x38484d,_0x26e813={'Kdetd':function(_0x27f4f6,_0xc36c21,_0x4f4f34){return _0x27f4f6(_0xc36c21,_0x4f4f34);},'eDgPv':function(_0x28c4b1){return _0x28c4b1();}},_0x480ba8=_0x26e813[_0x28ea03(0x20a)](getApiBaseUrl),_0x3b93d5=await getFeatureReport(_0x577d29),_0x579600=new Map(_0x3b93d5['checklistItems']['map'](_0x591384=>[_0x591384['id'],_0x591384])),_0x187cfa=await Promise['all'](_0x4a315e['map'](async _0x5b8a21=>{const _0x490b3e=_0x28ea03,_0x29cc3b=_0x579600['get'](_0x5b8a21['id']),_0x4565b3=_0x29cc3b?.[_0x490b3e(0x239)]??null;let _0x4b5ecd=[];if(_0x5b8a21['browserSessionId'])try{const {steps:_0x59e502}=await getBrowserSessionSteps(_0x5b8a21[_0x490b3e(0x269)]);_0x59e502['length']>0x0&&(_0x4b5ecd=_0x59e502['map'](_0x2e5920=>{const _0xd3a432=_0x490b3e,_0x465697=_0x2e5920[_0xd3a432(0x1ad)]['find'](_0x142b37=>_0x142b37[_0xd3a432(0x1e8)]==='screenshot'&&_0x142b37['timing']===_0xd3a432(0x206))??_0x2e5920[_0xd3a432(0x1ad)][_0xd3a432(0x250)](_0x3a0c08=>_0x3a0c08['assetType']==='screenshot');let _0x13fc20=null,_0x2bfb80=null;if(_0x465697){const _0x4efe3c=_0x465697['storage']['location'][_0xd3a432(0x275)]('/')['pop']();_0x13fc20=_0x480ba8+'/api/v1/mcp/browser-sessions/'+_0x5b8a21['browserSessionId']+_0xd3a432(0x1ce)+_0x4efe3c,_0x4efe3c&&(_0x2bfb80=_0x4efe3c[_0xd3a432(0x1f5)](/\.\w+$/,'')[_0xd3a432(0x1f5)](/^(key_)?\d+_/,'')[_0xd3a432(0x1f5)](/[-_]/g,'\x20'));}return{'description':_0x2bfb80||_0x2e5920[_0xd3a432(0x235)]||_0x2e5920[_0xd3a432(0x1eb)]||'Step\x20'+_0x2e5920['position'],'screenshot':_0x13fc20,'is_key_step':_0x2e5920['isKeyStep']};}));}catch{}return _0x4b5ecd[_0x490b3e(0x213)]===0x0&&_0x4565b3?.[_0x490b3e(0x22d)]&&(_0x4b5ecd=_0x4565b3['screenshotUrls'][_0x490b3e(0x231)]((_0x702791,_0x5e04df)=>({'description':_0x490b3e(0x1f4)+(_0x5e04df+0x1),'screenshot':_0x702791,'is_key_step':![]}))),{'description':_0x5b8a21['description'],'result':getScenarioResult(_0x5b8a21),'rationale':_0x26e813[_0x490b3e(0x234)](getScenarioRationale,_0x5b8a21,_0x4565b3?.['agentResponse']),'steps':_0x4b5ecd};})),_0x4bebf3={'url':_0x5c263c[_0x28ea03(0x1d7)],'scenarios':_0x187cfa};process[_0x28ea03(0x262)][_0x28ea03(0x1cd)](JSON['stringify'](_0x4bebf3,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x4813bc){const _0x2ee02c=_0x38484d,_0x313e2a={'bNJcr':function(_0x5947ef){return _0x5947ef();},'cDvJR':function(_0x462678,_0x1e8132){return _0x462678(_0x1e8132);},'xykPU':_0x2ee02c(0x236),'jWVvX':function(_0x57181e,_0x5a7a6d){return _0x57181e===_0x5a7a6d;},'cAwsz':'in_progress'},_0x2fcda5=_0x4813bc||await _0x313e2a[_0x2ee02c(0x215)](getActiveFeatureId);if(!_0x2fcda5)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 _0x46febc=await _0x313e2a['cDvJR'](getFeature,_0x2fcda5);if(!_0x46febc['currentSessionId'])throw new Error(_0x313e2a[_0x2ee02c(0x26b)]);const {sessions:_0x36019c}=await listFeatureSessions(_0x2fcda5),_0x46bafc=_0x36019c['find'](_0x3c83c4=>_0x3c83c4['id']===_0x46febc['currentSessionId']);if(!_0x46bafc)throw new Error('Current\x20session\x20not\x20found.');if(_0x313e2a['jWVvX'](_0x46bafc[_0x2ee02c(0x1cc)],'completed')){console[_0x2ee02c(0x1ec)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x46bafc['status']!==_0x313e2a[_0x2ee02c(0x211)])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x46bafc['status']);console[_0x2ee02c(0x1ec)](_0x2ee02c(0x1d1)),await concludeSession(_0x2fcda5,_0x46febc['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x46bafc['iteration']+_0x2ee02c(0x25a)),console[_0x2ee02c(0x1ec)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4d9c80){const _0x36cc22=_0x38484d,_0x43ea3d={'DgVFE':function(_0x38460c){return _0x38460c();},'BxjKP':_0x36cc22(0x21a),'CpsAr':function(_0x55a260,_0x3a1ab5){return _0x55a260(_0x3a1ab5);},'cFJdV':'No\x20sessions\x20found.','mtMPG':function(_0x21f5eb,_0x37f6d4){return _0x21f5eb===_0x37f6d4;},'fVUXh':_0x36cc22(0x1ab)},_0x28661f=_0x4d9c80||await _0x43ea3d['DgVFE'](getActiveFeatureId);if(!_0x28661f)throw new Error(_0x43ea3d[_0x36cc22(0x1b0)]);const _0x246e64=await _0x43ea3d[_0x36cc22(0x1dc)](getFeature,_0x28661f);console[_0x36cc22(0x1ec)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x246e64['name']+'\x0a');const {sessions:_0x45d3e8}=await listFeatureSessions(_0x28661f);if(_0x45d3e8['length']===0x0){console[_0x36cc22(0x1ec)](_0x43ea3d['cFJdV']);return;}for(const _0x3e03de of _0x45d3e8){const _0x8a06a9=_0x43ea3d[_0x36cc22(0x1fd)](_0x3e03de['status'],_0x36cc22(0x272))?'✅':_0x3e03de['status']===_0x43ea3d[_0x36cc22(0x222)]?'🔄':'▶️';console['log'](_0x8a06a9+_0x36cc22(0x20c)+_0x3e03de['iteration']+'\x20('+_0x3e03de['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x3e03de['status']),console[_0x36cc22(0x1ec)]('\x20\x20\x20Created:\x20'+new Date(_0x3e03de['createdAt'])[_0x36cc22(0x1b7)]()),_0x3e03de['completedAt']&&console['log'](_0x36cc22(0x1cb)+new Date(_0x3e03de['completedAt'])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x2c15ea,_0x182723){const _0x419242=_0x38484d,_0x2d759c={'TgIzM':_0x419242(0x1db),'QdksZ':function(_0x53e428,_0x1d59ae){return _0x53e428(_0x1d59ae);},'iQrmr':function(_0x4b7d78,_0x1870c1,_0x499819){return _0x4b7d78(_0x1870c1,_0x499819);}},_0x537030=_0x182723||await getActiveFeatureId();if(!_0x537030)throw new Error(_0x2d759c[_0x419242(0x1c4)]);const _0x510149=await _0x2d759c[_0x419242(0x230)](getFeature,_0x537030);if(_0x510149['latestReview']&&!_0x510149[_0x419242(0x244)]['submittedAt'])throw new Error(_0x419242(0x1c5)+_0x510149['dashboardUrl']);await _0x2d759c[_0x419242(0x220)](createChecklistItem,_0x537030,_0x2c15ea);const _0x4dd12b=await _0x2d759c['QdksZ'](getFeature,_0x537030);console[_0x419242(0x1ec)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x4dd12b,_0x4dd12b[_0x419242(0x1f8)]);}export async function featureEditScenario(_0x4866a7,_0x3eea33){const _0x21c7f5=_0x38484d,_0x124413={'vAXms':function(_0x3d4e36){return _0x3d4e36();},'qdYEx':_0x21c7f5(0x21e),'Qlgaz':_0x21c7f5(0x22a),'lthIA':function(_0x6188f1,_0x5d3f8d){return _0x6188f1===_0x5d3f8d;},'xSzOP':function(_0x22f393,_0x393e47){return _0x22f393-_0x393e47;},'gkCCT':function(_0x32b3c2,_0x2e643c){return _0x32b3c2<_0x2e643c;},'DjhCL':'\x0aAvailable\x20scenarios:','QWLrj':function(_0x4bb2b4,_0x5491a7){return _0x4bb2b4<_0x5491a7;},'CMdqx':function(_0x306ada,_0x5a328d,_0x3fcfc5,_0x573d3d){return _0x306ada(_0x5a328d,_0x3fcfc5,_0x573d3d);},'MvbJi':function(_0x46efb3,_0xee9738){return _0x46efb3(_0xee9738);},'DXuAV':function(_0x518ed8,_0x4bdd93,_0x2e3d1d){return _0x518ed8(_0x4bdd93,_0x2e3d1d);}},_0x43a93e=_0x3eea33['id']||await _0x124413[_0x21c7f5(0x24c)](getActiveFeatureId);!_0x43a93e&&(console[_0x21c7f5(0x27b)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x21c7f5(0x1dd)),process[_0x21c7f5(0x1c9)](0x1));const _0x54c38b=await getFeature(_0x43a93e);_0x54c38b[_0x21c7f5(0x244)]&&!_0x54c38b[_0x21c7f5(0x244)]['submittedAt']&&(console['error'](_0x124413['qdYEx']),console[_0x21c7f5(0x27b)](_0x124413[_0x21c7f5(0x1fc)]),console[_0x21c7f5(0x27b)]('\x20\x20'+_0x54c38b[_0x21c7f5(0x1d7)]),process[_0x21c7f5(0x1c9)](0x1));const _0x47d3a2=_0x54c38b['checklistItems']||[];_0x47d3a2[_0x21c7f5(0x213)]===0x0&&(console[_0x21c7f5(0x27b)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process[_0x21c7f5(0x1c9)](0x1));if(_0x124413[_0x21c7f5(0x1b2)](_0x3eea33['scenario'],undefined)){console['error'](_0x21c7f5(0x1f7)),console[_0x21c7f5(0x1ec)](_0x21c7f5(0x27d));for(let _0x282429=0x0;_0x282429<_0x47d3a2['length'];_0x282429++){console[_0x21c7f5(0x1ec)]('\x20\x20'+(_0x282429+0x1)+'.\x20'+_0x47d3a2[_0x282429]['description']);}process[_0x21c7f5(0x1c9)](0x1);}const _0x450e32=_0x124413[_0x21c7f5(0x21d)](_0x3eea33[_0x21c7f5(0x1e3)],0x1);if(_0x124413[_0x21c7f5(0x1f3)](_0x450e32,0x0)||_0x450e32>=_0x47d3a2['length']){console[_0x21c7f5(0x27b)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x3eea33[_0x21c7f5(0x1e3)]+_0x21c7f5(0x1ba)+_0x47d3a2['length']+_0x21c7f5(0x226)),console[_0x21c7f5(0x1ec)](_0x124413['DjhCL']);for(let _0x2aa06b=0x0;_0x124413[_0x21c7f5(0x20d)](_0x2aa06b,_0x47d3a2['length']);_0x2aa06b++){console[_0x21c7f5(0x1ec)]('\x20\x20'+(_0x2aa06b+0x1)+'.\x20'+_0x47d3a2[_0x2aa06b][_0x21c7f5(0x235)]);}process['exit'](0x1);}const _0x5a2111=_0x47d3a2[_0x450e32];await _0x124413[_0x21c7f5(0x255)](updateChecklistItem,_0x43a93e,_0x5a2111['id'],{'description':_0x4866a7});const _0x31c15f=await _0x124413['MvbJi'](getFeature,_0x43a93e);console[_0x21c7f5(0x1ec)](_0x21c7f5(0x200)),_0x124413[_0x21c7f5(0x24d)](displayFeature,_0x31c15f,_0x31c15f['checklistItems']);}async function downloadFeedbackImage(_0x4d6e72,_0x1451df){const _0x22f0d7=_0x38484d,_0x1f18ca={'NtDLQ':function(_0x494405,_0x16669a,_0x376a69){return _0x494405(_0x16669a,_0x376a69);}};try{const _0x2dc3e2=join(getRangerDir(),'feedback-images');await mkdir(_0x2dc3e2,{'recursive':!![]});const _0x1ec3ca=_0x1f18ca[_0x22f0d7(0x227)](join,_0x2dc3e2,'comment_'+_0x1451df+'.png'),_0x106d1a=await fetch(_0x4d6e72);if(!_0x106d1a['ok'])return null;const _0x105632=Buffer[_0x22f0d7(0x23d)](await _0x106d1a[_0x22f0d7(0x1e2)]());return await _0x1f18ca['NtDLQ'](writeFile,_0x1ec3ca,_0x105632),_0x1ec3ca;}catch{return null;}}export async function featureGetReview(_0x303ce2){const _0x1b57dd=_0x38484d,_0x5a7c90={'YnFDG':function(_0x33173c){return _0x33173c();},'SKgkA':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','gDJQo':_0x1b57dd(0x21f),'fJToz':function(_0x32a426,_0x35bb12){return _0x32a426<_0x35bb12;},'jLOlz':function(_0x17d311,_0x254ce5){return _0x17d311>_0x254ce5;},'mbvBm':function(_0xd43b2a,_0x1fae87){return _0xd43b2a>_0x1fae87;},'DRRkU':'short','DaGxM':function(_0x50ef00,_0x290c7f,_0x32d2bf){return _0x50ef00(_0x290c7f,_0x32d2bf);},'lkDiE':_0x1b57dd(0x1ef),'cOhTT':_0x1b57dd(0x23f),'scGHp':function(_0x27f9fa,_0x4c6739){return _0x27f9fa+_0x4c6739;}},_0x479373=_0x303ce2||await _0x5a7c90['YnFDG'](getActiveFeatureId);if(!_0x479373)throw new Error(_0x5a7c90[_0x1b57dd(0x24a)]);const _0x4909bd=await getFeature(_0x479373),{items:_0x34c58a}=await getActionItems(_0x479373);console['log'](_0x1b57dd(0x20e)+_0x4909bd[_0x1b57dd(0x1bb)]+'\x20('+_0x4909bd['id']+')\x0a');if(_0x34c58a['length']===0x0){console['log'](_0x5a7c90[_0x1b57dd(0x1ca)]);return;}for(let _0x259b2e=0x0;_0x5a7c90[_0x1b57dd(0x201)](_0x259b2e,_0x34c58a['length']);_0x259b2e++){const _0x286a08=_0x34c58a[_0x259b2e],_0x219b8e=_0x5a7c90[_0x1b57dd(0x1b3)](_0x286a08[_0x1b57dd(0x245)],0x1)?_0x1b57dd(0x25c)+_0x286a08['version']+')':'',_0x2ce5c6=await getItemFeedback(_0x479373,_0x286a08['id']);if(_0x5a7c90['mbvBm'](_0x2ce5c6['unaddressedComments']['length'],0x0)){console['log']('Scenario\x20'+(_0x259b2e+0x1)+':\x20\x22'+_0x286a08['description']+'\x22'+_0x219b8e+'\x20—\x20'+_0x2ce5c6['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x43e150 of _0x2ce5c6['unaddressedComments']){const _0x3fd34e=new Date(_0x43e150['createdAt'])[_0x1b57dd(0x271)]('en-US',{'month':_0x5a7c90['DRRkU'],'day':'numeric'}),_0x11e00a=_0x43e150['authorName']||_0x43e150[_0x1b57dd(0x1a9)]||'Unknown';console[_0x1b57dd(0x1ec)]('\x20\x20💬\x20'+_0x11e00a+'\x20('+_0x3fd34e+'):\x20\x22'+_0x43e150[_0x1b57dd(0x1f2)]+'\x22');if(_0x43e150['assetUrl']){const _0x2da990=await _0x5a7c90['DaGxM'](downloadFeedbackImage,_0x43e150[_0x1b57dd(0x1d4)],_0x43e150['id']);_0x2da990&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x2da990);}if(_0x43e150['domRef']){const _0x1b6cca=_0x43e150['domRef'][_0x1b57dd(0x214)]['split'](_0x5a7c90[_0x1b57dd(0x277)])[_0x1b57dd(0x1fa)]()?.[_0x1b57dd(0x275)](':')[0x0]||'element',_0x32a8a8=_0x43e150['domRef']['textContent']?'\x20\x22'+_0x43e150[_0x1b57dd(0x23a)][_0x1b57dd(0x253)][_0x1b57dd(0x1e4)](0x0,0x3c)+'\x22':'';console[_0x1b57dd(0x1ec)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x1b6cca+'>'+_0x32a8a8),console[_0x1b57dd(0x1ec)](_0x1b57dd(0x225)+_0x43e150[_0x1b57dd(0x23a)][_0x1b57dd(0x214)]);}else{if(_0x43e150['spatial']){const _0x4757d6=_0x43e150[_0x1b57dd(0x1fb)][_0x1b57dd(0x26f)];_0x43e150[_0x1b57dd(0x1fb)]['type']===_0x5a7c90[_0x1b57dd(0x202)]&&_0x4757d6[_0x1b57dd(0x213)]>=0x2?console[_0x1b57dd(0x1ec)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x4757d6[0x0]['toFixed'](0x2)+',\x20'+_0x4757d6[0x1][_0x1b57dd(0x248)](0x2)+')'):console[_0x1b57dd(0x1ec)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x43e150[_0x1b57dd(0x1fb)]['type']+_0x1b57dd(0x1c7)+_0x4757d6['map'](_0x42d524=>_0x42d524['toFixed'](0x2))[_0x1b57dd(0x1b6)](',\x20')+']');}}}if(_0x2ce5c6[_0x1b57dd(0x203)]){console['log'](_0x1b57dd(0x260));for(const _0x2cbff6 of _0x2ce5c6[_0x1b57dd(0x203)][_0x1b57dd(0x275)]('\x0a')){console[_0x1b57dd(0x1ec)]('\x20\x20\x20\x20'+_0x2cbff6);}}}else console[_0x1b57dd(0x1ec)](_0x1b57dd(0x268)+_0x5a7c90[_0x1b57dd(0x1ea)](_0x259b2e,0x1)+':\x20\x22'+_0x286a08[_0x1b57dd(0x235)]+'\x22'+_0x219b8e+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x233058){const _0x5289c4=_0x38484d,_0x54c82d={'ulblq':function(_0x3347a2){return _0x3347a2();},'iYtiv':function(_0xed1436,_0x2329f2){return _0xed1436+_0x2329f2;},'YkZoh':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0xcc45b9=_0x233058||await _0x54c82d['ulblq'](getActiveFeatureId);if(!_0xcc45b9)throw new Error(_0x5289c4(0x1db));const _0x221d1a=await getFeature(_0xcc45b9);await softDeleteFeature(_0xcc45b9),console[_0x5289c4(0x1ec)](_0x5289c4(0x204)+_0x221d1a[_0x5289c4(0x1bb)]+'\x20('+_0xcc45b9+')'),console[_0x5289c4(0x1ec)](_0x54c82d['iYtiv'](_0x54c82d['YkZoh'],_0xcc45b9));}export async function featureRestore(_0x4ea252){const _0x26a001=_0x38484d,_0x338aee={'usfZa':function(_0x4ac41f,_0x1f2ad7){return _0x4ac41f(_0x1f2ad7);},'vXUXe':function(_0x3b17d4,_0x391bfb,_0x21e7c1){return _0x3b17d4(_0x391bfb,_0x21e7c1);}};await restoreFeature(_0x4ea252);const _0x4c77ad=await _0x338aee[_0x26a001(0x274)](getFeature,_0x4ea252);console[_0x26a001(0x1ec)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x4c77ad['name']+'\x20('+_0x4ea252+')'),_0x338aee[_0x26a001(0x265)](displayFeature,_0x4c77ad,_0x4c77ad['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3309f7,_0x29c533){const _0x1e7590=_0x16b3,_0xf41fa8=_0x3309f7();while(!![]){try{const _0x5bd1d4=-parseInt(_0x1e7590(0x150))/0x1*(-parseInt(_0x1e7590(0x156))/0x2)+parseInt(_0x1e7590(0x159))/0x3+-parseInt(_0x1e7590(0x14f))/0x4*(-parseInt(_0x1e7590(0x14e))/0x5)+-parseInt(_0x1e7590(0x157))/0x6+-parseInt(_0x1e7590(0x154))/0x7+parseInt(_0x1e7590(0x153))/0x8*(parseInt(_0x1e7590(0x14c))/0x9)+-parseInt(_0x1e7590(0x14b))/0xa;if(_0x5bd1d4===_0x29c533)break;else _0xf41fa8['push'](_0xf41fa8['shift']());}catch(_0x152351){_0xf41fa8['push'](_0xf41fa8['shift']());}}}(_0x38e3,0xe4dcc));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};function _0x16b3(_0x4d880c,_0x242298){_0x4d880c=_0x4d880c-0x14b;const _0x38e39b=_0x38e3();let _0x16b3e4=_0x38e39b[_0x4d880c];return _0x16b3e4;}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x408fc5=_0x16b3,_0x5afefd={'KueLr':'SIGINT','VHYTO':_0x408fc5(0x15a)};if(cancellationHandlersInstalled)return;const _0xa9a22=()=>{process['exit'](0x0);};process['once'](_0x5afefd[_0x408fc5(0x155)],_0xa9a22),process['once'](_0x5afefd[_0x408fc5(0x158)],_0xa9a22),process[_0x408fc5(0x152)]('SIGHUP',_0xa9a22),cancellationHandlersInstalled=!![];}export async function hook(_0x3c6e36,_0x4df553){const _0xed3e49=_0x16b3,_0x403e0a={'MyQmn':function(_0x3a858c){return _0x3a858c();},'jEiac':function(_0x24b467,_0x4f6fa0){return _0x24b467(_0x4f6fa0);}};_0x403e0a[_0xed3e49(0x151)](installCancellationHandlers);const _0x23a207=HOOKS[_0x3c6e36];if(!_0x23a207){const _0x36255a=Object['keys'](HOOKS)['join'](',\x20');console['error']('Unknown\x20hook:\x20'+_0x3c6e36),console['error']('Valid\x20hooks:\x20'+_0x36255a),process[_0xed3e49(0x14d)](0x1);}await _0x403e0a['jEiac'](_0x23a207,_0x4df553);}function _0x38e3(){const _0x57d429=['VHYTO','1661871RxCsNm','SIGTERM','20132660hRqZBq','2421JktHZQ','exit','2557460inoACE','8wWnIIf','1470708kXnUkf','MyQmn','once','35800xvVqzP','7682626EtsLsi','KueLr','2OTMbMI','1219320jJCwmr'];_0x38e3=function(){return _0x57d429;};return _0x38e3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x191c(){const _0x3caf77=['session_id','5OcrogJ','77GIDzJZ','\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.','356106VeIlzo','sgiQH','2930700DRfuKT','262444DwfHZk','9nMXZXu','9310807ETJSeL','43038bxQbkO','267860kRguqa','127264joxeGB','Unjyk','46aUhtMS'];_0x191c=function(){return _0x3caf77;};return _0x191c();}const _0x20c926=_0xdd53;(function(_0x54ab42,_0x4ba217){const _0x594494=_0xdd53,_0x972acb=_0x54ab42();while(!![]){try{const _0x47d546=-parseInt(_0x594494(0x1be))/0x1+parseInt(_0x594494(0x1c1))/0x2*(-parseInt(_0x594494(0x1bd))/0x3)+-parseInt(_0x594494(0x1ba))/0x4+parseInt(_0x594494(0x1c3))/0x5*(-parseInt(_0x594494(0x1c6))/0x6)+-parseInt(_0x594494(0x1c4))/0x7*(parseInt(_0x594494(0x1bf))/0x8)+-parseInt(_0x594494(0x1bb))/0x9*(-parseInt(_0x594494(0x1b9))/0xa)+parseInt(_0x594494(0x1bc))/0xb;if(_0x47d546===_0x4ba217)break;else _0x972acb['push'](_0x972acb['shift']());}catch(_0x3577f2){_0x972acb['push'](_0x972acb['shift']());}}}(_0x191c,0x3b04b));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x20c926(0x1c5);function _0xdd53(_0x3b541e,_0x2b4133){_0x3b541e=_0x3b541e-0x1b9;const _0x191cd3=_0x191c();let _0xdd53bd=_0x191cd3[_0x3b541e];return _0xdd53bd;}export async function autoPrompt(){const _0x25b7be=_0x20c926,_0x433b02={'sgiQH':function(_0x475c02){return _0x475c02();},'zJSnw':'off','NLUpw':function(_0x4704a8){return _0x4704a8();},'Unjyk':function(_0x5e5728,_0x1679e3){return _0x5e5728(_0x1679e3);}};if(_0x433b02[_0x25b7be(0x1c7)](resolveHookMode)===_0x433b02['zJSnw'])return;const _0x290c15=await _0x433b02['NLUpw'](readHookInput),_0x97f2ee=_0x290c15?.[_0x25b7be(0x1c2)];if(!_0x97f2ee)return;if(_0x433b02[_0x25b7be(0x1c0)](isSessionEnabled,_0x97f2ee)||hasSessionBeenPrompted(_0x97f2ee))return;markSessionPrompted(_0x97f2ee),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x363ef0,_0x108940){const _0x529929=_0x356a,_0x3b78b2=_0x363ef0();while(!![]){try{const _0x18a180=parseInt(_0x529929(0x92))/0x1*(parseInt(_0x529929(0x88))/0x2)+parseInt(_0x529929(0x8e))/0x3*(-parseInt(_0x529929(0x7e))/0x4)+parseInt(_0x529929(0x90))/0x5+-parseInt(_0x529929(0x89))/0x6*(parseInt(_0x529929(0x8c))/0x7)+-parseInt(_0x529929(0x87))/0x8*(-parseInt(_0x529929(0x86))/0x9)+-parseInt(_0x529929(0x83))/0xa*(parseInt(_0x529929(0x85))/0xb)+parseInt(_0x529929(0x8d))/0xc*(parseInt(_0x529929(0x91))/0xd);if(_0x18a180===_0x108940)break;else _0x3b78b2['push'](_0x3b78b2['shift']());}catch(_0x4fe7a9){_0x3b78b2['push'](_0x3b78b2['shift']());}}}(_0x3ceb,0xb7b20));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x3ceb(){const _0x4fac61=['4070975PyslpN','273gTBjwz','418319eKZVbo','uGEeK','4embGGi','erzyw','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','\x20and\x20branch\x20\x27','YsEqb','927370mHHSgR','FogsN','132NYfaIu','538281uFHSBB','144gEljBa','6UvUzdh','5234316FtzbZa','master','main','7NGIRhM','335292fdjvmi','2984487smpajJ','qiWpQ'];_0x3ceb=function(){return _0x4fac61;};return _0x3ceb();}function _0x356a(_0x29e437,_0x188534){_0x29e437=_0x29e437-0x7d;const _0x3ceb0a=_0x3ceb();let _0x356a61=_0x3ceb0a[_0x29e437];return _0x356a61;}import{printBlock}from'./output.js';export async function disable(_0x45b26f){const _0x33eca1=_0x356a,_0x3cc9fd={'YsEqb':_0x33eca1(0x8b),'qiWpQ':function(_0x53ebfe,_0x3a0ee6){return _0x53ebfe(_0x3a0ee6);},'uGEeK':function(_0x2b9bde,_0x1dfd9d){return _0x2b9bde!==_0x1dfd9d;},'FogsN':function(_0x2a278d,_0x39221a){return _0x2a278d!==_0x39221a;},'erzyw':_0x33eca1(0x8a)},_0x130ed7=_0x45b26f||process['env']['CLAUDE_SESSION_ID']||'';_0x130ed7&&disableSession(_0x130ed7);const _0x34a9b9=getCurrentBranch();_0x34a9b9&&_0x34a9b9!==_0x3cc9fd[_0x33eca1(0x82)]&&_0x34a9b9!==_0x33eca1(0x8a)&&disableBranch(_0x34a9b9),_0x3cc9fd[_0x33eca1(0x8f)](printBlock,_0x33eca1(0x80)+(_0x34a9b9&&_0x3cc9fd[_0x33eca1(0x7d)](_0x34a9b9,'main')&&_0x3cc9fd[_0x33eca1(0x84)](_0x34a9b9,_0x3cc9fd[_0x33eca1(0x7f)])?_0x33eca1(0x81)+_0x34a9b9+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x222c(_0x2d311,_0x536306){_0x2d311=_0x2d311-0x141;const _0x196871=_0x1968();let _0x222c0f=_0x196871[_0x2d311];return _0x222c0f;}function _0x1968(){const _0x47aabe=['env','ebOvf','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','8FsQaHP','3450wEFLEG','1178529eIaZFn','18397520JofDmW','5tmDulC','269003irMHyl','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','5370816yTkBCN','182150FWUKhP','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','2663901RpFhTh','#\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`','UDJMM','JWtzi','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','1000bJeqWC','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','hZkjP'];_0x1968=function(){return _0x47aabe;};return _0x1968();}(function(_0x54f6af,_0x492a0d){const _0x16e8ba=_0x222c,_0x2dc4c9=_0x54f6af();while(!![]){try{const _0x5caed4=parseInt(_0x16e8ba(0x152))/0x1*(parseInt(_0x16e8ba(0x141))/0x2)+-parseInt(_0x16e8ba(0x150))/0x3+parseInt(_0x16e8ba(0x148))/0x4*(-parseInt(_0x16e8ba(0x14f))/0x5)+-parseInt(_0x16e8ba(0x155))/0x6+parseInt(_0x16e8ba(0x153))/0x7*(-parseInt(_0x16e8ba(0x14e))/0x8)+-parseInt(_0x16e8ba(0x143))/0x9+parseInt(_0x16e8ba(0x151))/0xa;if(_0x5caed4===_0x492a0d)break;else _0x2dc4c9['push'](_0x2dc4c9['shift']());}catch(_0xa01138){_0x2dc4c9['push'](_0x2dc4c9['shift']());}}}(_0x1968,0x7a206));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x107939){const _0x56e3da=_0x222c,_0x2ece5c={'rOKLw':function(_0x4a9384){return _0x4a9384();},'hZkjP':_0x56e3da(0x154),'ebOvf':function(_0x5361f8,_0x1e8ad7){return _0x5361f8(_0x1e8ad7);},'JWtzi':function(_0x1e0634){return _0x1e0634();},'UDJMM':function(_0x1d19c9,_0x2ee46e){return _0x1d19c9!==_0x2ee46e;},'kyjcY':function(_0xd440d0){return _0xd440d0();}},_0x260dd5=_0x107939||process[_0x56e3da(0x14b)]['CLAUDE_SESSION_ID']||'',_0xd996d7=Boolean(_0x107939),_0x4e82bf=await _0x2ece5c['rOKLw'](getToken);if(!_0x4e82bf){const _0x21b018=_0xd996d7?'ranger\x20setup\x20--opencode':'ranger\x20setup',_0x1b7d74=_0xd996d7?_0x2ece5c[_0x56e3da(0x14a)]:_0x56e3da(0x14d);_0x2ece5c[_0x56e3da(0x14c)](printBlock,_0x56e3da(0x144)+_0x21b018+_0x56e3da(0x147)+_0x1b7d74);return;}try{await update();}catch{}_0x260dd5&&_0x2ece5c[_0x56e3da(0x14c)](enableSession,_0x260dd5);const _0x183b61=_0x2ece5c[_0x56e3da(0x146)](getCurrentBranch),_0x2ee0be=_0x183b61&&_0x183b61!=='main'&&_0x2ece5c[_0x56e3da(0x145)](_0x183b61,'master')?'\x0a\x0a**Branch\x20\x27'+_0x183b61+_0x56e3da(0x149):'',_0x518c14=_0x2ece5c['kyjcY'](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0x2ee0be+_0x56e3da(0x142)+_0x518c14+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x3f9672,_0x4b13f7){const _0x2589c8=_0x5b5c,_0x25d10f=_0x3f9672();while(!![]){try{const _0x423eaf=parseInt(_0x2589c8(0x1ac))/0x1*(parseInt(_0x2589c8(0x1ad))/0x2)+-parseInt(_0x2589c8(0x1a9))/0x3+-parseInt(_0x2589c8(0x1a5))/0x4*(-parseInt(_0x2589c8(0x1a2))/0x5)+parseInt(_0x2589c8(0x1ab))/0x6+-parseInt(_0x2589c8(0x1a8))/0x7*(-parseInt(_0x2589c8(0x1a3))/0x8)+parseInt(_0x2589c8(0x1aa))/0x9+-parseInt(_0x2589c8(0x1a7))/0xa*(parseInt(_0x2589c8(0x1a4))/0xb);if(_0x423eaf===_0x4b13f7)break;else _0x25d10f['push'](_0x25d10f['shift']());}catch(_0x5ec1d8){_0x25d10f['push'](_0x25d10f['shift']());}}}(_0x5089,0x86a4f));function _0x5b5c(_0x183dad,_0x48509f){_0x183dad=_0x183dad-0x1a2;const _0x50899a=_0x5089();let _0x5b5cb3=_0x50899a[_0x183dad];return _0x5b5cb3;}function _0x5089(){const _0x5e91fe=['2008664lqKOWb','1067yuHKdR','603088eomLOn','===\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===','112790hgbFqA','28wSrAjd','2807409VywxAj','2827269qWdONx','3326988osxVBp','278813tuPqkH','4omTVzE','5NggfHQ'];_0x5089=function(){return _0x5e91fe;};return _0x5089();}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x412b07){const _0x48d142=_0x5b5c,_0x30a98e={'KpohL':function(_0x32a42c,_0x408b3a){return _0x32a42c(_0x408b3a);}},_0x40bbc3=await getEnabledSessionId(_0x412b07);if(!_0x40bbc3)return;_0x30a98e['KpohL'](printBlock,_0x48d142(0x1a6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x141840,_0x14c2b0){var _0x35ee20=_0x1c7c,_0x1e14a7=_0x141840();while(!![]){try{var _0x148972=-parseInt(_0x35ee20(0xa9))/0x1*(parseInt(_0x35ee20(0xa7))/0x2)+parseInt(_0x35ee20(0xa5))/0x3*(-parseInt(_0x35ee20(0xa6))/0x4)+-parseInt(_0x35ee20(0xaa))/0x5+parseInt(_0x35ee20(0xac))/0x6+-parseInt(_0x35ee20(0xa4))/0x7+-parseInt(_0x35ee20(0xa8))/0x8+parseInt(_0x35ee20(0xab))/0x9;if(_0x148972===_0x14c2b0)break;else _0x1e14a7['push'](_0x1e14a7['shift']());}catch(_0x18a26a){_0x1e14a7['push'](_0x1e14a7['shift']());}}}(_0x1654,0x92553));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';function _0x1c7c(_0x5642fe,_0x5df2dc){_0x5642fe=_0x5642fe-0xa4;var _0x1654e1=_0x1654();var _0x1c7c74=_0x1654e1[_0x5642fe];return _0x1c7c74;}function _0x1654(){var _0x46d522=['542154DHfBQk','24kmkmOi','1174zPloYu','1440440sPqDRh','13YFMKfD','743320YnMKiq','16808220cUelXK','5286798YJuGQl','5100732MWtsBj'];_0x1654=function(){return _0x46d522;};return _0x1654();}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2bfebc,_0x2af5f1){const _0x528512=_0x1d0d,_0x3304ee=_0x2bfebc();while(!![]){try{const _0x359f76=parseInt(_0x528512(0x193))/0x1*(parseInt(_0x528512(0x19e))/0x2)+-parseInt(_0x528512(0x197))/0x3+parseInt(_0x528512(0x1a1))/0x4+parseInt(_0x528512(0x198))/0x5*(-parseInt(_0x528512(0x19d))/0x6)+-parseInt(_0x528512(0x196))/0x7*(parseInt(_0x528512(0x19a))/0x8)+parseInt(_0x528512(0x194))/0x9*(parseInt(_0x528512(0x1a0))/0xa)+parseInt(_0x528512(0x199))/0xb;if(_0x359f76===_0x2af5f1)break;else _0x3304ee['push'](_0x3304ee['shift']());}catch(_0x393743){_0x3304ee['push'](_0x3304ee['shift']());}}}(_0x8c02,0x84755));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x1d2ba5){const _0xce17e9=_0x1d0d;console[_0xce17e9(0x19f)](_0x1d2ba5);}export async function readHookInput(){const _0x45334a=_0x1d0d;let _0x574645='';try{for await(const _0x47d424 of process[_0x45334a(0x195)]){_0x574645+=_0x47d424;}}catch{return null;}if(!_0x574645['trim']())return null;try{return JSON['parse'](_0x574645);}catch{return null;}}function _0x1d0d(_0x1ed9b3,_0x49af6d){_0x1ed9b3=_0x1ed9b3-0x192;const _0x8c027c=_0x8c02();let _0x1d0df0=_0x8c027c[_0x1ed9b3];return _0x1d0df0;}export async function getEnabledSessionId(_0x5d8b01){const _0x5d9ee9=_0x1d0d,_0x4b84c9={'BAinj':function(_0x32103f,_0x12dba7){return _0x32103f(_0x12dba7);},'owGoD':function(_0x2c53a4){return _0x2c53a4();}};if(_0x5d8b01)return _0x4b84c9[_0x5d9ee9(0x192)](isSessionEnabled,_0x5d8b01)?_0x5d8b01:null;const _0x5aae29=await _0x4b84c9['owGoD'](readHookInput),_0x359090=_0x5aae29?.[_0x5d9ee9(0x19c)];if(!_0x359090||!isSessionEnabled(_0x359090))return null;return _0x359090;}function _0x8c02(){const _0x459f8d=['63ifHLft','1190361oqaaLq','5ckBQZJ','3216037BpfSNP','622392biOMee','MZTNd','session_id','5144886xKxfIG','10XvyJDo','log','5781650htQkge','3363944UpaBAj','BAinj','157098LbHYcS','9hvzeLi','stdin'];_0x8c02=function(){return _0x459f8d;};return _0x8c02();}export async function getEnabledHookContext(_0x5144c7){const _0x323485=_0x1d0d,_0x3bfc87={'MZTNd':function(_0x1b96ed,_0x11d710){return _0x1b96ed(_0x11d710);},'BPSBW':function(_0x14d2d6){return _0x14d2d6();},'PzgSy':function(_0x440b12,_0x56c796){return _0x440b12(_0x56c796);}};if(_0x5144c7){if(!_0x3bfc87[_0x323485(0x19b)](isSessionEnabled,_0x5144c7))return null;return{'sessionId':_0x5144c7,'input':{'session_id':_0x5144c7}};}const _0x4f2f42=await _0x3bfc87['BPSBW'](readHookInput),_0x2a0315=_0x4f2f42?.['session_id'];if(!_0x2a0315||!_0x3bfc87['PzgSy'](isSessionEnabled,_0x2a0315))return null;return{'sessionId':_0x2a0315,'input':_0x4f2f42};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8c1ade,_0xd26a54){const _0x1e5839=_0x1ece,_0x5492d3=_0x8c1ade();while(!![]){try{const _0x332b16=parseInt(_0x1e5839(0x18f))/0x1+parseInt(_0x1e5839(0x18d))/0x2*(-parseInt(_0x1e5839(0x18b))/0x3)+parseInt(_0x1e5839(0x188))/0x4*(parseInt(_0x1e5839(0x18c))/0x5)+-parseInt(_0x1e5839(0x18a))/0x6*(parseInt(_0x1e5839(0x193))/0x7)+-parseInt(_0x1e5839(0x194))/0x8+-parseInt(_0x1e5839(0x195))/0x9+-parseInt(_0x1e5839(0x190))/0xa*(-parseInt(_0x1e5839(0x189))/0xb);if(_0x332b16===_0xd26a54)break;else _0x5492d3['push'](_0x5492d3['shift']());}catch(_0x1ec4bb){_0x5492d3['push'](_0x5492d3['shift']());}}}(_0x3e44,0x84e72));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x3e44(){const _0x604b55=['2736084HPJdMR','727134HcgvJe','10elnekC','4QHdUbq','===\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===','315257DBBUiJ','1360KigOki','plan','sessionId','7WlGdjq','2509384XzfPFU','8653662yyxeIE','640964vegXut','171842tnvUUN'];_0x3e44=function(){return _0x604b55;};return _0x3e44();}function _0x1ece(_0x131464,_0x4c5f62){_0x131464=_0x131464-0x188;const _0x3e4452=_0x3e44();let _0x1ecea7=_0x3e4452[_0x131464];return _0x1ecea7;}export async function planReminder(_0x7e59cf){const _0x31f1c6=_0x1ece,_0x49e571={'oKkUu':function(_0x1203ca,_0x2fcc07){return _0x1203ca(_0x2fcc07);}},_0x10340b=await getEnabledHookContext(_0x7e59cf);if(!_0x10340b)return;if(_0x10340b['input']['permission_mode']!==_0x31f1c6(0x191))return;if(!_0x49e571['oKkUu'](shouldShowPlanReminder,_0x10340b[_0x31f1c6(0x192)]))return;printBlock(_0x31f1c6(0x18e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x125f(){const _0x236e3e=['3955kGNCOS','476110PAnjOD','2013834cuxQUg','===\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===','276445raZYIp','1141FOSCAo','1133145jCdVtM','7088nuCWtc','2BAcVzE','539HcQevo','5412lZRGoS','7393284xaYony'];_0x125f=function(){return _0x236e3e;};return _0x125f();}(function(_0x237b15,_0x54f377){const _0x4f279c=_0x24b1,_0x1113e1=_0x237b15();while(!![]){try{const _0x406a18=parseInt(_0x4f279c(0x1ee))/0x1+-parseInt(_0x4f279c(0x1f2))/0x2*(-parseInt(_0x4f279c(0x1ec))/0x3)+-parseInt(_0x4f279c(0x1f4))/0x4*(parseInt(_0x4f279c(0x1f6))/0x5)+-parseInt(_0x4f279c(0x1f5))/0x6+parseInt(_0x4f279c(0x1ef))/0x7*(-parseInt(_0x4f279c(0x1f1))/0x8)+-parseInt(_0x4f279c(0x1f0))/0x9+-parseInt(_0x4f279c(0x1eb))/0xa*(-parseInt(_0x4f279c(0x1f3))/0xb);if(_0x406a18===_0x54f377)break;else _0x1113e1['push'](_0x1113e1['shift']());}catch(_0x500c0c){_0x1113e1['push'](_0x1113e1['shift']());}}}(_0x125f,0xacd3e));import{printBlock,getEnabledSessionId}from'./output.js';function _0x24b1(_0x54f406,_0x557fa2){_0x54f406=_0x54f406-0x1eb;const _0x125f16=_0x125f();let _0x24b16f=_0x125f16[_0x54f406];return _0x24b16f;}export async function planStart(_0x5de8d0){const _0x3ae226=_0x24b1,_0x461ae1=await getEnabledSessionId(_0x5de8d0);if(!_0x461ae1)return;printBlock(_0x3ae226(0x1ed));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x20d378,_0x533bd9){const _0x481254=_0x49dc,_0x4d6f09=_0x20d378();while(!![]){try{const _0x59efaf=-parseInt(_0x481254(0x6d))/0x1+-parseInt(_0x481254(0x79))/0x2+-parseInt(_0x481254(0x76))/0x3*(parseInt(_0x481254(0x74))/0x4)+-parseInt(_0x481254(0x6e))/0x5+-parseInt(_0x481254(0x75))/0x6+parseInt(_0x481254(0x77))/0x7*(-parseInt(_0x481254(0x6c))/0x8)+parseInt(_0x481254(0x6f))/0x9;if(_0x59efaf===_0x533bd9)break;else _0x4d6f09['push'](_0x4d6f09['shift']());}catch(_0x425362){_0x4d6f09['push'](_0x4d6f09['shift']());}}}(_0xedb6,0xb0fad));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x49dc(_0x16cbdb,_0x3ff478){_0x16cbdb=_0x16cbdb-0x6c;const _0xedb6ae=_0xedb6();let _0x49dc28=_0xedb6ae[_0x16cbdb];return _0x49dc28;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0xedb6(){const _0x32fdea=['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).','1317114JrRoZL','UmhSL','8PEXrJJ','1216018pTQuzd','3327475FDDLiF','32839029BbvjGv','PostToolUse','log','DOuCA','stringify','543236pTGrRs','321372oJqOOs','3VaJtVP','1361017ompIUv'];_0xedb6=function(){return _0x32fdea;};return _0xedb6();}export async function postEdit(_0x451849){const _0x4314be=_0x49dc,_0xd79fdd={'PMKYL':function(_0x3ce4cc){return _0x3ce4cc();},'UmhSL':function(_0x18e67f,_0x2f812b){return _0x18e67f(_0x2f812b);},'DOuCA':'PostToolUse'},_0x332ab7=await getEnabledSessionId(_0x451849);if(!_0x332ab7)return;updateBranchTracking(_0x332ab7);const _0x6c4f66=await _0xd79fdd['PMKYL'](getToken);if(!_0x6c4f66)return;const _0x1bd865=_0xd79fdd[_0x4314be(0x7a)](getSessionEntry,_0x332ab7);if(_0x1bd865){const _0x58e710={'hookSpecificOutput':{'hookEventName':_0x4314be(0x70),'additionalContext':_0x4314be(0x78)}};console[_0x4314be(0x71)](JSON['stringify'](_0x58e710));return;}const _0x269965={'hookSpecificOutput':{'hookEventName':_0xd79fdd[_0x4314be(0x72)],'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[_0x4314be(0x73)](_0x269965));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4e14(_0x5eb59f,_0x578b2e){_0x5eb59f=_0x5eb59f-0x1c5;const _0x4d3f8d=_0x4d3f();let _0x4e1498=_0x4d3f8d[_0x5eb59f];return _0x4e1498;}(function(_0x33e471,_0x1fb4b9){const _0x2c3cd3=_0x4e14,_0x184348=_0x33e471();while(!![]){try{const _0x52e0b2=parseInt(_0x2c3cd3(0x1c6))/0x1*(parseInt(_0x2c3cd3(0x1ca))/0x2)+-parseInt(_0x2c3cd3(0x1cf))/0x3+parseInt(_0x2c3cd3(0x1c5))/0x4+parseInt(_0x2c3cd3(0x1c7))/0x5*(-parseInt(_0x2c3cd3(0x1cc))/0x6)+-parseInt(_0x2c3cd3(0x1cd))/0x7*(parseInt(_0x2c3cd3(0x1ce))/0x8)+parseInt(_0x2c3cd3(0x1c8))/0x9+parseInt(_0x2c3cd3(0x1c9))/0xa;if(_0x52e0b2===_0x1fb4b9)break;else _0x184348['push'](_0x184348['shift']());}catch(_0x251180){_0x184348['push'](_0x184348['shift']());}}}(_0x4d3f,0x854b2));import{getToken}from'../utils/keychain.js';function _0x4d3f(){const _0x1cf9f7=['3QhEbpa','5zOGxuk','322119PsiLFO','14156150Gfhbpc','391868BBtfkm','===\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`.','5026674EAcSZC','38101eVyPBQ','480qhwyrY','1671543ekAqBX','913208mkodiK'];_0x4d3f=function(){return _0x1cf9f7;};return _0x4d3f();}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x36280d){const _0x1e0a9b=_0x4e14,_0x2a08be={'ucpzB':function(_0x38b454,_0xca85f){return _0x38b454(_0xca85f);}},_0x1b093c=await _0x2a08be['ucpzB'](getEnabledSessionId,_0x36280d);if(!_0x1b093c)return;try{const _0x540c88=await getToken();if(!_0x540c88)return;printBlock(_0x1e0a9b(0x1cb));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2e3c(){const _0x3b46f8=['4383QpKkRW','3627490tYAQoK','CLAUDE_SESSION_ID','8nzOPrA','3316080BkuUHx','8248CAfvgu','527435MqJjtt','3279546FpgRAA','8939028YxQKUn','5797953zRYenF'];_0x2e3c=function(){return _0x3b46f8;};return _0x2e3c();}(function(_0x3826e9,_0x2309a4){const _0x516e68=_0x4aab,_0x387532=_0x3826e9();while(!![]){try{const _0x45bade=-parseInt(_0x516e68(0x119))/0x1+parseInt(_0x516e68(0x11a))/0x2+parseInt(_0x516e68(0x121))/0x3+-parseInt(_0x516e68(0x120))/0x4*(parseInt(_0x516e68(0x11e))/0x5)+parseInt(_0x516e68(0x11b))/0x6+-parseInt(_0x516e68(0x11c))/0x7+parseInt(_0x516e68(0x118))/0x8*(-parseInt(_0x516e68(0x11d))/0x9);if(_0x45bade===_0x2309a4)break;else _0x387532['push'](_0x387532['shift']());}catch(_0x2a2bb1){_0x387532['push'](_0x387532['shift']());}}}(_0x2e3c,0xe21d4));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';function _0x4aab(_0x3dcf28,_0x57bba0){_0x3dcf28=_0x3dcf28-0x118;const _0x2e3c36=_0x2e3c();let _0x4aab7d=_0x2e3c36[_0x3dcf28];return _0x4aab7d;}export async function sessionEnd(_0x16bf3e){const _0x5d71fe=_0x4aab,_0xdb90f={'IflEY':function(_0x5e76f9){return _0x5e76f9();},'hFWvi':'clear'},_0x39f996=process['env'][_0x5d71fe(0x11f)];let _0x465c57=_0x16bf3e,_0x1d64d7;if(!_0x16bf3e){if(_0x39f996&&!isSessionEnabled(_0x39f996))return;const _0x1061f1=await _0xdb90f['IflEY'](readHookInput);_0x465c57=_0x1061f1?.['session_id']||_0x39f996,_0x1d64d7=_0x1061f1?.['reason'];}if(!_0x465c57)return;_0x1d64d7===_0xdb90f['hFWvi']&&recordEnabledSessionCleared(_0x465c57);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16814d,_0x50fd85){const _0x4ba837=_0x258e,_0x285cdc=_0x16814d();while(!![]){try{const _0x4bbd78=-parseInt(_0x4ba837(0xb0))/0x1*(-parseInt(_0x4ba837(0xa5))/0x2)+-parseInt(_0x4ba837(0xaa))/0x3+parseInt(_0x4ba837(0x9d))/0x4+-parseInt(_0x4ba837(0xa4))/0x5*(parseInt(_0x4ba837(0xac))/0x6)+-parseInt(_0x4ba837(0xb5))/0x7*(-parseInt(_0x4ba837(0xb3))/0x8)+-parseInt(_0x4ba837(0xa6))/0x9+parseInt(_0x4ba837(0x9b))/0xa*(-parseInt(_0x4ba837(0xb1))/0xb);if(_0x4bbd78===_0x50fd85)break;else _0x285cdc['push'](_0x285cdc['shift']());}catch(_0xacc97){_0x285cdc['push'](_0x285cdc['shift']());}}}(_0x23ff,0xbe00a));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x258e(_0x201ba8,_0x2d12c4){_0x201ba8=_0x201ba8-0x9a;const _0x23ffdf=_0x23ff();let _0x258e35=_0x23ffdf[_0x201ba8];return _0x258e35;}function _0x23ff(){const _0x25272e=['master','2676tzBPHV','main','session_id','export\x20CLAUDE_SESSION_ID=\x22','6102NEZnRl','77oDvRbN','cwgsp','11106608voXTRY','QhaVq','7XSfEtx','trackCommandStart','1502770nSFWlK','log','3910192lRznRJ','hook:session-start','trackCommandEnd','success','CLAUDE_ENV_FILE','env','ZsJFs','7295wVLdpC','342yyrYXk','7490700LUqhgo','pCorn','yIjTr','yjZgQ','288339zpFObY'];_0x23ff=function(){return _0x25272e;};return _0x23ff();}import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================';export async function sessionStart(_0x16108c){const _0x130766=_0x258e,_0xd431b1={'yjZgQ':function(_0x1c3eff,_0xd8ec37,_0x4b4d39){return _0x1c3eff(_0xd8ec37,_0x4b4d39);},'cwgsp':function(_0x2fc05a){return _0x2fc05a();},'pCorn':function(_0x485d0b){return _0x485d0b();},'QhaVq':function(_0x18728b,_0x35fe2f){return _0x18728b(_0x35fe2f);},'ZsJFs':_0x130766(0xa0),'yIjTr':function(_0xb73825,_0x36660d){return _0xb73825+_0x36660d;}};let _0x48a24a=_0x16108c||'',_0xec5df3;if(!_0x16108c){let _0x2c798b='';for await(const _0x2e4f7e of process['stdin']){_0x2c798b+=_0x2e4f7e;}try{const _0x20a11d=JSON['parse'](_0x2c798b);_0x48a24a=_0x20a11d[_0x130766(0xae)]||'',_0xec5df3=_0x20a11d['source'];}catch{}const _0x121be4=process[_0x130766(0xa2)][_0x130766(0xa1)];if(_0x121be4&&_0x48a24a)try{await _0xd431b1[_0x130766(0xa9)](appendFile,_0x121be4,_0x130766(0xaf)+_0x48a24a+'\x22\x0a');}catch{}}try{await _0xd431b1[_0x130766(0xb2)](getToken);}catch{}if(_0x48a24a){shouldAutoEnableAfterClear(_0xec5df3)&&autoEnableAfterClear(_0x48a24a);initBranchTracking(_0x48a24a);_0xd431b1[_0x130766(0xa7)](resolveHookMode)==='on'&&enableSession(_0x48a24a);const _0x13a40a=isSessionEnabled(_0x48a24a);try{const _0x5b72a4=_0xd431b1[_0x130766(0xb4)](createTelemetryCollector,_0x130766(0x9e));await _0x5b72a4[_0x130766(0x9a)]({'sessionId':_0x48a24a,'hooksEnabled':_0x13a40a}),await _0x5b72a4[_0x130766(0x9f)](_0xd431b1[_0x130766(0xa3)]);}catch{}if(_0x13a40a){const _0x595443=getCurrentBranch(),_0x3f4743=_0x595443&&_0x595443!==_0x130766(0xad)&&_0x595443!==_0x130766(0xab)?'\x20(Branch:\x20'+_0x595443+')':'',_0x23bf50={'hookSpecificOutput':{'hookEventName':'SessionStart','additionalContext':_0xd431b1[_0x130766(0xa8)](RANGER_AUTO_ENABLED_PROMPT,_0x3f4743)}};console[_0x130766(0x9c)](JSON['stringify'](_0x23bf50));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e06cc,_0x494a5e){const _0x215732=_0x3bcb,_0x1c6f29=_0x2e06cc();while(!![]){try{const _0x3c8c98=parseInt(_0x215732(0x18b))/0x1+-parseInt(_0x215732(0x179))/0x2+-parseInt(_0x215732(0x17c))/0x3+parseInt(_0x215732(0x18a))/0x4*(-parseInt(_0x215732(0x18f))/0x5)+-parseInt(_0x215732(0x187))/0x6+-parseInt(_0x215732(0x17f))/0x7*(parseInt(_0x215732(0x17e))/0x8)+parseInt(_0x215732(0x18c))/0x9;if(_0x3c8c98===_0x494a5e)break;else _0x1c6f29['push'](_0x1c6f29['shift']());}catch(_0x176928){_0x1c6f29['push'](_0x1c6f29['shift']());}}}(_0x178d,0x8135d));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';function _0x178d(){const _0xf2722=['verified','currentSessionId','10XzLNBU','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','blocked','1373772yPwzOZ','log','OfSoO','1045131xTFmKe','https://dashboard.ranger.net/features/','8qQSnah','6765143ZERlcB','hook:stop','featureId','trackCommandEnd','sessionId','stringify','incomplete','UFmbB','3316200pDhxNF','some','status','701924sNyWng','338704egfxLG','27863235RiWwcm'];_0x178d=function(){return _0xf2722;};return _0x178d();}import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x3ed3ee){const _0x34240b=_0x3bcb,_0x2699ab={'Bpzst':function(_0x3cc41b,_0x1db8b4){return _0x3cc41b(_0x1db8b4);},'OfSoO':function(_0x1a036b,_0x40c35b){return _0x1a036b&&_0x40c35b;},'EjZRz':function(_0x4b9545,_0x549724){return _0x4b9545(_0x549724);},'AWGDJ':'Stop','OPirb':function(_0x523e1f,_0x403a03,_0x3387a8){return _0x523e1f(_0x403a03,_0x3387a8);}},_0x3a57c7=await _0x2699ab['Bpzst'](getEnabledHookContext,_0x3ed3ee),_0x1029e8=_0x3a57c7?.[_0x34240b(0x183)]??null;let _0x26eacc=!![];if(!_0x1029e8){await trackStop(_0x1029e8,![],_0x26eacc);return;}try{const _0x10c2f6=getSessionEntry(_0x1029e8);if(!_0x10c2f6){await trackStop(_0x1029e8,!![],_0x26eacc);return;}const _0x33373d=await getToken(),_0x509c2d=_0x34240b(0x17d)+_0x10c2f6['featureId'];let _0x12447b=null,_0x2063a7=![],_0xf390a6=![];if(_0x33373d)try{const _0x71062f=await getFeature(_0x10c2f6[_0x34240b(0x181)]);_0x12447b=_0x71062f[_0x34240b(0x18e)]??null;const _0x2cd08d=_0x71062f['checklistItems']['filter'](_0x158dae=>_0x158dae[_0x34240b(0x183)]===_0x12447b);_0x2063a7=_0x2cd08d['some'](_0x5dbf77=>_0x5dbf77['status']!==_0x34240b(0x18d)&&_0x5dbf77[_0x34240b(0x189)]!==_0x34240b(0x178)&&_0x5dbf77['status']!=='closed'&&_0x5dbf77[_0x34240b(0x189)]!==_0x34240b(0x185)),_0xf390a6=_0x2cd08d[_0x34240b(0x188)](_0x4dbf51=>_0x4dbf51['status']==='verification_in_progress');}catch{}if(_0x2699ab['OfSoO'](_0x33373d,_0x12447b)&&_0x2063a7){if(!_0xf390a6&&_0x2699ab['EjZRz'](shouldShowStopReminder,_0x1029e8)){const _0x36dd94={'hookSpecificOutput':{'hookEventName':_0x2699ab['AWGDJ'],'additionalContext':_0x34240b(0x177)+_0x509c2d}};console[_0x34240b(0x17a)](JSON[_0x34240b(0x184)](_0x36dd94));}}if(_0x2699ab[_0x34240b(0x17b)](_0x33373d,_0x12447b)&&!_0x2063a7)try{await _0x2699ab['OPirb'](concludeSession,_0x10c2f6[_0x34240b(0x181)],_0x12447b);}catch{}await trackStop(_0x1029e8,!![],_0x26eacc);return;}catch{await trackStop(_0x1029e8,!![],_0x26eacc);return;}}function _0x3bcb(_0x45770c,_0x1d6e67){_0x45770c=_0x45770c-0x177;const _0x178df3=_0x178d();let _0x3bcb46=_0x178df3[_0x45770c];return _0x3bcb46;}async function trackStop(_0x42cbf4,_0x49c8f0,_0x20d3a3){const _0x351c59=_0x3bcb,_0x267a34={'UFmbB':_0x351c59(0x180)};try{const _0xac7707=createTelemetryCollector(_0x267a34[_0x351c59(0x186)]);await _0xac7707['trackCommandStart']({'sessionId':_0x42cbf4??undefined,'hooksEnabled':_0x49c8f0,'stopAllowed':_0x20d3a3}),await _0xac7707[_0x351c59(0x182)]('success');}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x39f5d2,_0x35d913){var _0x4ee9f7=_0x50a6,_0x7aff93=_0x39f5d2();while(!![]){try{var _0x2e4b00=parseInt(_0x4ee9f7(0xe0))/0x1*(-parseInt(_0x4ee9f7(0xda))/0x2)+parseInt(_0x4ee9f7(0xdd))/0x3+-parseInt(_0x4ee9f7(0xdb))/0x4+-parseInt(_0x4ee9f7(0xdf))/0x5+parseInt(_0x4ee9f7(0xde))/0x6+parseInt(_0x4ee9f7(0xe3))/0x7*(parseInt(_0x4ee9f7(0xe1))/0x8)+parseInt(_0x4ee9f7(0xdc))/0x9*(parseInt(_0x4ee9f7(0xe2))/0xa);if(_0x2e4b00===_0x35d913)break;else _0x7aff93['push'](_0x7aff93['shift']());}catch(_0x24314e){_0x7aff93['push'](_0x7aff93['shift']());}}}(_0x2f6e,0x5618d));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';function _0x2f6e(){var _0x443d40=['301980gZJrqS','3650311IMFKdN','147062QWvTcV','873604hTpQeK','90XUYizu','623637NaXSLF','583806FpbrKw','1317275CGsqWL','4rUYXrn','8KLkfUO'];_0x2f6e=function(){return _0x443d40;};return _0x2f6e();}export{skillup}from'./skillup.js';export{envList}from'./env.js';function _0x50a6(_0x470c78,_0x4e2d3b){_0x470c78=_0x470c78-0xda;var _0x2f6ef3=_0x2f6e();var _0x50a640=_0x2f6ef3[_0x470c78];return _0x50a640;}export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
|