@ranger-testing/ranger-cli 3.1.5-alpha.aebd071-49 → 3.1.5
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/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2b50e3=_0x2c4d;(function(_0x5040e2,_0x44632d){const _0x1dac14=_0x2c4d,_0x3e51ee=_0x5040e2();while(!![]){try{const _0x6a40ad=-parseInt(_0x1dac14(0x20f))/0x1+-parseInt(_0x1dac14(0x245))/0x2*(-parseInt(_0x1dac14(0x21a))/0x3)+parseInt(_0x1dac14(0x24e))/0x4+-parseInt(_0x1dac14(0x24f))/0x5+parseInt(_0x1dac14(0x26a))/0x6+-parseInt(_0x1dac14(0x1f6))/0x7*(parseInt(_0x1dac14(0x1f3))/0x8)+parseInt(_0x1dac14(0x1c9))/0x9;if(_0x6a40ad===_0x44632d)break;else _0x3e51ee['push'](_0x3e51ee['shift']());}catch(_0x2b262c){_0x3e51ee['push'](_0x3e51ee['shift']());}}}(_0x5ea4,0x21a6b));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x2959ca from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x2b50e3(0x224),bold=_0x272b65=>_0x2b50e3(0x230)+_0x272b65+_0x2b50e3(0x285);function getGitRepoUrl(){const _0x377abd=_0x2b50e3,_0x5c50d8={'tPwOH':function(_0x4f0932,_0x50b96f,_0x4d4169){return _0x4f0932(_0x50b96f,_0x4d4169);},'txbIr':'git\x20remote\x20get-url\x20origin','RUISP':'pipe'};try{const _0x4c3e28=_0x5c50d8[_0x377abd(0x1c3)](execSync,_0x5c50d8[_0x377abd(0x20c)],{'encoding':'utf-8','stdio':[_0x5c50d8['RUISP'],_0x377abd(0x20b),_0x5c50d8['RUISP']]})[_0x377abd(0x27b)]();return _0x4c3e28['replace'](/\.git$/,'')[_0x377abd(0x281)](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x43f1f4=_0x2b50e3,_0x47a03f={'ABrFC':function(_0x3d8fd8,_0x3804d2,_0x594a05){return _0x3d8fd8(_0x3804d2,_0x594a05);},'QQeLA':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','YCJOC':'utf-8'};try{return _0x47a03f[_0x43f1f4(0x21c)](execSync,_0x47a03f[_0x43f1f4(0x270)],{'encoding':_0x47a03f['YCJOC'],'stdio':['pipe','pipe',_0x43f1f4(0x20b)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0xcb982a=_0x2b50e3,_0x5d16ec={'ZAeLk':function(_0xf24896,_0x3994e2,_0x202f86){return _0xf24896(_0x3994e2,_0x202f86);},'GpScU':function(_0x31a1c1){return _0x31a1c1();},'WwhnS':function(_0x124187,_0xaae09e,_0x7c9d7e){return _0x124187(_0xaae09e,_0x7c9d7e);}},_0x389b85=_0x5d16ec[_0xcb982a(0x239)](join,_0x5d16ec['GpScU'](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x389b85))return null;try{const _0xe7d8c7=await _0x5d16ec['WwhnS'](readFile,_0x389b85,'utf-8');return _0xe7d8c7[_0xcb982a(0x27b)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x4eda86){const _0x37bb1e=_0x2b50e3,_0x3835d6={'RWYuC':function(_0x2e01c5,_0x205b9d,_0x2c9036){return _0x2e01c5(_0x205b9d,_0x2c9036);},'kkJfZ':function(_0x31f8db,_0x554d6d,_0x1d6f5e,_0x2eb814){return _0x31f8db(_0x554d6d,_0x1d6f5e,_0x2eb814);}},_0x5b6e5f=getRangerDir(),_0x5644d4=_0x3835d6[_0x37bb1e(0x280)](join,_0x5b6e5f,ACTIVE_FEATURE_FILE);!existsSync(_0x5b6e5f)&&await mkdir(_0x5b6e5f,{'recursive':!![]}),await _0x3835d6[_0x37bb1e(0x25a)](writeFile,_0x5644d4,_0x4eda86,'utf-8');}function getProgressDisplay(_0x5dcd01){const _0x11d637=_0x2b50e3,_0x2637a8={'UBTIx':function(_0x45b0e4,_0x5c39d1){return _0x45b0e4+_0x5c39d1;},'EsiBR':function(_0x36bc1a,_0x2a99b6){return _0x36bc1a===_0x2a99b6;},'jafqR':function(_0x4c520a,_0x1a5380){return _0x4c520a*_0x1a5380;},'cBYMg':function(_0x384813,_0x219e36){return _0x384813-_0x219e36;},'tCDMd':function(_0x24572a,_0x277402){return _0x24572a>_0x277402;}},_0x285b19=_0x5dcd01[_0x11d637(0x272)]||0x0,_0x3e7cee=_0x5dcd01['verificationInProgressItems']||0x0,_0x50b80a=_0x5dcd01['blockedItems']||0x0,_0x51a441=_0x5dcd01['incompleteItems']||0x0,_0x558536=_0x5dcd01[_0x11d637(0x1f0)]||0x0,_0x34d781=_0x2637a8['UBTIx'](_0x2637a8['UBTIx'](_0x2637a8['UBTIx'](_0x2637a8[_0x11d637(0x266)](_0x285b19,_0x3e7cee),_0x50b80a),_0x51a441),_0x558536);if(_0x2637a8[_0x11d637(0x1ac)](_0x34d781,0x0))return'-';const _0x1c299f=0xa,_0x2297d6=Math[_0x11d637(0x240)](_0x2637a8[_0x11d637(0x204)](_0x285b19/_0x34d781,_0x1c299f)),_0x2950e8=_0x2637a8[_0x11d637(0x266)]('█'['repeat'](_0x2297d6),'░'['repeat'](_0x2637a8[_0x11d637(0x1bf)](_0x1c299f,_0x2297d6))),_0x4e70f0=[];if(_0x50b80a>0x0)_0x4e70f0[_0x11d637(0x276)](_0x50b80a+_0x11d637(0x1e9));if(_0x2637a8['tCDMd'](_0x51a441,0x0))_0x4e70f0[_0x11d637(0x276)](_0x51a441+_0x11d637(0x1b6));if(_0x2637a8[_0x11d637(0x243)](_0x3e7cee,0x0))_0x4e70f0[_0x11d637(0x276)](_0x3e7cee+_0x11d637(0x1d0));const _0x129441=_0x4e70f0[_0x11d637(0x1d2)]>0x0?'\x20('+_0x4e70f0['join'](',\x20')+')':'';return _0x2950e8+'\x20'+_0x285b19+'/'+_0x34d781+'\x20verified'+_0x129441;}function getCurrentSessionItems(_0x144e3a,_0x13d984){const _0x414718=_0x2b50e3;if(!_0x144e3a[_0x414718(0x217)])return _0x13d984['filter'](_0x38b165=>!_0x38b165[_0x414718(0x228)]);return _0x13d984['filter'](_0x4333d3=>_0x4333d3['sessionId']===_0x144e3a[_0x414718(0x217)]||!_0x4333d3['sessionId']);}function displayFeature(_0x23ca46,_0x133aec){const _0x54a7e9=_0x2b50e3,_0xc1d10e={'rmpod':function(_0x2c330d,_0x32b0c5){return _0x2c330d(_0x32b0c5);},'mSsSi':function(_0x137e97,_0x764086){return _0x137e97<_0x764086;},'SMeXo':function(_0x254a9c,_0x55fec2){return _0x254a9c===_0x55fec2;},'ssXLy':function(_0x291986,_0x5202b8){return _0x291986===_0x5202b8;},'mJJfP':'verified','CIBOX':'incomplete','XewaD':function(_0x5efb9b,_0x4ec3ed){return _0x5efb9b===_0x4ec3ed;},'JUiHv':'verification_in_progress','DIFkr':function(_0x2affea,_0x2ca18e){return _0x2affea>_0x2ca18e;},'YURDf':function(_0x191b98,_0x363b93){return _0x191b98!==_0x363b93;},'ygbRv':'\x20[has\x20reviewer\x20feedback]','dRQUJ':function(_0x455eaf,_0x1d38a7){return _0x455eaf+_0x1d38a7;},'TEwHs':function(_0x5ecbcd,_0x34bb01){return _0x5ecbcd===_0x34bb01;},'ItUTA':_0x54a7e9(0x1c5),'bVlcN':function(_0x14c29c,_0x100d47){return _0x14c29c===_0x100d47;}};console['log']('\x0a'+_0x23ca46['name']+'\x20('+_0x23ca46[_0x54a7e9(0x22f)]+')');_0x23ca46[_0x54a7e9(0x273)]&&console[_0x54a7e9(0x1b0)]('\x20\x20\x20Progress:\x20'+_0xc1d10e['rmpod'](getProgressDisplay,_0x23ca46['stats']));_0x23ca46[_0x54a7e9(0x1fd)]&&console[_0x54a7e9(0x1b0)](_0x54a7e9(0x1ee)+_0x23ca46[_0x54a7e9(0x1fd)]);_0x23ca46[_0x54a7e9(0x1ef)]&&console[_0x54a7e9(0x1b0)](_0x54a7e9(0x22d)+_0x23ca46['gitRepoUrl']);_0x23ca46['gitBranch']&&console[_0x54a7e9(0x1b0)](_0x54a7e9(0x1ec)+_0x23ca46['gitBranch']);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x23ca46[_0x54a7e9(0x238)])[_0x54a7e9(0x1fe)]());_0x23ca46['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x23ca46['completedAt'])[_0x54a7e9(0x1fe)]());if(_0x133aec&&_0x133aec['length']>0x0){console[_0x54a7e9(0x1b0)](_0x54a7e9(0x1cd));for(let _0xf1d042=0x0;_0xc1d10e['mSsSi'](_0xf1d042,_0x133aec[_0x54a7e9(0x1d2)]);_0xf1d042++){const _0x5a72ec=_0x133aec[_0xf1d042];let _0xf98edc;if(_0xc1d10e[_0x54a7e9(0x1da)](_0x5a72ec[_0x54a7e9(0x22b)],_0x54a7e9(0x1c5))&&_0xc1d10e['SMeXo'](_0x5a72ec[_0x54a7e9(0x1e5)],_0x54a7e9(0x1bb)))_0xf98edc='✅';else{if(_0xc1d10e[_0x54a7e9(0x1e2)](_0x5a72ec[_0x54a7e9(0x22b)],_0xc1d10e['mJJfP']))_0xf98edc='🟢';else{if(_0xc1d10e[_0x54a7e9(0x1da)](_0x5a72ec['status'],_0xc1d10e['CIBOX']))_0xf98edc='🟠';else{if(_0x5a72ec['status']==='blocked')_0xf98edc='🛑';else{if(_0x5a72ec[_0x54a7e9(0x22b)]==='closed')_0xf98edc='⛔';else _0xc1d10e[_0x54a7e9(0x286)](_0x5a72ec[_0x54a7e9(0x22b)],_0xc1d10e['JUiHv'])?_0xf98edc='⏳':_0xf98edc='⬜';}}}}const _0x429b7f=_0xc1d10e[_0x54a7e9(0x22a)](_0x5a72ec['version'],0x1)?_0x54a7e9(0x212)+_0x5a72ec[_0x54a7e9(0x1ce)]+')':'',_0x4a56d2=_0x5a72ec[_0x54a7e9(0x1ce)]>0x1&&_0x5a72ec[_0x54a7e9(0x1aa)]&&_0xc1d10e['YURDf'](_0x5a72ec[_0x54a7e9(0x22b)],'closed')&&_0x5a72ec[_0x54a7e9(0x22b)]!=='verified'?_0xc1d10e[_0x54a7e9(0x242)]:'';console[_0x54a7e9(0x1b0)]('\x20\x20\x20'+_0xc1d10e['dRQUJ'](_0xf1d042,0x1)+'.\x20'+_0xf98edc+'\x20'+_0x5a72ec[_0x54a7e9(0x1fd)]+_0x429b7f+_0x4a56d2);_0xc1d10e[_0x54a7e9(0x1e2)](_0x5a72ec['status'],_0x54a7e9(0x1f2))&&_0x5a72ec[_0x54a7e9(0x1f4)]&&console[_0x54a7e9(0x1b0)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x5a72ec[_0x54a7e9(0x1f4)]);_0x5a72ec[_0x54a7e9(0x22b)]===_0xc1d10e[_0x54a7e9(0x232)]&&_0x5a72ec[_0x54a7e9(0x1dc)]&&console['log'](_0x54a7e9(0x22e)+_0x5a72ec['incompleteReason']);if(_0xc1d10e['TEwHs'](_0x5a72ec[_0x54a7e9(0x22b)],_0xc1d10e[_0x54a7e9(0x278)])&&_0xc1d10e[_0x54a7e9(0x219)](_0x5a72ec[_0x54a7e9(0x1e5)],'approved'))console[_0x54a7e9(0x1b0)]('\x20\x20\x20\x20\x20\x20Approved');else _0x5a72ec['status']===_0xc1d10e['ItUTA']&&_0x5a72ec[_0x54a7e9(0x275)]&&console[_0x54a7e9(0x1b0)](_0x54a7e9(0x1bc)+_0x5a72ec[_0x54a7e9(0x275)]);}}}export async function featureCreate(_0x113e0b,_0x5a10e7){const _0x49ebdb=_0x2b50e3,_0x4d74f5={'cpRJL':function(_0xc24a19){return _0xc24a19();},'fMugI':function(_0x27f345,_0x5b29cb){return _0x27f345(_0x5b29cb);},'DHAar':function(_0x5b2d60){return _0x5b2d60();},'XfjvR':'\x0aCreating\x20feature\x20review...','KvUmm':function(_0x3e6f54,_0x19103d){return _0x3e6f54(_0x19103d);},'FKJZm':function(_0x1c83e9,_0x5c0ceb,_0x48fd5f){return _0x1c83e9(_0x5c0ceb,_0x48fd5f);}},{envNames:_0x30e4c5}=await _0x4d74f5[_0x49ebdb(0x284)](getEnvNames);if(_0x30e4c5[_0x49ebdb(0x1d2)]===0x0&&!process['env'][_0x49ebdb(0x24d)]){let _0x1eba29=0x0;try{_0x1eba29=(await listCloudProfiles())[_0x49ebdb(0x1d2)];}catch{_0x1eba29=0x1;}_0x1eba29===0x0&&console[_0x49ebdb(0x279)]('\x0a'+_0x4d74f5['fMugI'](formatProfileRequiredMessage,_0x31483d=>bold(_0x31483d)));}const _0x20114a=_0x5a10e7['scenarios']?_0x5a10e7[_0x49ebdb(0x264)][_0x49ebdb(0x26b)](_0xfe4101=>_0xfe4101['trim']()):[],_0x3b2ba4=_0x4d74f5[_0x49ebdb(0x237)](getGitRepoUrl),_0x446a2c=_0x4d74f5[_0x49ebdb(0x237)](getGitBranch);console['log'](_0x4d74f5[_0x49ebdb(0x1d7)]);const _0xeb21d0=await _0x4d74f5['KvUmm'](createFeature,{'name':_0x113e0b,'description':_0x5a10e7[_0x49ebdb(0x1fd)],'checklist':_0x20114a,'gitRepoUrl':_0x3b2ba4,'gitBranch':_0x446a2c});await setActiveFeatureId(_0xeb21d0['id']),await _0x4d74f5['fMugI'](tryStartCurrentSession,_0xeb21d0['id']);const _0x52f848=process[_0x49ebdb(0x1f5)]['CLAUDE_SESSION_ID'];_0x52f848&&_0x4d74f5['FKJZm'](registerSession,_0x52f848,_0xeb21d0['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0xeb21d0['id']),_0x4d74f5[_0x49ebdb(0x235)](displayFeature,_0xeb21d0,_0xeb21d0[_0x49ebdb(0x287)]),console[_0x49ebdb(0x1b0)](_0x49ebdb(0x1d4));}export async function featureList(_0x488e0c){const _0x19e6ab=_0x2b50e3,_0x34e905={'emxRT':function(_0x1797fa,_0x31e9a5){return _0x1797fa(_0x31e9a5);},'jHxhf':function(_0x2b9548,_0x4db844){return _0x2b9548>_0x4db844;},'sOOBe':_0x19e6ab(0x258),'nEire':function(_0x56ecc9,_0x372686){return _0x56ecc9+_0x372686;},'YbZfQ':_0x19e6ab(0x221)},_0x396c89={'limit':_0x488e0c['limit']??0xa,'offset':_0x488e0c['offset']??0x0,'includeDeleted':_0x488e0c['includeDeleted']};_0x488e0c['currentBranch']&&(_0x396c89['gitRepoUrl']=getGitRepoUrl(),_0x396c89['gitBranch']=getGitBranch());const _0x447942=await _0x34e905['emxRT'](listFeatures,_0x396c89);if(_0x447942[_0x19e6ab(0x267)][_0x19e6ab(0x1d2)]===0x0){console[_0x19e6ab(0x1b0)](_0x19e6ab(0x1db));return;}const _0x171b07=_0x34e905['jHxhf'](_0x447942['totalCount'],_0x447942['items']['length'])?'Showing\x20'+_0x447942['items']['length']+'\x20of\x20'+_0x447942[_0x19e6ab(0x218)]:_0x447942['totalCount']+_0x19e6ab(0x1fa);console[_0x19e6ab(0x1b0)]('\x0a'+_0x171b07+':\x0a');for(const _0x6160ee of _0x447942[_0x19e6ab(0x267)]){const _0x50e985=_0x34e905['sOOBe'][_0x19e6ab(0x1ad)]('|');let _0x47c2d1=0x0;while(!![]){switch(_0x50e985[_0x47c2d1++]){case'0':console[_0x19e6ab(0x1b0)](_0x19e6ab(0x269)+_0x6160ee['id']);continue;case'1':_0x6160ee[_0x19e6ab(0x273)]&&console[_0x19e6ab(0x1b0)](_0x19e6ab(0x274)+getProgressDisplay(_0x6160ee['stats']));continue;case'2':console['log'](''+_0x6160ee[_0x19e6ab(0x1ed)]);continue;case'3':console[_0x19e6ab(0x1b0)]('');continue;case'4':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x6160ee['createdAt'])['toLocaleDateString']());continue;case'5':_0x6160ee['gitBranch']&&console['log'](_0x19e6ab(0x1ec)+_0x6160ee['gitBranch']);continue;}break;}}const _0x4f5a9a=_0x396c89[_0x19e6ab(0x1e6)]??0xa,_0x423086=_0x34e905['nEire'](_0x396c89[_0x19e6ab(0x1fb)]??0x0,_0x447942['items']['length']);if(_0x423086<_0x447942['totalCount']){const _0x13de95=_0x4f5a9a!==0xa?_0x19e6ab(0x241)+_0x4f5a9a:'',_0x306fc1=_0x488e0c[_0x19e6ab(0x205)]?'\x20--current-branch':'',_0x5bb565=_0x488e0c[_0x19e6ab(0x263)]?_0x34e905['YbZfQ']:'';console[_0x19e6ab(0x1b0)](_0x19e6ab(0x1cc)+_0x423086+_0x13de95+_0x306fc1+_0x5bb565);}}export async function featureShow(_0x3c74ff){const _0x39f8e6=_0x2b50e3,_0x209b39={'XirDQ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','iggoU':function(_0x53fd0f,_0x310829){return _0x53fd0f(_0x310829);},'Hzupt':function(_0x175a80,_0x4c6b0c,_0x21b494){return _0x175a80(_0x4c6b0c,_0x21b494);}},_0x125a91=_0x3c74ff||await getActiveFeatureId();if(!_0x125a91)throw new Error(_0x209b39['XirDQ']);const _0x40c8de=await _0x209b39['iggoU'](getFeature,_0x125a91);_0x209b39['Hzupt'](displayFeature,_0x40c8de,_0x40c8de[_0x39f8e6(0x287)]);}export async function featureResume(_0x2a2656){const _0xb5d46f=_0x2b50e3,_0x3ac214={'wraTh':function(_0x20111a,_0x1a5477){return _0x20111a(_0x1a5477);},'GFoso':function(_0x5b0302){return _0x5b0302();},'ijdaz':function(_0x29a4d2,_0x36c2e6){return _0x29a4d2!==_0x36c2e6;},'eeAjT':function(_0x5767af,_0xda8673,_0x51c96c){return _0x5767af(_0xda8673,_0x51c96c);},'ZVRdY':function(_0x232e3f,_0x489acd){return _0x232e3f(_0x489acd);},'fTgLQ':function(_0x1b1416,_0x165766,_0x3eed21){return _0x1b1416(_0x165766,_0x3eed21);},'wLXYA':function(_0x4285f0,_0x277744){return _0x4285f0(_0x277744);},'EYWAd':function(_0x43aa28){return _0x43aa28();},'uRSWr':function(_0xb79f67,_0x52c513){return _0xb79f67||_0x52c513;},'BjlVD':function(_0x1eedbd,_0x16ba00){return _0x1eedbd||_0x16ba00;},'nJUUL':_0xb5d46f(0x210),'Nncps':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','uuPbl':_0xb5d46f(0x207),'jGqfV':'list','kkbrU':_0xb5d46f(0x21b),'phyjU':function(_0x433181,_0x2b9477,_0x52f3b6){return _0x433181(_0x2b9477,_0x52f3b6);},'neUSa':function(_0x444570,_0x2d3edf,_0x564cc8){return _0x444570(_0x2d3edf,_0x564cc8);},'VfVmN':function(_0x3f2b5a,_0x352818){return _0x3f2b5a(_0x352818);}};if(_0x2a2656){const _0x25a8ef=await _0x3ac214['wraTh'](getFeature,_0x2a2656);await _0x3ac214['wraTh'](setActiveFeatureId,_0x25a8ef['id']);const _0x40f3b7=_0x3ac214[_0xb5d46f(0x1d5)](getGitBranch);_0x40f3b7&&_0x3ac214[_0xb5d46f(0x233)](_0x40f3b7,_0x25a8ef['gitBranch'])&&(await _0x3ac214['eeAjT'](updateFeature,_0x25a8ef['id'],{'gitBranch':_0x40f3b7}),console['log'](_0xb5d46f(0x1b7)+_0x40f3b7));console['log'](_0xb5d46f(0x1d3)+_0x25a8ef['name']+'\x20('+_0x25a8ef['id']+')'),await _0x3ac214[_0xb5d46f(0x255)](tryStartCurrentSession,_0x25a8ef['id']);const _0x2b8d1f=process[_0xb5d46f(0x1f5)]['CLAUDE_SESSION_ID'];_0x2b8d1f&&_0x3ac214[_0xb5d46f(0x1de)](registerSession,_0x2b8d1f,_0x25a8ef['id']);displayFeature(_0x25a8ef,_0x25a8ef[_0xb5d46f(0x287)]),await _0x3ac214[_0xb5d46f(0x1ea)](printFeedbackNudge,_0x25a8ef['id']);return;}const _0x7e995c=getGitRepoUrl(),_0x53a158=_0x3ac214['EYWAd'](getGitBranch);if(!_0x7e995c&&!_0x53a158)throw new Error(_0xb5d46f(0x27c));console[_0xb5d46f(0x1b0)](_0xb5d46f(0x25b)+_0x3ac214[_0xb5d46f(0x1dd)](_0x7e995c,_0xb5d46f(0x20a))+'\x20/\x20'+_0x3ac214[_0xb5d46f(0x25f)](_0x53a158,_0xb5d46f(0x20a))+'...');const _0x3107b7=await _0x3ac214[_0xb5d46f(0x1ea)](listFeatures,{'gitRepoUrl':_0x7e995c,'gitBranch':_0x53a158}),_0x2633a4=_0x3107b7['items'][_0xb5d46f(0x1f7)](_0x3bfde5=>_0x3bfde5[_0xb5d46f(0x22b)]?_0x3bfde5['status']!==_0xb5d46f(0x249):!_0x3bfde5[_0xb5d46f(0x251)]);if(_0x2633a4[_0xb5d46f(0x1d2)]===0x0){console['log'](_0x3ac214['nJUUL']),console[_0xb5d46f(0x1b0)](_0x3ac214[_0xb5d46f(0x21f)]);return;}let _0x2f56ed;if(_0x2633a4['length']===0x1)_0x2f56ed=_0x2633a4[0x0];else{const _0x441e8e=process[_0xb5d46f(0x1be)][_0xb5d46f(0x1df)]&&process['stdout'][_0xb5d46f(0x1df)];if(!_0x441e8e){console[_0xb5d46f(0x1b0)](_0xb5d46f(0x20d));for(const _0xa3d1c1 of _0x2633a4){console['log']('\x20\x20'+_0xa3d1c1['name']),console[_0xb5d46f(0x1b0)]('\x20\x20\x20\x20\x20ID:\x20'+_0xa3d1c1['id']),_0xa3d1c1[_0xb5d46f(0x273)]&&console['log'](_0xb5d46f(0x1d1)+getProgressDisplay(_0xa3d1c1['stats'])),_0xa3d1c1['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xa3d1c1['gitBranch']);}throw new Error(_0x3ac214[_0xb5d46f(0x229)]);}const {selected:_0x365297}=await _0x2959ca[_0xb5d46f(0x20e)]([{'type':_0x3ac214['jGqfV'],'name':'selected','message':_0x3ac214[_0xb5d46f(0x200)],'choices':_0x2633a4['map'](_0x2a6674=>({'name':_0x2a6674[_0xb5d46f(0x1ed)]+'\x20('+_0x2a6674['id']+')','value':_0x2a6674['id']}))}]);_0x2f56ed=_0x2633a4['find'](_0x14dd58=>_0x14dd58['id']===_0x365297);}await setActiveFeatureId(_0x2f56ed['id']);_0x53a158&&_0x53a158!==_0x2f56ed[_0xb5d46f(0x225)]&&(await _0x3ac214['phyjU'](updateFeature,_0x2f56ed['id'],{'gitBranch':_0x53a158}),console[_0xb5d46f(0x1b0)](_0xb5d46f(0x1b7)+_0x53a158));console[_0xb5d46f(0x1b0)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x2f56ed['name']+'\x20('+_0x2f56ed['id']+')'),await _0x3ac214[_0xb5d46f(0x255)](tryStartCurrentSession,_0x2f56ed['id']);const _0x5dea6a=await getFeature(_0x2f56ed['id']),_0x62a8bb=process[_0xb5d46f(0x1f5)]['CLAUDE_SESSION_ID'];_0x62a8bb&&_0x3ac214['neUSa'](registerSession,_0x62a8bb,_0x5dea6a['id']),displayFeature(_0x5dea6a,_0x5dea6a[_0xb5d46f(0x287)]),await _0x3ac214['VfVmN'](printFeedbackNudge,_0x5dea6a['id']);}async function printFeedbackNudge(_0x1322c0){const _0x21a9a7=_0x2b50e3,_0x595734={'KWhYV':function(_0x284153,_0x55d0c1,_0x212848){return _0x284153(_0x55d0c1,_0x212848);},'GqpCz':function(_0x5cd638,_0x350459){return _0x5cd638>_0x350459;}};try{const {items:_0x285a87}=await getActionItems(_0x1322c0);let _0x16f824=0x0,_0x4d525b=0x0;for(const _0x1eb49a of _0x285a87){const _0x4a4e74=await _0x595734[_0x21a9a7(0x23f)](getItemFeedback,_0x1322c0,_0x1eb49a['id']);_0x4a4e74['unaddressedComments']['length']>0x0&&(_0x16f824+=_0x4a4e74[_0x21a9a7(0x1e0)][_0x21a9a7(0x1d2)],_0x4d525b++);}_0x595734['GqpCz'](_0x16f824,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x16f824+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x4d525b+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x390d99){const _0x3b9bbe=_0x2b50e3,_0x36926f={'WJeLM':function(_0x25152f,_0x27fe48){return _0x25152f(_0x27fe48);}};try{const {sessions:_0x386183}=await _0x36926f[_0x3b9bbe(0x1c6)](listFeatureSessions,_0x390d99),_0x85564=_0x386183['find'](_0x4ac065=>_0x4ac065[_0x3b9bbe(0x22b)]==='ready');_0x85564&&(await startSession(_0x390d99,_0x85564['id']),console['log'](_0x3b9bbe(0x1e8)+_0x85564[_0x3b9bbe(0x1cf)]));}catch{}}export async function featureReport(_0x267594,_0x3ae780){const _0x5a81ac=_0x2b50e3,_0x4c4ac0={'wjIqU':function(_0x558bc3){return _0x558bc3();},'Uvtbj':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','zzYta':'\x0aGenerating\x20report...','WSoFO':function(_0x5a876,_0x3f7a11,_0xb85869,_0x2ac373){return _0x5a876(_0x3f7a11,_0xb85869,_0x2ac373);},'pNQbx':function(_0x594fbe,_0x10df9c,_0x498434,_0x9f88f){return _0x594fbe(_0x10df9c,_0x498434,_0x9f88f);}},_0x2425f2=_0x267594||await _0x4c4ac0[_0x5a81ac(0x256)](getActiveFeatureId);if(!_0x2425f2)throw new Error(_0x4c4ac0[_0x5a81ac(0x223)]);console['log'](_0x4c4ac0['zzYta']);const _0x39c8f8=await getFeatureReportMarkdown(_0x2425f2,{'style':_0x3ae780[_0x5a81ac(0x252)]}),_0x46048d=_0x3ae780['output']||_0x4c4ac0['WSoFO'](join,_0x4c4ac0[_0x5a81ac(0x256)](getRangerDir),'reports',_0x2425f2+_0x5a81ac(0x21d)),_0x3283fe=join(_0x46048d,'..');!existsSync(_0x3283fe)&&await mkdir(_0x3283fe,{'recursive':!![]}),await _0x4c4ac0['pNQbx'](writeFile,_0x46048d,_0x39c8f8,_0x5a81ac(0x1f9)),console['log'](_0x5a81ac(0x1ca)+_0x46048d);}function getScenarioResult(_0x49c0ba){const _0x1450d4=_0x2b50e3,_0x5d2c70={'SMDeg':function(_0x322f73,_0x146c2a){return _0x322f73===_0x146c2a;},'xXdTR':_0x1450d4(0x1c5),'QwzIo':'in_progress'};if(_0x5d2c70[_0x1450d4(0x1d6)](_0x49c0ba[_0x1450d4(0x22b)],_0x1450d4(0x1c5)))return _0x49c0ba['terminalReason']??_0x5d2c70[_0x1450d4(0x1e3)];if(_0x49c0ba[_0x1450d4(0x22b)]==='verification_in_progress')return _0x5d2c70['QwzIo'];return _0x49c0ba[_0x1450d4(0x22b)];}function getScenarioRationale(_0x26b5af,_0x1ff2e4){const _0x1691f0=_0x2b50e3;if(_0x1ff2e4)return _0x1ff2e4;if(_0x26b5af['blockedReason'])return _0x26b5af['blockedReason'];if(_0x26b5af[_0x1691f0(0x1dc)])return _0x26b5af['incompleteReason'];if(_0x26b5af[_0x1691f0(0x275)])return _0x26b5af['canceledReason'];if(_0x26b5af[_0x1691f0(0x1b9)])return _0x26b5af[_0x1691f0(0x1b9)];return null;}export async function featureReportPrDescription(_0x2b2277,_0x961eed){const _0x337c7e=_0x2b50e3,_0x5a4c79={'tkIWN':function(_0x23024a){return _0x23024a();},'bpBZM':function(_0x1138e4,_0x40da85,_0x55e081){return _0x1138e4(_0x40da85,_0x55e081);},'lklSu':function(_0x41c8e5,_0x585522){return _0x41c8e5===_0x585522;},'ERlWs':function(_0x205aad,_0x3c6017){return _0x205aad===_0x3c6017;},'qYoUu':_0x337c7e(0x23b),'tWuUu':function(_0x211312,_0x18e69d,_0x4eb167,_0x8dd15d){return _0x211312(_0x18e69d,_0x4eb167,_0x8dd15d);},'UUjWe':function(_0x14bbfe,_0x2a0d7d,_0x4b3e7){return _0x14bbfe(_0x2a0d7d,_0x4b3e7);}},_0x165642=_0x2b2277||await _0x5a4c79[_0x337c7e(0x253)](getActiveFeatureId);if(!_0x165642)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x28c2f2=await getFeature(_0x165642),_0x14f2f6=_0x28c2f2['checklistItems']||[],_0x1eee30=_0x5a4c79['bpBZM'](getCurrentSessionItems,_0x28c2f2,_0x14f2f6);_0x5a4c79['lklSu'](_0x1eee30[_0x337c7e(0x1d2)],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0xb37d08=_0x961eed[_0x337c7e(0x206)]??[],_0x1614c3=_0xb37d08['filter'](_0x53468d=>!Number['isInteger'](_0x53468d)||_0x53468d<0x1||_0x53468d>_0x1eee30[_0x337c7e(0x1d2)]);if(_0x1614c3['length']>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x1614c3[_0x337c7e(0x1b8)](',\x20')),console[_0x337c7e(0x1b0)](_0x337c7e(0x246));for(let _0x243311=0x0;_0x243311<_0x1eee30['length'];_0x243311++){console[_0x337c7e(0x1b0)]('\x20\x20'+(_0x243311+0x1)+'.\x20'+_0x1eee30[_0x243311]['description']);}process['exit'](0x1);}const _0x19195c=new Set(_0xb37d08[_0x337c7e(0x26b)](_0x3cd61e=>_0x3cd61e-0x1)),_0xce687=_0x1eee30[_0x337c7e(0x1f7)]((_0x158fdd,_0x2a8373)=>!_0x19195c[_0x337c7e(0x1c4)](_0x2a8373));_0x5a4c79[_0x337c7e(0x211)](_0xce687[_0x337c7e(0x1d2)],0x0)&&(console[_0x337c7e(0x259)](_0x5a4c79[_0x337c7e(0x1e1)]),process['exit'](0x1));if(_0x961eed[_0x337c7e(0x26f)])await _0x5a4c79['tWuUu'](outputJsonReport,_0x165642,_0x28c2f2,_0xce687);else{const _0x1608b1=await _0x5a4c79[_0x337c7e(0x222)](getFeatureReportMarkdown,_0x165642,{'itemIds':_0xce687[_0x337c7e(0x26b)](_0x331f57=>_0x331f57['id'])});process[_0x337c7e(0x288)]['write'](_0x1608b1[_0x337c7e(0x24c)]()+'\x0a');}}async function outputJsonReport(_0x2c03e6,_0x3f3a7c,_0x316f90){const _0xe8f9f8=_0x2b50e3,_0x5dcc68={'WAeuF':function(_0x3b5c5b,_0x52354f){return _0x3b5c5b(_0x52354f);},'xsjrD':function(_0x5766c2,_0x41bca1){return _0x5766c2>_0x41bca1;},'WfFvq':function(_0x411d1e){return _0x411d1e();}},_0x3ebde5=_0x5dcc68[_0xe8f9f8(0x247)](getApiBaseUrl),_0x3e34c3=await getFeatureReport(_0x2c03e6),_0x4c8fdf=new Map(_0x3e34c3[_0xe8f9f8(0x287)]['map'](_0x2129b1=>[_0x2129b1['id'],_0x2129b1])),_0x56a65e=await Promise[_0xe8f9f8(0x1e4)](_0x316f90[_0xe8f9f8(0x26b)](async _0x4ea55d=>{const _0xfb7138=_0xe8f9f8,_0x340069=_0x4c8fdf['get'](_0x4ea55d['id']),_0x3e7baa=_0x340069?.['linkedSession']??null;let _0x51d9de=[];if(_0x4ea55d['browserSessionId'])try{const {steps:_0x5163ff}=await _0x5dcc68[_0xfb7138(0x203)](getBrowserSessionSteps,_0x4ea55d[_0xfb7138(0x1b1)]);_0x5dcc68['xsjrD'](_0x5163ff['length'],0x0)&&(_0x51d9de=_0x5163ff[_0xfb7138(0x26b)](_0x592dbd=>{const _0x555a08=_0xfb7138,_0x549501=_0x592dbd['assets'][_0x555a08(0x208)](_0x575aae=>_0x575aae[_0x555a08(0x1c8)]===_0x555a08(0x215)&&_0x575aae['timing']===_0x555a08(0x1ff))??_0x592dbd['assets']['find'](_0x211c37=>_0x211c37['assetType']===_0x555a08(0x215));let _0x4209e1=null,_0x528a57=null;if(_0x549501){const _0x2479bf=_0x549501['storage'][_0x555a08(0x261)][_0x555a08(0x1ad)]('/')['pop']();_0x4209e1=_0x3ebde5+_0x555a08(0x268)+_0x4ea55d['browserSessionId']+_0x555a08(0x265)+_0x2479bf,_0x2479bf&&(_0x528a57=_0x2479bf['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x528a57||_0x592dbd['description']||_0x592dbd['stepName']||_0x555a08(0x209)+_0x592dbd['position'],'screenshot':_0x4209e1,'is_key_step':_0x592dbd['isKeyStep']};}));}catch{}return _0x51d9de[_0xfb7138(0x1d2)]===0x0&&_0x3e7baa?.['screenshotUrls']&&(_0x51d9de=_0x3e7baa['screenshotUrls'][_0xfb7138(0x26b)]((_0x9abe06,_0x39199c)=>({'description':_0xfb7138(0x254)+(_0x39199c+0x1),'screenshot':_0x9abe06,'is_key_step':![]}))),{'description':_0x4ea55d['description'],'result':getScenarioResult(_0x4ea55d),'rationale':getScenarioRationale(_0x4ea55d,_0x3e7baa?.['agentResponse']),'steps':_0x51d9de};})),_0x32d2cc={'url':_0x3f3a7c['dashboardUrl'],'scenarios':_0x56a65e};process[_0xe8f9f8(0x288)][_0xe8f9f8(0x26c)](JSON['stringify'](_0x32d2cc,null,0x2)+'\x0a');}function _0x5ea4(){const _0x1ecb2c=['GFoso','SMDeg','XfjvR','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','type','SMeXo','\x0aNo\x20feature\x20reviews\x20found.','incompleteReason','uRSWr','fTgLQ','isTTY','unaddressedComments','qYoUu','ssXLy','xXdTR','all','terminalReason','limit','\x20concluded.','\x20\x20\x20▶️\x20Started\x20session\x20','\x20blocked','wLXYA','\x0a✅\x20Scenario\x20added','\x20\x20\x20Branch:\x20','name','\x20\x20\x20Description:\x20','gitRepoUrl','pendingItems','utzPd','blocked','16cmeeIz','blockedReason','env','13748YlAoDS','filter','pop','utf-8','\x20feature\x20review(s)\x20found','offset','from','description','toLocaleString','after','kkbrU','domRef','submittedAt','WAeuF','jafqR','currentBranch','excludeScenarios','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','find','Step\x20','any','pipe','txbIr','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','prompt','248918nuWERr','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','ERlWs','\x20(v','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20',':\x20\x22','screenshot','\x0a✅\x20Session\x20','currentSessionId','totalCount','bVlcN','3khlkop','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','ABrFC','.md','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','Nncps','en-US','\x20--include-deleted','UUjWe','Uvtbj','active-feature.txt','gitBranch','NjazU','dxxWe','sessionId','uuPbl','DIFkr','status','\x20Session\x20','\x20\x20\x20Repository:\x20','\x20\x20\x20\x20\x20\x20Incomplete:\x20','dashboardUrl','\x1b[1m','BdBeq','CIBOX','ijdaz','scenario','FKJZm','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','DHAar','createdAt','ZAeLk','Current\x20session\x20not\x20found.','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','tyehy','jweOp','\x20\x20\x20\x20','KWhYV','round','\x20--limit\x20','ygbRv','tCDMd','EUXPB','427528DYWuMx','\x0aAvailable\x20scenarios:','WfFvq','Unknown','verified','assetUrl','inuvQ','trimEnd','RANGER_TEST_USERNAME','195936mOTxic','792440XGJDKG','in_progress','completedAt','style','tkIWN','Screenshot\x20','ZVRdY','wjIqU','\x0a❌\x20Invalid\x20scenario\x20index:\x20','2|0|1|5|4|3','error','kkJfZ','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','feedback-images','selector','Scenario\x20','BjlVD','\x0aConcluding\x20session...','location','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','includeDeleted','scenarios','/artifacts/','UBTIx','items','/api/v1/mcp/browser-sessions/','\x20\x20\x20ID:\x20','423300SmTCTM','map','write','kkuzs','EMcCO','json','QQeLA','\x20\x20✅\x20No\x20feedback\x20to\x20address','verifiedItems','stats','\x20\x20\x20Progress:\x20','canceledReason','push','.png','ItUTA','warn','\x20\x20💬\x20','trim','Not\x20in\x20a\x20git\x20repository.','latestReview','pVenw','mzlUz','RWYuC','replace','MYOqn','\x20—\x20no\x20comments','cpRJL','\x1b[0m','XewaD','checklistItems','stdout','comment_','spatial','rNMGK','parentItemId','zOriM','EsiBR','split','completed','exit','log','browserSessionId','\x20\x20\x20Created:\x20','point','No\x20sessions\x20found.','vPzhC','\x20incomplete','\x20\x20\x20Updated\x20branch\x20to:\x20','join','notes','uiRsW','approved','\x20\x20\x20\x20\x20\x20Cancelled:\x20','EzXpa','stdin','cBYMg','toFixed','\x20\x20\x20Status:\x20','\x20scenarios.','tPwOH','has','closed','WJeLM','element','assetType','1942839vWuqzh','\x0a✅\x20Report\x20generated:\x20','\x0a📋\x20Feedback\x20for:\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0a\x20\x20\x20Scenarios:','version','iteration','\x20in\x20progress','\x20\x20\x20\x20\x20Progress:\x20','length','\x0a✅\x20Resumed\x20feature\x20review:\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review'];_0x5ea4=function(){return _0x1ecb2c;};return _0x5ea4();}export async function featureConcludeSession(_0x284519){const _0x3c3829=_0x2b50e3,_0x59bb80={'EUXPB':function(_0x514143,_0x2dfdb4){return _0x514143(_0x2dfdb4);},'EMcCO':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','pGfxa':function(_0x3d99f8,_0x333d1e){return _0x3d99f8(_0x333d1e);},'bCPwE':function(_0x38aad2,_0x205b8c){return _0x38aad2===_0x205b8c;},'zxYqL':_0x3c3829(0x1ae),'dxxWe':function(_0x445e18,_0x1e2558){return _0x445e18!==_0x1e2558;},'rNMGK':_0x3c3829(0x250)},_0x13a29f=_0x284519||await getActiveFeatureId();if(!_0x13a29f)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x4e2a0a=await _0x59bb80[_0x3c3829(0x244)](getFeature,_0x13a29f);if(!_0x4e2a0a[_0x3c3829(0x217)])throw new Error(_0x59bb80[_0x3c3829(0x26e)]);const {sessions:_0x1196ae}=await _0x59bb80['pGfxa'](listFeatureSessions,_0x13a29f),_0x3be4c4=_0x1196ae[_0x3c3829(0x208)](_0x23e3a5=>_0x23e3a5['id']===_0x4e2a0a[_0x3c3829(0x217)]);if(!_0x3be4c4)throw new Error(_0x3c3829(0x23a));if(_0x59bb80['bCPwE'](_0x3be4c4['status'],_0x59bb80['zxYqL'])){console['log']('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x59bb80[_0x3c3829(0x227)](_0x3be4c4[_0x3c3829(0x22b)],_0x59bb80[_0x3c3829(0x1a9)]))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x3be4c4['status']);console['log'](_0x3c3829(0x260)),await concludeSession(_0x13a29f,_0x4e2a0a[_0x3c3829(0x217)]),console[_0x3c3829(0x1b0)](_0x3c3829(0x216)+_0x3be4c4[_0x3c3829(0x1cf)]+_0x3c3829(0x1e7)),console[_0x3c3829(0x1b0)](_0x3c3829(0x1d8));}export async function featureSessions(_0x2b4185){const _0x406c58=_0x2b50e3,_0x5715bf={'OZSeB':function(_0x46f29b){return _0x46f29b();},'OhYIp':function(_0x308e77,_0x5d8418){return _0x308e77(_0x5d8418);},'QYMcR':function(_0x307bd1,_0x4b1c83){return _0x307bd1===_0x4b1c83;},'mzlUz':_0x406c58(0x1b4),'efDmQ':_0x406c58(0x1ae),'hlxRu':function(_0x358728,_0x262cfe){return _0x358728===_0x262cfe;}},_0x4514e4=_0x2b4185||await _0x5715bf['OZSeB'](getActiveFeatureId);if(!_0x4514e4)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x32dd6f=await _0x5715bf['OhYIp'](getFeature,_0x4514e4);console[_0x406c58(0x1b0)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x32dd6f[_0x406c58(0x1ed)]+'\x0a');const {sessions:_0x140164}=await listFeatureSessions(_0x4514e4);if(_0x5715bf['QYMcR'](_0x140164[_0x406c58(0x1d2)],0x0)){console['log'](_0x5715bf[_0x406c58(0x27f)]);return;}for(const _0x337832 of _0x140164){const _0x50e9e7=_0x337832[_0x406c58(0x22b)]===_0x5715bf['efDmQ']?'✅':_0x5715bf['hlxRu'](_0x337832['status'],_0x406c58(0x250))?'🔄':'▶️';console['log'](_0x50e9e7+_0x406c58(0x22c)+_0x337832[_0x406c58(0x1cf)]+'\x20('+_0x337832['id']+')'),console[_0x406c58(0x1b0)](_0x406c58(0x1c1)+_0x337832['status']),console['log'](_0x406c58(0x1b2)+new Date(_0x337832[_0x406c58(0x238)])['toLocaleString']()),_0x337832[_0x406c58(0x251)]&&console[_0x406c58(0x1b0)]('\x20\x20\x20Completed:\x20'+new Date(_0x337832['completedAt'])['toLocaleString']()),console[_0x406c58(0x1b0)]('');}}export async function featureAddScenario(_0x53ba57,_0x4acbb7){const _0x3a0971=_0x2b50e3,_0xe001fa={'NjazU':function(_0x5342bc){return _0x5342bc();},'jweOp':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','kkuzs':function(_0xb647a7,_0xd9ccb6){return _0xb647a7(_0xd9ccb6);},'zOriM':function(_0xc224c5,_0x26c05e,_0x511156){return _0xc224c5(_0x26c05e,_0x511156);}},_0x4abd71=_0x4acbb7||await _0xe001fa[_0x3a0971(0x226)](getActiveFeatureId);if(!_0x4abd71)throw new Error(_0xe001fa[_0x3a0971(0x23d)]);const _0x40bb8d=await _0xe001fa[_0x3a0971(0x26d)](getFeature,_0x4abd71);if(_0x40bb8d[_0x3a0971(0x27d)]&&!_0x40bb8d[_0x3a0971(0x27d)]['submittedAt'])throw new Error(_0x3a0971(0x21e)+_0x40bb8d[_0x3a0971(0x22f)]);await createChecklistItem(_0x4abd71,_0x53ba57);const _0x445e64=await getFeature(_0x4abd71);console['log'](_0x3a0971(0x1eb)),_0xe001fa[_0x3a0971(0x1ab)](displayFeature,_0x445e64,_0x445e64[_0x3a0971(0x287)]);}export async function featureEditScenario(_0xf9dcf8,_0x168694){const _0x4e9831=_0x2b50e3,_0x209afc={'pVenw':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','SDAuW':function(_0x3af9bf,_0x1fb791){return _0x3af9bf===_0x1fb791;},'nqSGH':_0x4e9831(0x246),'utzPd':function(_0x573f3c,_0xe2ce92){return _0x573f3c<_0xe2ce92;},'tyehy':function(_0x3df3ba,_0x3744cc){return _0x3df3ba+_0x3744cc;},'MYOqn':function(_0x382c44,_0x26bb2e){return _0x382c44-_0x26bb2e;},'Xmizu':function(_0x4e33c3,_0x481d36){return _0x4e33c3>=_0x481d36;},'znGmN':function(_0x4ae2ee,_0x4ff262,_0x2c1d12,_0x9d43c1){return _0x4ae2ee(_0x4ff262,_0x2c1d12,_0x9d43c1);}},_0x98925f=_0x168694['id']||await getActiveFeatureId();!_0x98925f&&(console['error'](_0x209afc[_0x4e9831(0x27e)]),console['error']('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x41335d=await getFeature(_0x98925f);_0x41335d['latestReview']&&!_0x41335d['latestReview'][_0x4e9831(0x202)]&&(console[_0x4e9831(0x259)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x41335d[_0x4e9831(0x22f)]),process['exit'](0x1));const _0x558b7d=_0x41335d['checklistItems']||[];_0x558b7d[_0x4e9831(0x1d2)]===0x0&&(console['error'](_0x4e9831(0x262)),process['exit'](0x1));if(_0x209afc['SDAuW'](_0x168694[_0x4e9831(0x234)],undefined)){console[_0x4e9831(0x259)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x209afc['nqSGH']);for(let _0x196cf6=0x0;_0x209afc[_0x4e9831(0x1f1)](_0x196cf6,_0x558b7d['length']);_0x196cf6++){console['log']('\x20\x20'+_0x209afc[_0x4e9831(0x23c)](_0x196cf6,0x1)+'.\x20'+_0x558b7d[_0x196cf6][_0x4e9831(0x1fd)]);}process[_0x4e9831(0x1af)](0x1);}const _0xff83a=_0x209afc[_0x4e9831(0x282)](_0x168694['scenario'],0x1);if(_0xff83a<0x0||_0x209afc['Xmizu'](_0xff83a,_0x558b7d['length'])){console[_0x4e9831(0x259)](_0x4e9831(0x257)+_0x168694[_0x4e9831(0x234)]+'.\x20Feature\x20review\x20has\x20'+_0x558b7d['length']+_0x4e9831(0x1c2)),console[_0x4e9831(0x1b0)]('\x0aAvailable\x20scenarios:');for(let _0x3c3903=0x0;_0x3c3903<_0x558b7d[_0x4e9831(0x1d2)];_0x3c3903++){console['log']('\x20\x20'+_0x209afc[_0x4e9831(0x23c)](_0x3c3903,0x1)+'.\x20'+_0x558b7d[_0x3c3903][_0x4e9831(0x1fd)]);}process['exit'](0x1);}const _0x2482d3=_0x558b7d[_0xff83a];await _0x209afc['znGmN'](updateChecklistItem,_0x98925f,_0x2482d3['id'],{'description':_0xf9dcf8});const _0x201f18=await getFeature(_0x98925f);console[_0x4e9831(0x1b0)]('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x201f18,_0x201f18[_0x4e9831(0x287)]);}function _0x2c4d(_0x4855f4,_0x5342b4){_0x4855f4=_0x4855f4-0x1a9;const _0x5ea4a9=_0x5ea4();let _0x2c4d20=_0x5ea4a9[_0x4855f4];return _0x2c4d20;}async function downloadFeedbackImage(_0x23db8e,_0x1d0d17){const _0x9616aa=_0x2b50e3,_0x147c27={'lSuIt':_0x9616aa(0x25c)};try{const _0x23695f=join(getRangerDir(),_0x147c27['lSuIt']);await mkdir(_0x23695f,{'recursive':!![]});const _0x4e21bd=join(_0x23695f,_0x9616aa(0x289)+_0x1d0d17+_0x9616aa(0x277)),_0x41b40e=await fetch(_0x23db8e);if(!_0x41b40e['ok'])return null;const _0x24a03d=Buffer[_0x9616aa(0x1fc)](await _0x41b40e['arrayBuffer']());return await writeFile(_0x4e21bd,_0x24a03d),_0x4e21bd;}catch{return null;}}export async function featureGetReview(_0x23cda7){const _0x1b28eb=_0x2b50e3,_0x603aa5={'ohWFw':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','BdBeq':function(_0x12cfc5,_0x2edb80){return _0x12cfc5(_0x2edb80);},'vPzhC':function(_0x320bb3,_0x135422){return _0x320bb3===_0x135422;},'inuvQ':function(_0x528be8,_0x194db7,_0xd8e7bd){return _0x528be8(_0x194db7,_0xd8e7bd);},'qlvnn':function(_0x2bb851,_0x50f3e7){return _0x2bb851>_0x50f3e7;},'nJrkG':'numeric','uteRe':_0x1b28eb(0x248),'nZbXc':'\x20>\x20','kRJyq':function(_0x5c28a9,_0x3b6cf1){return _0x5c28a9===_0x3b6cf1;},'iwJoh':function(_0x59b049,_0x1403d7){return _0x59b049>=_0x1403d7;},'nbDkn':function(_0x19cd00,_0x1b4ce6){return _0x19cd00+_0x1b4ce6;}},_0x396bd8=_0x23cda7||await getActiveFeatureId();if(!_0x396bd8)throw new Error(_0x603aa5['ohWFw']);const _0x37e26c=await getFeature(_0x396bd8),{items:_0x2120d2}=await _0x603aa5[_0x1b28eb(0x231)](getActionItems,_0x396bd8);console[_0x1b28eb(0x1b0)](_0x1b28eb(0x1cb)+_0x37e26c['name']+'\x20('+_0x37e26c['id']+')\x0a');if(_0x603aa5[_0x1b28eb(0x1b5)](_0x2120d2['length'],0x0)){console[_0x1b28eb(0x1b0)]('No\x20scenarios\x20found.');return;}for(let _0x3ae777=0x0;_0x3ae777<_0x2120d2['length'];_0x3ae777++){const _0x3c26f9=_0x2120d2[_0x3ae777],_0x5f1ca5=_0x3c26f9[_0x1b28eb(0x1ce)]>0x1?_0x1b28eb(0x212)+_0x3c26f9[_0x1b28eb(0x1ce)]+')':'',_0x3e06cf=await _0x603aa5[_0x1b28eb(0x24b)](getItemFeedback,_0x396bd8,_0x3c26f9['id']);if(_0x603aa5['qlvnn'](_0x3e06cf['unaddressedComments'][_0x1b28eb(0x1d2)],0x0)){console['log'](_0x1b28eb(0x25e)+(_0x3ae777+0x1)+_0x1b28eb(0x214)+_0x3c26f9['description']+'\x22'+_0x5f1ca5+'\x20—\x20'+_0x3e06cf['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x36ce1d of _0x3e06cf[_0x1b28eb(0x1e0)]){const _0x1e358d=new Date(_0x36ce1d[_0x1b28eb(0x238)])['toLocaleDateString'](_0x1b28eb(0x220),{'month':'short','day':_0x603aa5['nJrkG']}),_0x4c2a23=_0x36ce1d['authorName']||_0x36ce1d['authorEmail']||_0x603aa5['uteRe'];console['log'](_0x1b28eb(0x27a)+_0x4c2a23+'\x20('+_0x1e358d+'):\x20\x22'+_0x36ce1d['content']+'\x22');if(_0x36ce1d['assetUrl']){const _0x3ad205=await downloadFeedbackImage(_0x36ce1d[_0x1b28eb(0x24a)],_0x36ce1d['id']);_0x3ad205&&console[_0x1b28eb(0x1b0)](_0x1b28eb(0x213)+_0x3ad205);}if(_0x36ce1d[_0x1b28eb(0x201)]){const _0x39f509=_0x36ce1d['domRef']['selector'][_0x1b28eb(0x1ad)](_0x603aa5['nZbXc'])[_0x1b28eb(0x1f8)]()?.[_0x1b28eb(0x1ad)](':')[0x0]||_0x1b28eb(0x1c7),_0x2d31a9=_0x36ce1d[_0x1b28eb(0x201)]['textContent']?'\x20\x22'+_0x36ce1d['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x1b28eb(0x1b0)](_0x1b28eb(0x236)+_0x39f509+'>'+_0x2d31a9),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x36ce1d[_0x1b28eb(0x201)][_0x1b28eb(0x25d)]);}else{if(_0x36ce1d['spatial']){const _0x562a4a=_0x36ce1d['spatial']['coordinates'];_0x603aa5['kRJyq'](_0x36ce1d[_0x1b28eb(0x28a)][_0x1b28eb(0x1d9)],_0x1b28eb(0x1b3))&&_0x603aa5['iwJoh'](_0x562a4a['length'],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x562a4a[0x0]['toFixed'](0x2)+',\x20'+_0x562a4a[0x1]['toFixed'](0x2)+')'):console[_0x1b28eb(0x1b0)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x36ce1d[_0x1b28eb(0x28a)][_0x1b28eb(0x1d9)]+'\x20at\x20['+_0x562a4a[_0x1b28eb(0x26b)](_0xbf04b3=>_0xbf04b3[_0x1b28eb(0x1c0)](0x2))['join'](',\x20')+']');}}}if(_0x3e06cf['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x110201 of _0x3e06cf['canonicalFlow']['split']('\x0a')){console[_0x1b28eb(0x1b0)](_0x1b28eb(0x23e)+_0x110201);}}}else console[_0x1b28eb(0x1b0)](_0x1b28eb(0x25e)+_0x603aa5['nbDkn'](_0x3ae777,0x1)+_0x1b28eb(0x214)+_0x3c26f9[_0x1b28eb(0x1fd)]+'\x22'+_0x5f1ca5+_0x1b28eb(0x283)),console['log'](_0x1b28eb(0x271));console['log']('');}}export async function featureDelete(_0x15567d){const _0x4400b4=_0x2b50e3,_0x216fc2={'EzXpa':function(_0x502608,_0x15cee8){return _0x502608(_0x15cee8);},'uiRsW':function(_0x13d2ac,_0x1d1fb4){return _0x13d2ac+_0x1d1fb4;},'flxQM':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x23f18e=_0x15567d||await getActiveFeatureId();if(!_0x23f18e)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x582c92=await _0x216fc2[_0x4400b4(0x1bd)](getFeature,_0x23f18e);await softDeleteFeature(_0x23f18e),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x582c92[_0x4400b4(0x1ed)]+'\x20('+_0x23f18e+')'),console[_0x4400b4(0x1b0)](_0x216fc2[_0x4400b4(0x1ba)](_0x216fc2['flxQM'],_0x23f18e));}export async function featureRestore(_0x43daea){const _0x9c0c84=_0x2b50e3,_0x115b02={'DmHnd':function(_0x288beb,_0x11bf66){return _0x288beb(_0x11bf66);}};await restoreFeature(_0x43daea);const _0x1b19e0=await _0x115b02['DmHnd'](getFeature,_0x43daea);console[_0x9c0c84(0x1b0)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x1b19e0[_0x9c0c84(0x1ed)]+'\x20('+_0x43daea+')'),displayFeature(_0x1b19e0,_0x1b19e0['checklistItems']);}
|
|
1
|
+
const _0x46b8ce=_0x3533;(function(_0x144891,_0x464084){const _0x3ac13c=_0x3533,_0x45cdbe=_0x144891();while(!![]){try{const _0x58833d=parseInt(_0x3ac13c(0x1c9))/0x1*(-parseInt(_0x3ac13c(0x1dc))/0x2)+-parseInt(_0x3ac13c(0x19b))/0x3*(-parseInt(_0x3ac13c(0x158))/0x4)+parseInt(_0x3ac13c(0x1c3))/0x5+parseInt(_0x3ac13c(0x1af))/0x6*(-parseInt(_0x3ac13c(0x177))/0x7)+parseInt(_0x3ac13c(0x156))/0x8+parseInt(_0x3ac13c(0x17f))/0x9*(-parseInt(_0x3ac13c(0x1c8))/0xa)+-parseInt(_0x3ac13c(0x1d3))/0xb*(-parseInt(_0x3ac13c(0x225))/0xc);if(_0x58833d===_0x464084)break;else _0x45cdbe['push'](_0x45cdbe['shift']());}catch(_0x20ed7b){_0x45cdbe['push'](_0x45cdbe['shift']());}}}(_0x441f,0xcec13));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x2e466d from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';function _0x441f(){const _0x5f5253=['.\x20Feature\x20review\x20has\x20','gitBranch','\x20\x20\x20Updated\x20branch\x20to:\x20','replace','vvIHR','QWeMC','incomplete','5|4|0|3|2|1','env','linkedSession','length','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','CLAUDE_SESSION_ID','any','terminalReason','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','LxaZD','XcvPh','Cannot\x20conclude\x20session\x20with\x20status:\x20','currentSessionId','iteration','incompleteReason','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','2328ROoVuX','timing','stepName','list','QXUeX','short','pendingItems','\x20\x20\x20Completed:\x20','arrayBuffer','includeDeleted','IpFld','in_progress','submittedAt','dashboardUrl','xOhSx','JFYEO','XDtzI','items','\x0aCreating\x20feature\x20review...','incompleteItems','6pZsajM','\x0a✅\x20Feature\x20review\x20created:\x20','pop','ready','LUuVb','approved','OlJeU','closed','completedAt','verification_in_progress','assetUrl','\x0a✅\x20Restored\x20feature\x20review:\x20','\x20--current-branch','sessionId','name','assets','get','kbekc','VpuNI','push','6014960xRAzcB','QJCBM','Please\x20finish\x20your\x20review\x20first:','screenshotUrls',':\x20\x22','13870800TOEKSy','257021kEAsYf','\x0a✅\x20Session\x20is\x20already\x20completed.','\x20\x20Expected\x20flow:','log','.md','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','scenario','totalCount','Next\x20page:\x20ranger\x20list\x20--offset\x20','coviW','6984098FIAzfK','Current\x20session\x20not\x20found.','stdout','\x20--limit\x20','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x0a\x20\x20\x20Scenarios:','stringify','domRef','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','6trFCxs','toLocaleString','lvNlW','utf-8','qOIDV','limit','CZCMX','ZIeZS','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20\x20\x20Created:\x20','status','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','blocked','location','EDEZP','TmCBn','SKpzG','nHXzo','Screenshot\x20','has','\x20verified','jfJSz','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','parentItemId','content','\x20at\x20[','\x20of\x20','bQkRs','\x20\x20\x20\x20\x20\x20Approved','coordinates','wlqOx','selector','pipe','IXavt','currentBranch','feedback-images','position','type','completed','AilgJ','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','wrwni','ISXLO','notes','toFixed','map','checklistItems','isTTY','/artifacts/','\x0aNo\x20feature\x20reviews\x20found.','\x20--include-deleted','\x20\x20\x20\x20\x20Branch:\x20','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','hvGYf','spatial','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','RJSVp','gitRepoUrl','\x20\x20\x20\x20\x20ID:\x20','vfYKe','createdAt','\x20/\x20','write','offset','):\x20\x22','\x20\x20\x20Status:\x20','\x20\x20\x20Description:\x20','Otljq','liEXp','\x20—\x20','meaAV','rKoCs','\x20in\x20progress','12DLowVP','split','\x1b[1m','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','oZVHC','github.com/','IEUhS','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','spvnE','EHZNQ','rXugz','\x20\x20\x20Progress:\x20','DTXyG','\x20\x20\x20▶️\x20Started\x20session\x20','5189976zgycSg','Unknown','8452NMgkrK','\x0a✅\x20Report\x20generated:\x20','scenarios','trimEnd','canonicalFlow','\x20scenarios.','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','gyslW','authorName','\x0aGenerating\x20report...','stats','find','ctYrY','TfVjs','isKeyStep','RcrTz','canceledReason','\x20blocked','slice','\x0aAvailable\x20scenarios:','blockedReason','description','InFww','\x20\x20\x20\x20\x20Progress:\x20','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','QuaeM','error','output','jqjNJ','assetType','7849345wXLbPR','version','filter','TDICd','rgNjn','unaddressedComments','qdQSu','jTmcC','9BaXGHZ','latestReview','nKYtZ','json','trim'];_0x441f=function(){return _0x5f5253;};return _0x441f();}import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x171702=>_0x46b8ce(0x227)+_0x171702+'\x1b[0m';function getGitRepoUrl(){const _0x109d2b=_0x46b8ce,_0x1236a3={'jJJAp':_0x109d2b(0x1df),'mIQYr':'pipe'};try{const _0x4dd005=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x1236a3['jJJAp'],'stdio':[_0x109d2b(0x1fc),_0x109d2b(0x1fc),_0x1236a3['mIQYr']]})['trim']();return _0x4dd005[_0x109d2b(0x187)](/\.git$/,'')[_0x109d2b(0x187)](/^git@github\.com:/,_0x109d2b(0x14d))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x5c20d4=_0x46b8ce,_0x536f82={'OlJeU':function(_0x209ada,_0x39462a,_0xdd6714){return _0x209ada(_0x39462a,_0xdd6714);},'YHURc':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','oxyTb':'utf-8'};try{return _0x536f82[_0x5c20d4(0x1b5)](execSync,_0x536f82['YHURc'],{'encoding':_0x536f82['oxyTb'],'stdio':[_0x5c20d4(0x1fc),'pipe',_0x5c20d4(0x1fc)]})[_0x5c20d4(0x183)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x251b2b=_0x46b8ce,_0x355a71={'nbhrx':function(_0x560d58){return _0x560d58();},'CkImb':function(_0x3bee76,_0xb91bb){return _0x3bee76(_0xb91bb);}},_0x49cd79=join(_0x355a71['nbhrx'](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x355a71['CkImb'](existsSync,_0x49cd79))return null;try{const _0xb8656d=await readFile(_0x49cd79,'utf-8');return _0xb8656d[_0x251b2b(0x183)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x527316){const _0x571bfc=_0x46b8ce,_0x3c2e4c={'swPcG':function(_0x28146d,_0x3bbd5){return _0x28146d(_0x3bbd5);},'IpFld':function(_0x2d635a,_0x4fcb55,_0x58b841){return _0x2d635a(_0x4fcb55,_0x58b841);},'jqjNJ':function(_0x341786,_0x131d79,_0x86dba1,_0x3bafa0){return _0x341786(_0x131d79,_0x86dba1,_0x3bafa0);}},_0x4fb747=getRangerDir(),_0x1d9ac6=join(_0x4fb747,ACTIVE_FEATURE_FILE);!_0x3c2e4c['swPcG'](existsSync,_0x4fb747)&&await _0x3c2e4c[_0x571bfc(0x1a5)](mkdir,_0x4fb747,{'recursive':!![]}),await _0x3c2e4c[_0x571bfc(0x175)](writeFile,_0x1d9ac6,_0x527316,_0x571bfc(0x1df));}function getProgressDisplay(_0x5c30fd){const _0x1ebac1=_0x46b8ce,_0x29d7c2={'fZWRD':function(_0x186140,_0x646367){return _0x186140+_0x646367;},'rXugz':function(_0x553e7c,_0x3c99a6){return _0x553e7c===_0x3c99a6;},'PvUOx':function(_0x2a582e,_0xf4a3ae){return _0x2a582e*_0xf4a3ae;},'lvNlW':function(_0x1484f9,_0x3be6fb){return _0x1484f9/_0x3be6fb;},'QEquH':function(_0x302ea7,_0x4b5350){return _0x302ea7+_0x4b5350;},'GirFS':function(_0x4b2323,_0x226eff){return _0x4b2323>_0x226eff;},'QpGZf':function(_0x36c43c,_0x33ea82){return _0x36c43c>_0x33ea82;}},_0x355ca8=_0x5c30fd['verifiedItems']||0x0,_0x4d7d86=_0x5c30fd['verificationInProgressItems']||0x0,_0x5e98cf=_0x5c30fd['blockedItems']||0x0,_0x4224e0=_0x5c30fd[_0x1ebac1(0x1ae)]||0x0,_0x56de2c=_0x5c30fd[_0x1ebac1(0x1a1)]||0x0,_0x3dab13=_0x29d7c2['fZWRD'](_0x29d7c2['fZWRD'](_0x355ca8,_0x4d7d86)+_0x5e98cf,_0x4224e0)+_0x56de2c;if(_0x29d7c2[_0x1ebac1(0x152)](_0x3dab13,0x0))return'-';const _0x1c397d=0xa,_0x10f4d3=Math['round'](_0x29d7c2['PvUOx'](_0x29d7c2[_0x1ebac1(0x1de)](_0x355ca8,_0x3dab13),_0x1c397d)),_0x135127=_0x29d7c2['QEquH']('█'['repeat'](_0x10f4d3),'░'['repeat'](_0x1c397d-_0x10f4d3)),_0x1cd5ae=[];if(_0x5e98cf>0x0)_0x1cd5ae[_0x1ebac1(0x1c2)](_0x5e98cf+_0x1ebac1(0x16a));if(_0x29d7c2['GirFS'](_0x4224e0,0x0))_0x1cd5ae[_0x1ebac1(0x1c2)](_0x4224e0+'\x20incomplete');if(_0x29d7c2['QpGZf'](_0x4d7d86,0x0))_0x1cd5ae[_0x1ebac1(0x1c2)](_0x4d7d86+_0x1ebac1(0x224));const _0x51cc54=_0x1cd5ae[_0x1ebac1(0x18e)]>0x0?'\x20('+_0x1cd5ae['join'](',\x20')+')':'';return _0x135127+'\x20'+_0x355ca8+'/'+_0x3dab13+_0x1ebac1(0x1f0)+_0x51cc54;}function getCurrentSessionItems(_0x2b9ee3,_0x365340){const _0x5616e0=_0x46b8ce;if(!_0x2b9ee3['currentSessionId'])return _0x365340[_0x5616e0(0x179)](_0x63b883=>!_0x63b883[_0x5616e0(0x1bc)]);return _0x365340['filter'](_0x19c96e=>_0x19c96e[_0x5616e0(0x1bc)]===_0x2b9ee3['currentSessionId']||!_0x19c96e['sessionId']);}function displayFeature(_0x366103,_0x24c8bf){const _0x22e66e=_0x46b8ce,_0x2c7917={'DTXyG':function(_0x243f9f,_0x3f8e8f){return _0x243f9f>_0x3f8e8f;},'dLFQx':_0x22e66e(0x1d8),'LxaZD':function(_0xe1575b,_0x5ef5f7){return _0xe1575b===_0x5ef5f7;},'WMltw':_0x22e66e(0x1b6),'EHZNQ':function(_0x233eff,_0x55d923){return _0x233eff===_0x55d923;},'TDICd':_0x22e66e(0x18a),'JCXps':_0x22e66e(0x1b8),'ijCYT':function(_0x8d08a,_0x4e69b6){return _0x8d08a>_0x4e69b6;},'SKpzG':function(_0x4b28f7,_0x40f739){return _0x4b28f7+_0x40f739;},'Nnaus':'blocked','spvnE':_0x22e66e(0x1b4)};console[_0x22e66e(0x1cc)]('\x0a'+_0x366103['name']+'\x20('+_0x366103[_0x22e66e(0x1a8)]+')');_0x366103[_0x22e66e(0x163)]&&console['log'](_0x22e66e(0x153)+getProgressDisplay(_0x366103['stats']));_0x366103['description']&&console['log'](_0x22e66e(0x21e)+_0x366103['description']);_0x366103[_0x22e66e(0x215)]&&console[_0x22e66e(0x1cc)]('\x20\x20\x20Repository:\x20'+_0x366103[_0x22e66e(0x215)]);_0x366103['gitBranch']&&console[_0x22e66e(0x1cc)]('\x20\x20\x20Branch:\x20'+_0x366103[_0x22e66e(0x185)]);console['log'](_0x22e66e(0x1e5)+new Date(_0x366103[_0x22e66e(0x218)])[_0x22e66e(0x1dd)]());_0x366103[_0x22e66e(0x1b7)]&&console['log'](_0x22e66e(0x1a2)+new Date(_0x366103[_0x22e66e(0x1b7)])['toLocaleString']());if(_0x24c8bf&&_0x2c7917[_0x22e66e(0x154)](_0x24c8bf['length'],0x0)){console[_0x22e66e(0x1cc)](_0x2c7917['dLFQx']);for(let _0x18b7bc=0x0;_0x18b7bc<_0x24c8bf['length'];_0x18b7bc++){const _0x225526=_0x24c8bf[_0x18b7bc];let _0x10040e;if(_0x2c7917['LxaZD'](_0x225526[_0x22e66e(0x1e6)],_0x2c7917['WMltw'])&&_0x225526['terminalReason']==='approved')_0x10040e='✅';else{if(_0x225526['status']==='verified')_0x10040e='🟢';else{if(_0x2c7917['EHZNQ'](_0x225526['status'],_0x2c7917[_0x22e66e(0x17a)]))_0x10040e='🟠';else{if(_0x2c7917[_0x22e66e(0x151)](_0x225526['status'],_0x22e66e(0x1e8)))_0x10040e='🛑';else{if(_0x225526['status']===_0x22e66e(0x1b6))_0x10040e='⛔';else _0x225526[_0x22e66e(0x1e6)]===_0x2c7917['JCXps']?_0x10040e='⏳':_0x10040e='⬜';}}}}const _0x2231b7=_0x225526['version']>0x1?'\x20(v'+_0x225526[_0x22e66e(0x178)]+')':'',_0x439992=_0x2c7917['ijCYT'](_0x225526['version'],0x1)&&_0x225526[_0x22e66e(0x1f3)]&&_0x225526[_0x22e66e(0x1e6)]!==_0x22e66e(0x1b6)&&_0x225526[_0x22e66e(0x1e6)]!=='verified'?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+_0x2c7917[_0x22e66e(0x1ec)](_0x18b7bc,0x1)+'.\x20'+_0x10040e+'\x20'+_0x225526['description']+_0x2231b7+_0x439992);_0x225526['status']===_0x2c7917['Nnaus']&&_0x225526['blockedReason']&&console[_0x22e66e(0x1cc)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x225526[_0x22e66e(0x16d)]);_0x225526[_0x22e66e(0x1e6)]==='incomplete'&&_0x225526[_0x22e66e(0x199)]&&console[_0x22e66e(0x1cc)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x225526[_0x22e66e(0x199)]);if(_0x225526[_0x22e66e(0x1e6)]==='closed'&&_0x225526[_0x22e66e(0x192)]===_0x2c7917[_0x22e66e(0x150)])console['log'](_0x22e66e(0x1f8));else _0x2c7917[_0x22e66e(0x194)](_0x225526['status'],_0x22e66e(0x1b6))&&_0x225526['canceledReason']&&console[_0x22e66e(0x1cc)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x225526['canceledReason']);}}}export async function featureCreate(_0x5dff96,_0x47b81a){const _0x5e7411=_0x46b8ce,_0x2d424b={'SOzrx':function(_0x5f1d05){return _0x5f1d05();},'VpuNI':function(_0x2ac1ff,_0x1af2b3){return _0x2ac1ff===_0x1af2b3;},'CZCMX':function(_0x381167){return _0x381167();},'ZIeZS':function(_0x536dfc,_0x5e66de){return _0x536dfc(_0x5e66de);}},{envNames:_0x19ea94}=await _0x2d424b['SOzrx'](getEnvNames);if(_0x2d424b[_0x5e7411(0x1c1)](_0x19ea94['length'],0x0)&&!process['env']['RANGER_TEST_USERNAME']){let _0x2f4905=0x0;try{_0x2f4905=(await listCloudProfiles())['length'];}catch{_0x2f4905=0x1;}_0x2f4905===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x369e46=>bold(_0x369e46)));}const _0xc3b4f3=_0x47b81a[_0x5e7411(0x15a)]?_0x47b81a['scenarios']['map'](_0x424ad9=>_0x424ad9['trim']()):[],_0x9ad5af=_0x2d424b[_0x5e7411(0x1e2)](getGitRepoUrl),_0x294e74=_0x2d424b['CZCMX'](getGitBranch);console[_0x5e7411(0x1cc)](_0x5e7411(0x1ad));const _0x4a245a=await _0x2d424b[_0x5e7411(0x1e3)](createFeature,{'name':_0x5dff96,'description':_0x47b81a[_0x5e7411(0x16e)],'checklist':_0xc3b4f3,'gitRepoUrl':_0x9ad5af,'gitBranch':_0x294e74});await setActiveFeatureId(_0x4a245a['id']),await tryStartCurrentSession(_0x4a245a['id']);const _0x223485=process[_0x5e7411(0x18c)][_0x5e7411(0x190)];_0x223485&®isterSession(_0x223485,_0x4a245a['id']),console[_0x5e7411(0x1cc)](_0x5e7411(0x1b0)+_0x4a245a['id']),displayFeature(_0x4a245a,_0x4a245a['checklistItems']),console['log'](_0x5e7411(0x193));}export async function featureList(_0x48e0f6){const _0x194298=_0x46b8ce,_0x416a42={'BmbDn':function(_0x451912){return _0x451912();},'UDgWe':function(_0x2af26e){return _0x2af26e();},'ENXZs':_0x194298(0x20d),'boOXV':function(_0x829c7b,_0xc00a0c){return _0x829c7b(_0xc00a0c);},'QWeMC':function(_0x3af368,_0x55b412){return _0x3af368<_0x55b412;},'ISXLO':_0x194298(0x1bb)},_0x27a4e5={'limit':_0x48e0f6['limit']??0xa,'offset':_0x48e0f6['offset']??0x0,'includeDeleted':_0x48e0f6['includeDeleted']};_0x48e0f6[_0x194298(0x1fe)]&&(_0x27a4e5[_0x194298(0x215)]=_0x416a42['BmbDn'](getGitRepoUrl),_0x27a4e5[_0x194298(0x185)]=_0x416a42['UDgWe'](getGitBranch));const _0x3b8e79=await listFeatures(_0x27a4e5);if(_0x3b8e79[_0x194298(0x1ac)][_0x194298(0x18e)]===0x0){console['log'](_0x416a42['ENXZs']);return;}const _0x5c43c6=_0x3b8e79['totalCount']>_0x3b8e79[_0x194298(0x1ac)][_0x194298(0x18e)]?'Showing\x20'+_0x3b8e79[_0x194298(0x1ac)][_0x194298(0x18e)]+_0x194298(0x1f6)+_0x3b8e79['totalCount']:_0x3b8e79[_0x194298(0x1d0)]+'\x20feature\x20review(s)\x20found';console[_0x194298(0x1cc)]('\x0a'+_0x5c43c6+':\x0a');for(const _0x5e2fb4 of _0x3b8e79['items']){const _0x113e0c=_0x194298(0x18b)[_0x194298(0x226)]('|');let _0x20d1ec=0x0;while(!![]){switch(_0x113e0c[_0x20d1ec++]){case'0':_0x5e2fb4['stats']&&console[_0x194298(0x1cc)]('\x20\x20\x20Progress:\x20'+_0x416a42['boOXV'](getProgressDisplay,_0x5e2fb4['stats']));continue;case'1':console['log']('');continue;case'2':console[_0x194298(0x1cc)](_0x194298(0x1e5)+new Date(_0x5e2fb4[_0x194298(0x218)])['toLocaleDateString']());continue;case'3':_0x5e2fb4[_0x194298(0x185)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x5e2fb4[_0x194298(0x185)]);continue;case'4':console[_0x194298(0x1cc)]('\x20\x20\x20ID:\x20'+_0x5e2fb4['id']);continue;case'5':console['log'](''+_0x5e2fb4['name']);continue;}break;}}const _0x578717=_0x27a4e5[_0x194298(0x1e1)]??0xa,_0x27ab69=(_0x27a4e5[_0x194298(0x21b)]??0x0)+_0x3b8e79['items']['length'];if(_0x416a42[_0x194298(0x189)](_0x27ab69,_0x3b8e79[_0x194298(0x1d0)])){const _0x862b63=_0x578717!==0xa?_0x194298(0x1d6)+_0x578717:'',_0x3a3170=_0x48e0f6[_0x194298(0x1fe)]?_0x416a42[_0x194298(0x206)]:'',_0x40bf63=_0x48e0f6[_0x194298(0x1a4)]?_0x194298(0x20e):'';console['log'](_0x194298(0x1d1)+_0x27ab69+_0x862b63+_0x3a3170+_0x40bf63);}}export async function featureShow(_0x48f8ef){const _0x3d61a0=_0x46b8ce,_0x5691de={'qRJof':_0x3d61a0(0x1e7),'EynPs':function(_0x2429ec,_0x2b0fc2,_0x58ad69){return _0x2429ec(_0x2b0fc2,_0x58ad69);}},_0x2d36de=_0x48f8ef||await getActiveFeatureId();if(!_0x2d36de)throw new Error(_0x5691de['qRJof']);const _0x2b58dd=await getFeature(_0x2d36de);_0x5691de['EynPs'](displayFeature,_0x2b58dd,_0x2b58dd['checklistItems']);}export async function featureResume(_0x1ed5b8){const _0x3da8aa=_0x46b8ce,_0x3ee92b={'nKYtZ':function(_0x2f631f,_0x1017e5){return _0x2f631f(_0x1017e5);},'bQkRs':function(_0x4ab439,_0xab6971){return _0x4ab439!==_0xab6971;},'SBSjs':function(_0x17eda7,_0x4b51d4,_0x54dcc0){return _0x17eda7(_0x4b51d4,_0x54dcc0);},'sriHH':function(_0x5435bf,_0x2cd8a6){return _0x5435bf(_0x2cd8a6);},'EDEZP':function(_0x4d32d3){return _0x4d32d3();},'hvGYf':'Not\x20in\x20a\x20git\x20repository.','sCutE':function(_0x17abe5,_0x36c223){return _0x17abe5||_0x36c223;},'Psuja':function(_0x463fcc,_0x44b13b){return _0x463fcc===_0x44b13b;},'mmeNL':function(_0x1e7124,_0x41ae70){return _0x1e7124===_0x41ae70;},'rgNjn':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','HuLWe':'selected','UJwHk':function(_0x55d3df,_0x1154f6){return _0x55d3df!==_0x1154f6;},'mKCWb':function(_0xaa0d7d,_0x439669,_0x36dbee){return _0xaa0d7d(_0x439669,_0x36dbee);},'FJzEd':function(_0x12f682,_0x275878,_0x4f8f30){return _0x12f682(_0x275878,_0x4f8f30);}};if(_0x1ed5b8){const _0x1b415f=await _0x3ee92b[_0x3da8aa(0x181)](getFeature,_0x1ed5b8);await _0x3ee92b[_0x3da8aa(0x181)](setActiveFeatureId,_0x1b415f['id']);const _0x5be25a=getGitBranch();_0x5be25a&&_0x3ee92b[_0x3da8aa(0x1f7)](_0x5be25a,_0x1b415f[_0x3da8aa(0x185)])&&(await updateFeature(_0x1b415f['id'],{'gitBranch':_0x5be25a}),console[_0x3da8aa(0x1cc)](_0x3da8aa(0x186)+_0x5be25a));console['log'](_0x3da8aa(0x15f)+_0x1b415f[_0x3da8aa(0x1bd)]+'\x20('+_0x1b415f['id']+')'),await tryStartCurrentSession(_0x1b415f['id']);const _0x24ed33=process[_0x3da8aa(0x18c)][_0x3da8aa(0x190)];_0x24ed33&®isterSession(_0x24ed33,_0x1b415f['id']);_0x3ee92b['SBSjs'](displayFeature,_0x1b415f,_0x1b415f[_0x3da8aa(0x20a)]),await _0x3ee92b['sriHH'](printFeedbackNudge,_0x1b415f['id']);return;}const _0x427d45=_0x3ee92b[_0x3da8aa(0x1ea)](getGitRepoUrl),_0x34f596=_0x3ee92b['EDEZP'](getGitBranch);if(!_0x427d45&&!_0x34f596)throw new Error(_0x3ee92b[_0x3da8aa(0x211)]);console[_0x3da8aa(0x1cc)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x3ee92b['sCutE'](_0x427d45,_0x3da8aa(0x191))+_0x3da8aa(0x219)+_0x3ee92b['sCutE'](_0x34f596,_0x3da8aa(0x191))+'...');const _0x4e2a4b=await listFeatures({'gitRepoUrl':_0x427d45,'gitBranch':_0x34f596}),_0x305536=_0x4e2a4b['items']['filter'](_0xac8272=>_0xac8272['status']?_0xac8272['status']!=='verified':!_0xac8272['completedAt']);if(_0x3ee92b['Psuja'](_0x305536[_0x3da8aa(0x18e)],0x0)){console[_0x3da8aa(0x1cc)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x3da8aa(0x1cc)](_0x3da8aa(0x210));return;}let _0x3c0bc5;if(_0x3ee92b['mmeNL'](_0x305536[_0x3da8aa(0x18e)],0x1))_0x3c0bc5=_0x305536[0x0];else{const _0x5def50=process['stdin'][_0x3da8aa(0x20b)]&&process[_0x3da8aa(0x1d5)]['isTTY'];if(!_0x5def50){console['log'](_0x3da8aa(0x1e4));for(const _0x109f59 of _0x305536){console[_0x3da8aa(0x1cc)]('\x20\x20'+_0x109f59[_0x3da8aa(0x1bd)]),console['log'](_0x3da8aa(0x216)+_0x109f59['id']),_0x109f59['stats']&&console['log'](_0x3da8aa(0x170)+_0x3ee92b[_0x3da8aa(0x181)](getProgressDisplay,_0x109f59['stats'])),_0x109f59[_0x3da8aa(0x185)]&&console[_0x3da8aa(0x1cc)](_0x3da8aa(0x20f)+_0x109f59[_0x3da8aa(0x185)]);}throw new Error(_0x3ee92b[_0x3da8aa(0x17b)]);}const {selected:_0x427427}=await _0x2e466d['prompt']([{'type':_0x3da8aa(0x19e),'name':_0x3ee92b['HuLWe'],'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x305536[_0x3da8aa(0x209)](_0x444c97=>({'name':_0x444c97['name']+'\x20('+_0x444c97['id']+')','value':_0x444c97['id']}))}]);_0x3c0bc5=_0x305536[_0x3da8aa(0x164)](_0x459b09=>_0x459b09['id']===_0x427427);}await setActiveFeatureId(_0x3c0bc5['id']);_0x34f596&&_0x3ee92b['UJwHk'](_0x34f596,_0x3c0bc5[_0x3da8aa(0x185)])&&(await _0x3ee92b['mKCWb'](updateFeature,_0x3c0bc5['id'],{'gitBranch':_0x34f596}),console['log'](_0x3da8aa(0x186)+_0x34f596));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3c0bc5[_0x3da8aa(0x1bd)]+'\x20('+_0x3c0bc5['id']+')'),await tryStartCurrentSession(_0x3c0bc5['id']);const _0x208f8d=await getFeature(_0x3c0bc5['id']),_0x52bf82=process[_0x3da8aa(0x18c)][_0x3da8aa(0x190)];_0x52bf82&&_0x3ee92b['FJzEd'](registerSession,_0x52bf82,_0x208f8d['id']),displayFeature(_0x208f8d,_0x208f8d[_0x3da8aa(0x20a)]),await printFeedbackNudge(_0x208f8d['id']);}async function printFeedbackNudge(_0x27949f){const _0x305e19=_0x46b8ce,_0x1946b8={'XcvPh':function(_0x96b558,_0x5d7de4,_0x139137){return _0x96b558(_0x5d7de4,_0x139137);},'rKoCs':function(_0x4d4aa4,_0x2a0750){return _0x4d4aa4>_0x2a0750;},'IXavt':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x2f55e4}=await getActionItems(_0x27949f);let _0x33d550=0x0,_0x5acd4b=0x0;for(const _0x36617a of _0x2f55e4){const _0x3bcfc5=await _0x1946b8[_0x305e19(0x195)](getItemFeedback,_0x27949f,_0x36617a['id']);_0x1946b8[_0x305e19(0x223)](_0x3bcfc5[_0x305e19(0x17c)]['length'],0x0)&&(_0x33d550+=_0x3bcfc5[_0x305e19(0x17c)]['length'],_0x5acd4b++);}_0x1946b8['rKoCs'](_0x33d550,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x33d550+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x5acd4b+'\x20scenario(s).'),console['log'](_0x1946b8[_0x305e19(0x1fd)]));}catch{}}async function tryStartCurrentSession(_0x203731){const _0x1937e9=_0x46b8ce,_0x25ed25={'qdQSu':function(_0x577af5,_0x33b714){return _0x577af5(_0x33b714);}};try{const {sessions:_0x17a9e4}=await _0x25ed25[_0x1937e9(0x17d)](listFeatureSessions,_0x203731),_0x4aa1a7=_0x17a9e4['find'](_0x48295c=>_0x48295c[_0x1937e9(0x1e6)]===_0x1937e9(0x1b2));_0x4aa1a7&&(await startSession(_0x203731,_0x4aa1a7['id']),console[_0x1937e9(0x1cc)](_0x1937e9(0x155)+_0x4aa1a7['iteration']));}catch{}}export async function featureReport(_0x50831f,_0xeac083){const _0x2f6248=_0x46b8ce,_0x3537c2={'TmCBn':_0x2f6248(0x162),'QuaeM':function(_0x1d3d01,_0x3e3bd0,_0x2fb156){return _0x1d3d01(_0x3e3bd0,_0x2fb156);},'lByVy':function(_0x2a7e41,_0xdc1539,_0x383837){return _0x2a7e41(_0xdc1539,_0x383837);},'sXEyj':'utf-8'},_0x4efe91=_0x50831f||await getActiveFeatureId();if(!_0x4efe91)throw new Error(_0x2f6248(0x19a));console[_0x2f6248(0x1cc)](_0x3537c2[_0x2f6248(0x1eb)]);const _0x3384ab=await getFeatureReportMarkdown(_0x4efe91,{'style':_0xeac083['style']}),_0xc46266=_0xeac083[_0x2f6248(0x174)]||join(getRangerDir(),'reports',_0x4efe91+_0x2f6248(0x1cd)),_0x221fbb=_0x3537c2[_0x2f6248(0x172)](join,_0xc46266,'..');!existsSync(_0x221fbb)&&await _0x3537c2['lByVy'](mkdir,_0x221fbb,{'recursive':!![]}),await writeFile(_0xc46266,_0x3384ab,_0x3537c2['sXEyj']),console[_0x2f6248(0x1cc)](_0x2f6248(0x159)+_0xc46266);}function getScenarioResult(_0x15e27c){const _0x23245d=_0x46b8ce,_0x3bf082={'meaAV':'closed','XDtzI':'verification_in_progress'};if(_0x15e27c[_0x23245d(0x1e6)]===_0x3bf082[_0x23245d(0x222)])return _0x15e27c[_0x23245d(0x192)]??_0x3bf082['meaAV'];if(_0x15e27c['status']===_0x3bf082[_0x23245d(0x1ab)])return'in_progress';return _0x15e27c[_0x23245d(0x1e6)];}function getScenarioRationale(_0x50de1e,_0x2c2258){const _0x584977=_0x46b8ce,_0x4f6597='1|2|0|4|3|5'['split']('|');let _0x589c42=0x0;while(!![]){switch(_0x4f6597[_0x589c42++]){case'0':if(_0x50de1e[_0x584977(0x199)])return _0x50de1e[_0x584977(0x199)];continue;case'1':if(_0x2c2258)return _0x2c2258;continue;case'2':if(_0x50de1e['blockedReason'])return _0x50de1e[_0x584977(0x16d)];continue;case'3':if(_0x50de1e[_0x584977(0x207)])return _0x50de1e['notes'];continue;case'4':if(_0x50de1e[_0x584977(0x169)])return _0x50de1e['canceledReason'];continue;case'5':return null;}break;}}function _0x3533(_0x23c6a3,_0x2c8f08){_0x23c6a3=_0x23c6a3-0x14c;const _0x441f2f=_0x441f();let _0x353351=_0x441f2f[_0x23c6a3];return _0x353351;}export async function featureReportPrDescription(_0x4bd805,_0x5d71a0){const _0x2c89d9=_0x46b8ce,_0x208364={'xOhSx':_0x2c89d9(0x19a),'jfJSz':function(_0x21c096,_0x2dd63a){return _0x21c096===_0x2dd63a;},'xgjoH':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','vvIHR':function(_0x1edd4e,_0x1c9bfa){return _0x1edd4e>_0x1c9bfa;},'pCDbU':function(_0x3f6cef,_0x2c174d){return _0x3f6cef+_0x2c174d;}},_0x54c8b5=_0x4bd805||await getActiveFeatureId();if(!_0x54c8b5)throw new Error(_0x208364[_0x2c89d9(0x1a9)]);const _0x2a2cf7=await getFeature(_0x54c8b5),_0x149cbb=_0x2a2cf7[_0x2c89d9(0x20a)]||[],_0xafab73=getCurrentSessionItems(_0x2a2cf7,_0x149cbb);_0x208364[_0x2c89d9(0x1f1)](_0xafab73[_0x2c89d9(0x18e)],0x0)&&(console['error'](_0x208364['xgjoH']),process['exit'](0x1));const _0x3de342=_0x5d71a0['excludeScenarios']??[],_0x4d5d5c=_0x3de342[_0x2c89d9(0x179)](_0x1597a9=>!Number['isInteger'](_0x1597a9)||_0x1597a9<0x1||_0x1597a9>_0xafab73[_0x2c89d9(0x18e)]);if(_0x208364[_0x2c89d9(0x188)](_0x4d5d5c[_0x2c89d9(0x18e)],0x0)){console['error'](_0x2c89d9(0x14f)+_0x4d5d5c['join'](',\x20')),console[_0x2c89d9(0x1cc)]('\x0aAvailable\x20scenarios:');for(let _0x5bee31=0x0;_0x5bee31<_0xafab73[_0x2c89d9(0x18e)];_0x5bee31++){console['log']('\x20\x20'+_0x208364['pCDbU'](_0x5bee31,0x1)+'.\x20'+_0xafab73[_0x5bee31][_0x2c89d9(0x16e)]);}process['exit'](0x1);}const _0x656024=new Set(_0x3de342[_0x2c89d9(0x209)](_0x31fab1=>_0x31fab1-0x1)),_0x59da5a=_0xafab73['filter']((_0x3db2bd,_0x372a3a)=>!_0x656024[_0x2c89d9(0x1ef)](_0x372a3a));_0x208364['jfJSz'](_0x59da5a[_0x2c89d9(0x18e)],0x0)&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x5d71a0[_0x2c89d9(0x182)])await outputJsonReport(_0x54c8b5,_0x2a2cf7,_0x59da5a);else{const _0x24540c=await getFeatureReportMarkdown(_0x54c8b5,{'itemIds':_0x59da5a[_0x2c89d9(0x209)](_0x2e07d7=>_0x2e07d7['id'])});process['stdout']['write'](_0x24540c[_0x2c89d9(0x15b)]()+'\x0a');}}async function outputJsonReport(_0x49b7a8,_0x21d707,_0x3087b8){const _0x510279=_0x46b8ce,_0x486e22={'cycir':function(_0x250434,_0x3ba3ad){return _0x250434(_0x3ba3ad);},'qoBVj':function(_0x16fff8,_0x273158){return _0x16fff8>_0x273158;},'ctYrY':function(_0x3376a1,_0x420025){return _0x3376a1===_0x420025;},'RJSVp':function(_0x5f4bcc,_0x397a37){return _0x5f4bcc(_0x397a37);},'wlqOx':function(_0x1eec11,_0x4533f2,_0x5214ec){return _0x1eec11(_0x4533f2,_0x5214ec);},'mFQLu':function(_0x36bec4){return _0x36bec4();},'ybYrf':function(_0x27b07e,_0x5efe30){return _0x27b07e(_0x5efe30);}},_0x35d098=_0x486e22['mFQLu'](getApiBaseUrl),_0x2465a5=await _0x486e22['ybYrf'](getFeatureReport,_0x49b7a8),_0x3fbc72=new Map(_0x2465a5['checklistItems'][_0x510279(0x209)](_0x54b95e=>[_0x54b95e['id'],_0x54b95e])),_0x297496=await Promise['all'](_0x3087b8['map'](async _0xd34e55=>{const _0x466a7e=_0x510279,_0x2bce9a=_0x3fbc72[_0x466a7e(0x1bf)](_0xd34e55['id']),_0x42da52=_0x2bce9a?.[_0x466a7e(0x18d)]??null;let _0x2a8824=[];if(_0xd34e55['browserSessionId'])try{const {steps:_0x4afae2}=await _0x486e22['cycir'](getBrowserSessionSteps,_0xd34e55['browserSessionId']);_0x486e22['qoBVj'](_0x4afae2[_0x466a7e(0x18e)],0x0)&&(_0x2a8824=_0x4afae2[_0x466a7e(0x209)](_0x5d2dc1=>{const _0x17c1b5=_0x466a7e,_0x3731b6=_0x5d2dc1[_0x17c1b5(0x1be)][_0x17c1b5(0x164)](_0x2f2980=>_0x2f2980[_0x17c1b5(0x176)]==='screenshot'&&_0x2f2980[_0x17c1b5(0x19c)]==='after')??_0x5d2dc1[_0x17c1b5(0x1be)]['find'](_0xea80e=>_0xea80e[_0x17c1b5(0x176)]==='screenshot');let _0x4cdf52=null,_0x260413=null;if(_0x3731b6){const _0x581994=_0x3731b6['storage'][_0x17c1b5(0x1e9)]['split']('/')[_0x17c1b5(0x1b1)]();_0x4cdf52=_0x35d098+'/api/v1/mcp/browser-sessions/'+_0xd34e55['browserSessionId']+_0x17c1b5(0x20c)+_0x581994,_0x581994&&(_0x260413=_0x581994[_0x17c1b5(0x187)](/\.\w+$/,'')[_0x17c1b5(0x187)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x260413||_0x5d2dc1['description']||_0x5d2dc1[_0x17c1b5(0x19d)]||'Step\x20'+_0x5d2dc1[_0x17c1b5(0x200)],'screenshot':_0x4cdf52,'is_key_step':_0x5d2dc1[_0x17c1b5(0x167)]};}));}catch{}return _0x486e22[_0x466a7e(0x165)](_0x2a8824['length'],0x0)&&_0x42da52?.[_0x466a7e(0x1c6)]&&(_0x2a8824=_0x42da52[_0x466a7e(0x1c6)][_0x466a7e(0x209)]((_0x5854ea,_0x126aa7)=>({'description':_0x466a7e(0x1ee)+(_0x126aa7+0x1),'screenshot':_0x5854ea,'is_key_step':![]}))),{'description':_0xd34e55['description'],'result':_0x486e22[_0x466a7e(0x214)](getScenarioResult,_0xd34e55),'rationale':_0x486e22[_0x466a7e(0x1fa)](getScenarioRationale,_0xd34e55,_0x42da52?.['agentResponse']),'steps':_0x2a8824};})),_0x287c58={'url':_0x21d707[_0x510279(0x1a8)],'scenarios':_0x297496};process[_0x510279(0x1d5)][_0x510279(0x21a)](JSON[_0x510279(0x1d9)](_0x287c58,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x56c52a){const _0x47b14e=_0x46b8ce,_0x264330={'lNIZH':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','hmuDU':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','ALvxp':function(_0x2ac2b6,_0x2826cb){return _0x2ac2b6(_0x2826cb);},'LUuVb':function(_0x163841,_0xdb05cf){return _0x163841===_0xdb05cf;},'kbekc':function(_0x1d1558,_0x597c70){return _0x1d1558!==_0x597c70;},'RcrTz':_0x47b14e(0x1a6),'oZVHC':'\x0aConcluding\x20session...','dOTKj':function(_0x4e153f,_0x2b6213,_0x20b20a){return _0x4e153f(_0x2b6213,_0x20b20a);}},_0x5150d5=_0x56c52a||await getActiveFeatureId();if(!_0x5150d5)throw new Error(_0x264330['lNIZH']);const _0x553f26=await getFeature(_0x5150d5);if(!_0x553f26[_0x47b14e(0x197)])throw new Error(_0x264330['hmuDU']);const {sessions:_0x197d28}=await _0x264330['ALvxp'](listFeatureSessions,_0x5150d5),_0x1f047f=_0x197d28['find'](_0x387746=>_0x387746['id']===_0x553f26[_0x47b14e(0x197)]);if(!_0x1f047f)throw new Error(_0x47b14e(0x1d4));if(_0x264330[_0x47b14e(0x1b3)](_0x1f047f[_0x47b14e(0x1e6)],_0x47b14e(0x202))){console['log'](_0x47b14e(0x1ca));return;}if(_0x264330[_0x47b14e(0x1c0)](_0x1f047f['status'],_0x264330[_0x47b14e(0x168)]))throw new Error(_0x47b14e(0x196)+_0x1f047f['status']);console[_0x47b14e(0x1cc)](_0x264330[_0x47b14e(0x14c)]),await _0x264330['dOTKj'](concludeSession,_0x5150d5,_0x553f26[_0x47b14e(0x197)]),console[_0x47b14e(0x1cc)]('\x0a✅\x20Session\x20'+_0x1f047f['iteration']+'\x20concluded.'),console['log'](_0x47b14e(0x228));}export async function featureSessions(_0x2a1cee){const _0x9f8529=_0x46b8ce,_0x18f2a0={'qOIDV':_0x9f8529(0x19a),'InFww':function(_0x4d741a,_0x4a0a59){return _0x4d741a(_0x4a0a59);},'JFYEO':function(_0x1d48f6,_0x374b90){return _0x1d48f6===_0x374b90;},'eAKnE':'completed','udFdi':_0x9f8529(0x1a6)},_0x55108f=_0x2a1cee||await getActiveFeatureId();if(!_0x55108f)throw new Error(_0x18f2a0[_0x9f8529(0x1e0)]);const _0x2a97d8=await _0x18f2a0[_0x9f8529(0x16f)](getFeature,_0x55108f);console[_0x9f8529(0x1cc)](_0x9f8529(0x171)+_0x2a97d8['name']+'\x0a');const {sessions:_0x421b43}=await listFeatureSessions(_0x55108f);if(_0x18f2a0[_0x9f8529(0x1aa)](_0x421b43['length'],0x0)){console[_0x9f8529(0x1cc)]('No\x20sessions\x20found.');return;}for(const _0x2c90fc of _0x421b43){const _0x52db3b=_0x2c90fc[_0x9f8529(0x1e6)]===_0x18f2a0['eAKnE']?'✅':_0x18f2a0[_0x9f8529(0x1aa)](_0x2c90fc['status'],_0x18f2a0['udFdi'])?'🔄':'▶️';console['log'](_0x52db3b+'\x20Session\x20'+_0x2c90fc[_0x9f8529(0x198)]+'\x20('+_0x2c90fc['id']+')'),console['log'](_0x9f8529(0x21d)+_0x2c90fc['status']),console['log'](_0x9f8529(0x1e5)+new Date(_0x2c90fc['createdAt'])['toLocaleString']()),_0x2c90fc[_0x9f8529(0x1b7)]&&console['log'](_0x9f8529(0x1a2)+new Date(_0x2c90fc[_0x9f8529(0x1b7)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x365ceb,_0x1af0db){const _0x5c6b30=_0x46b8ce,_0x229f21={'lhpjU':function(_0x2eea8d){return _0x2eea8d();},'nHXzo':_0x5c6b30(0x1e7),'ZJVHT':function(_0x337ef8,_0xeb01c){return _0x337ef8(_0xeb01c);},'jTmcC':function(_0x3d1e6b,_0x34fa97){return _0x3d1e6b(_0x34fa97);},'WFSZJ':function(_0x592971,_0x380a8d,_0x161da2){return _0x592971(_0x380a8d,_0x161da2);}},_0x40f705=_0x1af0db||await _0x229f21['lhpjU'](getActiveFeatureId);if(!_0x40f705)throw new Error(_0x229f21[_0x5c6b30(0x1ed)]);const _0x2e5005=await _0x229f21['ZJVHT'](getFeature,_0x40f705);if(_0x2e5005[_0x5c6b30(0x180)]&&!_0x2e5005['latestReview'][_0x5c6b30(0x1a7)])throw new Error(_0x5c6b30(0x1db)+_0x2e5005['dashboardUrl']);await createChecklistItem(_0x40f705,_0x365ceb);const _0x1fa035=await _0x229f21[_0x5c6b30(0x17e)](getFeature,_0x40f705);console['log']('\x0a✅\x20Scenario\x20added'),_0x229f21['WFSZJ'](displayFeature,_0x1fa035,_0x1fa035['checklistItems']);}export async function featureEditScenario(_0x228f3a,_0x11da72){const _0x5b6d61=_0x46b8ce,_0x3539fa={'QXUeX':function(_0x190012,_0x7d06e6){return _0x190012(_0x7d06e6);},'QJCBM':function(_0x4b03a4,_0x28e039){return _0x4b03a4===_0x28e039;},'kStOw':_0x5b6d61(0x18f),'gUGBu':function(_0x25e649,_0x5ce57d){return _0x25e649<_0x5ce57d;},'TfVjs':function(_0x5c8e2a,_0x5570c7){return _0x5c8e2a+_0x5570c7;},'IEUhS':function(_0x16ae8d,_0x432b97){return _0x16ae8d-_0x432b97;},'wrwni':function(_0x1717ab,_0x1dc31b){return _0x1717ab(_0x1dc31b);}},_0x446435=_0x11da72['id']||await getActiveFeatureId();!_0x446435&&(console[_0x5b6d61(0x173)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x5b6d61(0x173)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x23a46c=await _0x3539fa[_0x5b6d61(0x19f)](getFeature,_0x446435);_0x23a46c['latestReview']&&!_0x23a46c['latestReview'][_0x5b6d61(0x1a7)]&&(console[_0x5b6d61(0x173)](_0x5b6d61(0x213)),console['error'](_0x5b6d61(0x1c5)),console[_0x5b6d61(0x173)]('\x20\x20'+_0x23a46c['dashboardUrl']),process['exit'](0x1));const _0x33576d=_0x23a46c[_0x5b6d61(0x20a)]||[];_0x3539fa['QJCBM'](_0x33576d['length'],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x3539fa[_0x5b6d61(0x1c4)](_0x11da72[_0x5b6d61(0x1cf)],undefined)){console[_0x5b6d61(0x173)](_0x3539fa['kStOw']),console[_0x5b6d61(0x1cc)]('\x0aAvailable\x20scenarios:');for(let _0x3bd541=0x0;_0x3539fa['gUGBu'](_0x3bd541,_0x33576d['length']);_0x3bd541++){console['log']('\x20\x20'+_0x3539fa[_0x5b6d61(0x166)](_0x3bd541,0x1)+'.\x20'+_0x33576d[_0x3bd541][_0x5b6d61(0x16e)]);}process['exit'](0x1);}const _0x6ed64e=_0x3539fa[_0x5b6d61(0x14e)](_0x11da72[_0x5b6d61(0x1cf)],0x1);if(_0x6ed64e<0x0||_0x6ed64e>=_0x33576d['length']){console[_0x5b6d61(0x173)](_0x5b6d61(0x15e)+_0x11da72[_0x5b6d61(0x1cf)]+_0x5b6d61(0x184)+_0x33576d['length']+_0x5b6d61(0x15d)),console['log'](_0x5b6d61(0x16c));for(let _0x26c81d=0x0;_0x26c81d<_0x33576d[_0x5b6d61(0x18e)];_0x26c81d++){console['log']('\x20\x20'+(_0x26c81d+0x1)+'.\x20'+_0x33576d[_0x26c81d][_0x5b6d61(0x16e)]);}process['exit'](0x1);}const _0xd6f300=_0x33576d[_0x6ed64e];await updateChecklistItem(_0x446435,_0xd6f300['id'],{'description':_0x228f3a});const _0x1349b3=await _0x3539fa[_0x5b6d61(0x205)](getFeature,_0x446435);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x1349b3,_0x1349b3[_0x5b6d61(0x20a)]);}async function downloadFeedbackImage(_0x3d3ff5,_0x46a40){const _0x47734d=_0x46b8ce,_0x2ed07b={'JGbVt':function(_0x299fc0,_0x10accd,_0x3c62d3){return _0x299fc0(_0x10accd,_0x3c62d3);},'giFzd':_0x47734d(0x1ff),'vfYKe':function(_0x2f6a46,_0x2f380e,_0x1c59b7){return _0x2f6a46(_0x2f380e,_0x1c59b7);}};try{const _0x25c359=_0x2ed07b['JGbVt'](join,getRangerDir(),_0x2ed07b['giFzd']);await _0x2ed07b[_0x47734d(0x217)](mkdir,_0x25c359,{'recursive':!![]});const _0x1ea732=join(_0x25c359,'comment_'+_0x46a40+'.png'),_0x36d534=await fetch(_0x3d3ff5);if(!_0x36d534['ok'])return null;const _0x1409d3=Buffer['from'](await _0x36d534[_0x47734d(0x1a3)]());return await _0x2ed07b[_0x47734d(0x217)](writeFile,_0x1ea732,_0x1409d3),_0x1ea732;}catch{return null;}}export async function featureGetReview(_0x4e21ab){const _0x5509fd=_0x46b8ce,_0x504eb1={'QXPkC':function(_0x2c766a){return _0x2c766a();},'JamQQ':function(_0x385688,_0x5a7ae1){return _0x385688<_0x5a7ae1;},'fPsWw':'en-US','VtOeU':function(_0x41f2fd,_0x19272a){return _0x41f2fd===_0x19272a;},'MrGpC':'point','liEXp':function(_0x3ab5cb,_0x1cd9e8){return _0x3ab5cb+_0x1cd9e8;}},_0x35c170=_0x4e21ab||await _0x504eb1['QXPkC'](getActiveFeatureId);if(!_0x35c170)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x572fab=await getFeature(_0x35c170),{items:_0x35bf3c}=await getActionItems(_0x35c170);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x572fab['name']+'\x20('+_0x572fab['id']+')\x0a');if(_0x35bf3c[_0x5509fd(0x18e)]===0x0){console['log']('No\x20scenarios\x20found.');return;}for(let _0x95f569=0x0;_0x504eb1['JamQQ'](_0x95f569,_0x35bf3c[_0x5509fd(0x18e)]);_0x95f569++){const _0x18a65b=_0x35bf3c[_0x95f569],_0x3c1122=_0x18a65b[_0x5509fd(0x178)]>0x1?'\x20(v'+_0x18a65b['version']+')':'',_0x513153=await getItemFeedback(_0x35c170,_0x18a65b['id']);if(_0x513153['unaddressedComments']['length']>0x0){console['log']('Scenario\x20'+(_0x95f569+0x1)+_0x5509fd(0x1c7)+_0x18a65b[_0x5509fd(0x16e)]+'\x22'+_0x3c1122+_0x5509fd(0x221)+_0x513153[_0x5509fd(0x17c)][_0x5509fd(0x18e)]+'\x20unaddressed\x20comment(s)');for(const _0x597f2e of _0x513153[_0x5509fd(0x17c)]){const _0x271f1e=new Date(_0x597f2e['createdAt'])['toLocaleDateString'](_0x504eb1['fPsWw'],{'month':_0x5509fd(0x1a0),'day':'numeric'}),_0x1dd646=_0x597f2e[_0x5509fd(0x161)]||_0x597f2e['authorEmail']||_0x5509fd(0x157);console['log']('\x20\x20💬\x20'+_0x1dd646+'\x20('+_0x271f1e+_0x5509fd(0x21c)+_0x597f2e[_0x5509fd(0x1f4)]+'\x22');if(_0x597f2e[_0x5509fd(0x1b9)]){const _0x4ac863=await downloadFeedbackImage(_0x597f2e['assetUrl'],_0x597f2e['id']);_0x4ac863&&console[_0x5509fd(0x1cc)](_0x5509fd(0x1ce)+_0x4ac863);}if(_0x597f2e[_0x5509fd(0x1da)]){const _0x37b607=_0x597f2e[_0x5509fd(0x1da)][_0x5509fd(0x1fb)]['split']('\x20>\x20')[_0x5509fd(0x1b1)]()?.[_0x5509fd(0x226)](':')[0x0]||'element',_0x21f591=_0x597f2e[_0x5509fd(0x1da)]['textContent']?'\x20\x22'+_0x597f2e['domRef']['textContent'][_0x5509fd(0x16b)](0x0,0x3c)+'\x22':'';console['log'](_0x5509fd(0x204)+_0x37b607+'>'+_0x21f591),console[_0x5509fd(0x1cc)](_0x5509fd(0x1d7)+_0x597f2e['domRef'][_0x5509fd(0x1fb)]);}else{if(_0x597f2e['spatial']){const _0xd589c5=_0x597f2e[_0x5509fd(0x212)][_0x5509fd(0x1f9)];_0x504eb1['VtOeU'](_0x597f2e['spatial']['type'],_0x504eb1['MrGpC'])&&_0xd589c5['length']>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0xd589c5[0x0][_0x5509fd(0x208)](0x2)+',\x20'+_0xd589c5[0x1][_0x5509fd(0x208)](0x2)+')'):console[_0x5509fd(0x1cc)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x597f2e[_0x5509fd(0x212)][_0x5509fd(0x201)]+_0x5509fd(0x1f5)+_0xd589c5['map'](_0x7fc514=>_0x7fc514[_0x5509fd(0x208)](0x2))['join'](',\x20')+']');}}}if(_0x513153['canonicalFlow']){console[_0x5509fd(0x1cc)](_0x5509fd(0x1cb));for(const _0x295ebe of _0x513153[_0x5509fd(0x15c)]['split']('\x0a')){console[_0x5509fd(0x1cc)]('\x20\x20\x20\x20'+_0x295ebe);}}}else console['log']('Scenario\x20'+_0x504eb1[_0x5509fd(0x220)](_0x95f569,0x1)+':\x20\x22'+_0x18a65b[_0x5509fd(0x16e)]+'\x22'+_0x3c1122+'\x20—\x20no\x20comments'),console[_0x5509fd(0x1cc)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x5509fd(0x1cc)]('');}}export async function featureDelete(_0x27d380){const _0x49b24b=_0x46b8ce,_0x32aa11={'wBLiM':function(_0x105c14){return _0x105c14();},'coviW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','YCAIH':function(_0x456996,_0x197f93){return _0x456996(_0x197f93);}},_0x56c29f=_0x27d380||await _0x32aa11['wBLiM'](getActiveFeatureId);if(!_0x56c29f)throw new Error(_0x32aa11[_0x49b24b(0x1d2)]);const _0xbb6bba=await getFeature(_0x56c29f);await _0x32aa11['YCAIH'](softDeleteFeature,_0x56c29f),console['log'](_0x49b24b(0x1f2)+_0xbb6bba[_0x49b24b(0x1bd)]+'\x20('+_0x56c29f+')'),console['log']('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x56c29f);}export async function featureRestore(_0x539377){const _0x2870cf=_0x46b8ce,_0x3c1d3f={'AilgJ':function(_0x4607a9,_0x4351cb){return _0x4607a9(_0x4351cb);},'Otljq':function(_0x3e5d8b,_0x11b2e3){return _0x3e5d8b(_0x11b2e3);},'gyslW':function(_0x47cb98,_0x17edd6,_0x2887e8){return _0x47cb98(_0x17edd6,_0x2887e8);}};await _0x3c1d3f[_0x2870cf(0x203)](restoreFeature,_0x539377);const _0x31ab6e=await _0x3c1d3f[_0x2870cf(0x21f)](getFeature,_0x539377);console[_0x2870cf(0x1cc)](_0x2870cf(0x1ba)+_0x31ab6e[_0x2870cf(0x1bd)]+'\x20('+_0x539377+')'),_0x3c1d3f[_0x2870cf(0x160)](displayFeature,_0x31ab6e,_0x31ab6e[_0x2870cf(0x20a)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x34fb(_0x31e785,_0x4574db){_0x31e785=_0x31e785-0x15d;const _0xca51e9=_0xca51();let _0x34fbd3=_0xca51e9[_0x31e785];return _0x34fbd3;}(function(_0x4dba69,_0x392651){const _0x3c2698=_0x34fb,_0x1d265b=_0x4dba69();while(!![]){try{const _0x829e5c=parseInt(_0x3c2698(0x16f))/0x1+parseInt(_0x3c2698(0x15f))/0x2*(-parseInt(_0x3c2698(0x167))/0x3)+-parseInt(_0x3c2698(0x169))/0x4*(parseInt(_0x3c2698(0x16c))/0x5)+parseInt(_0x3c2698(0x162))/0x6*(-parseInt(_0x3c2698(0x161))/0x7)+parseInt(_0x3c2698(0x16d))/0x8*(parseInt(_0x3c2698(0x163))/0x9)+parseInt(_0x3c2698(0x164))/0xa*(parseInt(_0x3c2698(0x166))/0xb)+parseInt(_0x3c2698(0x160))/0xc*(parseInt(_0x3c2698(0x165))/0xd);if(_0x829e5c===_0x392651)break;else _0x1d265b['push'](_0x1d265b['shift']());}catch(_0x51e535){_0x1d265b['push'](_0x1d265b['shift']());}}}(_0xca51,0x4b5c4));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0xca51(){const _0x6d348a=['324512LiOigZ','840stcYIG','7ygemob','2621196LwUtrm','19251RujnFo','70xeYNyQ','88231FUVsyc','42537XFWckE','3fzckke','join','496924jCEtoT','exit','keys','5MIsxWF','1808OXYGsa','wBJId','46456SUboko','error','once','SIGTERM'];_0xca51=function(){return _0x6d348a;};return _0xca51();}const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x14eb3e=_0x34fb;if(cancellationHandlersInstalled)return;const _0x2ffbf1=()=>{const _0x4c811f=_0x34fb;process[_0x4c811f(0x16a)](0x0);};process['once']('SIGINT',_0x2ffbf1),process[_0x14eb3e(0x15d)](_0x14eb3e(0x15e),_0x2ffbf1),process[_0x14eb3e(0x15d)]('SIGHUP',_0x2ffbf1),cancellationHandlersInstalled=!![];}export async function hook(_0x6e0366,_0x2ead70){const _0x22dbbb=_0x34fb,_0x5ea442={'wBJId':function(_0x4e1f41,_0x4c1695){return _0x4e1f41(_0x4c1695);}};installCancellationHandlers();const _0x11e1ea=HOOKS[_0x6e0366];if(!_0x11e1ea){const _0xb77b90=Object[_0x22dbbb(0x16b)](HOOKS)[_0x22dbbb(0x168)](',\x20');console[_0x22dbbb(0x170)]('Unknown\x20hook:\x20'+_0x6e0366),console[_0x22dbbb(0x170)]('Valid\x20hooks:\x20'+_0xb77b90),process[_0x22dbbb(0x16a)](0x1);}await _0x5ea442[_0x22dbbb(0x16e)](_0x11e1ea,_0x2ead70);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19f210,_0x12f4b0){const _0x4be623=_0x30d3,_0x2f2b3a=_0x19f210();while(!![]){try{const _0x473b08=-parseInt(_0x4be623(0x158))/0x1*(-parseInt(_0x4be623(0x15a))/0x2)+-parseInt(_0x4be623(0x156))/0x3*(-parseInt(_0x4be623(0x166))/0x4)+parseInt(_0x4be623(0x15d))/0x5+-parseInt(_0x4be623(0x159))/0x6*(-parseInt(_0x4be623(0x15f))/0x7)+-parseInt(_0x4be623(0x163))/0x8*(parseInt(_0x4be623(0x161))/0x9)+-parseInt(_0x4be623(0x15e))/0xa*(parseInt(_0x4be623(0x157))/0xb)+-parseInt(_0x4be623(0x167))/0xc;if(_0x473b08===_0x12f4b0)break;else _0x2f2b3a['push'](_0x2f2b3a['shift']());}catch(_0x389cb3){_0x2f2b3a['push'](_0x2f2b3a['shift']());}}}(_0x2eda,0x28593));function _0x2eda(){const _0x4a5ef3=['51090BZlFDR','10aWtVPw','98XqFfGA','YQiuR','7794vDKJSL','FJhVx','928PsPDFS','log','OufwX','7452LrNzPK','5411964Urxqwa','321pMzMrO','991782fVxrTK','685DBhFUo','124182TCCluQ','898pFCUWR','TZKed','fkVNK'];_0x2eda=function(){return _0x4a5ef3;};return _0x2eda();}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x30d3(_0x18c901,_0x51de8b){_0x18c901=_0x18c901-0x156;const _0x2eda05=_0x2eda();let _0x30d372=_0x2eda05[_0x18c901];return _0x30d372;}import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';export async function autoPrompt(){const _0x577a21=_0x30d3,_0x217c59={'FJhVx':function(_0x1812d3,_0x51fb2a){return _0x1812d3===_0x51fb2a;},'YQiuR':'off','TZKed':function(_0x55cd27){return _0x55cd27();},'fkVNK':function(_0x5346c7,_0x1f4bd7){return _0x5346c7(_0x1f4bd7);},'OufwX':function(_0x11bdac,_0x27c003){return _0x11bdac(_0x27c003);}};if(_0x217c59[_0x577a21(0x162)](resolveHookMode(),_0x217c59[_0x577a21(0x160)]))return;const _0x263508=await _0x217c59[_0x577a21(0x15b)](readHookInput),_0x9c8c20=_0x263508?.['session_id'];if(!_0x9c8c20)return;if(_0x217c59[_0x577a21(0x15c)](isSessionEnabled,_0x9c8c20)||_0x217c59[_0x577a21(0x15c)](hasSessionBeenPrompted,_0x9c8c20))return;_0x217c59[_0x577a21(0x165)](markSessionPrompted,_0x9c8c20),console[_0x577a21(0x164)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2e49(_0x4a4459,_0x3bbbaa){_0x4a4459=_0x4a4459-0xb2;const _0xa7b356=_0xa7b3();let _0x2e49b0=_0xa7b356[_0x4a4459];return _0x2e49b0;}(function(_0x43b2fd,_0x1598e7){const _0x3bc0e0=_0x2e49,_0x53f67e=_0x43b2fd();while(!![]){try{const _0x26f9ea=parseInt(_0x3bc0e0(0xbb))/0x1*(-parseInt(_0x3bc0e0(0xc0))/0x2)+-parseInt(_0x3bc0e0(0xbf))/0x3*(parseInt(_0x3bc0e0(0xba))/0x4)+parseInt(_0x3bc0e0(0xb7))/0x5+-parseInt(_0x3bc0e0(0xb5))/0x6*(-parseInt(_0x3bc0e0(0xb9))/0x7)+-parseInt(_0x3bc0e0(0xb2))/0x8+parseInt(_0x3bc0e0(0xc2))/0x9*(-parseInt(_0x3bc0e0(0xc1))/0xa)+-parseInt(_0x3bc0e0(0xbe))/0xb*(-parseInt(_0x3bc0e0(0xb8))/0xc);if(_0x26f9ea===_0x1598e7)break;else _0x53f67e['push'](_0x53f67e['shift']());}catch(_0x10bbd9){_0x53f67e['push'](_0x53f67e['shift']());}}}(_0xa7b3,0x63542));function _0xa7b3(){const _0x27b050=['TgDac','master','33HhYIAn','395637CegFcF','2126HzZQBp','10QPEkef','3648609HboqpT','3728456yUAkKA','mZOUX','CLAUDE_SESSION_ID','2041026GVQdQd','main','854485dffjHj','5488572alWCld','14LEFzbF','4UevCHE','765qyaHhp'];_0xa7b3=function(){return _0x27b050;};return _0xa7b3();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x3027be){const _0x23a69c=_0x2e49,_0x118484={'PRauZ':function(_0x2cbf96,_0x5eb858){return _0x2cbf96(_0x5eb858);},'YriSb':function(_0x24ca6c){return _0x24ca6c();},'WXyeL':function(_0x57f8e7,_0x56f421){return _0x57f8e7!==_0x56f421;},'mZOUX':_0x23a69c(0xb6),'TgDac':function(_0xd8dbb6,_0x45b8e2){return _0xd8dbb6!==_0x45b8e2;},'yjRSP':function(_0x5026ac,_0x4040cb){return _0x5026ac!==_0x4040cb;}},_0x84c0c2=_0x3027be||process['env'][_0x23a69c(0xb4)]||'';_0x84c0c2&&_0x118484['PRauZ'](disableSession,_0x84c0c2);const _0x4b75cd=_0x118484['YriSb'](getCurrentBranch);_0x4b75cd&&_0x118484['WXyeL'](_0x4b75cd,_0x118484['mZOUX'])&&_0x118484[_0x23a69c(0xbc)](_0x4b75cd,'master')&&disableBranch(_0x4b75cd),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x4b75cd&&_0x4b75cd!==_0x118484[_0x23a69c(0xb3)]&&_0x118484['yjRSP'](_0x4b75cd,_0x23a69c(0xbd))?'\x20and\x20branch\x20\x27'+_0x4b75cd+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x37a26f,_0x3d6360){const _0xf917b8=_0x1b57,_0x1927a6=_0x37a26f();while(!![]){try{const _0x2ef439=parseInt(_0xf917b8(0x149))/0x1*(parseInt(_0xf917b8(0x140))/0x2)+-parseInt(_0xf917b8(0x153))/0x3*(parseInt(_0xf917b8(0x146))/0x4)+-parseInt(_0xf917b8(0x141))/0x5*(-parseInt(_0xf917b8(0x144))/0x6)+parseInt(_0xf917b8(0x151))/0x7*(-parseInt(_0xf917b8(0x13f))/0x8)+-parseInt(_0xf917b8(0x143))/0x9+-parseInt(_0xf917b8(0x14c))/0xa+parseInt(_0xf917b8(0x14d))/0xb*(parseInt(_0xf917b8(0x152))/0xc);if(_0x2ef439===_0x3d6360)break;else _0x1927a6['push'](_0x1927a6['shift']());}catch(_0x5eab29){_0x1927a6['push'](_0x1927a6['shift']());}}}(_0x47eb,0xa7903));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x47eb(){const _0x427dd9=['XKosk','master','9484410zpzHwk','21579734lypnfW','#\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`','ranger\x20setup\x20--opencode','UUTSr','16807zwVcyU','12IvjRpw','519rsAodz','ranger\x20setup','1616SCaPFv','1158ZjQrAu','305CPeAZO','#\x20RANGER\x20ENABLED','1418778baoUaK','122946oxVFxL','CLAUDE_SESSION_ID','22232mvEPDy','env','cIjpY','47VKVphD'];_0x47eb=function(){return _0x427dd9;};return _0x47eb();}import{getRangerSkillContent}from'../utils/skillContent.js';function _0x1b57(_0x12dff2,_0x3aa77d){_0x12dff2=_0x12dff2-0x13e;const _0x47eb0a=_0x47eb();let _0x1b57b2=_0x47eb0a[_0x12dff2];return _0x1b57b2;}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x484b19){const _0x45b09b=_0x1b57,_0x5201b3={'PhJZz':_0x45b09b(0x14f),'GyUAa':_0x45b09b(0x13e),'XKosk':function(_0x96f168,_0x3ef034){return _0x96f168(_0x3ef034);},'cIjpY':function(_0x5cbaa4,_0x5aa4e7){return _0x5cbaa4!==_0x5aa4e7;},'UUTSr':function(_0xeffee3,_0x88308d){return _0xeffee3!==_0x88308d;}},_0x253d84=_0x484b19||process[_0x45b09b(0x147)][_0x45b09b(0x145)]||'',_0x46b55c=Boolean(_0x484b19),_0x2993c3=await getToken();if(!_0x2993c3){const _0x2ea981=_0x46b55c?_0x5201b3['PhJZz']:_0x5201b3['GyUAa'],_0x5ba0f7=_0x46b55c?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x5201b3[_0x45b09b(0x14a)](printBlock,_0x45b09b(0x14e)+_0x2ea981+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x5ba0f7);return;}try{await update();}catch{}_0x253d84&&enableSession(_0x253d84);const _0x44f2a3=getCurrentBranch(),_0x2ad73d=_0x44f2a3&&_0x5201b3[_0x45b09b(0x148)](_0x44f2a3,'main')&&_0x5201b3[_0x45b09b(0x150)](_0x44f2a3,_0x45b09b(0x14b))?'\x0a\x0a**Branch\x20\x27'+_0x44f2a3+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x2fbb8f=getRangerSkillContent();_0x5201b3[_0x45b09b(0x14a)](printBlock,_0x45b09b(0x142)+_0x2ad73d+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x2fbb8f+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x26fb(){const _0x444d65=['467110HjIrnW','155253ZgAFOL','7VdIbhg','2xoChAH','3581106mRAVah','586674aSgjye','40edtBJy','76kbwItu','===\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===','33tLmIGB','154090boEmDB','YCJrd','703983HzAQHL','7419288feoQhr'];_0x26fb=function(){return _0x444d65;};return _0x26fb();}(function(_0x31bc64,_0x1ae249){const _0x2da649=_0x1689,_0x2628df=_0x31bc64();while(!![]){try{const _0x479b87=parseInt(_0x2da649(0x149))/0x1+parseInt(_0x2da649(0x140))/0x2*(parseInt(_0x2da649(0x13e))/0x3)+parseInt(_0x2da649(0x144))/0x4*(parseInt(_0x2da649(0x147))/0x5)+parseInt(_0x2da649(0x141))/0x6*(parseInt(_0x2da649(0x13f))/0x7)+-parseInt(_0x2da649(0x143))/0x8*(-parseInt(_0x2da649(0x142))/0x9)+-parseInt(_0x2da649(0x13d))/0xa+parseInt(_0x2da649(0x146))/0xb*(-parseInt(_0x2da649(0x14a))/0xc);if(_0x479b87===_0x1ae249)break;else _0x2628df['push'](_0x2628df['shift']());}catch(_0x5b3062){_0x2628df['push'](_0x2628df['shift']());}}}(_0x26fb,0x5881c));import{printBlock,getEnabledSessionId}from'./output.js';function _0x1689(_0x3f4f4c,_0x2f9b03){_0x3f4f4c=_0x3f4f4c-0x13d;const _0x26fb69=_0x26fb();let _0x168974=_0x26fb69[_0x3f4f4c];return _0x168974;}export async function exitPlanMode(_0x5049ff){const _0x24d8f9=_0x1689,_0x90cf05={'YCJrd':function(_0x2705d4,_0x1cb31f){return _0x2705d4(_0x1cb31f);}},_0x42e006=await _0x90cf05[_0x24d8f9(0x148)](getEnabledSessionId,_0x5049ff);if(!_0x42e006)return;printBlock(_0x24d8f9(0x145));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3e84(){var _0x2f2b0b=['3100980CNTHCE','822141ckiKTx','72DFpXXs','24otTZyf','565530azcanA','164aNrBFg','31865KivHYH','433065hbFSSs','165137oxHRXG','8KMdVEp','33gzIjQz','21932qTBjqR','26eAupaY'];_0x3e84=function(){return _0x2f2b0b;};return _0x3e84();}(function(_0x530c7c,_0x2ed054){var _0x340424=_0x4049,_0x339563=_0x530c7c();while(!![]){try{var _0x51b06e=parseInt(_0x340424(0xc6))/0x1*(parseInt(_0x340424(0xce))/0x2)+parseInt(_0x340424(0xca))/0x3+-parseInt(_0x340424(0xc8))/0x4*(-parseInt(_0x340424(0xc9))/0x5)+-parseInt(_0x340424(0xd2))/0x6*(-parseInt(_0x340424(0xcb))/0x7)+-parseInt(_0x340424(0xcc))/0x8*(parseInt(_0x340424(0xd1))/0x9)+parseInt(_0x340424(0xc7))/0xa*(-parseInt(_0x340424(0xcd))/0xb)+parseInt(_0x340424(0xd0))/0xc*(-parseInt(_0x340424(0xcf))/0xd);if(_0x51b06e===_0x2ed054)break;else _0x339563['push'](_0x339563['shift']());}catch(_0x23c7d7){_0x339563['push'](_0x339563['shift']());}}}(_0x3e84,0x2a806));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';function _0x4049(_0x566331,_0x325a38){_0x566331=_0x566331-0xc6;var _0x3e8407=_0x3e84();var _0x404909=_0x3e8407[_0x566331];return _0x404909;}export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4983e1,_0x4f7234){const _0x59980e=_0x158f,_0x2c9739=_0x4983e1();while(!![]){try{const _0x5b680f=parseInt(_0x59980e(0x85))/0x1*(-parseInt(_0x59980e(0x82))/0x2)+-parseInt(_0x59980e(0x7a))/0x3+-parseInt(_0x59980e(0x7b))/0x4*(parseInt(_0x59980e(0x79))/0x5)+parseInt(_0x59980e(0x81))/0x6+-parseInt(_0x59980e(0x7f))/0x7+-parseInt(_0x59980e(0x86))/0x8+-parseInt(_0x59980e(0x83))/0x9*(-parseInt(_0x59980e(0x7c))/0xa);if(_0x5b680f===_0x4f7234)break;else _0x2c9739['push'](_0x2c9739['shift']());}catch(_0x29bf59){_0x2c9739['push'](_0x2c9739['shift']());}}}(_0x4cff,0x51d18));import{isSessionEnabled}from'../utils/sessionCache.js';function _0x158f(_0x15be7c,_0x26706e){_0x15be7c=_0x15be7c-0x78;const _0x4cff78=_0x4cff();let _0x158f1b=_0x4cff78[_0x15be7c];return _0x158f1b;}export function printBlock(_0x17e7f5){const _0x488b13=_0x158f;console[_0x488b13(0x84)](_0x17e7f5);}function _0x4cff(){const _0x34bf35=['log','2wuIopT','1995200yOXfqF','stdin','1761470bYdPxl','1019037tOuObI','4EWjmop','15749890FtMSBj','KghtW','session_id','353801DVfpcH','trim','1345506ZTTyQQ','472196uplKsE','9piiJjs'];_0x4cff=function(){return _0x34bf35;};return _0x4cff();}export async function readHookInput(){const _0x1fb156=_0x158f;let _0x34f867='';try{for await(const _0x30db20 of process[_0x1fb156(0x78)]){_0x34f867+=_0x30db20;}}catch{return null;}if(!_0x34f867[_0x1fb156(0x80)]())return null;try{return JSON['parse'](_0x34f867);}catch{return null;}}export async function getEnabledSessionId(_0x12ecec){const _0x4f4827=_0x158f,_0x1f03d0={'KghtW':function(_0x4bc72c){return _0x4bc72c();}};if(_0x12ecec)return isSessionEnabled(_0x12ecec)?_0x12ecec:null;const _0x410c6c=await _0x1f03d0[_0x4f4827(0x7d)](readHookInput),_0x2df69d=_0x410c6c?.[_0x4f4827(0x7e)];if(!_0x2df69d||!isSessionEnabled(_0x2df69d))return null;return _0x2df69d;}export async function getEnabledHookContext(_0x2ceca7){const _0x2d04a8=_0x158f,_0x4710fa={'RShZR':function(_0x2d8baa,_0x3a192d){return _0x2d8baa(_0x3a192d);},'TMGww':function(_0x15ee13,_0x28113a){return _0x15ee13(_0x28113a);}};if(_0x2ceca7){if(!_0x4710fa['RShZR'](isSessionEnabled,_0x2ceca7))return null;return{'sessionId':_0x2ceca7,'input':{'session_id':_0x2ceca7}};}const _0x203bd0=await readHookInput(),_0x4eec30=_0x203bd0?.[_0x2d04a8(0x7e)];if(!_0x4eec30||!_0x4710fa['TMGww'](isSessionEnabled,_0x4eec30))return null;return{'sessionId':_0x4eec30,'input':_0x203bd0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x55cf(_0x3733a6,_0x5bc7f1){_0x3733a6=_0x3733a6-0x1a3;const _0x34e84a=_0x34e8();let _0x55cfee=_0x34e84a[_0x3733a6];return _0x55cfee;}(function(_0x275ceb,_0x5a5cf7){const _0x15fdfb=_0x55cf,_0x4b411a=_0x275ceb();while(!![]){try{const _0x381329=parseInt(_0x15fdfb(0x1a5))/0x1*(parseInt(_0x15fdfb(0x1aa))/0x2)+-parseInt(_0x15fdfb(0x1ad))/0x3*(parseInt(_0x15fdfb(0x1ae))/0x4)+parseInt(_0x15fdfb(0x1a9))/0x5*(-parseInt(_0x15fdfb(0x1a3))/0x6)+-parseInt(_0x15fdfb(0x1af))/0x7*(parseInt(_0x15fdfb(0x1a8))/0x8)+-parseInt(_0x15fdfb(0x1ab))/0x9*(-parseInt(_0x15fdfb(0x1b2))/0xa)+-parseInt(_0x15fdfb(0x1b3))/0xb*(parseInt(_0x15fdfb(0x1b1))/0xc)+parseInt(_0x15fdfb(0x1a4))/0xd;if(_0x381329===_0x5a5cf7)break;else _0x4b411a['push'](_0x4b411a['shift']());}catch(_0x206de4){_0x4b411a['push'](_0x4b411a['shift']());}}}(_0x34e8,0xb10cf));function _0x34e8(){const _0x21e39c=['6444ahstcu','22523631lQrUXE','878831IYxuvs','===\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===','sessionId','4805088piIKuJ','5040WfwgsI','2rzVKVR','54207FInRdA','plan','166524zUtUrD','96bLtVXI','7jmnpsh','NTjmd','6456INQQjA','1890bnEIDt','187muGkjD'];_0x34e8=function(){return _0x21e39c;};return _0x34e8();}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x2c90f1){const _0x24ed91=_0x55cf,_0x553bf8={'HyQwg':_0x24ed91(0x1ac),'NTjmd':function(_0x1503f3,_0x2dfb37){return _0x1503f3(_0x2dfb37);}},_0x10603d=await getEnabledHookContext(_0x2c90f1);if(!_0x10603d)return;if(_0x10603d['input']['permission_mode']!==_0x553bf8['HyQwg'])return;if(!shouldShowPlanReminder(_0x10603d[_0x24ed91(0x1a7)]))return;_0x553bf8[_0x24ed91(0x1b0)](printBlock,_0x24ed91(0x1a6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2afd(){const _0x3efdea=['4178152WzeJXw','2XWIFly','===\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===','9376deIIkJ','9079248IwdEIR','1502013DTSIqe','2495UvQXEu','1681003kdpMDs','31939434ZcpHkP','10395553EjysdO'];_0x2afd=function(){return _0x3efdea;};return _0x2afd();}function _0x7e11(_0x1d0597,_0x15c607){_0x1d0597=_0x1d0597-0x7c;const _0x2afdfe=_0x2afd();let _0x7e1186=_0x2afdfe[_0x1d0597];return _0x7e1186;}(function(_0x50fa36,_0x522a88){const _0x3e8d3c=_0x7e11,_0x4fb458=_0x50fa36();while(!![]){try{const _0x4f558f=parseInt(_0x3e8d3c(0x81))/0x1+parseInt(_0x3e8d3c(0x85))/0x2*(parseInt(_0x3e8d3c(0x7f))/0x3)+parseInt(_0x3e8d3c(0x7d))/0x4*(-parseInt(_0x3e8d3c(0x80))/0x5)+parseInt(_0x3e8d3c(0x7e))/0x6+parseInt(_0x3e8d3c(0x83))/0x7+parseInt(_0x3e8d3c(0x84))/0x8+-parseInt(_0x3e8d3c(0x82))/0x9;if(_0x4f558f===_0x522a88)break;else _0x4fb458['push'](_0x4fb458['shift']());}catch(_0x1a2686){_0x4fb458['push'](_0x4fb458['shift']());}}}(_0x2afd,0xf02c4));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x52ae4d){const _0x15ef24=_0x7e11,_0x53a5cc=await getEnabledSessionId(_0x52ae4d);if(!_0x53a5cc)return;printBlock(_0x15ef24(0x7c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b5f41,_0x5f0d1d){const _0x27a62a=_0x29c3,_0x2eb8ee=_0x5b5f41();while(!![]){try{const _0x3fdf09=parseInt(_0x27a62a(0x1c8))/0x1*(-parseInt(_0x27a62a(0x1cb))/0x2)+-parseInt(_0x27a62a(0x1cd))/0x3*(parseInt(_0x27a62a(0x1cc))/0x4)+parseInt(_0x27a62a(0x1c7))/0x5+parseInt(_0x27a62a(0x1ca))/0x6+-parseInt(_0x27a62a(0x1d1))/0x7+parseInt(_0x27a62a(0x1c9))/0x8*(-parseInt(_0x27a62a(0x1c6))/0x9)+parseInt(_0x27a62a(0x1ce))/0xa;if(_0x3fdf09===_0x5f0d1d)break;else _0x2eb8ee['push'](_0x2eb8ee['shift']());}catch(_0x2ebdf2){_0x2eb8ee['push'](_0x2eb8ee['shift']());}}}(_0x3ca0,0x467a6));function _0x29c3(_0xee5c10,_0x344e07){_0xee5c10=_0xee5c10-0x1c5;const _0x3ca029=_0x3ca0();let _0x29c396=_0x3ca029[_0xee5c10];return _0x29c396;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x3ca0(){const _0x411237=['225JKHqmZ','2117405UvjXZM','175aCVQKd','111096kEoDBU','437484SLPKpU','6518RFXKOi','8xfDswE','659967BDdqxi','15066280ArxVSB','stringify','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.','2498069YEeCtE','PostToolUse','log'];_0x3ca0=function(){return _0x411237;};return _0x3ca0();}export async function postEdit(_0x132314){const _0x11953e=_0x29c3,_0x51a7a7={'Ygwws':function(_0x46d44d,_0x1ac51c){return _0x46d44d(_0x1ac51c);},'bpmbg':_0x11953e(0x1d2)},_0x6d1982=await getEnabledSessionId(_0x132314);if(!_0x6d1982)return;updateBranchTracking(_0x6d1982);const _0x471b63=await getToken();if(!_0x471b63)return;const _0x26d817=_0x51a7a7['Ygwws'](getSessionEntry,_0x6d1982);if(_0x26d817){const _0x15d38d={'hookSpecificOutput':{'hookEventName':_0x51a7a7['bpmbg'],'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[_0x11953e(0x1c5)](JSON[_0x11953e(0x1cf)](_0x15d38d));return;}const _0x232386={'hookSpecificOutput':{'hookEventName':_0x51a7a7['bpmbg'],'additionalContext':_0x11953e(0x1d0)}};console['log'](JSON['stringify'](_0x232386));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5aa5(){const _0x3cd173=['3086070pXPbMS','10AINNNJ','495gUrkzO','71JXoLdd','3KzIXKS','236EZClbN','3072503agPAhb','14389573fQTivH','55280OhzGKZ','3817048LMNGuA','MPhZG','32552FRIdko'];_0x5aa5=function(){return _0x3cd173;};return _0x5aa5();}(function(_0x4b82af,_0x8c8df2){const _0x3a0dbc=_0x4994,_0x5e7ac3=_0x4b82af();while(!![]){try{const _0x178977=-parseInt(_0x3a0dbc(0xc3))/0x1*(parseInt(_0x3a0dbc(0xc5))/0x2)+parseInt(_0x3a0dbc(0xc4))/0x3*(-parseInt(_0x3a0dbc(0xbd))/0x4)+parseInt(_0x3a0dbc(0xbc))/0x5+-parseInt(_0x3a0dbc(0xc0))/0x6+parseInt(_0x3a0dbc(0xc6))/0x7+-parseInt(_0x3a0dbc(0xbf))/0x8*(-parseInt(_0x3a0dbc(0xc2))/0x9)+-parseInt(_0x3a0dbc(0xc1))/0xa*(-parseInt(_0x3a0dbc(0xc7))/0xb);if(_0x178977===_0x8c8df2)break;else _0x5e7ac3['push'](_0x5e7ac3['shift']());}catch(_0x95e5b){_0x5e7ac3['push'](_0x5e7ac3['shift']());}}}(_0x5aa5,0x7b46a));import{getToken}from'../utils/keychain.js';function _0x4994(_0x546b37,_0x1b28b5){_0x546b37=_0x546b37-0xbc;const _0x5aa520=_0x5aa5();let _0x499451=_0x5aa520[_0x546b37];return _0x499451;}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0xa29b4){const _0x468b74=_0x4994,_0x41301b={'MPhZG':function(_0x548b59){return _0x548b59();}},_0x3ca9f6=await getEnabledSessionId(_0xa29b4);if(!_0x3ca9f6)return;try{const _0x2c1609=await _0x41301b[_0x468b74(0xbe)](getToken);if(!_0x2c1609)return;printBlock('===\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`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27476d,_0x363b1b){const _0x4701eb=_0x5c34,_0x481ff5=_0x27476d();while(!![]){try{const _0x44a64c=parseInt(_0x4701eb(0x13c))/0x1*(-parseInt(_0x4701eb(0x139))/0x2)+-parseInt(_0x4701eb(0x134))/0x3*(-parseInt(_0x4701eb(0x137))/0x4)+-parseInt(_0x4701eb(0x13d))/0x5*(-parseInt(_0x4701eb(0x13b))/0x6)+-parseInt(_0x4701eb(0x138))/0x7+parseInt(_0x4701eb(0x132))/0x8*(parseInt(_0x4701eb(0x135))/0x9)+parseInt(_0x4701eb(0x136))/0xa+-parseInt(_0x4701eb(0x131))/0xb;if(_0x44a64c===_0x363b1b)break;else _0x481ff5['push'](_0x481ff5['shift']());}catch(_0x44ebed){_0x481ff5['push'](_0x481ff5['shift']());}}}(_0x164e,0xdd5bb));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x164e(){const _0x214430=['1950GgiGgs','2047bfmakC','19315DRqosU','PERqU','7336307VIJMki','103256LcSYUE','clear','3TzRBuS','1260lkuNGm','4329690JUyFcn','4205752fyDOGK','11025987UZnIuc','1366eBXQcj','session_id'];_0x164e=function(){return _0x214430;};return _0x164e();}function _0x5c34(_0x4debb2,_0x4c58ed){_0x4debb2=_0x4debb2-0x131;const _0x164eea=_0x164e();let _0x5c3448=_0x164eea[_0x4debb2];return _0x5c3448;}import{readHookInput}from'./output.js';export async function sessionEnd(_0xb74df9){const _0x4add95=_0x5c34,_0x24d22c={'PERqU':function(_0x1dc529,_0x4bac18){return _0x1dc529===_0x4bac18;},'yNtvJ':_0x4add95(0x133)},_0x3b70cd=process['env']['CLAUDE_SESSION_ID'];let _0x24a859=_0xb74df9,_0x1e29af;if(!_0xb74df9){if(_0x3b70cd&&!isSessionEnabled(_0x3b70cd))return;const _0x27c762=await readHookInput();_0x24a859=_0x27c762?.[_0x4add95(0x13a)]||_0x3b70cd,_0x1e29af=_0x27c762?.['reason'];}if(!_0x24a859)return;_0x24d22c[_0x4add95(0x13e)](_0x1e29af,_0x24d22c['yNtvJ'])&&recordEnabledSessionCleared(_0x24a859);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4abddf,_0x540d82){const _0x238b51=_0x1ca9,_0x3961d2=_0x4abddf();while(!![]){try{const _0x49c8bf=-parseInt(_0x238b51(0x110))/0x1+parseInt(_0x238b51(0x11d))/0x2*(parseInt(_0x238b51(0x112))/0x3)+-parseInt(_0x238b51(0x123))/0x4*(-parseInt(_0x238b51(0x113))/0x5)+parseInt(_0x238b51(0x11a))/0x6+-parseInt(_0x238b51(0x117))/0x7+-parseInt(_0x238b51(0x125))/0x8+parseInt(_0x238b51(0x111))/0x9*(parseInt(_0x238b51(0x122))/0xa);if(_0x49c8bf===_0x540d82)break;else _0x3961d2['push'](_0x3961d2['shift']());}catch(_0x115ea8){_0x3961d2['push'](_0x3961d2['shift']());}}}(_0x2609,0x7019f));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x2609(){const _0x32900e=['TAksk','bMZAS','5313780uzFclu','CLAUDE_ENV_FILE','export\x20CLAUDE_SESSION_ID=\x22','2ohYvsg','XQgRx','stringify','env','trackCommandEnd','20nktIEz','4AYmpcm','success','3577480yHCSHJ','oIJyf','190773cVZdHS','256023oMSWFA','61851gAOSWY','2677700giRPYK','log','KoFOK','vzSSH','2810892XluoIk'];_0x2609=function(){return _0x32900e;};return _0x2609();}function _0x1ca9(_0x1addb1,_0x38944c){_0x1addb1=_0x1addb1-0x110;const _0x26092b=_0x2609();let _0x1ca9a3=_0x26092b[_0x1addb1];return _0x1ca9a3;}import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\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=================================================================';export async function sessionStart(_0x5f08bc){const _0x3d3d91=_0x1ca9,_0x4b4774={'aCglW':function(_0x290488,_0x108520){return _0x290488||_0x108520;},'oIJyf':'source','bMZAS':function(_0x2e8142,_0x3ec22e){return _0x2e8142&&_0x3ec22e;},'KoFOK':function(_0x47e391,_0x1572eb){return _0x47e391(_0x1572eb);},'gjoes':function(_0x5be8bd,_0x5b4289){return _0x5be8bd===_0x5b4289;},'mQDQZ':function(_0x121882,_0x2abf35){return _0x121882(_0x2abf35);},'xYysx':'hook:session-start','eBhaY':_0x3d3d91(0x124),'vzSSH':function(_0x25e0b2,_0x373c29){return _0x25e0b2!==_0x373c29;},'XQgRx':'master','TAksk':function(_0x37ba67,_0x3fd803){return _0x37ba67+_0x3fd803;}};let _0x53fa1e=_0x4b4774['aCglW'](_0x5f08bc,''),_0x4ede15;if(!_0x5f08bc){let _0x3a86c9='';for await(const _0x5af1ce of process['stdin']){_0x3a86c9+=_0x5af1ce;}try{const _0x36cf48=JSON['parse'](_0x3a86c9);_0x53fa1e=_0x36cf48['session_id']||'',_0x4ede15=_0x36cf48[_0x4b4774[_0x3d3d91(0x126)]];}catch{}const _0x45f9e2=process[_0x3d3d91(0x120)][_0x3d3d91(0x11b)];if(_0x4b4774[_0x3d3d91(0x119)](_0x45f9e2,_0x53fa1e))try{await appendFile(_0x45f9e2,_0x3d3d91(0x11c)+_0x53fa1e+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x53fa1e){shouldAutoEnableAfterClear(_0x4ede15)&&_0x4b4774[_0x3d3d91(0x115)](autoEnableAfterClear,_0x53fa1e);initBranchTracking(_0x53fa1e);_0x4b4774['gjoes'](resolveHookMode(),'on')&&_0x4b4774['mQDQZ'](enableSession,_0x53fa1e);const _0x38bfa7=isSessionEnabled(_0x53fa1e);try{const _0x38a6cf=createTelemetryCollector(_0x4b4774['xYysx']);await _0x38a6cf['trackCommandStart']({'sessionId':_0x53fa1e,'hooksEnabled':_0x38bfa7}),await _0x38a6cf[_0x3d3d91(0x121)](_0x4b4774['eBhaY']);}catch{}if(_0x38bfa7){const _0x38d64e=getCurrentBranch(),_0x588d34=_0x38d64e&&_0x4b4774['vzSSH'](_0x38d64e,'main')&&_0x4b4774[_0x3d3d91(0x116)](_0x38d64e,_0x4b4774[_0x3d3d91(0x11e)])?'\x20(Branch:\x20'+_0x38d64e+')':'',_0x4292d8={'hookSpecificOutput':{'hookEventName':'SessionStart','additionalContext':_0x4b4774[_0x3d3d91(0x118)](RANGER_AUTO_ENABLED_PROMPT,_0x588d34)}};console[_0x3d3d91(0x114)](JSON[_0x3d3d91(0x11f)](_0x4292d8));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e1d88,_0x140cda){const _0x31d0ba=_0xfaaa,_0x1576e4=_0x3e1d88();while(!![]){try{const _0x16661d=-parseInt(_0x31d0ba(0x19b))/0x1+-parseInt(_0x31d0ba(0x19c))/0x2*(parseInt(_0x31d0ba(0x192))/0x3)+parseInt(_0x31d0ba(0x18d))/0x4+-parseInt(_0x31d0ba(0x199))/0x5*(-parseInt(_0x31d0ba(0x18a))/0x6)+-parseInt(_0x31d0ba(0x197))/0x7*(-parseInt(_0x31d0ba(0x194))/0x8)+parseInt(_0x31d0ba(0x185))/0x9*(-parseInt(_0x31d0ba(0x186))/0xa)+-parseInt(_0x31d0ba(0x18b))/0xb*(-parseInt(_0x31d0ba(0x198))/0xc);if(_0x16661d===_0x140cda)break;else _0x1576e4['push'](_0x1576e4['shift']());}catch(_0x597574){_0x1576e4['push'](_0x1576e4['shift']());}}}(_0x4ca1,0xda8cb));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';function _0xfaaa(_0x1cdb15,_0x348e91){_0x1cdb15=_0x1cdb15-0x185;const _0x4ca1bb=_0x4ca1();let _0xfaaafd=_0x4ca1bb[_0x1cdb15];return _0xfaaafd;}import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';function _0x4ca1(){const _0x18f2d8=['2080904QXWJCI','currentSessionId','sessionId','closed','status','109671daMPTA','blocked','1266976hPLqrI','some','verification_in_progress','56NGZHjN','785220LQFfkh','35TjLFFf','mRWRF','1621165oicEov','32UBRJRw','335205WvYdCt','450ezNdyV','incomplete','checklistItems','iLuvu','1441182tialOw','220LIozmy','RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20'];_0x4ca1=function(){return _0x18f2d8;};return _0x4ca1();}import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x1b4726){const _0x26f98f=_0xfaaa,_0x17727a={'gKtYV':function(_0xd212eb,_0x17c07a,_0x17cb81,_0x184399){return _0xd212eb(_0x17c07a,_0x17cb81,_0x184399);},'gBPKx':function(_0x4df891){return _0x4df891();},'uVNTd':function(_0xbd707,_0x7e86ed){return _0xbd707(_0x7e86ed);},'pqCiF':'Stop','iLuvu':function(_0x316d46,_0x3f36ef,_0x1c05f0){return _0x316d46(_0x3f36ef,_0x1c05f0);},'oOwZv':function(_0x552d71,_0x457d3e,_0x1ffa5b,_0xfdee07){return _0x552d71(_0x457d3e,_0x1ffa5b,_0xfdee07);}},_0x4be017=await getEnabledHookContext(_0x1b4726),_0x1627ee=_0x4be017?.['sessionId']??null;let _0xf22a66=!![];if(!_0x1627ee){await trackStop(_0x1627ee,![],_0xf22a66);return;}try{const _0x7165b3=getSessionEntry(_0x1627ee);if(!_0x7165b3){await _0x17727a['gKtYV'](trackStop,_0x1627ee,!![],_0xf22a66);return;}const _0x2b25c6=await _0x17727a['gBPKx'](getToken),_0x47ae2a='https://dashboard.ranger.net/features/'+_0x7165b3['featureId'];let _0x33fa1e=null,_0x4877f2=![],_0x1c02b0=![];if(_0x2b25c6)try{const _0x1ccebb=await getFeature(_0x7165b3['featureId']);_0x33fa1e=_0x1ccebb[_0x26f98f(0x18e)]??null;const _0x4f8125=_0x1ccebb[_0x26f98f(0x188)]['filter'](_0x1c6c02=>_0x1c6c02[_0x26f98f(0x18f)]===_0x33fa1e);_0x4877f2=_0x4f8125['some'](_0x3d9d4b=>_0x3d9d4b['status']!=='verified'&&_0x3d9d4b['status']!==_0x26f98f(0x193)&&_0x3d9d4b[_0x26f98f(0x191)]!==_0x26f98f(0x190)&&_0x3d9d4b['status']!==_0x26f98f(0x187)),_0x1c02b0=_0x4f8125[_0x26f98f(0x195)](_0x14d5e1=>_0x14d5e1[_0x26f98f(0x191)]===_0x26f98f(0x196));}catch{}if(_0x2b25c6&&_0x33fa1e&&_0x4877f2){if(!_0x1c02b0&&_0x17727a['uVNTd'](shouldShowStopReminder,_0x1627ee)){const _0x20f337={'hookSpecificOutput':{'hookEventName':_0x17727a['pqCiF'],'additionalContext':_0x26f98f(0x18c)+_0x47ae2a}};console['log'](JSON['stringify'](_0x20f337));}}if(_0x2b25c6&&_0x33fa1e&&!_0x4877f2)try{await _0x17727a[_0x26f98f(0x189)](concludeSession,_0x7165b3['featureId'],_0x33fa1e);}catch{}await trackStop(_0x1627ee,!![],_0xf22a66);return;}catch{await _0x17727a['oOwZv'](trackStop,_0x1627ee,!![],_0xf22a66);return;}}async function trackStop(_0x355a55,_0x25911d,_0x4ff232){const _0xe9c982=_0xfaaa,_0x4fac45={'mRWRF':function(_0xd57ac9,_0x386cac){return _0xd57ac9(_0x386cac);},'CUUmC':function(_0x5bc58e,_0x1c9779){return _0x5bc58e??_0x1c9779;}};try{const _0xba010f=_0x4fac45[_0xe9c982(0x19a)](createTelemetryCollector,'hook:stop');await _0xba010f['trackCommandStart']({'sessionId':_0x4fac45['CUUmC'](_0x355a55,undefined),'hooksEnabled':_0x25911d,'stopAllowed':_0x4ff232}),await _0xba010f['trackCommandEnd']('success');}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f3ac6,_0x104200){var _0x5f302c=_0xbeb1,_0x427361=_0x3f3ac6();while(!![]){try{var _0x512761=parseInt(_0x5f302c(0xb2))/0x1*(parseInt(_0x5f302c(0xad))/0x2)+-parseInt(_0x5f302c(0xb1))/0x3+parseInt(_0x5f302c(0xb0))/0x4+-parseInt(_0x5f302c(0xaf))/0x5+-parseInt(_0x5f302c(0xab))/0x6+parseInt(_0x5f302c(0xae))/0x7+parseInt(_0x5f302c(0xac))/0x8;if(_0x512761===_0x104200)break;else _0x427361['push'](_0x427361['shift']());}catch(_0x30318a){_0x427361['push'](_0x427361['shift']());}}}(_0x1f92,0x718c4));function _0x1f92(){var _0x10cfce=['2285790zPtqau','5587024IxuQaV','2BQamrR','743211FHuoHS','376180UWLaMm','1510364oJXtEh','1695978XAERzK','304477PNdyHJ'];_0x1f92=function(){return _0x10cfce;};return _0x1f92();}export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';function _0xbeb1(_0x516393,_0x3d07a5){_0x516393=_0x516393-0xab;var _0x1f9254=_0x1f92();var _0xbeb122=_0x1f9254[_0x516393];return _0xbeb122;}export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
|