@ranger-testing/ranger-cli 2.5.4-alpha.071b7bd-1 → 2.5.4-alpha.78800d3-3
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/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -0
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -0
- package/build/commands/utils/cloudProfileSession.js +1 -0
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -0
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -0
- 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/projectsConfig.js +1 -0
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -0
- package/build/commands/utils/resolveProfileUrl.js +1 -0
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/package.json +6 -2
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x584830=_0x3f55;(function(_0x51035b,_0x4d807d){const _0x32c309=_0x3f55,_0x2d5be2=_0x51035b();while(!![]){try{const _0x26d34b=-parseInt(_0x32c309(0x1ab))/0x1+parseInt(_0x32c309(0x1c6))/0x2+parseInt(_0x32c309(0x1c5))/0x3*(parseInt(_0x32c309(0x1b5))/0x4)+-parseInt(_0x32c309(0x1c3))/0x5+-parseInt(_0x32c309(0x1c0))/0x6+parseInt(_0x32c309(0x1ae))/0x7+parseInt(_0x32c309(0x19f))/0x8;if(_0x26d34b===_0x4d807d)break;else _0x2d5be2['push'](_0x2d5be2['shift']());}catch(_0x1b517a){_0x2d5be2['push'](_0x2d5be2['shift']());}}}(_0x28af,0x2683c));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x28af(){const _0x4fa3c6=['18faWAcH','29390ExLUVg','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','hqxMT','fZadQ','ranger','ZkcRz','@ranger-testing/opencode-plugin','PWtIZ','stringify','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','log','yhfCj','nKKcY','5633328fwJyHR','project','remove','push','replace','Scsig','filter','teOmR','✓\x20Removed\x20user\x20skill:\x20','Ykbku','opencode.json','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','303133uEqjvL','✓\x20Removed\x20stored\x20credentials','platform','443282OmuMQW','axhYw','SHlxh','XZZie','pipe','ikwvc','nSYtK','21716DhayQJ','length','plugin','Dnmbf','trailhead','win32','ajfDw','wTLgU','ranger@trailhead','CEZRF','claude','662652KvGxGJ','ytXWV','string','1217150kBMVBX','✓\x20Removed\x20trailhead\x20marketplace'];_0x28af=function(){return _0x4fa3c6;};return _0x28af();}import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x584830(0x1ca),'feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName=_0x584830(0x1cc);function parseJsonc(_0x4b9d2b){const _0x4db294=_0x584830,_0x171bbc=_0x4b9d2b['replace'](/\/\*[\s\S]*?\*\//g,''),_0x34c793=_0x171bbc[_0x4db294(0x1a3)](/^\s*\/\/.*$/gm,''),_0x3efd16=_0x34c793[_0x4db294(0x1a3)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x3efd16);}function _0x3f55(_0x207ae6,_0x3166e6){_0x207ae6=_0x207ae6-0x19e;const _0x28afb7=_0x28af();let _0x3f5587=_0x28afb7[_0x207ae6];return _0x3f5587;}async function removeOpencodePluginConfig(_0x360615){const _0x3a85de=_0x584830,_0x5c6d78={'SxKyF':_0x3a85de(0x1c2),'fZadQ':function(_0x40c83c,_0x58b5ba){return _0x40c83c===_0x58b5ba;},'ZmKjV':function(_0x45dfce,_0x3786e8,_0x4e8dde){return _0x45dfce(_0x3786e8,_0x4e8dde);},'yhfCj':function(_0x258cde,_0x521d1b){return _0x258cde+_0x521d1b;}};if(!existsSync(_0x360615))return![];let _0x458d09;try{const _0x4b942f=await readFile(_0x360615,'utf-8');_0x458d09=parseJsonc(_0x4b942f);}catch{return![];}const _0x23bb1e=Array['isArray'](_0x458d09[_0x3a85de(0x1b7)])?_0x458d09[_0x3a85de(0x1b7)]:[];if(_0x23bb1e[_0x3a85de(0x1b6)]===0x0)return![];const _0x12c0b3=_0x23bb1e[_0x3a85de(0x1a5)](_0x87717e=>{if(typeof _0x87717e!==_0x5c6d78['SxKyF'])return!![];return _0x87717e!==opencodePluginName;});if(_0x5c6d78[_0x3a85de(0x1c9)](_0x12c0b3['length'],_0x23bb1e['length']))return![];return _0x5c6d78[_0x3a85de(0x1c9)](_0x12c0b3[_0x3a85de(0x1b6)],0x0)?delete _0x458d09['plugin']:_0x458d09['plugin']=_0x12c0b3,await _0x5c6d78['ZmKjV'](writeFile,_0x360615,_0x5c6d78[_0x3a85de(0x1d1)](JSON[_0x3a85de(0x1ce)](_0x458d09,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x4edff7){const _0x3feb9d=_0x584830,_0x2c7d63={'iaOXy':function(_0x37e8ee,_0x59bb37){return _0x37e8ee===_0x59bb37;},'ikwvc':'--scope','kGAWn':_0x3feb9d(0x1b2),'hWAZa':function(_0x4dfe30,_0x9eb390){return _0x4dfe30===_0x9eb390;},'CEZRF':'error'};return new Promise(_0x21208d=>{const _0x193740=_0x3feb9d,_0xe9b5cd={'lKUdt':function(_0x1f4c59,_0x2c5c87){return _0x1f4c59(_0x2c5c87);},'Dnmbf':function(_0x130008,_0x5c8bb7){return _0x2c7d63['iaOXy'](_0x130008,_0x5c8bb7);}},_0x6942ed=['plugin','uninstall',_0x193740(0x1bd)];_0x4edff7&&_0x6942ed[_0x193740(0x1a2)](_0x2c7d63[_0x193740(0x1b3)],_0x4edff7);const _0x5605fa=spawn(_0x193740(0x1bf),_0x6942ed,{'stdio':_0x2c7d63['kGAWn'],'shell':_0x2c7d63['hWAZa'](process[_0x193740(0x1ad)],'win32')});_0x5605fa['on']('close',_0x4c90ea=>{const _0x308e7a=_0x193740;_0xe9b5cd['lKUdt'](_0x21208d,_0xe9b5cd[_0x308e7a(0x1b8)](_0x4c90ea,0x0));}),_0x5605fa['on'](_0x2c7d63[_0x193740(0x1be)],()=>{_0x21208d(![]);});});}async function removeMarketplace(){const _0x113e76=_0x584830,_0x5d91e6={'ttvtD':function(_0x31c956,_0x1afd99){return _0x31c956(_0x1afd99);},'wTLgU':function(_0x4b7eee,_0x490588,_0x3461b5,_0x112b3b){return _0x4b7eee(_0x490588,_0x3461b5,_0x112b3b);},'etVlA':'claude','ajfDw':_0x113e76(0x1b7),'LplVf':'marketplace','XgapR':_0x113e76(0x1b9),'Ykbku':_0x113e76(0x1ba),'qsXvv':'close'};return new Promise(_0x2f5822=>{const _0x2228f5=_0x113e76,_0x372bcc=_0x5d91e6[_0x2228f5(0x1bc)](spawn,_0x5d91e6['etVlA'],[_0x5d91e6[_0x2228f5(0x1bb)],_0x5d91e6['LplVf'],_0x2228f5(0x1a1),_0x5d91e6['XgapR']],{'stdio':'pipe','shell':process[_0x2228f5(0x1ad)]===_0x5d91e6[_0x2228f5(0x1a8)]});_0x372bcc['on'](_0x5d91e6['qsXvv'],_0x16ce98=>{_0x2f5822(_0x16ce98===0x0);}),_0x372bcc['on']('error',()=>{_0x5d91e6['ttvtD'](_0x2f5822,![]);});});}export async function clean(){const _0xb37f15=_0x584830,_0x4cc28d={'hqxMT':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','XZZie':function(_0x1bc966){return _0x1bc966();},'teOmR':function(_0x53d3f2,_0x1c8856){return _0x53d3f2(_0x1c8856);},'ytXWV':function(_0x3c25bc,_0x448b49){return _0x3c25bc(_0x448b49);},'nKKcY':function(_0x5844f4,_0x211d65,_0x3f7314){return _0x5844f4(_0x211d65,_0x3f7314);},'ZkcRz':function(_0x4fa3d7,_0x3654ba){return _0x4fa3d7(_0x3654ba);},'xMcMG':function(_0x9c6a5){return _0x9c6a5();},'CXRHY':_0xb37f15(0x1a0),'PWtIZ':function(_0x697cfb,_0x3c87ca,_0x441121){return _0x697cfb(_0x3c87ca,_0x441121);},'nSYtK':_0xb37f15(0x1a9),'axhYw':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','LdYuS':function(_0x492039){return _0x492039();},'Scsig':_0xb37f15(0x1cf),'SHlxh':function(_0x75e20d){return _0x75e20d();}};console[_0xb37f15(0x1d0)](_0x4cc28d[_0xb37f15(0x1c8)]);let _0x21ff05=![];try{await deleteAllCredentials(),console['log'](_0xb37f15(0x1ac)),_0x21ff05=!![];}catch{}const _0xe2ab48=_0x4cc28d['XZZie'](getCacheFile);_0x4cc28d['teOmR'](existsSync,_0xe2ab48)&&(await _0x4cc28d[_0xb37f15(0x1a6)](rm,_0xe2ab48),_0x21ff05=!![]);const _0x365747=getRangerDir();_0x4cc28d[_0xb37f15(0x1c1)](existsSync,_0x365747)&&(await _0x4cc28d[_0xb37f15(0x19e)](rm,_0x365747,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x21ff05=!![]);const _0x5ed2b2=_0x4cc28d[_0xb37f15(0x1b1)](getProjectSkillsDir);for(const _0x3d9c75 of skillsToRemove){const _0x46c61c=join(_0x5ed2b2,_0x3d9c75);_0x4cc28d['ZkcRz'](existsSync,_0x46c61c)&&(await rm(_0x46c61c,{'recursive':!![]}),console[_0xb37f15(0x1d0)]('✓\x20Removed\x20project\x20skill:\x20'+_0x3d9c75),_0x21ff05=!![]);}const _0x4691c2=_0x4cc28d['xMcMG'](getUserSkillsDir);for(const _0x47ff3b of skillsToRemove){const _0x1ef9aa=join(_0x4691c2,_0x47ff3b);existsSync(_0x1ef9aa)&&(await rm(_0x1ef9aa,{'recursive':!![]}),console[_0xb37f15(0x1d0)](_0xb37f15(0x1a7)+_0x47ff3b),_0x21ff05=!![]);}const _0x37464c=_0x4cc28d[_0xb37f15(0x1c1)](getOpencodeSkillsDir,_0x4cc28d['CXRHY']);for(const _0x535ea0 of skillsToRemove){const _0x320912=join(_0x37464c,_0x535ea0);_0x4cc28d[_0xb37f15(0x1cb)](existsSync,_0x320912)&&(await rm(_0x320912,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x535ea0),_0x21ff05=!![]);}const _0x1117ff=getOpencodeSkillsDir('user');for(const _0x465a28 of skillsToRemove){const _0x254c42=_0x4cc28d[_0xb37f15(0x1cd)](join,_0x1117ff,_0x465a28);existsSync(_0x254c42)&&(await _0x4cc28d[_0xb37f15(0x1cd)](rm,_0x254c42,{'recursive':!![]}),console[_0xb37f15(0x1d0)](_0xb37f15(0x1c7)+_0x465a28),_0x21ff05=!![]);}const _0x3237df=join(_0x4cc28d[_0xb37f15(0x1cb)](getOpencodeConfigDir,'project'),_0x4cc28d[_0xb37f15(0x1b4)]);await removeOpencodePluginConfig(_0x3237df)&&(console[_0xb37f15(0x1d0)](_0xb37f15(0x1aa)),_0x21ff05=!![]);const _0x38447d=join(getOpencodeConfigDir('user'),_0x4cc28d['nSYtK']);await removeOpencodePluginConfig(_0x38447d)&&(console['log'](_0x4cc28d[_0xb37f15(0x1af)]),_0x21ff05=!![]);const _0x49aa9d=await _0x4cc28d['LdYuS'](uninstallClaudePlugin);_0x49aa9d&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x21ff05=!![]);const _0x4b1ecf=await uninstallClaudePlugin('project');_0x4b1ecf&&(console['log'](_0x4cc28d[_0xb37f15(0x1a4)]),_0x21ff05=!![]);const _0x13b7ec=await _0x4cc28d[_0xb37f15(0x1b0)](removeMarketplace);_0x13b7ec&&(console[_0xb37f15(0x1d0)](_0xb37f15(0x1c4)),_0x21ff05=!![]),_0x21ff05?console[_0xb37f15(0x1d0)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}
|
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x164f0d=_0x2c78;(function(_0x5639db,_0x5a255e){const _0x41b730=_0x2c78,_0x21e93b=_0x5639db();while(!![]){try{const _0x1a9059=-parseInt(_0x41b730(0xb4))/0x1+-parseInt(_0x41b730(0xb9))/0x2+-parseInt(_0x41b730(0xba))/0x3*(parseInt(_0x41b730(0xc5))/0x4)+-parseInt(_0x41b730(0xb8))/0x5+parseInt(_0x41b730(0xc2))/0x6*(-parseInt(_0x41b730(0xc6))/0x7)+parseInt(_0x41b730(0xbe))/0x8*(-parseInt(_0x41b730(0xcc))/0x9)+parseInt(_0x41b730(0xb6))/0xa;if(_0x1a9059===_0x5a255e)break;else _0x21e93b['push'](_0x21e93b['shift']());}catch(_0x3947f5){_0x21e93b['push'](_0x21e93b['shift']());}}}(_0x536b,0xe2ef0));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x164f0d(0xbb)];function parseValue(_0x29e788,_0x17df21){const _0x600c93=_0x164f0d,_0x21247e={'shTFV':function(_0x1e3f10,_0x5ef88a){return _0x1e3f10===_0x5ef88a;},'GjnFV':_0x600c93(0xce)};if(BOOLEAN_KEYS[_0x600c93(0xbd)](_0x29e788)){if(_0x21247e['shTFV'](_0x17df21,_0x21247e['GjnFV']))return!![];if(_0x21247e['shTFV'](_0x17df21,_0x600c93(0xc8)))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x29e788+_0x600c93(0xc0));}return _0x17df21;}function _0x536b(){const _0x1a3705=['includes','1658744pnfffU','iBsRB',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','Epqwu','973374yLqABC','aUOLo','mgvhG','435980ObZvGU','7qDIFXj','\x22\x20not\x20found','false','wpFvP','IgVkJ','sills','45zKRdeC','pzZoU','true','log','383108icSXTK','\x22\x20does\x20not\x20exist.','51830060upoamA','Profile\x20\x22','1638910kXwyGj','3161374oGLGdB','21aFkgoK','allowInsecureLocalhost','stringify'];_0x536b=function(){return _0x1a3705;};return _0x536b();}export async function configSet(_0x368604,_0x452c78,_0x169095){const _0x5c1b55=_0x164f0d,_0x48df52={'uLDhn':function(_0xd7d6db,_0x3780a5){return _0xd7d6db(_0x3780a5);},'sills':function(_0x3eeb88,_0x539e0b,_0x4af94d){return _0x3eeb88(_0x539e0b,_0x4af94d);}},_0x119d15=_0x48df52['uLDhn'](getEnvDir,_0x368604);if(!_0x48df52['uLDhn'](existsSync,_0x119d15))throw new Error('Profile\x20\x22'+_0x368604+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x368604);const _0x47b066=await loadSettings(_0x368604),_0x1ddcda=parseValue(_0x452c78,_0x169095);setNestedValue(_0x47b066,_0x452c78,_0x1ddcda),await _0x48df52[_0x5c1b55(0xcb)](saveSettings,_0x368604,_0x47b066),console['log']('Set\x20'+_0x452c78+'\x20=\x20'+_0x1ddcda);}function _0x2c78(_0x5b595a,_0x3f3a2e){_0x5b595a=_0x5b595a-0xb4;const _0x536b1a=_0x536b();let _0x2c7814=_0x536b1a[_0x5b595a];return _0x2c7814;}export async function configGet(_0x12be01,_0x323b60){const _0x1cb8b0=_0x164f0d,_0x195d19={'fHNVm':function(_0x2a07f8,_0x4df760){return _0x2a07f8(_0x4df760);},'aUOLo':function(_0x3a7cbf,_0x48a9ef,_0x5bb8bf){return _0x3a7cbf(_0x48a9ef,_0x5bb8bf);},'OaFpV':function(_0x2d01eb,_0x344688){return _0x2d01eb===_0x344688;},'pzZoU':'object'},_0xcc09a=getEnvDir(_0x12be01);if(!_0x195d19['fHNVm'](existsSync,_0xcc09a))throw new Error(_0x1cb8b0(0xb7)+_0x12be01+'\x22\x20does\x20not\x20exist.');const _0x2bb471=await _0x195d19['fHNVm'](loadSettings,_0x12be01),_0x5ddace=_0x195d19[_0x1cb8b0(0xc3)](getNestedValue,_0x2bb471,_0x323b60);if(_0x5ddace===undefined)console[_0x1cb8b0(0xcf)]('(not\x20set)');else _0x195d19['OaFpV'](typeof _0x5ddace,_0x195d19[_0x1cb8b0(0xcd)])?console[_0x1cb8b0(0xcf)](JSON[_0x1cb8b0(0xbc)](_0x5ddace,null,0x2)):console[_0x1cb8b0(0xcf)](_0x5ddace);}export async function configList(_0x4e77de){const _0x4eca49=_0x164f0d,_0x2dc5a2={'IgVkJ':function(_0x385ec0,_0x7afed9){return _0x385ec0(_0x7afed9);},'mgvhG':function(_0x59c0d5,_0x9b51b){return _0x59c0d5(_0x9b51b);},'wpFvP':function(_0x2b2af2,_0x959b4c){return _0x2b2af2(_0x959b4c);}},_0x2f92a7=getSettingsPath(_0x4e77de);if(!_0x2dc5a2[_0x4eca49(0xca)](existsSync,_0x2f92a7)){const _0x32805d=_0x2dc5a2['IgVkJ'](getEnvDir,_0x4e77de);if(!_0x2dc5a2[_0x4eca49(0xc4)](existsSync,_0x32805d))throw new Error(_0x4eca49(0xb7)+_0x4e77de+_0x4eca49(0xb5));console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x4e77de+'\x22');return;}const _0x2e060c=await loadSettings(_0x4e77de),_0x341052=_0x2dc5a2[_0x4eca49(0xc9)](formatSettings,_0x2e060c);!_0x341052?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x4e77de+'\x22'):console['log'](_0x341052);}export async function configUnset(_0x21095b,_0x3804cd){const _0x1f65b2=_0x164f0d,_0x25bede={'SPTPV':function(_0x4034d3,_0x258016){return _0x4034d3(_0x258016);},'iBsRB':function(_0x331ee8,_0x13fa6f){return _0x331ee8(_0x13fa6f);},'Epqwu':function(_0x5648db,_0x379b9c,_0x19a6ae){return _0x5648db(_0x379b9c,_0x19a6ae);}},_0x2610a0=_0x25bede['SPTPV'](getEnvDir,_0x21095b);if(!existsSync(_0x2610a0))throw new Error(_0x1f65b2(0xb7)+_0x21095b+_0x1f65b2(0xb5));const _0x3ea6d8=await _0x25bede[_0x1f65b2(0xbf)](loadSettings,_0x21095b),_0x45229f=_0x25bede[_0x1f65b2(0xc1)](deleteNestedValue,_0x3ea6d8,_0x3804cd);_0x45229f?(await _0x25bede['Epqwu'](saveSettings,_0x21095b,_0x3ea6d8),console[_0x1f65b2(0xcf)]('Removed\x20'+_0x3804cd)):console[_0x1f65b2(0xcf)]('Key\x20\x22'+_0x3804cd+_0x1f65b2(0xc7));}
|
|
1
|
+
(function(_0x156d1f,_0x4fb32e){const _0x373f7a=_0x5b1a,_0x56d713=_0x156d1f();while(!![]){try{const _0x567ebf=-parseInt(_0x373f7a(0x12c))/0x1*(parseInt(_0x373f7a(0x140))/0x2)+parseInt(_0x373f7a(0x15c))/0x3*(parseInt(_0x373f7a(0x141))/0x4)+-parseInt(_0x373f7a(0x145))/0x5+parseInt(_0x373f7a(0x13b))/0x6*(-parseInt(_0x373f7a(0x135))/0x7)+parseInt(_0x373f7a(0x126))/0x8+-parseInt(_0x373f7a(0x139))/0x9+parseInt(_0x373f7a(0x14b))/0xa*(parseInt(_0x373f7a(0x146))/0xb);if(_0x567ebf===_0x4fb32e)break;else _0x56d713['push'](_0x56d713['shift']());}catch(_0x515fe5){_0x56d713['push'](_0x56d713['shift']());}}}(_0x41e6,0xbbdca));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseLocalValue(_0x3009ec,_0x5613bd){const _0x15f5c9=_0x5b1a,_0x5bb198={'qaAIA':function(_0x1ef2aa,_0x5a3e66){return _0x1ef2aa===_0x5a3e66;},'KAWqh':'false'};if(BOOLEAN_KEYS['includes'](_0x3009ec)){if(_0x5613bd==='true')return!![];if(_0x5bb198['qaAIA'](_0x5613bd,_0x5bb198[_0x15f5c9(0x15b)]))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x3009ec+_0x15f5c9(0x147));}return _0x5613bd;}function parseOverrideValue(_0x21c86e){const _0x43c98f=_0x5b1a,_0x3d617d={'ovCCr':'true','aKsfy':function(_0x4e7dbf,_0x399f97){return _0x4e7dbf===_0x399f97;},'USjsh':'null','GDiOo':_0x43c98f(0x13f),'MjmWl':function(_0xc83d48,_0x366f8){return _0xc83d48(_0x366f8);}};if(_0x21c86e===_0x3d617d[_0x43c98f(0x14c)])return!![];if(_0x3d617d[_0x43c98f(0x12d)](_0x21c86e,_0x43c98f(0x124)))return![];if(_0x21c86e===_0x3d617d[_0x43c98f(0x12b)])return null;if(_0x21c86e===_0x3d617d['GDiOo'])return undefined;if(/^-?\d+$/[_0x43c98f(0x130)](_0x21c86e)){const _0x28a4bd=Number(_0x21c86e);if(Number[_0x43c98f(0x13c)](_0x28a4bd))return _0x28a4bd;}if(/^-?\d+\.\d+$/['test'](_0x21c86e)){const _0x56435d=_0x3d617d['MjmWl'](Number,_0x21c86e);if(!Number[_0x43c98f(0x149)](_0x56435d))return _0x56435d;}const _0x14cb4c=_0x21c86e['trim']();if(_0x14cb4c['startsWith']('{')&&_0x14cb4c['endsWith']('}')||_0x14cb4c[_0x43c98f(0x122)]('[')&&_0x14cb4c[_0x43c98f(0x131)](']'))try{return JSON[_0x43c98f(0x13d)](_0x14cb4c);}catch{}return _0x21c86e;}function _0x5b1a(_0x5552d6,_0x475e07){_0x5552d6=_0x5552d6-0x120;const _0x41e6f3=_0x41e6();let _0x5b1af7=_0x41e6f3[_0x5552d6];return _0x5b1af7;}async function resolveProfileTarget(_0x13caf5){const _0x1d61dd=_0x5b1a,_0x5efd91={'dFSad':function(_0x2e27ef,_0x4c7a37){return _0x2e27ef(_0x4c7a37);},'tDtsH':'local'},_0x5d9f10=_0x5efd91['dFSad'](existsSync,_0x5efd91[_0x1d61dd(0x121)](getEnvDir,_0x13caf5));let _0x435075=![];try{const _0x401051=await fetchCloudProfile(_0x13caf5);_0x435075=_0x5efd91[_0x1d61dd(0x121)](Boolean,_0x401051);}catch{}if(_0x435075)return{'kind':_0x1d61dd(0x14d),'alsoExistsElsewhere':_0x5d9f10};if(_0x5d9f10)return{'kind':_0x5efd91[_0x1d61dd(0x134)],'alsoExistsElsewhere':![]};throw new Error(_0x1d61dd(0x15d)+_0x13caf5+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x13caf5);}function printDualExistsHint(_0x5967c7){const _0x10ca20=_0x5b1a;console[_0x10ca20(0x148)](_0x10ca20(0x123)+_0x5967c7+_0x10ca20(0x13e));}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x225f40){const _0x791a95=_0x5b1a,_0x2aecaf={'khieM':function(_0x2a2844,_0x20efae,_0x5ef313){return _0x2a2844(_0x20efae,_0x5ef313);},'BiIaP':function(_0x46fe1f){return _0x46fe1f();},'lRxDU':function(_0xe76a1f,_0x52ae46){return _0xe76a1f??_0x52ae46;}},_0x53e431=await fetchCloudProfile(_0x225f40),_0x4b5c0b=_0x2aecaf['khieM'](readProfileOverrides,_0x2aecaf[_0x791a95(0x138)](getProjectPath),_0x225f40);return mergeCloudProfileSettings(_0x53e431?.['settings']??{},_0x2aecaf[_0x791a95(0x156)](_0x4b5c0b,undefined));}export async function configSet(_0x2023d3,_0x5e0dc5,_0x276419){const _0x1cf402=_0x5b1a,_0x5a4425={'wvUas':'cloud','FrzKP':function(_0xda4ac1,_0xe5e1a2){return _0xda4ac1(_0xe5e1a2);},'UKQfz':function(_0x4d95cd){return _0x4d95cd();},'oSgXg':function(_0x34f7f7,_0x2ed819){return _0x34f7f7(_0x2ed819);},'tjpeJ':function(_0x59742d,_0x4d6ad6,_0x2b882d){return _0x59742d(_0x4d6ad6,_0x2b882d);}},_0x198424=await resolveProfileTarget(_0x2023d3);if(_0x198424['kind']===_0x5a4425['wvUas']){if(_0x198424['alsoExistsElsewhere'])printDualExistsHint(_0x2023d3);const _0x206672=_0x5a4425[_0x1cf402(0x12f)](parseOverrideValue,_0x276419);setProfileOverride(_0x5a4425['UKQfz'](getProjectPath),_0x2023d3,_0x5e0dc5,_0x206672),console[_0x1cf402(0x148)](_0x1cf402(0x127)+_0x5e0dc5+'\x20=\x20'+JSON['stringify'](_0x206672)+_0x1cf402(0x13a)+_0x2023d3+'\x22');return;}const _0x33a24b=await _0x5a4425[_0x1cf402(0x133)](loadSettings,_0x2023d3),_0x110649=parseLocalValue(_0x5e0dc5,_0x276419);setNestedValue(_0x33a24b,_0x5e0dc5,_0x110649),await _0x5a4425['tjpeJ'](saveSettings,_0x2023d3,_0x33a24b),console[_0x1cf402(0x148)](_0x1cf402(0x127)+_0x5e0dc5+'\x20=\x20'+_0x110649+'\x20for\x20\x22'+_0x2023d3+'\x22');}export async function configGet(_0x1f0213,_0xbc4b43){const _0x1d611f=_0x5b1a,_0x403775={'NTwWm':function(_0x54809c,_0x3be3ad){return _0x54809c(_0x3be3ad);},'KmDDT':function(_0x243543,_0x5a2655){return _0x243543===_0x5a2655;},'TPndm':'cloud','pfuXv':function(_0xeff51f,_0x19dbf5){return _0xeff51f(_0x19dbf5);},'XduWN':function(_0x3e53cb,_0x2af1ad,_0x231451){return _0x3e53cb(_0x2af1ad,_0x231451);},'xwYrS':function(_0x560388,_0x440f2f){return _0x560388===_0x440f2f;},'zmORJ':_0x1d611f(0x143),'yikrf':function(_0x4db9d9,_0x45fcab,_0x1e93d9){return _0x4db9d9(_0x45fcab,_0x1e93d9);}},_0x27c1ce=await _0x403775[_0x1d611f(0x142)](resolveProfileTarget,_0x1f0213);if(_0x403775[_0x1d611f(0x153)](_0x27c1ce[_0x1d611f(0x144)],_0x403775[_0x1d611f(0x12a)])){const _0x4eb39a=await _0x403775['pfuXv'](loadEffectiveCloudSettings,_0x1f0213),_0xff8213=_0x403775[_0x1d611f(0x128)](getNestedValue,_0x4eb39a,_0xbc4b43);if(_0x403775[_0x1d611f(0x14a)](_0xff8213,undefined))console['log']('(not\x20set)');else typeof _0xff8213===_0x403775[_0x1d611f(0x150)]?console[_0x1d611f(0x148)](JSON[_0x1d611f(0x129)](_0xff8213,null,0x2)):console['log'](_0xff8213);return;}const _0x312773=await loadSettings(_0x1f0213),_0x383f93=_0x403775['yikrf'](getNestedValue,_0x312773,_0xbc4b43);if(_0x403775[_0x1d611f(0x153)](_0x383f93,undefined))console['log'](_0x1d611f(0x154));else typeof _0x383f93==='object'?console[_0x1d611f(0x148)](JSON[_0x1d611f(0x129)](_0x383f93,null,0x2)):console[_0x1d611f(0x148)](_0x383f93);}export async function configList(_0x191bf7){const _0x12d56e=_0x5b1a,_0x1c92f7={'mZMmm':function(_0x29560d,_0x322fc0){return _0x29560d(_0x322fc0);},'LVscT':_0x12d56e(0x14d),'wMRZt':function(_0xe3eb28,_0xf772a9){return _0xe3eb28===_0xf772a9;},'wUNMn':function(_0x359592,_0x21ee7f){return _0x359592(_0x21ee7f);}},_0x192cab=await _0x1c92f7['mZMmm'](resolveProfileTarget,_0x191bf7);if(_0x192cab[_0x12d56e(0x144)]===_0x1c92f7[_0x12d56e(0x159)]){const _0x17dd3a=await loadEffectiveCloudSettings(_0x191bf7);if(!_0x17dd3a||_0x1c92f7[_0x12d56e(0x155)](Object['keys'](_0x17dd3a)[_0x12d56e(0x12e)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x191bf7+'\x22');return;}console['log'](JSON[_0x12d56e(0x129)](_0x17dd3a,null,0x2));return;}const _0x10fd0e=_0x1c92f7['wUNMn'](getSettingsPath,_0x191bf7);if(!existsSync(_0x10fd0e)){console[_0x12d56e(0x148)](_0x12d56e(0x14e)+_0x191bf7+'\x22');return;}const _0x52febb=await loadSettings(_0x191bf7),_0x2ecc6d=formatSettings(_0x52febb);!_0x2ecc6d?console[_0x12d56e(0x148)]('No\x20configuration\x20set\x20for\x20\x22'+_0x191bf7+'\x22'):console['log'](_0x2ecc6d);}function _0x41e6(){const _0x2fb2c9=['PkzGN','KmDDT','(not\x20set)','wMRZt','lRxDU','VcfUN','gqDgm','LVscT','Removed\x20','KAWqh','3Mcqwfg','Profile\x20\x22','TOllT','dFSad','startsWith','\x20\x20Note:\x20\x22','false','\x22\x20not\x20found','1570640OTGbvj','Set\x20','XduWN','stringify','TPndm','USjsh','9FgDOEv','aKsfy','length','FrzKP','test','endsWith','oGzPj','oSgXg','tDtsH','49Luvqic','Cleared\x20local\x20overrides\x20for\x20\x22','Key\x20\x22','BiIaP','9577098llSlAe','\x20for\x20\x22','6234vFknHo','isSafeInteger','parse','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','undefined','22694GKxMqg','2768996PuovFn','NTwWm','object','kind','2958205zwcFVe','18106682PQRAmL',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','log','isNaN','xwYrS','10eHItDR','ovCCr','cloud','No\x20configuration\x20set\x20for\x20\x22','lNRBr','zmORJ','alsoExistsElsewhere'];_0x41e6=function(){return _0x2fb2c9;};return _0x41e6();}export async function configUnset(_0x1547a5,_0x41fe32){const _0x1f54c1=_0x5b1a,_0x5fcf4c={'PkzGN':function(_0x2c15cf,_0x168af0){return _0x2c15cf(_0x168af0);},'VcfUN':function(_0x1d1223,_0x3efe5f){return _0x1d1223===_0x3efe5f;},'TOllT':function(_0x2c84bd,_0x511ba8,_0x16706b){return _0x2c84bd(_0x511ba8,_0x16706b);}},_0x463cdf=await _0x5fcf4c[_0x1f54c1(0x152)](resolveProfileTarget,_0x1547a5);if(_0x5fcf4c[_0x1f54c1(0x157)](_0x463cdf['kind'],_0x1f54c1(0x14d))){if(_0x463cdf[_0x1f54c1(0x151)])printDualExistsHint(_0x1547a5);const _0x5b1350=unsetProfileOverride(getProjectPath(),_0x1547a5,_0x41fe32);_0x5b1350?console['log'](_0x1f54c1(0x15a)+_0x41fe32+'\x20for\x20\x22'+_0x1547a5+'\x22'):console['log'](_0x1f54c1(0x137)+_0x41fe32+_0x1f54c1(0x125));return;}const _0x50d30c=await loadSettings(_0x1547a5),_0x46d4cf=_0x5fcf4c[_0x1f54c1(0x120)](deleteNestedValue,_0x50d30c,_0x41fe32);_0x46d4cf?(await saveSettings(_0x1547a5,_0x50d30c),console[_0x1f54c1(0x148)](_0x1f54c1(0x15a)+_0x41fe32)):console['log']('Key\x20\x22'+_0x41fe32+'\x22\x20not\x20found');}export async function configReset(_0x473a57){const _0x4ad376=_0x5b1a,_0x475076={'gqDgm':function(_0x27104f,_0x340f64){return _0x27104f(_0x340f64);},'oGzPj':function(_0x5e1aa7,_0x1dd660,_0x5c77a2){return _0x5e1aa7(_0x1dd660,_0x5c77a2);},'lNRBr':function(_0x46c552){return _0x46c552();}},_0x3a029e=await _0x475076[_0x4ad376(0x158)](resolveProfileTarget,_0x473a57);if(_0x3a029e['kind']===_0x4ad376(0x14d)){_0x475076[_0x4ad376(0x132)](resetProfileOverrides,_0x475076[_0x4ad376(0x14f)](getProjectPath),_0x473a57),console['log'](_0x4ad376(0x136)+_0x473a57+'\x22');return;}console['log']('\x22'+_0x473a57+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x473a57+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5194b9,_0x3bdf94){const _0x20ad5b=_0xd25a,_0x15eeee=_0x5194b9();while(!![]){try{const _0x45f11d=parseInt(_0x20ad5b(0x1db))/0x1+-parseInt(_0x20ad5b(0x1d5))/0x2+parseInt(_0x20ad5b(0x1d4))/0x3*(-parseInt(_0x20ad5b(0x1c5))/0x4)+parseInt(_0x20ad5b(0x1da))/0x5*(-parseInt(_0x20ad5b(0x1bc))/0x6)+-parseInt(_0x20ad5b(0x1de))/0x7+-parseInt(_0x20ad5b(0x1e1))/0x8+parseInt(_0x20ad5b(0x1c9))/0x9;if(_0x45f11d===_0x3bdf94)break;else _0x15eeee['push'](_0x15eeee['shift']());}catch(_0x4d695e){_0x15eeee['push'](_0x15eeee['shift']());}}}(_0x5946,0x6a803));import{readdir,stat}from'fs/promises';function _0x5946(){const _0x4200df=['startsWith','uSQOV','length','16147062TJLhBD','mhskq','legacy','IFQCF','IMxoU','\x0aLocal\x20Profiles:','push','localeCompare','sessionUpdatedAt','local','\x0aCloud\x20Profiles:','510uJlUcS','223458MmhUfQ','eWtzJ','environmentDetails','Run:\x20ranger\x20profile\x20add\x20<profile-name>','qQazb','649640vpYutV','713115ULQxRE','cached\x20(updated\x20','\x20\x20\x20\x20\x20\x20Details:\x20','4852974tvSTDh','environmentKey','map','2892200DNDPOI','30kTOsOP','PchWU','lBVXA','isDirectory','QTyZj','name','log','.txt','no\x20session','5996lmRVKU'];_0x5946=function(){return _0x4200df;};return _0x5946();}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes','reports','local','ci'];function _0xd25a(_0xf18407,_0x3d4e32){_0xf18407=_0xf18407-0x1bc;const _0x5946ac=_0x5946();let _0xd25a56=_0x5946ac[_0xf18407];return _0xd25a56;}export async function getEnvNames(){const _0x5cd1a0=_0xd25a,_0x129225={'qQazb':function(_0x1b8eaa,_0x142477){return _0x1b8eaa(_0x142477);},'PchWU':'local','uSQOV':function(_0xe3e1a8,_0x1e36ae){return _0xe3e1a8(_0x1e36ae);},'TTNYO':function(_0x9d869e,_0x5c7222,_0x564070){return _0x9d869e(_0x5c7222,_0x564070);},'mhskq':function(_0x1636d5,_0x18a83c){return _0x1636d5(_0x18a83c);},'ESvEZ':function(_0x3e0640,_0x5d1e74){return _0x3e0640(_0x5d1e74);},'eQCPF':function(_0x101bc3,_0x499fc8,_0x332163){return _0x101bc3(_0x499fc8,_0x332163);},'eWtzJ':function(_0x27308d,_0x3bad6c,_0x4332d0){return _0x27308d(_0x3bad6c,_0x4332d0);},'idFPl':'settings.json'},_0x3ca652=getRangerDir();if(!_0x129225['qQazb'](existsSync,_0x3ca652))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2a9049=await readActiveProfileName(),_0x4f77f2=[],_0x4eb76f={},_0x3c7885=join(_0x3ca652,_0x129225[_0x5cd1a0(0x1bd)]);if(existsSync(_0x3c7885)){const _0x1fa33d=await _0x129225[_0x5cd1a0(0x1c7)](readdir,_0x3c7885);for(const _0x57d3e1 of _0x1fa33d){const _0x48cad1=_0x129225['TTNYO'](join,_0x3c7885,_0x57d3e1),_0x41a1fa=await stat(_0x48cad1);_0x41a1fa['isDirectory']()&&(_0x4f77f2[_0x5cd1a0(0x1cf)](_0x57d3e1),_0x4eb76f[_0x57d3e1]=_0x129225['PchWU']);}}const _0x325ce2=join(_0x3ca652,'ci');if(_0x129225['uSQOV'](existsSync,_0x325ce2)){const _0x5667b1=await _0x129225[_0x5cd1a0(0x1ca)](readdir,_0x325ce2);for(const _0x45b87a of _0x5667b1){const _0x51535a=join(_0x325ce2,_0x45b87a),_0x3210f4=await _0x129225[_0x5cd1a0(0x1d9)](stat,_0x51535a);_0x3210f4[_0x5cd1a0(0x1bf)]()&&(_0x4f77f2[_0x5cd1a0(0x1cf)](_0x45b87a),_0x4eb76f[_0x45b87a]='ci');}}const _0x511e22=await _0x129225['ESvEZ'](readdir,_0x3ca652);for(const _0x5d9d43 of _0x511e22){if(NON_ENV_DIRS['includes'](_0x5d9d43))continue;if(_0x5d9d43[_0x5cd1a0(0x1c6)]('.'))continue;if(_0x5d9d43['endsWith'](_0x5cd1a0(0x1c3)))continue;const _0x518210=_0x129225['eQCPF'](join,_0x3ca652,_0x5d9d43),_0x29cc5d=await stat(_0x518210);_0x29cc5d['isDirectory']()&&_0x129225[_0x5cd1a0(0x1ca)](existsSync,_0x129225[_0x5cd1a0(0x1d6)](join,_0x518210,_0x129225['idFPl']))&&(!_0x4f77f2['includes'](_0x5d9d43)&&(_0x4f77f2['push'](_0x5d9d43),_0x4eb76f[_0x5d9d43]=_0x5cd1a0(0x1cb)));}return{'envNames':_0x4f77f2,'activeEnv':_0x2a9049,'envTypes':_0x4eb76f};}export async function envList(){const _0x58e1fc=_0xd25a,_0x19b7cf={'QTyZj':function(_0x4d250e){return _0x4d250e();},'IMxoU':function(_0x39060f,_0x566e2b){return _0x39060f===_0x566e2b;},'lBVXA':function(_0x30078a,_0x12efe2){return _0x30078a>_0x12efe2;},'IFQCF':_0x58e1fc(0x1ce),'iiZfn':_0x58e1fc(0x1d2),'OgHpD':_0x58e1fc(0x1c4)},{envNames:_0x4289e7,activeEnv:_0x4d7c9a,envTypes:_0x2defc4}=await _0x19b7cf[_0x58e1fc(0x1c0)](getEnvNames);let _0x379c90=[];try{_0x379c90=await listCloudProfiles();}catch{}if(_0x19b7cf[_0x58e1fc(0x1cd)](_0x4289e7[_0x58e1fc(0x1c8)],0x0)&&_0x19b7cf['IMxoU'](_0x379c90['length'],0x0)){console[_0x58e1fc(0x1c2)]('\x0aNo\x20profiles\x20found.'),console['log'](_0x58e1fc(0x1d8));return;}const _0x3bab50=new Set(_0x379c90[_0x58e1fc(0x1e0)](_0x138ae3=>_0x138ae3['name']));if(_0x19b7cf[_0x58e1fc(0x1be)](_0x4289e7['length'],0x0)){console[_0x58e1fc(0x1c2)](_0x19b7cf[_0x58e1fc(0x1cc)]);for(const _0xe201b of _0x4289e7['sort']()){const _0x628fc8=_0xe201b===_0x4d7c9a&&!_0x3bab50['has'](_0xe201b),_0x3b6d92=_0x2defc4[_0xe201b]||_0x19b7cf['iiZfn'],_0x43b844=await loadSettings(_0xe201b),_0x2cefa7=_0x3b6d92==='legacy'?'':'\x20['+_0x3b6d92+']';console[_0x58e1fc(0x1c2)]('\x20\x20'+(_0x628fc8?'*\x20':'\x20\x20')+_0xe201b+_0x2cefa7),_0x43b844['baseUrl']&&console[_0x58e1fc(0x1c2)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x43b844['baseUrl']),_0x43b844[_0x58e1fc(0x1d7)]&&console[_0x58e1fc(0x1c2)](_0x58e1fc(0x1dd)+_0x43b844[_0x58e1fc(0x1d7)]);}}if(_0x379c90['length']>0x0){console['log'](_0x58e1fc(0x1d3));for(const _0x537e29 of _0x379c90['sort']((_0x580abf,_0xda3fb8)=>_0x580abf[_0x58e1fc(0x1c1)][_0x58e1fc(0x1d0)](_0xda3fb8['name']))){const _0x55b3dc=_0x19b7cf['IMxoU'](_0x537e29[_0x58e1fc(0x1c1)],_0x4d7c9a),_0xc4c940=_0x537e29[_0x58e1fc(0x1df)]?'\x20('+_0x537e29[_0x58e1fc(0x1df)]+')':'',_0x36d559=_0x537e29['sessionUpdatedAt']?_0x58e1fc(0x1dc)+_0x537e29[_0x58e1fc(0x1d1)]+')':_0x19b7cf['OgHpD'];console['log']('\x20\x20'+(_0x55b3dc?'*\x20':'\x20\x20')+_0x537e29['name']+'\x20[cloud]'+_0xc4c940),console[_0x58e1fc(0x1c2)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x36d559);}}_0x4d7c9a&&console[_0x58e1fc(0x1c2)]('\x0a*\x20=\x20active\x20profile');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2869d5=_0x55af;(function(_0x3fbd5f,_0x1a2413){const _0x432a1e=_0x55af,_0x71d089=_0x3fbd5f();while(!![]){try{const _0x4c18c2=-parseInt(_0x432a1e(0x18a))/0x1*(parseInt(_0x432a1e(0x19c))/0x2)+-parseInt(_0x432a1e(0x18e))/0x3*(parseInt(_0x432a1e(0x116))/0x4)+-parseInt(_0x432a1e(0x10b))/0x5*(parseInt(_0x432a1e(0x10d))/0x6)+parseInt(_0x432a1e(0x11b))/0x7+-parseInt(_0x432a1e(0x143))/0x8*(-parseInt(_0x432a1e(0x1cb))/0x9)+-parseInt(_0x432a1e(0x159))/0xa*(parseInt(_0x432a1e(0x148))/0xb)+parseInt(_0x432a1e(0x16b))/0xc;if(_0x4c18c2===_0x1a2413)break;else _0x71d089['push'](_0x71d089['shift']());}catch(_0x3a9c45){_0x71d089['push'](_0x71d089['shift']());}}}(_0x3e43,0xd57b9));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x5d8f24 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=_0x41ed8e=>_0x2869d5(0x1c1)+_0x41ed8e+_0x2869d5(0x187);function getGitRepoUrl(){const _0x4df65e=_0x2869d5,_0x3e29da={'HFksl':'pipe'};try{const _0xac7d03=execSync(_0x4df65e(0x12e),{'encoding':'utf-8','stdio':[_0x3e29da['HFksl'],'pipe',_0x3e29da[_0x4df65e(0xfd)]]})[_0x4df65e(0x138)]();return _0xac7d03[_0x4df65e(0x166)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x12b4ba=_0x2869d5,_0x2e9479={'wTHTg':'utf-8','JbkrB':_0x12b4ba(0x1a0)};try{return execSync(_0x12b4ba(0x140),{'encoding':_0x2e9479['wTHTg'],'stdio':[_0x2e9479[_0x12b4ba(0x17b)],_0x2e9479['JbkrB'],_0x12b4ba(0x1a0)]})[_0x12b4ba(0x138)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x223af6=_0x2869d5,_0x1c70b7={'CjRou':function(_0x10a0d8,_0x22ddbd,_0x10eec8){return _0x10a0d8(_0x22ddbd,_0x10eec8);},'JWmRo':function(_0x2f8278,_0x5ce917){return _0x2f8278(_0x5ce917);}},_0xaaed0a=_0x1c70b7[_0x223af6(0x118)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x1c70b7['JWmRo'](existsSync,_0xaaed0a))return null;try{const _0x1a7888=await readFile(_0xaaed0a,'utf-8');return _0x1a7888['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x251168){const _0x5a1302={'JVqRx':function(_0x1dbb86){return _0x1dbb86();},'eMfka':function(_0x398591,_0x203bcb){return _0x398591(_0x203bcb);}},_0x37312f=_0x5a1302['JVqRx'](getRangerDir),_0x2b87a8=join(_0x37312f,ACTIVE_FEATURE_FILE);!_0x5a1302['eMfka'](existsSync,_0x37312f)&&await mkdir(_0x37312f,{'recursive':!![]}),await writeFile(_0x2b87a8,_0x251168,'utf-8');}function getProgressDisplay(_0x4de442){const _0x21b62e=_0x2869d5,_0x1e589e={'GVdDq':function(_0x27fb94,_0x1328f9){return _0x27fb94===_0x1328f9;},'wNYOR':function(_0x2058bc,_0x2ee45c){return _0x2058bc*_0x2ee45c;},'Ngajw':function(_0x359a2c,_0x2e5af7){return _0x359a2c-_0x2e5af7;},'hLqxM':function(_0x2e6010,_0x1b651d){return _0x2e6010>_0x1b651d;}},_0x2366e0=_0x4de442['verifiedItems']||0x0,_0x279b25=_0x4de442['verificationInProgressItems']||0x0,_0x14e33d=_0x4de442['blockedItems']||0x0,_0x168903=_0x4de442['incompleteItems']||0x0,_0x2ae696=_0x4de442[_0x21b62e(0x182)]||0x0,_0x593b34=_0x2366e0+_0x279b25+_0x14e33d+_0x168903+_0x2ae696;if(_0x1e589e['GVdDq'](_0x593b34,0x0))return'-';const _0x23bdf9=0xa,_0x250975=Math[_0x21b62e(0x1c5)](_0x1e589e['wNYOR'](_0x2366e0/_0x593b34,_0x23bdf9)),_0x5d4931='█'[_0x21b62e(0x1ae)](_0x250975)+'░'[_0x21b62e(0x1ae)](_0x1e589e[_0x21b62e(0x15c)](_0x23bdf9,_0x250975)),_0xf0fdd2=[];if(_0x1e589e[_0x21b62e(0x129)](_0x14e33d,0x0))_0xf0fdd2[_0x21b62e(0x1b9)](_0x14e33d+'\x20blocked');if(_0x168903>0x0)_0xf0fdd2['push'](_0x168903+_0x21b62e(0x15b));if(_0x279b25>0x0)_0xf0fdd2[_0x21b62e(0x1b9)](_0x279b25+_0x21b62e(0x109));const _0xba038b=_0xf0fdd2[_0x21b62e(0x131)]>0x0?'\x20('+_0xf0fdd2[_0x21b62e(0x1a3)](',\x20')+')':'';return _0x5d4931+'\x20'+_0x2366e0+'/'+_0x593b34+_0x21b62e(0x105)+_0xba038b;}function _0x55af(_0x42b2c2,_0x503947){_0x42b2c2=_0x42b2c2-0xf9;const _0x3e435f=_0x3e43();let _0x55afe4=_0x3e435f[_0x42b2c2];return _0x55afe4;}function getCurrentSessionItems(_0x233504,_0x27a58c){const _0x3abf88=_0x2869d5;if(!_0x233504['currentSessionId'])return _0x27a58c[_0x3abf88(0x13b)](_0x3b859f=>!_0x3b859f['sessionId']);return _0x27a58c[_0x3abf88(0x13b)](_0x5c6dde=>_0x5c6dde[_0x3abf88(0x19f)]===_0x233504[_0x3abf88(0x181)]||!_0x5c6dde[_0x3abf88(0x19f)]);}function displayFeature(_0x9f1a01,_0x4db77a){const _0x562d44=_0x2869d5,_0x311e95={'VMRQY':function(_0x3d13c1,_0x4319b6){return _0x3d13c1>_0x4319b6;},'qwaJH':_0x562d44(0x119),'VtKlu':'approved','yChqE':function(_0x488fbd,_0x2c6e14){return _0x488fbd===_0x2c6e14;},'lzZBn':_0x562d44(0x192),'rXfaG':'closed','iqDxg':function(_0x2b036a,_0x45e22c){return _0x2b036a===_0x45e22c;},'RVMzV':function(_0x35a40a,_0x1988c3){return _0x35a40a>_0x1988c3;},'zIMWO':function(_0x20c184,_0x39a512){return _0x20c184!==_0x39a512;},'IhnYP':_0x562d44(0x111),'plheQ':function(_0x25c281,_0x20371b){return _0x25c281+_0x20371b;},'zFNVx':'blocked','CTkcW':function(_0x64a478,_0x540398){return _0x64a478===_0x540398;}};console['log']('\x0a'+_0x9f1a01['name']+'\x20('+_0x9f1a01[_0x562d44(0x126)]+')');_0x9f1a01[_0x562d44(0x178)]&&console[_0x562d44(0x17a)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x9f1a01[_0x562d44(0x178)]));_0x9f1a01[_0x562d44(0x191)]&&console[_0x562d44(0x17a)]('\x20\x20\x20Description:\x20'+_0x9f1a01['description']);_0x9f1a01['gitRepoUrl']&&console['log'](_0x562d44(0x1ac)+_0x9f1a01['gitRepoUrl']);_0x9f1a01['gitBranch']&&console[_0x562d44(0x17a)](_0x562d44(0x1a1)+_0x9f1a01['gitBranch']);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x9f1a01[_0x562d44(0x196)])[_0x562d44(0x11d)]());_0x9f1a01[_0x562d44(0x1a2)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x9f1a01['completedAt'])[_0x562d44(0x11d)]());if(_0x4db77a&&_0x311e95[_0x562d44(0x12d)](_0x4db77a['length'],0x0)){console['log'](_0x311e95['qwaJH']);for(let _0x4c256e=0x0;_0x4c256e<_0x4db77a['length'];_0x4c256e++){const _0x18e966=_0x4db77a[_0x4c256e];let _0x57bb34;if(_0x18e966[_0x562d44(0x176)]===_0x562d44(0x189)&&_0x18e966[_0x562d44(0x163)]===_0x311e95['VtKlu'])_0x57bb34='✅';else{if(_0x311e95['yChqE'](_0x18e966['status'],'verified'))_0x57bb34='🟢';else{if(_0x18e966['status']===_0x311e95[_0x562d44(0x139)])_0x57bb34='🟠';else{if(_0x18e966[_0x562d44(0x176)]==='blocked')_0x57bb34='🛑';else{if(_0x18e966[_0x562d44(0x176)]===_0x311e95[_0x562d44(0x125)])_0x57bb34='⛔';else _0x311e95[_0x562d44(0x12f)](_0x18e966[_0x562d44(0x176)],'verification_in_progress')?_0x57bb34='⏳':_0x57bb34='⬜';}}}}const _0x25c628=_0x311e95['RVMzV'](_0x18e966[_0x562d44(0x1ce)],0x1)?_0x562d44(0x1c3)+_0x18e966['version']+')':'',_0x29dd96=_0x311e95[_0x562d44(0x12d)](_0x18e966['version'],0x1)&&_0x18e966[_0x562d44(0x132)]&&_0x311e95[_0x562d44(0x10e)](_0x18e966['status'],_0x311e95['rXfaG'])&&_0x311e95[_0x562d44(0x10e)](_0x18e966['status'],_0x311e95['IhnYP'])?_0x562d44(0x198):'';console[_0x562d44(0x17a)](_0x562d44(0x19b)+_0x311e95[_0x562d44(0x110)](_0x4c256e,0x1)+'.\x20'+_0x57bb34+'\x20'+_0x18e966[_0x562d44(0x191)]+_0x25c628+_0x29dd96);_0x18e966[_0x562d44(0x176)]===_0x311e95['zFNVx']&&_0x18e966[_0x562d44(0x193)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x18e966['blockedReason']);_0x18e966[_0x562d44(0x176)]==='incomplete'&&_0x18e966[_0x562d44(0x1b8)]&&console[_0x562d44(0x17a)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x18e966[_0x562d44(0x1b8)]);if(_0x18e966['status']==='closed'&&_0x311e95['CTkcW'](_0x18e966['terminalReason'],_0x311e95['VtKlu']))console[_0x562d44(0x17a)](_0x562d44(0x101));else _0x18e966['status']==='closed'&&_0x18e966[_0x562d44(0x173)]&&console[_0x562d44(0x17a)](_0x562d44(0x1b4)+_0x18e966[_0x562d44(0x173)]);}}}export async function featureCreate(_0x5e9ffb,_0x28ffa1){const _0x18f247=_0x2869d5,_0x2a2162={'YEqaT':function(_0x147275,_0x4fdb54){return _0x147275===_0x4fdb54;},'jwAjI':function(_0x166875){return _0x166875();},'LcOFS':function(_0x1d8826,_0x238f9c){return _0x1d8826(_0x238f9c);},'yhjAL':function(_0x42682a,_0x4ffc34){return _0x42682a(_0x4ffc34);},'SQZsr':function(_0x32978e,_0x4fbd85,_0xd77b8a){return _0x32978e(_0x4fbd85,_0xd77b8a);}},{envNames:_0x10e16c}=await getEnvNames();_0x2a2162['YEqaT'](_0x10e16c['length'],0x0)&&console[_0x18f247(0x14a)]('\x0a'+formatProfileRequiredMessage(_0x1b53eb=>bold(_0x1b53eb)));const _0x34ea4d=_0x28ffa1['scenarios']?_0x28ffa1['scenarios']['map'](_0x21640d=>_0x21640d[_0x18f247(0x138)]()):[],_0x2ef83f=_0x2a2162[_0x18f247(0xfe)](getGitRepoUrl),_0x3f0140=getGitBranch();console[_0x18f247(0x17a)]('\x0aCreating\x20feature\x20review...');const _0x319481=await createFeature({'name':_0x5e9ffb,'description':_0x28ffa1[_0x18f247(0x191)],'checklist':_0x34ea4d,'gitRepoUrl':_0x2ef83f,'gitBranch':_0x3f0140});await _0x2a2162[_0x18f247(0x10a)](setActiveFeatureId,_0x319481['id']),await _0x2a2162['yhjAL'](tryStartCurrentSession,_0x319481['id']);const _0x126264=process['env']['CLAUDE_SESSION_ID'];_0x126264&&_0x2a2162[_0x18f247(0x16d)](registerSession,_0x126264,_0x319481['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x319481['id']),displayFeature(_0x319481,_0x319481[_0x18f247(0x17f)]),console[_0x18f247(0x17a)](_0x18f247(0x18d));}export async function featureList(_0x364034){const _0x1cd867=_0x2869d5,_0x173b9a={'AJrph':function(_0xb7b8d1){return _0xb7b8d1();},'UeuoN':function(_0x1121c7,_0x66f297){return _0x1121c7(_0x66f297);},'scRaY':function(_0x40343f,_0x171025){return _0x40343f(_0x171025);},'mMLkw':function(_0x1b5a2f,_0xaff0f5){return _0x1b5a2f+_0xaff0f5;},'mCewH':_0x1cd867(0x188),'KMHSd':'\x20--include-deleted'},_0x281aaf={'limit':_0x364034['limit']??0xa,'offset':_0x364034['offset']??0x0,'includeDeleted':_0x364034['includeDeleted']};_0x364034[_0x1cd867(0x1bb)]&&(_0x281aaf[_0x1cd867(0x12b)]=_0x173b9a['AJrph'](getGitRepoUrl),_0x281aaf[_0x1cd867(0x199)]=getGitBranch());const _0x461a9e=await _0x173b9a['UeuoN'](listFeatures,_0x281aaf);if(_0x461a9e[_0x1cd867(0x1c8)][_0x1cd867(0x131)]===0x0){console[_0x1cd867(0x17a)](_0x1cd867(0x1b6));return;}const _0xb10365=_0x461a9e['totalCount']>_0x461a9e['items'][_0x1cd867(0x131)]?'Showing\x20'+_0x461a9e[_0x1cd867(0x1c8)][_0x1cd867(0x131)]+_0x1cd867(0x1b0)+_0x461a9e['totalCount']:_0x461a9e[_0x1cd867(0x122)]+'\x20feature\x20review(s)\x20found';console[_0x1cd867(0x17a)]('\x0a'+_0xb10365+':\x0a');for(const _0x12df7d of _0x461a9e['items']){console['log'](''+_0x12df7d['name']),console[_0x1cd867(0x17a)](_0x1cd867(0x1c9)+_0x12df7d['id']),_0x12df7d[_0x1cd867(0x178)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x173b9a[_0x1cd867(0x150)](getProgressDisplay,_0x12df7d[_0x1cd867(0x178)])),_0x12df7d['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x12df7d[_0x1cd867(0x199)]),console[_0x1cd867(0x17a)]('\x20\x20\x20Created:\x20'+new Date(_0x12df7d[_0x1cd867(0x196)])['toLocaleDateString']()),console['log']('');}const _0x785ccb=_0x281aaf[_0x1cd867(0x11f)]??0xa,_0x44ac77=_0x173b9a['mMLkw'](_0x281aaf['offset']??0x0,_0x461a9e['items']['length']);if(_0x44ac77<_0x461a9e['totalCount']){const _0x57aec9=_0x785ccb!==0xa?'\x20--limit\x20'+_0x785ccb:'',_0x7dbed4=_0x364034['currentBranch']?_0x173b9a[_0x1cd867(0x19d)]:'',_0x26ec17=_0x364034['includeDeleted']?_0x173b9a['KMHSd']:'';console[_0x1cd867(0x17a)](_0x1cd867(0x155)+_0x44ac77+_0x57aec9+_0x7dbed4+_0x26ec17);}}function _0x3e43(){const _0xd0c246=['\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','scRaY','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20\x20\x20\x20\x20Progress:\x20','NKznY','Next\x20page:\x20ranger\x20list\x20--offset\x20','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','json','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','2824560dUTKyz','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x20incomplete','Ngajw','peihP','\x20\x20✅\x20No\x20feedback\x20to\x20address','completed','No\x20scenarios\x20found.','content','\x20—\x20','terminalReason','Screenshot\x20','lQalh','replace','stepName','isTTY','stdout','4|5|0|1|3|2','35759064IujGFF','name','SQZsr','TWLDZ','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','\x0aAvailable\x20scenarios:','linkedSession','canceledReason','gBJZE','textContent','status','style','stats','isInteger','log','JbkrB','Rmkvf','numeric','PcxFg','checklistItems','exit','currentSessionId','pendingItems','tEgeD','/api/v1/mcp/browser-sessions/','IVgZD','\x0a✅\x20Restored\x20feature\x20review:\x20','\x1b[0m','\x20--current-branch','closed','4177TKZmGQ','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','assetUrl','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','11499HsrmiE','FXLNJ','toFixed','description','incomplete','blockedReason','ready','list','createdAt','in_progress','\x20[has\x20reviewer\x20feedback]','gitBranch','lRdGl','\x20\x20\x20','184pNPKxw','mCewH','CLAUDE_SESSION_ID','sessionId','pipe','\x20\x20\x20Branch:\x20','completedAt','join','KaLbF','latestReview','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','env','all','DXEHn','\x20\x20\x20Repository:\x20','unaddressedComments','repeat','prompt','\x20of\x20','spatial','coordinates','npxkA','\x20\x20\x20\x20\x20\x20Cancelled:\x20','iteration','\x0aNo\x20feature\x20reviews\x20found.','timing','incompleteReason','push','\x0a✅\x20Session\x20is\x20already\x20completed.','currentBranch','submittedAt','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20Session\x20','mWkRH','ruOyX','\x1b[1m','\x0a✅\x20Scenario\x20updated','\x20(v','\x20at\x20[','round','MWUXw','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','items','\x20\x20\x20ID:\x20','split','11652714hXvuOd','Unknown','DCCDo','version','map','TbpQS','screenshotUrls','browserSessionId','\x0a✅\x20Resumed\x20feature\x20review:\x20','ZXwon','\x20concluded.','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','HFksl','jwAjI','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','iAIqc','\x20\x20\x20\x20\x20\x20Approved','cTWqN','\x20>\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','\x20verified','AROtU','isKeyStep','\x20unaddressed\x20comment(s)','\x20in\x20progress','LcOFS','5760yxRLAe','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','7794mXGhLf','zIMWO',':\x20\x22','plheQ','verified','assets','frmPU','canonicalFlow','has','1352PQTeUT','IcHpD','CjRou','\x0a\x20\x20\x20Scenarios:','verification_in_progress','4363877xJVuLz','QKMuS','toLocaleString','find','limit','fDULb','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','totalCount','GBodT','screenshot','rXfaG','dashboardUrl','AIChm','agentResponse','hLqxM','HWaKb','gitRepoUrl','JqAGs','VMRQY','git\x20remote\x20get-url\x20origin','iqDxg','selected','length','parentItemId','.\x20Feature\x20review\x20has\x20','.png','error','domRef','HOUJD','trim','lzZBn','snMtb','filter','POuRF','pop','write','feedback-images','git\x20rev-parse\x20--abbrev-ref\x20HEAD','reports','type','8HWGNap','scenario','assetType','\x20\x20\x20\x20\x20Branch:\x20','hOyEA','33mfhgVT','WXQQa','warn','excludeScenarios','\x20scenario(s).','\x20\x20\x20Created:\x20','UProH'];_0x3e43=function(){return _0xd0c246;};return _0x3e43();}export async function featureShow(_0x233ecb){const _0x1b606a=_0x2869d5,_0x3d89d2={'ccLlK':function(_0x33a678){return _0x33a678();},'bBfUC':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','iAIqc':function(_0x16c16b,_0x2ac89e,_0xabe666){return _0x16c16b(_0x2ac89e,_0xabe666);}},_0x2434eb=_0x233ecb||await _0x3d89d2['ccLlK'](getActiveFeatureId);if(!_0x2434eb)throw new Error(_0x3d89d2['bBfUC']);const _0x4ac840=await getFeature(_0x2434eb);_0x3d89d2[_0x1b606a(0x100)](displayFeature,_0x4ac840,_0x4ac840[_0x1b606a(0x17f)]);}export async function featureResume(_0x59fda9){const _0x31197c=_0x2869d5,_0x275a88={'DCCDo':function(_0x4fc529,_0x9d9c16){return _0x4fc529(_0x9d9c16);},'FXLNJ':function(_0x199856,_0x390192,_0x38e51a){return _0x199856(_0x390192,_0x38e51a);},'NKznY':function(_0x313c10,_0x5ae81e){return _0x313c10&&_0x5ae81e;},'mWkRH':'any','KOVjo':function(_0x576907,_0x4a1098){return _0x576907===_0x4a1098;},'ruOyX':_0x31197c(0x152),'SFQcc':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','MagCK':_0x31197c(0x158),'AilSl':_0x31197c(0x195),'BTzBB':_0x31197c(0x10c),'QKMuS':function(_0x4afb37,_0x133da5){return _0x4afb37(_0x133da5);}};if(_0x59fda9){const _0x35050c=await getFeature(_0x59fda9);await _0x275a88['DCCDo'](setActiveFeatureId,_0x35050c['id']);const _0x4d1cdc=getGitBranch();_0x4d1cdc&&_0x4d1cdc!==_0x35050c['gitBranch']&&(await updateFeature(_0x35050c['id'],{'gitBranch':_0x4d1cdc}),console[_0x31197c(0x17a)](_0x31197c(0x104)+_0x4d1cdc));console['log'](_0x31197c(0xf9)+_0x35050c[_0x31197c(0x16c)]+'\x20('+_0x35050c['id']+')'),await tryStartCurrentSession(_0x35050c['id']);const _0xb1935d=process[_0x31197c(0x1a9)][_0x31197c(0x19e)];_0xb1935d&®isterSession(_0xb1935d,_0x35050c['id']);_0x275a88[_0x31197c(0x18f)](displayFeature,_0x35050c,_0x35050c[_0x31197c(0x17f)]),await printFeedbackNudge(_0x35050c['id']);return;}const _0x5507db=getGitRepoUrl(),_0x51c0fa=getGitBranch();if(_0x275a88[_0x31197c(0x154)](!_0x5507db,!_0x51c0fa))throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x5507db||_0x275a88[_0x31197c(0x1bf)])+'\x20/\x20'+(_0x51c0fa||_0x275a88['mWkRH'])+'...');const _0x1073ef=await listFeatures({'gitRepoUrl':_0x5507db,'gitBranch':_0x51c0fa}),_0x1a069f=_0x1073ef[_0x31197c(0x1c8)][_0x31197c(0x13b)](_0x47a33f=>_0x47a33f['status']?_0x47a33f['status']!=='verified':!_0x47a33f[_0x31197c(0x1a2)]);if(_0x275a88['KOVjo'](_0x1a069f[_0x31197c(0x131)],0x0)){console['log'](_0x31197c(0xfc)),console['log'](_0x275a88[_0x31197c(0x1c0)]);return;}let _0x519cbe;if(_0x275a88['KOVjo'](_0x1a069f['length'],0x1))_0x519cbe=_0x1a069f[0x0];else{const _0x25f8df=process['stdin'][_0x31197c(0x168)]&&process['stdout']['isTTY'];if(!_0x25f8df){console['log'](_0x275a88['SFQcc']);for(const _0x2615f4 of _0x1a069f){console['log']('\x20\x20'+_0x2615f4['name']),console[_0x31197c(0x17a)]('\x20\x20\x20\x20\x20ID:\x20'+_0x2615f4['id']),_0x2615f4[_0x31197c(0x178)]&&console[_0x31197c(0x17a)](_0x31197c(0x153)+_0x275a88[_0x31197c(0x1cd)](getProgressDisplay,_0x2615f4['stats'])),_0x2615f4[_0x31197c(0x199)]&&console['log'](_0x31197c(0x146)+_0x2615f4['gitBranch']);}throw new Error(_0x275a88['MagCK']);}const {selected:_0x4691f3}=await _0x5d8f24[_0x31197c(0x1af)]([{'type':_0x275a88['AilSl'],'name':_0x31197c(0x130),'message':_0x275a88['BTzBB'],'choices':_0x1a069f[_0x31197c(0x1cf)](_0x5f4360=>({'name':_0x5f4360['name']+'\x20('+_0x5f4360['id']+')','value':_0x5f4360['id']}))}]);_0x519cbe=_0x1a069f['find'](_0x2711d6=>_0x2711d6['id']===_0x4691f3);}await setActiveFeatureId(_0x519cbe['id']);_0x51c0fa&&_0x51c0fa!==_0x519cbe['gitBranch']&&(await _0x275a88['FXLNJ'](updateFeature,_0x519cbe['id'],{'gitBranch':_0x51c0fa}),console[_0x31197c(0x17a)](_0x31197c(0x104)+_0x51c0fa));console['log'](_0x31197c(0xf9)+_0x519cbe['name']+'\x20('+_0x519cbe['id']+')'),await _0x275a88[_0x31197c(0x11c)](tryStartCurrentSession,_0x519cbe['id']);const _0x3d29f9=await _0x275a88[_0x31197c(0x1cd)](getFeature,_0x519cbe['id']),_0x1b86da=process[_0x31197c(0x1a9)]['CLAUDE_SESSION_ID'];_0x1b86da&&_0x275a88[_0x31197c(0x18f)](registerSession,_0x1b86da,_0x3d29f9['id']),displayFeature(_0x3d29f9,_0x3d29f9[_0x31197c(0x17f)]),await _0x275a88[_0x31197c(0x1cd)](printFeedbackNudge,_0x3d29f9['id']);}async function printFeedbackNudge(_0x3063ee){const _0x3cadb2=_0x2869d5,_0x7a8ce9={'MWUXw':function(_0x435c48,_0x3d1de5,_0x5e5ac1){return _0x435c48(_0x3d1de5,_0x5e5ac1);},'tZtrU':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x51c435}=await getActionItems(_0x3063ee);let _0x3d689f=0x0,_0xc7a149=0x0;for(const _0x50809f of _0x51c435){const _0x316f56=await _0x7a8ce9[_0x3cadb2(0x1c6)](getItemFeedback,_0x3063ee,_0x50809f['id']);_0x316f56[_0x3cadb2(0x1ad)][_0x3cadb2(0x131)]>0x0&&(_0x3d689f+=_0x316f56[_0x3cadb2(0x1ad)][_0x3cadb2(0x131)],_0xc7a149++);}_0x3d689f>0x0&&(console[_0x3cadb2(0x17a)]('\x0a⚠️\x20\x20'+_0x3d689f+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0xc7a149+_0x3cadb2(0x14c)),console['log'](_0x7a8ce9['tZtrU']));}catch{}}async function tryStartCurrentSession(_0x1cba69){const _0x257caf=_0x2869d5,_0x31c9a3={'IcHpD':function(_0x205205,_0x3e8370){return _0x205205(_0x3e8370);}};try{const {sessions:_0x5e556d}=await _0x31c9a3[_0x257caf(0x117)](listFeatureSessions,_0x1cba69),_0x11928c=_0x5e556d['find'](_0xbdd681=>_0xbdd681['status']===_0x257caf(0x194));_0x11928c&&(await startSession(_0x1cba69,_0x11928c['id']),console[_0x257caf(0x17a)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x11928c[_0x257caf(0x1b5)]));}catch{}}export async function featureReport(_0x59d711,_0x5dd53b){const _0x93de16=_0x2869d5,_0x35979c={'VQekv':function(_0x39b1b5){return _0x39b1b5();},'ZXwon':function(_0x258455,_0x1a57db,_0x338790){return _0x258455(_0x1a57db,_0x338790);},'RHPRl':function(_0x47abfa,_0x3de2ef,_0x576d88,_0x2cd1cd){return _0x47abfa(_0x3de2ef,_0x576d88,_0x2cd1cd);},'NFBhT':function(_0x223931,_0xb57ed3){return _0x223931(_0xb57ed3);},'gBJZE':function(_0x46534a,_0x19f08f,_0xa6378a,_0x47d6c1){return _0x46534a(_0x19f08f,_0xa6378a,_0x47d6c1);},'Ewslj':'utf-8'},_0x3069de=_0x59d711||await _0x35979c['VQekv'](getActiveFeatureId);if(!_0x3069de)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log']('\x0aGenerating\x20report...');const _0x59eb6c=await _0x35979c[_0x93de16(0xfa)](getFeatureReportMarkdown,_0x3069de,{'style':_0x5dd53b[_0x93de16(0x177)]}),_0x5f22db=_0x5dd53b['output']||_0x35979c['RHPRl'](join,getRangerDir(),_0x93de16(0x141),_0x3069de+'.md'),_0x451b6a=_0x35979c['ZXwon'](join,_0x5f22db,'..');!_0x35979c['NFBhT'](existsSync,_0x451b6a)&&await mkdir(_0x451b6a,{'recursive':!![]}),await _0x35979c[_0x93de16(0x174)](writeFile,_0x5f22db,_0x59eb6c,_0x35979c['Ewslj']),console[_0x93de16(0x17a)]('\x0a✅\x20Report\x20generated:\x20'+_0x5f22db);}function getScenarioResult(_0x53d478){const _0x387c52=_0x2869d5,_0x34156b={'IVgZD':_0x387c52(0x189),'HOUJD':_0x387c52(0x11a)};if(_0x53d478['status']===_0x34156b[_0x387c52(0x185)])return _0x53d478['terminalReason']??_0x34156b[_0x387c52(0x185)];if(_0x53d478[_0x387c52(0x176)]===_0x34156b[_0x387c52(0x137)])return _0x387c52(0x197);return _0x53d478[_0x387c52(0x176)];}function getScenarioRationale(_0xf211f4,_0x269d57){const _0x551352=_0x2869d5,_0x435c13={'TbpQS':_0x551352(0x16a)},_0x31a9b3=_0x435c13[_0x551352(0x1d0)]['split']('|');let _0x234252=0x0;while(!![]){switch(_0x31a9b3[_0x234252++]){case'0':if(_0xf211f4[_0x551352(0x1b8)])return _0xf211f4[_0x551352(0x1b8)];continue;case'1':if(_0xf211f4[_0x551352(0x173)])return _0xf211f4['canceledReason'];continue;case'2':return null;case'3':if(_0xf211f4['notes'])return _0xf211f4['notes'];continue;case'4':if(_0x269d57)return _0x269d57;continue;case'5':if(_0xf211f4['blockedReason'])return _0xf211f4[_0x551352(0x193)];continue;}break;}}export async function featureReportPrDescription(_0x185889,_0x10cbc4){const _0x57e4cc=_0x2869d5,_0x59bda9={'xvNbP':_0x57e4cc(0x16f),'Rmkvf':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','lRdGl':function(_0x29987a,_0x4e117f,_0x2f151a,_0x5c12e1){return _0x29987a(_0x4e117f,_0x2f151a,_0x5c12e1);},'cTWqN':function(_0x3e4102,_0x223f61,_0xf4da6a){return _0x3e4102(_0x223f61,_0xf4da6a);}},_0x59bfec=_0x185889||await getActiveFeatureId();if(!_0x59bfec)throw new Error(_0x59bda9['xvNbP']);const _0x33689f=await getFeature(_0x59bfec),_0x3b7c23=_0x33689f['checklistItems']||[],_0x409188=getCurrentSessionItems(_0x33689f,_0x3b7c23);_0x409188[_0x57e4cc(0x131)]===0x0&&(console[_0x57e4cc(0x135)](_0x59bda9[_0x57e4cc(0x17c)]),process[_0x57e4cc(0x180)](0x1));const _0x5cddfd=_0x10cbc4[_0x57e4cc(0x14b)]??[],_0x8df020=_0x5cddfd[_0x57e4cc(0x13b)](_0xd10010=>!Number[_0x57e4cc(0x179)](_0xd10010)||_0xd10010<0x1||_0xd10010>_0x409188['length']);if(_0x8df020['length']>0x0){console['error'](_0x57e4cc(0x1a8)+_0x8df020['join'](',\x20')),console['log'](_0x57e4cc(0x171));for(let _0x7e6fd4=0x0;_0x7e6fd4<_0x409188[_0x57e4cc(0x131)];_0x7e6fd4++){console[_0x57e4cc(0x17a)]('\x20\x20'+(_0x7e6fd4+0x1)+'.\x20'+_0x409188[_0x7e6fd4]['description']);}process[_0x57e4cc(0x180)](0x1);}const _0x53f696=new Set(_0x5cddfd['map'](_0x4cbeea=>_0x4cbeea-0x1)),_0x3d8101=_0x409188['filter']((_0x3e1346,_0x5e7be6)=>!_0x53f696[_0x57e4cc(0x115)](_0x5e7be6));_0x3d8101['length']===0x0&&(console[_0x57e4cc(0x135)](_0x57e4cc(0x1a7)),process[_0x57e4cc(0x180)](0x1));if(_0x10cbc4[_0x57e4cc(0x157)])await _0x59bda9[_0x57e4cc(0x19a)](outputJsonReport,_0x59bfec,_0x33689f,_0x3d8101);else{const _0x41fdb1=await _0x59bda9[_0x57e4cc(0x102)](getFeatureReportMarkdown,_0x59bfec,{'itemIds':_0x3d8101[_0x57e4cc(0x1cf)](_0x5fe2b3=>_0x5fe2b3['id'])});process[_0x57e4cc(0x169)]['write'](_0x41fdb1['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x52aa30,_0x2aa4b2,_0x50377b){const _0x21637f=_0x2869d5,_0x81058c={'MTOoa':function(_0x456f48,_0x4190e8){return _0x456f48(_0x4190e8);},'aXaZl':function(_0x530d66){return _0x530d66();}},_0x5df406=_0x81058c['aXaZl'](getApiBaseUrl),_0x3113f9=await getFeatureReport(_0x52aa30),_0x22f0c4=new Map(_0x3113f9['checklistItems'][_0x21637f(0x1cf)](_0x5bc489=>[_0x5bc489['id'],_0x5bc489])),_0x440837=await Promise[_0x21637f(0x1aa)](_0x50377b['map'](async _0x14f7fb=>{const _0x4b962f=_0x21637f,_0xdc5f30=_0x22f0c4['get'](_0x14f7fb['id']),_0xd7692a=_0xdc5f30?.[_0x4b962f(0x172)]??null;let _0x356b73=[];if(_0x14f7fb['browserSessionId'])try{const {steps:_0x34aa9c}=await _0x81058c['MTOoa'](getBrowserSessionSteps,_0x14f7fb[_0x4b962f(0x1d2)]);_0x34aa9c[_0x4b962f(0x131)]>0x0&&(_0x356b73=_0x34aa9c[_0x4b962f(0x1cf)](_0x2892d0=>{const _0x2f9ca2=_0x4b962f,_0x45aaf4=_0x2892d0[_0x2f9ca2(0x112)]['find'](_0x35d35a=>_0x35d35a['assetType']===_0x2f9ca2(0x124)&&_0x35d35a[_0x2f9ca2(0x1b7)]==='after')??_0x2892d0[_0x2f9ca2(0x112)]['find'](_0x3ee229=>_0x3ee229[_0x2f9ca2(0x145)]==='screenshot');let _0xa5a808=null,_0xee45c1=null;if(_0x45aaf4){const _0x9087e6=_0x45aaf4['storage']['location'][_0x2f9ca2(0x1ca)]('/')[_0x2f9ca2(0x13d)]();_0xa5a808=_0x5df406+_0x2f9ca2(0x184)+_0x14f7fb['browserSessionId']+'/artifacts/'+_0x9087e6,_0x9087e6&&(_0xee45c1=_0x9087e6['replace'](/\.\w+$/,'')[_0x2f9ca2(0x166)](/^(key_)?\d+_/,'')[_0x2f9ca2(0x166)](/[-_]/g,'\x20'));}return{'description':_0xee45c1||_0x2892d0[_0x2f9ca2(0x191)]||_0x2892d0[_0x2f9ca2(0x167)]||'Step\x20'+_0x2892d0['position'],'screenshot':_0xa5a808,'is_key_step':_0x2892d0[_0x2f9ca2(0x107)]};}));}catch{}return _0x356b73[_0x4b962f(0x131)]===0x0&&_0xd7692a?.['screenshotUrls']&&(_0x356b73=_0xd7692a[_0x4b962f(0x1d1)]['map']((_0x4a8a70,_0xda45fa)=>({'description':_0x4b962f(0x164)+(_0xda45fa+0x1),'screenshot':_0x4a8a70,'is_key_step':![]}))),{'description':_0x14f7fb[_0x4b962f(0x191)],'result':getScenarioResult(_0x14f7fb),'rationale':getScenarioRationale(_0x14f7fb,_0xd7692a?.[_0x4b962f(0x128)]),'steps':_0x356b73};})),_0x5a0ce7={'url':_0x2aa4b2[_0x21637f(0x126)],'scenarios':_0x440837};process['stdout'][_0x21637f(0x13e)](JSON['stringify'](_0x5a0ce7,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x33c43c){const _0x43c955=_0x2869d5,_0x3b3ce3={'tEgeD':function(_0x4ad32e){return _0x4ad32e();},'frmPU':_0x43c955(0x1bd),'kDFAi':function(_0x308a95,_0x1f8eb1){return _0x308a95(_0x1f8eb1);},'Ogcej':'Current\x20session\x20not\x20found.','YdcFI':_0x43c955(0x1ba),'wiEus':function(_0x183bc4,_0x62df8f){return _0x183bc4!==_0x62df8f;},'IjiAH':'\x0aConcluding\x20session...','QgYuF':function(_0x82c5f,_0x20e9c7,_0xfdfb2a){return _0x82c5f(_0x20e9c7,_0xfdfb2a);}},_0x4be9c0=_0x33c43c||await _0x3b3ce3[_0x43c955(0x183)](getActiveFeatureId);if(!_0x4be9c0)throw new Error(_0x3b3ce3[_0x43c955(0x113)]);const _0x2caab2=await getFeature(_0x4be9c0);if(!_0x2caab2[_0x43c955(0x181)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x20e1a6}=await _0x3b3ce3['kDFAi'](listFeatureSessions,_0x4be9c0),_0x586516=_0x20e1a6[_0x43c955(0x11e)](_0x36b953=>_0x36b953['id']===_0x2caab2[_0x43c955(0x181)]);if(!_0x586516)throw new Error(_0x3b3ce3['Ogcej']);if(_0x586516[_0x43c955(0x176)]==='completed'){console['log'](_0x3b3ce3['YdcFI']);return;}if(_0x3b3ce3['wiEus'](_0x586516['status'],_0x43c955(0x197)))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x586516[_0x43c955(0x176)]);console['log'](_0x3b3ce3['IjiAH']),await _0x3b3ce3['QgYuF'](concludeSession,_0x4be9c0,_0x2caab2['currentSessionId']),console[_0x43c955(0x17a)]('\x0a✅\x20Session\x20'+_0x586516[_0x43c955(0x1b5)]+_0x43c955(0xfb)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4b4a3c){const _0x2e8724=_0x2869d5,_0x259a8e={'nFwmJ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','DXEHn':function(_0x120bb7,_0x479041){return _0x120bb7(_0x479041);},'UProH':function(_0x4a5074,_0x5b6e53){return _0x4a5074===_0x5b6e53;},'GBodT':'No\x20sessions\x20found.','rThup':_0x2e8724(0x15f)},_0x2adf65=_0x4b4a3c||await getActiveFeatureId();if(!_0x2adf65)throw new Error(_0x259a8e['nFwmJ']);const _0x585d57=await _0x259a8e[_0x2e8724(0x1ab)](getFeature,_0x2adf65);console['log'](_0x2e8724(0x170)+_0x585d57['name']+'\x0a');const {sessions:_0x21900f}=await listFeatureSessions(_0x2adf65);if(_0x259a8e[_0x2e8724(0x14e)](_0x21900f[_0x2e8724(0x131)],0x0)){console['log'](_0x259a8e[_0x2e8724(0x123)]);return;}for(const _0x2c950d of _0x21900f){const _0x570daa=_0x259a8e['UProH'](_0x2c950d['status'],_0x259a8e['rThup'])?'✅':_0x259a8e[_0x2e8724(0x14e)](_0x2c950d[_0x2e8724(0x176)],_0x2e8724(0x197))?'🔄':'▶️';console[_0x2e8724(0x17a)](_0x570daa+_0x2e8724(0x1be)+_0x2c950d[_0x2e8724(0x1b5)]+'\x20('+_0x2c950d['id']+')'),console[_0x2e8724(0x17a)]('\x20\x20\x20Status:\x20'+_0x2c950d[_0x2e8724(0x176)]),console[_0x2e8724(0x17a)](_0x2e8724(0x14d)+new Date(_0x2c950d[_0x2e8724(0x196)])[_0x2e8724(0x11d)]()),_0x2c950d['completedAt']&&console[_0x2e8724(0x17a)]('\x20\x20\x20Completed:\x20'+new Date(_0x2c950d['completedAt'])['toLocaleString']()),console[_0x2e8724(0x17a)]('');}}export async function featureAddScenario(_0x4e7823,_0x12045f){const _0x4c74fd=_0x2869d5,_0x4c359a={'VCZXB':function(_0x590ef4,_0x6297ce,_0x87a802){return _0x590ef4(_0x6297ce,_0x87a802);}},_0x529d4a=_0x12045f||await getActiveFeatureId();if(!_0x529d4a)throw new Error(_0x4c74fd(0x1bd));const _0xd0cd4c=await getFeature(_0x529d4a);if(_0xd0cd4c['latestReview']&&!_0xd0cd4c[_0x4c74fd(0x1a5)][_0x4c74fd(0x1bc)])throw new Error(_0x4c74fd(0x1a6)+_0xd0cd4c['dashboardUrl']);await _0x4c359a['VCZXB'](createChecklistItem,_0x529d4a,_0x4e7823);const _0x59d74e=await getFeature(_0x529d4a);console['log']('\x0a✅\x20Scenario\x20added'),_0x4c359a['VCZXB'](displayFeature,_0x59d74e,_0x59d74e[_0x4c74fd(0x17f)]);}export async function featureEditScenario(_0x21ca2d,_0x88532a){const _0x353b00=_0x2869d5,_0x1ad142={'sVqWn':function(_0x88117a,_0x23b5a9){return _0x88117a===_0x23b5a9;},'TWLDZ':'\x0aAvailable\x20scenarios:','kmjUI':function(_0x4b4dcf,_0x174996){return _0x4b4dcf<_0x174996;},'hOyEA':function(_0x4f1c0d,_0x4d4fae){return _0x4f1c0d-_0x4d4fae;},'PcxFg':function(_0x686766,_0x5563a2){return _0x686766>=_0x5563a2;},'HWaKb':function(_0x3b8ff6,_0x4336ac){return _0x3b8ff6+_0x4336ac;}},_0x52179c=_0x88532a['id']||await getActiveFeatureId();!_0x52179c&&(console[_0x353b00(0x135)](_0x353b00(0x15a)),console['error'](_0x353b00(0x156)),process['exit'](0x1));const _0xd079ab=await getFeature(_0x52179c);_0xd079ab[_0x353b00(0x1a5)]&&!_0xd079ab['latestReview'][_0x353b00(0x1bc)]&&(console[_0x353b00(0x135)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console[_0x353b00(0x135)]('\x20\x20'+_0xd079ab['dashboardUrl']),process[_0x353b00(0x180)](0x1));const _0x432500=_0xd079ab['checklistItems']||[];_0x1ad142['sVqWn'](_0x432500[_0x353b00(0x131)],0x0)&&(console[_0x353b00(0x135)](_0x353b00(0x151)),process[_0x353b00(0x180)](0x1));if(_0x88532a[_0x353b00(0x144)]===undefined){console[_0x353b00(0x135)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x353b00(0x17a)](_0x1ad142[_0x353b00(0x16e)]);for(let _0xf2843e=0x0;_0x1ad142['kmjUI'](_0xf2843e,_0x432500['length']);_0xf2843e++){console[_0x353b00(0x17a)]('\x20\x20'+(_0xf2843e+0x1)+'.\x20'+_0x432500[_0xf2843e]['description']);}process[_0x353b00(0x180)](0x1);}const _0x139b98=_0x1ad142[_0x353b00(0x147)](_0x88532a[_0x353b00(0x144)],0x1);if(_0x139b98<0x0||_0x1ad142[_0x353b00(0x17e)](_0x139b98,_0x432500[_0x353b00(0x131)])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x88532a[_0x353b00(0x144)]+_0x353b00(0x133)+_0x432500['length']+'\x20scenarios.'),console['log'](_0x1ad142[_0x353b00(0x16e)]);for(let _0x5809f9=0x0;_0x5809f9<_0x432500[_0x353b00(0x131)];_0x5809f9++){console[_0x353b00(0x17a)]('\x20\x20'+_0x1ad142[_0x353b00(0x12a)](_0x5809f9,0x1)+'.\x20'+_0x432500[_0x5809f9]['description']);}process['exit'](0x1);}const _0x11f69c=_0x432500[_0x139b98];await updateChecklistItem(_0x52179c,_0x11f69c['id'],{'description':_0x21ca2d});const _0xa39039=await getFeature(_0x52179c);console['log'](_0x353b00(0x1c2)),displayFeature(_0xa39039,_0xa39039[_0x353b00(0x17f)]);}async function downloadFeedbackImage(_0x438687,_0x4a5d39){const _0x29820e=_0x2869d5,_0xb2ad99={'npxkA':function(_0x474f1c){return _0x474f1c();},'KaLbF':_0x29820e(0x13f),'lQalh':function(_0x27cfb7,_0x593339){return _0x27cfb7(_0x593339);},'JqAGs':function(_0x50e6e8,_0x20a6f0,_0x1b996b){return _0x50e6e8(_0x20a6f0,_0x1b996b);}};try{const _0x3f611b=join(_0xb2ad99[_0x29820e(0x1b3)](getRangerDir),_0xb2ad99[_0x29820e(0x1a4)]);await mkdir(_0x3f611b,{'recursive':!![]});const _0x1a6cb4=join(_0x3f611b,'comment_'+_0x4a5d39+_0x29820e(0x134)),_0xcea68d=await _0xb2ad99[_0x29820e(0x165)](fetch,_0x438687);if(!_0xcea68d['ok'])return null;const _0x2fc004=Buffer['from'](await _0xcea68d['arrayBuffer']());return await _0xb2ad99[_0x29820e(0x12c)](writeFile,_0x1a6cb4,_0x2fc004),_0x1a6cb4;}catch{return null;}}export async function featureGetReview(_0x54840a){const _0x3d11f2=_0x2869d5,_0x11ce79={'AIChm':_0x3d11f2(0x1bd),'PzHsm':function(_0x340944,_0x393eef){return _0x340944(_0x393eef);},'bszlY':_0x3d11f2(0x160),'FqSIr':function(_0x3176c5,_0x3f657a){return _0x3176c5+_0x3f657a;},'peihP':'en-US','Qguzh':_0x3d11f2(0x17d),'fDULb':function(_0x2f25a2,_0x4cdcca,_0x2947ea){return _0x2f25a2(_0x4cdcca,_0x2947ea);},'Rrwuh':'element','AROtU':function(_0x19b5ed,_0x4a2b13){return _0x19b5ed>=_0x4a2b13;}},_0x1b6c8a=_0x54840a||await getActiveFeatureId();if(!_0x1b6c8a)throw new Error(_0x11ce79[_0x3d11f2(0x127)]);const _0x400e1f=await _0x11ce79['PzHsm'](getFeature,_0x1b6c8a),{items:_0x5f508a}=await getActionItems(_0x1b6c8a);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x400e1f[_0x3d11f2(0x16c)]+'\x20('+_0x400e1f['id']+')\x0a');if(_0x5f508a[_0x3d11f2(0x131)]===0x0){console['log'](_0x11ce79['bszlY']);return;}for(let _0x51eba9=0x0;_0x51eba9<_0x5f508a[_0x3d11f2(0x131)];_0x51eba9++){const _0x1ca688=_0x5f508a[_0x51eba9],_0x5d1279=_0x1ca688['version']>0x1?'\x20(v'+_0x1ca688[_0x3d11f2(0x1ce)]+')':'',_0x1fc4ab=await getItemFeedback(_0x1b6c8a,_0x1ca688['id']);if(_0x1fc4ab['unaddressedComments'][_0x3d11f2(0x131)]>0x0){console['log']('Scenario\x20'+_0x11ce79['FqSIr'](_0x51eba9,0x1)+_0x3d11f2(0x10f)+_0x1ca688[_0x3d11f2(0x191)]+'\x22'+_0x5d1279+_0x3d11f2(0x162)+_0x1fc4ab['unaddressedComments']['length']+_0x3d11f2(0x108));for(const _0x27aa05 of _0x1fc4ab['unaddressedComments']){const _0x4ebf99=new Date(_0x27aa05[_0x3d11f2(0x196)])['toLocaleDateString'](_0x11ce79[_0x3d11f2(0x15d)],{'month':'short','day':_0x11ce79['Qguzh']}),_0x5305ed=_0x27aa05['authorName']||_0x27aa05['authorEmail']||_0x3d11f2(0x1cc);console['log']('\x20\x20💬\x20'+_0x5305ed+'\x20('+_0x4ebf99+'):\x20\x22'+_0x27aa05[_0x3d11f2(0x161)]+'\x22');if(_0x27aa05['assetUrl']){const _0xba6203=await _0x11ce79[_0x3d11f2(0x120)](downloadFeedbackImage,_0x27aa05[_0x3d11f2(0x18c)],_0x27aa05['id']);_0xba6203&&console[_0x3d11f2(0x17a)](_0x3d11f2(0x1c7)+_0xba6203);}if(_0x27aa05['domRef']){const _0x21580a=_0x27aa05[_0x3d11f2(0x136)]['selector']['split'](_0x3d11f2(0x103))['pop']()?.['split'](':')[0x0]||_0x11ce79['Rrwuh'],_0x58545d=_0x27aa05[_0x3d11f2(0x136)][_0x3d11f2(0x175)]?'\x20\x22'+_0x27aa05[_0x3d11f2(0x136)][_0x3d11f2(0x175)]['slice'](0x0,0x3c)+'\x22':'';console['log'](_0x3d11f2(0x18b)+_0x21580a+'>'+_0x58545d),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x27aa05['domRef']['selector']);}else{if(_0x27aa05['spatial']){const _0x23a806=_0x27aa05[_0x3d11f2(0x1b1)][_0x3d11f2(0x1b2)];_0x27aa05[_0x3d11f2(0x1b1)][_0x3d11f2(0x142)]==='point'&&_0x11ce79[_0x3d11f2(0x106)](_0x23a806[_0x3d11f2(0x131)],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x23a806[0x0]['toFixed'](0x2)+',\x20'+_0x23a806[0x1][_0x3d11f2(0x190)](0x2)+')'):console['log'](_0x3d11f2(0x121)+_0x27aa05['spatial'][_0x3d11f2(0x142)]+_0x3d11f2(0x1c4)+_0x23a806[_0x3d11f2(0x1cf)](_0x4d1927=>_0x4d1927[_0x3d11f2(0x190)](0x2))[_0x3d11f2(0x1a3)](',\x20')+']');}}}if(_0x1fc4ab[_0x3d11f2(0x114)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x2427b6 of _0x1fc4ab[_0x3d11f2(0x114)]['split']('\x0a')){console[_0x3d11f2(0x17a)]('\x20\x20\x20\x20'+_0x2427b6);}}}else console['log']('Scenario\x20'+(_0x51eba9+0x1)+':\x20\x22'+_0x1ca688[_0x3d11f2(0x191)]+'\x22'+_0x5d1279+'\x20—\x20no\x20comments'),console[_0x3d11f2(0x17a)](_0x3d11f2(0x15e));console['log']('');}}export async function featureDelete(_0x5a9917){const _0x31fc45=_0x2869d5,_0x2e1536={'POuRF':function(_0x162700){return _0x162700();},'jhtbu':function(_0x391070,_0x1e046a){return _0x391070(_0x1e046a);},'WXQQa':_0x31fc45(0x14f)},_0x28f4ce=_0x5a9917||await _0x2e1536[_0x31fc45(0x13c)](getActiveFeatureId);if(!_0x28f4ce)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 _0x4179ce=await getFeature(_0x28f4ce);await _0x2e1536['jhtbu'](softDeleteFeature,_0x28f4ce),console[_0x31fc45(0x17a)](_0x31fc45(0xff)+_0x4179ce['name']+'\x20('+_0x28f4ce+')'),console['log'](_0x2e1536[_0x31fc45(0x149)]+_0x28f4ce);}export async function featureRestore(_0xd0fb30){const _0x4b0f9e=_0x2869d5,_0x4a1095={'iSNRT':function(_0x2b9789,_0x2166e2){return _0x2b9789(_0x2166e2);},'snMtb':function(_0xb00d92,_0x2c537e){return _0xb00d92(_0x2c537e);}};await _0x4a1095['iSNRT'](restoreFeature,_0xd0fb30);const _0x1e2eb6=await _0x4a1095[_0x4b0f9e(0x13a)](getFeature,_0xd0fb30);console[_0x4b0f9e(0x17a)](_0x4b0f9e(0x186)+_0x1e2eb6[_0x4b0f9e(0x16c)]+'\x20('+_0xd0fb30+')'),displayFeature(_0x1e2eb6,_0x1e2eb6[_0x4b0f9e(0x17f)]);}
|
|
1
|
+
(function(_0x343868,_0x21a2a5){const _0x4a1b91=_0x28e1,_0x272187=_0x343868();while(!![]){try{const _0x3dfe15=-parseInt(_0x4a1b91(0x188))/0x1+-parseInt(_0x4a1b91(0x182))/0x2+-parseInt(_0x4a1b91(0x14c))/0x3+-parseInt(_0x4a1b91(0x1cb))/0x4*(parseInt(_0x4a1b91(0x1b1))/0x5)+-parseInt(_0x4a1b91(0x14e))/0x6*(parseInt(_0x4a1b91(0x1bf))/0x7)+parseInt(_0x4a1b91(0x1d5))/0x8+parseInt(_0x4a1b91(0x1d6))/0x9*(parseInt(_0x4a1b91(0x11b))/0xa);if(_0x3dfe15===_0x21a2a5)break;else _0x272187['push'](_0x272187['shift']());}catch(_0x52f18a){_0x272187['push'](_0x272187['shift']());}}}(_0x31b5,0x36d08));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x2044a0 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=_0x4f2f96=>'\x1b[1m'+_0x4f2f96+'\x1b[0m';function getGitRepoUrl(){const _0x478d4b=_0x28e1,_0x28c5c9={'cEjZy':function(_0x398023,_0x48574e,_0x470916){return _0x398023(_0x48574e,_0x470916);},'njFbq':'git\x20remote\x20get-url\x20origin','WoVGN':_0x478d4b(0x16b)};try{const _0xd772b2=_0x28c5c9[_0x478d4b(0x123)](execSync,_0x28c5c9[_0x478d4b(0x11f)],{'encoding':_0x478d4b(0x127),'stdio':[_0x28c5c9['WoVGN'],'pipe',_0x478d4b(0x16b)]})['trim']();return _0xd772b2[_0x478d4b(0x17a)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')[_0x478d4b(0x17a)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x42b364=_0x28e1,_0x4b6ebc={'zLYhd':function(_0x53cae9,_0x56b4d3,_0x2b3f57){return _0x53cae9(_0x56b4d3,_0x2b3f57);},'cJCjZ':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','FGCEC':'utf-8','hwzoC':_0x42b364(0x16b)};try{return _0x4b6ebc['zLYhd'](execSync,_0x4b6ebc[_0x42b364(0x154)],{'encoding':_0x4b6ebc[_0x42b364(0x11c)],'stdio':[_0x4b6ebc['hwzoC'],_0x42b364(0x16b),_0x42b364(0x16b)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x4b6a22=_0x28e1,_0x30b3b3={'BUpNW':function(_0x5b9453,_0x2a7f11,_0x4f8aef){return _0x5b9453(_0x2a7f11,_0x4f8aef);},'MlONv':function(_0x4905f8){return _0x4905f8();}},_0x3369ad=_0x30b3b3[_0x4b6a22(0x172)](join,_0x30b3b3[_0x4b6a22(0x15b)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x3369ad))return null;try{const _0x1aa3ea=await readFile(_0x3369ad,'utf-8');return _0x1aa3ea[_0x4b6a22(0x15e)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x589cfc){const _0x18e33f=_0x28e1,_0xdc3e43={'KkitV':function(_0x36f61b){return _0x36f61b();},'ouWWV':function(_0x45dea1,_0x3dfc39,_0x3ee61c){return _0x45dea1(_0x3dfc39,_0x3ee61c);},'lBeXd':function(_0x15b9bd,_0x30e660){return _0x15b9bd(_0x30e660);},'lcLyt':function(_0x50f462,_0x3200d8,_0x53eb47,_0x3ba0e2){return _0x50f462(_0x3200d8,_0x53eb47,_0x3ba0e2);},'pJyCb':'utf-8'},_0x24ecb8=_0xdc3e43['KkitV'](getRangerDir),_0x408f41=_0xdc3e43[_0x18e33f(0x131)](join,_0x24ecb8,ACTIVE_FEATURE_FILE);!_0xdc3e43[_0x18e33f(0x1af)](existsSync,_0x24ecb8)&&await mkdir(_0x24ecb8,{'recursive':!![]}),await _0xdc3e43['lcLyt'](writeFile,_0x408f41,_0x589cfc,_0xdc3e43['pJyCb']);}function getProgressDisplay(_0x5ed72a){const _0x3fae4e=_0x28e1,_0x2b6ac6={'bKhRC':function(_0x415e78,_0x3e06df){return _0x415e78+_0x3e06df;},'bGUzU':function(_0x224a01,_0x12a3f3){return _0x224a01===_0x12a3f3;},'WoTaS':function(_0x44df82,_0x19ce3a){return _0x44df82*_0x19ce3a;},'mDiol':function(_0x4e6e41,_0xae645){return _0x4e6e41/_0xae645;},'FQcWd':function(_0x180b51,_0x2db492){return _0x180b51-_0x2db492;},'FpKmm':function(_0x6dcdd6,_0x33f2c1){return _0x6dcdd6>_0x33f2c1;}},_0x426fa4=_0x5ed72a[_0x3fae4e(0x144)]||0x0,_0x2f17cc=_0x5ed72a[_0x3fae4e(0x10b)]||0x0,_0x331c0c=_0x5ed72a[_0x3fae4e(0x1b6)]||0x0,_0x1502bd=_0x5ed72a[_0x3fae4e(0x1d8)]||0x0,_0xe133c8=_0x5ed72a[_0x3fae4e(0x1db)]||0x0,_0x28eb1f=_0x2b6ac6['bKhRC'](_0x426fa4+_0x2f17cc+_0x331c0c+_0x1502bd,_0xe133c8);if(_0x2b6ac6['bGUzU'](_0x28eb1f,0x0))return'-';const _0x2cca7f=0xa,_0x1e4f2d=Math[_0x3fae4e(0x129)](_0x2b6ac6['WoTaS'](_0x2b6ac6['mDiol'](_0x426fa4,_0x28eb1f),_0x2cca7f)),_0x8949f3='█'[_0x3fae4e(0x1a4)](_0x1e4f2d)+'░'['repeat'](_0x2b6ac6[_0x3fae4e(0x106)](_0x2cca7f,_0x1e4f2d)),_0x57891e=[];if(_0x331c0c>0x0)_0x57891e[_0x3fae4e(0x169)](_0x331c0c+'\x20blocked');if(_0x1502bd>0x0)_0x57891e[_0x3fae4e(0x169)](_0x1502bd+_0x3fae4e(0x119));if(_0x2b6ac6['FpKmm'](_0x2f17cc,0x0))_0x57891e[_0x3fae4e(0x169)](_0x2f17cc+_0x3fae4e(0x1e3));const _0x538356=_0x57891e['length']>0x0?'\x20('+_0x57891e['join'](',\x20')+')':'';return _0x8949f3+'\x20'+_0x426fa4+'/'+_0x28eb1f+'\x20verified'+_0x538356;}function getCurrentSessionItems(_0x4e9894,_0x260db5){const _0x5245f4=_0x28e1;if(!_0x4e9894['currentSessionId'])return _0x260db5['filter'](_0x26b403=>!_0x26b403['sessionId']);return _0x260db5['filter'](_0xc16a66=>_0xc16a66[_0x5245f4(0x195)]===_0x4e9894[_0x5245f4(0x1b7)]||!_0xc16a66[_0x5245f4(0x195)]);}function displayFeature(_0x173f0e,_0x36a70f){const _0xb21d7d=_0x28e1,_0x9102c9={'zhiZd':function(_0x57d3cc,_0x53c3e2){return _0x57d3cc<_0x53c3e2;},'IvxTl':'closed','SAuEW':function(_0x5ec2bd,_0x5b1c11){return _0x5ec2bd===_0x5b1c11;},'lrCik':_0xb21d7d(0x1d1),'FldiW':function(_0x404000,_0x13b780){return _0x404000!==_0x13b780;},'HDlTX':'verified','YvEAG':_0xb21d7d(0x19b),'SLrpA':function(_0x2e4620,_0x5cd2cf){return _0x2e4620===_0x5cd2cf;},'VYCXd':function(_0x5459e4,_0x1e7869){return _0x5459e4===_0x1e7869;}};console['log']('\x0a'+_0x173f0e['name']+'\x20('+_0x173f0e['dashboardUrl']+')');_0x173f0e['stats']&&console['log'](_0xb21d7d(0x185)+getProgressDisplay(_0x173f0e['stats']));_0x173f0e['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x173f0e['description']);_0x173f0e['gitRepoUrl']&&console['log'](_0xb21d7d(0x181)+_0x173f0e['gitRepoUrl']);_0x173f0e[_0xb21d7d(0x14f)]&&console[_0xb21d7d(0x136)]('\x20\x20\x20Branch:\x20'+_0x173f0e[_0xb21d7d(0x14f)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x173f0e['createdAt'])[_0xb21d7d(0x1b2)]());_0x173f0e[_0xb21d7d(0x1b0)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x173f0e['completedAt'])['toLocaleString']());if(_0x36a70f&&_0x36a70f[_0xb21d7d(0x159)]>0x0){console[_0xb21d7d(0x136)](_0xb21d7d(0x132));for(let _0x5bcec5=0x0;_0x9102c9[_0xb21d7d(0x116)](_0x5bcec5,_0x36a70f['length']);_0x5bcec5++){const _0x2c05fb=_0x36a70f[_0x5bcec5];let _0x12290d;if(_0x2c05fb['status']===_0x9102c9[_0xb21d7d(0x1a5)]&&_0x2c05fb['terminalReason']===_0xb21d7d(0x12b))_0x12290d='✅';else{if(_0x2c05fb[_0xb21d7d(0x175)]==='verified')_0x12290d='🟢';else{if(_0x2c05fb['status']===_0xb21d7d(0x125))_0x12290d='🟠';else{if(_0x9102c9[_0xb21d7d(0x12d)](_0x2c05fb[_0xb21d7d(0x175)],'blocked'))_0x12290d='🛑';else{if(_0x2c05fb['status']==='closed')_0x12290d='⛔';else _0x2c05fb[_0xb21d7d(0x175)]===_0x9102c9['lrCik']?_0x12290d='⏳':_0x12290d='⬜';}}}}const _0x98f10e=_0x2c05fb['version']>0x1?_0xb21d7d(0x1c7)+_0x2c05fb['version']+')':'',_0x2c0733=_0x2c05fb[_0xb21d7d(0x1c4)]>0x1&&_0x2c05fb[_0xb21d7d(0x109)]&&_0x9102c9[_0xb21d7d(0x170)](_0x2c05fb['status'],_0xb21d7d(0x148))&&_0x2c05fb['status']!==_0x9102c9['HDlTX']?_0x9102c9['YvEAG']:'';console['log']('\x20\x20\x20'+(_0x5bcec5+0x1)+'.\x20'+_0x12290d+'\x20'+_0x2c05fb['description']+_0x98f10e+_0x2c0733);_0x9102c9[_0xb21d7d(0x12d)](_0x2c05fb['status'],'blocked')&&_0x2c05fb[_0xb21d7d(0x110)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x2c05fb['blockedReason']);_0x9102c9[_0xb21d7d(0x17b)](_0x2c05fb[_0xb21d7d(0x175)],_0xb21d7d(0x125))&&_0x2c05fb[_0xb21d7d(0x12c)]&&console[_0xb21d7d(0x136)](_0xb21d7d(0x139)+_0x2c05fb['incompleteReason']);if(_0x9102c9[_0xb21d7d(0x153)](_0x2c05fb['status'],_0x9102c9[_0xb21d7d(0x1a5)])&&_0x9102c9['VYCXd'](_0x2c05fb['terminalReason'],'approved'))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x9102c9['VYCXd'](_0x2c05fb[_0xb21d7d(0x175)],'closed')&&_0x2c05fb['canceledReason']&&console[_0xb21d7d(0x136)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x2c05fb[_0xb21d7d(0x134)]);}}}export async function featureCreate(_0x2e3a9e,_0xffcb3a){const _0x47076a=_0x28e1,_0x48ca7b={'xKHRS':function(_0x5b3061){return _0x5b3061();},'HiOvw':function(_0x56d1f4,_0x32dcc2){return _0x56d1f4===_0x32dcc2;},'LZfYY':'\x0aCreating\x20feature\x20review...'},{envNames:_0x5d3a63}=await _0x48ca7b['xKHRS'](getEnvNames);_0x48ca7b['HiOvw'](_0x5d3a63['length'],0x0)&&console[_0x47076a(0x187)]('\x0a'+formatProfileRequiredMessage(_0x52455c=>bold(_0x52455c)));const _0x3ffd66=_0xffcb3a['scenarios']?_0xffcb3a['scenarios']['map'](_0x12d3fe=>_0x12d3fe['trim']()):[],_0x323892=getGitRepoUrl(),_0x5e0a7a=getGitBranch();console[_0x47076a(0x136)](_0x48ca7b[_0x47076a(0x15f)]);const _0xc47ba3=await createFeature({'name':_0x2e3a9e,'description':_0xffcb3a[_0x47076a(0x157)],'checklist':_0x3ffd66,'gitRepoUrl':_0x323892,'gitBranch':_0x5e0a7a});await setActiveFeatureId(_0xc47ba3['id']),await tryStartCurrentSession(_0xc47ba3['id']);const _0x1e8618=process[_0x47076a(0x1c5)][_0x47076a(0x18c)];_0x1e8618&®isterSession(_0x1e8618,_0xc47ba3['id']),console['log'](_0x47076a(0x18d)+_0xc47ba3['id']),displayFeature(_0xc47ba3,_0xc47ba3[_0x47076a(0x1d0)]),console['log'](_0x47076a(0x13e));}export async function featureList(_0x490186){const _0x4cbf04=_0x28e1,_0x2391d9={'lNEkU':function(_0x31badc,_0x17d47a){return _0x31badc(_0x17d47a);},'SWMhC':function(_0x1566b0,_0xa67aff){return _0x1566b0===_0xa67aff;},'WNxJh':function(_0x17c88d,_0x3ccd58){return _0x17c88d>_0x3ccd58;},'ERsJZ':'\x20--include-deleted'},_0x353f80={'limit':_0x490186[_0x4cbf04(0x164)]??0xa,'offset':_0x490186[_0x4cbf04(0x146)]??0x0,'includeDeleted':_0x490186[_0x4cbf04(0x14a)]};_0x490186['currentBranch']&&(_0x353f80[_0x4cbf04(0x194)]=getGitRepoUrl(),_0x353f80['gitBranch']=getGitBranch());const _0x1423bd=await _0x2391d9[_0x4cbf04(0x120)](listFeatures,_0x353f80);if(_0x2391d9['SWMhC'](_0x1423bd['items']['length'],0x0)){console['log'](_0x4cbf04(0x1c0));return;}const _0x1dcb2f=_0x2391d9['WNxJh'](_0x1423bd['totalCount'],_0x1423bd[_0x4cbf04(0x165)][_0x4cbf04(0x159)])?_0x4cbf04(0x1b5)+_0x1423bd['items'][_0x4cbf04(0x159)]+_0x4cbf04(0x1d7)+_0x1423bd['totalCount']:_0x1423bd[_0x4cbf04(0x16a)]+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x1dcb2f+':\x0a');for(const _0xe7c1ce of _0x1423bd[_0x4cbf04(0x165)]){console['log'](''+_0xe7c1ce['name']),console['log'](_0x4cbf04(0x1cf)+_0xe7c1ce['id']),_0xe7c1ce['stats']&&console['log'](_0x4cbf04(0x185)+getProgressDisplay(_0xe7c1ce['stats'])),_0xe7c1ce['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0xe7c1ce['gitBranch']),console[_0x4cbf04(0x136)]('\x20\x20\x20Created:\x20'+new Date(_0xe7c1ce[_0x4cbf04(0x161)])[_0x4cbf04(0x168)]()),console['log']('');}const _0x592eb1=_0x353f80['limit']??0xa,_0xe9506d=(_0x353f80[_0x4cbf04(0x146)]??0x0)+_0x1423bd['items']['length'];if(_0xe9506d<_0x1423bd[_0x4cbf04(0x16a)]){const _0x31940c=_0x592eb1!==0xa?'\x20--limit\x20'+_0x592eb1:'',_0x5d1128=_0x490186['currentBranch']?'\x20--current-branch':'',_0x728a22=_0x490186[_0x4cbf04(0x14a)]?_0x2391d9[_0x4cbf04(0x1c3)]:'';console[_0x4cbf04(0x136)](_0x4cbf04(0x179)+_0xe9506d+_0x31940c+_0x5d1128+_0x728a22);}}export async function featureShow(_0x10ab8e){const _0x328240=_0x28e1,_0x6fd4cb={'dYrdw':function(_0x1a9603,_0x6b0fc2,_0x51aeda){return _0x1a9603(_0x6b0fc2,_0x51aeda);}},_0xc75f57=_0x10ab8e||await getActiveFeatureId();if(!_0xc75f57)throw new Error(_0x328240(0x114));const _0x1c7ccf=await getFeature(_0xc75f57);_0x6fd4cb[_0x328240(0x145)](displayFeature,_0x1c7ccf,_0x1c7ccf['checklistItems']);}function _0x31b5(){const _0x2276c5=['location','agentResponse','\x0aAvailable\x20scenarios:','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x0a✅\x20Resumed\x20feature\x20review:\x20','zhiZd','/api/v1/mcp/browser-sessions/','WuTMv','\x20incomplete','filter','12195010iwamRC','FGCEC','submittedAt','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','njFbq','lNEkU','after','Step\x20','cEjZy','ready','incomplete','oVRUW','utf-8','stepName','round','split','approved','incompleteReason','SAuEW','Screenshot\x20','NSXIl','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','ouWWV','\x0a\x20\x20\x20Scenarios:','aTpPM','canceledReason','verified','log','authorName','coordinates','\x20\x20\x20\x20\x20\x20Incomplete:\x20','exit','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','browserSessionId','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','content','write','stringify','\x20scenarios.','.md','verifiedItems','dYrdw','offset','RVVqd','closed','Kvwpt','includeDeleted','stats','1024560dOSbHw','lnSrY','18gzimsk','gitBranch','find','GNxmU','CBwHz','VYCXd','cJCjZ','scenario','\x20\x20\x20Updated\x20branch\x20to:\x20','description','bxVSZ','length','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','MlONv','stdin','No\x20sessions\x20found.','trim','LZfYY','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','createdAt','terminalReason','in_progress','limit','items','\x0a✅\x20Report\x20generated:\x20','unaddressedComments','toLocaleDateString','push','totalCount','pipe','\x0a✅\x20Scenario\x20updated','EpYeB','HAqIe','isTTY','FldiW','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','BUpNW','tItCV','slice','status','\x20Session\x20','tVpWR','\x20unaddressed\x20comment(s)','Next\x20page:\x20ranger\x20list\x20--offset\x20','replace','SLrpA','xUDmO','numeric','BzSaS','stdout','QtGCm','\x20\x20\x20Repository:\x20','310714KtOaQr','any','assetUrl','\x20\x20\x20Progress:\x20','join','warn','305074xKNOXb','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','IgCie','CLAUDE_SESSION_ID','\x0a✅\x20Feature\x20review\x20created:\x20','lnOVW','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','canonicalFlow','json','rxJvd','iteration','gitRepoUrl','sessionId','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','JYMUH','spatial','\x20\x20\x20▶️\x20Started\x20session\x20','pop','\x20[has\x20reviewer\x20feedback]','KkUzb','map','Hkxyd',':\x20\x22','\x0aConcluding\x20session...','position','\x20\x20\x20Completed:\x20','biYvb','repeat','IvxTl','No\x20active\x20session\x20for\x20this\x20feature\x20review.','element','short','\x20—\x20no\x20comments','selected','uajFH','name','\x20\x20\x20\x20','Unknown','lBeXd','completedAt','15AjcgZM','toLocaleString','Please\x20finish\x20your\x20review\x20first:','\x20/\x20','Showing\x20','blockedItems','currentSessionId','error','arrayBuffer','from','ymVXH','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','dashboardUrl','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','606396JKUUya','\x0aNo\x20feature\x20reviews\x20found.','OrNDH','LEdjN','ERsJZ','version','env','textContent','\x20(v','assetType','domRef','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','5288DnKuRW','\x20\x20\x20\x20\x20📋\x20Selector:\x20','lEfUO','timing','\x20\x20\x20ID:\x20','checklistItems','verification_in_progress','POWfN','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x0a✅\x20Session\x20is\x20already\x20completed.','566560EFExWw','9KRDQII','\x20of\x20','incompleteItems','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','MANYN','pendingItems','screenshotUrls','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x20concluded.','vIzEq','jmQHw','latestReview','\x20in\x20progress','FQcWd','NNOmI','cLnMh','parentItemId','DnQnN','verificationInProgressItems','notes','isInteger','toFixed','Scenario\x20','blockedReason'];_0x31b5=function(){return _0x2276c5;};return _0x31b5();}export async function featureResume(_0xc5c1b0){const _0x416e3b=_0x28e1,_0x48756c={'DnQnN':function(_0x47ba60,_0x472ec2){return _0x47ba60(_0x472ec2);},'OrNDH':function(_0x4bde6d){return _0x4bde6d();},'QtGCm':function(_0x3727c4,_0x1592ab){return _0x3727c4&&_0x1592ab;},'pVvVk':'Not\x20in\x20a\x20git\x20repository.','prYYa':function(_0x329555,_0x3d2b65){return _0x329555||_0x3d2b65;},'ViHdk':function(_0x335a15,_0xae9b51){return _0x335a15===_0xae9b51;},'IgCie':_0x416e3b(0x13d),'SnNiu':_0x416e3b(0x18a),'NNOmI':_0x416e3b(0x160),'akaWN':_0x416e3b(0x189),'mEuAz':function(_0x6cd839,_0x5ba11a,_0x54ae2d){return _0x6cd839(_0x5ba11a,_0x54ae2d);},'oVRUW':function(_0x414158,_0x1f5ad1,_0x3fec61){return _0x414158(_0x1f5ad1,_0x3fec61);}};if(_0xc5c1b0){const _0x158caa=await getFeature(_0xc5c1b0);await setActiveFeatureId(_0x158caa['id']);const _0x16227d=getGitBranch();_0x16227d&&_0x16227d!==_0x158caa[_0x416e3b(0x14f)]&&(await updateFeature(_0x158caa['id'],{'gitBranch':_0x16227d}),console[_0x416e3b(0x136)](_0x416e3b(0x156)+_0x16227d));console[_0x416e3b(0x136)](_0x416e3b(0x115)+_0x158caa['name']+'\x20('+_0x158caa['id']+')'),await tryStartCurrentSession(_0x158caa['id']);const _0x869495=process[_0x416e3b(0x1c5)]['CLAUDE_SESSION_ID'];_0x869495&®isterSession(_0x869495,_0x158caa['id']);displayFeature(_0x158caa,_0x158caa['checklistItems']),await _0x48756c[_0x416e3b(0x10a)](printFeedbackNudge,_0x158caa['id']);return;}const _0x4144c1=getGitRepoUrl(),_0x4dd8fc=_0x48756c[_0x416e3b(0x1c1)](getGitBranch);if(_0x48756c[_0x416e3b(0x180)](!_0x4144c1,!_0x4dd8fc))throw new Error(_0x48756c['pVvVk']);console[_0x416e3b(0x136)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x48756c['prYYa'](_0x4144c1,'any')+_0x416e3b(0x1b4)+(_0x4dd8fc||_0x416e3b(0x183))+'...');const _0x1d30c8=await listFeatures({'gitRepoUrl':_0x4144c1,'gitBranch':_0x4dd8fc}),_0x3f948a=_0x1d30c8[_0x416e3b(0x165)][_0x416e3b(0x11a)](_0x23d8d4=>_0x23d8d4[_0x416e3b(0x175)]?_0x23d8d4['status']!==_0x416e3b(0x135):!_0x23d8d4['completedAt']);if(_0x48756c['ViHdk'](_0x3f948a[_0x416e3b(0x159)],0x0)){console[_0x416e3b(0x136)](_0x416e3b(0x171)),console[_0x416e3b(0x136)](_0x48756c[_0x416e3b(0x18b)]);return;}let _0xbea936;if(_0x3f948a['length']===0x1)_0xbea936=_0x3f948a[0x0];else{const _0x1e0e30=process[_0x416e3b(0x15c)][_0x416e3b(0x16f)]&&process[_0x416e3b(0x17f)]['isTTY'];if(!_0x1e0e30){console['log'](_0x48756c['SnNiu']);for(const _0x45f980 of _0x3f948a){console[_0x416e3b(0x136)]('\x20\x20'+_0x45f980['name']),console[_0x416e3b(0x136)]('\x20\x20\x20\x20\x20ID:\x20'+_0x45f980['id']),_0x45f980['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x48756c[_0x416e3b(0x10a)](getProgressDisplay,_0x45f980[_0x416e3b(0x14b)])),_0x45f980['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x45f980['gitBranch']);}throw new Error(_0x48756c[_0x416e3b(0x107)]);}const {selected:_0x190cc2}=await _0x2044a0['prompt']([{'type':'list','name':_0x416e3b(0x1aa),'message':_0x48756c['akaWN'],'choices':_0x3f948a['map'](_0x4871e5=>({'name':_0x4871e5['name']+'\x20('+_0x4871e5['id']+')','value':_0x4871e5['id']}))}]);_0xbea936=_0x3f948a[_0x416e3b(0x150)](_0x4c37d6=>_0x4c37d6['id']===_0x190cc2);}await _0x48756c['DnQnN'](setActiveFeatureId,_0xbea936['id']);_0x4dd8fc&&_0x4dd8fc!==_0xbea936['gitBranch']&&(await _0x48756c['mEuAz'](updateFeature,_0xbea936['id'],{'gitBranch':_0x4dd8fc}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4dd8fc));console[_0x416e3b(0x136)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xbea936['name']+'\x20('+_0xbea936['id']+')'),await tryStartCurrentSession(_0xbea936['id']);const _0x37a717=await getFeature(_0xbea936['id']),_0x566090=process[_0x416e3b(0x1c5)][_0x416e3b(0x18c)];_0x566090&®isterSession(_0x566090,_0x37a717['id']),_0x48756c[_0x416e3b(0x126)](displayFeature,_0x37a717,_0x37a717[_0x416e3b(0x1d0)]),await printFeedbackNudge(_0x37a717['id']);}async function printFeedbackNudge(_0x4c6c6a){const _0x17310f=_0x28e1,_0x5f446c={'Kvwpt':function(_0x5464d0,_0x2996c3,_0x4bee3b){return _0x5464d0(_0x2996c3,_0x4bee3b);},'QvXsL':_0x17310f(0x1bc)};try{const {items:_0x221d7a}=await getActionItems(_0x4c6c6a);let _0x2dea2b=0x0,_0x4c887f=0x0;for(const _0x113ac6 of _0x221d7a){const _0x34614e=await _0x5f446c[_0x17310f(0x149)](getItemFeedback,_0x4c6c6a,_0x113ac6['id']);_0x34614e[_0x17310f(0x167)][_0x17310f(0x159)]>0x0&&(_0x2dea2b+=_0x34614e[_0x17310f(0x167)][_0x17310f(0x159)],_0x4c887f++);}_0x2dea2b>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x2dea2b+_0x17310f(0x130)+_0x4c887f+'\x20scenario(s).'),console[_0x17310f(0x136)](_0x5f446c['QvXsL']));}catch{}}function _0x28e1(_0x5fdeae,_0x29ce18){_0x5fdeae=_0x5fdeae-0x106;const _0x31b5b9=_0x31b5();let _0x28e143=_0x31b5b9[_0x5fdeae];return _0x28e143;}async function tryStartCurrentSession(_0x22e6e1){const _0x1cb6a6=_0x28e1,_0x568b28={'JYMUH':function(_0x575581,_0x55e0f2){return _0x575581(_0x55e0f2);}};try{const {sessions:_0x57a9e2}=await _0x568b28[_0x1cb6a6(0x197)](listFeatureSessions,_0x22e6e1),_0x31a29c=_0x57a9e2[_0x1cb6a6(0x150)](_0x124861=>_0x124861['status']===_0x1cb6a6(0x124));_0x31a29c&&(await startSession(_0x22e6e1,_0x31a29c['id']),console[_0x1cb6a6(0x136)](_0x1cb6a6(0x199)+_0x31a29c['iteration']));}catch{}}export async function featureReport(_0x8d032a,_0x2d893e){const _0x3435a8=_0x28e1,_0x472775={'bxVSZ':'\x0aGenerating\x20report...','GNxmU':function(_0x45315f,_0x1de3b0,_0x559306){return _0x45315f(_0x1de3b0,_0x559306);},'vIzEq':function(_0x2f5944,_0x2647a0,_0x2ecfe0,_0x2d0296){return _0x2f5944(_0x2647a0,_0x2ecfe0,_0x2d0296);},'xUDmO':function(_0x427be2,_0x58fe24,_0x3ac5fd){return _0x427be2(_0x58fe24,_0x3ac5fd);},'CBwHz':function(_0x97db79,_0x550d8e){return _0x97db79(_0x550d8e);}},_0x3ffa7f=_0x8d032a||await getActiveFeatureId();if(!_0x3ffa7f)throw new Error(_0x3435a8(0x18f));console['log'](_0x472775[_0x3435a8(0x158)]);const _0x526111=await _0x472775['GNxmU'](getFeatureReportMarkdown,_0x3ffa7f,{'style':_0x2d893e['style']}),_0x165d45=_0x2d893e['output']||_0x472775[_0x3435a8(0x1e0)](join,getRangerDir(),'reports',_0x3ffa7f+_0x3435a8(0x143)),_0x12a786=_0x472775[_0x3435a8(0x17c)](join,_0x165d45,'..');!_0x472775[_0x3435a8(0x152)](existsSync,_0x12a786)&&await _0x472775[_0x3435a8(0x151)](mkdir,_0x12a786,{'recursive':!![]}),await writeFile(_0x165d45,_0x526111,'utf-8'),console['log'](_0x3435a8(0x166)+_0x165d45);}function getScenarioResult(_0x13b06c){const _0x29e2ae=_0x28e1,_0x4bfb43={'nDNGM':function(_0x17427a,_0x162c7a){return _0x17427a===_0x162c7a;},'RojnW':_0x29e2ae(0x1d1)};if(_0x13b06c[_0x29e2ae(0x175)]==='closed')return _0x13b06c[_0x29e2ae(0x162)]??'closed';if(_0x4bfb43['nDNGM'](_0x13b06c[_0x29e2ae(0x175)],_0x4bfb43['RojnW']))return _0x29e2ae(0x163);return _0x13b06c['status'];}function getScenarioRationale(_0x44c8c7,_0x4766ce){const _0x1ed3cf=_0x28e1;if(_0x4766ce)return _0x4766ce;if(_0x44c8c7['blockedReason'])return _0x44c8c7[_0x1ed3cf(0x110)];if(_0x44c8c7['incompleteReason'])return _0x44c8c7['incompleteReason'];if(_0x44c8c7[_0x1ed3cf(0x134)])return _0x44c8c7[_0x1ed3cf(0x134)];if(_0x44c8c7[_0x1ed3cf(0x10c)])return _0x44c8c7['notes'];return null;}export async function featureReportPrDescription(_0x2785e9,_0x13ae0f){const _0x133354=_0x28e1,_0x2b1e39={'fcEJI':_0x133354(0x18f),'rxJvd':function(_0x3f923c,_0x58cb37,_0x299d34){return _0x3f923c(_0x58cb37,_0x299d34);},'kumZH':_0x133354(0x1ca),'biYvb':function(_0x18d3a3,_0x1f6f45){return _0x18d3a3>_0x1f6f45;},'WuTMv':'\x0aAvailable\x20scenarios:','HAqIe':function(_0x230f13,_0x22445b){return _0x230f13+_0x22445b;},'kqUPQ':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0x1e8d97=_0x2785e9||await getActiveFeatureId();if(!_0x1e8d97)throw new Error(_0x2b1e39['fcEJI']);const _0x3e114e=await getFeature(_0x1e8d97),_0x4ee251=_0x3e114e[_0x133354(0x1d0)]||[],_0x3819cd=_0x2b1e39[_0x133354(0x192)](getCurrentSessionItems,_0x3e114e,_0x4ee251);_0x3819cd[_0x133354(0x159)]===0x0&&(console[_0x133354(0x1b8)](_0x2b1e39['kumZH']),process[_0x133354(0x13a)](0x1));const _0xe41d12=_0x13ae0f['excludeScenarios']??[],_0xee9daa=_0xe41d12['filter'](_0x8bfcc6=>!Number[_0x133354(0x10d)](_0x8bfcc6)||_0x8bfcc6<0x1||_0x8bfcc6>_0x3819cd['length']);if(_0x2b1e39[_0x133354(0x1a3)](_0xee9daa['length'],0x0)){console[_0x133354(0x1b8)](_0x133354(0x1be)+_0xee9daa[_0x133354(0x186)](',\x20')),console[_0x133354(0x136)](_0x2b1e39[_0x133354(0x118)]);for(let _0x4c15ac=0x0;_0x4c15ac<_0x3819cd[_0x133354(0x159)];_0x4c15ac++){console['log']('\x20\x20'+_0x2b1e39[_0x133354(0x16e)](_0x4c15ac,0x1)+'.\x20'+_0x3819cd[_0x4c15ac]['description']);}process[_0x133354(0x13a)](0x1);}const _0x55a7ef=new Set(_0xe41d12['map'](_0x255bab=>_0x255bab-0x1)),_0x14c621=_0x3819cd[_0x133354(0x11a)]((_0x160950,_0x415d7b)=>!_0x55a7ef['has'](_0x415d7b));_0x14c621['length']===0x0&&(console[_0x133354(0x1b8)](_0x2b1e39['kqUPQ']),process['exit'](0x1));if(_0x13ae0f[_0x133354(0x191)])await outputJsonReport(_0x1e8d97,_0x3e114e,_0x14c621);else{const _0x6c5fcb=await getFeatureReportMarkdown(_0x1e8d97,{'itemIds':_0x14c621['map'](_0x21bf6f=>_0x21bf6f['id'])});process['stdout'][_0x133354(0x140)](_0x6c5fcb['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x37449a,_0x9f8131,_0x5706a5){const _0x1e3956=_0x28e1,_0x5dffb5={'qdugT':function(_0x35b272,_0xe00c66){return _0x35b272(_0xe00c66);},'lDGTL':function(_0x1c10ff,_0xaf5251){return _0x1c10ff===_0xaf5251;},'VPjiP':function(_0x5ea5f4,_0x4359c3){return _0x5ea5f4(_0x4359c3);}},_0x227065=getApiBaseUrl(),_0x26589d=await getFeatureReport(_0x37449a),_0x8c9885=new Map(_0x26589d[_0x1e3956(0x1d0)]['map'](_0x525318=>[_0x525318['id'],_0x525318])),_0x897bc3=await Promise['all'](_0x5706a5[_0x1e3956(0x19d)](async _0x555669=>{const _0x4bc901=_0x1e3956,_0x4705f4=_0x8c9885['get'](_0x555669['id']),_0x436ead=_0x4705f4?.['linkedSession']??null;let _0x29fba7=[];if(_0x555669[_0x4bc901(0x13c)])try{const {steps:_0xd869f8}=await _0x5dffb5['qdugT'](getBrowserSessionSteps,_0x555669['browserSessionId']);_0xd869f8['length']>0x0&&(_0x29fba7=_0xd869f8['map'](_0x3a9fd6=>{const _0x1a03c0=_0x4bc901,_0x3e9219=_0x3a9fd6['assets'][_0x1a03c0(0x150)](_0x2fddd9=>_0x2fddd9[_0x1a03c0(0x1c8)]==='screenshot'&&_0x2fddd9[_0x1a03c0(0x1ce)]===_0x1a03c0(0x121))??_0x3a9fd6['assets'][_0x1a03c0(0x150)](_0x3d6f6b=>_0x3d6f6b[_0x1a03c0(0x1c8)]==='screenshot');let _0x5adeb3=null,_0x1bfcb3=null;if(_0x3e9219){const _0x303cb5=_0x3e9219['storage'][_0x1a03c0(0x111)][_0x1a03c0(0x12a)]('/')['pop']();_0x5adeb3=_0x227065+_0x1a03c0(0x117)+_0x555669[_0x1a03c0(0x13c)]+'/artifacts/'+_0x303cb5,_0x303cb5&&(_0x1bfcb3=_0x303cb5[_0x1a03c0(0x17a)](/\.\w+$/,'')[_0x1a03c0(0x17a)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x1bfcb3||_0x3a9fd6['description']||_0x3a9fd6[_0x1a03c0(0x128)]||_0x1a03c0(0x122)+_0x3a9fd6[_0x1a03c0(0x1a1)],'screenshot':_0x5adeb3,'is_key_step':_0x3a9fd6['isKeyStep']};}));}catch{}return _0x5dffb5['lDGTL'](_0x29fba7[_0x4bc901(0x159)],0x0)&&_0x436ead?.[_0x4bc901(0x1dc)]&&(_0x29fba7=_0x436ead['screenshotUrls'][_0x4bc901(0x19d)]((_0x1dd598,_0x2461fa)=>({'description':_0x4bc901(0x12e)+(_0x2461fa+0x1),'screenshot':_0x1dd598,'is_key_step':![]}))),{'description':_0x555669[_0x4bc901(0x157)],'result':_0x5dffb5['VPjiP'](getScenarioResult,_0x555669),'rationale':getScenarioRationale(_0x555669,_0x436ead?.[_0x4bc901(0x112)]),'steps':_0x29fba7};})),_0xdb05ce={'url':_0x9f8131['dashboardUrl'],'scenarios':_0x897bc3};process[_0x1e3956(0x17f)][_0x1e3956(0x140)](JSON[_0x1e3956(0x141)](_0xdb05ce,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x135229){const _0x1180a2=_0x28e1,_0x3c2c1b={'JyoIG':function(_0x3ce6e4,_0x16a1bc){return _0x3ce6e4(_0x16a1bc);},'NIwrG':'Current\x20session\x20not\x20found.','cLnMh':'completed'},_0x1d9b7b=_0x135229||await getActiveFeatureId();if(!_0x1d9b7b)throw new Error(_0x1180a2(0x114));const _0x57233a=await _0x3c2c1b['JyoIG'](getFeature,_0x1d9b7b);if(!_0x57233a['currentSessionId'])throw new Error(_0x1180a2(0x1a6));const {sessions:_0x6b407d}=await listFeatureSessions(_0x1d9b7b),_0x25998f=_0x6b407d['find'](_0x2a095d=>_0x2a095d['id']===_0x57233a['currentSessionId']);if(!_0x25998f)throw new Error(_0x3c2c1b['NIwrG']);if(_0x25998f['status']===_0x3c2c1b[_0x1180a2(0x108)]){console['log'](_0x1180a2(0x1d4));return;}if(_0x25998f['status']!=='in_progress')throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x25998f['status']);console['log'](_0x1180a2(0x1a0)),await concludeSession(_0x1d9b7b,_0x57233a['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x25998f[_0x1180a2(0x193)]+_0x1180a2(0x1df)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5c200a){const _0x1af885=_0x28e1,_0xf72697={'lnOVW':function(_0x37d98f,_0x28c0b8){return _0x37d98f(_0x28c0b8);},'jmQHw':'completed','POWfN':'in_progress'},_0x1c8681=_0x5c200a||await getActiveFeatureId();if(!_0x1c8681)throw new Error(_0x1af885(0x18f));const _0x16b318=await _0xf72697[_0x1af885(0x18e)](getFeature,_0x1c8681);console['log'](_0x1af885(0x11e)+_0x16b318[_0x1af885(0x1ac)]+'\x0a');const {sessions:_0x4d806b}=await listFeatureSessions(_0x1c8681);if(_0x4d806b[_0x1af885(0x159)]===0x0){console[_0x1af885(0x136)](_0x1af885(0x15d));return;}for(const _0x30101e of _0x4d806b){const _0x157376=_0x30101e[_0x1af885(0x175)]===_0xf72697[_0x1af885(0x1e1)]?'✅':_0x30101e[_0x1af885(0x175)]===_0xf72697[_0x1af885(0x1d2)]?'🔄':'▶️';console['log'](_0x157376+_0x1af885(0x176)+_0x30101e[_0x1af885(0x193)]+'\x20('+_0x30101e['id']+')'),console[_0x1af885(0x136)]('\x20\x20\x20Status:\x20'+_0x30101e['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x30101e['createdAt'])[_0x1af885(0x1b2)]()),_0x30101e['completedAt']&&console['log'](_0x1af885(0x1a2)+new Date(_0x30101e['completedAt'])[_0x1af885(0x1b2)]()),console['log']('');}}export async function featureAddScenario(_0x4736ec,_0x38f652){const _0x2bdce0=_0x28e1,_0x3d869e={'RVVqd':function(_0x93bc2d){return _0x93bc2d();},'NSXIl':_0x2bdce0(0x114),'uajFH':function(_0x5422aa,_0x49b7f3){return _0x5422aa(_0x49b7f3);},'aTpPM':function(_0x1cb05c,_0x175c20,_0x2e2d51){return _0x1cb05c(_0x175c20,_0x2e2d51);},'QjNzV':function(_0x51b625,_0x1301de,_0xefac0c){return _0x51b625(_0x1301de,_0xefac0c);}},_0x3c4997=_0x38f652||await _0x3d869e[_0x2bdce0(0x147)](getActiveFeatureId);if(!_0x3c4997)throw new Error(_0x3d869e[_0x2bdce0(0x12f)]);const _0x152397=await _0x3d869e[_0x2bdce0(0x1ab)](getFeature,_0x3c4997);if(_0x152397['latestReview']&&!_0x152397['latestReview']['submittedAt'])throw new Error(_0x2bdce0(0x1d9)+_0x152397['dashboardUrl']);await _0x3d869e[_0x2bdce0(0x133)](createChecklistItem,_0x3c4997,_0x4736ec);const _0x3e3a3d=await _0x3d869e['uajFH'](getFeature,_0x3c4997);console[_0x2bdce0(0x136)]('\x0a✅\x20Scenario\x20added'),_0x3d869e['QjNzV'](displayFeature,_0x3e3a3d,_0x3e3a3d[_0x2bdce0(0x1d0)]);}export async function featureEditScenario(_0x26110e,_0x2a0723){const _0x12a8ae=_0x28e1,_0x298baf={'BzSaS':function(_0x1e2a9a){return _0x1e2a9a();},'kyfta':_0x12a8ae(0x1b3),'CltcT':_0x12a8ae(0x15a),'TtgeG':function(_0x326a0b,_0x44121f){return _0x326a0b===_0x44121f;},'KkUzb':_0x12a8ae(0x1de),'tItCV':function(_0x18a014,_0x48e373){return _0x18a014>=_0x48e373;},'ddqmc':'\x0aAvailable\x20scenarios:','lEfUO':function(_0x488d33,_0x14ebcb){return _0x488d33+_0x14ebcb;},'zXxvJ':function(_0x18a82a,_0x1eec53,_0x283d03,_0x59c416){return _0x18a82a(_0x1eec53,_0x283d03,_0x59c416);},'ymVXH':function(_0x4e8da6,_0x2778cc,_0x51157f){return _0x4e8da6(_0x2778cc,_0x51157f);}},_0xebdaa4=_0x2a0723['id']||await _0x298baf[_0x12a8ae(0x17e)](getActiveFeatureId);!_0xebdaa4&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x12a8ae(0x1b8)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process[_0x12a8ae(0x13a)](0x1));const _0x2f436c=await getFeature(_0xebdaa4);_0x2f436c['latestReview']&&!_0x2f436c[_0x12a8ae(0x1e2)][_0x12a8ae(0x11d)]&&(console[_0x12a8ae(0x1b8)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x12a8ae(0x1b8)](_0x298baf['kyfta']),console[_0x12a8ae(0x1b8)]('\x20\x20'+_0x2f436c[_0x12a8ae(0x1bd)]),process['exit'](0x1));const _0x624252=_0x2f436c['checklistItems']||[];_0x624252['length']===0x0&&(console[_0x12a8ae(0x1b8)](_0x298baf['CltcT']),process['exit'](0x1));if(_0x298baf['TtgeG'](_0x2a0723[_0x12a8ae(0x155)],undefined)){console[_0x12a8ae(0x1b8)](_0x298baf[_0x12a8ae(0x19c)]),console[_0x12a8ae(0x136)](_0x12a8ae(0x113));for(let _0x5e62cd=0x0;_0x5e62cd<_0x624252['length'];_0x5e62cd++){console[_0x12a8ae(0x136)]('\x20\x20'+(_0x5e62cd+0x1)+'.\x20'+_0x624252[_0x5e62cd]['description']);}process[_0x12a8ae(0x13a)](0x1);}const _0x388165=_0x2a0723[_0x12a8ae(0x155)]-0x1;if(_0x388165<0x0||_0x298baf[_0x12a8ae(0x173)](_0x388165,_0x624252['length'])){console[_0x12a8ae(0x1b8)](_0x12a8ae(0x1dd)+_0x2a0723['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x624252[_0x12a8ae(0x159)]+_0x12a8ae(0x142)),console['log'](_0x298baf['ddqmc']);for(let _0x36cbc1=0x0;_0x36cbc1<_0x624252[_0x12a8ae(0x159)];_0x36cbc1++){console[_0x12a8ae(0x136)]('\x20\x20'+_0x298baf[_0x12a8ae(0x1cd)](_0x36cbc1,0x1)+'.\x20'+_0x624252[_0x36cbc1]['description']);}process[_0x12a8ae(0x13a)](0x1);}const _0x4edb0a=_0x624252[_0x388165];await _0x298baf['zXxvJ'](updateChecklistItem,_0xebdaa4,_0x4edb0a['id'],{'description':_0x26110e});const _0x2b5aad=await getFeature(_0xebdaa4);console[_0x12a8ae(0x136)](_0x12a8ae(0x16c)),_0x298baf[_0x12a8ae(0x1bb)](displayFeature,_0x2b5aad,_0x2b5aad['checklistItems']);}async function downloadFeedbackImage(_0x2023e3,_0x5d14e2){const _0x1b3129=_0x28e1,_0x4e6af6={'tVpWR':function(_0x5a5cf9){return _0x5a5cf9();},'EpYeB':function(_0x7603f1,_0x4ce63e,_0x161b7d){return _0x7603f1(_0x4ce63e,_0x161b7d);},'svKBd':function(_0x18cbb9,_0x128a13){return _0x18cbb9(_0x128a13);},'jxoXd':function(_0x466005,_0x36ded8,_0x454f50){return _0x466005(_0x36ded8,_0x454f50);}};try{const _0x5cae09=join(_0x4e6af6[_0x1b3129(0x177)](getRangerDir),'feedback-images');await _0x4e6af6[_0x1b3129(0x16d)](mkdir,_0x5cae09,{'recursive':!![]});const _0x224f54=_0x4e6af6[_0x1b3129(0x16d)](join,_0x5cae09,'comment_'+_0x5d14e2+'.png'),_0x3467e2=await _0x4e6af6['svKBd'](fetch,_0x2023e3);if(!_0x3467e2['ok'])return null;const _0x5cd941=Buffer[_0x1b3129(0x1ba)](await _0x3467e2[_0x1b3129(0x1b9)]());return await _0x4e6af6['jxoXd'](writeFile,_0x224f54,_0x5cd941),_0x224f54;}catch{return null;}}export async function featureGetReview(_0x562e4d){const _0x191daf=_0x28e1,_0x2ac757={'cztEV':function(_0x98d98,_0xf21680){return _0x98d98<_0xf21680;},'dLwZa':function(_0x495a36,_0x80918c){return _0x495a36>_0x80918c;},'MANYN':function(_0x5dd028,_0x281322){return _0x5dd028+_0x281322;},'tCfmS':'en-US','lnSrY':_0x191daf(0x17d),'BtAzm':'point'},_0x4dfaf6=_0x562e4d||await getActiveFeatureId();if(!_0x4dfaf6)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 _0x293eb5=await getFeature(_0x4dfaf6),{items:_0x3513e0}=await getActionItems(_0x4dfaf6);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x293eb5['name']+'\x20('+_0x293eb5['id']+')\x0a');if(_0x3513e0[_0x191daf(0x159)]===0x0){console['log']('No\x20scenarios\x20found.');return;}for(let _0x17d897=0x0;_0x2ac757['cztEV'](_0x17d897,_0x3513e0[_0x191daf(0x159)]);_0x17d897++){const _0x37f9d1=_0x3513e0[_0x17d897],_0x237bc2=_0x2ac757['dLwZa'](_0x37f9d1[_0x191daf(0x1c4)],0x1)?_0x191daf(0x1c7)+_0x37f9d1['version']+')':'',_0x850289=await getItemFeedback(_0x4dfaf6,_0x37f9d1['id']);if(_0x850289['unaddressedComments'][_0x191daf(0x159)]>0x0){console['log'](_0x191daf(0x10f)+_0x2ac757[_0x191daf(0x1da)](_0x17d897,0x1)+':\x20\x22'+_0x37f9d1['description']+'\x22'+_0x237bc2+'\x20—\x20'+_0x850289['unaddressedComments'][_0x191daf(0x159)]+_0x191daf(0x178));for(const _0x1ced93 of _0x850289['unaddressedComments']){const _0xeeb216=new Date(_0x1ced93[_0x191daf(0x161)])['toLocaleDateString'](_0x2ac757['tCfmS'],{'month':_0x191daf(0x1a8),'day':_0x2ac757[_0x191daf(0x14d)]}),_0x184294=_0x1ced93[_0x191daf(0x137)]||_0x1ced93['authorEmail']||_0x191daf(0x1ae);console[_0x191daf(0x136)]('\x20\x20💬\x20'+_0x184294+'\x20('+_0xeeb216+'):\x20\x22'+_0x1ced93[_0x191daf(0x13f)]+'\x22');if(_0x1ced93[_0x191daf(0x184)]){const _0x2f953b=await downloadFeedbackImage(_0x1ced93['assetUrl'],_0x1ced93['id']);_0x2f953b&&console[_0x191daf(0x136)](_0x191daf(0x196)+_0x2f953b);}if(_0x1ced93['domRef']){const _0x352625=_0x1ced93['domRef']['selector'][_0x191daf(0x12a)]('\x20>\x20')[_0x191daf(0x19a)]()?.[_0x191daf(0x12a)](':')[0x0]||_0x191daf(0x1a7),_0xf9ed5b=_0x1ced93[_0x191daf(0x1c9)][_0x191daf(0x1c6)]?'\x20\x22'+_0x1ced93[_0x191daf(0x1c9)][_0x191daf(0x1c6)][_0x191daf(0x174)](0x0,0x3c)+'\x22':'';console[_0x191daf(0x136)](_0x191daf(0x13b)+_0x352625+'>'+_0xf9ed5b),console['log'](_0x191daf(0x1cc)+_0x1ced93[_0x191daf(0x1c9)]['selector']);}else{if(_0x1ced93[_0x191daf(0x198)]){const _0x3c2577=_0x1ced93[_0x191daf(0x198)][_0x191daf(0x138)];_0x1ced93['spatial']['type']===_0x2ac757['BtAzm']&&_0x3c2577[_0x191daf(0x159)]>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x3c2577[0x0][_0x191daf(0x10e)](0x2)+',\x20'+_0x3c2577[0x1]['toFixed'](0x2)+')'):console['log'](_0x191daf(0x1d3)+_0x1ced93['spatial']['type']+'\x20at\x20['+_0x3c2577['map'](_0x5ca7a3=>_0x5ca7a3[_0x191daf(0x10e)](0x2))[_0x191daf(0x186)](',\x20')+']');}}}if(_0x850289['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x130f71 of _0x850289[_0x191daf(0x190)]['split']('\x0a')){console[_0x191daf(0x136)](_0x191daf(0x1ad)+_0x130f71);}}}else console[_0x191daf(0x136)](_0x191daf(0x10f)+(_0x17d897+0x1)+_0x191daf(0x19f)+_0x37f9d1['description']+'\x22'+_0x237bc2+_0x191daf(0x1a9)),console[_0x191daf(0x136)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x191daf(0x136)]('');}}export async function featureDelete(_0x47c10d){const _0xecb9d0=_0x28e1,_0x28ff8f={'ZBloH':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Hkxyd':function(_0x29b8dd,_0x8f5a21){return _0x29b8dd(_0x8f5a21);},'Ajzcd':function(_0x5cb6d8,_0x236850){return _0x5cb6d8+_0x236850;},'LEdjN':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x5659e3=_0x47c10d||await getActiveFeatureId();if(!_0x5659e3)throw new Error(_0x28ff8f['ZBloH']);const _0x335ff5=await _0x28ff8f[_0xecb9d0(0x19e)](getFeature,_0x5659e3);await softDeleteFeature(_0x5659e3),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x335ff5[_0xecb9d0(0x1ac)]+'\x20('+_0x5659e3+')'),console['log'](_0x28ff8f['Ajzcd'](_0x28ff8f[_0xecb9d0(0x1c2)],_0x5659e3));}export async function featureRestore(_0xe0b495){const _0x238096=_0x28e1,_0x8101b4={'AaCkQ':function(_0xa7fb58,_0x2d7e54,_0xa6f21e){return _0xa7fb58(_0x2d7e54,_0xa6f21e);}};await restoreFeature(_0xe0b495);const _0x41252f=await getFeature(_0xe0b495);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x41252f['name']+'\x20('+_0xe0b495+')'),_0x8101b4['AaCkQ'](displayFeature,_0x41252f,_0x41252f[_0x238096(0x1d0)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x460b8a,_0x16c6d8){const _0x484704=_0x2c79,_0x618378=_0x460b8a();while(!![]){try{const _0x3252a6=-parseInt(_0x484704(0x7e))/0x1*(-parseInt(_0x484704(0x7c))/0x2)+parseInt(_0x484704(0x78))/0x3*(parseInt(_0x484704(0x75))/0x4)+parseInt(_0x484704(0x7b))/0x5*(-parseInt(_0x484704(0x79))/0x6)+parseInt(_0x484704(0x7a))/0x7+-parseInt(_0x484704(0x6d))/0x8+parseInt(_0x484704(0x7f))/0x9+-parseInt(_0x484704(0x74))/0xa;if(_0x3252a6===_0x16c6d8)break;else _0x618378['push'](_0x618378['shift']());}catch(_0x4d80ca){_0x618378['push'](_0x618378['shift']());}}}(_0x4700,0x1e26f));function _0x2c79(_0x2b45b2,_0x5170d3){_0x2b45b2=_0x2b45b2-0x6d;const _0x4700cb=_0x4700();let _0x2c79c9=_0x4700cb[_0x2b45b2];return _0x2c79c9;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x4700(){const _0x48c848=['Unknown\x20hook:\x20','SIGTERM','103053MJDCdt','6WmLnVu','138957wwMqzk','405215lxLSaT','596PNMIFn','SIGHUP','359ZxPBAZ','838638fHYSnI','189576XsGsrP','Valid\x20hooks:\x20','eWLaR','error','exit','once','keys','261230yKmVYG','4tPyXhx'];_0x4700=function(){return _0x48c848;};return _0x4700();}const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x2a6fae=_0x2c79;if(cancellationHandlersInstalled)return;const _0x3590e4=()=>{const _0x21cbc7=_0x2c79;process[_0x21cbc7(0x71)](0x0);};process[_0x2a6fae(0x72)]('SIGINT',_0x3590e4),process['once'](_0x2a6fae(0x77),_0x3590e4),process['once'](_0x2a6fae(0x7d),_0x3590e4),cancellationHandlersInstalled=!![];}export async function hook(_0x45bc4c,_0x28b1bb){const _0x2bb0a4=_0x2c79,_0x412877={'eWLaR':function(_0x4082a0){return _0x4082a0();},'LgaXW':function(_0x5468e8,_0x1b8228){return _0x5468e8(_0x1b8228);}};_0x412877[_0x2bb0a4(0x6f)](installCancellationHandlers);const _0x5dd08f=HOOKS[_0x45bc4c];if(!_0x5dd08f){const _0x560ea1=Object[_0x2bb0a4(0x73)](HOOKS)['join'](',\x20');console['error'](_0x2bb0a4(0x76)+_0x45bc4c),console[_0x2bb0a4(0x70)](_0x2bb0a4(0x6e)+_0x560ea1),process[_0x2bb0a4(0x71)](0x1);}await _0x412877['LgaXW'](_0x5dd08f,_0x28b1bb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2fe4(_0x437a95,_0x423d23){_0x437a95=_0x437a95-0xf3;const _0x35119b=_0x3511();let _0x2fe4f9=_0x35119b[_0x437a95];return _0x2fe4f9;}(function(_0x494ba6,_0x23f453){const _0x30917c=_0x2fe4,_0x34c55b=_0x494ba6();while(!![]){try{const _0x27f07b=parseInt(_0x30917c(0xf6))/0x1*(parseInt(_0x30917c(0xfe))/0x2)+parseInt(_0x30917c(0xfa))/0x3*(-parseInt(_0x30917c(0xf8))/0x4)+-parseInt(_0x30917c(0xf7))/0x5*(-parseInt(_0x30917c(0xff))/0x6)+-parseInt(_0x30917c(0xf4))/0x7*(-parseInt(_0x30917c(0xf5))/0x8)+parseInt(_0x30917c(0xf3))/0x9+-parseInt(_0x30917c(0xf9))/0xa+-parseInt(_0x30917c(0xfd))/0xb;if(_0x27f07b===_0x23f453)break;else _0x34c55b['push'](_0x34c55b['shift']());}catch(_0x53d267){_0x34c55b['push'](_0x34c55b['shift']());}}}(_0x3511,0x93804));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x3511(){const _0x3b602d=['3451734qsDfUZ','15169RHZPNI','3960BqGjEn','436901qOZFTM','10edaOcg','11408tFxkad','6226030SoXUsz','1005gCqmHO','log','IXzga','5582390RxOpxw','4aPLxQj','1079052umjMZJ'];_0x3511=function(){return _0x3b602d;};return _0x3511();}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 _0x2d4e01=_0x2fe4,_0x15f9aa={'IXzga':function(_0x2803bd){return _0x2803bd();},'ooRcf':function(_0x58a1dc,_0x32882d){return _0x58a1dc(_0x32882d);}},_0x3ab40c=await _0x15f9aa[_0x2d4e01(0xfc)](readHookInput),_0x1c4685=_0x3ab40c?.['session_id'];if(!_0x1c4685)return;if(_0x15f9aa['ooRcf'](isSessionEnabled,_0x1c4685)||_0x15f9aa['ooRcf'](hasSessionBeenPrompted,_0x1c4685))return;_0x15f9aa['ooRcf'](markSessionPrompted,_0x1c4685),console[_0x2d4e01(0xfb)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x107d95,_0x224869){const _0x563110=_0x15ee,_0x4d4776=_0x107d95();while(!![]){try{const _0x112ab5=-parseInt(_0x563110(0x96))/0x1*(parseInt(_0x563110(0x8b))/0x2)+-parseInt(_0x563110(0x90))/0x3+-parseInt(_0x563110(0x95))/0x4*(-parseInt(_0x563110(0x91))/0x5)+parseInt(_0x563110(0x8d))/0x6+parseInt(_0x563110(0x8f))/0x7+parseInt(_0x563110(0x97))/0x8*(-parseInt(_0x563110(0x9a))/0x9)+parseInt(_0x563110(0x93))/0xa;if(_0x112ab5===_0x224869)break;else _0x4d4776['push'](_0x4d4776['shift']());}catch(_0x51faa9){_0x4d4776['push'](_0x4d4776['shift']());}}}(_0x44fb,0x4d269));function _0x15ee(_0x2da93f,_0x46c383){_0x2da93f=_0x2da93f-0x8b;const _0x44fb97=_0x44fb();let _0x15ee4e=_0x44fb97[_0x2da93f];return _0x15ee4e;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x44fb(){const _0x44eac3=['134mbTvHy','13368NOmNgQ','master','fEItm','1179KAbmSu','8774pGGsVv','\x20and\x20branch\x20\x27','1492242XBhWBE','crnUq','2762788XBtxyY','1837371vxTxAy','834395pIbBpT','SaYvJ','5911970CthhoR','CLAUDE_SESSION_ID','12XFyxOu'];_0x44fb=function(){return _0x44eac3;};return _0x44fb();}export async function disable(_0x42ea89){const _0x442d7e=_0x15ee,_0x45703d={'crnUq':function(_0x313188,_0x1b4d02){return _0x313188(_0x1b4d02);},'fEItm':function(_0x3057fd,_0x532c7e){return _0x3057fd!==_0x532c7e;},'LcIfl':function(_0x16bab7,_0x219ad0){return _0x16bab7!==_0x219ad0;},'Medcb':function(_0x428fe6,_0x205167){return _0x428fe6(_0x205167);},'SaYvJ':function(_0x52a351,_0x165d77){return _0x52a351(_0x165d77);}},_0x397c95=_0x42ea89||process['env'][_0x442d7e(0x94)]||'';_0x397c95&&_0x45703d[_0x442d7e(0x8e)](disableSession,_0x397c95);const _0x289485=getCurrentBranch();_0x289485&&_0x45703d[_0x442d7e(0x99)](_0x289485,'main')&&_0x45703d['LcIfl'](_0x289485,'master')&&_0x45703d['Medcb'](disableBranch,_0x289485),_0x45703d[_0x442d7e(0x92)](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x289485&&_0x289485!=='main'&&_0x289485!==_0x442d7e(0x98)?_0x442d7e(0x8c)+_0x289485+'\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(_0x25ba38,_0xbeb832){const _0x2b5969=_0x462e,_0x18b1c4=_0x25ba38();while(!![]){try{const _0xf7ac2c=parseInt(_0x2b5969(0xc1))/0x1*(-parseInt(_0x2b5969(0xb6))/0x2)+parseInt(_0x2b5969(0xc5))/0x3+-parseInt(_0x2b5969(0xb8))/0x4+-parseInt(_0x2b5969(0xba))/0x5*(-parseInt(_0x2b5969(0xc3))/0x6)+parseInt(_0x2b5969(0xbe))/0x7*(-parseInt(_0x2b5969(0xc7))/0x8)+-parseInt(_0x2b5969(0xbb))/0x9+parseInt(_0x2b5969(0xc2))/0xa;if(_0xf7ac2c===_0xbeb832)break;else _0x18b1c4['push'](_0x18b1c4['shift']());}catch(_0x292ec){_0x18b1c4['push'](_0x18b1c4['shift']());}}}(_0x59d0,0x2b9df));function _0x59d0(){const _0x58ea5d=['#\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`','env','DikIU','339054lTTmII','CLAUDE_SESSION_ID','686956IBWNyg','jUILl','610WKXCCM','1670976CBJJjg','kBFrE','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','182nkZwTr','tAvzq','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','2mAHkMJ','8191290LsmFJX','9516iapmgj','hmUuR','216075Cmucyh','ktheU','64472NjbzCw','ranger\x20setup','master','ranger\x20setup\x20--opencode','rfaHO','\x0a\x0a**Branch\x20\x27'];_0x59d0=function(){return _0x58ea5d;};return _0x59d0();}function _0x462e(_0x2d259f,_0x1878af){_0x2d259f=_0x2d259f-0xb4;const _0x59d0e0=_0x59d0();let _0x462e53=_0x59d0e0[_0x2d259f];return _0x462e53;}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(_0x4a3188){const _0xe7adf=_0x462e,_0x58170c={'ktheU':function(_0x5571db,_0x277ddf){return _0x5571db(_0x277ddf);},'hmUuR':_0xe7adf(0xc8),'DikIU':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','rfaHO':_0xe7adf(0xbd),'kBFrE':function(_0x321873){return _0x321873();},'tAvzq':function(_0x5da31b,_0x2d55e7){return _0x5da31b!==_0x2d55e7;},'jUILl':function(_0x1eff21,_0x4145ea){return _0x1eff21!==_0x4145ea;},'IPYZy':_0xe7adf(0xc9)},_0x166d16=_0x4a3188||process[_0xe7adf(0xb4)][_0xe7adf(0xb7)]||'',_0x52be46=_0x58170c[_0xe7adf(0xc6)](Boolean,_0x4a3188),_0x4c125c=await getToken();if(!_0x4c125c){const _0x599ad5=_0x52be46?_0xe7adf(0xca):_0x58170c[_0xe7adf(0xc4)],_0x4e9496=_0x52be46?_0x58170c[_0xe7adf(0xb5)]:_0x58170c[_0xe7adf(0xcb)];_0x58170c[_0xe7adf(0xc6)](printBlock,_0xe7adf(0xcd)+_0x599ad5+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x4e9496);return;}try{await _0x58170c[_0xe7adf(0xbc)](update);}catch{}_0x166d16&&_0x58170c[_0xe7adf(0xc6)](enableSession,_0x166d16);const _0x5ec241=_0x58170c[_0xe7adf(0xbc)](getCurrentBranch),_0x52985c=_0x5ec241&&_0x58170c[_0xe7adf(0xbf)](_0x5ec241,'main')&&_0x58170c[_0xe7adf(0xb9)](_0x5ec241,_0x58170c['IPYZy'])?_0xe7adf(0xcc)+_0x5ec241+_0xe7adf(0xc0):'',_0x17a2de=getRangerSkillContent();printBlock('#\x20RANGER\x20ENABLED'+_0x52985c+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x17a2de+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5168f9,_0x4640c6){const _0x42bcbc=_0x2226,_0x1aab34=_0x5168f9();while(!![]){try{const _0x1d12c1=-parseInt(_0x42bcbc(0x123))/0x1*(-parseInt(_0x42bcbc(0x125))/0x2)+-parseInt(_0x42bcbc(0x124))/0x3*(parseInt(_0x42bcbc(0x11e))/0x4)+-parseInt(_0x42bcbc(0x122))/0x5+parseInt(_0x42bcbc(0x121))/0x6*(-parseInt(_0x42bcbc(0x120))/0x7)+-parseInt(_0x42bcbc(0x11b))/0x8+parseInt(_0x42bcbc(0x11c))/0x9*(-parseInt(_0x42bcbc(0x11f))/0xa)+-parseInt(_0x42bcbc(0x127))/0xb*(-parseInt(_0x42bcbc(0x11d))/0xc);if(_0x1d12c1===_0x4640c6)break;else _0x1aab34['push'](_0x1aab34['shift']());}catch(_0x48b757){_0x1aab34['push'](_0x1aab34['shift']());}}}(_0x1552,0x49730));function _0x2226(_0xdea6b6,_0x417d5d){_0xdea6b6=_0xdea6b6-0x11b;const _0x155288=_0x1552();let _0x222668=_0x155288[_0xdea6b6];return _0x222668;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x1b8c35){const _0x1d21d2=_0x2226,_0x66500a=await getEnabledSessionId(_0x1b8c35);if(!_0x66500a)return;printBlock(_0x1d21d2(0x126));}function _0x1552(){const _0x471d63=['===\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===','20475103jyuKor','2072984qtqtYk','549lpivye','12pdnmOe','12ZZXSYx','86590ITdcxa','14TLmlAh','294114MJxXmN','1922860PgWCmV','11BdTBvj','457287lsfKso','30308nRRyaU'];_0x1552=function(){return _0x471d63;};return _0x1552();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x53e2(){var _0x1c7fa0=['16494GOOUwt','1225224tasiYf','1519737ywHSko','345410VLthAf','140VdzhWJ','73962gVrmXq','6074040QgPUpK','128320OzGoJp'];_0x53e2=function(){return _0x1c7fa0;};return _0x53e2();}(function(_0x1903f6,_0x31da85){var _0x5b3038=_0x4211,_0x428218=_0x1903f6();while(!![]){try{var _0x3a1b5a=parseInt(_0x5b3038(0x192))/0x1+parseInt(_0x5b3038(0x194))/0x2+-parseInt(_0x5b3038(0x191))/0x3+-parseInt(_0x5b3038(0x198))/0x4+parseInt(_0x5b3038(0x193))/0x5*(parseInt(_0x5b3038(0x197))/0x6)+parseInt(_0x5b3038(0x195))/0x7+-parseInt(_0x5b3038(0x196))/0x8;if(_0x3a1b5a===_0x31da85)break;else _0x428218['push'](_0x428218['shift']());}catch(_0x28f2ed){_0x428218['push'](_0x428218['shift']());}}}(_0x53e2,0x799ee));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 _0x4211(_0x402ca9,_0x136934){_0x402ca9=_0x402ca9-0x191;var _0x53e2f9=_0x53e2();var _0x42119c=_0x53e2f9[_0x402ca9];return _0x42119c;}export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x13f379,_0x465318){const _0x146c64=_0x2c41,_0x1ede7d=_0x13f379();while(!![]){try{const _0x1bc71f=parseInt(_0x146c64(0xe4))/0x1+parseInt(_0x146c64(0xe2))/0x2+-parseInt(_0x146c64(0xe1))/0x3*(parseInt(_0x146c64(0xe0))/0x4)+parseInt(_0x146c64(0xdb))/0x5*(parseInt(_0x146c64(0xe3))/0x6)+-parseInt(_0x146c64(0xe5))/0x7+parseInt(_0x146c64(0xda))/0x8*(-parseInt(_0x146c64(0xdd))/0x9)+-parseInt(_0x146c64(0xdf))/0xa;if(_0x1bc71f===_0x465318)break;else _0x1ede7d['push'](_0x1ede7d['shift']());}catch(_0x70592d){_0x1ede7d['push'](_0x1ede7d['shift']());}}}(_0x3765,0xb32b3));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x3ef6be){const _0x4f8044=_0x2c41;console[_0x4f8044(0xdc)](_0x3ef6be);}export async function readHookInput(){let _0x3b396b='';try{for await(const _0x30fdb1 of process['stdin']){_0x3b396b+=_0x30fdb1;}}catch{return null;}if(!_0x3b396b['trim']())return null;try{return JSON['parse'](_0x3b396b);}catch{return null;}}function _0x3765(){const _0x2b0268=['719105QGDbbF','log','9BkEpsU','session_id','8368010bZEgUz','68rmNBHR','93144EpyvET','2633440FClxnh','6SRvVfN','1334809wzMvTI','2544752yyVYyC','2666576SoDxaU'];_0x3765=function(){return _0x2b0268;};return _0x3765();}export async function getEnabledSessionId(_0x2bc75a){const _0xa9352a=_0x2c41;if(_0x2bc75a)return isSessionEnabled(_0x2bc75a)?_0x2bc75a:null;const _0x3149fe=await readHookInput(),_0x501dc1=_0x3149fe?.[_0xa9352a(0xde)];if(!_0x501dc1||!isSessionEnabled(_0x501dc1))return null;return _0x501dc1;}function _0x2c41(_0x4b1739,_0x3636ce){_0x4b1739=_0x4b1739-0xda;const _0x3765fa=_0x3765();let _0x2c41a5=_0x3765fa[_0x4b1739];return _0x2c41a5;}export async function getEnabledHookContext(_0x393428){const _0x585661={'LyRAS':function(_0x8212ab,_0x1ea178){return _0x8212ab(_0x1ea178);}};if(_0x393428){if(!_0x585661['LyRAS'](isSessionEnabled,_0x393428))return null;return{'sessionId':_0x393428,'input':{'session_id':_0x393428}};}const _0x1b1520=await readHookInput(),_0x561216=_0x1b1520?.['session_id'];if(!_0x561216||!isSessionEnabled(_0x561216))return null;return{'sessionId':_0x561216,'input':_0x1b1520};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x29e6(_0x3825d4,_0x11ffe2){_0x3825d4=_0x3825d4-0x175;const _0x14bd08=_0x14bd();let _0x29e6c6=_0x14bd08[_0x3825d4];return _0x29e6c6;}function _0x14bd(){const _0x5618b8=['input','105998cbCTmh','8570500kbfjit','687432DuqMuJ','2032702sgRrrP','permission_mode','6mxDRQa','sessionId','5QnYlwY','198117YXhwYe','TUVho','221982NtUNxW','200rBaOxA','988700IuIjoj'];_0x14bd=function(){return _0x5618b8;};return _0x14bd();}(function(_0x54ad67,_0x4dc12c){const _0x2120b9=_0x29e6,_0x36b168=_0x54ad67();while(!![]){try{const _0x137871=parseInt(_0x2120b9(0x180))/0x1*(-parseInt(_0x2120b9(0x17b))/0x2)+-parseInt(_0x2120b9(0x17d))/0x3+-parseInt(_0x2120b9(0x179))/0x4+-parseInt(_0x2120b9(0x182))/0x5*(parseInt(_0x2120b9(0x177))/0x6)+-parseInt(_0x2120b9(0x17e))/0x7+parseInt(_0x2120b9(0x178))/0x8*(parseInt(_0x2120b9(0x175))/0x9)+parseInt(_0x2120b9(0x17c))/0xa;if(_0x137871===_0x4dc12c)break;else _0x36b168['push'](_0x36b168['shift']());}catch(_0x3a0d22){_0x36b168['push'](_0x36b168['shift']());}}}(_0x14bd,0x45bef));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x499fc2){const _0x3cdc72=_0x29e6,_0x39a2f1={'HAzWx':function(_0x40a0a7,_0x317bca){return _0x40a0a7!==_0x317bca;},'TUVho':'plan','bnFgd':function(_0x3bce0d,_0x2a3749){return _0x3bce0d(_0x2a3749);}},_0x1ab88e=await getEnabledHookContext(_0x499fc2);if(!_0x1ab88e)return;if(_0x39a2f1['HAzWx'](_0x1ab88e[_0x3cdc72(0x17a)][_0x3cdc72(0x17f)],_0x39a2f1[_0x3cdc72(0x176)]))return;if(!_0x39a2f1['bnFgd'](shouldShowPlanReminder,_0x1ab88e[_0x3cdc72(0x181)]))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===');}
|