@ranger-testing/ranger-cli 3.0.1-alpha.46ed70b-30 → 3.0.1-alpha.4fcf7f7-33
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 -0
- 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/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 _0xb6b994=_0x3a40;(function(_0x302f7a,_0x42475d){const _0x40932f=_0x3a40,_0x34f6ee=_0x302f7a();while(!![]){try{const _0x3d97b1=parseInt(_0x40932f(0x23c))/0x1+-parseInt(_0x40932f(0x1ce))/0x2*(parseInt(_0x40932f(0x223))/0x3)+parseInt(_0x40932f(0x1ea))/0x4*(-parseInt(_0x40932f(0x1bf))/0x5)+-parseInt(_0x40932f(0x27f))/0x6*(parseInt(_0x40932f(0x272))/0x7)+parseInt(_0x40932f(0x1c1))/0x8*(parseInt(_0x40932f(0x29f))/0x9)+-parseInt(_0x40932f(0x1ef))/0xa*(-parseInt(_0x40932f(0x241))/0xb)+parseInt(_0x40932f(0x22f))/0xc*(parseInt(_0x40932f(0x24e))/0xd);if(_0x3d97b1===_0x42475d)break;else _0x34f6ee['push'](_0x34f6ee['shift']());}catch(_0x39d95a){_0x34f6ee['push'](_0x34f6ee['shift']());}}}(_0x4b9b,0x77050));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';function _0x4b9b(){const _0x5094fd=['Current\x20session\x20not\x20found.',':\x20\x22','verificationInProgressItems','zLmzO','wlIIW','\x20\x20\x20Progress:\x20','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20of\x20','6143028Gdqupc','trim','gitBranch','description','...','comment_','/api/v1/mcp/browser-sessions/','/artifacts/','IXULi','WyyfH','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','umhkE','YERYw','266925GABGBO','\x20/\x20','\x20\x20\x20Branch:\x20','map','PcLCG','1001Yzupid','items','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','hFdGH','yjjqU','qfyGX','LyUpB','trcqN','trimEnd','\x20—\x20no\x20comments','blockedItems','toLocaleString','vggIm','26uWnDOD','textContent','gZENg','\x0a✅\x20Report\x20generated:\x20','Blxgr','KBMhK','imDIF','4|1|2|0|3|5','WFPpU','PnqvI','ZyjJH','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','output','iZDVO','\x20concluded.','push','\x20\x20\x20Updated\x20branch\x20to:\x20','join','completedAt','currentBranch','BbcRJ','iteration','WoQkd','prompt','OPIgj','after','approved','\x0a✅\x20Restored\x20feature\x20review:\x20','location','assetType','eizfA','FKKBb','eSBUI','hZWTW','status','exit','126399lMpIMi','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','NFIFK','QeJvC','completed','find','\x0a✅\x20Session\x20','OtGCt','stdout','Step\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','\x20\x20\x20\x20\x20Progress:\x20','WTDJc','72rGVzDn','rmCAc','CfTUT','UVxKF','jpIpo','\x0a📋\x20Feedback\x20for:\x20','UfwIC','version','replace','blockedReason','UrcZA','qRAxm','\x20\x20\x20\x20\x20Branch:\x20','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','terminalReason','\x20incomplete','canceledReason','currentSessionId','assets','blocked','\x0a✅\x20Session\x20is\x20already\x20completed.','\x0aAvailable\x20scenarios:','Cannot\x20conclude\x20session\x20with\x20status:\x20','utf-8','domRef','latestReview','selected','\x20Session\x20','list','\x20unaddressed\x20comment(s)','QMhpg','369jhDutB','\x20scenario(s).','ufiUK','btmJu','CmgvQ','checklistItems','HzHWz','Yzchb','limit','canonicalFlow','\x0a✅\x20Scenario\x20updated','\x20\x20\x20Status:\x20','screenshotUrls','\x20\x20\x20Repository:\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20\x20\x20\x20\x20\x20Blocked:\x20','oPigy','\x20\x20✅\x20No\x20feedback\x20to\x20address','includeDeleted','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','XDdIP','length','gitRepoUrl','35JFerop','gcRQH','84184gooqTa','jOKTI','selector','repeat','\x0aCreating\x20feature\x20review...','closed','\x1b[1m','browserSessionId','CLAUDE_SESSION_ID','pipe','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x20--include-deleted','\x20(v','4AEwULS','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','UPFqA','AmTPd','TvRzg','isInteger','\x20\x20\x20\x20\x20\x20Cancelled:\x20','vmDWe','sLtSP','\x20>\x20','sessionId','verification_in_progress','jIgIx','totalCount','LJMeC','spatial','.md','git\x20remote\x20get-url\x20origin','incomplete','hRzMp','eFSLK','stringify','mXcnw','stats','Fjmzu','filter','Showing\x20','xyvjt','519212PHdVPM','oPgkA','zUIsJ','iiRpV','stepName','34050tSVlnb','log','phQTF','No\x20scenarios\x20found.','\x20\x20\x20Completed:\x20','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x20\x20\x20','toFixed','RANGER_TEST_USERNAME','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','SUrOC','env','createdAt','scenario','submittedAt','VPhYO','excludeScenarios','hfnDf','in_progress','RENeS','\x0aGenerating\x20report...','No\x20sessions\x20found.','dashboardUrl','write','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','toLocaleDateString','coordinates','RJcQk','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','\x0a\x20\x20\x20Scenarios:','\x20feature\x20review(s)\x20found','xRYTB','LIOOf','numeric','isKeyStep','\x20\x20\x20▶️\x20Started\x20session\x20','\x20\x20\x20Created:\x20','\x20—\x20','QglxR','error','QiyzR','CAvoN','\x20\x20\x20\x20\x20📋\x20Selector:\x20','yWzIY','xMhLh','incompleteReason','\x0a❌\x20Invalid\x20scenario\x20index:\x20','HKeqG','element','isTTY','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','name','628878BZGRUt','Not\x20in\x20a\x20git\x20repository.','Scenario\x20','EhDwD'];_0x4b9b=function(){return _0x5094fd;};return _0x4b9b();}import _0x814486 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x54cf50=>_0xb6b994(0x1c7)+_0x54cf50+'\x1b[0m';function getGitRepoUrl(){const _0x2bfef6=_0xb6b994,_0x338e89={'ruzkw':function(_0x476464,_0x1a0b53,_0x448f04){return _0x476464(_0x1a0b53,_0x448f04);},'Yzchb':_0x2bfef6(0x1ca),'WyyfH':'github.com/'};try{const _0x5656ad=_0x338e89['ruzkw'](execSync,_0x2bfef6(0x1df),{'encoding':_0x2bfef6(0x297),'stdio':[_0x338e89[_0x2bfef6(0x2a6)],_0x338e89['Yzchb'],_0x2bfef6(0x1ca)]})[_0x2bfef6(0x230)]();return _0x5656ad['replace'](/\.git$/,'')[_0x2bfef6(0x287)](/^git@github\.com:/,_0x338e89[_0x2bfef6(0x238)])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x32c566=_0xb6b994,_0x132914={'vlOko':function(_0x2fe88b,_0x28f0a7,_0xfb7f03){return _0x2fe88b(_0x28f0a7,_0xfb7f03);},'NFIFK':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','hfnDf':'utf-8','uxUuC':'pipe'};try{return _0x132914['vlOko'](execSync,_0x132914[_0x32c566(0x274)],{'encoding':_0x132914[_0x32c566(0x200)],'stdio':[_0x32c566(0x1ca),_0x132914['uxUuC'],'pipe']})[_0x32c566(0x230)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x245721=_0xb6b994,_0x151dbe={'CmgvQ':function(_0xb2b480,_0x4fdf9b,_0x1a0dda){return _0xb2b480(_0x4fdf9b,_0x1a0dda);},'Kttgh':_0x245721(0x297)},_0x4485c4=_0x151dbe[_0x245721(0x2a3)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4485c4))return null;try{const _0x12288e=await _0x151dbe[_0x245721(0x2a3)](readFile,_0x4485c4,_0x151dbe['Kttgh']);return _0x12288e['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x290fd5){const _0x1b2cbf=_0xb6b994,_0x1ee248={'rmCAc':function(_0x33fa5d,_0x49dbfe,_0x4f97aa){return _0x33fa5d(_0x49dbfe,_0x4f97aa);}},_0x4fa51f=getRangerDir(),_0x1c8ab4=_0x1ee248[_0x1b2cbf(0x280)](join,_0x4fa51f,ACTIVE_FEATURE_FILE);!existsSync(_0x4fa51f)&&await mkdir(_0x4fa51f,{'recursive':!![]}),await writeFile(_0x1c8ab4,_0x290fd5,'utf-8');}function getProgressDisplay(_0x1be3d6){const _0x35041a=_0xb6b994,_0x5a3556={'AmTPd':function(_0x31782b,_0x45d0a8){return _0x31782b+_0x45d0a8;},'wascB':function(_0x370ed6,_0x1881a5){return _0x370ed6+_0x1881a5;},'gcRQH':function(_0x13468a,_0x19259b){return _0x13468a===_0x19259b;},'hFdGH':function(_0x256c38,_0x7aa31e){return _0x256c38-_0x7aa31e;},'hRzMp':function(_0x524781,_0x59b2f1){return _0x524781>_0x59b2f1;},'Blxgr':function(_0x24cdd8,_0x686a6){return _0x24cdd8>_0x686a6;}},_0x252769=_0x1be3d6['verifiedItems']||0x0,_0x484bcf=_0x1be3d6[_0x35041a(0x229)]||0x0,_0x473ea3=_0x1be3d6[_0x35041a(0x24b)]||0x0,_0x5f5026=_0x1be3d6['incompleteItems']||0x0,_0x338b4f=_0x1be3d6['pendingItems']||0x0,_0x43bb86=_0x5a3556[_0x35041a(0x1d1)](_0x5a3556['wascB'](_0x252769,_0x484bcf)+_0x473ea3,_0x5f5026)+_0x338b4f;if(_0x5a3556[_0x35041a(0x1c0)](_0x43bb86,0x0))return'-';const _0x11023e=0xa,_0x36d8ef=Math['round'](_0x252769/_0x43bb86*_0x11023e),_0x12272b='█'[_0x35041a(0x1c4)](_0x36d8ef)+'░'[_0x35041a(0x1c4)](_0x5a3556[_0x35041a(0x244)](_0x11023e,_0x36d8ef)),_0x32eda5=[];if(_0x5a3556[_0x35041a(0x1e1)](_0x473ea3,0x0))_0x32eda5[_0x35041a(0x25d)](_0x473ea3+'\x20blocked');if(_0x5a3556[_0x35041a(0x252)](_0x5f5026,0x0))_0x32eda5[_0x35041a(0x25d)](_0x5f5026+_0x35041a(0x28f));if(_0x484bcf>0x0)_0x32eda5[_0x35041a(0x25d)](_0x484bcf+'\x20in\x20progress');const _0x2d2679=_0x32eda5[_0x35041a(0x1bd)]>0x0?'\x20('+_0x32eda5['join'](',\x20')+')':'';return _0x12272b+'\x20'+_0x252769+'/'+_0x43bb86+'\x20verified'+_0x2d2679;}function getCurrentSessionItems(_0x36878c,_0x3e138d){const _0x54bfa2=_0xb6b994;if(!_0x36878c['currentSessionId'])return _0x3e138d[_0x54bfa2(0x1e7)](_0x414a8a=>!_0x414a8a['sessionId']);return _0x3e138d['filter'](_0x579799=>_0x579799[_0x54bfa2(0x1d8)]===_0x36878c['currentSessionId']||!_0x579799[_0x54bfa2(0x1d8)]);}function displayFeature(_0x30598f,_0x4a8077){const _0x1df763=_0xb6b994,_0x3aaba9={'OtGCt':function(_0x2a3850,_0x1851f9){return _0x2a3850(_0x1851f9);},'jpIpo':_0x1df763(0x20c),'AMceJ':function(_0x443f46,_0x1bdedd){return _0x443f46<_0x1bdedd;},'wlIIW':function(_0x4cb392,_0x59317f){return _0x4cb392===_0x59317f;},'hZWTW':_0x1df763(0x1c6),'vggIm':function(_0x23dc0a,_0xc3b8a8){return _0x23dc0a===_0xc3b8a8;},'SUrOC':'verified','imiDW':function(_0x36af1e,_0x108c0a){return _0x36af1e===_0x108c0a;},'ftubc':'verification_in_progress','obMWz':function(_0x1322b3,_0x1d752c){return _0x1322b3>_0x1d752c;},'trcqN':'\x20[has\x20reviewer\x20feedback]','xRYTB':function(_0x122ac2,_0x475955){return _0x122ac2+_0x475955;}};console['log']('\x0a'+_0x30598f[_0x1df763(0x222)]+'\x20('+_0x30598f['dashboardUrl']+')');_0x30598f[_0x1df763(0x1e5)]&&console[_0x1df763(0x1f0)](_0x1df763(0x22c)+_0x3aaba9[_0x1df763(0x279)](getProgressDisplay,_0x30598f['stats']));_0x30598f['description']&&console[_0x1df763(0x1f0)]('\x20\x20\x20Description:\x20'+_0x30598f[_0x1df763(0x232)]);_0x30598f['gitRepoUrl']&&console[_0x1df763(0x1f0)](_0x1df763(0x2ac)+_0x30598f[_0x1df763(0x1be)]);_0x30598f[_0x1df763(0x231)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x30598f['gitBranch']);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x30598f[_0x1df763(0x1fb)])[_0x1df763(0x24c)]());_0x30598f['completedAt']&&console[_0x1df763(0x1f0)](_0x1df763(0x1f3)+new Date(_0x30598f[_0x1df763(0x260)])['toLocaleString']());if(_0x4a8077&&_0x4a8077[_0x1df763(0x1bd)]>0x0){console[_0x1df763(0x1f0)](_0x3aaba9[_0x1df763(0x283)]);for(let _0x2aba73=0x0;_0x3aaba9['AMceJ'](_0x2aba73,_0x4a8077['length']);_0x2aba73++){const _0x46bcc4=_0x4a8077[_0x2aba73];let _0x303888;if(_0x3aaba9[_0x1df763(0x22b)](_0x46bcc4[_0x1df763(0x270)],_0x3aaba9[_0x1df763(0x26f)])&&_0x3aaba9[_0x1df763(0x24d)](_0x46bcc4[_0x1df763(0x28e)],'approved'))_0x303888='✅';else{if(_0x46bcc4['status']===_0x3aaba9['SUrOC'])_0x303888='🟢';else{if(_0x3aaba9['imiDW'](_0x46bcc4[_0x1df763(0x270)],_0x1df763(0x1e0)))_0x303888='🟠';else{if(_0x46bcc4[_0x1df763(0x270)]===_0x1df763(0x293))_0x303888='🛑';else{if(_0x46bcc4[_0x1df763(0x270)]==='closed')_0x303888='⛔';else _0x46bcc4['status']===_0x3aaba9['ftubc']?_0x303888='⏳':_0x303888='⬜';}}}}const _0x51d9f1=_0x46bcc4[_0x1df763(0x286)]>0x1?'\x20(v'+_0x46bcc4['version']+')':'',_0x3e3233=_0x3aaba9['obMWz'](_0x46bcc4['version'],0x1)&&_0x46bcc4['parentItemId']&&_0x46bcc4['status']!=='closed'&&_0x46bcc4['status']!==_0x3aaba9[_0x1df763(0x1f9)]?_0x3aaba9[_0x1df763(0x248)]:'';console[_0x1df763(0x1f0)](_0x1df763(0x1f5)+_0x3aaba9[_0x1df763(0x20e)](_0x2aba73,0x1)+'.\x20'+_0x303888+'\x20'+_0x46bcc4['description']+_0x51d9f1+_0x3e3233);_0x46bcc4[_0x1df763(0x270)]===_0x1df763(0x293)&&_0x46bcc4[_0x1df763(0x288)]&&console[_0x1df763(0x1f0)](_0x1df763(0x2ae)+_0x46bcc4['blockedReason']);_0x46bcc4[_0x1df763(0x270)]==='incomplete'&&_0x46bcc4['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x46bcc4[_0x1df763(0x21c)]);if(_0x46bcc4[_0x1df763(0x270)]==='closed'&&_0x3aaba9['imiDW'](_0x46bcc4[_0x1df763(0x28e)],_0x1df763(0x268)))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x46bcc4['status']===_0x1df763(0x1c6)&&_0x46bcc4['canceledReason']&&console[_0x1df763(0x1f0)](_0x1df763(0x1d4)+_0x46bcc4[_0x1df763(0x290)]);}}}export async function featureCreate(_0xf0b2f0,_0x3cb173){const _0x147791=_0xb6b994,_0x5980e4={'QglxR':function(_0x455943,_0x5f27c1){return _0x455943===_0x5f27c1;},'uyGZz':function(_0x15b39f,_0x442607){return _0x15b39f(_0x442607);},'WoQkd':function(_0x5054ee){return _0x5054ee();},'PkxYe':function(_0x2e409e){return _0x2e409e();},'Bzrhq':function(_0x3755cc,_0x1dd9e8,_0x13dd9e){return _0x3755cc(_0x1dd9e8,_0x13dd9e);}},{envNames:_0x47c255}=await getEnvNames();if(_0x5980e4['QglxR'](_0x47c255[_0x147791(0x1bd)],0x0)&&!process['env'][_0x147791(0x1f7)]){let _0x5d76b4=0x0;try{_0x5d76b4=(await listCloudProfiles())['length'];}catch{_0x5d76b4=0x1;}_0x5980e4[_0x147791(0x215)](_0x5d76b4,0x0)&&console['warn']('\x0a'+_0x5980e4['uyGZz'](formatProfileRequiredMessage,_0x8e1072=>bold(_0x8e1072)));}const _0x49bb27=_0x3cb173['scenarios']?_0x3cb173['scenarios'][_0x147791(0x23f)](_0xdc2f93=>_0xdc2f93[_0x147791(0x230)]()):[],_0x6af99e=_0x5980e4[_0x147791(0x264)](getGitRepoUrl),_0x4fda84=_0x5980e4['PkxYe'](getGitBranch);console['log'](_0x147791(0x1c5));const _0x613bfe=await createFeature({'name':_0xf0b2f0,'description':_0x3cb173[_0x147791(0x232)],'checklist':_0x49bb27,'gitRepoUrl':_0x6af99e,'gitBranch':_0x4fda84});await setActiveFeatureId(_0x613bfe['id']),await _0x5980e4['uyGZz'](tryStartCurrentSession,_0x613bfe['id']);const _0x32d59b=process['env']['CLAUDE_SESSION_ID'];_0x32d59b&®isterSession(_0x32d59b,_0x613bfe['id']),console[_0x147791(0x1f0)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x613bfe['id']),_0x5980e4['Bzrhq'](displayFeature,_0x613bfe,_0x613bfe['checklistItems']),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x40e88c){const _0x18c221=_0xb6b994,_0x51bc68={'eizfA':function(_0x26a2c7){return _0x26a2c7();},'LyUpB':function(_0x41f3ac,_0x19a614){return _0x41f3ac===_0x19a614;},'jOKTI':function(_0x5e7441,_0xf52736){return _0x5e7441>_0xf52736;},'UPFqA':'\x20--current-branch','fAWUA':_0x18c221(0x1cc)},_0x3438f5={'limit':_0x40e88c['limit']??0xa,'offset':_0x40e88c['offset']??0x0,'includeDeleted':_0x40e88c[_0x18c221(0x2b1)]};_0x40e88c['currentBranch']&&(_0x3438f5['gitRepoUrl']=_0x51bc68[_0x18c221(0x26c)](getGitRepoUrl),_0x3438f5[_0x18c221(0x231)]=_0x51bc68['eizfA'](getGitBranch));const _0x23e646=await listFeatures(_0x3438f5);if(_0x51bc68[_0x18c221(0x247)](_0x23e646['items'][_0x18c221(0x1bd)],0x0)){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x5f7bb0=_0x51bc68[_0x18c221(0x1c2)](_0x23e646[_0x18c221(0x1db)],_0x23e646[_0x18c221(0x242)][_0x18c221(0x1bd)])?_0x18c221(0x1e8)+_0x23e646['items'][_0x18c221(0x1bd)]+_0x18c221(0x22e)+_0x23e646['totalCount']:_0x23e646['totalCount']+_0x18c221(0x20d);console[_0x18c221(0x1f0)]('\x0a'+_0x5f7bb0+':\x0a');for(const _0x3b3bac of _0x23e646[_0x18c221(0x242)]){console['log'](''+_0x3b3bac['name']),console[_0x18c221(0x1f0)]('\x20\x20\x20ID:\x20'+_0x3b3bac['id']),_0x3b3bac[_0x18c221(0x1e5)]&&console[_0x18c221(0x1f0)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x3b3bac[_0x18c221(0x1e5)])),_0x3b3bac['gitBranch']&&console[_0x18c221(0x1f0)](_0x18c221(0x23e)+_0x3b3bac['gitBranch']),console[_0x18c221(0x1f0)](_0x18c221(0x213)+new Date(_0x3b3bac[_0x18c221(0x1fb)])['toLocaleDateString']()),console['log']('');}const _0x33cb6b=_0x3438f5[_0x18c221(0x2a7)]??0xa,_0x2c7579=(_0x3438f5['offset']??0x0)+_0x23e646[_0x18c221(0x242)]['length'];if(_0x2c7579<_0x23e646['totalCount']){const _0x30e926=_0x33cb6b!==0xa?'\x20--limit\x20'+_0x33cb6b:'',_0x1329b0=_0x40e88c[_0x18c221(0x261)]?_0x51bc68[_0x18c221(0x1d0)]:'',_0x51de01=_0x40e88c['includeDeleted']?_0x51bc68['fAWUA']:'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x2c7579+_0x30e926+_0x1329b0+_0x51de01);}}export async function featureShow(_0x53f4d4){const _0x7ef92=_0xb6b994,_0x44c0bb={'yQLDF':function(_0x2d45b6){return _0x2d45b6();},'qfyGX':function(_0x331e69,_0x51aad5,_0x4ff620){return _0x331e69(_0x51aad5,_0x4ff620);}},_0x3889bb=_0x53f4d4||await _0x44c0bb['yQLDF'](getActiveFeatureId);if(!_0x3889bb)throw new Error(_0x7ef92(0x1bb));const _0x27090e=await getFeature(_0x3889bb);_0x44c0bb[_0x7ef92(0x246)](displayFeature,_0x27090e,_0x27090e[_0x7ef92(0x2a4)]);}export async function featureResume(_0x2e5b32){const _0x26a554=_0xb6b994,_0x1f3f40={'PcLCG':function(_0x21f249,_0x5ccde6){return _0x21f249(_0x5ccde6);},'UVxKF':function(_0x48049d){return _0x48049d();},'zUIsJ':function(_0x2cd5bb,_0x7eb986){return _0x2cd5bb!==_0x7eb986;},'kOpdu':function(_0x685f5,_0x40f7be,_0x594b17){return _0x685f5(_0x40f7be,_0x594b17);},'FKKBb':function(_0x22bc99,_0x5ddf09,_0x405f38){return _0x22bc99(_0x5ddf09,_0x405f38);},'YERYw':function(_0x38a3f8){return _0x38a3f8();},'qRAxm':function(_0x2f6895,_0x331d31){return _0x2f6895&&_0x331d31;},'ufiUK':function(_0x408fc5,_0xc38690){return _0x408fc5||_0xc38690;},'PnqvI':'any','hvMQF':function(_0x4589dd,_0x3551a0){return _0x4589dd===_0x3551a0;},'LIOOf':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','YIosi':_0x26a554(0x29c),'QMhpg':_0x26a554(0x29a),'zLmzO':function(_0x4e55f5,_0x483a99){return _0x4e55f5(_0x483a99);}};if(_0x2e5b32){const _0x58a23f=await _0x1f3f40['PcLCG'](getFeature,_0x2e5b32);await _0x1f3f40[_0x26a554(0x240)](setActiveFeatureId,_0x58a23f['id']);const _0x1782db=_0x1f3f40[_0x26a554(0x282)](getGitBranch);_0x1782db&&_0x1f3f40[_0x26a554(0x1ec)](_0x1782db,_0x58a23f[_0x26a554(0x231)])&&(await _0x1f3f40['kOpdu'](updateFeature,_0x58a23f['id'],{'gitBranch':_0x1782db}),console[_0x26a554(0x1f0)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x1782db));console[_0x26a554(0x1f0)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x58a23f['name']+'\x20('+_0x58a23f['id']+')'),await _0x1f3f40['PcLCG'](tryStartCurrentSession,_0x58a23f['id']);const _0x213274=process['env']['CLAUDE_SESSION_ID'];_0x213274&&_0x1f3f40[_0x26a554(0x26d)](registerSession,_0x213274,_0x58a23f['id']);_0x1f3f40['kOpdu'](displayFeature,_0x58a23f,_0x58a23f[_0x26a554(0x2a4)]),await printFeedbackNudge(_0x58a23f['id']);return;}const _0x33b485=_0x1f3f40[_0x26a554(0x23b)](getGitRepoUrl),_0x30848d=getGitBranch();if(_0x1f3f40[_0x26a554(0x28a)](!_0x33b485,!_0x30848d))throw new Error(_0x26a554(0x224));console[_0x26a554(0x1f0)](_0x26a554(0x207)+_0x1f3f40[_0x26a554(0x2a1)](_0x33b485,_0x1f3f40[_0x26a554(0x257)])+_0x26a554(0x23d)+_0x1f3f40['ufiUK'](_0x30848d,_0x1f3f40[_0x26a554(0x257)])+_0x26a554(0x233));const _0xd93ed9=await listFeatures({'gitRepoUrl':_0x33b485,'gitBranch':_0x30848d}),_0x17382f=_0xd93ed9['items']['filter'](_0x441ae4=>_0x441ae4['status']?_0x441ae4[_0x26a554(0x270)]!=='verified':!_0x441ae4['completedAt']);if(_0x17382f['length']===0x0){console['log'](_0x26a554(0x239)),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x365a6c;if(_0x1f3f40['hvMQF'](_0x17382f['length'],0x1))_0x365a6c=_0x17382f[0x0];else{const _0x305356=process['stdin'][_0x26a554(0x220)]&&process[_0x26a554(0x27a)]['isTTY'];if(!_0x305356){console[_0x26a554(0x1f0)](_0x26a554(0x2ad));for(const _0x575c7d of _0x17382f){console[_0x26a554(0x1f0)]('\x20\x20'+_0x575c7d['name']),console[_0x26a554(0x1f0)]('\x20\x20\x20\x20\x20ID:\x20'+_0x575c7d['id']),_0x575c7d[_0x26a554(0x1e5)]&&console['log'](_0x26a554(0x27d)+_0x1f3f40['PcLCG'](getProgressDisplay,_0x575c7d[_0x26a554(0x1e5)])),_0x575c7d[_0x26a554(0x231)]&&console[_0x26a554(0x1f0)](_0x26a554(0x28b)+_0x575c7d[_0x26a554(0x231)]);}throw new Error(_0x1f3f40[_0x26a554(0x20f)]);}const {selected:_0xf22d9}=await _0x814486[_0x26a554(0x265)]([{'type':_0x1f3f40['YIosi'],'name':_0x1f3f40[_0x26a554(0x29e)],'message':_0x26a554(0x28d),'choices':_0x17382f[_0x26a554(0x23f)](_0x1c373d=>({'name':_0x1c373d['name']+'\x20('+_0x1c373d['id']+')','value':_0x1c373d['id']}))}]);_0x365a6c=_0x17382f['find'](_0x3337bf=>_0x3337bf['id']===_0xf22d9);}await setActiveFeatureId(_0x365a6c['id']);_0x30848d&&_0x30848d!==_0x365a6c[_0x26a554(0x231)]&&(await _0x1f3f40[_0x26a554(0x26d)](updateFeature,_0x365a6c['id'],{'gitBranch':_0x30848d}),console['log'](_0x26a554(0x25e)+_0x30848d));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x365a6c['name']+'\x20('+_0x365a6c['id']+')'),await tryStartCurrentSession(_0x365a6c['id']);const _0x359be1=await _0x1f3f40[_0x26a554(0x22a)](getFeature,_0x365a6c['id']),_0x40d199=process[_0x26a554(0x1fa)][_0x26a554(0x1c9)];_0x40d199&®isterSession(_0x40d199,_0x359be1['id']),displayFeature(_0x359be1,_0x359be1[_0x26a554(0x2a4)]),await _0x1f3f40['PcLCG'](printFeedbackNudge,_0x359be1['id']);}async function printFeedbackNudge(_0x18bf13){const _0x2d2c33=_0xb6b994,_0x1d62bc={'iZDVO':function(_0x3175ec,_0x361b50){return _0x3175ec(_0x361b50);},'hGDNi':function(_0x2efd2d,_0x47e302){return _0x2efd2d>_0x47e302;},'eSBUI':_0x2d2c33(0x259)};try{const {items:_0x2bc089}=await _0x1d62bc[_0x2d2c33(0x25b)](getActionItems,_0x18bf13);let _0x5db95c=0x0,_0x507c6b=0x0;for(const _0xd8f578 of _0x2bc089){const _0x21bf5e=await getItemFeedback(_0x18bf13,_0xd8f578['id']);_0x1d62bc['hGDNi'](_0x21bf5e['unaddressedComments']['length'],0x0)&&(_0x5db95c+=_0x21bf5e['unaddressedComments']['length'],_0x507c6b++);}_0x1d62bc['hGDNi'](_0x5db95c,0x0)&&(console[_0x2d2c33(0x1f0)]('\x0a⚠️\x20\x20'+_0x5db95c+_0x2d2c33(0x1cb)+_0x507c6b+_0x2d2c33(0x2a0)),console[_0x2d2c33(0x1f0)](_0x1d62bc[_0x2d2c33(0x26e)]));}catch{}}async function tryStartCurrentSession(_0xfca693){const _0x8c4c11=_0xb6b994,_0x33e129={'vGBkp':function(_0x23240a,_0x1bc310){return _0x23240a(_0x1bc310);}};try{const {sessions:_0x2824c}=await _0x33e129['vGBkp'](listFeatureSessions,_0xfca693),_0x24010e=_0x2824c[_0x8c4c11(0x277)](_0x11d03b=>_0x11d03b[_0x8c4c11(0x270)]==='ready');_0x24010e&&(await startSession(_0xfca693,_0x24010e['id']),console['log'](_0x8c4c11(0x212)+_0x24010e[_0x8c4c11(0x263)]));}catch{}}export async function featureReport(_0x4b1100,_0x5a06a1){const _0x2e7606=_0xb6b994,_0x549826={'umhkE':_0x2e7606(0x273),'yWzIY':'reports','CfTUT':function(_0x1b65a8,_0x4a9f0c,_0x1ecc29){return _0x1b65a8(_0x4a9f0c,_0x1ecc29);},'vmDWe':function(_0xa7cf07,_0x4870c9,_0x3abd36,_0x4ee858){return _0xa7cf07(_0x4870c9,_0x3abd36,_0x4ee858);},'wYjdp':'utf-8'},_0x733555=_0x4b1100||await getActiveFeatureId();if(!_0x733555)throw new Error(_0x549826[_0x2e7606(0x23a)]);console['log'](_0x2e7606(0x203));const _0x1fec69=await getFeatureReportMarkdown(_0x733555,{'style':_0x5a06a1['style']}),_0x3e259c=_0x5a06a1[_0x2e7606(0x25a)]||join(getRangerDir(),_0x549826[_0x2e7606(0x21a)],_0x733555+_0x2e7606(0x1de)),_0x3c36dd=join(_0x3e259c,'..');!existsSync(_0x3c36dd)&&await _0x549826[_0x2e7606(0x281)](mkdir,_0x3c36dd,{'recursive':!![]}),await _0x549826[_0x2e7606(0x1d5)](writeFile,_0x3e259c,_0x1fec69,_0x549826['wYjdp']),console[_0x2e7606(0x1f0)](_0x2e7606(0x251)+_0x3e259c);}function getScenarioResult(_0x475cef){const _0x38197e=_0xb6b994,_0xc5da83={'OPIgj':function(_0x480a90,_0x39de1c){return _0x480a90===_0x39de1c;},'noQhx':_0x38197e(0x1d9)};if(_0xc5da83['OPIgj'](_0x475cef['status'],_0x38197e(0x1c6)))return _0x475cef['terminalReason']??'closed';if(_0xc5da83[_0x38197e(0x266)](_0x475cef[_0x38197e(0x270)],_0xc5da83['noQhx']))return _0x38197e(0x201);return _0x475cef[_0x38197e(0x270)];}function getScenarioRationale(_0x2047a7,_0x70f27c){const _0x5efcd5=_0xb6b994,_0x1f0db7={'UfwIC':_0x5efcd5(0x255)},_0x2a072a=_0x1f0db7[_0x5efcd5(0x285)]['split']('|');let _0x2794ae=0x0;while(!![]){switch(_0x2a072a[_0x2794ae++]){case'0':if(_0x2047a7[_0x5efcd5(0x290)])return _0x2047a7['canceledReason'];continue;case'1':if(_0x2047a7[_0x5efcd5(0x288)])return _0x2047a7['blockedReason'];continue;case'2':if(_0x2047a7['incompleteReason'])return _0x2047a7[_0x5efcd5(0x21c)];continue;case'3':if(_0x2047a7['notes'])return _0x2047a7['notes'];continue;case'4':if(_0x70f27c)return _0x70f27c;continue;case'5':return null;}break;}}export async function featureReportPrDescription(_0xa3b920,_0x1cd3d5){const _0x137e23=_0xb6b994,_0x32294f={'QeJvC':function(_0x28dabe){return _0x28dabe();},'eFSLK':_0x137e23(0x273),'oPgkA':function(_0x320238,_0x4b13a9,_0x3b5a53){return _0x320238(_0x4b13a9,_0x3b5a53);},'HzHWz':function(_0x501c82,_0x5ca2b9){return _0x501c82===_0x5ca2b9;},'xMhLh':function(_0x4f2e33,_0x21fad6){return _0x4f2e33>_0x21fad6;},'Dfmiz':_0x137e23(0x295),'BbcRJ':function(_0x258395,_0x28b004){return _0x258395+_0x28b004;},'CAvoN':_0x137e23(0x1f8),'wooOQ':function(_0x2af08e,_0x5aa720,_0x16aed6,_0x2482cb){return _0x2af08e(_0x5aa720,_0x16aed6,_0x2482cb);}},_0x182a4b=_0xa3b920||await _0x32294f[_0x137e23(0x275)](getActiveFeatureId);if(!_0x182a4b)throw new Error(_0x32294f[_0x137e23(0x1e2)]);const _0x1f2c85=await getFeature(_0x182a4b),_0xeb071d=_0x1f2c85[_0x137e23(0x2a4)]||[],_0x31861d=_0x32294f[_0x137e23(0x1eb)](getCurrentSessionItems,_0x1f2c85,_0xeb071d);_0x32294f[_0x137e23(0x2a5)](_0x31861d['length'],0x0)&&(console['error'](_0x137e23(0x1f4)),process['exit'](0x1));const _0x30749b=_0x1cd3d5[_0x137e23(0x1ff)]??[],_0x4fdeda=_0x30749b[_0x137e23(0x1e7)](_0x382652=>!Number[_0x137e23(0x1d3)](_0x382652)||_0x382652<0x1||_0x382652>_0x31861d[_0x137e23(0x1bd)]);if(_0x32294f[_0x137e23(0x21b)](_0x4fdeda[_0x137e23(0x1bd)],0x0)){console['error'](_0x137e23(0x221)+_0x4fdeda[_0x137e23(0x25f)](',\x20')),console['log'](_0x32294f['Dfmiz']);for(let _0x40e50f=0x0;_0x40e50f<_0x31861d[_0x137e23(0x1bd)];_0x40e50f++){console[_0x137e23(0x1f0)]('\x20\x20'+_0x32294f[_0x137e23(0x262)](_0x40e50f,0x1)+'.\x20'+_0x31861d[_0x40e50f]['description']);}process['exit'](0x1);}const _0x4281d4=new Set(_0x30749b[_0x137e23(0x23f)](_0x274b94=>_0x274b94-0x1)),_0x167ec0=_0x31861d['filter']((_0x933166,_0x5930a9)=>!_0x4281d4['has'](_0x5930a9));_0x32294f['HzHWz'](_0x167ec0['length'],0x0)&&(console[_0x137e23(0x216)](_0x32294f[_0x137e23(0x218)]),process[_0x137e23(0x271)](0x1));if(_0x1cd3d5['json'])await _0x32294f['wooOQ'](outputJsonReport,_0x182a4b,_0x1f2c85,_0x167ec0);else{const _0x4232d5=await _0x32294f[_0x137e23(0x1eb)](getFeatureReportMarkdown,_0x182a4b,{'itemIds':_0x167ec0['map'](_0x32c817=>_0x32c817['id'])});process['stdout']['write'](_0x4232d5[_0x137e23(0x249)]()+'\x0a');}}async function outputJsonReport(_0x11033a,_0x4803f8,_0x5436eb){const _0x14134d=_0xb6b994,_0x1ef1bd={'Ilbse':function(_0x420435,_0x41aa61){return _0x420435(_0x41aa61);},'sLtSP':function(_0x1f590c,_0x956370){return _0x1f590c>_0x956370;},'KBMhK':function(_0x455cd7,_0x4d6bf3){return _0x455cd7===_0x4d6bf3;},'QBRcE':function(_0x29231a,_0x3b81e9){return _0x29231a(_0x3b81e9);},'CrvfQ':function(_0x572b48,_0x50c1bd,_0x1a3245){return _0x572b48(_0x50c1bd,_0x1a3245);},'nWRjn':function(_0x296e98){return _0x296e98();},'bvVNU':function(_0x1b657e,_0x448e30){return _0x1b657e+_0x448e30;}},_0x507c3f=_0x1ef1bd['nWRjn'](getApiBaseUrl),_0x30854f=await getFeatureReport(_0x11033a),_0x94ebc3=new Map(_0x30854f['checklistItems'][_0x14134d(0x23f)](_0xb86ca0=>[_0xb86ca0['id'],_0xb86ca0])),_0x4efcc1=await Promise['all'](_0x5436eb[_0x14134d(0x23f)](async _0x54fbd3=>{const _0x46e64b=_0x14134d,_0x559310=_0x94ebc3['get'](_0x54fbd3['id']),_0x1e3c4e=_0x559310?.['linkedSession']??null;let _0x4fdb9e=[];if(_0x54fbd3['browserSessionId'])try{const {steps:_0x15b6ca}=await _0x1ef1bd['Ilbse'](getBrowserSessionSteps,_0x54fbd3[_0x46e64b(0x1c8)]);_0x1ef1bd[_0x46e64b(0x1d6)](_0x15b6ca['length'],0x0)&&(_0x4fdb9e=_0x15b6ca['map'](_0x71959c=>{const _0x2f21e7=_0x46e64b,_0x2c08c8=_0x71959c['assets'][_0x2f21e7(0x277)](_0x354e37=>_0x354e37[_0x2f21e7(0x26b)]==='screenshot'&&_0x354e37['timing']===_0x2f21e7(0x267))??_0x71959c[_0x2f21e7(0x292)][_0x2f21e7(0x277)](_0x25a75a=>_0x25a75a['assetType']==='screenshot');let _0x3034d0=null,_0x3fd945=null;if(_0x2c08c8){const _0x585a47=_0x2c08c8['storage'][_0x2f21e7(0x26a)]['split']('/')['pop']();_0x3034d0=_0x507c3f+_0x2f21e7(0x235)+_0x54fbd3[_0x2f21e7(0x1c8)]+_0x2f21e7(0x236)+_0x585a47,_0x585a47&&(_0x3fd945=_0x585a47[_0x2f21e7(0x287)](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x2f21e7(0x287)](/[-_]/g,'\x20'));}return{'description':_0x3fd945||_0x71959c['description']||_0x71959c[_0x2f21e7(0x1ee)]||_0x2f21e7(0x27b)+_0x71959c['position'],'screenshot':_0x3034d0,'is_key_step':_0x71959c[_0x2f21e7(0x211)]};}));}catch{}return _0x1ef1bd[_0x46e64b(0x253)](_0x4fdb9e['length'],0x0)&&_0x1e3c4e?.['screenshotUrls']&&(_0x4fdb9e=_0x1e3c4e[_0x46e64b(0x2ab)][_0x46e64b(0x23f)]((_0x57df4a,_0x289401)=>({'description':'Screenshot\x20'+(_0x289401+0x1),'screenshot':_0x57df4a,'is_key_step':![]}))),{'description':_0x54fbd3['description'],'result':_0x1ef1bd['QBRcE'](getScenarioResult,_0x54fbd3),'rationale':_0x1ef1bd['CrvfQ'](getScenarioRationale,_0x54fbd3,_0x1e3c4e?.['agentResponse']),'steps':_0x4fdb9e};})),_0x4cbab6={'url':_0x4803f8[_0x14134d(0x205)],'scenarios':_0x4efcc1};process[_0x14134d(0x27a)][_0x14134d(0x206)](_0x1ef1bd['bvVNU'](JSON[_0x14134d(0x1e3)](_0x4cbab6,null,0x2),'\x0a'));}function _0x3a40(_0x45cb12,_0x336545){_0x45cb12=_0x45cb12-0x1bb;const _0x4b9beb=_0x4b9b();let _0x3a40cb=_0x4b9beb[_0x45cb12];return _0x3a40cb;}export async function featureConcludeSession(_0x2c8053){const _0x4dda95=_0xb6b994,_0x5e0f0f={'gYGuM':function(_0x22460b){return _0x22460b();},'RJcQk':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','EtSLQ':_0x4dda95(0x227),'QiyzR':function(_0x2bf986,_0x406025){return _0x2bf986===_0x406025;},'btmJu':_0x4dda95(0x294),'EJhki':function(_0x53f7ef,_0x323bbd){return _0x53f7ef!==_0x323bbd;},'gZENg':function(_0xb59fa4,_0x2cba64,_0x5ac63d){return _0xb59fa4(_0x2cba64,_0x5ac63d);}},_0x3eecc2=_0x2c8053||await _0x5e0f0f['gYGuM'](getActiveFeatureId);if(!_0x3eecc2)throw new Error(_0x5e0f0f[_0x4dda95(0x20a)]);const _0x124119=await getFeature(_0x3eecc2);if(!_0x124119[_0x4dda95(0x291)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x3caf8d}=await listFeatureSessions(_0x3eecc2),_0x3bf68f=_0x3caf8d['find'](_0x3552e9=>_0x3552e9['id']===_0x124119[_0x4dda95(0x291)]);if(!_0x3bf68f)throw new Error(_0x5e0f0f['EtSLQ']);if(_0x5e0f0f[_0x4dda95(0x217)](_0x3bf68f['status'],'completed')){console['log'](_0x5e0f0f[_0x4dda95(0x2a2)]);return;}if(_0x5e0f0f['EJhki'](_0x3bf68f['status'],'in_progress'))throw new Error(_0x4dda95(0x296)+_0x3bf68f[_0x4dda95(0x270)]);console['log']('\x0aConcluding\x20session...'),await _0x5e0f0f[_0x4dda95(0x250)](concludeSession,_0x3eecc2,_0x124119[_0x4dda95(0x291)]),console['log'](_0x4dda95(0x278)+_0x3bf68f['iteration']+_0x4dda95(0x25c)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x32f305){const _0x33bebb=_0xb6b994,_0x141f28={'VPhYO':_0x33bebb(0x273),'EhDwD':function(_0x10abea,_0x54a53d){return _0x10abea(_0x54a53d);},'ZyjJH':_0x33bebb(0x204),'imDIF':_0x33bebb(0x276)},_0x17b784=_0x32f305||await getActiveFeatureId();if(!_0x17b784)throw new Error(_0x141f28[_0x33bebb(0x1fe)]);const _0x336e9c=await _0x141f28[_0x33bebb(0x226)](getFeature,_0x17b784);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x336e9c[_0x33bebb(0x222)]+'\x0a');const {sessions:_0x5a5cbe}=await _0x141f28['EhDwD'](listFeatureSessions,_0x17b784);if(_0x5a5cbe['length']===0x0){console['log'](_0x141f28[_0x33bebb(0x258)]);return;}for(const _0x37257e of _0x5a5cbe){const _0x2f0563=_0x37257e[_0x33bebb(0x270)]===_0x141f28[_0x33bebb(0x254)]?'✅':_0x37257e[_0x33bebb(0x270)]===_0x33bebb(0x201)?'🔄':'▶️';console[_0x33bebb(0x1f0)](_0x2f0563+_0x33bebb(0x29b)+_0x37257e['iteration']+'\x20('+_0x37257e['id']+')'),console[_0x33bebb(0x1f0)](_0x33bebb(0x2aa)+_0x37257e[_0x33bebb(0x270)]),console[_0x33bebb(0x1f0)](_0x33bebb(0x213)+new Date(_0x37257e[_0x33bebb(0x1fb)])[_0x33bebb(0x24c)]()),_0x37257e[_0x33bebb(0x260)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x37257e[_0x33bebb(0x260)])[_0x33bebb(0x24c)]()),console[_0x33bebb(0x1f0)]('');}}export async function featureAddScenario(_0x2c06e4,_0x5554b4){const _0x2b1fa5=_0xb6b994,_0x1b16eb={'Cdwlo':function(_0x4ac68b,_0x2eec38,_0x76b9c8){return _0x4ac68b(_0x2eec38,_0x76b9c8);},'UrcZA':function(_0x2eccec,_0x6edaf,_0x3f2e96){return _0x2eccec(_0x6edaf,_0x3f2e96);}},_0x106c06=_0x5554b4||await getActiveFeatureId();if(!_0x106c06)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 _0x53d225=await getFeature(_0x106c06);if(_0x53d225[_0x2b1fa5(0x299)]&&!_0x53d225['latestReview'][_0x2b1fa5(0x1fd)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x53d225[_0x2b1fa5(0x205)]);await _0x1b16eb['Cdwlo'](createChecklistItem,_0x106c06,_0x2c06e4);const _0x41852f=await getFeature(_0x106c06);console[_0x2b1fa5(0x1f0)]('\x0a✅\x20Scenario\x20added'),_0x1b16eb[_0x2b1fa5(0x289)](displayFeature,_0x41852f,_0x41852f['checklistItems']);}export async function featureEditScenario(_0x2b8eaa,_0x1a5113){const _0x2a4dd7=_0xb6b994,_0x42dfb9={'XDdIP':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','QRscJ':function(_0x59e70d,_0x5d202b){return _0x59e70d(_0x5d202b);},'jobPT':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','LNPbq':'Please\x20finish\x20your\x20review\x20first:','mXcnw':function(_0x3f8746,_0x2c7ad9){return _0x3f8746===_0x2c7ad9;},'hLrPP':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','oPigy':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','IXULi':function(_0x403bf1,_0x44133c){return _0x403bf1+_0x44133c;},'yjjqU':function(_0x2dafb6,_0x205fe2){return _0x2dafb6-_0x205fe2;},'WFPpU':function(_0x52dcc0,_0x560f76){return _0x52dcc0<_0x560f76;},'UNwxg':function(_0x337941,_0x518f07){return _0x337941>=_0x518f07;},'HKeqG':function(_0x429f14,_0x1862a3,_0x57c6a5,_0x4e91d8){return _0x429f14(_0x1862a3,_0x57c6a5,_0x4e91d8);},'Fjmzu':function(_0x5e07c1,_0x4ff67b,_0x2e176b){return _0x5e07c1(_0x4ff67b,_0x2e176b);}},_0x59e324=_0x1a5113['id']||await getActiveFeatureId();!_0x59e324&&(console[_0x2a4dd7(0x216)](_0x42dfb9[_0x2a4dd7(0x1bc)]),console['error'](_0x2a4dd7(0x243)),process['exit'](0x1));const _0x1daedf=await _0x42dfb9['QRscJ'](getFeature,_0x59e324);_0x1daedf[_0x2a4dd7(0x299)]&&!_0x1daedf['latestReview'][_0x2a4dd7(0x1fd)]&&(console[_0x2a4dd7(0x216)](_0x42dfb9['jobPT']),console[_0x2a4dd7(0x216)](_0x42dfb9['LNPbq']),console[_0x2a4dd7(0x216)]('\x20\x20'+_0x1daedf['dashboardUrl']),process[_0x2a4dd7(0x271)](0x1));const _0x3345a3=_0x1daedf[_0x2a4dd7(0x2a4)]||[];_0x42dfb9['mXcnw'](_0x3345a3['length'],0x0)&&(console['error'](_0x42dfb9['hLrPP']),process[_0x2a4dd7(0x271)](0x1));if(_0x42dfb9[_0x2a4dd7(0x1e4)](_0x1a5113['scenario'],undefined)){console[_0x2a4dd7(0x216)](_0x42dfb9[_0x2a4dd7(0x2af)]),console[_0x2a4dd7(0x1f0)]('\x0aAvailable\x20scenarios:');for(let _0x43083c=0x0;_0x43083c<_0x3345a3['length'];_0x43083c++){console['log']('\x20\x20'+_0x42dfb9[_0x2a4dd7(0x237)](_0x43083c,0x1)+'.\x20'+_0x3345a3[_0x43083c]['description']);}process[_0x2a4dd7(0x271)](0x1);}const _0x38fb3e=_0x42dfb9[_0x2a4dd7(0x245)](_0x1a5113[_0x2a4dd7(0x1fc)],0x1);if(_0x42dfb9[_0x2a4dd7(0x256)](_0x38fb3e,0x0)||_0x42dfb9['UNwxg'](_0x38fb3e,_0x3345a3['length'])){console['error'](_0x2a4dd7(0x21d)+_0x1a5113['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x3345a3[_0x2a4dd7(0x1bd)]+'\x20scenarios.'),console['log']('\x0aAvailable\x20scenarios:');for(let _0x1bbcb3=0x0;_0x1bbcb3<_0x3345a3[_0x2a4dd7(0x1bd)];_0x1bbcb3++){console['log']('\x20\x20'+_0x42dfb9[_0x2a4dd7(0x237)](_0x1bbcb3,0x1)+'.\x20'+_0x3345a3[_0x1bbcb3]['description']);}process[_0x2a4dd7(0x271)](0x1);}const _0x241fb6=_0x3345a3[_0x38fb3e];await _0x42dfb9[_0x2a4dd7(0x21e)](updateChecklistItem,_0x59e324,_0x241fb6['id'],{'description':_0x2b8eaa});const _0x366e0e=await _0x42dfb9['QRscJ'](getFeature,_0x59e324);console[_0x2a4dd7(0x1f0)](_0x2a4dd7(0x2a9)),_0x42dfb9[_0x2a4dd7(0x1e6)](displayFeature,_0x366e0e,_0x366e0e[_0x2a4dd7(0x2a4)]);}async function downloadFeedbackImage(_0x239aa0,_0x1c73db){const _0x5a3146=_0xb6b994,_0x23c31f={'jIgIx':'feedback-images'};try{const _0xf8b5c3=join(getRangerDir(),_0x23c31f[_0x5a3146(0x1da)]);await mkdir(_0xf8b5c3,{'recursive':!![]});const _0xa1e7c7=join(_0xf8b5c3,_0x5a3146(0x234)+_0x1c73db+'.png'),_0x2277b0=await fetch(_0x239aa0);if(!_0x2277b0['ok'])return null;const _0x373be5=Buffer['from'](await _0x2277b0['arrayBuffer']());return await writeFile(_0xa1e7c7,_0x373be5),_0xa1e7c7;}catch{return null;}}export async function featureGetReview(_0x336715){const _0x47cf30=_0xb6b994,_0x4fb357={'RENeS':function(_0x4e56ea,_0x164136,_0x3ac06c){return _0x4e56ea(_0x164136,_0x3ac06c);},'Jrxro':function(_0x1a605d,_0x165af9){return _0x1a605d>_0x165af9;},'TvRzg':function(_0x3f7455,_0x51f831){return _0x3f7455+_0x51f831;},'uVVgC':'en-US','phQTF':'Unknown','mUuGE':function(_0x3cf866,_0x2ac3d){return _0x3cf866+_0x2ac3d;}},_0x32da25=_0x336715||await getActiveFeatureId();if(!_0x32da25)throw new Error(_0x47cf30(0x1bb));const _0x1b734f=await getFeature(_0x32da25),{items:_0x4a1185}=await getActionItems(_0x32da25);console['log'](_0x47cf30(0x284)+_0x1b734f['name']+'\x20('+_0x1b734f['id']+')\x0a');if(_0x4a1185['length']===0x0){console['log'](_0x47cf30(0x1f2));return;}for(let _0x30dbe2=0x0;_0x30dbe2<_0x4a1185['length'];_0x30dbe2++){const _0x330eb9=_0x4a1185[_0x30dbe2],_0x5a5b33=_0x330eb9[_0x47cf30(0x286)]>0x1?_0x47cf30(0x1cd)+_0x330eb9['version']+')':'',_0x2642b5=await _0x4fb357[_0x47cf30(0x202)](getItemFeedback,_0x32da25,_0x330eb9['id']);if(_0x4fb357['Jrxro'](_0x2642b5['unaddressedComments'][_0x47cf30(0x1bd)],0x0)){console[_0x47cf30(0x1f0)](_0x47cf30(0x225)+_0x4fb357[_0x47cf30(0x1d2)](_0x30dbe2,0x1)+':\x20\x22'+_0x330eb9['description']+'\x22'+_0x5a5b33+_0x47cf30(0x214)+_0x2642b5['unaddressedComments']['length']+_0x47cf30(0x29d));for(const _0x3981f8 of _0x2642b5['unaddressedComments']){const _0x44e210=new Date(_0x3981f8[_0x47cf30(0x1fb)])[_0x47cf30(0x208)](_0x4fb357['uVVgC'],{'month':'short','day':_0x47cf30(0x210)}),_0x21871a=_0x3981f8['authorName']||_0x3981f8['authorEmail']||_0x4fb357[_0x47cf30(0x1f1)];console['log']('\x20\x20💬\x20'+_0x21871a+'\x20('+_0x44e210+'):\x20\x22'+_0x3981f8['content']+'\x22');if(_0x3981f8['assetUrl']){const _0x8749d5=await downloadFeedbackImage(_0x3981f8['assetUrl'],_0x3981f8['id']);_0x8749d5&&console['log'](_0x47cf30(0x1cf)+_0x8749d5);}if(_0x3981f8['domRef']){const _0x1abdac=_0x3981f8[_0x47cf30(0x298)][_0x47cf30(0x1c3)]['split'](_0x47cf30(0x1d7))['pop']()?.['split'](':')[0x0]||_0x47cf30(0x21f),_0x4c937a=_0x3981f8['domRef'][_0x47cf30(0x24f)]?'\x20\x22'+_0x3981f8[_0x47cf30(0x298)][_0x47cf30(0x24f)]['slice'](0x0,0x3c)+'\x22':'';console[_0x47cf30(0x1f0)](_0x47cf30(0x20b)+_0x1abdac+'>'+_0x4c937a),console['log'](_0x47cf30(0x219)+_0x3981f8['domRef']['selector']);}else{if(_0x3981f8['spatial']){const _0x4d1e1b=_0x3981f8[_0x47cf30(0x1dd)][_0x47cf30(0x209)];_0x3981f8[_0x47cf30(0x1dd)]['type']==='point'&&_0x4d1e1b['length']>=0x2?console['log'](_0x47cf30(0x22d)+_0x4d1e1b[0x0][_0x47cf30(0x1f6)](0x2)+',\x20'+_0x4d1e1b[0x1]['toFixed'](0x2)+')'):console['log'](_0x47cf30(0x28c)+_0x3981f8[_0x47cf30(0x1dd)]['type']+'\x20at\x20['+_0x4d1e1b[_0x47cf30(0x23f)](_0x43e507=>_0x43e507['toFixed'](0x2))[_0x47cf30(0x25f)](',\x20')+']');}}}if(_0x2642b5[_0x47cf30(0x2a8)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x13190d of _0x2642b5['canonicalFlow']['split']('\x0a')){console[_0x47cf30(0x1f0)]('\x20\x20\x20\x20'+_0x13190d);}}}else console[_0x47cf30(0x1f0)]('Scenario\x20'+_0x4fb357['mUuGE'](_0x30dbe2,0x1)+_0x47cf30(0x228)+_0x330eb9[_0x47cf30(0x232)]+'\x22'+_0x5a5b33+_0x47cf30(0x24a)),console[_0x47cf30(0x1f0)](_0x47cf30(0x2b0));console[_0x47cf30(0x1f0)]('');}}export async function featureDelete(_0x33152d){const _0x320f34=_0xb6b994,_0x1597d4={'WTDJc':function(_0x545fc2){return _0x545fc2();},'iiRpV':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','LJMeC':function(_0x180dbb,_0x2c9286){return _0x180dbb(_0x2c9286);}},_0x5ba6c1=_0x33152d||await _0x1597d4[_0x320f34(0x27e)](getActiveFeatureId);if(!_0x5ba6c1)throw new Error(_0x1597d4[_0x320f34(0x1ed)]);const _0x588c32=await _0x1597d4[_0x320f34(0x1dc)](getFeature,_0x5ba6c1);await _0x1597d4[_0x320f34(0x1dc)](softDeleteFeature,_0x5ba6c1),console[_0x320f34(0x1f0)](_0x320f34(0x27c)+_0x588c32[_0x320f34(0x222)]+'\x20('+_0x5ba6c1+')'),console[_0x320f34(0x1f0)]('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x5ba6c1);}export async function featureRestore(_0x3a46d0){const _0x585c71=_0xb6b994,_0x4ece80={'mqUjM':function(_0x495bdb,_0x5b1c0c){return _0x495bdb(_0x5b1c0c);},'xyvjt':function(_0x2b3588,_0x56e465,_0x30cf56){return _0x2b3588(_0x56e465,_0x30cf56);}};await _0x4ece80['mqUjM'](restoreFeature,_0x3a46d0);const _0x122f83=await getFeature(_0x3a46d0);console['log'](_0x585c71(0x269)+_0x122f83[_0x585c71(0x222)]+'\x20('+_0x3a46d0+')'),_0x4ece80[_0x585c71(0x1e9)](displayFeature,_0x122f83,_0x122f83[_0x585c71(0x2a4)]);}
|
|
1
|
+
const _0x261711=_0x4841;(function(_0x19e987,_0x1787dc){const _0x4aef43=_0x4841,_0x15463b=_0x19e987();while(!![]){try{const _0xcca03d=parseInt(_0x4aef43(0x1f2))/0x1+parseInt(_0x4aef43(0x1e5))/0x2+-parseInt(_0x4aef43(0x252))/0x3*(parseInt(_0x4aef43(0x21b))/0x4)+parseInt(_0x4aef43(0x276))/0x5+-parseInt(_0x4aef43(0x296))/0x6*(-parseInt(_0x4aef43(0x247))/0x7)+-parseInt(_0x4aef43(0x255))/0x8+parseInt(_0x4aef43(0x273))/0x9*(-parseInt(_0x4aef43(0x232))/0xa);if(_0xcca03d===_0x1787dc)break;else _0x15463b['push'](_0x15463b['shift']());}catch(_0x2fe1fa){_0x15463b['push'](_0x15463b['shift']());}}}(_0x5204,0x4cb10));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x4fc0b6 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x5e7aa9=>'\x1b[1m'+_0x5e7aa9+_0x261711(0x1fd);function getGitRepoUrl(){const _0x307b18=_0x261711,_0x550963={'pbrJT':function(_0x589133,_0x1b3f19,_0x1755c3){return _0x589133(_0x1b3f19,_0x1755c3);},'vwCdG':'git\x20remote\x20get-url\x20origin','apykW':'utf-8','MgJwh':'pipe','tVqbP':'github.com/'};try{const _0xbe7dce=_0x550963['pbrJT'](execSync,_0x550963['vwCdG'],{'encoding':_0x550963[_0x307b18(0x241)],'stdio':[_0x550963[_0x307b18(0x28f)],_0x307b18(0x290),_0x307b18(0x290)]})['trim']();return _0xbe7dce[_0x307b18(0x26f)](/\.git$/,'')[_0x307b18(0x26f)](/^git@github\.com:/,_0x550963['tVqbP'])[_0x307b18(0x26f)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xb3ae5a=_0x261711,_0x352d22={'vbtaE':_0xb3ae5a(0x1eb),'fDuRa':_0xb3ae5a(0x21a)};try{return execSync(_0x352d22[_0xb3ae5a(0x1de)],{'encoding':_0x352d22[_0xb3ae5a(0x203)],'stdio':['pipe','pipe','pipe']})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x1c7979=_0x261711,_0x4bde4a={'lYjCj':function(_0x11cc9d,_0x2f2f11,_0x5deaeb){return _0x11cc9d(_0x2f2f11,_0x5deaeb);},'CJSrl':'utf-8'},_0x1b585c=_0x4bde4a['lYjCj'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x1b585c))return null;try{const _0xf738fc=await readFile(_0x1b585c,_0x4bde4a[_0x1c7979(0x200)]);return _0xf738fc[_0x1c7979(0x226)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x3e01f3){const _0x1fa0f8=_0x261711,_0xf29e42={'gVVLg':function(_0xd23cb8,_0x2a3d3c,_0x4c1ae6){return _0xd23cb8(_0x2a3d3c,_0x4c1ae6);},'HPUPO':function(_0x1c5794,_0x50e32c,_0x13a796,_0x3560ae){return _0x1c5794(_0x50e32c,_0x13a796,_0x3560ae);}},_0x26e645=getRangerDir(),_0x516a64=join(_0x26e645,ACTIVE_FEATURE_FILE);!existsSync(_0x26e645)&&await _0xf29e42[_0x1fa0f8(0x282)](mkdir,_0x26e645,{'recursive':!![]}),await _0xf29e42['HPUPO'](writeFile,_0x516a64,_0x3e01f3,_0x1fa0f8(0x21a));}function getProgressDisplay(_0x10e379){const _0x3b2552=_0x261711,_0x3c113c={'aaVdf':function(_0x4ceef0,_0x4ba67f){return _0x4ceef0+_0x4ba67f;},'ZYtWm':function(_0x45439a,_0x29715d){return _0x45439a+_0x29715d;},'XhPia':function(_0x3a0cf7,_0x44a8bf){return _0x3a0cf7>_0x44a8bf;},'IMmDD':function(_0x4d9937,_0x1de555){return _0x4d9937>_0x1de555;}},_0x3a9de7=_0x10e379['verifiedItems']||0x0,_0x2f01d6=_0x10e379[_0x3b2552(0x20b)]||0x0,_0x566028=_0x10e379[_0x3b2552(0x22b)]||0x0,_0x178fb5=_0x10e379[_0x3b2552(0x283)]||0x0,_0x4b8c9b=_0x10e379[_0x3b2552(0x224)]||0x0,_0x13dfc4=_0x3c113c['aaVdf'](_0x3c113c['ZYtWm'](_0x3c113c['ZYtWm'](_0x3a9de7,_0x2f01d6),_0x566028),_0x178fb5)+_0x4b8c9b;if(_0x13dfc4===0x0)return'-';const _0x4e5053=0xa,_0x54037a=Math['round'](_0x3a9de7/_0x13dfc4*_0x4e5053),_0x52c29f=_0x3c113c[_0x3b2552(0x27b)]('█'[_0x3b2552(0x216)](_0x54037a),'░'['repeat'](_0x4e5053-_0x54037a)),_0x5e88f5=[];if(_0x566028>0x0)_0x5e88f5[_0x3b2552(0x24f)](_0x566028+_0x3b2552(0x23a));if(_0x3c113c['XhPia'](_0x178fb5,0x0))_0x5e88f5[_0x3b2552(0x24f)](_0x178fb5+'\x20incomplete');if(_0x2f01d6>0x0)_0x5e88f5['push'](_0x2f01d6+'\x20in\x20progress');const _0x55644a=_0x3c113c['IMmDD'](_0x5e88f5[_0x3b2552(0x1cc)],0x0)?'\x20('+_0x5e88f5['join'](',\x20')+')':'';return _0x52c29f+'\x20'+_0x3a9de7+'/'+_0x13dfc4+_0x3b2552(0x1c9)+_0x55644a;}function getCurrentSessionItems(_0x79a73,_0x50d690){const _0x1b8d4b=_0x261711;if(!_0x79a73['currentSessionId'])return _0x50d690[_0x1b8d4b(0x205)](_0x16e7d5=>!_0x16e7d5[_0x1b8d4b(0x207)]);return _0x50d690[_0x1b8d4b(0x205)](_0x66575e=>_0x66575e[_0x1b8d4b(0x207)]===_0x79a73[_0x1b8d4b(0x1da)]||!_0x66575e['sessionId']);}function displayFeature(_0x1561e8,_0x52c6cb){const _0x32b2b0=_0x261711,_0x3de81c={'ECQQc':_0x32b2b0(0x22d),'sjIHj':function(_0x3534f5,_0x267e54){return _0x3534f5<_0x267e54;},'sCvNI':function(_0x497054,_0x250013){return _0x497054===_0x250013;},'xslCv':function(_0x5bf223,_0x4e6755){return _0x5bf223===_0x4e6755;},'jsqar':'incomplete','VBonR':'blocked','LrtVK':'closed','vPmtX':function(_0x3b184c,_0x2e7415){return _0x3b184c===_0x2e7415;},'GpkrD':'verification_in_progress','bReAx':'\x20[has\x20reviewer\x20feedback]','vHjHf':function(_0x127023,_0x34a671){return _0x127023+_0x34a671;},'vKLRq':'approved'};console['log']('\x0a'+_0x1561e8['name']+'\x20('+_0x1561e8['dashboardUrl']+')');_0x1561e8['stats']&&console['log'](_0x32b2b0(0x1e2)+getProgressDisplay(_0x1561e8['stats']));_0x1561e8[_0x32b2b0(0x1c1)]&&console['log']('\x20\x20\x20Description:\x20'+_0x1561e8[_0x32b2b0(0x1c1)]);_0x1561e8[_0x32b2b0(0x24d)]&&console[_0x32b2b0(0x240)](_0x32b2b0(0x21d)+_0x1561e8['gitRepoUrl']);_0x1561e8[_0x32b2b0(0x291)]&&console[_0x32b2b0(0x240)](_0x32b2b0(0x1cf)+_0x1561e8[_0x32b2b0(0x291)]);console[_0x32b2b0(0x240)](_0x32b2b0(0x258)+new Date(_0x1561e8[_0x32b2b0(0x20a)])['toLocaleString']());_0x1561e8[_0x32b2b0(0x236)]&&console[_0x32b2b0(0x240)](_0x32b2b0(0x1c6)+new Date(_0x1561e8['completedAt'])['toLocaleString']());if(_0x52c6cb&&_0x52c6cb['length']>0x0){console[_0x32b2b0(0x240)](_0x3de81c[_0x32b2b0(0x1d2)]);for(let _0x1cb114=0x0;_0x3de81c[_0x32b2b0(0x1e4)](_0x1cb114,_0x52c6cb[_0x32b2b0(0x1cc)]);_0x1cb114++){const _0x30db1d=_0x52c6cb[_0x1cb114];let _0x2666a2;if(_0x30db1d['status']===_0x32b2b0(0x264)&&_0x3de81c[_0x32b2b0(0x246)](_0x30db1d[_0x32b2b0(0x1f5)],_0x32b2b0(0x267)))_0x2666a2='✅';else{if(_0x3de81c[_0x32b2b0(0x222)](_0x30db1d['status'],'verified'))_0x2666a2='🟢';else{if(_0x30db1d[_0x32b2b0(0x1e1)]===_0x3de81c['jsqar'])_0x2666a2='🟠';else{if(_0x30db1d[_0x32b2b0(0x1e1)]===_0x3de81c['VBonR'])_0x2666a2='🛑';else{if(_0x3de81c['sCvNI'](_0x30db1d['status'],_0x3de81c['LrtVK']))_0x2666a2='⛔';else _0x3de81c[_0x32b2b0(0x288)](_0x30db1d['status'],_0x3de81c[_0x32b2b0(0x274)])?_0x2666a2='⏳':_0x2666a2='⬜';}}}}const _0x3010eb=_0x30db1d[_0x32b2b0(0x20f)]>0x1?_0x32b2b0(0x249)+_0x30db1d[_0x32b2b0(0x20f)]+')':'',_0x4eb304=_0x30db1d[_0x32b2b0(0x20f)]>0x1&&_0x30db1d['parentItemId']&&_0x30db1d['status']!==_0x32b2b0(0x264)&&_0x30db1d['status']!=='verified'?_0x3de81c[_0x32b2b0(0x1d6)]:'';console['log']('\x20\x20\x20'+_0x3de81c[_0x32b2b0(0x1fb)](_0x1cb114,0x1)+'.\x20'+_0x2666a2+'\x20'+_0x30db1d[_0x32b2b0(0x1c1)]+_0x3010eb+_0x4eb304);_0x30db1d[_0x32b2b0(0x1e1)]===_0x32b2b0(0x1f0)&&_0x30db1d['blockedReason']&&console[_0x32b2b0(0x240)](_0x32b2b0(0x24a)+_0x30db1d['blockedReason']);_0x30db1d[_0x32b2b0(0x1e1)]===_0x3de81c['jsqar']&&_0x30db1d['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x30db1d['incompleteReason']);if(_0x30db1d[_0x32b2b0(0x1e1)]===_0x3de81c['LrtVK']&&_0x30db1d['terminalReason']===_0x3de81c['vKLRq'])console[_0x32b2b0(0x240)]('\x20\x20\x20\x20\x20\x20Approved');else _0x3de81c['vPmtX'](_0x30db1d['status'],_0x32b2b0(0x264))&&_0x30db1d['canceledReason']&&console['log'](_0x32b2b0(0x1df)+_0x30db1d[_0x32b2b0(0x237)]);}}}export async function featureCreate(_0x5999d3,_0x350333){const _0x3e96bb=_0x261711,_0x307bc9={'LXNBm':function(_0x54ecea,_0x582099){return _0x54ecea===_0x582099;},'VvNVo':function(_0x134eaf,_0x279877){return _0x134eaf(_0x279877);},'rszJV':_0x3e96bb(0x228),'tvNdI':function(_0xf4f5cd,_0x5f0069){return _0xf4f5cd(_0x5f0069);},'UAUjs':function(_0x24b03d,_0x5255f4){return _0x24b03d(_0x5255f4);},'RaQKJ':function(_0x4ee1f5,_0x2c3bfa,_0x2e035c){return _0x4ee1f5(_0x2c3bfa,_0x2e035c);}},{envNames:_0x5e7459}=await getEnvNames();if(_0x5e7459[_0x3e96bb(0x1cc)]===0x0&&!process[_0x3e96bb(0x238)][_0x3e96bb(0x28a)]){let _0x50fd58=0x0;try{_0x50fd58=(await listCloudProfiles())[_0x3e96bb(0x1cc)];}catch{_0x50fd58=0x1;}_0x307bc9[_0x3e96bb(0x269)](_0x50fd58,0x0)&&console[_0x3e96bb(0x268)]('\x0a'+_0x307bc9[_0x3e96bb(0x209)](formatProfileRequiredMessage,_0x1c25ac=>bold(_0x1c25ac)));}const _0x30724f=_0x350333[_0x3e96bb(0x20e)]?_0x350333[_0x3e96bb(0x20e)]['map'](_0x380ee9=>_0x380ee9['trim']()):[],_0x50dc46=getGitRepoUrl(),_0x2a51cc=getGitBranch();console['log'](_0x307bc9[_0x3e96bb(0x26c)]);const _0x4c33b2=await createFeature({'name':_0x5999d3,'description':_0x350333['description'],'checklist':_0x30724f,'gitRepoUrl':_0x50dc46,'gitBranch':_0x2a51cc});await _0x307bc9['tvNdI'](setActiveFeatureId,_0x4c33b2['id']),await _0x307bc9[_0x3e96bb(0x257)](tryStartCurrentSession,_0x4c33b2['id']);const _0x4f0068=process['env'][_0x3e96bb(0x28d)];_0x4f0068&®isterSession(_0x4f0068,_0x4c33b2['id']),console[_0x3e96bb(0x240)](_0x3e96bb(0x259)+_0x4c33b2['id']),_0x307bc9['RaQKJ'](displayFeature,_0x4c33b2,_0x4c33b2['checklistItems']),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x398742){const _0x4f1d1c=_0x261711,_0x3e8408={'TUXik':function(_0x5ae751){return _0x5ae751();},'BzHCx':'\x0aNo\x20feature\x20reviews\x20found.','cJFHM':function(_0x51a6b5,_0x5e35d7){return _0x51a6b5>_0x5e35d7;},'MkzAz':function(_0x4aa36b,_0x5ab98e){return _0x4aa36b+_0x5ab98e;},'UOiSv':function(_0x32ca64,_0x2cd71e){return _0x32ca64<_0x2cd71e;},'MxMCQ':_0x4f1d1c(0x23d)},_0x2ee8e2={'limit':_0x398742['limit']??0xa,'offset':_0x398742['offset']??0x0,'includeDeleted':_0x398742['includeDeleted']};_0x398742['currentBranch']&&(_0x2ee8e2['gitRepoUrl']=getGitRepoUrl(),_0x2ee8e2[_0x4f1d1c(0x291)]=_0x3e8408['TUXik'](getGitBranch));const _0x1b6622=await listFeatures(_0x2ee8e2);if(_0x1b6622['items'][_0x4f1d1c(0x1cc)]===0x0){console['log'](_0x3e8408['BzHCx']);return;}const _0x1f552b=_0x3e8408[_0x4f1d1c(0x24c)](_0x1b6622[_0x4f1d1c(0x298)],_0x1b6622[_0x4f1d1c(0x272)]['length'])?'Showing\x20'+_0x1b6622['items'][_0x4f1d1c(0x1cc)]+'\x20of\x20'+_0x1b6622[_0x4f1d1c(0x298)]:_0x1b6622[_0x4f1d1c(0x298)]+'\x20feature\x20review(s)\x20found';console[_0x4f1d1c(0x240)]('\x0a'+_0x1f552b+':\x0a');for(const _0x1a7c50 of _0x1b6622['items']){console['log'](''+_0x1a7c50['name']),console['log'](_0x4f1d1c(0x20c)+_0x1a7c50['id']),_0x1a7c50['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1a7c50['stats'])),_0x1a7c50['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x1a7c50[_0x4f1d1c(0x291)]),console[_0x4f1d1c(0x240)](_0x4f1d1c(0x258)+new Date(_0x1a7c50['createdAt'])['toLocaleDateString']()),console['log']('');}const _0x5d37ca=_0x2ee8e2['limit']??0xa,_0x5d33f5=_0x3e8408[_0x4f1d1c(0x1d1)](_0x2ee8e2[_0x4f1d1c(0x27c)]??0x0,_0x1b6622[_0x4f1d1c(0x272)][_0x4f1d1c(0x1cc)]);if(_0x3e8408[_0x4f1d1c(0x27d)](_0x5d33f5,_0x1b6622[_0x4f1d1c(0x298)])){const _0x11dbb4=_0x5d37ca!==0xa?_0x4f1d1c(0x1ca)+_0x5d37ca:'',_0xeffe7e=_0x398742['currentBranch']?_0x3e8408[_0x4f1d1c(0x26d)]:'',_0x2ac9d2=_0x398742[_0x4f1d1c(0x1c4)]?_0x4f1d1c(0x271):'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x5d33f5+_0x11dbb4+_0xeffe7e+_0x2ac9d2);}}export async function featureShow(_0x2f1c54){const _0x3c5e05=_0x261711,_0xca35e2=_0x2f1c54||await getActiveFeatureId();if(!_0xca35e2)throw new Error(_0x3c5e05(0x1ec));const _0x576da4=await getFeature(_0xca35e2);displayFeature(_0x576da4,_0x576da4[_0x3c5e05(0x211)]);}export async function featureResume(_0x354565){const _0x2501f1=_0x261711,_0x1c945d={'Yguxg':function(_0x17743a,_0x47d5d9){return _0x17743a(_0x47d5d9);},'zgYGg':function(_0x2220da,_0xf2e196){return _0x2220da(_0xf2e196);},'elIDb':function(_0x3eaa24,_0x57f1a7){return _0x3eaa24!==_0x57f1a7;},'RaUNa':function(_0x18587b,_0x2b9d95,_0x3ff984){return _0x18587b(_0x2b9d95,_0x3ff984);},'vvSAr':function(_0x280c94,_0x505073){return _0x280c94(_0x505073);},'shlHc':function(_0x16d98d,_0x302ae5,_0x55e972){return _0x16d98d(_0x302ae5,_0x55e972);},'FZmQr':function(_0x20aa32,_0x588688){return _0x20aa32&&_0x588688;},'Bjmlr':function(_0x29ef6e,_0x234803){return _0x29ef6e||_0x234803;},'DaGbs':'any','PiWUJ':function(_0x2e61b9,_0x530c5f){return _0x2e61b9===_0x530c5f;},'yFmWX':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','vRCTn':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','eVsbN':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','toVtI':function(_0x31f743,_0x3b21ce){return _0x31f743!==_0x3b21ce;},'sOCkZ':function(_0x5834cf,_0x5a7d5a){return _0x5834cf(_0x5a7d5a);}};if(_0x354565){const _0x372e06=await _0x1c945d['Yguxg'](getFeature,_0x354565);await _0x1c945d[_0x2501f1(0x21f)](setActiveFeatureId,_0x372e06['id']);const _0x386a0f=getGitBranch();_0x386a0f&&_0x1c945d['elIDb'](_0x386a0f,_0x372e06[_0x2501f1(0x291)])&&(await _0x1c945d[_0x2501f1(0x1cb)](updateFeature,_0x372e06['id'],{'gitBranch':_0x386a0f}),console[_0x2501f1(0x240)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x386a0f));console[_0x2501f1(0x240)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x372e06[_0x2501f1(0x262)]+'\x20('+_0x372e06['id']+')'),await _0x1c945d['vvSAr'](tryStartCurrentSession,_0x372e06['id']);const _0xc692bd=process['env'][_0x2501f1(0x28d)];_0xc692bd&®isterSession(_0xc692bd,_0x372e06['id']);_0x1c945d[_0x2501f1(0x202)](displayFeature,_0x372e06,_0x372e06['checklistItems']),await printFeedbackNudge(_0x372e06['id']);return;}const _0x3660e4=getGitRepoUrl(),_0x10b83b=getGitBranch();if(_0x1c945d['FZmQr'](!_0x3660e4,!_0x10b83b))throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log'](_0x2501f1(0x1f1)+_0x1c945d['Bjmlr'](_0x3660e4,_0x1c945d['DaGbs'])+'\x20/\x20'+_0x1c945d['Bjmlr'](_0x10b83b,_0x1c945d[_0x2501f1(0x284)])+'...');const _0x37296f=await listFeatures({'gitRepoUrl':_0x3660e4,'gitBranch':_0x10b83b}),_0x2749af=_0x37296f['items']['filter'](_0x5d9a5f=>_0x5d9a5f['status']?_0x5d9a5f[_0x2501f1(0x1e1)]!==_0x2501f1(0x1d9):!_0x5d9a5f['completedAt']);if(_0x1c945d['PiWUJ'](_0x2749af['length'],0x0)){console[_0x2501f1(0x240)](_0x1c945d['yFmWX']),console['log'](_0x1c945d[_0x2501f1(0x1fc)]);return;}let _0x2a2048;if(_0x1c945d[_0x2501f1(0x204)](_0x2749af[_0x2501f1(0x1cc)],0x1))_0x2a2048=_0x2749af[0x0];else{const _0x1956d7=process['stdin'][_0x2501f1(0x293)]&&process[_0x2501f1(0x266)]['isTTY'];if(!_0x1956d7){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x2a6fe2 of _0x2749af){console[_0x2501f1(0x240)]('\x20\x20'+_0x2a6fe2['name']),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x2a6fe2['id']),_0x2a6fe2[_0x2501f1(0x1ea)]&&console[_0x2501f1(0x240)](_0x2501f1(0x1c8)+getProgressDisplay(_0x2a6fe2[_0x2501f1(0x1ea)])),_0x2a6fe2[_0x2501f1(0x291)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x2a6fe2[_0x2501f1(0x291)]);}throw new Error(_0x2501f1(0x1c3));}const {selected:_0x21c982}=await _0x4fc0b6['prompt']([{'type':_0x2501f1(0x265),'name':'selected','message':_0x1c945d[_0x2501f1(0x233)],'choices':_0x2749af[_0x2501f1(0x1dc)](_0x2f90d7=>({'name':_0x2f90d7[_0x2501f1(0x262)]+'\x20('+_0x2f90d7['id']+')','value':_0x2f90d7['id']}))}]);_0x2a2048=_0x2749af['find'](_0x254187=>_0x254187['id']===_0x21c982);}await setActiveFeatureId(_0x2a2048['id']);_0x10b83b&&_0x1c945d[_0x2501f1(0x1fa)](_0x10b83b,_0x2a2048['gitBranch'])&&(await _0x1c945d['shlHc'](updateFeature,_0x2a2048['id'],{'gitBranch':_0x10b83b}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x10b83b));console['log'](_0x2501f1(0x244)+_0x2a2048[_0x2501f1(0x262)]+'\x20('+_0x2a2048['id']+')'),await _0x1c945d[_0x2501f1(0x27f)](tryStartCurrentSession,_0x2a2048['id']);const _0x50aed8=await _0x1c945d[_0x2501f1(0x27f)](getFeature,_0x2a2048['id']),_0x9e859b=process['env'][_0x2501f1(0x28d)];_0x9e859b&®isterSession(_0x9e859b,_0x50aed8['id']),displayFeature(_0x50aed8,_0x50aed8[_0x2501f1(0x211)]),await printFeedbackNudge(_0x50aed8['id']);}async function printFeedbackNudge(_0x2107a7){const _0x4c6d2=_0x261711,_0x3d0e7c={'eyoVD':function(_0x33f63f,_0x1ee578,_0xafbd4e){return _0x33f63f(_0x1ee578,_0xafbd4e);},'bHMTg':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x3cd8e5}=await getActionItems(_0x2107a7);let _0x27e0b5=0x0,_0x437414=0x0;for(const _0x54fd62 of _0x3cd8e5){const _0x2dc38f=await _0x3d0e7c['eyoVD'](getItemFeedback,_0x2107a7,_0x54fd62['id']);_0x2dc38f['unaddressedComments']['length']>0x0&&(_0x27e0b5+=_0x2dc38f['unaddressedComments']['length'],_0x437414++);}_0x27e0b5>0x0&&(console[_0x4c6d2(0x240)](_0x4c6d2(0x208)+_0x27e0b5+_0x4c6d2(0x21c)+_0x437414+_0x4c6d2(0x275)),console['log'](_0x3d0e7c[_0x4c6d2(0x256)]));}catch{}}async function tryStartCurrentSession(_0x54dd14){const _0x3ad5bd=_0x261711,_0xde2c48={'iFxZT':function(_0x5d456f,_0x38bd8e){return _0x5d456f(_0x38bd8e);},'nLrJd':function(_0x4a6129,_0x471051,_0x3fb3c9){return _0x4a6129(_0x471051,_0x3fb3c9);}};try{const {sessions:_0x23e353}=await _0xde2c48[_0x3ad5bd(0x260)](listFeatureSessions,_0x54dd14),_0x8222a2=_0x23e353[_0x3ad5bd(0x1ce)](_0x1f9b56=>_0x1f9b56[_0x3ad5bd(0x1e1)]==='ready');_0x8222a2&&(await _0xde2c48['nLrJd'](startSession,_0x54dd14,_0x8222a2['id']),console['log'](_0x3ad5bd(0x206)+_0x8222a2['iteration']));}catch{}}function _0x4841(_0x5e34e8,_0x28b0c2){_0x5e34e8=_0x5e34e8-0x1c0;const _0x520439=_0x5204();let _0x484158=_0x520439[_0x5e34e8];return _0x484158;}export async function featureReport(_0x92489e,_0x378b84){const _0x30109f=_0x261711,_0x1a1263={'DFqyF':'\x0aGenerating\x20report...','rhMJa':function(_0x4191a3,_0x5f1627,_0x34ed9b){return _0x4191a3(_0x5f1627,_0x34ed9b);},'zhXci':function(_0x250115,_0x311a92,_0x3c72bf,_0x195675){return _0x250115(_0x311a92,_0x3c72bf,_0x195675);},'jxqEx':function(_0x1fc6ec){return _0x1fc6ec();},'hwXxe':'reports','kKyCK':function(_0x5e6347,_0x2835b7){return _0x5e6347(_0x2835b7);},'loXnk':'utf-8'},_0x3b209b=_0x92489e||await getActiveFeatureId();if(!_0x3b209b)throw new Error(_0x30109f(0x26a));console['log'](_0x1a1263['DFqyF']);const _0x5f45c9=await _0x1a1263[_0x30109f(0x21e)](getFeatureReportMarkdown,_0x3b209b,{'style':_0x378b84[_0x30109f(0x280)]}),_0x34bb5c=_0x378b84[_0x30109f(0x201)]||_0x1a1263['zhXci'](join,_0x1a1263['jxqEx'](getRangerDir),_0x1a1263['hwXxe'],_0x3b209b+'.md'),_0x314ccb=join(_0x34bb5c,'..');!_0x1a1263[_0x30109f(0x1fe)](existsSync,_0x314ccb)&&await mkdir(_0x314ccb,{'recursive':!![]}),await _0x1a1263['zhXci'](writeFile,_0x34bb5c,_0x5f45c9,_0x1a1263['loXnk']),console['log'](_0x30109f(0x1f6)+_0x34bb5c);}function getScenarioResult(_0x310765){const _0x569040=_0x261711,_0x41d9b4={'LYiFa':_0x569040(0x264),'MwIRP':_0x569040(0x287)};if(_0x310765[_0x569040(0x1e1)]===_0x41d9b4[_0x569040(0x263)])return _0x310765[_0x569040(0x1f5)]??_0x569040(0x264);if(_0x310765[_0x569040(0x1e1)]==='verification_in_progress')return _0x41d9b4[_0x569040(0x1ee)];return _0x310765[_0x569040(0x1e1)];}function _0x5204(){const _0x7f7f0e=['NDQtI','24okMvpL','after','totalCount','content',':\x20\x22','description','Cannot\x20conclude\x20session\x20with\x20status:\x20','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','includeDeleted','lMfNr','\x20\x20\x20Completed:\x20','pop','\x20\x20\x20\x20\x20Progress:\x20','\x20verified','\x20--limit\x20','RaUNa','length','toLocaleString','find','\x20\x20\x20Branch:\x20','get','MkzAz','ECQQc','assetUrl','zuKHf','PXiLu','bReAx','assets','\x20\x20Expected\x20flow:','verified','currentSessionId','AAdvW','map','\x0a✅\x20Session\x20is\x20already\x20completed.','vbtaE','\x20\x20\x20\x20\x20\x20Cancelled:\x20','.\x20Feature\x20review\x20has\x20','status','\x20\x20\x20Progress:\x20','scenario','sjIHj','240168WdCUYN','split','coordinates','feedback-images','iteration','stats','git\x20rev-parse\x20--abbrev-ref\x20HEAD','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','MrYIJ','MwIRP','xbSWk','blocked','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','116102SarptJ','write','koNYs','terminalReason','\x0a✅\x20Report\x20generated:\x20','screenshot','HQjCU','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','toVtI','vHjHf','vRCTn','\x1b[0m','kKyCK','isInteger','CJSrl','output','shlHc','fDuRa','PiWUJ','filter','\x20\x20\x20▶️\x20Started\x20session\x20','sessionId','\x0a⚠️\x20\x20','VvNVo','createdAt','verificationInProgressItems','\x20\x20\x20ID:\x20','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','scenarios','version','isKeyStep','checklistItems','hZbxb','YSVus','\x20scenarios.','\x20unaddressed\x20comment(s)','repeat','slice','storage','en-US','utf-8','1116188MNBlQR','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x20\x20\x20Repository:\x20','rhMJa','zgYGg','EGwtk','psTYh','xslCv','\x0a✅\x20Restored\x20feature\x20review:\x20','pendingItems','flEBX','trim','json','\x0aCreating\x20feature\x20review...','RTvOd','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','blockedItems','incompleteReason','\x0a\x20\x20\x20Scenarios:','spatial','TBmCQ','trimEnd','short','33910YPegtI','eVsbN','canonicalFlow','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','completedAt','canceledReason','env','linkedSession','\x20blocked','toLocaleDateString','authorName','\x20--current-branch','\x20\x20\x20\x20','all','log','apykW','error','latestReview','\x0a✅\x20Resumed\x20feature\x20review:\x20','rVzLX','sCvNI','1049314FlzIxo','toFixed','\x20(v','\x20\x20\x20\x20\x20\x20Blocked:\x20','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','cJFHM','gitRepoUrl','ZtPmZ','push','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Scenario\x20','3EOyFnW','Qaewj','\x20—\x20no\x20comments','141376OKSpXa','bHMTg','UAUjs','\x20\x20\x20Created:\x20','\x0a✅\x20Feature\x20review\x20created:\x20','sbkwE','/artifacts/','textContent','qbSRI','\x0aAvailable\x20scenarios:','notes','iFxZT','\x20\x20\x20Status:\x20','name','LYiFa','closed','list','stdout','approved','warn','LXNBm','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Step\x20','rszJV','MxMCQ','exit','replace','):\x20\x22','\x20--include-deleted','items','666kputZn','GpkrD','\x20scenario(s).','129935ArMnyP','assetType','type','yCIeu','domRef','aaVdf','offset','UOiSv','completed','sOCkZ','style','jLVLe','gVVLg','incompleteItems','DaGbs','excludeScenarios','stepName','in_progress','vPmtX','join','RANGER_TEST_USERNAME','\x0a✅\x20Session\x20','No\x20scenarios\x20found.','CLAUDE_SESSION_ID','screenshotUrls','MgJwh','pipe','gitBranch','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','isTTY','jYVjC'];_0x5204=function(){return _0x7f7f0e;};return _0x5204();}function getScenarioRationale(_0x4f21ee,_0x24ea1a){const _0x4a77ec=_0x261711,_0x3629ad='0|1|4|3|5|2'['split']('|');let _0x3130ca=0x0;while(!![]){switch(_0x3629ad[_0x3130ca++]){case'0':if(_0x24ea1a)return _0x24ea1a;continue;case'1':if(_0x4f21ee['blockedReason'])return _0x4f21ee['blockedReason'];continue;case'2':return null;case'3':if(_0x4f21ee[_0x4a77ec(0x237)])return _0x4f21ee[_0x4a77ec(0x237)];continue;case'4':if(_0x4f21ee[_0x4a77ec(0x22c)])return _0x4f21ee['incompleteReason'];continue;case'5':if(_0x4f21ee[_0x4a77ec(0x25f)])return _0x4f21ee[_0x4a77ec(0x25f)];continue;}break;}}export async function featureReportPrDescription(_0x5a718a,_0x2200a0){const _0x1c9488=_0x261711,_0x313764={'qbSRI':function(_0x5418e8,_0x584a1d){return _0x5418e8(_0x584a1d);},'NDQtI':function(_0x2501d5,_0x34504b,_0x24e826){return _0x2501d5(_0x34504b,_0x24e826);},'XBkjP':function(_0x888f84,_0x36b118){return _0x888f84===_0x36b118;},'oIIwE':function(_0x108c74,_0x46ed3d){return _0x108c74>_0x46ed3d;},'HQjCU':_0x1c9488(0x25e),'RLawi':function(_0x1d6f4d,_0x11c57a){return _0x1d6f4d+_0x11c57a;}},_0xe91be5=_0x5a718a||await getActiveFeatureId();if(!_0xe91be5)throw new Error(_0x1c9488(0x26a));const _0x908cee=await _0x313764[_0x1c9488(0x25d)](getFeature,_0xe91be5),_0x4391d9=_0x908cee['checklistItems']||[],_0x30307f=_0x313764[_0x1c9488(0x295)](getCurrentSessionItems,_0x908cee,_0x4391d9);_0x313764['XBkjP'](_0x30307f[_0x1c9488(0x1cc)],0x0)&&(console['error'](_0x1c9488(0x24b)),process[_0x1c9488(0x26e)](0x1));const _0x1a65e2=_0x2200a0[_0x1c9488(0x285)]??[],_0xe34a57=_0x1a65e2[_0x1c9488(0x205)](_0x4c9a0b=>!Number[_0x1c9488(0x1ff)](_0x4c9a0b)||_0x4c9a0b<0x1||_0x4c9a0b>_0x30307f[_0x1c9488(0x1cc)]);if(_0x313764['oIIwE'](_0xe34a57['length'],0x0)){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0xe34a57[_0x1c9488(0x289)](',\x20')),console['log'](_0x313764[_0x1c9488(0x1f8)]);for(let _0x3cca55=0x0;_0x3cca55<_0x30307f[_0x1c9488(0x1cc)];_0x3cca55++){console[_0x1c9488(0x240)]('\x20\x20'+_0x313764['RLawi'](_0x3cca55,0x1)+'.\x20'+_0x30307f[_0x3cca55]['description']);}process['exit'](0x1);}const _0x15459c=new Set(_0x1a65e2[_0x1c9488(0x1dc)](_0x1aa5a5=>_0x1aa5a5-0x1)),_0x425311=_0x30307f[_0x1c9488(0x205)]((_0x32e325,_0x133088)=>!_0x15459c['has'](_0x133088));_0x425311['length']===0x0&&(console['error'](_0x1c9488(0x22a)),process[_0x1c9488(0x26e)](0x1));if(_0x2200a0[_0x1c9488(0x227)])await outputJsonReport(_0xe91be5,_0x908cee,_0x425311);else{const _0x4e1a8c=await getFeatureReportMarkdown(_0xe91be5,{'itemIds':_0x425311['map'](_0x1d039d=>_0x1d039d['id'])});process['stdout'][_0x1c9488(0x1f3)](_0x4e1a8c[_0x1c9488(0x230)]()+'\x0a');}}async function outputJsonReport(_0x47ae49,_0x25adf7,_0x2644ba){const _0x3cb571=_0x261711,_0x24ca87={'jFeGk':function(_0x503438,_0x4a32cb){return _0x503438(_0x4a32cb);},'koNYs':function(_0xb86838,_0x5eb590){return _0xb86838+_0x5eb590;}},_0x3cc52a=getApiBaseUrl(),_0x281a23=await _0x24ca87['jFeGk'](getFeatureReport,_0x47ae49),_0x2b0da3=new Map(_0x281a23['checklistItems']['map'](_0x4273d4=>[_0x4273d4['id'],_0x4273d4])),_0x52c370=await Promise[_0x3cb571(0x23f)](_0x2644ba[_0x3cb571(0x1dc)](async _0xa72910=>{const _0xc24868=_0x3cb571,_0x812977=_0x2b0da3[_0xc24868(0x1d0)](_0xa72910['id']),_0x48133b=_0x812977?.[_0xc24868(0x239)]??null;let _0x1487fc=[];if(_0xa72910['browserSessionId'])try{const {steps:_0x1ed9af}=await _0x24ca87['jFeGk'](getBrowserSessionSteps,_0xa72910['browserSessionId']);_0x1ed9af['length']>0x0&&(_0x1487fc=_0x1ed9af[_0xc24868(0x1dc)](_0x38e9c7=>{const _0x1e0a8f=_0xc24868,_0x1977a4=_0x38e9c7['assets'][_0x1e0a8f(0x1ce)](_0x70686d=>_0x70686d[_0x1e0a8f(0x277)]===_0x1e0a8f(0x1f7)&&_0x70686d['timing']===_0x1e0a8f(0x297))??_0x38e9c7[_0x1e0a8f(0x1d7)]['find'](_0x20543e=>_0x20543e[_0x1e0a8f(0x277)]===_0x1e0a8f(0x1f7));let _0x2eca25=null,_0x295d37=null;if(_0x1977a4){const _0x855e2e=_0x1977a4[_0x1e0a8f(0x218)]['location']['split']('/')[_0x1e0a8f(0x1c7)]();_0x2eca25=_0x3cc52a+'/api/v1/mcp/browser-sessions/'+_0xa72910['browserSessionId']+_0x1e0a8f(0x25b)+_0x855e2e,_0x855e2e&&(_0x295d37=_0x855e2e[_0x1e0a8f(0x26f)](/\.\w+$/,'')[_0x1e0a8f(0x26f)](/^(key_)?\d+_/,'')[_0x1e0a8f(0x26f)](/[-_]/g,'\x20'));}return{'description':_0x295d37||_0x38e9c7[_0x1e0a8f(0x1c1)]||_0x38e9c7[_0x1e0a8f(0x286)]||_0x1e0a8f(0x26b)+_0x38e9c7['position'],'screenshot':_0x2eca25,'is_key_step':_0x38e9c7[_0x1e0a8f(0x210)]};}));}catch{}return _0x1487fc['length']===0x0&&_0x48133b?.[_0xc24868(0x28e)]&&(_0x1487fc=_0x48133b['screenshotUrls'][_0xc24868(0x1dc)]((_0x4392b7,_0x29b4a7)=>({'description':'Screenshot\x20'+(_0x29b4a7+0x1),'screenshot':_0x4392b7,'is_key_step':![]}))),{'description':_0xa72910[_0xc24868(0x1c1)],'result':getScenarioResult(_0xa72910),'rationale':getScenarioRationale(_0xa72910,_0x48133b?.['agentResponse']),'steps':_0x1487fc};})),_0x41e304={'url':_0x25adf7['dashboardUrl'],'scenarios':_0x52c370};process[_0x3cb571(0x266)][_0x3cb571(0x1f3)](_0x24ca87[_0x3cb571(0x1f4)](JSON['stringify'](_0x41e304,null,0x2),'\x0a'));}export async function featureConcludeSession(_0xdaebd4){const _0xa2857a=_0x261711,_0x453a5d={'unxlS':_0xa2857a(0x1ec),'maqmE':function(_0x3bd3a1,_0x39b8f4){return _0x3bd3a1(_0x39b8f4);},'zuKHf':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','yCIeu':function(_0x1aafa5,_0x327cdd){return _0x1aafa5(_0x327cdd);},'wUEtD':function(_0xbcdee6,_0x257b89){return _0xbcdee6===_0x257b89;},'AAdvW':function(_0xdd78c9,_0x7d61ab){return _0xdd78c9!==_0x7d61ab;},'GhTfH':'\x0aConcluding\x20session...'},_0x5a030d=_0xdaebd4||await getActiveFeatureId();if(!_0x5a030d)throw new Error(_0x453a5d['unxlS']);const _0x197d37=await _0x453a5d['maqmE'](getFeature,_0x5a030d);if(!_0x197d37['currentSessionId'])throw new Error(_0x453a5d[_0xa2857a(0x1d4)]);const {sessions:_0x132d8b}=await _0x453a5d[_0xa2857a(0x279)](listFeatureSessions,_0x5a030d),_0x3a6c3c=_0x132d8b['find'](_0x1681ef=>_0x1681ef['id']===_0x197d37[_0xa2857a(0x1da)]);if(!_0x3a6c3c)throw new Error('Current\x20session\x20not\x20found.');if(_0x453a5d['wUEtD'](_0x3a6c3c['status'],_0xa2857a(0x27e))){console['log'](_0xa2857a(0x1dd));return;}if(_0x453a5d[_0xa2857a(0x1db)](_0x3a6c3c[_0xa2857a(0x1e1)],_0xa2857a(0x287)))throw new Error(_0xa2857a(0x1c2)+_0x3a6c3c['status']);console['log'](_0x453a5d['GhTfH']),await concludeSession(_0x5a030d,_0x197d37['currentSessionId']),console['log'](_0xa2857a(0x28b)+_0x3a6c3c[_0xa2857a(0x1e9)]+'\x20concluded.'),console[_0xa2857a(0x240)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5dfb8e){const _0x2f2d53=_0x261711,_0x37e435={'hZbxb':function(_0x7f9471){return _0x7f9471();},'sbkwE':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','GtowB':function(_0x58530b,_0x2d56f1){return _0x58530b===_0x2d56f1;},'AyvQt':'No\x20sessions\x20found.','xbSWk':'completed','IlIiP':'in_progress'},_0x1df33b=_0x5dfb8e||await _0x37e435[_0x2f2d53(0x212)](getActiveFeatureId);if(!_0x1df33b)throw new Error(_0x37e435[_0x2f2d53(0x25a)]);const _0x3ce430=await getFeature(_0x1df33b);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3ce430['name']+'\x0a');const {sessions:_0x3be5bc}=await listFeatureSessions(_0x1df33b);if(_0x37e435['GtowB'](_0x3be5bc['length'],0x0)){console['log'](_0x37e435['AyvQt']);return;}for(const _0xbf920 of _0x3be5bc){const _0x260ed2=_0xbf920[_0x2f2d53(0x1e1)]===_0x37e435[_0x2f2d53(0x1ef)]?'✅':_0xbf920['status']===_0x37e435['IlIiP']?'🔄':'▶️';console[_0x2f2d53(0x240)](_0x260ed2+'\x20Session\x20'+_0xbf920['iteration']+'\x20('+_0xbf920['id']+')'),console['log'](_0x2f2d53(0x261)+_0xbf920[_0x2f2d53(0x1e1)]),console[_0x2f2d53(0x240)](_0x2f2d53(0x258)+new Date(_0xbf920[_0x2f2d53(0x20a)])[_0x2f2d53(0x1cd)]()),_0xbf920['completedAt']&&console[_0x2f2d53(0x240)]('\x20\x20\x20Completed:\x20'+new Date(_0xbf920[_0x2f2d53(0x236)])['toLocaleString']()),console[_0x2f2d53(0x240)]('');}}export async function featureAddScenario(_0x37fe20,_0x5adc5a){const _0x25a460=_0x261711,_0x1ba066={'pvVVr':_0x25a460(0x1ec),'FoioE':function(_0x53f0d5,_0xf952e2){return _0x53f0d5(_0xf952e2);},'Qaewj':function(_0x516cab,_0x10a4d9){return _0x516cab(_0x10a4d9);}},_0x5b1782=_0x5adc5a||await getActiveFeatureId();if(!_0x5b1782)throw new Error(_0x1ba066['pvVVr']);const _0x46cf37=await _0x1ba066['FoioE'](getFeature,_0x5b1782);if(_0x46cf37['latestReview']&&!_0x46cf37[_0x25a460(0x243)]['submittedAt'])throw new Error(_0x25a460(0x20d)+_0x46cf37['dashboardUrl']);await createChecklistItem(_0x5b1782,_0x37fe20);const _0x2757f9=await _0x1ba066[_0x25a460(0x253)](getFeature,_0x5b1782);console[_0x25a460(0x240)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x2757f9,_0x2757f9[_0x25a460(0x211)]);}export async function featureEditScenario(_0x2e01c8,_0x19241a){const _0x5f3fdb=_0x261711,_0x3386c9={'XTUxh':function(_0x45f436){return _0x45f436();},'psTYh':_0x5f3fdb(0x292),'grHRT':'Please\x20finish\x20your\x20review\x20first:','flEBX':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','jYVjC':'\x0aAvailable\x20scenarios:','RTvOd':function(_0x4afc5c,_0x212017){return _0x4afc5c<_0x212017;},'IqhKg':function(_0xc86877,_0xebd200){return _0xc86877-_0xebd200;},'XlvxE':function(_0x374bfe,_0x2fd4b5){return _0x374bfe<_0x2fd4b5;},'YSVus':function(_0x28cf0f,_0x2d038e){return _0x28cf0f+_0x2d038e;},'lMfNr':function(_0x1bf801,_0x27f649,_0x2a898c,_0x38df18){return _0x1bf801(_0x27f649,_0x2a898c,_0x38df18);},'rVzLX':function(_0xdf49a8,_0x2aaddd){return _0xdf49a8(_0x2aaddd);}},_0x80b417=_0x19241a['id']||await _0x3386c9['XTUxh'](getActiveFeatureId);!_0x80b417&&(console[_0x5f3fdb(0x242)](_0x3386c9[_0x5f3fdb(0x221)]),console[_0x5f3fdb(0x242)](_0x5f3fdb(0x250)),process['exit'](0x1));const _0x1c2f0b=await getFeature(_0x80b417);_0x1c2f0b[_0x5f3fdb(0x243)]&&!_0x1c2f0b['latestReview']['submittedAt']&&(console[_0x5f3fdb(0x242)](_0x5f3fdb(0x1f9)),console[_0x5f3fdb(0x242)](_0x3386c9['grHRT']),console[_0x5f3fdb(0x242)]('\x20\x20'+_0x1c2f0b['dashboardUrl']),process['exit'](0x1));const _0x51999b=_0x1c2f0b['checklistItems']||[];_0x51999b[_0x5f3fdb(0x1cc)]===0x0&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process[_0x5f3fdb(0x26e)](0x1));if(_0x19241a[_0x5f3fdb(0x1e3)]===undefined){console['error'](_0x3386c9[_0x5f3fdb(0x225)]),console['log'](_0x3386c9[_0x5f3fdb(0x294)]);for(let _0x2177ee=0x0;_0x3386c9[_0x5f3fdb(0x229)](_0x2177ee,_0x51999b[_0x5f3fdb(0x1cc)]);_0x2177ee++){console[_0x5f3fdb(0x240)]('\x20\x20'+(_0x2177ee+0x1)+'.\x20'+_0x51999b[_0x2177ee][_0x5f3fdb(0x1c1)]);}process[_0x5f3fdb(0x26e)](0x1);}const _0x1b6b6c=_0x3386c9['IqhKg'](_0x19241a['scenario'],0x1);if(_0x1b6b6c<0x0||_0x1b6b6c>=_0x51999b[_0x5f3fdb(0x1cc)]){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x19241a[_0x5f3fdb(0x1e3)]+_0x5f3fdb(0x1e0)+_0x51999b[_0x5f3fdb(0x1cc)]+_0x5f3fdb(0x214)),console['log'](_0x3386c9['jYVjC']);for(let _0xa77003=0x0;_0x3386c9['XlvxE'](_0xa77003,_0x51999b[_0x5f3fdb(0x1cc)]);_0xa77003++){console[_0x5f3fdb(0x240)]('\x20\x20'+_0x3386c9[_0x5f3fdb(0x213)](_0xa77003,0x1)+'.\x20'+_0x51999b[_0xa77003]['description']);}process[_0x5f3fdb(0x26e)](0x1);}const _0x48b066=_0x51999b[_0x1b6b6c];await _0x3386c9[_0x5f3fdb(0x1c5)](updateChecklistItem,_0x80b417,_0x48b066['id'],{'description':_0x2e01c8});const _0x18201a=await _0x3386c9[_0x5f3fdb(0x245)](getFeature,_0x80b417);console[_0x5f3fdb(0x240)]('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x18201a,_0x18201a['checklistItems']);}async function downloadFeedbackImage(_0x2ddaf8,_0x2b5644){const _0x54479f=_0x261711,_0x489ad6={'TBmCQ':function(_0x448838){return _0x448838();},'ecxVU':function(_0x4e3c0d,_0x5ce946,_0x51fb2b){return _0x4e3c0d(_0x5ce946,_0x51fb2b);},'PXiLu':function(_0x37dec0,_0x1b4069){return _0x37dec0(_0x1b4069);}};try{const _0x556081=join(_0x489ad6[_0x54479f(0x22f)](getRangerDir),_0x54479f(0x1e8));await _0x489ad6['ecxVU'](mkdir,_0x556081,{'recursive':!![]});const _0x558cbc=_0x489ad6['ecxVU'](join,_0x556081,'comment_'+_0x2b5644+'.png'),_0x1ac96b=await _0x489ad6[_0x54479f(0x1d5)](fetch,_0x2ddaf8);if(!_0x1ac96b['ok'])return null;const _0x302333=Buffer['from'](await _0x1ac96b['arrayBuffer']());return await writeFile(_0x558cbc,_0x302333),_0x558cbc;}catch{return null;}}export async function featureGetReview(_0x474731){const _0xc7f964=_0x261711,_0x1a87d3={'KowEM':function(_0x5741e8){return _0x5741e8();},'ZtPmZ':function(_0x3b76cf,_0x5cdc68){return _0x3b76cf(_0x5cdc68);},'uoxGI':function(_0x370fd5,_0x4cc91a){return _0x370fd5===_0x4cc91a;},'vWDXx':function(_0x1a2e07,_0x5ef604){return _0x1a2e07>_0x5ef604;},'AYbNn':function(_0x471b57,_0x2d9011){return _0x471b57+_0x2d9011;},'jLVLe':_0xc7f964(0x231),'lHeqd':'Unknown','MrYIJ':function(_0x99dea1,_0x47be63){return _0x99dea1===_0x47be63;},'wGyJT':'point','MxuKb':function(_0x27abd8,_0x3e83aa){return _0x27abd8>=_0x3e83aa;}},_0x12adfe=_0x474731||await _0x1a87d3['KowEM'](getActiveFeatureId);if(!_0x12adfe)throw new Error(_0xc7f964(0x1ec));const _0x57fa6e=await _0x1a87d3[_0xc7f964(0x24e)](getFeature,_0x12adfe),{items:_0x2864d8}=await _0x1a87d3[_0xc7f964(0x24e)](getActionItems,_0x12adfe);console[_0xc7f964(0x240)]('\x0a📋\x20Feedback\x20for:\x20'+_0x57fa6e['name']+'\x20('+_0x57fa6e['id']+')\x0a');if(_0x1a87d3['uoxGI'](_0x2864d8[_0xc7f964(0x1cc)],0x0)){console['log'](_0xc7f964(0x28c));return;}for(let _0x4f67ab=0x0;_0x4f67ab<_0x2864d8[_0xc7f964(0x1cc)];_0x4f67ab++){const _0x1ab9a9=_0x2864d8[_0x4f67ab],_0x25ba0d=_0x1ab9a9[_0xc7f964(0x20f)]>0x1?'\x20(v'+_0x1ab9a9[_0xc7f964(0x20f)]+')':'',_0x5c7c66=await getItemFeedback(_0x12adfe,_0x1ab9a9['id']);if(_0x1a87d3['vWDXx'](_0x5c7c66['unaddressedComments'][_0xc7f964(0x1cc)],0x0)){console[_0xc7f964(0x240)]('Scenario\x20'+_0x1a87d3['AYbNn'](_0x4f67ab,0x1)+':\x20\x22'+_0x1ab9a9['description']+'\x22'+_0x25ba0d+'\x20—\x20'+_0x5c7c66['unaddressedComments'][_0xc7f964(0x1cc)]+_0xc7f964(0x215));for(const _0xfb8f6 of _0x5c7c66['unaddressedComments']){const _0x129130=new Date(_0xfb8f6['createdAt'])[_0xc7f964(0x23b)](_0xc7f964(0x219),{'month':_0x1a87d3[_0xc7f964(0x281)],'day':'numeric'}),_0x355657=_0xfb8f6[_0xc7f964(0x23c)]||_0xfb8f6['authorEmail']||_0x1a87d3['lHeqd'];console['log']('\x20\x20💬\x20'+_0x355657+'\x20('+_0x129130+_0xc7f964(0x270)+_0xfb8f6[_0xc7f964(0x299)]+'\x22');if(_0xfb8f6[_0xc7f964(0x1d3)]){const _0x1fa9be=await downloadFeedbackImage(_0xfb8f6['assetUrl'],_0xfb8f6['id']);_0x1fa9be&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x1fa9be);}if(_0xfb8f6['domRef']){const _0x29bb83=_0xfb8f6[_0xc7f964(0x27a)]['selector']['split']('\x20>\x20')[_0xc7f964(0x1c7)]()?.[_0xc7f964(0x1e6)](':')[0x0]||'element',_0x156b10=_0xfb8f6[_0xc7f964(0x27a)][_0xc7f964(0x25c)]?'\x20\x22'+_0xfb8f6[_0xc7f964(0x27a)][_0xc7f964(0x25c)][_0xc7f964(0x217)](0x0,0x3c)+'\x22':'';console['log'](_0xc7f964(0x235)+_0x29bb83+'>'+_0x156b10),console[_0xc7f964(0x240)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0xfb8f6['domRef']['selector']);}else{if(_0xfb8f6['spatial']){const _0x22b1d8=_0xfb8f6[_0xc7f964(0x22e)][_0xc7f964(0x1e7)];_0x1a87d3[_0xc7f964(0x1ed)](_0xfb8f6[_0xc7f964(0x22e)][_0xc7f964(0x278)],_0x1a87d3['wGyJT'])&&_0x1a87d3['MxuKb'](_0x22b1d8['length'],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x22b1d8[0x0]['toFixed'](0x2)+',\x20'+_0x22b1d8[0x1][_0xc7f964(0x248)](0x2)+')'):console[_0xc7f964(0x240)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0xfb8f6[_0xc7f964(0x22e)][_0xc7f964(0x278)]+'\x20at\x20['+_0x22b1d8[_0xc7f964(0x1dc)](_0x27c01d=>_0x27c01d[_0xc7f964(0x248)](0x2))['join'](',\x20')+']');}}}if(_0x5c7c66[_0xc7f964(0x234)]){console['log'](_0xc7f964(0x1d8));for(const _0xe04bf4 of _0x5c7c66['canonicalFlow'][_0xc7f964(0x1e6)]('\x0a')){console['log'](_0xc7f964(0x23e)+_0xe04bf4);}}}else console[_0xc7f964(0x240)](_0xc7f964(0x251)+(_0x4f67ab+0x1)+_0xc7f964(0x1c0)+_0x1ab9a9[_0xc7f964(0x1c1)]+'\x22'+_0x25ba0d+_0xc7f964(0x254)),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0xc7f964(0x240)]('');}}export async function featureDelete(_0x492e6f){const _0x3ceb8b=_0x261711,_0x37ef36={'uVHbM':function(_0x433a14,_0x1f9757){return _0x433a14(_0x1f9757);}},_0x8cbdfb=_0x492e6f||await getActiveFeatureId();if(!_0x8cbdfb)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 _0x395e00=await getFeature(_0x8cbdfb);await _0x37ef36['uVHbM'](softDeleteFeature,_0x8cbdfb),console[_0x3ceb8b(0x240)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x395e00[_0x3ceb8b(0x262)]+'\x20('+_0x8cbdfb+')'),console['log']('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x8cbdfb);}export async function featureRestore(_0x53293b){const _0x59e1f2=_0x261711,_0x1fa4a9={'EGwtk':function(_0x56a24e,_0x2fd79d){return _0x56a24e(_0x2fd79d);},'NAchS':function(_0x196ddb,_0x1eec3c,_0x2ab2cb){return _0x196ddb(_0x1eec3c,_0x2ab2cb);}};await restoreFeature(_0x53293b);const _0x182b95=await _0x1fa4a9[_0x59e1f2(0x220)](getFeature,_0x53293b);console[_0x59e1f2(0x240)](_0x59e1f2(0x223)+_0x182b95[_0x59e1f2(0x262)]+'\x20('+_0x53293b+')'),_0x1fa4a9['NAchS'](displayFeature,_0x182b95,_0x182b95['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50558e,_0x550468){const _0x428517=_0x9477,_0x3e8f47=_0x50558e();while(!![]){try{const _0x33abaa=-parseInt(_0x428517(0x104))/0x1+parseInt(_0x428517(0x106))/0x2+-parseInt(_0x428517(0x10f))/0x3*(parseInt(_0x428517(0x102))/0x4)+-parseInt(_0x428517(0x109))/0x5*(-parseInt(_0x428517(0x108))/0x6)+-parseInt(_0x428517(0x103))/0x7*(-parseInt(_0x428517(0x107))/0x8)+-parseInt(_0x428517(0x10e))/0x9+parseInt(_0x428517(0x10d))/0xa*(parseInt(_0x428517(0x10c))/0xb);if(_0x33abaa===_0x550468)break;else _0x3e8f47['push'](_0x3e8f47['shift']());}catch(_0x59de3d){_0x3e8f47['push'](_0x3e8f47['shift']());}}}(_0x49f3,0x68647));function _0x49f3(){const _0x4a1e30=['3069164nExjvM','548321QbtkxA','has','1137078uJIxAd','8wmYGHD','52944ZEiqHH','110vbtlgS','dPPrU','join','13425346IAUmSD','10cCtdkk','6125553RUJgYl','6PWHWdJ','error','exit','Unknown\x20hook:\x20','SIGHUP','SIGINT','1530152jJbGIQ'];_0x49f3=function(){return _0x4a1e30;};return _0x49f3();}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';import{resolveHookMode}from'./utils/environment.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},RUNS_WHEN_OFF=new Set(['enable','disable']);let cancellationHandlersInstalled=![];function _0x9477(_0x472e4,_0x166911){_0x472e4=_0x472e4-0xfd;const _0x49f3a4=_0x49f3();let _0x947724=_0x49f3a4[_0x472e4];return _0x947724;}function installCancellationHandlers(){const _0x2538f3=_0x9477,_0x2780ae={'baGsX':_0x2538f3(0x101)};if(cancellationHandlersInstalled)return;const _0x41f676=()=>{const _0x188dd0=_0x2538f3;process[_0x188dd0(0xfe)](0x0);};process['once'](_0x2780ae['baGsX'],_0x41f676),process['once']('SIGTERM',_0x41f676),process['once'](_0x2538f3(0x100),_0x41f676),cancellationHandlersInstalled=!![];}export async function hook(_0x1a3b83,_0x50daa3){const _0x142d0a=_0x9477,_0x4ac05a={'FYOQi':function(_0x56c8ef,_0x5e5844){return _0x56c8ef===_0x5e5844;},'dPPrU':'off','yejiD':function(_0x3937ab,_0x523207){return _0x3937ab(_0x523207);}};installCancellationHandlers();const _0x1a6959=HOOKS[_0x1a3b83];if(!_0x1a6959){const _0xb66c69=Object['keys'](HOOKS)[_0x142d0a(0x10b)](',\x20');console['error'](_0x142d0a(0xff)+_0x1a3b83),console[_0x142d0a(0xfd)]('Valid\x20hooks:\x20'+_0xb66c69),process[_0x142d0a(0xfe)](0x1);}if(_0x4ac05a['FYOQi'](resolveHookMode(),_0x4ac05a[_0x142d0a(0x10a)])&&!RUNS_WHEN_OFF[_0x142d0a(0x105)](_0x1a3b83))return;await _0x4ac05a['yejiD'](_0x1a6959,_0x50daa3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x14da7a,_0xd723ff){const _0x518f95=_0x4470,_0x16f908=_0x14da7a();while(!![]){try{const _0x42b33d=parseInt(_0x518f95(0x9e))/0x1+-parseInt(_0x518f95(0xa0))/0x2+parseInt(_0x518f95(0xa3))/0x3+parseInt(_0x518f95(0xa6))/0x4*(parseInt(_0x518f95(0xa1))/0x5)+-parseInt(_0x518f95(0x9d))/0x6+-parseInt(_0x518f95(0xa2))/0x7+parseInt(_0x518f95(0xa8))/0x8*(-parseInt(_0x518f95(0x9f))/0x9);if(_0x42b33d===_0xd723ff)break;else _0x16f908['push'](_0x16f908['shift']());}catch(_0x28ffb6){_0x16f908['push'](_0x16f908['shift']());}}}(_0x57a4,0x2645a));function _0x4470(_0x23d5d3,_0x53c8d4){_0x23d5d3=_0x23d5d3-0x9c;const _0x57a4f4=_0x57a4();let _0x44706f=_0x57a4f4[_0x23d5d3];return _0x44706f;}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';function _0x57a4(){const _0x5a1aa0=['202093dbZfYa','1263033SxoPtD','157606nzLWUT','315SMzliX','122647GJRVmF','40761kPdYFM','log','jVkEr','12664efWZLm','fivTD','8dtMWWe','session_id','130290ElMvql'];_0x57a4=function(){return _0x5a1aa0;};return _0x57a4();}export async function autoPrompt(){const _0x48a50b=_0x4470,_0x49af45={'fivTD':function(_0x3c5b92,_0x14cf46){return _0x3c5b92(_0x14cf46);},'jVkEr':function(_0x1b7dee,_0x5d8adf){return _0x1b7dee(_0x5d8adf);}},_0x475075=await readHookInput(),_0x15e5d1=_0x475075?.[_0x48a50b(0x9c)];if(!_0x15e5d1)return;if(_0x49af45[_0x48a50b(0xa7)](isSessionEnabled,_0x15e5d1)||hasSessionBeenPrompted(_0x15e5d1))return;_0x49af45[_0x48a50b(0xa5)](markSessionPrompted,_0x15e5d1),console[_0x48a50b(0xa4)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x439cdd,_0x5662f1){const _0x6433d9=_0x7025,_0xb65c1=_0x439cdd();while(!![]){try{const _0x5b85e6=-parseInt(_0x6433d9(0x11a))/0x1+-parseInt(_0x6433d9(0x115))/0x2*(parseInt(_0x6433d9(0x117))/0x3)+parseInt(_0x6433d9(0x121))/0x4+parseInt(_0x6433d9(0x11e))/0x5*(-parseInt(_0x6433d9(0x112))/0x6)+parseInt(_0x6433d9(0x114))/0x7*(-parseInt(_0x6433d9(0x11b))/0x8)+-parseInt(_0x6433d9(0x120))/0x9*(parseInt(_0x6433d9(0x11f))/0xa)+parseInt(_0x6433d9(0x11c))/0xb;if(_0x5b85e6===_0x5662f1)break;else _0xb65c1['push'](_0xb65c1['shift']());}catch(_0x38f2ea){_0xb65c1['push'](_0xb65c1['shift']());}}}(_0x30f7,0x2d925));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x7025(_0x1b9443,_0xcf4ae){_0x1b9443=_0x1b9443-0x112;const _0x30f79c=_0x30f7();let _0x70252b=_0x30f79c[_0x1b9443];return _0x70252b;}function _0x30f7(){const _0x10b1b1=['1542BynayO','env','14TvnHwS','8MEiEQd','JjVxN','117336EfQYQA','CLAUDE_SESSION_ID','WaaqI','139975MogPyS','1120800AZjhrf','12221803ymYDEO','main','2885FTxAYd','3554530DmAjyt','9xrDyWd','623812OwABKL','master','sXcYM'];_0x30f7=function(){return _0x10b1b1;};return _0x30f7();}export async function disable(_0x4b2bac){const _0x13c229=_0x7025,_0xbc7368={'hSiPh':function(_0x346789,_0x53bd11){return _0x346789(_0x53bd11);},'WaaqI':function(_0x218c82){return _0x218c82();},'AOViB':function(_0x30afbe,_0xc35101){return _0x30afbe!==_0xc35101;},'JjVxN':function(_0xb39e69,_0xa64355){return _0xb39e69!==_0xa64355;},'HTABH':_0x13c229(0x122),'sXcYM':function(_0x399187,_0x16b222){return _0x399187!==_0x16b222;}},_0x2b592b=_0x4b2bac||process[_0x13c229(0x113)][_0x13c229(0x118)]||'';_0x2b592b&&_0xbc7368['hSiPh'](disableSession,_0x2b592b);const _0x4d8fc0=_0xbc7368[_0x13c229(0x119)](getCurrentBranch);_0x4d8fc0&&_0xbc7368['AOViB'](_0x4d8fc0,_0x13c229(0x11d))&&_0xbc7368['JjVxN'](_0x4d8fc0,_0xbc7368['HTABH'])&&disableBranch(_0x4d8fc0),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x4d8fc0&&_0xbc7368[_0x13c229(0x116)](_0x4d8fc0,_0x13c229(0x11d))&&_0xbc7368[_0x13c229(0x123)](_0x4d8fc0,_0xbc7368['HTABH'])?'\x20and\x20branch\x20\x27'+_0x4d8fc0+'\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
|
-
|
|
1
|
+
(function(_0x366929,_0x3ac016){const _0x2ecb2d=_0x26ba,_0xaa8422=_0x366929();while(!![]){try{const _0x660b94=parseInt(_0x2ecb2d(0xdf))/0x1+parseInt(_0x2ecb2d(0xec))/0x2+parseInt(_0x2ecb2d(0xf2))/0x3+parseInt(_0x2ecb2d(0xed))/0x4*(-parseInt(_0x2ecb2d(0xe3))/0x5)+-parseInt(_0x2ecb2d(0xe5))/0x6+parseInt(_0x2ecb2d(0xf1))/0x7*(parseInt(_0x2ecb2d(0xf0))/0x8)+-parseInt(_0x2ecb2d(0xef))/0x9*(parseInt(_0x2ecb2d(0xe4))/0xa);if(_0x660b94===_0x3ac016)break;else _0xaa8422['push'](_0xaa8422['shift']());}catch(_0x4fcb91){_0xaa8422['push'](_0xaa8422['shift']());}}}(_0x31b6,0x6cfa1));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x31b6(){const _0x5130f6=['7032890zAFWbv','64266DNrDep','ijHgW','qEHSN','master','main','CLAUDE_SESSION_ID','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','325654bxtRSw','92DaGjJq','#\x20RANGER\x20HOOKS\x20DISABLED\x0a\x0aRanger\x20hooks\x20are\x20turned\x20off\x20for\x20this\x20environment\x20via\x20`RANGER_HOOKS=off`,\x20so\x20enabling\x20has\x20no\x20effect\x20here.\x0a\x0aTo\x20use\x20Ranger,\x20unset\x20`RANGER_HOOKS`\x20(or\x20set\x20it\x20to\x20`auto`)\x20and\x20try\x20again.','9XdnpBv','9608fLPmkA','5117wjFJdS','370416vEyLRh','lOrCB','ranger\x20setup','484958cGUTAe','mmGWR','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','\x0a\x0a**Branch\x20\x27','106265GyLiYk'];_0x31b6=function(){return _0x5130f6;};return _0x31b6();}import{update}from'../update.js';import{resolveHookMode}from'../utils/environment.js';function _0x26ba(_0x3a37f4,_0x51637f){_0x3a37f4=_0x3a37f4-0xdd;const _0x31b6d9=_0x31b6();let _0x26bad2=_0x31b6d9[_0x3a37f4];return _0x26bad2;}export async function enable(_0x5ccc85){const _0x2aa9e7=_0x26ba,_0x5524ff={'RVawv':function(_0x11285f){return _0x11285f();},'KPwpg':'off','oniry':'ranger\x20setup\x20--opencode','qEHSN':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','ijHgW':function(_0x4ddf59,_0x26fca2){return _0x4ddf59(_0x26fca2);},'UxKGV':function(_0xcf0570,_0x281884){return _0xcf0570(_0x281884);},'hWCOG':function(_0x113248,_0x4b8040){return _0x113248!==_0x4b8040;},'xvZsg':_0x2aa9e7(0xe9),'lOrCB':_0x2aa9e7(0xe8),'mmGWR':function(_0xe3eef7){return _0xe3eef7();}},_0x22bd8=_0x5ccc85||process['env'][_0x2aa9e7(0xea)]||'',_0x2dcd43=Boolean(_0x5ccc85);if(_0x5524ff['RVawv'](resolveHookMode)===_0x5524ff['KPwpg']){printBlock(_0x2aa9e7(0xee));return;}const _0xa085ee=await getToken();if(!_0xa085ee){const _0xea6a90=_0x2dcd43?_0x5524ff['oniry']:_0x2aa9e7(0xde),_0x4bbcf1=_0x2dcd43?_0x2aa9e7(0xe1):_0x5524ff[_0x2aa9e7(0xe7)];_0x5524ff[_0x2aa9e7(0xe6)](printBlock,'#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0xea6a90+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x4bbcf1);return;}try{await update();}catch{}_0x22bd8&&_0x5524ff['UxKGV'](enableSession,_0x22bd8);const _0x53ad51=_0x5524ff['RVawv'](getCurrentBranch),_0x47e54e=_0x53ad51&&_0x5524ff['hWCOG'](_0x53ad51,_0x5524ff['xvZsg'])&&_0x53ad51!==_0x5524ff[_0x2aa9e7(0xdd)]?_0x2aa9e7(0xe2)+_0x53ad51+_0x2aa9e7(0xeb):'',_0x375d0f=_0x5524ff[_0x2aa9e7(0xe0)](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0x47e54e+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x375d0f+'\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 _0x3587(_0x26e525,_0x211051){_0x26e525=_0x26e525-0x151;const _0xf51874=_0xf518();let _0x35879b=_0xf51874[_0x26e525];return _0x35879b;}(function(_0x1b3eae,_0x1fd1d0){const _0x3c8b05=_0x3587,_0x326220=_0x1b3eae();while(!![]){try{const _0x1411a7=-parseInt(_0x3c8b05(0x152))/0x1*(-parseInt(_0x3c8b05(0x155))/0x2)+parseInt(_0x3c8b05(0x159))/0x3*(parseInt(_0x3c8b05(0x15b))/0x4)+parseInt(_0x3c8b05(0x151))/0x5+parseInt(_0x3c8b05(0x157))/0x6*(-parseInt(_0x3c8b05(0x154))/0x7)+parseInt(_0x3c8b05(0x15a))/0x8*(-parseInt(_0x3c8b05(0x156))/0x9)+parseInt(_0x3c8b05(0x153))/0xa+-parseInt(_0x3c8b05(0x158))/0xb;if(_0x1411a7===_0x1fd1d0)break;else _0x326220['push'](_0x326220['shift']());}catch(_0x1563d0){_0x326220['push'](_0x326220['shift']());}}}(_0xf518,0xe1e50));import{printBlock,getEnabledSessionId}from'./output.js';function _0xf518(){const _0x401a13=['12491820BfPFZw','6sSMruJ','12448CfEcBk','143980hwlgbu','8312565GitgCu','38727lohkbc','16385510GoBsws','7fJmnYU','34Ybvnup','9576KzUBnh','1889670xABElH'];_0xf518=function(){return _0x401a13;};return _0xf518();}export async function exitPlanMode(_0x18909b){const _0x19b342=await getEnabledSessionId(_0x18909b);if(!_0x19b342)return;printBlock('===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x164577,_0x1d3931){var _0x42b8c6=_0x2288,_0x1e71fb=_0x164577();while(!![]){try{var _0x2427f1=-parseInt(_0x42b8c6(0xcc))/0x1*(parseInt(_0x42b8c6(0xcd))/0x2)+parseInt(_0x42b8c6(0xd0))/0x3+parseInt(_0x42b8c6(0xcf))/0x4+parseInt(_0x42b8c6(0xc9))/0x5+parseInt(_0x42b8c6(0xcb))/0x6*(-parseInt(_0x42b8c6(0xce))/0x7)+parseInt(_0x42b8c6(0xca))/0x8+-parseInt(_0x42b8c6(0xd1))/0x9;if(_0x2427f1===_0x1d3931)break;else _0x1e71fb['push'](_0x1e71fb['shift']());}catch(_0xaf60b1){_0x1e71fb['push'](_0x1e71fb['shift']());}}}(_0x58f9,0xec840));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x2288(_0x2ea359,_0x3e16b1){_0x2ea359=_0x2ea359-0xc9;var _0x58f9c1=_0x58f9();var _0x2288d6=_0x58f9c1[_0x2ea359];return _0x2288d6;}function _0x58f9(){var _0x23cbf8=['7316568bEGYsR','84leqYKQ','41UHhoia','40262tqjLnG','967211ncoydV','5233892qbmheF','4539096IfyEsq','8023851Qqcecd','4420120vDoHOt'];_0x58f9=function(){return _0x23cbf8;};return _0x58f9();}export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x350c99,_0x27d370){const _0x40bcd7=_0x2642,_0x2fa990=_0x350c99();while(!![]){try{const _0x14e175=parseInt(_0x40bcd7(0x16f))/0x1*(-parseInt(_0x40bcd7(0x16c))/0x2)+parseInt(_0x40bcd7(0x16b))/0x3*(-parseInt(_0x40bcd7(0x165))/0x4)+parseInt(_0x40bcd7(0x167))/0x5+-parseInt(_0x40bcd7(0x166))/0x6*(-parseInt(_0x40bcd7(0x170))/0x7)+parseInt(_0x40bcd7(0x169))/0x8*(parseInt(_0x40bcd7(0x172))/0x9)+parseInt(_0x40bcd7(0x173))/0xa+-parseInt(_0x40bcd7(0x168))/0xb;if(_0x14e175===_0x27d370)break;else _0x2fa990['push'](_0x2fa990['shift']());}catch(_0xf477f4){_0x2fa990['push'](_0x2fa990['shift']());}}}(_0x456f,0x951cf));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x5b8e17){const _0x96f1da=_0x2642;console[_0x96f1da(0x16a)](_0x5b8e17);}export async function readHookInput(){let _0x201d55='';try{for await(const _0x270e17 of process['stdin']){_0x201d55+=_0x270e17;}}catch{return null;}if(!_0x201d55['trim']())return null;try{return JSON['parse'](_0x201d55);}catch{return null;}}export async function getEnabledSessionId(_0x1c5382){const _0x5609a2=_0x2642,_0x381892={'lcQeT':function(_0x34d51e,_0x23118b){return _0x34d51e(_0x23118b);},'nnwDn':function(_0x47bc83){return _0x47bc83();}};if(_0x1c5382)return _0x381892['lcQeT'](isSessionEnabled,_0x1c5382)?_0x1c5382:null;const _0x536044=await _0x381892[_0x5609a2(0x16d)](readHookInput),_0x55fc7f=_0x536044?.['session_id'];if(!_0x55fc7f||!_0x381892['lcQeT'](isSessionEnabled,_0x55fc7f))return null;return _0x55fc7f;}function _0x456f(){const _0xbb59f7=['136302uonxAZ','2979155XtOGjz','14515809YAWsza','336gZFtfA','log','24zEihfO','963818wyRxwZ','nnwDn','session_id','1diryvj','7BJdRUI','uNCIP','243288KwjnVd','6641550srhXjR','2876XERUVH'];_0x456f=function(){return _0xbb59f7;};return _0x456f();}function _0x2642(_0x32e44d,_0x2a69a9){_0x32e44d=_0x32e44d-0x165;const _0x456fd0=_0x456f();let _0x264279=_0x456fd0[_0x32e44d];return _0x264279;}export async function getEnabledHookContext(_0x5cf254){const _0x34ceec=_0x2642,_0x52998b={'uNCIP':function(_0x1ff66d,_0x4a1979){return _0x1ff66d(_0x4a1979);}};if(_0x5cf254){if(!_0x52998b['uNCIP'](isSessionEnabled,_0x5cf254))return null;return{'sessionId':_0x5cf254,'input':{'session_id':_0x5cf254}};}const _0x242895=await readHookInput(),_0x3dd7ca=_0x242895?.[_0x34ceec(0x16e)];if(!_0x3dd7ca||!_0x52998b[_0x34ceec(0x171)](isSessionEnabled,_0x3dd7ca))return null;return{'sessionId':_0x3dd7ca,'input':_0x242895};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5eaad4,_0x1c21ff){const _0x4237af=_0x10f7,_0x43a50b=_0x5eaad4();while(!![]){try{const _0x1ac9bd=parseInt(_0x4237af(0x1d0))/0x1*(parseInt(_0x4237af(0x1cc))/0x2)+-parseInt(_0x4237af(0x1d1))/0x3+-parseInt(_0x4237af(0x1cd))/0x4+-parseInt(_0x4237af(0x1c9))/0x5+-parseInt(_0x4237af(0x1ce))/0x6+-parseInt(_0x4237af(0x1cf))/0x7*(parseInt(_0x4237af(0x1c8))/0x8)+parseInt(_0x4237af(0x1ca))/0x9;if(_0x1ac9bd===_0x1c21ff)break;else _0x43a50b['push'](_0x43a50b['shift']());}catch(_0x3f5d3c){_0x43a50b['push'](_0x43a50b['shift']());}}}(_0x17b7,0xe23d6));function _0x10f7(_0x2516a1,_0x45ce63){_0x2516a1=_0x2516a1-0x1c4;const _0x17b7c6=_0x17b7();let _0x10f7d7=_0x17b7c6[_0x2516a1];return _0x10f7d7;}import{printBlock,getEnabledHookContext}from'./output.js';function _0x17b7(){const _0xb99364=['768tzfDKt','6889055AvXcXG','48995622hofoZo','CtuwM','642278BMwHhm','4283636YGIpDx','9708846IcDnBR','20209VVKPso','5dewVfD','5336886jgMWpN','eCCsh','===\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===','permission_mode','input'];_0x17b7=function(){return _0xb99364;};return _0x17b7();}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x26dce1){const _0x45020e=_0x10f7,_0x47a6b7={'CtuwM':function(_0x149c1c,_0x294f28){return _0x149c1c(_0x294f28);},'eCCsh':'plan','UzVfY':function(_0x485891,_0x2c1c05){return _0x485891(_0x2c1c05);}},_0x103025=await _0x47a6b7['CtuwM'](getEnabledHookContext,_0x26dce1);if(!_0x103025)return;if(_0x103025[_0x45020e(0x1c7)][_0x45020e(0x1c6)]!==_0x47a6b7[_0x45020e(0x1c4)])return;if(!_0x47a6b7[_0x45020e(0x1cb)](shouldShowPlanReminder,_0x103025['sessionId']))return;_0x47a6b7['UzVfY'](printBlock,_0x45020e(0x1c5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xeb4f81,_0x22915e){const _0xbfe4da=_0x38aa,_0x561a23=_0xeb4f81();while(!![]){try{const _0xf0ebbb=parseInt(_0xbfe4da(0x118))/0x1+parseInt(_0xbfe4da(0x11a))/0x2+-parseInt(_0xbfe4da(0x119))/0x3*(parseInt(_0xbfe4da(0x11d))/0x4)+-parseInt(_0xbfe4da(0x11f))/0x5+-parseInt(_0xbfe4da(0x120))/0x6+-parseInt(_0xbfe4da(0x11c))/0x7*(parseInt(_0xbfe4da(0x117))/0x8)+-parseInt(_0xbfe4da(0x11e))/0x9*(-parseInt(_0xbfe4da(0x121))/0xa);if(_0xf0ebbb===_0x22915e)break;else _0x561a23['push'](_0x561a23['shift']());}catch(_0x2c3618){_0x561a23['push'](_0x561a23['shift']());}}}(_0x30d3,0x7b4dd));import{printBlock,getEnabledSessionId}from'./output.js';function _0x38aa(_0x152a3f,_0x4eb37b){_0x152a3f=_0x152a3f-0x117;const _0x30d365=_0x30d3();let _0x38aae2=_0x30d365[_0x152a3f];return _0x38aae2;}export async function planStart(_0x22abc3){const _0xbbd398=_0x38aa,_0x45c3a0={'gHAUp':function(_0x3e6673,_0x5b7bf5){return _0x3e6673(_0x5b7bf5);}},_0x3dfcc7=await _0x45c3a0['gHAUp'](getEnabledSessionId,_0x22abc3);if(!_0x3dfcc7)return;printBlock(_0xbbd398(0x11b));}function _0x30d3(){const _0x2b672d=['4VegALs','36MlmMrq','1086315gHWJXh','3805062DpCfJI','3101620gjpyGD','8KYjsba','5928NxcNCH','229230ozLLBM','1349386gGAAwX','===\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===','3418562LzkyVP'];_0x30d3=function(){return _0x2b672d;};return _0x30d3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x303963,_0x8e4c1c){const _0x3b9af0=_0x4d54,_0x344845=_0x303963();while(!![]){try{const _0x2364d4=parseInt(_0x3b9af0(0x197))/0x1+-parseInt(_0x3b9af0(0x194))/0x2*(parseInt(_0x3b9af0(0x195))/0x3)+parseInt(_0x3b9af0(0x19f))/0x4+parseInt(_0x3b9af0(0x198))/0x5+parseInt(_0x3b9af0(0x19a))/0x6+parseInt(_0x3b9af0(0x19e))/0x7+-parseInt(_0x3b9af0(0x199))/0x8;if(_0x2364d4===_0x8e4c1c)break;else _0x344845['push'](_0x344845['shift']());}catch(_0x1645b3){_0x344845['push'](_0x344845['shift']());}}}(_0x4bfc,0xacb66));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x4d54(_0x19e552,_0x5e14c9){_0x19e552=_0x19e552-0x194;const _0x4bfcf1=_0x4bfc();let _0x4d54d7=_0x4bfcf1[_0x19e552];return _0x4d54d7;}function _0x4bfc(){const _0x1cb0a0=['3729915ZfZIgH','4239996oksvPh','9488PoJJqU','114yLiHcD','DNwGE','959368WhHpTe','331070zMOAFT','22605568ZSszXJ','6569832TCbZkh','stringify','RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.','log'];_0x4bfc=function(){return _0x1cb0a0;};return _0x4bfc();}export async function postEdit(_0xee5a92){const _0x197ab2=_0x4d54,_0x280df1={'DNwGE':function(_0x33821c,_0x523c93){return _0x33821c(_0x523c93);}},_0x2f1b20=await _0x280df1['DNwGE'](getEnabledSessionId,_0xee5a92);if(!_0x2f1b20)return;_0x280df1[_0x197ab2(0x196)](updateBranchTracking,_0x2f1b20);const _0x1b8203=await getToken();if(!_0x1b8203)return;const _0xb55c3c=getSessionEntry(_0x2f1b20);if(_0xb55c3c){const _0x347fce={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console[_0x197ab2(0x19d)](JSON[_0x197ab2(0x19b)](_0x347fce));return;}const _0x254063={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x197ab2(0x19c)}};console[_0x197ab2(0x19d)](JSON[_0x197ab2(0x19b)](_0x254063));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1944(_0x4766df,_0xcecd7a){_0x4766df=_0x4766df-0xa1;const _0x80d196=_0x80d1();let _0x194403=_0x80d196[_0x4766df];return _0x194403;}(function(_0x4aff7e,_0x316619){const _0x1ad1e2=_0x1944,_0x53dfea=_0x4aff7e();while(!![]){try{const _0x4fb041=parseInt(_0x1ad1e2(0xa6))/0x1+parseInt(_0x1ad1e2(0xa9))/0x2+-parseInt(_0x1ad1e2(0xa8))/0x3*(parseInt(_0x1ad1e2(0xa3))/0x4)+-parseInt(_0x1ad1e2(0xab))/0x5+-parseInt(_0x1ad1e2(0xa1))/0x6*(parseInt(_0x1ad1e2(0xa7))/0x7)+-parseInt(_0x1ad1e2(0xa5))/0x8+-parseInt(_0x1ad1e2(0xaa))/0x9*(-parseInt(_0x1ad1e2(0xa2))/0xa);if(_0x4fb041===_0x316619)break;else _0x53dfea['push'](_0x53dfea['shift']());}catch(_0x419e24){_0x53dfea['push'](_0x53dfea['shift']());}}}(_0x80d1,0x1d3cf));function _0x80d1(){const _0x4485de=['18KBaNBr','683250PPzJkf','3096RkgEko','667090DLeqXh','56gORSrr','===\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`.','1150424vOOBgq','210937xDMJQu','322akeUdP','32892HTiUsi','466178cfouva'];_0x80d1=function(){return _0x4485de;};return _0x80d1();}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x20f919){const _0x302129=_0x1944,_0x4d9c08={'oIdQI':function(_0x2ab542,_0x192223){return _0x2ab542(_0x192223);}},_0x5d3e94=await _0x4d9c08['oIdQI'](getEnabledSessionId,_0x20f919);if(!_0x5d3e94)return;try{const _0x5b3ad1=await getToken();if(!_0x5b3ad1)return;printBlock(_0x302129(0xa4));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe93cc0,_0x34d328){const _0x348ec6=_0x35bd,_0x2e2db6=_0xe93cc0();while(!![]){try{const _0x4f1bf4=-parseInt(_0x348ec6(0xd2))/0x1*(parseInt(_0x348ec6(0xe0))/0x2)+parseInt(_0x348ec6(0xd3))/0x3*(parseInt(_0x348ec6(0xd4))/0x4)+-parseInt(_0x348ec6(0xd7))/0x5+-parseInt(_0x348ec6(0xd1))/0x6+-parseInt(_0x348ec6(0xda))/0x7*(-parseInt(_0x348ec6(0xdf))/0x8)+-parseInt(_0x348ec6(0xcf))/0x9*(parseInt(_0x348ec6(0xd8))/0xa)+-parseInt(_0x348ec6(0xdc))/0xb*(-parseInt(_0x348ec6(0xdb))/0xc);if(_0x4f1bf4===_0x34d328)break;else _0x2e2db6['push'](_0x2e2db6['shift']());}catch(_0x1c417e){_0x2e2db6['push'](_0x2e2db6['shift']());}}}(_0x401e,0x94272));function _0x35bd(_0x20b32d,_0x3bfc97){_0x20b32d=_0x20b32d-0xcf;const _0x401e13=_0x401e();let _0x35bd42=_0x401e13[_0x20b32d];return _0x35bd42;}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x401e(){const _0x238f9c=['12LPDmHq','11166265XwtlHo','CLAUDE_SESSION_ID','KfSjt','53552jfgZyl','486mRDSuP','env','9hLKmXP','session_id','6097074bdatMe','3301QSrQHL','2697ZlxnNR','3020ejOEEZ','clear','VGyTK','487285onGteO','1017130afobGi','reason','973fdFpqL'];_0x401e=function(){return _0x238f9c;};return _0x401e();}import{readHookInput}from'./output.js';export async function sessionEnd(_0x595308){const _0x168b5e=_0x35bd,_0x50afc5={'VGyTK':function(_0x5181a3,_0x45e5d0){return _0x5181a3(_0x45e5d0);},'mPZVq':function(_0x512527){return _0x512527();},'KfSjt':function(_0x39dfde,_0x295371){return _0x39dfde===_0x295371;}},_0x3f1a6b=process[_0x168b5e(0xe1)][_0x168b5e(0xdd)];let _0x5530a4=_0x595308,_0x52eeaf;if(!_0x595308){if(_0x3f1a6b&&!_0x50afc5[_0x168b5e(0xd6)](isSessionEnabled,_0x3f1a6b))return;const _0x53d744=await _0x50afc5['mPZVq'](readHookInput);_0x5530a4=_0x53d744?.[_0x168b5e(0xd0)]||_0x3f1a6b,_0x52eeaf=_0x53d744?.[_0x168b5e(0xd9)];}if(!_0x5530a4)return;_0x50afc5[_0x168b5e(0xde)](_0x52eeaf,_0x168b5e(0xd5))&&recordEnabledSessionCleared(_0x5530a4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x967d69=_0x3b11;(function(_0x3cab4c,_0x5ba862){const _0x556724=_0x3b11,_0x55226d=_0x3cab4c();while(!![]){try{const _0x55862d=-parseInt(_0x556724(0x19b))/0x1*(-parseInt(_0x556724(0x196))/0x2)+-parseInt(_0x556724(0x18d))/0x3+-parseInt(_0x556724(0x188))/0x4+parseInt(_0x556724(0x18b))/0x5*(parseInt(_0x556724(0x181))/0x6)+-parseInt(_0x556724(0x199))/0x7*(parseInt(_0x556724(0x187))/0x8)+-parseInt(_0x556724(0x18c))/0x9+parseInt(_0x556724(0x194))/0xa*(parseInt(_0x556724(0x192))/0xb);if(_0x55862d===_0x5ba862)break;else _0x55226d['push'](_0x55226d['shift']());}catch(_0x1fc5a9){_0x55226d['push'](_0x55226d['shift']());}}}(_0xb02d,0xafdc5));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';function _0x3b11(_0x5ad26e,_0xbc5b80){_0x5ad26e=_0x5ad26e-0x17d;const _0xb02d6b=_0xb02d();let _0x3b11bc=_0xb02d6b[_0x5ad26e];return _0x3b11bc;}const RANGER_AUTO_ENABLED_PROMPT=_0x967d69(0x180);function _0xb02d(){const _0x5aad66=['1838720MaMKUC','stdin','stringify','80zDxChy','6588585mAJglN','3629481KRfrBC','RkAqw','trackCommandEnd','MqKVf','main','40854EsSfRE','parse','9210vnnVHg','source','32vELQqB','OqGNp','xfKSn','21287zOjBkZ','\x20(Branch:\x20','18787LvWTrJ','ulQqL','BKXen','env','=================================================================\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=================================================================','95712UKOarg','DXXVO','SessionStart','hook:session-start','trackCommandStart','master','2248ewdiWB'];_0xb02d=function(){return _0x5aad66;};return _0xb02d();}export async function sessionStart(_0x948309){const _0xf80419=_0x967d69,_0x5eb2a0={'MqKVf':function(_0x35dffc,_0x416690,_0x5df228){return _0x35dffc(_0x416690,_0x5df228);},'BKXen':function(_0x4e6238){return _0x4e6238();},'RkAqw':function(_0x26b566,_0x3c2dcf){return _0x26b566(_0x3c2dcf);},'ulQqL':function(_0x501b0e,_0x58477e){return _0x501b0e(_0x58477e);},'xfKSn':function(_0x2011fd,_0x58cc31){return _0x2011fd===_0x58cc31;},'OqGNp':function(_0x4d7a6f,_0x2b1f94){return _0x4d7a6f(_0x2b1f94);},'CwLnk':function(_0x8e6713,_0x232f35){return _0x8e6713(_0x232f35);},'dzTLp':'success','DXXVO':function(_0x5dbb95,_0x54d2db){return _0x5dbb95!==_0x54d2db;}};let _0x163486=_0x948309||'',_0x39f2ae;if(!_0x948309){let _0x17f15d='';for await(const _0x486359 of process[_0xf80419(0x189)]){_0x17f15d+=_0x486359;}try{const _0x5bea2e=JSON[_0xf80419(0x193)](_0x17f15d);_0x163486=_0x5bea2e['session_id']||'',_0x39f2ae=_0x5bea2e[_0xf80419(0x195)];}catch{}const _0xdb4b83=process[_0xf80419(0x17f)]['CLAUDE_ENV_FILE'];if(_0xdb4b83&&_0x163486)try{await _0x5eb2a0[_0xf80419(0x190)](appendFile,_0xdb4b83,'export\x20CLAUDE_SESSION_ID=\x22'+_0x163486+'\x22\x0a');}catch{}}try{await _0x5eb2a0[_0xf80419(0x17e)](getToken);}catch{}if(_0x163486){_0x5eb2a0[_0xf80419(0x18e)](shouldAutoEnableAfterClear,_0x39f2ae)&&_0x5eb2a0[_0xf80419(0x17d)](autoEnableAfterClear,_0x163486);initBranchTracking(_0x163486);_0x5eb2a0[_0xf80419(0x198)](_0x5eb2a0['BKXen'](resolveHookMode),'on')&&enableSession(_0x163486);const _0x1894e4=_0x5eb2a0[_0xf80419(0x197)](isSessionEnabled,_0x163486);try{const _0xd2aa9d=_0x5eb2a0['CwLnk'](createTelemetryCollector,_0xf80419(0x184));await _0xd2aa9d[_0xf80419(0x185)]({'sessionId':_0x163486,'hooksEnabled':_0x1894e4}),await _0xd2aa9d[_0xf80419(0x18f)](_0x5eb2a0['dzTLp']);}catch{}if(_0x1894e4){const _0x2197ea=_0x5eb2a0[_0xf80419(0x17e)](getCurrentBranch),_0x4d0688=_0x2197ea&&_0x5eb2a0[_0xf80419(0x182)](_0x2197ea,_0xf80419(0x191))&&_0x2197ea!==_0xf80419(0x186)?_0xf80419(0x19a)+_0x2197ea+')':'',_0x3254dc={'hookSpecificOutput':{'hookEventName':_0xf80419(0x183),'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x4d0688}};console['log'](JSON[_0xf80419(0x18a)](_0x3254dc));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x414f07,_0x49d367){const _0x243fee=_0x1bb1,_0x1fa2e1=_0x414f07();while(!![]){try{const _0x3fe925=parseInt(_0x243fee(0x105))/0x1*(parseInt(_0x243fee(0x113))/0x2)+parseInt(_0x243fee(0x103))/0x3*(parseInt(_0x243fee(0x10a))/0x4)+-parseInt(_0x243fee(0x114))/0x5*(parseInt(_0x243fee(0x118))/0x6)+-parseInt(_0x243fee(0x119))/0x7+parseInt(_0x243fee(0x107))/0x8*(-parseInt(_0x243fee(0x104))/0x9)+parseInt(_0x243fee(0x10d))/0xa+parseInt(_0x243fee(0x106))/0xb;if(_0x3fe925===_0x49d367)break;else _0x1fa2e1['push'](_0x1fa2e1['shift']());}catch(_0x560ffd){_0x1fa2e1['push'](_0x1fa2e1['shift']());}}}(_0x2d44,0x2315c));import{getToken}from'../utils/keychain.js';function _0x1bb1(_0x340892,_0x3d9c39){_0x340892=_0x340892-0x102;const _0x2d441d=_0x2d44();let _0x1bb120=_0x2d441d[_0x340892];return _0x1bb120;}import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';function _0x2d44(){const _0x5466a6=['9WywxQK','8bLoIaS','5580531UPqtit','1745768gJZwLc','verification_in_progress','incomplete','52qEzhez','Stop','trackCommandEnd','2086690eQrlIH','featureId','verified','filter','stringify','sessionId','25810akxNIK','570675YeOEQN','status','currentSessionId','some','12CTJsKV','1855924xNHymB','blocked','8331aLoATT'];_0x2d44=function(){return _0x5466a6;};return _0x2d44();}import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x53ec2e){const _0x555927=_0x1bb1,_0x129300={'PDxJx':function(_0x87b61f){return _0x87b61f();},'huHMX':function(_0xc8ffc2,_0x445dbd){return _0xc8ffc2&&_0x445dbd;},'yHtJj':function(_0x17e974,_0x2415cb,_0x251350){return _0x17e974(_0x2415cb,_0x251350);}},_0x367640=await getEnabledHookContext(_0x53ec2e),_0x59cb1f=_0x367640?.[_0x555927(0x112)]??null;let _0x2dc4b8=!![];if(!_0x59cb1f){await trackStop(_0x59cb1f,![],_0x2dc4b8);return;}try{const _0x2c41dc=getSessionEntry(_0x59cb1f);if(!_0x2c41dc){await trackStop(_0x59cb1f,!![],_0x2dc4b8);return;}const _0x39015a=await _0x129300['PDxJx'](getToken),_0xca9c1c='https://dashboard.ranger.net/features/'+_0x2c41dc[_0x555927(0x10e)];let _0x1a5c70=null,_0x42bc47=![],_0x1ae316=![];if(_0x39015a)try{const _0x531853=await getFeature(_0x2c41dc['featureId']);_0x1a5c70=_0x531853[_0x555927(0x116)]??null;const _0x1ca51b=_0x531853['checklistItems'][_0x555927(0x110)](_0x29e594=>_0x29e594['sessionId']===_0x1a5c70);_0x42bc47=_0x1ca51b['some'](_0x319db6=>_0x319db6[_0x555927(0x115)]!==_0x555927(0x10f)&&_0x319db6[_0x555927(0x115)]!==_0x555927(0x102)&&_0x319db6['status']!=='closed'&&_0x319db6['status']!==_0x555927(0x109)),_0x1ae316=_0x1ca51b[_0x555927(0x117)](_0x450c87=>_0x450c87['status']===_0x555927(0x108));}catch{}if(_0x39015a&&_0x1a5c70&&_0x42bc47){if(!_0x1ae316&&shouldShowStopReminder(_0x59cb1f)){const _0xd635b={'hookSpecificOutput':{'hookEventName':_0x555927(0x10b),'additionalContext':'RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20'+_0xca9c1c}};console['log'](JSON[_0x555927(0x111)](_0xd635b));}}if(_0x129300['huHMX'](_0x39015a,_0x1a5c70)&&!_0x42bc47)try{await _0x129300['yHtJj'](concludeSession,_0x2c41dc[_0x555927(0x10e)],_0x1a5c70);}catch{}await trackStop(_0x59cb1f,!![],_0x2dc4b8);return;}catch{await trackStop(_0x59cb1f,!![],_0x2dc4b8);return;}}async function trackStop(_0x2198bc,_0x1136b2,_0x31c74b){const _0x7bfe8a=_0x1bb1,_0x56cc6c={'oYLBH':'hook:stop'};try{const _0x47214b=createTelemetryCollector(_0x56cc6c['oYLBH']);await _0x47214b['trackCommandStart']({'sessionId':_0x2198bc??undefined,'hooksEnabled':_0x1136b2,'stopAllowed':_0x31c74b}),await _0x47214b[_0x7bfe8a(0x10c)]('success');}catch{}}
|