@ranger-testing/ranger-cli 2.5.4-alpha.78800d3-3 → 2.5.4-alpha.a70fc60-4
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 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x17b6(_0x2716a6,_0x26e4aa){_0x2716a6=_0x2716a6-0x18a;const _0x108db0=_0x108d();let _0x17b6f0=_0x108db0[_0x2716a6];return _0x17b6f0;}(function(_0xb3523,_0x2a41d5){const _0x2056f3=_0x17b6,_0x2d421a=_0xb3523();while(!![]){try{const _0x4aca13=parseInt(_0x2056f3(0x193))/0x1*(parseInt(_0x2056f3(0x19b))/0x2)+-parseInt(_0x2056f3(0x19c))/0x3*(parseInt(_0x2056f3(0x18b))/0x4)+parseInt(_0x2056f3(0x19d))/0x5+parseInt(_0x2056f3(0x197))/0x6*(parseInt(_0x2056f3(0x194))/0x7)+-parseInt(_0x2056f3(0x18c))/0x8+parseInt(_0x2056f3(0x18d))/0x9*(parseInt(_0x2056f3(0x18f))/0xa)+-parseInt(_0x2056f3(0x192))/0xb;if(_0x4aca13===_0x2a41d5)break;else _0x2d421a['push'](_0x2d421a['shift']());}catch(_0x80de34){_0x2d421a['push'](_0x2d421a['shift']());}}}(_0x108d,0x884b1));import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x108d(){const _0x2b7900=['.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','2286oJRcFu','TvNjw','TLdHr','utf-8','199294InHUoE','1233219gedGyO','1973075bAafhG','auth.json','4ZUxEbd','8513672KbEQRf','9UYOiVO','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','9234530HwLCIC','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','5825787sMcUhG','11TkyiNP','2737BmjHoZ','log'];_0x108d=function(){return _0x2b7900;};return _0x108d();}export async function authEncrypt(_0x2a5ea0){const _0x1a05ab=_0x17b6,_0x3898eb={'TvNjw':function(_0x5b6fb0,_0xbb8caa,_0x1b3e04){return _0x5b6fb0(_0xbb8caa,_0x1b3e04);},'XyBNq':_0x1a05ab(0x18a),'TLdHr':function(_0x585275,_0x402048){return _0x585275(_0x402048);},'SOWPk':_0x1a05ab(0x18e),'YCsAM':function(_0x114bf9,_0x54fcd5){return _0x114bf9(_0x54fcd5);}},_0x432770=getEnvDir(_0x2a5ea0),_0x54ae9c=_0x3898eb[_0x1a05ab(0x198)](join,_0x432770,_0x3898eb['XyBNq']),_0x19628a=_0x54ae9c+'.enc';if(!existsSync(_0x432770))throw new Error('Profile\x20\x22'+_0x2a5ea0+_0x1a05ab(0x191)+_0x2a5ea0);if(!_0x3898eb[_0x1a05ab(0x199)](existsSync,_0x54ae9c))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x54ae9c+_0x1a05ab(0x196));const _0x3d0785=await getToken();if(!_0x3d0785)throw new Error(_0x1a05ab(0x190));const _0x46111d=await _0x3898eb['TvNjw'](readFile,_0x54ae9c,_0x1a05ab(0x19a)),_0xbb2e75=encrypt(_0x46111d,_0x3d0785);await writeFile(_0x19628a,_0xbb2e75),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x19628a),console[_0x1a05ab(0x195)]('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x1a05ab(0x195)](_0x3898eb['SOWPk']),_0x3898eb['YCsAM'](existsSync,_0x19628a)&&(console['log']('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x249cc1=_0x56d7;(function(_0x5740ad,_0x382294){const _0x133dc0=_0x56d7,_0x351552=_0x5740ad();while(!![]){try{const _0xbfd404=parseInt(_0x133dc0(0x1f0))/0x1*(parseInt(_0x133dc0(0x1ff))/0x2)+-parseInt(_0x133dc0(0x20e))/0x3+parseInt(_0x133dc0(0x1e2))/0x4+-parseInt(_0x133dc0(0x1f7))/0x5+parseInt(_0x133dc0(0x1de))/0x6+parseInt(_0x133dc0(0x1dc))/0x7*(parseInt(_0x133dc0(0x205))/0x8)+-parseInt(_0x133dc0(0x1f5))/0x9;if(_0xbfd404===_0x382294)break;else _0x351552['push'](_0x351552['shift']());}catch(_0xb0a315){_0x351552['push'](_0x351552['shift']());}}}(_0xb793,0x9435c));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';function _0x56d7(_0x66205e,_0xb9d310){_0x66205e=_0x66205e-0x1d7;const _0xb793dc=_0xb793();let _0x56d76c=_0xb793dc[_0x66205e];return _0x56d76c;}import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x249cc1(0x1fe),_0x249cc1(0x207),'bug-bash',_0x249cc1(0x1e5)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x2e1263){const _0x2b49ea=_0x249cc1,_0xb7fd46=_0x2e1263[_0x2b49ea(0x1f3)](/\/\*[\s\S]*?\*\//g,''),_0x3b937b=_0xb7fd46[_0x2b49ea(0x1f3)](/^\s*\/\/.*$/gm,''),_0x176ea6=_0x3b937b['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x176ea6);}async function removeOpencodePluginConfig(_0x4b91f7){const _0x1ebc36=_0x249cc1,_0xe0119d={'SqScJ':function(_0x2666ea,_0x262d4b){return _0x2666ea(_0x262d4b);},'GpSns':function(_0x374d7c,_0x2a836e,_0x25715b){return _0x374d7c(_0x2a836e,_0x25715b);},'ejTJQ':function(_0xaf65ff,_0x538568){return _0xaf65ff===_0x538568;}};if(!_0xe0119d[_0x1ebc36(0x1db)](existsSync,_0x4b91f7))return![];let _0x43d091;try{const _0x24c631=await _0xe0119d[_0x1ebc36(0x204)](readFile,_0x4b91f7,_0x1ebc36(0x1ee));_0x43d091=parseJsonc(_0x24c631);}catch{return![];}const _0x28801a=Array['isArray'](_0x43d091['plugin'])?_0x43d091[_0x1ebc36(0x1d8)]:[];if(_0xe0119d['ejTJQ'](_0x28801a[_0x1ebc36(0x1e8)],0x0))return![];const _0x45dffc=_0x28801a['filter'](_0x29d203=>{if(typeof _0x29d203!=='string')return!![];return _0x29d203!==opencodePluginName;});if(_0x45dffc['length']===_0x28801a[_0x1ebc36(0x1e8)])return![];return _0x45dffc['length']===0x0?delete _0x43d091[_0x1ebc36(0x1d8)]:_0x43d091['plugin']=_0x45dffc,await writeFile(_0x4b91f7,JSON[_0x1ebc36(0x1d9)](_0x43d091,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x33613b){const _0x50c74b=_0x249cc1,_0x3fbf5c={'SavWC':function(_0x57681b,_0x131525){return _0x57681b===_0x131525;},'EJxwH':function(_0x38c7db,_0x26cb05){return _0x38c7db(_0x26cb05);},'TqbNd':'plugin','VDZbL':'--scope','fwatL':function(_0x389395,_0x4b4d37,_0x2b9239,_0x1d7ca4){return _0x389395(_0x4b4d37,_0x2b9239,_0x1d7ca4);},'whYLM':_0x50c74b(0x1fc),'SkgBL':_0x50c74b(0x202)};return new Promise(_0x5318a8=>{const _0x1a1e97=_0x50c74b,_0x2fabd7=[_0x3fbf5c['TqbNd'],_0x1a1e97(0x208),'ranger@trailhead'];_0x33613b&&_0x2fabd7[_0x1a1e97(0x1ed)](_0x3fbf5c[_0x1a1e97(0x1dd)],_0x33613b);const _0x515938=_0x3fbf5c['fwatL'](spawn,'claude',_0x2fabd7,{'stdio':_0x3fbf5c['whYLM'],'shell':process[_0x1a1e97(0x1ef)]===_0x1a1e97(0x1ec)});_0x515938['on'](_0x3fbf5c['SkgBL'],_0x1e7cb2=>{_0x5318a8(_0x3fbf5c['SavWC'](_0x1e7cb2,0x0));}),_0x515938['on'](_0x1a1e97(0x1e4),()=>{const _0x2f5b4a=_0x1a1e97;_0x3fbf5c[_0x2f5b4a(0x20a)](_0x5318a8,![]);});});}async function removeMarketplace(){const _0x5af955=_0x249cc1,_0x1bbff9={'QLTDE':function(_0x5b173a,_0x17fc02){return _0x5b173a(_0x17fc02);},'KiIcS':function(_0x3ec9ff,_0x3784da,_0x1756be,_0x4da686){return _0x3ec9ff(_0x3784da,_0x1756be,_0x4da686);},'jCvNR':'claude','rdufh':_0x5af955(0x1d8),'RQrZK':_0x5af955(0x1fa),'bXMmu':_0x5af955(0x202),'fvdWq':'error'};return new Promise(_0x30f547=>{const _0x482143=_0x5af955,_0x1d8f8b=_0x1bbff9['KiIcS'](spawn,_0x1bbff9['jCvNR'],[_0x1bbff9[_0x482143(0x200)],_0x482143(0x1e1),'remove',_0x1bbff9[_0x482143(0x1e3)]],{'stdio':_0x482143(0x1fc),'shell':process['platform']==='win32'});_0x1d8f8b['on'](_0x1bbff9[_0x482143(0x203)],_0x40c9eb=>{const _0x28ba19=_0x482143;_0x1bbff9[_0x28ba19(0x1df)](_0x30f547,_0x40c9eb===0x0);}),_0x1d8f8b['on'](_0x1bbff9[_0x482143(0x210)],()=>{_0x30f547(![]);});});}function _0xb793(){const _0x1e5102=['odqvj','length','brxtB','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','HoHaP','win32','push','utf-8','platform','1xUVNwK','mHUPK','✓\x20Removed\x20.ranger/\x20directory','replace','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','3389220YGzZVY','bicth','1878285PmpWJY','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','trailhead','DMhmA','pipe','XdDiE','ranger','322226JbjVmL','rdufh','project','close','bXMmu','GpSns','96PfgkKd','ivCOp','feature-tracker','uninstall','VVasK','EJxwH','rHbrt','✓\x20Removed\x20user\x20skill:\x20','\x0a✅\x20Cleanup\x20complete!\x0a','1823733BbuBQA','✓\x20Removed\x20trailhead\x20marketplace','fvdWq','opencode.json','✓\x20Removed\x20project\x20skill:\x20','user','plugin','stringify','log','SqScJ','535927ItnFYd','VDZbL','537348gmJYGl','QLTDE','fnCMf','marketplace','3191252lHxNJr','RQrZK','error','e2e-test-recommender','✓\x20Removed\x20stored\x20credentials'];_0xb793=function(){return _0x1e5102;};return _0xb793();}export async function clean(){const _0x127743=_0x249cc1,_0x370f19={'OlOPl':_0x127743(0x1f9),'mHUPK':function(_0xb8e0b5){return _0xb8e0b5();},'HHjnq':function(_0x5dbbea,_0x13a405){return _0x5dbbea(_0x13a405);},'VVasK':function(_0x333411,_0x142089){return _0x333411(_0x142089);},'brxtB':function(_0x21a20a,_0x13d29e,_0x4cad02){return _0x21a20a(_0x13d29e,_0x4cad02);},'fnCMf':function(_0x537fe0,_0x39a8df,_0x4cf3bb){return _0x537fe0(_0x39a8df,_0x4cf3bb);},'HrgRW':function(_0x4766fd,_0xb259cc){return _0x4766fd(_0xb259cc);},'HoHaP':function(_0x34d4c5,_0x2e5362,_0x2593da){return _0x34d4c5(_0x2e5362,_0x2593da);},'UmkbX':function(_0x196d03,_0x2cc86b,_0xd375ba){return _0x196d03(_0x2cc86b,_0xd375ba);},'DMhmA':function(_0x32c80d,_0x475cf2,_0xaaf82d){return _0x32c80d(_0x475cf2,_0xaaf82d);},'rHbrt':function(_0xf0ff50,_0x5654f7){return _0xf0ff50(_0x5654f7);},'sSrcY':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','XdDiE':'user','ivCOp':_0x127743(0x1f4),'RsVeW':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','odqvj':function(_0x2f2865){return _0x2f2865();},'bicth':_0x127743(0x20f)};console[_0x127743(0x1da)](_0x370f19['OlOPl']);let _0x22e0c9=![];try{await _0x370f19['mHUPK'](deleteAllCredentials),console[_0x127743(0x1da)](_0x127743(0x1e6)),_0x22e0c9=!![];}catch{}const _0x36e33b=_0x370f19[_0x127743(0x1f1)](getCacheFile);_0x370f19['HHjnq'](existsSync,_0x36e33b)&&(await _0x370f19[_0x127743(0x209)](rm,_0x36e33b),_0x22e0c9=!![]);const _0x12de9d=getRangerDir();existsSync(_0x12de9d)&&(await _0x370f19['brxtB'](rm,_0x12de9d,{'recursive':!![]}),console[_0x127743(0x1da)](_0x127743(0x1f2)),_0x22e0c9=!![]);const _0x3d5630=_0x370f19['mHUPK'](getProjectSkillsDir);for(const _0x16e267 of skillsToRemove){const _0x101307=join(_0x3d5630,_0x16e267);existsSync(_0x101307)&&(await _0x370f19[_0x127743(0x1e9)](rm,_0x101307,{'recursive':!![]}),console['log'](_0x127743(0x212)+_0x16e267),_0x22e0c9=!![]);}const _0x17e8f4=_0x370f19[_0x127743(0x1f1)](getUserSkillsDir);for(const _0x619cd of skillsToRemove){const _0x58158a=_0x370f19[_0x127743(0x1e0)](join,_0x17e8f4,_0x619cd);existsSync(_0x58158a)&&(await _0x370f19['brxtB'](rm,_0x58158a,{'recursive':!![]}),console['log'](_0x127743(0x20c)+_0x619cd),_0x22e0c9=!![]);}const _0x5b2048=_0x370f19['HrgRW'](getOpencodeSkillsDir,_0x127743(0x201));for(const _0x165231 of skillsToRemove){const _0x1dcf2a=_0x370f19[_0x127743(0x1eb)](join,_0x5b2048,_0x165231);existsSync(_0x1dcf2a)&&(await _0x370f19['UmkbX'](rm,_0x1dcf2a,{'recursive':!![]}),console[_0x127743(0x1da)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x165231),_0x22e0c9=!![]);}const _0x1c0f69=getOpencodeSkillsDir(_0x127743(0x1d7));for(const _0x2c5703 of skillsToRemove){const _0xc3ee17=_0x370f19[_0x127743(0x1e9)](join,_0x1c0f69,_0x2c5703);existsSync(_0xc3ee17)&&(await _0x370f19[_0x127743(0x1fb)](rm,_0xc3ee17,{'recursive':!![]}),console[_0x127743(0x1da)](_0x127743(0x1f8)+_0x2c5703),_0x22e0c9=!![]);}const _0x37eb63=join(getOpencodeConfigDir('project'),_0x127743(0x211));await _0x370f19[_0x127743(0x20b)](removeOpencodePluginConfig,_0x37eb63)&&(console[_0x127743(0x1da)](_0x370f19['sSrcY']),_0x22e0c9=!![]);const _0x481901=join(getOpencodeConfigDir(_0x370f19[_0x127743(0x1fd)]),_0x127743(0x211));await removeOpencodePluginConfig(_0x481901)&&(console[_0x127743(0x1da)](_0x370f19[_0x127743(0x206)]),_0x22e0c9=!![]);const _0x1e1ec9=await uninstallClaudePlugin();_0x1e1ec9&&(console['log'](_0x370f19['RsVeW']),_0x22e0c9=!![]);const _0x5b5a41=await uninstallClaudePlugin('project');_0x5b5a41&&(console['log'](_0x127743(0x1ea)),_0x22e0c9=!![]);const _0x301b2e=await _0x370f19[_0x127743(0x1e7)](removeMarketplace);_0x301b2e&&(console[_0x127743(0x1da)](_0x370f19[_0x127743(0x1f6)]),_0x22e0c9=!![]),_0x22e0c9?console[_0x127743(0x1da)](_0x127743(0x20d)):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}
|
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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.');}
|
|
1
|
+
const _0x31d297=_0x43b2;(function(_0x5367d7,_0x4809ae){const _0x1ada3d=_0x43b2,_0x177f83=_0x5367d7();while(!![]){try{const _0x251c35=-parseInt(_0x1ada3d(0xb0))/0x1+parseInt(_0x1ada3d(0xc1))/0x2+parseInt(_0x1ada3d(0xb4))/0x3+-parseInt(_0x1ada3d(0x9e))/0x4+parseInt(_0x1ada3d(0xb1))/0x5*(-parseInt(_0x1ada3d(0xbb))/0x6)+parseInt(_0x1ada3d(0x9f))/0x7*(-parseInt(_0x1ada3d(0xc5))/0x8)+parseInt(_0x1ada3d(0xa8))/0x9;if(_0x251c35===_0x4809ae)break;else _0x177f83['push'](_0x177f83['shift']());}catch(_0x236ea8){_0x177f83['push'](_0x177f83['shift']());}}}(_0x1e78,0xcc00b));import{existsSync}from'fs';function _0x1e78(){const _0xa77e4c=['854618HKRCiJ','175zEoOTe','kuwBZ','EUcOS','3531468hyBABk','wqWqR','cGhnM','isNaN','WElqQ','log','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','62838WWyAnh','Invalid\x20value\x20for\x20','keys','test','OgxFV','fZTUG','692070IQCMmt','Fyvur','headless','endsWith','645896uXnYIo','\x20for\x20\x22','No\x20configuration\x20set\x20for\x20\x22','allowInsecureLocalhost','Hfpfp','BLuMJ','Cleared\x20local\x20overrides\x20for\x20\x22','trim','LObfw','cloud','alsoExistsElsewhere','1805632jcMbTp','105freWrj','local','true','kind','startsWith','settings','object','stringify','uOmYQ','19764360RegMUl','fbAwk','parse','(not\x20set)','\x20\x20Note:\x20\x22','Removed\x20','\x20=\x20','FSuNJ'];_0x1e78=function(){return _0xa77e4c;};return _0x1e78();}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=[_0x31d297(0xc3),_0x31d297(0xc8)];function parseLocalValue(_0x190094,_0x1abed6){const _0x4a46ee=_0x31d297,_0x1c4535={'VYovc':function(_0x362399,_0x1f9f9a){return _0x362399===_0x1f9f9a;},'BLuMJ':_0x4a46ee(0xa1),'wqWqR':function(_0x284b5c,_0x5ceaeb){return _0x284b5c===_0x5ceaeb;},'WvGHr':'false'};if(BOOLEAN_KEYS['includes'](_0x190094)){if(_0x1c4535['VYovc'](_0x1abed6,_0x1c4535[_0x4a46ee(0xca)]))return!![];if(_0x1c4535[_0x4a46ee(0xb5)](_0x1abed6,_0x1c4535['WvGHr']))return![];throw new Error(_0x4a46ee(0xbc)+_0x190094+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x1abed6;}function parseOverrideValue(_0x23078f){const _0x1e6be6=_0x31d297,_0x6032ad={'kuwBZ':function(_0x343e62,_0x21e8e0){return _0x343e62===_0x21e8e0;},'iHDod':'false','kXVfa':'null','ijvdN':function(_0x4eabac,_0xc4b9ae){return _0x4eabac===_0xc4b9ae;},'XwUQW':'undefined','uLcgd':function(_0x5886ed,_0x5a1cac){return _0x5886ed(_0x5a1cac);},'iQAUg':function(_0x56bd16,_0x2d0eb0){return _0x56bd16(_0x2d0eb0);}};if(_0x6032ad[_0x1e6be6(0xb2)](_0x23078f,'true'))return!![];if(_0x23078f===_0x6032ad['iHDod'])return![];if(_0x6032ad[_0x1e6be6(0xb2)](_0x23078f,_0x6032ad['kXVfa']))return null;if(_0x6032ad['ijvdN'](_0x23078f,_0x6032ad['XwUQW']))return undefined;if(/^-?\d+$/['test'](_0x23078f)){const _0x188f70=_0x6032ad['uLcgd'](Number,_0x23078f);if(Number['isSafeInteger'](_0x188f70))return _0x188f70;}if(/^-?\d+\.\d+$/[_0x1e6be6(0xbe)](_0x23078f)){const _0x45a022=_0x6032ad['iQAUg'](Number,_0x23078f);if(!Number[_0x1e6be6(0xb7)](_0x45a022))return _0x45a022;}const _0x1963e3=_0x23078f[_0x1e6be6(0xcc)]();if(_0x1963e3['startsWith']('{')&&_0x1963e3[_0x1e6be6(0xc4)]('}')||_0x1963e3[_0x1e6be6(0xa3)]('[')&&_0x1963e3[_0x1e6be6(0xc4)](']'))try{return JSON[_0x1e6be6(0xaa)](_0x1963e3);}catch{}return _0x23078f;}async function resolveProfileTarget(_0x33e501){const _0x39a6fd=_0x31d297,_0x4dda4c={'ICoxi':function(_0x3ae0bc,_0x5dc947){return _0x3ae0bc(_0x5dc947);},'Fyvur':function(_0x2e617a,_0x219d1a){return _0x2e617a(_0x219d1a);},'oZNut':function(_0x22796c,_0x59e7a0){return _0x22796c(_0x59e7a0);},'VhWZC':_0x39a6fd(0xa0)},_0x1e56e4=_0x4dda4c['ICoxi'](existsSync,_0x4dda4c[_0x39a6fd(0xc2)](getEnvDir,_0x33e501));let _0x5cdb07=![];try{const _0xfd4239=await fetchCloudProfile(_0x33e501);_0x5cdb07=_0x4dda4c['oZNut'](Boolean,_0xfd4239);}catch{}if(_0x5cdb07)return{'kind':'cloud','alsoExistsElsewhere':_0x1e56e4};if(_0x1e56e4)return{'kind':_0x4dda4c['VhWZC'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x33e501+_0x39a6fd(0xba)+_0x33e501);}function _0x43b2(_0x37da2e,_0x409a31){_0x37da2e=_0x37da2e-0x9e;const _0x1e7897=_0x1e78();let _0x43b2f2=_0x1e7897[_0x37da2e];return _0x43b2f2;}function printDualExistsHint(_0x409beb){const _0x92096b=_0x31d297;console['log'](_0x92096b(0xac)+_0x409beb+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x423e01){const _0x59b465=_0x31d297,_0x1b2256={'pNuQr':function(_0x1dfba6,_0x3fd712){return _0x1dfba6(_0x3fd712);},'fZTUG':function(_0x1d93a9,_0x36cf8a,_0x315b80){return _0x1d93a9(_0x36cf8a,_0x315b80);},'fbAwk':function(_0x4513b0){return _0x4513b0();}},_0x508618=await _0x1b2256['pNuQr'](fetchCloudProfile,_0x423e01),_0x6a6255=_0x1b2256[_0x59b465(0xc0)](readProfileOverrides,_0x1b2256[_0x59b465(0xa9)](getProjectPath),_0x423e01);return _0x1b2256['fZTUG'](mergeCloudProfileSettings,_0x508618?.[_0x59b465(0xa4)]??{},_0x6a6255??undefined);}export async function configSet(_0x5c8fa4,_0x20116b,_0x39fdce){const _0x35ad96=_0x31d297,_0x1bd163={'ouQaF':function(_0x2781c9,_0x302342){return _0x2781c9(_0x302342);},'UOxWC':'cloud','WElqQ':function(_0x54716e,_0x5170fc,_0x1b6f18,_0x39e7d7,_0x4e5851){return _0x54716e(_0x5170fc,_0x1b6f18,_0x39e7d7,_0x4e5851);},'OgxFV':function(_0x45042e){return _0x45042e();},'uOmYQ':function(_0x17776b,_0x2fdde7,_0xf06a6){return _0x17776b(_0x2fdde7,_0xf06a6);}},_0x2f94a4=await _0x1bd163['ouQaF'](resolveProfileTarget,_0x5c8fa4);if(_0x2f94a4['kind']===_0x1bd163['UOxWC']){if(_0x2f94a4[_0x35ad96(0xcf)])printDualExistsHint(_0x5c8fa4);const _0x6665c4=parseOverrideValue(_0x39fdce);_0x1bd163[_0x35ad96(0xb8)](setProfileOverride,_0x1bd163[_0x35ad96(0xbf)](getProjectPath),_0x5c8fa4,_0x20116b,_0x6665c4),console[_0x35ad96(0xb9)]('Set\x20'+_0x20116b+_0x35ad96(0xae)+JSON['stringify'](_0x6665c4)+'\x20for\x20\x22'+_0x5c8fa4+'\x22');return;}const _0x4ce4a9=await loadSettings(_0x5c8fa4),_0x4244a6=parseLocalValue(_0x20116b,_0x39fdce);setNestedValue(_0x4ce4a9,_0x20116b,_0x4244a6),await _0x1bd163[_0x35ad96(0xa7)](saveSettings,_0x5c8fa4,_0x4ce4a9),console[_0x35ad96(0xb9)]('Set\x20'+_0x20116b+'\x20=\x20'+_0x4244a6+_0x35ad96(0xc6)+_0x5c8fa4+'\x22');}export async function configGet(_0x53812d,_0x2e309d){const _0x56dee3=_0x31d297,_0x2b65c8={'QyQqG':function(_0x2aa62f,_0x2db3b5){return _0x2aa62f===_0x2db3b5;},'iereK':'cloud','FtSEe':function(_0x53d801,_0x5c1e1f){return _0x53d801===_0x5c1e1f;},'dlNyA':function(_0x458bf0,_0x387248,_0x17f7a3){return _0x458bf0(_0x387248,_0x17f7a3);},'rQFJj':function(_0x35b435,_0x53629f){return _0x35b435===_0x53629f;},'cGhnM':_0x56dee3(0xa5)},_0x547365=await resolveProfileTarget(_0x53812d);if(_0x2b65c8['QyQqG'](_0x547365['kind'],_0x2b65c8['iereK'])){const _0x3d0dca=await loadEffectiveCloudSettings(_0x53812d),_0x5dd8e7=getNestedValue(_0x3d0dca,_0x2e309d);if(_0x2b65c8['FtSEe'](_0x5dd8e7,undefined))console['log'](_0x56dee3(0xab));else _0x2b65c8['FtSEe'](typeof _0x5dd8e7,_0x56dee3(0xa5))?console['log'](JSON[_0x56dee3(0xa6)](_0x5dd8e7,null,0x2)):console['log'](_0x5dd8e7);return;}const _0xde9398=await loadSettings(_0x53812d),_0x53b506=_0x2b65c8['dlNyA'](getNestedValue,_0xde9398,_0x2e309d);if(_0x2b65c8['rQFJj'](_0x53b506,undefined))console[_0x56dee3(0xb9)](_0x56dee3(0xab));else typeof _0x53b506===_0x2b65c8[_0x56dee3(0xb6)]?console['log'](JSON[_0x56dee3(0xa6)](_0x53b506,null,0x2)):console['log'](_0x53b506);}export async function configList(_0x2f00ef){const _0x588728=_0x31d297,_0x44c4fa={'FSuNJ':function(_0x391b41,_0x46326c){return _0x391b41(_0x46326c);},'tZAmg':'cloud','KYDil':function(_0x491ae2,_0x382363){return _0x491ae2(_0x382363);},'aFeeh':function(_0x21723b,_0x40669a){return _0x21723b(_0x40669a);}},_0x15cc60=await _0x44c4fa[_0x588728(0xaf)](resolveProfileTarget,_0x2f00ef);if(_0x15cc60[_0x588728(0xa2)]===_0x44c4fa['tZAmg']){const _0x281540=await _0x44c4fa['KYDil'](loadEffectiveCloudSettings,_0x2f00ef);if(!_0x281540||Object[_0x588728(0xbd)](_0x281540)['length']===0x0){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x2f00ef+'\x22');return;}console['log'](JSON['stringify'](_0x281540,null,0x2));return;}const _0x330684=_0x44c4fa['FSuNJ'](getSettingsPath,_0x2f00ef);if(!_0x44c4fa[_0x588728(0xaf)](existsSync,_0x330684)){console[_0x588728(0xb9)](_0x588728(0xc7)+_0x2f00ef+'\x22');return;}const _0x48c362=await loadSettings(_0x2f00ef),_0x34b210=_0x44c4fa['aFeeh'](formatSettings,_0x48c362);!_0x34b210?console[_0x588728(0xb9)](_0x588728(0xc7)+_0x2f00ef+'\x22'):console[_0x588728(0xb9)](_0x34b210);}export async function configUnset(_0x3c63c4,_0x5cbcf6){const _0x9ee4b=_0x31d297,_0x5d1523={'Hfpfp':function(_0x1df866,_0x3bad5f){return _0x1df866(_0x3bad5f);},'EUcOS':'cloud','kgvKe':function(_0xfe9199,_0x5ad5f5,_0x550e80,_0x3bfe31){return _0xfe9199(_0x5ad5f5,_0x550e80,_0x3bfe31);},'tSmYr':function(_0x3cded7){return _0x3cded7();}},_0x36f957=await _0x5d1523[_0x9ee4b(0xc9)](resolveProfileTarget,_0x3c63c4);if(_0x36f957['kind']===_0x5d1523[_0x9ee4b(0xb3)]){if(_0x36f957['alsoExistsElsewhere'])printDualExistsHint(_0x3c63c4);const _0x476187=_0x5d1523['kgvKe'](unsetProfileOverride,_0x5d1523['tSmYr'](getProjectPath),_0x3c63c4,_0x5cbcf6);_0x476187?console[_0x9ee4b(0xb9)]('Removed\x20'+_0x5cbcf6+_0x9ee4b(0xc6)+_0x3c63c4+'\x22'):console['log']('Key\x20\x22'+_0x5cbcf6+'\x22\x20not\x20found');return;}const _0x17d22c=await loadSettings(_0x3c63c4),_0x815f85=deleteNestedValue(_0x17d22c,_0x5cbcf6);_0x815f85?(await saveSettings(_0x3c63c4,_0x17d22c),console[_0x9ee4b(0xb9)](_0x9ee4b(0xad)+_0x5cbcf6)):console['log']('Key\x20\x22'+_0x5cbcf6+'\x22\x20not\x20found');}export async function configReset(_0x1e36b6){const _0x4c0e8f=_0x31d297,_0x4c3307={'KhvVJ':function(_0x131a22,_0x9f25a3){return _0x131a22(_0x9f25a3);},'LObfw':function(_0x57da6d){return _0x57da6d();}},_0x203914=await _0x4c3307['KhvVJ'](resolveProfileTarget,_0x1e36b6);if(_0x203914['kind']===_0x4c0e8f(0xce)){resetProfileOverrides(_0x4c3307[_0x4c0e8f(0xcd)](getProjectPath),_0x1e36b6),console['log'](_0x4c0e8f(0xcb)+_0x1e36b6+'\x22');return;}console[_0x4c0e8f(0xb9)]('\x22'+_0x1e36b6+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x1e36b6+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2b1d(_0x1ce298,_0x563934){_0x1ce298=_0x1ce298-0xa5;const _0x5b1a5b=_0x5b1a();let _0x2b1d27=_0x5b1a5b[_0x1ce298];return _0x2b1d27;}const _0x37b275=_0x2b1d;function _0x5b1a(){const _0xd34595=['mHaSk','24329853MKIHeL','\x0a*\x20=\x20active\x20profile','length','environmentDetails','environmentKey','local','NMcpY','xPHUX','legacy','pXSqM','cached\x20(updated\x20','9416838qqysoC','map','\x20[cloud]','UIEzc','isDirectory','324437ETxUJY','sort','bug-bashes','includes','Run:\x20ranger\x20profile\x20add\x20<profile-name>','4943450HyRaXX','wIcTO','DkRkA','WqCBm','2117732fMzqiE','vNWBj','baseUrl','4ZWKmVb','1040fekhTb','YcDRo','reports','name','no\x20session','klTUu','endsWith','\x20\x20\x20\x20\x20\x20URL:\x20','3262179NtIcST','sessionUpdatedAt','log','push','\x0aLocal\x20Profiles:','13909EIUDOb'];_0x5b1a=function(){return _0xd34595;};return _0x5b1a();}(function(_0x377691,_0x20cae0){const _0x32fdb6=_0x2b1d,_0x4e403b=_0x377691();while(!![]){try{const _0x59d8c7=-parseInt(_0x32fdb6(0xb8))/0x1*(-parseInt(_0x32fdb6(0xc4))/0x2)+parseInt(_0x32fdb6(0xcd))/0x3+-parseInt(_0x32fdb6(0xc1))/0x4+parseInt(_0x32fdb6(0xbd))/0x5+parseInt(_0x32fdb6(0xb3))/0x6+-parseInt(_0x32fdb6(0xa6))/0x7*(parseInt(_0x32fdb6(0xc5))/0x8)+-parseInt(_0x32fdb6(0xa8))/0x9;if(_0x59d8c7===_0x20cae0)break;else _0x4e403b['push'](_0x4e403b['shift']());}catch(_0x3523eb){_0x4e403b['push'](_0x4e403b['shift']());}}}(_0x5b1a,0xc422a));import{readdir,stat}from'fs/promises';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',_0x37b275(0xba),_0x37b275(0xc7),'local','ci'];export async function getEnvNames(){const _0x2ffa51=_0x37b275,_0x17893f={'YcDRo':function(_0x101ea9){return _0x101ea9();},'wIcTO':function(_0x3f8409,_0x9c3fc2){return _0x3f8409(_0x9c3fc2);},'NMcpY':_0x2ffa51(0xad),'vNWBj':function(_0x369f7e,_0x204991,_0x12bced){return _0x369f7e(_0x204991,_0x12bced);},'DkRkA':function(_0xeec562,_0x23e09e){return _0xeec562(_0x23e09e);},'pXSqM':'.txt','mHaSk':function(_0x26e1d9,_0x405f8b,_0x393436){return _0x26e1d9(_0x405f8b,_0x393436);},'WqCBm':_0x2ffa51(0xb0)},_0x3a3082=_0x17893f['YcDRo'](getRangerDir);if(!_0x17893f['wIcTO'](existsSync,_0x3a3082))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x1d28b4=await _0x17893f[_0x2ffa51(0xc6)](readActiveProfileName),_0x579eaf=[],_0x57d4a7={},_0x112bc4=join(_0x3a3082,_0x17893f['NMcpY']);if(_0x17893f['wIcTO'](existsSync,_0x112bc4)){const _0x27fe94=await readdir(_0x112bc4);for(const _0x25b065 of _0x27fe94){const _0x303d83=join(_0x112bc4,_0x25b065),_0x3a003f=await _0x17893f[_0x2ffa51(0xbe)](stat,_0x303d83);_0x3a003f['isDirectory']()&&(_0x579eaf[_0x2ffa51(0xd0)](_0x25b065),_0x57d4a7[_0x25b065]=_0x17893f[_0x2ffa51(0xae)]);}}const _0x2a068a=join(_0x3a3082,'ci');if(existsSync(_0x2a068a)){const _0x4da7d6=await readdir(_0x2a068a);for(const _0x43104f of _0x4da7d6){const _0x1c9f7b=_0x17893f[_0x2ffa51(0xc2)](join,_0x2a068a,_0x43104f),_0x21dacb=await _0x17893f[_0x2ffa51(0xbf)](stat,_0x1c9f7b);_0x21dacb[_0x2ffa51(0xb7)]()&&(_0x579eaf['push'](_0x43104f),_0x57d4a7[_0x43104f]='ci');}}const _0x18492a=await readdir(_0x3a3082);for(const _0x5896aa of _0x18492a){if(NON_ENV_DIRS[_0x2ffa51(0xbb)](_0x5896aa))continue;if(_0x5896aa['startsWith']('.'))continue;if(_0x5896aa[_0x2ffa51(0xcb)](_0x17893f[_0x2ffa51(0xb1)]))continue;const _0x4bb4fb=join(_0x3a3082,_0x5896aa),_0x335c9d=await stat(_0x4bb4fb);_0x335c9d[_0x2ffa51(0xb7)]()&&existsSync(_0x17893f[_0x2ffa51(0xa7)](join,_0x4bb4fb,'settings.json'))&&(!_0x579eaf[_0x2ffa51(0xbb)](_0x5896aa)&&(_0x579eaf['push'](_0x5896aa),_0x57d4a7[_0x5896aa]=_0x17893f[_0x2ffa51(0xc0)]));}return{'envNames':_0x579eaf,'activeEnv':_0x1d28b4,'envTypes':_0x57d4a7};}export async function envList(){const _0x360e82=_0x37b275,_0x4796ef={'qeyUo':function(_0x18aab8){return _0x18aab8();},'klTUu':function(_0x1077f6,_0x26f117){return _0x1077f6===_0x26f117;},'TmZoA':function(_0x4466bd,_0x461c2f){return _0x4466bd===_0x461c2f;},'nbHST':function(_0x2924b3,_0x2c65f7){return _0x2924b3>_0x2c65f7;},'xPHUX':_0x360e82(0xa5),'UIEzc':'local','TLtJZ':function(_0x58940a,_0x23400b){return _0x58940a(_0x23400b);}},{envNames:_0x399052,activeEnv:_0x359da5,envTypes:_0x8dc338}=await getEnvNames();let _0x376708=[];try{_0x376708=await _0x4796ef['qeyUo'](listCloudProfiles);}catch{}if(_0x4796ef[_0x360e82(0xca)](_0x399052['length'],0x0)&&_0x4796ef['TmZoA'](_0x376708['length'],0x0)){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x360e82(0xbc));return;}const _0x5e3ce6=new Set(_0x376708[_0x360e82(0xb4)](_0x37ff1e=>_0x37ff1e[_0x360e82(0xc8)]));if(_0x4796ef['nbHST'](_0x399052[_0x360e82(0xaa)],0x0)){console['log'](_0x4796ef[_0x360e82(0xaf)]);for(const _0xbb1ef7 of _0x399052[_0x360e82(0xb9)]()){const _0x5237f8=_0xbb1ef7===_0x359da5&&!_0x5e3ce6['has'](_0xbb1ef7),_0x19e58a=_0x8dc338[_0xbb1ef7]||_0x4796ef[_0x360e82(0xb6)],_0x1f35ca=await _0x4796ef['TLtJZ'](loadSettings,_0xbb1ef7),_0xa32c99=_0x19e58a===_0x360e82(0xb0)?'':'\x20['+_0x19e58a+']';console['log']('\x20\x20'+(_0x5237f8?'*\x20':'\x20\x20')+_0xbb1ef7+_0xa32c99),_0x1f35ca[_0x360e82(0xc3)]&&console['log'](_0x360e82(0xcc)+_0x1f35ca[_0x360e82(0xc3)]),_0x1f35ca['environmentDetails']&&console[_0x360e82(0xcf)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x1f35ca[_0x360e82(0xab)]);}}if(_0x4796ef['nbHST'](_0x376708['length'],0x0)){console[_0x360e82(0xcf)]('\x0aCloud\x20Profiles:');for(const _0x32a8d1 of _0x376708['sort']((_0x4a3465,_0x16883b)=>_0x4a3465[_0x360e82(0xc8)]['localeCompare'](_0x16883b[_0x360e82(0xc8)]))){const _0x4abc45=_0x32a8d1[_0x360e82(0xc8)]===_0x359da5,_0x1ef50c=_0x32a8d1['environmentKey']?'\x20('+_0x32a8d1[_0x360e82(0xac)]+')':'',_0x367007=_0x32a8d1[_0x360e82(0xce)]?_0x360e82(0xb2)+_0x32a8d1[_0x360e82(0xce)]+')':_0x360e82(0xc9);console['log']('\x20\x20'+(_0x4abc45?'*\x20':'\x20\x20')+_0x32a8d1[_0x360e82(0xc8)]+_0x360e82(0xb5)+_0x1ef50c),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x367007);}}_0x359da5&&console[_0x360e82(0xcf)](_0x360e82(0xa9));}
|
|
@@ -1 +1 @@
|
|
|
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)]);}
|
|
1
|
+
const _0x5334bd=_0xe614;(function(_0x37aedf,_0x2fb690){const _0x1bc0fa=_0xe614,_0x36982e=_0x37aedf();while(!![]){try{const _0x493cc4=-parseInt(_0x1bc0fa(0x2a5))/0x1*(-parseInt(_0x1bc0fa(0x26c))/0x2)+parseInt(_0x1bc0fa(0x281))/0x3+-parseInt(_0x1bc0fa(0x21d))/0x4+-parseInt(_0x1bc0fa(0x1fe))/0x5*(parseInt(_0x1bc0fa(0x1e2))/0x6)+parseInt(_0x1bc0fa(0x224))/0x7*(parseInt(_0x1bc0fa(0x1ee))/0x8)+-parseInt(_0x1bc0fa(0x1f8))/0x9+-parseInt(_0x1bc0fa(0x21e))/0xa;if(_0x493cc4===_0x2fb690)break;else _0x36982e['push'](_0x36982e['shift']());}catch(_0x45eec5){_0x36982e['push'](_0x36982e['shift']());}}}(_0x55a9,0xd1aef));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x422fc2 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';function _0x55a9(){const _0x5d2199=['split','KiCCE','currentSessionId','sASEp','blockedItems','timing','scenario','Step\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','content','uPZbb','canceledReason','wpiEo','Dwmki','Not\x20in\x20a\x20git\x20repository.','YqaBK','json','scenarios','vZwOe','env','\x20scenario(s).','ready','TcBAE','qIBmI','list','utf-8','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x20\x20\x20Status:\x20','name','textContent','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','EtWVC','incomplete','stdin','22867ddaqTo','GBuiM','style','toLocaleDateString','HrGZa','version','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','approved','domRef','Please\x20finish\x20your\x20review\x20first:','latestReview','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','dVYIE','slice','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:',':\x20\x22','xIhgV','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','CAoww','\x20scenarios.','36gfiplG','en-US','TqoIi','comment_','\x20at\x20[','ylZcR','linkedSession','DkwoY','assetType','yfnMM','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20\x20\x20ID:\x20','7444072pFnPkT','oDHwN','verifiedItems','):\x20\x22','GRHkO','length','screenshot','checklistItems','\x20\x20\x20\x20\x20ID:\x20','blockedReason','5847642MDgdfO','wYOAE','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x1b[1m','fQPvo','iteration','377345veGkHw','pop','\x20\x20\x20Created:\x20','cpTgr','\x20Session\x20','vZaCH','mZhnn','NXzFR','UaPYh','\x0a✅\x20Resumed\x20feature\x20review:\x20','filter','short','HZJAO','any','RONWV','xIyTs','verified','\x20--include-deleted','YSfta','lyrJp','\x0a✅\x20Scenario\x20updated','closed','xzplv','gitBranch','MibnW','yoOVP','trim','...','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','BHdju','status','5897600YVLBld','2174100hMmQHy','notes','verification_in_progress','UNtLN','tqSSw','offset','7xgPNQg','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','sessionId','description','\x20\x20\x20\x20\x20Progress:\x20','selector','numeric','currentBranch','IUGhY','position','jpXPj','push','EZxyg','from','\x20--limit\x20','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','pipe','oaWGF','find','\x20\x20\x20Progress:\x20','items','dashboardUrl','type','exit','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','has','Showing\x20','stdout','Fetnc','jjwCP','zWmKf','gitRepoUrl','\x20>\x20','gfeGK','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','hmrMq','SBdEZ','assetUrl','\x20\x20💬\x20','parentItemId','BoDTo','spatial','browserSessionId','createdAt','git\x20remote\x20get-url\x20origin','arrayBuffer','\x20unaddressed\x20comment(s)','\x20\x20\x20\x20\x20Branch:\x20','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0aConcluding\x20session...','\x0a✅\x20Feature\x20review\x20created:\x20','canonicalFlow','BkTfe','yvQOu','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','limit','yVzlG','submittedAt','NcbKr','CLAUDE_SESSION_ID','stats','error','\x20\x20\x20Completed:\x20','toLocaleString','map','vRcdy','blocked','completedAt','iopyK','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','VOjCO','SiKWZ','94qdcIPE','isKeyStep','\x20--current-branch','\x0aAvailable\x20scenarios:','ECJan','\x20(v','unaddressedComments','incompleteReason','MjcAe','includeDeleted','TRlcz','log','assets','replace','terminalReason','No\x20active\x20session\x20for\x20this\x20feature\x20review.','No\x20scenarios\x20found.','selected','Scenario\x20','BDKJd','Qoidt','4943901SuaOrl','NAXSp'];_0x55a9=function(){return _0x5d2199;};return _0x55a9();}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';function _0xe614(_0x45f2ca,_0x14d86a){_0x45f2ca=_0x45f2ca-0x1e2;const _0x55a94d=_0x55a9();let _0xe614f5=_0x55a94d[_0x45f2ca];return _0xe614f5;}const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x3ac399=>_0x5334bd(0x1fb)+_0x3ac399+'\x1b[0m';function getGitRepoUrl(){const _0x10b134=_0x5334bd,_0x3f9a42={'fVVmq':function(_0x809cc2,_0x448793,_0x5b9889){return _0x809cc2(_0x448793,_0x5b9889);},'wpiEo':_0x10b134(0x29c),'SBdEZ':'pipe'};try{const _0x4d937e=_0x3f9a42['fVVmq'](execSync,_0x10b134(0x250),{'encoding':_0x3f9a42[_0x10b134(0x28f)],'stdio':[_0x3f9a42['SBdEZ'],'pipe',_0x3f9a42[_0x10b134(0x248)]]})[_0x10b134(0x218)]();return _0x4d937e['replace'](/\.git$/,'')[_0x10b134(0x279)](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x5d77a5=_0x5334bd,_0x501809={'BHdju':function(_0xd479dc,_0x3006bc,_0x8fa7ce){return _0xd479dc(_0x3006bc,_0x8fa7ce);},'lvhHt':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','UaPYh':'pipe'};try{return _0x501809[_0x5d77a5(0x21b)](execSync,_0x501809['lvhHt'],{'encoding':_0x5d77a5(0x29c),'stdio':[_0x5d77a5(0x234),'pipe',_0x501809[_0x5d77a5(0x206)]]})[_0x5d77a5(0x218)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x3457a3=_0x5334bd,_0x3a32d7={'NAXSp':function(_0x45ee18,_0x5447ae,_0xe538bd){return _0x45ee18(_0x5447ae,_0xe538bd);},'XpkJh':function(_0x12375d){return _0x12375d();},'hmrMq':function(_0x298b23,_0x3a58eb){return _0x298b23(_0x3a58eb);}},_0x34aa56=_0x3a32d7[_0x3457a3(0x282)](join,_0x3a32d7['XpkJh'](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x3a32d7[_0x3457a3(0x247)](existsSync,_0x34aa56))return null;try{const _0x488e8b=await readFile(_0x34aa56,_0x3457a3(0x29c));return _0x488e8b[_0x3457a3(0x218)]()||null;}catch{return null;}}async function setActiveFeatureId(_0xbc7e76){const _0x10b71b=_0x5334bd,_0x492848={'wEysN':function(_0x44f1f0){return _0x44f1f0();},'KiCCE':function(_0x50e097,_0x57c2da){return _0x50e097(_0x57c2da);},'UNtLN':function(_0x190a4c,_0x46271f,_0x25ef64){return _0x190a4c(_0x46271f,_0x25ef64);},'AEXEj':'utf-8'},_0x4602b3=_0x492848['wEysN'](getRangerDir),_0x5aa5d3=join(_0x4602b3,ACTIVE_FEATURE_FILE);!_0x492848[_0x10b71b(0x284)](existsSync,_0x4602b3)&&await _0x492848[_0x10b71b(0x221)](mkdir,_0x4602b3,{'recursive':!![]}),await writeFile(_0x5aa5d3,_0xbc7e76,_0x492848['AEXEj']);}function getProgressDisplay(_0xc2ae70){const _0x3de48e=_0x5334bd,_0x30b747={'EtWVC':function(_0xe0cc33,_0x49a8e9){return _0xe0cc33+_0x49a8e9;},'tRXgt':function(_0x1e792d,_0x7ea957){return _0x1e792d*_0x7ea957;},'xIhgV':function(_0x548ba7,_0x10053d){return _0x548ba7-_0x10053d;},'MjcAe':function(_0x3059ee,_0x1cb923){return _0x3059ee>_0x1cb923;}},_0x4b50aa=_0xc2ae70[_0x3de48e(0x1f0)]||0x0,_0x2c6dea=_0xc2ae70['verificationInProgressItems']||0x0,_0x2ada26=_0xc2ae70[_0x3de48e(0x287)]||0x0,_0x56ce11=_0xc2ae70['incompleteItems']||0x0,_0x1fb75a=_0xc2ae70['pendingItems']||0x0,_0x498013=_0x30b747[_0x3de48e(0x2a2)](_0x4b50aa+_0x2c6dea,_0x2ada26)+_0x56ce11+_0x1fb75a;if(_0x498013===0x0)return'-';const _0x5ccfb2=0xa,_0x4d996d=Math['round'](_0x30b747['tRXgt'](_0x4b50aa/_0x498013,_0x5ccfb2)),_0x2bcd34=_0x30b747['EtWVC']('█'['repeat'](_0x4d996d),'░'['repeat'](_0x30b747[_0x3de48e(0x2b5)](_0x5ccfb2,_0x4d996d))),_0x36e7c9=[];if(_0x30b747[_0x3de48e(0x274)](_0x2ada26,0x0))_0x36e7c9['push'](_0x2ada26+'\x20blocked');if(_0x56ce11>0x0)_0x36e7c9['push'](_0x56ce11+'\x20incomplete');if(_0x30b747['MjcAe'](_0x2c6dea,0x0))_0x36e7c9[_0x3de48e(0x22f)](_0x2c6dea+'\x20in\x20progress');const _0x5a4e7f=_0x30b747['MjcAe'](_0x36e7c9['length'],0x0)?'\x20('+_0x36e7c9['join'](',\x20')+')':'';return _0x2bcd34+'\x20'+_0x4b50aa+'/'+_0x498013+'\x20verified'+_0x5a4e7f;}function getCurrentSessionItems(_0x31bf0f,_0x4e6af6){const _0x38bc47=_0x5334bd;if(!_0x31bf0f['currentSessionId'])return _0x4e6af6[_0x38bc47(0x208)](_0x421788=>!_0x421788[_0x38bc47(0x226)]);return _0x4e6af6['filter'](_0x589cf7=>_0x589cf7[_0x38bc47(0x226)]===_0x31bf0f[_0x38bc47(0x285)]||!_0x589cf7[_0x38bc47(0x226)]);}function displayFeature(_0x6fd4ff,_0x2ea341){const _0x4a9f76=_0x5334bd,_0x289dec={'VOjCO':function(_0x23569e,_0x3fcc0d){return _0x23569e(_0x3fcc0d);},'vRcdy':'\x0a\x20\x20\x20Scenarios:','vZaCH':function(_0x418f81,_0x54fdb7){return _0x418f81===_0x54fdb7;},'IqlsH':_0x4a9f76(0x213),'NXzFR':'approved','sfZFL':_0x4a9f76(0x20e),'BXCCx':'blocked','IUGhY':function(_0x332b4a,_0x558987){return _0x332b4a===_0x558987;},'TRlcz':_0x4a9f76(0x220),'JmTcG':function(_0x142511,_0x40294b){return _0x142511>_0x40294b;},'wYOAE':function(_0x3cddc6,_0x2d07c4){return _0x3cddc6!==_0x2d07c4;},'uwSzn':'\x20[has\x20reviewer\x20feedback]','zqXel':function(_0x4441b1,_0x147ada){return _0x4441b1+_0x147ada;},'ECJan':function(_0x509df5,_0x539536){return _0x509df5===_0x539536;},'oxeTF':_0x4a9f76(0x2a3),'dVYIE':function(_0x21a975,_0x192bb4){return _0x21a975===_0x192bb4;},'kRcHo':function(_0x1633b1,_0x42e9b1){return _0x1633b1===_0x42e9b1;},'GBuiM':function(_0x5c244f,_0x740ed8){return _0x5c244f===_0x740ed8;}};console['log']('\x0a'+_0x6fd4ff[_0x4a9f76(0x29f)]+'\x20('+_0x6fd4ff[_0x4a9f76(0x239)]+')');_0x6fd4ff['stats']&&console[_0x4a9f76(0x277)]('\x20\x20\x20Progress:\x20'+_0x289dec[_0x4a9f76(0x26a)](getProgressDisplay,_0x6fd4ff[_0x4a9f76(0x260)]));_0x6fd4ff['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x6fd4ff[_0x4a9f76(0x227)]);_0x6fd4ff[_0x4a9f76(0x243)]&&console[_0x4a9f76(0x277)]('\x20\x20\x20Repository:\x20'+_0x6fd4ff['gitRepoUrl']);_0x6fd4ff[_0x4a9f76(0x215)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x6fd4ff[_0x4a9f76(0x215)]);console['log'](_0x4a9f76(0x200)+new Date(_0x6fd4ff['createdAt'])[_0x4a9f76(0x263)]());_0x6fd4ff['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x6fd4ff[_0x4a9f76(0x267)])['toLocaleString']());if(_0x2ea341&&_0x2ea341[_0x4a9f76(0x1f3)]>0x0){console['log'](_0x289dec[_0x4a9f76(0x265)]);for(let _0x5a0c3e=0x0;_0x5a0c3e<_0x2ea341[_0x4a9f76(0x1f3)];_0x5a0c3e++){const _0x4563c8=_0x2ea341[_0x5a0c3e];let _0x452d01;if(_0x289dec['vZaCH'](_0x4563c8['status'],_0x289dec['IqlsH'])&&_0x4563c8['terminalReason']===_0x289dec[_0x4a9f76(0x205)])_0x452d01='✅';else{if(_0x289dec[_0x4a9f76(0x203)](_0x4563c8[_0x4a9f76(0x21c)],_0x289dec['sfZFL']))_0x452d01='🟢';else{if(_0x289dec[_0x4a9f76(0x203)](_0x4563c8[_0x4a9f76(0x21c)],'incomplete'))_0x452d01='🟠';else{if(_0x4563c8['status']===_0x289dec['BXCCx'])_0x452d01='🛑';else{if(_0x4563c8['status']==='closed')_0x452d01='⛔';else _0x289dec[_0x4a9f76(0x22c)](_0x4563c8['status'],_0x289dec[_0x4a9f76(0x276)])?_0x452d01='⏳':_0x452d01='⬜';}}}}const _0x55104b=_0x289dec['JmTcG'](_0x4563c8[_0x4a9f76(0x2aa)],0x1)?_0x4a9f76(0x271)+_0x4563c8['version']+')':'',_0x27ae34=_0x289dec['JmTcG'](_0x4563c8['version'],0x1)&&_0x4563c8[_0x4a9f76(0x24b)]&&_0x4563c8['status']!=='closed'&&_0x289dec[_0x4a9f76(0x1f9)](_0x4563c8['status'],_0x289dec['sfZFL'])?_0x289dec['uwSzn']:'';console[_0x4a9f76(0x277)]('\x20\x20\x20'+_0x289dec['zqXel'](_0x5a0c3e,0x1)+'.\x20'+_0x452d01+'\x20'+_0x4563c8['description']+_0x55104b+_0x27ae34);_0x4563c8['status']===_0x4a9f76(0x266)&&_0x4563c8[_0x4a9f76(0x1f7)]&&console[_0x4a9f76(0x277)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x4563c8['blockedReason']);_0x289dec[_0x4a9f76(0x270)](_0x4563c8['status'],_0x289dec['oxeTF'])&&_0x4563c8[_0x4a9f76(0x273)]&&console[_0x4a9f76(0x277)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x4563c8[_0x4a9f76(0x273)]);if(_0x289dec[_0x4a9f76(0x2b1)](_0x4563c8[_0x4a9f76(0x21c)],_0x4a9f76(0x213))&&_0x289dec['kRcHo'](_0x4563c8[_0x4a9f76(0x27a)],_0x4a9f76(0x2ac)))console[_0x4a9f76(0x277)]('\x20\x20\x20\x20\x20\x20Approved');else _0x289dec[_0x4a9f76(0x2a6)](_0x4563c8['status'],_0x289dec['IqlsH'])&&_0x4563c8[_0x4a9f76(0x28e)]&&console[_0x4a9f76(0x277)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x4563c8['canceledReason']);}}}export async function featureCreate(_0x39ce08,_0x57b84d){const _0x11e5c1=_0x5334bd,_0x5605f8={'CdEUj':function(_0x35a816){return _0x35a816();},'mZhnn':function(_0x47a93f,_0x300647){return _0x47a93f(_0x300647);},'UfkdQ':'\x0aCreating\x20feature\x20review...','feWdK':function(_0x78a6ee,_0x1dfb16){return _0x78a6ee(_0x1dfb16);},'gfeGK':function(_0x394b82,_0xce9515,_0x5aa928){return _0x394b82(_0xce9515,_0x5aa928);}},{envNames:_0x50defd}=await _0x5605f8['CdEUj'](getEnvNames);_0x50defd['length']===0x0&&console['warn']('\x0a'+_0x5605f8[_0x11e5c1(0x204)](formatProfileRequiredMessage,_0x5d357f=>bold(_0x5d357f)));const _0x48758e=_0x57b84d[_0x11e5c1(0x294)]?_0x57b84d[_0x11e5c1(0x294)][_0x11e5c1(0x264)](_0x41ed53=>_0x41ed53[_0x11e5c1(0x218)]()):[],_0x5705dc=getGitRepoUrl(),_0x5349d8=getGitBranch();console['log'](_0x5605f8['UfkdQ']);const _0x37ff93=await _0x5605f8['mZhnn'](createFeature,{'name':_0x39ce08,'description':_0x57b84d[_0x11e5c1(0x227)],'checklist':_0x48758e,'gitRepoUrl':_0x5705dc,'gitBranch':_0x5349d8});await setActiveFeatureId(_0x37ff93['id']),await _0x5605f8['feWdK'](tryStartCurrentSession,_0x37ff93['id']);const _0x31486f=process['env'][_0x11e5c1(0x25f)];_0x31486f&®isterSession(_0x31486f,_0x37ff93['id']),console[_0x11e5c1(0x277)](_0x11e5c1(0x256)+_0x37ff93['id']),_0x5605f8[_0x11e5c1(0x245)](displayFeature,_0x37ff93,_0x37ff93[_0x11e5c1(0x1f5)]),console['log'](_0x11e5c1(0x2b6));}export async function featureList(_0x54ec21){const _0x21ff3f=_0x5334bd,_0x5d7fb9={'EyfzP':function(_0x9894d7){return _0x9894d7();},'YqaBK':function(_0x488cf7,_0x18f9f1){return _0x488cf7(_0x18f9f1);},'FXFjl':function(_0x233a55,_0x4eff00){return _0x233a55===_0x4eff00;},'yVzlG':'\x0aNo\x20feature\x20reviews\x20found.','Drmvz':function(_0xf8c94c,_0x1ac251){return _0xf8c94c>_0x1ac251;},'aIuxO':function(_0x22e838,_0x837140){return _0x22e838!==_0x837140;}},_0x18c252={'limit':_0x54ec21[_0x21ff3f(0x25b)]??0xa,'offset':_0x54ec21[_0x21ff3f(0x223)]??0x0,'includeDeleted':_0x54ec21['includeDeleted']};_0x54ec21[_0x21ff3f(0x22b)]&&(_0x18c252[_0x21ff3f(0x243)]=getGitRepoUrl(),_0x18c252['gitBranch']=_0x5d7fb9['EyfzP'](getGitBranch));const _0x357bd4=await _0x5d7fb9[_0x21ff3f(0x292)](listFeatures,_0x18c252);if(_0x5d7fb9['FXFjl'](_0x357bd4['items']['length'],0x0)){console['log'](_0x5d7fb9[_0x21ff3f(0x25c)]);return;}const _0x2ebb98=_0x5d7fb9['Drmvz'](_0x357bd4['totalCount'],_0x357bd4[_0x21ff3f(0x238)][_0x21ff3f(0x1f3)])?_0x21ff3f(0x23e)+_0x357bd4[_0x21ff3f(0x238)]['length']+'\x20of\x20'+_0x357bd4['totalCount']:_0x357bd4['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x21ff3f(0x277)]('\x0a'+_0x2ebb98+':\x0a');for(const _0xb43f5f of _0x357bd4['items']){console['log'](''+_0xb43f5f[_0x21ff3f(0x29f)]),console['log'](_0x21ff3f(0x1ed)+_0xb43f5f['id']),_0xb43f5f['stats']&&console[_0x21ff3f(0x277)](_0x21ff3f(0x237)+getProgressDisplay(_0xb43f5f['stats'])),_0xb43f5f[_0x21ff3f(0x215)]&&console[_0x21ff3f(0x277)]('\x20\x20\x20Branch:\x20'+_0xb43f5f['gitBranch']),console[_0x21ff3f(0x277)](_0x21ff3f(0x200)+new Date(_0xb43f5f[_0x21ff3f(0x24f)])[_0x21ff3f(0x2a8)]()),console[_0x21ff3f(0x277)]('');}const _0x4eeb77=_0x18c252['limit']??0xa,_0x45bd29=(_0x18c252[_0x21ff3f(0x223)]??0x0)+_0x357bd4[_0x21ff3f(0x238)][_0x21ff3f(0x1f3)];if(_0x45bd29<_0x357bd4['totalCount']){const _0x302235=_0x5d7fb9['aIuxO'](_0x4eeb77,0xa)?_0x21ff3f(0x232)+_0x4eeb77:'',_0x57321d=_0x54ec21['currentBranch']?_0x21ff3f(0x26e):'',_0x17b2cf=_0x54ec21[_0x21ff3f(0x275)]?_0x21ff3f(0x20f):'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x45bd29+_0x302235+_0x57321d+_0x17b2cf);}}export async function featureShow(_0x564751){const _0x436183=_0x5334bd,_0x120fc4={'oDHwN':_0x436183(0x1fa)},_0x4f3629=_0x564751||await getActiveFeatureId();if(!_0x4f3629)throw new Error(_0x120fc4[_0x436183(0x1ef)]);const _0xc5af13=await getFeature(_0x4f3629);displayFeature(_0xc5af13,_0xc5af13[_0x436183(0x1f5)]);}export async function featureResume(_0x2e1739){const _0x2a3dc6=_0x5334bd,_0x393a1a={'yfnMM':function(_0x38c736,_0x26efab){return _0x38c736(_0x26efab);},'WmtdN':function(_0x52f3ba){return _0x52f3ba();},'BkTfe':function(_0x32ee21,_0x2bffc0){return _0x32ee21(_0x2bffc0);},'sASEp':function(_0x39183c,_0x20915e,_0x4a608c){return _0x39183c(_0x20915e,_0x4a608c);},'SiKWZ':function(_0x363c45){return _0x363c45();},'JXcLw':function(_0x307cae){return _0x307cae();},'jjwCP':function(_0x300e6f,_0x2252e2){return _0x300e6f&&_0x2252e2;},'MibnW':_0x2a3dc6(0x291),'rOEZN':function(_0x5d311d,_0x10219a){return _0x5d311d||_0x10219a;},'uPZbb':function(_0x59fa73,_0x31bbbb){return _0x59fa73===_0x31bbbb;},'KJlCa':_0x2a3dc6(0x2a1),'GRHkO':_0x2a3dc6(0x27d),'yhwsY':_0x2a3dc6(0x2b3),'yyKSF':function(_0x451968,_0x45d407){return _0x451968(_0x45d407);},'kLVfX':function(_0x564e8c,_0x2b6107){return _0x564e8c!==_0x2b6107;},'Fetnc':function(_0x4c8111,_0xadc97b,_0x339111){return _0x4c8111(_0xadc97b,_0x339111);}};if(_0x2e1739){const _0x4d9904=await _0x393a1a['yfnMM'](getFeature,_0x2e1739);await setActiveFeatureId(_0x4d9904['id']);const _0x2b75cc=_0x393a1a['WmtdN'](getGitBranch);_0x2b75cc&&_0x2b75cc!==_0x4d9904['gitBranch']&&(await updateFeature(_0x4d9904['id'],{'gitBranch':_0x2b75cc}),console['log'](_0x2a3dc6(0x28b)+_0x2b75cc));console['log'](_0x2a3dc6(0x207)+_0x4d9904['name']+'\x20('+_0x4d9904['id']+')'),await _0x393a1a[_0x2a3dc6(0x258)](tryStartCurrentSession,_0x4d9904['id']);const _0x7d8480=process[_0x2a3dc6(0x296)]['CLAUDE_SESSION_ID'];_0x7d8480&®isterSession(_0x7d8480,_0x4d9904['id']);_0x393a1a[_0x2a3dc6(0x286)](displayFeature,_0x4d9904,_0x4d9904['checklistItems']),await _0x393a1a['yfnMM'](printFeedbackNudge,_0x4d9904['id']);return;}const _0xf4119c=_0x393a1a[_0x2a3dc6(0x26b)](getGitRepoUrl),_0x354bd6=_0x393a1a['JXcLw'](getGitBranch);if(_0x393a1a[_0x2a3dc6(0x241)](!_0xf4119c,!_0x354bd6))throw new Error(_0x393a1a[_0x2a3dc6(0x216)]);console[_0x2a3dc6(0x277)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0xf4119c||_0x2a3dc6(0x20b))+'\x20/\x20'+_0x393a1a['rOEZN'](_0x354bd6,'any')+_0x2a3dc6(0x219));const _0x26f082=await listFeatures({'gitRepoUrl':_0xf4119c,'gitBranch':_0x354bd6}),_0x5c9cfb=_0x26f082[_0x2a3dc6(0x238)]['filter'](_0x32b476=>_0x32b476['status']?_0x32b476['status']!==_0x2a3dc6(0x20e):!_0x32b476[_0x2a3dc6(0x267)]);if(_0x393a1a[_0x2a3dc6(0x28d)](_0x5c9cfb[_0x2a3dc6(0x1f3)],0x0)){console['log'](_0x393a1a['KJlCa']),console[_0x2a3dc6(0x277)](_0x2a3dc6(0x25a));return;}let _0x58733c;if(_0x393a1a['uPZbb'](_0x5c9cfb['length'],0x1))_0x58733c=_0x5c9cfb[0x0];else{const _0x1dd8f1=process[_0x2a3dc6(0x2a4)]['isTTY']&&process['stdout']['isTTY'];if(!_0x1dd8f1){console[_0x2a3dc6(0x277)](_0x2a3dc6(0x2ab));for(const _0x10318e of _0x5c9cfb){console[_0x2a3dc6(0x277)]('\x20\x20'+_0x10318e[_0x2a3dc6(0x29f)]),console['log'](_0x2a3dc6(0x1f6)+_0x10318e['id']),_0x10318e['stats']&&console[_0x2a3dc6(0x277)](_0x2a3dc6(0x228)+_0x393a1a[_0x2a3dc6(0x258)](getProgressDisplay,_0x10318e[_0x2a3dc6(0x260)])),_0x10318e[_0x2a3dc6(0x215)]&&console[_0x2a3dc6(0x277)](_0x2a3dc6(0x253)+_0x10318e[_0x2a3dc6(0x215)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x43e97}=await _0x422fc2['prompt']([{'type':_0x2a3dc6(0x29b),'name':_0x393a1a[_0x2a3dc6(0x1f2)],'message':_0x393a1a['yhwsY'],'choices':_0x5c9cfb[_0x2a3dc6(0x264)](_0x5a3ae0=>({'name':_0x5a3ae0[_0x2a3dc6(0x29f)]+'\x20('+_0x5a3ae0['id']+')','value':_0x5a3ae0['id']}))}]);_0x58733c=_0x5c9cfb['find'](_0x27d6ee=>_0x27d6ee['id']===_0x43e97);}await _0x393a1a['yyKSF'](setActiveFeatureId,_0x58733c['id']);_0x354bd6&&_0x393a1a['kLVfX'](_0x354bd6,_0x58733c[_0x2a3dc6(0x215)])&&(await _0x393a1a[_0x2a3dc6(0x240)](updateFeature,_0x58733c['id'],{'gitBranch':_0x354bd6}),console[_0x2a3dc6(0x277)](_0x2a3dc6(0x28b)+_0x354bd6));console[_0x2a3dc6(0x277)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x58733c[_0x2a3dc6(0x29f)]+'\x20('+_0x58733c['id']+')'),await _0x393a1a[_0x2a3dc6(0x1eb)](tryStartCurrentSession,_0x58733c['id']);const _0x1ce0c8=await getFeature(_0x58733c['id']),_0x4d3236=process['env'][_0x2a3dc6(0x25f)];_0x4d3236&®isterSession(_0x4d3236,_0x1ce0c8['id']),displayFeature(_0x1ce0c8,_0x1ce0c8[_0x2a3dc6(0x1f5)]),await printFeedbackNudge(_0x1ce0c8['id']);}async function printFeedbackNudge(_0x378587){const _0xe01faf=_0x5334bd,_0x543fb7={'HrGZa':function(_0x709b9,_0xc2afa0,_0x7944d1){return _0x709b9(_0xc2afa0,_0x7944d1);}};try{const {items:_0x290051}=await getActionItems(_0x378587);let _0x34d16e=0x0,_0x1f3bc4=0x0;for(const _0x3048f7 of _0x290051){const _0x543985=await _0x543fb7[_0xe01faf(0x2a9)](getItemFeedback,_0x378587,_0x3048f7['id']);_0x543985['unaddressedComments']['length']>0x0&&(_0x34d16e+=_0x543985['unaddressedComments'][_0xe01faf(0x1f3)],_0x1f3bc4++);}_0x34d16e>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x34d16e+_0xe01faf(0x23c)+_0x1f3bc4+_0xe01faf(0x297)),console[_0xe01faf(0x277)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x255e25){const _0x6865fd=_0x5334bd;try{const {sessions:_0x59b9e9}=await listFeatureSessions(_0x255e25),_0x516592=_0x59b9e9['find'](_0x3ae5c7=>_0x3ae5c7[_0x6865fd(0x21c)]===_0x6865fd(0x298));_0x516592&&(await startSession(_0x255e25,_0x516592['id']),console[_0x6865fd(0x277)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x516592[_0x6865fd(0x1fd)]));}catch{}}export async function featureReport(_0xf4da7f,_0x1a1711){const _0x1efce0=_0x5334bd,_0x4f5581={'Odamf':function(_0x59a31a,_0x1b54db,_0xe1b859){return _0x59a31a(_0x1b54db,_0xe1b859);},'krFYs':function(_0x2abb70,_0xe57065,_0x31dafe,_0x3a56a6){return _0x2abb70(_0xe57065,_0x31dafe,_0x3a56a6);},'iopyK':'reports','oqdIY':function(_0x14e93e,_0x47f8f8,_0xb86447){return _0x14e93e(_0x47f8f8,_0xb86447);},'KRaFL':function(_0x4e62fa,_0x5856e6){return _0x4e62fa(_0x5856e6);},'tqSSw':function(_0x59504f,_0x4af9b1,_0xfee4c1){return _0x59504f(_0x4af9b1,_0xfee4c1);}},_0x288569=_0xf4da7f||await getActiveFeatureId();if(!_0x288569)throw new Error(_0x1efce0(0x254));console['log']('\x0aGenerating\x20report...');const _0x5df8fd=await _0x4f5581['Odamf'](getFeatureReportMarkdown,_0x288569,{'style':_0x1a1711[_0x1efce0(0x2a7)]}),_0x75776=_0x1a1711['output']||_0x4f5581['krFYs'](join,getRangerDir(),_0x4f5581[_0x1efce0(0x268)],_0x288569+'.md'),_0x5a3435=_0x4f5581['oqdIY'](join,_0x75776,'..');!_0x4f5581['KRaFL'](existsSync,_0x5a3435)&&await _0x4f5581[_0x1efce0(0x222)](mkdir,_0x5a3435,{'recursive':!![]}),await writeFile(_0x75776,_0x5df8fd,'utf-8'),console[_0x1efce0(0x277)]('\x0a✅\x20Report\x20generated:\x20'+_0x75776);}function getScenarioResult(_0x170ba9){const _0x37949a=_0x5334bd,_0x5f7f3={'HUdug':function(_0x37a621,_0x2f0247){return _0x37a621===_0x2f0247;},'SwNFq':'closed','xzplv':_0x37949a(0x220),'TqoIi':'in_progress'};if(_0x5f7f3['HUdug'](_0x170ba9['status'],_0x5f7f3['SwNFq']))return _0x170ba9[_0x37949a(0x27a)]??'closed';if(_0x170ba9[_0x37949a(0x21c)]===_0x5f7f3[_0x37949a(0x214)])return _0x5f7f3[_0x37949a(0x1e4)];return _0x170ba9['status'];}function getScenarioRationale(_0x5bc3ae,_0x4d0b64){const _0x2cd6f5=_0x5334bd;if(_0x4d0b64)return _0x4d0b64;if(_0x5bc3ae[_0x2cd6f5(0x1f7)])return _0x5bc3ae[_0x2cd6f5(0x1f7)];if(_0x5bc3ae[_0x2cd6f5(0x273)])return _0x5bc3ae[_0x2cd6f5(0x273)];if(_0x5bc3ae[_0x2cd6f5(0x28e)])return _0x5bc3ae[_0x2cd6f5(0x28e)];if(_0x5bc3ae['notes'])return _0x5bc3ae[_0x2cd6f5(0x21f)];return null;}export async function featureReportPrDescription(_0x4f3f62,_0x21e2a6){const _0x1f505b=_0x5334bd,_0x353861={'RdfYD':function(_0x3cdc02,_0x4fa472){return _0x3cdc02(_0x4fa472);},'SPUqy':function(_0x339e44,_0x191f0e,_0x4648d3){return _0x339e44(_0x191f0e,_0x4648d3);},'QQVdM':function(_0x24ab72,_0x15814f){return _0x24ab72===_0x15814f;},'HZJAO':function(_0x3f77d2,_0x2548cc){return _0x3f77d2+_0x2548cc;},'fQPvo':function(_0x1b1cbb,_0x59f05a,_0x4eb9cf){return _0x1b1cbb(_0x59f05a,_0x4eb9cf);}},_0x173147=_0x4f3f62||await getActiveFeatureId();if(!_0x173147)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x15814c=await _0x353861['RdfYD'](getFeature,_0x173147),_0x94cbc7=_0x15814c[_0x1f505b(0x1f5)]||[],_0x4c4943=_0x353861['SPUqy'](getCurrentSessionItems,_0x15814c,_0x94cbc7);_0x353861['QQVdM'](_0x4c4943[_0x1f505b(0x1f3)],0x0)&&(console[_0x1f505b(0x261)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x2d38e3=_0x21e2a6['excludeScenarios']??[],_0x45c2b2=_0x2d38e3[_0x1f505b(0x208)](_0x9b9353=>!Number['isInteger'](_0x9b9353)||_0x9b9353<0x1||_0x9b9353>_0x4c4943['length']);if(_0x45c2b2[_0x1f505b(0x1f3)]>0x0){console[_0x1f505b(0x261)](_0x1f505b(0x2b0)+_0x45c2b2['join'](',\x20')),console['log'](_0x1f505b(0x26f));for(let _0x3d4810=0x0;_0x3d4810<_0x4c4943[_0x1f505b(0x1f3)];_0x3d4810++){console[_0x1f505b(0x277)]('\x20\x20'+_0x353861[_0x1f505b(0x20a)](_0x3d4810,0x1)+'.\x20'+_0x4c4943[_0x3d4810][_0x1f505b(0x227)]);}process['exit'](0x1);}const _0xa6ca7e=new Set(_0x2d38e3['map'](_0x181ab6=>_0x181ab6-0x1)),_0xfd7bd3=_0x4c4943[_0x1f505b(0x208)]((_0x5e8201,_0xab0ae)=>!_0xa6ca7e[_0x1f505b(0x23d)](_0xab0ae));_0xfd7bd3[_0x1f505b(0x1f3)]===0x0&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x21e2a6[_0x1f505b(0x293)])await outputJsonReport(_0x173147,_0x15814c,_0xfd7bd3);else{const _0x37a020=await _0x353861[_0x1f505b(0x1fc)](getFeatureReportMarkdown,_0x173147,{'itemIds':_0xfd7bd3[_0x1f505b(0x264)](_0x25416b=>_0x25416b['id'])});process[_0x1f505b(0x23f)]['write'](_0x37a020['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x30bf3b,_0x149204,_0x195864){const _0x1a0084=_0x5334bd,_0x420b8d={'zWmKf':function(_0x59d96e,_0x564c44){return _0x59d96e(_0x564c44);},'CAoww':function(_0xffd8e3,_0x31f6b3){return _0xffd8e3>_0x31f6b3;},'BoDTo':function(_0x56d071,_0x50e762){return _0x56d071===_0x50e762;},'TVcNX':function(_0xf4b617,_0x270ade){return _0xf4b617(_0x270ade);},'pGCji':function(_0x563a7b,_0x4704c6,_0x133b66){return _0x563a7b(_0x4704c6,_0x133b66);},'VjKdP':function(_0x520883){return _0x520883();},'ZHvCv':function(_0x36052d,_0x3dbae0){return _0x36052d+_0x3dbae0;}},_0x237056=_0x420b8d['VjKdP'](getApiBaseUrl),_0x2d2b17=await getFeatureReport(_0x30bf3b),_0x57084a=new Map(_0x2d2b17[_0x1a0084(0x1f5)]['map'](_0x48ad3e=>[_0x48ad3e['id'],_0x48ad3e])),_0x1d92c2=await Promise['all'](_0x195864['map'](async _0x147ee4=>{const _0x60c49=_0x1a0084,_0x4b2913=_0x57084a['get'](_0x147ee4['id']),_0x583006=_0x4b2913?.[_0x60c49(0x1e8)]??null;let _0x2c3bec=[];if(_0x147ee4[_0x60c49(0x24e)])try{const {steps:_0x2a4a7b}=await _0x420b8d[_0x60c49(0x242)](getBrowserSessionSteps,_0x147ee4[_0x60c49(0x24e)]);_0x420b8d[_0x60c49(0x2b7)](_0x2a4a7b[_0x60c49(0x1f3)],0x0)&&(_0x2c3bec=_0x2a4a7b[_0x60c49(0x264)](_0x2ef4f8=>{const _0x25043c=_0x60c49,_0x45d173=_0x2ef4f8[_0x25043c(0x278)]['find'](_0x594eb6=>_0x594eb6[_0x25043c(0x1ea)]===_0x25043c(0x1f4)&&_0x594eb6[_0x25043c(0x288)]==='after')??_0x2ef4f8[_0x25043c(0x278)]['find'](_0x38afcc=>_0x38afcc['assetType']==='screenshot');let _0x25e2a0=null,_0x395b2d=null;if(_0x45d173){const _0x3c7d6b=_0x45d173['storage']['location'][_0x25043c(0x283)]('/')['pop']();_0x25e2a0=_0x237056+'/api/v1/mcp/browser-sessions/'+_0x147ee4[_0x25043c(0x24e)]+'/artifacts/'+_0x3c7d6b,_0x3c7d6b&&(_0x395b2d=_0x3c7d6b['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x395b2d||_0x2ef4f8['description']||_0x2ef4f8['stepName']||_0x25043c(0x28a)+_0x2ef4f8[_0x25043c(0x22d)],'screenshot':_0x25e2a0,'is_key_step':_0x2ef4f8[_0x25043c(0x26d)]};}));}catch{}return _0x420b8d[_0x60c49(0x24c)](_0x2c3bec['length'],0x0)&&_0x583006?.['screenshotUrls']&&(_0x2c3bec=_0x583006['screenshotUrls']['map']((_0x1f0034,_0x20ce65)=>({'description':'Screenshot\x20'+(_0x20ce65+0x1),'screenshot':_0x1f0034,'is_key_step':![]}))),{'description':_0x147ee4['description'],'result':_0x420b8d['TVcNX'](getScenarioResult,_0x147ee4),'rationale':_0x420b8d['pGCji'](getScenarioRationale,_0x147ee4,_0x583006?.['agentResponse']),'steps':_0x2c3bec};})),_0x343ede={'url':_0x149204['dashboardUrl'],'scenarios':_0x1d92c2};process['stdout']['write'](_0x420b8d['ZHvCv'](JSON['stringify'](_0x343ede,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x4b95eb){const _0x33bf57=_0x5334bd,_0xc3476d={'aiqyD':_0x33bf57(0x1fa),'EZxyg':function(_0x2f7583,_0x427ff2){return _0x2f7583(_0x427ff2);},'pSoNs':_0x33bf57(0x27b),'AlCBf':function(_0x10815e,_0x3a8446){return _0x10815e(_0x3a8446);},'oaWGF':'Current\x20session\x20not\x20found.','Qoidt':'completed','rcaSY':'\x0a✅\x20Session\x20is\x20already\x20completed.','PWMzV':'in_progress'},_0x285b31=_0x4b95eb||await getActiveFeatureId();if(!_0x285b31)throw new Error(_0xc3476d['aiqyD']);const _0x3fafa8=await _0xc3476d[_0x33bf57(0x230)](getFeature,_0x285b31);if(!_0x3fafa8['currentSessionId'])throw new Error(_0xc3476d['pSoNs']);const {sessions:_0x4fbbbc}=await _0xc3476d['AlCBf'](listFeatureSessions,_0x285b31),_0x3df7a4=_0x4fbbbc[_0x33bf57(0x236)](_0x56fa6e=>_0x56fa6e['id']===_0x3fafa8[_0x33bf57(0x285)]);if(!_0x3df7a4)throw new Error(_0xc3476d[_0x33bf57(0x235)]);if(_0x3df7a4['status']===_0xc3476d[_0x33bf57(0x280)]){console['log'](_0xc3476d['rcaSY']);return;}if(_0x3df7a4['status']!==_0xc3476d['PWMzV'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x3df7a4[_0x33bf57(0x21c)]);console['log'](_0x33bf57(0x255)),await concludeSession(_0x285b31,_0x3fafa8[_0x33bf57(0x285)]),console['log']('\x0a✅\x20Session\x20'+_0x3df7a4['iteration']+'\x20concluded.'),console['log'](_0x33bf57(0x269));}export async function featureSessions(_0x4bd3a3){const _0x3e0e47=_0x5334bd,_0x408b8c={'ZuGzs':function(_0x5a5bb0){return _0x5a5bb0();},'lyrJp':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','DkwoY':function(_0xa72351,_0x4838f9){return _0xa72351(_0x4838f9);},'jpXPj':function(_0x12b998,_0x8fc17d){return _0x12b998===_0x8fc17d;},'frCgl':function(_0x27c4ee,_0x430cf5){return _0x27c4ee===_0x430cf5;},'yUpsB':'completed','yoOVP':function(_0x985420,_0x3f6b3a){return _0x985420===_0x3f6b3a;},'zpUNt':'in_progress'},_0x1ef760=_0x4bd3a3||await _0x408b8c['ZuGzs'](getActiveFeatureId);if(!_0x1ef760)throw new Error(_0x408b8c[_0x3e0e47(0x211)]);const _0x5addc5=await _0x408b8c['DkwoY'](getFeature,_0x1ef760);console[_0x3e0e47(0x277)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x5addc5['name']+'\x0a');const {sessions:_0x47f1c9}=await _0x408b8c[_0x3e0e47(0x1e9)](listFeatureSessions,_0x1ef760);if(_0x408b8c[_0x3e0e47(0x22e)](_0x47f1c9['length'],0x0)){console[_0x3e0e47(0x277)]('No\x20sessions\x20found.');return;}for(const _0x4a5197 of _0x47f1c9){const _0x1d5e77=_0x408b8c['frCgl'](_0x4a5197[_0x3e0e47(0x21c)],_0x408b8c['yUpsB'])?'✅':_0x408b8c[_0x3e0e47(0x217)](_0x4a5197[_0x3e0e47(0x21c)],_0x408b8c['zpUNt'])?'🔄':'▶️';console['log'](_0x1d5e77+_0x3e0e47(0x202)+_0x4a5197['iteration']+'\x20('+_0x4a5197['id']+')'),console['log'](_0x3e0e47(0x29e)+_0x4a5197['status']),console[_0x3e0e47(0x277)]('\x20\x20\x20Created:\x20'+new Date(_0x4a5197['createdAt'])[_0x3e0e47(0x263)]()),_0x4a5197[_0x3e0e47(0x267)]&&console['log'](_0x3e0e47(0x262)+new Date(_0x4a5197[_0x3e0e47(0x267)])[_0x3e0e47(0x263)]()),console[_0x3e0e47(0x277)]('');}}export async function featureAddScenario(_0x2b03dd,_0x3a42f8){const _0xf9c77c=_0x5334bd,_0x39bbad={'BfSvf':_0xf9c77c(0x1fa),'YSfta':function(_0x4c1a8f,_0x4bf612,_0x47450a){return _0x4c1a8f(_0x4bf612,_0x47450a);}},_0x3e130d=_0x3a42f8||await getActiveFeatureId();if(!_0x3e130d)throw new Error(_0x39bbad['BfSvf']);const _0x51df52=await getFeature(_0x3e130d);if(_0x51df52[_0xf9c77c(0x2af)]&&!_0x51df52[_0xf9c77c(0x2af)][_0xf9c77c(0x25d)])throw new Error(_0xf9c77c(0x246)+_0x51df52['dashboardUrl']);await _0x39bbad[_0xf9c77c(0x210)](createChecklistItem,_0x3e130d,_0x2b03dd);const _0x25be85=await getFeature(_0x3e130d);console[_0xf9c77c(0x277)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x25be85,_0x25be85[_0xf9c77c(0x1f5)]);}export async function featureEditScenario(_0xe053e1,_0x32eeb9){const _0x4164a6=_0x5334bd,_0x112f5a={'BDKJd':function(_0x650e3b){return _0x650e3b();},'hPnDu':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','FFXNe':function(_0x4397a3,_0x5c77c8){return _0x4397a3(_0x5c77c8);},'RONWV':function(_0x3dc823,_0x32c44a){return _0x3dc823===_0x32c44a;},'ylZcR':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','oBEDK':'\x0aAvailable\x20scenarios:','CxWfz':function(_0x3bb8a1,_0xb2724f){return _0x3bb8a1<_0xb2724f;},'Dwmki':function(_0x2d078c,_0x34e027){return _0x2d078c+_0x34e027;},'FKTKN':function(_0x103b5b,_0x683968){return _0x103b5b-_0x683968;},'TcBAE':function(_0x15db95,_0x53dbf8){return _0x15db95(_0x53dbf8);},'zfEEG':function(_0x424ae7,_0x14029b,_0x1172ef){return _0x424ae7(_0x14029b,_0x1172ef);}},_0x3322fa=_0x32eeb9['id']||await _0x112f5a[_0x4164a6(0x27f)](getActiveFeatureId);!_0x3322fa&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x4164a6(0x261)](_0x112f5a['hPnDu']),process['exit'](0x1));const _0x264719=await _0x112f5a['FFXNe'](getFeature,_0x3322fa);_0x264719[_0x4164a6(0x2af)]&&!_0x264719['latestReview'][_0x4164a6(0x25d)]&&(console[_0x4164a6(0x261)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x4164a6(0x261)](_0x4164a6(0x2ae)),console['error']('\x20\x20'+_0x264719['dashboardUrl']),process['exit'](0x1));const _0x416927=_0x264719[_0x4164a6(0x1f5)]||[];_0x416927['length']===0x0&&(console[_0x4164a6(0x261)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process[_0x4164a6(0x23b)](0x1));if(_0x112f5a[_0x4164a6(0x20c)](_0x32eeb9[_0x4164a6(0x289)],undefined)){console['error'](_0x112f5a[_0x4164a6(0x1e7)]),console['log'](_0x112f5a['oBEDK']);for(let _0x16f1b5=0x0;_0x112f5a['CxWfz'](_0x16f1b5,_0x416927['length']);_0x16f1b5++){console['log']('\x20\x20'+_0x112f5a[_0x4164a6(0x290)](_0x16f1b5,0x1)+'.\x20'+_0x416927[_0x16f1b5][_0x4164a6(0x227)]);}process[_0x4164a6(0x23b)](0x1);}const _0x5e9917=_0x112f5a['FKTKN'](_0x32eeb9[_0x4164a6(0x289)],0x1);if(_0x112f5a['CxWfz'](_0x5e9917,0x0)||_0x5e9917>=_0x416927[_0x4164a6(0x1f3)]){console[_0x4164a6(0x261)](_0x4164a6(0x29d)+_0x32eeb9['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x416927['length']+_0x4164a6(0x2b8)),console[_0x4164a6(0x277)](_0x4164a6(0x26f));for(let _0x5284f2=0x0;_0x5284f2<_0x416927[_0x4164a6(0x1f3)];_0x5284f2++){console[_0x4164a6(0x277)]('\x20\x20'+_0x112f5a['Dwmki'](_0x5284f2,0x1)+'.\x20'+_0x416927[_0x5284f2][_0x4164a6(0x227)]);}process[_0x4164a6(0x23b)](0x1);}const _0xdabcbf=_0x416927[_0x5e9917];await updateChecklistItem(_0x3322fa,_0xdabcbf['id'],{'description':_0xe053e1});const _0x14c2a7=await _0x112f5a[_0x4164a6(0x299)](getFeature,_0x3322fa);console[_0x4164a6(0x277)](_0x4164a6(0x212)),_0x112f5a['zfEEG'](displayFeature,_0x14c2a7,_0x14c2a7['checklistItems']);}async function downloadFeedbackImage(_0x47f28c,_0x2cdb5a){const _0x4ebbe3=_0x5334bd,_0x1f4881={'MFeQm':function(_0x3691b1,_0x20a073,_0x1aa240){return _0x3691b1(_0x20a073,_0x1aa240);},'dVFZr':'feedback-images','cpTgr':function(_0x21c7a4,_0x40579e,_0x3ba238){return _0x21c7a4(_0x40579e,_0x3ba238);},'fpppr':function(_0x248dea,_0x574e48){return _0x248dea(_0x574e48);}};try{const _0x4d295b=_0x1f4881['MFeQm'](join,getRangerDir(),_0x1f4881['dVFZr']);await _0x1f4881[_0x4ebbe3(0x201)](mkdir,_0x4d295b,{'recursive':!![]});const _0xe8aa69=_0x1f4881['MFeQm'](join,_0x4d295b,_0x4ebbe3(0x1e5)+_0x2cdb5a+'.png'),_0x433016=await _0x1f4881['fpppr'](fetch,_0x47f28c);if(!_0x433016['ok'])return null;const _0x1f5737=Buffer[_0x4ebbe3(0x231)](await _0x433016[_0x4ebbe3(0x251)]());return await _0x1f4881['cpTgr'](writeFile,_0xe8aa69,_0x1f5737),_0xe8aa69;}catch{return null;}}export async function featureGetReview(_0x582342){const _0x5a0346=_0x5334bd,_0x2150ca={'MUyyY':function(_0x45f724,_0x2e5db5){return _0x45f724===_0x2e5db5;},'AOhwA':function(_0x16cd8c,_0x36af6c){return _0x16cd8c<_0x36af6c;},'PoxqY':_0x5a0346(0x1e3),'HNbuJ':_0x5a0346(0x22a),'uXKeq':'Unknown','qItif':'point','FJMFm':function(_0x41542f,_0x1ffd30){return _0x41542f+_0x1ffd30;}},_0x274aa3=_0x582342||await getActiveFeatureId();if(!_0x274aa3)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 _0x2cbbac=await getFeature(_0x274aa3),{items:_0x9cbd50}=await getActionItems(_0x274aa3);console[_0x5a0346(0x277)]('\x0a📋\x20Feedback\x20for:\x20'+_0x2cbbac[_0x5a0346(0x29f)]+'\x20('+_0x2cbbac['id']+')\x0a');if(_0x2150ca['MUyyY'](_0x9cbd50['length'],0x0)){console['log'](_0x5a0346(0x27c));return;}for(let _0x5a9f57=0x0;_0x2150ca['AOhwA'](_0x5a9f57,_0x9cbd50[_0x5a0346(0x1f3)]);_0x5a9f57++){const _0x17dc20=_0x9cbd50[_0x5a9f57],_0xf0200e=_0x17dc20[_0x5a0346(0x2aa)]>0x1?'\x20(v'+_0x17dc20['version']+')':'',_0x4829a9=await getItemFeedback(_0x274aa3,_0x17dc20['id']);if(_0x4829a9[_0x5a0346(0x272)]['length']>0x0){console[_0x5a0346(0x277)](_0x5a0346(0x27e)+(_0x5a9f57+0x1)+_0x5a0346(0x2b4)+_0x17dc20[_0x5a0346(0x227)]+'\x22'+_0xf0200e+'\x20—\x20'+_0x4829a9[_0x5a0346(0x272)]['length']+_0x5a0346(0x252));for(const _0x397196 of _0x4829a9['unaddressedComments']){const _0x35f0ca=new Date(_0x397196['createdAt'])['toLocaleDateString'](_0x2150ca['PoxqY'],{'month':_0x5a0346(0x209),'day':_0x2150ca['HNbuJ']}),_0x104e24=_0x397196['authorName']||_0x397196['authorEmail']||_0x2150ca['uXKeq'];console['log'](_0x5a0346(0x24a)+_0x104e24+'\x20('+_0x35f0ca+_0x5a0346(0x1f1)+_0x397196[_0x5a0346(0x28c)]+'\x22');if(_0x397196['assetUrl']){const _0x3323c5=await downloadFeedbackImage(_0x397196[_0x5a0346(0x249)],_0x397196['id']);_0x3323c5&&console[_0x5a0346(0x277)](_0x5a0346(0x21a)+_0x3323c5);}if(_0x397196[_0x5a0346(0x2ad)]){const _0x48649e=_0x397196['domRef'][_0x5a0346(0x229)][_0x5a0346(0x283)](_0x5a0346(0x244))[_0x5a0346(0x1ff)]()?.['split'](':')[0x0]||'element',_0x9bdd63=_0x397196[_0x5a0346(0x2ad)][_0x5a0346(0x2a0)]?'\x20\x22'+_0x397196['domRef']['textContent'][_0x5a0346(0x2b2)](0x0,0x3c)+'\x22':'';console[_0x5a0346(0x277)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x48649e+'>'+_0x9bdd63),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x397196[_0x5a0346(0x2ad)][_0x5a0346(0x229)]);}else{if(_0x397196[_0x5a0346(0x24d)]){const _0x3ecb98=_0x397196[_0x5a0346(0x24d)]['coordinates'];_0x397196['spatial'][_0x5a0346(0x23a)]===_0x2150ca['qItif']&&_0x3ecb98[_0x5a0346(0x1f3)]>=0x2?console['log'](_0x5a0346(0x1ec)+_0x3ecb98[0x0]['toFixed'](0x2)+',\x20'+_0x3ecb98[0x1]['toFixed'](0x2)+')'):console[_0x5a0346(0x277)](_0x5a0346(0x233)+_0x397196['spatial']['type']+_0x5a0346(0x1e6)+_0x3ecb98['map'](_0x1164c4=>_0x1164c4['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x4829a9[_0x5a0346(0x257)]){console[_0x5a0346(0x277)]('\x20\x20Expected\x20flow:');for(const _0x2a4c73 of _0x4829a9[_0x5a0346(0x257)]['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x2a4c73);}}}else console['log'](_0x5a0346(0x27e)+_0x2150ca['FJMFm'](_0x5a9f57,0x1)+_0x5a0346(0x2b4)+_0x17dc20[_0x5a0346(0x227)]+'\x22'+_0xf0200e+'\x20—\x20no\x20comments'),console[_0x5a0346(0x277)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x39385b){const _0x41a183=_0x5334bd,_0x58dc49={'xIyTs':function(_0x383313){return _0x383313();},'vZwOe':_0x41a183(0x1fa),'qIBmI':function(_0x57ec59,_0x1a9578){return _0x57ec59(_0x1a9578);},'yvQOu':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x243f3d=_0x39385b||await _0x58dc49[_0x41a183(0x20d)](getActiveFeatureId);if(!_0x243f3d)throw new Error(_0x58dc49[_0x41a183(0x295)]);const _0x282144=await _0x58dc49[_0x41a183(0x29a)](getFeature,_0x243f3d);await softDeleteFeature(_0x243f3d),console[_0x41a183(0x277)](_0x41a183(0x225)+_0x282144[_0x41a183(0x29f)]+'\x20('+_0x243f3d+')'),console['log'](_0x58dc49[_0x41a183(0x259)]+_0x243f3d);}export async function featureRestore(_0x433a57){const _0x1aaf2c=_0x5334bd,_0x4e388f={'NcbKr':function(_0x4b2b2a,_0x40141,_0x1aa347){return _0x4b2b2a(_0x40141,_0x1aa347);}};await restoreFeature(_0x433a57);const _0x20657f=await getFeature(_0x433a57);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x20657f[_0x1aaf2c(0x29f)]+'\x20('+_0x433a57+')'),_0x4e388f[_0x1aaf2c(0x25e)](displayFeature,_0x20657f,_0x20657f[_0x1aaf2c(0x1f5)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x37cc(){const _0x1bd641=['2068UysMXC','Unknown\x20hook:\x20','join','keys','18RzirGp','SIGTERM','160778ZvbXGz','110222zksmIc','4798990kzqoJD','4814952WelTGr','11OhCKur','4413VSmsZX','exit','edsKx','19JmOrvb','error','2293284sYBmhx','5113780HVWrad','NCbCo','AnVHv'];_0x37cc=function(){return _0x1bd641;};return _0x37cc();}(function(_0xc21f1c,_0x33d65f){const _0xe60611=_0x3ce7,_0x399f66=_0xc21f1c();while(!![]){try{const _0x3af029=-parseInt(_0xe60611(0x1ad))/0x1*(parseInt(_0xe60611(0x1b9))/0x2)+-parseInt(_0xe60611(0x1aa))/0x3*(parseInt(_0xe60611(0x1b3))/0x4)+parseInt(_0xe60611(0x1b0))/0x5+parseInt(_0xe60611(0x1af))/0x6+parseInt(_0xe60611(0x1ba))/0x7+-parseInt(_0xe60611(0x1bc))/0x8*(-parseInt(_0xe60611(0x1b7))/0x9)+parseInt(_0xe60611(0x1bb))/0xa*(parseInt(_0xe60611(0x1a9))/0xb);if(_0x3af029===_0x33d65f)break;else _0x399f66['push'](_0x399f66['shift']());}catch(_0x1427aa){_0x399f66['push'](_0x399f66['shift']());}}}(_0x37cc,0xc7547));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function _0x3ce7(_0x46b142,_0x5b28d1){_0x46b142=_0x46b142-0x1a9;const _0x37cc66=_0x37cc();let _0x3ce70e=_0x37cc66[_0x46b142];return _0x3ce70e;}function installCancellationHandlers(){const _0x526f1a=_0x3ce7,_0x5dbf5f={'AnVHv':'SIGINT','edsKx':_0x526f1a(0x1b8),'WDXpc':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x53c54c=()=>{const _0x55067a=_0x526f1a;process[_0x55067a(0x1ab)](0x0);};process['once'](_0x5dbf5f[_0x526f1a(0x1b2)],_0x53c54c),process['once'](_0x5dbf5f[_0x526f1a(0x1ac)],_0x53c54c),process['once'](_0x5dbf5f['WDXpc'],_0x53c54c),cancellationHandlersInstalled=!![];}export async function hook(_0x569178,_0x157226){const _0x6e5147=_0x3ce7,_0x57b7ec={'NCbCo':function(_0x30a88d){return _0x30a88d();},'YdboJ':function(_0x1e558d,_0x3a7a3e){return _0x1e558d(_0x3a7a3e);}};_0x57b7ec[_0x6e5147(0x1b1)](installCancellationHandlers);const _0x578d1b=HOOKS[_0x569178];if(!_0x578d1b){const _0x26df6d=Object[_0x6e5147(0x1b6)](HOOKS)[_0x6e5147(0x1b5)](',\x20');console[_0x6e5147(0x1ae)](_0x6e5147(0x1b4)+_0x569178),console[_0x6e5147(0x1ae)]('Valid\x20hooks:\x20'+_0x26df6d),process[_0x6e5147(0x1ab)](0x1);}await _0x57b7ec['YdboJ'](_0x578d1b,_0x157226);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1904b2,_0x22600b){const _0x16daec=_0xbd62,_0x3526a7=_0x1904b2();while(!![]){try{const _0x2c7be7=-parseInt(_0x16daec(0x170))/0x1*(-parseInt(_0x16daec(0x169))/0x2)+parseInt(_0x16daec(0x16f))/0x3*(-parseInt(_0x16daec(0x171))/0x4)+-parseInt(_0x16daec(0x16c))/0x5+parseInt(_0x16daec(0x168))/0x6*(-parseInt(_0x16daec(0x16e))/0x7)+parseInt(_0x16daec(0x16d))/0x8+parseInt(_0x16daec(0x16a))/0x9+parseInt(_0x16daec(0x172))/0xa;if(_0x2c7be7===_0x22600b)break;else _0x3526a7['push'](_0x3526a7['shift']());}catch(_0x551897){_0x3526a7['push'](_0x3526a7['shift']());}}}(_0x4669,0x39de4));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';function _0xbd62(_0x1d4c29,_0x314c9d){_0x1d4c29=_0x1d4c29-0x167;const _0x466949=_0x4669();let _0xbd62a6=_0x466949[_0x1d4c29];return _0xbd62a6;}function _0x4669(){const _0x2ceaab=['4OdXSVM','307647VHaaMB','session_id','1604505zhbzJe','213136HjmNoI','7WWhIto','373473QVpEye','87473sUaJOF','12AELNOf','7510240Haqkrx','sGbaT','332358KRClfy'];_0x4669=function(){return _0x2ceaab;};return _0x4669();}export async function autoPrompt(){const _0x450eb1=_0xbd62,_0x569ae5={'sGbaT':function(_0x55e54d,_0x559ffa){return _0x55e54d(_0x559ffa);}},_0x4c5c34=await readHookInput(),_0x301e2d=_0x4c5c34?.[_0x450eb1(0x16b)];if(!_0x301e2d)return;if(_0x569ae5[_0x450eb1(0x167)](isSessionEnabled,_0x301e2d)||hasSessionBeenPrompted(_0x301e2d))return;markSessionPrompted(_0x301e2d),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x20ce(){const _0x4bf295=['19775CpsLgY','.\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`.','4855128aicLFr','14aRvGRZ','13uGLOlQ','8jfECSP','master','10CxPecH','jzdVN','main','1555638jpCTYq','PoGVJ','9066kMNZCQ','24796zyZOqA','2927496BeXtja','189JaBUwC','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','125yYGNyP','\x20and\x20branch\x20\x27','459063zofgvk'];_0x20ce=function(){return _0x4bf295;};return _0x20ce();}(function(_0x545f9f,_0x17905f){const _0xfb4ff2=_0x32b8,_0x48359e=_0x545f9f();while(!![]){try{const _0x337e49=parseInt(_0xfb4ff2(0x1b6))/0x1*(-parseInt(_0xfb4ff2(0x1b9))/0x2)+parseInt(_0xfb4ff2(0x1b1))/0x3*(-parseInt(_0xfb4ff2(0x1af))/0x4)+-parseInt(_0xfb4ff2(0x1b3))/0x5*(parseInt(_0xfb4ff2(0x1ae))/0x6)+parseInt(_0xfb4ff2(0x1ac))/0x7*(parseInt(_0xfb4ff2(0x1bb))/0x8)+parseInt(_0xfb4ff2(0x1b5))/0x9*(-parseInt(_0xfb4ff2(0x1a9))/0xa)+parseInt(_0xfb4ff2(0x1b0))/0xb+parseInt(_0xfb4ff2(0x1b8))/0xc*(parseInt(_0xfb4ff2(0x1ba))/0xd);if(_0x337e49===_0x17905f)break;else _0x48359e['push'](_0x48359e['shift']());}catch(_0x2da004){_0x48359e['push'](_0x48359e['shift']());}}}(_0x20ce,0x43314));function _0x32b8(_0x54230d,_0x22d920){_0x54230d=_0x54230d-0x1a9;const _0x20cedc=_0x20ce();let _0x32b8a5=_0x20cedc[_0x54230d];return _0x32b8a5;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x2ddd6a){const _0x3f7d3e=_0x32b8,_0x2c502e={'PoGVJ':function(_0x260043){return _0x260043();},'jzdVN':function(_0x29e14f,_0x2bebad){return _0x29e14f!==_0x2bebad;},'suEgC':function(_0x5e4ac2,_0x3c193a){return _0x5e4ac2!==_0x3c193a;},'SlwHC':function(_0xda6a87,_0x2d7ee6){return _0xda6a87(_0x2d7ee6);},'blEDq':_0x3f7d3e(0x1ab),'dgLCR':'master'},_0x9f8705=_0x2ddd6a||process['env']['CLAUDE_SESSION_ID']||'';_0x9f8705&&disableSession(_0x9f8705);const _0x12e583=_0x2c502e[_0x3f7d3e(0x1ad)](getCurrentBranch);_0x12e583&&_0x2c502e[_0x3f7d3e(0x1aa)](_0x12e583,'main')&&_0x2c502e['suEgC'](_0x12e583,_0x3f7d3e(0x1bc))&&_0x2c502e['SlwHC'](disableBranch,_0x12e583),printBlock(_0x3f7d3e(0x1b2)+(_0x12e583&&_0x12e583!==_0x2c502e['blEDq']&&_0x12e583!==_0x2c502e['dgLCR']?_0x3f7d3e(0x1b4)+_0x12e583+'\x27':'')+_0x3f7d3e(0x1b7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x121879,_0x57c9d2){const _0x288720=_0x1826,_0x199c4b=_0x121879();while(!![]){try{const _0xdb9b60=-parseInt(_0x288720(0x1ae))/0x1+parseInt(_0x288720(0x1af))/0x2+-parseInt(_0x288720(0x1a6))/0x3*(-parseInt(_0x288720(0x19f))/0x4)+-parseInt(_0x288720(0x1a7))/0x5+parseInt(_0x288720(0x1aa))/0x6*(parseInt(_0x288720(0x1ad))/0x7)+parseInt(_0x288720(0x1a8))/0x8+-parseInt(_0x288720(0x1ab))/0x9*(parseInt(_0x288720(0x1a5))/0xa);if(_0xdb9b60===_0x57c9d2)break;else _0x199c4b['push'](_0x199c4b['shift']());}catch(_0x1cb08a){_0x199c4b['push'](_0x199c4b['shift']());}}}(_0x531a,0x3b466));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x1826(_0x1ee2da,_0x344813){_0x1ee2da=_0x1ee2da-0x19f;const _0x531a36=_0x531a();let _0x1826f4=_0x531a36[_0x1ee2da];return _0x1826f4;}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x1f4d52){const _0x4d92e0=_0x1826,_0x4f6399={'ywdwE':function(_0x264a01,_0x3d6927){return _0x264a01(_0x3d6927);},'sZOaK':_0x4d92e0(0x1a9),'gXaOJ':_0x4d92e0(0x1a3),'BwzuG':'master'},_0xac651b=_0x1f4d52||process['env'][_0x4d92e0(0x1ac)]||'',_0x35752f=_0x4f6399[_0x4d92e0(0x1a4)](Boolean,_0x1f4d52),_0x654233=await getToken();if(!_0x654233){const _0x4c159c=_0x35752f?'ranger\x20setup\x20--opencode':'ranger\x20setup',_0xabd47a=_0x35752f?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x4f6399[_0x4d92e0(0x1b0)];printBlock(_0x4d92e0(0x1a1)+_0x4c159c+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0xabd47a);return;}try{await update();}catch{}_0xac651b&&enableSession(_0xac651b);const _0x20e9ca=getCurrentBranch(),_0x43e535=_0x20e9ca&&_0x20e9ca!==_0x4f6399[_0x4d92e0(0x1a2)]&&_0x20e9ca!==_0x4f6399[_0x4d92e0(0x1a0)]?'\x0a\x0a**Branch\x20\x27'+_0x20e9ca+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x4e02cf=getRangerSkillContent();_0x4f6399['ywdwE'](printBlock,'#\x20RANGER\x20ENABLED'+_0x43e535+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x4e02cf+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}function _0x531a(){const _0x3e1924=['36tiEcMq','27yZbQoy','CLAUDE_SESSION_ID','549668XlKmzG','26398jcdQPE','406202rXDBme','sZOaK','312PjzFAs','BwzuG','#\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`','gXaOJ','main','ywdwE','2554030AnqtIp','3426tqbMWH','851320lVmynC','3538720ktUDOJ','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.'];_0x531a=function(){return _0x3e1924;};return _0x531a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x42ce(){const _0x190086=['===\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===','292000NkGJQc','185156aKjQnl','639iLbyoH','8494ukiskv','357132BuxtxT','3883656vKtflk','38750whXBsF','44DUGBjp','2480340YYCjOI','27JDphFs','148jWXCdD','14uIFXrS'];_0x42ce=function(){return _0x190086;};return _0x42ce();}(function(_0x4ac74b,_0x911984){const _0x444a6a=_0xb94a,_0x191678=_0x4ac74b();while(!![]){try{const _0x41e94f=-parseInt(_0x444a6a(0x112))/0x1*(-parseInt(_0x444a6a(0x118))/0x2)+parseInt(_0x444a6a(0x111))/0x3*(-parseInt(_0x444a6a(0x116))/0x4)+parseInt(_0x444a6a(0x115))/0x5+parseInt(_0x444a6a(0x10c))/0x6*(parseInt(_0x444a6a(0x113))/0x7)+parseInt(_0x444a6a(0x10d))/0x8+-parseInt(_0x444a6a(0x117))/0x9*(-parseInt(_0x444a6a(0x10e))/0xa)+parseInt(_0x444a6a(0x10f))/0xb*(-parseInt(_0x444a6a(0x110))/0xc);if(_0x41e94f===_0x911984)break;else _0x191678['push'](_0x191678['shift']());}catch(_0x4d3896){_0x191678['push'](_0x191678['shift']());}}}(_0x42ce,0x4ee81));function _0xb94a(_0x57e094,_0x7b7876){_0x57e094=_0x57e094-0x10c;const _0x42cec7=_0x42ce();let _0xb94aea=_0x42cec7[_0x57e094];return _0xb94aea;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x4a8924){const _0x588e51=_0xb94a,_0x3cd82e=await getEnabledSessionId(_0x4a8924);if(!_0x3cd82e)return;printBlock(_0x588e51(0x114));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4cc4ad,_0x5ec7d5){var _0x22ae5a=_0x1e5d,_0x1d7011=_0x4cc4ad();while(!![]){try{var _0x54d386=-parseInt(_0x22ae5a(0x14a))/0x1+-parseInt(_0x22ae5a(0x148))/0x2*(parseInt(_0x22ae5a(0x146))/0x3)+parseInt(_0x22ae5a(0x145))/0x4*(parseInt(_0x22ae5a(0x143))/0x5)+-parseInt(_0x22ae5a(0x142))/0x6+-parseInt(_0x22ae5a(0x144))/0x7+parseInt(_0x22ae5a(0x149))/0x8*(-parseInt(_0x22ae5a(0x14b))/0x9)+parseInt(_0x22ae5a(0x147))/0xa;if(_0x54d386===_0x5ec7d5)break;else _0x1d7011['push'](_0x1d7011['shift']());}catch(_0x4793f2){_0x1d7011['push'](_0x1d7011['shift']());}}}(_0x5ad9,0x1e73d));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x1e5d(_0x369aa5,_0x2bfe3f){_0x369aa5=_0x369aa5-0x142;var _0x5ad9a4=_0x5ad9();var _0x1e5db=_0x5ad9a4[_0x369aa5];return _0x1e5db;}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';function _0x5ad9(){var _0x4530c8=['6372850TAedrK','2hIxzyP','737816URMXXa','167557ZBlhwo','9sGvYAn','841926IJpLyd','66310tfVBDj','329721IRbxGG','20BVnJYt','394962GtgjiO'];_0x5ad9=function(){return _0x4530c8;};return _0x5ad9();}export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|