@ranger-testing/ranger-cli 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -0
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x45ddec,_0x42715a){const _0x5031d1=_0x2bec,_0x9a880a=_0x45ddec();while(!![]){try{const _0x57f8d4=-parseInt(_0x5031d1(0xff))/0x1*(parseInt(_0x5031d1(0xee))/0x2)+parseInt(_0x5031d1(0xfc))/0x3*(parseInt(_0x5031d1(0xfb))/0x4)+parseInt(_0x5031d1(0xf3))/0x5*(parseInt(_0x5031d1(0xf0))/0x6)+parseInt(_0x5031d1(0xec))/0x7*(-parseInt(_0x5031d1(0xfd))/0x8)+parseInt(_0x5031d1(0xeb))/0x9*(-parseInt(_0x5031d1(0xf1))/0xa)+parseInt(_0x5031d1(0xe6))/0xb+parseInt(_0x5031d1(0xe8))/0xc;if(_0x57f8d4===_0x42715a)break;else _0x9a880a['push'](_0x9a880a['shift']());}catch(_0x39ab0d){_0x9a880a['push'](_0x9a880a['shift']());}}}(_0x536c,0x1c2cf));function _0x536c(){const _0x1f50d5=['8llriqH','object','1VVcIso','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','No\x20configuration\x20set\x20for\x20\x22','436183bcTBhk','Removed\x20','117876mfzcdd','rXhNj','pNTbM','18ZZZtxz','30604xINuaw','tEcnJ','360622OTTAwh','Profile\x20\x22','6138gRYKVE','24860VfPKQN',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','365cnemkn','\x20=\x20','stringify','BKpLb','ILRPa','dypCn','wwxHI','log','4MLopWj','542721GaVxeJ'];_0x536c=function(){return _0x1f50d5;};return _0x536c();}function _0x2bec(_0x47d53f,_0x2e3917){_0x47d53f=_0x47d53f-0xe5;const _0x536c07=_0x536c();let _0x2bec92=_0x536c07[_0x47d53f];return _0x2bec92;}import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseValue(_0x27f3ec,_0x324cb6){const _0x227ac0=_0x2bec,_0x2ddbcf={'abKoQ':'false'};if(BOOLEAN_KEYS['includes'](_0x27f3ec)){if(_0x324cb6==='true')return!![];if(_0x324cb6===_0x2ddbcf['abKoQ'])return![];throw new Error('Invalid\x20value\x20for\x20'+_0x27f3ec+_0x227ac0(0xf2));}return _0x324cb6;}export async function configSet(_0x46765c,_0x3b28dc,_0x23a74b){const _0xa53c5b=_0x2bec,_0xd5c0be={'SZYZx':function(_0x31a942,_0x484976){return _0x31a942(_0x484976);},'BKpLb':function(_0x4b5862,_0x1cc56b,_0x55f8b4,_0x211560){return _0x4b5862(_0x1cc56b,_0x55f8b4,_0x211560);},'tEcnJ':function(_0x1565f5,_0x1a790a,_0x346a42){return _0x1565f5(_0x1a790a,_0x346a42);}},_0x41f8a7=_0xd5c0be['SZYZx'](getEnvDir,_0x46765c);if(!_0xd5c0be['SZYZx'](existsSync,_0x41f8a7))throw new Error('Profile\x20\x22'+_0x46765c+_0xa53c5b(0x100)+_0x46765c);const _0x57c08d=await _0xd5c0be['SZYZx'](loadSettings,_0x46765c),_0x3895e5=parseValue(_0x3b28dc,_0x23a74b);_0xd5c0be[_0xa53c5b(0xf6)](setNestedValue,_0x57c08d,_0x3b28dc,_0x3895e5),await _0xd5c0be[_0xa53c5b(0xed)](saveSettings,_0x46765c,_0x57c08d),console[_0xa53c5b(0xfa)]('Set\x20'+_0x3b28dc+_0xa53c5b(0xf4)+_0x3895e5);}export async function configGet(_0x3414f2,_0x39de2f){const _0x49f420=_0x2bec,_0x37c6c3={'wwxHI':function(_0xf40822,_0x1a6060){return _0xf40822(_0x1a6060);},'ILRPa':function(_0x12ce60,_0x323198){return _0x12ce60===_0x323198;},'dypCn':function(_0xec04b8,_0x46e073){return _0xec04b8===_0x46e073;},'gOrvz':_0x49f420(0xfe)},_0x427c93=_0x37c6c3['wwxHI'](getEnvDir,_0x3414f2);if(!existsSync(_0x427c93))throw new Error(_0x49f420(0xef)+_0x3414f2+'\x22\x20does\x20not\x20exist.');const _0x501f1e=await _0x37c6c3[_0x49f420(0xf9)](loadSettings,_0x3414f2),_0x29e018=getNestedValue(_0x501f1e,_0x39de2f);if(_0x37c6c3[_0x49f420(0xf7)](_0x29e018,undefined))console[_0x49f420(0xfa)]('(not\x20set)');else _0x37c6c3[_0x49f420(0xf8)](typeof _0x29e018,_0x37c6c3['gOrvz'])?console['log'](JSON[_0x49f420(0xf5)](_0x29e018,null,0x2)):console[_0x49f420(0xfa)](_0x29e018);}export async function configList(_0x35783d){const _0x1992cc=_0x2bec,_0x233596={'rXhNj':function(_0x1cd0b3,_0x5023d0){return _0x1cd0b3(_0x5023d0);}},_0x504fc0=getSettingsPath(_0x35783d);if(!_0x233596['rXhNj'](existsSync,_0x504fc0)){const _0x437d37=_0x233596['rXhNj'](getEnvDir,_0x35783d);if(!_0x233596[_0x1992cc(0xe9)](existsSync,_0x437d37))throw new Error('Profile\x20\x22'+_0x35783d+'\x22\x20does\x20not\x20exist.');console[_0x1992cc(0xfa)](_0x1992cc(0xe5)+_0x35783d+'\x22');return;}const _0x78e566=await _0x233596[_0x1992cc(0xe9)](loadSettings,_0x35783d),_0x249cdf=_0x233596[_0x1992cc(0xe9)](formatSettings,_0x78e566);!_0x249cdf?console[_0x1992cc(0xfa)](_0x1992cc(0xe5)+_0x35783d+'\x22'):console['log'](_0x249cdf);}export async function configUnset(_0x31eff6,_0x459a58){const _0x2d4b16=_0x2bec,_0x15bd18={'sdCgI':function(_0x1bbc44,_0x5add6f){return _0x1bbc44(_0x5add6f);},'pNTbM':function(_0x20a40e,_0x1f08de,_0x53f050){return _0x20a40e(_0x1f08de,_0x53f050);}},_0x507d86=getEnvDir(_0x31eff6);if(!existsSync(_0x507d86))throw new Error('Profile\x20\x22'+_0x31eff6+'\x22\x20does\x20not\x20exist.');const _0x335e74=await _0x15bd18['sdCgI'](loadSettings,_0x31eff6),_0x452771=deleteNestedValue(_0x335e74,_0x459a58);_0x452771?(await _0x15bd18[_0x2d4b16(0xea)](saveSettings,_0x31eff6,_0x335e74),console[_0x2d4b16(0xfa)](_0x2d4b16(0xe7)+_0x459a58)):console['log']('Key\x20\x22'+_0x459a58+'\x22\x20not\x20found');}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x586fd7=_0x2b5a;(function(_0x504954,_0x1658f7){const _0x1a22c0=_0x2b5a,_0x341c99=_0x504954();while(!![]){try{const _0x6e44c0=parseInt(_0x1a22c0(0x117))/0x1*(parseInt(_0x1a22c0(0x10b))/0x2)+-parseInt(_0x1a22c0(0x112))/0x3*(parseInt(_0x1a22c0(0x10f))/0x4)+-parseInt(_0x1a22c0(0x101))/0x5*(-parseInt(_0x1a22c0(0x116))/0x6)+parseInt(_0x1a22c0(0x110))/0x7*(parseInt(_0x1a22c0(0x100))/0x8)+-parseInt(_0x1a22c0(0x104))/0x9*(-parseInt(_0x1a22c0(0x105))/0xa)+parseInt(_0x1a22c0(0x111))/0xb+parseInt(_0x1a22c0(0x108))/0xc*(-parseInt(_0x1a22c0(0x119))/0xd);if(_0x6e44c0===_0x1658f7)break;else _0x341c99['push'](_0x341c99['shift']());}catch(_0x218492){_0x341c99['push'](_0x341c99['shift']());}}}(_0x57d3,0xcce8a));function _0x57d3(){const _0x29c79d=['SktWG','log','ZaOXd','WKCfz','dAsDM','17288ZaNiam','20ujhNbB','zqPTR','bug-bashes','18KfBAbA','6004010UROwJZ','\x0a*\x20=\x20active\x20profile','exJmc','30154764kFLenq','\x20\x20\x20\x20\x20\x20Details:\x20','settings.json','14lkKBpL','local','environmentDetails','push','4sfgTuz','1827qazalI','15071738hsEZGm','1941474ARwcSt','baseUrl','nMWPA','legacy','294912GLsNmn','95396uGAKrq','NIZkT','13bmHpDd','.txt','\x0aProfiles:','Run:\x20ranger\x20profile\x20add\x20<profile-name>'];_0x57d3=function(){return _0x29c79d;};return _0x57d3();}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';const NON_ENV_DIRS=['sessions',_0x586fd7(0x103),'reports',_0x586fd7(0x10c),'ci'];function _0x2b5a(_0x138af2,_0x329640){_0x138af2=_0x138af2-0xfc;const _0x57d34c=_0x57d3();let _0x2b5a02=_0x57d34c[_0x138af2];return _0x2b5a02;}export async function getEnvNames(){const _0x59ccf7=_0x586fd7,_0x131539={'WkdFK':function(_0x12864c){return _0x12864c();},'ZaOXd':function(_0x52d8b7,_0x50cd70,_0x399990){return _0x52d8b7(_0x50cd70,_0x399990);},'Iyphg':function(_0x529b08,_0x117b36){return _0x529b08(_0x117b36);},'zFebh':_0x59ccf7(0x10c),'hjFXD':function(_0x4c7323,_0x3baa57){return _0x4c7323(_0x3baa57);},'cJmDk':function(_0x106afb,_0x26e9ed){return _0x106afb(_0x26e9ed);},'zqPTR':function(_0x98b83a,_0x54e408){return _0x98b83a(_0x54e408);},'JzWNu':_0x59ccf7(0x115)},_0x398aba=getRangerDir();if(!existsSync(_0x398aba))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x17c2d5=await _0x131539['WkdFK'](readActiveProfileName),_0xcf2442=[],_0x34b98e={},_0x17e8fa=_0x131539[_0x59ccf7(0xfd)](join,_0x398aba,_0x59ccf7(0x10c));if(existsSync(_0x17e8fa)){const _0xa274f0=await readdir(_0x17e8fa);for(const _0x3ae389 of _0xa274f0){const _0x102227=join(_0x17e8fa,_0x3ae389),_0x4596b6=await _0x131539['Iyphg'](stat,_0x102227);_0x4596b6['isDirectory']()&&(_0xcf2442[_0x59ccf7(0x10e)](_0x3ae389),_0x34b98e[_0x3ae389]=_0x131539['zFebh']);}}const _0x28823f=join(_0x398aba,'ci');if(_0x131539['hjFXD'](existsSync,_0x28823f)){const _0xd461db=await _0x131539['cJmDk'](readdir,_0x28823f);for(const _0x563fa6 of _0xd461db){const _0x55ba21=join(_0x28823f,_0x563fa6),_0x24698e=await stat(_0x55ba21);_0x24698e['isDirectory']()&&(_0xcf2442[_0x59ccf7(0x10e)](_0x563fa6),_0x34b98e[_0x563fa6]='ci');}}const _0x37894f=await readdir(_0x398aba);for(const _0x38db7e of _0x37894f){if(NON_ENV_DIRS['includes'](_0x38db7e))continue;if(_0x38db7e['startsWith']('.'))continue;if(_0x38db7e['endsWith'](_0x59ccf7(0x11a)))continue;const _0x387a09=join(_0x398aba,_0x38db7e),_0x4e19a6=await stat(_0x387a09);_0x4e19a6['isDirectory']()&&_0x131539[_0x59ccf7(0x102)](existsSync,join(_0x387a09,_0x59ccf7(0x10a)))&&(!_0xcf2442['includes'](_0x38db7e)&&(_0xcf2442[_0x59ccf7(0x10e)](_0x38db7e),_0x34b98e[_0x38db7e]=_0x131539['JzWNu']));}return{'envNames':_0xcf2442,'activeEnv':_0x17c2d5,'envTypes':_0x34b98e};}export async function envList(){const _0x191154=_0x586fd7,_0x5e89d7={'NIZkT':function(_0x54d769){return _0x54d769();},'SktWG':function(_0x1fc87a,_0xe0bbd8){return _0x1fc87a===_0xe0bbd8;},'WKCfz':'\x0aNo\x20profiles\x20found.','nMWPA':function(_0x5a9304,_0x209d67){return _0x5a9304===_0x209d67;},'exJmc':function(_0x867be8,_0x3cda10){return _0x867be8(_0x3cda10);},'dAsDM':'legacy'},{envNames:_0x131e37,activeEnv:_0x8c7ed4,envTypes:_0x30127a}=await _0x5e89d7[_0x191154(0x118)](getEnvNames);if(_0x5e89d7[_0x191154(0x11d)](_0x131e37['length'],0x0)){console['log'](_0x5e89d7[_0x191154(0xfe)]),console['log'](_0x191154(0x11c));return;}console['log'](_0x191154(0x11b));for(const _0xa4c531 of _0x131e37['sort']()){const _0x5858cf=_0x5e89d7[_0x191154(0x114)](_0xa4c531,_0x8c7ed4),_0x339d0c=_0x30127a[_0xa4c531]||'local',_0x49795f=await _0x5e89d7[_0x191154(0x107)](loadSettings,_0xa4c531),_0x538139=_0x5e89d7['nMWPA'](_0x339d0c,_0x5e89d7[_0x191154(0xff)])?'':'\x20['+_0x339d0c+']';console['log']('\x20\x20'+(_0x5858cf?'*\x20':'\x20\x20')+_0xa4c531+_0x538139),_0x49795f['baseUrl']&&console[_0x191154(0xfc)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x49795f[_0x191154(0x113)]),_0x49795f[_0x191154(0x10d)]&&console[_0x191154(0xfc)](_0x191154(0x109)+_0x49795f[_0x191154(0x10d)]);}_0x8c7ed4&&console[_0x191154(0xfc)](_0x191154(0x106));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x369c38=_0x2ae3;(function(_0x31db69,_0x594f87){const _0x42475e=_0x2ae3,_0x1dc5ba=_0x31db69();while(!![]){try{const _0x110815=parseInt(_0x42475e(0x10f))/0x1*(parseInt(_0x42475e(0x12c))/0x2)+-parseInt(_0x42475e(0x99))/0x3+-parseInt(_0x42475e(0xc8))/0x4*(parseInt(_0x42475e(0x96))/0x5)+parseInt(_0x42475e(0xbe))/0x6*(parseInt(_0x42475e(0xbb))/0x7)+parseInt(_0x42475e(0xd9))/0x8*(parseInt(_0x42475e(0x109))/0x9)+-parseInt(_0x42475e(0xfe))/0xa*(parseInt(_0x42475e(0x9e))/0xb)+parseInt(_0x42475e(0x10b))/0xc*(-parseInt(_0x42475e(0xc2))/0xd);if(_0x110815===_0x594f87)break;else _0x1dc5ba['push'](_0x1dc5ba['shift']());}catch(_0x43ef07){_0x1dc5ba['push'](_0x1dc5ba['shift']());}}}(_0x237a,0x27d7b));function _0x2ae3(_0x32363d,_0x1391c6){_0x32363d=_0x32363d-0x6c;const _0x237a7f=_0x237a();let _0x2ae39a=_0x237a7f[_0x32363d];return _0x2ae39a;}import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0xb866d5 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=_0x344099=>_0x369c38(0xa4)+_0x344099+_0x369c38(0xf6);function getGitRepoUrl(){const _0x99974f=_0x369c38,_0x553a4c={'XjmDQ':function(_0x1fd114,_0x37429a,_0x20290c){return _0x1fd114(_0x37429a,_0x20290c);},'esnYc':_0x99974f(0x118),'VqRLf':'utf-8','cTfCk':'pipe'};try{const _0x2f9071=_0x553a4c['XjmDQ'](execSync,_0x553a4c['esnYc'],{'encoding':_0x553a4c['VqRLf'],'stdio':[_0x553a4c[_0x99974f(0x6f)],'pipe',_0x553a4c[_0x99974f(0x6f)]]})[_0x99974f(0x138)]();return _0x2f9071[_0x99974f(0x100)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x99974f(0xba))[_0x99974f(0x100)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x181ee6=_0x369c38,_0x49341d={'vvpiw':function(_0x1ca4b9,_0x2712d4,_0x844fc8){return _0x1ca4b9(_0x2712d4,_0x844fc8);},'CYFFz':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ndyGk':'pipe'};try{return _0x49341d['vvpiw'](execSync,_0x49341d[_0x181ee6(0xa9)],{'encoding':'utf-8','stdio':[_0x181ee6(0x7f),_0x49341d['ndyGk'],_0x49341d['ndyGk']]})[_0x181ee6(0x138)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x26f764=_0x369c38,_0xd5beb7={'fjiqr':function(_0x37c0ac,_0x175b9a,_0x9eec76){return _0x37c0ac(_0x175b9a,_0x9eec76);}},_0xc0c712=_0xd5beb7['fjiqr'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0xc0c712))return null;try{const _0x4fb719=await _0xd5beb7[_0x26f764(0xf2)](readFile,_0xc0c712,'utf-8');return _0x4fb719[_0x26f764(0x138)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x1da54b){const _0x523d20=_0x369c38,_0x5b52a8={'HuoSW':function(_0x22fcf0){return _0x22fcf0();},'jDhWH':function(_0x10d782,_0x332eb9,_0x35b934){return _0x10d782(_0x332eb9,_0x35b934);}},_0x251e34=_0x5b52a8[_0x523d20(0xea)](getRangerDir),_0x36da64=join(_0x251e34,ACTIVE_FEATURE_FILE);!existsSync(_0x251e34)&&await _0x5b52a8[_0x523d20(0xc6)](mkdir,_0x251e34,{'recursive':!![]}),await writeFile(_0x36da64,_0x1da54b,'utf-8');}function getProgressDisplay(_0x5dfbb7){const _0x43ee7c=_0x369c38,_0x170530={'wEhMm':function(_0x320dd9,_0x1d7b8e){return _0x320dd9+_0x1d7b8e;},'zBoqs':function(_0x2564ef,_0x1c3e29){return _0x2564ef===_0x1c3e29;},'OQZhZ':function(_0x591aad,_0x4b18f5){return _0x591aad*_0x4b18f5;},'ucKwb':function(_0x357560,_0xfcb445){return _0x357560/_0xfcb445;},'lokeI':function(_0x3c7d15,_0x469528){return _0x3c7d15>_0x469528;}},_0x1b94ab=_0x5dfbb7[_0x43ee7c(0x142)]||0x0,_0x5f05f5=_0x5dfbb7[_0x43ee7c(0xee)]||0x0,_0x5b975b=_0x5dfbb7['blockedItems']||0x0,_0x4b53d7=_0x5dfbb7[_0x43ee7c(0x8d)]||0x0,_0x1f83fe=_0x5dfbb7['pendingItems']||0x0,_0x42cb12=_0x170530['wEhMm'](_0x170530[_0x43ee7c(0x11c)](_0x1b94ab+_0x5f05f5+_0x5b975b,_0x4b53d7),_0x1f83fe);if(_0x170530[_0x43ee7c(0x111)](_0x42cb12,0x0))return'-';const _0x3deb46=0xa,_0x1be32a=Math[_0x43ee7c(0x77)](_0x170530[_0x43ee7c(0xec)](_0x170530['ucKwb'](_0x1b94ab,_0x42cb12),_0x3deb46)),_0x322fb7='█'['repeat'](_0x1be32a)+'░'['repeat'](_0x3deb46-_0x1be32a),_0x152e0c=[];if(_0x5b975b>0x0)_0x152e0c['push'](_0x5b975b+'\x20blocked');if(_0x4b53d7>0x0)_0x152e0c[_0x43ee7c(0x9f)](_0x4b53d7+'\x20incomplete');if(_0x170530['lokeI'](_0x5f05f5,0x0))_0x152e0c['push'](_0x5f05f5+_0x43ee7c(0x131));const _0x509a61=_0x152e0c[_0x43ee7c(0x130)]>0x0?'\x20('+_0x152e0c[_0x43ee7c(0x125)](',\x20')+')':'';return _0x322fb7+'\x20'+_0x1b94ab+'/'+_0x42cb12+'\x20verified'+_0x509a61;}function getCurrentSessionItems(_0x85bbfd,_0x13e8ce){const _0x44c720=_0x369c38;if(!_0x85bbfd['currentSessionId'])return _0x13e8ce['filter'](_0x5c706d=>!_0x5c706d[_0x44c720(0xd7)]);return _0x13e8ce[_0x44c720(0x6e)](_0x1109cc=>_0x1109cc['sessionId']===_0x85bbfd[_0x44c720(0x122)]||!_0x1109cc['sessionId']);}function displayFeature(_0x574507,_0x1f590e){const _0xbf5af9=_0x369c38,_0x1caad0={'KaxGu':function(_0x4b60cc,_0x191a24){return _0x4b60cc(_0x191a24);},'qTyJM':function(_0x139437,_0x2342f5){return _0x139437>_0x2342f5;},'ZHaMR':function(_0x5e6a46,_0x12aaab){return _0x5e6a46<_0x12aaab;},'FUcbj':_0xbf5af9(0x135),'DCyDW':function(_0x3a237c,_0x3cb501){return _0x3a237c===_0x3cb501;},'REcvT':'verified','WSUgh':function(_0x30d4bb,_0x2bc485){return _0x30d4bb===_0x2bc485;},'mMuFD':_0xbf5af9(0x10a),'Elkmg':'blocked','sculC':_0xbf5af9(0x78),'uQYzn':function(_0x3b40d4,_0x555a97){return _0x3b40d4!==_0x555a97;},'Zjiag':function(_0x417a83,_0x469a4b){return _0x417a83+_0x469a4b;},'YDQWB':function(_0x325481,_0xb330af){return _0x325481===_0xb330af;}};console[_0xbf5af9(0xfa)]('\x0a'+_0x574507['name']+'\x20('+_0x574507['dashboardUrl']+')');_0x574507['stats']&&console[_0xbf5af9(0xfa)]('\x20\x20\x20Progress:\x20'+_0x1caad0[_0xbf5af9(0xb1)](getProgressDisplay,_0x574507['stats']));_0x574507[_0xbf5af9(0x11d)]&&console[_0xbf5af9(0xfa)]('\x20\x20\x20Description:\x20'+_0x574507[_0xbf5af9(0x11d)]);_0x574507['gitRepoUrl']&&console['log']('\x20\x20\x20Repository:\x20'+_0x574507['gitRepoUrl']);_0x574507['gitBranch']&&console['log'](_0xbf5af9(0xa0)+_0x574507[_0xbf5af9(0x117)]);console[_0xbf5af9(0xfa)]('\x20\x20\x20Created:\x20'+new Date(_0x574507[_0xbf5af9(0x87)])[_0xbf5af9(0xd4)]());_0x574507['completedAt']&&console[_0xbf5af9(0xfa)](_0xbf5af9(0xf0)+new Date(_0x574507['completedAt'])[_0xbf5af9(0xd4)]());if(_0x1f590e&&_0x1caad0['qTyJM'](_0x1f590e['length'],0x0)){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x6d800d=0x0;_0x1caad0['ZHaMR'](_0x6d800d,_0x1f590e['length']);_0x6d800d++){const _0x442926=_0x1f590e[_0x6d800d];let _0x19a6b9;if(_0x442926[_0xbf5af9(0x105)]==='closed'&&_0x442926[_0xbf5af9(0x134)]===_0x1caad0['FUcbj'])_0x19a6b9='✅';else{if(_0x1caad0['DCyDW'](_0x442926['status'],_0x1caad0['REcvT']))_0x19a6b9='🟢';else{if(_0x1caad0['WSUgh'](_0x442926['status'],_0x1caad0['mMuFD']))_0x19a6b9='🟠';else{if(_0x442926['status']===_0x1caad0['Elkmg'])_0x19a6b9='🛑';else{if(_0x442926[_0xbf5af9(0x105)]===_0x1caad0['sculC'])_0x19a6b9='⛔';else _0x442926['status']===_0xbf5af9(0x88)?_0x19a6b9='⏳':_0x19a6b9='⬜';}}}}const _0x35a567=_0x1caad0['qTyJM'](_0x442926['version'],0x1)?'\x20(v'+_0x442926[_0xbf5af9(0xc4)]+')':'',_0x236b4e=_0x1caad0['qTyJM'](_0x442926[_0xbf5af9(0xc4)],0x1)&&_0x442926[_0xbf5af9(0x72)]&&_0x1caad0['uQYzn'](_0x442926['status'],_0xbf5af9(0x78))&&_0x442926[_0xbf5af9(0x105)]!=='verified'?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+_0x1caad0[_0xbf5af9(0xf1)](_0x6d800d,0x1)+'.\x20'+_0x19a6b9+'\x20'+_0x442926[_0xbf5af9(0x11d)]+_0x35a567+_0x236b4e);_0x442926['status']===_0x1caad0[_0xbf5af9(0x13e)]&&_0x442926['blockedReason']&&console[_0xbf5af9(0xfa)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x442926[_0xbf5af9(0x8b)]);_0x442926[_0xbf5af9(0x105)]==='incomplete'&&_0x442926[_0xbf5af9(0xf4)]&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x442926['incompleteReason']);if(_0x1caad0['WSUgh'](_0x442926[_0xbf5af9(0x105)],_0xbf5af9(0x78))&&_0x1caad0['YDQWB'](_0x442926['terminalReason'],'approved'))console['log'](_0xbf5af9(0xe9));else _0x442926[_0xbf5af9(0x105)]==='closed'&&_0x442926['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x442926[_0xbf5af9(0x112)]);}}}export async function featureCreate(_0x57683e,_0x2a3e9b){const _0x400a10=_0x369c38,_0x1ea1a8={'DbSXN':function(_0x28c8b2,_0x4e0a4e){return _0x28c8b2===_0x4e0a4e;},'SixsK':function(_0x20fad5,_0x41d012){return _0x20fad5(_0x41d012);},'GSoRF':function(_0x2c6cd5){return _0x2c6cd5();},'uHnrd':function(_0x24ee3b,_0x37fe57,_0xb754a6){return _0x24ee3b(_0x37fe57,_0xb754a6);}},{envNames:_0x736666}=await getEnvNames();_0x1ea1a8['DbSXN'](_0x736666['length'],0x0)&&console[_0x400a10(0xa5)]('\x0a'+_0x1ea1a8['SixsK'](formatProfileRequiredMessage,_0x7e6fc9=>bold(_0x7e6fc9)));const _0x54f0f7=_0x2a3e9b['scenarios']?_0x2a3e9b[_0x400a10(0x9a)][_0x400a10(0xbf)](_0x5c219c=>_0x5c219c[_0x400a10(0x138)]()):[],_0x51ea78=_0x1ea1a8['GSoRF'](getGitRepoUrl),_0x497409=getGitBranch();console[_0x400a10(0xfa)]('\x0aCreating\x20feature\x20review...');const _0x48ab53=await createFeature({'name':_0x57683e,'description':_0x2a3e9b[_0x400a10(0x11d)],'checklist':_0x54f0f7,'gitRepoUrl':_0x51ea78,'gitBranch':_0x497409});await _0x1ea1a8[_0x400a10(0xf5)](setActiveFeatureId,_0x48ab53['id']),await tryStartCurrentSession(_0x48ab53['id']);const _0x1f3979=process[_0x400a10(0xf3)]['CLAUDE_SESSION_ID'];_0x1f3979&&_0x1ea1a8['uHnrd'](registerSession,_0x1f3979,_0x48ab53['id']),console[_0x400a10(0xfa)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x48ab53['id']),displayFeature(_0x48ab53,_0x48ab53['checklistItems']),console[_0x400a10(0xfa)](_0x400a10(0xac));}export async function featureList(_0x4fe42d){const _0x2fb9e5=_0x369c38,_0x46ce0a={'flHYk':function(_0x58da17){return _0x58da17();},'qMmUS':function(_0x49f96f){return _0x49f96f();},'WWwZt':function(_0x555d16,_0x4e3b63){return _0x555d16(_0x4e3b63);},'lVNWM':function(_0x155a15,_0x5cbf10){return _0x155a15===_0x5cbf10;},'NDvci':_0x2fb9e5(0x6d),'HGPCY':function(_0x2890a2,_0x495a78){return _0x2890a2>_0x495a78;},'ljXtY':function(_0x1caa4c,_0x4fa571){return _0x1caa4c+_0x4fa571;}},_0x11d226={'limit':_0x4fe42d[_0x2fb9e5(0x83)]??0xa,'offset':_0x4fe42d['offset']??0x0,'includeDeleted':_0x4fe42d['includeDeleted']};_0x4fe42d[_0x2fb9e5(0xce)]&&(_0x11d226[_0x2fb9e5(0xab)]=_0x46ce0a[_0x2fb9e5(0xc3)](getGitRepoUrl),_0x11d226[_0x2fb9e5(0x117)]=_0x46ce0a['qMmUS'](getGitBranch));const _0x223051=await _0x46ce0a['WWwZt'](listFeatures,_0x11d226);if(_0x46ce0a[_0x2fb9e5(0x81)](_0x223051['items']['length'],0x0)){console['log'](_0x46ce0a['NDvci']);return;}const _0x32bce8=_0x46ce0a['HGPCY'](_0x223051['totalCount'],_0x223051[_0x2fb9e5(0xe5)][_0x2fb9e5(0x130)])?'Showing\x20'+_0x223051[_0x2fb9e5(0xe5)][_0x2fb9e5(0x130)]+'\x20of\x20'+_0x223051[_0x2fb9e5(0xb6)]:_0x223051[_0x2fb9e5(0xb6)]+_0x2fb9e5(0xe0);console['log']('\x0a'+_0x32bce8+':\x0a');for(const _0x3074a9 of _0x223051[_0x2fb9e5(0xe5)]){console['log'](''+_0x3074a9['name']),console['log']('\x20\x20\x20ID:\x20'+_0x3074a9['id']),_0x3074a9[_0x2fb9e5(0xbc)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x46ce0a[_0x2fb9e5(0x94)](getProgressDisplay,_0x3074a9[_0x2fb9e5(0xbc)])),_0x3074a9[_0x2fb9e5(0x117)]&&console[_0x2fb9e5(0xfa)]('\x20\x20\x20Branch:\x20'+_0x3074a9['gitBranch']),console['log'](_0x2fb9e5(0x97)+new Date(_0x3074a9[_0x2fb9e5(0x87)])[_0x2fb9e5(0x98)]()),console['log']('');}const _0x40f244=_0x11d226[_0x2fb9e5(0x83)]??0xa,_0x169619=_0x46ce0a['ljXtY'](_0x11d226[_0x2fb9e5(0x129)]??0x0,_0x223051[_0x2fb9e5(0xe5)]['length']);if(_0x169619<_0x223051['totalCount']){const _0x39781a=_0x40f244!==0xa?'\x20--limit\x20'+_0x40f244:'',_0x16dd74=_0x4fe42d['currentBranch']?_0x2fb9e5(0xca):'',_0x54724e=_0x4fe42d[_0x2fb9e5(0x132)]?_0x2fb9e5(0x126):'';console[_0x2fb9e5(0xfa)](_0x2fb9e5(0xe3)+_0x169619+_0x39781a+_0x16dd74+_0x54724e);}}export async function featureShow(_0x3413f4){const _0x2cbe8d=_0x369c38,_0x2266f8={'xzDFe':function(_0xb5c6c6){return _0xb5c6c6();},'nxMyf':function(_0x1c3633,_0x5ee619){return _0x1c3633(_0x5ee619);}},_0x11c38d=_0x3413f4||await _0x2266f8[_0x2cbe8d(0x121)](getActiveFeatureId);if(!_0x11c38d)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 _0xdd59f8=await _0x2266f8[_0x2cbe8d(0xe7)](getFeature,_0x11c38d);displayFeature(_0xdd59f8,_0xdd59f8['checklistItems']);}function _0x237a(){const _0x110215=['kxohJ','gitBranch','git\x20remote\x20get-url\x20origin','Hurli','latestReview','textContent','wEhMm','description','TiehI','assetType','SOAWB','xzDFe','currentSessionId','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','MpjRG','join','\x20--include-deleted','exit','llCex','offset','EatyJ','VAIgn','382nNFcOG','prompt','\x20scenario(s).','error','length','\x20in\x20progress','includeDeleted','pop','terminalReason','approved','canonicalFlow','Current\x20session\x20not\x20found.','trim','No\x20active\x20session\x20for\x20this\x20feature\x20review.','FlVTt','list','/api/v1/mcp/browser-sessions/','authorName','Elkmg','CDAho','location','iteration','verifiedItems','assets','\x0a⚠️\x20\x20','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','\x0aNo\x20feature\x20reviews\x20found.','filter','cTfCk','numeric','\x20at\x20[','parentItemId','after','\x20\x20💬\x20','kpsVb','isTTY','round','closed','short','dashboardUrl','Please\x20finish\x20your\x20review\x20first:','\x20—\x20','AHquq','.png','pipe','zImlh','lVNWM','\x20\x20\x20\x20\x20Branch:\x20','limit','Not\x20in\x20a\x20git\x20repository.','IjLjI','dOJiW','createdAt','verification_in_progress','QNulE','BEHIa','blockedReason','iieFF','incompleteItems','TUHWU','WETtU','agentResponse','OWgtA','completed','completedAt','WWwZt','YKMKB','5vbnRZd','\x20\x20\x20Created:\x20','toLocaleDateString','255645nvTYtU','scenarios','HTvAE','\x0a✅\x20Resumed\x20feature\x20review:\x20','biZFu','528eGSJmf','push','\x20\x20\x20Branch:\x20','\x20scenarios.','wOwiq','xJpyN','\x1b[1m','warn','/artifacts/','assetUrl','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','CYFFz','leNXv','gitRepoUrl','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20concluded.','FChDe','unaddressedComments','KaxGu','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','selector','write','HfPhh','totalCount','RkGZw','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','domRef','github.com/','7ecURbt','stats','jahZU','1222206KeZXBj','map','stdout','fSNju','39aqdZHi','flHYk','version','stringify','jDhWH','spatial','94252fIhQyr','scenario','\x20--current-branch','\x20(v','pablf','YSOgF','currentBranch','eOmQA','isKeyStep','Scenario\x20','name','\x0a✅\x20Session\x20','toLocaleString','timing','KUuCU','sessionId','from','6264oPAhgu',':\x20\x22','JYqOQ','storage','get','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','screenshot','\x20feature\x20review(s)\x20found','find','\x0aAvailable\x20scenarios:','Next\x20page:\x20ranger\x20list\x20--offset\x20','MRZCh','items','xWTnS','nxMyf','coordinates','\x20\x20\x20\x20\x20\x20Approved','HuoSW','VwKrG','OQZhZ','DuahD','verificationInProgressItems','\x20\x20Expected\x20flow:','\x20\x20\x20Completed:\x20','Zjiag','fjiqr','env','incompleteReason','SixsK','\x1b[0m','zxhDR','szEvy','browserSessionId','log','hGoCd','split','excludeScenarios','36730GiMLkF','TVTlf','replace','eZQHq','\x20\x20\x20\x20\x20Progress:\x20','trimEnd','Cannot\x20conclude\x20session\x20with\x20status:\x20','status','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','style','\x0a✅\x20Scenario\x20added','3447rPWHRr','incomplete','557412kiXgsp','isInteger','OideW','gfpvE','440PlGQLr','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','zBoqs','canceledReason','\x20\x20\x20\x20','\x0aGenerating\x20report...','checklistItems'];_0x237a=function(){return _0x110215;};return _0x237a();}export async function featureResume(_0x235d83){const _0x39cab6=_0x369c38,_0x4cb813={'biZFu':function(_0x20f4e9,_0x3ace43){return _0x20f4e9!==_0x3ace43;},'dOJiW':function(_0xe4a9e4,_0x439c56,_0x195cff){return _0xe4a9e4(_0x439c56,_0x195cff);},'wMFgN':function(_0x190e39){return _0x190e39();},'szEvy':function(_0x486794,_0x289877){return _0x486794&&_0x289877;},'hGoCd':function(_0x449539,_0x3cac8b){return _0x449539||_0x3cac8b;},'mMlbr':'any','riKsi':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','RmZxK':_0x39cab6(0x13b),'xWTnS':'selected','RIPXD':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','xNeyy':function(_0x971e1d,_0x537147){return _0x971e1d(_0x537147);},'HfPhh':function(_0x45be97,_0x38d508,_0x180181){return _0x45be97(_0x38d508,_0x180181);},'cOKSv':function(_0x1fc1b2,_0x3182ac){return _0x1fc1b2(_0x3182ac);}};if(_0x235d83){const _0x58359b=await getFeature(_0x235d83);await setActiveFeatureId(_0x58359b['id']);const _0x47a1fe=getGitBranch();_0x47a1fe&&_0x4cb813[_0x39cab6(0x9d)](_0x47a1fe,_0x58359b['gitBranch'])&&(await updateFeature(_0x58359b['id'],{'gitBranch':_0x47a1fe}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x47a1fe));console['log'](_0x39cab6(0x9c)+_0x58359b['name']+'\x20('+_0x58359b['id']+')'),await tryStartCurrentSession(_0x58359b['id']);const _0x3f4391=process[_0x39cab6(0xf3)]['CLAUDE_SESSION_ID'];_0x3f4391&&_0x4cb813[_0x39cab6(0x86)](registerSession,_0x3f4391,_0x58359b['id']);displayFeature(_0x58359b,_0x58359b[_0x39cab6(0x115)]),await printFeedbackNudge(_0x58359b['id']);return;}const _0x1810a6=_0x4cb813['wMFgN'](getGitRepoUrl),_0x3d7bb3=getGitBranch();if(_0x4cb813[_0x39cab6(0xf8)](!_0x1810a6,!_0x3d7bb3))throw new Error(_0x39cab6(0x84));console['log'](_0x39cab6(0x106)+_0x4cb813[_0x39cab6(0xfb)](_0x1810a6,'any')+'\x20/\x20'+_0x4cb813[_0x39cab6(0xfb)](_0x3d7bb3,_0x4cb813['mMlbr'])+'...');const _0x197cd1=await listFeatures({'gitRepoUrl':_0x1810a6,'gitBranch':_0x3d7bb3}),_0x3eb74b=_0x197cd1['items'][_0x39cab6(0x6e)](_0x36b3e0=>!_0x36b3e0['completedAt']);if(_0x3eb74b['length']===0x0){console['log'](_0x39cab6(0x123)),console['log'](_0x4cb813['riKsi']);return;}let _0x45810b;if(_0x3eb74b[_0x39cab6(0x130)]===0x1)_0x45810b=_0x3eb74b[0x0];else{const _0x4b3541=process['stdin'][_0x39cab6(0x76)]&&process[_0x39cab6(0xc0)][_0x39cab6(0x76)];if(!_0x4b3541){console[_0x39cab6(0xfa)]('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x4c79d1 of _0x3eb74b){console['log']('\x20\x20'+_0x4c79d1['name']),console[_0x39cab6(0xfa)]('\x20\x20\x20\x20\x20ID:\x20'+_0x4c79d1['id']),_0x4c79d1[_0x39cab6(0xbc)]&&console[_0x39cab6(0xfa)](_0x39cab6(0x102)+getProgressDisplay(_0x4c79d1['stats'])),_0x4c79d1[_0x39cab6(0x117)]&&console[_0x39cab6(0xfa)](_0x39cab6(0x82)+_0x4c79d1['gitBranch']);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x2c20c0}=await _0xb866d5[_0x39cab6(0x12d)]([{'type':_0x4cb813['RmZxK'],'name':_0x4cb813[_0x39cab6(0xe6)],'message':_0x4cb813['RIPXD'],'choices':_0x3eb74b['map'](_0x3bca47=>({'name':_0x3bca47[_0x39cab6(0xd2)]+'\x20('+_0x3bca47['id']+')','value':_0x3bca47['id']}))}]);_0x45810b=_0x3eb74b[_0x39cab6(0xe1)](_0x3736e5=>_0x3736e5['id']===_0x2c20c0);}await setActiveFeatureId(_0x45810b['id']);_0x3d7bb3&&_0x3d7bb3!==_0x45810b[_0x39cab6(0x117)]&&(await updateFeature(_0x45810b['id'],{'gitBranch':_0x3d7bb3}),console[_0x39cab6(0xfa)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3d7bb3));console[_0x39cab6(0xfa)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x45810b['name']+'\x20('+_0x45810b['id']+')'),await _0x4cb813['xNeyy'](tryStartCurrentSession,_0x45810b['id']);const _0x4d89a6=await getFeature(_0x45810b['id']),_0x17a139=process[_0x39cab6(0xf3)]['CLAUDE_SESSION_ID'];_0x17a139&&_0x4cb813[_0x39cab6(0xb5)](registerSession,_0x17a139,_0x4d89a6['id']),_0x4cb813['HfPhh'](displayFeature,_0x4d89a6,_0x4d89a6['checklistItems']),await _0x4cb813['cOKSv'](printFeedbackNudge,_0x4d89a6['id']);}async function printFeedbackNudge(_0x36b307){const _0x464ab0=_0x369c38,_0x14dfec={'llCex':function(_0x32d8f9,_0x45b1fd){return _0x32d8f9(_0x45b1fd);},'jKdmS':function(_0x4fbd28,_0x21e6b4,_0x491327){return _0x4fbd28(_0x21e6b4,_0x491327);},'iieFF':function(_0x164f2c,_0x4abe6f){return _0x164f2c>_0x4abe6f;},'SzqRp':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x33a150}=await _0x14dfec[_0x464ab0(0x128)](getActionItems,_0x36b307);let _0x239ac8=0x0,_0x2e2735=0x0;for(const _0x3f6435 of _0x33a150){const _0x4d163f=await _0x14dfec['jKdmS'](getItemFeedback,_0x36b307,_0x3f6435['id']);_0x14dfec[_0x464ab0(0x8c)](_0x4d163f[_0x464ab0(0xb0)]['length'],0x0)&&(_0x239ac8+=_0x4d163f[_0x464ab0(0xb0)]['length'],_0x2e2735++);}_0x14dfec[_0x464ab0(0x8c)](_0x239ac8,0x0)&&(console['log'](_0x464ab0(0x144)+_0x239ac8+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x2e2735+_0x464ab0(0x12e)),console['log'](_0x14dfec['SzqRp']));}catch{}}async function tryStartCurrentSession(_0x1a147d){const _0x251747=_0x369c38,_0x550c12={'DuahD':function(_0x10c168,_0x47430f){return _0x10c168(_0x47430f);},'THKrT':function(_0x2285d3,_0x3f0f80,_0x244f8b){return _0x2285d3(_0x3f0f80,_0x244f8b);}};try{const {sessions:_0x352915}=await _0x550c12[_0x251747(0xed)](listFeatureSessions,_0x1a147d),_0x339bb0=_0x352915['find'](_0xcac62f=>_0xcac62f[_0x251747(0x105)]==='ready');_0x339bb0&&(await _0x550c12['THKrT'](startSession,_0x1a147d,_0x339bb0['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x339bb0[_0x251747(0x141)]));}catch{}}export async function featureReport(_0x11ac8c,_0x5808f1){const _0x5ddc3c=_0x369c38,_0x25242a={'yGCtP':function(_0x339b28){return _0x339b28();},'RkGZw':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Hurli':_0x5ddc3c(0x114),'fSNju':function(_0x34d0c8,_0x4596df,_0x459e83){return _0x34d0c8(_0x4596df,_0x459e83);},'FChDe':function(_0x333bcb,_0x1d6eb4,_0x1485ae,_0x55601f){return _0x333bcb(_0x1d6eb4,_0x1485ae,_0x55601f);},'WyvbC':function(_0x1c5635,_0x2714b8){return _0x1c5635(_0x2714b8);},'YKMKB':'utf-8'},_0x58fb4d=_0x11ac8c||await _0x25242a['yGCtP'](getActiveFeatureId);if(!_0x58fb4d)throw new Error(_0x25242a[_0x5ddc3c(0xb7)]);console[_0x5ddc3c(0xfa)](_0x25242a[_0x5ddc3c(0x119)]);const _0x3653e8=await _0x25242a[_0x5ddc3c(0xc1)](getFeatureReportMarkdown,_0x58fb4d,{'style':_0x5808f1[_0x5ddc3c(0x107)]}),_0x63caa6=_0x5808f1['output']||_0x25242a[_0x5ddc3c(0xaf)](join,getRangerDir(),'reports',_0x58fb4d+'.md'),_0x50eae8=join(_0x63caa6,'..');!_0x25242a['WyvbC'](existsSync,_0x50eae8)&&await mkdir(_0x50eae8,{'recursive':!![]}),await writeFile(_0x63caa6,_0x3653e8,_0x25242a[_0x5ddc3c(0x95)]),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x63caa6);}function getScenarioResult(_0x50a530){const _0x44476e=_0x369c38,_0x377b2a={'MdbIy':_0x44476e(0x78),'ptLwN':function(_0x12e6be,_0xad76b2){return _0x12e6be===_0xad76b2;},'CDAho':_0x44476e(0x88),'GbMxJ':'in_progress'};if(_0x50a530[_0x44476e(0x105)]===_0x44476e(0x78))return _0x50a530['terminalReason']??_0x377b2a['MdbIy'];if(_0x377b2a['ptLwN'](_0x50a530[_0x44476e(0x105)],_0x377b2a[_0x44476e(0x13f)]))return _0x377b2a['GbMxJ'];return _0x50a530['status'];}function getScenarioRationale(_0x2033a8,_0x39c90f){const _0x12a828=_0x369c38;if(_0x39c90f)return _0x39c90f;if(_0x2033a8['blockedReason'])return _0x2033a8['blockedReason'];if(_0x2033a8['incompleteReason'])return _0x2033a8['incompleteReason'];if(_0x2033a8[_0x12a828(0x112)])return _0x2033a8['canceledReason'];if(_0x2033a8['notes'])return _0x2033a8['notes'];return null;}export async function featureReportPrDescription(_0x1b5673,_0xaa234d){const _0x2a9bfe=_0x369c38,_0x3913e4={'Akedm':function(_0x42e31e){return _0x42e31e();},'TUHWU':function(_0x4c318a,_0x31f993){return _0x4c318a(_0x31f993);},'eOmQA':function(_0x19b936,_0x193dd7){return _0x19b936===_0x193dd7;},'AHquq':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','wOwiq':_0x2a9bfe(0xe2),'SOAWB':function(_0x1860f2,_0x492ffb,_0x4bfcf5){return _0x1860f2(_0x492ffb,_0x4bfcf5);}},_0x2a4a21=_0x1b5673||await _0x3913e4['Akedm'](getActiveFeatureId);if(!_0x2a4a21)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x4ec88b=await _0x3913e4[_0x2a9bfe(0x8e)](getFeature,_0x2a4a21),_0x2259bb=_0x4ec88b[_0x2a9bfe(0x115)]||[],_0xbc492f=getCurrentSessionItems(_0x4ec88b,_0x2259bb);_0x3913e4[_0x2a9bfe(0xcf)](_0xbc492f['length'],0x0)&&(console['error'](_0x3913e4[_0x2a9bfe(0x7d)]),process[_0x2a9bfe(0x127)](0x1));const _0x12bc4b=_0xaa234d[_0x2a9bfe(0xfd)]??[],_0x35656c=_0x12bc4b['filter'](_0x57f2ef=>!Number[_0x2a9bfe(0x10c)](_0x57f2ef)||_0x57f2ef<0x1||_0x57f2ef>_0xbc492f[_0x2a9bfe(0x130)]);if(_0x35656c['length']>0x0){console[_0x2a9bfe(0x12f)](_0x2a9bfe(0x145)+_0x35656c[_0x2a9bfe(0x125)](',\x20')),console[_0x2a9bfe(0xfa)](_0x3913e4[_0x2a9bfe(0xa2)]);for(let _0x200455=0x0;_0x200455<_0xbc492f[_0x2a9bfe(0x130)];_0x200455++){console['log']('\x20\x20'+(_0x200455+0x1)+'.\x20'+_0xbc492f[_0x200455]['description']);}process['exit'](0x1);}const _0x7b2b7a=new Set(_0x12bc4b['map'](_0x397b31=>_0x397b31-0x1)),_0x22dd2d=_0xbc492f[_0x2a9bfe(0x6e)]((_0x48c966,_0x3f08d1)=>!_0x7b2b7a['has'](_0x3f08d1));_0x3913e4[_0x2a9bfe(0xcf)](_0x22dd2d['length'],0x0)&&(console[_0x2a9bfe(0x12f)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x2a9bfe(0x127)](0x1));if(_0xaa234d['json'])await outputJsonReport(_0x2a4a21,_0x4ec88b,_0x22dd2d);else{const _0x27e295=await _0x3913e4[_0x2a9bfe(0x120)](getFeatureReportMarkdown,_0x2a4a21,{'itemIds':_0x22dd2d[_0x2a9bfe(0xbf)](_0x12a82b=>_0x12a82b['id'])});process[_0x2a9bfe(0xc0)][_0x2a9bfe(0xb4)](_0x27e295[_0x2a9bfe(0x103)]()+'\x0a');}}async function outputJsonReport(_0x45a56f,_0x14c88b,_0xdf80a2){const _0x2115fb=_0x369c38,_0x3f4edd={'VAIgn':function(_0x32178b,_0x3ff30d){return _0x32178b(_0x3ff30d);},'VwKrG':function(_0x235c5d,_0x2dc0a2){return _0x235c5d===_0x2dc0a2;},'hZsBQ':function(_0x3bfb6c,_0xe7fbbb){return _0x3bfb6c(_0xe7fbbb);},'TVTlf':function(_0x237910,_0x2b2514){return _0x237910(_0x2b2514);}},_0x5118dd=getApiBaseUrl(),_0x33f704=await _0x3f4edd[_0x2115fb(0xff)](getFeatureReport,_0x45a56f),_0x3f72e6=new Map(_0x33f704[_0x2115fb(0x115)]['map'](_0x30b8cd=>[_0x30b8cd['id'],_0x30b8cd])),_0xd2a92e=await Promise['all'](_0xdf80a2['map'](async _0x480405=>{const _0x4fb0d2=_0x2115fb,_0x5837c1=_0x3f72e6[_0x4fb0d2(0xdd)](_0x480405['id']),_0x385f70=_0x5837c1?.['linkedSession']??null;let _0x3a85a3=[];if(_0x480405['browserSessionId'])try{const {steps:_0x5eb9fa}=await _0x3f4edd[_0x4fb0d2(0x12b)](getBrowserSessionSteps,_0x480405['browserSessionId']);_0x5eb9fa[_0x4fb0d2(0x130)]>0x0&&(_0x3a85a3=_0x5eb9fa['map'](_0x4a7053=>{const _0x1bc008=_0x4fb0d2,_0x2f3b94=_0x4a7053['assets'][_0x1bc008(0xe1)](_0x46c05e=>_0x46c05e['assetType']===_0x1bc008(0xdf)&&_0x46c05e[_0x1bc008(0xd5)]===_0x1bc008(0x73))??_0x4a7053[_0x1bc008(0x143)]['find'](_0x4fcf4f=>_0x4fcf4f[_0x1bc008(0x11f)]===_0x1bc008(0xdf));let _0x48e776=null,_0x58d760=null;if(_0x2f3b94){const _0x308933=_0x2f3b94[_0x1bc008(0xdc)][_0x1bc008(0x140)][_0x1bc008(0xfc)]('/')[_0x1bc008(0x133)]();_0x48e776=_0x5118dd+_0x1bc008(0x13c)+_0x480405[_0x1bc008(0xf9)]+_0x1bc008(0xa6)+_0x308933,_0x308933&&(_0x58d760=_0x308933['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x58d760||_0x4a7053[_0x1bc008(0x11d)]||_0x4a7053['stepName']||'Step\x20'+_0x4a7053['position'],'screenshot':_0x48e776,'is_key_step':_0x4a7053[_0x1bc008(0xd0)]};}));}catch{}return _0x3f4edd[_0x4fb0d2(0xeb)](_0x3a85a3['length'],0x0)&&_0x385f70?.['screenshotUrls']&&(_0x3a85a3=_0x385f70['screenshotUrls']['map']((_0x465cb0,_0x4ff2bd)=>({'description':'Screenshot\x20'+(_0x4ff2bd+0x1),'screenshot':_0x465cb0,'is_key_step':![]}))),{'description':_0x480405['description'],'result':_0x3f4edd['hZsBQ'](getScenarioResult,_0x480405),'rationale':getScenarioRationale(_0x480405,_0x385f70?.[_0x4fb0d2(0x90)]),'steps':_0x3a85a3};})),_0x3a6852={'url':_0x14c88b[_0x2115fb(0x7a)],'scenarios':_0xd2a92e};process['stdout']['write'](JSON[_0x2115fb(0xc5)](_0x3a6852,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x3222f2){const _0x2a25d9=_0x369c38,_0x13e1da={'IjLjI':function(_0x235b9b){return _0x235b9b();},'DkzJT':_0x2a25d9(0xad),'KUuCU':function(_0x245976,_0x29637f){return _0x245976(_0x29637f);},'kpsVb':_0x2a25d9(0x137),'MRZCh':_0x2a25d9(0x92),'jahZU':'\x0a✅\x20Session\x20is\x20already\x20completed.','FlVTt':function(_0x31a5d3,_0x11f2db){return _0x31a5d3!==_0x11f2db;},'zxhDR':'in_progress','zMfPT':'\x0aConcluding\x20session...'},_0x2bd171=_0x3222f2||await _0x13e1da[_0x2a25d9(0x85)](getActiveFeatureId);if(!_0x2bd171)throw new Error(_0x13e1da['DkzJT']);const _0x2a36ec=await _0x13e1da['KUuCU'](getFeature,_0x2bd171);if(!_0x2a36ec['currentSessionId'])throw new Error(_0x2a25d9(0x139));const {sessions:_0x209286}=await _0x13e1da[_0x2a25d9(0xd6)](listFeatureSessions,_0x2bd171),_0x27f55e=_0x209286[_0x2a25d9(0xe1)](_0x4f1911=>_0x4f1911['id']===_0x2a36ec[_0x2a25d9(0x122)]);if(!_0x27f55e)throw new Error(_0x13e1da[_0x2a25d9(0x75)]);if(_0x27f55e['status']===_0x13e1da[_0x2a25d9(0xe4)]){console['log'](_0x13e1da[_0x2a25d9(0xbd)]);return;}if(_0x13e1da[_0x2a25d9(0x13a)](_0x27f55e['status'],_0x13e1da[_0x2a25d9(0xf7)]))throw new Error(_0x2a25d9(0x104)+_0x27f55e[_0x2a25d9(0x105)]);console['log'](_0x13e1da['zMfPT']),await concludeSession(_0x2bd171,_0x2a36ec['currentSessionId']),console['log'](_0x2a25d9(0xd3)+_0x27f55e['iteration']+_0x2a25d9(0xae)),console[_0x2a25d9(0xfa)](_0x2a25d9(0xb8));}export async function featureSessions(_0x4a979d){const _0x5f16c8=_0x369c38,_0x1abd02={'zImlh':function(_0x8f1210,_0x59458e){return _0x8f1210(_0x59458e);},'OWgtA':function(_0x2df057,_0x4eeaa4){return _0x2df057===_0x4eeaa4;},'leNXv':'No\x20sessions\x20found.','JdyMD':function(_0x261324,_0x4189b8){return _0x261324===_0x4189b8;},'FMSaJ':_0x5f16c8(0x92),'WETtU':'in_progress'},_0x4407dc=_0x4a979d||await getActiveFeatureId();if(!_0x4407dc)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x5b68ed=await getFeature(_0x4407dc);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x5b68ed[_0x5f16c8(0xd2)]+'\x0a');const {sessions:_0x331feb}=await _0x1abd02[_0x5f16c8(0x80)](listFeatureSessions,_0x4407dc);if(_0x1abd02[_0x5f16c8(0x91)](_0x331feb[_0x5f16c8(0x130)],0x0)){console['log'](_0x1abd02[_0x5f16c8(0xaa)]);return;}for(const _0x10c54a of _0x331feb){const _0x3f9247=_0x1abd02['JdyMD'](_0x10c54a['status'],_0x1abd02['FMSaJ'])?'✅':_0x1abd02['JdyMD'](_0x10c54a['status'],_0x1abd02[_0x5f16c8(0x8f)])?'🔄':'▶️';console['log'](_0x3f9247+'\x20Session\x20'+_0x10c54a['iteration']+'\x20('+_0x10c54a['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x10c54a[_0x5f16c8(0x105)]),console[_0x5f16c8(0xfa)](_0x5f16c8(0x97)+new Date(_0x10c54a['createdAt'])['toLocaleString']()),_0x10c54a[_0x5f16c8(0x93)]&&console['log'](_0x5f16c8(0xf0)+new Date(_0x10c54a['completedAt'])[_0x5f16c8(0xd4)]()),console[_0x5f16c8(0xfa)]('');}}export async function featureAddScenario(_0x4d6448,_0x39e9bd){const _0x441b63=_0x369c38,_0xe61137={'EatyJ':function(_0x27f073,_0x348d26,_0x2662ac){return _0x27f073(_0x348d26,_0x2662ac);}},_0x187830=_0x39e9bd||await getActiveFeatureId();if(!_0x187830)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 _0x41b7cd=await getFeature(_0x187830);if(_0x41b7cd[_0x441b63(0x11a)]&&!_0x41b7cd[_0x441b63(0x11a)]['submittedAt'])throw new Error(_0x441b63(0xa8)+_0x41b7cd[_0x441b63(0x7a)]);await createChecklistItem(_0x187830,_0x4d6448);const _0x541366=await getFeature(_0x187830);console['log'](_0x441b63(0x108)),_0xe61137[_0x441b63(0x12a)](displayFeature,_0x541366,_0x541366[_0x441b63(0x115)]);}export async function featureEditScenario(_0x5e993f,_0x25b8f8){const _0x3f0f76=_0x369c38,_0x57818c={'UkPZQ':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','JYqOQ':function(_0x237b23,_0x102a08){return _0x237b23(_0x102a08);},'YSOgF':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','ZyQQf':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','kxohJ':function(_0x355e81,_0x319229){return _0x355e81===_0x319229;},'lRDTQ':function(_0x37514f,_0xbe134b){return _0x37514f<_0xbe134b;},'XzQfz':_0x3f0f76(0xe2),'gfpvE':function(_0x342c66,_0x314915){return _0x342c66+_0x314915;},'XwdmE':function(_0x3782ca,_0x57bdaf,_0x48a0b8,_0x2dd2d0){return _0x3782ca(_0x57bdaf,_0x48a0b8,_0x2dd2d0);},'HTvAE':function(_0x4d38df,_0x416bf7,_0x2cfc7b){return _0x4d38df(_0x416bf7,_0x2cfc7b);}},_0x543617=_0x25b8f8['id']||await getActiveFeatureId();!_0x543617&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x57818c['UkPZQ']),process['exit'](0x1));const _0x400b49=await _0x57818c[_0x3f0f76(0xdb)](getFeature,_0x543617);_0x400b49[_0x3f0f76(0x11a)]&&!_0x400b49['latestReview']['submittedAt']&&(console['error'](_0x57818c[_0x3f0f76(0xcd)]),console['error'](_0x3f0f76(0x7b)),console['error']('\x20\x20'+_0x400b49[_0x3f0f76(0x7a)]),process['exit'](0x1));const _0x1f4ea1=_0x400b49[_0x3f0f76(0x115)]||[];_0x1f4ea1[_0x3f0f76(0x130)]===0x0&&(console[_0x3f0f76(0x12f)](_0x57818c['ZyQQf']),process[_0x3f0f76(0x127)](0x1));if(_0x57818c[_0x3f0f76(0x116)](_0x25b8f8['scenario'],undefined)){console[_0x3f0f76(0x12f)](_0x3f0f76(0xde)),console[_0x3f0f76(0xfa)](_0x3f0f76(0xe2));for(let _0x163f3b=0x0;_0x57818c['lRDTQ'](_0x163f3b,_0x1f4ea1['length']);_0x163f3b++){console[_0x3f0f76(0xfa)]('\x20\x20'+(_0x163f3b+0x1)+'.\x20'+_0x1f4ea1[_0x163f3b]['description']);}process['exit'](0x1);}const _0x37942c=_0x25b8f8[_0x3f0f76(0xc9)]-0x1;if(_0x57818c['lRDTQ'](_0x37942c,0x0)||_0x37942c>=_0x1f4ea1[_0x3f0f76(0x130)]){console[_0x3f0f76(0x12f)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x25b8f8['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x1f4ea1['length']+_0x3f0f76(0xa1)),console[_0x3f0f76(0xfa)](_0x57818c['XzQfz']);for(let _0x2f3031=0x0;_0x57818c['lRDTQ'](_0x2f3031,_0x1f4ea1['length']);_0x2f3031++){console['log']('\x20\x20'+_0x57818c[_0x3f0f76(0x10e)](_0x2f3031,0x1)+'.\x20'+_0x1f4ea1[_0x2f3031]['description']);}process['exit'](0x1);}const _0x3a9a5c=_0x1f4ea1[_0x37942c];await _0x57818c['XwdmE'](updateChecklistItem,_0x543617,_0x3a9a5c['id'],{'description':_0x5e993f});const _0x149889=await getFeature(_0x543617);console['log']('\x0a✅\x20Scenario\x20updated'),_0x57818c[_0x3f0f76(0x9b)](displayFeature,_0x149889,_0x149889['checklistItems']);}async function downloadFeedbackImage(_0x3bfbf5,_0xf216fb){const _0x2c3999=_0x369c38,_0x24ad18={'MpjRG':function(_0x8d5560,_0xc77234,_0x92c1e5){return _0x8d5560(_0xc77234,_0x92c1e5);},'TiehI':function(_0x3a257e){return _0x3a257e();},'tsmBg':function(_0x1be6b2,_0x452a86){return _0x1be6b2(_0x452a86);}};try{const _0x3ae35c=_0x24ad18[_0x2c3999(0x124)](join,_0x24ad18[_0x2c3999(0x11e)](getRangerDir),'feedback-images');await mkdir(_0x3ae35c,{'recursive':!![]});const _0x6e01b0=_0x24ad18[_0x2c3999(0x124)](join,_0x3ae35c,'comment_'+_0xf216fb+_0x2c3999(0x7e)),_0x584622=await _0x24ad18['tsmBg'](fetch,_0x3bfbf5);if(!_0x584622['ok'])return null;const _0x458553=Buffer[_0x2c3999(0xd8)](await _0x584622['arrayBuffer']());return await writeFile(_0x6e01b0,_0x458553),_0x6e01b0;}catch{return null;}}export async function featureGetReview(_0x4c1da2){const _0x510b63=_0x369c38,_0x510fce={'eZQHq':_0x510b63(0xad),'cLpEd':function(_0x48162c,_0x19e0d6){return _0x48162c(_0x19e0d6);},'uczlc':function(_0x24d393,_0x23f396){return _0x24d393===_0x23f396;},'OideW':'No\x20scenarios\x20found.','BEHIa':function(_0x3ad5ce,_0x43064f){return _0x3ad5ce>_0x43064f;},'WFWtm':function(_0x17a19d,_0x178f29){return _0x17a19d>_0x178f29;},'IegiF':function(_0x297578,_0x2f5185,_0x136652){return _0x297578(_0x2f5185,_0x136652);},'xJpyN':'\x20>\x20','SirsF':function(_0x477f83,_0x39cd4d){return _0x477f83+_0x39cd4d;}},_0x3831e1=_0x4c1da2||await getActiveFeatureId();if(!_0x3831e1)throw new Error(_0x510fce[_0x510b63(0x101)]);const _0x420a7c=await _0x510fce['cLpEd'](getFeature,_0x3831e1),{items:_0x14436b}=await _0x510fce['cLpEd'](getActionItems,_0x3831e1);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x420a7c['name']+'\x20('+_0x420a7c['id']+')\x0a');if(_0x510fce['uczlc'](_0x14436b['length'],0x0)){console['log'](_0x510fce[_0x510b63(0x10d)]);return;}for(let _0xe2de0d=0x0;_0xe2de0d<_0x14436b['length'];_0xe2de0d++){const _0x29b2ae=_0x14436b[_0xe2de0d],_0x1edd46=_0x510fce[_0x510b63(0x8a)](_0x29b2ae['version'],0x1)?_0x510b63(0xcb)+_0x29b2ae[_0x510b63(0xc4)]+')':'',_0x2e1d91=await getItemFeedback(_0x3831e1,_0x29b2ae['id']);if(_0x510fce['WFWtm'](_0x2e1d91[_0x510b63(0xb0)]['length'],0x0)){console[_0x510b63(0xfa)](_0x510b63(0xd1)+(_0xe2de0d+0x1)+_0x510b63(0xda)+_0x29b2ae[_0x510b63(0x11d)]+'\x22'+_0x1edd46+_0x510b63(0x7c)+_0x2e1d91[_0x510b63(0xb0)][_0x510b63(0x130)]+'\x20unaddressed\x20comment(s)');for(const _0x5f336e of _0x2e1d91['unaddressedComments']){const _0x34567c=new Date(_0x5f336e['createdAt'])[_0x510b63(0x98)]('en-US',{'month':_0x510b63(0x79),'day':_0x510b63(0x70)}),_0xfe16db=_0x5f336e[_0x510b63(0x13d)]||_0x5f336e['authorEmail']||'Unknown';console['log'](_0x510b63(0x74)+_0xfe16db+'\x20('+_0x34567c+'):\x20\x22'+_0x5f336e['content']+'\x22');if(_0x5f336e['assetUrl']){const _0x2a6033=await _0x510fce['IegiF'](downloadFeedbackImage,_0x5f336e[_0x510b63(0xa7)],_0x5f336e['id']);_0x2a6033&&console['log'](_0x510b63(0x6c)+_0x2a6033);}if(_0x5f336e[_0x510b63(0xb9)]){const _0x5796bc=_0x5f336e['domRef'][_0x510b63(0xb3)][_0x510b63(0xfc)](_0x510fce[_0x510b63(0xa3)])['pop']()?.[_0x510b63(0xfc)](':')[0x0]||'element',_0x56fc58=_0x5f336e[_0x510b63(0xb9)][_0x510b63(0x11b)]?'\x20\x22'+_0x5f336e[_0x510b63(0xb9)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x510b63(0xfa)](_0x510b63(0x110)+_0x5796bc+'>'+_0x56fc58),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x5f336e[_0x510b63(0xb9)]['selector']);}else{if(_0x5f336e[_0x510b63(0xc7)]){const _0x2edc46=_0x5f336e[_0x510b63(0xc7)][_0x510b63(0xe8)];_0x5f336e['spatial']['type']==='point'&&_0x2edc46['length']>=0x2?console[_0x510b63(0xfa)](_0x510b63(0xb2)+_0x2edc46[0x0]['toFixed'](0x2)+',\x20'+_0x2edc46[0x1]['toFixed'](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x5f336e[_0x510b63(0xc7)]['type']+_0x510b63(0x71)+_0x2edc46[_0x510b63(0xbf)](_0x40af84=>_0x40af84['toFixed'](0x2))[_0x510b63(0x125)](',\x20')+']');}}}if(_0x2e1d91['canonicalFlow']){console['log'](_0x510b63(0xef));for(const _0x199029 of _0x2e1d91[_0x510b63(0x136)][_0x510b63(0xfc)]('\x0a')){console[_0x510b63(0xfa)](_0x510b63(0x113)+_0x199029);}}}else console['log']('Scenario\x20'+_0x510fce['SirsF'](_0xe2de0d,0x1)+':\x20\x22'+_0x29b2ae['description']+'\x22'+_0x1edd46+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x645404){const _0x4a2f11=_0x369c38,_0x93a6f9={'iqIVq':function(_0x4e2d0c,_0x14c5ee){return _0x4e2d0c(_0x14c5ee);},'QNulE':function(_0x3e99c6,_0x3c58a0){return _0x3e99c6+_0x3c58a0;}},_0x4b4476=_0x645404||await getActiveFeatureId();if(!_0x4b4476)throw new Error(_0x4a2f11(0xad));const _0x3ef8ce=await _0x93a6f9['iqIVq'](getFeature,_0x4b4476);await _0x93a6f9['iqIVq'](softDeleteFeature,_0x4b4476),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x3ef8ce['name']+'\x20('+_0x4b4476+')'),console[_0x4a2f11(0xfa)](_0x93a6f9[_0x4a2f11(0x89)]('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20',_0x4b4476));}export async function featureRestore(_0x1b32bd){const _0x47fbbc=_0x369c38,_0x4505ce={'VIOyM':function(_0x5565d9,_0x31876a){return _0x5565d9(_0x31876a);},'pablf':function(_0x425dec,_0x269f07,_0x376dc2){return _0x425dec(_0x269f07,_0x376dc2);}};await restoreFeature(_0x1b32bd);const _0xf68ada=await _0x4505ce['VIOyM'](getFeature,_0x1b32bd);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0xf68ada['name']+'\x20('+_0x1b32bd+')'),_0x4505ce[_0x47fbbc(0xcc)](displayFeature,_0xf68ada,_0xf68ada[_0x47fbbc(0x115)]);}
|
|
1
|
+
const _0x442b66=_0xca9d;(function(_0x97c95a,_0x4b0f7d){const _0x655f38=_0xca9d,_0x533bd9=_0x97c95a();while(!![]){try{const _0x156be8=-parseInt(_0x655f38(0x17f))/0x1+-parseInt(_0x655f38(0x1be))/0x2*(-parseInt(_0x655f38(0x122))/0x3)+parseInt(_0x655f38(0x158))/0x4+-parseInt(_0x655f38(0x181))/0x5*(-parseInt(_0x655f38(0x16f))/0x6)+parseInt(_0x655f38(0x1ca))/0x7+-parseInt(_0x655f38(0x151))/0x8+-parseInt(_0x655f38(0x185))/0x9*(-parseInt(_0x655f38(0x166))/0xa);if(_0x156be8===_0x4b0f7d)break;else _0x533bd9['push'](_0x533bd9['shift']());}catch(_0x2cfa4d){_0x533bd9['push'](_0x533bd9['shift']());}}}(_0x226a,0xc0f5e));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';function _0x226a(){const _0x15c3f9=['\x20\x20\x20Branch:\x20','NclFt','from','Not\x20in\x20a\x20git\x20repository.','\x20scenario(s).','zeUTb','\x0a✅\x20Session\x20is\x20already\x20completed.','sessionId','element','checklistItems','assets','toLocaleString','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Screenshot\x20','\x20feature\x20review(s)\x20found','ODrMH','\x0aNo\x20feature\x20reviews\x20found.','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','uITnL','replace','terminalReason','completedAt','type','GkAHu','rSjcB','offset','EWKpx','NyaGr','notes','split','status','\x20\x20✅\x20No\x20feedback\x20to\x20address','Showing\x20','spatial','version','latestReview','gTmLk','3|0|4|1|2|5','No\x20active\x20session\x20for\x20this\x20feature\x20review.','RRDmz','8923312ewvMfn','vcczT','currentBranch','bxOpY','\x20--include-deleted','incompleteReason','jtOOI','5527436sZGpQt',':\x20\x22','json','round','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x0a✅\x20Scenario\x20added','IGXVu','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','storage','\x20—\x20no\x20comments','eszob','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','KFwmU','4504030DJSQTk','trim','\x20\x20\x20\x20\x20Progress:\x20','verifiedItems','scenario','pipe','filter','DgFlZ','EMOjE','2046BBzcRC','stats','linkedSession','HspFw','screenshotUrls','arrayBuffer','rApkN','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','domRef','\x20\x20Expected\x20flow:','\x20scenarios.','\x0a✅\x20Report\x20generated:\x20','toFixed','\x20verified','gitBranch','env','584582VZADnH','uykKE','6430hsUNqW','IbtyF','canceledReason','blockedItems','9fbKBPR','fbTyy','totalCount','\x20\x20\x20Description:\x20','cXwlB','ygMBf','CGIlH','\x1b[0m','bILba','TRBQF','prompt','ognrz','isInteger','\x20incomplete','completed','short','XvlHV','limit','ksLou','includeDeleted','\x0aGenerating\x20report...','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','closed','dashboardUrl','blocked','\x0aAvailable\x20scenarios:','stringify','log','browserSessionId','feedback-images','piJjI','\x0a\x20\x20\x20Scenarios:','kkjZX','verification_in_progress','\x20\x20\x20\x20\x20\x20Incomplete:\x20','in_progress','screenshot','error','qIokl','position','length','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','\x20\x20\x20Completed:\x20','\x20\x20\x20','selected','\x20\x20\x20\x20\x20\x20Cancelled:\x20','Pzhnm','\x20/\x20','CMWMV','\x20concluded.','submittedAt','\x0aCreating\x20feature\x20review...','\x20\x20\x20Updated\x20branch\x20to:\x20','write','push','iteration','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','2AURaJF','\x20\x20\x20▶️\x20Started\x20session\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','ready','currentSessionId','\x20[has\x20reviewer\x20feedback]','wUNNd','FSMgq','\x20(v','find','CevcJ','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','1369025RNuKtt','verified','toLocaleDateString','oKJRE','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','map','name','eYqPQ','stdin','UkFSV','\x0a✅\x20Scenario\x20updated','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','assetUrl','nPKSJ','FbasH','):\x20\x22','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0a⚠️\x20\x20','djxVY','content','.\x20Feature\x20review\x20has\x20','repeat','stepName','.png','items','/api/v1/mcp/browser-sessions/','agentResponse','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20—\x20','unaddressedComments','CLAUDE_SESSION_ID','join','euSJq','\x0a❌\x20Invalid\x20scenario\x20index:\x20','pendingItems','No\x20sessions\x20found.','XbXAB','utf-8','isKeyStep','git\x20rev-parse\x20--abbrev-ref\x20HEAD','canonicalFlow','exit','GtILz','tRBbm','lbGVs','\x0a✅\x20Resumed\x20feature\x20review:\x20','YTocP','REYgo','dsauP','createdAt','fGGjB','eQxgn','gitRepoUrl','description','\x20--limit\x20','ndTik','71997iwyULh','selector','scenarios','cGsDu','\x20\x20\x20Created:\x20','blockedReason'];_0x226a=function(){return _0x15c3f9;};return _0x226a();}import{existsSync}from'fs';import{execSync}from'child_process';import _0x529460 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x5b201e=>'\x1b[1m'+_0x5b201e+_0x442b66(0x18c);function getGitRepoUrl(){const _0x5c175e=_0x442b66,_0x55c04d={'piJjI':'pipe','dsauP':'github.com/'};try{const _0x3373cd=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x5c175e(0x10f),'stdio':['pipe','pipe',_0x55c04d[_0x5c175e(0x1a3)]]})['trim']();return _0x3373cd['replace'](/\.git$/,'')[_0x5c175e(0x13c)](/^git@github\.com:/,_0x55c04d[_0x5c175e(0x11a)])[_0x5c175e(0x13c)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x1f0798=_0x442b66,_0x56dc64={'fGGjB':_0x1f0798(0x10f),'ksLou':_0x1f0798(0x16b)};try{return execSync(_0x1f0798(0x111),{'encoding':_0x56dc64[_0x1f0798(0x11c)],'stdio':['pipe',_0x56dc64[_0x1f0798(0x197)],_0x1f0798(0x16b)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5a5a8d=_0x442b66,_0x5d898e={'DgFlZ':function(_0x1c7c15,_0x24be31,_0x2490d6){return _0x1c7c15(_0x24be31,_0x2490d6);},'tRBbm':_0x5a5a8d(0x10f)},_0x259563=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x259563))return null;try{const _0x1acfc9=await _0x5d898e[_0x5a5a8d(0x16d)](readFile,_0x259563,_0x5d898e[_0x5a5a8d(0x115)]);return _0x1acfc9[_0x5a5a8d(0x167)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x24704e){const _0x26253d={'UkdYy':function(_0x7c706c,_0x2a81e3,_0x428d01){return _0x7c706c(_0x2a81e3,_0x428d01);},'pzZnG':function(_0x203a3b,_0x423277,_0x4d5811,_0x1da270){return _0x203a3b(_0x423277,_0x4d5811,_0x1da270);}},_0x5d3797=getRangerDir(),_0x2b1101=_0x26253d['UkdYy'](join,_0x5d3797,ACTIVE_FEATURE_FILE);!existsSync(_0x5d3797)&&await mkdir(_0x5d3797,{'recursive':!![]}),await _0x26253d['pzZnG'](writeFile,_0x2b1101,_0x24704e,'utf-8');}function getProgressDisplay(_0x35110a){const _0x1b2f3f=_0x442b66,_0x53a590={'ODrMH':function(_0x28cd1c,_0x254137){return _0x28cd1c+_0x254137;},'UlnQs':function(_0x1baec1,_0x42f239){return _0x1baec1+_0x42f239;},'EjsGu':function(_0x206ffb,_0x22706d){return _0x206ffb===_0x22706d;},'CevcJ':function(_0x433546,_0x33d86f){return _0x433546*_0x33d86f;},'LORNV':function(_0x53e0cc,_0x4f453d){return _0x53e0cc/_0x4f453d;},'TSfBF':function(_0x5debfb,_0x4bb96b){return _0x5debfb>_0x4bb96b;},'UChLJ':function(_0x43d488,_0x2d13ab){return _0x43d488>_0x2d13ab;}},_0x13548c=_0x35110a[_0x1b2f3f(0x169)]||0x0,_0x5f3031=_0x35110a['verificationInProgressItems']||0x0,_0x46655e=_0x35110a[_0x1b2f3f(0x184)]||0x0,_0x4bd5df=_0x35110a['incompleteItems']||0x0,_0x145128=_0x35110a[_0x1b2f3f(0x1ec)]||0x0,_0x12229c=_0x53a590[_0x1b2f3f(0x138)](_0x53a590['UlnQs'](_0x13548c,_0x5f3031)+_0x46655e,_0x4bd5df)+_0x145128;if(_0x53a590['EjsGu'](_0x12229c,0x0))return'-';const _0x1fced2=0xa,_0x2be250=Math[_0x1b2f3f(0x15b)](_0x53a590[_0x1b2f3f(0x1c8)](_0x53a590['LORNV'](_0x13548c,_0x12229c),_0x1fced2)),_0x1bb2d2='█'[_0x1b2f3f(0x1df)](_0x2be250)+'░'['repeat'](_0x1fced2-_0x2be250),_0x173bae=[];if(_0x53a590['TSfBF'](_0x46655e,0x0))_0x173bae[_0x1b2f3f(0x1bb)](_0x46655e+'\x20blocked');if(_0x53a590['UChLJ'](_0x4bd5df,0x0))_0x173bae['push'](_0x4bd5df+_0x1b2f3f(0x192));if(_0x53a590['TSfBF'](_0x5f3031,0x0))_0x173bae['push'](_0x5f3031+'\x20in\x20progress');const _0x15f797=_0x173bae[_0x1b2f3f(0x1ad)]>0x0?'\x20('+_0x173bae[_0x1b2f3f(0x1e9)](',\x20')+')':'';return _0x1bb2d2+'\x20'+_0x13548c+'/'+_0x12229c+_0x1b2f3f(0x17c)+_0x15f797;}function getCurrentSessionItems(_0x13ba97,_0x539a80){const _0x4b96fe=_0x442b66;if(!_0x13ba97['currentSessionId'])return _0x539a80['filter'](_0x2ed90d=>!_0x2ed90d[_0x4b96fe(0x12f)]);return _0x539a80[_0x4b96fe(0x16c)](_0x4e12b5=>_0x4e12b5[_0x4b96fe(0x12f)]===_0x13ba97[_0x4b96fe(0x1c2)]||!_0x4e12b5[_0x4b96fe(0x12f)]);}function displayFeature(_0x34d40a,_0x4e2521){const _0x348459=_0x442b66,_0x454ecd={'bxOpY':_0x348459(0x1a4),'huXpN':function(_0x109d25,_0x155d51){return _0x109d25<_0x155d51;},'EWKpx':function(_0x51f9ee,_0xbf1b81){return _0x51f9ee===_0xbf1b81;},'cGsDu':_0x348459(0x19b),'hJaPJ':'incomplete','CGIlH':_0x348459(0x1a6),'TNoOw':function(_0x11fac4,_0x57f80d){return _0x11fac4!==_0x57f80d;},'bILba':function(_0x40c23c,_0x221129){return _0x40c23c+_0x221129;},'fbTyy':function(_0x500f56,_0x35686a){return _0x500f56===_0x35686a;},'TGXii':function(_0x3751f6,_0x282c47){return _0x3751f6===_0x282c47;}};console['log']('\x0a'+_0x34d40a['name']+'\x20('+_0x34d40a[_0x348459(0x19c)]+')');_0x34d40a[_0x348459(0x170)]&&console[_0x348459(0x1a0)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x34d40a['stats']));_0x34d40a[_0x348459(0x11f)]&&console[_0x348459(0x1a0)](_0x348459(0x188)+_0x34d40a['description']);_0x34d40a[_0x348459(0x11e)]&&console[_0x348459(0x1a0)]('\x20\x20\x20Repository:\x20'+_0x34d40a['gitRepoUrl']);_0x34d40a[_0x348459(0x17d)]&&console['log'](_0x348459(0x128)+_0x34d40a[_0x348459(0x17d)]);console[_0x348459(0x1a0)]('\x20\x20\x20Created:\x20'+new Date(_0x34d40a[_0x348459(0x11b)])[_0x348459(0x133)]());_0x34d40a['completedAt']&&console[_0x348459(0x1a0)]('\x20\x20\x20Completed:\x20'+new Date(_0x34d40a['completedAt'])[_0x348459(0x133)]());if(_0x4e2521&&_0x4e2521['length']>0x0){console['log'](_0x454ecd[_0x348459(0x154)]);for(let _0x583676=0x0;_0x454ecd['huXpN'](_0x583676,_0x4e2521[_0x348459(0x1ad)]);_0x583676++){const _0x487c23=_0x4e2521[_0x583676];let _0x54f6bf;if(_0x454ecd['EWKpx'](_0x487c23['status'],_0x454ecd['cGsDu'])&&_0x487c23[_0x348459(0x13d)]==='approved')_0x54f6bf='✅';else{if(_0x454ecd['EWKpx'](_0x487c23['status'],_0x348459(0x1cb)))_0x54f6bf='🟢';else{if(_0x454ecd[_0x348459(0x143)](_0x487c23['status'],_0x454ecd['hJaPJ']))_0x54f6bf='🟠';else{if(_0x487c23['status']===_0x348459(0x19d))_0x54f6bf='🛑';else{if(_0x487c23[_0x348459(0x147)]==='closed')_0x54f6bf='⛔';else _0x454ecd['EWKpx'](_0x487c23[_0x348459(0x147)],_0x454ecd[_0x348459(0x18b)])?_0x54f6bf='⏳':_0x54f6bf='⬜';}}}}const _0x415210=_0x487c23['version']>0x1?_0x348459(0x1c6)+_0x487c23[_0x348459(0x14b)]+')':'',_0x13ce74=_0x487c23[_0x348459(0x14b)]>0x1&&_0x487c23['parentItemId']&&_0x454ecd['TNoOw'](_0x487c23[_0x348459(0x147)],_0x454ecd[_0x348459(0x125)])&&_0x487c23['status']!=='verified'?_0x348459(0x1c3):'';console['log'](_0x348459(0x1b0)+_0x454ecd[_0x348459(0x18d)](_0x583676,0x1)+'.\x20'+_0x54f6bf+'\x20'+_0x487c23[_0x348459(0x11f)]+_0x415210+_0x13ce74);_0x454ecd['fbTyy'](_0x487c23['status'],'blocked')&&_0x487c23[_0x348459(0x127)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x487c23['blockedReason']);_0x487c23[_0x348459(0x147)]===_0x454ecd['hJaPJ']&&_0x487c23[_0x348459(0x156)]&&console[_0x348459(0x1a0)](_0x348459(0x1a7)+_0x487c23['incompleteReason']);if(_0x454ecd['TGXii'](_0x487c23['status'],_0x454ecd[_0x348459(0x125)])&&_0x454ecd[_0x348459(0x186)](_0x487c23[_0x348459(0x13d)],'approved'))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x487c23['status']==='closed'&&_0x487c23[_0x348459(0x183)]&&console['log'](_0x348459(0x1b2)+_0x487c23[_0x348459(0x183)]);}}}export async function featureCreate(_0x4ea070,_0x3e2b2f){const _0x291b11=_0x442b66,_0x1e8d56={'TgKCg':function(_0x22db85){return _0x22db85();},'REYgo':function(_0x2c4b06){return _0x2c4b06();},'UmgiG':_0x291b11(0x1b8),'SqzEx':function(_0x147a9c,_0x564e12,_0x34e04b){return _0x147a9c(_0x564e12,_0x34e04b);}},{envNames:_0x5aa8e0}=await _0x1e8d56['TgKCg'](getEnvNames);_0x5aa8e0[_0x291b11(0x1ad)]===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x12ac52=>bold(_0x12ac52)));const _0x5a4cfe=_0x3e2b2f[_0x291b11(0x124)]?_0x3e2b2f['scenarios']['map'](_0xdc6ec4=>_0xdc6ec4['trim']()):[],_0x1c51e6=getGitRepoUrl(),_0x13f4c6=_0x1e8d56[_0x291b11(0x119)](getGitBranch);console[_0x291b11(0x1a0)](_0x1e8d56['UmgiG']);const _0x1ed9ea=await createFeature({'name':_0x4ea070,'description':_0x3e2b2f['description'],'checklist':_0x5a4cfe,'gitRepoUrl':_0x1c51e6,'gitBranch':_0x13f4c6});await setActiveFeatureId(_0x1ed9ea['id']),await tryStartCurrentSession(_0x1ed9ea['id']);const _0x393085=process[_0x291b11(0x17e)][_0x291b11(0x1e8)];_0x393085&®isterSession(_0x393085,_0x1ed9ea['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x1ed9ea['id']),_0x1e8d56['SqzEx'](displayFeature,_0x1ed9ea,_0x1ed9ea[_0x291b11(0x131)]),console[_0x291b11(0x1a0)](_0x291b11(0x176));}export async function featureList(_0x1a2d76){const _0x20ed52=_0x442b66,_0x4a3896={'MrGDf':function(_0x3be50c){return _0x3be50c();},'gTmLk':function(_0x2e48d3,_0x9f4254){return _0x2e48d3>_0x9f4254;},'IAsos':function(_0x3b2644,_0x59dfa1){return _0x3b2644+_0x59dfa1;},'wJXso':function(_0xfe5ea7,_0x4f3b20){return _0xfe5ea7<_0x4f3b20;}},_0x3097ec={'limit':_0x1a2d76[_0x20ed52(0x196)]??0xa,'offset':_0x1a2d76[_0x20ed52(0x142)]??0x0,'includeDeleted':_0x1a2d76[_0x20ed52(0x198)]};_0x1a2d76[_0x20ed52(0x153)]&&(_0x3097ec[_0x20ed52(0x11e)]=getGitRepoUrl(),_0x3097ec['gitBranch']=_0x4a3896['MrGDf'](getGitBranch));const _0x3ee415=await listFeatures(_0x3097ec);if(_0x3ee415['items']['length']===0x0){console['log'](_0x20ed52(0x139));return;}const _0x3d45e5=_0x4a3896[_0x20ed52(0x14d)](_0x3ee415[_0x20ed52(0x187)],_0x3ee415[_0x20ed52(0x1e2)][_0x20ed52(0x1ad)])?_0x20ed52(0x149)+_0x3ee415['items']['length']+'\x20of\x20'+_0x3ee415['totalCount']:_0x3ee415[_0x20ed52(0x187)]+_0x20ed52(0x137);console[_0x20ed52(0x1a0)]('\x0a'+_0x3d45e5+':\x0a');for(const _0x1ee8ba of _0x3ee415['items']){const _0x233241=_0x20ed52(0x14e)['split']('|');let _0x217f1a=0x0;while(!![]){switch(_0x233241[_0x217f1a++]){case'0':console['log']('\x20\x20\x20ID:\x20'+_0x1ee8ba['id']);continue;case'1':_0x1ee8ba[_0x20ed52(0x17d)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x1ee8ba[_0x20ed52(0x17d)]);continue;case'2':console[_0x20ed52(0x1a0)]('\x20\x20\x20Created:\x20'+new Date(_0x1ee8ba[_0x20ed52(0x11b)])[_0x20ed52(0x1cc)]());continue;case'3':console[_0x20ed52(0x1a0)](''+_0x1ee8ba['name']);continue;case'4':_0x1ee8ba['stats']&&console[_0x20ed52(0x1a0)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1ee8ba['stats']));continue;case'5':console[_0x20ed52(0x1a0)]('');continue;}break;}}const _0x7ffc6a=_0x3097ec[_0x20ed52(0x196)]??0xa,_0x12c882=_0x4a3896['IAsos'](_0x3097ec[_0x20ed52(0x142)]??0x0,_0x3ee415[_0x20ed52(0x1e2)]['length']);if(_0x4a3896['wJXso'](_0x12c882,_0x3ee415[_0x20ed52(0x187)])){const _0x15de89=_0x7ffc6a!==0xa?_0x20ed52(0x120)+_0x7ffc6a:'',_0x97b400=_0x1a2d76[_0x20ed52(0x153)]?'\x20--current-branch':'',_0x3012d6=_0x1a2d76[_0x20ed52(0x198)]?_0x20ed52(0x155):'';console[_0x20ed52(0x1a0)](_0x20ed52(0x1da)+_0x12c882+_0x15de89+_0x97b400+_0x3012d6);}}export async function featureShow(_0x2215c4){const _0x2a28cc=_0x442b66,_0x3b536f={'YTocP':function(_0x4683b4){return _0x4683b4();}},_0x248514=_0x2215c4||await _0x3b536f[_0x2a28cc(0x118)](getActiveFeatureId);if(!_0x248514)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x705b30=await getFeature(_0x248514);displayFeature(_0x705b30,_0x705b30['checklistItems']);}export async function featureResume(_0x5896e7){const _0x1f7862=_0x442b66,_0x239fcc={'uITnL':function(_0x304be2,_0x52e34e){return _0x304be2(_0x52e34e);},'NyaGr':function(_0x513624,_0x2cc532,_0x50c307){return _0x513624(_0x2cc532,_0x50c307);},'vcczT':function(_0x844f02,_0x1a3eee,_0x60f9d7){return _0x844f02(_0x1a3eee,_0x60f9d7);},'iCIPI':function(_0x4cc3dc){return _0x4cc3dc();},'kViSr':'any','RRDmz':function(_0x5b287d,_0x457258){return _0x5b287d||_0x457258;},'XbXAB':function(_0x50f280,_0x400fe1){return _0x50f280===_0x400fe1;},'eQxgn':_0x1f7862(0x1e5),'LxbxB':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','ndTik':function(_0x533c34,_0x49501f){return _0x533c34!==_0x49501f;}};if(_0x5896e7){const _0x43b51d=await getFeature(_0x5896e7);await _0x239fcc['uITnL'](setActiveFeatureId,_0x43b51d['id']);const _0x527aca=getGitBranch();_0x527aca&&_0x527aca!==_0x43b51d[_0x1f7862(0x17d)]&&(await _0x239fcc[_0x1f7862(0x144)](updateFeature,_0x43b51d['id'],{'gitBranch':_0x527aca}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x527aca));console[_0x1f7862(0x1a0)](_0x1f7862(0x117)+_0x43b51d[_0x1f7862(0x1d0)]+'\x20('+_0x43b51d['id']+')'),await tryStartCurrentSession(_0x43b51d['id']);const _0x5a934b=process['env'][_0x1f7862(0x1e8)];_0x5a934b&&_0x239fcc[_0x1f7862(0x152)](registerSession,_0x5a934b,_0x43b51d['id']);displayFeature(_0x43b51d,_0x43b51d['checklistItems']),await printFeedbackNudge(_0x43b51d['id']);return;}const _0x1157db=getGitRepoUrl(),_0xf1e092=_0x239fcc['iCIPI'](getGitBranch);if(!_0x1157db&&!_0xf1e092)throw new Error(_0x1f7862(0x12b));console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x1157db||_0x239fcc['kViSr'])+_0x1f7862(0x1b4)+_0x239fcc[_0x1f7862(0x150)](_0xf1e092,_0x239fcc['kViSr'])+'...');const _0x48e4a8=await _0x239fcc[_0x1f7862(0x13b)](listFeatures,{'gitRepoUrl':_0x1157db,'gitBranch':_0xf1e092}),_0x1610f5=_0x48e4a8['items']['filter'](_0x163183=>!_0x163183['completedAt']);if(_0x239fcc[_0x1f7862(0x1ee)](_0x1610f5['length'],0x0)){console[_0x1f7862(0x1a0)](_0x1f7862(0x1c0)),console[_0x1f7862(0x1a0)](_0x239fcc[_0x1f7862(0x11d)]);return;}let _0xfb13c5;if(_0x1610f5['length']===0x1)_0xfb13c5=_0x1610f5[0x0];else{const _0x2abd36=process[_0x1f7862(0x1d2)]['isTTY']&&process['stdout']['isTTY'];if(!_0x2abd36){console['log'](_0x1f7862(0x1d5));for(const _0x1fd196 of _0x1610f5){console['log']('\x20\x20'+_0x1fd196[_0x1f7862(0x1d0)]),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x1fd196['id']),_0x1fd196[_0x1f7862(0x170)]&&console[_0x1f7862(0x1a0)](_0x1f7862(0x168)+_0x239fcc['uITnL'](getProgressDisplay,_0x1fd196['stats'])),_0x1fd196['gitBranch']&&console[_0x1f7862(0x1a0)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x1fd196[_0x1f7862(0x17d)]);}throw new Error(_0x239fcc['LxbxB']);}const {selected:_0x4e0a64}=await _0x529460[_0x1f7862(0x18f)]([{'type':'list','name':_0x1f7862(0x1b1),'message':_0x1f7862(0x1bd),'choices':_0x1610f5['map'](_0x53c431=>({'name':_0x53c431[_0x1f7862(0x1d0)]+'\x20('+_0x53c431['id']+')','value':_0x53c431['id']}))}]);_0xfb13c5=_0x1610f5['find'](_0x8bdc4f=>_0x8bdc4f['id']===_0x4e0a64);}await _0x239fcc['uITnL'](setActiveFeatureId,_0xfb13c5['id']);_0xf1e092&&_0x239fcc[_0x1f7862(0x121)](_0xf1e092,_0xfb13c5[_0x1f7862(0x17d)])&&(await _0x239fcc[_0x1f7862(0x152)](updateFeature,_0xfb13c5['id'],{'gitBranch':_0xf1e092}),console['log'](_0x1f7862(0x1b9)+_0xf1e092));console[_0x1f7862(0x1a0)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xfb13c5['name']+'\x20('+_0xfb13c5['id']+')'),await tryStartCurrentSession(_0xfb13c5['id']);const _0x227be8=await _0x239fcc['uITnL'](getFeature,_0xfb13c5['id']),_0x11cabd=process[_0x1f7862(0x17e)][_0x1f7862(0x1e8)];_0x11cabd&&_0x239fcc['vcczT'](registerSession,_0x11cabd,_0x227be8['id']),displayFeature(_0x227be8,_0x227be8['checklistItems']),await printFeedbackNudge(_0x227be8['id']);}async function printFeedbackNudge(_0x59a7ce){const _0x23f211=_0x442b66,_0x379466={'yyLUh':function(_0x39b521,_0x2d279f,_0x2d37ef){return _0x39b521(_0x2d279f,_0x2d37ef);},'zeUTb':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x17868f}=await getActionItems(_0x59a7ce);let _0x107e8a=0x0,_0xb9d723=0x0;for(const _0x5175ec of _0x17868f){const _0x11249e=await _0x379466['yyLUh'](getItemFeedback,_0x59a7ce,_0x5175ec['id']);_0x11249e[_0x23f211(0x1e7)]['length']>0x0&&(_0x107e8a+=_0x11249e[_0x23f211(0x1e7)]['length'],_0xb9d723++);}_0x107e8a>0x0&&(console['log'](_0x23f211(0x1db)+_0x107e8a+_0x23f211(0x13a)+_0xb9d723+_0x23f211(0x12c)),console[_0x23f211(0x1a0)](_0x379466[_0x23f211(0x12d)]));}catch{}}async function tryStartCurrentSession(_0x15b2dc){const _0x551099=_0x442b66;try{const {sessions:_0x5cfd4d}=await listFeatureSessions(_0x15b2dc),_0x2810ef=_0x5cfd4d['find'](_0x3d17e3=>_0x3d17e3['status']===_0x551099(0x1c1));_0x2810ef&&(await startSession(_0x15b2dc,_0x2810ef['id']),console['log'](_0x551099(0x1bf)+_0x2810ef[_0x551099(0x1bc)]));}catch{}}export async function featureReport(_0x1e6d74,_0x567d70){const _0x19a157=_0x442b66,_0x3d20c8={'WoOyk':function(_0x11f7ec){return _0x11f7ec();},'JaIJj':_0x19a157(0x1ce),'FSMgq':function(_0x3500a5){return _0x3500a5();},'chAqR':'reports','qIokl':function(_0x5985e0,_0x113dae){return _0x5985e0(_0x113dae);},'NclFt':function(_0x323ada,_0x1af57a,_0x58af49,_0x490620){return _0x323ada(_0x1af57a,_0x58af49,_0x490620);}},_0x475c4c=_0x1e6d74||await _0x3d20c8['WoOyk'](getActiveFeatureId);if(!_0x475c4c)throw new Error(_0x3d20c8['JaIJj']);console[_0x19a157(0x1a0)](_0x19a157(0x199));const _0x50461e=await getFeatureReportMarkdown(_0x475c4c,{'style':_0x567d70['style']}),_0x2a98e5=_0x567d70['output']||join(_0x3d20c8[_0x19a157(0x1c5)](getRangerDir),_0x3d20c8['chAqR'],_0x475c4c+'.md'),_0x40a86b=join(_0x2a98e5,'..');!_0x3d20c8[_0x19a157(0x1ab)](existsSync,_0x40a86b)&&await mkdir(_0x40a86b,{'recursive':!![]}),await _0x3d20c8[_0x19a157(0x129)](writeFile,_0x2a98e5,_0x50461e,'utf-8'),console[_0x19a157(0x1a0)](_0x19a157(0x17a)+_0x2a98e5);}function getScenarioResult(_0x2e8e8b){const _0x1c0816=_0x442b66,_0x2f7944={'IbtyF':_0x1c0816(0x19b),'ZiBFE':function(_0x5617ff,_0x31d0a5){return _0x5617ff===_0x31d0a5;},'ygMBf':'verification_in_progress','jtOOI':'in_progress'};if(_0x2e8e8b['status']==='closed')return _0x2e8e8b['terminalReason']??_0x2f7944[_0x1c0816(0x182)];if(_0x2f7944['ZiBFE'](_0x2e8e8b[_0x1c0816(0x147)],_0x2f7944[_0x1c0816(0x18a)]))return _0x2f7944[_0x1c0816(0x157)];return _0x2e8e8b[_0x1c0816(0x147)];}function getScenarioRationale(_0x48ee41,_0x3240ac){const _0x3241e5=_0x442b66;if(_0x3240ac)return _0x3240ac;if(_0x48ee41[_0x3241e5(0x127)])return _0x48ee41['blockedReason'];if(_0x48ee41['incompleteReason'])return _0x48ee41[_0x3241e5(0x156)];if(_0x48ee41[_0x3241e5(0x183)])return _0x48ee41['canceledReason'];if(_0x48ee41[_0x3241e5(0x145)])return _0x48ee41[_0x3241e5(0x145)];return null;}export async function featureReportPrDescription(_0x104f55,_0x1af422){const _0x20daec=_0x442b66,_0x2307ca={'Pzhnm':function(_0x359944){return _0x359944();},'GkAHu':_0x20daec(0x1ce),'euSJq':function(_0x493440,_0x3a62e5){return _0x493440(_0x3a62e5);},'rNIqy':function(_0x208932,_0x3fbc7){return _0x208932===_0x3fbc7;},'QhBJX':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','kkjZX':function(_0x3ddf53,_0x10c288){return _0x3ddf53<_0x10c288;},'XvlHV':function(_0x40498d,_0x99559e){return _0x40498d+_0x99559e;},'uykKE':function(_0x1ab09f,_0x46106d){return _0x1ab09f===_0x46106d;},'eszob':function(_0x297c5d,_0x433a59,_0x4834c1){return _0x297c5d(_0x433a59,_0x4834c1);}},_0x2a1057=_0x104f55||await _0x2307ca[_0x20daec(0x1b3)](getActiveFeatureId);if(!_0x2a1057)throw new Error(_0x2307ca[_0x20daec(0x140)]);const _0x3444c7=await _0x2307ca[_0x20daec(0x1ea)](getFeature,_0x2a1057),_0x7110a8=_0x3444c7[_0x20daec(0x131)]||[],_0x47fad9=getCurrentSessionItems(_0x3444c7,_0x7110a8);_0x2307ca['rNIqy'](_0x47fad9[_0x20daec(0x1ad)],0x0)&&(console[_0x20daec(0x1aa)](_0x2307ca['QhBJX']),process['exit'](0x1));const _0x993aad=_0x1af422['excludeScenarios']??[],_0x3b7d26=_0x993aad['filter'](_0x20d0fe=>!Number[_0x20daec(0x191)](_0x20d0fe)||_0x20d0fe<0x1||_0x20d0fe>_0x47fad9[_0x20daec(0x1ad)]);if(_0x3b7d26[_0x20daec(0x1ad)]>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x3b7d26['join'](',\x20')),console['log'](_0x20daec(0x19e));for(let _0x3dcfbc=0x0;_0x2307ca[_0x20daec(0x1a5)](_0x3dcfbc,_0x47fad9[_0x20daec(0x1ad)]);_0x3dcfbc++){console['log']('\x20\x20'+_0x2307ca[_0x20daec(0x195)](_0x3dcfbc,0x1)+'.\x20'+_0x47fad9[_0x3dcfbc][_0x20daec(0x11f)]);}process['exit'](0x1);}const _0x525b13=new Set(_0x993aad['map'](_0x10f21b=>_0x10f21b-0x1)),_0x5c7657=_0x47fad9['filter']((_0x11386,_0x2ebe03)=>!_0x525b13['has'](_0x2ebe03));_0x2307ca[_0x20daec(0x180)](_0x5c7657[_0x20daec(0x1ad)],0x0)&&(console[_0x20daec(0x1aa)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x1af422[_0x20daec(0x15a)])await outputJsonReport(_0x2a1057,_0x3444c7,_0x5c7657);else{const _0x55a80c=await _0x2307ca[_0x20daec(0x163)](getFeatureReportMarkdown,_0x2a1057,{'itemIds':_0x5c7657[_0x20daec(0x1cf)](_0x3aae40=>_0x3aae40['id'])});process['stdout'][_0x20daec(0x1ba)](_0x55a80c['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x3e0387,_0x445229,_0x1a0191){const _0x1eb54a=_0x442b66,_0x59c143={'CMWMV':function(_0x3ffb53,_0x516f98){return _0x3ffb53(_0x516f98);},'RYBDI':function(_0x279e24){return _0x279e24();}},_0x2a1f8e=_0x59c143['RYBDI'](getApiBaseUrl),_0x291820=await getFeatureReport(_0x3e0387),_0x5631ae=new Map(_0x291820[_0x1eb54a(0x131)][_0x1eb54a(0x1cf)](_0x435c6d=>[_0x435c6d['id'],_0x435c6d])),_0x1b1f56=await Promise['all'](_0x1a0191['map'](async _0x39b786=>{const _0x6343f9=_0x1eb54a,_0x2cd95a=_0x5631ae['get'](_0x39b786['id']),_0x53c3fc=_0x2cd95a?.[_0x6343f9(0x171)]??null;let _0x14e444=[];if(_0x39b786[_0x6343f9(0x1a1)])try{const {steps:_0x5ab717}=await _0x59c143[_0x6343f9(0x1b5)](getBrowserSessionSteps,_0x39b786['browserSessionId']);_0x5ab717[_0x6343f9(0x1ad)]>0x0&&(_0x14e444=_0x5ab717['map'](_0x2ae8ee=>{const _0x4282a=_0x6343f9,_0x50b64d=_0x2ae8ee['assets'][_0x4282a(0x1c7)](_0x1312e=>_0x1312e['assetType']===_0x4282a(0x1a9)&&_0x1312e['timing']==='after')??_0x2ae8ee[_0x4282a(0x132)]['find'](_0x21726d=>_0x21726d['assetType']===_0x4282a(0x1a9));let _0x4fa8e4=null,_0x39be8c=null;if(_0x50b64d){const _0x10f121=_0x50b64d[_0x4282a(0x161)]['location'][_0x4282a(0x146)]('/')['pop']();_0x4fa8e4=_0x2a1f8e+_0x4282a(0x1e3)+_0x39b786[_0x4282a(0x1a1)]+'/artifacts/'+_0x10f121,_0x10f121&&(_0x39be8c=_0x10f121[_0x4282a(0x13c)](/\.\w+$/,'')[_0x4282a(0x13c)](/^(key_)?\d+_/,'')[_0x4282a(0x13c)](/[-_]/g,'\x20'));}return{'description':_0x39be8c||_0x2ae8ee[_0x4282a(0x11f)]||_0x2ae8ee[_0x4282a(0x1e0)]||'Step\x20'+_0x2ae8ee[_0x4282a(0x1ac)],'screenshot':_0x4fa8e4,'is_key_step':_0x2ae8ee[_0x4282a(0x110)]};}));}catch{}return _0x14e444[_0x6343f9(0x1ad)]===0x0&&_0x53c3fc?.[_0x6343f9(0x173)]&&(_0x14e444=_0x53c3fc['screenshotUrls'][_0x6343f9(0x1cf)]((_0x38235e,_0x4eb561)=>({'description':_0x6343f9(0x136)+(_0x4eb561+0x1),'screenshot':_0x38235e,'is_key_step':![]}))),{'description':_0x39b786[_0x6343f9(0x11f)],'result':getScenarioResult(_0x39b786),'rationale':getScenarioRationale(_0x39b786,_0x53c3fc?.[_0x6343f9(0x1e4)]),'steps':_0x14e444};})),_0x5a6506={'url':_0x445229[_0x1eb54a(0x19c)],'scenarios':_0x1b1f56};process['stdout'][_0x1eb54a(0x1ba)](JSON[_0x1eb54a(0x19f)](_0x5a6506,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x23cda0){const _0x2676ac=_0x442b66,_0xefda41={'wUNNd':function(_0x4a4389){return _0x4a4389();},'uiZEq':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','svNzA':'Current\x20session\x20not\x20found.','bGXJF':'\x0aConcluding\x20session...','djxVY':function(_0x24ee5e,_0x1f159a,_0x55f93d){return _0x24ee5e(_0x1f159a,_0x55f93d);}},_0xfd77be=_0x23cda0||await _0xefda41[_0x2676ac(0x1c4)](getActiveFeatureId);if(!_0xfd77be)throw new Error(_0xefda41['uiZEq']);const _0x449aca=await getFeature(_0xfd77be);if(!_0x449aca[_0x2676ac(0x1c2)])throw new Error(_0x2676ac(0x14f));const {sessions:_0x160acb}=await listFeatureSessions(_0xfd77be),_0xecc9f8=_0x160acb[_0x2676ac(0x1c7)](_0x182fbd=>_0x182fbd['id']===_0x449aca['currentSessionId']);if(!_0xecc9f8)throw new Error(_0xefda41['svNzA']);if(_0xecc9f8['status']===_0x2676ac(0x193)){console[_0x2676ac(0x1a0)](_0x2676ac(0x12e));return;}if(_0xecc9f8[_0x2676ac(0x147)]!==_0x2676ac(0x1a8))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0xecc9f8[_0x2676ac(0x147)]);console[_0x2676ac(0x1a0)](_0xefda41['bGXJF']),await _0xefda41[_0x2676ac(0x1dc)](concludeSession,_0xfd77be,_0x449aca['currentSessionId']),console[_0x2676ac(0x1a0)]('\x0a✅\x20Session\x20'+_0xecc9f8[_0x2676ac(0x1bc)]+_0x2676ac(0x1b6)),console['log'](_0x2676ac(0x164));}export async function featureSessions(_0x13979e){const _0x45ff90=_0x442b66,_0x4a29e6={'EMOjE':function(_0x5262f4){return _0x5262f4();},'GtILz':function(_0x2b1d2b,_0x40184a){return _0x2b1d2b(_0x40184a);},'EYDzL':function(_0x3e04e0,_0x61a21d){return _0x3e04e0===_0x61a21d;},'KFwmU':'completed'},_0x4208b8=_0x13979e||await _0x4a29e6[_0x45ff90(0x16e)](getActiveFeatureId);if(!_0x4208b8)throw new Error(_0x45ff90(0x1ce));const _0x173222=await getFeature(_0x4208b8);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x173222['name']+'\x0a');const {sessions:_0x376960}=await _0x4a29e6[_0x45ff90(0x114)](listFeatureSessions,_0x4208b8);if(_0x4a29e6['EYDzL'](_0x376960[_0x45ff90(0x1ad)],0x0)){console[_0x45ff90(0x1a0)](_0x45ff90(0x1ed));return;}for(const _0x174f75 of _0x376960){const _0x541ff0=_0x174f75[_0x45ff90(0x147)]===_0x4a29e6[_0x45ff90(0x165)]?'✅':_0x174f75['status']==='in_progress'?'🔄':'▶️';console['log'](_0x541ff0+'\x20Session\x20'+_0x174f75['iteration']+'\x20('+_0x174f75['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x174f75['status']),console[_0x45ff90(0x1a0)](_0x45ff90(0x126)+new Date(_0x174f75[_0x45ff90(0x11b)])['toLocaleString']()),_0x174f75['completedAt']&&console['log'](_0x45ff90(0x1af)+new Date(_0x174f75[_0x45ff90(0x13e)])['toLocaleString']()),console[_0x45ff90(0x1a0)]('');}}export async function featureAddScenario(_0x313152,_0x1d382e){const _0x3eb0dd=_0x442b66,_0x578dae={'UlCBq':function(_0x386992,_0x47602a){return _0x386992(_0x47602a);},'rSjcB':function(_0x1cab35,_0x32264b,_0x1aeee5){return _0x1cab35(_0x32264b,_0x1aeee5);},'IGXVu':function(_0x33ca7f,_0x527aa6){return _0x33ca7f(_0x527aa6);}},_0x33def3=_0x1d382e||await getActiveFeatureId();if(!_0x33def3)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x2f8cbe=await _0x578dae['UlCBq'](getFeature,_0x33def3);if(_0x2f8cbe[_0x3eb0dd(0x14c)]&&!_0x2f8cbe['latestReview'][_0x3eb0dd(0x1b7)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x2f8cbe['dashboardUrl']);await _0x578dae['rSjcB'](createChecklistItem,_0x33def3,_0x313152);const _0x3c421f=await _0x578dae[_0x3eb0dd(0x15f)](getFeature,_0x33def3);console['log'](_0x3eb0dd(0x15e)),_0x578dae[_0x3eb0dd(0x141)](displayFeature,_0x3c421f,_0x3c421f[_0x3eb0dd(0x131)]);}export async function featureEditScenario(_0x3ed40b,_0x31d577){const _0x124d14=_0x442b66,_0xdd9838={'iFMgn':_0x124d14(0x135),'ognrz':'Please\x20finish\x20your\x20review\x20first:','OOQqE':function(_0x32a261,_0x24473c){return _0x32a261===_0x24473c;},'HspFw':_0x124d14(0x134),'JSVcC':function(_0x3d1a3f,_0x26fa81){return _0x3d1a3f<_0x26fa81;},'lbGVs':function(_0x2f4367,_0x5e482a){return _0x2f4367+_0x5e482a;},'ExfBF':function(_0x508c75,_0x11b421){return _0x508c75>=_0x11b421;},'NeVVX':'\x0aAvailable\x20scenarios:','SrLTS':function(_0x168dfd,_0x23d07f,_0x100c8f){return _0x168dfd(_0x23d07f,_0x100c8f);}},_0x52b5f9=_0x31d577['id']||await getActiveFeatureId();!_0x52b5f9&&(console['error'](_0xdd9838['iFMgn']),console['error'](_0x124d14(0x15c)),process[_0x124d14(0x113)](0x1));const _0x37f40e=await getFeature(_0x52b5f9);_0x37f40e[_0x124d14(0x14c)]&&!_0x37f40e[_0x124d14(0x14c)][_0x124d14(0x1b7)]&&(console[_0x124d14(0x1aa)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x124d14(0x1aa)](_0xdd9838[_0x124d14(0x190)]),console[_0x124d14(0x1aa)]('\x20\x20'+_0x37f40e[_0x124d14(0x19c)]),process['exit'](0x1));const _0x1e2b4e=_0x37f40e[_0x124d14(0x131)]||[];_0x1e2b4e['length']===0x0&&(console[_0x124d14(0x1aa)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0xdd9838['OOQqE'](_0x31d577['scenario'],undefined)){console[_0x124d14(0x1aa)](_0xdd9838[_0x124d14(0x172)]),console[_0x124d14(0x1a0)](_0x124d14(0x19e));for(let _0x514dab=0x0;_0xdd9838['JSVcC'](_0x514dab,_0x1e2b4e['length']);_0x514dab++){console[_0x124d14(0x1a0)]('\x20\x20'+_0xdd9838['lbGVs'](_0x514dab,0x1)+'.\x20'+_0x1e2b4e[_0x514dab]['description']);}process[_0x124d14(0x113)](0x1);}const _0x33f670=_0x31d577[_0x124d14(0x16a)]-0x1;if(_0x33f670<0x0||_0xdd9838['ExfBF'](_0x33f670,_0x1e2b4e['length'])){console[_0x124d14(0x1aa)](_0x124d14(0x1eb)+_0x31d577['scenario']+_0x124d14(0x1de)+_0x1e2b4e[_0x124d14(0x1ad)]+_0x124d14(0x179)),console[_0x124d14(0x1a0)](_0xdd9838['NeVVX']);for(let _0x44963d=0x0;_0x44963d<_0x1e2b4e['length'];_0x44963d++){console[_0x124d14(0x1a0)]('\x20\x20'+_0xdd9838[_0x124d14(0x116)](_0x44963d,0x1)+'.\x20'+_0x1e2b4e[_0x44963d]['description']);}process[_0x124d14(0x113)](0x1);}const _0x5c1cc8=_0x1e2b4e[_0x33f670];await updateChecklistItem(_0x52b5f9,_0x5c1cc8['id'],{'description':_0x3ed40b});const _0x305185=await getFeature(_0x52b5f9);console[_0x124d14(0x1a0)](_0x124d14(0x1d4)),_0xdd9838['SrLTS'](displayFeature,_0x305185,_0x305185[_0x124d14(0x131)]);}async function downloadFeedbackImage(_0x2e400b,_0x501b35){const _0x2cf36e=_0x442b66,_0x52dc83={'eYqPQ':function(_0x53cd9a,_0x1a3663,_0x58b0ad){return _0x53cd9a(_0x1a3663,_0x58b0ad);},'uNdgz':function(_0x3a94ba,_0x235f1c,_0x1d9570){return _0x3a94ba(_0x235f1c,_0x1d9570);}};try{const _0xc4f454=_0x52dc83[_0x2cf36e(0x1d1)](join,getRangerDir(),_0x2cf36e(0x1a2));await _0x52dc83['uNdgz'](mkdir,_0xc4f454,{'recursive':!![]});const _0xed9da0=_0x52dc83['uNdgz'](join,_0xc4f454,'comment_'+_0x501b35+_0x2cf36e(0x1e1)),_0x54d0af=await fetch(_0x2e400b);if(!_0x54d0af['ok'])return null;const _0x10722a=Buffer[_0x2cf36e(0x12a)](await _0x54d0af[_0x2cf36e(0x174)]());return await _0x52dc83['eYqPQ'](writeFile,_0xed9da0,_0x10722a),_0xed9da0;}catch{return null;}}export async function featureGetReview(_0x48b036){const _0x1a8f74=_0x442b66,_0x1c4f27={'nPKSJ':function(_0xa16747){return _0xa16747();},'laUlr':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','IHxcL':function(_0x51c3a5,_0x543c77){return _0x51c3a5===_0x543c77;},'AqezQ':function(_0x1f914d,_0x4d944a){return _0x1f914d<_0x4d944a;},'CDGCt':function(_0x5a8310,_0x5d9e6e,_0x144414){return _0x5a8310(_0x5d9e6e,_0x144414);},'oKJRE':'en-US','UkFSV':_0x1a8f74(0x194),'FbasH':'Unknown','rApkN':function(_0x440814,_0x4d02cb,_0x5f3e1c){return _0x440814(_0x4d02cb,_0x5f3e1c);},'hlOVZ':_0x1a8f74(0x130),'TRBQF':function(_0x5c02f1,_0x4ea390){return _0x5c02f1>=_0x4ea390;},'cXwlB':function(_0x521daa,_0x132435){return _0x521daa+_0x132435;}},_0x511f5d=_0x48b036||await _0x1c4f27[_0x1a8f74(0x1d7)](getActiveFeatureId);if(!_0x511f5d)throw new Error(_0x1c4f27['laUlr']);const _0x5029e1=await getFeature(_0x511f5d),{items:_0x4104a8}=await getActionItems(_0x511f5d);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x5029e1['name']+'\x20('+_0x5029e1['id']+')\x0a');if(_0x1c4f27['IHxcL'](_0x4104a8[_0x1a8f74(0x1ad)],0x0)){console['log']('No\x20scenarios\x20found.');return;}for(let _0x1c4ec6=0x0;_0x1c4f27['AqezQ'](_0x1c4ec6,_0x4104a8[_0x1a8f74(0x1ad)]);_0x1c4ec6++){const _0x278730=_0x4104a8[_0x1c4ec6],_0x2b2f3c=_0x278730[_0x1a8f74(0x14b)]>0x1?_0x1a8f74(0x1c6)+_0x278730['version']+')':'',_0x476482=await _0x1c4f27['CDGCt'](getItemFeedback,_0x511f5d,_0x278730['id']);if(_0x476482['unaddressedComments'][_0x1a8f74(0x1ad)]>0x0){console[_0x1a8f74(0x1a0)]('Scenario\x20'+(_0x1c4ec6+0x1)+':\x20\x22'+_0x278730[_0x1a8f74(0x11f)]+'\x22'+_0x2b2f3c+_0x1a8f74(0x1e6)+_0x476482['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x5609af of _0x476482[_0x1a8f74(0x1e7)]){const _0x389ef7=new Date(_0x5609af['createdAt'])['toLocaleDateString'](_0x1c4f27[_0x1a8f74(0x1cd)],{'month':_0x1c4f27[_0x1a8f74(0x1d3)],'day':'numeric'}),_0x1260de=_0x5609af['authorName']||_0x5609af['authorEmail']||_0x1c4f27[_0x1a8f74(0x1d8)];console['log']('\x20\x20💬\x20'+_0x1260de+'\x20('+_0x389ef7+_0x1a8f74(0x1d9)+_0x5609af[_0x1a8f74(0x1dd)]+'\x22');if(_0x5609af[_0x1a8f74(0x1d6)]){const _0x4e30c0=await _0x1c4f27[_0x1a8f74(0x175)](downloadFeedbackImage,_0x5609af[_0x1a8f74(0x1d6)],_0x5609af['id']);_0x4e30c0&&console['log'](_0x1a8f74(0x1ae)+_0x4e30c0);}if(_0x5609af[_0x1a8f74(0x177)]){const _0x54083c=_0x5609af[_0x1a8f74(0x177)][_0x1a8f74(0x123)]['split']('\x20>\x20')['pop']()?.['split'](':')[0x0]||_0x1c4f27['hlOVZ'],_0x2b8616=_0x5609af['domRef']['textContent']?'\x20\x22'+_0x5609af['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x54083c+'>'+_0x2b8616),console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x5609af[_0x1a8f74(0x177)][_0x1a8f74(0x123)]);}else{if(_0x5609af['spatial']){const _0x4f58eb=_0x5609af['spatial']['coordinates'];_0x5609af[_0x1a8f74(0x14a)][_0x1a8f74(0x13f)]==='point'&&_0x1c4f27[_0x1a8f74(0x18e)](_0x4f58eb['length'],0x2)?console['log'](_0x1a8f74(0x15d)+_0x4f58eb[0x0]['toFixed'](0x2)+',\x20'+_0x4f58eb[0x1]['toFixed'](0x2)+')'):console['log'](_0x1a8f74(0x160)+_0x5609af[_0x1a8f74(0x14a)][_0x1a8f74(0x13f)]+'\x20at\x20['+_0x4f58eb[_0x1a8f74(0x1cf)](_0x46124b=>_0x46124b[_0x1a8f74(0x17b)](0x2))['join'](',\x20')+']');}}}if(_0x476482[_0x1a8f74(0x112)]){console[_0x1a8f74(0x1a0)](_0x1a8f74(0x178));for(const _0x32968b of _0x476482[_0x1a8f74(0x112)]['split']('\x0a')){console[_0x1a8f74(0x1a0)]('\x20\x20\x20\x20'+_0x32968b);}}}else console['log']('Scenario\x20'+_0x1c4f27[_0x1a8f74(0x189)](_0x1c4ec6,0x1)+_0x1a8f74(0x159)+_0x278730[_0x1a8f74(0x11f)]+'\x22'+_0x2b2f3c+_0x1a8f74(0x162)),console[_0x1a8f74(0x1a0)](_0x1a8f74(0x148));console['log']('');}}function _0xca9d(_0x2f96fe,_0x586ec3){_0x2f96fe=_0x2f96fe-0x10f;const _0x226a47=_0x226a();let _0xca9d26=_0x226a47[_0x2f96fe];return _0xca9d26;}export async function featureDelete(_0x22f3ac){const _0x3a7492=_0x442b66,_0xdae340={'upWCn':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','MwfvE':function(_0x4a53b1,_0x3a9319){return _0x4a53b1(_0x3a9319);},'SMlzU':function(_0x336697,_0x126bb5){return _0x336697+_0x126bb5;}},_0x2e4b14=_0x22f3ac||await getActiveFeatureId();if(!_0x2e4b14)throw new Error(_0xdae340['upWCn']);const _0x43d7d7=await getFeature(_0x2e4b14);await _0xdae340['MwfvE'](softDeleteFeature,_0x2e4b14),console[_0x3a7492(0x1a0)](_0x3a7492(0x19a)+_0x43d7d7[_0x3a7492(0x1d0)]+'\x20('+_0x2e4b14+')'),console[_0x3a7492(0x1a0)](_0xdae340['SMlzU'](_0x3a7492(0x1c9),_0x2e4b14));}export async function featureRestore(_0x2b86b7){const _0x3e8618=_0x442b66,_0x55f5f7={'PtOou':function(_0x190de7,_0x12a5ec){return _0x190de7(_0x12a5ec);}};await _0x55f5f7['PtOou'](restoreFeature,_0x2b86b7);const _0x5666a7=await getFeature(_0x2b86b7);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x5666a7['name']+'\x20('+_0x2b86b7+')'),displayFeature(_0x5666a7,_0x5666a7[_0x3e8618(0x131)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5169(){const _0xe60ceb=['1459732gRFcUt','15654kBPjEZ','join','4904RyJLkl','5193Vflzvs','273175Siczze','410rQRUPv','20654040CSCKhy','1021578aRpbQU','1270325NhdpgU','4jvTODl','KyYvh'];_0x5169=function(){return _0xe60ceb;};return _0x5169();}(function(_0x5e5d18,_0x3d520a){const _0x58b9f2=_0x2a97,_0x4b24e2=_0x5e5d18();while(!![]){try{const _0x8a734b=-parseInt(_0x58b9f2(0x134))/0x1+-parseInt(_0x58b9f2(0x139))/0x2*(parseInt(_0x58b9f2(0x137))/0x3)+-parseInt(_0x58b9f2(0x13b))/0x4+-parseInt(_0x58b9f2(0x135))/0x5*(parseInt(_0x58b9f2(0x13c))/0x6)+parseInt(_0x58b9f2(0x138))/0x7+-parseInt(_0x58b9f2(0x132))/0x8*(parseInt(_0x58b9f2(0x133))/0x9)+parseInt(_0x58b9f2(0x136))/0xa;if(_0x8a734b===_0x3d520a)break;else _0x4b24e2['push'](_0x4b24e2['shift']());}catch(_0x4006fd){_0x4b24e2['push'](_0x4b24e2['shift']());}}}(_0x5169,0x57e90));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x2a97(_0x15b67a,_0x30fa11){_0x15b67a=_0x15b67a-0x131;const _0x516915=_0x5169();let _0x2a97e6=_0x516915[_0x15b67a];return _0x2a97e6;}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};export async function hook(_0x36aefe,_0x247202){const _0x150d7e=_0x2a97,_0x1a6c42={'KyYvh':function(_0x72cac5,_0x2f8409){return _0x72cac5(_0x2f8409);}},_0xb65cbb=HOOKS[_0x36aefe];if(!_0xb65cbb){const _0x2809fb=Object['keys'](HOOKS)[_0x150d7e(0x131)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x36aefe),console['error']('Valid\x20hooks:\x20'+_0x2809fb),process['exit'](0x1);}await _0x1a6c42[_0x150d7e(0x13a)](_0xb65cbb,_0x247202);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x73223e=_0x1e8c;(function(_0x4b8eb4,_0x5a9b46){const _0x5b62c3=_0x1e8c,_0x5c3510=_0x4b8eb4();while(!![]){try{const _0x392d42=parseInt(_0x5b62c3(0x133))/0x1*(parseInt(_0x5b62c3(0x134))/0x2)+-parseInt(_0x5b62c3(0x135))/0x3*(-parseInt(_0x5b62c3(0x12f))/0x4)+parseInt(_0x5b62c3(0x138))/0x5+parseInt(_0x5b62c3(0x132))/0x6+-parseInt(_0x5b62c3(0x139))/0x7*(-parseInt(_0x5b62c3(0x136))/0x8)+-parseInt(_0x5b62c3(0x131))/0x9+-parseInt(_0x5b62c3(0x137))/0xa;if(_0x392d42===_0x5a9b46)break;else _0x5c3510['push'](_0x5c3510['shift']());}catch(_0x142fcb){_0x5c3510['push'](_0x5c3510['shift']());}}}(_0x217e,0x8264f));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x73223e(0x130);function _0x217e(){const _0x5a3e79=['\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.','5862501RBAPjc','2234106NjmgRn','56583DCcIWw','34DfbaXT','2115804YOFIqc','80eZFunf','18799510qwOknH','4709325CRysKQ','58828aSItcL','4dsKHbX'];_0x217e=function(){return _0x5a3e79;};return _0x217e();}function _0x1e8c(_0x4f6b06,_0x652bfa){_0x4f6b06=_0x4f6b06-0x12f;const _0x217e12=_0x217e();let _0x1e8c9e=_0x217e12[_0x4f6b06];return _0x1e8c9e;}export async function autoPrompt(){const _0x3c27c7={'eMQNa':function(_0x2b594d){return _0x2b594d();},'KCRCW':function(_0x2ee85c,_0x1ebdf0){return _0x2ee85c(_0x1ebdf0);}},_0xb7f289=await _0x3c27c7['eMQNa'](readHookInput),_0x28016f=_0xb7f289?.['session_id'];if(!_0x28016f)return;if(isSessionEnabled(_0x28016f)||_0x3c27c7['KCRCW'](hasSessionBeenPrompted,_0x28016f))return;markSessionPrompted(_0x28016f),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x476e1b,_0x4e3d8c){const _0x155a05=_0x3116,_0x408a06=_0x476e1b();while(!![]){try{const _0x57b127=parseInt(_0x155a05(0x7e))/0x1+parseInt(_0x155a05(0x7c))/0x2+-parseInt(_0x155a05(0x77))/0x3+parseInt(_0x155a05(0x7a))/0x4+-parseInt(_0x155a05(0x81))/0x5*(-parseInt(_0x155a05(0x78))/0x6)+parseInt(_0x155a05(0x80))/0x7*(-parseInt(_0x155a05(0x7d))/0x8)+-parseInt(_0x155a05(0x76))/0x9*(-parseInt(_0x155a05(0x7b))/0xa);if(_0x57b127===_0x4e3d8c)break;else _0x408a06['push'](_0x408a06['shift']());}catch(_0x198451){_0x408a06['push'](_0x408a06['shift']());}}}(_0x4b71,0xbadb5));function _0x3116(_0x56724b,_0x4ec249){_0x56724b=_0x56724b-0x74;const _0x4b712a=_0x4b71();let _0x31163b=_0x4b712a[_0x56724b];return _0x31163b;}function _0x4b71(){const _0x277a2a=['#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','1867491CKiYVw','1042569XeNBFf','1944780WPmWEQ','\x20and\x20branch\x20\x27','4544560tKtwlM','20IzPofG','1268442udAFlX','488UoVnGI','132852RRmnuu','oWPpo','175511MrPQZD','5gDgpVv','master'];_0x4b71=function(){return _0x277a2a;};return _0x4b71();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x1c394a){const _0x3c7c07=_0x3116,_0x325e89={'nTDba':'main','JXMdF':function(_0x5a4b66,_0x15e0e3){return _0x5a4b66(_0x15e0e3);},'ZkilZ':function(_0x58c332,_0x3ef5c5){return _0x58c332(_0x3ef5c5);},'oWPpo':function(_0x4c3992,_0x4149a0){return _0x4c3992!==_0x4149a0;},'sqkQT':_0x3c7c07(0x74)},_0x176c77=_0x1c394a||process['env']['CLAUDE_SESSION_ID']||'';_0x176c77&&disableSession(_0x176c77);const _0x33cd6e=getCurrentBranch();_0x33cd6e&&_0x33cd6e!==_0x325e89['nTDba']&&_0x33cd6e!==_0x3c7c07(0x74)&&_0x325e89['JXMdF'](disableBranch,_0x33cd6e),_0x325e89['ZkilZ'](printBlock,_0x3c7c07(0x75)+(_0x33cd6e&&_0x325e89[_0x3c7c07(0x7f)](_0x33cd6e,'main')&&_0x33cd6e!==_0x325e89['sqkQT']?_0x3c7c07(0x79)+_0x33cd6e+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a9001,_0x3b2934){const _0xb45877=_0x1d71,_0x4674f8=_0x1a9001();while(!![]){try{const _0x366c84=parseInt(_0xb45877(0x178))/0x1+parseInt(_0xb45877(0x17f))/0x2+parseInt(_0xb45877(0x184))/0x3*(parseInt(_0xb45877(0x176))/0x4)+-parseInt(_0xb45877(0x183))/0x5+-parseInt(_0xb45877(0x174))/0x6*(-parseInt(_0xb45877(0x173))/0x7)+parseInt(_0xb45877(0x179))/0x8+parseInt(_0xb45877(0x186))/0x9*(-parseInt(_0xb45877(0x172))/0xa);if(_0x366c84===_0x3b2934)break;else _0x4674f8['push'](_0x4674f8['shift']());}catch(_0x2a15d1){_0x4674f8['push'](_0x4674f8['shift']());}}}(_0x15ff,0x69599));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x15ff(){const _0x116b13=['3199770ojyYCW','625731CdWtxE','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','12505266oSzVJZ','master','10ofvuQV','35539tLbcnL','684QDVvmQ','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','8zAqmUA','OdHoS','717136DhAquh','3398352eLFggs','main','ranger\x20setup','\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`.','HCxjO','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','646158GDiwgD','QeIbw','#\x20RANGER\x20ENABLED','sKTSC'];_0x15ff=function(){return _0x116b13;};return _0x15ff();}function _0x1d71(_0x34a150,_0x36aa87){_0x34a150=_0x34a150-0x172;const _0x15ff5d=_0x15ff();let _0x1d71ef=_0x15ff5d[_0x34a150];return _0x1d71ef;}import{update}from'../update.js';export async function enable(_0x558b0d){const _0x308e7c=_0x1d71,_0x529a11={'QeIbw':function(_0x41deaa){return _0x41deaa();},'yxlOo':_0x308e7c(0x17e),'OdHoS':function(_0x174efd){return _0x174efd();},'sKTSC':function(_0x1893c6,_0x6bc68c){return _0x1893c6!==_0x6bc68c;},'gIHSb':_0x308e7c(0x187),'HCxjO':function(_0x40e5e9){return _0x40e5e9();}},_0x137226=_0x558b0d||process['env']['CLAUDE_SESSION_ID']||'',_0x348779=Boolean(_0x558b0d),_0x285bfc=await _0x529a11[_0x308e7c(0x180)](getToken);if(!_0x285bfc){const _0x54b1bf=_0x348779?'ranger\x20setup\x20--opencode':_0x308e7c(0x17b),_0x1a36fc=_0x348779?_0x529a11['yxlOo']:_0x308e7c(0x185);printBlock('#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x54b1bf+_0x308e7c(0x175)+_0x1a36fc);return;}try{await _0x529a11[_0x308e7c(0x177)](update);}catch{}_0x137226&&enableSession(_0x137226);const _0x2b4202=getCurrentBranch(),_0x2d1234=_0x2b4202&&_0x529a11['sKTSC'](_0x2b4202,_0x308e7c(0x17a))&&_0x529a11[_0x308e7c(0x182)](_0x2b4202,_0x529a11['gIHSb'])?'\x0a\x0a**Branch\x20\x27'+_0x2b4202+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x1dc0f8=_0x529a11[_0x308e7c(0x17d)](getRangerSkillContent);printBlock(_0x308e7c(0x181)+_0x2d1234+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x1dc0f8+_0x308e7c(0x17c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x13fda1,_0x335adc){const _0x436967=_0x2118,_0x426fd3=_0x13fda1();while(!![]){try{const _0x17c287=parseInt(_0x436967(0xc8))/0x1*(parseInt(_0x436967(0xcd))/0x2)+parseInt(_0x436967(0xc6))/0x3*(parseInt(_0x436967(0xcc))/0x4)+-parseInt(_0x436967(0xc7))/0x5+-parseInt(_0x436967(0xc9))/0x6*(parseInt(_0x436967(0xcb))/0x7)+parseInt(_0x436967(0xce))/0x8+parseInt(_0x436967(0xcf))/0x9+-parseInt(_0x436967(0xca))/0xa;if(_0x17c287===_0x335adc)break;else _0x426fd3['push'](_0x426fd3['shift']());}catch(_0x2ca19b){_0x426fd3['push'](_0x426fd3['shift']());}}}(_0x1a5b,0x425c3));function _0x2118(_0x529acf,_0x27f59d){_0x529acf=_0x529acf-0xc6;const _0x1a5b08=_0x1a5b();let _0x21183f=_0x1a5b08[_0x529acf];return _0x21183f;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0xb094bd){const _0x2506a8=await getEnabledSessionId(_0xb094bd);if(!_0x2506a8)return;printBlock('===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}function _0x1a5b(){const _0xf4ba5e=['14202FHhRzE','6LTNDYF','6963730FohiSu','1220317VaFJCX','4cRZKFH','36cOJZte','1826568mQYnQO','3664026hIfBAs','937659rVeSls','305545lcvtax'];_0x1a5b=function(){return _0xf4ba5e;};return _0x1a5b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4041(_0x791d38,_0x87c00){_0x791d38=_0x791d38-0x199;var _0x18a420=_0x18a4();var _0x4041eb=_0x18a420[_0x791d38];return _0x4041eb;}(function(_0x35173c,_0x457584){var _0x84036c=_0x4041,_0x3f9f5b=_0x35173c();while(!![]){try{var _0x34967e=parseInt(_0x84036c(0x19f))/0x1*(parseInt(_0x84036c(0x19e))/0x2)+parseInt(_0x84036c(0x19b))/0x3+parseInt(_0x84036c(0x1a1))/0x4+parseInt(_0x84036c(0x19a))/0x5+-parseInt(_0x84036c(0x199))/0x6*(parseInt(_0x84036c(0x1a0))/0x7)+parseInt(_0x84036c(0x19d))/0x8+-parseInt(_0x84036c(0x19c))/0x9;if(_0x34967e===_0x457584)break;else _0x3f9f5b['push'](_0x3f9f5b['shift']());}catch(_0x23fb0){_0x3f9f5b['push'](_0x3f9f5b['shift']());}}}(_0x18a4,0x664e3));function _0x18a4(){var _0x409f23=['1514450xEPOJq','519273QQxRVq','4626666ujxtLx','3858744NzapNt','494fRbpWI','1329WAaOmL','14JnwztC','1665272bpPRPu','2309364bfNtTS'];_0x18a4=function(){return _0x409f23;};return _0x18a4();}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24d400,_0xe9fb79){const _0x548e78=_0x196c,_0x1cc3e0=_0x24d400();while(!![]){try{const _0x1a50f6=parseInt(_0x548e78(0x140))/0x1+parseInt(_0x548e78(0x13e))/0x2+parseInt(_0x548e78(0x136))/0x3+parseInt(_0x548e78(0x135))/0x4*(-parseInt(_0x548e78(0x138))/0x5)+parseInt(_0x548e78(0x13d))/0x6+-parseInt(_0x548e78(0x13b))/0x7*(-parseInt(_0x548e78(0x137))/0x8)+-parseInt(_0x548e78(0x141))/0x9*(parseInt(_0x548e78(0x133))/0xa);if(_0x1a50f6===_0xe9fb79)break;else _0x1cc3e0['push'](_0x1cc3e0['shift']());}catch(_0x229ba3){_0x1cc3e0['push'](_0x1cc3e0['shift']());}}}(_0xa047,0x275dc));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x499e46){const _0x164e4a=_0x196c;console[_0x164e4a(0x13f)](_0x499e46);}function _0xa047(){const _0x289ac2=['43085nnJQen','PtMOm','1708608AvjQmJ','336262WliQLa','log','136910FXwGox','5374638xREgkC','parse','10DgagMT','Bkhzl','12dQZzja','415941XfOENY','48NkZKBD','11600syVhwq','tDTBZ','ABZoL'];_0xa047=function(){return _0x289ac2;};return _0xa047();}export async function readHookInput(){const _0x3f5255=_0x196c;let _0x5f00bd='';for await(const _0x2306d7 of process['stdin']){_0x5f00bd+=_0x2306d7;}try{return JSON[_0x3f5255(0x132)](_0x5f00bd);}catch{return null;}}function _0x196c(_0x5488ca,_0x26c5bf){_0x5488ca=_0x5488ca-0x132;const _0xa0473d=_0xa047();let _0x196c7d=_0xa0473d[_0x5488ca];return _0x196c7d;}export async function getEnabledSessionId(_0x1684b5){const _0x8deac6=_0x196c,_0x19d418={'PtMOm':function(_0x1bffa3,_0x5105ef){return _0x1bffa3(_0x5105ef);},'tDTBZ':function(_0xf1d9b6){return _0xf1d9b6();}};if(_0x1684b5)return _0x19d418[_0x8deac6(0x13c)](isSessionEnabled,_0x1684b5)?_0x1684b5:null;const _0x3e2d9d=await _0x19d418[_0x8deac6(0x139)](readHookInput),_0x51a612=_0x3e2d9d?.['session_id'];if(!_0x51a612||!isSessionEnabled(_0x51a612))return null;return _0x51a612;}export async function getEnabledHookContext(_0x5aa566){const _0x1ca183=_0x196c,_0x6bc4ad={'ABZoL':function(_0x25d12a,_0x252b78){return _0x25d12a(_0x252b78);},'Bkhzl':function(_0x4a421f){return _0x4a421f();}};if(_0x5aa566){if(!_0x6bc4ad[_0x1ca183(0x13a)](isSessionEnabled,_0x5aa566))return null;return{'sessionId':_0x5aa566,'input':{'session_id':_0x5aa566}};}const _0x5d6d2e=await _0x6bc4ad[_0x1ca183(0x134)](readHookInput),_0x204352=_0x5d6d2e?.['session_id'];if(!_0x204352||!_0x6bc4ad[_0x1ca183(0x13a)](isSessionEnabled,_0x204352))return null;return{'sessionId':_0x204352,'input':_0x5d6d2e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x37328a,_0x52d2a3){const _0x3af95f=_0x496b,_0xfc1c68=_0x37328a();while(!![]){try{const _0x1d13ee=-parseInt(_0x3af95f(0xa2))/0x1*(-parseInt(_0x3af95f(0x9b))/0x2)+parseInt(_0x3af95f(0x9f))/0x3*(parseInt(_0x3af95f(0x97))/0x4)+-parseInt(_0x3af95f(0x99))/0x5+-parseInt(_0x3af95f(0x9e))/0x6*(parseInt(_0x3af95f(0x94))/0x7)+-parseInt(_0x3af95f(0x98))/0x8+parseInt(_0x3af95f(0x9c))/0x9*(-parseInt(_0x3af95f(0xa3))/0xa)+-parseInt(_0x3af95f(0xa0))/0xb*(-parseInt(_0x3af95f(0x9a))/0xc);if(_0x1d13ee===_0x52d2a3)break;else _0xfc1c68['push'](_0xfc1c68['shift']());}catch(_0x40061d){_0xfc1c68['push'](_0xfc1c68['shift']());}}}(_0x3427,0xe91b6));import{printBlock,getEnabledHookContext}from'./output.js';function _0x3427(){const _0x430221=['18OAZicY','ETbiA','2154eIqtoJ','633MxiUoG','44030426ibMrVU','sessionId','164677yMaDcL','8234670fZNbQe','14126mLGYJZ','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===','DXfZZ','11076rztQSo','9418752xUvpXt','1240780iCsNAs','12AdFHrB','2KQJbdi'];_0x3427=function(){return _0x430221;};return _0x3427();}function _0x496b(_0x62bb2a,_0x355421){_0x62bb2a=_0x62bb2a-0x94;const _0x342708=_0x3427();let _0x496be4=_0x342708[_0x62bb2a];return _0x496be4;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x14dadd){const _0x96f620=_0x496b,_0x4cd1de={'Zodpe':function(_0x5d2ce8,_0x15ed87){return _0x5d2ce8(_0x15ed87);},'zsIyr':function(_0x5474f4,_0x11680c){return _0x5474f4!==_0x11680c;},'DXfZZ':function(_0x2b05b1,_0xca4aee){return _0x2b05b1(_0xca4aee);},'ETbiA':function(_0x1d04f6,_0x2c6669){return _0x1d04f6(_0x2c6669);}},_0x565775=await _0x4cd1de['Zodpe'](getEnabledHookContext,_0x14dadd);if(!_0x565775)return;if(_0x4cd1de['zsIyr'](_0x565775['input']['permission_mode'],'plan'))return;if(!_0x4cd1de[_0x96f620(0x96)](shouldShowPlanReminder,_0x565775[_0x96f620(0xa1)]))return;_0x4cd1de[_0x96f620(0x9d)](printBlock,_0x96f620(0x95));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x78d9a0,_0x190777){const _0x4cf176=_0x317c,_0x2e240c=_0x78d9a0();while(!![]){try{const _0x489353=parseInt(_0x4cf176(0x1e9))/0x1+parseInt(_0x4cf176(0x1e7))/0x2+parseInt(_0x4cf176(0x1e4))/0x3+-parseInt(_0x4cf176(0x1ea))/0x4*(-parseInt(_0x4cf176(0x1e2))/0x5)+parseInt(_0x4cf176(0x1e0))/0x6*(-parseInt(_0x4cf176(0x1e3))/0x7)+-parseInt(_0x4cf176(0x1e1))/0x8*(parseInt(_0x4cf176(0x1e5))/0x9)+-parseInt(_0x4cf176(0x1e6))/0xa*(parseInt(_0x4cf176(0x1eb))/0xb);if(_0x489353===_0x190777)break;else _0x2e240c['push'](_0x2e240c['shift']());}catch(_0x4edbc8){_0x2e240c['push'](_0x2e240c['shift']());}}}(_0x13d5,0x25db5));function _0x317c(_0x400e28,_0x162604){_0x400e28=_0x400e28-0x1df;const _0x13d5d8=_0x13d5();let _0x317c1a=_0x13d5d8[_0x400e28];return _0x317c1a;}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x1c1d28){const _0x3a8122=_0x317c,_0x5ed3d8={'ZhEuG':function(_0x3ab65c,_0x6f74c2){return _0x3ab65c(_0x6f74c2);},'iAZNJ':function(_0x1db4eb,_0x341d65){return _0x1db4eb(_0x341d65);}},_0x29091e=await _0x5ed3d8[_0x3a8122(0x1df)](getEnabledSessionId,_0x1c1d28);if(!_0x29091e)return;_0x5ed3d8['iAZNJ'](printBlock,_0x3a8122(0x1e8));}function _0x13d5(){const _0x310fed=['1545zsNQuP','615496ReDWiX','307536nFnMta','9DyNPlD','5130qocIGo','457932zzgMTr','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===','176186XFiwhP','1492nyAttx','1969MXkBaY','ZhEuG','6Ujwkio','2304840RSXUEj'];_0x13d5=function(){return _0x310fed;};return _0x13d5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3abe3d,_0x3d5f68){const _0x291b5e=_0x2405,_0x582dab=_0x3abe3d();while(!![]){try{const _0x3ddbdd=-parseInt(_0x291b5e(0x11e))/0x1*(parseInt(_0x291b5e(0x114))/0x2)+parseInt(_0x291b5e(0x11c))/0x3+-parseInt(_0x291b5e(0x11f))/0x4+parseInt(_0x291b5e(0x11a))/0x5+parseInt(_0x291b5e(0x11d))/0x6*(-parseInt(_0x291b5e(0x121))/0x7)+parseInt(_0x291b5e(0x116))/0x8+-parseInt(_0x291b5e(0x120))/0x9*(-parseInt(_0x291b5e(0x119))/0xa);if(_0x3ddbdd===_0x3d5f68)break;else _0x582dab['push'](_0x582dab['shift']());}catch(_0x215c0c){_0x582dab['push'](_0x582dab['shift']());}}}(_0x3abd,0xee8d1));function _0x2405(_0x32e0fc,_0x17509b){_0x32e0fc=_0x32e0fc-0x114;const _0x3abd7c=_0x3abd();let _0x2405ed=_0x3abd7c[_0x32e0fc];return _0x2405ed;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3abd(){const _0xcb40dc=['PostToolUse','2357020whMjmJ','6798970XLxUUR','stringify','401127DqCPaS','96EQVYFp','1761yykVVE','2886632zEDmZS','54HhQvyX','673274ClAaKw','710ygBSiB','MwVQd','7640920LxgIBd','log'];_0x3abd=function(){return _0xcb40dc;};return _0x3abd();}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x49b277){const _0x3a8794=_0x2405,_0x171d29={'sBISH':function(_0x165ea1,_0x309366){return _0x165ea1(_0x309366);},'MwVQd':_0x3a8794(0x118)},_0x151467=await getEnabledSessionId(_0x49b277);if(!_0x151467)return;updateBranchTracking(_0x151467);const _0x5e6b8f=await getToken();if(!_0x5e6b8f)return;const _0x18ef0a=_0x171d29['sBISH'](getSessionEntry,_0x151467);if(_0x18ef0a){const _0x50228f={'hookSpecificOutput':{'hookEventName':_0x171d29[_0x3a8794(0x115)],'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console[_0x3a8794(0x117)](JSON[_0x3a8794(0x11b)](_0x50228f));return;}const _0x43643f={'hookSpecificOutput':{'hookEventName':_0x171d29[_0x3a8794(0x115)],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON['stringify'](_0x43643f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x144431,_0x6d2bb9){const _0x5aca62=_0x184a,_0x3a53ca=_0x144431();while(!![]){try{const _0x5893c2=-parseInt(_0x5aca62(0x9c))/0x1+parseInt(_0x5aca62(0xa0))/0x2+parseInt(_0x5aca62(0xa5))/0x3+-parseInt(_0x5aca62(0xa4))/0x4+-parseInt(_0x5aca62(0xa2))/0x5+parseInt(_0x5aca62(0x9f))/0x6*(-parseInt(_0x5aca62(0xa1))/0x7)+parseInt(_0x5aca62(0xa6))/0x8*(parseInt(_0x5aca62(0x9d))/0x9);if(_0x5893c2===_0x6d2bb9)break;else _0x3a53ca['push'](_0x3a53ca['shift']());}catch(_0x250956){_0x3a53ca['push'](_0x3a53ca['shift']());}}}(_0x2875,0x8dac5));function _0x2875(){const _0x7314c7=['878805ZAnNPm','LxCLb','454254ZqcXDU','808774oMijml','70mfUBcV','2682525jMYxFC','===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.','5596lBUKky','1932132SZOYXI','80BuvhMC','149594HZRcDg'];_0x2875=function(){return _0x7314c7;};return _0x2875();}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x184a(_0x15c888,_0x42f5e4){_0x15c888=_0x15c888-0x9c;const _0x28750f=_0x2875();let _0x184a1f=_0x28750f[_0x15c888];return _0x184a1f;}export async function preCompact(_0x30ef67){const _0x3c6542=_0x184a,_0x2590fb={'LxCLb':function(_0x388c3d){return _0x388c3d();}},_0x49ba32=await getEnabledSessionId(_0x30ef67);if(!_0x49ba32)return;try{const _0x531d2d=await _0x2590fb[_0x3c6542(0x9e)](getToken);if(!_0x531d2d)return;printBlock(_0x3c6542(0xa3));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4019eb,_0x44f42b){const _0x19df50=_0x13e4,_0x3c51eb=_0x4019eb();while(!![]){try{const _0x55482b=-parseInt(_0x19df50(0x148))/0x1*(-parseInt(_0x19df50(0x144))/0x2)+-parseInt(_0x19df50(0x146))/0x3*(-parseInt(_0x19df50(0x149))/0x4)+parseInt(_0x19df50(0x142))/0x5*(-parseInt(_0x19df50(0x141))/0x6)+-parseInt(_0x19df50(0x13f))/0x7+-parseInt(_0x19df50(0x14a))/0x8+-parseInt(_0x19df50(0x143))/0x9+parseInt(_0x19df50(0x147))/0xa;if(_0x55482b===_0x44f42b)break;else _0x3c51eb['push'](_0x3c51eb['shift']());}catch(_0x1d0563){_0x3c51eb['push'](_0x3c51eb['shift']());}}}(_0x238b,0xd6e46));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x1839d8){const _0x5da35d=_0x13e4,_0xe5a91={'mYCBF':function(_0x2a2005,_0x1f5fca){return _0x2a2005===_0x1f5fca;},'KQlVd':'clear','ssVce':function(_0x5dab8f,_0x1ed559){return _0x5dab8f(_0x1ed559);}};let _0x21f302=_0x1839d8,_0x376729;if(!_0x1839d8){const _0x1c9393=await readHookInput();_0x21f302=_0x1c9393?.[_0x5da35d(0x145)],_0x376729=_0x1c9393?.['reason'];}if(!_0x21f302)return;_0xe5a91['mYCBF'](_0x376729,_0xe5a91[_0x5da35d(0x140)])&&_0xe5a91['ssVce'](recordEnabledSessionCleared,_0x21f302);}function _0x13e4(_0xc2fd9e,_0x176d28){_0xc2fd9e=_0xc2fd9e-0x13f;const _0x238ba6=_0x238b();let _0x13e472=_0x238ba6[_0xc2fd9e];return _0x13e472;}function _0x238b(){const _0x507d6=['session_id','48jxXrKQ','29215610GvxPKI','2SLMwSN','12688aMvzmg','6782640DyhCWY','7069125kXmRko','KQlVd','6SmoEYg','1609745AhLJqr','5496777dwbkCU','698292iGatmg'];_0x238b=function(){return _0x507d6;};return _0x238b();}
|