@ranger-testing/ranger-cli 2.5.4-alpha.071b7bd-1 → 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 -0
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -0
- package/build/commands/utils/cloudProfileSession.js +1 -0
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -0
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -0
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -0
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -0
- package/build/commands/utils/resolveProfileUrl.js +1 -0
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +1 -1
- package/package.json +6 -2
|
@@ -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
|
-
const _0x164f0d=_0x2c78;(function(_0x5639db,_0x5a255e){const _0x41b730=_0x2c78,_0x21e93b=_0x5639db();while(!![]){try{const _0x1a9059=-parseInt(_0x41b730(0xb4))/0x1+-parseInt(_0x41b730(0xb9))/0x2+-parseInt(_0x41b730(0xba))/0x3*(parseInt(_0x41b730(0xc5))/0x4)+-parseInt(_0x41b730(0xb8))/0x5+parseInt(_0x41b730(0xc2))/0x6*(-parseInt(_0x41b730(0xc6))/0x7)+parseInt(_0x41b730(0xbe))/0x8*(-parseInt(_0x41b730(0xcc))/0x9)+parseInt(_0x41b730(0xb6))/0xa;if(_0x1a9059===_0x5a255e)break;else _0x21e93b['push'](_0x21e93b['shift']());}catch(_0x3947f5){_0x21e93b['push'](_0x21e93b['shift']());}}}(_0x536b,0xe2ef0));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x164f0d(0xbb)];function parseValue(_0x29e788,_0x17df21){const _0x600c93=_0x164f0d,_0x21247e={'shTFV':function(_0x1e3f10,_0x5ef88a){return _0x1e3f10===_0x5ef88a;},'GjnFV':_0x600c93(0xce)};if(BOOLEAN_KEYS[_0x600c93(0xbd)](_0x29e788)){if(_0x21247e['shTFV'](_0x17df21,_0x21247e['GjnFV']))return!![];if(_0x21247e['shTFV'](_0x17df21,_0x600c93(0xc8)))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x29e788+_0x600c93(0xc0));}return _0x17df21;}function _0x536b(){const _0x1a3705=['includes','1658744pnfffU','iBsRB',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','Epqwu','973374yLqABC','aUOLo','mgvhG','435980ObZvGU','7qDIFXj','\x22\x20not\x20found','false','wpFvP','IgVkJ','sills','45zKRdeC','pzZoU','true','log','383108icSXTK','\x22\x20does\x20not\x20exist.','51830060upoamA','Profile\x20\x22','1638910kXwyGj','3161374oGLGdB','21aFkgoK','allowInsecureLocalhost','stringify'];_0x536b=function(){return _0x1a3705;};return _0x536b();}export async function configSet(_0x368604,_0x452c78,_0x169095){const _0x5c1b55=_0x164f0d,_0x48df52={'uLDhn':function(_0xd7d6db,_0x3780a5){return _0xd7d6db(_0x3780a5);},'sills':function(_0x3eeb88,_0x539e0b,_0x4af94d){return _0x3eeb88(_0x539e0b,_0x4af94d);}},_0x119d15=_0x48df52['uLDhn'](getEnvDir,_0x368604);if(!_0x48df52['uLDhn'](existsSync,_0x119d15))throw new Error('Profile\x20\x22'+_0x368604+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x368604);const _0x47b066=await loadSettings(_0x368604),_0x1ddcda=parseValue(_0x452c78,_0x169095);setNestedValue(_0x47b066,_0x452c78,_0x1ddcda),await _0x48df52[_0x5c1b55(0xcb)](saveSettings,_0x368604,_0x47b066),console['log']('Set\x20'+_0x452c78+'\x20=\x20'+_0x1ddcda);}function _0x2c78(_0x5b595a,_0x3f3a2e){_0x5b595a=_0x5b595a-0xb4;const _0x536b1a=_0x536b();let _0x2c7814=_0x536b1a[_0x5b595a];return _0x2c7814;}export async function configGet(_0x12be01,_0x323b60){const _0x1cb8b0=_0x164f0d,_0x195d19={'fHNVm':function(_0x2a07f8,_0x4df760){return _0x2a07f8(_0x4df760);},'aUOLo':function(_0x3a7cbf,_0x48a9ef,_0x5bb8bf){return _0x3a7cbf(_0x48a9ef,_0x5bb8bf);},'OaFpV':function(_0x2d01eb,_0x344688){return _0x2d01eb===_0x344688;},'pzZoU':'object'},_0xcc09a=getEnvDir(_0x12be01);if(!_0x195d19['fHNVm'](existsSync,_0xcc09a))throw new Error(_0x1cb8b0(0xb7)+_0x12be01+'\x22\x20does\x20not\x20exist.');const _0x2bb471=await _0x195d19['fHNVm'](loadSettings,_0x12be01),_0x5ddace=_0x195d19[_0x1cb8b0(0xc3)](getNestedValue,_0x2bb471,_0x323b60);if(_0x5ddace===undefined)console[_0x1cb8b0(0xcf)]('(not\x20set)');else _0x195d19['OaFpV'](typeof _0x5ddace,_0x195d19[_0x1cb8b0(0xcd)])?console[_0x1cb8b0(0xcf)](JSON[_0x1cb8b0(0xbc)](_0x5ddace,null,0x2)):console[_0x1cb8b0(0xcf)](_0x5ddace);}export async function configList(_0x4e77de){const _0x4eca49=_0x164f0d,_0x2dc5a2={'IgVkJ':function(_0x385ec0,_0x7afed9){return _0x385ec0(_0x7afed9);},'mgvhG':function(_0x59c0d5,_0x9b51b){return _0x59c0d5(_0x9b51b);},'wpFvP':function(_0x2b2af2,_0x959b4c){return _0x2b2af2(_0x959b4c);}},_0x2f92a7=getSettingsPath(_0x4e77de);if(!_0x2dc5a2[_0x4eca49(0xca)](existsSync,_0x2f92a7)){const _0x32805d=_0x2dc5a2['IgVkJ'](getEnvDir,_0x4e77de);if(!_0x2dc5a2[_0x4eca49(0xc4)](existsSync,_0x32805d))throw new Error(_0x4eca49(0xb7)+_0x4e77de+_0x4eca49(0xb5));console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x4e77de+'\x22');return;}const _0x2e060c=await loadSettings(_0x4e77de),_0x341052=_0x2dc5a2[_0x4eca49(0xc9)](formatSettings,_0x2e060c);!_0x341052?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x4e77de+'\x22'):console['log'](_0x341052);}export async function configUnset(_0x21095b,_0x3804cd){const _0x1f65b2=_0x164f0d,_0x25bede={'SPTPV':function(_0x4034d3,_0x258016){return _0x4034d3(_0x258016);},'iBsRB':function(_0x331ee8,_0x13fa6f){return _0x331ee8(_0x13fa6f);},'Epqwu':function(_0x5648db,_0x379b9c,_0x19a6ae){return _0x5648db(_0x379b9c,_0x19a6ae);}},_0x2610a0=_0x25bede['SPTPV'](getEnvDir,_0x21095b);if(!existsSync(_0x2610a0))throw new Error(_0x1f65b2(0xb7)+_0x21095b+_0x1f65b2(0xb5));const _0x3ea6d8=await _0x25bede[_0x1f65b2(0xbf)](loadSettings,_0x21095b),_0x45229f=_0x25bede[_0x1f65b2(0xc1)](deleteNestedValue,_0x3ea6d8,_0x3804cd);_0x45229f?(await _0x25bede['Epqwu'](saveSettings,_0x21095b,_0x3ea6d8),console[_0x1f65b2(0xcf)]('Removed\x20'+_0x3804cd)):console[_0x1f65b2(0xcf)]('Key\x20\x22'+_0x3804cd+_0x1f65b2(0xc7));}
|
|
1
|
+
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
|
-
function
|
|
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
|
-
const _0x2869d5=_0x55af;(function(_0x3fbd5f,_0x1a2413){const _0x432a1e=_0x55af,_0x71d089=_0x3fbd5f();while(!![]){try{const _0x4c18c2=-parseInt(_0x432a1e(0x18a))/0x1*(parseInt(_0x432a1e(0x19c))/0x2)+-parseInt(_0x432a1e(0x18e))/0x3*(parseInt(_0x432a1e(0x116))/0x4)+-parseInt(_0x432a1e(0x10b))/0x5*(parseInt(_0x432a1e(0x10d))/0x6)+parseInt(_0x432a1e(0x11b))/0x7+-parseInt(_0x432a1e(0x143))/0x8*(-parseInt(_0x432a1e(0x1cb))/0x9)+-parseInt(_0x432a1e(0x159))/0xa*(parseInt(_0x432a1e(0x148))/0xb)+parseInt(_0x432a1e(0x16b))/0xc;if(_0x4c18c2===_0x1a2413)break;else _0x71d089['push'](_0x71d089['shift']());}catch(_0x3a9c45){_0x71d089['push'](_0x71d089['shift']());}}}(_0x3e43,0xd57b9));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x5d8f24 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x41ed8e=>_0x2869d5(0x1c1)+_0x41ed8e+_0x2869d5(0x187);function getGitRepoUrl(){const _0x4df65e=_0x2869d5,_0x3e29da={'HFksl':'pipe'};try{const _0xac7d03=execSync(_0x4df65e(0x12e),{'encoding':'utf-8','stdio':[_0x3e29da['HFksl'],'pipe',_0x3e29da[_0x4df65e(0xfd)]]})[_0x4df65e(0x138)]();return _0xac7d03[_0x4df65e(0x166)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x12b4ba=_0x2869d5,_0x2e9479={'wTHTg':'utf-8','JbkrB':_0x12b4ba(0x1a0)};try{return execSync(_0x12b4ba(0x140),{'encoding':_0x2e9479['wTHTg'],'stdio':[_0x2e9479[_0x12b4ba(0x17b)],_0x2e9479['JbkrB'],_0x12b4ba(0x1a0)]})[_0x12b4ba(0x138)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x223af6=_0x2869d5,_0x1c70b7={'CjRou':function(_0x10a0d8,_0x22ddbd,_0x10eec8){return _0x10a0d8(_0x22ddbd,_0x10eec8);},'JWmRo':function(_0x2f8278,_0x5ce917){return _0x2f8278(_0x5ce917);}},_0xaaed0a=_0x1c70b7[_0x223af6(0x118)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x1c70b7['JWmRo'](existsSync,_0xaaed0a))return null;try{const _0x1a7888=await readFile(_0xaaed0a,'utf-8');return _0x1a7888['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x251168){const _0x5a1302={'JVqRx':function(_0x1dbb86){return _0x1dbb86();},'eMfka':function(_0x398591,_0x203bcb){return _0x398591(_0x203bcb);}},_0x37312f=_0x5a1302['JVqRx'](getRangerDir),_0x2b87a8=join(_0x37312f,ACTIVE_FEATURE_FILE);!_0x5a1302['eMfka'](existsSync,_0x37312f)&&await mkdir(_0x37312f,{'recursive':!![]}),await writeFile(_0x2b87a8,_0x251168,'utf-8');}function getProgressDisplay(_0x4de442){const _0x21b62e=_0x2869d5,_0x1e589e={'GVdDq':function(_0x27fb94,_0x1328f9){return _0x27fb94===_0x1328f9;},'wNYOR':function(_0x2058bc,_0x2ee45c){return _0x2058bc*_0x2ee45c;},'Ngajw':function(_0x359a2c,_0x2e5af7){return _0x359a2c-_0x2e5af7;},'hLqxM':function(_0x2e6010,_0x1b651d){return _0x2e6010>_0x1b651d;}},_0x2366e0=_0x4de442['verifiedItems']||0x0,_0x279b25=_0x4de442['verificationInProgressItems']||0x0,_0x14e33d=_0x4de442['blockedItems']||0x0,_0x168903=_0x4de442['incompleteItems']||0x0,_0x2ae696=_0x4de442[_0x21b62e(0x182)]||0x0,_0x593b34=_0x2366e0+_0x279b25+_0x14e33d+_0x168903+_0x2ae696;if(_0x1e589e['GVdDq'](_0x593b34,0x0))return'-';const _0x23bdf9=0xa,_0x250975=Math[_0x21b62e(0x1c5)](_0x1e589e['wNYOR'](_0x2366e0/_0x593b34,_0x23bdf9)),_0x5d4931='█'[_0x21b62e(0x1ae)](_0x250975)+'░'[_0x21b62e(0x1ae)](_0x1e589e[_0x21b62e(0x15c)](_0x23bdf9,_0x250975)),_0xf0fdd2=[];if(_0x1e589e[_0x21b62e(0x129)](_0x14e33d,0x0))_0xf0fdd2[_0x21b62e(0x1b9)](_0x14e33d+'\x20blocked');if(_0x168903>0x0)_0xf0fdd2['push'](_0x168903+_0x21b62e(0x15b));if(_0x279b25>0x0)_0xf0fdd2[_0x21b62e(0x1b9)](_0x279b25+_0x21b62e(0x109));const _0xba038b=_0xf0fdd2[_0x21b62e(0x131)]>0x0?'\x20('+_0xf0fdd2[_0x21b62e(0x1a3)](',\x20')+')':'';return _0x5d4931+'\x20'+_0x2366e0+'/'+_0x593b34+_0x21b62e(0x105)+_0xba038b;}function _0x55af(_0x42b2c2,_0x503947){_0x42b2c2=_0x42b2c2-0xf9;const _0x3e435f=_0x3e43();let _0x55afe4=_0x3e435f[_0x42b2c2];return _0x55afe4;}function getCurrentSessionItems(_0x233504,_0x27a58c){const _0x3abf88=_0x2869d5;if(!_0x233504['currentSessionId'])return _0x27a58c[_0x3abf88(0x13b)](_0x3b859f=>!_0x3b859f['sessionId']);return _0x27a58c[_0x3abf88(0x13b)](_0x5c6dde=>_0x5c6dde[_0x3abf88(0x19f)]===_0x233504[_0x3abf88(0x181)]||!_0x5c6dde[_0x3abf88(0x19f)]);}function displayFeature(_0x9f1a01,_0x4db77a){const _0x562d44=_0x2869d5,_0x311e95={'VMRQY':function(_0x3d13c1,_0x4319b6){return _0x3d13c1>_0x4319b6;},'qwaJH':_0x562d44(0x119),'VtKlu':'approved','yChqE':function(_0x488fbd,_0x2c6e14){return _0x488fbd===_0x2c6e14;},'lzZBn':_0x562d44(0x192),'rXfaG':'closed','iqDxg':function(_0x2b036a,_0x45e22c){return _0x2b036a===_0x45e22c;},'RVMzV':function(_0x35a40a,_0x1988c3){return _0x35a40a>_0x1988c3;},'zIMWO':function(_0x20c184,_0x39a512){return _0x20c184!==_0x39a512;},'IhnYP':_0x562d44(0x111),'plheQ':function(_0x25c281,_0x20371b){return _0x25c281+_0x20371b;},'zFNVx':'blocked','CTkcW':function(_0x64a478,_0x540398){return _0x64a478===_0x540398;}};console['log']('\x0a'+_0x9f1a01['name']+'\x20('+_0x9f1a01[_0x562d44(0x126)]+')');_0x9f1a01[_0x562d44(0x178)]&&console[_0x562d44(0x17a)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x9f1a01[_0x562d44(0x178)]));_0x9f1a01[_0x562d44(0x191)]&&console[_0x562d44(0x17a)]('\x20\x20\x20Description:\x20'+_0x9f1a01['description']);_0x9f1a01['gitRepoUrl']&&console['log'](_0x562d44(0x1ac)+_0x9f1a01['gitRepoUrl']);_0x9f1a01['gitBranch']&&console[_0x562d44(0x17a)](_0x562d44(0x1a1)+_0x9f1a01['gitBranch']);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x9f1a01[_0x562d44(0x196)])[_0x562d44(0x11d)]());_0x9f1a01[_0x562d44(0x1a2)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x9f1a01['completedAt'])[_0x562d44(0x11d)]());if(_0x4db77a&&_0x311e95[_0x562d44(0x12d)](_0x4db77a['length'],0x0)){console['log'](_0x311e95['qwaJH']);for(let _0x4c256e=0x0;_0x4c256e<_0x4db77a['length'];_0x4c256e++){const _0x18e966=_0x4db77a[_0x4c256e];let _0x57bb34;if(_0x18e966[_0x562d44(0x176)]===_0x562d44(0x189)&&_0x18e966[_0x562d44(0x163)]===_0x311e95['VtKlu'])_0x57bb34='✅';else{if(_0x311e95['yChqE'](_0x18e966['status'],'verified'))_0x57bb34='🟢';else{if(_0x18e966['status']===_0x311e95[_0x562d44(0x139)])_0x57bb34='🟠';else{if(_0x18e966[_0x562d44(0x176)]==='blocked')_0x57bb34='🛑';else{if(_0x18e966[_0x562d44(0x176)]===_0x311e95[_0x562d44(0x125)])_0x57bb34='⛔';else _0x311e95[_0x562d44(0x12f)](_0x18e966[_0x562d44(0x176)],'verification_in_progress')?_0x57bb34='⏳':_0x57bb34='⬜';}}}}const _0x25c628=_0x311e95['RVMzV'](_0x18e966[_0x562d44(0x1ce)],0x1)?_0x562d44(0x1c3)+_0x18e966['version']+')':'',_0x29dd96=_0x311e95[_0x562d44(0x12d)](_0x18e966['version'],0x1)&&_0x18e966[_0x562d44(0x132)]&&_0x311e95[_0x562d44(0x10e)](_0x18e966['status'],_0x311e95['rXfaG'])&&_0x311e95[_0x562d44(0x10e)](_0x18e966['status'],_0x311e95['IhnYP'])?_0x562d44(0x198):'';console[_0x562d44(0x17a)](_0x562d44(0x19b)+_0x311e95[_0x562d44(0x110)](_0x4c256e,0x1)+'.\x20'+_0x57bb34+'\x20'+_0x18e966[_0x562d44(0x191)]+_0x25c628+_0x29dd96);_0x18e966[_0x562d44(0x176)]===_0x311e95['zFNVx']&&_0x18e966[_0x562d44(0x193)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x18e966['blockedReason']);_0x18e966[_0x562d44(0x176)]==='incomplete'&&_0x18e966[_0x562d44(0x1b8)]&&console[_0x562d44(0x17a)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x18e966[_0x562d44(0x1b8)]);if(_0x18e966['status']==='closed'&&_0x311e95['CTkcW'](_0x18e966['terminalReason'],_0x311e95['VtKlu']))console[_0x562d44(0x17a)](_0x562d44(0x101));else _0x18e966['status']==='closed'&&_0x18e966[_0x562d44(0x173)]&&console[_0x562d44(0x17a)](_0x562d44(0x1b4)+_0x18e966[_0x562d44(0x173)]);}}}export async function featureCreate(_0x5e9ffb,_0x28ffa1){const _0x18f247=_0x2869d5,_0x2a2162={'YEqaT':function(_0x147275,_0x4fdb54){return _0x147275===_0x4fdb54;},'jwAjI':function(_0x166875){return _0x166875();},'LcOFS':function(_0x1d8826,_0x238f9c){return _0x1d8826(_0x238f9c);},'yhjAL':function(_0x42682a,_0x4ffc34){return _0x42682a(_0x4ffc34);},'SQZsr':function(_0x32978e,_0x4fbd85,_0xd77b8a){return _0x32978e(_0x4fbd85,_0xd77b8a);}},{envNames:_0x10e16c}=await getEnvNames();_0x2a2162['YEqaT'](_0x10e16c['length'],0x0)&&console[_0x18f247(0x14a)]('\x0a'+formatProfileRequiredMessage(_0x1b53eb=>bold(_0x1b53eb)));const _0x34ea4d=_0x28ffa1['scenarios']?_0x28ffa1['scenarios']['map'](_0x21640d=>_0x21640d[_0x18f247(0x138)]()):[],_0x2ef83f=_0x2a2162[_0x18f247(0xfe)](getGitRepoUrl),_0x3f0140=getGitBranch();console[_0x18f247(0x17a)]('\x0aCreating\x20feature\x20review...');const _0x319481=await createFeature({'name':_0x5e9ffb,'description':_0x28ffa1[_0x18f247(0x191)],'checklist':_0x34ea4d,'gitRepoUrl':_0x2ef83f,'gitBranch':_0x3f0140});await _0x2a2162[_0x18f247(0x10a)](setActiveFeatureId,_0x319481['id']),await _0x2a2162['yhjAL'](tryStartCurrentSession,_0x319481['id']);const _0x126264=process['env']['CLAUDE_SESSION_ID'];_0x126264&&_0x2a2162[_0x18f247(0x16d)](registerSession,_0x126264,_0x319481['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x319481['id']),displayFeature(_0x319481,_0x319481[_0x18f247(0x17f)]),console[_0x18f247(0x17a)](_0x18f247(0x18d));}export async function featureList(_0x364034){const _0x1cd867=_0x2869d5,_0x173b9a={'AJrph':function(_0xb7b8d1){return _0xb7b8d1();},'UeuoN':function(_0x1121c7,_0x66f297){return _0x1121c7(_0x66f297);},'scRaY':function(_0x40343f,_0x171025){return _0x40343f(_0x171025);},'mMLkw':function(_0x1b5a2f,_0xaff0f5){return _0x1b5a2f+_0xaff0f5;},'mCewH':_0x1cd867(0x188),'KMHSd':'\x20--include-deleted'},_0x281aaf={'limit':_0x364034['limit']??0xa,'offset':_0x364034['offset']??0x0,'includeDeleted':_0x364034['includeDeleted']};_0x364034[_0x1cd867(0x1bb)]&&(_0x281aaf[_0x1cd867(0x12b)]=_0x173b9a['AJrph'](getGitRepoUrl),_0x281aaf[_0x1cd867(0x199)]=getGitBranch());const _0x461a9e=await _0x173b9a['UeuoN'](listFeatures,_0x281aaf);if(_0x461a9e[_0x1cd867(0x1c8)][_0x1cd867(0x131)]===0x0){console[_0x1cd867(0x17a)](_0x1cd867(0x1b6));return;}const _0xb10365=_0x461a9e['totalCount']>_0x461a9e['items'][_0x1cd867(0x131)]?'Showing\x20'+_0x461a9e[_0x1cd867(0x1c8)][_0x1cd867(0x131)]+_0x1cd867(0x1b0)+_0x461a9e['totalCount']:_0x461a9e[_0x1cd867(0x122)]+'\x20feature\x20review(s)\x20found';console[_0x1cd867(0x17a)]('\x0a'+_0xb10365+':\x0a');for(const _0x12df7d of _0x461a9e['items']){console['log'](''+_0x12df7d['name']),console[_0x1cd867(0x17a)](_0x1cd867(0x1c9)+_0x12df7d['id']),_0x12df7d[_0x1cd867(0x178)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x173b9a[_0x1cd867(0x150)](getProgressDisplay,_0x12df7d[_0x1cd867(0x178)])),_0x12df7d['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x12df7d[_0x1cd867(0x199)]),console[_0x1cd867(0x17a)]('\x20\x20\x20Created:\x20'+new Date(_0x12df7d[_0x1cd867(0x196)])['toLocaleDateString']()),console['log']('');}const _0x785ccb=_0x281aaf[_0x1cd867(0x11f)]??0xa,_0x44ac77=_0x173b9a['mMLkw'](_0x281aaf['offset']??0x0,_0x461a9e['items']['length']);if(_0x44ac77<_0x461a9e['totalCount']){const _0x57aec9=_0x785ccb!==0xa?'\x20--limit\x20'+_0x785ccb:'',_0x7dbed4=_0x364034['currentBranch']?_0x173b9a[_0x1cd867(0x19d)]:'',_0x26ec17=_0x364034['includeDeleted']?_0x173b9a['KMHSd']:'';console[_0x1cd867(0x17a)](_0x1cd867(0x155)+_0x44ac77+_0x57aec9+_0x7dbed4+_0x26ec17);}}function _0x3e43(){const _0xd0c246=['\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','scRaY','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20\x20\x20\x20\x20Progress:\x20','NKznY','Next\x20page:\x20ranger\x20list\x20--offset\x20','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','json','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','2824560dUTKyz','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x20incomplete','Ngajw','peihP','\x20\x20✅\x20No\x20feedback\x20to\x20address','completed','No\x20scenarios\x20found.','content','\x20—\x20','terminalReason','Screenshot\x20','lQalh','replace','stepName','isTTY','stdout','4|5|0|1|3|2','35759064IujGFF','name','SQZsr','TWLDZ','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','\x0aAvailable\x20scenarios:','linkedSession','canceledReason','gBJZE','textContent','status','style','stats','isInteger','log','JbkrB','Rmkvf','numeric','PcxFg','checklistItems','exit','currentSessionId','pendingItems','tEgeD','/api/v1/mcp/browser-sessions/','IVgZD','\x0a✅\x20Restored\x20feature\x20review:\x20','\x1b[0m','\x20--current-branch','closed','4177TKZmGQ','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','assetUrl','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','11499HsrmiE','FXLNJ','toFixed','description','incomplete','blockedReason','ready','list','createdAt','in_progress','\x20[has\x20reviewer\x20feedback]','gitBranch','lRdGl','\x20\x20\x20','184pNPKxw','mCewH','CLAUDE_SESSION_ID','sessionId','pipe','\x20\x20\x20Branch:\x20','completedAt','join','KaLbF','latestReview','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','env','all','DXEHn','\x20\x20\x20Repository:\x20','unaddressedComments','repeat','prompt','\x20of\x20','spatial','coordinates','npxkA','\x20\x20\x20\x20\x20\x20Cancelled:\x20','iteration','\x0aNo\x20feature\x20reviews\x20found.','timing','incompleteReason','push','\x0a✅\x20Session\x20is\x20already\x20completed.','currentBranch','submittedAt','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20Session\x20','mWkRH','ruOyX','\x1b[1m','\x0a✅\x20Scenario\x20updated','\x20(v','\x20at\x20[','round','MWUXw','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','items','\x20\x20\x20ID:\x20','split','11652714hXvuOd','Unknown','DCCDo','version','map','TbpQS','screenshotUrls','browserSessionId','\x0a✅\x20Resumed\x20feature\x20review:\x20','ZXwon','\x20concluded.','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','HFksl','jwAjI','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','iAIqc','\x20\x20\x20\x20\x20\x20Approved','cTWqN','\x20>\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','\x20verified','AROtU','isKeyStep','\x20unaddressed\x20comment(s)','\x20in\x20progress','LcOFS','5760yxRLAe','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','7794mXGhLf','zIMWO',':\x20\x22','plheQ','verified','assets','frmPU','canonicalFlow','has','1352PQTeUT','IcHpD','CjRou','\x0a\x20\x20\x20Scenarios:','verification_in_progress','4363877xJVuLz','QKMuS','toLocaleString','find','limit','fDULb','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','totalCount','GBodT','screenshot','rXfaG','dashboardUrl','AIChm','agentResponse','hLqxM','HWaKb','gitRepoUrl','JqAGs','VMRQY','git\x20remote\x20get-url\x20origin','iqDxg','selected','length','parentItemId','.\x20Feature\x20review\x20has\x20','.png','error','domRef','HOUJD','trim','lzZBn','snMtb','filter','POuRF','pop','write','feedback-images','git\x20rev-parse\x20--abbrev-ref\x20HEAD','reports','type','8HWGNap','scenario','assetType','\x20\x20\x20\x20\x20Branch:\x20','hOyEA','33mfhgVT','WXQQa','warn','excludeScenarios','\x20scenario(s).','\x20\x20\x20Created:\x20','UProH'];_0x3e43=function(){return _0xd0c246;};return _0x3e43();}export async function featureShow(_0x233ecb){const _0x1b606a=_0x2869d5,_0x3d89d2={'ccLlK':function(_0x33a678){return _0x33a678();},'bBfUC':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','iAIqc':function(_0x16c16b,_0x2ac89e,_0xabe666){return _0x16c16b(_0x2ac89e,_0xabe666);}},_0x2434eb=_0x233ecb||await _0x3d89d2['ccLlK'](getActiveFeatureId);if(!_0x2434eb)throw new Error(_0x3d89d2['bBfUC']);const _0x4ac840=await getFeature(_0x2434eb);_0x3d89d2[_0x1b606a(0x100)](displayFeature,_0x4ac840,_0x4ac840[_0x1b606a(0x17f)]);}export async function featureResume(_0x59fda9){const _0x31197c=_0x2869d5,_0x275a88={'DCCDo':function(_0x4fc529,_0x9d9c16){return _0x4fc529(_0x9d9c16);},'FXLNJ':function(_0x199856,_0x390192,_0x38e51a){return _0x199856(_0x390192,_0x38e51a);},'NKznY':function(_0x313c10,_0x5ae81e){return _0x313c10&&_0x5ae81e;},'mWkRH':'any','KOVjo':function(_0x576907,_0x4a1098){return _0x576907===_0x4a1098;},'ruOyX':_0x31197c(0x152),'SFQcc':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','MagCK':_0x31197c(0x158),'AilSl':_0x31197c(0x195),'BTzBB':_0x31197c(0x10c),'QKMuS':function(_0x4afb37,_0x133da5){return _0x4afb37(_0x133da5);}};if(_0x59fda9){const _0x35050c=await getFeature(_0x59fda9);await _0x275a88['DCCDo'](setActiveFeatureId,_0x35050c['id']);const _0x4d1cdc=getGitBranch();_0x4d1cdc&&_0x4d1cdc!==_0x35050c['gitBranch']&&(await updateFeature(_0x35050c['id'],{'gitBranch':_0x4d1cdc}),console[_0x31197c(0x17a)](_0x31197c(0x104)+_0x4d1cdc));console['log'](_0x31197c(0xf9)+_0x35050c[_0x31197c(0x16c)]+'\x20('+_0x35050c['id']+')'),await tryStartCurrentSession(_0x35050c['id']);const _0xb1935d=process[_0x31197c(0x1a9)][_0x31197c(0x19e)];_0xb1935d&®isterSession(_0xb1935d,_0x35050c['id']);_0x275a88[_0x31197c(0x18f)](displayFeature,_0x35050c,_0x35050c[_0x31197c(0x17f)]),await printFeedbackNudge(_0x35050c['id']);return;}const _0x5507db=getGitRepoUrl(),_0x51c0fa=getGitBranch();if(_0x275a88[_0x31197c(0x154)](!_0x5507db,!_0x51c0fa))throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x5507db||_0x275a88[_0x31197c(0x1bf)])+'\x20/\x20'+(_0x51c0fa||_0x275a88['mWkRH'])+'...');const _0x1073ef=await listFeatures({'gitRepoUrl':_0x5507db,'gitBranch':_0x51c0fa}),_0x1a069f=_0x1073ef[_0x31197c(0x1c8)][_0x31197c(0x13b)](_0x47a33f=>_0x47a33f['status']?_0x47a33f['status']!=='verified':!_0x47a33f[_0x31197c(0x1a2)]);if(_0x275a88['KOVjo'](_0x1a069f[_0x31197c(0x131)],0x0)){console['log'](_0x31197c(0xfc)),console['log'](_0x275a88[_0x31197c(0x1c0)]);return;}let _0x519cbe;if(_0x275a88['KOVjo'](_0x1a069f['length'],0x1))_0x519cbe=_0x1a069f[0x0];else{const _0x25f8df=process['stdin'][_0x31197c(0x168)]&&process['stdout']['isTTY'];if(!_0x25f8df){console['log'](_0x275a88['SFQcc']);for(const _0x2615f4 of _0x1a069f){console['log']('\x20\x20'+_0x2615f4['name']),console[_0x31197c(0x17a)]('\x20\x20\x20\x20\x20ID:\x20'+_0x2615f4['id']),_0x2615f4[_0x31197c(0x178)]&&console[_0x31197c(0x17a)](_0x31197c(0x153)+_0x275a88[_0x31197c(0x1cd)](getProgressDisplay,_0x2615f4['stats'])),_0x2615f4[_0x31197c(0x199)]&&console['log'](_0x31197c(0x146)+_0x2615f4['gitBranch']);}throw new Error(_0x275a88['MagCK']);}const {selected:_0x4691f3}=await _0x5d8f24[_0x31197c(0x1af)]([{'type':_0x275a88['AilSl'],'name':_0x31197c(0x130),'message':_0x275a88['BTzBB'],'choices':_0x1a069f[_0x31197c(0x1cf)](_0x5f4360=>({'name':_0x5f4360['name']+'\x20('+_0x5f4360['id']+')','value':_0x5f4360['id']}))}]);_0x519cbe=_0x1a069f['find'](_0x2711d6=>_0x2711d6['id']===_0x4691f3);}await setActiveFeatureId(_0x519cbe['id']);_0x51c0fa&&_0x51c0fa!==_0x519cbe['gitBranch']&&(await _0x275a88['FXLNJ'](updateFeature,_0x519cbe['id'],{'gitBranch':_0x51c0fa}),console[_0x31197c(0x17a)](_0x31197c(0x104)+_0x51c0fa));console['log'](_0x31197c(0xf9)+_0x519cbe['name']+'\x20('+_0x519cbe['id']+')'),await _0x275a88[_0x31197c(0x11c)](tryStartCurrentSession,_0x519cbe['id']);const _0x3d29f9=await _0x275a88[_0x31197c(0x1cd)](getFeature,_0x519cbe['id']),_0x1b86da=process[_0x31197c(0x1a9)]['CLAUDE_SESSION_ID'];_0x1b86da&&_0x275a88[_0x31197c(0x18f)](registerSession,_0x1b86da,_0x3d29f9['id']),displayFeature(_0x3d29f9,_0x3d29f9[_0x31197c(0x17f)]),await _0x275a88[_0x31197c(0x1cd)](printFeedbackNudge,_0x3d29f9['id']);}async function printFeedbackNudge(_0x3063ee){const _0x3cadb2=_0x2869d5,_0x7a8ce9={'MWUXw':function(_0x435c48,_0x3d1de5,_0x5e5ac1){return _0x435c48(_0x3d1de5,_0x5e5ac1);},'tZtrU':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x51c435}=await getActionItems(_0x3063ee);let _0x3d689f=0x0,_0xc7a149=0x0;for(const _0x50809f of _0x51c435){const _0x316f56=await _0x7a8ce9[_0x3cadb2(0x1c6)](getItemFeedback,_0x3063ee,_0x50809f['id']);_0x316f56[_0x3cadb2(0x1ad)][_0x3cadb2(0x131)]>0x0&&(_0x3d689f+=_0x316f56[_0x3cadb2(0x1ad)][_0x3cadb2(0x131)],_0xc7a149++);}_0x3d689f>0x0&&(console[_0x3cadb2(0x17a)]('\x0a⚠️\x20\x20'+_0x3d689f+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0xc7a149+_0x3cadb2(0x14c)),console['log'](_0x7a8ce9['tZtrU']));}catch{}}async function tryStartCurrentSession(_0x1cba69){const _0x257caf=_0x2869d5,_0x31c9a3={'IcHpD':function(_0x205205,_0x3e8370){return _0x205205(_0x3e8370);}};try{const {sessions:_0x5e556d}=await _0x31c9a3[_0x257caf(0x117)](listFeatureSessions,_0x1cba69),_0x11928c=_0x5e556d['find'](_0xbdd681=>_0xbdd681['status']===_0x257caf(0x194));_0x11928c&&(await startSession(_0x1cba69,_0x11928c['id']),console[_0x257caf(0x17a)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x11928c[_0x257caf(0x1b5)]));}catch{}}export async function featureReport(_0x59d711,_0x5dd53b){const _0x93de16=_0x2869d5,_0x35979c={'VQekv':function(_0x39b1b5){return _0x39b1b5();},'ZXwon':function(_0x258455,_0x1a57db,_0x338790){return _0x258455(_0x1a57db,_0x338790);},'RHPRl':function(_0x47abfa,_0x3de2ef,_0x576d88,_0x2cd1cd){return _0x47abfa(_0x3de2ef,_0x576d88,_0x2cd1cd);},'NFBhT':function(_0x223931,_0xb57ed3){return _0x223931(_0xb57ed3);},'gBJZE':function(_0x46534a,_0x19f08f,_0xa6378a,_0x47d6c1){return _0x46534a(_0x19f08f,_0xa6378a,_0x47d6c1);},'Ewslj':'utf-8'},_0x3069de=_0x59d711||await _0x35979c['VQekv'](getActiveFeatureId);if(!_0x3069de)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log']('\x0aGenerating\x20report...');const _0x59eb6c=await _0x35979c[_0x93de16(0xfa)](getFeatureReportMarkdown,_0x3069de,{'style':_0x5dd53b[_0x93de16(0x177)]}),_0x5f22db=_0x5dd53b['output']||_0x35979c['RHPRl'](join,getRangerDir(),_0x93de16(0x141),_0x3069de+'.md'),_0x451b6a=_0x35979c['ZXwon'](join,_0x5f22db,'..');!_0x35979c['NFBhT'](existsSync,_0x451b6a)&&await mkdir(_0x451b6a,{'recursive':!![]}),await _0x35979c[_0x93de16(0x174)](writeFile,_0x5f22db,_0x59eb6c,_0x35979c['Ewslj']),console[_0x93de16(0x17a)]('\x0a✅\x20Report\x20generated:\x20'+_0x5f22db);}function getScenarioResult(_0x53d478){const _0x387c52=_0x2869d5,_0x34156b={'IVgZD':_0x387c52(0x189),'HOUJD':_0x387c52(0x11a)};if(_0x53d478['status']===_0x34156b[_0x387c52(0x185)])return _0x53d478['terminalReason']??_0x34156b[_0x387c52(0x185)];if(_0x53d478[_0x387c52(0x176)]===_0x34156b[_0x387c52(0x137)])return _0x387c52(0x197);return _0x53d478[_0x387c52(0x176)];}function getScenarioRationale(_0xf211f4,_0x269d57){const _0x551352=_0x2869d5,_0x435c13={'TbpQS':_0x551352(0x16a)},_0x31a9b3=_0x435c13[_0x551352(0x1d0)]['split']('|');let _0x234252=0x0;while(!![]){switch(_0x31a9b3[_0x234252++]){case'0':if(_0xf211f4[_0x551352(0x1b8)])return _0xf211f4[_0x551352(0x1b8)];continue;case'1':if(_0xf211f4[_0x551352(0x173)])return _0xf211f4['canceledReason'];continue;case'2':return null;case'3':if(_0xf211f4['notes'])return _0xf211f4['notes'];continue;case'4':if(_0x269d57)return _0x269d57;continue;case'5':if(_0xf211f4['blockedReason'])return _0xf211f4[_0x551352(0x193)];continue;}break;}}export async function featureReportPrDescription(_0x185889,_0x10cbc4){const _0x57e4cc=_0x2869d5,_0x59bda9={'xvNbP':_0x57e4cc(0x16f),'Rmkvf':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','lRdGl':function(_0x29987a,_0x4e117f,_0x2f151a,_0x5c12e1){return _0x29987a(_0x4e117f,_0x2f151a,_0x5c12e1);},'cTWqN':function(_0x3e4102,_0x223f61,_0xf4da6a){return _0x3e4102(_0x223f61,_0xf4da6a);}},_0x59bfec=_0x185889||await getActiveFeatureId();if(!_0x59bfec)throw new Error(_0x59bda9['xvNbP']);const _0x33689f=await getFeature(_0x59bfec),_0x3b7c23=_0x33689f['checklistItems']||[],_0x409188=getCurrentSessionItems(_0x33689f,_0x3b7c23);_0x409188[_0x57e4cc(0x131)]===0x0&&(console[_0x57e4cc(0x135)](_0x59bda9[_0x57e4cc(0x17c)]),process[_0x57e4cc(0x180)](0x1));const _0x5cddfd=_0x10cbc4[_0x57e4cc(0x14b)]??[],_0x8df020=_0x5cddfd[_0x57e4cc(0x13b)](_0xd10010=>!Number[_0x57e4cc(0x179)](_0xd10010)||_0xd10010<0x1||_0xd10010>_0x409188['length']);if(_0x8df020['length']>0x0){console['error'](_0x57e4cc(0x1a8)+_0x8df020['join'](',\x20')),console['log'](_0x57e4cc(0x171));for(let _0x7e6fd4=0x0;_0x7e6fd4<_0x409188[_0x57e4cc(0x131)];_0x7e6fd4++){console[_0x57e4cc(0x17a)]('\x20\x20'+(_0x7e6fd4+0x1)+'.\x20'+_0x409188[_0x7e6fd4]['description']);}process[_0x57e4cc(0x180)](0x1);}const _0x53f696=new Set(_0x5cddfd['map'](_0x4cbeea=>_0x4cbeea-0x1)),_0x3d8101=_0x409188['filter']((_0x3e1346,_0x5e7be6)=>!_0x53f696[_0x57e4cc(0x115)](_0x5e7be6));_0x3d8101['length']===0x0&&(console[_0x57e4cc(0x135)](_0x57e4cc(0x1a7)),process[_0x57e4cc(0x180)](0x1));if(_0x10cbc4[_0x57e4cc(0x157)])await _0x59bda9[_0x57e4cc(0x19a)](outputJsonReport,_0x59bfec,_0x33689f,_0x3d8101);else{const _0x41fdb1=await _0x59bda9[_0x57e4cc(0x102)](getFeatureReportMarkdown,_0x59bfec,{'itemIds':_0x3d8101[_0x57e4cc(0x1cf)](_0x5fe2b3=>_0x5fe2b3['id'])});process[_0x57e4cc(0x169)]['write'](_0x41fdb1['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x52aa30,_0x2aa4b2,_0x50377b){const _0x21637f=_0x2869d5,_0x81058c={'MTOoa':function(_0x456f48,_0x4190e8){return _0x456f48(_0x4190e8);},'aXaZl':function(_0x530d66){return _0x530d66();}},_0x5df406=_0x81058c['aXaZl'](getApiBaseUrl),_0x3113f9=await getFeatureReport(_0x52aa30),_0x22f0c4=new Map(_0x3113f9['checklistItems'][_0x21637f(0x1cf)](_0x5bc489=>[_0x5bc489['id'],_0x5bc489])),_0x440837=await Promise[_0x21637f(0x1aa)](_0x50377b['map'](async _0x14f7fb=>{const _0x4b962f=_0x21637f,_0xdc5f30=_0x22f0c4['get'](_0x14f7fb['id']),_0xd7692a=_0xdc5f30?.[_0x4b962f(0x172)]??null;let _0x356b73=[];if(_0x14f7fb['browserSessionId'])try{const {steps:_0x34aa9c}=await _0x81058c['MTOoa'](getBrowserSessionSteps,_0x14f7fb[_0x4b962f(0x1d2)]);_0x34aa9c[_0x4b962f(0x131)]>0x0&&(_0x356b73=_0x34aa9c[_0x4b962f(0x1cf)](_0x2892d0=>{const _0x2f9ca2=_0x4b962f,_0x45aaf4=_0x2892d0[_0x2f9ca2(0x112)]['find'](_0x35d35a=>_0x35d35a['assetType']===_0x2f9ca2(0x124)&&_0x35d35a[_0x2f9ca2(0x1b7)]==='after')??_0x2892d0[_0x2f9ca2(0x112)]['find'](_0x3ee229=>_0x3ee229[_0x2f9ca2(0x145)]==='screenshot');let _0xa5a808=null,_0xee45c1=null;if(_0x45aaf4){const _0x9087e6=_0x45aaf4['storage']['location'][_0x2f9ca2(0x1ca)]('/')[_0x2f9ca2(0x13d)]();_0xa5a808=_0x5df406+_0x2f9ca2(0x184)+_0x14f7fb['browserSessionId']+'/artifacts/'+_0x9087e6,_0x9087e6&&(_0xee45c1=_0x9087e6['replace'](/\.\w+$/,'')[_0x2f9ca2(0x166)](/^(key_)?\d+_/,'')[_0x2f9ca2(0x166)](/[-_]/g,'\x20'));}return{'description':_0xee45c1||_0x2892d0[_0x2f9ca2(0x191)]||_0x2892d0[_0x2f9ca2(0x167)]||'Step\x20'+_0x2892d0['position'],'screenshot':_0xa5a808,'is_key_step':_0x2892d0[_0x2f9ca2(0x107)]};}));}catch{}return _0x356b73[_0x4b962f(0x131)]===0x0&&_0xd7692a?.['screenshotUrls']&&(_0x356b73=_0xd7692a[_0x4b962f(0x1d1)]['map']((_0x4a8a70,_0xda45fa)=>({'description':_0x4b962f(0x164)+(_0xda45fa+0x1),'screenshot':_0x4a8a70,'is_key_step':![]}))),{'description':_0x14f7fb[_0x4b962f(0x191)],'result':getScenarioResult(_0x14f7fb),'rationale':getScenarioRationale(_0x14f7fb,_0xd7692a?.[_0x4b962f(0x128)]),'steps':_0x356b73};})),_0x5a0ce7={'url':_0x2aa4b2[_0x21637f(0x126)],'scenarios':_0x440837};process['stdout'][_0x21637f(0x13e)](JSON['stringify'](_0x5a0ce7,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x33c43c){const _0x43c955=_0x2869d5,_0x3b3ce3={'tEgeD':function(_0x4ad32e){return _0x4ad32e();},'frmPU':_0x43c955(0x1bd),'kDFAi':function(_0x308a95,_0x1f8eb1){return _0x308a95(_0x1f8eb1);},'Ogcej':'Current\x20session\x20not\x20found.','YdcFI':_0x43c955(0x1ba),'wiEus':function(_0x183bc4,_0x62df8f){return _0x183bc4!==_0x62df8f;},'IjiAH':'\x0aConcluding\x20session...','QgYuF':function(_0x82c5f,_0x20e9c7,_0xfdfb2a){return _0x82c5f(_0x20e9c7,_0xfdfb2a);}},_0x4be9c0=_0x33c43c||await _0x3b3ce3[_0x43c955(0x183)](getActiveFeatureId);if(!_0x4be9c0)throw new Error(_0x3b3ce3[_0x43c955(0x113)]);const _0x2caab2=await getFeature(_0x4be9c0);if(!_0x2caab2[_0x43c955(0x181)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x20e1a6}=await _0x3b3ce3['kDFAi'](listFeatureSessions,_0x4be9c0),_0x586516=_0x20e1a6[_0x43c955(0x11e)](_0x36b953=>_0x36b953['id']===_0x2caab2[_0x43c955(0x181)]);if(!_0x586516)throw new Error(_0x3b3ce3['Ogcej']);if(_0x586516[_0x43c955(0x176)]==='completed'){console['log'](_0x3b3ce3['YdcFI']);return;}if(_0x3b3ce3['wiEus'](_0x586516['status'],_0x43c955(0x197)))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x586516[_0x43c955(0x176)]);console['log'](_0x3b3ce3['IjiAH']),await _0x3b3ce3['QgYuF'](concludeSession,_0x4be9c0,_0x2caab2['currentSessionId']),console[_0x43c955(0x17a)]('\x0a✅\x20Session\x20'+_0x586516[_0x43c955(0x1b5)]+_0x43c955(0xfb)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4b4a3c){const _0x2e8724=_0x2869d5,_0x259a8e={'nFwmJ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','DXEHn':function(_0x120bb7,_0x479041){return _0x120bb7(_0x479041);},'UProH':function(_0x4a5074,_0x5b6e53){return _0x4a5074===_0x5b6e53;},'GBodT':'No\x20sessions\x20found.','rThup':_0x2e8724(0x15f)},_0x2adf65=_0x4b4a3c||await getActiveFeatureId();if(!_0x2adf65)throw new Error(_0x259a8e['nFwmJ']);const _0x585d57=await _0x259a8e[_0x2e8724(0x1ab)](getFeature,_0x2adf65);console['log'](_0x2e8724(0x170)+_0x585d57['name']+'\x0a');const {sessions:_0x21900f}=await listFeatureSessions(_0x2adf65);if(_0x259a8e[_0x2e8724(0x14e)](_0x21900f[_0x2e8724(0x131)],0x0)){console['log'](_0x259a8e[_0x2e8724(0x123)]);return;}for(const _0x2c950d of _0x21900f){const _0x570daa=_0x259a8e['UProH'](_0x2c950d['status'],_0x259a8e['rThup'])?'✅':_0x259a8e[_0x2e8724(0x14e)](_0x2c950d[_0x2e8724(0x176)],_0x2e8724(0x197))?'🔄':'▶️';console[_0x2e8724(0x17a)](_0x570daa+_0x2e8724(0x1be)+_0x2c950d[_0x2e8724(0x1b5)]+'\x20('+_0x2c950d['id']+')'),console[_0x2e8724(0x17a)]('\x20\x20\x20Status:\x20'+_0x2c950d[_0x2e8724(0x176)]),console[_0x2e8724(0x17a)](_0x2e8724(0x14d)+new Date(_0x2c950d[_0x2e8724(0x196)])[_0x2e8724(0x11d)]()),_0x2c950d['completedAt']&&console[_0x2e8724(0x17a)]('\x20\x20\x20Completed:\x20'+new Date(_0x2c950d['completedAt'])['toLocaleString']()),console[_0x2e8724(0x17a)]('');}}export async function featureAddScenario(_0x4e7823,_0x12045f){const _0x4c74fd=_0x2869d5,_0x4c359a={'VCZXB':function(_0x590ef4,_0x6297ce,_0x87a802){return _0x590ef4(_0x6297ce,_0x87a802);}},_0x529d4a=_0x12045f||await getActiveFeatureId();if(!_0x529d4a)throw new Error(_0x4c74fd(0x1bd));const _0xd0cd4c=await getFeature(_0x529d4a);if(_0xd0cd4c['latestReview']&&!_0xd0cd4c[_0x4c74fd(0x1a5)][_0x4c74fd(0x1bc)])throw new Error(_0x4c74fd(0x1a6)+_0xd0cd4c['dashboardUrl']);await _0x4c359a['VCZXB'](createChecklistItem,_0x529d4a,_0x4e7823);const _0x59d74e=await getFeature(_0x529d4a);console['log']('\x0a✅\x20Scenario\x20added'),_0x4c359a['VCZXB'](displayFeature,_0x59d74e,_0x59d74e[_0x4c74fd(0x17f)]);}export async function featureEditScenario(_0x21ca2d,_0x88532a){const _0x353b00=_0x2869d5,_0x1ad142={'sVqWn':function(_0x88117a,_0x23b5a9){return _0x88117a===_0x23b5a9;},'TWLDZ':'\x0aAvailable\x20scenarios:','kmjUI':function(_0x4b4dcf,_0x174996){return _0x4b4dcf<_0x174996;},'hOyEA':function(_0x4f1c0d,_0x4d4fae){return _0x4f1c0d-_0x4d4fae;},'PcxFg':function(_0x686766,_0x5563a2){return _0x686766>=_0x5563a2;},'HWaKb':function(_0x3b8ff6,_0x4336ac){return _0x3b8ff6+_0x4336ac;}},_0x52179c=_0x88532a['id']||await getActiveFeatureId();!_0x52179c&&(console[_0x353b00(0x135)](_0x353b00(0x15a)),console['error'](_0x353b00(0x156)),process['exit'](0x1));const _0xd079ab=await getFeature(_0x52179c);_0xd079ab[_0x353b00(0x1a5)]&&!_0xd079ab['latestReview'][_0x353b00(0x1bc)]&&(console[_0x353b00(0x135)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console[_0x353b00(0x135)]('\x20\x20'+_0xd079ab['dashboardUrl']),process[_0x353b00(0x180)](0x1));const _0x432500=_0xd079ab['checklistItems']||[];_0x1ad142['sVqWn'](_0x432500[_0x353b00(0x131)],0x0)&&(console[_0x353b00(0x135)](_0x353b00(0x151)),process[_0x353b00(0x180)](0x1));if(_0x88532a[_0x353b00(0x144)]===undefined){console[_0x353b00(0x135)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x353b00(0x17a)](_0x1ad142[_0x353b00(0x16e)]);for(let _0xf2843e=0x0;_0x1ad142['kmjUI'](_0xf2843e,_0x432500['length']);_0xf2843e++){console[_0x353b00(0x17a)]('\x20\x20'+(_0xf2843e+0x1)+'.\x20'+_0x432500[_0xf2843e]['description']);}process[_0x353b00(0x180)](0x1);}const _0x139b98=_0x1ad142[_0x353b00(0x147)](_0x88532a[_0x353b00(0x144)],0x1);if(_0x139b98<0x0||_0x1ad142[_0x353b00(0x17e)](_0x139b98,_0x432500[_0x353b00(0x131)])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x88532a[_0x353b00(0x144)]+_0x353b00(0x133)+_0x432500['length']+'\x20scenarios.'),console['log'](_0x1ad142[_0x353b00(0x16e)]);for(let _0x5809f9=0x0;_0x5809f9<_0x432500[_0x353b00(0x131)];_0x5809f9++){console[_0x353b00(0x17a)]('\x20\x20'+_0x1ad142[_0x353b00(0x12a)](_0x5809f9,0x1)+'.\x20'+_0x432500[_0x5809f9]['description']);}process['exit'](0x1);}const _0x11f69c=_0x432500[_0x139b98];await updateChecklistItem(_0x52179c,_0x11f69c['id'],{'description':_0x21ca2d});const _0xa39039=await getFeature(_0x52179c);console['log'](_0x353b00(0x1c2)),displayFeature(_0xa39039,_0xa39039[_0x353b00(0x17f)]);}async function downloadFeedbackImage(_0x438687,_0x4a5d39){const _0x29820e=_0x2869d5,_0xb2ad99={'npxkA':function(_0x474f1c){return _0x474f1c();},'KaLbF':_0x29820e(0x13f),'lQalh':function(_0x27cfb7,_0x593339){return _0x27cfb7(_0x593339);},'JqAGs':function(_0x50e6e8,_0x20a6f0,_0x1b996b){return _0x50e6e8(_0x20a6f0,_0x1b996b);}};try{const _0x3f611b=join(_0xb2ad99[_0x29820e(0x1b3)](getRangerDir),_0xb2ad99[_0x29820e(0x1a4)]);await mkdir(_0x3f611b,{'recursive':!![]});const _0x1a6cb4=join(_0x3f611b,'comment_'+_0x4a5d39+_0x29820e(0x134)),_0xcea68d=await _0xb2ad99[_0x29820e(0x165)](fetch,_0x438687);if(!_0xcea68d['ok'])return null;const _0x2fc004=Buffer['from'](await _0xcea68d['arrayBuffer']());return await _0xb2ad99[_0x29820e(0x12c)](writeFile,_0x1a6cb4,_0x2fc004),_0x1a6cb4;}catch{return null;}}export async function featureGetReview(_0x54840a){const _0x3d11f2=_0x2869d5,_0x11ce79={'AIChm':_0x3d11f2(0x1bd),'PzHsm':function(_0x340944,_0x393eef){return _0x340944(_0x393eef);},'bszlY':_0x3d11f2(0x160),'FqSIr':function(_0x3176c5,_0x3f657a){return _0x3176c5+_0x3f657a;},'peihP':'en-US','Qguzh':_0x3d11f2(0x17d),'fDULb':function(_0x2f25a2,_0x4cdcca,_0x2947ea){return _0x2f25a2(_0x4cdcca,_0x2947ea);},'Rrwuh':'element','AROtU':function(_0x19b5ed,_0x4a2b13){return _0x19b5ed>=_0x4a2b13;}},_0x1b6c8a=_0x54840a||await getActiveFeatureId();if(!_0x1b6c8a)throw new Error(_0x11ce79[_0x3d11f2(0x127)]);const _0x400e1f=await _0x11ce79['PzHsm'](getFeature,_0x1b6c8a),{items:_0x5f508a}=await getActionItems(_0x1b6c8a);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x400e1f[_0x3d11f2(0x16c)]+'\x20('+_0x400e1f['id']+')\x0a');if(_0x5f508a[_0x3d11f2(0x131)]===0x0){console['log'](_0x11ce79['bszlY']);return;}for(let _0x51eba9=0x0;_0x51eba9<_0x5f508a[_0x3d11f2(0x131)];_0x51eba9++){const _0x1ca688=_0x5f508a[_0x51eba9],_0x5d1279=_0x1ca688['version']>0x1?'\x20(v'+_0x1ca688[_0x3d11f2(0x1ce)]+')':'',_0x1fc4ab=await getItemFeedback(_0x1b6c8a,_0x1ca688['id']);if(_0x1fc4ab['unaddressedComments'][_0x3d11f2(0x131)]>0x0){console['log']('Scenario\x20'+_0x11ce79['FqSIr'](_0x51eba9,0x1)+_0x3d11f2(0x10f)+_0x1ca688[_0x3d11f2(0x191)]+'\x22'+_0x5d1279+_0x3d11f2(0x162)+_0x1fc4ab['unaddressedComments']['length']+_0x3d11f2(0x108));for(const _0x27aa05 of _0x1fc4ab['unaddressedComments']){const _0x4ebf99=new Date(_0x27aa05[_0x3d11f2(0x196)])['toLocaleDateString'](_0x11ce79[_0x3d11f2(0x15d)],{'month':'short','day':_0x11ce79['Qguzh']}),_0x5305ed=_0x27aa05['authorName']||_0x27aa05['authorEmail']||_0x3d11f2(0x1cc);console['log']('\x20\x20💬\x20'+_0x5305ed+'\x20('+_0x4ebf99+'):\x20\x22'+_0x27aa05[_0x3d11f2(0x161)]+'\x22');if(_0x27aa05['assetUrl']){const _0xba6203=await _0x11ce79[_0x3d11f2(0x120)](downloadFeedbackImage,_0x27aa05[_0x3d11f2(0x18c)],_0x27aa05['id']);_0xba6203&&console[_0x3d11f2(0x17a)](_0x3d11f2(0x1c7)+_0xba6203);}if(_0x27aa05['domRef']){const _0x21580a=_0x27aa05[_0x3d11f2(0x136)]['selector']['split'](_0x3d11f2(0x103))['pop']()?.['split'](':')[0x0]||_0x11ce79['Rrwuh'],_0x58545d=_0x27aa05[_0x3d11f2(0x136)][_0x3d11f2(0x175)]?'\x20\x22'+_0x27aa05[_0x3d11f2(0x136)][_0x3d11f2(0x175)]['slice'](0x0,0x3c)+'\x22':'';console['log'](_0x3d11f2(0x18b)+_0x21580a+'>'+_0x58545d),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x27aa05['domRef']['selector']);}else{if(_0x27aa05['spatial']){const _0x23a806=_0x27aa05[_0x3d11f2(0x1b1)][_0x3d11f2(0x1b2)];_0x27aa05[_0x3d11f2(0x1b1)][_0x3d11f2(0x142)]==='point'&&_0x11ce79[_0x3d11f2(0x106)](_0x23a806[_0x3d11f2(0x131)],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x23a806[0x0]['toFixed'](0x2)+',\x20'+_0x23a806[0x1][_0x3d11f2(0x190)](0x2)+')'):console['log'](_0x3d11f2(0x121)+_0x27aa05['spatial'][_0x3d11f2(0x142)]+_0x3d11f2(0x1c4)+_0x23a806[_0x3d11f2(0x1cf)](_0x4d1927=>_0x4d1927[_0x3d11f2(0x190)](0x2))[_0x3d11f2(0x1a3)](',\x20')+']');}}}if(_0x1fc4ab[_0x3d11f2(0x114)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x2427b6 of _0x1fc4ab[_0x3d11f2(0x114)]['split']('\x0a')){console[_0x3d11f2(0x17a)]('\x20\x20\x20\x20'+_0x2427b6);}}}else console['log']('Scenario\x20'+(_0x51eba9+0x1)+':\x20\x22'+_0x1ca688[_0x3d11f2(0x191)]+'\x22'+_0x5d1279+'\x20—\x20no\x20comments'),console[_0x3d11f2(0x17a)](_0x3d11f2(0x15e));console['log']('');}}export async function featureDelete(_0x5a9917){const _0x31fc45=_0x2869d5,_0x2e1536={'POuRF':function(_0x162700){return _0x162700();},'jhtbu':function(_0x391070,_0x1e046a){return _0x391070(_0x1e046a);},'WXQQa':_0x31fc45(0x14f)},_0x28f4ce=_0x5a9917||await _0x2e1536[_0x31fc45(0x13c)](getActiveFeatureId);if(!_0x28f4ce)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x4179ce=await getFeature(_0x28f4ce);await _0x2e1536['jhtbu'](softDeleteFeature,_0x28f4ce),console[_0x31fc45(0x17a)](_0x31fc45(0xff)+_0x4179ce['name']+'\x20('+_0x28f4ce+')'),console['log'](_0x2e1536[_0x31fc45(0x149)]+_0x28f4ce);}export async function featureRestore(_0xd0fb30){const _0x4b0f9e=_0x2869d5,_0x4a1095={'iSNRT':function(_0x2b9789,_0x2166e2){return _0x2b9789(_0x2166e2);},'snMtb':function(_0xb00d92,_0x2c537e){return _0xb00d92(_0x2c537e);}};await _0x4a1095['iSNRT'](restoreFeature,_0xd0fb30);const _0x1e2eb6=await _0x4a1095[_0x4b0f9e(0x13a)](getFeature,_0xd0fb30);console[_0x4b0f9e(0x17a)](_0x4b0f9e(0x186)+_0x1e2eb6[_0x4b0f9e(0x16c)]+'\x20('+_0xd0fb30+')'),displayFeature(_0x1e2eb6,_0x1e2eb6[_0x4b0f9e(0x17f)]);}
|
|
1
|
+
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
|
-
function
|
|
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
|
-
(function(
|
|
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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2080(_0x196feb,_0x2940d6){_0x196feb=_0x196feb-0xf8;const _0x1ff1dd=_0x1ff1();let _0x2080d0=_0x1ff1dd[_0x196feb];return _0x2080d0;}(function(_0x62301d,_0x58907c){const _0x8f84b6=_0x2080,_0x2f885c=_0x62301d();while(!![]){try{const _0x1ca372=parseInt(_0x8f84b6(0x102))/0x1+parseInt(_0x8f84b6(0x103))/0x2+-parseInt(_0x8f84b6(0x104))/0x3+parseInt(_0x8f84b6(0xfc))/0x4*(parseInt(_0x8f84b6(0xfb))/0x5)+-parseInt(_0x8f84b6(0xfe))/0x6*(-parseInt(_0x8f84b6(0xfa))/0x7)+parseInt(_0x8f84b6(0x101))/0x8+-parseInt(_0x8f84b6(0xfd))/0x9;if(_0x1ca372===_0x58907c)break;else _0x2f885c['push'](_0x2f885c['shift']());}catch(_0x5eea8d){_0x2f885c['push'](_0x2f885c['shift']());}}}(_0x1ff1,0x91bb0));import{isSessionEnabled}from'../utils/sessionCache.js';function _0x1ff1(){const _0x5bdec3=['kyQsk','CZkTX','session_id','7uLUmId','5lacPsl','858492jQhiXK','15489315tdSOqz','2392566NpDVWS','trim','drqmh','7543648UYATuF','362460JWftxw','1548900WzdwiJ','1125909BCjotD','eDPwP'];_0x1ff1=function(){return _0x5bdec3;};return _0x1ff1();}export function printBlock(_0xe7f271){console['log'](_0xe7f271);}export async function readHookInput(){const _0x4b7695=_0x2080;let _0x353071='';try{for await(const _0x4cdb2b of process['stdin']){_0x353071+=_0x4cdb2b;}}catch{return null;}if(!_0x353071[_0x4b7695(0xff)]())return null;try{return JSON['parse'](_0x353071);}catch{return null;}}export async function getEnabledSessionId(_0x27ce76){const _0x546f12=_0x2080,_0xc83549={'eDPwP':function(_0x210efa,_0x5ad974){return _0x210efa(_0x5ad974);},'YGgKl':function(_0x56a560){return _0x56a560();},'drqmh':function(_0x4ef994,_0x52fce3){return _0x4ef994(_0x52fce3);}};if(_0x27ce76)return _0xc83549[_0x546f12(0x105)](isSessionEnabled,_0x27ce76)?_0x27ce76:null;const _0x48f3e3=await _0xc83549['YGgKl'](readHookInput),_0x2ef375=_0x48f3e3?.[_0x546f12(0xf9)];if(!_0x2ef375||!_0xc83549[_0x546f12(0x100)](isSessionEnabled,_0x2ef375))return null;return _0x2ef375;}export async function getEnabledHookContext(_0x1de78c){const _0x546e3e=_0x2080,_0x278ebf={'kyQsk':function(_0x534e49,_0x383696){return _0x534e49(_0x383696);},'CZkTX':function(_0x72df3,_0x2c6f76){return _0x72df3(_0x2c6f76);}};if(_0x1de78c){if(!_0x278ebf[_0x546e3e(0x106)](isSessionEnabled,_0x1de78c))return null;return{'sessionId':_0x1de78c,'input':{'session_id':_0x1de78c}};}const _0x3b5d3b=await readHookInput(),_0x4ef15c=_0x3b5d3b?.['session_id'];if(!_0x4ef15c||!_0x278ebf[_0x546e3e(0xf8)](isSessionEnabled,_0x4ef15c))return null;return{'sessionId':_0x4ef15c,'input':_0x3b5d3b};}
|