@ranger-testing/ranger-cli 2.1.4 → 2.1.6
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/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/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/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/verifyInBrowser.js +1 -1
- package/package.json +1 -1
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5b3cbd=_0x14bf;(function(_0x4f1e91,_0x1b1699){const _0x292711=_0x14bf,_0x4135fe=_0x4f1e91();while(!![]){try{const _0x462a4b=-parseInt(_0x292711(0x175))/0x1*(parseInt(_0x292711(0x177))/0x2)+-parseInt(_0x292711(0x174))/0x3*(-parseInt(_0x292711(0x17e))/0x4)+-parseInt(_0x292711(0x17b))/0x5+parseInt(_0x292711(0x178))/0x6+parseInt(_0x292711(0x181))/0x7*(-parseInt(_0x292711(0x185))/0x8)+parseInt(_0x292711(0x18a))/0x9*(parseInt(_0x292711(0x17f))/0xa)+-parseInt(_0x292711(0x17d))/0xb*(-parseInt(_0x292711(0x18f))/0xc);if(_0x462a4b===_0x1b1699)break;else _0x4135fe['push'](_0x4135fe['shift']());}catch(_0x643db5){_0x4135fe['push'](_0x4135fe['shift']());}}}(_0x125a,0x3488a));import{readdir,stat}from'fs/promises';function _0x125a(){const _0x547c8e=['isDirectory','7LuTaag','includes','\x0aProfiles:','settings.json','1521560JgPjUv','CBTpd','ZGwTO','local','bug-bashes','9eDAvOF','baseUrl','NVclV','sessions','environmentDetails','36ffgCxO','hFvHa','OGRFO','length','126354zsMvXL','1TUGWea','log','494152KEhnht','1290618MEibIC','LhBNF','\x20\x20\x20\x20\x20\x20URL:\x20','1197140SOYofb','push','74701YjahPt','24ZNkbWy','4036930BtVVzd'];_0x125a=function(){return _0x547c8e;};return _0x125a();}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=[_0x5b3cbd(0x18d),_0x5b3cbd(0x189),'reports','local','ci'];function _0x14bf(_0x68102c,_0x4216ca){_0x68102c=_0x68102c-0x172;const _0x125a8d=_0x125a();let _0x14bff7=_0x125a8d[_0x68102c];return _0x14bff7;}export async function getEnvNames(){const _0x2ab260=_0x5b3cbd,_0x181286={'MSnvP':function(_0x523cdf){return _0x523cdf();},'OGRFO':function(_0x5e526e,_0x22b9c8){return _0x5e526e(_0x22b9c8);},'IhwyX':function(_0x281965,_0x1b1f2e,_0x5e2abb){return _0x281965(_0x1b1f2e,_0x5e2abb);},'CBTpd':function(_0xb18477,_0x2397e6){return _0xb18477(_0x2397e6);},'LhBNF':function(_0x412f4c,_0x5be567){return _0x412f4c(_0x5be567);},'FUboj':_0x2ab260(0x184)},_0x507ad5=_0x181286['MSnvP'](getRangerDir);if(!_0x181286[_0x2ab260(0x172)](existsSync,_0x507ad5))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x37c915=await _0x181286['MSnvP'](readActiveProfileName),_0x1c3c4d=[],_0x5ef449={},_0x10eead=join(_0x507ad5,_0x2ab260(0x188));if(_0x181286[_0x2ab260(0x172)](existsSync,_0x10eead)){const _0x4f5961=await readdir(_0x10eead);for(const _0x2fcef2 of _0x4f5961){const _0x3dbe69=_0x181286['IhwyX'](join,_0x10eead,_0x2fcef2),_0x3cfcdf=await stat(_0x3dbe69);_0x3cfcdf['isDirectory']()&&(_0x1c3c4d[_0x2ab260(0x17c)](_0x2fcef2),_0x5ef449[_0x2fcef2]='local');}}const _0x5145b6=_0x181286['IhwyX'](join,_0x507ad5,'ci');if(_0x181286['OGRFO'](existsSync,_0x5145b6)){const _0x42e2d2=await readdir(_0x5145b6);for(const _0x2f50cb of _0x42e2d2){const _0x2748a4=_0x181286['IhwyX'](join,_0x5145b6,_0x2f50cb),_0x381fe4=await _0x181286['OGRFO'](stat,_0x2748a4);_0x381fe4[_0x2ab260(0x180)]()&&(_0x1c3c4d['push'](_0x2f50cb),_0x5ef449[_0x2f50cb]='ci');}}const _0x367831=await _0x181286[_0x2ab260(0x186)](readdir,_0x507ad5);for(const _0x1f3d95 of _0x367831){if(NON_ENV_DIRS['includes'](_0x1f3d95))continue;if(_0x1f3d95['startsWith']('.'))continue;if(_0x1f3d95['endsWith']('.txt'))continue;const _0x1091fb=join(_0x507ad5,_0x1f3d95),_0x586bd3=await _0x181286[_0x2ab260(0x179)](stat,_0x1091fb);_0x586bd3['isDirectory']()&&existsSync(join(_0x1091fb,_0x181286['FUboj']))&&(!_0x1c3c4d[_0x2ab260(0x182)](_0x1f3d95)&&(_0x1c3c4d['push'](_0x1f3d95),_0x5ef449[_0x1f3d95]='legacy'));}return{'envNames':_0x1c3c4d,'activeEnv':_0x37c915,'envTypes':_0x5ef449};}export async function envList(){const _0xb636f0=_0x5b3cbd,_0x4bc95f={'qcDPI':function(_0x10f622,_0x58b727){return _0x10f622===_0x58b727;},'ZGwTO':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','hFvHa':_0xb636f0(0x183),'Ptfng':_0xb636f0(0x188),'NVclV':function(_0x590db7,_0x4cad81){return _0x590db7===_0x4cad81;}},{envNames:_0xc379ba,activeEnv:_0x5919b9,envTypes:_0x40f837}=await getEnvNames();if(_0x4bc95f['qcDPI'](_0xc379ba[_0xb636f0(0x173)],0x0)){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x4bc95f[_0xb636f0(0x187)]);return;}console[_0xb636f0(0x176)](_0x4bc95f[_0xb636f0(0x190)]);for(const _0x46bad3 of _0xc379ba['sort']()){const _0x59ad91=_0x46bad3===_0x5919b9,_0x3cc6f2=_0x40f837[_0x46bad3]||_0x4bc95f['Ptfng'],_0x13a837=await loadSettings(_0x46bad3),_0xa8f966=_0x4bc95f[_0xb636f0(0x18c)](_0x3cc6f2,'legacy')?'':'\x20['+_0x3cc6f2+']';console[_0xb636f0(0x176)]('\x20\x20'+(_0x59ad91?'*\x20':'\x20\x20')+_0x46bad3+_0xa8f966),_0x13a837['baseUrl']&&console['log'](_0xb636f0(0x17a)+_0x13a837[_0xb636f0(0x18b)]),_0x13a837[_0xb636f0(0x18e)]&&console[_0xb636f0(0x176)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x13a837['environmentDetails']);}_0x5919b9&&console['log']('\x0a*\x20=\x20active\x20profile');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x239627=_0x580b;(function(_0x28b7f2,_0x19cc1c){const _0x1f4507=_0x580b,_0x36506d=_0x28b7f2();while(!![]){try{const _0x1f780b=parseInt(_0x1f4507(0x174))/0x1*(parseInt(_0x1f4507(0x1b2))/0x2)+-parseInt(_0x1f4507(0x191))/0x3*(-parseInt(_0x1f4507(0x14e))/0x4)+-parseInt(_0x1f4507(0x1c6))/0x5+parseInt(_0x1f4507(0x144))/0x6*(parseInt(_0x1f4507(0x120))/0x7)+parseInt(_0x1f4507(0x18f))/0x8+-parseInt(_0x1f4507(0x199))/0x9+parseInt(_0x1f4507(0x15f))/0xa;if(_0x1f780b===_0x19cc1c)break;else _0x36506d['push'](_0x36506d['shift']());}catch(_0x3636bf){_0x36506d['push'](_0x36506d['shift']());}}}(_0x3d26,0x57408));function _0x580b(_0x25e074,_0x34a89b){_0x25e074=_0x25e074-0x120;const _0x3d26c6=_0x3d26();let _0x580b22=_0x3d26c6[_0x25e074];return _0x580b22;}import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3edf0f from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.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=_0x239627(0x167),bold=_0x3f789a=>_0x239627(0x15d)+_0x3f789a+_0x239627(0x131);function getGitRepoUrl(){const _0x2fbb1e=_0x239627,_0x5ac745={'UUFpe':function(_0x3443e6,_0x4b2deb,_0x459c6c){return _0x3443e6(_0x4b2deb,_0x459c6c);},'KZSAg':_0x2fbb1e(0x1d6),'vWZhW':'pipe'};try{const _0x2a20e8=_0x5ac745['UUFpe'](execSync,_0x2fbb1e(0x13e),{'encoding':_0x5ac745['KZSAg'],'stdio':[_0x5ac745['vWZhW'],_0x5ac745['vWZhW'],_0x5ac745[_0x2fbb1e(0x127)]]})[_0x2fbb1e(0x137)]();return _0x2a20e8[_0x2fbb1e(0x1d9)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x2fbb1e(0x18e))[_0x2fbb1e(0x1d9)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x426f6c=_0x239627,_0x155af8={'DuDHN':function(_0x1671be,_0x4edfd3,_0x2a6a75){return _0x1671be(_0x4edfd3,_0x2a6a75);},'XKQoY':_0x426f6c(0x1d6),'iIDHF':_0x426f6c(0x159)};try{return _0x155af8[_0x426f6c(0x132)](execSync,_0x426f6c(0x1cd),{'encoding':_0x155af8['XKQoY'],'stdio':[_0x426f6c(0x159),'pipe',_0x155af8['iIDHF']]})['trim']();}catch{return undefined;}}function _0x3d26(){const _0x26a754=['textContent','completed','Scenario\x20','latestReview','\x0a✅\x20Resumed\x20feature\x20review:\x20','closed','206RccQTY','No\x20scenarios\x20found.','.md','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','includeDeleted','Current\x20session\x20not\x20found.','canceledReason','repeat','\x0a✅\x20Session\x20is\x20already\x20completed.','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','NslBY','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','YUaGg','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','bOmOV','canonicalFlow','error','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','FTKdQ','2152385HhWALO','\x20\x20\x20Repository:\x20','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','BsvqT','dCsfY','domRef','iteration','git\x20rev-parse\x20--abbrev-ref\x20HEAD','Please\x20finish\x20your\x20review\x20first:','\x20\x20\x20Completed:\x20','\x20\x20\x20\x20','XpVny','\x20\x20\x20\x20\x20\x20Blocked:\x20','blockedReason','sLZrI','name','utf-8','\x20(v','assetUrl','replace','join','xngPS','osldB','CvTEY','items','5|2|4|1|3|0','Fqofg','\x20--current-branch','type','find','stdout','\x20at\x20[','YrLbl','submittedAt','length','log','UCYcq','mtnXh','warn','lkVYj','\x20scenarios.','JTFCa','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x20\x20\x20Progress:\x20','\x20\x20\x20Created:\x20','PaEZn','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','xshPo','HiGsq','currentBranch','bprAX','gitRepoUrl','BtiCM','1211679PtYqNR','kVytg','\x20--include-deleted',':\x20\x22','limit','GpYAC','gitBranch','vWZhW','push','jQIEy','\x20\x20\x20','\x20scenario(s).','pXhUB','Gqlyv','description','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','env','\x1b[0m','DuDHN','currentSessionId','short','qNJdV','\x20unaddressed\x20comment(s)','trim','BmGzi','LeRKm','approved','IvpUo','feedback-images','PvsJH','git\x20remote\x20get-url\x20origin','QtvJe','\x20concluded.','round','SVSuj','\x20feature\x20review(s)\x20found','6JWsVKB','position','dysgP','isTTY','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','scenarios','\x20\x20\x20▶️\x20Started\x20session\x20','\x20\x20\x20Branch:\x20','totalCount','Larxx','70732xtpaIj','LWQLx','olWZc','\x20of\x20','ready','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','createdAt','sessionId','blockedItems','map','\x20in\x20progress','pipe','\x0a✅\x20Session\x20','xVhst','fcYSU','\x1b[1m','QABtt','5843320gBaQGw','dashboardUrl','split','\x20verified','Not\x20in\x20a\x20git\x20repository.','in_progress','write','selector','active-feature.txt','uNtTB','yHxbh','verified','NqChM','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','spatial','status','\x0a✅\x20Report\x20generated:\x20','\x20blocked','toLocaleDateString','kPdoM','\x0a⚠️\x20\x20','418VihtEa','\x20\x20\x20Description:\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','WNoqQ','reports','oJUkH','\x0a\x20\x20\x20Scenarios:','ARyAH','\x20\x20\x20ID:\x20','ygPoJ','filter','qJtYp','eFrGY','trimEnd','unaddressedComments','mhOGY','en-US','havOL','version','DRXjA','numeric','stats','toLocaleString','mdGBu','element','wkseC','github.com/','707632CLUZCR','\x20\x20\x20\x20\x20\x20Cancelled:\x20','18raumPZ','offset','BPgpd','exit','AcLNC','\x20\x20\x20\x20\x20Branch:\x20','\x20\x20\x20Status:\x20','NFeHB','1864566FpspzM','\x20\x20\x20\x20\x20\x20Approved','incompleteItems','isInteger','CLAUDE_SESSION_ID','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','incomplete','desjK','sort','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','checklistItems','obArp','VnJrx','authorEmail','LoEKa','slice','arrayBuffer','egmBW','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'];_0x3d26=function(){return _0x26a754;};return _0x3d26();}export async function getActiveFeatureId(){const _0x7b6c37=_0x239627,_0x14b64d={'AcLNC':function(_0x2e981b){return _0x2e981b();}},_0x3fa6b0=join(_0x14b64d[_0x7b6c37(0x195)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x3fa6b0))return null;try{const _0x1fba33=await readFile(_0x3fa6b0,_0x7b6c37(0x1d6));return _0x1fba33['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x3dbfd2){const _0x154c75=_0x239627,_0x62ba3={'YBFja':function(_0x50cb88){return _0x50cb88();},'BPgpd':function(_0x3da18c,_0x52d0ae,_0x583a5a){return _0x3da18c(_0x52d0ae,_0x583a5a);},'xngPS':function(_0x2728b1,_0xea35e0){return _0x2728b1(_0xea35e0);},'QABtt':function(_0x56ccd5,_0x116c48,_0x213a2a,_0x1f2c9f){return _0x56ccd5(_0x116c48,_0x213a2a,_0x1f2c9f);},'nboPh':'utf-8'},_0x376a03=_0x62ba3['YBFja'](getRangerDir),_0x2df13e=_0x62ba3['BPgpd'](join,_0x376a03,ACTIVE_FEATURE_FILE);!_0x62ba3[_0x154c75(0x1db)](existsSync,_0x376a03)&&await _0x62ba3[_0x154c75(0x193)](mkdir,_0x376a03,{'recursive':!![]}),await _0x62ba3[_0x154c75(0x15e)](writeFile,_0x2df13e,_0x3dbfd2,_0x62ba3['nboPh']);}function getProgressDisplay(_0x3c8a2f){const _0x1e2f43=_0x239627,_0xe21867={'YUaGg':function(_0x5a019c,_0x39e101){return _0x5a019c+_0x39e101;},'BtiCM':function(_0x488a52,_0x50274e){return _0x488a52===_0x50274e;},'RMlOY':function(_0x268063,_0x12c4c1){return _0x268063-_0x12c4c1;},'egmBW':function(_0x46bd3f,_0xc5bbe){return _0x46bd3f>_0xc5bbe;},'Fqofg':function(_0x1050ad,_0x2ba572){return _0x1050ad>_0x2ba572;}},_0x46b3d2=_0x3c8a2f['verifiedItems']||0x0,_0x45ed18=_0x3c8a2f['verificationInProgressItems']||0x0,_0x68cc98=_0x3c8a2f[_0x1e2f43(0x156)]||0x0,_0x9090b7=_0x3c8a2f[_0x1e2f43(0x19b)]||0x0,_0x36e2f3=_0x3c8a2f['pendingItems']||0x0,_0x39a780=_0xe21867[_0x1e2f43(0x1bf)](_0x46b3d2,_0x45ed18)+_0x68cc98+_0x9090b7+_0x36e2f3;if(_0xe21867[_0x1e2f43(0x1fb)](_0x39a780,0x0))return'-';const _0x25fb9b=0xa,_0x2ac612=Math[_0x1e2f43(0x141)](_0x46b3d2/_0x39a780*_0x25fb9b),_0x426734='█'[_0x1e2f43(0x1ba)](_0x2ac612)+'░'[_0x1e2f43(0x1ba)](_0xe21867['RMlOY'](_0x25fb9b,_0x2ac612)),_0x4a6fdd=[];if(_0xe21867[_0x1e2f43(0x1aa)](_0x68cc98,0x0))_0x4a6fdd['push'](_0x68cc98+_0x1e2f43(0x170));if(_0xe21867[_0x1e2f43(0x1e0)](_0x9090b7,0x0))_0x4a6fdd[_0x1e2f43(0x128)](_0x9090b7+'\x20incomplete');if(_0xe21867[_0x1e2f43(0x1aa)](_0x45ed18,0x0))_0x4a6fdd[_0x1e2f43(0x128)](_0x45ed18+_0x1e2f43(0x158));const _0x31a483=_0x4a6fdd['length']>0x0?'\x20('+_0x4a6fdd[_0x1e2f43(0x1da)](',\x20')+')':'';return _0x426734+'\x20'+_0x46b3d2+'/'+_0x39a780+_0x1e2f43(0x162)+_0x31a483;}function getCurrentSessionItems(_0x1268c3,_0xf07eea){const _0x3058b0=_0x239627;if(!_0x1268c3[_0x3058b0(0x133)])return _0xf07eea['filter'](_0x133f7f=>!_0x133f7f[_0x3058b0(0x155)])['sort']((_0x3adcb5,_0x4546db)=>_0x3adcb5[_0x3058b0(0x145)]-_0x4546db[_0x3058b0(0x145)]);return _0xf07eea['filter'](_0xdbcc5d=>_0xdbcc5d['sessionId']===_0x1268c3['currentSessionId']||!_0xdbcc5d['sessionId'])[_0x3058b0(0x1a1)]((_0xea4563,_0x4b8ac7)=>_0xea4563[_0x3058b0(0x145)]-_0x4b8ac7['position']);}function displayFeature(_0x2bbe0f,_0x335d1d){const _0x3287df=_0x239627,_0x571761={'jcjAc':function(_0xb385d2,_0x213aad){return _0xb385d2(_0x213aad);},'PvsJH':function(_0x12e9c6,_0x4a6206){return _0x12e9c6<_0x4a6206;},'eFrGY':function(_0x202347,_0x16515d){return _0x202347===_0x16515d;},'wkseC':_0x3287df(0x1b1),'UCYcq':_0x3287df(0x13a),'fGTHD':_0x3287df(0x19f),'exzxz':function(_0x699484,_0x26237b){return _0x699484>_0x26237b;},'LWQLx':'\x20[has\x20reviewer\x20feedback]','lkVYj':function(_0x4f5cc1,_0x1b7970){return _0x4f5cc1+_0x1b7970;},'MfukX':'blocked','VzkkC':function(_0x3f0ffe,_0xeb64d){return _0x3f0ffe===_0xeb64d;}};console[_0x3287df(0x1e9)]('\x0a'+_0x2bbe0f[_0x3287df(0x1d5)]+'\x20('+_0x2bbe0f['dashboardUrl']+')');_0x2bbe0f['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x571761['jcjAc'](getProgressDisplay,_0x2bbe0f['stats']));_0x2bbe0f[_0x3287df(0x12e)]&&console['log'](_0x3287df(0x175)+_0x2bbe0f['description']);_0x2bbe0f[_0x3287df(0x1fa)]&&console[_0x3287df(0x1e9)](_0x3287df(0x1c7)+_0x2bbe0f['gitRepoUrl']);_0x2bbe0f['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x2bbe0f[_0x3287df(0x126)]);console['log'](_0x3287df(0x1f2)+new Date(_0x2bbe0f[_0x3287df(0x154)])[_0x3287df(0x18a)]());_0x2bbe0f['completedAt']&&console[_0x3287df(0x1e9)](_0x3287df(0x1cf)+new Date(_0x2bbe0f['completedAt'])[_0x3287df(0x18a)]());if(_0x335d1d&&_0x335d1d[_0x3287df(0x1e8)]>0x0){console['log'](_0x3287df(0x17a));for(let _0x3a1770=0x0;_0x571761[_0x3287df(0x13d)](_0x3a1770,_0x335d1d['length']);_0x3a1770++){const _0x53bc09=_0x335d1d[_0x3a1770];let _0x15d292;if(_0x571761[_0x3287df(0x180)](_0x53bc09['status'],_0x571761[_0x3287df(0x18d)])&&_0x53bc09['terminalReason']===_0x571761[_0x3287df(0x1ea)])_0x15d292='✅';else{if(_0x53bc09[_0x3287df(0x16e)]===_0x3287df(0x16a))_0x15d292='🟢';else{if(_0x571761['eFrGY'](_0x53bc09[_0x3287df(0x16e)],_0x571761['fGTHD']))_0x15d292='🟠';else{if(_0x53bc09[_0x3287df(0x16e)]==='blocked')_0x15d292='🛑';else{if(_0x53bc09['status']==='closed')_0x15d292='⛔';else _0x571761[_0x3287df(0x180)](_0x53bc09['status'],'verification_in_progress')?_0x15d292='⏳':_0x15d292='⬜';}}}}const _0x5493a3=_0x53bc09[_0x3287df(0x186)]>0x1?'\x20(v'+_0x53bc09[_0x3287df(0x186)]+')':'',_0x42d3c5=_0x571761['exzxz'](_0x53bc09['version'],0x1)&&_0x53bc09['parentItemId']&&_0x53bc09['status']!==_0x571761[_0x3287df(0x18d)]&&_0x53bc09[_0x3287df(0x16e)]!==_0x3287df(0x16a)?_0x571761[_0x3287df(0x14f)]:'';console[_0x3287df(0x1e9)](_0x3287df(0x12a)+_0x571761[_0x3287df(0x1ed)](_0x3a1770,0x1)+'.\x20'+_0x15d292+'\x20'+_0x53bc09['description']+_0x5493a3+_0x42d3c5);_0x53bc09[_0x3287df(0x16e)]===_0x571761['MfukX']&&_0x53bc09['blockedReason']&&console['log'](_0x3287df(0x1d2)+_0x53bc09[_0x3287df(0x1d3)]);_0x571761['VzkkC'](_0x53bc09[_0x3287df(0x16e)],_0x571761['fGTHD'])&&_0x53bc09['incompleteReason']&&console[_0x3287df(0x1e9)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x53bc09['incompleteReason']);if(_0x53bc09[_0x3287df(0x16e)]===_0x571761['wkseC']&&_0x571761[_0x3287df(0x180)](_0x53bc09['terminalReason'],_0x571761['UCYcq']))console['log'](_0x3287df(0x19a));else _0x53bc09['status']==='closed'&&_0x53bc09['canceledReason']&&console[_0x3287df(0x1e9)](_0x3287df(0x190)+_0x53bc09[_0x3287df(0x1b9)]);}}}export async function featureCreate(_0x5318d9,_0x56228b){const _0x2218c3=_0x239627,_0x28ec92={'qJtYp':function(_0x31c872){return _0x31c872();},'SVSuj':function(_0x2bff5c,_0x3de428){return _0x2bff5c(_0x3de428);},'PaEZn':function(_0x31f384){return _0x31f384();}},{envNames:_0x2f4887}=await _0x28ec92[_0x2218c3(0x17f)](getEnvNames);_0x2f4887[_0x2218c3(0x1e8)]===0x0&&console[_0x2218c3(0x1ec)]('\x0a'+_0x28ec92['SVSuj'](formatProfileRequiredMessage,_0x59a59d=>bold(_0x59a59d)));const _0x4997a5=_0x56228b[_0x2218c3(0x149)]?_0x56228b['scenarios']['map'](_0x29fd7c=>_0x29fd7c['trim']()):[],_0x3e5244=_0x28ec92['qJtYp'](getGitRepoUrl),_0x364403=_0x28ec92[_0x2218c3(0x1f3)](getGitBranch);console[_0x2218c3(0x1e9)]('\x0aCreating\x20feature\x20review...');const _0x4dfc11=await _0x28ec92[_0x2218c3(0x142)](createFeature,{'name':_0x5318d9,'description':_0x56228b['description'],'checklist':_0x4997a5,'gitRepoUrl':_0x3e5244,'gitBranch':_0x364403});await setActiveFeatureId(_0x4dfc11['id']),await tryStartCurrentSession(_0x4dfc11['id']);const _0x2c0945=process[_0x2218c3(0x130)][_0x2218c3(0x19d)];_0x2c0945&®isterSession(_0x2c0945,_0x4dfc11['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x4dfc11['id']),displayFeature(_0x4dfc11,_0x4dfc11[_0x2218c3(0x1a3)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x3764dd){const _0x4329ec=_0x239627,_0x280801={'LoEKa':function(_0x411e07,_0x3cfaa1){return _0x411e07===_0x3cfaa1;},'PFvUb':function(_0x5b4643,_0x109eab){return _0x5b4643>_0x109eab;},'IuxNw':_0x4329ec(0x1df),'FQEeE':function(_0x3ad39d,_0x19b2e4){return _0x3ad39d+_0x19b2e4;}},_0x4abb8d={'limit':_0x3764dd[_0x4329ec(0x124)]??0xa,'offset':_0x3764dd['offset']??0x0,'includeDeleted':_0x3764dd['includeDeleted']};_0x3764dd[_0x4329ec(0x1f8)]&&(_0x4abb8d['gitRepoUrl']=getGitRepoUrl(),_0x4abb8d['gitBranch']=getGitBranch());const _0x27b88f=await listFeatures(_0x4abb8d);if(_0x280801[_0x4329ec(0x1a7)](_0x27b88f[_0x4329ec(0x1de)]['length'],0x0)){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x5b6ad1=_0x280801['PFvUb'](_0x27b88f[_0x4329ec(0x14c)],_0x27b88f['items'][_0x4329ec(0x1e8)])?'Showing\x20'+_0x27b88f[_0x4329ec(0x1de)][_0x4329ec(0x1e8)]+_0x4329ec(0x151)+_0x27b88f[_0x4329ec(0x14c)]:_0x27b88f['totalCount']+_0x4329ec(0x143);console['log']('\x0a'+_0x5b6ad1+':\x0a');for(const _0x1f775f of _0x27b88f[_0x4329ec(0x1de)]){const _0x4cfb39=_0x280801['IuxNw'][_0x4329ec(0x161)]('|');let _0x5d942f=0x0;while(!![]){switch(_0x4cfb39[_0x5d942f++]){case'0':console['log']('');continue;case'1':_0x1f775f['gitBranch']&&console['log'](_0x4329ec(0x14b)+_0x1f775f[_0x4329ec(0x126)]);continue;case'2':console['log'](_0x4329ec(0x17c)+_0x1f775f['id']);continue;case'3':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x1f775f[_0x4329ec(0x154)])[_0x4329ec(0x171)]());continue;case'4':_0x1f775f[_0x4329ec(0x189)]&&console['log'](_0x4329ec(0x1f1)+getProgressDisplay(_0x1f775f['stats']));continue;case'5':console['log'](''+_0x1f775f['name']);continue;}break;}}const _0xfa362e=_0x4abb8d['limit']??0xa,_0x4f43df=_0x280801['FQEeE'](_0x4abb8d[_0x4329ec(0x192)]??0x0,_0x27b88f[_0x4329ec(0x1de)][_0x4329ec(0x1e8)]);if(_0x4f43df<_0x27b88f[_0x4329ec(0x14c)]){const _0x4badcd=_0xfa362e!==0xa?'\x20--limit\x20'+_0xfa362e:'',_0x24b5cf=_0x3764dd['currentBranch']?_0x4329ec(0x1e1):'',_0x58e2f2=_0x3764dd[_0x4329ec(0x1b7)]?_0x4329ec(0x122):'';console['log'](_0x4329ec(0x1b5)+_0x4f43df+_0x4badcd+_0x24b5cf+_0x58e2f2);}}export async function featureShow(_0x7f3e68){const _0x3ee833=_0x239627,_0x2769ee={'sLZrI':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x3fce16=_0x7f3e68||await getActiveFeatureId();if(!_0x3fce16)throw new Error(_0x2769ee[_0x3ee833(0x1d4)]);const _0x1c3aee=await getFeature(_0x3fce16);displayFeature(_0x1c3aee,_0x1c3aee['checklistItems']);}export async function featureResume(_0x51fe25){const _0x4f9588=_0x239627,_0xc53696={'QtvJe':function(_0x21fc14,_0xf58b4b){return _0x21fc14(_0xf58b4b);},'WNoqQ':function(_0xbe4de1){return _0xbe4de1();},'kVytg':function(_0x3ea08c,_0x5127be){return _0x3ea08c!==_0x5127be;},'QAldo':function(_0x18aa8d,_0x485235,_0x439296){return _0x18aa8d(_0x485235,_0x439296);},'zDERo':function(_0x24d57e,_0x191ece){return _0x24d57e(_0x191ece);},'ARyAH':function(_0x38c0f5,_0x240128,_0x2d9db7){return _0x38c0f5(_0x240128,_0x2d9db7);},'xshPo':'any','qNJdV':function(_0x5403ea,_0x47808d){return _0x5403ea===_0x47808d;},'uNtTB':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','GpYAC':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','ygPoJ':'list','VnJrx':'selected','Giggt':function(_0x68cc72,_0x3ac15a){return _0x68cc72(_0x3ac15a);},'lwdpw':function(_0x61e930,_0x3d93ac){return _0x61e930!==_0x3d93ac;},'osldB':function(_0x50cb0b,_0x4b6c8a,_0x2a6481){return _0x50cb0b(_0x4b6c8a,_0x2a6481);}};if(_0x51fe25){const _0x531063=await _0xc53696[_0x4f9588(0x13f)](getFeature,_0x51fe25);await setActiveFeatureId(_0x531063['id']);const _0x5b126d=_0xc53696[_0x4f9588(0x177)](getGitBranch);_0x5b126d&&_0xc53696[_0x4f9588(0x121)](_0x5b126d,_0x531063['gitBranch'])&&(await _0xc53696['QAldo'](updateFeature,_0x531063['id'],{'gitBranch':_0x5b126d}),console['log'](_0x4f9588(0x1b6)+_0x5b126d));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x531063['name']+'\x20('+_0x531063['id']+')'),await _0xc53696['zDERo'](tryStartCurrentSession,_0x531063['id']);const _0x2bf64c=process[_0x4f9588(0x130)][_0x4f9588(0x19d)];_0x2bf64c&®isterSession(_0x2bf64c,_0x531063['id']);_0xc53696[_0x4f9588(0x17b)](displayFeature,_0x531063,_0x531063['checklistItems']),await printFeedbackNudge(_0x531063['id']);return;}const _0x4c12b5=getGitRepoUrl(),_0x21e9e4=_0xc53696[_0x4f9588(0x177)](getGitBranch);if(!_0x4c12b5&&!_0x21e9e4)throw new Error(_0x4f9588(0x163));console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x4c12b5||_0xc53696[_0x4f9588(0x1f6)])+'\x20/\x20'+(_0x21e9e4||'any')+'...');const _0x4573e7=await listFeatures({'gitRepoUrl':_0x4c12b5,'gitBranch':_0x21e9e4}),_0x202780=_0x4573e7['items']['filter'](_0x32aff0=>!_0x32aff0['completedAt']);if(_0xc53696[_0x4f9588(0x135)](_0x202780[_0x4f9588(0x1e8)],0x0)){console['log'](_0xc53696[_0x4f9588(0x168)]),console[_0x4f9588(0x1e9)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x38d74b;if(_0x202780[_0x4f9588(0x1e8)]===0x1)_0x38d74b=_0x202780[0x0];else{const _0x406bbf=process['stdin'][_0x4f9588(0x147)]&&process[_0x4f9588(0x1e4)][_0x4f9588(0x147)];if(!_0x406bbf){console['log'](_0xc53696[_0x4f9588(0x125)]);for(const _0x1eb510 of _0x202780){console['log']('\x20\x20'+_0x1eb510['name']),console[_0x4f9588(0x1e9)]('\x20\x20\x20\x20\x20ID:\x20'+_0x1eb510['id']),_0x1eb510['stats']&&console[_0x4f9588(0x1e9)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1eb510['stats'])),_0x1eb510['gitBranch']&&console[_0x4f9588(0x1e9)](_0x4f9588(0x196)+_0x1eb510[_0x4f9588(0x126)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0xbce5b4}=await _0x3edf0f['prompt']([{'type':_0xc53696[_0x4f9588(0x17d)],'name':_0xc53696[_0x4f9588(0x1a5)],'message':_0x4f9588(0x1f0),'choices':_0x202780[_0x4f9588(0x157)](_0x22d70f=>({'name':_0x22d70f[_0x4f9588(0x1d5)]+'\x20('+_0x22d70f['id']+')','value':_0x22d70f['id']}))}]);_0x38d74b=_0x202780[_0x4f9588(0x1e3)](_0x3db035=>_0x3db035['id']===_0xbce5b4);}await _0xc53696['Giggt'](setActiveFeatureId,_0x38d74b['id']);_0x21e9e4&&_0xc53696['lwdpw'](_0x21e9e4,_0x38d74b['gitBranch'])&&(await _0xc53696['ARyAH'](updateFeature,_0x38d74b['id'],{'gitBranch':_0x21e9e4}),console['log'](_0x4f9588(0x1b6)+_0x21e9e4));console['log'](_0x4f9588(0x1b0)+_0x38d74b['name']+'\x20('+_0x38d74b['id']+')'),await _0xc53696['zDERo'](tryStartCurrentSession,_0x38d74b['id']);const _0x358200=await getFeature(_0x38d74b['id']),_0x1732a7=process[_0x4f9588(0x130)]['CLAUDE_SESSION_ID'];_0x1732a7&&_0xc53696[_0x4f9588(0x1dc)](registerSession,_0x1732a7,_0x358200['id']),displayFeature(_0x358200,_0x358200[_0x4f9588(0x1a3)]),await printFeedbackNudge(_0x358200['id']);}async function printFeedbackNudge(_0x4bd374){const _0x2c1d86=_0x239627,_0x258f30={'dysgP':function(_0x2069db,_0xbac467){return _0x2069db(_0xbac467);},'EgZpN':function(_0x29fd1e,_0x337d26){return _0x29fd1e>_0x337d26;},'yLeBf':_0x2c1d86(0x1ab)};try{const {items:_0x2f2d9f}=await _0x258f30[_0x2c1d86(0x146)](getActionItems,_0x4bd374);let _0x441806=0x0,_0x48e864=0x0;for(const _0x30d031 of _0x2f2d9f){const _0x35fec2=await getItemFeedback(_0x4bd374,_0x30d031['id']);_0x258f30['EgZpN'](_0x35fec2[_0x2c1d86(0x182)]['length'],0x0)&&(_0x441806+=_0x35fec2['unaddressedComments'][_0x2c1d86(0x1e8)],_0x48e864++);}_0x441806>0x0&&(console[_0x2c1d86(0x1e9)](_0x2c1d86(0x173)+_0x441806+_0x2c1d86(0x1f4)+_0x48e864+_0x2c1d86(0x12b)),console[_0x2c1d86(0x1e9)](_0x258f30['yLeBf']));}catch{}}async function tryStartCurrentSession(_0x3929fe){const _0x46e614=_0x239627,_0x20843e={'BmGzi':function(_0x5b9249,_0x617900,_0x96fdab){return _0x5b9249(_0x617900,_0x96fdab);}};try{const {sessions:_0x49eb73}=await listFeatureSessions(_0x3929fe),_0x1007a3=_0x49eb73[_0x46e614(0x1e3)](_0x4674b4=>_0x4674b4['status']===_0x46e614(0x152));_0x1007a3&&(await _0x20843e[_0x46e614(0x138)](startSession,_0x3929fe,_0x1007a3['id']),console[_0x46e614(0x1e9)](_0x46e614(0x14a)+_0x1007a3[_0x46e614(0x1cc)]));}catch{}}export async function featureReport(_0x26f8d5,_0x105495){const _0x5dcd1e=_0x239627,_0x4df402={'CvTEY':_0x5dcd1e(0x16c),'IvpUo':'\x0aGenerating\x20report...','uTkXz':function(_0x4f1d3f,_0xb945e6,_0x3ab8fb,_0x4fd4d9){return _0x4f1d3f(_0xb945e6,_0x3ab8fb,_0x4fd4d9);},'bprAX':function(_0x4e16a0){return _0x4e16a0();},'bOmOV':_0x5dcd1e(0x178),'YrLbl':function(_0x562c80,_0x46e3b0,_0x1f6278){return _0x562c80(_0x46e3b0,_0x1f6278);},'sqybr':function(_0x1ec7ba,_0x5038cb){return _0x1ec7ba(_0x5038cb);}},_0x177ebb=_0x26f8d5||await getActiveFeatureId();if(!_0x177ebb)throw new Error(_0x4df402[_0x5dcd1e(0x1dd)]);console['log'](_0x4df402[_0x5dcd1e(0x13b)]);const _0xa0cb9c=await getFeatureReportMarkdown(_0x177ebb,{'style':_0x105495['style']}),_0x3c2026=_0x105495['output']||_0x4df402['uTkXz'](join,_0x4df402[_0x5dcd1e(0x1f9)](getRangerDir),_0x4df402[_0x5dcd1e(0x1c1)],_0x177ebb+_0x5dcd1e(0x1b4)),_0x15864c=_0x4df402[_0x5dcd1e(0x1e6)](join,_0x3c2026,'..');!_0x4df402['sqybr'](existsSync,_0x15864c)&&await mkdir(_0x15864c,{'recursive':!![]}),await writeFile(_0x3c2026,_0xa0cb9c,_0x5dcd1e(0x1d6)),console['log'](_0x5dcd1e(0x16f)+_0x3c2026);}export async function featureReportPrDescription(_0xab2264,_0x39d210){const _0x49a7b6=_0x239627,_0x4da57e={'fIwIG':function(_0x29b38d){return _0x29b38d();},'HiGsq':_0x49a7b6(0x16c),'xVhst':function(_0x2bf2cf,_0x297850){return _0x2bf2cf(_0x297850);},'kPdoM':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','fKyUf':'\x0aAvailable\x20scenarios:','havOL':function(_0x2a078e,_0x37ab7e){return _0x2a078e<_0x37ab7e;},'NfvNa':function(_0x525088,_0x16cb19){return _0x525088===_0x16cb19;},'YSFFQ':function(_0x1bdd7e,_0x3a8397,_0x5bf3bf){return _0x1bdd7e(_0x3a8397,_0x5bf3bf);}},_0x2e4bd0=_0xab2264||await _0x4da57e['fIwIG'](getActiveFeatureId);if(!_0x2e4bd0)throw new Error(_0x4da57e[_0x49a7b6(0x1f7)]);const _0x170ca3=await _0x4da57e[_0x49a7b6(0x15b)](getFeature,_0x2e4bd0),_0x5b9f1b=_0x170ca3[_0x49a7b6(0x1a3)]||[],_0x3fe2e4=getCurrentSessionItems(_0x170ca3,_0x5b9f1b);_0x3fe2e4[_0x49a7b6(0x1e8)]===0x0&&(console[_0x49a7b6(0x1c3)](_0x4da57e[_0x49a7b6(0x172)]),process[_0x49a7b6(0x194)](0x1));const _0x2d4d11=_0x39d210['excludeScenarios']??[],_0x57f6d6=_0x2d4d11[_0x49a7b6(0x17e)](_0x297df7=>!Number[_0x49a7b6(0x19c)](_0x297df7)||_0x297df7<0x1||_0x297df7>_0x3fe2e4[_0x49a7b6(0x1e8)]);if(_0x57f6d6[_0x49a7b6(0x1e8)]>0x0){console[_0x49a7b6(0x1c3)](_0x49a7b6(0x12f)+_0x57f6d6['join'](',\x20')),console[_0x49a7b6(0x1e9)](_0x4da57e['fKyUf']);for(let _0x35b7df=0x0;_0x4da57e[_0x49a7b6(0x185)](_0x35b7df,_0x3fe2e4['length']);_0x35b7df++){console[_0x49a7b6(0x1e9)]('\x20\x20'+(_0x35b7df+0x1)+'.\x20'+_0x3fe2e4[_0x35b7df][_0x49a7b6(0x12e)]);}process['exit'](0x1);}const _0x515380=new Set(_0x2d4d11[_0x49a7b6(0x157)](_0x54409b=>_0x54409b-0x1)),_0x1614b8=_0x3fe2e4['filter']((_0x3f9e08,_0x2f5369)=>!_0x515380['has'](_0x2f5369));_0x4da57e['NfvNa'](_0x1614b8[_0x49a7b6(0x1e8)],0x0)&&(console[_0x49a7b6(0x1c3)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x49a7b6(0x194)](0x1));const _0x55f50e=await _0x4da57e['YSFFQ'](getFeatureReportMarkdown,_0x2e4bd0,{'itemIds':_0x1614b8[_0x49a7b6(0x157)](_0x50e52c=>_0x50e52c['id'])});process[_0x49a7b6(0x1e4)][_0x49a7b6(0x165)](_0x55f50e[_0x49a7b6(0x181)]()+'\x0a');}export async function featureConcludeSession(_0x554e00){const _0x1d5dd5=_0x239627,_0x2bfee1={'NFeHB':function(_0x2be70a){return _0x2be70a();},'mtnXh':_0x1d5dd5(0x148),'dEwSZ':_0x1d5dd5(0x1ad),'whjyC':_0x1d5dd5(0x164)},_0x521f9c=_0x554e00||await _0x2bfee1[_0x1d5dd5(0x198)](getActiveFeatureId);if(!_0x521f9c)throw new Error(_0x2bfee1[_0x1d5dd5(0x1eb)]);const _0x5e7587=await getFeature(_0x521f9c);if(!_0x5e7587[_0x1d5dd5(0x133)])throw new Error(_0x1d5dd5(0x176));const {sessions:_0x2ffe47}=await listFeatureSessions(_0x521f9c),_0xb5bd33=_0x2ffe47[_0x1d5dd5(0x1e3)](_0x53b019=>_0x53b019['id']===_0x5e7587['currentSessionId']);if(!_0xb5bd33)throw new Error(_0x1d5dd5(0x1b8));if(_0xb5bd33[_0x1d5dd5(0x16e)]===_0x2bfee1['dEwSZ']){console['log'](_0x1d5dd5(0x1bb));return;}if(_0xb5bd33[_0x1d5dd5(0x16e)]!==_0x2bfee1['whjyC'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0xb5bd33['status']);console[_0x1d5dd5(0x1e9)]('\x0aConcluding\x20session...'),await concludeSession(_0x521f9c,_0x5e7587[_0x1d5dd5(0x133)]),console[_0x1d5dd5(0x1e9)](_0x1d5dd5(0x15a)+_0xb5bd33['iteration']+_0x1d5dd5(0x140)),console['log'](_0x1d5dd5(0x1c8));}export async function featureSessions(_0x4aabfe){const _0x5d890b=_0x239627,_0x32216c={'QEeeW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','JTFCa':function(_0x8a0ff1,_0x14ed1f){return _0x8a0ff1(_0x14ed1f);},'fcYSU':function(_0xcefe1c,_0x2e0dea){return _0xcefe1c===_0x2e0dea;},'NqChM':function(_0x7a288f,_0x49ed79){return _0x7a288f===_0x49ed79;},'UbDjm':function(_0x384de9,_0x54b0d8){return _0x384de9===_0x54b0d8;}},_0x30f24f=_0x4aabfe||await getActiveFeatureId();if(!_0x30f24f)throw new Error(_0x32216c['QEeeW']);const _0x1a256c=await _0x32216c[_0x5d890b(0x1ef)](getFeature,_0x30f24f);console[_0x5d890b(0x1e9)](_0x5d890b(0x1c0)+_0x1a256c[_0x5d890b(0x1d5)]+'\x0a');const {sessions:_0x30ffb6}=await listFeatureSessions(_0x30f24f);if(_0x32216c[_0x5d890b(0x15c)](_0x30ffb6['length'],0x0)){console[_0x5d890b(0x1e9)]('No\x20sessions\x20found.');return;}for(const _0xd234d6 of _0x30ffb6){const _0x3a99d5=_0x32216c[_0x5d890b(0x16b)](_0xd234d6[_0x5d890b(0x16e)],'completed')?'✅':_0x32216c['UbDjm'](_0xd234d6['status'],_0x5d890b(0x164))?'🔄':'▶️';console[_0x5d890b(0x1e9)](_0x3a99d5+'\x20Session\x20'+_0xd234d6[_0x5d890b(0x1cc)]+'\x20('+_0xd234d6['id']+')'),console[_0x5d890b(0x1e9)](_0x5d890b(0x197)+_0xd234d6['status']),console['log'](_0x5d890b(0x1f2)+new Date(_0xd234d6[_0x5d890b(0x154)])[_0x5d890b(0x18a)]()),_0xd234d6['completedAt']&&console[_0x5d890b(0x1e9)](_0x5d890b(0x1cf)+new Date(_0xd234d6['completedAt'])['toLocaleString']()),console[_0x5d890b(0x1e9)]('');}}export async function featureAddScenario(_0x5635c0,_0x30fca1){const _0x5c0ac8=_0x239627,_0x2c216a={'NslBY':function(_0xc5fcf6){return _0xc5fcf6();},'gQfbs':function(_0x1c4ffc,_0x37944e,_0x4a56b8){return _0x1c4ffc(_0x37944e,_0x4a56b8);}},_0x1d9833=_0x30fca1||await _0x2c216a[_0x5c0ac8(0x1bd)](getActiveFeatureId);if(!_0x1d9833)throw new Error(_0x5c0ac8(0x148));const _0x2f3d95=await getFeature(_0x1d9833);if(_0x2f3d95[_0x5c0ac8(0x1af)]&&!_0x2f3d95[_0x5c0ac8(0x1af)][_0x5c0ac8(0x1e7)])throw new Error(_0x5c0ac8(0x1a2)+_0x2f3d95[_0x5c0ac8(0x160)]);await _0x2c216a['gQfbs'](createChecklistItem,_0x1d9833,_0x5635c0);const _0x29f14e=await getFeature(_0x1d9833);console[_0x5c0ac8(0x1e9)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x29f14e,_0x29f14e[_0x5c0ac8(0x1a3)]);}export async function featureEditScenario(_0x3972c8,_0x9d8ec3){const _0x5e2529=_0x239627,_0xd8ed={'EhmEO':function(_0x4f7475){return _0x4f7475();},'obArp':_0x5e2529(0x1bc),'mdGBu':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','XwJmJ':function(_0x5df65d,_0xfe919f){return _0x5df65d===_0xfe919f;},'dCsfY':_0x5e2529(0x1be),'gvANe':function(_0x4985bf,_0x3c28b5){return _0x4985bf===_0x3c28b5;},'BsvqT':'\x0aAvailable\x20scenarios:','yHxbh':function(_0x422bd6,_0x56ddeb){return _0x422bd6<_0x56ddeb;},'LeRKm':function(_0x49926b,_0x1843d3){return _0x49926b-_0x1843d3;},'kyyFB':function(_0x2e8a69,_0x4b68ea){return _0x2e8a69>=_0x4b68ea;}},_0x43202b=_0x9d8ec3['id']||await _0xd8ed['EhmEO'](getActiveFeatureId);!_0x43202b&&(console['error'](_0xd8ed[_0x5e2529(0x1a4)]),console['error'](_0xd8ed[_0x5e2529(0x18b)]),process[_0x5e2529(0x194)](0x1));const _0xe32145=await getFeature(_0x43202b);_0xe32145[_0x5e2529(0x1af)]&&!_0xe32145['latestReview']['submittedAt']&&(console[_0x5e2529(0x1c3)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x5e2529(0x1c3)](_0x5e2529(0x1ce)),console['error']('\x20\x20'+_0xe32145['dashboardUrl']),process[_0x5e2529(0x194)](0x1));const _0x48e76b=_0xe32145[_0x5e2529(0x1a3)]||[];_0xd8ed['XwJmJ'](_0x48e76b[_0x5e2529(0x1e8)],0x0)&&(console[_0x5e2529(0x1c3)](_0xd8ed[_0x5e2529(0x1ca)]),process['exit'](0x1));if(_0xd8ed['gvANe'](_0x9d8ec3['scenario'],undefined)){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x5e2529(0x1e9)](_0xd8ed[_0x5e2529(0x1c9)]);for(let _0x46eb58=0x0;_0xd8ed['yHxbh'](_0x46eb58,_0x48e76b[_0x5e2529(0x1e8)]);_0x46eb58++){console['log']('\x20\x20'+(_0x46eb58+0x1)+'.\x20'+_0x48e76b[_0x46eb58]['description']);}process['exit'](0x1);}const _0x5382a5=_0xd8ed[_0x5e2529(0x139)](_0x9d8ec3['scenario'],0x1);if(_0xd8ed['yHxbh'](_0x5382a5,0x0)||_0xd8ed['kyyFB'](_0x5382a5,_0x48e76b['length'])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x9d8ec3['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x48e76b[_0x5e2529(0x1e8)]+_0x5e2529(0x1ee)),console['log'](_0xd8ed[_0x5e2529(0x1c9)]);for(let _0x4fea66=0x0;_0xd8ed[_0x5e2529(0x169)](_0x4fea66,_0x48e76b[_0x5e2529(0x1e8)]);_0x4fea66++){console['log']('\x20\x20'+(_0x4fea66+0x1)+'.\x20'+_0x48e76b[_0x4fea66]['description']);}process[_0x5e2529(0x194)](0x1);}const _0x59569f=_0x48e76b[_0x5382a5];await updateChecklistItem(_0x43202b,_0x59569f['id'],{'description':_0x3972c8});const _0x4e56ff=await getFeature(_0x43202b);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x4e56ff,_0x4e56ff[_0x5e2529(0x1a3)]);}async function downloadFeedbackImage(_0x5e88fa,_0x289c06){const _0x24f90a=_0x239627,_0x1143af={'TqSGq':function(_0x252d74,_0x1c461f,_0x1dd9a8){return _0x252d74(_0x1c461f,_0x1dd9a8);},'CuQss':function(_0x2511c5,_0x5e92d8){return _0x2511c5(_0x5e92d8);}};try{const _0x314e3f=join(getRangerDir(),_0x24f90a(0x13c));await _0x1143af['TqSGq'](mkdir,_0x314e3f,{'recursive':!![]});const _0x375e60=_0x1143af['TqSGq'](join,_0x314e3f,'comment_'+_0x289c06+'.png'),_0x34a32e=await _0x1143af['CuQss'](fetch,_0x5e88fa);if(!_0x34a32e['ok'])return null;const _0x340b0a=Buffer['from'](await _0x34a32e[_0x24f90a(0x1a9)]());return await writeFile(_0x375e60,_0x340b0a),_0x375e60;}catch{return null;}}export async function featureGetReview(_0x9e74a9){const _0x4fe55f=_0x239627,_0x3c66f7={'ASQES':function(_0x8faf7b){return _0x8faf7b();},'mhOGY':_0x4fe55f(0x148),'Gqlyv':function(_0xb5581,_0x4d9578){return _0xb5581(_0x4d9578);},'desjK':function(_0x368034,_0xa00706){return _0x368034<_0xa00706;},'pXhUB':function(_0xdfefa0,_0x5e5ebd){return _0xdfefa0>_0x5e5ebd;},'tqPUh':function(_0x4831e3,_0x51460d){return _0x4831e3+_0x51460d;},'DNasQ':_0x4fe55f(0x134),'QaYjh':'\x20>\x20','XpVny':function(_0x1befa8,_0x2a533e){return _0x1befa8===_0x2a533e;},'iUdaq':'point','Larxx':function(_0x2d6125,_0x2ec7e2){return _0x2d6125>=_0x2ec7e2;},'SLRoh':function(_0x1ca6c3,_0x15d93b){return _0x1ca6c3+_0x15d93b;}},_0x16d6ad=_0x9e74a9||await _0x3c66f7['ASQES'](getActiveFeatureId);if(!_0x16d6ad)throw new Error(_0x3c66f7[_0x4fe55f(0x183)]);const _0x22df5f=await _0x3c66f7[_0x4fe55f(0x12d)](getFeature,_0x16d6ad),{items:_0x1b5bf6}=await getActionItems(_0x16d6ad);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x22df5f['name']+'\x20('+_0x22df5f['id']+')\x0a');if(_0x1b5bf6[_0x4fe55f(0x1e8)]===0x0){console['log'](_0x4fe55f(0x1b3));return;}for(let _0x4b068e=0x0;_0x3c66f7[_0x4fe55f(0x1a0)](_0x4b068e,_0x1b5bf6['length']);_0x4b068e++){const _0x35d309=_0x1b5bf6[_0x4b068e],_0x1aa640=_0x3c66f7[_0x4fe55f(0x12c)](_0x35d309[_0x4fe55f(0x186)],0x1)?_0x4fe55f(0x1d7)+_0x35d309['version']+')':'',_0x45c095=await getItemFeedback(_0x16d6ad,_0x35d309['id']);if(_0x3c66f7[_0x4fe55f(0x12c)](_0x45c095[_0x4fe55f(0x182)]['length'],0x0)){console['log'](_0x4fe55f(0x1ae)+_0x3c66f7['tqPUh'](_0x4b068e,0x1)+_0x4fe55f(0x123)+_0x35d309['description']+'\x22'+_0x1aa640+'\x20—\x20'+_0x45c095[_0x4fe55f(0x182)][_0x4fe55f(0x1e8)]+_0x4fe55f(0x136));for(const _0x142119 of _0x45c095['unaddressedComments']){const _0x33d2f4=new Date(_0x142119[_0x4fe55f(0x154)])[_0x4fe55f(0x171)](_0x4fe55f(0x184),{'month':_0x3c66f7['DNasQ'],'day':_0x4fe55f(0x188)}),_0x525a43=_0x142119['authorName']||_0x142119[_0x4fe55f(0x1a6)]||'Unknown';console['log']('\x20\x20💬\x20'+_0x525a43+'\x20('+_0x33d2f4+'):\x20\x22'+_0x142119['content']+'\x22');if(_0x142119[_0x4fe55f(0x1d8)]){const _0xd3f608=await downloadFeedbackImage(_0x142119[_0x4fe55f(0x1d8)],_0x142119['id']);_0xd3f608&&console['log'](_0x4fe55f(0x1c4)+_0xd3f608);}if(_0x142119[_0x4fe55f(0x1cb)]){const _0x46664a=_0x142119['domRef'][_0x4fe55f(0x166)]['split'](_0x3c66f7['QaYjh'])['pop']()?.[_0x4fe55f(0x161)](':')[0x0]||_0x4fe55f(0x18c),_0x3028fc=_0x142119[_0x4fe55f(0x1cb)][_0x4fe55f(0x1ac)]?'\x20\x22'+_0x142119['domRef']['textContent'][_0x4fe55f(0x1a8)](0x0,0x3c)+'\x22':'';console[_0x4fe55f(0x1e9)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x46664a+'>'+_0x3028fc),console[_0x4fe55f(0x1e9)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x142119[_0x4fe55f(0x1cb)]['selector']);}else{if(_0x142119['spatial']){const _0x48af5f=_0x142119[_0x4fe55f(0x16d)]['coordinates'];_0x3c66f7[_0x4fe55f(0x1d1)](_0x142119['spatial'][_0x4fe55f(0x1e2)],_0x3c66f7['iUdaq'])&&_0x3c66f7[_0x4fe55f(0x14d)](_0x48af5f[_0x4fe55f(0x1e8)],0x2)?console[_0x4fe55f(0x1e9)](_0x4fe55f(0x19e)+_0x48af5f[0x0]['toFixed'](0x2)+',\x20'+_0x48af5f[0x1]['toFixed'](0x2)+')'):console[_0x4fe55f(0x1e9)](_0x4fe55f(0x153)+_0x142119[_0x4fe55f(0x16d)][_0x4fe55f(0x1e2)]+_0x4fe55f(0x1e5)+_0x48af5f[_0x4fe55f(0x157)](_0x452dd4=>_0x452dd4['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x45c095[_0x4fe55f(0x1c2)]){console[_0x4fe55f(0x1e9)]('\x20\x20Expected\x20flow:');for(const _0x24ffa6 of _0x45c095['canonicalFlow']['split']('\x0a')){console[_0x4fe55f(0x1e9)](_0x4fe55f(0x1d0)+_0x24ffa6);}}}else console[_0x4fe55f(0x1e9)](_0x4fe55f(0x1ae)+_0x3c66f7['SLRoh'](_0x4b068e,0x1)+':\x20\x22'+_0x35d309[_0x4fe55f(0x12e)]+'\x22'+_0x1aa640+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x4fe55f(0x1e9)]('');}}export async function featureDelete(_0x438b08){const _0xe459c=_0x239627,_0x40b38b={'olWZc':function(_0x43901c){return _0x43901c();},'VgAfb':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','FgWOz':function(_0x102edc,_0x1959ba){return _0x102edc(_0x1959ba);},'SyPdM':function(_0x85a5b,_0x578be4){return _0x85a5b+_0x578be4;},'jQIEy':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0xe8e7cd=_0x438b08||await _0x40b38b[_0xe459c(0x150)](getActiveFeatureId);if(!_0xe8e7cd)throw new Error(_0x40b38b['VgAfb']);const _0x4aab85=await _0x40b38b['FgWOz'](getFeature,_0xe8e7cd);await softDeleteFeature(_0xe8e7cd),console[_0xe459c(0x1e9)](_0xe459c(0x1f5)+_0x4aab85['name']+'\x20('+_0xe8e7cd+')'),console[_0xe459c(0x1e9)](_0x40b38b['SyPdM'](_0x40b38b[_0xe459c(0x129)],_0xe8e7cd));}export async function featureRestore(_0xba85bb){const _0x1cf007=_0x239627,_0x3d2694={'DRXjA':function(_0x523742,_0x5c2628){return _0x523742(_0x5c2628);},'FTKdQ':function(_0x450809,_0x4241c1){return _0x450809(_0x4241c1);},'oJUkH':function(_0x45584a,_0x1b43c7,_0xb5c174){return _0x45584a(_0x1b43c7,_0xb5c174);}};await _0x3d2694[_0x1cf007(0x187)](restoreFeature,_0xba85bb);const _0x454548=await _0x3d2694[_0x1cf007(0x1c5)](getFeature,_0xba85bb);console[_0x1cf007(0x1e9)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x454548[_0x1cf007(0x1d5)]+'\x20('+_0xba85bb+')'),_0x3d2694[_0x1cf007(0x179)](displayFeature,_0x454548,_0x454548[_0x1cf007(0x1a3)]);}
|
|
1
|
+
(function(_0x467cac,_0x489e46){const _0x21fb22=_0x51d3,_0x5da530=_0x467cac();while(!![]){try{const _0xb9583d=parseInt(_0x21fb22(0xf5))/0x1*(-parseInt(_0x21fb22(0xfa))/0x2)+-parseInt(_0x21fb22(0x124))/0x3*(parseInt(_0x21fb22(0x138))/0x4)+-parseInt(_0x21fb22(0x12f))/0x5*(-parseInt(_0x21fb22(0x111))/0x6)+-parseInt(_0x21fb22(0x147))/0x7+parseInt(_0x21fb22(0x14e))/0x8+parseInt(_0x21fb22(0xa1))/0x9*(-parseInt(_0x21fb22(0xef))/0xa)+parseInt(_0x21fb22(0x15a))/0xb;if(_0xb9583d===_0x489e46)break;else _0x5da530['push'](_0x5da530['shift']());}catch(_0x4f2485){_0x5da530['push'](_0x5da530['shift']());}}}(_0x3d49,0x36a1e));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x31b5bd from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';function _0x3d49(){const _0x337ab2=['\x20--current-branch','uCTPh','xcQwZ','):\x20\x22','\x20--include-deleted','Please\x20finish\x20your\x20review\x20first:','\x0a📋\x20Feedback\x20for:\x20','LLaTW','style','canonicalFlow','327770CrWcLS','RWTzf','\x20[has\x20reviewer\x20feedback]','blocked','jfHGY','currentSessionId','KSkZa','CLAUDE_SESSION_ID','\x20\x20\x20ID:\x20','412fkIuRg','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','cOYbO','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','status','pBwup','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x0aGenerating\x20report...','limit','Not\x20in\x20a\x20git\x20repository.','stdCd','selector','.md','No\x20scenarios\x20found.','submittedAt','2890993IzaCWm','tsvGq','KJqek','spatial','lskZC','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','tFeyw','2643808NZLDEh','assetUrl','ttUrQ','ivdGA','\x0a✅\x20Resumed\x20feature\x20review:\x20','KCvOU','\x20at\x20[','domRef','scenario','miwmK','zLLvH','trim','8952152dpqLFP','\x0aAvailable\x20scenarios:','git\x20remote\x20get-url\x20origin','filter','canceledReason','stdout','slPrj','rLZzg','Unknown','name','coordinates','toLocaleDateString','split','mhCgn','gitBranch','find','error','parentItemId','902457ORsGHS','gpZlZ','\x20verified','blockedReason','any','content','dacxT','vFbbR','URsRu','dashboardUrl','potqt','AlLBF','\x20\x20\x20Repository:\x20','mArjO','\x0a⚠️\x20\x20','join','currentBranch','wXjFR','length','caohl','CzZPD','reports','closed','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','GnJzk','\x20\x20\x20\x20\x20\x20Blocked:\x20','repeat','No\x20sessions\x20found.','\x20—\x20','dXTkr','description','\x20Session\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','gDWvg','tkREO','excludeScenarios','\x20incomplete','position','XtVoM','\x20\x20\x20▶️\x20Started\x20session\x20','log','stdin','zHaho','ZMBva','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','ikMFD','\x20/\x20','\x20scenarios.','SKuXH','QROjX','lYFmw','sort','jPmWl','\x20scenario(s).','replace','imcwu','pipe','stats','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20--limit\x20','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','ANmOT','GlzUC','authorName','njNTo','\x0a✅\x20Restored\x20feature\x20review:\x20','prompt','arrayBuffer','gDGir','toFixed','\x20\x20\x20Created:\x20','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','version','RmpsK','5|4|1|3|0|2','\x20\x20\x20\x20\x20\x20Incomplete:\x20','TJnjf','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','10cGLkYH','map','igjKd','from','write','env','1GhVnOc','\x0aNo\x20feature\x20reviews\x20found.','\x20\x20\x20Progress:\x20','BuwaD','UcdFx','868430xymusw','fnxfL','in_progress','exit','toLocaleString','\x20\x20\x20\x20','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','OZqaZ','textContent','sessionId','ViMoC','checklistItems','utf-8','offset','Byvwy','CbiZU','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','gkPhB','SKqNw','Current\x20session\x20not\x20found.','nGhhW','selected','completedAt','36rHZmiM','iteration','\x20\x20\x20\x20\x20\x20Cancelled:\x20','list','IqFnq','pUfbA','approved','\x0a✅\x20Scenario\x20added','verified','ready','EBciL','tZxJz','\x20of\x20','items','unaddressedComments','completed','terminalReason','type','.\x20Feature\x20review\x20has\x20','10671CJdHRt'];_0x3d49=function(){return _0x337ab2;};return _0x3d49();}const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x2537c2=>'\x1b[1m'+_0x2537c2+'\x1b[0m';function getGitRepoUrl(){const _0xc720a2=_0x51d3,_0x3cbf97={'EgGRx':function(_0x5534f1,_0x5856c5,_0x1886bd){return _0x5534f1(_0x5856c5,_0x1886bd);},'lJKKJ':_0xc720a2(0x106)};try{const _0x3119e9=_0x3cbf97['EgGRx'](execSync,_0xc720a2(0x15c),{'encoding':_0x3cbf97['lJKKJ'],'stdio':[_0xc720a2(0xd9),'pipe',_0xc720a2(0xd9)]})['trim']();return _0x3119e9['replace'](/\.git$/,'')[_0xc720a2(0xd7)](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xeee09c=_0x51d3,_0xf702b2={'BuwaD':function(_0x19103f,_0xd93b46,_0x1b7194){return _0x19103f(_0xd93b46,_0x1b7194);},'RWTzf':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','tkREO':_0xeee09c(0xd9)};try{return _0xf702b2[_0xeee09c(0xf8)](execSync,_0xf702b2[_0xeee09c(0x130)],{'encoding':'utf-8','stdio':[_0xf702b2['tkREO'],_0xf702b2['tkREO'],_0xf702b2[_0xeee09c(0xc3)]]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5871ad=_0x51d3,_0x2ba296={'potqt':function(_0x203478,_0x1ea1d3,_0x44df4f){return _0x203478(_0x1ea1d3,_0x44df4f);},'GnJzk':function(_0x1f04f7){return _0x1f04f7();},'hTDYz':function(_0x3c834d,_0x3f486f){return _0x3c834d(_0x3f486f);},'IsQHC':function(_0x21c9e7,_0x137d10,_0x3205b7){return _0x21c9e7(_0x137d10,_0x3205b7);},'fnxfL':'utf-8'},_0x4e0519=_0x2ba296[_0x5871ad(0xab)](join,_0x2ba296[_0x5871ad(0xb9)](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x2ba296['hTDYz'](existsSync,_0x4e0519))return null;try{const _0x14be27=await _0x2ba296['IsQHC'](readFile,_0x4e0519,_0x2ba296[_0x5871ad(0xfb)]);return _0x14be27[_0x5871ad(0x159)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x335aa3){const _0x49c220=_0x51d3,_0x569648={'tdhFU':function(_0x73a608,_0x475506){return _0x73a608(_0x475506);},'ZMBva':'utf-8'},_0x55d855=getRangerDir(),_0x19aee3=join(_0x55d855,ACTIVE_FEATURE_FILE);!_0x569648['tdhFU'](existsSync,_0x55d855)&&await mkdir(_0x55d855,{'recursive':!![]}),await writeFile(_0x19aee3,_0x335aa3,_0x569648[_0x49c220(0xcc)]);}function getProgressDisplay(_0x4bb457){const _0x399f41=_0x51d3,_0x228f1d={'AlLBF':function(_0x4e1a0c,_0xa5cf5){return _0x4e1a0c+_0xa5cf5;},'ANmOT':function(_0x585bf4,_0x458b7a){return _0x585bf4===_0x458b7a;},'jPmWl':function(_0xec3459,_0x2004b5){return _0xec3459*_0x2004b5;},'kOPOQ':function(_0x159705,_0x4c9068){return _0x159705/_0x4c9068;},'FzZkU':function(_0x1928f0,_0x378bc9){return _0x1928f0-_0x378bc9;},'tZxJz':function(_0x4b2202,_0x36fa54){return _0x4b2202>_0x36fa54;},'tsvGq':function(_0x2cece1,_0x57d3f6){return _0x2cece1>_0x57d3f6;}},_0x15c1bd=_0x4bb457['verifiedItems']||0x0,_0x2ace4f=_0x4bb457['verificationInProgressItems']||0x0,_0x55d022=_0x4bb457['blockedItems']||0x0,_0x475a8b=_0x4bb457['incompleteItems']||0x0,_0x3437b0=_0x4bb457['pendingItems']||0x0,_0x137d25=_0x228f1d[_0x399f41(0xac)](_0x228f1d[_0x399f41(0xac)](_0x228f1d['AlLBF'](_0x15c1bd+_0x2ace4f,_0x55d022),_0x475a8b),_0x3437b0);if(_0x228f1d[_0x399f41(0xde)](_0x137d25,0x0))return'-';const _0x12f11e=0xa,_0x4b1c16=Math['round'](_0x228f1d[_0x399f41(0xd5)](_0x228f1d['kOPOQ'](_0x15c1bd,_0x137d25),_0x12f11e)),_0x1e10d6='█'['repeat'](_0x4b1c16)+'░'[_0x399f41(0xbb)](_0x228f1d['FzZkU'](_0x12f11e,_0x4b1c16)),_0x43d3a2=[];if(_0x228f1d['tZxJz'](_0x55d022,0x0))_0x43d3a2['push'](_0x55d022+'\x20blocked');if(_0x228f1d[_0x399f41(0x11c)](_0x475a8b,0x0))_0x43d3a2['push'](_0x475a8b+_0x399f41(0xc5));if(_0x228f1d[_0x399f41(0x148)](_0x2ace4f,0x0))_0x43d3a2['push'](_0x2ace4f+'\x20in\x20progress');const _0x26c8fb=_0x43d3a2[_0x399f41(0xb3)]>0x0?'\x20('+_0x43d3a2[_0x399f41(0xb0)](',\x20')+')':'';return _0x1e10d6+'\x20'+_0x15c1bd+'/'+_0x137d25+_0x399f41(0xa3)+_0x26c8fb;}function getCurrentSessionItems(_0x351f44,_0x5e2574){const _0x316836=_0x51d3;if(!_0x351f44[_0x316836(0x134)])return _0x5e2574['filter'](_0x2cb962=>!_0x2cb962[_0x316836(0x103)])[_0x316836(0xd4)]((_0x481fa0,_0x20cf57)=>_0x481fa0[_0x316836(0xc6)]-_0x20cf57[_0x316836(0xc6)]);return _0x5e2574['filter'](_0x457e82=>_0x457e82['sessionId']===_0x351f44[_0x316836(0x134)]||!_0x457e82['sessionId'])[_0x316836(0xd4)]((_0xa763dc,_0xf27dff)=>_0xa763dc['position']-_0xf27dff['position']);}function displayFeature(_0x4804f6,_0x3b9b92){const _0x1fc099=_0x51d3,_0x5bd223={'TJnjf':function(_0x48f388,_0xbaef20){return _0x48f388(_0xbaef20);},'dXTkr':function(_0x1d86d5,_0x9c92e8){return _0x1d86d5>_0x9c92e8;},'zHaho':function(_0x58e0dd,_0x3b9b29){return _0x58e0dd===_0x3b9b29;},'wXjFR':'closed','kevgx':_0x1fc099(0x117),'QROjX':'verified','GPXHp':_0x1fc099(0x132),'ANquP':'verification_in_progress','lTRpF':function(_0x5da604,_0x462fe5){return _0x5da604!==_0x462fe5;},'VjWgr':function(_0x467f3c,_0x51f00c){return _0x467f3c+_0x51f00c;},'yOtqx':'incomplete','sjUzP':function(_0x23719d,_0x36af3f){return _0x23719d===_0x36af3f;}};console[_0x1fc099(0xc9)]('\x0a'+_0x4804f6['name']+'\x20('+_0x4804f6['dashboardUrl']+')');_0x4804f6[_0x1fc099(0xda)]&&console['log'](_0x1fc099(0xf7)+_0x5bd223[_0x1fc099(0xed)](getProgressDisplay,_0x4804f6['stats']));_0x4804f6[_0x1fc099(0xbf)]&&console[_0x1fc099(0xc9)]('\x20\x20\x20Description:\x20'+_0x4804f6[_0x1fc099(0xbf)]);_0x4804f6['gitRepoUrl']&&console['log'](_0x1fc099(0xad)+_0x4804f6['gitRepoUrl']);_0x4804f6[_0x1fc099(0x168)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x4804f6['gitBranch']);console[_0x1fc099(0xc9)](_0x1fc099(0xe7)+new Date(_0x4804f6['createdAt'])[_0x1fc099(0xfe)]());_0x4804f6['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x4804f6['completedAt'])['toLocaleString']());if(_0x3b9b92&&_0x5bd223[_0x1fc099(0xbe)](_0x3b9b92['length'],0x0)){console[_0x1fc099(0xc9)]('\x0a\x20\x20\x20Scenarios:');for(let _0xb412c7=0x0;_0xb412c7<_0x3b9b92[_0x1fc099(0xb3)];_0xb412c7++){const _0x202f60=_0x3b9b92[_0xb412c7];let _0x5a2241;if(_0x5bd223[_0x1fc099(0xcb)](_0x202f60['status'],_0x5bd223[_0x1fc099(0xb2)])&&_0x5bd223[_0x1fc099(0xcb)](_0x202f60[_0x1fc099(0x121)],_0x5bd223['kevgx']))_0x5a2241='✅';else{if(_0x202f60[_0x1fc099(0x13c)]===_0x5bd223[_0x1fc099(0xd2)])_0x5a2241='🟢';else{if(_0x5bd223['zHaho'](_0x202f60['status'],'incomplete'))_0x5a2241='🟠';else{if(_0x202f60['status']===_0x5bd223['GPXHp'])_0x5a2241='🛑';else{if(_0x202f60[_0x1fc099(0x13c)]==='closed')_0x5a2241='⛔';else _0x202f60[_0x1fc099(0x13c)]===_0x5bd223['ANquP']?_0x5a2241='⏳':_0x5a2241='⬜';}}}}const _0x2e6a10=_0x202f60['version']>0x1?'\x20(v'+_0x202f60['version']+')':'',_0x1b4ce8=_0x202f60['version']>0x1&&_0x202f60[_0x1fc099(0xa0)]&&_0x202f60[_0x1fc099(0x13c)]!=='closed'&&_0x5bd223['lTRpF'](_0x202f60['status'],_0x1fc099(0x119))?_0x1fc099(0x131):'';console['log']('\x20\x20\x20'+_0x5bd223['VjWgr'](_0xb412c7,0x1)+'.\x20'+_0x5a2241+'\x20'+_0x202f60['description']+_0x2e6a10+_0x1b4ce8);_0x202f60[_0x1fc099(0x13c)]===_0x5bd223['GPXHp']&&_0x202f60['blockedReason']&&console[_0x1fc099(0xc9)](_0x1fc099(0xba)+_0x202f60[_0x1fc099(0xa4)]);_0x202f60[_0x1fc099(0x13c)]===_0x5bd223['yOtqx']&&_0x202f60['incompleteReason']&&console['log'](_0x1fc099(0xec)+_0x202f60['incompleteReason']);if(_0x202f60[_0x1fc099(0x13c)]===_0x1fc099(0xb7)&&_0x5bd223[_0x1fc099(0xcb)](_0x202f60[_0x1fc099(0x121)],_0x5bd223['kevgx']))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x5bd223['sjUzP'](_0x202f60[_0x1fc099(0x13c)],_0x5bd223[_0x1fc099(0xb2)])&&_0x202f60[_0x1fc099(0x15e)]&&console['log'](_0x1fc099(0x113)+_0x202f60[_0x1fc099(0x15e)]);}}}export async function featureCreate(_0x3c6b02,_0x3f1899){const _0x467db0=_0x51d3,_0x2a65f6={'ApNCh':function(_0xc3edba){return _0xc3edba();},'BMlla':function(_0x116342,_0x5d839c){return _0x116342(_0x5d839c);},'mhCgn':function(_0x5c1b6a){return _0x5c1b6a();},'AQaPC':'\x0aCreating\x20feature\x20review...','ootLc':function(_0x32465d,_0x53822e,_0x251673){return _0x32465d(_0x53822e,_0x251673);}},{envNames:_0xe227f3}=await _0x2a65f6['ApNCh'](getEnvNames);_0xe227f3['length']===0x0&&console['warn']('\x0a'+_0x2a65f6['BMlla'](formatProfileRequiredMessage,_0x24c80e=>bold(_0x24c80e)));const _0x58008a=_0x3f1899['scenarios']?_0x3f1899['scenarios'][_0x467db0(0xf0)](_0x2415b4=>_0x2415b4[_0x467db0(0x159)]()):[],_0x224308=_0x2a65f6[_0x467db0(0x167)](getGitRepoUrl),_0x5652c4=getGitBranch();console['log'](_0x2a65f6['AQaPC']);const _0x30e5a9=await createFeature({'name':_0x3c6b02,'description':_0x3f1899[_0x467db0(0xbf)],'checklist':_0x58008a,'gitRepoUrl':_0x224308,'gitBranch':_0x5652c4});await setActiveFeatureId(_0x30e5a9['id']),await tryStartCurrentSession(_0x30e5a9['id']);const _0x4cbe60=process[_0x467db0(0xf4)][_0x467db0(0x136)];_0x4cbe60&&_0x2a65f6['ootLc'](registerSession,_0x4cbe60,_0x30e5a9['id']),console[_0x467db0(0xc9)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x30e5a9['id']),displayFeature(_0x30e5a9,_0x30e5a9['checklistItems']),console[_0x467db0(0xc9)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x14bbdf){const _0x435ce2=_0x51d3,_0x5302cd={'lYFmw':function(_0xffcf3d){return _0xffcf3d();},'IqFnq':function(_0x2afbb5,_0x15e5f){return _0x2afbb5===_0x15e5f;},'pUfbA':function(_0x4d7b94,_0x5b10c5){return _0x4d7b94>_0x5b10c5;},'miwmK':function(_0x57ec60,_0x34cd66){return _0x57ec60(_0x34cd66);},'Vatgj':function(_0x38af66,_0x58be21){return _0x38af66+_0x58be21;},'GlzUC':function(_0x54f255,_0x5cf68d){return _0x54f255!==_0x5cf68d;},'zgfaT':_0x435ce2(0x125),'ZMZaq':_0x435ce2(0x129)},_0x5a9c6e={'limit':_0x14bbdf[_0x435ce2(0x140)]??0xa,'offset':_0x14bbdf[_0x435ce2(0x107)]??0x0,'includeDeleted':_0x14bbdf['includeDeleted']};_0x14bbdf[_0x435ce2(0xb1)]&&(_0x5a9c6e['gitRepoUrl']=_0x5302cd[_0x435ce2(0xd3)](getGitRepoUrl),_0x5a9c6e['gitBranch']=getGitBranch());const _0x4e7394=await listFeatures(_0x5a9c6e);if(_0x5302cd[_0x435ce2(0x115)](_0x4e7394['items'][_0x435ce2(0xb3)],0x0)){console[_0x435ce2(0xc9)](_0x435ce2(0xf6));return;}const _0x1ea3cc=_0x5302cd[_0x435ce2(0x116)](_0x4e7394['totalCount'],_0x4e7394[_0x435ce2(0x11e)][_0x435ce2(0xb3)])?'Showing\x20'+_0x4e7394['items'][_0x435ce2(0xb3)]+_0x435ce2(0x11d)+_0x4e7394['totalCount']:_0x4e7394['totalCount']+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x1ea3cc+':\x0a');for(const _0x2d907e of _0x4e7394['items']){const _0x3a3c00=_0x435ce2(0xeb)['split']('|');let _0x1de062=0x0;while(!![]){switch(_0x3a3c00[_0x1de062++]){case'0':console[_0x435ce2(0xc9)](_0x435ce2(0xe7)+new Date(_0x2d907e['createdAt'])['toLocaleDateString']());continue;case'1':_0x2d907e['stats']&&console['log'](_0x435ce2(0xf7)+_0x5302cd[_0x435ce2(0x157)](getProgressDisplay,_0x2d907e['stats']));continue;case'2':console['log']('');continue;case'3':_0x2d907e['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x2d907e['gitBranch']);continue;case'4':console['log'](_0x435ce2(0x137)+_0x2d907e['id']);continue;case'5':console['log'](''+_0x2d907e['name']);continue;}break;}}const _0xb65e4b=_0x5a9c6e[_0x435ce2(0x140)]??0xa,_0x4fb6c9=_0x5302cd['Vatgj'](_0x5a9c6e[_0x435ce2(0x107)]??0x0,_0x4e7394['items'][_0x435ce2(0xb3)]);if(_0x4fb6c9<_0x4e7394['totalCount']){const _0x1308a8=_0x5302cd[_0x435ce2(0xdf)](_0xb65e4b,0xa)?_0x435ce2(0xdc)+_0xb65e4b:'',_0x3124dc=_0x14bbdf['currentBranch']?_0x5302cd['zgfaT']:'',_0x1025d9=_0x14bbdf['includeDeleted']?_0x5302cd['ZMZaq']:'';console[_0x435ce2(0xc9)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x4fb6c9+_0x1308a8+_0x3124dc+_0x1025d9);}}export async function featureShow(_0xd2c3fc){const _0x440208=_0x51d3,_0x1e5b09={'DDjhj':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x41e687=_0xd2c3fc||await getActiveFeatureId();if(!_0x41e687)throw new Error(_0x1e5b09['DDjhj']);const _0x5d8427=await getFeature(_0x41e687);displayFeature(_0x5d8427,_0x5d8427[_0x440208(0x105)]);}function _0x51d3(_0x1bcc53,_0x5ef1b4){_0x1bcc53=_0x1bcc53-0xa0;const _0x3d4987=_0x3d49();let _0x51d349=_0x3d4987[_0x1bcc53];return _0x51d349;}export async function featureResume(_0x474de5){const _0xdfef03=_0x51d3,_0x7a34dc={'HqSNo':function(_0x5eca2e,_0x5bc180,_0x321d4c){return _0x5eca2e(_0x5bc180,_0x321d4c);},'KJqek':function(_0x4fce6c,_0x5a9279){return _0x4fce6c(_0x5a9279);},'NkDQw':function(_0x54a57d){return _0x54a57d();},'jfHGY':function(_0x6f9777,_0x9e9fb){return _0x6f9777&&_0x9e9fb;},'tFeyw':_0xdfef03(0x141),'dwCuP':function(_0x3dffcd,_0x4a46ad){return _0x3dffcd||_0x4a46ad;},'JwdEo':_0xdfef03(0xa5),'slPrj':function(_0xba9265,_0xe9d18c){return _0xba9265===_0xe9d18c;},'rxRih':function(_0x2985ef,_0xc96582){return _0x2985ef===_0xc96582;},'mArjO':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','GcGQF':function(_0x421811,_0x3b1887){return _0x421811(_0x3b1887);},'lskZC':_0xdfef03(0x114),'xcQwZ':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','CbiZU':function(_0x1e43b9,_0x1bcb86,_0x143314){return _0x1e43b9(_0x1bcb86,_0x143314);},'WOlKj':function(_0x271068,_0x2193c3){return _0x271068(_0x2193c3);}};if(_0x474de5){const _0x3102f9=await getFeature(_0x474de5);await setActiveFeatureId(_0x3102f9['id']);const _0x3bb960=getGitBranch();_0x3bb960&&_0x3bb960!==_0x3102f9['gitBranch']&&(await _0x7a34dc['HqSNo'](updateFeature,_0x3102f9['id'],{'gitBranch':_0x3bb960}),console[_0xdfef03(0xc9)](_0xdfef03(0xc1)+_0x3bb960));console['log'](_0xdfef03(0x152)+_0x3102f9['name']+'\x20('+_0x3102f9['id']+')'),await _0x7a34dc['KJqek'](tryStartCurrentSession,_0x3102f9['id']);const _0x51e589=process['env']['CLAUDE_SESSION_ID'];_0x51e589&®isterSession(_0x51e589,_0x3102f9['id']);_0x7a34dc['HqSNo'](displayFeature,_0x3102f9,_0x3102f9['checklistItems']),await _0x7a34dc[_0xdfef03(0x149)](printFeedbackNudge,_0x3102f9['id']);return;}const _0x420695=getGitRepoUrl(),_0x11c0dc=_0x7a34dc['NkDQw'](getGitBranch);if(_0x7a34dc[_0xdfef03(0x133)](!_0x420695,!_0x11c0dc))throw new Error(_0x7a34dc[_0xdfef03(0x14d)]);console[_0xdfef03(0xc9)](_0xdfef03(0xe8)+_0x7a34dc['dwCuP'](_0x420695,'any')+_0xdfef03(0xcf)+_0x7a34dc['dwCuP'](_0x11c0dc,_0x7a34dc['JwdEo'])+'...');const _0x5d82a0=await listFeatures({'gitRepoUrl':_0x420695,'gitBranch':_0x11c0dc}),_0x59ba20=_0x5d82a0['items']['filter'](_0x537dec=>!_0x537dec['completedAt']);if(_0x7a34dc[_0xdfef03(0x160)](_0x59ba20[_0xdfef03(0xb3)],0x0)){console[_0xdfef03(0xc9)](_0xdfef03(0x139)),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x3a88d3;if(_0x7a34dc['rxRih'](_0x59ba20['length'],0x1))_0x3a88d3=_0x59ba20[0x0];else{const _0x3ccb74=process[_0xdfef03(0xca)]['isTTY']&&process['stdout']['isTTY'];if(!_0x3ccb74){console[_0xdfef03(0xc9)](_0x7a34dc[_0xdfef03(0xae)]);for(const _0x37bd37 of _0x59ba20){console[_0xdfef03(0xc9)]('\x20\x20'+_0x37bd37[_0xdfef03(0x163)]),console[_0xdfef03(0xc9)]('\x20\x20\x20\x20\x20ID:\x20'+_0x37bd37['id']),_0x37bd37['stats']&&console[_0xdfef03(0xc9)]('\x20\x20\x20\x20\x20Progress:\x20'+_0x7a34dc['GcGQF'](getProgressDisplay,_0x37bd37['stats'])),_0x37bd37['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x37bd37[_0xdfef03(0x168)]);}throw new Error(_0xdfef03(0x10a));}const {selected:_0x198552}=await _0x31b5bd[_0xdfef03(0xe3)]([{'type':_0x7a34dc[_0xdfef03(0x14b)],'name':_0xdfef03(0x10f),'message':_0x7a34dc[_0xdfef03(0x127)],'choices':_0x59ba20[_0xdfef03(0xf0)](_0x115d13=>({'name':_0x115d13[_0xdfef03(0x163)]+'\x20('+_0x115d13['id']+')','value':_0x115d13['id']}))}]);_0x3a88d3=_0x59ba20[_0xdfef03(0x169)](_0x2ad7f6=>_0x2ad7f6['id']===_0x198552);}await _0x7a34dc['GcGQF'](setActiveFeatureId,_0x3a88d3['id']);_0x11c0dc&&_0x11c0dc!==_0x3a88d3['gitBranch']&&(await _0x7a34dc['CbiZU'](updateFeature,_0x3a88d3['id'],{'gitBranch':_0x11c0dc}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x11c0dc));console[_0xdfef03(0xc9)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3a88d3[_0xdfef03(0x163)]+'\x20('+_0x3a88d3['id']+')'),await tryStartCurrentSession(_0x3a88d3['id']);const _0x40aad2=await _0x7a34dc['WOlKj'](getFeature,_0x3a88d3['id']),_0x35f253=process[_0xdfef03(0xf4)]['CLAUDE_SESSION_ID'];_0x35f253&®isterSession(_0x35f253,_0x40aad2['id']),_0x7a34dc[_0xdfef03(0x109)](displayFeature,_0x40aad2,_0x40aad2['checklistItems']),await printFeedbackNudge(_0x40aad2['id']);}async function printFeedbackNudge(_0x3a63a7){const _0x3f71f6=_0x51d3,_0x35315c={'UcdFx':function(_0x339e68,_0x1adf6b,_0x570d3b){return _0x339e68(_0x1adf6b,_0x570d3b);},'reUxZ':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x2ef697}=await getActionItems(_0x3a63a7);let _0x1b22be=0x0,_0x1ce568=0x0;for(const _0x2ef344 of _0x2ef697){const _0x53ed24=await _0x35315c[_0x3f71f6(0xf9)](getItemFeedback,_0x3a63a7,_0x2ef344['id']);_0x53ed24[_0x3f71f6(0x11f)]['length']>0x0&&(_0x1b22be+=_0x53ed24['unaddressedComments']['length'],_0x1ce568++);}_0x1b22be>0x0&&(console[_0x3f71f6(0xc9)](_0x3f71f6(0xaf)+_0x1b22be+_0x3f71f6(0x13b)+_0x1ce568+_0x3f71f6(0xd6)),console[_0x3f71f6(0xc9)](_0x35315c['reUxZ']));}catch{}}async function tryStartCurrentSession(_0x46fb2f){const _0x3c4b4c=_0x51d3,_0x2290f4={'ttUrQ':function(_0x2cd1c7,_0x219c90,_0x261f7b){return _0x2cd1c7(_0x219c90,_0x261f7b);}};try{const {sessions:_0x2bc49b}=await listFeatureSessions(_0x46fb2f),_0x593d11=_0x2bc49b['find'](_0x7c86fc=>_0x7c86fc[_0x3c4b4c(0x13c)]===_0x3c4b4c(0x11a));_0x593d11&&(await _0x2290f4[_0x3c4b4c(0x150)](startSession,_0x46fb2f,_0x593d11['id']),console['log'](_0x3c4b4c(0xc8)+_0x593d11[_0x3c4b4c(0x112)]));}catch{}}export async function featureReport(_0x18fcbf,_0x4674dd){const _0x3fa732=_0x51d3,_0x3df90d={'ViMoC':function(_0x36f65d){return _0x36f65d();},'LgKOr':_0x3fa732(0x14c),'BkgxX':_0x3fa732(0x13f),'KCvOU':function(_0x811ed8,_0x9f148e,_0x145bf4){return _0x811ed8(_0x9f148e,_0x145bf4);},'uCTPh':function(_0x55f0ea,_0x378195,_0xf7621b,_0x15a51f){return _0x55f0ea(_0x378195,_0xf7621b,_0x15a51f);},'VLrdK':function(_0x507d0f){return _0x507d0f();},'gpZlZ':function(_0xeba50f,_0x493420){return _0xeba50f(_0x493420);}},_0x52371d=_0x18fcbf||await _0x3df90d[_0x3fa732(0x104)](getActiveFeatureId);if(!_0x52371d)throw new Error(_0x3df90d['LgKOr']);console[_0x3fa732(0xc9)](_0x3df90d['BkgxX']);const _0x1a2803=await _0x3df90d['KCvOU'](getFeatureReportMarkdown,_0x52371d,{'style':_0x4674dd[_0x3fa732(0x12d)]}),_0x2a68fb=_0x4674dd['output']||_0x3df90d[_0x3fa732(0x126)](join,_0x3df90d['VLrdK'](getRangerDir),_0x3fa732(0xb6),_0x52371d+_0x3fa732(0x144)),_0x53589d=_0x3df90d[_0x3fa732(0x153)](join,_0x2a68fb,'..');!_0x3df90d[_0x3fa732(0xa2)](existsSync,_0x53589d)&&await mkdir(_0x53589d,{'recursive':!![]}),await writeFile(_0x2a68fb,_0x1a2803,'utf-8'),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x2a68fb);}export async function featureReportPrDescription(_0x25ae14,_0x521dce){const _0x3b453c=_0x51d3,_0x51a539={'KSkZa':function(_0x4bbe22){return _0x4bbe22();},'aZuPE':_0x3b453c(0x14c),'NYrWQ':function(_0x16fc9e,_0x21cff7,_0x510f32){return _0x16fc9e(_0x21cff7,_0x510f32);},'OZqaZ':function(_0x5c59e6,_0x1f429e){return _0x5c59e6===_0x1f429e;},'vFbbR':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','gkPhB':function(_0x3c840d,_0x268208){return _0x3c840d>_0x268208;},'krpNU':function(_0x358018,_0x4bf393){return _0x358018<_0x4bf393;},'CzZPD':function(_0xaf300f,_0x2a6bf9){return _0xaf300f+_0x2a6bf9;}},_0x2eac66=_0x25ae14||await _0x51a539[_0x3b453c(0x135)](getActiveFeatureId);if(!_0x2eac66)throw new Error(_0x51a539['aZuPE']);const _0x5d6933=await getFeature(_0x2eac66),_0x505d7e=_0x5d6933[_0x3b453c(0x105)]||[],_0x2d1400=_0x51a539['NYrWQ'](getCurrentSessionItems,_0x5d6933,_0x505d7e);_0x51a539['OZqaZ'](_0x2d1400['length'],0x0)&&(console['error'](_0x51a539[_0x3b453c(0xa8)]),process[_0x3b453c(0xfd)](0x1));const _0x2613a8=_0x521dce[_0x3b453c(0xc4)]??[],_0x10bc53=_0x2613a8[_0x3b453c(0x15d)](_0x2d2e93=>!Number['isInteger'](_0x2d2e93)||_0x2d2e93<0x1||_0x2d2e93>_0x2d1400[_0x3b453c(0xb3)]);if(_0x51a539[_0x3b453c(0x10b)](_0x10bc53['length'],0x0)){console['error'](_0x3b453c(0x100)+_0x10bc53['join'](',\x20')),console['log'](_0x3b453c(0x15b));for(let _0x324dc8=0x0;_0x51a539['krpNU'](_0x324dc8,_0x2d1400['length']);_0x324dc8++){console[_0x3b453c(0xc9)]('\x20\x20'+_0x51a539[_0x3b453c(0xb5)](_0x324dc8,0x1)+'.\x20'+_0x2d1400[_0x324dc8][_0x3b453c(0xbf)]);}process['exit'](0x1);}const _0x2ea6e2=new Set(_0x2613a8['map'](_0x2127bb=>_0x2127bb-0x1)),_0x54dc96=_0x2d1400[_0x3b453c(0x15d)]((_0x54b98d,_0x571d1d)=>!_0x2ea6e2['has'](_0x571d1d));_0x51a539[_0x3b453c(0x101)](_0x54dc96[_0x3b453c(0xb3)],0x0)&&(console['error'](_0x3b453c(0xdb)),process['exit'](0x1));const _0x4ced75=await getFeatureReportMarkdown(_0x2eac66,{'itemIds':_0x54dc96['map'](_0x3a2503=>_0x3a2503['id'])});process[_0x3b453c(0x15f)][_0x3b453c(0xf3)](_0x4ced75['trimEnd']()+'\x0a');}export async function featureConcludeSession(_0x1fd5ef){const _0x5998ad=_0x51d3,_0xa74297={'qMAVq':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','njNTo':function(_0x1297b4,_0x3e9357){return _0x1297b4(_0x3e9357);},'cOYbO':_0x5998ad(0x10d),'Byvwy':'\x0a✅\x20Session\x20is\x20already\x20completed.','oiyIv':function(_0x1b1a02,_0x124131){return _0x1b1a02!==_0x124131;}},_0x1a18fc=_0x1fd5ef||await getActiveFeatureId();if(!_0x1a18fc)throw new Error(_0xa74297['qMAVq']);const _0x53640b=await _0xa74297[_0x5998ad(0xe1)](getFeature,_0x1a18fc);if(!_0x53640b['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x4560b7}=await _0xa74297[_0x5998ad(0xe1)](listFeatureSessions,_0x1a18fc),_0x52e0f5=_0x4560b7[_0x5998ad(0x169)](_0x5fbb04=>_0x5fbb04['id']===_0x53640b['currentSessionId']);if(!_0x52e0f5)throw new Error(_0xa74297[_0x5998ad(0x13a)]);if(_0x52e0f5[_0x5998ad(0x13c)]===_0x5998ad(0x120)){console[_0x5998ad(0xc9)](_0xa74297[_0x5998ad(0x108)]);return;}if(_0xa74297['oiyIv'](_0x52e0f5[_0x5998ad(0x13c)],_0x5998ad(0xfc)))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x52e0f5['status']);console[_0x5998ad(0xc9)]('\x0aConcluding\x20session...'),await concludeSession(_0x1a18fc,_0x53640b['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x52e0f5[_0x5998ad(0x112)]+'\x20concluded.'),console['log'](_0x5998ad(0xb8));}export async function featureSessions(_0x5f58c9){const _0x145363=_0x51d3,_0x174a18={'stdCd':function(_0x237048){return _0x237048();},'QUrWm':function(_0x53a5fd,_0x3cbb7b){return _0x53a5fd(_0x3cbb7b);},'EBciL':function(_0x4617d7,_0x52481b){return _0x4617d7===_0x52481b;},'NFoBM':_0x145363(0x120),'YvCuE':_0x145363(0xfc)},_0x2fa4ff=_0x5f58c9||await _0x174a18[_0x145363(0x142)](getActiveFeatureId);if(!_0x2fa4ff)throw new Error(_0x145363(0x14c));const _0xc5bb27=await getFeature(_0x2fa4ff);console[_0x145363(0xc9)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0xc5bb27['name']+'\x0a');const {sessions:_0x55d65c}=await _0x174a18['QUrWm'](listFeatureSessions,_0x2fa4ff);if(_0x174a18[_0x145363(0x11b)](_0x55d65c[_0x145363(0xb3)],0x0)){console[_0x145363(0xc9)](_0x145363(0xbc));return;}for(const _0x3d035a of _0x55d65c){const _0x5a8fa0=_0x3d035a['status']===_0x174a18['NFoBM']?'✅':_0x174a18['EBciL'](_0x3d035a[_0x145363(0x13c)],_0x174a18['YvCuE'])?'🔄':'▶️';console[_0x145363(0xc9)](_0x5a8fa0+_0x145363(0xc0)+_0x3d035a['iteration']+'\x20('+_0x3d035a['id']+')'),console[_0x145363(0xc9)]('\x20\x20\x20Status:\x20'+_0x3d035a[_0x145363(0x13c)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3d035a['createdAt'])['toLocaleString']()),_0x3d035a[_0x145363(0x110)]&&console[_0x145363(0xc9)]('\x20\x20\x20Completed:\x20'+new Date(_0x3d035a[_0x145363(0x110)])[_0x145363(0xfe)]()),console['log']('');}}export async function featureAddScenario(_0x196e9c,_0x558d54){const _0x31626f=_0x51d3,_0x177afa={'pBwup':function(_0x2ced9b,_0x4ec696){return _0x2ced9b(_0x4ec696);}},_0x35cb57=_0x558d54||await getActiveFeatureId();if(!_0x35cb57)throw new Error(_0x31626f(0x13e));const _0x507f98=await _0x177afa[_0x31626f(0x13d)](getFeature,_0x35cb57);if(_0x507f98['latestReview']&&!_0x507f98['latestReview']['submittedAt'])throw new Error(_0x31626f(0xdd)+_0x507f98[_0x31626f(0xaa)]);await createChecklistItem(_0x35cb57,_0x196e9c);const _0x1e3c48=await getFeature(_0x35cb57);console['log'](_0x31626f(0x118)),displayFeature(_0x1e3c48,_0x1e3c48['checklistItems']);}export async function featureEditScenario(_0x987805,_0x4a2b14){const _0x1fd390=_0x51d3,_0x8258e2={'nGhhW':function(_0xd44bed){return _0xd44bed();},'MlLkG':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','igjKd':function(_0x139aee,_0x433727){return _0x139aee(_0x433727);},'SKqNw':_0x1fd390(0x12a),'rLZzg':function(_0x4bd0b7,_0x75337e){return _0x4bd0b7<_0x75337e;},'RmpsK':function(_0x26f7a1,_0x3de894){return _0x26f7a1-_0x3de894;},'GIlmh':function(_0x12b159,_0x69644b){return _0x12b159<_0x69644b;},'PmOvO':'\x0aAvailable\x20scenarios:','hbqeo':function(_0x3c8ae7,_0x5a5f20){return _0x3c8ae7<_0x5a5f20;},'URsRu':function(_0x38a46c,_0x56ad89,_0x200dac,_0x11a431){return _0x38a46c(_0x56ad89,_0x200dac,_0x11a431);}},_0x4985f9=_0x4a2b14['id']||await _0x8258e2[_0x1fd390(0x10e)](getActiveFeatureId);!_0x4985f9&&(console[_0x1fd390(0x16a)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x8258e2['MlLkG']),process[_0x1fd390(0xfd)](0x1));const _0x350d62=await _0x8258e2[_0x1fd390(0xf1)](getFeature,_0x4985f9);_0x350d62['latestReview']&&!_0x350d62['latestReview'][_0x1fd390(0x146)]&&(console['error']('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x1fd390(0x16a)](_0x8258e2[_0x1fd390(0x10c)]),console['error']('\x20\x20'+_0x350d62['dashboardUrl']),process[_0x1fd390(0xfd)](0x1));const _0x183c59=_0x350d62['checklistItems']||[];_0x183c59[_0x1fd390(0xb3)]===0x0&&(console['error'](_0x1fd390(0xee)),process[_0x1fd390(0xfd)](0x1));if(_0x4a2b14[_0x1fd390(0x156)]===undefined){console[_0x1fd390(0x16a)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x1fd390(0xc9)](_0x1fd390(0x15b));for(let _0x436d64=0x0;_0x8258e2[_0x1fd390(0x161)](_0x436d64,_0x183c59['length']);_0x436d64++){console['log']('\x20\x20'+(_0x436d64+0x1)+'.\x20'+_0x183c59[_0x436d64][_0x1fd390(0xbf)]);}process['exit'](0x1);}const _0x2c6f82=_0x8258e2[_0x1fd390(0xea)](_0x4a2b14['scenario'],0x1);if(_0x8258e2['GIlmh'](_0x2c6f82,0x0)||_0x2c6f82>=_0x183c59[_0x1fd390(0xb3)]){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x4a2b14['scenario']+_0x1fd390(0x123)+_0x183c59['length']+_0x1fd390(0xd0)),console['log'](_0x8258e2['PmOvO']);for(let _0x852de=0x0;_0x8258e2['hbqeo'](_0x852de,_0x183c59['length']);_0x852de++){console[_0x1fd390(0xc9)]('\x20\x20'+(_0x852de+0x1)+'.\x20'+_0x183c59[_0x852de]['description']);}process['exit'](0x1);}const _0x3a7692=_0x183c59[_0x2c6f82];await _0x8258e2[_0x1fd390(0xa9)](updateChecklistItem,_0x4985f9,_0x3a7692['id'],{'description':_0x987805});const _0x283c99=await _0x8258e2[_0x1fd390(0xf1)](getFeature,_0x4985f9);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x283c99,_0x283c99['checklistItems']);}async function downloadFeedbackImage(_0x1a2493,_0x527cad){const _0x536bd5=_0x51d3,_0x133574={'rWJUD':function(_0x21ac24,_0x50802c,_0x549850){return _0x21ac24(_0x50802c,_0x549850);},'LLaTW':function(_0x44cfc9){return _0x44cfc9();},'gDWvg':'feedback-images','ocDmK':function(_0x585286,_0x59731f,_0x55b075){return _0x585286(_0x59731f,_0x55b075);},'imcwu':function(_0x2d2d55,_0x5776e5,_0x4026f9){return _0x2d2d55(_0x5776e5,_0x4026f9);}};try{const _0x4d72b3=_0x133574['rWJUD'](join,_0x133574[_0x536bd5(0x12c)](getRangerDir),_0x133574[_0x536bd5(0xc2)]);await _0x133574['ocDmK'](mkdir,_0x4d72b3,{'recursive':!![]});const _0x582774=_0x133574[_0x536bd5(0xd8)](join,_0x4d72b3,'comment_'+_0x527cad+'.png'),_0x39fbc7=await fetch(_0x1a2493);if(!_0x39fbc7['ok'])return null;const _0xc9896f=Buffer[_0x536bd5(0xf2)](await _0x39fbc7[_0x536bd5(0xe4)]());return await writeFile(_0x582774,_0xc9896f),_0x582774;}catch{return null;}}export async function featureGetReview(_0x5b2e2f){const _0x29c3cb=_0x51d3,_0x21b4dd={'caohl':function(_0x36aa35){return _0x36aa35();},'VWdxv':function(_0x2cc225,_0x2b8764){return _0x2cc225(_0x2b8764);},'xKppm':function(_0x16902b,_0x28079f){return _0x16902b===_0x28079f;},'fSqNS':_0x29c3cb(0x145),'XtVoM':function(_0x5b6186,_0x1f532e,_0x1f034b){return _0x5b6186(_0x1f532e,_0x1f034b);},'dacxT':function(_0x2cc1a8,_0x320101){return _0x2cc1a8>_0x320101;},'SKuXH':function(_0x3d299a,_0x244e61){return _0x3d299a+_0x244e61;},'ZgJiD':'en-US','RhQJp':'short','ivdGA':'numeric','faPHz':_0x29c3cb(0x162),'ebhYj':'element','gDGir':function(_0xb4d412,_0x4fad7a){return _0xb4d412===_0x4fad7a;},'xCefz':function(_0x6436e6,_0x1436d3){return _0x6436e6>=_0x1436d3;}},_0x2cbb46=_0x5b2e2f||await _0x21b4dd[_0x29c3cb(0xb4)](getActiveFeatureId);if(!_0x2cbb46)throw new Error(_0x29c3cb(0x13e));const _0x2ec718=await _0x21b4dd['VWdxv'](getFeature,_0x2cbb46),{items:_0x4bfbfb}=await getActionItems(_0x2cbb46);console[_0x29c3cb(0xc9)](_0x29c3cb(0x12b)+_0x2ec718['name']+'\x20('+_0x2ec718['id']+')\x0a');if(_0x21b4dd['xKppm'](_0x4bfbfb['length'],0x0)){console[_0x29c3cb(0xc9)](_0x21b4dd['fSqNS']);return;}for(let _0x8fe0fa=0x0;_0x8fe0fa<_0x4bfbfb['length'];_0x8fe0fa++){const _0x447476=_0x4bfbfb[_0x8fe0fa],_0x186801=_0x447476[_0x29c3cb(0xe9)]>0x1?'\x20(v'+_0x447476[_0x29c3cb(0xe9)]+')':'',_0x1a8438=await _0x21b4dd[_0x29c3cb(0xc7)](getItemFeedback,_0x2cbb46,_0x447476['id']);if(_0x21b4dd[_0x29c3cb(0xa7)](_0x1a8438[_0x29c3cb(0x11f)]['length'],0x0)){console['log']('Scenario\x20'+_0x21b4dd[_0x29c3cb(0xd1)](_0x8fe0fa,0x1)+':\x20\x22'+_0x447476[_0x29c3cb(0xbf)]+'\x22'+_0x186801+_0x29c3cb(0xbd)+_0x1a8438[_0x29c3cb(0x11f)][_0x29c3cb(0xb3)]+'\x20unaddressed\x20comment(s)');for(const _0x3b8cc9 of _0x1a8438['unaddressedComments']){const _0x15c0ac=new Date(_0x3b8cc9['createdAt'])[_0x29c3cb(0x165)](_0x21b4dd['ZgJiD'],{'month':_0x21b4dd['RhQJp'],'day':_0x21b4dd[_0x29c3cb(0x151)]}),_0x420e2c=_0x3b8cc9[_0x29c3cb(0xe0)]||_0x3b8cc9['authorEmail']||_0x21b4dd['faPHz'];console[_0x29c3cb(0xc9)]('\x20\x20💬\x20'+_0x420e2c+'\x20('+_0x15c0ac+_0x29c3cb(0x128)+_0x3b8cc9[_0x29c3cb(0xa6)]+'\x22');if(_0x3b8cc9['assetUrl']){const _0x10a92f=await downloadFeedbackImage(_0x3b8cc9[_0x29c3cb(0x14f)],_0x3b8cc9['id']);_0x10a92f&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x10a92f);}if(_0x3b8cc9[_0x29c3cb(0x155)]){const _0x42807b=_0x3b8cc9[_0x29c3cb(0x155)]['selector'][_0x29c3cb(0x166)]('\x20>\x20')['pop']()?.[_0x29c3cb(0x166)](':')[0x0]||_0x21b4dd['ebhYj'],_0x1def0c=_0x3b8cc9[_0x29c3cb(0x155)][_0x29c3cb(0x102)]?'\x20\x22'+_0x3b8cc9[_0x29c3cb(0x155)][_0x29c3cb(0x102)]['slice'](0x0,0x3c)+'\x22':'';console[_0x29c3cb(0xc9)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x42807b+'>'+_0x1def0c),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3b8cc9['domRef'][_0x29c3cb(0x143)]);}else{if(_0x3b8cc9['spatial']){const _0x332dee=_0x3b8cc9['spatial'][_0x29c3cb(0x164)];_0x21b4dd[_0x29c3cb(0xe5)](_0x3b8cc9[_0x29c3cb(0x14a)]['type'],'point')&&_0x21b4dd['xCefz'](_0x332dee['length'],0x2)?console[_0x29c3cb(0xc9)](_0x29c3cb(0xcd)+_0x332dee[0x0]['toFixed'](0x2)+',\x20'+_0x332dee[0x1][_0x29c3cb(0xe6)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3b8cc9[_0x29c3cb(0x14a)][_0x29c3cb(0x122)]+_0x29c3cb(0x154)+_0x332dee['map'](_0x3d9101=>_0x3d9101[_0x29c3cb(0xe6)](0x2))['join'](',\x20')+']');}}}if(_0x1a8438[_0x29c3cb(0x12e)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x2bc536 of _0x1a8438[_0x29c3cb(0x12e)][_0x29c3cb(0x166)]('\x0a')){console[_0x29c3cb(0xc9)](_0x29c3cb(0xff)+_0x2bc536);}}}else console['log']('Scenario\x20'+_0x21b4dd[_0x29c3cb(0xd1)](_0x8fe0fa,0x1)+':\x20\x22'+_0x447476['description']+'\x22'+_0x186801+'\x20—\x20no\x20comments'),console[_0x29c3cb(0xc9)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x50f6af){const _0x35c6eb=_0x51d3,_0x1c6c7c={'zLLvH':_0x35c6eb(0x13e),'ZLOzH':function(_0x1837ac,_0xc48af6){return _0x1837ac(_0xc48af6);},'vCZpw':function(_0x40791b,_0x50a6e3){return _0x40791b+_0x50a6e3;}},_0x14ddb4=_0x50f6af||await getActiveFeatureId();if(!_0x14ddb4)throw new Error(_0x1c6c7c[_0x35c6eb(0x158)]);const _0x5a1533=await getFeature(_0x14ddb4);await _0x1c6c7c['ZLOzH'](softDeleteFeature,_0x14ddb4),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x5a1533['name']+'\x20('+_0x14ddb4+')'),console[_0x35c6eb(0xc9)](_0x1c6c7c['vCZpw']('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20',_0x14ddb4));}export async function featureRestore(_0x56858a){const _0xeb157=_0x51d3,_0x34aaf6={'ikMFD':function(_0x28ac85,_0x4c667a){return _0x28ac85(_0x4c667a);}};await restoreFeature(_0x56858a);const _0x4fd5d1=await _0x34aaf6[_0xeb157(0xce)](getFeature,_0x56858a);console[_0xeb157(0xc9)](_0xeb157(0xe2)+_0x4fd5d1[_0xeb157(0x163)]+'\x20('+_0x56858a+')'),displayFeature(_0x4fd5d1,_0x4fd5d1['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30fdb3,_0x51033b){const _0x495227=_0x5da5,_0xb65708=_0x30fdb3();while(!![]){try{const _0x37934a=-parseInt(_0x495227(0x18c))/0x1*(-parseInt(_0x495227(0x18f))/0x2)+parseInt(_0x495227(0x186))/0x3*(-parseInt(_0x495227(0x18e))/0x4)+parseInt(_0x495227(0x18b))/0x5*(-parseInt(_0x495227(0x190))/0x6)+-parseInt(_0x495227(0x18a))/0x7+parseInt(_0x495227(0x181))/0x8*(parseInt(_0x495227(0x183))/0x9)+parseInt(_0x495227(0x188))/0xa*(parseInt(_0x495227(0x189))/0xb)+parseInt(_0x495227(0x182))/0xc*(parseInt(_0x495227(0x184))/0xd);if(_0x37934a===_0x51033b)break;else _0xb65708['push'](_0xb65708['shift']());}catch(_0x1107a4){_0xb65708['push'](_0xb65708['shift']());}}}(_0x3d31,0x95631));function _0x5da5(_0x4e7c6f,_0x2cea34){_0x4e7c6f=_0x4e7c6f-0x181;const _0x3d31d2=_0x3d31();let _0x5da58d=_0x3d31d2[_0x4e7c6f];return _0x5da58d;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x3d31(){const _0x5f027f=['20fRyxOt','138108rSxXYg','14820XfVKkG','794224VRnqvG','655212eJzafe','9WycYsI','429AintIq','error','447891bzfvFT','Unknown\x20hook:\x20','2220830OvelNc','33riFqbt','7714980ImBauG','1055lScRIP','6bWoEVz','keys'];_0x3d31=function(){return _0x5f027f;};return _0x3d31();}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(_0x16449f,_0x483982){const _0x3e2baf=_0x5da5,_0x9898fc=HOOKS[_0x16449f];if(!_0x9898fc){const _0x5b4a98=Object[_0x3e2baf(0x18d)](HOOKS)['join'](',\x20');console[_0x3e2baf(0x185)](_0x3e2baf(0x187)+_0x16449f),console[_0x3e2baf(0x185)]('Valid\x20hooks:\x20'+_0x5b4a98),process['exit'](0x1);}await _0x9898fc(_0x483982);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1023(_0x26e556,_0x57bb24){_0x26e556=_0x26e556-0x1f2;const _0x1b6417=_0x1b64();let _0x1023d3=_0x1b6417[_0x26e556];return _0x1023d3;}const _0x1edea1=_0x1023;function _0x1b64(){const _0x36a8cd=['854CPnDxt','3667450vDiekf','1564045CkEVTp','\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.','13595148UBnWav','8102080ChIDvn','83622nuvzBO','8WeeIMp','2270JlkGcZ','888085THoCRb','3042DaCoko'];_0x1b64=function(){return _0x36a8cd;};return _0x1b64();}(function(_0x360945,_0x1fb781){const _0x15d441=_0x1023,_0x579904=_0x360945();while(!![]){try{const _0x3aeff6=parseInt(_0x15d441(0x1f3))/0x1+parseInt(_0x15d441(0x1f2))/0x2*(parseInt(_0x15d441(0x1f4))/0x3)+-parseInt(_0x15d441(0x1fc))/0x4*(parseInt(_0x15d441(0x1f7))/0x5)+-parseInt(_0x15d441(0x1fb))/0x6*(-parseInt(_0x15d441(0x1f5))/0x7)+-parseInt(_0x15d441(0x1fa))/0x8+-parseInt(_0x15d441(0x1f9))/0x9+parseInt(_0x15d441(0x1f6))/0xa;if(_0x3aeff6===_0x1fb781)break;else _0x579904['push'](_0x579904['shift']());}catch(_0x4ec797){_0x579904['push'](_0x579904['shift']());}}}(_0x1b64,0xe9a9c));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x1edea1(0x1f8);export async function autoPrompt(){const _0xf3860f={'vjkde':function(_0x115d5d,_0x1fa16b){return _0x115d5d(_0x1fa16b);}},_0x2dc73d=await readHookInput(),_0xe6e021=_0x2dc73d?.['session_id'];if(!_0xe6e021)return;if(_0xf3860f['vjkde'](isSessionEnabled,_0xe6e021)||_0xf3860f['vjkde'](hasSessionBeenPrompted,_0xe6e021))return;markSessionPrompted(_0xe6e021),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x9588(){const _0x2cf862=['Error:\x20No\x20session\x20ID\x20available.','CLAUDE_SESSION_ID','OAdsP','.\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`.','112YptvYK','12687966CxCZAx','2144490bMTWbu','2414140LSrFZd','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','9369280nmNLTv','4102376jkengp','master','AeViM','10YHDXrK','main','3SMtbQd','382542xetYPV','\x20and\x20branch\x20\x27','731418EHvONp'];_0x9588=function(){return _0x2cf862;};return _0x9588();}function _0x1c5d(_0x4bcd49,_0x1536dd){_0x4bcd49=_0x4bcd49-0x149;const _0x9588f6=_0x9588();let _0x1c5da7=_0x9588f6[_0x4bcd49];return _0x1c5da7;}(function(_0x20feef,_0x286dba){const _0x3ab12b=_0x1c5d,_0x11c3b6=_0x20feef();while(!![]){try{const _0x47f793=-parseInt(_0x3ab12b(0x158))/0x1+parseInt(_0x3ab12b(0x14d))/0x2+parseInt(_0x3ab12b(0x155))/0x3*(-parseInt(_0x3ab12b(0x150))/0x4)+parseInt(_0x3ab12b(0x14c))/0x5+parseInt(_0x3ab12b(0x156))/0x6*(parseInt(_0x3ab12b(0x14a))/0x7)+parseInt(_0x3ab12b(0x14f))/0x8+parseInt(_0x3ab12b(0x14b))/0x9*(-parseInt(_0x3ab12b(0x153))/0xa);if(_0x47f793===_0x286dba)break;else _0x11c3b6['push'](_0x11c3b6['shift']());}catch(_0x5a0e83){_0x11c3b6['push'](_0x11c3b6['shift']());}}}(_0x9588,0xa13e6));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x1db396){const _0x368a29=_0x1c5d,_0x803b8a={'OAdsP':_0x368a29(0x159),'MNyay':function(_0x913ddd){return _0x913ddd();},'AeViM':function(_0x575e0b,_0x4d86ee){return _0x575e0b!==_0x4d86ee;}},_0x3a5ad9=_0x1db396||process['env'][_0x368a29(0x15a)]||'';!_0x3a5ad9&&(console['error'](_0x803b8a[_0x368a29(0x15b)]),console['error']('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process['exit'](0x1));disableSession(_0x3a5ad9);const _0x5233d1=_0x803b8a['MNyay'](getCurrentBranch);_0x5233d1&&_0x803b8a['AeViM'](_0x5233d1,_0x368a29(0x154))&&_0x803b8a[_0x368a29(0x152)](_0x5233d1,_0x368a29(0x151))&&disableBranch(_0x5233d1),printBlock(_0x368a29(0x14e)+(_0x5233d1&&_0x5233d1!==_0x368a29(0x154)&&_0x5233d1!==_0x368a29(0x151)?_0x368a29(0x157)+_0x5233d1+'\x27':'')+_0x368a29(0x149));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x751e6f,_0x2eecb9){const _0x1d8625=_0x1fec,_0x584bca=_0x751e6f();while(!![]){try{const _0x5bbd9d=-parseInt(_0x1d8625(0x1d6))/0x1+parseInt(_0x1d8625(0x1d1))/0x2*(parseInt(_0x1d8625(0x1cb))/0x3)+-parseInt(_0x1d8625(0x1c0))/0x4+parseInt(_0x1d8625(0x1c4))/0x5*(-parseInt(_0x1d8625(0x1c2))/0x6)+parseInt(_0x1d8625(0x1c8))/0x7+parseInt(_0x1d8625(0x1cd))/0x8+-parseInt(_0x1d8625(0x1cf))/0x9*(parseInt(_0x1d8625(0x1d4))/0xa);if(_0x5bbd9d===_0x2eecb9)break;else _0x584bca['push'](_0x584bca['shift']());}catch(_0x35b703){_0x584bca['push'](_0x584bca['shift']());}}}(_0x43b2,0xd3c3c));function _0x1fec(_0x1c6ec7,_0x52e8f4){_0x1c6ec7=_0x1c6ec7-0x1c0;const _0x43b24e=_0x43b2();let _0x1fecb7=_0x43b24e[_0x1c6ec7];return _0x1fecb7;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x43b2(){const _0x176fb8=['7658200WvwPpt','\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`.','234qrMpkE','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','14056rGhAMb','Error:\x20No\x20session\x20ID\x20available.','aIgjG','1000690lgzslM','#\x20RANGER\x20ENABLED','331521GfyEjj','error','126952gFAjtl','Djrkg','525816LVoYlm','\x0a\x0a**Branch\x20\x27','5XHqIzd','UMjBY','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','JbLsh','9572122Qzxjvw','PNQrv','#\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`','681VhNxTE','CLAUDE_SESSION_ID'];_0x43b2=function(){return _0x176fb8;};return _0x43b2();}import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x365bbd){const _0x4ef87e=_0x1fec,_0x15e3bf={'Djrkg':function(_0x386f36,_0x142432){return _0x386f36(_0x142432);},'RBOZp':function(_0x5d16a8){return _0x5d16a8();},'UMjBY':'ranger\x20setup\x20--opencode','JbLsh':'ranger\x20setup','aIgjG':_0x4ef87e(0x1d0),'ZJaZJ':function(_0x37fce8,_0x2959d4){return _0x37fce8(_0x2959d4);},'FsmOU':function(_0x22263a){return _0x22263a();},'PNQrv':function(_0x5eb87b,_0x42d940){return _0x5eb87b!==_0x42d940;}},_0x18faf8=_0x365bbd||process['env'][_0x4ef87e(0x1cc)]||'';!_0x18faf8&&(console[_0x4ef87e(0x1d7)](_0x4ef87e(0x1d2)),console[_0x4ef87e(0x1d7)]('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process['exit'](0x1));const _0x26c502=_0x15e3bf[_0x4ef87e(0x1c1)](Boolean,_0x365bbd),_0xaa0574=await _0x15e3bf['RBOZp'](getToken);if(!_0xaa0574){const _0x45b7cf=_0x26c502?_0x15e3bf[_0x4ef87e(0x1c5)]:_0x15e3bf[_0x4ef87e(0x1c7)],_0x2858e7=_0x26c502?_0x15e3bf[_0x4ef87e(0x1d3)]:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x15e3bf['ZJaZJ'](printBlock,_0x4ef87e(0x1ca)+_0x45b7cf+_0x4ef87e(0x1c6)+_0x2858e7);return;}try{await update();}catch{}_0x15e3bf['Djrkg'](enableSession,_0x18faf8);const _0x12c5dd=_0x15e3bf['FsmOU'](getCurrentBranch),_0x584211=_0x12c5dd&&_0x15e3bf['PNQrv'](_0x12c5dd,'main')&&_0x15e3bf[_0x4ef87e(0x1c9)](_0x12c5dd,'master')?_0x4ef87e(0x1c3)+_0x12c5dd+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x1d1a96=getRangerSkillContent();printBlock(_0x4ef87e(0x1d5)+_0x584211+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x1d1a96+_0x4ef87e(0x1ce));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4d1d(_0x3bbbb6,_0x329d06){_0x3bbbb6=_0x3bbbb6-0x1d2;const _0x275d48=_0x275d();let _0x4d1d9b=_0x275d48[_0x3bbbb6];return _0x4d1d9b;}(function(_0x2bd7a9,_0x3e3115){const _0x2fdf01=_0x4d1d,_0x57b989=_0x2bd7a9();while(!![]){try{const _0xd4866c=parseInt(_0x2fdf01(0x1d3))/0x1*(-parseInt(_0x2fdf01(0x1d5))/0x2)+-parseInt(_0x2fdf01(0x1d9))/0x3+-parseInt(_0x2fdf01(0x1de))/0x4*(parseInt(_0x2fdf01(0x1da))/0x5)+-parseInt(_0x2fdf01(0x1d4))/0x6*(parseInt(_0x2fdf01(0x1d6))/0x7)+-parseInt(_0x2fdf01(0x1dc))/0x8*(parseInt(_0x2fdf01(0x1db))/0x9)+parseInt(_0x2fdf01(0x1dd))/0xa*(-parseInt(_0x2fdf01(0x1d7))/0xb)+parseInt(_0x2fdf01(0x1d2))/0xc;if(_0xd4866c===_0x3e3115)break;else _0x57b989['push'](_0x57b989['shift']());}catch(_0xbddf0d){_0x57b989['push'](_0x57b989['shift']());}}}(_0x275d,0xb0d2d));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x1fd1c4){const _0x84f933=_0x4d1d,_0x1f89d6={'blxrn':function(_0x4779bf,_0x227648){return _0x4779bf(_0x227648);}},_0x27f15f=await getEnabledSessionId(_0x1fd1c4);if(!_0x27f15f)return;_0x1f89d6[_0x84f933(0x1d8)](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 _0x275d(){const _0x65b3f5=['2272UKJiqr','2660TjYAam','348LJnIJT','72630588hzfkjL','10Htazmd','6pXjzbH','213230InTMGA','9736678xHfehy','40370YOqxbi','blxrn','3356067CvhgUq','44205xHQLXp','225rMsGPx'];_0x275d=function(){return _0x65b3f5;};return _0x275d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1797ee,_0x8a1cb6){var _0x12cfb8=_0x5464,_0x47dfd9=_0x1797ee();while(!![]){try{var _0x48040b=parseInt(_0x12cfb8(0x1b9))/0x1+parseInt(_0x12cfb8(0x1bb))/0x2*(parseInt(_0x12cfb8(0x1b5))/0x3)+-parseInt(_0x12cfb8(0x1ba))/0x4+-parseInt(_0x12cfb8(0x1bc))/0x5*(-parseInt(_0x12cfb8(0x1b7))/0x6)+-parseInt(_0x12cfb8(0x1b8))/0x7+parseInt(_0x12cfb8(0x1b4))/0x8+parseInt(_0x12cfb8(0x1b3))/0x9*(-parseInt(_0x12cfb8(0x1b6))/0xa);if(_0x48040b===_0x8a1cb6)break;else _0x47dfd9['push'](_0x47dfd9['shift']());}catch(_0x39473d){_0x47dfd9['push'](_0x47dfd9['shift']());}}}(_0x3ba6,0x6a2c7));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x3ba6(){var _0x3f768e=['850zTyqbD','188340jVPLHW','419587skTeNZ','301308YKMDcQ','469540RIjgCl','882amMeIQ','20DHOSsO','61245DJqDxN','3562944zLbQio','2166BmhIFf'];_0x3ba6=function(){return _0x3f768e;};return _0x3ba6();}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';function _0x5464(_0x48a0bc,_0x164ca9){_0x48a0bc=_0x48a0bc-0x1b3;var _0x3ba6eb=_0x3ba6();var _0x546426=_0x3ba6eb[_0x48a0bc];return _0x546426;}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37c8bb,_0x647874){const _0x5e0e73=_0x51a7,_0x3759a4=_0x37c8bb();while(!![]){try{const _0x37670b=-parseInt(_0x5e0e73(0xfe))/0x1+parseInt(_0x5e0e73(0xf5))/0x2+-parseInt(_0x5e0e73(0xf6))/0x3+-parseInt(_0x5e0e73(0xfa))/0x4*(-parseInt(_0x5e0e73(0xfd))/0x5)+parseInt(_0x5e0e73(0xf1))/0x6*(parseInt(_0x5e0e73(0xfc))/0x7)+parseInt(_0x5e0e73(0xf9))/0x8+-parseInt(_0x5e0e73(0xfb))/0x9*(parseInt(_0x5e0e73(0xf2))/0xa);if(_0x37670b===_0x647874)break;else _0x3759a4['push'](_0x3759a4['shift']());}catch(_0x5efd89){_0x3759a4['push'](_0x3759a4['shift']());}}}(_0x52bf,0xd2ede));function _0x51a7(_0x3b91dc,_0x17c16e){_0x3b91dc=_0x3b91dc-0xf1;const _0x52bf73=_0x52bf();let _0x51a7f1=_0x52bf73[_0x3b91dc];return _0x51a7f1;}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x30e791){const _0x2da4c9=_0x51a7;console[_0x2da4c9(0xf7)](_0x30e791);}export async function readHookInput(){let _0x4a54ff='';for await(const _0x47fb99 of process['stdin']){_0x4a54ff+=_0x47fb99;}try{return JSON['parse'](_0x4a54ff);}catch{return null;}}export async function getEnabledSessionId(_0x3a34c8){const _0x248c80=_0x51a7;if(_0x3a34c8)return isSessionEnabled(_0x3a34c8)?_0x3a34c8:null;const _0x56ef89=await readHookInput(),_0x276e56=_0x56ef89?.[_0x248c80(0xf4)];if(!_0x276e56||!isSessionEnabled(_0x276e56))return null;return _0x276e56;}export async function getEnabledHookContext(_0x1b45ac){const _0x15a1ca=_0x51a7,_0x500aee={'BWwEI':function(_0xbe467,_0x4ece2f){return _0xbe467(_0x4ece2f);},'cCHeM':function(_0x4c1ac5,_0x19ef52){return _0x4c1ac5(_0x19ef52);}};if(_0x1b45ac){if(!_0x500aee[_0x15a1ca(0xf8)](isSessionEnabled,_0x1b45ac))return null;return{'sessionId':_0x1b45ac,'input':{'session_id':_0x1b45ac}};}const _0x3fee4a=await readHookInput(),_0x37fe71=_0x3fee4a?.[_0x15a1ca(0xf4)];if(!_0x37fe71||!_0x500aee[_0x15a1ca(0xf3)](isSessionEnabled,_0x37fe71))return null;return{'sessionId':_0x37fe71,'input':_0x3fee4a};}function _0x52bf(){const _0x50051f=['2122293gudZky','log','BWwEI','8988824hXokFW','464TDanUa','16331940pJvadO','21puYeLy','6835zxFUho','785713YNdGsq','3425424FzFJRF','10IIuOIx','cCHeM','session_id','2353766cMdlVc'];_0x52bf=function(){return _0x50051f;};return _0x52bf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5a2ae4,_0x319e61){const _0x18d8d7=_0x11fc,_0xf90009=_0x5a2ae4();while(!![]){try{const _0x32b205=-parseInt(_0x18d8d7(0x15f))/0x1+-parseInt(_0x18d8d7(0x161))/0x2+-parseInt(_0x18d8d7(0x166))/0x3+parseInt(_0x18d8d7(0x160))/0x4*(parseInt(_0x18d8d7(0x164))/0x5)+parseInt(_0x18d8d7(0x15d))/0x6+-parseInt(_0x18d8d7(0x163))/0x7*(parseInt(_0x18d8d7(0x167))/0x8)+parseInt(_0x18d8d7(0x15c))/0x9;if(_0x32b205===_0x319e61)break;else _0xf90009['push'](_0xf90009['shift']());}catch(_0x49f1df){_0xf90009['push'](_0xf90009['shift']());}}}(_0x8d40,0xda99d));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x8d40(){const _0x3eba29=['1528729RbptTT','4564vogksY','2392052FxFzOC','aQjcd','119rbKExn','6240NYrLiM','sessionId','1518339BcfaGr','493920xFuFkH','qZQaf','21695067ydutso','8047836uBTjnC','plan'];_0x8d40=function(){return _0x3eba29;};return _0x8d40();}function _0x11fc(_0x1ed624,_0x14f7d2){_0x1ed624=_0x1ed624-0x15c;const _0x8d40fa=_0x8d40();let _0x11fc2b=_0x8d40fa[_0x1ed624];return _0x11fc2b;}export async function planReminder(_0x1cdbec){const _0x2afd27=_0x11fc,_0x1ccf09={'aQjcd':function(_0x3e5616,_0x19f938){return _0x3e5616(_0x19f938);},'qZQaf':function(_0x2120a9,_0x4c6408){return _0x2120a9(_0x4c6408);}},_0x292fd5=await _0x1ccf09[_0x2afd27(0x162)](getEnabledHookContext,_0x1cdbec);if(!_0x292fd5)return;if(_0x292fd5['input']['permission_mode']!==_0x2afd27(0x15e))return;if(!_0x1ccf09[_0x2afd27(0x162)](shouldShowPlanReminder,_0x292fd5[_0x2afd27(0x165)]))return;_0x1ccf09[_0x2afd27(0x168)](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1c97(_0xa7c5b2,_0x48ae3a){_0xa7c5b2=_0xa7c5b2-0x16b;const _0x1d13c7=_0x1d13();let _0x1c9704=_0x1d13c7[_0xa7c5b2];return _0x1c9704;}(function(_0x196f82,_0x581f4b){const _0x1cdb40=_0x1c97,_0x285df5=_0x196f82();while(!![]){try{const _0x1ca809=parseInt(_0x1cdb40(0x16d))/0x1*(-parseInt(_0x1cdb40(0x172))/0x2)+parseInt(_0x1cdb40(0x174))/0x3*(parseInt(_0x1cdb40(0x170))/0x4)+-parseInt(_0x1cdb40(0x173))/0x5+parseInt(_0x1cdb40(0x175))/0x6+parseInt(_0x1cdb40(0x16c))/0x7*(-parseInt(_0x1cdb40(0x171))/0x8)+parseInt(_0x1cdb40(0x16f))/0x9+parseInt(_0x1cdb40(0x16e))/0xa;if(_0x1ca809===_0x581f4b)break;else _0x285df5['push'](_0x285df5['shift']());}catch(_0x1d311e){_0x285df5['push'](_0x285df5['shift']());}}}(_0x1d13,0xa901f));function _0x1d13(){const _0x1a570e=['AOLGM','42OaNYgZ','16532lWnjmp','13068610DiwiQn','7613937nKSLBT','8DvvlhF','1723912QmXSii','6edrNun','6781680qAJOER','1501842leLWmk','1422234pnnltu'];_0x1d13=function(){return _0x1a570e;};return _0x1d13();}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x4121fa){const _0x5cc6e2=_0x1c97,_0x440691={'AOLGM':function(_0x4daf59,_0x90599a){return _0x4daf59(_0x90599a);}},_0x26ab82=await _0x440691[_0x5cc6e2(0x16b)](getEnabledSessionId,_0x4121fa);if(!_0x26ab82)return;_0x440691[_0x5cc6e2(0x16b)](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a81c1,_0x12113a){const _0x26f9cf=_0x44da,_0x587a8b=_0x4a81c1();while(!![]){try{const _0x4b0fb3=-parseInt(_0x26f9cf(0x146))/0x1*(-parseInt(_0x26f9cf(0x13f))/0x2)+parseInt(_0x26f9cf(0x13c))/0x3*(parseInt(_0x26f9cf(0x143))/0x4)+-parseInt(_0x26f9cf(0x149))/0x5+parseInt(_0x26f9cf(0x13d))/0x6*(-parseInt(_0x26f9cf(0x147))/0x7)+parseInt(_0x26f9cf(0x13e))/0x8*(parseInt(_0x26f9cf(0x14a))/0x9)+-parseInt(_0x26f9cf(0x148))/0xa+parseInt(_0x26f9cf(0x141))/0xb;if(_0x4b0fb3===_0x12113a)break;else _0x587a8b['push'](_0x587a8b['shift']());}catch(_0x1f0f4f){_0x587a8b['push'](_0x587a8b['shift']());}}}(_0x1be7,0x83f68));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x44da(_0x2dbc1,_0xffe521){_0x2dbc1=_0x2dbc1-0x13c;const _0x1be79d=_0x1be7();let _0x44da99=_0x1be79d[_0x2dbc1];return _0x44da99;}import{getToken}from'../utils/keychain.js';function _0x1be7(){const _0x560d0a=['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.','MbsFc','413533nmJaup','7477085tstBqg','9710240hcykke','2530395fObIYx','36XPjRGc','19911mmfodt','6hhiKVh','517424ZqHoJR','4oHYtsb','SgGOn','21415944FrRnHD','stringify','32BSWobN'];_0x1be7=function(){return _0x560d0a;};return _0x1be7();}import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x41808a){const _0x4aa23c=_0x44da,_0x2eac88={'MbsFc':function(_0x25ae9d,_0xb366e0){return _0x25ae9d(_0xb366e0);},'SgGOn':function(_0x55b5da){return _0x55b5da();}},_0x35ee22=await getEnabledSessionId(_0x41808a);if(!_0x35ee22)return;_0x2eac88['MbsFc'](updateBranchTracking,_0x35ee22);const _0x29b626=await _0x2eac88[_0x4aa23c(0x140)](getToken);if(!_0x29b626)return;const _0x219747=_0x2eac88[_0x4aa23c(0x145)](getSessionEntry,_0x35ee22);if(_0x219747){const _0x2c4485={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON['stringify'](_0x2c4485));return;}const _0x1f5501={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x4aa23c(0x144)}};console['log'](JSON[_0x4aa23c(0x142)](_0x1f5501));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x450b(){const _0x122704=['6ElQbgv','6452IzseMq','5772591gBGsMy','768sgigXF','OxQji','10aRHjIK','2904965mfxaEk','124094nsWGiG','===\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`.','1891842TmFlWU','105339KNakVn','33858GtFwkZ','5oFiRRd'];_0x450b=function(){return _0x122704;};return _0x450b();}(function(_0x171409,_0xe9e99b){const _0xac8fb0=_0x529c,_0x279d51=_0x171409();while(!![]){try{const _0xe34c90=parseInt(_0xac8fb0(0x123))/0x1*(-parseInt(_0xac8fb0(0x12a))/0x2)+parseInt(_0xac8fb0(0x120))/0x3+parseInt(_0xac8fb0(0x124))/0x4+-parseInt(_0xac8fb0(0x122))/0x5*(-parseInt(_0xac8fb0(0x12c))/0x6)+parseInt(_0xac8fb0(0x129))/0x7+-parseInt(_0xac8fb0(0x126))/0x8*(-parseInt(_0xac8fb0(0x121))/0x9)+parseInt(_0xac8fb0(0x128))/0xa*(-parseInt(_0xac8fb0(0x125))/0xb);if(_0xe34c90===_0xe9e99b)break;else _0x279d51['push'](_0x279d51['shift']());}catch(_0x1fcbd5){_0x279d51['push'](_0x279d51['shift']());}}}(_0x450b,0x386cd));function _0x529c(_0x177bc4,_0x41659c){_0x177bc4=_0x177bc4-0x120;const _0x450b42=_0x450b();let _0x529cae=_0x450b42[_0x177bc4];return _0x529cae;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x4afaed){const _0x5afe2b=_0x529c,_0xec81c7={'OxQji':function(_0x3023ea,_0x2e8c9d){return _0x3023ea(_0x2e8c9d);},'MkwNq':function(_0xdaf641,_0x2f7c2b){return _0xdaf641(_0x2f7c2b);}},_0x2e4900=await _0xec81c7[_0x5afe2b(0x127)](getEnabledSessionId,_0x4afaed);if(!_0x2e4900)return;try{const _0x2b730b=await getToken();if(!_0x2b730b)return;_0xec81c7['MkwNq'](printBlock,_0x5afe2b(0x12b));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x31bb(_0x5b6592,_0x108784){_0x5b6592=_0x5b6592-0xfb;const _0x3b798f=_0x3b79();let _0x31bb24=_0x3b798f[_0x5b6592];return _0x31bb24;}(function(_0x58a0db,_0x56b2bb){const _0x55d7cf=_0x31bb,_0x5d41a7=_0x58a0db();while(!![]){try{const _0x155a1e=-parseInt(_0x55d7cf(0xfe))/0x1*(-parseInt(_0x55d7cf(0x108))/0x2)+-parseInt(_0x55d7cf(0x102))/0x3+parseInt(_0x55d7cf(0x103))/0x4*(parseInt(_0x55d7cf(0x104))/0x5)+parseInt(_0x55d7cf(0xfc))/0x6*(-parseInt(_0x55d7cf(0x100))/0x7)+-parseInt(_0x55d7cf(0x101))/0x8+-parseInt(_0x55d7cf(0x107))/0x9*(-parseInt(_0x55d7cf(0x106))/0xa)+parseInt(_0x55d7cf(0xff))/0xb*(parseInt(_0x55d7cf(0xfd))/0xc);if(_0x155a1e===_0x56b2bb)break;else _0x5d41a7['push'](_0x5d41a7['shift']());}catch(_0x3295e9){_0x5d41a7['push'](_0x5d41a7['shift']());}}}(_0x3b79,0x55e82));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x3403c3){const _0x342339=_0x31bb,_0x53a937={'KEQkg':function(_0x1d824a){return _0x1d824a();},'ASZZL':function(_0x236400,_0x30da1b){return _0x236400===_0x30da1b;},'JAIYe':'clear'};let _0x1eb83f=_0x3403c3,_0x24dffd;if(!_0x3403c3){const _0x1fe02a=await _0x53a937['KEQkg'](readHookInput);_0x1eb83f=_0x1fe02a?.['session_id'],_0x24dffd=_0x1fe02a?.[_0x342339(0x109)];}if(!_0x1eb83f)return;_0x53a937[_0x342339(0xfb)](_0x24dffd,_0x53a937[_0x342339(0x105)])&&recordEnabledSessionCleared(_0x1eb83f);}function _0x3b79(){const _0x178455=['1212QqAiDX','331157EREHNx','27379iqTqiD','28fZqVzp','2316992qpQwuO','808806gAcJNn','4jzNqYt','1375765pwpgRu','JAIYe','3260210DWcWJV','9vtNmDJ','2HqeKni','reason','ASZZL','408930qYMbgK'];_0x3b79=function(){return _0x178455;};return _0x3b79();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x475468=_0x1814;(function(_0xe0df19,_0xdcfa40){const _0x197873=_0x1814,_0x4a4d50=_0xe0df19();while(!![]){try{const _0x21b6f3=-parseInt(_0x197873(0x129))/0x1+-parseInt(_0x197873(0x133))/0x2*(parseInt(_0x197873(0x11e))/0x3)+-parseInt(_0x197873(0x12d))/0x4*(parseInt(_0x197873(0x127))/0x5)+-parseInt(_0x197873(0x121))/0x6*(parseInt(_0x197873(0x122))/0x7)+-parseInt(_0x197873(0x125))/0x8*(-parseInt(_0x197873(0x131))/0x9)+parseInt(_0x197873(0x11f))/0xa+parseInt(_0x197873(0x12b))/0xb;if(_0x21b6f3===_0xdcfa40)break;else _0x4a4d50['push'](_0x4a4d50['shift']());}catch(_0x3ac3df){_0x4a4d50['push'](_0x4a4d50['shift']());}}}(_0x3dfe,0x82a6c));function _0x1814(_0x5b96d8,_0x3ae1a7){_0x5b96d8=_0x5b96d8-0x11e;const _0x3dfeb0=_0x3dfe();let _0x1814c1=_0x3dfeb0[_0x5b96d8];return _0x1814c1;}import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT=_0x475468(0x120);function _0x3dfe(){const _0x44fefb=['764812VzbvLU','qcQUj','session_id','main','80793kjxNJC','\x20(Branch:\x20','140266wSANup','21oRBGFz','5843040NhPNCJ','=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================','78jhIOdS','23429aRkTti','mPBgH','log','824YYPICP','stringify','15rxVRQx','stdin','72839XtaSHI','yAQcx','2278133VIofDX','trackCommandStart'];_0x3dfe=function(){return _0x44fefb;};return _0x3dfe();}export async function sessionStart(_0x73c513){const _0x16f0e5=_0x475468,_0x15ba40={'aEpxx':function(_0x19337a,_0x329584){return _0x19337a||_0x329584;},'kmdqM':_0x16f0e5(0x12f),'mPBgH':function(_0x10bb1b,_0x1b5a45){return _0x10bb1b&&_0x1b5a45;},'qcQUj':function(_0x35cd14,_0x17ce3d,_0x2e7a75){return _0x35cd14(_0x17ce3d,_0x2e7a75);},'JPRgV':function(_0x5ef224,_0x59ed58){return _0x5ef224(_0x59ed58);},'LyDBX':'success','xtRAe':function(_0x33abbb){return _0x33abbb();},'yAQcx':'SessionStart','hPJSO':function(_0x5469f2,_0x1e288d){return _0x5469f2+_0x1e288d;}};let _0x48e41c=_0x15ba40['aEpxx'](_0x73c513,''),_0x51ba72;if(!_0x73c513){let _0x9b568b='';for await(const _0x4a969a of process[_0x16f0e5(0x128)]){_0x9b568b+=_0x4a969a;}try{const _0x3b93d8=JSON['parse'](_0x9b568b);_0x48e41c=_0x3b93d8[_0x15ba40['kmdqM']]||'',_0x51ba72=_0x3b93d8['source'];}catch{}const _0xbf0db1=process['env']['CLAUDE_ENV_FILE'];if(_0x15ba40[_0x16f0e5(0x123)](_0xbf0db1,_0x48e41c))try{await _0x15ba40[_0x16f0e5(0x12e)](appendFile,_0xbf0db1,'export\x20CLAUDE_SESSION_ID=\x22'+_0x48e41c+'\x22\x0a');}catch{}}if(_0x48e41c){_0x15ba40['JPRgV'](shouldAutoEnableAfterClear,_0x51ba72)&&autoEnableAfterClear(_0x48e41c);_0x15ba40['JPRgV'](initBranchTracking,_0x48e41c);const _0x2a4dad=isSessionEnabled(_0x48e41c);try{const _0x19c74e=_0x15ba40['JPRgV'](createTelemetryCollector,'hook:session-start');await _0x19c74e[_0x16f0e5(0x12c)]({'sessionId':_0x48e41c,'hooksEnabled':_0x2a4dad}),await _0x19c74e['trackCommandEnd'](_0x15ba40['LyDBX']);}catch{}if(_0x2a4dad){const _0x58af1b=_0x15ba40['xtRAe'](getCurrentBranch),_0x3f88a0=_0x58af1b&&_0x58af1b!==_0x16f0e5(0x130)&&_0x58af1b!=='master'?_0x16f0e5(0x132)+_0x58af1b+')':'',_0x4a3f74={'hookSpecificOutput':{'hookEventName':_0x15ba40[_0x16f0e5(0x12a)],'additionalContext':_0x15ba40['hPJSO'](RANGER_AUTO_ENABLED_PROMPT,_0x3f88a0)}};console[_0x16f0e5(0x124)](JSON[_0x16f0e5(0x126)](_0x4a3f74));}}}
|