@ranger-testing/ranger-cli 3.0.1-alpha.d9f4572-27 → 3.0.1-alpha.ffffb5b-28
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/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/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/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2233f2=_0x36ff;(function(_0x56f338,_0x29f986){const _0x39fb89=_0x36ff,_0x1ca33a=_0x56f338();while(!![]){try{const _0x2b7da7=-parseInt(_0x39fb89(0x1cf))/0x1*(parseInt(_0x39fb89(0x1f0))/0x2)+-parseInt(_0x39fb89(0x1d1))/0x3+parseInt(_0x39fb89(0x1ea))/0x4*(-parseInt(_0x39fb89(0x1d5))/0x5)+parseInt(_0x39fb89(0x17d))/0x6*(parseInt(_0x39fb89(0x1fa))/0x7)+parseInt(_0x39fb89(0x1ec))/0x8*(parseInt(_0x39fb89(0x224))/0x9)+parseInt(_0x39fb89(0x169))/0xa*(parseInt(_0x39fb89(0x1aa))/0xb)+parseInt(_0x39fb89(0x23b))/0xc;if(_0x2b7da7===_0x29f986)break;else _0x1ca33a['push'](_0x1ca33a['shift']());}catch(_0x6bfeb9){_0x1ca33a['push'](_0x1ca33a['shift']());}}}(_0x8fe8,0x35c06));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x5a10fe from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x8fe8(){const _0x204f37=['domRef','rfMFP','zfjkl','WXsJF','jiwlA','...','closed','CLAUDE_SESSION_ID','\x0a✅\x20Report\x20generated:\x20','trimEnd','6KtnuZH','pwDlc','blockedItems','env','JHtJB','LqAli','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','tsSff','TpeOf','\x20\x20\x20Progress:\x20','assets','No\x20active\x20session\x20for\x20this\x20feature\x20review.','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x20\x20\x20\x20\x20📋\x20Selector:\x20','oRMWa','dVeHI','\x0aGenerating\x20report...','filter','in_progress','lNeTt','reports','createdAt','selector','verified','sessionId','WUtfW','LgMcH','IErgs','spatial','No\x20sessions\x20found.','completedAt','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>',':\x20\x22','notes','ready','FUYOk','\x20at\x20[','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','\x20verified','\x20scenario(s).','length','Cannot\x20conclude\x20session\x20with\x20status:\x20','MNBOr','eCdaA','split','8228iYuLxJ','wIsWS','khhde','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','screenshot','stepName','\x20\x20\x20\x20\x20Progress:\x20','SWXqS','toFixed','list','checklistItems','qkokE','dHWFt','browserSessionId','includeDeleted','items','\x20/\x20','/artifacts/','gitBranch','\x20\x20\x20ID:\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','offset','\x20\x20💬\x20','CwZzv','pendingItems','version','HPrDl','JQVvP','\x20feature\x20review(s)\x20found','NACCD','blocked','hANdM','\x20\x20\x20\x20\x20\x20Blocked:\x20','IHNZK','totalCount','has','NHWWa','1523qkbMVp','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','179379hPMYQz','utf-8','\x0a📋\x20Feedback\x20for:\x20','incompleteReason','883390MHNiFK','\x20[has\x20reviewer\x20feedback]','blockedReason','warn','log','latestReview','style','point','ucQTp','LGFKt','replace','trim','lFLKH','isKeyStep','bMAOF','approved','HBCpS','SbCwT','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','\x20\x20\x20\x20\x20\x20Approved','description','8DQOffs','Showing\x20','22840RTDFpj','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','\x20—\x20','478uwJOsC','location','stdin','nmOwB','pop','\x0a✅\x20Feature\x20review\x20created:\x20','pipe','\x20\x20\x20Completed:\x20','terminalReason','YbNAA','2213722VRyaOQ','\x0aCreating\x20feature\x20review...','wyozB','GUeLZ','canceledReason','UhDpR','lVtLd','unaddressedComments','pKMMe','prompt','currentSessionId','git\x20remote\x20get-url\x20origin','MlmiG','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','scenario','hqjKi','NvWWS','MscgY','write','any','\x20\x20\x20Updated\x20branch\x20to:\x20','verification_in_progress','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Current\x20session\x20not\x20found.','\x20scenarios.','arrayBuffer','element','limit','\x1b[0m','iteration','hIuyP','JiIQS','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','repeat','toLocaleDateString','dashboardUrl','\x20\x20\x20\x20\x20\x20Cancelled:\x20','textContent','Next\x20page:\x20ranger\x20list\x20--offset\x20','tlKmP','position','toLocaleString','1053IrOIzN','rRbjZ','\x20\x20\x20Branch:\x20','wsOGa','all','NBweb','qXWTa','\x20\x20\x20Status:\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','isTTY','\x0a⚠️\x20\x20','aLMXQ','excludeScenarios','Qijht','\x20--include-deleted','Kzqxj','Not\x20in\x20a\x20git\x20repository.','assetUrl','active-feature.txt','\x20\x20\x20Description:\x20','\x20incomplete','stdout','stats','3266772gXirlC','exit','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','error','\x20--current-branch','submittedAt','NcOsD','get','EwoBQ','QAImy','OrHvW','.\x20Feature\x20review\x20has\x20','\x20\x20\x20Created:\x20','Step\x20','LmEpE','wFGsM','\x1b[1m','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','nxUcX','gitRepoUrl','completed','1000uEkZUF','\x0aAvailable\x20scenarios:','name','EGfsG','status','MpIeC','wSnPG','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','map','find'];_0x8fe8=function(){return _0x204f37;};return _0x8fe8();}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=_0x2233f2(0x236),bold=_0xa59542=>_0x2233f2(0x164)+_0xa59542+_0x2233f2(0x216);function getGitRepoUrl(){const _0x5bfdf9=_0x2233f2,_0x593ebf={'NvWWS':function(_0x4414ff,_0x3bd403,_0x4119a8){return _0x4414ff(_0x3bd403,_0x4119a8);},'tlKmP':_0x5bfdf9(0x1f6),'SbCwT':'github.com/'};try{const _0x8cd8d6=_0x593ebf[_0x5bfdf9(0x20a)](execSync,_0x5bfdf9(0x205),{'encoding':_0x5bfdf9(0x1d2),'stdio':[_0x593ebf[_0x5bfdf9(0x221)],_0x593ebf[_0x5bfdf9(0x221)],_0x5bfdf9(0x1f6)]})[_0x5bfdf9(0x1e0)]();return _0x8cd8d6[_0x5bfdf9(0x1df)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x593ebf[_0x5bfdf9(0x1e6)])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x4c1684=_0x2233f2,_0x118b18={'ISVsc':function(_0x462040,_0x2dde2f,_0x4a7ccc){return _0x462040(_0x2dde2f,_0x4a7ccc);},'JHtJB':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','HkxIA':_0x4c1684(0x1d2)};try{return _0x118b18['ISVsc'](execSync,_0x118b18[_0x4c1684(0x181)],{'encoding':_0x118b18['HkxIA'],'stdio':['pipe','pipe','pipe']})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0xe81fdc=_0x2233f2,_0x5317b5={'hqjKi':function(_0x1f6f74){return _0x1f6f74();},'wyozB':function(_0x391f0c,_0x3c0393){return _0x391f0c(_0x3c0393);},'jgDlO':function(_0x4d4dc1,_0x2c992c,_0x2ed92d){return _0x4d4dc1(_0x2c992c,_0x2ed92d);}},_0x463a11=join(_0x5317b5[_0xe81fdc(0x209)](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x5317b5[_0xe81fdc(0x1fc)](existsSync,_0x463a11))return null;try{const _0x1101bd=await _0x5317b5['jgDlO'](readFile,_0x463a11,'utf-8');return _0x1101bd[_0xe81fdc(0x1e0)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x6642c2){const _0x564756=_0x2233f2,_0x1af8db={'fqAJH':function(_0x32a25a,_0xc8a7b6,_0x195dda){return _0x32a25a(_0xc8a7b6,_0x195dda);},'tUdkm':_0x564756(0x1d2)},_0x550810=getRangerDir(),_0x5837cb=_0x1af8db['fqAJH'](join,_0x550810,ACTIVE_FEATURE_FILE);!existsSync(_0x550810)&&await mkdir(_0x550810,{'recursive':!![]}),await writeFile(_0x5837cb,_0x6642c2,_0x1af8db['tUdkm']);}function getProgressDisplay(_0x59b883){const _0x4d6cbb=_0x2233f2,_0x30b988={'xABWd':function(_0x900e7b,_0xa210a3){return _0x900e7b+_0xa210a3;},'rRbjZ':function(_0x2a25f8,_0x59ef5b){return _0x2a25f8+_0x59ef5b;},'ukqwR':function(_0x31f980,_0x34ab98){return _0x31f980+_0x34ab98;},'Kzqxj':function(_0x197174,_0x49bbec){return _0x197174/_0x49bbec;},'TpeOf':function(_0x5bf169,_0x9f018f){return _0x5bf169>_0x9f018f;}},_0x12306f=_0x59b883['verifiedItems']||0x0,_0x1652d8=_0x59b883['verificationInProgressItems']||0x0,_0x808706=_0x59b883[_0x4d6cbb(0x17f)]||0x0,_0x288d9e=_0x59b883['incompleteItems']||0x0,_0x5b7f44=_0x59b883[_0x4d6cbb(0x1c2)]||0x0,_0x2e0f28=_0x30b988['xABWd'](_0x30b988[_0x4d6cbb(0x225)](_0x30b988['ukqwR'](_0x12306f,_0x1652d8),_0x808706),_0x288d9e)+_0x5b7f44;if(_0x2e0f28===0x0)return'-';const _0x578e55=0xa,_0x2872f1=Math['round'](_0x30b988[_0x4d6cbb(0x233)](_0x12306f,_0x2e0f28)*_0x578e55),_0x3109cd=_0x30b988['rRbjZ']('█'[_0x4d6cbb(0x21b)](_0x2872f1),'░'[_0x4d6cbb(0x21b)](_0x578e55-_0x2872f1)),_0x530688=[];if(_0x30b988[_0x4d6cbb(0x185)](_0x808706,0x0))_0x530688['push'](_0x808706+'\x20blocked');if(_0x288d9e>0x0)_0x530688['push'](_0x288d9e+_0x4d6cbb(0x238));if(_0x1652d8>0x0)_0x530688['push'](_0x1652d8+'\x20in\x20progress');const _0x3bf7f6=_0x530688[_0x4d6cbb(0x1a5)]>0x0?'\x20('+_0x530688['join'](',\x20')+')':'';return _0x3109cd+'\x20'+_0x12306f+'/'+_0x2e0f28+_0x4d6cbb(0x1a3)+_0x3bf7f6;}function getCurrentSessionItems(_0x6d189f,_0x4ea89a){const _0x2df5f5=_0x2233f2;if(!_0x6d189f[_0x2df5f5(0x204)])return _0x4ea89a[_0x2df5f5(0x18e)](_0x4babe4=>!_0x4babe4[_0x2df5f5(0x195)]);return _0x4ea89a['filter'](_0x56b6d1=>_0x56b6d1[_0x2df5f5(0x195)]===_0x6d189f[_0x2df5f5(0x204)]||!_0x56b6d1[_0x2df5f5(0x195)]);}function displayFeature(_0x101737,_0x3040cc){const _0x54ea29=_0x2233f2,_0x355b2e={'KeFWE':function(_0x1d1cfc,_0x574f08){return _0x1d1cfc(_0x574f08);},'GChEq':function(_0x1928e5,_0x2e5fef){return _0x1928e5<_0x2e5fef;},'dHWFt':function(_0x3eff90,_0xeb7e88){return _0x3eff90===_0xeb7e88;},'rfMFP':_0x54ea29(0x1e4),'nmOwB':'verified','YbNAA':function(_0x18d9d1,_0x53560e){return _0x18d9d1===_0x53560e;},'bRnDx':'incomplete','srGRr':'blocked','lNeTt':'closed','iOoeH':function(_0x49e537,_0x4e10e3){return _0x49e537===_0x4e10e3;},'GUeLZ':_0x54ea29(0x20f),'eHbYM':function(_0x35ac6d,_0x1476b2){return _0x35ac6d!==_0x1476b2;},'NcOsD':function(_0x190cdf,_0x7600e9){return _0x190cdf+_0x7600e9;},'vmUkU':function(_0x4ced98,_0x3864b0){return _0x4ced98===_0x3864b0;},'HBCpS':function(_0x4382b6,_0x9a309){return _0x4382b6===_0x9a309;}};console[_0x54ea29(0x1d9)]('\x0a'+_0x101737[_0x54ea29(0x16b)]+'\x20('+_0x101737[_0x54ea29(0x21d)]+')');_0x101737[_0x54ea29(0x23a)]&&console[_0x54ea29(0x1d9)]('\x20\x20\x20Progress:\x20'+_0x355b2e['KeFWE'](getProgressDisplay,_0x101737['stats']));_0x101737[_0x54ea29(0x1e9)]&&console['log'](_0x54ea29(0x237)+_0x101737[_0x54ea29(0x1e9)]);_0x101737['gitRepoUrl']&&console['log']('\x20\x20\x20Repository:\x20'+_0x101737[_0x54ea29(0x167)]);_0x101737['gitBranch']&&console['log'](_0x54ea29(0x226)+_0x101737[_0x54ea29(0x1bc)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x101737['createdAt'])[_0x54ea29(0x223)]());_0x101737[_0x54ea29(0x19b)]&&console['log'](_0x54ea29(0x1f7)+new Date(_0x101737[_0x54ea29(0x19b)])[_0x54ea29(0x223)]());if(_0x3040cc&&_0x3040cc['length']>0x0){console[_0x54ea29(0x1d9)]('\x0a\x20\x20\x20Scenarios:');for(let _0x133740=0x0;_0x355b2e['GChEq'](_0x133740,_0x3040cc['length']);_0x133740++){const _0x4d308a=_0x3040cc[_0x133740];let _0xe26835;if(_0x355b2e[_0x54ea29(0x1b6)](_0x4d308a[_0x54ea29(0x16d)],'closed')&&_0x4d308a['terminalReason']===_0x355b2e[_0x54ea29(0x174)])_0xe26835='✅';else{if(_0x4d308a['status']===_0x355b2e['nmOwB'])_0xe26835='🟢';else{if(_0x355b2e[_0x54ea29(0x1f9)](_0x4d308a['status'],_0x355b2e['bRnDx']))_0xe26835='🟠';else{if(_0x4d308a[_0x54ea29(0x16d)]===_0x355b2e['srGRr'])_0xe26835='🛑';else{if(_0x4d308a['status']===_0x355b2e['lNeTt'])_0xe26835='⛔';else _0x355b2e['iOoeH'](_0x4d308a[_0x54ea29(0x16d)],_0x355b2e[_0x54ea29(0x1fd)])?_0xe26835='⏳':_0xe26835='⬜';}}}}const _0x961c55=_0x4d308a['version']>0x1?'\x20(v'+_0x4d308a['version']+')':'',_0x3069ad=_0x4d308a[_0x54ea29(0x1c3)]>0x1&&_0x4d308a['parentItemId']&&_0x355b2e['eHbYM'](_0x4d308a['status'],_0x355b2e[_0x54ea29(0x190)])&&_0x4d308a['status']!==_0x355b2e[_0x54ea29(0x1f3)]?_0x54ea29(0x1d6):'';console['log']('\x20\x20\x20'+_0x355b2e[_0x54ea29(0x241)](_0x133740,0x1)+'.\x20'+_0xe26835+'\x20'+_0x4d308a['description']+_0x961c55+_0x3069ad);_0x355b2e['vmUkU'](_0x4d308a[_0x54ea29(0x16d)],_0x54ea29(0x1c8))&&_0x4d308a['blockedReason']&&console['log'](_0x54ea29(0x1ca)+_0x4d308a['blockedReason']);_0x4d308a['status']==='incomplete'&&_0x4d308a[_0x54ea29(0x1d4)]&&console[_0x54ea29(0x1d9)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x4d308a['incompleteReason']);if(_0x355b2e['dHWFt'](_0x4d308a['status'],_0x355b2e[_0x54ea29(0x190)])&&_0x355b2e[_0x54ea29(0x1e5)](_0x4d308a[_0x54ea29(0x1f8)],'approved'))console['log'](_0x54ea29(0x1e8));else _0x355b2e[_0x54ea29(0x1b6)](_0x4d308a['status'],_0x54ea29(0x179))&&_0x4d308a[_0x54ea29(0x1fe)]&&console[_0x54ea29(0x1d9)](_0x54ea29(0x21e)+_0x4d308a['canceledReason']);}}}export async function featureCreate(_0x3f18a0,_0x4eac30){const _0x5eb937=_0x2233f2,_0x46a249={'fFeof':function(_0x216472,_0x5a53e8){return _0x216472===_0x5a53e8;},'wIsWS':function(_0xa28fd3,_0xb17ac7){return _0xa28fd3(_0xb17ac7);}},{envNames:_0x6d1b3c}=await getEnvNames();if(_0x6d1b3c[_0x5eb937(0x1a5)]===0x0&&!process[_0x5eb937(0x180)]['RANGER_TEST_USERNAME']){let _0x564618=0x0;try{_0x564618=(await listCloudProfiles())[_0x5eb937(0x1a5)];}catch{_0x564618=0x1;}_0x46a249['fFeof'](_0x564618,0x0)&&console[_0x5eb937(0x1d8)]('\x0a'+formatProfileRequiredMessage(_0xd4e813=>bold(_0xd4e813)));}const _0x723970=_0x4eac30['scenarios']?_0x4eac30['scenarios']['map'](_0x5788a6=>_0x5788a6[_0x5eb937(0x1e0)]()):[],_0x303173=getGitRepoUrl(),_0x5b9b55=getGitBranch();console['log'](_0x5eb937(0x1fb));const _0x4866ff=await createFeature({'name':_0x3f18a0,'description':_0x4eac30['description'],'checklist':_0x723970,'gitRepoUrl':_0x303173,'gitBranch':_0x5b9b55});await _0x46a249[_0x5eb937(0x1ab)](setActiveFeatureId,_0x4866ff['id']),await tryStartCurrentSession(_0x4866ff['id']);const _0x3599ac=process['env']['CLAUDE_SESSION_ID'];_0x3599ac&®isterSession(_0x3599ac,_0x4866ff['id']),console[_0x5eb937(0x1d9)](_0x5eb937(0x1f5)+_0x4866ff['id']),displayFeature(_0x4866ff,_0x4866ff['checklistItems']),console[_0x5eb937(0x1d9)](_0x5eb937(0x22c));}export async function featureList(_0x3fba5e){const _0x2f9efe=_0x2233f2,_0x4d640b={'SWXqS':function(_0x5d0f24){return _0x5d0f24();},'MsWtH':function(_0xe4284){return _0xe4284();},'hkkmF':function(_0x2474ad,_0x8c5c97){return _0x2474ad(_0x8c5c97);},'wSnPG':function(_0x43a49e,_0x1f8205){return _0x43a49e>_0x1f8205;},'EwoBQ':function(_0x330754,_0x386de6){return _0x330754<_0x386de6;},'LmEpE':_0x2f9efe(0x232)},_0x5e2979={'limit':_0x3fba5e[_0x2f9efe(0x215)]??0xa,'offset':_0x3fba5e[_0x2f9efe(0x1bf)]??0x0,'includeDeleted':_0x3fba5e['includeDeleted']};_0x3fba5e['currentBranch']&&(_0x5e2979['gitRepoUrl']=_0x4d640b[_0x2f9efe(0x1b1)](getGitRepoUrl),_0x5e2979['gitBranch']=_0x4d640b['MsWtH'](getGitBranch));const _0x3557b1=await _0x4d640b['hkkmF'](listFeatures,_0x5e2979);if(_0x3557b1['items']['length']===0x0){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x498256=_0x4d640b[_0x2f9efe(0x16f)](_0x3557b1['totalCount'],_0x3557b1['items']['length'])?_0x2f9efe(0x1eb)+_0x3557b1[_0x2f9efe(0x1b9)]['length']+'\x20of\x20'+_0x3557b1[_0x2f9efe(0x1cc)]:_0x3557b1[_0x2f9efe(0x1cc)]+_0x2f9efe(0x1c6);console[_0x2f9efe(0x1d9)]('\x0a'+_0x498256+':\x0a');for(const _0x2d731b of _0x3557b1[_0x2f9efe(0x1b9)]){console[_0x2f9efe(0x1d9)](''+_0x2d731b['name']),console['log'](_0x2f9efe(0x1bd)+_0x2d731b['id']),_0x2d731b[_0x2f9efe(0x23a)]&&console[_0x2f9efe(0x1d9)](_0x2f9efe(0x186)+getProgressDisplay(_0x2d731b[_0x2f9efe(0x23a)])),_0x2d731b[_0x2f9efe(0x1bc)]&&console['log'](_0x2f9efe(0x226)+_0x2d731b[_0x2f9efe(0x1bc)]),console[_0x2f9efe(0x1d9)](_0x2f9efe(0x160)+new Date(_0x2d731b['createdAt'])[_0x2f9efe(0x21c)]()),console[_0x2f9efe(0x1d9)]('');}const _0x453225=_0x5e2979['limit']??0xa,_0xafc40b=(_0x5e2979[_0x2f9efe(0x1bf)]??0x0)+_0x3557b1['items'][_0x2f9efe(0x1a5)];if(_0x4d640b[_0x2f9efe(0x243)](_0xafc40b,_0x3557b1[_0x2f9efe(0x1cc)])){const _0x3d0203=_0x453225!==0xa?'\x20--limit\x20'+_0x453225:'',_0x4bfb66=_0x3fba5e['currentBranch']?_0x2f9efe(0x23f):'',_0xcfc42c=_0x3fba5e[_0x2f9efe(0x1b8)]?_0x4d640b[_0x2f9efe(0x162)]:'';console['log'](_0x2f9efe(0x220)+_0xafc40b+_0x3d0203+_0x4bfb66+_0xcfc42c);}}export async function featureShow(_0x2b8fa0){const _0x5cd5fd=_0x2233f2,_0x443051={'nxUcX':function(_0x2556cb){return _0x2556cb();}},_0x14cbec=_0x2b8fa0||await _0x443051[_0x5cd5fd(0x166)](getActiveFeatureId);if(!_0x14cbec)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 _0x1fa359=await getFeature(_0x14cbec);displayFeature(_0x1fa359,_0x1fa359['checklistItems']);}export async function featureResume(_0x49c667){const _0x2ac0a2=_0x2233f2,_0x227bd3={'qkokE':function(_0x1f8fe7,_0x3506bc){return _0x1f8fe7(_0x3506bc);},'OrGFT':function(_0x4ef9a0,_0x8de7e7){return _0x4ef9a0(_0x8de7e7);},'EGfsG':function(_0x142a2e,_0x2354b9,_0x24d8e9){return _0x142a2e(_0x2354b9,_0x24d8e9);},'bMAOF':function(_0x580c48,_0x2c0279){return _0x580c48(_0x2c0279);},'bdKwu':function(_0x2a7031,_0x5245bc,_0x47d7e4){return _0x2a7031(_0x5245bc,_0x47d7e4);},'cmmXL':function(_0x490fb7,_0x5ea1e0){return _0x490fb7(_0x5ea1e0);},'ocKxJ':function(_0x1bccd7){return _0x1bccd7();},'ucQTp':_0x2ac0a2(0x234),'NGXns':function(_0x422c7f,_0xbaff75){return _0x422c7f||_0xbaff75;},'eCdaA':function(_0x3d72b4,_0x5db749){return _0x3d72b4||_0x5db749;},'pOgZD':function(_0xadcdb2,_0x1d64e2){return _0xadcdb2(_0x1d64e2);},'hANdM':function(_0x4511c7,_0x242da7){return _0x4511c7===_0x242da7;},'QAImy':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','hmNga':_0x2ac0a2(0x1b3),'WiFIo':'selected','jiwlA':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','GfWKU':function(_0x3aad61,_0x3b610c,_0x12cf15){return _0x3aad61(_0x3b610c,_0x12cf15);}};if(_0x49c667){const _0x4e4f3e=await _0x227bd3[_0x2ac0a2(0x1b5)](getFeature,_0x49c667);await _0x227bd3['OrGFT'](setActiveFeatureId,_0x4e4f3e['id']);const _0x2b5b22=getGitBranch();_0x2b5b22&&_0x2b5b22!==_0x4e4f3e['gitBranch']&&(await _0x227bd3[_0x2ac0a2(0x16c)](updateFeature,_0x4e4f3e['id'],{'gitBranch':_0x2b5b22}),console[_0x2ac0a2(0x1d9)](_0x2ac0a2(0x20e)+_0x2b5b22));console[_0x2ac0a2(0x1d9)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x4e4f3e['name']+'\x20('+_0x4e4f3e['id']+')'),await _0x227bd3[_0x2ac0a2(0x1e3)](tryStartCurrentSession,_0x4e4f3e['id']);const _0x3042db=process[_0x2ac0a2(0x180)][_0x2ac0a2(0x17a)];_0x3042db&®isterSession(_0x3042db,_0x4e4f3e['id']);_0x227bd3['bdKwu'](displayFeature,_0x4e4f3e,_0x4e4f3e[_0x2ac0a2(0x1b4)]),await _0x227bd3['cmmXL'](printFeedbackNudge,_0x4e4f3e['id']);return;}const _0x418370=_0x227bd3['ocKxJ'](getGitRepoUrl),_0x5202a1=getGitBranch();if(!_0x418370&&!_0x5202a1)throw new Error(_0x227bd3[_0x2ac0a2(0x1dd)]);console[_0x2ac0a2(0x1d9)](_0x2ac0a2(0x23d)+_0x227bd3['NGXns'](_0x418370,_0x2ac0a2(0x20d))+_0x2ac0a2(0x1ba)+_0x227bd3[_0x2ac0a2(0x1a8)](_0x5202a1,_0x2ac0a2(0x20d))+_0x2ac0a2(0x178));const _0x554c32=await _0x227bd3['pOgZD'](listFeatures,{'gitRepoUrl':_0x418370,'gitBranch':_0x5202a1}),_0x245189=_0x554c32[_0x2ac0a2(0x1b9)][_0x2ac0a2(0x18e)](_0x585643=>_0x585643['status']?_0x585643['status']!==_0x2ac0a2(0x194):!_0x585643['completedAt']);if(_0x227bd3['hANdM'](_0x245189['length'],0x0)){console[_0x2ac0a2(0x1d9)](_0x227bd3[_0x2ac0a2(0x15d)]),console['log'](_0x2ac0a2(0x183));return;}let _0x5f564e;if(_0x227bd3[_0x2ac0a2(0x1c9)](_0x245189[_0x2ac0a2(0x1a5)],0x1))_0x5f564e=_0x245189[0x0];else{const _0x3b7bd1=process[_0x2ac0a2(0x1f2)]['isTTY']&&process[_0x2ac0a2(0x239)][_0x2ac0a2(0x22d)];if(!_0x3b7bd1){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0xd32887 of _0x245189){console['log']('\x20\x20'+_0xd32887['name']),console[_0x2ac0a2(0x1d9)]('\x20\x20\x20\x20\x20ID:\x20'+_0xd32887['id']),_0xd32887[_0x2ac0a2(0x23a)]&&console[_0x2ac0a2(0x1d9)](_0x2ac0a2(0x1b0)+getProgressDisplay(_0xd32887['stats'])),_0xd32887[_0x2ac0a2(0x1bc)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xd32887['gitBranch']);}throw new Error(_0x2ac0a2(0x19c));}const {selected:_0x23af6d}=await _0x5a10fe[_0x2ac0a2(0x203)]([{'type':_0x227bd3['hmNga'],'name':_0x227bd3['WiFIo'],'message':_0x227bd3[_0x2ac0a2(0x177)],'choices':_0x245189['map'](_0x38a351=>({'name':_0x38a351['name']+'\x20('+_0x38a351['id']+')','value':_0x38a351['id']}))}]);_0x5f564e=_0x245189[_0x2ac0a2(0x172)](_0x2d6b4a=>_0x2d6b4a['id']===_0x23af6d);}await setActiveFeatureId(_0x5f564e['id']);_0x5202a1&&_0x5202a1!==_0x5f564e[_0x2ac0a2(0x1bc)]&&(await _0x227bd3['EGfsG'](updateFeature,_0x5f564e['id'],{'gitBranch':_0x5202a1}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x5202a1));console['log'](_0x2ac0a2(0x1be)+_0x5f564e[_0x2ac0a2(0x16b)]+'\x20('+_0x5f564e['id']+')'),await _0x227bd3[_0x2ac0a2(0x1e3)](tryStartCurrentSession,_0x5f564e['id']);const _0x27ec96=await _0x227bd3['pOgZD'](getFeature,_0x5f564e['id']),_0x2f2967=process['env'][_0x2ac0a2(0x17a)];_0x2f2967&&_0x227bd3['GfWKU'](registerSession,_0x2f2967,_0x27ec96['id']),displayFeature(_0x27ec96,_0x27ec96[_0x2ac0a2(0x1b4)]),await printFeedbackNudge(_0x27ec96['id']);}async function printFeedbackNudge(_0xc38a71){const _0xf6d17b=_0x2233f2,_0x5d3906={'NOlfD':function(_0x3ef4da,_0xf85869){return _0x3ef4da>_0xf85869;}};try{const {items:_0x288b0d}=await getActionItems(_0xc38a71);let _0x2c4604=0x0,_0x47edb9=0x0;for(const _0x4e56a1 of _0x288b0d){const _0x5e7f5a=await getItemFeedback(_0xc38a71,_0x4e56a1['id']);_0x5d3906['NOlfD'](_0x5e7f5a['unaddressedComments'][_0xf6d17b(0x1a5)],0x0)&&(_0x2c4604+=_0x5e7f5a['unaddressedComments'][_0xf6d17b(0x1a5)],_0x47edb9++);}_0x2c4604>0x0&&(console['log'](_0xf6d17b(0x22e)+_0x2c4604+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x47edb9+_0xf6d17b(0x1a4)),console['log'](_0xf6d17b(0x1e7)));}catch{}}async function tryStartCurrentSession(_0x5a227b){const _0x36a555=_0x2233f2,_0x2473b5={'gIVCj':function(_0x433232,_0x1b1eff,_0x9564da){return _0x433232(_0x1b1eff,_0x9564da);}};try{const {sessions:_0x2ac119}=await listFeatureSessions(_0x5a227b),_0x35dcf6=_0x2ac119['find'](_0x32c946=>_0x32c946[_0x36a555(0x16d)]===_0x36a555(0x19f));_0x35dcf6&&(await _0x2473b5['gIVCj'](startSession,_0x5a227b,_0x35dcf6['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x35dcf6[_0x36a555(0x217)]));}catch{}}export async function featureReport(_0x194170,_0x1f10b7){const _0x420ab8=_0x2233f2,_0x545db5={'dVeHI':function(_0xaf4831){return _0xaf4831();},'JiIQS':_0x420ab8(0x18d),'OrHvW':function(_0x1280d2,_0x2ed0be,_0x350f8f){return _0x1280d2(_0x2ed0be,_0x350f8f);},'zfjkl':function(_0x4c4f5f,_0x22c09a,_0x510c99,_0x590779){return _0x4c4f5f(_0x22c09a,_0x510c99,_0x590779);},'LFClb':_0x420ab8(0x191),'OFetI':function(_0x29039d,_0x1b2619){return _0x29039d(_0x1b2619);}},_0x1ec88c=_0x194170||await _0x545db5[_0x420ab8(0x18c)](getActiveFeatureId);if(!_0x1ec88c)throw new Error(_0x420ab8(0x210));console[_0x420ab8(0x1d9)](_0x545db5[_0x420ab8(0x219)]);const _0x3c97c7=await _0x545db5[_0x420ab8(0x15e)](getFeatureReportMarkdown,_0x1ec88c,{'style':_0x1f10b7[_0x420ab8(0x1db)]}),_0x43585c=_0x1f10b7['output']||_0x545db5[_0x420ab8(0x175)](join,getRangerDir(),_0x545db5['LFClb'],_0x1ec88c+'.md'),_0x4c5d77=join(_0x43585c,'..');!_0x545db5['OFetI'](existsSync,_0x4c5d77)&&await _0x545db5['OrHvW'](mkdir,_0x4c5d77,{'recursive':!![]}),await writeFile(_0x43585c,_0x3c97c7,'utf-8'),console[_0x420ab8(0x1d9)](_0x420ab8(0x17b)+_0x43585c);}function _0x36ff(_0x5aef7d,_0x586805){_0x5aef7d=_0x5aef7d-0x15d;const _0x8fe85b=_0x8fe8();let _0x36ff2f=_0x8fe85b[_0x5aef7d];return _0x36ff2f;}function getScenarioResult(_0x127f65){const _0x370bcf=_0x2233f2,_0x4c4c75={'WXsJF':function(_0x14c574,_0x3d749c){return _0x14c574===_0x3d749c;},'tsSff':_0x370bcf(0x179),'WUtfW':'verification_in_progress'};if(_0x4c4c75[_0x370bcf(0x176)](_0x127f65[_0x370bcf(0x16d)],_0x4c4c75[_0x370bcf(0x184)]))return _0x127f65['terminalReason']??_0x4c4c75[_0x370bcf(0x184)];if(_0x127f65['status']===_0x4c4c75[_0x370bcf(0x196)])return _0x370bcf(0x18f);return _0x127f65['status'];}function getScenarioRationale(_0x3ced0c,_0x2b7509){const _0x18a3e3=_0x2233f2;if(_0x2b7509)return _0x2b7509;if(_0x3ced0c[_0x18a3e3(0x1d7)])return _0x3ced0c[_0x18a3e3(0x1d7)];if(_0x3ced0c[_0x18a3e3(0x1d4)])return _0x3ced0c[_0x18a3e3(0x1d4)];if(_0x3ced0c[_0x18a3e3(0x1fe)])return _0x3ced0c[_0x18a3e3(0x1fe)];if(_0x3ced0c[_0x18a3e3(0x19e)])return _0x3ced0c[_0x18a3e3(0x19e)];return null;}export async function featureReportPrDescription(_0x199fdc,_0x57a152){const _0x3b6247=_0x2233f2,_0x496d31={'pnVln':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','HBuzD':function(_0x2b5862,_0x1aed60){return _0x2b5862>_0x1aed60;},'KUFTh':_0x3b6247(0x16a)},_0x3dc3d4=_0x199fdc||await getActiveFeatureId();if(!_0x3dc3d4)throw new Error(_0x3b6247(0x210));const _0x301a10=await getFeature(_0x3dc3d4),_0x9060a1=_0x301a10[_0x3b6247(0x1b4)]||[],_0x49bfd2=getCurrentSessionItems(_0x301a10,_0x9060a1);_0x49bfd2[_0x3b6247(0x1a5)]===0x0&&(console['error'](_0x496d31['pnVln']),process[_0x3b6247(0x23c)](0x1));const _0x2bcf71=_0x57a152[_0x3b6247(0x230)]??[],_0x447a8b=_0x2bcf71['filter'](_0x5d58ae=>!Number['isInteger'](_0x5d58ae)||_0x5d58ae<0x1||_0x5d58ae>_0x49bfd2['length']);if(_0x496d31['HBuzD'](_0x447a8b[_0x3b6247(0x1a5)],0x0)){console['error'](_0x3b6247(0x1a2)+_0x447a8b['join'](',\x20')),console[_0x3b6247(0x1d9)](_0x496d31['KUFTh']);for(let _0x48fb32=0x0;_0x48fb32<_0x49bfd2['length'];_0x48fb32++){console['log']('\x20\x20'+(_0x48fb32+0x1)+'.\x20'+_0x49bfd2[_0x48fb32][_0x3b6247(0x1e9)]);}process[_0x3b6247(0x23c)](0x1);}const _0x58ebb2=new Set(_0x2bcf71['map'](_0x1646a8=>_0x1646a8-0x1)),_0x76deb6=_0x49bfd2['filter']((_0xd3b764,_0x51d442)=>!_0x58ebb2[_0x3b6247(0x1cd)](_0x51d442));_0x76deb6['length']===0x0&&(console[_0x3b6247(0x23e)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x3b6247(0x23c)](0x1));if(_0x57a152['json'])await outputJsonReport(_0x3dc3d4,_0x301a10,_0x76deb6);else{const _0x5fdd20=await getFeatureReportMarkdown(_0x3dc3d4,{'itemIds':_0x76deb6['map'](_0xa97e05=>_0xa97e05['id'])});process['stdout'][_0x3b6247(0x20c)](_0x5fdd20[_0x3b6247(0x17c)]()+'\x0a');}}async function outputJsonReport(_0x364607,_0x417a02,_0x2a6a41){const _0x223810=_0x2233f2,_0x98b91c={'UGirw':function(_0x3d400a,_0x1360b6,_0x391fe8){return _0x3d400a(_0x1360b6,_0x391fe8);},'CwZzv':function(_0x5af98c,_0x24413e){return _0x5af98c(_0x24413e);},'hIuyP':function(_0x28e2bd,_0x5dfd1f){return _0x28e2bd+_0x5dfd1f;}},_0x4238c1=getApiBaseUrl(),_0x33084b=await _0x98b91c[_0x223810(0x1c1)](getFeatureReport,_0x364607),_0x395d1c=new Map(_0x33084b['checklistItems'][_0x223810(0x171)](_0x3f6cf0=>[_0x3f6cf0['id'],_0x3f6cf0])),_0x34cc63=await Promise[_0x223810(0x228)](_0x2a6a41['map'](async _0x1fe9fc=>{const _0x31b19e=_0x223810,_0x551540=_0x395d1c[_0x31b19e(0x242)](_0x1fe9fc['id']),_0x220af0=_0x551540?.['linkedSession']??null;let _0x5880b4=[];if(_0x1fe9fc[_0x31b19e(0x1b7)])try{const {steps:_0x4b1ee3}=await getBrowserSessionSteps(_0x1fe9fc['browserSessionId']);_0x4b1ee3['length']>0x0&&(_0x5880b4=_0x4b1ee3['map'](_0x4b6dfc=>{const _0x5b8eb9=_0x31b19e,_0x4c0211=_0x4b6dfc[_0x5b8eb9(0x187)][_0x5b8eb9(0x172)](_0x536670=>_0x536670['assetType']===_0x5b8eb9(0x1ae)&&_0x536670['timing']==='after')??_0x4b6dfc['assets'][_0x5b8eb9(0x172)](_0x5a62bd=>_0x5a62bd['assetType']==='screenshot');let _0x3b4024=null,_0x130013=null;if(_0x4c0211){const _0x51794a=_0x4c0211['storage'][_0x5b8eb9(0x1f1)]['split']('/')[_0x5b8eb9(0x1f4)]();_0x3b4024=_0x4238c1+'/api/v1/mcp/browser-sessions/'+_0x1fe9fc[_0x5b8eb9(0x1b7)]+_0x5b8eb9(0x1bb)+_0x51794a,_0x51794a&&(_0x130013=_0x51794a[_0x5b8eb9(0x1df)](/\.\w+$/,'')[_0x5b8eb9(0x1df)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x130013||_0x4b6dfc['description']||_0x4b6dfc[_0x5b8eb9(0x1af)]||_0x5b8eb9(0x161)+_0x4b6dfc[_0x5b8eb9(0x222)],'screenshot':_0x3b4024,'is_key_step':_0x4b6dfc[_0x5b8eb9(0x1e2)]};}));}catch{}return _0x5880b4[_0x31b19e(0x1a5)]===0x0&&_0x220af0?.['screenshotUrls']&&(_0x5880b4=_0x220af0['screenshotUrls']['map']((_0x6b0dc1,_0x2a61b8)=>({'description':'Screenshot\x20'+(_0x2a61b8+0x1),'screenshot':_0x6b0dc1,'is_key_step':![]}))),{'description':_0x1fe9fc['description'],'result':getScenarioResult(_0x1fe9fc),'rationale':_0x98b91c['UGirw'](getScenarioRationale,_0x1fe9fc,_0x220af0?.['agentResponse']),'steps':_0x5880b4};})),_0x2a160f={'url':_0x417a02['dashboardUrl'],'scenarios':_0x34cc63};process[_0x223810(0x239)]['write'](_0x98b91c[_0x223810(0x218)](JSON['stringify'](_0x2a160f,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x28f649){const _0x47c285=_0x2233f2,_0x1cbaca={'arufA':function(_0x548ff8){return _0x548ff8();},'eHvFA':_0x47c285(0x1ed),'oRMWa':function(_0x39d2df,_0x58bcb6){return _0x39d2df(_0x58bcb6);},'QqiqI':_0x47c285(0x188),'sMZtX':_0x47c285(0x211),'MscgY':function(_0x17cafd,_0x481300){return _0x17cafd===_0x481300;},'MNBOr':_0x47c285(0x168),'LgMcH':function(_0x421455,_0x3301c5){return _0x421455!==_0x3301c5;},'MpIeC':'\x0aConcluding\x20session...'},_0xf98a66=_0x28f649||await _0x1cbaca['arufA'](getActiveFeatureId);if(!_0xf98a66)throw new Error(_0x1cbaca['eHvFA']);const _0x2e4ae5=await _0x1cbaca[_0x47c285(0x18b)](getFeature,_0xf98a66);if(!_0x2e4ae5['currentSessionId'])throw new Error(_0x1cbaca['QqiqI']);const {sessions:_0x26a712}=await _0x1cbaca[_0x47c285(0x18b)](listFeatureSessions,_0xf98a66),_0x329c36=_0x26a712[_0x47c285(0x172)](_0x5c9ac8=>_0x5c9ac8['id']===_0x2e4ae5['currentSessionId']);if(!_0x329c36)throw new Error(_0x1cbaca['sMZtX']);if(_0x1cbaca[_0x47c285(0x20b)](_0x329c36['status'],_0x1cbaca[_0x47c285(0x1a7)])){console[_0x47c285(0x1d9)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x1cbaca[_0x47c285(0x197)](_0x329c36['status'],'in_progress'))throw new Error(_0x47c285(0x1a6)+_0x329c36[_0x47c285(0x16d)]);console[_0x47c285(0x1d9)](_0x1cbaca[_0x47c285(0x16e)]),await concludeSession(_0xf98a66,_0x2e4ae5[_0x47c285(0x204)]),console['log']('\x0a✅\x20Session\x20'+_0x329c36[_0x47c285(0x217)]+'\x20concluded.'),console[_0x47c285(0x1d9)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4f040a){const _0x4e83ea=_0x2233f2,_0x1aa8a1={'qlYWV':_0x4e83ea(0x210),'fovbO':function(_0x15efd8,_0x4c2ec3){return _0x15efd8===_0x4c2ec3;},'IErgs':_0x4e83ea(0x19a),'oAWxj':function(_0x5d0df3,_0x511015){return _0x5d0df3===_0x511015;},'qXWTa':function(_0x1acbb6,_0x1fa1e3){return _0x1acbb6===_0x1fa1e3;},'YrCxl':_0x4e83ea(0x18f)},_0x52a5f7=_0x4f040a||await getActiveFeatureId();if(!_0x52a5f7)throw new Error(_0x1aa8a1['qlYWV']);const _0x397539=await getFeature(_0x52a5f7);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x397539['name']+'\x0a');const {sessions:_0x425677}=await listFeatureSessions(_0x52a5f7);if(_0x1aa8a1['fovbO'](_0x425677['length'],0x0)){console[_0x4e83ea(0x1d9)](_0x1aa8a1[_0x4e83ea(0x198)]);return;}for(const _0x39f45c of _0x425677){const _0xf701da=_0x1aa8a1['oAWxj'](_0x39f45c['status'],_0x4e83ea(0x168))?'✅':_0x1aa8a1[_0x4e83ea(0x22a)](_0x39f45c[_0x4e83ea(0x16d)],_0x1aa8a1['YrCxl'])?'🔄':'▶️';console['log'](_0xf701da+'\x20Session\x20'+_0x39f45c[_0x4e83ea(0x217)]+'\x20('+_0x39f45c['id']+')'),console['log'](_0x4e83ea(0x22b)+_0x39f45c[_0x4e83ea(0x16d)]),console[_0x4e83ea(0x1d9)](_0x4e83ea(0x160)+new Date(_0x39f45c[_0x4e83ea(0x192)])['toLocaleString']()),_0x39f45c['completedAt']&&console[_0x4e83ea(0x1d9)]('\x20\x20\x20Completed:\x20'+new Date(_0x39f45c['completedAt'])[_0x4e83ea(0x223)]()),console['log']('');}}export async function featureAddScenario(_0x40f62d,_0x69fa7e){const _0xea2532=_0x2233f2,_0x4758fe={'sCRrO':function(_0x254e17){return _0x254e17();},'RNylu':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','NBweb':function(_0x1c967e,_0x47b856){return _0x1c967e(_0x47b856);}},_0x3da6f1=_0x69fa7e||await _0x4758fe['sCRrO'](getActiveFeatureId);if(!_0x3da6f1)throw new Error(_0x4758fe['RNylu']);const _0x2d188c=await _0x4758fe['NBweb'](getFeature,_0x3da6f1);if(_0x2d188c[_0xea2532(0x1da)]&&!_0x2d188c[_0xea2532(0x1da)]['submittedAt'])throw new Error(_0xea2532(0x21a)+_0x2d188c['dashboardUrl']);await createChecklistItem(_0x3da6f1,_0x40f62d);const _0x29fb36=await _0x4758fe[_0xea2532(0x229)](getFeature,_0x3da6f1);console['log']('\x0a✅\x20Scenario\x20added'),displayFeature(_0x29fb36,_0x29fb36['checklistItems']);}export async function featureEditScenario(_0x3146a6,_0xbd4a8c){const _0x475d4c=_0x2233f2,_0x4a6837={'lVtLd':function(_0x289cf7){return _0x289cf7();},'GJvjP':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','wsOGa':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','aLMXQ':'Please\x20finish\x20your\x20review\x20first:','MlmiG':_0x475d4c(0x1d0),'HGxho':function(_0x1ef3ca,_0x354e68){return _0x1ef3ca===_0x354e68;},'Suyfd':_0x475d4c(0x165),'HPrDl':function(_0x5ab281,_0x53064a){return _0x5ab281<_0x53064a;},'QMbyj':function(_0x5e498b,_0x219d13){return _0x5e498b<_0x219d13;},'YPmBb':function(_0x588da1,_0x181966){return _0x588da1(_0x181966);},'zFfYD':function(_0x3ae56f,_0x2933b4,_0x338f87){return _0x3ae56f(_0x2933b4,_0x338f87);}},_0x20b3e9=_0xbd4a8c['id']||await _0x4a6837[_0x475d4c(0x200)](getActiveFeatureId);!_0x20b3e9&&(console['error'](_0x4a6837['GJvjP']),console['error'](_0x475d4c(0x207)),process[_0x475d4c(0x23c)](0x1));const _0xff8886=await getFeature(_0x20b3e9);_0xff8886['latestReview']&&!_0xff8886[_0x475d4c(0x1da)][_0x475d4c(0x240)]&&(console[_0x475d4c(0x23e)](_0x4a6837[_0x475d4c(0x227)]),console[_0x475d4c(0x23e)](_0x4a6837[_0x475d4c(0x22f)]),console['error']('\x20\x20'+_0xff8886[_0x475d4c(0x21d)]),process['exit'](0x1));const _0x276ba8=_0xff8886['checklistItems']||[];_0x276ba8[_0x475d4c(0x1a5)]===0x0&&(console['error'](_0x4a6837[_0x475d4c(0x206)]),process[_0x475d4c(0x23c)](0x1));if(_0x4a6837['HGxho'](_0xbd4a8c['scenario'],undefined)){console['error'](_0x4a6837['Suyfd']),console[_0x475d4c(0x1d9)]('\x0aAvailable\x20scenarios:');for(let _0x192902=0x0;_0x192902<_0x276ba8['length'];_0x192902++){console['log']('\x20\x20'+(_0x192902+0x1)+'.\x20'+_0x276ba8[_0x192902]['description']);}process[_0x475d4c(0x23c)](0x1);}const _0x578b05=_0xbd4a8c[_0x475d4c(0x208)]-0x1;if(_0x4a6837[_0x475d4c(0x1c4)](_0x578b05,0x0)||_0x578b05>=_0x276ba8[_0x475d4c(0x1a5)]){console[_0x475d4c(0x23e)](_0x475d4c(0x189)+_0xbd4a8c['scenario']+_0x475d4c(0x15f)+_0x276ba8['length']+_0x475d4c(0x212)),console['log']('\x0aAvailable\x20scenarios:');for(let _0x2e09f6=0x0;_0x4a6837['QMbyj'](_0x2e09f6,_0x276ba8[_0x475d4c(0x1a5)]);_0x2e09f6++){console['log']('\x20\x20'+(_0x2e09f6+0x1)+'.\x20'+_0x276ba8[_0x2e09f6]['description']);}process[_0x475d4c(0x23c)](0x1);}const _0x16d28f=_0x276ba8[_0x578b05];await updateChecklistItem(_0x20b3e9,_0x16d28f['id'],{'description':_0x3146a6});const _0x52028b=await _0x4a6837['YPmBb'](getFeature,_0x20b3e9);console['log']('\x0a✅\x20Scenario\x20updated'),_0x4a6837['zFfYD'](displayFeature,_0x52028b,_0x52028b['checklistItems']);}async function downloadFeedbackImage(_0x39d82d,_0x1f711d){const _0x4ab517=_0x2233f2,_0x4b8cc7={'lFLKH':function(_0x3a2c37){return _0x3a2c37();},'FUYOk':'feedback-images','qsoYm':function(_0xecb14d,_0x1a1174,_0x473aed){return _0xecb14d(_0x1a1174,_0x473aed);},'mMLWE':function(_0x198e43,_0x35d7a4){return _0x198e43(_0x35d7a4);},'rfqRx':function(_0x4b0f16,_0x113731,_0x2053f4){return _0x4b0f16(_0x113731,_0x2053f4);}};try{const _0x5a07c6=join(_0x4b8cc7[_0x4ab517(0x1e1)](getRangerDir),_0x4b8cc7[_0x4ab517(0x1a0)]);await mkdir(_0x5a07c6,{'recursive':!![]});const _0x2c1f54=_0x4b8cc7['qsoYm'](join,_0x5a07c6,'comment_'+_0x1f711d+'.png'),_0xb606bf=await _0x4b8cc7['mMLWE'](fetch,_0x39d82d);if(!_0xb606bf['ok'])return null;const _0x808172=Buffer['from'](await _0xb606bf[_0x4ab517(0x213)]());return await _0x4b8cc7['rfqRx'](writeFile,_0x2c1f54,_0x808172),_0x2c1f54;}catch{return null;}}export async function featureGetReview(_0x270104){const _0x552ef9=_0x2233f2,_0x5c427c={'pwDlc':function(_0x1d8042){return _0x1d8042();},'Qijht':function(_0xf8f49f,_0x55346e){return _0xf8f49f(_0x55346e);},'NPDvy':'No\x20scenarios\x20found.','LGFKt':function(_0x460659,_0x1a514a){return _0x460659>_0x1a514a;},'gOZcU':function(_0x51083f,_0x24c9f7,_0x4832a5){return _0x51083f(_0x24c9f7,_0x4832a5);},'pKMMe':'en-US','GrCEo':'short','UhDpR':'numeric','zgkZh':'Unknown','JeGoK':function(_0x44af34,_0x1453d3,_0x37aec6){return _0x44af34(_0x1453d3,_0x37aec6);},'NHWWa':'\x20>\x20','khhde':function(_0x1ad7af,_0x1ab31e){return _0x1ad7af===_0x1ab31e;},'ipLbo':_0x552ef9(0x1dc),'JQVvP':function(_0x22a930,_0x4715c9){return _0x22a930>=_0x4715c9;},'IHNZK':function(_0x54ad63,_0x6af4df){return _0x54ad63+_0x6af4df;}},_0x103851=_0x270104||await _0x5c427c[_0x552ef9(0x17e)](getActiveFeatureId);if(!_0x103851)throw new Error(_0x552ef9(0x1ed));const _0x43ac81=await _0x5c427c[_0x552ef9(0x231)](getFeature,_0x103851),{items:_0x2225b3}=await _0x5c427c['Qijht'](getActionItems,_0x103851);console[_0x552ef9(0x1d9)](_0x552ef9(0x1d3)+_0x43ac81['name']+'\x20('+_0x43ac81['id']+')\x0a');if(_0x2225b3['length']===0x0){console[_0x552ef9(0x1d9)](_0x5c427c['NPDvy']);return;}for(let _0xe0eb6a=0x0;_0xe0eb6a<_0x2225b3[_0x552ef9(0x1a5)];_0xe0eb6a++){const _0x2e99b4=_0x2225b3[_0xe0eb6a],_0xd05764=_0x5c427c[_0x552ef9(0x1de)](_0x2e99b4[_0x552ef9(0x1c3)],0x1)?'\x20(v'+_0x2e99b4['version']+')':'',_0x4c85cb=await _0x5c427c['gOZcU'](getItemFeedback,_0x103851,_0x2e99b4['id']);if(_0x4c85cb[_0x552ef9(0x201)][_0x552ef9(0x1a5)]>0x0){console['log']('Scenario\x20'+(_0xe0eb6a+0x1)+_0x552ef9(0x19d)+_0x2e99b4['description']+'\x22'+_0xd05764+_0x552ef9(0x1ef)+_0x4c85cb['unaddressedComments'][_0x552ef9(0x1a5)]+'\x20unaddressed\x20comment(s)');for(const _0x597783 of _0x4c85cb[_0x552ef9(0x201)]){const _0x58cc97=new Date(_0x597783[_0x552ef9(0x192)])['toLocaleDateString'](_0x5c427c[_0x552ef9(0x202)],{'month':_0x5c427c['GrCEo'],'day':_0x5c427c[_0x552ef9(0x1ff)]}),_0x307524=_0x597783['authorName']||_0x597783['authorEmail']||_0x5c427c['zgkZh'];console[_0x552ef9(0x1d9)](_0x552ef9(0x1c0)+_0x307524+'\x20('+_0x58cc97+'):\x20\x22'+_0x597783['content']+'\x22');if(_0x597783['assetUrl']){const _0x4b54d1=await _0x5c427c['JeGoK'](downloadFeedbackImage,_0x597783[_0x552ef9(0x235)],_0x597783['id']);_0x4b54d1&&console[_0x552ef9(0x1d9)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x4b54d1);}if(_0x597783['domRef']){const _0xe92ad2=_0x597783[_0x552ef9(0x173)]['selector']['split'](_0x5c427c[_0x552ef9(0x1ce)])[_0x552ef9(0x1f4)]()?.['split'](':')[0x0]||_0x552ef9(0x214),_0x441297=_0x597783[_0x552ef9(0x173)][_0x552ef9(0x21f)]?'\x20\x22'+_0x597783[_0x552ef9(0x173)][_0x552ef9(0x21f)]['slice'](0x0,0x3c)+'\x22':'';console['log'](_0x552ef9(0x1ee)+_0xe92ad2+'>'+_0x441297),console['log'](_0x552ef9(0x18a)+_0x597783['domRef'][_0x552ef9(0x193)]);}else{if(_0x597783['spatial']){const _0x509fb1=_0x597783['spatial']['coordinates'];_0x5c427c[_0x552ef9(0x1ac)](_0x597783[_0x552ef9(0x199)]['type'],_0x5c427c['ipLbo'])&&_0x5c427c[_0x552ef9(0x1c5)](_0x509fb1['length'],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x509fb1[0x0][_0x552ef9(0x1b2)](0x2)+',\x20'+_0x509fb1[0x1][_0x552ef9(0x1b2)](0x2)+')'):console[_0x552ef9(0x1d9)](_0x552ef9(0x1ad)+_0x597783['spatial']['type']+_0x552ef9(0x1a1)+_0x509fb1[_0x552ef9(0x171)](_0x51c804=>_0x51c804['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x4c85cb['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x3d5418 of _0x4c85cb['canonicalFlow'][_0x552ef9(0x1a9)]('\x0a')){console[_0x552ef9(0x1d9)]('\x20\x20\x20\x20'+_0x3d5418);}}}else console[_0x552ef9(0x1d9)]('Scenario\x20'+_0x5c427c[_0x552ef9(0x1cb)](_0xe0eb6a,0x1)+_0x552ef9(0x19d)+_0x2e99b4['description']+'\x22'+_0xd05764+'\x20—\x20no\x20comments'),console[_0x552ef9(0x1d9)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x46445c){const _0x2fc365=_0x2233f2,_0x11c521={'uNXYT':_0x2fc365(0x1ed),'wFGsM':function(_0x2e4e46,_0x2093b6){return _0x2e4e46(_0x2093b6);},'NACCD':function(_0x38a254,_0xcb4802){return _0x38a254+_0xcb4802;}},_0x399475=_0x46445c||await getActiveFeatureId();if(!_0x399475)throw new Error(_0x11c521['uNXYT']);const _0x5264a7=await _0x11c521[_0x2fc365(0x163)](getFeature,_0x399475);await _0x11c521[_0x2fc365(0x163)](softDeleteFeature,_0x399475),console[_0x2fc365(0x1d9)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x5264a7[_0x2fc365(0x16b)]+'\x20('+_0x399475+')'),console[_0x2fc365(0x1d9)](_0x11c521[_0x2fc365(0x1c7)](_0x2fc365(0x170),_0x399475));}export async function featureRestore(_0x4583fc){const _0xcd3026=_0x2233f2,_0x2042cd={'LqAli':function(_0xf5565d,_0x290817){return _0xf5565d(_0x290817);}};await _0x2042cd['LqAli'](restoreFeature,_0x4583fc);const _0xe66dae=await _0x2042cd[_0xcd3026(0x182)](getFeature,_0x4583fc);console[_0xcd3026(0x1d9)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0xe66dae['name']+'\x20('+_0x4583fc+')'),displayFeature(_0xe66dae,_0xe66dae['checklistItems']);}
|
|
1
|
+
const _0x51e629=_0x2320;(function(_0x4cc1cf,_0x340bd6){const _0x102093=_0x2320,_0x418e94=_0x4cc1cf();while(!![]){try{const _0x3a596b=parseInt(_0x102093(0xc0))/0x1+-parseInt(_0x102093(0xdb))/0x2*(-parseInt(_0x102093(0x12e))/0x3)+parseInt(_0x102093(0x115))/0x4+-parseInt(_0x102093(0x112))/0x5+-parseInt(_0x102093(0x133))/0x6*(parseInt(_0x102093(0xcb))/0x7)+-parseInt(_0x102093(0xaa))/0x8*(parseInt(_0x102093(0x12a))/0x9)+parseInt(_0x102093(0x10d))/0xa;if(_0x3a596b===_0x340bd6)break;else _0x418e94['push'](_0x418e94['shift']());}catch(_0x1c8618){_0x418e94['push'](_0x418e94['shift']());}}}(_0x3ff7,0x35c2d));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';function _0x3ff7(){const _0xbe58fc=['\x20unaddressed\x20comment(s)','tqURI','stringify','ckkKS','EYdXZ','ffUln','error','en-US','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x1b[1m','currentSessionId','blockedReason','\x20verified','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','type','gitBranch','XOVRR','stepName','excludeScenarios','WNCrC','\x20\x20\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','PwYGa','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','QdSGR','\x20>\x20','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','trim','isTTY','textContent','Nzffr','lZliM','KsRjz','asNSb','sessionId','blocked','1902900xzjHcd','checklistItems','hepHy','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','git\x20rev-parse\x20--abbrev-ref\x20HEAD','504040vGijXq','submittedAt','closed','985844eDIUIX','\x20\x20\x20\x20\x20ID:\x20','\x20/\x20','split','\x0a✅\x20Resumed\x20feature\x20review:\x20','\x0aAvailable\x20scenarios:','from','incompleteReason','unaddressedComments','active-feature.txt','BmCMX','yhMcv','content','round','iBsuZ','aNRlq','\x0a✅\x20Restored\x20feature\x20review:\x20','env','assets','description','\x20of\x20','79875eFfBSZ','all','euMpy','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','30vFmnCn','/api/v1/mcp/browser-sessions/','prompt','github.com/','name','348heYcFb','latestReview','join','totalCount','jVDHX','CrSob','yTljB','qxvLn','Unknown','uGrdt','\x0a✅\x20Session\x20','\x1b[0m','offset','/artifacts/','vjToU','QhIwN','vWVGm','PaYlf','xosGB','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x20\x20\x20\x20\x20\x20Approved','qDDPa','toFixed','CtMoI','INCut','Current\x20session\x20not\x20found.','assetType','\x20—\x20no\x20comments','InHrP','pVyEc','\x20blocked','assetUrl','mfuzM','oYAul','twFrw','kyjVN','\x0a✅\x20Feature\x20review\x20created:\x20','TBPAk','qwSKB','wbqHN','completedAt','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','repeat','filter','\x0a❌\x20Invalid\x20scenario\x20index:\x20','utf-8','No\x20scenarios\x20found.','Cannot\x20conclude\x20session\x20with\x20status:\x20','):\x20\x22','mLWhC','stats','hCFUs','screenshotUrls','fTFWz','TeLYx','notes','OWgCt','iteration','\x20in\x20progress','\x20\x20\x20Branch:\x20','\x0a✅\x20Session\x20is\x20already\x20completed.','\x0aConcluding\x20session...','zLsqh','pipe','status','\x20\x20✅\x20No\x20feedback\x20to\x20address','No\x20sessions\x20found.','pop','dashboardUrl','\x20\x20\x20Repository:\x20','aPQZN','write','bbtQn','Scenario\x20','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','verificationInProgressItems','BXQra','adDCB','spatial','find','BFvMj','log','336kaWBLo','arrayBuffer','dhZgi','map','\x20\x20Expected\x20flow:','exit','point','get',':\x20\x22','terminalReason','iUbOZ','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','blockedItems','pFLjK','\x20--current-branch','SirGZ','ajkZS','verified','\x0a✅\x20Report\x20generated:\x20','items','version','canceledReason','394144BZwXhe','completed','limit','\x20[has\x20reviewer\x20feedback]','.png','position','screenshot','length','replace','currentBranch','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','50113BPfgNC','srcUl','\x20\x20\x20Progress:\x20','domRef','warn','selector','after','lVGOC','push','ZtGoQ','reports','RANGER_TEST_USERNAME','peMSA','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x20\x20\x20Created:\x20','ckwiE','55618BiUgGQ','\x20(v','rvFsH','coordinates','\x20\x20\x20ID:\x20','in_progress','SsBmG','CLAUDE_SESSION_ID','Please\x20finish\x20your\x20review\x20first:','canonicalFlow','toLocaleString','stdout','comment_','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'];_0x3ff7=function(){return _0xbe58fc;};return _0x3ff7();}import _0x359ea9 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=_0x51e629(0x11e),bold=_0x4ae1f4=>_0x51e629(0xf2)+_0x4ae1f4+_0x51e629(0x13e);function getGitRepoUrl(){const _0x5d19a2=_0x51e629,_0x3e1ff9={'TbGaS':function(_0x1f94a3,_0x4f943d,_0xb6f1b8){return _0x1f94a3(_0x4f943d,_0xb6f1b8);},'aPQZN':'git\x20remote\x20get-url\x20origin','rXEty':'utf-8','lVGOC':_0x5d19a2(0x97)};try{const _0x3c420b=_0x3e1ff9['TbGaS'](execSync,_0x3e1ff9[_0x5d19a2(0x9e)],{'encoding':_0x3e1ff9['rXEty'],'stdio':[_0x3e1ff9[_0x5d19a2(0xd2)],'pipe',_0x5d19a2(0x97)]})[_0x5d19a2(0x104)]();return _0x3c420b['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x5d19a2(0x131))[_0x5d19a2(0xc8)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x29ea68=_0x51e629,_0x34921d={'mfuzM':_0x29ea68(0x111),'qwSKB':_0x29ea68(0x161),'iUbOZ':'pipe'};try{return execSync(_0x34921d[_0x29ea68(0x154)],{'encoding':_0x34921d[_0x29ea68(0x15a)],'stdio':[_0x34921d[_0x29ea68(0xb4)],_0x34921d[_0x29ea68(0xb4)],'pipe']})[_0x29ea68(0x104)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x3619b3=_0x51e629,_0x28a1bd={'TeLYx':function(_0x5d819b,_0x1273e5,_0x4f9bea){return _0x5d819b(_0x1273e5,_0x4f9bea);}},_0x4142db=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4142db))return null;try{const _0x404ded=await _0x28a1bd[_0x3619b3(0x16a)](readFile,_0x4142db,'utf-8');return _0x404ded[_0x3619b3(0x104)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x22ff9){const _0x463099=_0x51e629,_0x1d527c={'Sdrny':function(_0x147acd,_0xd58bf9,_0x2c7548){return _0x147acd(_0xd58bf9,_0x2c7548);}},_0x52fea1=getRangerDir(),_0x1da4d5=join(_0x52fea1,ACTIVE_FEATURE_FILE);!existsSync(_0x52fea1)&&await _0x1d527c['Sdrny'](mkdir,_0x52fea1,{'recursive':!![]}),await writeFile(_0x1da4d5,_0x22ff9,_0x463099(0x161));}function getProgressDisplay(_0x4f1ff0){const _0x28455f=_0x51e629,_0x229a6d={'njQgD':function(_0x22f43b,_0x17c885){return _0x22f43b+_0x17c885;},'bbasl':function(_0x266b04,_0x1e975b){return _0x266b04+_0x1e975b;},'dckNy':function(_0x17eac5,_0x2f39b6){return _0x17eac5*_0x2f39b6;},'YvGEB':function(_0x3db70c,_0x457c91){return _0x3db70c/_0x457c91;},'KsRjz':function(_0x2dc64b,_0xa11e97){return _0x2dc64b>_0xa11e97;}},_0x2158c5=_0x4f1ff0['verifiedItems']||0x0,_0x29db9f=_0x4f1ff0[_0x28455f(0xa3)]||0x0,_0xcad583=_0x4f1ff0[_0x28455f(0xb6)]||0x0,_0x7ae098=_0x4f1ff0['incompleteItems']||0x0,_0x45bf4d=_0x4f1ff0['pendingItems']||0x0,_0x2d9c0c=_0x229a6d['njQgD'](_0x229a6d['bbasl'](_0x2158c5,_0x29db9f),_0xcad583)+_0x7ae098+_0x45bf4d;if(_0x2d9c0c===0x0)return'-';const _0x8ad574=0xa,_0x18a592=Math[_0x28455f(0x122)](_0x229a6d['dckNy'](_0x229a6d['YvGEB'](_0x2158c5,_0x2d9c0c),_0x8ad574)),_0x3eef78=_0x229a6d['bbasl']('█'[_0x28455f(0x15e)](_0x18a592),'░'['repeat'](_0x8ad574-_0x18a592)),_0x329a07=[];if(_0xcad583>0x0)_0x329a07[_0x28455f(0xd3)](_0xcad583+_0x28455f(0x152));if(_0x229a6d['KsRjz'](_0x7ae098,0x0))_0x329a07[_0x28455f(0xd3)](_0x7ae098+'\x20incomplete');if(_0x29db9f>0x0)_0x329a07[_0x28455f(0xd3)](_0x29db9f+_0x28455f(0x16e));const _0x4fbf63=_0x229a6d[_0x28455f(0x109)](_0x329a07[_0x28455f(0xc7)],0x0)?'\x20('+_0x329a07['join'](',\x20')+')':'';return _0x3eef78+'\x20'+_0x2158c5+'/'+_0x2d9c0c+_0x28455f(0xf5)+_0x4fbf63;}function getCurrentSessionItems(_0x1e2e61,_0x33e7cd){const _0x4542dd=_0x51e629;if(!_0x1e2e61['currentSessionId'])return _0x33e7cd[_0x4542dd(0x15f)](_0x597b68=>!_0x597b68['sessionId']);return _0x33e7cd[_0x4542dd(0x15f)](_0x51a961=>_0x51a961[_0x4542dd(0x10b)]===_0x1e2e61[_0x4542dd(0xf3)]||!_0x51a961[_0x4542dd(0x10b)]);}function displayFeature(_0x400f7d,_0x5041e2){const _0x3e02ef=_0x51e629,_0x5dcb64={'IlquN':'\x0a\x20\x20\x20Scenarios:','TBPAk':_0x3e02ef(0x114),'QhIwN':function(_0x206c25,_0x1b9346){return _0x206c25===_0x1b9346;},'ZtGoQ':function(_0x2f9433,_0x113d1d){return _0x2f9433===_0x113d1d;},'zEvpt':'verified','xosGB':function(_0x3cac72,_0x2db94d){return _0x3cac72===_0x2db94d;},'CQvcW':'incomplete','BFvMj':function(_0x57c7ed,_0x9419ad){return _0x57c7ed>_0x9419ad;},'RwjZn':function(_0x43d24c,_0x188620){return _0x43d24c!==_0x188620;},'aSFYW':_0x3e02ef(0xc3),'WifAx':function(_0x542c22,_0x41d4f0){return _0x542c22===_0x41d4f0;},'mLWhC':function(_0x3a550f,_0x4b302e){return _0x3a550f===_0x4b302e;}};console['log']('\x0a'+_0x400f7d['name']+'\x20('+_0x400f7d[_0x3e02ef(0x9c)]+')');_0x400f7d['stats']&&console['log'](_0x3e02ef(0xcd)+getProgressDisplay(_0x400f7d[_0x3e02ef(0x166)]));_0x400f7d['description']&&console[_0x3e02ef(0xa9)]('\x20\x20\x20Description:\x20'+_0x400f7d['description']);_0x400f7d['gitRepoUrl']&&console['log'](_0x3e02ef(0x9d)+_0x400f7d['gitRepoUrl']);_0x400f7d[_0x3e02ef(0xf8)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x400f7d['gitBranch']);console[_0x3e02ef(0xa9)]('\x20\x20\x20Created:\x20'+new Date(_0x400f7d['createdAt'])[_0x3e02ef(0xe5)]());_0x400f7d['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x400f7d[_0x3e02ef(0x15c)])['toLocaleString']());if(_0x5041e2&&_0x5041e2['length']>0x0){console[_0x3e02ef(0xa9)](_0x5dcb64['IlquN']);for(let _0x1ae527=0x0;_0x1ae527<_0x5041e2['length'];_0x1ae527++){const _0x242501=_0x5041e2[_0x1ae527];let _0x2bde64;if(_0x242501['status']===_0x5dcb64[_0x3e02ef(0x159)]&&_0x5dcb64[_0x3e02ef(0x142)](_0x242501[_0x3e02ef(0xb3)],'approved'))_0x2bde64='✅';else{if(_0x5dcb64[_0x3e02ef(0xd4)](_0x242501['status'],_0x5dcb64['zEvpt']))_0x2bde64='🟢';else{if(_0x5dcb64['xosGB'](_0x242501[_0x3e02ef(0x98)],_0x5dcb64['CQvcW']))_0x2bde64='🟠';else{if(_0x242501[_0x3e02ef(0x98)]==='blocked')_0x2bde64='🛑';else{if(_0x242501[_0x3e02ef(0x98)]===_0x3e02ef(0x114))_0x2bde64='⛔';else _0x5dcb64[_0x3e02ef(0xd4)](_0x242501['status'],'verification_in_progress')?_0x2bde64='⏳':_0x2bde64='⬜';}}}}const _0x11cd80=_0x242501[_0x3e02ef(0xbe)]>0x1?_0x3e02ef(0xdc)+_0x242501['version']+')':'',_0x568e3a=_0x5dcb64[_0x3e02ef(0xa8)](_0x242501[_0x3e02ef(0xbe)],0x1)&&_0x242501['parentItemId']&&_0x5dcb64['RwjZn'](_0x242501['status'],_0x5dcb64[_0x3e02ef(0x159)])&&_0x242501[_0x3e02ef(0x98)]!==_0x5dcb64['zEvpt']?_0x5dcb64['aSFYW']:'';console[_0x3e02ef(0xa9)](_0x3e02ef(0xfd)+(_0x1ae527+0x1)+'.\x20'+_0x2bde64+'\x20'+_0x242501['description']+_0x11cd80+_0x568e3a);_0x242501['status']===_0x3e02ef(0x10c)&&_0x242501['blockedReason']&&console[_0x3e02ef(0xa9)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x242501['blockedReason']);_0x242501['status']===_0x5dcb64['CQvcW']&&_0x242501['incompleteReason']&&console['log'](_0x3e02ef(0xf1)+_0x242501[_0x3e02ef(0x11c)]);if(_0x5dcb64['WifAx'](_0x242501[_0x3e02ef(0x98)],_0x5dcb64['TBPAk'])&&_0x5dcb64[_0x3e02ef(0x165)](_0x242501[_0x3e02ef(0xb3)],'approved'))console[_0x3e02ef(0xa9)](_0x3e02ef(0x148));else _0x5dcb64[_0x3e02ef(0x145)](_0x242501['status'],_0x5dcb64['TBPAk'])&&_0x242501['canceledReason']&&console[_0x3e02ef(0xa9)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x242501['canceledReason']);}}}export async function featureCreate(_0x3a5f52,_0x98ac2d){const _0x1a5a97=_0x51e629,_0x1a9c8b={'ffUln':function(_0x393895){return _0x393895();},'ckkKS':function(_0x37ed8e,_0x571363){return _0x37ed8e===_0x571363;},'buekQ':function(_0x4531a6){return _0x4531a6();},'pVyEc':function(_0x2dff38,_0x12ff4d,_0x56083f){return _0x2dff38(_0x12ff4d,_0x56083f);}},{envNames:_0x2e11ce}=await getEnvNames();if(_0x2e11ce['length']===0x0&&!process[_0x1a5a97(0x126)][_0x1a5a97(0xd6)]){let _0x203b0=0x0;try{_0x203b0=(await _0x1a9c8b[_0x1a5a97(0xee)](listCloudProfiles))['length'];}catch{_0x203b0=0x1;}_0x1a9c8b[_0x1a5a97(0xec)](_0x203b0,0x0)&&console[_0x1a5a97(0xcf)]('\x0a'+formatProfileRequiredMessage(_0x25b0eb=>bold(_0x25b0eb)));}const _0x1e460b=_0x98ac2d['scenarios']?_0x98ac2d['scenarios']['map'](_0x34e009=>_0x34e009[_0x1a5a97(0x104)]()):[],_0xceef41=_0x1a9c8b['ffUln'](getGitRepoUrl),_0x4db550=_0x1a9c8b['buekQ'](getGitBranch);console['log']('\x0aCreating\x20feature\x20review...');const _0x1fbaea=await createFeature({'name':_0x3a5f52,'description':_0x98ac2d[_0x1a5a97(0x128)],'checklist':_0x1e460b,'gitRepoUrl':_0xceef41,'gitBranch':_0x4db550});await setActiveFeatureId(_0x1fbaea['id']),await tryStartCurrentSession(_0x1fbaea['id']);const _0x1aea6c=process[_0x1a5a97(0x126)]['CLAUDE_SESSION_ID'];_0x1aea6c&®isterSession(_0x1aea6c,_0x1fbaea['id']),console[_0x1a5a97(0xa9)](_0x1a5a97(0x158)+_0x1fbaea['id']),_0x1a9c8b[_0x1a5a97(0x151)](displayFeature,_0x1fbaea,_0x1fbaea[_0x1a5a97(0x10e)]),console[_0x1a5a97(0xa9)](_0x1a5a97(0xfe));}export async function featureList(_0x2447eb){const _0x537cd6=_0x51e629,_0x4cbe53={'VEgnV':function(_0x5c7ea3,_0x5cc819){return _0x5c7ea3>_0x5cc819;},'hepHy':function(_0x1f3187,_0x1419d6){return _0x1f3187<_0x1419d6;},'vjToU':'\x20--include-deleted'},_0x5170ce={'limit':_0x2447eb[_0x537cd6(0xc2)]??0xa,'offset':_0x2447eb[_0x537cd6(0x13f)]??0x0,'includeDeleted':_0x2447eb['includeDeleted']};_0x2447eb[_0x537cd6(0xc9)]&&(_0x5170ce['gitRepoUrl']=getGitRepoUrl(),_0x5170ce['gitBranch']=getGitBranch());const _0x53f02=await listFeatures(_0x5170ce);if(_0x53f02[_0x537cd6(0xbd)]['length']===0x0){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x23337d=_0x4cbe53['VEgnV'](_0x53f02['totalCount'],_0x53f02[_0x537cd6(0xbd)][_0x537cd6(0xc7)])?'Showing\x20'+_0x53f02[_0x537cd6(0xbd)]['length']+_0x537cd6(0x129)+_0x53f02['totalCount']:_0x53f02[_0x537cd6(0x136)]+'\x20feature\x20review(s)\x20found';console[_0x537cd6(0xa9)]('\x0a'+_0x23337d+':\x0a');for(const _0x28ac92 of _0x53f02['items']){console['log'](''+_0x28ac92['name']),console[_0x537cd6(0xa9)](_0x537cd6(0xdf)+_0x28ac92['id']),_0x28ac92[_0x537cd6(0x166)]&&console[_0x537cd6(0xa9)](_0x537cd6(0xcd)+getProgressDisplay(_0x28ac92[_0x537cd6(0x166)])),_0x28ac92[_0x537cd6(0xf8)]&&console[_0x537cd6(0xa9)](_0x537cd6(0x16f)+_0x28ac92[_0x537cd6(0xf8)]),console[_0x537cd6(0xa9)](_0x537cd6(0xd9)+new Date(_0x28ac92['createdAt'])['toLocaleDateString']()),console[_0x537cd6(0xa9)]('');}const _0x5c0909=_0x5170ce['limit']??0xa,_0x1cf7b9=(_0x5170ce['offset']??0x0)+_0x53f02['items'][_0x537cd6(0xc7)];if(_0x4cbe53[_0x537cd6(0x10f)](_0x1cf7b9,_0x53f02['totalCount'])){const _0xc42797=_0x5c0909!==0xa?'\x20--limit\x20'+_0x5c0909:'',_0x3bb3c5=_0x2447eb[_0x537cd6(0xc9)]?_0x537cd6(0xb8):'',_0x2eef49=_0x2447eb['includeDeleted']?_0x4cbe53[_0x537cd6(0x141)]:'';console[_0x537cd6(0xa9)](_0x537cd6(0x147)+_0x1cf7b9+_0xc42797+_0x3bb3c5+_0x2eef49);}}export async function featureShow(_0x529230){const _0x5498fd=_0x51e629,_0x165d42={'yTljB':function(_0x3d1546,_0x3eebf8){return _0x3d1546(_0x3eebf8);},'czNKn':function(_0x47968e,_0x33ce80,_0x5562d3){return _0x47968e(_0x33ce80,_0x5562d3);}},_0x532235=_0x529230||await getActiveFeatureId();if(!_0x532235)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 _0x2e0084=await _0x165d42[_0x5498fd(0x139)](getFeature,_0x532235);_0x165d42['czNKn'](displayFeature,_0x2e0084,_0x2e0084[_0x5498fd(0x10e)]);}export async function featureResume(_0x22c44a){const _0x743eb3=_0x51e629,_0x4d14d8={'OWgCt':function(_0x5a81c3,_0x3bd141){return _0x5a81c3(_0x3bd141);},'peMSA':function(_0x295ee4,_0x52edf2){return _0x295ee4(_0x52edf2);},'INCut':function(_0x372267){return _0x372267();},'eqHBl':function(_0x2273e9,_0x4c727c){return _0x2273e9!==_0x4c727c;},'srcUl':function(_0x24bdeb,_0x3d828c,_0x27cf79){return _0x24bdeb(_0x3d828c,_0x27cf79);},'ckwiE':function(_0xe13937,_0x12adf3){return _0xe13937(_0x12adf3);},'qxvLn':function(_0x25d4c0,_0xb60763){return _0x25d4c0&&_0xb60763;},'jVDHX':'any','uPFXq':function(_0x55bb3c,_0x3b43ea){return _0x55bb3c||_0x3b43ea;},'bbtQn':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','jvdGs':_0x743eb3(0x103),'pFLjK':_0x743eb3(0x12d),'asNSb':function(_0x3e68b9,_0x497efa){return _0x3e68b9(_0x497efa);}};if(_0x22c44a){const _0x3f96a1=await _0x4d14d8['OWgCt'](getFeature,_0x22c44a);await _0x4d14d8[_0x743eb3(0xd7)](setActiveFeatureId,_0x3f96a1['id']);const _0x3312f1=_0x4d14d8[_0x743eb3(0x14c)](getGitBranch);_0x3312f1&&_0x4d14d8['eqHBl'](_0x3312f1,_0x3f96a1[_0x743eb3(0xf8)])&&(await updateFeature(_0x3f96a1['id'],{'gitBranch':_0x3312f1}),console[_0x743eb3(0xa9)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3312f1));console[_0x743eb3(0xa9)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3f96a1['name']+'\x20('+_0x3f96a1['id']+')'),await _0x4d14d8[_0x743eb3(0x16c)](tryStartCurrentSession,_0x3f96a1['id']);const _0x1c03e3=process['env'][_0x743eb3(0xe2)];_0x1c03e3&&_0x4d14d8['srcUl'](registerSession,_0x1c03e3,_0x3f96a1['id']);displayFeature(_0x3f96a1,_0x3f96a1[_0x743eb3(0x10e)]),await _0x4d14d8[_0x743eb3(0xda)](printFeedbackNudge,_0x3f96a1['id']);return;}const _0x518100=_0x4d14d8[_0x743eb3(0x14c)](getGitRepoUrl),_0x9eae93=getGitBranch();if(_0x4d14d8[_0x743eb3(0x13a)](!_0x518100,!_0x9eae93))throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x743eb3(0xa9)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x518100||_0x4d14d8[_0x743eb3(0x137)])+_0x743eb3(0x117)+_0x4d14d8['uPFXq'](_0x9eae93,'any')+'...');const _0x53141a=await listFeatures({'gitRepoUrl':_0x518100,'gitBranch':_0x9eae93}),_0x1dcb24=_0x53141a['items'][_0x743eb3(0x15f)](_0x486a98=>_0x486a98[_0x743eb3(0x98)]?_0x486a98[_0x743eb3(0x98)]!==_0x743eb3(0xbb):!_0x486a98[_0x743eb3(0x15c)]);if(_0x1dcb24[_0x743eb3(0xc7)]===0x0){console['log'](_0x4d14d8[_0x743eb3(0xa0)]),console[_0x743eb3(0xa9)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x39fff6;if(_0x1dcb24['length']===0x1)_0x39fff6=_0x1dcb24[0x0];else{const _0x29bdb0=process['stdin']['isTTY']&&process[_0x743eb3(0xe6)][_0x743eb3(0x105)];if(!_0x29bdb0){console[_0x743eb3(0xa9)](_0x743eb3(0xca));for(const _0xeb609b of _0x1dcb24){console[_0x743eb3(0xa9)]('\x20\x20'+_0xeb609b[_0x743eb3(0x132)]),console['log'](_0x743eb3(0x116)+_0xeb609b['id']),_0xeb609b['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0xeb609b['stats'])),_0xeb609b['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xeb609b[_0x743eb3(0xf8)]);}throw new Error(_0x4d14d8['jvdGs']);}const {selected:_0x4956a0}=await _0x359ea9[_0x743eb3(0x130)]([{'type':'list','name':'selected','message':_0x4d14d8[_0x743eb3(0xb7)],'choices':_0x1dcb24['map'](_0x535cb=>({'name':_0x535cb[_0x743eb3(0x132)]+'\x20('+_0x535cb['id']+')','value':_0x535cb['id']}))}]);_0x39fff6=_0x1dcb24[_0x743eb3(0xa7)](_0x13693b=>_0x13693b['id']===_0x4956a0);}await _0x4d14d8[_0x743eb3(0x10a)](setActiveFeatureId,_0x39fff6['id']);_0x9eae93&&_0x4d14d8['eqHBl'](_0x9eae93,_0x39fff6['gitBranch'])&&(await _0x4d14d8['srcUl'](updateFeature,_0x39fff6['id'],{'gitBranch':_0x9eae93}),console[_0x743eb3(0xa9)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x9eae93));console['log'](_0x743eb3(0x119)+_0x39fff6[_0x743eb3(0x132)]+'\x20('+_0x39fff6['id']+')'),await tryStartCurrentSession(_0x39fff6['id']);const _0x5c131f=await getFeature(_0x39fff6['id']),_0x1a186f=process[_0x743eb3(0x126)]['CLAUDE_SESSION_ID'];_0x1a186f&&_0x4d14d8[_0x743eb3(0xcc)](registerSession,_0x1a186f,_0x5c131f['id']),_0x4d14d8[_0x743eb3(0xcc)](displayFeature,_0x5c131f,_0x5c131f['checklistItems']),await _0x4d14d8['asNSb'](printFeedbackNudge,_0x5c131f['id']);}async function printFeedbackNudge(_0x5b26d8){const _0x193a02=_0x51e629,_0x12d659={'adDCB':function(_0xc11993,_0x342bab,_0x205141){return _0xc11993(_0x342bab,_0x205141);},'qDDPa':function(_0x2e8b80,_0x5b1861){return _0x2e8b80>_0x5b1861;}};try{const {items:_0xcefb1c}=await getActionItems(_0x5b26d8);let _0xf91752=0x0,_0x40721f=0x0;for(const _0x375f43 of _0xcefb1c){const _0x178044=await _0x12d659[_0x193a02(0xa5)](getItemFeedback,_0x5b26d8,_0x375f43['id']);_0x12d659[_0x193a02(0x149)](_0x178044[_0x193a02(0x11d)][_0x193a02(0xc7)],0x0)&&(_0xf91752+=_0x178044['unaddressedComments'][_0x193a02(0xc7)],_0x40721f++);}_0xf91752>0x0&&(console[_0x193a02(0xa9)]('\x0a⚠️\x20\x20'+_0xf91752+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x40721f+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x4c4be1){const _0x5d455d=_0x51e629,_0x4c515d={'twFrw':function(_0x438d8f,_0x48f15a,_0x33141e){return _0x438d8f(_0x48f15a,_0x33141e);}};try{const {sessions:_0x5dedc6}=await listFeatureSessions(_0x4c4be1),_0x1b1d7c=_0x5dedc6[_0x5d455d(0xa7)](_0x58513b=>_0x58513b['status']==='ready');_0x1b1d7c&&(await _0x4c515d[_0x5d455d(0x156)](startSession,_0x4c4be1,_0x1b1d7c['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x1b1d7c['iteration']));}catch{}}export async function featureReport(_0x8842c5,_0x3e2599){const _0x58b97e=_0x51e629,_0x308baf={'PwYGa':function(_0x338eb2){return _0x338eb2();},'hCFUs':_0x58b97e(0xf6),'aHaBS':'\x0aGenerating\x20report...','WNCrC':function(_0x565e05,_0x3e2c98,_0x1e72f7,_0x45bb23){return _0x565e05(_0x3e2c98,_0x1e72f7,_0x45bb23);},'iBsuZ':_0x58b97e(0xd5),'ajkZS':function(_0x44284c,_0x2f9b45){return _0x44284c(_0x2f9b45);},'uqfDY':function(_0xdbb704,_0xb15812,_0x76e8ec){return _0xdbb704(_0xb15812,_0x76e8ec);}},_0x44cc41=_0x8842c5||await _0x308baf[_0x58b97e(0xff)](getActiveFeatureId);if(!_0x44cc41)throw new Error(_0x308baf[_0x58b97e(0x167)]);console['log'](_0x308baf['aHaBS']);const _0x2a8ef0=await getFeatureReportMarkdown(_0x44cc41,{'style':_0x3e2599['style']}),_0x2b2640=_0x3e2599['output']||_0x308baf['WNCrC'](join,_0x308baf['PwYGa'](getRangerDir),_0x308baf[_0x58b97e(0x123)],_0x44cc41+'.md'),_0x37e46d=join(_0x2b2640,'..');!_0x308baf[_0x58b97e(0xba)](existsSync,_0x37e46d)&&await _0x308baf['uqfDY'](mkdir,_0x37e46d,{'recursive':!![]}),await _0x308baf[_0x58b97e(0xfc)](writeFile,_0x2b2640,_0x2a8ef0,_0x58b97e(0x161)),console[_0x58b97e(0xa9)](_0x58b97e(0xbc)+_0x2b2640);}function getScenarioResult(_0x2e23f9){const _0x5f0db2=_0x51e629,_0x88ec89={'jQKgk':_0x5f0db2(0x114)};if(_0x2e23f9[_0x5f0db2(0x98)]===_0x88ec89['jQKgk'])return _0x2e23f9['terminalReason']??'closed';if(_0x2e23f9['status']==='verification_in_progress')return _0x5f0db2(0xe0);return _0x2e23f9[_0x5f0db2(0x98)];}function getScenarioRationale(_0x13f193,_0x307a9a){const _0xb7cf86=_0x51e629;if(_0x307a9a)return _0x307a9a;if(_0x13f193[_0xb7cf86(0xf4)])return _0x13f193['blockedReason'];if(_0x13f193['incompleteReason'])return _0x13f193[_0xb7cf86(0x11c)];if(_0x13f193[_0xb7cf86(0xbf)])return _0x13f193['canceledReason'];if(_0x13f193['notes'])return _0x13f193[_0xb7cf86(0x16b)];return null;}export async function featureReportPrDescription(_0x15b907,_0x49aa3d){const _0x5bc196=_0x51e629,_0x4d4aec={'kfwmY':function(_0x3f6daa){return _0x3f6daa();},'aNRlq':function(_0x1241f8,_0x2b89be){return _0x1241f8(_0x2b89be);},'CrSob':function(_0x1565dc,_0x566e4a,_0x566daf){return _0x1565dc(_0x566e4a,_0x566daf);},'EYdXZ':function(_0x2dd27a,_0x408137){return _0x2dd27a===_0x408137;},'vOyaY':_0x5bc196(0x11a),'vquWD':function(_0x10e773,_0x274f10){return _0x10e773===_0x274f10;},'vWVGm':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0xae0409=_0x15b907||await _0x4d4aec['kfwmY'](getActiveFeatureId);if(!_0xae0409)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x209568=await _0x4d4aec[_0x5bc196(0x124)](getFeature,_0xae0409),_0x358899=_0x209568['checklistItems']||[],_0x183508=_0x4d4aec[_0x5bc196(0x138)](getCurrentSessionItems,_0x209568,_0x358899);_0x4d4aec[_0x5bc196(0xed)](_0x183508[_0x5bc196(0xc7)],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x542262=_0x49aa3d[_0x5bc196(0xfb)]??[],_0x5822a6=_0x542262['filter'](_0x2930bb=>!Number['isInteger'](_0x2930bb)||_0x2930bb<0x1||_0x2930bb>_0x183508[_0x5bc196(0xc7)]);if(_0x5822a6['length']>0x0){console['error'](_0x5bc196(0x15d)+_0x5822a6['join'](',\x20')),console[_0x5bc196(0xa9)](_0x4d4aec['vOyaY']);for(let _0x431527=0x0;_0x431527<_0x183508[_0x5bc196(0xc7)];_0x431527++){console['log']('\x20\x20'+(_0x431527+0x1)+'.\x20'+_0x183508[_0x431527][_0x5bc196(0x128)]);}process['exit'](0x1);}const _0x41b544=new Set(_0x542262['map'](_0x5ed9e2=>_0x5ed9e2-0x1)),_0x3de600=_0x183508[_0x5bc196(0x15f)]((_0x1b7089,_0x52297e)=>!_0x41b544['has'](_0x52297e));_0x4d4aec['vquWD'](_0x3de600[_0x5bc196(0xc7)],0x0)&&(console['error'](_0x4d4aec[_0x5bc196(0x143)]),process[_0x5bc196(0xaf)](0x1));if(_0x49aa3d['json'])await outputJsonReport(_0xae0409,_0x209568,_0x3de600);else{const _0x24c116=await getFeatureReportMarkdown(_0xae0409,{'itemIds':_0x3de600[_0x5bc196(0xad)](_0x3797ba=>_0x3797ba['id'])});process['stdout'][_0x5bc196(0x9f)](_0x24c116['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x472126,_0x2b315f,_0x107061){const _0x4f3f94=_0x51e629,_0x438ea4={'BmCMX':function(_0x39369d,_0xccc88f){return _0x39369d===_0xccc88f;},'rvFsH':function(_0x24470e,_0x5d209a){return _0x24470e(_0x5d209a);},'zLsqh':function(_0x96a138,_0x25aadf,_0x2727b5){return _0x96a138(_0x25aadf,_0x2727b5);},'uEmZc':function(_0x17b96e){return _0x17b96e();}},_0x5821d9=_0x438ea4['uEmZc'](getApiBaseUrl),_0x4ea3dc=await getFeatureReport(_0x472126),_0x4c042=new Map(_0x4ea3dc['checklistItems']['map'](_0xb3ad26=>[_0xb3ad26['id'],_0xb3ad26])),_0x389952=await Promise[_0x4f3f94(0x12b)](_0x107061[_0x4f3f94(0xad)](async _0x254c27=>{const _0x28da1e=_0x4f3f94,_0x3fdc2c=_0x4c042[_0x28da1e(0xb1)](_0x254c27['id']),_0x96fe78=_0x3fdc2c?.['linkedSession']??null;let _0x2e4689=[];if(_0x254c27['browserSessionId'])try{const {steps:_0x2d9e53}=await getBrowserSessionSteps(_0x254c27['browserSessionId']);_0x2d9e53[_0x28da1e(0xc7)]>0x0&&(_0x2e4689=_0x2d9e53[_0x28da1e(0xad)](_0x58e7c0=>{const _0x78ecfc=_0x28da1e,_0x423ada=_0x58e7c0[_0x78ecfc(0x127)]['find'](_0x1d8707=>_0x1d8707[_0x78ecfc(0x14e)]==='screenshot'&&_0x1d8707['timing']===_0x78ecfc(0xd1))??_0x58e7c0['assets'][_0x78ecfc(0xa7)](_0x36859c=>_0x36859c[_0x78ecfc(0x14e)]===_0x78ecfc(0xc6));let _0x17092f=null,_0xe1630e=null;if(_0x423ada){const _0x523677=_0x423ada['storage']['location']['split']('/')[_0x78ecfc(0x9b)]();_0x17092f=_0x5821d9+_0x78ecfc(0x12f)+_0x254c27['browserSessionId']+_0x78ecfc(0x140)+_0x523677,_0x523677&&(_0xe1630e=_0x523677[_0x78ecfc(0xc8)](/\.\w+$/,'')[_0x78ecfc(0xc8)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0xe1630e||_0x58e7c0[_0x78ecfc(0x128)]||_0x58e7c0[_0x78ecfc(0xfa)]||'Step\x20'+_0x58e7c0[_0x78ecfc(0xc5)],'screenshot':_0x17092f,'is_key_step':_0x58e7c0['isKeyStep']};}));}catch{}return _0x438ea4[_0x28da1e(0x11f)](_0x2e4689[_0x28da1e(0xc7)],0x0)&&_0x96fe78?.[_0x28da1e(0x168)]&&(_0x2e4689=_0x96fe78[_0x28da1e(0x168)][_0x28da1e(0xad)]((_0x27a175,_0x3a14eb)=>({'description':'Screenshot\x20'+(_0x3a14eb+0x1),'screenshot':_0x27a175,'is_key_step':![]}))),{'description':_0x254c27['description'],'result':_0x438ea4[_0x28da1e(0xdd)](getScenarioResult,_0x254c27),'rationale':_0x438ea4[_0x28da1e(0x96)](getScenarioRationale,_0x254c27,_0x96fe78?.['agentResponse']),'steps':_0x2e4689};})),_0x5cb3b5={'url':_0x2b315f[_0x4f3f94(0x9c)],'scenarios':_0x389952};process[_0x4f3f94(0xe6)]['write'](JSON[_0x4f3f94(0xeb)](_0x5cb3b5,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x487637){const _0x56c751=_0x51e629,_0x280ea3={'wITSK':function(_0x28699e){return _0x28699e();},'QdSGR':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','XZCTc':function(_0x4ed836,_0x12bda7){return _0x4ed836(_0x12bda7);},'XOVRR':function(_0x57db41,_0x5f0c8c){return _0x57db41===_0x5f0c8c;},'SsBmG':_0x56c751(0xc1),'euMpy':_0x56c751(0x170),'PaYlf':function(_0x4fc6cb,_0x30ddaf){return _0x4fc6cb!==_0x30ddaf;}},_0x5ab814=_0x487637||await _0x280ea3['wITSK'](getActiveFeatureId);if(!_0x5ab814)throw new Error(_0x280ea3[_0x56c751(0x101)]);const _0x30a302=await getFeature(_0x5ab814);if(!_0x30a302['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0xc511d4}=await _0x280ea3['XZCTc'](listFeatureSessions,_0x5ab814),_0x5f44ca=_0xc511d4[_0x56c751(0xa7)](_0x3b7a89=>_0x3b7a89['id']===_0x30a302['currentSessionId']);if(!_0x5f44ca)throw new Error(_0x56c751(0x14d));if(_0x280ea3[_0x56c751(0xf9)](_0x5f44ca['status'],_0x280ea3[_0x56c751(0xe1)])){console['log'](_0x280ea3[_0x56c751(0x12c)]);return;}if(_0x280ea3[_0x56c751(0x144)](_0x5f44ca['status'],_0x56c751(0xe0)))throw new Error(_0x56c751(0x163)+_0x5f44ca['status']);console[_0x56c751(0xa9)](_0x56c751(0x95)),await concludeSession(_0x5ab814,_0x30a302[_0x56c751(0xf3)]),console[_0x56c751(0xa9)](_0x56c751(0x13d)+_0x5f44ca['iteration']+'\x20concluded.'),console[_0x56c751(0xa9)](_0x56c751(0x100));}export async function featureSessions(_0x4d4aa3){const _0x5b9577=_0x51e629,_0x2722ba={'JbAOf':function(_0x3aa98f,_0x389350){return _0x3aa98f(_0x389350);},'CtMoI':function(_0x1e201a,_0x5ee4d9){return _0x1e201a===_0x5ee4d9;}},_0x41f0ec=_0x4d4aa3||await getActiveFeatureId();if(!_0x41f0ec)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x10f1ad=await getFeature(_0x41f0ec);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x10f1ad[_0x5b9577(0x132)]+'\x0a');const {sessions:_0x5352b0}=await _0x2722ba['JbAOf'](listFeatureSessions,_0x41f0ec);if(_0x2722ba[_0x5b9577(0x14b)](_0x5352b0['length'],0x0)){console[_0x5b9577(0xa9)](_0x5b9577(0x9a));return;}for(const _0x4597fa of _0x5352b0){const _0x54a820=_0x2722ba[_0x5b9577(0x14b)](_0x4597fa['status'],_0x5b9577(0xc1))?'✅':_0x2722ba['CtMoI'](_0x4597fa[_0x5b9577(0x98)],'in_progress')?'🔄':'▶️';console['log'](_0x54a820+'\x20Session\x20'+_0x4597fa[_0x5b9577(0x16d)]+'\x20('+_0x4597fa['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x4597fa[_0x5b9577(0x98)]),console['log'](_0x5b9577(0xd9)+new Date(_0x4597fa['createdAt'])['toLocaleString']()),_0x4597fa[_0x5b9577(0x15c)]&&console[_0x5b9577(0xa9)]('\x20\x20\x20Completed:\x20'+new Date(_0x4597fa['completedAt'])[_0x5b9577(0xe5)]()),console[_0x5b9577(0xa9)]('');}}export async function featureAddScenario(_0x57c98d,_0x1f1709){const _0x4ce195=_0x51e629,_0x40d7dc={'CSkgm':function(_0xd1ff25){return _0xd1ff25();},'vcNiR':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','BxjVd':function(_0x58041d,_0x377f0a){return _0x58041d(_0x377f0a);},'iGjXU':function(_0xd61020,_0x14ab0a,_0x4ebe5a){return _0xd61020(_0x14ab0a,_0x4ebe5a);}},_0x79a835=_0x1f1709||await _0x40d7dc['CSkgm'](getActiveFeatureId);if(!_0x79a835)throw new Error(_0x40d7dc['vcNiR']);const _0x368600=await getFeature(_0x79a835);if(_0x368600[_0x4ce195(0x134)]&&!_0x368600[_0x4ce195(0x134)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x368600[_0x4ce195(0x9c)]);await createChecklistItem(_0x79a835,_0x57c98d);const _0x442ac0=await _0x40d7dc['BxjVd'](getFeature,_0x79a835);console['log']('\x0a✅\x20Scenario\x20added'),_0x40d7dc['iGjXU'](displayFeature,_0x442ac0,_0x442ac0['checklistItems']);}export async function featureEditScenario(_0x5f13ed,_0x1b230e){const _0x4c7aa6=_0x51e629,_0x166960={'dhZgi':_0x4c7aa6(0xb5),'yhMcv':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','BXQra':_0x4c7aa6(0xa2),'SirGZ':_0x4c7aa6(0xe3),'QJqad':function(_0x11940d,_0x59736a){return _0x11940d===_0x59736a;},'lZliM':'\x0aAvailable\x20scenarios:','SQykx':function(_0xb14171,_0x18a937){return _0xb14171<_0x18a937;},'VRSns':function(_0x1aa20f,_0x385d75,_0x4aac60,_0x450017){return _0x1aa20f(_0x385d75,_0x4aac60,_0x450017);},'ovAIC':function(_0x4bf787,_0x3e48c9){return _0x4bf787(_0x3e48c9);}},_0xe1a776=_0x1b230e['id']||await getActiveFeatureId();!_0xe1a776&&(console[_0x4c7aa6(0xef)](_0x166960[_0x4c7aa6(0xac)]),console['error'](_0x166960[_0x4c7aa6(0x120)]),process['exit'](0x1));const _0x5bb7ef=await getFeature(_0xe1a776);_0x5bb7ef['latestReview']&&!_0x5bb7ef[_0x4c7aa6(0x134)][_0x4c7aa6(0x113)]&&(console['error'](_0x166960[_0x4c7aa6(0xa4)]),console[_0x4c7aa6(0xef)](_0x166960[_0x4c7aa6(0xb9)]),console[_0x4c7aa6(0xef)]('\x20\x20'+_0x5bb7ef['dashboardUrl']),process[_0x4c7aa6(0xaf)](0x1));const _0xd0ad9e=_0x5bb7ef['checklistItems']||[];_0x166960['QJqad'](_0xd0ad9e['length'],0x0)&&(console[_0x4c7aa6(0xef)](_0x4c7aa6(0xe8)),process['exit'](0x1));if(_0x1b230e['scenario']===undefined){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x166960[_0x4c7aa6(0x108)]);for(let _0x3d3d1d=0x0;_0x3d3d1d<_0xd0ad9e['length'];_0x3d3d1d++){console[_0x4c7aa6(0xa9)]('\x20\x20'+(_0x3d3d1d+0x1)+'.\x20'+_0xd0ad9e[_0x3d3d1d][_0x4c7aa6(0x128)]);}process[_0x4c7aa6(0xaf)](0x1);}const _0x1d60a7=_0x1b230e['scenario']-0x1;if(_0x1d60a7<0x0||_0x1d60a7>=_0xd0ad9e[_0x4c7aa6(0xc7)]){console[_0x4c7aa6(0xef)](_0x4c7aa6(0x160)+_0x1b230e['scenario']+'.\x20Feature\x20review\x20has\x20'+_0xd0ad9e[_0x4c7aa6(0xc7)]+'\x20scenarios.'),console[_0x4c7aa6(0xa9)]('\x0aAvailable\x20scenarios:');for(let _0x21c553=0x0;_0x166960['SQykx'](_0x21c553,_0xd0ad9e['length']);_0x21c553++){console[_0x4c7aa6(0xa9)]('\x20\x20'+(_0x21c553+0x1)+'.\x20'+_0xd0ad9e[_0x21c553][_0x4c7aa6(0x128)]);}process[_0x4c7aa6(0xaf)](0x1);}const _0xa6aaee=_0xd0ad9e[_0x1d60a7];await _0x166960['VRSns'](updateChecklistItem,_0xe1a776,_0xa6aaee['id'],{'description':_0x5f13ed});const _0x532b91=await _0x166960['ovAIC'](getFeature,_0xe1a776);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x532b91,_0x532b91['checklistItems']);}async function downloadFeedbackImage(_0x10195b,_0x26e27a){const _0x5aac72=_0x51e629,_0x673a55={'BrkKt':function(_0x5b0fcb,_0xa2acd,_0x57376a){return _0x5b0fcb(_0xa2acd,_0x57376a);},'kyjVN':function(_0x3fb5b8){return _0x3fb5b8();},'sRsvq':'feedback-images'};try{const _0x56d678=_0x673a55['BrkKt'](join,_0x673a55[_0x5aac72(0x157)](getRangerDir),_0x673a55['sRsvq']);await mkdir(_0x56d678,{'recursive':!![]});const _0x331344=_0x673a55['BrkKt'](join,_0x56d678,_0x5aac72(0xe7)+_0x26e27a+_0x5aac72(0xc4)),_0x25ae20=await fetch(_0x10195b);if(!_0x25ae20['ok'])return null;const _0x5b82fb=Buffer[_0x5aac72(0x11b)](await _0x25ae20[_0x5aac72(0xab)]());return await writeFile(_0x331344,_0x5b82fb),_0x331344;}catch{return null;}}function _0x2320(_0x222fc8,_0x81a052){_0x222fc8=_0x222fc8-0x95;const _0x3ff7af=_0x3ff7();let _0x232071=_0x3ff7af[_0x222fc8];return _0x232071;}export async function featureGetReview(_0x19d13b){const _0x45b124=_0x51e629,_0x2222e8={'oYAul':function(_0xf2f6c6,_0x31ff6f){return _0xf2f6c6(_0x31ff6f);},'qlclv':function(_0x529c0e,_0x446242){return _0x529c0e===_0x446242;},'uGrdt':_0x45b124(0x162),'Nzffr':_0x45b124(0xf0),'PpxFt':'numeric','wbqHN':_0x45b124(0x13b),'VXmTW':'element','InHrP':function(_0xcbbf79,_0x20197e){return _0xcbbf79>=_0x20197e;}},_0x3ac0e1=_0x19d13b||await getActiveFeatureId();if(!_0x3ac0e1)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 _0x52c75b=await _0x2222e8[_0x45b124(0x155)](getFeature,_0x3ac0e1),{items:_0x4460bf}=await getActionItems(_0x3ac0e1);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x52c75b['name']+'\x20('+_0x52c75b['id']+')\x0a');if(_0x2222e8['qlclv'](_0x4460bf[_0x45b124(0xc7)],0x0)){console['log'](_0x2222e8[_0x45b124(0x13c)]);return;}for(let _0x339827=0x0;_0x339827<_0x4460bf[_0x45b124(0xc7)];_0x339827++){const _0x224744=_0x4460bf[_0x339827],_0x36bc49=_0x224744[_0x45b124(0xbe)]>0x1?'\x20(v'+_0x224744['version']+')':'',_0x451371=await getItemFeedback(_0x3ac0e1,_0x224744['id']);if(_0x451371[_0x45b124(0x11d)][_0x45b124(0xc7)]>0x0){console[_0x45b124(0xa9)]('Scenario\x20'+(_0x339827+0x1)+_0x45b124(0xb2)+_0x224744['description']+'\x22'+_0x36bc49+'\x20—\x20'+_0x451371['unaddressedComments']['length']+_0x45b124(0xe9));for(const _0x2f31ae of _0x451371['unaddressedComments']){const _0x48c7af=new Date(_0x2f31ae['createdAt'])['toLocaleDateString'](_0x2222e8[_0x45b124(0x107)],{'month':'short','day':_0x2222e8['PpxFt']}),_0x4f3eca=_0x2f31ae['authorName']||_0x2f31ae['authorEmail']||_0x2222e8[_0x45b124(0x15b)];console[_0x45b124(0xa9)]('\x20\x20💬\x20'+_0x4f3eca+'\x20('+_0x48c7af+_0x45b124(0x164)+_0x2f31ae[_0x45b124(0x121)]+'\x22');if(_0x2f31ae[_0x45b124(0x153)]){const _0x1f8ffb=await downloadFeedbackImage(_0x2f31ae['assetUrl'],_0x2f31ae['id']);_0x1f8ffb&&console[_0x45b124(0xa9)](_0x45b124(0x146)+_0x1f8ffb);}if(_0x2f31ae['domRef']){const _0x3764fe=_0x2f31ae['domRef'][_0x45b124(0xd0)]['split'](_0x45b124(0x102))['pop']()?.[_0x45b124(0x118)](':')[0x0]||_0x2222e8['VXmTW'],_0x2b118e=_0x2f31ae['domRef'][_0x45b124(0x106)]?'\x20\x22'+_0x2f31ae[_0x45b124(0xce)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x3764fe+'>'+_0x2b118e),console[_0x45b124(0xa9)](_0x45b124(0xd8)+_0x2f31ae['domRef']['selector']);}else{if(_0x2f31ae[_0x45b124(0xa6)]){const _0x59c925=_0x2f31ae[_0x45b124(0xa6)][_0x45b124(0xde)];_0x2f31ae['spatial']['type']===_0x45b124(0xb0)&&_0x2222e8[_0x45b124(0x150)](_0x59c925[_0x45b124(0xc7)],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x59c925[0x0][_0x45b124(0x14a)](0x2)+',\x20'+_0x59c925[0x1]['toFixed'](0x2)+')'):console[_0x45b124(0xa9)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x2f31ae['spatial'][_0x45b124(0xf7)]+'\x20at\x20['+_0x59c925['map'](_0x45bc07=>_0x45bc07[_0x45b124(0x14a)](0x2))[_0x45b124(0x135)](',\x20')+']');}}}if(_0x451371[_0x45b124(0xe4)]){console[_0x45b124(0xa9)](_0x45b124(0xae));for(const _0x5d261d of _0x451371[_0x45b124(0xe4)]['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x5d261d);}}}else console[_0x45b124(0xa9)](_0x45b124(0xa1)+(_0x339827+0x1)+':\x20\x22'+_0x224744[_0x45b124(0x128)]+'\x22'+_0x36bc49+_0x45b124(0x14f)),console[_0x45b124(0xa9)](_0x45b124(0x99));console[_0x45b124(0xa9)]('');}}export async function featureDelete(_0x547bb6){const _0x31d005=_0x51e629,_0x49d68a={'tqURI':function(_0x138da0){return _0x138da0();},'fTFWz':_0x31d005(0x110),'IoSky':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x3b5acb=_0x547bb6||await _0x49d68a[_0x31d005(0xea)](getActiveFeatureId);if(!_0x3b5acb)throw new Error(_0x49d68a[_0x31d005(0x169)]);const _0x1425bb=await getFeature(_0x3b5acb);await softDeleteFeature(_0x3b5acb),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x1425bb[_0x31d005(0x132)]+'\x20('+_0x3b5acb+')'),console['log'](_0x49d68a['IoSky']+_0x3b5acb);}export async function featureRestore(_0x38f6cc){const _0x57c5d7=_0x51e629;await restoreFeature(_0x38f6cc);const _0x1b6b72=await getFeature(_0x38f6cc);console[_0x57c5d7(0xa9)](_0x57c5d7(0x125)+_0x1b6b72['name']+'\x20('+_0x38f6cc+')'),displayFeature(_0x1b6b72,_0x1b6b72['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x236424,_0x332e7f){const _0x5858d5=_0x250d,_0x4e28b0=_0x236424();while(!![]){try{const _0xd993e5=-parseInt(_0x5858d5(0x94))/0x1+parseInt(_0x5858d5(0xa0))/0x2+-parseInt(_0x5858d5(0x98))/0x3*(parseInt(_0x5858d5(0x99))/0x4)+parseInt(_0x5858d5(0x9d))/0x5*(-parseInt(_0x5858d5(0x9b))/0x6)+parseInt(_0x5858d5(0x97))/0x7+parseInt(_0x5858d5(0x93))/0x8+parseInt(_0x5858d5(0x9f))/0x9;if(_0xd993e5===_0x332e7f)break;else _0x4e28b0['push'](_0x4e28b0['shift']());}catch(_0x227312){_0x4e28b0['push'](_0x4e28b0['shift']());}}}(_0x2020,0x1ebae));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x59ce4b=_0x250d,_0x21081b={'ytoAV':'SIGTERM'};if(cancellationHandlersInstalled)return;const _0x2cb8ab=()=>{const _0x58a815=_0x250d;process[_0x58a815(0xa1)](0x0);};process[_0x59ce4b(0x91)](_0x59ce4b(0x9e),_0x2cb8ab),process[_0x59ce4b(0x91)](_0x21081b[_0x59ce4b(0x9c)],_0x2cb8ab),process['once']('SIGHUP',_0x2cb8ab),cancellationHandlersInstalled=!![];}export async function hook(_0x15f689,_0x48dc77){const _0x188c64=_0x250d,_0x260d54={'gGbZu':function(_0x4a86cd){return _0x4a86cd();}};_0x260d54['gGbZu'](installCancellationHandlers);const _0xbd1a17=HOOKS[_0x15f689];if(!_0xbd1a17){const _0x195020=Object[_0x188c64(0x92)](HOOKS)[_0x188c64(0x95)](',\x20');console[_0x188c64(0x96)](_0x188c64(0x9a)+_0x15f689),console['error']('Valid\x20hooks:\x20'+_0x195020),process[_0x188c64(0xa1)](0x1);}await _0xbd1a17(_0x48dc77);}function _0x250d(_0x429424,_0x47982b){_0x429424=_0x429424-0x91;const _0x202072=_0x2020();let _0x250d59=_0x202072[_0x429424];return _0x250d59;}function _0x2020(){const _0x5b710f=['285974EWjHdq','exit','once','keys','350208HyKbcO','242978kxJNVF','join','error','1684291jMWXXe','27Lixrqz','103340vvCsTM','Unknown\x20hook:\x20','6Nywnuo','ytoAV','699285XyogWX','SIGINT','2824596HGAbCd'];_0x2020=function(){return _0x5b710f;};return _0x2020();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x2f6699,_0x17afd6){const _0xe02f86=_0xab52,_0x46408f=_0x2f6699();while(!![]){try{const _0x1beaf1=-parseInt(_0xe02f86(0x1b1))/0x1*(parseInt(_0xe02f86(0x1af))/0x2)+parseInt(_0xe02f86(0x1a7))/0x3+-parseInt(_0xe02f86(0x1b0))/0x4*(parseInt(_0xe02f86(0x1ac))/0x5)+-parseInt(_0xe02f86(0x1ad))/0x6+-parseInt(_0xe02f86(0x1a9))/0x7+parseInt(_0xe02f86(0x1a6))/0x8*(-parseInt(_0xe02f86(0x1b2))/0x9)+parseInt(_0xe02f86(0x1ae))/0xa;if(_0x1beaf1===_0x17afd6)break;else _0x46408f['push'](_0x46408f['shift']());}catch(_0x3f2033){_0x46408f['push'](_0x46408f['shift']());}}}(_0x4b9f,0x27c5b));function _0xab52(_0x224f24,_0xe54119){_0x224f24=_0x224f24-0x1a5;const _0x4b9fc5=_0x4b9f();let _0xab5264=_0x4b9fc5[_0x224f24];return _0xab5264;}import{readHookInput}from'./output.js';function _0x4b9f(){const _0x1af479=['599948bjDqQc','1oNXwDn','99ynhjkb','UjLNr','187088nnsWbz','288129jUosua','log','46361hWuiqp','UWDbp','session_id','5qmDqIw','741912DdMzQE','8151830dIXgZa','421622BzNYDi'];_0x4b9f=function(){return _0x1af479;};return _0x4b9f();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';export async function autoPrompt(){const _0x2ae99c=_0xab52,_0x13b530={'UWDbp':function(_0x1125d6){return _0x1125d6();},'UjLNr':function(_0x118e5d,_0x2b82d8){return _0x118e5d(_0x2b82d8);}},_0x583c2a=await _0x13b530[_0x2ae99c(0x1aa)](readHookInput),_0x1f701c=_0x583c2a?.[_0x2ae99c(0x1ab)];if(!_0x1f701c)return;if(isSessionEnabled(_0x1f701c)||_0x13b530[_0x2ae99c(0x1a5)](hasSessionBeenPrompted,_0x1f701c))return;markSessionPrompted(_0x1f701c),console[_0x2ae99c(0x1a8)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42f2d6,_0x25b10e){const _0x50cbf0=_0xd0b9,_0x3f1914=_0x42f2d6();while(!![]){try{const _0x43c7eb=-parseInt(_0x50cbf0(0xd5))/0x1*(-parseInt(_0x50cbf0(0xd3))/0x2)+-parseInt(_0x50cbf0(0xdd))/0x3+parseInt(_0x50cbf0(0xd6))/0x4+-parseInt(_0x50cbf0(0xcd))/0x5*(-parseInt(_0x50cbf0(0xcc))/0x6)+-parseInt(_0x50cbf0(0xd9))/0x7*(-parseInt(_0x50cbf0(0xd1))/0x8)+-parseInt(_0x50cbf0(0xd8))/0x9+parseInt(_0x50cbf0(0xd4))/0xa*(-parseInt(_0x50cbf0(0xcb))/0xb);if(_0x43c7eb===_0x25b10e)break;else _0x3f1914['push'](_0x3f1914['shift']());}catch(_0x29e5b3){_0x3f1914['push'](_0x3f1914['shift']());}}}(_0x42ca,0x795e3));function _0xd0b9(_0x10a367,_0x174f81){_0x10a367=_0x10a367-0xca;const _0x42cae4=_0x42ca();let _0xd0b9d4=_0x42cae4[_0x10a367];return _0xd0b9d4;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x42ca(){const _0x35c179=['1048544CrchfO','env','5708061SIfDWY','14DwEDQI','CLAUDE_SESSION_ID','main','master','761424YRGIRX','XdAsS','4882658auDzIW','342822SJKnLH','85ldIviL','wpHPp','vDzSR','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','3117736XwLXoy','\x20and\x20branch\x20\x27','2Fciaaq','20jaOcWW','260017eBlxIb'];_0x42ca=function(){return _0x35c179;};return _0x42ca();}import{printBlock}from'./output.js';export async function disable(_0x25457e){const _0x5ec01e=_0xd0b9,_0x14e7d2={'wpHPp':function(_0x136bc8,_0x11f2b7){return _0x136bc8(_0x11f2b7);},'LTMPc':'main','rAyWV':function(_0x5bd878,_0x2f7dc6){return _0x5bd878!==_0x2f7dc6;},'noZVk':function(_0x548e8a,_0x368dc8){return _0x548e8a(_0x368dc8);},'XdAsS':function(_0x48bddf,_0x819aff){return _0x48bddf!==_0x819aff;},'vDzSR':_0x5ec01e(0xdc)},_0x5d8e10=_0x25457e||process[_0x5ec01e(0xd7)][_0x5ec01e(0xda)]||'';_0x5d8e10&&_0x14e7d2['wpHPp'](disableSession,_0x5d8e10);const _0x3f6018=getCurrentBranch();_0x3f6018&&_0x3f6018!==_0x14e7d2['LTMPc']&&_0x14e7d2['rAyWV'](_0x3f6018,'master')&&_0x14e7d2[_0x5ec01e(0xce)](disableBranch,_0x3f6018),_0x14e7d2['noZVk'](printBlock,_0x5ec01e(0xd0)+(_0x3f6018&&_0x14e7d2[_0x5ec01e(0xca)](_0x3f6018,_0x5ec01e(0xdb))&&_0x14e7d2[_0x5ec01e(0xca)](_0x3f6018,_0x14e7d2[_0x5ec01e(0xcf)])?_0x5ec01e(0xd2)+_0x3f6018+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x439e(){const _0x4cb339=['84194AiIOth','#\x20RANGER\x20ENABLED','470VQKQNa','200223JkWjWL','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','3897dMFKzU','main','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','5rrqiEm','yDHTb','136KavWCt','4099403NozLFC','3307316KkXkLK','#\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`','yFgvs','239967jXBMSW','6HxLtmN','ranger\x20setup\x20--opencode','zZEUO','XZdXx','22706820elXnpy','Kapsd','1006EemdJZ'];_0x439e=function(){return _0x4cb339;};return _0x439e();}(function(_0x2c13c0,_0x3d89c6){const _0x104469=_0x5ab7,_0x44e249=_0x2c13c0();while(!![]){try{const _0x58a1ca=-parseInt(_0x104469(0xb6))/0x1+parseInt(_0x104469(0xb2))/0x2*(-parseInt(_0x104469(0xb8))/0x3)+parseInt(_0x104469(0xa8))/0x4*(-parseInt(_0x104469(0xbb))/0x5)+-parseInt(_0x104469(0xac))/0x6*(parseInt(_0x104469(0xa7))/0x7)+-parseInt(_0x104469(0xa6))/0x8*(-parseInt(_0x104469(0xab))/0x9)+parseInt(_0x104469(0xb5))/0xa*(parseInt(_0x104469(0xb3))/0xb)+parseInt(_0x104469(0xb0))/0xc;if(_0x58a1ca===_0x3d89c6)break;else _0x44e249['push'](_0x44e249['shift']());}catch(_0x373a1d){_0x44e249['push'](_0x44e249['shift']());}}}(_0x439e,0x6b37e));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 _0x5ab7(_0x5dba7c,_0x225880){_0x5dba7c=_0x5dba7c-0xa6;const _0x439e47=_0x439e();let _0x5ab74c=_0x439e47[_0x5dba7c];return _0x5ab74c;}import{update}from'../update.js';export async function enable(_0x1909e7){const _0x774d5e=_0x5ab7,_0x2550ba={'Kapsd':function(_0x913a73,_0x47e527){return _0x913a73(_0x47e527);},'zZEUO':_0x774d5e(0xad),'arWDR':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','XZdXx':function(_0x59fb31){return _0x59fb31();},'yDHTb':function(_0x45ea0d){return _0x45ea0d();},'CsEQv':function(_0x536f47,_0xb3e1b7){return _0x536f47!==_0xb3e1b7;},'yFgvs':_0x774d5e(0xb9)},_0x10dc36=_0x1909e7||process['env']['CLAUDE_SESSION_ID']||'',_0x3655bc=_0x2550ba[_0x774d5e(0xb1)](Boolean,_0x1909e7),_0x217a24=await getToken();if(!_0x217a24){const _0x11f849=_0x3655bc?_0x2550ba[_0x774d5e(0xae)]:'ranger\x20setup',_0x5b2f25=_0x3655bc?_0x2550ba['arWDR']:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock(_0x774d5e(0xa9)+_0x11f849+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x5b2f25);return;}try{await _0x2550ba[_0x774d5e(0xaf)](update);}catch{}_0x10dc36&&enableSession(_0x10dc36);const _0xfd845e=_0x2550ba[_0x774d5e(0xbc)](getCurrentBranch),_0x1d4110=_0xfd845e&&_0x2550ba['CsEQv'](_0xfd845e,_0x2550ba[_0x774d5e(0xaa)])&&_0x2550ba['CsEQv'](_0xfd845e,'master')?'\x0a\x0a**Branch\x20\x27'+_0xfd845e+_0x774d5e(0xb7):'',_0x36f721=_0x2550ba['yDHTb'](getRangerSkillContent);printBlock(_0x774d5e(0xb4)+_0x1d4110+_0x774d5e(0xba)+_0x36f721+'\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 _0x3ccd(_0x4df4d3,_0x51cd7d){_0x4df4d3=_0x4df4d3-0x1cf;const _0x581938=_0x5819();let _0x3ccd4b=_0x581938[_0x4df4d3];return _0x3ccd4b;}(function(_0x153f7a,_0x297192){const _0x1859d7=_0x3ccd,_0x7f6114=_0x153f7a();while(!![]){try{const _0x3bc659=parseInt(_0x1859d7(0x1d8))/0x1+parseInt(_0x1859d7(0x1d7))/0x2+parseInt(_0x1859d7(0x1d6))/0x3+parseInt(_0x1859d7(0x1d4))/0x4*(parseInt(_0x1859d7(0x1cf))/0x5)+parseInt(_0x1859d7(0x1d3))/0x6+-parseInt(_0x1859d7(0x1d5))/0x7*(-parseInt(_0x1859d7(0x1d0))/0x8)+parseInt(_0x1859d7(0x1d1))/0x9*(-parseInt(_0x1859d7(0x1d2))/0xa);if(_0x3bc659===_0x297192)break;else _0x7f6114['push'](_0x7f6114['shift']());}catch(_0x560256){_0x7f6114['push'](_0x7f6114['shift']());}}}(_0x5819,0x8b5d8));import{printBlock,getEnabledSessionId}from'./output.js';function _0x5819(){const _0x5ec129=['10ACeUEa','2234970jkcRUE','88292YYDBBN','7aURQRt','1650417qzotqU','1838406nIdnLZ','170736Ldichh','220nVnRQr','1679704UNZJyr','23606172MvxQJo'];_0x5819=function(){return _0x5ec129;};return _0x5819();}export async function exitPlanMode(_0x860dee){const _0x147b75=await getEnabledSessionId(_0x860dee);if(!_0x147b75)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 _0x5712(_0x358207,_0x425710){_0x358207=_0x358207-0x15c;var _0x4cfd32=_0x4cfd();var _0x5712cc=_0x4cfd32[_0x358207];return _0x5712cc;}(function(_0x2e0d56,_0x2e450a){var _0x44f303=_0x5712,_0x426ad5=_0x2e0d56();while(!![]){try{var _0x14ea3d=parseInt(_0x44f303(0x15d))/0x1*(parseInt(_0x44f303(0x160))/0x2)+-parseInt(_0x44f303(0x161))/0x3*(parseInt(_0x44f303(0x15e))/0x4)+-parseInt(_0x44f303(0x162))/0x5*(-parseInt(_0x44f303(0x163))/0x6)+parseInt(_0x44f303(0x166))/0x7+-parseInt(_0x44f303(0x15f))/0x8+-parseInt(_0x44f303(0x165))/0x9+parseInt(_0x44f303(0x164))/0xa*(parseInt(_0x44f303(0x15c))/0xb);if(_0x14ea3d===_0x2e450a)break;else _0x426ad5['push'](_0x426ad5['shift']());}catch(_0x41d633){_0x426ad5['push'](_0x426ad5['shift']());}}}(_0x4cfd,0xa7be5));function _0x4cfd(){var _0x1d78df=['1cTEesQ','168LksHis','8439064JJPzAD','2027574qdFYWp','31035MQRMKR','509965pNDOki','54btzJwe','10994890zqIGDj','11748654VJLIES','3154501csIhEr','11krBCNO'];_0x4cfd=function(){return _0x1d78df;};return _0x4cfd();}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x48c6d7,_0x3cfa58){const _0x44e6be=_0x2c95,_0x4efb41=_0x48c6d7();while(!![]){try{const _0x59a7c4=-parseInt(_0x44e6be(0x134))/0x1+-parseInt(_0x44e6be(0x12e))/0x2+-parseInt(_0x44e6be(0x12b))/0x3+parseInt(_0x44e6be(0x135))/0x4*(parseInt(_0x44e6be(0x12c))/0x5)+parseInt(_0x44e6be(0x12d))/0x6*(-parseInt(_0x44e6be(0x12f))/0x7)+parseInt(_0x44e6be(0x129))/0x8*(-parseInt(_0x44e6be(0x132))/0x9)+-parseInt(_0x44e6be(0x137))/0xa*(-parseInt(_0x44e6be(0x128))/0xb);if(_0x59a7c4===_0x3cfa58)break;else _0x4efb41['push'](_0x4efb41['shift']());}catch(_0x388e1c){_0x4efb41['push'](_0x4efb41['shift']());}}}(_0x3324,0xd5b9d));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x18c77a){const _0x3a2cee=_0x2c95;console[_0x3a2cee(0x12a)](_0x18c77a);}export async function readHookInput(){const _0x11dab9=_0x2c95;let _0x24334e='';try{for await(const _0x4b4d50 of process[_0x11dab9(0x133)]){_0x24334e+=_0x4b4d50;}}catch{return null;}if(!_0x24334e[_0x11dab9(0x130)]())return null;try{return JSON['parse'](_0x24334e);}catch{return null;}}export async function getEnabledSessionId(_0x1bb4bf){const _0x39e067=_0x2c95,_0x1d88b9={'hGXwM':function(_0x14cb72){return _0x14cb72();},'DKmag':function(_0x3ce6c8,_0x5ac628){return _0x3ce6c8(_0x5ac628);}};if(_0x1bb4bf)return isSessionEnabled(_0x1bb4bf)?_0x1bb4bf:null;const _0x18a168=await _0x1d88b9[_0x39e067(0x136)](readHookInput),_0x2b4c4d=_0x18a168?.['session_id'];if(!_0x2b4c4d||!_0x1d88b9['DKmag'](isSessionEnabled,_0x2b4c4d))return null;return _0x2b4c4d;}function _0x2c95(_0x58bb95,_0x197e58){_0x58bb95=_0x58bb95-0x128;const _0x33248c=_0x3324();let _0x2c959a=_0x33248c[_0x58bb95];return _0x2c959a;}export async function getEnabledHookContext(_0x1a780f){const _0x1a4d88=_0x2c95,_0x57741b={'lOqcz':function(_0x2f1f0f,_0x1ae052){return _0x2f1f0f(_0x1ae052);},'XUZiG':function(_0x5ac5c7){return _0x5ac5c7();}};if(_0x1a780f){if(!_0x57741b[_0x1a4d88(0x131)](isSessionEnabled,_0x1a780f))return null;return{'sessionId':_0x1a780f,'input':{'session_id':_0x1a780f}};}const _0x3c91ea=await _0x57741b['XUZiG'](readHookInput),_0x5a7b4b=_0x3c91ea?.['session_id'];if(!_0x5a7b4b||!_0x57741b[_0x1a4d88(0x131)](isSessionEnabled,_0x5a7b4b))return null;return{'sessionId':_0x5a7b4b,'input':_0x3c91ea};}function _0x3324(){const _0x7c8d35=['1025244WXqtvJ','6995nJGwKz','2892aTzZJS','3235456sJHoMP','11921DecHjC','trim','lOqcz','11926773BRsHNx','stdin','1122665OfiUYq','4708pTAIku','hGXwM','20140NpNyNv','24343GfQVxd','8pqfROS','log'];_0x3324=function(){return _0x7c8d35;};return _0x3324();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3b13(){const _0x90cfde=['16034288BngBFk','648158SytiCG','12900UnmNJw','887916GryPTz','2202582jvxLij','2278956UCJcvO','GRhat','uLIFQ','11284175QmQabE','2005MGvrOn'];_0x3b13=function(){return _0x90cfde;};return _0x3b13();}(function(_0x2ebc81,_0x43628d){const _0x148264=_0x121f,_0x174353=_0x2ebc81();while(!![]){try{const _0x59d2e7=parseInt(_0x148264(0x13c))/0x1+-parseInt(_0x148264(0x140))/0x2+parseInt(_0x148264(0x13f))/0x3+parseInt(_0x148264(0x13e))/0x4+parseInt(_0x148264(0x13a))/0x5*(parseInt(_0x148264(0x13d))/0x6)+parseInt(_0x148264(0x139))/0x7+-parseInt(_0x148264(0x13b))/0x8;if(_0x59d2e7===_0x43628d)break;else _0x174353['push'](_0x174353['shift']());}catch(_0x2e6406){_0x174353['push'](_0x174353['shift']());}}}(_0x3b13,0xe4356));function _0x121f(_0x1da87b,_0x3d1c62){_0x1da87b=_0x1da87b-0x138;const _0x3b1364=_0x3b13();let _0x121f69=_0x3b1364[_0x1da87b];return _0x121f69;}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x1f3e43){const _0x41a0cc=_0x121f,_0x3bb9d0={'GRhat':function(_0x13e674,_0x58e711){return _0x13e674!==_0x58e711;},'GkIjD':'plan','uLIFQ':function(_0x280258,_0x8441d5){return _0x280258(_0x8441d5);}},_0x25e400=await getEnabledHookContext(_0x1f3e43);if(!_0x25e400)return;if(_0x3bb9d0[_0x41a0cc(0x141)](_0x25e400['input']['permission_mode'],_0x3bb9d0['GkIjD']))return;if(!_0x3bb9d0[_0x41a0cc(0x138)](shouldShowPlanReminder,_0x25e400['sessionId']))return;printBlock('===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x207a06,_0xbe4cba){const _0x5b1b68=_0x597b,_0x2df318=_0x207a06();while(!![]){try{const _0x549fe9=-parseInt(_0x5b1b68(0x10d))/0x1*(-parseInt(_0x5b1b68(0x10f))/0x2)+-parseInt(_0x5b1b68(0x114))/0x3+parseInt(_0x5b1b68(0x112))/0x4+parseInt(_0x5b1b68(0x110))/0x5+-parseInt(_0x5b1b68(0x111))/0x6+parseInt(_0x5b1b68(0x10e))/0x7+-parseInt(_0x5b1b68(0x10c))/0x8;if(_0x549fe9===_0xbe4cba)break;else _0x2df318['push'](_0x2df318['shift']());}catch(_0x152963){_0x2df318['push'](_0x2df318['shift']());}}}(_0x6cda,0x94f23));function _0x597b(_0x54fa61,_0x345400){_0x54fa61=_0x54fa61-0x10c;const _0x6cda80=_0x6cda();let _0x597bc5=_0x6cda80[_0x54fa61];return _0x597bc5;}function _0x6cda(){const _0x1ae6a4=['6398588DNHqhG','2qkZoao','3918455AMpKsY','6906456SPGqiT','463516ICqOVk','===\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===','111432OLcxln','690800ItHyeI','70999OhGBvO'];_0x6cda=function(){return _0x1ae6a4;};return _0x6cda();}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x5597b0){const _0xdea0f1=_0x597b,_0x6c7d80=await getEnabledSessionId(_0x5597b0);if(!_0x6c7d80)return;printBlock(_0xdea0f1(0x113));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa9d22d,_0x15ea47){const _0x57705d=_0x1d10,_0x2530d8=_0xa9d22d();while(!![]){try{const _0x59dac5=-parseInt(_0x57705d(0x111))/0x1*(-parseInt(_0x57705d(0x108))/0x2)+-parseInt(_0x57705d(0x106))/0x3*(parseInt(_0x57705d(0x10e))/0x4)+parseInt(_0x57705d(0x10b))/0x5+parseInt(_0x57705d(0x105))/0x6*(-parseInt(_0x57705d(0x113))/0x7)+-parseInt(_0x57705d(0x109))/0x8*(-parseInt(_0x57705d(0x10f))/0x9)+-parseInt(_0x57705d(0x112))/0xa*(parseInt(_0x57705d(0x10d))/0xb)+-parseInt(_0x57705d(0x110))/0xc*(-parseInt(_0x57705d(0x10c))/0xd);if(_0x59dac5===_0x15ea47)break;else _0x2530d8['push'](_0x2530d8['shift']());}catch(_0xbbaeb0){_0x2530d8['push'](_0x2530d8['shift']());}}}(_0x17e9,0xe613a));function _0x1d10(_0x4eac16,_0x31c341){_0x4eac16=_0x4eac16-0x105;const _0x17e956=_0x17e9();let _0x1d1068=_0x17e956[_0x4eac16];return _0x1d1068;}function _0x17e9(){const _0x35ab18=['120czXkqA','SgVjZ','5502515mXMGfj','13HoTsLa','11kNuYtd','121468iDKlMY','458685QZhtQx','331032HpMEPd','31mPNCRe','200530OxGKZe','7QWdVui','log','wWZdG','7111266YAohCW','6cCFCAJ','PostToolUse','20376UNvHNd'];_0x17e9=function(){return _0x35ab18;};return _0x17e9();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x5e5602){const _0x24ee8b=_0x1d10,_0x3dbb1c={'SgVjZ':function(_0x2c820f,_0x42f5ea){return _0x2c820f(_0x42f5ea);},'wWZdG':function(_0x17e5d1,_0x3b9c3b){return _0x17e5d1(_0x3b9c3b);},'oHnko':function(_0xb33df6,_0x409293){return _0xb33df6(_0x409293);},'OfEhF':_0x24ee8b(0x107)},_0x61fbb2=await _0x3dbb1c[_0x24ee8b(0x10a)](getEnabledSessionId,_0x5e5602);if(!_0x61fbb2)return;_0x3dbb1c[_0x24ee8b(0x115)](updateBranchTracking,_0x61fbb2);const _0x5ae00e=await getToken();if(!_0x5ae00e)return;const _0x3c0631=_0x3dbb1c['oHnko'](getSessionEntry,_0x61fbb2);if(_0x3c0631){const _0x58c19e={'hookSpecificOutput':{'hookEventName':_0x3dbb1c['OfEhF'],'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON['stringify'](_0x58c19e));return;}const _0x29de2a={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console[_0x24ee8b(0x114)](JSON['stringify'](_0x29de2a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5eaa49,_0x13785c){const _0x452bdb=_0x5d4f,_0x175d97=_0x5eaa49();while(!![]){try{const _0x5579b6=-parseInt(_0x452bdb(0xa4))/0x1*(parseInt(_0x452bdb(0xa6))/0x2)+parseInt(_0x452bdb(0xa1))/0x3+parseInt(_0x452bdb(0xa9))/0x4+parseInt(_0x452bdb(0xaa))/0x5*(-parseInt(_0x452bdb(0xa8))/0x6)+parseInt(_0x452bdb(0xac))/0x7*(-parseInt(_0x452bdb(0xa5))/0x8)+-parseInt(_0x452bdb(0xa7))/0x9+parseInt(_0x452bdb(0xa3))/0xa*(parseInt(_0x452bdb(0xab))/0xb);if(_0x5579b6===_0x13785c)break;else _0x175d97['push'](_0x175d97['shift']());}catch(_0x379f93){_0x175d97['push'](_0x175d97['shift']());}}}(_0x35da,0x48312));function _0x5d4f(_0x1a44ab,_0x3f1bde){_0x1a44ab=_0x1a44ab-0xa1;const _0x35daf4=_0x35da();let _0x5d4f52=_0x35daf4[_0x1a44ab];return _0x5d4f52;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x35da(){const _0xcaa6a1=['505476LxVfjl','2223081TuAUEA','6QYdkFj','1885340GtYXwP','2630315MwyqwP','22uJBhbp','2170413XxKZqR','1407348hMJhvs','===\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`.','4719270LjsxBp','2lQTqPI','8PoEMiI'];_0x35da=function(){return _0xcaa6a1;};return _0x35da();}export async function preCompact(_0x4792b0){const _0x820b3c=_0x5d4f,_0x82075b={'zTzOv':function(_0x5e1c20,_0x55ae82){return _0x5e1c20(_0x55ae82);}},_0x5d5ae8=await _0x82075b['zTzOv'](getEnabledSessionId,_0x4792b0);if(!_0x5d5ae8)return;try{const _0x2a99ea=await getToken();if(!_0x2a99ea)return;printBlock(_0x820b3c(0xa2));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x529fb6,_0x59f35f){const _0x56d461=_0xe644,_0x3d6f8f=_0x529fb6();while(!![]){try{const _0x3fa6f3=parseInt(_0x56d461(0x14f))/0x1+parseInt(_0x56d461(0x14d))/0x2*(-parseInt(_0x56d461(0x15a))/0x3)+parseInt(_0x56d461(0x158))/0x4*(-parseInt(_0x56d461(0x15b))/0x5)+parseInt(_0x56d461(0x153))/0x6*(-parseInt(_0x56d461(0x152))/0x7)+parseInt(_0x56d461(0x156))/0x8*(-parseInt(_0x56d461(0x157))/0x9)+parseInt(_0x56d461(0x155))/0xa*(-parseInt(_0x56d461(0x15d))/0xb)+parseInt(_0x56d461(0x150))/0xc*(parseInt(_0x56d461(0x15c))/0xd);if(_0x3fa6f3===_0x59f35f)break;else _0x3d6f8f['push'](_0x3d6f8f['shift']());}catch(_0x4dc1c4){_0x3d6f8f['push'](_0x3d6f8f['shift']());}}}(_0x424f,0x98e99));function _0xe644(_0x3a7cf1,_0x36237c){_0x3a7cf1=_0x3a7cf1-0x14d;const _0x424fc6=_0x424f();let _0xe644ea=_0x424fc6[_0x3a7cf1];return _0xe644ea;}function _0x424f(){const _0x30a49e=['935701dxnRWM','12rowxTn','wQdZF','98qIuJOM','89382quWDpi','clear','311510olsxLq','1296544MXenbE','9sbQjWK','9524oVNVjP','env','39ZwBBCI','1685OAIbuf','32297005DLyhPL','231NBOivI','148702QHdOVX','session_id'];_0x424f=function(){return _0x30a49e;};return _0x424f();}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x7cb4bd){const _0x169eb2=_0xe644,_0x17809c={'wQdZF':function(_0x9d0a4d,_0x2bc7a6){return _0x9d0a4d===_0x2bc7a6;},'rgOoY':_0x169eb2(0x154)},_0x3549d5=process[_0x169eb2(0x159)]['CLAUDE_SESSION_ID'];let _0x5b1f2a=_0x7cb4bd,_0x56b56d;if(!_0x7cb4bd){if(_0x3549d5&&!isSessionEnabled(_0x3549d5))return;const _0x5c3c82=await readHookInput();_0x5b1f2a=_0x5c3c82?.[_0x169eb2(0x14e)]||_0x3549d5,_0x56b56d=_0x5c3c82?.['reason'];}if(!_0x5b1f2a)return;_0x17809c[_0x169eb2(0x151)](_0x56b56d,_0x17809c['rgOoY'])&&recordEnabledSessionCleared(_0x5b1f2a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42998a,_0x44e756){const _0x53c76e=_0x390c,_0x5d171f=_0x42998a();while(!![]){try{const _0x221ae6=parseInt(_0x53c76e(0xf1))/0x1*(-parseInt(_0x53c76e(0xf4))/0x2)+parseInt(_0x53c76e(0x103))/0x3*(-parseInt(_0x53c76e(0xf7))/0x4)+parseInt(_0x53c76e(0x10a))/0x5*(parseInt(_0x53c76e(0xed))/0x6)+parseInt(_0x53c76e(0x101))/0x7+parseInt(_0x53c76e(0xf2))/0x8*(parseInt(_0x53c76e(0xff))/0x9)+-parseInt(_0x53c76e(0x104))/0xa+parseInt(_0x53c76e(0xfb))/0xb*(parseInt(_0x53c76e(0xf8))/0xc);if(_0x221ae6===_0x44e756)break;else _0x5d171f['push'](_0x5d171f['shift']());}catch(_0x3e037f){_0x5d171f['push'](_0x5d171f['shift']());}}}(_0x1922,0x7d9a4));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x390c(_0x523fc6,_0x229802){_0x523fc6=_0x523fc6-0xed;const _0x1922a2=_0x1922();let _0x390c73=_0x1922a2[_0x523fc6];return _0x390c73;}import{getToken}from'../utils/keychain.js';function _0x1922(){const _0x249cea=['1ljohEU','8wxTSae','trackCommandStart','2037460yiqoqq','rNRrN','stringify','17252UUEAjJ','12dmmgnR','trackCommandEnd','stdin','12620245sQRoTc','vBwQV','rcXpr','akzCg','2721321AYpahH','FrPyz','3607100NgtLUn','parse','66zBoHKH','5040400BiEsNG','aXXWZ','success','KHPmy','log','PrKPb','55720SYvZVM','90HhpUIK','CLAUDE_ENV_FILE','eTEXT','adwDn'];_0x1922=function(){return _0x249cea;};return _0x1922();}const RANGER_AUTO_ENABLED_PROMPT='=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================';export async function sessionStart(_0x45557c){const _0x5002c8=_0x390c,_0x6c9c5a={'rcXpr':'session_id','FrPyz':function(_0x1c5753,_0x134d9a){return _0x1c5753&&_0x134d9a;},'XKJdY':function(_0x8d2641,_0x435518,_0x4e8b9f){return _0x8d2641(_0x435518,_0x4e8b9f);},'rNRrN':function(_0x3e47c9){return _0x3e47c9();},'eTEXT':function(_0x5dfb48,_0x223e2c){return _0x5dfb48(_0x223e2c);},'xiiuU':function(_0xd179d3,_0x919458){return _0xd179d3(_0x919458);},'SXMpT':function(_0x58c7a3,_0x4d3dd9){return _0x58c7a3(_0x4d3dd9);},'akzCg':_0x5002c8(0x106),'aXXWZ':function(_0x71f6ca){return _0x71f6ca();},'vBwQV':'main','KHPmy':'master','adwDn':'SessionStart','PrKPb':function(_0x39f36d,_0x57b1fe){return _0x39f36d+_0x57b1fe;}};let _0x147eba=_0x45557c||'',_0x42fbf1;if(!_0x45557c){let _0x380ea1='';for await(const _0x195937 of process[_0x5002c8(0xfa)]){_0x380ea1+=_0x195937;}try{const _0x27688a=JSON[_0x5002c8(0x102)](_0x380ea1);_0x147eba=_0x27688a[_0x6c9c5a[_0x5002c8(0xfd)]]||'',_0x42fbf1=_0x27688a['source'];}catch{}const _0x76433=process['env'][_0x5002c8(0xee)];if(_0x6c9c5a[_0x5002c8(0x100)](_0x76433,_0x147eba))try{await _0x6c9c5a['XKJdY'](appendFile,_0x76433,'export\x20CLAUDE_SESSION_ID=\x22'+_0x147eba+'\x22\x0a');}catch{}}try{await _0x6c9c5a[_0x5002c8(0xf5)](getToken);}catch{}if(_0x147eba){_0x6c9c5a['eTEXT'](shouldAutoEnableAfterClear,_0x42fbf1)&&autoEnableAfterClear(_0x147eba);_0x6c9c5a[_0x5002c8(0xef)](initBranchTracking,_0x147eba);const _0x515290=_0x6c9c5a['xiiuU'](isSessionEnabled,_0x147eba);try{const _0x2c0acf=_0x6c9c5a['SXMpT'](createTelemetryCollector,'hook:session-start');await _0x2c0acf[_0x5002c8(0xf3)]({'sessionId':_0x147eba,'hooksEnabled':_0x515290}),await _0x2c0acf[_0x5002c8(0xf9)](_0x6c9c5a[_0x5002c8(0xfe)]);}catch{}if(_0x515290){const _0x2c9670=_0x6c9c5a[_0x5002c8(0x105)](getCurrentBranch),_0x32c22c=_0x2c9670&&_0x2c9670!==_0x6c9c5a[_0x5002c8(0xfc)]&&_0x2c9670!==_0x6c9c5a[_0x5002c8(0x107)]?'\x20(Branch:\x20'+_0x2c9670+')':'',_0x69d729={'hookSpecificOutput':{'hookEventName':_0x6c9c5a[_0x5002c8(0xf0)],'additionalContext':_0x6c9c5a[_0x5002c8(0x109)](RANGER_AUTO_ENABLED_PROMPT,_0x32c22c)}};console[_0x5002c8(0x108)](JSON[_0x5002c8(0xf6)](_0x69d729));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4dae(){const _0x29c85e=['currentSessionId','1453723VkOjoK','4355tWJyJe','1950384ycTsNU','success','495267ALwjqv','filter','ZsMwz','7400178VwQLBi','stringify','sNSAx','4366614CtBUxN','checklistItems','AkzAO','verified','status','Stop','log','2920HNyqiu','trackCommandStart','featureId','DBomc','45558JXuczz','sessionId','incomplete','3292alLWHK'];_0x4dae=function(){return _0x29c85e;};return _0x4dae();}(function(_0xf33c7a,_0x221cb5){const _0x295911=_0xd983,_0x50b5a8=_0xf33c7a();while(!![]){try{const _0x380811=-parseInt(_0x295911(0xc4))/0x1+-parseInt(_0x295911(0xc6))/0x2+parseInt(_0x295911(0xc8))/0x3+parseInt(_0x295911(0xdc))/0x4*(parseInt(_0x295911(0xc5))/0x5)+parseInt(_0x295911(0xcb))/0x6+-parseInt(_0x295911(0xce))/0x7+parseInt(_0x295911(0xd5))/0x8*(parseInt(_0x295911(0xd9))/0x9);if(_0x380811===_0x221cb5)break;else _0x50b5a8['push'](_0x50b5a8['shift']());}catch(_0x38ed99){_0x50b5a8['push'](_0x50b5a8['shift']());}}}(_0x4dae,0xde376));function _0xd983(_0x112e34,_0x181694){_0x112e34=_0x112e34-0xc4;const _0x4dae68=_0x4dae();let _0xd98303=_0x4dae68[_0x112e34];return _0xd98303;}import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x238514){const _0x12f627=_0xd983,_0x5dd98f={'sNSAx':function(_0x17a058,_0x397f29,_0x3a4e24,_0x2025c5){return _0x17a058(_0x397f29,_0x3a4e24,_0x2025c5);},'RAbNO':function(_0x196d6a,_0x386c09){return _0x196d6a(_0x386c09);},'ZsMwz':function(_0x302922,_0xce2f2d){return _0x302922&&_0xce2f2d;},'DBomc':function(_0x34682b,_0x3ca21d,_0x4bfcc7){return _0x34682b(_0x3ca21d,_0x4bfcc7);}},_0x3b4700=await getEnabledHookContext(_0x238514),_0x30e0a0=_0x3b4700?.[_0x12f627(0xda)]??null;let _0x228743=!![];if(!_0x30e0a0){await _0x5dd98f[_0x12f627(0xcd)](trackStop,_0x30e0a0,![],_0x228743);return;}try{const _0x2285fb=_0x5dd98f['RAbNO'](getSessionEntry,_0x30e0a0);if(!_0x2285fb){await _0x5dd98f[_0x12f627(0xcd)](trackStop,_0x30e0a0,!![],_0x228743);return;}const _0x309d1a=await getToken(),_0x2cd951='https://dashboard.ranger.net/features/'+_0x2285fb['featureId'];let _0xb9036a=null,_0x2ab879=![],_0x56e82f=![];if(_0x309d1a)try{const _0x25f959=await getFeature(_0x2285fb['featureId']);_0xb9036a=_0x25f959[_0x12f627(0xdd)]??null;const _0x451c89=_0x25f959[_0x12f627(0xcf)][_0x12f627(0xc9)](_0x8ec09d=>_0x8ec09d[_0x12f627(0xda)]===_0xb9036a);_0x2ab879=_0x451c89['some'](_0x38950c=>_0x38950c['status']!==_0x12f627(0xd1)&&_0x38950c[_0x12f627(0xd2)]!=='blocked'&&_0x38950c['status']!=='closed'&&_0x38950c['status']!==_0x12f627(0xdb)),_0x56e82f=_0x451c89['some'](_0x4f762c=>_0x4f762c['status']==='verification_in_progress');}catch{}if(_0x309d1a&&_0xb9036a&&_0x2ab879){if(!_0x56e82f&&shouldShowStopReminder(_0x30e0a0)){const _0x4a4a52={'hookSpecificOutput':{'hookEventName':_0x12f627(0xd3),'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'+_0x2cd951}};console[_0x12f627(0xd4)](JSON[_0x12f627(0xcc)](_0x4a4a52));}}if(_0x5dd98f[_0x12f627(0xca)](_0x309d1a,_0xb9036a)&&!_0x2ab879)try{await _0x5dd98f[_0x12f627(0xd8)](concludeSession,_0x2285fb[_0x12f627(0xd7)],_0xb9036a);}catch{}await trackStop(_0x30e0a0,!![],_0x228743);return;}catch{await trackStop(_0x30e0a0,!![],_0x228743);return;}}async function trackStop(_0xd59ba,_0x3bce89,_0x65caca){const _0x5db06f=_0xd983,_0x4b7e98={'GjQBX':'hook:stop','AkzAO':_0x5db06f(0xc7)};try{const _0x30646b=createTelemetryCollector(_0x4b7e98['GjQBX']);await _0x30646b[_0x5db06f(0xd6)]({'sessionId':_0xd59ba??undefined,'hooksEnabled':_0x3bce89,'stopAllowed':_0x65caca}),await _0x30646b['trackCommandEnd'](_0x4b7e98[_0x5db06f(0xd0)]);}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x396d(_0x21b156,_0x2a12d6){_0x21b156=_0x21b156-0xa1;var _0x213819=_0x2138();var _0x396d93=_0x213819[_0x21b156];return _0x396d93;}(function(_0x52aad6,_0x18324d){var _0x2a9d19=_0x396d,_0x5d80a6=_0x52aad6();while(!![]){try{var _0x32f840=parseInt(_0x2a9d19(0xa6))/0x1+parseInt(_0x2a9d19(0xa9))/0x2*(-parseInt(_0x2a9d19(0xa1))/0x3)+parseInt(_0x2a9d19(0xa4))/0x4+-parseInt(_0x2a9d19(0xa5))/0x5+parseInt(_0x2a9d19(0xaa))/0x6+-parseInt(_0x2a9d19(0xa8))/0x7*(-parseInt(_0x2a9d19(0xa3))/0x8)+-parseInt(_0x2a9d19(0xa2))/0x9*(parseInt(_0x2a9d19(0xa7))/0xa);if(_0x32f840===_0x18324d)break;else _0x5d80a6['push'](_0x5d80a6['shift']());}catch(_0x1c2a0e){_0x5d80a6['push'](_0x5d80a6['shift']());}}}(_0x2138,0x1d98a));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';function _0x2138(){var _0x384d43=['3MSGxJt','53451nVaiBL','407912XoSMzm','494972KJKuPz','262545RdATIa','5402HDKxEk','110IGtWor','21oGUEoD','466366ZuPkaq','1140810tqQgXl'];_0x2138=function(){return _0x384d43;};return _0x2138();}
|