@ranger-testing/ranger-cli 2.3.2 → 2.4.1
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/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/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/claudePlugin.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/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.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/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.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/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/verifyInBrowser.js +1 -1
- package/package.json +1 -1
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x18f45b=_0x484c;(function(_0x54d901,_0x374251){const _0x5b4b83=_0x484c,_0x423e58=_0x54d901();while(!![]){try{const _0x356b08=parseInt(_0x5b4b83(0xc0))/0x1+-parseInt(_0x5b4b83(0xd3))/0x2*(-parseInt(_0x5b4b83(0xcf))/0x3)+parseInt(_0x5b4b83(0xc5))/0x4*(parseInt(_0x5b4b83(0xca))/0x5)+-parseInt(_0x5b4b83(0xd4))/0x6*(parseInt(_0x5b4b83(0xc7))/0x7)+-parseInt(_0x5b4b83(0xd8))/0x8+-parseInt(_0x5b4b83(0xc2))/0x9*(parseInt(_0x5b4b83(0xd1))/0xa)+parseInt(_0x5b4b83(0xbf))/0xb;if(_0x356b08===_0x374251)break;else _0x423e58['push'](_0x423e58['shift']());}catch(_0x539687){_0x423e58['push'](_0x423e58['shift']());}}}(_0x4568,0xd0519));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x18f45b(0xbd)];function parseValue(_0x4355d1,_0xf93e9f){const _0x101a0c=_0x18f45b,_0x32873b={'SUshy':function(_0x1005c5,_0x593d5d){return _0x1005c5===_0x593d5d;},'UXdNj':function(_0x54ea60,_0x314e8d){return _0x54ea60===_0x314e8d;},'mROLk':'false'};if(BOOLEAN_KEYS['includes'](_0x4355d1)){if(_0x32873b[_0x101a0c(0xd0)](_0xf93e9f,'true'))return!![];if(_0x32873b['UXdNj'](_0xf93e9f,_0x32873b[_0x101a0c(0xd7)]))return![];throw new Error(_0x101a0c(0xc4)+_0x4355d1+_0x101a0c(0xc3));}return _0xf93e9f;}export async function configSet(_0x3c8fa9,_0x5d4575,_0x43a2ac){const _0x37d27d=_0x18f45b,_0x11f5dc={'skOqS':function(_0x3f6bd8,_0x3cca28){return _0x3f6bd8(_0x3cca28);},'kkkWk':function(_0x3a815d,_0x148850,_0x2dd25b){return _0x3a815d(_0x148850,_0x2dd25b);},'ONQzU':function(_0x32cf7c,_0x3f888a,_0x3a4125){return _0x32cf7c(_0x3f888a,_0x3a4125);}},_0xf1b5c3=_0x11f5dc[_0x37d27d(0xc6)](getEnvDir,_0x3c8fa9);if(!existsSync(_0xf1b5c3))throw new Error(_0x37d27d(0xcc)+_0x3c8fa9+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x3c8fa9);const _0x1614ad=await _0x11f5dc[_0x37d27d(0xc6)](loadSettings,_0x3c8fa9),_0x4f7782=_0x11f5dc[_0x37d27d(0xd5)](parseValue,_0x5d4575,_0x43a2ac);setNestedValue(_0x1614ad,_0x5d4575,_0x4f7782),await _0x11f5dc[_0x37d27d(0xce)](saveSettings,_0x3c8fa9,_0x1614ad),console['log'](_0x37d27d(0xc9)+_0x5d4575+_0x37d27d(0xc1)+_0x4f7782);}export async function configGet(_0x192ff0,_0x34de8a){const _0xeee32e=_0x18f45b,_0xd1271f={'KauiD':function(_0x37d6ee,_0x79b0d4){return _0x37d6ee(_0x79b0d4);},'zLsyc':function(_0x2b5367,_0x1dc974,_0x78cc7e){return _0x2b5367(_0x1dc974,_0x78cc7e);},'yvFFK':function(_0x5ea9ca,_0x2bbedb){return _0x5ea9ca===_0x2bbedb;}},_0x328063=getEnvDir(_0x192ff0);if(!existsSync(_0x328063))throw new Error(_0xeee32e(0xcc)+_0x192ff0+_0xeee32e(0xc8));const _0x8bac40=await _0xd1271f['KauiD'](loadSettings,_0x192ff0),_0x225394=_0xd1271f['zLsyc'](getNestedValue,_0x8bac40,_0x34de8a);if(_0xd1271f['yvFFK'](_0x225394,undefined))console[_0xeee32e(0xbc)]('(not\x20set)');else typeof _0x225394===_0xeee32e(0xcb)?console[_0xeee32e(0xbc)](JSON['stringify'](_0x225394,null,0x2)):console['log'](_0x225394);}function _0x484c(_0x449ec1,_0x414a6f){_0x449ec1=_0x449ec1-0xbc;const _0x45680f=_0x4568();let _0x484c30=_0x45680f[_0x449ec1];return _0x484c30;}export async function configList(_0x4afcd9){const _0x47c52f=_0x18f45b,_0x226301={'zpGWg':function(_0x57f68e,_0x3b9099){return _0x57f68e(_0x3b9099);}},_0x99c31a=getSettingsPath(_0x4afcd9);if(!existsSync(_0x99c31a)){const _0x12555b=getEnvDir(_0x4afcd9);if(!existsSync(_0x12555b))throw new Error(_0x47c52f(0xcc)+_0x4afcd9+_0x47c52f(0xc8));console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x4afcd9+'\x22');return;}const _0x2b179e=await _0x226301['zpGWg'](loadSettings,_0x4afcd9),_0x5c7a5f=formatSettings(_0x2b179e);!_0x5c7a5f?console['log'](_0x47c52f(0xcd)+_0x4afcd9+'\x22'):console[_0x47c52f(0xbc)](_0x5c7a5f);}function _0x4568(){const _0x518682=[':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','Invalid\x20value\x20for\x20','137668SYKOho','skOqS','8940169GDpDIP','\x22\x20does\x20not\x20exist.','Set\x20','205cKdrQp','object','Profile\x20\x22','No\x20configuration\x20set\x20for\x20\x22','ONQzU','357699JiADLO','SUshy','1958930CCHHUb','Key\x20\x22','10xyiNOI','6DKyEXU','kkkWk','xHPnG','mROLk','11503824rTwRzP','log','allowInsecureLocalhost','\x22\x20not\x20found','26933302PVEfOK','92139YkhZls','\x20=\x20','45yMhgLR'];_0x4568=function(){return _0x518682;};return _0x4568();}export async function configUnset(_0x1dadbc,_0x147334){const _0x46c452=_0x18f45b,_0x1f4a29={'xHPnG':function(_0xe3d778,_0x34427e){return _0xe3d778(_0x34427e);}},_0x458790=_0x1f4a29['xHPnG'](getEnvDir,_0x1dadbc);if(!_0x1f4a29[_0x46c452(0xd6)](existsSync,_0x458790))throw new Error(_0x46c452(0xcc)+_0x1dadbc+'\x22\x20does\x20not\x20exist.');const _0x2a59d2=await loadSettings(_0x1dadbc),_0x4c17f1=deleteNestedValue(_0x2a59d2,_0x147334);_0x4c17f1?(await saveSettings(_0x1dadbc,_0x2a59d2),console[_0x46c452(0xbc)]('Removed\x20'+_0x147334)):console[_0x46c452(0xbc)](_0x46c452(0xd2)+_0x147334+_0x46c452(0xbe));}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x142c5e=_0x3f1c;(function(_0x50326c,_0x21556c){const _0x5068d8=_0x3f1c,_0x5afed3=_0x50326c();while(!![]){try{const _0x2f0f29=parseInt(_0x5068d8(0x76))/0x1+-parseInt(_0x5068d8(0x8e))/0x2+parseInt(_0x5068d8(0x6e))/0x3*(-parseInt(_0x5068d8(0x89))/0x4)+-parseInt(_0x5068d8(0x7f))/0x5*(-parseInt(_0x5068d8(0x85))/0x6)+-parseInt(_0x5068d8(0x6a))/0x7*(-parseInt(_0x5068d8(0x7c))/0x8)+-parseInt(_0x5068d8(0x75))/0x9*(parseInt(_0x5068d8(0x81))/0xa)+-parseInt(_0x5068d8(0x86))/0xb*(-parseInt(_0x5068d8(0x6b))/0xc);if(_0x2f0f29===_0x21556c)break;else _0x5afed3['push'](_0x5afed3['shift']());}catch(_0x1be45a){_0x5afed3['push'](_0x5afed3['shift']());}}}(_0x3c2f,0xbbf5b));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x3c2f(){const _0x5c257f=['baseUrl','startsWith','log','QrQOn','\x0aProfiles:','SIGmO','126Pnesin','536480fvmMJu','.txt','push','Run:\x20ranger\x20profile\x20add\x20<profile-name>','local','reports','1712IPEtOA','oTOgD','sessions','24355BjDQFP','\x20\x20\x20\x20\x20\x20Details:\x20','142320IVDTsd','LTqFO','environmentDetails','endsWith','492nTcwTB','233134PfEzsL','JFJOl','iNxag','459532zzKgwj','LyQJM','lmIQV','mbxHM','LBhwZ','2083864ogErqi','43449CSVoVl','312MnvvEJ','settings.json','HamRO','21bJHmsr'];_0x3c2f=function(){return _0x5c257f;};return _0x3c2f();}import{getRangerDir}from'./utils/rangerRoot.js';function _0x3f1c(_0x4bf05a,_0x33e0f2){_0x4bf05a=_0x4bf05a-0x6a;const _0x3c2fe2=_0x3c2f();let _0x3f1cba=_0x3c2fe2[_0x4bf05a];return _0x3f1cba;}import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0x142c5e(0x7e),'bug-bashes',_0x142c5e(0x7b),_0x142c5e(0x7a),'ci'];export async function getEnvNames(){const _0x3045a6=_0x142c5e,_0x2c268e={'iNxag':function(_0x40f03a,_0x45a3a0){return _0x40f03a(_0x45a3a0);},'HamRO':function(_0x3217e3){return _0x3217e3();},'LBhwZ':function(_0x360d5d,_0x2f4bcd,_0x253cd0){return _0x360d5d(_0x2f4bcd,_0x253cd0);},'mbxHM':'local','LyQJM':function(_0x4621b1,_0x479b02){return _0x4621b1(_0x479b02);},'QatsS':_0x3045a6(0x77),'SIGmO':function(_0x1916cf,_0x5f7a73){return _0x1916cf(_0x5f7a73);},'lmIQV':function(_0x8d3c44,_0x265d2b,_0xa419d8){return _0x8d3c44(_0x265d2b,_0xa419d8);},'EHBrm':_0x3045a6(0x6c),'saIkC':'legacy'},_0x39543e=getRangerDir();if(!_0x2c268e[_0x3045a6(0x88)](existsSync,_0x39543e))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x3a55e1=await _0x2c268e[_0x3045a6(0x6d)](readActiveProfileName),_0x57a9e5=[],_0x4872c9={},_0x5b3f3f=_0x2c268e[_0x3045a6(0x8d)](join,_0x39543e,_0x2c268e[_0x3045a6(0x8c)]);if(existsSync(_0x5b3f3f)){const _0x37e32a=await _0x2c268e['iNxag'](readdir,_0x5b3f3f);for(const _0xd51990 of _0x37e32a){const _0x499cb8=join(_0x5b3f3f,_0xd51990),_0x35beaf=await stat(_0x499cb8);_0x35beaf['isDirectory']()&&(_0x57a9e5['push'](_0xd51990),_0x4872c9[_0xd51990]=_0x3045a6(0x7a));}}const _0x133556=join(_0x39543e,'ci');if(existsSync(_0x133556)){const _0x46699a=await readdir(_0x133556);for(const _0x174534 of _0x46699a){const _0x6e621a=join(_0x133556,_0x174534),_0x38ff11=await _0x2c268e[_0x3045a6(0x8a)](stat,_0x6e621a);_0x38ff11['isDirectory']()&&(_0x57a9e5['push'](_0x174534),_0x4872c9[_0x174534]='ci');}}const _0x1cf9b2=await _0x2c268e[_0x3045a6(0x8a)](readdir,_0x39543e);for(const _0x5b17e6 of _0x1cf9b2){if(NON_ENV_DIRS['includes'](_0x5b17e6))continue;if(_0x5b17e6[_0x3045a6(0x70)]('.'))continue;if(_0x5b17e6[_0x3045a6(0x84)](_0x2c268e['QatsS']))continue;const _0x117440=join(_0x39543e,_0x5b17e6),_0x2871c0=await _0x2c268e['SIGmO'](stat,_0x117440);_0x2871c0['isDirectory']()&&_0x2c268e[_0x3045a6(0x74)](existsSync,_0x2c268e[_0x3045a6(0x8b)](join,_0x117440,_0x2c268e['EHBrm']))&&(!_0x57a9e5['includes'](_0x5b17e6)&&(_0x57a9e5[_0x3045a6(0x78)](_0x5b17e6),_0x4872c9[_0x5b17e6]=_0x2c268e['saIkC']));}return{'envNames':_0x57a9e5,'activeEnv':_0x3a55e1,'envTypes':_0x4872c9};}export async function envList(){const _0x4b2b3e=_0x142c5e,_0x59420e={'QrQOn':'\x0aNo\x20profiles\x20found.','DTjaQ':_0x4b2b3e(0x79),'pxwel':_0x4b2b3e(0x73),'LTqFO':function(_0x29f909,_0x2c629d){return _0x29f909===_0x2c629d;},'JFJOl':'local','oTOgD':function(_0x2b36d0,_0x3ba577){return _0x2b36d0(_0x3ba577);}},{envNames:_0x4bd097,activeEnv:_0x573b37,envTypes:_0xfc0f5c}=await getEnvNames();if(_0x4bd097['length']===0x0){console[_0x4b2b3e(0x71)](_0x59420e[_0x4b2b3e(0x72)]),console[_0x4b2b3e(0x71)](_0x59420e['DTjaQ']);return;}console[_0x4b2b3e(0x71)](_0x59420e['pxwel']);for(const _0x48cda6 of _0x4bd097['sort']()){const _0x48ce1a=_0x59420e[_0x4b2b3e(0x82)](_0x48cda6,_0x573b37),_0x457989=_0xfc0f5c[_0x48cda6]||_0x59420e[_0x4b2b3e(0x87)],_0x1a36bc=await _0x59420e[_0x4b2b3e(0x7d)](loadSettings,_0x48cda6),_0x38f0eb=_0x457989==='legacy'?'':'\x20['+_0x457989+']';console['log']('\x20\x20'+(_0x48ce1a?'*\x20':'\x20\x20')+_0x48cda6+_0x38f0eb),_0x1a36bc[_0x4b2b3e(0x6f)]&&console[_0x4b2b3e(0x71)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x1a36bc[_0x4b2b3e(0x6f)]),_0x1a36bc['environmentDetails']&&console[_0x4b2b3e(0x71)](_0x4b2b3e(0x80)+_0x1a36bc[_0x4b2b3e(0x83)]);}_0x573b37&&console['log']('\x0a*\x20=\x20active\x20profile');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x442b66=_0xca9d;(function(_0x97c95a,_0x4b0f7d){const _0x655f38=_0xca9d,_0x533bd9=_0x97c95a();while(!![]){try{const _0x156be8=-parseInt(_0x655f38(0x17f))/0x1+-parseInt(_0x655f38(0x1be))/0x2*(-parseInt(_0x655f38(0x122))/0x3)+parseInt(_0x655f38(0x158))/0x4+-parseInt(_0x655f38(0x181))/0x5*(-parseInt(_0x655f38(0x16f))/0x6)+parseInt(_0x655f38(0x1ca))/0x7+-parseInt(_0x655f38(0x151))/0x8+-parseInt(_0x655f38(0x185))/0x9*(-parseInt(_0x655f38(0x166))/0xa);if(_0x156be8===_0x4b0f7d)break;else _0x533bd9['push'](_0x533bd9['shift']());}catch(_0x2cfa4d){_0x533bd9['push'](_0x533bd9['shift']());}}}(_0x226a,0xc0f5e));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';function _0x226a(){const _0x15c3f9=['\x20\x20\x20Branch:\x20','NclFt','from','Not\x20in\x20a\x20git\x20repository.','\x20scenario(s).','zeUTb','\x0a✅\x20Session\x20is\x20already\x20completed.','sessionId','element','checklistItems','assets','toLocaleString','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Screenshot\x20','\x20feature\x20review(s)\x20found','ODrMH','\x0aNo\x20feature\x20reviews\x20found.','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','uITnL','replace','terminalReason','completedAt','type','GkAHu','rSjcB','offset','EWKpx','NyaGr','notes','split','status','\x20\x20✅\x20No\x20feedback\x20to\x20address','Showing\x20','spatial','version','latestReview','gTmLk','3|0|4|1|2|5','No\x20active\x20session\x20for\x20this\x20feature\x20review.','RRDmz','8923312ewvMfn','vcczT','currentBranch','bxOpY','\x20--include-deleted','incompleteReason','jtOOI','5527436sZGpQt',':\x20\x22','json','round','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x0a✅\x20Scenario\x20added','IGXVu','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','storage','\x20—\x20no\x20comments','eszob','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','KFwmU','4504030DJSQTk','trim','\x20\x20\x20\x20\x20Progress:\x20','verifiedItems','scenario','pipe','filter','DgFlZ','EMOjE','2046BBzcRC','stats','linkedSession','HspFw','screenshotUrls','arrayBuffer','rApkN','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','domRef','\x20\x20Expected\x20flow:','\x20scenarios.','\x0a✅\x20Report\x20generated:\x20','toFixed','\x20verified','gitBranch','env','584582VZADnH','uykKE','6430hsUNqW','IbtyF','canceledReason','blockedItems','9fbKBPR','fbTyy','totalCount','\x20\x20\x20Description:\x20','cXwlB','ygMBf','CGIlH','\x1b[0m','bILba','TRBQF','prompt','ognrz','isInteger','\x20incomplete','completed','short','XvlHV','limit','ksLou','includeDeleted','\x0aGenerating\x20report...','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','closed','dashboardUrl','blocked','\x0aAvailable\x20scenarios:','stringify','log','browserSessionId','feedback-images','piJjI','\x0a\x20\x20\x20Scenarios:','kkjZX','verification_in_progress','\x20\x20\x20\x20\x20\x20Incomplete:\x20','in_progress','screenshot','error','qIokl','position','length','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','\x20\x20\x20Completed:\x20','\x20\x20\x20','selected','\x20\x20\x20\x20\x20\x20Cancelled:\x20','Pzhnm','\x20/\x20','CMWMV','\x20concluded.','submittedAt','\x0aCreating\x20feature\x20review...','\x20\x20\x20Updated\x20branch\x20to:\x20','write','push','iteration','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','2AURaJF','\x20\x20\x20▶️\x20Started\x20session\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','ready','currentSessionId','\x20[has\x20reviewer\x20feedback]','wUNNd','FSMgq','\x20(v','find','CevcJ','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','1369025RNuKtt','verified','toLocaleDateString','oKJRE','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','map','name','eYqPQ','stdin','UkFSV','\x0a✅\x20Scenario\x20updated','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','assetUrl','nPKSJ','FbasH','):\x20\x22','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0a⚠️\x20\x20','djxVY','content','.\x20Feature\x20review\x20has\x20','repeat','stepName','.png','items','/api/v1/mcp/browser-sessions/','agentResponse','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20—\x20','unaddressedComments','CLAUDE_SESSION_ID','join','euSJq','\x0a❌\x20Invalid\x20scenario\x20index:\x20','pendingItems','No\x20sessions\x20found.','XbXAB','utf-8','isKeyStep','git\x20rev-parse\x20--abbrev-ref\x20HEAD','canonicalFlow','exit','GtILz','tRBbm','lbGVs','\x0a✅\x20Resumed\x20feature\x20review:\x20','YTocP','REYgo','dsauP','createdAt','fGGjB','eQxgn','gitRepoUrl','description','\x20--limit\x20','ndTik','71997iwyULh','selector','scenarios','cGsDu','\x20\x20\x20Created:\x20','blockedReason'];_0x226a=function(){return _0x15c3f9;};return _0x226a();}import{existsSync}from'fs';import{execSync}from'child_process';import _0x529460 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';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x5b201e=>'\x1b[1m'+_0x5b201e+_0x442b66(0x18c);function getGitRepoUrl(){const _0x5c175e=_0x442b66,_0x55c04d={'piJjI':'pipe','dsauP':'github.com/'};try{const _0x3373cd=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x5c175e(0x10f),'stdio':['pipe','pipe',_0x55c04d[_0x5c175e(0x1a3)]]})['trim']();return _0x3373cd['replace'](/\.git$/,'')[_0x5c175e(0x13c)](/^git@github\.com:/,_0x55c04d[_0x5c175e(0x11a)])[_0x5c175e(0x13c)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x1f0798=_0x442b66,_0x56dc64={'fGGjB':_0x1f0798(0x10f),'ksLou':_0x1f0798(0x16b)};try{return execSync(_0x1f0798(0x111),{'encoding':_0x56dc64[_0x1f0798(0x11c)],'stdio':['pipe',_0x56dc64[_0x1f0798(0x197)],_0x1f0798(0x16b)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5a5a8d=_0x442b66,_0x5d898e={'DgFlZ':function(_0x1c7c15,_0x24be31,_0x2490d6){return _0x1c7c15(_0x24be31,_0x2490d6);},'tRBbm':_0x5a5a8d(0x10f)},_0x259563=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x259563))return null;try{const _0x1acfc9=await _0x5d898e[_0x5a5a8d(0x16d)](readFile,_0x259563,_0x5d898e[_0x5a5a8d(0x115)]);return _0x1acfc9[_0x5a5a8d(0x167)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x24704e){const _0x26253d={'UkdYy':function(_0x7c706c,_0x2a81e3,_0x428d01){return _0x7c706c(_0x2a81e3,_0x428d01);},'pzZnG':function(_0x203a3b,_0x423277,_0x4d5811,_0x1da270){return _0x203a3b(_0x423277,_0x4d5811,_0x1da270);}},_0x5d3797=getRangerDir(),_0x2b1101=_0x26253d['UkdYy'](join,_0x5d3797,ACTIVE_FEATURE_FILE);!existsSync(_0x5d3797)&&await mkdir(_0x5d3797,{'recursive':!![]}),await _0x26253d['pzZnG'](writeFile,_0x2b1101,_0x24704e,'utf-8');}function getProgressDisplay(_0x35110a){const _0x1b2f3f=_0x442b66,_0x53a590={'ODrMH':function(_0x28cd1c,_0x254137){return _0x28cd1c+_0x254137;},'UlnQs':function(_0x1baec1,_0x42f239){return _0x1baec1+_0x42f239;},'EjsGu':function(_0x206ffb,_0x22706d){return _0x206ffb===_0x22706d;},'CevcJ':function(_0x433546,_0x33d86f){return _0x433546*_0x33d86f;},'LORNV':function(_0x53e0cc,_0x4f453d){return _0x53e0cc/_0x4f453d;},'TSfBF':function(_0x5debfb,_0x4bb96b){return _0x5debfb>_0x4bb96b;},'UChLJ':function(_0x43d488,_0x2d13ab){return _0x43d488>_0x2d13ab;}},_0x13548c=_0x35110a[_0x1b2f3f(0x169)]||0x0,_0x5f3031=_0x35110a['verificationInProgressItems']||0x0,_0x46655e=_0x35110a[_0x1b2f3f(0x184)]||0x0,_0x4bd5df=_0x35110a['incompleteItems']||0x0,_0x145128=_0x35110a[_0x1b2f3f(0x1ec)]||0x0,_0x12229c=_0x53a590[_0x1b2f3f(0x138)](_0x53a590['UlnQs'](_0x13548c,_0x5f3031)+_0x46655e,_0x4bd5df)+_0x145128;if(_0x53a590['EjsGu'](_0x12229c,0x0))return'-';const _0x1fced2=0xa,_0x2be250=Math[_0x1b2f3f(0x15b)](_0x53a590[_0x1b2f3f(0x1c8)](_0x53a590['LORNV'](_0x13548c,_0x12229c),_0x1fced2)),_0x1bb2d2='█'[_0x1b2f3f(0x1df)](_0x2be250)+'░'['repeat'](_0x1fced2-_0x2be250),_0x173bae=[];if(_0x53a590['TSfBF'](_0x46655e,0x0))_0x173bae[_0x1b2f3f(0x1bb)](_0x46655e+'\x20blocked');if(_0x53a590['UChLJ'](_0x4bd5df,0x0))_0x173bae['push'](_0x4bd5df+_0x1b2f3f(0x192));if(_0x53a590['TSfBF'](_0x5f3031,0x0))_0x173bae['push'](_0x5f3031+'\x20in\x20progress');const _0x15f797=_0x173bae[_0x1b2f3f(0x1ad)]>0x0?'\x20('+_0x173bae[_0x1b2f3f(0x1e9)](',\x20')+')':'';return _0x1bb2d2+'\x20'+_0x13548c+'/'+_0x12229c+_0x1b2f3f(0x17c)+_0x15f797;}function getCurrentSessionItems(_0x13ba97,_0x539a80){const _0x4b96fe=_0x442b66;if(!_0x13ba97['currentSessionId'])return _0x539a80['filter'](_0x2ed90d=>!_0x2ed90d[_0x4b96fe(0x12f)]);return _0x539a80[_0x4b96fe(0x16c)](_0x4e12b5=>_0x4e12b5[_0x4b96fe(0x12f)]===_0x13ba97[_0x4b96fe(0x1c2)]||!_0x4e12b5[_0x4b96fe(0x12f)]);}function displayFeature(_0x34d40a,_0x4e2521){const _0x348459=_0x442b66,_0x454ecd={'bxOpY':_0x348459(0x1a4),'huXpN':function(_0x109d25,_0x155d51){return _0x109d25<_0x155d51;},'EWKpx':function(_0x51f9ee,_0xbf1b81){return _0x51f9ee===_0xbf1b81;},'cGsDu':_0x348459(0x19b),'hJaPJ':'incomplete','CGIlH':_0x348459(0x1a6),'TNoOw':function(_0x11fac4,_0x57f80d){return _0x11fac4!==_0x57f80d;},'bILba':function(_0x40c23c,_0x221129){return _0x40c23c+_0x221129;},'fbTyy':function(_0x500f56,_0x35686a){return _0x500f56===_0x35686a;},'TGXii':function(_0x3751f6,_0x282c47){return _0x3751f6===_0x282c47;}};console['log']('\x0a'+_0x34d40a['name']+'\x20('+_0x34d40a[_0x348459(0x19c)]+')');_0x34d40a[_0x348459(0x170)]&&console[_0x348459(0x1a0)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x34d40a['stats']));_0x34d40a[_0x348459(0x11f)]&&console[_0x348459(0x1a0)](_0x348459(0x188)+_0x34d40a['description']);_0x34d40a[_0x348459(0x11e)]&&console[_0x348459(0x1a0)]('\x20\x20\x20Repository:\x20'+_0x34d40a['gitRepoUrl']);_0x34d40a[_0x348459(0x17d)]&&console['log'](_0x348459(0x128)+_0x34d40a[_0x348459(0x17d)]);console[_0x348459(0x1a0)]('\x20\x20\x20Created:\x20'+new Date(_0x34d40a[_0x348459(0x11b)])[_0x348459(0x133)]());_0x34d40a['completedAt']&&console[_0x348459(0x1a0)]('\x20\x20\x20Completed:\x20'+new Date(_0x34d40a['completedAt'])[_0x348459(0x133)]());if(_0x4e2521&&_0x4e2521['length']>0x0){console['log'](_0x454ecd[_0x348459(0x154)]);for(let _0x583676=0x0;_0x454ecd['huXpN'](_0x583676,_0x4e2521[_0x348459(0x1ad)]);_0x583676++){const _0x487c23=_0x4e2521[_0x583676];let _0x54f6bf;if(_0x454ecd['EWKpx'](_0x487c23['status'],_0x454ecd['cGsDu'])&&_0x487c23[_0x348459(0x13d)]==='approved')_0x54f6bf='✅';else{if(_0x454ecd['EWKpx'](_0x487c23['status'],_0x348459(0x1cb)))_0x54f6bf='🟢';else{if(_0x454ecd[_0x348459(0x143)](_0x487c23['status'],_0x454ecd['hJaPJ']))_0x54f6bf='🟠';else{if(_0x487c23['status']===_0x348459(0x19d))_0x54f6bf='🛑';else{if(_0x487c23[_0x348459(0x147)]==='closed')_0x54f6bf='⛔';else _0x454ecd['EWKpx'](_0x487c23[_0x348459(0x147)],_0x454ecd[_0x348459(0x18b)])?_0x54f6bf='⏳':_0x54f6bf='⬜';}}}}const _0x415210=_0x487c23['version']>0x1?_0x348459(0x1c6)+_0x487c23[_0x348459(0x14b)]+')':'',_0x13ce74=_0x487c23[_0x348459(0x14b)]>0x1&&_0x487c23['parentItemId']&&_0x454ecd['TNoOw'](_0x487c23[_0x348459(0x147)],_0x454ecd[_0x348459(0x125)])&&_0x487c23['status']!=='verified'?_0x348459(0x1c3):'';console['log'](_0x348459(0x1b0)+_0x454ecd[_0x348459(0x18d)](_0x583676,0x1)+'.\x20'+_0x54f6bf+'\x20'+_0x487c23[_0x348459(0x11f)]+_0x415210+_0x13ce74);_0x454ecd['fbTyy'](_0x487c23['status'],'blocked')&&_0x487c23[_0x348459(0x127)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x487c23['blockedReason']);_0x487c23[_0x348459(0x147)]===_0x454ecd['hJaPJ']&&_0x487c23[_0x348459(0x156)]&&console[_0x348459(0x1a0)](_0x348459(0x1a7)+_0x487c23['incompleteReason']);if(_0x454ecd['TGXii'](_0x487c23['status'],_0x454ecd[_0x348459(0x125)])&&_0x454ecd[_0x348459(0x186)](_0x487c23[_0x348459(0x13d)],'approved'))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x487c23['status']==='closed'&&_0x487c23[_0x348459(0x183)]&&console['log'](_0x348459(0x1b2)+_0x487c23[_0x348459(0x183)]);}}}export async function featureCreate(_0x4ea070,_0x3e2b2f){const _0x291b11=_0x442b66,_0x1e8d56={'TgKCg':function(_0x22db85){return _0x22db85();},'REYgo':function(_0x2c4b06){return _0x2c4b06();},'UmgiG':_0x291b11(0x1b8),'SqzEx':function(_0x147a9c,_0x564e12,_0x34e04b){return _0x147a9c(_0x564e12,_0x34e04b);}},{envNames:_0x5aa8e0}=await _0x1e8d56['TgKCg'](getEnvNames);_0x5aa8e0[_0x291b11(0x1ad)]===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x12ac52=>bold(_0x12ac52)));const _0x5a4cfe=_0x3e2b2f[_0x291b11(0x124)]?_0x3e2b2f['scenarios']['map'](_0xdc6ec4=>_0xdc6ec4['trim']()):[],_0x1c51e6=getGitRepoUrl(),_0x13f4c6=_0x1e8d56[_0x291b11(0x119)](getGitBranch);console[_0x291b11(0x1a0)](_0x1e8d56['UmgiG']);const _0x1ed9ea=await createFeature({'name':_0x4ea070,'description':_0x3e2b2f['description'],'checklist':_0x5a4cfe,'gitRepoUrl':_0x1c51e6,'gitBranch':_0x13f4c6});await setActiveFeatureId(_0x1ed9ea['id']),await tryStartCurrentSession(_0x1ed9ea['id']);const _0x393085=process[_0x291b11(0x17e)][_0x291b11(0x1e8)];_0x393085&®isterSession(_0x393085,_0x1ed9ea['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x1ed9ea['id']),_0x1e8d56['SqzEx'](displayFeature,_0x1ed9ea,_0x1ed9ea[_0x291b11(0x131)]),console[_0x291b11(0x1a0)](_0x291b11(0x176));}export async function featureList(_0x1a2d76){const _0x20ed52=_0x442b66,_0x4a3896={'MrGDf':function(_0x3be50c){return _0x3be50c();},'gTmLk':function(_0x2e48d3,_0x9f4254){return _0x2e48d3>_0x9f4254;},'IAsos':function(_0x3b2644,_0x59dfa1){return _0x3b2644+_0x59dfa1;},'wJXso':function(_0xfe5ea7,_0x4f3b20){return _0xfe5ea7<_0x4f3b20;}},_0x3097ec={'limit':_0x1a2d76[_0x20ed52(0x196)]??0xa,'offset':_0x1a2d76[_0x20ed52(0x142)]??0x0,'includeDeleted':_0x1a2d76[_0x20ed52(0x198)]};_0x1a2d76[_0x20ed52(0x153)]&&(_0x3097ec[_0x20ed52(0x11e)]=getGitRepoUrl(),_0x3097ec['gitBranch']=_0x4a3896['MrGDf'](getGitBranch));const _0x3ee415=await listFeatures(_0x3097ec);if(_0x3ee415['items']['length']===0x0){console['log'](_0x20ed52(0x139));return;}const _0x3d45e5=_0x4a3896[_0x20ed52(0x14d)](_0x3ee415[_0x20ed52(0x187)],_0x3ee415[_0x20ed52(0x1e2)][_0x20ed52(0x1ad)])?_0x20ed52(0x149)+_0x3ee415['items']['length']+'\x20of\x20'+_0x3ee415['totalCount']:_0x3ee415[_0x20ed52(0x187)]+_0x20ed52(0x137);console[_0x20ed52(0x1a0)]('\x0a'+_0x3d45e5+':\x0a');for(const _0x1ee8ba of _0x3ee415['items']){const _0x233241=_0x20ed52(0x14e)['split']('|');let _0x217f1a=0x0;while(!![]){switch(_0x233241[_0x217f1a++]){case'0':console['log']('\x20\x20\x20ID:\x20'+_0x1ee8ba['id']);continue;case'1':_0x1ee8ba[_0x20ed52(0x17d)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x1ee8ba[_0x20ed52(0x17d)]);continue;case'2':console[_0x20ed52(0x1a0)]('\x20\x20\x20Created:\x20'+new Date(_0x1ee8ba[_0x20ed52(0x11b)])[_0x20ed52(0x1cc)]());continue;case'3':console[_0x20ed52(0x1a0)](''+_0x1ee8ba['name']);continue;case'4':_0x1ee8ba['stats']&&console[_0x20ed52(0x1a0)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1ee8ba['stats']));continue;case'5':console[_0x20ed52(0x1a0)]('');continue;}break;}}const _0x7ffc6a=_0x3097ec[_0x20ed52(0x196)]??0xa,_0x12c882=_0x4a3896['IAsos'](_0x3097ec[_0x20ed52(0x142)]??0x0,_0x3ee415[_0x20ed52(0x1e2)]['length']);if(_0x4a3896['wJXso'](_0x12c882,_0x3ee415[_0x20ed52(0x187)])){const _0x15de89=_0x7ffc6a!==0xa?_0x20ed52(0x120)+_0x7ffc6a:'',_0x97b400=_0x1a2d76[_0x20ed52(0x153)]?'\x20--current-branch':'',_0x3012d6=_0x1a2d76[_0x20ed52(0x198)]?_0x20ed52(0x155):'';console[_0x20ed52(0x1a0)](_0x20ed52(0x1da)+_0x12c882+_0x15de89+_0x97b400+_0x3012d6);}}export async function featureShow(_0x2215c4){const _0x2a28cc=_0x442b66,_0x3b536f={'YTocP':function(_0x4683b4){return _0x4683b4();}},_0x248514=_0x2215c4||await _0x3b536f[_0x2a28cc(0x118)](getActiveFeatureId);if(!_0x248514)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 _0x705b30=await getFeature(_0x248514);displayFeature(_0x705b30,_0x705b30['checklistItems']);}export async function featureResume(_0x5896e7){const _0x1f7862=_0x442b66,_0x239fcc={'uITnL':function(_0x304be2,_0x52e34e){return _0x304be2(_0x52e34e);},'NyaGr':function(_0x513624,_0x2cc532,_0x50c307){return _0x513624(_0x2cc532,_0x50c307);},'vcczT':function(_0x844f02,_0x1a3eee,_0x60f9d7){return _0x844f02(_0x1a3eee,_0x60f9d7);},'iCIPI':function(_0x4cc3dc){return _0x4cc3dc();},'kViSr':'any','RRDmz':function(_0x5b287d,_0x457258){return _0x5b287d||_0x457258;},'XbXAB':function(_0x50f280,_0x400fe1){return _0x50f280===_0x400fe1;},'eQxgn':_0x1f7862(0x1e5),'LxbxB':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','ndTik':function(_0x533c34,_0x49501f){return _0x533c34!==_0x49501f;}};if(_0x5896e7){const _0x43b51d=await getFeature(_0x5896e7);await _0x239fcc['uITnL'](setActiveFeatureId,_0x43b51d['id']);const _0x527aca=getGitBranch();_0x527aca&&_0x527aca!==_0x43b51d[_0x1f7862(0x17d)]&&(await _0x239fcc[_0x1f7862(0x144)](updateFeature,_0x43b51d['id'],{'gitBranch':_0x527aca}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x527aca));console[_0x1f7862(0x1a0)](_0x1f7862(0x117)+_0x43b51d[_0x1f7862(0x1d0)]+'\x20('+_0x43b51d['id']+')'),await tryStartCurrentSession(_0x43b51d['id']);const _0x5a934b=process['env'][_0x1f7862(0x1e8)];_0x5a934b&&_0x239fcc[_0x1f7862(0x152)](registerSession,_0x5a934b,_0x43b51d['id']);displayFeature(_0x43b51d,_0x43b51d['checklistItems']),await printFeedbackNudge(_0x43b51d['id']);return;}const _0x1157db=getGitRepoUrl(),_0xf1e092=_0x239fcc['iCIPI'](getGitBranch);if(!_0x1157db&&!_0xf1e092)throw new Error(_0x1f7862(0x12b));console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x1157db||_0x239fcc['kViSr'])+_0x1f7862(0x1b4)+_0x239fcc[_0x1f7862(0x150)](_0xf1e092,_0x239fcc['kViSr'])+'...');const _0x48e4a8=await _0x239fcc[_0x1f7862(0x13b)](listFeatures,{'gitRepoUrl':_0x1157db,'gitBranch':_0xf1e092}),_0x1610f5=_0x48e4a8['items']['filter'](_0x163183=>!_0x163183['completedAt']);if(_0x239fcc[_0x1f7862(0x1ee)](_0x1610f5['length'],0x0)){console[_0x1f7862(0x1a0)](_0x1f7862(0x1c0)),console[_0x1f7862(0x1a0)](_0x239fcc[_0x1f7862(0x11d)]);return;}let _0xfb13c5;if(_0x1610f5['length']===0x1)_0xfb13c5=_0x1610f5[0x0];else{const _0x2abd36=process[_0x1f7862(0x1d2)]['isTTY']&&process['stdout']['isTTY'];if(!_0x2abd36){console['log'](_0x1f7862(0x1d5));for(const _0x1fd196 of _0x1610f5){console['log']('\x20\x20'+_0x1fd196[_0x1f7862(0x1d0)]),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x1fd196['id']),_0x1fd196[_0x1f7862(0x170)]&&console[_0x1f7862(0x1a0)](_0x1f7862(0x168)+_0x239fcc['uITnL'](getProgressDisplay,_0x1fd196['stats'])),_0x1fd196['gitBranch']&&console[_0x1f7862(0x1a0)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x1fd196[_0x1f7862(0x17d)]);}throw new Error(_0x239fcc['LxbxB']);}const {selected:_0x4e0a64}=await _0x529460[_0x1f7862(0x18f)]([{'type':'list','name':_0x1f7862(0x1b1),'message':_0x1f7862(0x1bd),'choices':_0x1610f5['map'](_0x53c431=>({'name':_0x53c431[_0x1f7862(0x1d0)]+'\x20('+_0x53c431['id']+')','value':_0x53c431['id']}))}]);_0xfb13c5=_0x1610f5['find'](_0x8bdc4f=>_0x8bdc4f['id']===_0x4e0a64);}await _0x239fcc['uITnL'](setActiveFeatureId,_0xfb13c5['id']);_0xf1e092&&_0x239fcc[_0x1f7862(0x121)](_0xf1e092,_0xfb13c5[_0x1f7862(0x17d)])&&(await _0x239fcc[_0x1f7862(0x152)](updateFeature,_0xfb13c5['id'],{'gitBranch':_0xf1e092}),console['log'](_0x1f7862(0x1b9)+_0xf1e092));console[_0x1f7862(0x1a0)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xfb13c5['name']+'\x20('+_0xfb13c5['id']+')'),await tryStartCurrentSession(_0xfb13c5['id']);const _0x227be8=await _0x239fcc['uITnL'](getFeature,_0xfb13c5['id']),_0x11cabd=process[_0x1f7862(0x17e)][_0x1f7862(0x1e8)];_0x11cabd&&_0x239fcc['vcczT'](registerSession,_0x11cabd,_0x227be8['id']),displayFeature(_0x227be8,_0x227be8['checklistItems']),await printFeedbackNudge(_0x227be8['id']);}async function printFeedbackNudge(_0x59a7ce){const _0x23f211=_0x442b66,_0x379466={'yyLUh':function(_0x39b521,_0x2d279f,_0x2d37ef){return _0x39b521(_0x2d279f,_0x2d37ef);},'zeUTb':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x17868f}=await getActionItems(_0x59a7ce);let _0x107e8a=0x0,_0xb9d723=0x0;for(const _0x5175ec of _0x17868f){const _0x11249e=await _0x379466['yyLUh'](getItemFeedback,_0x59a7ce,_0x5175ec['id']);_0x11249e[_0x23f211(0x1e7)]['length']>0x0&&(_0x107e8a+=_0x11249e[_0x23f211(0x1e7)]['length'],_0xb9d723++);}_0x107e8a>0x0&&(console['log'](_0x23f211(0x1db)+_0x107e8a+_0x23f211(0x13a)+_0xb9d723+_0x23f211(0x12c)),console[_0x23f211(0x1a0)](_0x379466[_0x23f211(0x12d)]));}catch{}}async function tryStartCurrentSession(_0x15b2dc){const _0x551099=_0x442b66;try{const {sessions:_0x5cfd4d}=await listFeatureSessions(_0x15b2dc),_0x2810ef=_0x5cfd4d['find'](_0x3d17e3=>_0x3d17e3['status']===_0x551099(0x1c1));_0x2810ef&&(await startSession(_0x15b2dc,_0x2810ef['id']),console['log'](_0x551099(0x1bf)+_0x2810ef[_0x551099(0x1bc)]));}catch{}}export async function featureReport(_0x1e6d74,_0x567d70){const _0x19a157=_0x442b66,_0x3d20c8={'WoOyk':function(_0x11f7ec){return _0x11f7ec();},'JaIJj':_0x19a157(0x1ce),'FSMgq':function(_0x3500a5){return _0x3500a5();},'chAqR':'reports','qIokl':function(_0x5985e0,_0x113dae){return _0x5985e0(_0x113dae);},'NclFt':function(_0x323ada,_0x1af57a,_0x58af49,_0x490620){return _0x323ada(_0x1af57a,_0x58af49,_0x490620);}},_0x475c4c=_0x1e6d74||await _0x3d20c8['WoOyk'](getActiveFeatureId);if(!_0x475c4c)throw new Error(_0x3d20c8['JaIJj']);console[_0x19a157(0x1a0)](_0x19a157(0x199));const _0x50461e=await getFeatureReportMarkdown(_0x475c4c,{'style':_0x567d70['style']}),_0x2a98e5=_0x567d70['output']||join(_0x3d20c8[_0x19a157(0x1c5)](getRangerDir),_0x3d20c8['chAqR'],_0x475c4c+'.md'),_0x40a86b=join(_0x2a98e5,'..');!_0x3d20c8[_0x19a157(0x1ab)](existsSync,_0x40a86b)&&await mkdir(_0x40a86b,{'recursive':!![]}),await _0x3d20c8[_0x19a157(0x129)](writeFile,_0x2a98e5,_0x50461e,'utf-8'),console[_0x19a157(0x1a0)](_0x19a157(0x17a)+_0x2a98e5);}function getScenarioResult(_0x2e8e8b){const _0x1c0816=_0x442b66,_0x2f7944={'IbtyF':_0x1c0816(0x19b),'ZiBFE':function(_0x5617ff,_0x31d0a5){return _0x5617ff===_0x31d0a5;},'ygMBf':'verification_in_progress','jtOOI':'in_progress'};if(_0x2e8e8b['status']==='closed')return _0x2e8e8b['terminalReason']??_0x2f7944[_0x1c0816(0x182)];if(_0x2f7944['ZiBFE'](_0x2e8e8b[_0x1c0816(0x147)],_0x2f7944[_0x1c0816(0x18a)]))return _0x2f7944[_0x1c0816(0x157)];return _0x2e8e8b[_0x1c0816(0x147)];}function getScenarioRationale(_0x48ee41,_0x3240ac){const _0x3241e5=_0x442b66;if(_0x3240ac)return _0x3240ac;if(_0x48ee41[_0x3241e5(0x127)])return _0x48ee41['blockedReason'];if(_0x48ee41['incompleteReason'])return _0x48ee41[_0x3241e5(0x156)];if(_0x48ee41[_0x3241e5(0x183)])return _0x48ee41['canceledReason'];if(_0x48ee41[_0x3241e5(0x145)])return _0x48ee41[_0x3241e5(0x145)];return null;}export async function featureReportPrDescription(_0x104f55,_0x1af422){const _0x20daec=_0x442b66,_0x2307ca={'Pzhnm':function(_0x359944){return _0x359944();},'GkAHu':_0x20daec(0x1ce),'euSJq':function(_0x493440,_0x3a62e5){return _0x493440(_0x3a62e5);},'rNIqy':function(_0x208932,_0x3fbc7){return _0x208932===_0x3fbc7;},'QhBJX':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','kkjZX':function(_0x3ddf53,_0x10c288){return _0x3ddf53<_0x10c288;},'XvlHV':function(_0x40498d,_0x99559e){return _0x40498d+_0x99559e;},'uykKE':function(_0x1ab09f,_0x46106d){return _0x1ab09f===_0x46106d;},'eszob':function(_0x297c5d,_0x433a59,_0x4834c1){return _0x297c5d(_0x433a59,_0x4834c1);}},_0x2a1057=_0x104f55||await _0x2307ca[_0x20daec(0x1b3)](getActiveFeatureId);if(!_0x2a1057)throw new Error(_0x2307ca[_0x20daec(0x140)]);const _0x3444c7=await _0x2307ca[_0x20daec(0x1ea)](getFeature,_0x2a1057),_0x7110a8=_0x3444c7[_0x20daec(0x131)]||[],_0x47fad9=getCurrentSessionItems(_0x3444c7,_0x7110a8);_0x2307ca['rNIqy'](_0x47fad9[_0x20daec(0x1ad)],0x0)&&(console[_0x20daec(0x1aa)](_0x2307ca['QhBJX']),process['exit'](0x1));const _0x993aad=_0x1af422['excludeScenarios']??[],_0x3b7d26=_0x993aad['filter'](_0x20d0fe=>!Number[_0x20daec(0x191)](_0x20d0fe)||_0x20d0fe<0x1||_0x20d0fe>_0x47fad9[_0x20daec(0x1ad)]);if(_0x3b7d26[_0x20daec(0x1ad)]>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x3b7d26['join'](',\x20')),console['log'](_0x20daec(0x19e));for(let _0x3dcfbc=0x0;_0x2307ca[_0x20daec(0x1a5)](_0x3dcfbc,_0x47fad9[_0x20daec(0x1ad)]);_0x3dcfbc++){console['log']('\x20\x20'+_0x2307ca[_0x20daec(0x195)](_0x3dcfbc,0x1)+'.\x20'+_0x47fad9[_0x3dcfbc][_0x20daec(0x11f)]);}process['exit'](0x1);}const _0x525b13=new Set(_0x993aad['map'](_0x10f21b=>_0x10f21b-0x1)),_0x5c7657=_0x47fad9['filter']((_0x11386,_0x2ebe03)=>!_0x525b13['has'](_0x2ebe03));_0x2307ca[_0x20daec(0x180)](_0x5c7657[_0x20daec(0x1ad)],0x0)&&(console[_0x20daec(0x1aa)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x1af422[_0x20daec(0x15a)])await outputJsonReport(_0x2a1057,_0x3444c7,_0x5c7657);else{const _0x55a80c=await _0x2307ca[_0x20daec(0x163)](getFeatureReportMarkdown,_0x2a1057,{'itemIds':_0x5c7657[_0x20daec(0x1cf)](_0x3aae40=>_0x3aae40['id'])});process['stdout'][_0x20daec(0x1ba)](_0x55a80c['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x3e0387,_0x445229,_0x1a0191){const _0x1eb54a=_0x442b66,_0x59c143={'CMWMV':function(_0x3ffb53,_0x516f98){return _0x3ffb53(_0x516f98);},'RYBDI':function(_0x279e24){return _0x279e24();}},_0x2a1f8e=_0x59c143['RYBDI'](getApiBaseUrl),_0x291820=await getFeatureReport(_0x3e0387),_0x5631ae=new Map(_0x291820[_0x1eb54a(0x131)][_0x1eb54a(0x1cf)](_0x435c6d=>[_0x435c6d['id'],_0x435c6d])),_0x1b1f56=await Promise['all'](_0x1a0191['map'](async _0x39b786=>{const _0x6343f9=_0x1eb54a,_0x2cd95a=_0x5631ae['get'](_0x39b786['id']),_0x53c3fc=_0x2cd95a?.[_0x6343f9(0x171)]??null;let _0x14e444=[];if(_0x39b786[_0x6343f9(0x1a1)])try{const {steps:_0x5ab717}=await _0x59c143[_0x6343f9(0x1b5)](getBrowserSessionSteps,_0x39b786['browserSessionId']);_0x5ab717[_0x6343f9(0x1ad)]>0x0&&(_0x14e444=_0x5ab717['map'](_0x2ae8ee=>{const _0x4282a=_0x6343f9,_0x50b64d=_0x2ae8ee['assets'][_0x4282a(0x1c7)](_0x1312e=>_0x1312e['assetType']===_0x4282a(0x1a9)&&_0x1312e['timing']==='after')??_0x2ae8ee[_0x4282a(0x132)]['find'](_0x21726d=>_0x21726d['assetType']===_0x4282a(0x1a9));let _0x4fa8e4=null,_0x39be8c=null;if(_0x50b64d){const _0x10f121=_0x50b64d[_0x4282a(0x161)]['location'][_0x4282a(0x146)]('/')['pop']();_0x4fa8e4=_0x2a1f8e+_0x4282a(0x1e3)+_0x39b786[_0x4282a(0x1a1)]+'/artifacts/'+_0x10f121,_0x10f121&&(_0x39be8c=_0x10f121[_0x4282a(0x13c)](/\.\w+$/,'')[_0x4282a(0x13c)](/^(key_)?\d+_/,'')[_0x4282a(0x13c)](/[-_]/g,'\x20'));}return{'description':_0x39be8c||_0x2ae8ee[_0x4282a(0x11f)]||_0x2ae8ee[_0x4282a(0x1e0)]||'Step\x20'+_0x2ae8ee[_0x4282a(0x1ac)],'screenshot':_0x4fa8e4,'is_key_step':_0x2ae8ee[_0x4282a(0x110)]};}));}catch{}return _0x14e444[_0x6343f9(0x1ad)]===0x0&&_0x53c3fc?.[_0x6343f9(0x173)]&&(_0x14e444=_0x53c3fc['screenshotUrls'][_0x6343f9(0x1cf)]((_0x38235e,_0x4eb561)=>({'description':_0x6343f9(0x136)+(_0x4eb561+0x1),'screenshot':_0x38235e,'is_key_step':![]}))),{'description':_0x39b786[_0x6343f9(0x11f)],'result':getScenarioResult(_0x39b786),'rationale':getScenarioRationale(_0x39b786,_0x53c3fc?.[_0x6343f9(0x1e4)]),'steps':_0x14e444};})),_0x5a6506={'url':_0x445229[_0x1eb54a(0x19c)],'scenarios':_0x1b1f56};process['stdout'][_0x1eb54a(0x1ba)](JSON[_0x1eb54a(0x19f)](_0x5a6506,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x23cda0){const _0x2676ac=_0x442b66,_0xefda41={'wUNNd':function(_0x4a4389){return _0x4a4389();},'uiZEq':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','svNzA':'Current\x20session\x20not\x20found.','bGXJF':'\x0aConcluding\x20session...','djxVY':function(_0x24ee5e,_0x1f159a,_0x55f93d){return _0x24ee5e(_0x1f159a,_0x55f93d);}},_0xfd77be=_0x23cda0||await _0xefda41[_0x2676ac(0x1c4)](getActiveFeatureId);if(!_0xfd77be)throw new Error(_0xefda41['uiZEq']);const _0x449aca=await getFeature(_0xfd77be);if(!_0x449aca[_0x2676ac(0x1c2)])throw new Error(_0x2676ac(0x14f));const {sessions:_0x160acb}=await listFeatureSessions(_0xfd77be),_0xecc9f8=_0x160acb[_0x2676ac(0x1c7)](_0x182fbd=>_0x182fbd['id']===_0x449aca['currentSessionId']);if(!_0xecc9f8)throw new Error(_0xefda41['svNzA']);if(_0xecc9f8['status']===_0x2676ac(0x193)){console[_0x2676ac(0x1a0)](_0x2676ac(0x12e));return;}if(_0xecc9f8[_0x2676ac(0x147)]!==_0x2676ac(0x1a8))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0xecc9f8[_0x2676ac(0x147)]);console[_0x2676ac(0x1a0)](_0xefda41['bGXJF']),await _0xefda41[_0x2676ac(0x1dc)](concludeSession,_0xfd77be,_0x449aca['currentSessionId']),console[_0x2676ac(0x1a0)]('\x0a✅\x20Session\x20'+_0xecc9f8[_0x2676ac(0x1bc)]+_0x2676ac(0x1b6)),console['log'](_0x2676ac(0x164));}export async function featureSessions(_0x13979e){const _0x45ff90=_0x442b66,_0x4a29e6={'EMOjE':function(_0x5262f4){return _0x5262f4();},'GtILz':function(_0x2b1d2b,_0x40184a){return _0x2b1d2b(_0x40184a);},'EYDzL':function(_0x3e04e0,_0x61a21d){return _0x3e04e0===_0x61a21d;},'KFwmU':'completed'},_0x4208b8=_0x13979e||await _0x4a29e6[_0x45ff90(0x16e)](getActiveFeatureId);if(!_0x4208b8)throw new Error(_0x45ff90(0x1ce));const _0x173222=await getFeature(_0x4208b8);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x173222['name']+'\x0a');const {sessions:_0x376960}=await _0x4a29e6[_0x45ff90(0x114)](listFeatureSessions,_0x4208b8);if(_0x4a29e6['EYDzL'](_0x376960[_0x45ff90(0x1ad)],0x0)){console[_0x45ff90(0x1a0)](_0x45ff90(0x1ed));return;}for(const _0x174f75 of _0x376960){const _0x541ff0=_0x174f75[_0x45ff90(0x147)]===_0x4a29e6[_0x45ff90(0x165)]?'✅':_0x174f75['status']==='in_progress'?'🔄':'▶️';console['log'](_0x541ff0+'\x20Session\x20'+_0x174f75['iteration']+'\x20('+_0x174f75['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x174f75['status']),console[_0x45ff90(0x1a0)](_0x45ff90(0x126)+new Date(_0x174f75[_0x45ff90(0x11b)])['toLocaleString']()),_0x174f75['completedAt']&&console['log'](_0x45ff90(0x1af)+new Date(_0x174f75[_0x45ff90(0x13e)])['toLocaleString']()),console[_0x45ff90(0x1a0)]('');}}export async function featureAddScenario(_0x313152,_0x1d382e){const _0x3eb0dd=_0x442b66,_0x578dae={'UlCBq':function(_0x386992,_0x47602a){return _0x386992(_0x47602a);},'rSjcB':function(_0x1cab35,_0x32264b,_0x1aeee5){return _0x1cab35(_0x32264b,_0x1aeee5);},'IGXVu':function(_0x33ca7f,_0x527aa6){return _0x33ca7f(_0x527aa6);}},_0x33def3=_0x1d382e||await getActiveFeatureId();if(!_0x33def3)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 _0x2f8cbe=await _0x578dae['UlCBq'](getFeature,_0x33def3);if(_0x2f8cbe[_0x3eb0dd(0x14c)]&&!_0x2f8cbe['latestReview'][_0x3eb0dd(0x1b7)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x2f8cbe['dashboardUrl']);await _0x578dae['rSjcB'](createChecklistItem,_0x33def3,_0x313152);const _0x3c421f=await _0x578dae[_0x3eb0dd(0x15f)](getFeature,_0x33def3);console['log'](_0x3eb0dd(0x15e)),_0x578dae[_0x3eb0dd(0x141)](displayFeature,_0x3c421f,_0x3c421f[_0x3eb0dd(0x131)]);}export async function featureEditScenario(_0x3ed40b,_0x31d577){const _0x124d14=_0x442b66,_0xdd9838={'iFMgn':_0x124d14(0x135),'ognrz':'Please\x20finish\x20your\x20review\x20first:','OOQqE':function(_0x32a261,_0x24473c){return _0x32a261===_0x24473c;},'HspFw':_0x124d14(0x134),'JSVcC':function(_0x3d1a3f,_0x26fa81){return _0x3d1a3f<_0x26fa81;},'lbGVs':function(_0x2f4367,_0x5e482a){return _0x2f4367+_0x5e482a;},'ExfBF':function(_0x508c75,_0x11b421){return _0x508c75>=_0x11b421;},'NeVVX':'\x0aAvailable\x20scenarios:','SrLTS':function(_0x168dfd,_0x23d07f,_0x100c8f){return _0x168dfd(_0x23d07f,_0x100c8f);}},_0x52b5f9=_0x31d577['id']||await getActiveFeatureId();!_0x52b5f9&&(console['error'](_0xdd9838['iFMgn']),console['error'](_0x124d14(0x15c)),process[_0x124d14(0x113)](0x1));const _0x37f40e=await getFeature(_0x52b5f9);_0x37f40e[_0x124d14(0x14c)]&&!_0x37f40e[_0x124d14(0x14c)][_0x124d14(0x1b7)]&&(console[_0x124d14(0x1aa)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x124d14(0x1aa)](_0xdd9838[_0x124d14(0x190)]),console[_0x124d14(0x1aa)]('\x20\x20'+_0x37f40e[_0x124d14(0x19c)]),process['exit'](0x1));const _0x1e2b4e=_0x37f40e[_0x124d14(0x131)]||[];_0x1e2b4e['length']===0x0&&(console[_0x124d14(0x1aa)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0xdd9838['OOQqE'](_0x31d577['scenario'],undefined)){console[_0x124d14(0x1aa)](_0xdd9838[_0x124d14(0x172)]),console[_0x124d14(0x1a0)](_0x124d14(0x19e));for(let _0x514dab=0x0;_0xdd9838['JSVcC'](_0x514dab,_0x1e2b4e['length']);_0x514dab++){console[_0x124d14(0x1a0)]('\x20\x20'+_0xdd9838['lbGVs'](_0x514dab,0x1)+'.\x20'+_0x1e2b4e[_0x514dab]['description']);}process[_0x124d14(0x113)](0x1);}const _0x33f670=_0x31d577[_0x124d14(0x16a)]-0x1;if(_0x33f670<0x0||_0xdd9838['ExfBF'](_0x33f670,_0x1e2b4e['length'])){console[_0x124d14(0x1aa)](_0x124d14(0x1eb)+_0x31d577['scenario']+_0x124d14(0x1de)+_0x1e2b4e[_0x124d14(0x1ad)]+_0x124d14(0x179)),console[_0x124d14(0x1a0)](_0xdd9838['NeVVX']);for(let _0x44963d=0x0;_0x44963d<_0x1e2b4e['length'];_0x44963d++){console[_0x124d14(0x1a0)]('\x20\x20'+_0xdd9838[_0x124d14(0x116)](_0x44963d,0x1)+'.\x20'+_0x1e2b4e[_0x44963d]['description']);}process[_0x124d14(0x113)](0x1);}const _0x5c1cc8=_0x1e2b4e[_0x33f670];await updateChecklistItem(_0x52b5f9,_0x5c1cc8['id'],{'description':_0x3ed40b});const _0x305185=await getFeature(_0x52b5f9);console[_0x124d14(0x1a0)](_0x124d14(0x1d4)),_0xdd9838['SrLTS'](displayFeature,_0x305185,_0x305185[_0x124d14(0x131)]);}async function downloadFeedbackImage(_0x2e400b,_0x501b35){const _0x2cf36e=_0x442b66,_0x52dc83={'eYqPQ':function(_0x53cd9a,_0x1a3663,_0x58b0ad){return _0x53cd9a(_0x1a3663,_0x58b0ad);},'uNdgz':function(_0x3a94ba,_0x235f1c,_0x1d9570){return _0x3a94ba(_0x235f1c,_0x1d9570);}};try{const _0xc4f454=_0x52dc83[_0x2cf36e(0x1d1)](join,getRangerDir(),_0x2cf36e(0x1a2));await _0x52dc83['uNdgz'](mkdir,_0xc4f454,{'recursive':!![]});const _0xed9da0=_0x52dc83['uNdgz'](join,_0xc4f454,'comment_'+_0x501b35+_0x2cf36e(0x1e1)),_0x54d0af=await fetch(_0x2e400b);if(!_0x54d0af['ok'])return null;const _0x10722a=Buffer[_0x2cf36e(0x12a)](await _0x54d0af[_0x2cf36e(0x174)]());return await _0x52dc83['eYqPQ'](writeFile,_0xed9da0,_0x10722a),_0xed9da0;}catch{return null;}}export async function featureGetReview(_0x48b036){const _0x1a8f74=_0x442b66,_0x1c4f27={'nPKSJ':function(_0xa16747){return _0xa16747();},'laUlr':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','IHxcL':function(_0x51c3a5,_0x543c77){return _0x51c3a5===_0x543c77;},'AqezQ':function(_0x1f914d,_0x4d944a){return _0x1f914d<_0x4d944a;},'CDGCt':function(_0x5a8310,_0x5d9e6e,_0x144414){return _0x5a8310(_0x5d9e6e,_0x144414);},'oKJRE':'en-US','UkFSV':_0x1a8f74(0x194),'FbasH':'Unknown','rApkN':function(_0x440814,_0x4d02cb,_0x5f3e1c){return _0x440814(_0x4d02cb,_0x5f3e1c);},'hlOVZ':_0x1a8f74(0x130),'TRBQF':function(_0x5c02f1,_0x4ea390){return _0x5c02f1>=_0x4ea390;},'cXwlB':function(_0x521daa,_0x132435){return _0x521daa+_0x132435;}},_0x511f5d=_0x48b036||await _0x1c4f27[_0x1a8f74(0x1d7)](getActiveFeatureId);if(!_0x511f5d)throw new Error(_0x1c4f27['laUlr']);const _0x5029e1=await getFeature(_0x511f5d),{items:_0x4104a8}=await getActionItems(_0x511f5d);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x5029e1['name']+'\x20('+_0x5029e1['id']+')\x0a');if(_0x1c4f27['IHxcL'](_0x4104a8[_0x1a8f74(0x1ad)],0x0)){console['log']('No\x20scenarios\x20found.');return;}for(let _0x1c4ec6=0x0;_0x1c4f27['AqezQ'](_0x1c4ec6,_0x4104a8[_0x1a8f74(0x1ad)]);_0x1c4ec6++){const _0x278730=_0x4104a8[_0x1c4ec6],_0x2b2f3c=_0x278730[_0x1a8f74(0x14b)]>0x1?_0x1a8f74(0x1c6)+_0x278730['version']+')':'',_0x476482=await _0x1c4f27['CDGCt'](getItemFeedback,_0x511f5d,_0x278730['id']);if(_0x476482['unaddressedComments'][_0x1a8f74(0x1ad)]>0x0){console[_0x1a8f74(0x1a0)]('Scenario\x20'+(_0x1c4ec6+0x1)+':\x20\x22'+_0x278730[_0x1a8f74(0x11f)]+'\x22'+_0x2b2f3c+_0x1a8f74(0x1e6)+_0x476482['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x5609af of _0x476482[_0x1a8f74(0x1e7)]){const _0x389ef7=new Date(_0x5609af['createdAt'])['toLocaleDateString'](_0x1c4f27[_0x1a8f74(0x1cd)],{'month':_0x1c4f27[_0x1a8f74(0x1d3)],'day':'numeric'}),_0x1260de=_0x5609af['authorName']||_0x5609af['authorEmail']||_0x1c4f27[_0x1a8f74(0x1d8)];console['log']('\x20\x20💬\x20'+_0x1260de+'\x20('+_0x389ef7+_0x1a8f74(0x1d9)+_0x5609af[_0x1a8f74(0x1dd)]+'\x22');if(_0x5609af[_0x1a8f74(0x1d6)]){const _0x4e30c0=await _0x1c4f27[_0x1a8f74(0x175)](downloadFeedbackImage,_0x5609af[_0x1a8f74(0x1d6)],_0x5609af['id']);_0x4e30c0&&console['log'](_0x1a8f74(0x1ae)+_0x4e30c0);}if(_0x5609af[_0x1a8f74(0x177)]){const _0x54083c=_0x5609af[_0x1a8f74(0x177)][_0x1a8f74(0x123)]['split']('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x1c4f27['hlOVZ'],_0x2b8616=_0x5609af['domRef']['textContent']?'\x20\x22'+_0x5609af['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x54083c+'>'+_0x2b8616),console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x5609af[_0x1a8f74(0x177)][_0x1a8f74(0x123)]);}else{if(_0x5609af['spatial']){const _0x4f58eb=_0x5609af['spatial']['coordinates'];_0x5609af[_0x1a8f74(0x14a)][_0x1a8f74(0x13f)]==='point'&&_0x1c4f27[_0x1a8f74(0x18e)](_0x4f58eb['length'],0x2)?console['log'](_0x1a8f74(0x15d)+_0x4f58eb[0x0]['toFixed'](0x2)+',\x20'+_0x4f58eb[0x1]['toFixed'](0x2)+')'):console['log'](_0x1a8f74(0x160)+_0x5609af[_0x1a8f74(0x14a)][_0x1a8f74(0x13f)]+'\x20at\x20['+_0x4f58eb[_0x1a8f74(0x1cf)](_0x46124b=>_0x46124b[_0x1a8f74(0x17b)](0x2))['join'](',\x20')+']');}}}if(_0x476482[_0x1a8f74(0x112)]){console[_0x1a8f74(0x1a0)](_0x1a8f74(0x178));for(const _0x32968b of _0x476482[_0x1a8f74(0x112)]['split']('\x0a')){console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20'+_0x32968b);}}}else console['log']('Scenario\x20'+_0x1c4f27[_0x1a8f74(0x189)](_0x1c4ec6,0x1)+_0x1a8f74(0x159)+_0x278730[_0x1a8f74(0x11f)]+'\x22'+_0x2b2f3c+_0x1a8f74(0x162)),console[_0x1a8f74(0x1a0)](_0x1a8f74(0x148));console['log']('');}}function _0xca9d(_0x2f96fe,_0x586ec3){_0x2f96fe=_0x2f96fe-0x10f;const _0x226a47=_0x226a();let _0xca9d26=_0x226a47[_0x2f96fe];return _0xca9d26;}export async function featureDelete(_0x22f3ac){const _0x3a7492=_0x442b66,_0xdae340={'upWCn':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','MwfvE':function(_0x4a53b1,_0x3a9319){return _0x4a53b1(_0x3a9319);},'SMlzU':function(_0x336697,_0x126bb5){return _0x336697+_0x126bb5;}},_0x2e4b14=_0x22f3ac||await getActiveFeatureId();if(!_0x2e4b14)throw new Error(_0xdae340['upWCn']);const _0x43d7d7=await getFeature(_0x2e4b14);await _0xdae340['MwfvE'](softDeleteFeature,_0x2e4b14),console[_0x3a7492(0x1a0)](_0x3a7492(0x19a)+_0x43d7d7[_0x3a7492(0x1d0)]+'\x20('+_0x2e4b14+')'),console[_0x3a7492(0x1a0)](_0xdae340['SMlzU'](_0x3a7492(0x1c9),_0x2e4b14));}export async function featureRestore(_0x2b86b7){const _0x3e8618=_0x442b66,_0x55f5f7={'PtOou':function(_0x190de7,_0x12a5ec){return _0x190de7(_0x12a5ec);}};await _0x55f5f7['PtOou'](restoreFeature,_0x2b86b7);const _0x5666a7=await getFeature(_0x2b86b7);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x5666a7['name']+'\x20('+_0x2b86b7+')'),displayFeature(_0x5666a7,_0x5666a7[_0x3e8618(0x131)]);}
|
|
1
|
+
const _0x2966c9=_0x3b6a;(function(_0x576e3d,_0x116085){const _0x20c8c=_0x3b6a,_0x50958f=_0x576e3d();while(!![]){try{const _0x369972=-parseInt(_0x20c8c(0x10d))/0x1+parseInt(_0x20c8c(0x14b))/0x2+parseInt(_0x20c8c(0x149))/0x3+-parseInt(_0x20c8c(0xff))/0x4+parseInt(_0x20c8c(0x157))/0x5+parseInt(_0x20c8c(0x1ad))/0x6*(-parseInt(_0x20c8c(0x164))/0x7)+-parseInt(_0x20c8c(0x12b))/0x8*(parseInt(_0x20c8c(0x146))/0x9);if(_0x369972===_0x116085)break;else _0x50958f['push'](_0x50958f['shift']());}catch(_0x29e79d){_0x50958f['push'](_0x50958f['shift']());}}}(_0x21a2,0x9ae8f));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x592757 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';function _0x21a2(){const _0x45cb73=['isKeyStep','terminalReason','length','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','Apwep','verification_in_progress','bztrA','CeUVl','1746455aGhUrN','zcjHD','\x20\x20\x20Updated\x20branch\x20to:\x20','...','\x20scenario(s).','notes','OQGHF','\x20(v','\x20of\x20','VDOms','prompt','RVPIC','fzcMt','7REYCEL','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','vLRAp','scenarios','\x20\x20💬\x20','git\x20remote\x20get-url\x20origin','iimhI','\x20at\x20[','wUhuN','gitBranch','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','dMFiQ','\x20\x20\x20Created:\x20','textContent','.png','selector','stats','):\x20\x22','\x20\x20\x20▶️\x20Started\x20session\x20','\x20verified','JHgfa','blockedItems','\x20>\x20','status','OpfNG','iteration','completed','DOZoE','env','NUyQK','uJOQc','type','QBXnz','TIkyK','\x20\x20\x20\x20\x20Branch:\x20','exit','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','roOqs','xRZAl','\x20\x20\x20Repository:\x20','screenshot','\x0aCreating\x20feature\x20review...','blocked','nrCvj','fHzgi','ready','wWiud','currentBranch','incomplete','mxUxh','authorName','offset','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','RVbNK','slice','includeDeleted','kpQvO','PnuYY','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','HMyCX','aWvkp','trimEnd','\x20/\x20','excludeScenarios','Screenshot\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','\x0a✅\x20Session\x20','SIhrp','currentSessionId','utf-8','Scenario\x20','assetUrl','incompleteItems','5378430nTwBPB','NjNMx','ysNJC','lJvhl','incompleteReason','unaddressedComments','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x0a⚠️\x20\x20','\x0a✅\x20Report\x20generated:\x20','\x20\x20Expected\x20flow:','\x20unaddressed\x20comment(s)','version','Showing\x20','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','\x0a✅\x20Scenario\x20added','name','totalCount','write','description','uIkRb','DtsCM','\x1b[0m','\x20Session\x20','createdAt','canceledReason','\x0a\x20\x20\x20Scenarios:','YcLhp','cVIOK','\x20\x20\x20Description:\x20','cLoFz',':\x20\x22','gitRepoUrl','split','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','KBaEz','HMVzK','WnMUW','No\x20sessions\x20found.','isTTY','\x20\x20\x20\x20\x20Progress:\x20','Gjfqp','repeat','\x20concluded.','canonicalFlow','dashboardUrl','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','domRef','content','closed','stringify','\x0a✅\x20Restored\x20feature\x20review:\x20','\x20\x20\x20Status:\x20','Kmwkx','items','yAAaf','in_progress','.md','browserSessionId','myTpt','completedAt','\x20\x20\x20\x20\x20\x20Cancelled:\x20','51292HZMWjp','uyBHN','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','limit','coordinates','latestReview','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','awwKb','after','sessionId','scenario','nZmqE','TrrzH','XNbrv','86660UzQpsD','mVZXq','0|4|5|3|2|1','parentItemId','\x0aConcluding\x20session...','\x20\x20\x20Branch:\x20','\x0aAvailable\x20scenarios:','toLocaleDateString','\x0a📋\x20Feedback\x20for:\x20','QqcMA','all','qQOLf','linkedSession','trim','pipe','eVtJn','\x20—\x20no\x20comments','QBpcg','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','Next\x20page:\x20ranger\x20list\x20--offset\x20','any','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','assetType','stdout','submittedAt','replace','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','reports','log','eLdix','152fjPtOY','wQNkx','lQVAZ','\x0a❌\x20Invalid\x20scenario\x20index:\x20','slYNb','\x20\x20\x20Completed:\x20','AXOBr','assets','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','vZFYR','push','filter','EXWim','toFixed','error','find','Emkzw','HIRyd','screenshotUrls','map','nCTCE','Current\x20session\x20not\x20found.','spatial','toLocaleString','checklistItems','aIXGz','JOHlO','122517MFxTDY','numeric','selected','976863OnPAxD','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','2428268hwFazf','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','kbYMK'];_0x21a2=function(){return _0x45cb73;};return _0x21a2();}import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x588666=>'\x1b[1m'+_0x588666+_0x2966c9(0x1c2);function getGitRepoUrl(){const _0x38708b=_0x2966c9,_0x59fbc8={'OpfNG':function(_0x3108a0,_0x283e06,_0x2827f8){return _0x3108a0(_0x283e06,_0x2827f8);},'jpEdN':_0x38708b(0x1a9),'xvEAE':'pipe','CPgDC':'github.com/'};try{const _0x3d7c5d=_0x59fbc8[_0x38708b(0x17c)](execSync,_0x38708b(0x169),{'encoding':_0x59fbc8['jpEdN'],'stdio':['pipe',_0x38708b(0x11b),_0x59fbc8['xvEAE']]})[_0x38708b(0x11a)]();return _0x3d7c5d[_0x38708b(0x126)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x59fbc8['CPgDC'])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xa2809=_0x2966c9,_0x98f968={'TrrzH':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','kpQvO':_0xa2809(0x1a9),'VDOms':_0xa2809(0x11b)};try{return execSync(_0x98f968[_0xa2809(0x10b)],{'encoding':_0x98f968[_0xa2809(0x19c)],'stdio':[_0x98f968[_0xa2809(0x160)],_0xa2809(0x11b),_0x98f968[_0xa2809(0x160)]]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x17ba91=_0x2966c9,_0x212eb8={'fJBcq':function(_0xb498ed,_0x38741c){return _0xb498ed(_0x38741c);},'iimhI':'utf-8'},_0x25b4b0=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x212eb8['fJBcq'](existsSync,_0x25b4b0))return null;try{const _0x8284dd=await readFile(_0x25b4b0,_0x212eb8[_0x17ba91(0x16a)]);return _0x8284dd[_0x17ba91(0x11a)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x3a0ab4){const _0x44937b=_0x2966c9,_0x4a1d58={'Bbrys':function(_0x3e2177,_0x5a03db){return _0x3e2177(_0x5a03db);},'qQOLf':function(_0x21f516,_0x57b3c2,_0x3db142){return _0x21f516(_0x57b3c2,_0x3db142);},'rNLDC':'utf-8'},_0x3a66fa=getRangerDir(),_0x3fe715=join(_0x3a66fa,ACTIVE_FEATURE_FILE);!_0x4a1d58['Bbrys'](existsSync,_0x3a66fa)&&await _0x4a1d58[_0x44937b(0x118)](mkdir,_0x3a66fa,{'recursive':!![]}),await writeFile(_0x3fe715,_0x3a0ab4,_0x4a1d58['rNLDC']);}function getProgressDisplay(_0x12fccd){const _0x258b63=_0x2966c9,_0x31d693={'jOhgA':function(_0x34c4fb,_0x4d1245){return _0x34c4fb+_0x4d1245;},'myTpt':function(_0x96171,_0x44ff16){return _0x96171===_0x44ff16;},'IBRkW':function(_0x498fa2,_0x18dff8){return _0x498fa2/_0x18dff8;},'qjhiv':function(_0x4c0bd3,_0x5879d4){return _0x4c0bd3+_0x5879d4;},'zcjHD':function(_0x3df3f7,_0x398d5d){return _0x3df3f7>_0x398d5d;},'lGutr':function(_0x48da6a,_0x394ce6){return _0x48da6a>_0x394ce6;}},_0xf5336a=_0x12fccd['verifiedItems']||0x0,_0x2faaca=_0x12fccd['verificationInProgressItems']||0x0,_0x36ba0c=_0x12fccd[_0x258b63(0x179)]||0x0,_0x33a5c5=_0x12fccd[_0x258b63(0x1ac)]||0x0,_0x1fcdf7=_0x12fccd['pendingItems']||0x0,_0x16cd86=_0x31d693['jOhgA'](_0xf5336a,_0x2faaca)+_0x36ba0c+_0x33a5c5+_0x1fcdf7;if(_0x31d693[_0x258b63(0x1e7)](_0x16cd86,0x0))return'-';const _0x358bdd=0xa,_0xa20766=Math['round'](_0x31d693['IBRkW'](_0xf5336a,_0x16cd86)*_0x358bdd),_0x509fa9=_0x31d693['qjhiv']('█'[_0x258b63(0x1d6)](_0xa20766),'░'[_0x258b63(0x1d6)](_0x358bdd-_0xa20766)),_0x456191=[];if(_0x31d693[_0x258b63(0x158)](_0x36ba0c,0x0))_0x456191['push'](_0x36ba0c+'\x20blocked');if(_0x33a5c5>0x0)_0x456191['push'](_0x33a5c5+'\x20incomplete');if(_0x2faaca>0x0)_0x456191[_0x258b63(0x135)](_0x2faaca+'\x20in\x20progress');const _0x296970=_0x31d693['lGutr'](_0x456191['length'],0x0)?'\x20('+_0x456191['join'](',\x20')+')':'';return _0x509fa9+'\x20'+_0xf5336a+'/'+_0x16cd86+_0x258b63(0x177)+_0x296970;}function getCurrentSessionItems(_0x417dfe,_0x3fb8b3){const _0x5967c4=_0x2966c9;if(!_0x417dfe['currentSessionId'])return _0x3fb8b3[_0x5967c4(0x136)](_0x3900ea=>!_0x3900ea[_0x5967c4(0x108)]);return _0x3fb8b3[_0x5967c4(0x136)](_0xdb979c=>_0xdb979c[_0x5967c4(0x108)]===_0x417dfe['currentSessionId']||!_0xdb979c[_0x5967c4(0x108)]);}function displayFeature(_0x274ef0,_0x233899){const _0x21deed=_0x2966c9,_0x306cc0={'bztrA':function(_0x518351,_0x4acae3){return _0x518351>_0x4acae3;},'fHzgi':function(_0x518af8,_0x72b374){return _0x518af8===_0x72b374;},'nCTCE':_0x21deed(0x1dd),'vLRAp':'verified','xAXAp':function(_0x3c0c67,_0x527ce7){return _0x3c0c67===_0x527ce7;},'HMyCX':_0x21deed(0x18e),'DABsf':'verification_in_progress','mxUxh':function(_0x3ce14a,_0x37072d){return _0x3ce14a>_0x37072d;},'wQNkx':function(_0x22d020,_0x240093){return _0x22d020!==_0x240093;},'cgKFn':'\x20[has\x20reviewer\x20feedback]','Kmwkx':_0x21deed(0x194),'XNbrv':function(_0x33043f,_0x512a88){return _0x33043f===_0x512a88;},'GkeEL':'approved','SIhrp':function(_0x1d1e35,_0x22f4eb){return _0x1d1e35===_0x22f4eb;}};console[_0x21deed(0x129)]('\x0a'+_0x274ef0['name']+'\x20('+_0x274ef0['dashboardUrl']+')');_0x274ef0['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x274ef0[_0x21deed(0x174)]));_0x274ef0[_0x21deed(0x1bf)]&&console['log'](_0x21deed(0x1c9)+_0x274ef0[_0x21deed(0x1bf)]);_0x274ef0[_0x21deed(0x1cc)]&&console['log'](_0x21deed(0x18b)+_0x274ef0[_0x21deed(0x1cc)]);_0x274ef0['gitBranch']&&console['log'](_0x21deed(0x112)+_0x274ef0['gitBranch']);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x274ef0[_0x21deed(0x1c4)])['toLocaleString']());_0x274ef0[_0x21deed(0xfd)]&&console[_0x21deed(0x129)](_0x21deed(0x130)+new Date(_0x274ef0[_0x21deed(0xfd)])['toLocaleString']());if(_0x233899&&_0x306cc0[_0x21deed(0x155)](_0x233899['length'],0x0)){console[_0x21deed(0x129)](_0x21deed(0x1c6));for(let _0xe19cd0=0x0;_0xe19cd0<_0x233899[_0x21deed(0x150)];_0xe19cd0++){const _0x6b65f9=_0x233899[_0xe19cd0];let _0x38d28e;if(_0x306cc0[_0x21deed(0x190)](_0x6b65f9['status'],_0x306cc0[_0x21deed(0x13f)])&&_0x6b65f9[_0x21deed(0x14f)]==='approved')_0x38d28e='✅';else{if(_0x6b65f9[_0x21deed(0x17b)]===_0x306cc0['vLRAp'])_0x38d28e='🟢';else{if(_0x6b65f9['status']===_0x21deed(0x194))_0x38d28e='🟠';else{if(_0x306cc0['xAXAp'](_0x6b65f9[_0x21deed(0x17b)],_0x306cc0[_0x21deed(0x19f)]))_0x38d28e='🛑';else{if(_0x306cc0[_0x21deed(0x190)](_0x6b65f9[_0x21deed(0x17b)],_0x306cc0[_0x21deed(0x13f)]))_0x38d28e='⛔';else _0x6b65f9['status']===_0x306cc0['DABsf']?_0x38d28e='⏳':_0x38d28e='⬜';}}}}const _0x527f0d=_0x306cc0[_0x21deed(0x195)](_0x6b65f9[_0x21deed(0x1b8)],0x1)?'\x20(v'+_0x6b65f9[_0x21deed(0x1b8)]+')':'',_0x4af3b3=_0x6b65f9['version']>0x1&&_0x6b65f9[_0x21deed(0x110)]&&_0x6b65f9[_0x21deed(0x17b)]!==_0x306cc0[_0x21deed(0x13f)]&&_0x306cc0[_0x21deed(0x12c)](_0x6b65f9['status'],_0x306cc0[_0x21deed(0x166)])?_0x306cc0['cgKFn']:'';console[_0x21deed(0x129)]('\x20\x20\x20'+(_0xe19cd0+0x1)+'.\x20'+_0x38d28e+'\x20'+_0x6b65f9[_0x21deed(0x1bf)]+_0x527f0d+_0x4af3b3);_0x6b65f9[_0x21deed(0x17b)]===_0x21deed(0x18e)&&_0x6b65f9['blockedReason']&&console[_0x21deed(0x129)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x6b65f9['blockedReason']);_0x6b65f9[_0x21deed(0x17b)]===_0x306cc0[_0x21deed(0x1e1)]&&_0x6b65f9['incompleteReason']&&console[_0x21deed(0x129)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x6b65f9['incompleteReason']);if(_0x6b65f9[_0x21deed(0x17b)]===_0x306cc0['nCTCE']&&_0x306cc0[_0x21deed(0x10c)](_0x6b65f9[_0x21deed(0x14f)],_0x306cc0['GkeEL']))console[_0x21deed(0x129)]('\x20\x20\x20\x20\x20\x20Approved');else _0x306cc0[_0x21deed(0x1a7)](_0x6b65f9[_0x21deed(0x17b)],'closed')&&_0x6b65f9[_0x21deed(0x1c5)]&&console['log'](_0x21deed(0xfe)+_0x6b65f9[_0x21deed(0x1c5)]);}}}export async function featureCreate(_0x2028ce,_0x45e2b4){const _0x50ffbd=_0x2966c9,_0x30a921={'OJIGl':function(_0x403f54,_0x593550){return _0x403f54===_0x593550;},'cVIOK':function(_0x1cd206,_0x5480ac){return _0x1cd206(_0x5480ac);},'RVPIC':function(_0x191012){return _0x191012();},'uJOQc':_0x50ffbd(0x18d),'yAAaf':function(_0x3691ba,_0x12fb9b){return _0x3691ba(_0x12fb9b);},'QBXnz':function(_0x400948,_0x5cad92,_0x5b6040){return _0x400948(_0x5cad92,_0x5b6040);}},{envNames:_0x5ae54a}=await getEnvNames();_0x30a921['OJIGl'](_0x5ae54a['length'],0x0)&&console['warn']('\x0a'+_0x30a921['cVIOK'](formatProfileRequiredMessage,_0x4089b9=>bold(_0x4089b9)));const _0x205b8d=_0x45e2b4['scenarios']?_0x45e2b4[_0x50ffbd(0x167)][_0x50ffbd(0x13e)](_0x4d9142=>_0x4d9142[_0x50ffbd(0x11a)]()):[],_0x6f83a0=getGitRepoUrl(),_0x5dd7a9=_0x30a921[_0x50ffbd(0x162)](getGitBranch);console[_0x50ffbd(0x129)](_0x30a921[_0x50ffbd(0x182)]);const _0x43c37a=await _0x30a921[_0x50ffbd(0x1e3)](createFeature,{'name':_0x2028ce,'description':_0x45e2b4['description'],'checklist':_0x205b8d,'gitRepoUrl':_0x6f83a0,'gitBranch':_0x5dd7a9});await setActiveFeatureId(_0x43c37a['id']),await _0x30a921[_0x50ffbd(0x1c8)](tryStartCurrentSession,_0x43c37a['id']);const _0x29797b=process[_0x50ffbd(0x180)]['CLAUDE_SESSION_ID'];_0x29797b&&_0x30a921[_0x50ffbd(0x184)](registerSession,_0x29797b,_0x43c37a['id']),console[_0x50ffbd(0x129)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x43c37a['id']),displayFeature(_0x43c37a,_0x43c37a[_0x50ffbd(0x143)]),console['log'](_0x50ffbd(0x11f));}export async function featureList(_0x159a19){const _0x256013=_0x2966c9,_0x2c1e79={'NUyQK':function(_0x54dc7f,_0x4d298e){return _0x54dc7f(_0x4d298e);},'fzcMt':function(_0x3e2ec5,_0x160d50){return _0x3e2ec5===_0x160d50;},'hLfXM':function(_0x41e4bc,_0xe74c17){return _0x41e4bc>_0xe74c17;},'beDfF':function(_0x383535,_0x419d6f){return _0x383535+_0x419d6f;},'WwvmS':'\x20--include-deleted'},_0x30cc58={'limit':_0x159a19['limit']??0xa,'offset':_0x159a19[_0x256013(0x197)]??0x0,'includeDeleted':_0x159a19['includeDeleted']};_0x159a19['currentBranch']&&(_0x30cc58['gitRepoUrl']=getGitRepoUrl(),_0x30cc58['gitBranch']=getGitBranch());const _0x151ff0=await _0x2c1e79[_0x256013(0x181)](listFeatures,_0x30cc58);if(_0x2c1e79[_0x256013(0x163)](_0x151ff0[_0x256013(0x1e2)][_0x256013(0x150)],0x0)){console[_0x256013(0x129)]('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x2bff0c=_0x2c1e79['hLfXM'](_0x151ff0['totalCount'],_0x151ff0[_0x256013(0x1e2)]['length'])?_0x256013(0x1b9)+_0x151ff0[_0x256013(0x1e2)][_0x256013(0x150)]+_0x256013(0x15f)+_0x151ff0[_0x256013(0x1bd)]:_0x151ff0['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x256013(0x129)]('\x0a'+_0x2bff0c+':\x0a');for(const _0x547824 of _0x151ff0['items']){console[_0x256013(0x129)](''+_0x547824['name']),console['log']('\x20\x20\x20ID:\x20'+_0x547824['id']),_0x547824[_0x256013(0x174)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x547824[_0x256013(0x174)])),_0x547824['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x547824['gitBranch']),console[_0x256013(0x129)](_0x256013(0x170)+new Date(_0x547824[_0x256013(0x1c4)])['toLocaleDateString']()),console['log']('');}const _0x552be4=_0x30cc58[_0x256013(0x102)]??0xa,_0x42cee9=_0x2c1e79['beDfF'](_0x30cc58['offset']??0x0,_0x151ff0[_0x256013(0x1e2)]['length']);if(_0x42cee9<_0x151ff0[_0x256013(0x1bd)]){const _0x5af863=_0x552be4!==0xa?'\x20--limit\x20'+_0x552be4:'',_0x4aedad=_0x159a19[_0x256013(0x193)]?'\x20--current-branch':'',_0x13ac50=_0x159a19[_0x256013(0x19b)]?_0x2c1e79['WwvmS']:'';console[_0x256013(0x129)](_0x256013(0x120)+_0x42cee9+_0x5af863+_0x4aedad+_0x13ac50);}}export async function featureShow(_0x13a670){const _0x406570=_0x2966c9,_0x1b8b35={'kbYMK':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x580a54=_0x13a670||await getActiveFeatureId();if(!_0x580a54)throw new Error(_0x1b8b35[_0x406570(0x14d)]);const _0x13581c=await getFeature(_0x580a54);displayFeature(_0x13581c,_0x13581c['checklistItems']);}export async function featureResume(_0x457b4d){const _0x4f0ae5=_0x2966c9,_0x4d33c4={'mpook':function(_0x522116,_0x181482){return _0x522116!==_0x181482;},'aWvkp':function(_0x2492ba,_0x5a9733,_0x212cb3){return _0x2492ba(_0x5a9733,_0x212cb3);},'roOqs':function(_0x16e563,_0x3f77a9,_0x575cf9){return _0x16e563(_0x3f77a9,_0x575cf9);},'cLoFz':function(_0x2324cc,_0x21f767){return _0x2324cc(_0x21f767);},'HIRyd':function(_0x46cbde,_0x823d54){return _0x46cbde&&_0x823d54;},'nZmqE':'Not\x20in\x20a\x20git\x20repository.','DtsCM':function(_0x4f57fc,_0x1b3521){return _0x4f57fc||_0x1b3521;},'nPQLr':function(_0x2f1900,_0x4c4a6d){return _0x2f1900===_0x4c4a6d;},'OQGHF':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','uIkRb':_0x4f0ae5(0x1b3),'cVtHo':function(_0x56ba0b,_0x1c5dc6){return _0x56ba0b===_0x1c5dc6;},'uyBHN':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','uWZcY':_0x4f0ae5(0x152),'HMVzK':function(_0x4ba88c,_0x3d0aa7){return _0x4ba88c(_0x3d0aa7);},'tqjRh':function(_0x245e42,_0x380725,_0x37fec6){return _0x245e42(_0x380725,_0x37fec6);}};if(_0x457b4d){const _0xd23a16=await getFeature(_0x457b4d);await setActiveFeatureId(_0xd23a16['id']);const _0x37eeee=getGitBranch();_0x37eeee&&_0x4d33c4['mpook'](_0x37eeee,_0xd23a16[_0x4f0ae5(0x16d)])&&(await updateFeature(_0xd23a16['id'],{'gitBranch':_0x37eeee}),console[_0x4f0ae5(0x129)](_0x4f0ae5(0x159)+_0x37eeee));console[_0x4f0ae5(0x129)](_0x4f0ae5(0x1a5)+_0xd23a16['name']+'\x20('+_0xd23a16['id']+')'),await tryStartCurrentSession(_0xd23a16['id']);const _0x470237=process[_0x4f0ae5(0x180)]['CLAUDE_SESSION_ID'];_0x470237&&_0x4d33c4[_0x4f0ae5(0x1a0)](registerSession,_0x470237,_0xd23a16['id']);_0x4d33c4['roOqs'](displayFeature,_0xd23a16,_0xd23a16['checklistItems']),await _0x4d33c4[_0x4f0ae5(0x1ca)](printFeedbackNudge,_0xd23a16['id']);return;}const _0x2fe308=getGitRepoUrl(),_0x580eb8=getGitBranch();if(_0x4d33c4[_0x4f0ae5(0x13c)](!_0x2fe308,!_0x580eb8))throw new Error(_0x4d33c4[_0x4f0ae5(0x10a)]);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x2fe308||_0x4f0ae5(0x121))+_0x4f0ae5(0x1a2)+_0x4d33c4[_0x4f0ae5(0x1c1)](_0x580eb8,_0x4f0ae5(0x121))+_0x4f0ae5(0x15a));const _0x116450=await listFeatures({'gitRepoUrl':_0x2fe308,'gitBranch':_0x580eb8}),_0x44eb9b=_0x116450['items'][_0x4f0ae5(0x136)](_0x2c4b28=>!_0x2c4b28['completedAt']);if(_0x4d33c4['nPQLr'](_0x44eb9b['length'],0x0)){console['log'](_0x4d33c4[_0x4f0ae5(0x15d)]),console[_0x4f0ae5(0x129)](_0x4d33c4[_0x4f0ae5(0x1c0)]);return;}let _0x1ffb95;if(_0x4d33c4['cVtHo'](_0x44eb9b[_0x4f0ae5(0x150)],0x1))_0x1ffb95=_0x44eb9b[0x0];else{const _0x35dc28=process['stdin']['isTTY']&&process['stdout'][_0x4f0ae5(0x1d3)];if(!_0x35dc28){console[_0x4f0ae5(0x129)](_0x4f0ae5(0x122));for(const _0x170ff8 of _0x44eb9b){console[_0x4f0ae5(0x129)]('\x20\x20'+_0x170ff8['name']),console[_0x4f0ae5(0x129)]('\x20\x20\x20\x20\x20ID:\x20'+_0x170ff8['id']),_0x170ff8[_0x4f0ae5(0x174)]&&console[_0x4f0ae5(0x129)](_0x4f0ae5(0x1d4)+getProgressDisplay(_0x170ff8[_0x4f0ae5(0x174)])),_0x170ff8[_0x4f0ae5(0x16d)]&&console['log'](_0x4f0ae5(0x186)+_0x170ff8[_0x4f0ae5(0x16d)]);}throw new Error(_0x4d33c4[_0x4f0ae5(0x100)]);}const {selected:_0x48ac62}=await _0x592757[_0x4f0ae5(0x161)]([{'type':'list','name':_0x4f0ae5(0x148),'message':_0x4d33c4['uWZcY'],'choices':_0x44eb9b['map'](_0x9ad9f8=>({'name':_0x9ad9f8[_0x4f0ae5(0x1bc)]+'\x20('+_0x9ad9f8['id']+')','value':_0x9ad9f8['id']}))}]);_0x1ffb95=_0x44eb9b[_0x4f0ae5(0x13a)](_0x33f93c=>_0x33f93c['id']===_0x48ac62);}await setActiveFeatureId(_0x1ffb95['id']);_0x580eb8&&_0x4d33c4['mpook'](_0x580eb8,_0x1ffb95['gitBranch'])&&(await updateFeature(_0x1ffb95['id'],{'gitBranch':_0x580eb8}),console[_0x4f0ae5(0x129)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x580eb8));console[_0x4f0ae5(0x129)](_0x4f0ae5(0x1a5)+_0x1ffb95[_0x4f0ae5(0x1bc)]+'\x20('+_0x1ffb95['id']+')'),await tryStartCurrentSession(_0x1ffb95['id']);const _0x2a5bc1=await _0x4d33c4[_0x4f0ae5(0x1d0)](getFeature,_0x1ffb95['id']),_0x286a58=process['env']['CLAUDE_SESSION_ID'];_0x286a58&&_0x4d33c4['tqjRh'](registerSession,_0x286a58,_0x2a5bc1['id']),_0x4d33c4[_0x4f0ae5(0x189)](displayFeature,_0x2a5bc1,_0x2a5bc1['checklistItems']),await _0x4d33c4['cLoFz'](printFeedbackNudge,_0x2a5bc1['id']);}function _0x3b6a(_0x31481d,_0x5e6fc7){_0x31481d=_0x31481d-0xfd;const _0x21a2e4=_0x21a2();let _0x3b6af3=_0x21a2e4[_0x31481d];return _0x3b6af3;}async function printFeedbackNudge(_0x2995e3){const _0x2f810f=_0x2966c9,_0xcd8636={'lQVAZ':function(_0x337106,_0x1f0b19){return _0x337106(_0x1f0b19);},'argzu':function(_0x3f0a3a,_0x5b6b7b){return _0x3f0a3a>_0x5b6b7b;}};try{const {items:_0x4903d3}=await _0xcd8636[_0x2f810f(0x12d)](getActionItems,_0x2995e3);let _0x2aed25=0x0,_0x39653e=0x0;for(const _0x5094ac of _0x4903d3){const _0x200109=await getItemFeedback(_0x2995e3,_0x5094ac['id']);_0xcd8636['argzu'](_0x200109['unaddressedComments'][_0x2f810f(0x150)],0x0)&&(_0x2aed25+=_0x200109['unaddressedComments'][_0x2f810f(0x150)],_0x39653e++);}_0x2aed25>0x0&&(console['log'](_0x2f810f(0x1b4)+_0x2aed25+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x39653e+_0x2f810f(0x15b)),console['log'](_0x2f810f(0x1ce)));}catch{}}async function tryStartCurrentSession(_0x4d1590){const _0x138d97=_0x2966c9,_0xfdd6c={'euram':function(_0x1534fa,_0x3450fc){return _0x1534fa(_0x3450fc);}};try{const {sessions:_0x1b4336}=await _0xfdd6c['euram'](listFeatureSessions,_0x4d1590),_0xcbd9f4=_0x1b4336[_0x138d97(0x13a)](_0x28ca93=>_0x28ca93[_0x138d97(0x17b)]===_0x138d97(0x191));_0xcbd9f4&&(await startSession(_0x4d1590,_0xcbd9f4['id']),console[_0x138d97(0x129)](_0x138d97(0x176)+_0xcbd9f4['iteration']));}catch{}}export async function featureReport(_0x5e8ef7,_0x34eccf){const _0x3735e4=_0x2966c9,_0x2e6dff={'Thqgo':function(_0x1cad98){return _0x1cad98();},'wWiud':'\x0aGenerating\x20report...','slYNb':function(_0x2a193,_0x5e553f,_0x23d8c8,_0x2ea03e){return _0x2a193(_0x5e553f,_0x23d8c8,_0x2ea03e);},'TIkyK':function(_0x5447cb){return _0x5447cb();},'tKOyE':_0x3735e4(0x128),'xzTSX':function(_0x5ec655,_0x492b7d,_0x59b8bd){return _0x5ec655(_0x492b7d,_0x59b8bd);},'mVZXq':function(_0x3c4267,_0x3b4613,_0x4e0aee){return _0x3c4267(_0x3b4613,_0x4e0aee);},'lJvhl':function(_0xed5eda,_0x23c586,_0x2652a6,_0x1b5fdf){return _0xed5eda(_0x23c586,_0x2652a6,_0x1b5fdf);}},_0x2cd86b=_0x5e8ef7||await _0x2e6dff['Thqgo'](getActiveFeatureId);if(!_0x2cd86b)throw new Error(_0x3735e4(0x101));console['log'](_0x2e6dff[_0x3735e4(0x192)]);const _0x34b43c=await getFeatureReportMarkdown(_0x2cd86b,{'style':_0x34eccf['style']}),_0x10e8e7=_0x34eccf['output']||_0x2e6dff[_0x3735e4(0x12f)](join,_0x2e6dff[_0x3735e4(0x185)](getRangerDir),_0x2e6dff['tKOyE'],_0x2cd86b+_0x3735e4(0x1e5)),_0x305e80=_0x2e6dff['xzTSX'](join,_0x10e8e7,'..');!existsSync(_0x305e80)&&await _0x2e6dff[_0x3735e4(0x10e)](mkdir,_0x305e80,{'recursive':!![]}),await _0x2e6dff[_0x3735e4(0x1b0)](writeFile,_0x10e8e7,_0x34b43c,'utf-8'),console['log'](_0x3735e4(0x1b5)+_0x10e8e7);}function getScenarioResult(_0x1d2feb){const _0x241bc9=_0x2966c9,_0x3d567c={'SMxlx':'closed','QBpcg':function(_0x36ba4f,_0x364b27){return _0x36ba4f===_0x364b27;},'RVbNK':'in_progress'};if(_0x1d2feb[_0x241bc9(0x17b)]===_0x241bc9(0x1dd))return _0x1d2feb['terminalReason']??_0x3d567c['SMxlx'];if(_0x3d567c[_0x241bc9(0x11e)](_0x1d2feb[_0x241bc9(0x17b)],_0x241bc9(0x154)))return _0x3d567c[_0x241bc9(0x199)];return _0x1d2feb[_0x241bc9(0x17b)];}function getScenarioRationale(_0xbd864c,_0x18e5c6){const _0x441f4e=_0x2966c9,_0x40eaed={'QRjNE':_0x441f4e(0x10f)},_0x3df24d=_0x40eaed['QRjNE']['split']('|');let _0x106d2f=0x0;while(!![]){switch(_0x3df24d[_0x106d2f++]){case'0':if(_0x18e5c6)return _0x18e5c6;continue;case'1':return null;case'2':if(_0xbd864c[_0x441f4e(0x15c)])return _0xbd864c['notes'];continue;case'3':if(_0xbd864c[_0x441f4e(0x1c5)])return _0xbd864c['canceledReason'];continue;case'4':if(_0xbd864c['blockedReason'])return _0xbd864c['blockedReason'];continue;case'5':if(_0xbd864c[_0x441f4e(0x1b1)])return _0xbd864c[_0x441f4e(0x1b1)];continue;}break;}}export async function featureReportPrDescription(_0x3eb574,_0x38ff94){const _0x24fc3c=_0x2966c9,_0x1d8d96={'CeUVl':function(_0x29c75d,_0x35c214){return _0x29c75d(_0x35c214);},'kFWWS':function(_0x8d648,_0x3f7306){return _0x8d648===_0x3f7306;},'pPmuF':function(_0x2b2f53,_0x16476c){return _0x2b2f53<_0x16476c;}},_0x519b07=_0x3eb574||await getActiveFeatureId();if(!_0x519b07)throw new Error(_0x24fc3c(0x101));const _0x572271=await _0x1d8d96[_0x24fc3c(0x156)](getFeature,_0x519b07),_0x409532=_0x572271['checklistItems']||[],_0x344c49=getCurrentSessionItems(_0x572271,_0x409532);_0x1d8d96['kFWWS'](_0x344c49['length'],0x0)&&(console[_0x24fc3c(0x139)](_0x24fc3c(0x14a)),process[_0x24fc3c(0x187)](0x1));const _0x8d5cd0=_0x38ff94[_0x24fc3c(0x1a3)]??[],_0x4f7c37=_0x8d5cd0[_0x24fc3c(0x136)](_0xb9a005=>!Number['isInteger'](_0xb9a005)||_0xb9a005<0x1||_0xb9a005>_0x344c49['length']);if(_0x4f7c37[_0x24fc3c(0x150)]>0x0){console[_0x24fc3c(0x139)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x4f7c37['join'](',\x20')),console[_0x24fc3c(0x129)]('\x0aAvailable\x20scenarios:');for(let _0x235719=0x0;_0x1d8d96['pPmuF'](_0x235719,_0x344c49['length']);_0x235719++){console[_0x24fc3c(0x129)]('\x20\x20'+(_0x235719+0x1)+'.\x20'+_0x344c49[_0x235719][_0x24fc3c(0x1bf)]);}process['exit'](0x1);}const _0x473b08=new Set(_0x8d5cd0[_0x24fc3c(0x13e)](_0x1380ea=>_0x1380ea-0x1)),_0xb48eb0=_0x344c49['filter']((_0x3731d0,_0x113b17)=>!_0x473b08['has'](_0x113b17));_0xb48eb0[_0x24fc3c(0x150)]===0x0&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x24fc3c(0x187)](0x1));if(_0x38ff94['json'])await outputJsonReport(_0x519b07,_0x572271,_0xb48eb0);else{const _0x1ee7d0=await getFeatureReportMarkdown(_0x519b07,{'itemIds':_0xb48eb0['map'](_0x234ef3=>_0x234ef3['id'])});process[_0x24fc3c(0x124)]['write'](_0x1ee7d0[_0x24fc3c(0x1a1)]()+'\x0a');}}async function outputJsonReport(_0x2ccf1a,_0x40c70c,_0x3891ae){const _0x2d7d19=_0x2966c9,_0x4a6085={'aIXGz':function(_0x15ffe8,_0x1d4143){return _0x15ffe8>_0x1d4143;},'NjNMx':function(_0x385bda,_0xb0c87){return _0x385bda(_0xb0c87);},'JOHlO':function(_0xfde0da){return _0xfde0da();}},_0xa3e6d4=_0x4a6085[_0x2d7d19(0x145)](getApiBaseUrl),_0x590f3f=await _0x4a6085[_0x2d7d19(0x1ae)](getFeatureReport,_0x2ccf1a),_0x542272=new Map(_0x590f3f[_0x2d7d19(0x143)][_0x2d7d19(0x13e)](_0x3dac2b=>[_0x3dac2b['id'],_0x3dac2b])),_0x4e332a=await Promise[_0x2d7d19(0x117)](_0x3891ae['map'](async _0x3c3891=>{const _0x45aa87=_0x2d7d19,_0x25025a=_0x542272['get'](_0x3c3891['id']),_0x527d21=_0x25025a?.[_0x45aa87(0x119)]??null;let _0x4b4b01=[];if(_0x3c3891['browserSessionId'])try{const {steps:_0x3ebba1}=await getBrowserSessionSteps(_0x3c3891['browserSessionId']);_0x4a6085[_0x45aa87(0x144)](_0x3ebba1[_0x45aa87(0x150)],0x0)&&(_0x4b4b01=_0x3ebba1['map'](_0x4cb27e=>{const _0x43fb42=_0x45aa87,_0x295195=_0x4cb27e[_0x43fb42(0x132)][_0x43fb42(0x13a)](_0x3a8b51=>_0x3a8b51['assetType']==='screenshot'&&_0x3a8b51['timing']===_0x43fb42(0x107))??_0x4cb27e[_0x43fb42(0x132)]['find'](_0x3cda3e=>_0x3cda3e[_0x43fb42(0x123)]===_0x43fb42(0x18c));let _0x1ef9a8=null,_0x21998b=null;if(_0x295195){const _0x3b617a=_0x295195['storage']['location'][_0x43fb42(0x1cd)]('/')['pop']();_0x1ef9a8=_0xa3e6d4+'/api/v1/mcp/browser-sessions/'+_0x3c3891[_0x43fb42(0x1e6)]+'/artifacts/'+_0x3b617a,_0x3b617a&&(_0x21998b=_0x3b617a[_0x43fb42(0x126)](/\.\w+$/,'')[_0x43fb42(0x126)](/^(key_)?\d+_/,'')[_0x43fb42(0x126)](/[-_]/g,'\x20'));}return{'description':_0x21998b||_0x4cb27e['description']||_0x4cb27e['stepName']||'Step\x20'+_0x4cb27e['position'],'screenshot':_0x1ef9a8,'is_key_step':_0x4cb27e[_0x43fb42(0x14e)]};}));}catch{}return _0x4b4b01['length']===0x0&&_0x527d21?.[_0x45aa87(0x13d)]&&(_0x4b4b01=_0x527d21['screenshotUrls']['map']((_0x56fc2e,_0x25634f)=>({'description':_0x45aa87(0x1a4)+(_0x25634f+0x1),'screenshot':_0x56fc2e,'is_key_step':![]}))),{'description':_0x3c3891[_0x45aa87(0x1bf)],'result':_0x4a6085['NjNMx'](getScenarioResult,_0x3c3891),'rationale':getScenarioRationale(_0x3c3891,_0x527d21?.['agentResponse']),'steps':_0x4b4b01};})),_0x1a5ec5={'url':_0x40c70c[_0x2d7d19(0x1d9)],'scenarios':_0x4e332a};process[_0x2d7d19(0x124)][_0x2d7d19(0x1be)](JSON[_0x2d7d19(0x1de)](_0x1a5ec5,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x1b6ccd){const _0x295c22=_0x2966c9,_0x319b9d={'hKcDq':function(_0x9bc49a){return _0x9bc49a();},'Gjfqp':function(_0x1cfd7d,_0x537db4){return _0x1cfd7d(_0x537db4);},'awwKb':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','ngClA':_0x295c22(0x140),'YcLhp':function(_0x5f05dc,_0x39a297){return _0x5f05dc===_0x39a297;},'QPteu':_0x295c22(0x17e),'RPcYM':'\x0a✅\x20Session\x20is\x20already\x20completed.','kInwl':function(_0x7a1dbc,_0x45bc75,_0x2084c0){return _0x7a1dbc(_0x45bc75,_0x2084c0);}},_0x3d2814=_0x1b6ccd||await _0x319b9d['hKcDq'](getActiveFeatureId);if(!_0x3d2814)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 _0x29aad2=await _0x319b9d[_0x295c22(0x1d5)](getFeature,_0x3d2814);if(!_0x29aad2[_0x295c22(0x1a8)])throw new Error(_0x319b9d[_0x295c22(0x106)]);const {sessions:_0x4539a9}=await listFeatureSessions(_0x3d2814),_0x4c827c=_0x4539a9[_0x295c22(0x13a)](_0x4ab45c=>_0x4ab45c['id']===_0x29aad2['currentSessionId']);if(!_0x4c827c)throw new Error(_0x319b9d['ngClA']);if(_0x319b9d[_0x295c22(0x1c7)](_0x4c827c['status'],_0x319b9d['QPteu'])){console['log'](_0x319b9d['RPcYM']);return;}if(_0x4c827c['status']!=='in_progress')throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x4c827c[_0x295c22(0x17b)]);console['log'](_0x295c22(0x111)),await _0x319b9d['kInwl'](concludeSession,_0x3d2814,_0x29aad2[_0x295c22(0x1a8)]),console['log'](_0x295c22(0x1a6)+_0x4c827c[_0x295c22(0x17d)]+_0x295c22(0x1d7)),console[_0x295c22(0x129)](_0x295c22(0x16e));}export async function featureSessions(_0x50546c){const _0x1256d3=_0x2966c9,_0x3a3802={'WxoKw':_0x1256d3(0x101),'QqcMA':function(_0x239191,_0x861f24){return _0x239191(_0x861f24);},'GRXLT':_0x1256d3(0x1d2),'AXOBr':function(_0x2a0b7c,_0x160bbb){return _0x2a0b7c===_0x160bbb;},'snpJB':_0x1256d3(0x1e4)},_0x40d1e3=_0x50546c||await getActiveFeatureId();if(!_0x40d1e3)throw new Error(_0x3a3802['WxoKw']);const _0x234033=await getFeature(_0x40d1e3);console['log'](_0x1256d3(0x133)+_0x234033[_0x1256d3(0x1bc)]+'\x0a');const {sessions:_0x1ab2ec}=await _0x3a3802[_0x1256d3(0x116)](listFeatureSessions,_0x40d1e3);if(_0x1ab2ec['length']===0x0){console['log'](_0x3a3802['GRXLT']);return;}for(const _0x3fa87a of _0x1ab2ec){const _0x486565=_0x3a3802['AXOBr'](_0x3fa87a[_0x1256d3(0x17b)],'completed')?'✅':_0x3a3802[_0x1256d3(0x131)](_0x3fa87a['status'],_0x3a3802['snpJB'])?'🔄':'▶️';console['log'](_0x486565+_0x1256d3(0x1c3)+_0x3fa87a[_0x1256d3(0x17d)]+'\x20('+_0x3fa87a['id']+')'),console['log'](_0x1256d3(0x1e0)+_0x3fa87a[_0x1256d3(0x17b)]),console['log'](_0x1256d3(0x170)+new Date(_0x3fa87a['createdAt'])['toLocaleString']()),_0x3fa87a['completedAt']&&console[_0x1256d3(0x129)]('\x20\x20\x20Completed:\x20'+new Date(_0x3fa87a['completedAt'])[_0x1256d3(0x142)]()),console['log']('');}}export async function featureAddScenario(_0x1d1a4a,_0x4ea147){const _0x2aac49=_0x2966c9,_0x3b2fb8={'nrCvj':function(_0x1b8b63,_0x5b8059){return _0x1b8b63(_0x5b8059);},'ruWXE':function(_0x3b2ebb,_0x406931,_0x39c20f){return _0x3b2ebb(_0x406931,_0x39c20f);}},_0x38ff59=_0x4ea147||await getActiveFeatureId();if(!_0x38ff59)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 _0x1862d3=await _0x3b2fb8[_0x2aac49(0x18f)](getFeature,_0x38ff59);if(_0x1862d3[_0x2aac49(0x104)]&&!_0x1862d3['latestReview']['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x1862d3['dashboardUrl']);await createChecklistItem(_0x38ff59,_0x1d1a4a);const _0x15e0a4=await getFeature(_0x38ff59);console[_0x2aac49(0x129)](_0x2aac49(0x1bb)),_0x3b2fb8['ruWXE'](displayFeature,_0x15e0a4,_0x15e0a4[_0x2aac49(0x143)]);}export async function featureEditScenario(_0x177498,_0x1ff6f4){const _0x5e5f57=_0x2966c9,_0x51333a={'pdyxx':_0x5e5f57(0x165),'xybLk':'Please\x20finish\x20your\x20review\x20first:','eVtJn':_0x5e5f57(0x188),'Uetgi':function(_0x32110e,_0x95ab97){return _0x32110e===_0x95ab97;},'JHgfa':_0x5e5f57(0x198),'wUhuN':function(_0x4ad865,_0x3a4713){return _0x4ad865<_0x3a4713;},'PnuYY':function(_0x5e6c14,_0x463552){return _0x5e6c14-_0x463552;},'mhZih':function(_0x516754,_0x32ec67){return _0x516754>=_0x32ec67;},'xRvsJ':'\x0aAvailable\x20scenarios:','vZFYR':function(_0x5b1696,_0x126469){return _0x5b1696+_0x126469;},'WnMUW':function(_0xa7f1d1,_0x4312ad,_0x14ec7f,_0x166d08){return _0xa7f1d1(_0x4312ad,_0x14ec7f,_0x166d08);}},_0x5e17b9=_0x1ff6f4['id']||await getActiveFeatureId();!_0x5e17b9&&(console[_0x5e5f57(0x139)](_0x51333a['pdyxx']),console[_0x5e5f57(0x139)](_0x5e5f57(0x105)),process['exit'](0x1));const _0x34a103=await getFeature(_0x5e17b9);_0x34a103[_0x5e5f57(0x104)]&&!_0x34a103[_0x5e5f57(0x104)][_0x5e5f57(0x125)]&&(console['error'](_0x5e5f57(0x1ba)),console[_0x5e5f57(0x139)](_0x51333a['xybLk']),console['error']('\x20\x20'+_0x34a103[_0x5e5f57(0x1d9)]),process['exit'](0x1));const _0x5df4d3=_0x34a103[_0x5e5f57(0x143)]||[];_0x5df4d3['length']===0x0&&(console['error'](_0x51333a[_0x5e5f57(0x11c)]),process[_0x5e5f57(0x187)](0x1));if(_0x51333a['Uetgi'](_0x1ff6f4[_0x5e5f57(0x109)],undefined)){console[_0x5e5f57(0x139)](_0x51333a[_0x5e5f57(0x178)]),console['log'](_0x5e5f57(0x113));for(let _0x42e42f=0x0;_0x51333a[_0x5e5f57(0x16c)](_0x42e42f,_0x5df4d3[_0x5e5f57(0x150)]);_0x42e42f++){console[_0x5e5f57(0x129)]('\x20\x20'+(_0x42e42f+0x1)+'.\x20'+_0x5df4d3[_0x42e42f][_0x5e5f57(0x1bf)]);}process['exit'](0x1);}const _0x2376d1=_0x51333a[_0x5e5f57(0x19d)](_0x1ff6f4['scenario'],0x1);if(_0x2376d1<0x0||_0x51333a['mhZih'](_0x2376d1,_0x5df4d3[_0x5e5f57(0x150)])){console['error'](_0x5e5f57(0x12e)+_0x1ff6f4['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x5df4d3[_0x5e5f57(0x150)]+'\x20scenarios.'),console['log'](_0x51333a['xRvsJ']);for(let _0x3542fd=0x0;_0x3542fd<_0x5df4d3['length'];_0x3542fd++){console['log']('\x20\x20'+_0x51333a[_0x5e5f57(0x134)](_0x3542fd,0x1)+'.\x20'+_0x5df4d3[_0x3542fd][_0x5e5f57(0x1bf)]);}process['exit'](0x1);}const _0x267f49=_0x5df4d3[_0x2376d1];await _0x51333a[_0x5e5f57(0x1d1)](updateChecklistItem,_0x5e17b9,_0x267f49['id'],{'description':_0x177498});const _0x2fc83d=await getFeature(_0x5e17b9);console[_0x5e5f57(0x129)]('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x2fc83d,_0x2fc83d[_0x5e5f57(0x143)]);}async function downloadFeedbackImage(_0x948990,_0x1c9856){const _0x301afa=_0x2966c9,_0x1c2087={'etCjM':'feedback-images','Emkzw':function(_0xaaf005,_0x5f4382,_0x2901c0){return _0xaaf005(_0x5f4382,_0x2901c0);},'XuMBA':function(_0x269668,_0x55c152){return _0x269668(_0x55c152);}};try{const _0x3558fa=join(getRangerDir(),_0x1c2087['etCjM']);await mkdir(_0x3558fa,{'recursive':!![]});const _0x5e065a=_0x1c2087[_0x301afa(0x13b)](join,_0x3558fa,'comment_'+_0x1c9856+_0x301afa(0x172)),_0x9d05a=await _0x1c2087['XuMBA'](fetch,_0x948990);if(!_0x9d05a['ok'])return null;const _0x54259f=Buffer['from'](await _0x9d05a['arrayBuffer']());return await writeFile(_0x5e065a,_0x54259f),_0x5e065a;}catch{return null;}}export async function featureGetReview(_0x253332){const _0x8fe5e0=_0x2966c9,_0x659981={'Ofjqe':function(_0x440508){return _0x440508();},'xRZAl':function(_0x38ec29,_0x2f9fb3){return _0x38ec29(_0x2f9fb3);},'EXWim':function(_0x3fed3b,_0x296bcd,_0x1debc2){return _0x3fed3b(_0x296bcd,_0x1debc2);},'DOZoE':'Unknown','Yuygx':'element','eLdix':function(_0x55e299,_0x4e21c4){return _0x55e299===_0x4e21c4;},'ysNJC':'point','QHVuZ':function(_0x16e8df,_0x9a019f){return _0x16e8df>=_0x9a019f;},'eUHJK':function(_0x23fc86,_0x107dde){return _0x23fc86+_0x107dde;}},_0x39eaf5=_0x253332||await _0x659981['Ofjqe'](getActiveFeatureId);if(!_0x39eaf5)throw new Error(_0x8fe5e0(0x19e));const _0x4cdaef=await _0x659981[_0x8fe5e0(0x18a)](getFeature,_0x39eaf5),{items:_0x33ff54}=await _0x659981[_0x8fe5e0(0x18a)](getActionItems,_0x39eaf5);console['log'](_0x8fe5e0(0x115)+_0x4cdaef[_0x8fe5e0(0x1bc)]+'\x20('+_0x4cdaef['id']+')\x0a');if(_0x33ff54[_0x8fe5e0(0x150)]===0x0){console[_0x8fe5e0(0x129)]('No\x20scenarios\x20found.');return;}for(let _0x1a93bc=0x0;_0x1a93bc<_0x33ff54[_0x8fe5e0(0x150)];_0x1a93bc++){const _0x28fb67=_0x33ff54[_0x1a93bc],_0x4a621a=_0x28fb67['version']>0x1?_0x8fe5e0(0x15e)+_0x28fb67[_0x8fe5e0(0x1b8)]+')':'',_0x543e6c=await _0x659981[_0x8fe5e0(0x137)](getItemFeedback,_0x39eaf5,_0x28fb67['id']);if(_0x543e6c[_0x8fe5e0(0x1b2)][_0x8fe5e0(0x150)]>0x0){console['log'](_0x8fe5e0(0x1aa)+(_0x1a93bc+0x1)+':\x20\x22'+_0x28fb67[_0x8fe5e0(0x1bf)]+'\x22'+_0x4a621a+'\x20—\x20'+_0x543e6c[_0x8fe5e0(0x1b2)]['length']+_0x8fe5e0(0x1b7));for(const _0x192c7f of _0x543e6c['unaddressedComments']){const _0x1f819f=new Date(_0x192c7f[_0x8fe5e0(0x1c4)])[_0x8fe5e0(0x114)]('en-US',{'month':'short','day':_0x8fe5e0(0x147)}),_0x3ab5c5=_0x192c7f[_0x8fe5e0(0x196)]||_0x192c7f['authorEmail']||_0x659981[_0x8fe5e0(0x17f)];console['log'](_0x8fe5e0(0x168)+_0x3ab5c5+'\x20('+_0x1f819f+_0x8fe5e0(0x175)+_0x192c7f[_0x8fe5e0(0x1dc)]+'\x22');if(_0x192c7f['assetUrl']){const _0x2618ae=await _0x659981[_0x8fe5e0(0x137)](downloadFeedbackImage,_0x192c7f[_0x8fe5e0(0x1ab)],_0x192c7f['id']);_0x2618ae&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x2618ae);}if(_0x192c7f[_0x8fe5e0(0x1db)]){const _0x39cc80=_0x192c7f[_0x8fe5e0(0x1db)][_0x8fe5e0(0x173)][_0x8fe5e0(0x1cd)](_0x8fe5e0(0x17a))['pop']()?.['split'](':')[0x0]||_0x659981['Yuygx'],_0x1f7d26=_0x192c7f['domRef']['textContent']?'\x20\x22'+_0x192c7f[_0x8fe5e0(0x1db)][_0x8fe5e0(0x171)][_0x8fe5e0(0x19a)](0x0,0x3c)+'\x22':'';console['log'](_0x8fe5e0(0x151)+_0x39cc80+'>'+_0x1f7d26),console[_0x8fe5e0(0x129)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x192c7f[_0x8fe5e0(0x1db)]['selector']);}else{if(_0x192c7f[_0x8fe5e0(0x141)]){const _0x22f5c0=_0x192c7f['spatial'][_0x8fe5e0(0x103)];_0x659981[_0x8fe5e0(0x12a)](_0x192c7f[_0x8fe5e0(0x141)][_0x8fe5e0(0x183)],_0x659981[_0x8fe5e0(0x1af)])&&_0x659981['QHVuZ'](_0x22f5c0['length'],0x2)?console[_0x8fe5e0(0x129)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x22f5c0[0x0]['toFixed'](0x2)+',\x20'+_0x22f5c0[0x1][_0x8fe5e0(0x138)](0x2)+')'):console['log'](_0x8fe5e0(0x14c)+_0x192c7f[_0x8fe5e0(0x141)][_0x8fe5e0(0x183)]+_0x8fe5e0(0x16b)+_0x22f5c0['map'](_0x47a464=>_0x47a464['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x543e6c[_0x8fe5e0(0x1d8)]){console[_0x8fe5e0(0x129)](_0x8fe5e0(0x1b6));for(const _0x32b2b8 of _0x543e6c[_0x8fe5e0(0x1d8)][_0x8fe5e0(0x1cd)]('\x0a')){console[_0x8fe5e0(0x129)]('\x20\x20\x20\x20'+_0x32b2b8);}}}else console['log'](_0x8fe5e0(0x1aa)+_0x659981['eUHJK'](_0x1a93bc,0x1)+_0x8fe5e0(0x1cb)+_0x28fb67[_0x8fe5e0(0x1bf)]+'\x22'+_0x4a621a+_0x8fe5e0(0x11d)),console[_0x8fe5e0(0x129)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x8fe5e0(0x129)]('');}}export async function featureDelete(_0x2c0c74){const _0x5a35a4=_0x2966c9,_0x39bfca={'Apwep':function(_0x3161d1){return _0x3161d1();},'ZuFnR':_0x5a35a4(0x19e),'dMFiQ':function(_0x2b6245,_0x5e53f3){return _0x2b6245(_0x5e53f3);},'WLIqE':_0x5a35a4(0x127)},_0x18430d=_0x2c0c74||await _0x39bfca[_0x5a35a4(0x153)](getActiveFeatureId);if(!_0x18430d)throw new Error(_0x39bfca['ZuFnR']);const _0x453e1a=await _0x39bfca[_0x5a35a4(0x16f)](getFeature,_0x18430d);await softDeleteFeature(_0x18430d),console['log'](_0x5a35a4(0x1da)+_0x453e1a['name']+'\x20('+_0x18430d+')'),console[_0x5a35a4(0x129)](_0x39bfca['WLIqE']+_0x18430d);}export async function featureRestore(_0x560706){const _0x2b4a37=_0x2966c9,_0x584be5={'KBaEz':function(_0x4e5304,_0x399e8c,_0x1f8dc1){return _0x4e5304(_0x399e8c,_0x1f8dc1);}};await restoreFeature(_0x560706);const _0x508258=await getFeature(_0x560706);console[_0x2b4a37(0x129)](_0x2b4a37(0x1df)+_0x508258[_0x2b4a37(0x1bc)]+'\x20('+_0x560706+')'),_0x584be5[_0x2b4a37(0x1cf)](displayFeature,_0x508258,_0x508258[_0x2b4a37(0x143)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3f5cda,_0x4b156d){const _0x5d7130=_0x440e,_0x5ecee6=_0x3f5cda();while(!![]){try{const _0x16ad19=-parseInt(_0x5d7130(0x1b1))/0x1+parseInt(_0x5d7130(0x1ba))/0x2+parseInt(_0x5d7130(0x1ae))/0x3+-parseInt(_0x5d7130(0x1b3))/0x4*(parseInt(_0x5d7130(0x1ac))/0x5)+-parseInt(_0x5d7130(0x1a9))/0x6*(parseInt(_0x5d7130(0x1aa))/0x7)+parseInt(_0x5d7130(0x1b4))/0x8*(parseInt(_0x5d7130(0x1b9))/0x9)+-parseInt(_0x5d7130(0x1ad))/0xa*(-parseInt(_0x5d7130(0x1b7))/0xb);if(_0x16ad19===_0x4b156d)break;else _0x5ecee6['push'](_0x5ecee6['shift']());}catch(_0x2f7b27){_0x5ecee6['push'](_0x5ecee6['shift']());}}}(_0x5859,0xaf853));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x440e(_0x579dcf,_0x4511f3){_0x579dcf=_0x579dcf-0x1a9;const _0x585938=_0x5859();let _0x440e25=_0x585938[_0x579dcf];return _0x440e25;}function _0x5859(){const _0x4d9a02=['811849YfTYLg','Valid\x20hooks:\x20','4798532HJByPv','2216LPmSeU','join','SIGHUP','32703IlRQni','CZvhk','1233jrklLf','1756702kqdmBq','keys','once','73308cOXLlg','539CnWFHL','Unknown\x20hook:\x20','5aRPZXt','4570bRjPtl','4188714JknoZZ','WbDrZ','SIGINT'];_0x5859=function(){return _0x4d9a02;};return _0x5859();}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x3c3cac=_0x440e,_0x17b2c3={'aMrjM':_0x3c3cac(0x1b0),'CZvhk':_0x3c3cac(0x1b6)};if(cancellationHandlersInstalled)return;const _0x1faa9d=()=>{process['exit'](0x0);};process[_0x3c3cac(0x1bc)](_0x17b2c3['aMrjM'],_0x1faa9d),process[_0x3c3cac(0x1bc)]('SIGTERM',_0x1faa9d),process['once'](_0x17b2c3[_0x3c3cac(0x1b8)],_0x1faa9d),cancellationHandlersInstalled=!![];}export async function hook(_0x2ce37f,_0x2f1535){const _0x2177f1=_0x440e,_0x5e7ee5={'WbDrZ':function(_0xebd293,_0x1a7f29){return _0xebd293(_0x1a7f29);}};installCancellationHandlers();const _0x337dee=HOOKS[_0x2ce37f];if(!_0x337dee){const _0x24defb=Object[_0x2177f1(0x1bb)](HOOKS)[_0x2177f1(0x1b5)](',\x20');console['error'](_0x2177f1(0x1ab)+_0x2ce37f),console['error'](_0x2177f1(0x1b2)+_0x24defb),process['exit'](0x1);}await _0x5e7ee5[_0x2177f1(0x1af)](_0x337dee,_0x2f1535);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5afb60,_0x222cc5){const _0x11bde6=_0xb71c,_0x5adcfb=_0x5afb60();while(!![]){try{const _0x45c4bb=-parseInt(_0x11bde6(0x102))/0x1+-parseInt(_0x11bde6(0x108))/0x2+-parseInt(_0x11bde6(0x106))/0x3*(parseInt(_0x11bde6(0x101))/0x4)+parseInt(_0x11bde6(0x107))/0x5+-parseInt(_0x11bde6(0x105))/0x6*(parseInt(_0x11bde6(0x10a))/0x7)+-parseInt(_0x11bde6(0x109))/0x8+parseInt(_0x11bde6(0x103))/0x9;if(_0x45c4bb===_0x222cc5)break;else _0x5adcfb['push'](_0x5adcfb['shift']());}catch(_0x370ed4){_0x5adcfb['push'](_0x5adcfb['shift']());}}}(_0x1699,0x55114));function _0x1699(){const _0x419994=['7heoVCc','37484HmHRBF','254866pUmpCv','10512954TzAyFL','rGJKt','926700PBVceP','180sOuqDa','2782670vBROki','453274fNauMm','1423928ffwRrQ'];_0x1699=function(){return _0x419994;};return _0x1699();}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0xb71c(_0x4b5218,_0x1d33f7){_0x4b5218=_0x4b5218-0x101;const _0x1699b1=_0x1699();let _0xb71cbd=_0x1699b1[_0x4b5218];return _0xb71cbd;}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 _0x5d1d2f=_0xb71c,_0x2ac09a={'rGJKt':function(_0x28e98b,_0x16148c){return _0x28e98b(_0x16148c);}},_0x5a9523=await readHookInput(),_0x5ae34d=_0x5a9523?.['session_id'];if(!_0x5ae34d)return;if(isSessionEnabled(_0x5ae34d)||_0x2ac09a[_0x5d1d2f(0x104)](hasSessionBeenPrompted,_0x5ae34d))return;markSessionPrompted(_0x5ae34d),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b0fd4,_0x5d072e){const _0x3ccf33=_0x32f8,_0x50aa2a=_0x4b0fd4();while(!![]){try{const _0x33f202=-parseInt(_0x3ccf33(0x89))/0x1+-parseInt(_0x3ccf33(0x84))/0x2+-parseInt(_0x3ccf33(0x8c))/0x3*(-parseInt(_0x3ccf33(0x87))/0x4)+parseInt(_0x3ccf33(0x90))/0x5*(parseInt(_0x3ccf33(0x85))/0x6)+parseInt(_0x3ccf33(0x8b))/0x7+parseInt(_0x3ccf33(0x86))/0x8+-parseInt(_0x3ccf33(0x92))/0x9*(parseInt(_0x3ccf33(0x8e))/0xa);if(_0x33f202===_0x5d072e)break;else _0x50aa2a['push'](_0x50aa2a['shift']());}catch(_0x1ede66){_0x50aa2a['push'](_0x50aa2a['shift']());}}}(_0x2fd8,0x813c0));function _0x32f8(_0x59bd61,_0x5989ab){_0x59bd61=_0x59bd61-0x84;const _0x2fd891=_0x2fd8();let _0x32f880=_0x2fd891[_0x59bd61];return _0x32f880;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x2fd8(){const _0x187a7b=['master','281537mbSmBR','gFlnz','4002649fmcWNF','728199YhnGsv','IENEa','9256960yUzdUj','otcMb','5SUBETh','env','9uqhhOO','\x20and\x20branch\x20\x27','1760014mKROUO','2079594ElNkda','5817968tQfuXx','16UFEdAm'];_0x2fd8=function(){return _0x187a7b;};return _0x2fd8();}export async function disable(_0x525efc){const _0x3e9206=_0x32f8,_0x36042f={'rZuMN':function(_0x408467,_0x1b1822){return _0x408467(_0x1b1822);},'zhYhK':function(_0x5f364c,_0x2ed32e){return _0x5f364c!==_0x2ed32e;},'gFlnz':function(_0xa688b,_0x1c5383){return _0xa688b(_0x1c5383);},'RoKeE':function(_0x9bcbb2,_0x33aa29){return _0x9bcbb2!==_0x33aa29;},'otcMb':'main','IENEa':_0x3e9206(0x88)},_0x225a27=_0x525efc||process[_0x3e9206(0x91)]['CLAUDE_SESSION_ID']||'';_0x225a27&&_0x36042f['rZuMN'](disableSession,_0x225a27);const _0x1d0fb0=getCurrentBranch();_0x1d0fb0&&_0x36042f['zhYhK'](_0x1d0fb0,'main')&&_0x1d0fb0!==_0x3e9206(0x88)&&_0x36042f['gFlnz'](disableBranch,_0x1d0fb0),_0x36042f[_0x3e9206(0x8a)](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x1d0fb0&&_0x36042f['RoKeE'](_0x1d0fb0,_0x36042f[_0x3e9206(0x8f)])&&_0x1d0fb0!==_0x36042f[_0x3e9206(0x8d)]?_0x3e9206(0x93)+_0x1d0fb0+'\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 _0x4375(_0x3ff96b,_0xc29c2b){_0x3ff96b=_0x3ff96b-0x113;const _0x4bea81=_0x4bea();let _0x437509=_0x4bea81[_0x3ff96b];return _0x437509;}(function(_0x110a57,_0x344479){const _0x47ee22=_0x4375,_0x2f3f35=_0x110a57();while(!![]){try{const _0x582c71=parseInt(_0x47ee22(0x113))/0x1+parseInt(_0x47ee22(0x11d))/0x2+-parseInt(_0x47ee22(0x117))/0x3+-parseInt(_0x47ee22(0x116))/0x4*(parseInt(_0x47ee22(0x120))/0x5)+-parseInt(_0x47ee22(0x123))/0x6+parseInt(_0x47ee22(0x11b))/0x7+-parseInt(_0x47ee22(0x114))/0x8*(-parseInt(_0x47ee22(0x115))/0x9);if(_0x582c71===_0x344479)break;else _0x2f3f35['push'](_0x2f3f35['shift']());}catch(_0x5cf0c4){_0x2f3f35['push'](_0x2f3f35['shift']());}}}(_0x4bea,0x45295));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x2182ef){const _0x379d3e=_0x4375,_0x84368a={'ffmpu':function(_0x42b68b,_0x51e970){return _0x42b68b(_0x51e970);},'GQvve':'ranger\x20setup\x20--opencode','KeLvU':function(_0x5ca616){return _0x5ca616();},'wpUtP':function(_0x1a67a2,_0x4b8527){return _0x1a67a2!==_0x4b8527;},'nnSTo':_0x379d3e(0x11e)},_0x297228=_0x2182ef||process[_0x379d3e(0x122)]['CLAUDE_SESSION_ID']||'',_0x2e86c9=_0x84368a['ffmpu'](Boolean,_0x2182ef),_0x1cdeeb=await getToken();if(!_0x1cdeeb){const _0x1046ba=_0x2e86c9?_0x84368a[_0x379d3e(0x11f)]:'ranger\x20setup',_0x4ab235=_0x2e86c9?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock('#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x1046ba+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x4ab235);return;}try{await _0x84368a['KeLvU'](update);}catch{}_0x297228&&_0x84368a[_0x379d3e(0x121)](enableSession,_0x297228);const _0x427f8e=_0x84368a[_0x379d3e(0x11a)](getCurrentBranch),_0x389832=_0x427f8e&&_0x84368a['wpUtP'](_0x427f8e,_0x379d3e(0x118))&&_0x427f8e!==_0x84368a[_0x379d3e(0x11c)]?'\x0a\x0a**Branch\x20\x27'+_0x427f8e+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x433205=getRangerSkillContent();_0x84368a[_0x379d3e(0x121)](printBlock,_0x379d3e(0x119)+_0x389832+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x433205+'\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`.');}function _0x4bea(){const _0x5cc125=['441396jtizwr','main','#\x20RANGER\x20ENABLED','KeLvU','39249AUopit','nnSTo','212734NwfNOh','master','GQvve','5MXACou','ffmpu','env','1206420JGQxKu','449807sFAiXw','488yOvFVS','35334juihWF','679120iHfrTt'];_0x4bea=function(){return _0x5cc125;};return _0x4bea();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x457ac8,_0x20fa23){const _0x55f657=_0x10c0,_0x1a4ed1=_0x457ac8();while(!![]){try{const _0x3b63cd=parseInt(_0x55f657(0x1f7))/0x1+parseInt(_0x55f657(0x1f4))/0x2+-parseInt(_0x55f657(0x1fa))/0x3+parseInt(_0x55f657(0x1f6))/0x4+parseInt(_0x55f657(0x1f5))/0x5+-parseInt(_0x55f657(0x1f8))/0x6*(-parseInt(_0x55f657(0x1f2))/0x7)+parseInt(_0x55f657(0x1fc))/0x8*(-parseInt(_0x55f657(0x1f3))/0x9);if(_0x3b63cd===_0x20fa23)break;else _0x1a4ed1['push'](_0x1a4ed1['shift']());}catch(_0x3029e6){_0x1a4ed1['push'](_0x1a4ed1['shift']());}}}(_0x4eed,0xedb2b));import{printBlock,getEnabledSessionId}from'./output.js';function _0x4eed(){const _0x36ea24=['32052mJwwVi','vHGPO','1976451BNaUXg','BraCA','4328nraOTP','1631QfWdmx','25146QyzwUB','649796hwsPej','135975nNVhZY','3331188qWycCy','714406wsRSkX'];_0x4eed=function(){return _0x36ea24;};return _0x4eed();}function _0x10c0(_0x2a5b5a,_0x458dff){_0x2a5b5a=_0x2a5b5a-0x1f2;const _0x4eedb1=_0x4eed();let _0x10c046=_0x4eedb1[_0x2a5b5a];return _0x10c046;}export async function exitPlanMode(_0x48d3b8){const _0x51d3e1=_0x10c0,_0x2414ed={'BraCA':function(_0x4acd64,_0x54633a){return _0x4acd64(_0x54633a);},'vHGPO':function(_0xc76fc6,_0x34757a){return _0xc76fc6(_0x34757a);}},_0x11669f=await _0x2414ed[_0x51d3e1(0x1fb)](getEnabledSessionId,_0x48d3b8);if(!_0x11669f)return;_0x2414ed[_0x51d3e1(0x1f9)](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
|
-
|
|
1
|
+
(function(_0x1d1c8c,_0x20c124){var _0xea4240=_0x17ac,_0x518c0e=_0x1d1c8c();while(!![]){try{var _0x2d92ab=-parseInt(_0xea4240(0xf9))/0x1*(-parseInt(_0xea4240(0xf3))/0x2)+parseInt(_0xea4240(0xf7))/0x3+-parseInt(_0xea4240(0xf5))/0x4+-parseInt(_0xea4240(0xf8))/0x5*(-parseInt(_0xea4240(0xfb))/0x6)+-parseInt(_0xea4240(0xf6))/0x7+parseInt(_0xea4240(0xf2))/0x8*(parseInt(_0xea4240(0xf1))/0x9)+-parseInt(_0xea4240(0xf4))/0xa*(parseInt(_0xea4240(0xfa))/0xb);if(_0x2d92ab===_0x20c124)break;else _0x518c0e['push'](_0x518c0e['shift']());}catch(_0x124ff9){_0x518c0e['push'](_0x518c0e['shift']());}}}(_0xf076,0xef925));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';function _0x17ac(_0x289973,_0x3450ed){_0x289973=_0x289973-0xf1;var _0xf07639=_0xf076();var _0x17ac95=_0xf07639[_0x289973];return _0x17ac95;}export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';function _0xf076(){var _0x846ec6=['603crHedv','45368JpTCAe','219614uSVSeb','10efxGko','4854900jMvhSe','6688052Cvkkep','1787118dhZaWD','410LGYXPV','14AhneLQ','1433993rqCreh','56184WJiNtf'];_0xf076=function(){return _0x846ec6;};return _0xf076();}export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30e8ae,_0x43f560){const _0x85f7bd=_0xb5e3,_0x4026d8=_0x30e8ae();while(!![]){try{const _0x2269fc=-parseInt(_0x85f7bd(0x1e0))/0x1*(parseInt(_0x85f7bd(0x1ee))/0x2)+parseInt(_0x85f7bd(0x1ec))/0x3*(parseInt(_0x85f7bd(0x1ef))/0x4)+-parseInt(_0x85f7bd(0x1e5))/0x5*(-parseInt(_0x85f7bd(0x1ea))/0x6)+parseInt(_0x85f7bd(0x1e4))/0x7*(parseInt(_0x85f7bd(0x1e8))/0x8)+-parseInt(_0x85f7bd(0x1e6))/0x9+parseInt(_0x85f7bd(0x1e7))/0xa*(-parseInt(_0x85f7bd(0x1e9))/0xb)+parseInt(_0x85f7bd(0x1eb))/0xc;if(_0x2269fc===_0x43f560)break;else _0x4026d8['push'](_0x4026d8['shift']());}catch(_0x11296d){_0x4026d8['push'](_0x4026d8['shift']());}}}(_0x2c3b,0x6f091));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x1dcb91){console['log'](_0x1dcb91);}export async function readHookInput(){const _0x192468=_0xb5e3;let _0x4d545d='';try{for await(const _0x2ea2f9 of process['stdin']){_0x4d545d+=_0x2ea2f9;}}catch{return null;}if(!_0x4d545d[_0x192468(0x1e3)]())return null;try{return JSON[_0x192468(0x1e1)](_0x4d545d);}catch{return null;}}export async function getEnabledSessionId(_0x402805){const _0x34f9d0={'umPXh':function(_0x1b1993,_0x12a73a){return _0x1b1993(_0x12a73a);}};if(_0x402805)return isSessionEnabled(_0x402805)?_0x402805:null;const _0x248568=await readHookInput(),_0x179362=_0x248568?.['session_id'];if(!_0x179362||!_0x34f9d0['umPXh'](isSessionEnabled,_0x179362))return null;return _0x179362;}function _0x2c3b(){const _0x555bde=['10XrWFST','1754334lwCwyb','10zjWyIQ','1018968CWmiUj','4409427cvqXwp','2502624ShsysP','27996gBrYiD','105cYyoeF','orVvD','2cIzIDM','31272CICDZa','186958zeOMFP','parse','DhQxN','trim','7uWuKDM'];_0x2c3b=function(){return _0x555bde;};return _0x2c3b();}function _0xb5e3(_0x4dd2a9,_0x3022a1){_0x4dd2a9=_0x4dd2a9-0x1e0;const _0x2c3bae=_0x2c3b();let _0xb5e3b1=_0x2c3bae[_0x4dd2a9];return _0xb5e3b1;}export async function getEnabledHookContext(_0x5688f8){const _0x3ae0e2=_0xb5e3,_0x5dc1c6={'orVvD':function(_0x2d5a4b,_0x1d69d1){return _0x2d5a4b(_0x1d69d1);},'DhQxN':function(_0x405f5d){return _0x405f5d();}};if(_0x5688f8){if(!_0x5dc1c6[_0x3ae0e2(0x1ed)](isSessionEnabled,_0x5688f8))return null;return{'sessionId':_0x5688f8,'input':{'session_id':_0x5688f8}};}const _0x51b82c=await _0x5dc1c6[_0x3ae0e2(0x1e2)](readHookInput),_0x58a49e=_0x51b82c?.['session_id'];if(!_0x58a49e||!isSessionEnabled(_0x58a49e))return null;return{'sessionId':_0x58a49e,'input':_0x51b82c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e41fa,_0x5b2fce){const _0x3f7335=_0x4f79,_0x3f91d7=_0x5e41fa();while(!![]){try{const _0x50c2ed=-parseInt(_0x3f7335(0x99))/0x1+-parseInt(_0x3f7335(0x9a))/0x2*(parseInt(_0x3f7335(0x8e))/0x3)+-parseInt(_0x3f7335(0x96))/0x4*(-parseInt(_0x3f7335(0x94))/0x5)+parseInt(_0x3f7335(0x92))/0x6*(-parseInt(_0x3f7335(0x8c))/0x7)+parseInt(_0x3f7335(0x98))/0x8+-parseInt(_0x3f7335(0x8f))/0x9*(parseInt(_0x3f7335(0x95))/0xa)+-parseInt(_0x3f7335(0x97))/0xb*(-parseInt(_0x3f7335(0x8b))/0xc);if(_0x50c2ed===_0x5b2fce)break;else _0x3f91d7['push'](_0x3f91d7['shift']());}catch(_0x4e2f8a){_0x3f91d7['push'](_0x3f91d7['shift']());}}}(_0x4ab7,0xdae15));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x4f79(_0x27b80f,_0x31d112){_0x27b80f=_0x27b80f-0x8b;const _0x4ab771=_0x4ab7();let _0x4f797c=_0x4ab771[_0x27b80f];return _0x4f797c;}export async function planReminder(_0x497410){const _0x2b4933=_0x4f79,_0x227ca8={'jkQmV':function(_0x535077,_0xe2e1fd){return _0x535077(_0xe2e1fd);}},_0x6d26e=await _0x227ca8[_0x2b4933(0x91)](getEnabledHookContext,_0x497410);if(!_0x6d26e)return;if(_0x6d26e['input'][_0x2b4933(0x93)]!==_0x2b4933(0x90))return;if(!_0x227ca8['jkQmV'](shouldShowPlanReminder,_0x6d26e[_0x2b4933(0x8d)]))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===');}function _0x4ab7(){const _0x70e219=['166868jbkLon','89802VbochJ','30216heUryX','22085LwDXWs','sessionId','30JHRtya','1017xrTMHq','plan','jkQmV','2022CLkOen','permission_mode','5201545iJNzws','72980cdImYo','4tJLVSr','8734zKVwcr','2885752ziDAVl'];_0x4ab7=function(){return _0x70e219;};return _0x4ab7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4d76(_0x103386,_0x582295){_0x103386=_0x103386-0x9c;const _0x21de04=_0x21de();let _0x4d76da=_0x21de04[_0x103386];return _0x4d76da;}function _0x21de(){const _0x5d9692=['5nHxIJE','5243140BbjBVd','9eHJCYq','535519ITacuv','855602UwoTwP','1191784MpfPWS','6217872ifnXtI','1121163MEaMTg','3726054LJpFtr'];_0x21de=function(){return _0x5d9692;};return _0x21de();}(function(_0x4b4268,_0x5d1a9c){const _0x4b5c83=_0x4d76,_0x43d44a=_0x4b4268();while(!![]){try{const _0xc4dcbd=-parseInt(_0x4b5c83(0xa0))/0x1+parseInt(_0x4b5c83(0xa1))/0x2+-parseInt(_0x4b5c83(0xa4))/0x3+parseInt(_0x4b5c83(0xa2))/0x4+parseInt(_0x4b5c83(0x9d))/0x5*(parseInt(_0x4b5c83(0x9c))/0x6)+parseInt(_0x4b5c83(0x9e))/0x7+-parseInt(_0x4b5c83(0xa3))/0x8*(parseInt(_0x4b5c83(0x9f))/0x9);if(_0xc4dcbd===_0x5d1a9c)break;else _0x43d44a['push'](_0x43d44a['shift']());}catch(_0x3eef2c){_0x43d44a['push'](_0x43d44a['shift']());}}}(_0x21de,0x63ed6));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x68d6c0){const _0x519706={'wypVy':function(_0x2b84fb,_0x237e80){return _0x2b84fb(_0x237e80);}},_0x7e217f=await getEnabledSessionId(_0x68d6c0);if(!_0x7e217f)return;_0x519706['wypVy'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c3289,_0x58cfff){const _0x5a7801=_0x1bcf,_0x197b50=_0x2c3289();while(!![]){try{const _0x3fa32e=-parseInt(_0x5a7801(0xf7))/0x1+-parseInt(_0x5a7801(0xf6))/0x2+-parseInt(_0x5a7801(0xf3))/0x3+-parseInt(_0x5a7801(0xf5))/0x4+-parseInt(_0x5a7801(0xfd))/0x5+parseInt(_0x5a7801(0xf9))/0x6+parseInt(_0x5a7801(0xfc))/0x7*(parseInt(_0x5a7801(0xf2))/0x8);if(_0x3fa32e===_0x58cfff)break;else _0x197b50['push'](_0x197b50['shift']());}catch(_0x2ee946){_0x197b50['push'](_0x197b50['shift']());}}}(_0x41e9,0x9cd07));function _0x41e9(){const _0x160b01=['11697679uywjaI','6243800FYrhmr','ZwaUn','16NyhuBM','1791906AScUnD','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.','552584cYXuSF','805406RjXdTd','1279229CqpaBX','stringify','5797542sKwfpA','RlnLO','qRSgZ'];_0x41e9=function(){return _0x160b01;};return _0x41e9();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x1bcf(_0xf78abe,_0x45d608){_0xf78abe=_0xf78abe-0xf2;const _0x41e97e=_0x41e9();let _0x1bcfc3=_0x41e97e[_0xf78abe];return _0x1bcfc3;}export async function postEdit(_0x2d3a72){const _0x3ddc29=_0x1bcf,_0x4fe845={'ZwaUn':function(_0x203779,_0x3d846e){return _0x203779(_0x3d846e);},'RlnLO':function(_0x5817bf){return _0x5817bf();},'qRSgZ':'PostToolUse'},_0x21aea5=await _0x4fe845['ZwaUn'](getEnabledSessionId,_0x2d3a72);if(!_0x21aea5)return;_0x4fe845['ZwaUn'](updateBranchTracking,_0x21aea5);const _0x3078ee=await _0x4fe845[_0x3ddc29(0xfa)](getToken);if(!_0x3078ee)return;const _0x2c7f7a=_0x4fe845[_0x3ddc29(0xfe)](getSessionEntry,_0x21aea5);if(_0x2c7f7a){const _0x802f44={'hookSpecificOutput':{'hookEventName':_0x4fe845[_0x3ddc29(0xfb)],'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[_0x3ddc29(0xf8)](_0x802f44));return;}const _0x3e3dc7={'hookSpecificOutput':{'hookEventName':_0x4fe845['qRSgZ'],'additionalContext':_0x3ddc29(0xf4)}};console['log'](JSON['stringify'](_0x3e3dc7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c8b7d,_0x3918b){const _0x1f9e98=_0x247f,_0x1b1d3f=_0x3c8b7d();while(!![]){try{const _0x5f8adf=parseInt(_0x1f9e98(0x1cb))/0x1+-parseInt(_0x1f9e98(0x1cc))/0x2*(parseInt(_0x1f9e98(0x1cd))/0x3)+parseInt(_0x1f9e98(0x1c5))/0x4*(parseInt(_0x1f9e98(0x1c3))/0x5)+parseInt(_0x1f9e98(0x1ca))/0x6*(-parseInt(_0x1f9e98(0x1c9))/0x7)+-parseInt(_0x1f9e98(0x1c8))/0x8*(parseInt(_0x1f9e98(0x1c6))/0x9)+parseInt(_0x1f9e98(0x1c7))/0xa+-parseInt(_0x1f9e98(0x1c4))/0xb;if(_0x5f8adf===_0x3918b)break;else _0x1b1d3f['push'](_0x1b1d3f['shift']());}catch(_0x5f5099){_0x1b1d3f['push'](_0x1b1d3f['shift']());}}}(_0xb3f6,0xd212f));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x2b28e5){const _0xd15224={'wSeuj':function(_0x3f25ee){return _0x3f25ee();}},_0x18d6cc=await getEnabledSessionId(_0x2b28e5);if(!_0x18d6cc)return;try{const _0x1a9a58=await _0xd15224['wSeuj'](getToken);if(!_0x1a9a58)return;printBlock('===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}function _0x247f(_0xe93d46,_0x15dbdd){_0xe93d46=_0xe93d46-0x1c3;const _0xb3f66a=_0xb3f6();let _0x247fb2=_0xb3f66a[_0xe93d46];return _0x247fb2;}function _0xb3f6(){const _0x528c4d=['9uwhWjg','6779650DUznXi','627568rXrhng','1183vjdeET','35484yPSfKT','195967esNebU','6898cmkVPJ','411kNPEsq','6655KhDjHD','208813hpaboO','4676AKVTeC'];_0xb3f6=function(){return _0x528c4d;};return _0xb3f6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4336f2,_0x517c91){const _0x3c024d=_0x277e,_0x1ec433=_0x4336f2();while(!![]){try{const _0x45f8c9=-parseInt(_0x3c024d(0x16a))/0x1+-parseInt(_0x3c024d(0x16b))/0x2+parseInt(_0x3c024d(0x167))/0x3*(parseInt(_0x3c024d(0x173))/0x4)+parseInt(_0x3c024d(0x171))/0x5+-parseInt(_0x3c024d(0x168))/0x6+parseInt(_0x3c024d(0x170))/0x7*(-parseInt(_0x3c024d(0x16d))/0x8)+-parseInt(_0x3c024d(0x169))/0x9*(-parseInt(_0x3c024d(0x166))/0xa);if(_0x45f8c9===_0x517c91)break;else _0x1ec433['push'](_0x1ec433['shift']());}catch(_0x4c84c2){_0x1ec433['push'](_0x1ec433['shift']());}}}(_0x5ac5,0x54563));function _0x5ac5(){const _0x4fa77c=['1576EiyrLZ','env','wWEBl','4459yYTLUN','668420ypJjjU','clear','17364dhwDJP','340ZvVawo','243jXuPFN','851196CusxJs','341019tVwONE','690815HyYRGx','939972xngOsV','session_id'];_0x5ac5=function(){return _0x4fa77c;};return _0x5ac5();}function _0x277e(_0x3b99b2,_0x6b60b2){_0x3b99b2=_0x3b99b2-0x166;const _0x5ac50d=_0x5ac5();let _0x277e83=_0x5ac50d[_0x3b99b2];return _0x277e83;}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x5e9788){const _0x4981fa=_0x277e,_0x23dc0e={'HUUWV':function(_0xfaca8){return _0xfaca8();},'uvvOW':function(_0xe2b93c,_0x109862){return _0xe2b93c===_0x109862;},'wWEBl':_0x4981fa(0x172),'barps':function(_0x1de8e8,_0x3cfd77){return _0x1de8e8(_0x3cfd77);}},_0x5e0ab7=process[_0x4981fa(0x16e)]['CLAUDE_SESSION_ID'];let _0x18939c=_0x5e9788,_0x67f70d;if(!_0x5e9788){if(_0x5e0ab7&&!isSessionEnabled(_0x5e0ab7))return;const _0x3815a8=await _0x23dc0e['HUUWV'](readHookInput);_0x18939c=_0x3815a8?.[_0x4981fa(0x16c)]||_0x5e0ab7,_0x67f70d=_0x3815a8?.['reason'];}if(!_0x18939c)return;_0x23dc0e['uvvOW'](_0x67f70d,_0x23dc0e[_0x4981fa(0x16f)])&&_0x23dc0e['barps'](recordEnabledSessionCleared,_0x18939c);}
|