@ranger-testing/ranger-cli 3.1.5-alpha.aebd071-49 → 3.1.6-alpha.4287155-52
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 _0x4901ae=_0x11d4;(function(_0x423417,_0x3f71fc){const _0x52310e=_0x11d4,_0x2c9f64=_0x423417();while(!![]){try{const _0x5b73df=-parseInt(_0x52310e(0xfc))/0x1*(parseInt(_0x52310e(0x145))/0x2)+-parseInt(_0x52310e(0xc0))/0x3*(-parseInt(_0x52310e(0x176))/0x4)+-parseInt(_0x52310e(0xfe))/0x5+parseInt(_0x52310e(0xf9))/0x6*(-parseInt(_0x52310e(0xe2))/0x7)+parseInt(_0x52310e(0xeb))/0x8*(parseInt(_0x52310e(0x153))/0x9)+parseInt(_0x52310e(0xba))/0xa*(parseInt(_0x52310e(0x15f))/0xb)+-parseInt(_0x52310e(0xe6))/0xc*(-parseInt(_0x52310e(0xdb))/0xd);if(_0x5b73df===_0x3f71fc)break;else _0x2c9f64['push'](_0x2c9f64['shift']());}catch(_0x5256ad){_0x2c9f64['push'](_0x2c9f64['shift']());}}}(_0x5e02,0x84d56));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x23c83d 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';function _0x5e02(){const _0x54f188=['version','filter','in_progress','gltHU','No\x20active\x20session\x20for\x20this\x20feature\x20review.','xojjC','pwYox','\x1b[0m','toFixed','\x20\x20\x20\x20\x20ID:\x20','AgnnO','dashboardUrl','limit','BBxhQ','\x20\x20\x20ID:\x20','\x0aAvailable\x20scenarios:','\x20\x20\x20','Please\x20finish\x20your\x20review\x20first:','\x20scenarios.','\x20\x20Expected\x20flow:','includeDeleted','ZYvEc','\x20Session\x20','any','map','sgnll','pendingItems','Scenario\x20','MrKYb','location','\x0a✅\x20Report\x20generated:\x20','push','\x20\x20\x20Created:\x20','kdJFW','\x20\x20\x20Description:\x20','toLocaleDateString','storage','/api/v1/mcp/browser-sessions/','\x20>\x20','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','pipe','RjdHR','wOpoF','totalCount','gitRepoUrl','neSCg','ctpLk','QXMRX','emMYM','WvQtR','OsCYj','incompleteReason','\x20in\x20progress','\x20concluded.','XCJNe','\x1b[1m','ILCaN','GfVWG','MPmnO','unaddressedComments','EZpob','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','verification_in_progress','stats','domRef','isTTY','\x20\x20\x20▶️\x20Started\x20session\x20','FxcfM','32yopUHN','VinMJ','exit','yYzUa','xLPRb','Bclno','incomplete','PsEgJ','round','fKeUr','canceledReason','GWItq',':\x20\x22','assetUrl','9POLTok','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','selector','textContent','ZQXdo','incompleteItems','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20blocked','log','/artifacts/','iDLpn','.md','9193492fMXMXz','HSHAc','arrayBuffer','write','canonicalFlow','ikpWV','scenarios','createdAt','stringify','ZlOhd','latestReview','\x20\x20\x20Completed:\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','screenshot','xCPZb','completed','excludeScenarios','status','split','tFnIO','jvkff','ElQbc','wQRQd','5756UwUjYj','trim','aTPCj','feedback-images','XylBz','ready','MnvWU','\x20at\x20[','WrBly','timing','submittedAt','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','length','DrAvF','spatial','CLAUDE_SESSION_ID','completedAt','authorName','blockedItems','PCCdL','notes','RANGER_TEST_USERNAME','wcLBJ','gitBranch','github.com/','\x20scenario(s).','EALvP','blockedReason','ISNLh','sessionId','10kisTYi','Tdibg','rjBec','verified','AVtLJ','error','225cFLtPz','verificationInProgressItems','env','assetType','\x0aCreating\x20feature\x20review...','active-feature.txt','short','...','\x0a✅\x20Session\x20is\x20already\x20completed.','replace','approved','\x20/\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','prompt','toLocaleString','\x20(v','Step\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','join','currentBranch','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','closed','Lzord','browserSessionId','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','dzkNo','Ubgem','3159338PCYFIU','WtBsW','ahwVJ','terminalReason','pSFMj','\x0a\x20\x20\x20Scenarios:','checklistItems','18151sKgLsQ','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','reports','\x0a✅\x20Restored\x20feature\x20review:\x20','48FmUzHR','clFco','name','srDPG','assets','1957800KJkWJg','nKDHa','.\x20Feature\x20review\x20has\x20','KDHVw','has','repeat','\x0a✅\x20Feature\x20review\x20created:\x20','\x20—\x20no\x20comments','description','No\x20scenarios\x20found.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','scenario','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','items','1356FiIYzg','):\x20\x22','emjpk','44936KSNPCV','stdout','1557230KBjBVA','pop','find'];_0x5e02=function(){return _0x54f188;};return _0x5e02();}import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x4901ae(0xc5),bold=_0x730cb0=>_0x4901ae(0x138)+_0x730cb0+_0x4901ae(0x108);function getGitRepoUrl(){const _0x179023=_0x4901ae,_0x5893c0={'AVtLJ':_0x179023(0x129)};try{const _0x18bb7c=execSync('git\x20remote\x20get-url\x20origin',{'encoding':'utf-8','stdio':[_0x5893c0['AVtLJ'],_0x5893c0['AVtLJ'],_0x5893c0[_0x179023(0xbe)]]})[_0x179023(0x177)]();return _0x18bb7c[_0x179023(0xc9)](/\.git$/,'')[_0x179023(0xc9)](/^git@github\.com:/,_0x179023(0xb4))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x2ecd27=_0x4901ae,_0x133554={'FxcfM':function(_0x1bb690,_0x3231b4,_0x3cd96f){return _0x1bb690(_0x3231b4,_0x3cd96f);},'aTPCj':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','emMYM':_0x2ecd27(0x129)};try{return _0x133554[_0x2ecd27(0x144)](execSync,_0x133554[_0x2ecd27(0x178)],{'encoding':'utf-8','stdio':[_0x133554[_0x2ecd27(0x131)],_0x133554['emMYM'],'pipe']})[_0x2ecd27(0x177)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x496ea5=_0x4901ae,_0x1fc231={'PsEgJ':function(_0x50179e,_0x130ed7){return _0x50179e(_0x130ed7);},'bwzXe':function(_0x1d97e6,_0x3f16b0,_0x4a1a73){return _0x1d97e6(_0x3f16b0,_0x4a1a73);}},_0x3a5b44=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x1fc231[_0x496ea5(0x14c)](existsSync,_0x3a5b44))return null;try{const _0x4f3ac4=await _0x1fc231['bwzXe'](readFile,_0x3a5b44,'utf-8');return _0x4f3ac4[_0x496ea5(0x177)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x2edf34){const _0x3a3ce9=_0x4901ae,_0x13aeb5={'MPmnO':function(_0x504afd,_0x452cc9,_0x2c8a1c){return _0x504afd(_0x452cc9,_0x2c8a1c);},'RZIrH':'utf-8'},_0x5196cc=getRangerDir(),_0x3e512e=_0x13aeb5[_0x3a3ce9(0x13b)](join,_0x5196cc,ACTIVE_FEATURE_FILE);!existsSync(_0x5196cc)&&await mkdir(_0x5196cc,{'recursive':!![]}),await writeFile(_0x3e512e,_0x2edf34,_0x13aeb5['RZIrH']);}function getProgressDisplay(_0xf8e34b){const _0x27e402=_0x4901ae,_0x2065d5={'WazEm':function(_0x395d02,_0x3f7811){return _0x395d02-_0x3f7811;},'EALvP':function(_0x14e10c,_0x599b49){return _0x14e10c>_0x599b49;},'rjBec':function(_0x4840a9,_0x1db7cb){return _0x4840a9>_0x1db7cb;},'ahwVJ':function(_0x490010,_0x2bbe85){return _0x490010>_0x2bbe85;}},_0x3d8e49=_0xf8e34b['verifiedItems']||0x0,_0x423564=_0xf8e34b[_0x27e402(0xc1)]||0x0,_0x2ec7bb=_0xf8e34b[_0x27e402(0xae)]||0x0,_0x318e62=_0xf8e34b[_0x27e402(0x158)]||0x0,_0xf87932=_0xf8e34b[_0x27e402(0x11b)]||0x0,_0x36fc93=_0x3d8e49+_0x423564+_0x2ec7bb+_0x318e62+_0xf87932;if(_0x36fc93===0x0)return'-';const _0x17cbfe=0xa,_0x2f5073=Math[_0x27e402(0x14d)](_0x3d8e49/_0x36fc93*_0x17cbfe),_0x908b3='█'[_0x27e402(0xf0)](_0x2f5073)+'░'['repeat'](_0x2065d5['WazEm'](_0x17cbfe,_0x2f5073)),_0x6484cd=[];if(_0x2065d5[_0x27e402(0xb6)](_0x2ec7bb,0x0))_0x6484cd['push'](_0x2ec7bb+_0x27e402(0x15a));if(_0x2065d5[_0x27e402(0xbc)](_0x318e62,0x0))_0x6484cd[_0x27e402(0x120)](_0x318e62+'\x20incomplete');if(_0x423564>0x0)_0x6484cd['push'](_0x423564+_0x27e402(0x135));const _0x404663=_0x2065d5[_0x27e402(0xdd)](_0x6484cd[_0x27e402(0xa8)],0x0)?'\x20('+_0x6484cd[_0x27e402(0xd2)](',\x20')+')':'';return _0x908b3+'\x20'+_0x3d8e49+'/'+_0x36fc93+'\x20verified'+_0x404663;}function getCurrentSessionItems(_0x44213b,_0x3d099c){const _0x383df2=_0x4901ae;if(!_0x44213b['currentSessionId'])return _0x3d099c['filter'](_0x50afa5=>!_0x50afa5[_0x383df2(0xb9)]);return _0x3d099c[_0x383df2(0x102)](_0x3c9005=>_0x3c9005['sessionId']===_0x44213b['currentSessionId']||!_0x3c9005[_0x383df2(0xb9)]);}function displayFeature(_0x3f0f31,_0x18a7b4){const _0x320220=_0x4901ae,_0x5410da={'QXMRX':function(_0x315141,_0x13ffa6){return _0x315141>_0x13ffa6;},'ztnYF':_0x320220(0xe0),'emjpk':_0x320220(0xd5),'gEXBm':function(_0x594548,_0x10e9b9){return _0x594548===_0x10e9b9;},'AgnnO':_0x320220(0xbd),'wQRQd':function(_0x40face,_0x56dbac){return _0x40face===_0x56dbac;},'pwYox':_0x320220(0x13f),'WtBsW':function(_0x447bd7,_0x11ad35){return _0x447bd7>_0x11ad35;},'HSHAc':function(_0x42b026,_0x2094b5){return _0x42b026!==_0x2094b5;},'MIncW':'blocked','OsCYj':_0x320220(0x14b),'eodWA':_0x320220(0xca)};console[_0x320220(0x15b)]('\x0a'+_0x3f0f31['name']+'\x20('+_0x3f0f31[_0x320220(0x10c)]+')');_0x3f0f31[_0x320220(0x140)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x3f0f31[_0x320220(0x140)]));_0x3f0f31['description']&&console[_0x320220(0x15b)](_0x320220(0x123)+_0x3f0f31['description']);_0x3f0f31['gitRepoUrl']&&console[_0x320220(0x15b)]('\x20\x20\x20Repository:\x20'+_0x3f0f31['gitRepoUrl']);_0x3f0f31[_0x320220(0xb3)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x3f0f31[_0x320220(0xb3)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3f0f31['createdAt'])['toLocaleString']());_0x3f0f31[_0x320220(0xac)]&&console[_0x320220(0x15b)](_0x320220(0x16a)+new Date(_0x3f0f31[_0x320220(0xac)])['toLocaleString']());if(_0x18a7b4&&_0x5410da['QXMRX'](_0x18a7b4[_0x320220(0xa8)],0x0)){console[_0x320220(0x15b)](_0x5410da['ztnYF']);for(let _0x4343b0=0x0;_0x4343b0<_0x18a7b4['length'];_0x4343b0++){const _0x1e3c56=_0x18a7b4[_0x4343b0];let _0x57838f;if(_0x1e3c56[_0x320220(0x170)]===_0x5410da['emjpk']&&_0x5410da['gEXBm'](_0x1e3c56[_0x320220(0xde)],_0x320220(0xca)))_0x57838f='✅';else{if(_0x1e3c56[_0x320220(0x170)]===_0x5410da[_0x320220(0x10b)])_0x57838f='🟢';else{if(_0x5410da['gEXBm'](_0x1e3c56['status'],'incomplete'))_0x57838f='🟠';else{if(_0x1e3c56['status']==='blocked')_0x57838f='🛑';else{if(_0x1e3c56['status']===_0x5410da[_0x320220(0xfb)])_0x57838f='⛔';else _0x5410da['wQRQd'](_0x1e3c56[_0x320220(0x170)],_0x5410da[_0x320220(0x107)])?_0x57838f='⏳':_0x57838f='⬜';}}}}const _0x44ca39=_0x5410da[_0x320220(0x130)](_0x1e3c56['version'],0x1)?'\x20(v'+_0x1e3c56[_0x320220(0x101)]+')':'',_0x48905d=_0x5410da[_0x320220(0xdc)](_0x1e3c56['version'],0x1)&&_0x1e3c56['parentItemId']&&_0x1e3c56[_0x320220(0x170)]!=='closed'&&_0x5410da[_0x320220(0x160)](_0x1e3c56['status'],_0x5410da['AgnnO'])?'\x20[has\x20reviewer\x20feedback]':'';console['log'](_0x320220(0x111)+(_0x4343b0+0x1)+'.\x20'+_0x57838f+'\x20'+_0x1e3c56['description']+_0x44ca39+_0x48905d);_0x1e3c56[_0x320220(0x170)]===_0x5410da['MIncW']&&_0x1e3c56[_0x320220(0xb7)]&&console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x1e3c56[_0x320220(0xb7)]);_0x5410da[_0x320220(0x175)](_0x1e3c56['status'],_0x5410da[_0x320220(0x133)])&&_0x1e3c56['incompleteReason']&&console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x1e3c56[_0x320220(0x134)]);if(_0x5410da['gEXBm'](_0x1e3c56[_0x320220(0x170)],_0x320220(0xd5))&&_0x1e3c56[_0x320220(0xde)]===_0x5410da['eodWA'])console[_0x320220(0x15b)]('\x20\x20\x20\x20\x20\x20Approved');else _0x1e3c56['status']===_0x320220(0xd5)&&_0x1e3c56[_0x320220(0x14f)]&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x1e3c56[_0x320220(0x14f)]);}}}export async function featureCreate(_0x168f30,_0x75fb48){const _0x27031f=_0x4901ae,_0x509530={'VinMJ':function(_0x41c5aa){return _0x41c5aa();},'GWItq':function(_0x25dca3,_0x3bed99,_0x2198c0){return _0x25dca3(_0x3bed99,_0x2198c0);}},{envNames:_0x424217}=await getEnvNames();if(_0x424217['length']===0x0&&!process['env'][_0x27031f(0xb1)]){let _0x15ea2c=0x0;try{_0x15ea2c=(await listCloudProfiles())['length'];}catch{_0x15ea2c=0x1;}_0x15ea2c===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x3f4ed8=>bold(_0x3f4ed8)));}const _0x8bbf47=_0x75fb48[_0x27031f(0x165)]?_0x75fb48['scenarios'][_0x27031f(0x119)](_0x43427d=>_0x43427d['trim']()):[],_0x1eae66=_0x509530[_0x27031f(0x146)](getGitRepoUrl),_0x368506=getGitBranch();console[_0x27031f(0x15b)](_0x27031f(0xc4));const _0x394d63=await createFeature({'name':_0x168f30,'description':_0x75fb48[_0x27031f(0xf3)],'checklist':_0x8bbf47,'gitRepoUrl':_0x1eae66,'gitBranch':_0x368506});await setActiveFeatureId(_0x394d63['id']),await tryStartCurrentSession(_0x394d63['id']);const _0x34436c=process[_0x27031f(0xc2)]['CLAUDE_SESSION_ID'];_0x34436c&&_0x509530[_0x27031f(0x150)](registerSession,_0x34436c,_0x394d63['id']),console['log'](_0x27031f(0xf1)+_0x394d63['id']),displayFeature(_0x394d63,_0x394d63[_0x27031f(0xe1)]),console[_0x27031f(0x15b)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x5abf7d){const _0x2aa7b1=_0x4901ae,_0x1ceac8={'TDZNR':function(_0x33f21f){return _0x33f21f();},'wOpoF':function(_0x446b7e,_0x24a9c2){return _0x446b7e(_0x24a9c2);},'dzkNo':function(_0x5a9a66,_0x4c8ead){return _0x5a9a66===_0x4c8ead;},'eSKWK':'\x0aNo\x20feature\x20reviews\x20found.','RjdHR':function(_0x45b21e,_0x52d91f){return _0x45b21e>_0x52d91f;},'EZqhd':function(_0x1a1b82,_0x6fc142){return _0x1a1b82<_0x6fc142;},'pzoHG':function(_0x3c5858,_0x5ad8ca){return _0x3c5858!==_0x5ad8ca;},'XylBz':'\x20--include-deleted'},_0x509312={'limit':_0x5abf7d['limit']??0xa,'offset':_0x5abf7d['offset']??0x0,'includeDeleted':_0x5abf7d[_0x2aa7b1(0x115)]};_0x5abf7d[_0x2aa7b1(0xd3)]&&(_0x509312[_0x2aa7b1(0x12d)]=getGitRepoUrl(),_0x509312[_0x2aa7b1(0xb3)]=_0x1ceac8['TDZNR'](getGitBranch));const _0x41bcf3=await _0x1ceac8[_0x2aa7b1(0x12b)](listFeatures,_0x509312);if(_0x1ceac8[_0x2aa7b1(0xd9)](_0x41bcf3['items'][_0x2aa7b1(0xa8)],0x0)){console['log'](_0x1ceac8['eSKWK']);return;}const _0x8f1cbf=_0x1ceac8[_0x2aa7b1(0x12a)](_0x41bcf3[_0x2aa7b1(0x12c)],_0x41bcf3['items']['length'])?'Showing\x20'+_0x41bcf3['items'][_0x2aa7b1(0xa8)]+'\x20of\x20'+_0x41bcf3[_0x2aa7b1(0x12c)]:_0x41bcf3['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x2aa7b1(0x15b)]('\x0a'+_0x8f1cbf+':\x0a');for(const _0x2747c9 of _0x41bcf3[_0x2aa7b1(0xf8)]){const _0x374c7d='5|1|2|4|3|0'['split']('|');let _0x24e596=0x0;while(!![]){switch(_0x374c7d[_0x24e596++]){case'0':console[_0x2aa7b1(0x15b)]('');continue;case'1':console[_0x2aa7b1(0x15b)](_0x2aa7b1(0x10f)+_0x2747c9['id']);continue;case'2':_0x2747c9['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x1ceac8[_0x2aa7b1(0x12b)](getProgressDisplay,_0x2747c9[_0x2aa7b1(0x140)]));continue;case'3':console['log'](_0x2aa7b1(0x121)+new Date(_0x2747c9[_0x2aa7b1(0x166)])[_0x2aa7b1(0x124)]());continue;case'4':_0x2747c9[_0x2aa7b1(0xb3)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x2747c9[_0x2aa7b1(0xb3)]);continue;case'5':console[_0x2aa7b1(0x15b)](''+_0x2747c9['name']);continue;}break;}}const _0x1ab1ee=_0x509312[_0x2aa7b1(0x10d)]??0xa,_0x599745=(_0x509312['offset']??0x0)+_0x41bcf3['items'][_0x2aa7b1(0xa8)];if(_0x1ceac8['EZqhd'](_0x599745,_0x41bcf3[_0x2aa7b1(0x12c)])){const _0x51de00=_0x1ceac8['pzoHG'](_0x1ab1ee,0xa)?'\x20--limit\x20'+_0x1ab1ee:'',_0x24599d=_0x5abf7d[_0x2aa7b1(0xd3)]?'\x20--current-branch':'',_0xb6bd8f=_0x5abf7d['includeDeleted']?_0x1ceac8[_0x2aa7b1(0x17a)]:'';console['log'](_0x2aa7b1(0xcc)+_0x599745+_0x51de00+_0x24599d+_0xb6bd8f);}}export async function featureShow(_0x3cac1e){const _0xd50a28=_0x4901ae,_0x279703={'lwljK':function(_0x320778){return _0x320778();},'Tdibg':_0xd50a28(0x154),'BkCYC':function(_0x42b90b,_0x1a151d){return _0x42b90b(_0x1a151d);}},_0x21ff7d=_0x3cac1e||await _0x279703['lwljK'](getActiveFeatureId);if(!_0x21ff7d)throw new Error(_0x279703[_0xd50a28(0xbb)]);const _0x139eea=await _0x279703['BkCYC'](getFeature,_0x21ff7d);displayFeature(_0x139eea,_0x139eea['checklistItems']);}function _0x11d4(_0x43403a,_0x11a0f2){_0x43403a=_0x43403a-0xa8;const _0x5e0233=_0x5e02();let _0x11d448=_0x5e0233[_0x43403a];return _0x11d448;}export async function featureResume(_0x100c45){const _0x454e8d=_0x4901ae,_0x292fd5={'Ubgem':function(_0x4d365a,_0x3c6c5e){return _0x4d365a(_0x3c6c5e);},'uuCIH':function(_0x2115ae,_0x37e380,_0x569d79){return _0x2115ae(_0x37e380,_0x569d79);},'ZlOhd':function(_0x3cb722,_0xa03f90,_0x4c52b9){return _0x3cb722(_0xa03f90,_0x4c52b9);},'hRUOu':function(_0x5eb599){return _0x5eb599();},'BzHzt':function(_0xe07c73,_0x3d96c2){return _0xe07c73||_0x3d96c2;},'qsLPu':_0x454e8d(0x118),'jvkff':function(_0x29d5a2,_0x1626ec){return _0x29d5a2===_0x1626ec;},'yXHLM':'selected','clFco':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','EZpob':function(_0x270e90,_0x58541f,_0x5856e1){return _0x270e90(_0x58541f,_0x5856e1);}};if(_0x100c45){const _0x3c830a=await _0x292fd5['Ubgem'](getFeature,_0x100c45);await _0x292fd5[_0x454e8d(0xda)](setActiveFeatureId,_0x3c830a['id']);const _0x25c8c6=getGitBranch();_0x25c8c6&&_0x25c8c6!==_0x3c830a[_0x454e8d(0xb3)]&&(await _0x292fd5['uuCIH'](updateFeature,_0x3c830a['id'],{'gitBranch':_0x25c8c6}),console[_0x454e8d(0x15b)](_0x454e8d(0xd1)+_0x25c8c6));console[_0x454e8d(0x15b)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3c830a[_0x454e8d(0xe8)]+'\x20('+_0x3c830a['id']+')'),await tryStartCurrentSession(_0x3c830a['id']);const _0x1ac6af=process[_0x454e8d(0xc2)][_0x454e8d(0xab)];_0x1ac6af&&_0x292fd5['uuCIH'](registerSession,_0x1ac6af,_0x3c830a['id']);_0x292fd5[_0x454e8d(0x168)](displayFeature,_0x3c830a,_0x3c830a['checklistItems']),await _0x292fd5['Ubgem'](printFeedbackNudge,_0x3c830a['id']);return;}const _0x597826=_0x292fd5['hRUOu'](getGitRepoUrl),_0x2458ca=getGitBranch();if(!_0x597826&&!_0x2458ca)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x454e8d(0x15b)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x292fd5['BzHzt'](_0x597826,'any')+_0x454e8d(0xcb)+(_0x2458ca||_0x292fd5['qsLPu'])+_0x454e8d(0xc7));const _0x4c2e51=await _0x292fd5[_0x454e8d(0xda)](listFeatures,{'gitRepoUrl':_0x597826,'gitBranch':_0x2458ca}),_0x3e18c6=_0x4c2e51['items']['filter'](_0x2aca89=>_0x2aca89['status']?_0x2aca89[_0x454e8d(0x170)]!==_0x454e8d(0xbd):!_0x2aca89['completedAt']);if(_0x292fd5[_0x454e8d(0x173)](_0x3e18c6['length'],0x0)){console[_0x454e8d(0x15b)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x454e8d(0x15b)](_0x454e8d(0xd4));return;}let _0x380f65;if(_0x3e18c6['length']===0x1)_0x380f65=_0x3e18c6[0x0];else{const _0x21b007=process['stdin']['isTTY']&&process['stdout'][_0x454e8d(0x142)];if(!_0x21b007){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0xbc0879 of _0x3e18c6){console['log']('\x20\x20'+_0xbc0879[_0x454e8d(0xe8)]),console['log'](_0x454e8d(0x10a)+_0xbc0879['id']),_0xbc0879['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x292fd5[_0x454e8d(0xda)](getProgressDisplay,_0xbc0879['stats'])),_0xbc0879[_0x454e8d(0xb3)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xbc0879[_0x454e8d(0xb3)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x57982a}=await _0x23c83d[_0x454e8d(0xcd)]([{'type':'list','name':_0x292fd5['yXHLM'],'message':_0x292fd5[_0x454e8d(0xe7)],'choices':_0x3e18c6['map'](_0x155daa=>({'name':_0x155daa[_0x454e8d(0xe8)]+'\x20('+_0x155daa['id']+')','value':_0x155daa['id']}))}]);_0x380f65=_0x3e18c6[_0x454e8d(0x100)](_0xe7a79f=>_0xe7a79f['id']===_0x57982a);}await setActiveFeatureId(_0x380f65['id']);_0x2458ca&&_0x2458ca!==_0x380f65['gitBranch']&&(await updateFeature(_0x380f65['id'],{'gitBranch':_0x2458ca}),console[_0x454e8d(0x15b)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2458ca));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x380f65[_0x454e8d(0xe8)]+'\x20('+_0x380f65['id']+')'),await tryStartCurrentSession(_0x380f65['id']);const _0x4ff5b5=await _0x292fd5['Ubgem'](getFeature,_0x380f65['id']),_0x248577=process['env'][_0x454e8d(0xab)];_0x248577&&_0x292fd5[_0x454e8d(0x13d)](registerSession,_0x248577,_0x4ff5b5['id']),displayFeature(_0x4ff5b5,_0x4ff5b5['checklistItems']),await _0x292fd5['Ubgem'](printFeedbackNudge,_0x4ff5b5['id']);}async function printFeedbackNudge(_0x5d4674){const _0x335ba5=_0x4901ae,_0xf8e3a2={'ISNLh':function(_0xc938d3,_0x13e6c5){return _0xc938d3(_0x13e6c5);},'nKDHa':function(_0x134cd7,_0x500cb3,_0x3a2c28){return _0x134cd7(_0x500cb3,_0x3a2c28);},'jfoTX':function(_0x4a54c0,_0x3a99a8){return _0x4a54c0>_0x3a99a8;}};try{const {items:_0x3280d4}=await _0xf8e3a2[_0x335ba5(0xb8)](getActionItems,_0x5d4674);let _0x2fbe8c=0x0,_0x5c6e76=0x0;for(const _0x4132d7 of _0x3280d4){const _0x2f4e7f=await _0xf8e3a2[_0x335ba5(0xec)](getItemFeedback,_0x5d4674,_0x4132d7['id']);_0x2f4e7f[_0x335ba5(0x13c)][_0x335ba5(0xa8)]>0x0&&(_0x2fbe8c+=_0x2f4e7f['unaddressedComments'][_0x335ba5(0xa8)],_0x5c6e76++);}_0xf8e3a2['jfoTX'](_0x2fbe8c,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x2fbe8c+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x5c6e76+_0x335ba5(0xb5)),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x2a9f59){const _0x12a8cf=_0x4901ae;try{const {sessions:_0x5e7b0a}=await listFeatureSessions(_0x2a9f59),_0x2b20b8=_0x5e7b0a['find'](_0x5caade=>_0x5caade['status']===_0x12a8cf(0x17b));_0x2b20b8&&(await startSession(_0x2a9f59,_0x2b20b8['id']),console['log'](_0x12a8cf(0x143)+_0x2b20b8['iteration']));}catch{}}export async function featureReport(_0x44bb25,_0x4a197f){const _0x1133c7=_0x4901ae,_0x37bc8a={'MrKYb':'\x0aGenerating\x20report...','nsXeE':function(_0x5341da,_0x303160,_0x2a9527){return _0x5341da(_0x303160,_0x2a9527);},'DrAvF':function(_0x4b04bf,_0x2ede3d,_0x37be3f,_0xd1254){return _0x4b04bf(_0x2ede3d,_0x37be3f,_0xd1254);},'YqTlS':_0x1133c7(0xe4),'xCPZb':function(_0x59c3e2,_0x12c28e){return _0x59c3e2(_0x12c28e);},'Lzord':'utf-8'},_0x32cfe1=_0x44bb25||await getActiveFeatureId();if(!_0x32cfe1)throw new Error(_0x1133c7(0xf5));console['log'](_0x37bc8a[_0x1133c7(0x11d)]);const _0x3c0dd1=await _0x37bc8a['nsXeE'](getFeatureReportMarkdown,_0x32cfe1,{'style':_0x4a197f['style']}),_0x3846f5=_0x4a197f['output']||_0x37bc8a['DrAvF'](join,getRangerDir(),_0x37bc8a['YqTlS'],_0x32cfe1+_0x1133c7(0x15e)),_0x9d852f=_0x37bc8a['nsXeE'](join,_0x3846f5,'..');!_0x37bc8a[_0x1133c7(0x16d)](existsSync,_0x9d852f)&&await _0x37bc8a['nsXeE'](mkdir,_0x9d852f,{'recursive':!![]}),await _0x37bc8a[_0x1133c7(0xa9)](writeFile,_0x3846f5,_0x3c0dd1,_0x37bc8a[_0x1133c7(0xd6)]),console['log'](_0x1133c7(0x11f)+_0x3846f5);}function getScenarioResult(_0x16a5fe){const _0x31e4df=_0x4901ae,_0x36f7ed={'UNNOW':function(_0x5e58f3,_0x22ba96){return _0x5e58f3===_0x22ba96;},'gkdWl':_0x31e4df(0x13f)};if(_0x36f7ed['UNNOW'](_0x16a5fe[_0x31e4df(0x170)],_0x31e4df(0xd5)))return _0x16a5fe['terminalReason']??'closed';if(_0x16a5fe[_0x31e4df(0x170)]===_0x36f7ed['gkdWl'])return'in_progress';return _0x16a5fe['status'];}function getScenarioRationale(_0x4b3ec0,_0x2a6015){const _0x25850c=_0x4901ae;if(_0x2a6015)return _0x2a6015;if(_0x4b3ec0['blockedReason'])return _0x4b3ec0[_0x25850c(0xb7)];if(_0x4b3ec0[_0x25850c(0x134)])return _0x4b3ec0['incompleteReason'];if(_0x4b3ec0['canceledReason'])return _0x4b3ec0['canceledReason'];if(_0x4b3ec0['notes'])return _0x4b3ec0[_0x25850c(0xb0)];return null;}export async function featureReportPrDescription(_0x408557,_0xee1db2){const _0x38b44f=_0x4901ae,_0x59b065={'CekOn':function(_0x54c8c9){return _0x54c8c9();},'MTCEH':function(_0x2a5fce,_0x46f1d9,_0x30dfe5){return _0x2a5fce(_0x46f1d9,_0x30dfe5);},'PnKrp':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','tFnIO':function(_0x588057,_0x525842){return _0x588057>_0x525842;},'xojjC':function(_0x4a186e,_0x3615b5){return _0x4a186e+_0x3615b5;},'iDLpn':function(_0x30c36b,_0x576f30){return _0x30c36b===_0x576f30;},'PCCdL':_0x38b44f(0x159),'CPKvw':function(_0xe736f9,_0x3e5d66,_0x49fe81,_0x50ac3f){return _0xe736f9(_0x3e5d66,_0x49fe81,_0x50ac3f);}},_0x3001ee=_0x408557||await _0x59b065['CekOn'](getActiveFeatureId);if(!_0x3001ee)throw new Error(_0x38b44f(0xf5));const _0x37cc43=await getFeature(_0x3001ee),_0x55caf2=_0x37cc43['checklistItems']||[],_0x1661de=_0x59b065['MTCEH'](getCurrentSessionItems,_0x37cc43,_0x55caf2);_0x1661de[_0x38b44f(0xa8)]===0x0&&(console[_0x38b44f(0xbf)](_0x59b065['PnKrp']),process['exit'](0x1));const _0x559910=_0xee1db2[_0x38b44f(0x16f)]??[],_0x29421f=_0x559910[_0x38b44f(0x102)](_0x264c5d=>!Number['isInteger'](_0x264c5d)||_0x264c5d<0x1||_0x264c5d>_0x1661de['length']);if(_0x59b065[_0x38b44f(0x172)](_0x29421f['length'],0x0)){console[_0x38b44f(0xbf)](_0x38b44f(0x128)+_0x29421f['join'](',\x20')),console[_0x38b44f(0x15b)]('\x0aAvailable\x20scenarios:');for(let _0x5380c8=0x0;_0x5380c8<_0x1661de[_0x38b44f(0xa8)];_0x5380c8++){console['log']('\x20\x20'+_0x59b065[_0x38b44f(0x106)](_0x5380c8,0x1)+'.\x20'+_0x1661de[_0x5380c8][_0x38b44f(0xf3)]);}process['exit'](0x1);}const _0x5a5e78=new Set(_0x559910[_0x38b44f(0x119)](_0x22cc96=>_0x22cc96-0x1)),_0x5655e8=_0x1661de[_0x38b44f(0x102)]((_0x3e876d,_0x161d7a)=>!_0x5a5e78[_0x38b44f(0xef)](_0x161d7a));_0x59b065[_0x38b44f(0x15d)](_0x5655e8[_0x38b44f(0xa8)],0x0)&&(console[_0x38b44f(0xbf)](_0x59b065[_0x38b44f(0xaf)]),process['exit'](0x1));if(_0xee1db2['json'])await _0x59b065['CPKvw'](outputJsonReport,_0x3001ee,_0x37cc43,_0x5655e8);else{const _0x236672=await getFeatureReportMarkdown(_0x3001ee,{'itemIds':_0x5655e8['map'](_0x4f25d1=>_0x4f25d1['id'])});process[_0x38b44f(0xfd)][_0x38b44f(0x162)](_0x236672['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x5bf704,_0x51677c,_0x59a80d){const _0x56a380=_0x4901ae,_0x3e7e1b={'kdJFW':function(_0x7725be,_0x5f1321){return _0x7725be(_0x5f1321);},'srDPG':function(_0x507942,_0x2ec73e){return _0x507942>_0x2ec73e;},'ZYvEc':function(_0x23d493,_0xea3530,_0x39dfba){return _0x23d493(_0xea3530,_0x39dfba);},'lWokK':function(_0x108fbe,_0x21e6da){return _0x108fbe+_0x21e6da;}},_0x536b22=getApiBaseUrl(),_0x649504=await getFeatureReport(_0x5bf704),_0x101f75=new Map(_0x649504[_0x56a380(0xe1)]['map'](_0x296c8c=>[_0x296c8c['id'],_0x296c8c])),_0x1f38a9=await Promise['all'](_0x59a80d['map'](async _0x3cf74c=>{const _0x384f17=_0x56a380,_0x488e25=_0x101f75['get'](_0x3cf74c['id']),_0x4397cf=_0x488e25?.['linkedSession']??null;let _0x48d908=[];if(_0x3cf74c['browserSessionId'])try{const {steps:_0x198244}=await _0x3e7e1b[_0x384f17(0x122)](getBrowserSessionSteps,_0x3cf74c[_0x384f17(0xd7)]);_0x3e7e1b[_0x384f17(0xe9)](_0x198244['length'],0x0)&&(_0x48d908=_0x198244['map'](_0x298cef=>{const _0x45492b=_0x384f17,_0x3a104d=_0x298cef['assets']['find'](_0x3c4faf=>_0x3c4faf[_0x45492b(0xc3)]===_0x45492b(0x16c)&&_0x3c4faf[_0x45492b(0x17f)]==='after')??_0x298cef[_0x45492b(0xea)][_0x45492b(0x100)](_0x44f636=>_0x44f636['assetType']==='screenshot');let _0x48209a=null,_0x556a20=null;if(_0x3a104d){const _0x35bb5d=_0x3a104d[_0x45492b(0x125)][_0x45492b(0x11e)][_0x45492b(0x171)]('/')[_0x45492b(0xff)]();_0x48209a=_0x536b22+_0x45492b(0x126)+_0x3cf74c['browserSessionId']+_0x45492b(0x15c)+_0x35bb5d,_0x35bb5d&&(_0x556a20=_0x35bb5d['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x45492b(0xc9)](/[-_]/g,'\x20'));}return{'description':_0x556a20||_0x298cef['description']||_0x298cef['stepName']||_0x45492b(0xd0)+_0x298cef['position'],'screenshot':_0x48209a,'is_key_step':_0x298cef['isKeyStep']};}));}catch{}return _0x48d908['length']===0x0&&_0x4397cf?.['screenshotUrls']&&(_0x48d908=_0x4397cf['screenshotUrls']['map']((_0x37f015,_0x3d5163)=>({'description':'Screenshot\x20'+(_0x3d5163+0x1),'screenshot':_0x37f015,'is_key_step':![]}))),{'description':_0x3cf74c[_0x384f17(0xf3)],'result':getScenarioResult(_0x3cf74c),'rationale':_0x3e7e1b[_0x384f17(0x116)](getScenarioRationale,_0x3cf74c,_0x4397cf?.['agentResponse']),'steps':_0x48d908};})),_0x5d825f={'url':_0x51677c[_0x56a380(0x10c)],'scenarios':_0x1f38a9};process[_0x56a380(0xfd)]['write'](_0x3e7e1b['lWokK'](JSON[_0x56a380(0x167)](_0x5d825f,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x267e44){const _0x5e600c=_0x4901ae,_0x15dfa5={'kSREg':function(_0x4506b7){return _0x4506b7();},'mdMAb':_0x5e600c(0x154),'BATyT':_0x5e600c(0x105),'GfVWG':function(_0x57d6af,_0x537fce){return _0x57d6af===_0x537fce;},'asSUU':_0x5e600c(0x16e),'TpHOk':'in_progress','sgnll':'\x0aConcluding\x20session...'},_0xce9bc8=_0x267e44||await _0x15dfa5['kSREg'](getActiveFeatureId);if(!_0xce9bc8)throw new Error(_0x15dfa5['mdMAb']);const _0x5c4d95=await getFeature(_0xce9bc8);if(!_0x5c4d95['currentSessionId'])throw new Error(_0x15dfa5['BATyT']);const {sessions:_0x3c5be7}=await listFeatureSessions(_0xce9bc8),_0x31990a=_0x3c5be7['find'](_0x443644=>_0x443644['id']===_0x5c4d95['currentSessionId']);if(!_0x31990a)throw new Error('Current\x20session\x20not\x20found.');if(_0x15dfa5[_0x5e600c(0x13a)](_0x31990a[_0x5e600c(0x170)],_0x15dfa5['asSUU'])){console[_0x5e600c(0x15b)](_0x5e600c(0xc8));return;}if(_0x31990a['status']!==_0x15dfa5['TpHOk'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x31990a['status']);console[_0x5e600c(0x15b)](_0x15dfa5[_0x5e600c(0x11a)]),await concludeSession(_0xce9bc8,_0x5c4d95['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x31990a['iteration']+_0x5e600c(0x136)),console['log'](_0x5e600c(0xf7));}export async function featureSessions(_0x172bb1){const _0x3ff000=_0x4901ae,_0x245e16={'nEBFV':function(_0x58574f){return _0x58574f();},'xLPRb':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','BBxhQ':function(_0xb39192,_0x3daf8a){return _0xb39192===_0x3daf8a;},'SZFuZ':'No\x20sessions\x20found.','MnvWU':_0x3ff000(0x103)},_0x22c392=_0x172bb1||await _0x245e16['nEBFV'](getActiveFeatureId);if(!_0x22c392)throw new Error(_0x245e16[_0x3ff000(0x149)]);const _0x3066f1=await getFeature(_0x22c392);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3066f1['name']+'\x0a');const {sessions:_0x32d808}=await listFeatureSessions(_0x22c392);if(_0x245e16[_0x3ff000(0x10e)](_0x32d808['length'],0x0)){console[_0x3ff000(0x15b)](_0x245e16['SZFuZ']);return;}for(const _0x415475 of _0x32d808){const _0x37ea47=_0x415475['status']===_0x3ff000(0x16e)?'✅':_0x415475[_0x3ff000(0x170)]===_0x245e16[_0x3ff000(0x17c)]?'🔄':'▶️';console[_0x3ff000(0x15b)](_0x37ea47+_0x3ff000(0x117)+_0x415475['iteration']+'\x20('+_0x415475['id']+')'),console[_0x3ff000(0x15b)]('\x20\x20\x20Status:\x20'+_0x415475[_0x3ff000(0x170)]),console['log'](_0x3ff000(0x121)+new Date(_0x415475[_0x3ff000(0x166)])[_0x3ff000(0xce)]()),_0x415475['completedAt']&&console['log'](_0x3ff000(0x16a)+new Date(_0x415475['completedAt'])['toLocaleString']()),console[_0x3ff000(0x15b)]('');}}export async function featureAddScenario(_0x3ee6b7,_0x38c40d){const _0x39b2c1=_0x4901ae,_0x6898b0={'DuxPR':function(_0xbc0ebf){return _0xbc0ebf();},'mUIQX':_0x39b2c1(0x154),'uwAdo':function(_0x4d68fe,_0x9ff727){return _0x4d68fe(_0x9ff727);},'aVFdY':function(_0x8a724f,_0x5198f2,_0x7e48b9){return _0x8a724f(_0x5198f2,_0x7e48b9);}},_0x385ba5=_0x38c40d||await _0x6898b0['DuxPR'](getActiveFeatureId);if(!_0x385ba5)throw new Error(_0x6898b0['mUIQX']);const _0x108aa5=await _0x6898b0['uwAdo'](getFeature,_0x385ba5);if(_0x108aa5['latestReview']&&!_0x108aa5[_0x39b2c1(0x169)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x108aa5['dashboardUrl']);await _0x6898b0['aVFdY'](createChecklistItem,_0x385ba5,_0x3ee6b7);const _0x33447b=await getFeature(_0x385ba5);console['log']('\x0a✅\x20Scenario\x20added'),displayFeature(_0x33447b,_0x33447b['checklistItems']);}export async function featureEditScenario(_0x321657,_0x2bbafa){const _0xb6ae72=_0x4901ae,_0x462bf6={'yYzUa':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ctpLk':function(_0x1a65ea,_0x412e53){return _0x1a65ea(_0x412e53);},'VOhfI':_0xb6ae72(0x112),'zjmmB':function(_0x451bfa,_0x36f247){return _0x451bfa===_0x36f247;},'XCJNe':function(_0x224e70,_0x3e4ead){return _0x224e70===_0x3e4ead;},'gltHU':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','aVBZf':function(_0x51b4e5,_0x3b17d4){return _0x51b4e5-_0x3b17d4;},'ElQbc':function(_0x31197d,_0x5d2e65){return _0x31197d<_0x5d2e65;},'ZQXdo':function(_0x4f9519,_0x35edc8){return _0x4f9519>=_0x35edc8;},'gYviv':_0xb6ae72(0x110)},_0x203d33=_0x2bbafa['id']||await getActiveFeatureId();!_0x203d33&&(console[_0xb6ae72(0xbf)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x462bf6[_0xb6ae72(0x148)]),process['exit'](0x1));const _0xc2ad5c=await _0x462bf6[_0xb6ae72(0x12f)](getFeature,_0x203d33);_0xc2ad5c[_0xb6ae72(0x169)]&&!_0xc2ad5c[_0xb6ae72(0x169)][_0xb6ae72(0x180)]&&(console['error'](_0xb6ae72(0xe3)),console[_0xb6ae72(0xbf)](_0x462bf6['VOhfI']),console[_0xb6ae72(0xbf)]('\x20\x20'+_0xc2ad5c[_0xb6ae72(0x10c)]),process[_0xb6ae72(0x147)](0x1));const _0x370342=_0xc2ad5c['checklistItems']||[];_0x462bf6['zjmmB'](_0x370342[_0xb6ae72(0xa8)],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x462bf6[_0xb6ae72(0x137)](_0x2bbafa[_0xb6ae72(0xf6)],undefined)){console['error'](_0x462bf6[_0xb6ae72(0x104)]),console[_0xb6ae72(0x15b)]('\x0aAvailable\x20scenarios:');for(let _0x498c07=0x0;_0x498c07<_0x370342['length'];_0x498c07++){console['log']('\x20\x20'+(_0x498c07+0x1)+'.\x20'+_0x370342[_0x498c07][_0xb6ae72(0xf3)]);}process['exit'](0x1);}const _0x5054c6=_0x462bf6['aVBZf'](_0x2bbafa[_0xb6ae72(0xf6)],0x1);if(_0x462bf6[_0xb6ae72(0x174)](_0x5054c6,0x0)||_0x462bf6[_0xb6ae72(0x157)](_0x5054c6,_0x370342[_0xb6ae72(0xa8)])){console[_0xb6ae72(0xbf)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x2bbafa['scenario']+_0xb6ae72(0xed)+_0x370342['length']+_0xb6ae72(0x113)),console['log'](_0x462bf6['gYviv']);for(let _0x4488cd=0x0;_0x462bf6[_0xb6ae72(0x174)](_0x4488cd,_0x370342['length']);_0x4488cd++){console[_0xb6ae72(0x15b)]('\x20\x20'+(_0x4488cd+0x1)+'.\x20'+_0x370342[_0x4488cd]['description']);}process[_0xb6ae72(0x147)](0x1);}const _0x12ae03=_0x370342[_0x5054c6];await updateChecklistItem(_0x203d33,_0x12ae03['id'],{'description':_0x321657});const _0x95a476=await getFeature(_0x203d33);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x95a476,_0x95a476['checklistItems']);}async function downloadFeedbackImage(_0x472353,_0x2779ee){const _0x2f16ac=_0x4901ae,_0x5c0c64={'pSFMj':function(_0x3f3a0d,_0x46b922,_0x146431){return _0x3f3a0d(_0x46b922,_0x146431);},'pRuPt':_0x2f16ac(0x179),'vhPMb':function(_0x5e2402,_0x1ea7ab,_0xebd762){return _0x5e2402(_0x1ea7ab,_0xebd762);}};try{const _0x3e6d6b=_0x5c0c64[_0x2f16ac(0xdf)](join,getRangerDir(),_0x5c0c64['pRuPt']);await _0x5c0c64['vhPMb'](mkdir,_0x3e6d6b,{'recursive':!![]});const _0x1a2605=_0x5c0c64[_0x2f16ac(0xdf)](join,_0x3e6d6b,'comment_'+_0x2779ee+'.png'),_0x251bda=await fetch(_0x472353);if(!_0x251bda['ok'])return null;const _0x4bc387=Buffer['from'](await _0x251bda[_0x2f16ac(0x161)]());return await writeFile(_0x1a2605,_0x4bc387),_0x1a2605;}catch{return null;}}export async function featureGetReview(_0x5ce0d5){const _0x32807f=_0x4901ae,_0xd62190={'zwGMO':function(_0x108326){return _0x108326();},'WrBly':function(_0x225558,_0x406bab){return _0x225558(_0x406bab);},'JESjr':function(_0x427d42,_0xf16782){return _0x427d42(_0xf16782);},'QLRdy':_0x32807f(0xf4),'Bclno':function(_0x1354f9,_0x8aaf6b){return _0x1354f9<_0x8aaf6b;},'xaUhz':function(_0x5ebb69,_0x3fee35,_0x196e8a){return _0x5ebb69(_0x3fee35,_0x196e8a);},'neSCg':function(_0xb7d5bc,_0x555261){return _0xb7d5bc+_0x555261;},'WvQtR':_0x32807f(0xc6),'ILCaN':'numeric','zJdPk':'Unknown','fKeUr':function(_0x4d1531,_0x270bc0,_0xf088e5){return _0x4d1531(_0x270bc0,_0xf088e5);},'KDHVw':_0x32807f(0x127),'ikpWV':function(_0x8f6a3a,_0x433b51){return _0x8f6a3a===_0x433b51;},'wcLBJ':function(_0x1bf4c0,_0x4a5d70){return _0x1bf4c0>=_0x4a5d70;}},_0x34be41=_0x5ce0d5||await _0xd62190['zwGMO'](getActiveFeatureId);if(!_0x34be41)throw new Error(_0x32807f(0x154));const _0x43bdd2=await _0xd62190[_0x32807f(0x17e)](getFeature,_0x34be41),{items:_0x59af4b}=await _0xd62190['JESjr'](getActionItems,_0x34be41);console[_0x32807f(0x15b)]('\x0a📋\x20Feedback\x20for:\x20'+_0x43bdd2['name']+'\x20('+_0x43bdd2['id']+')\x0a');if(_0x59af4b['length']===0x0){console['log'](_0xd62190['QLRdy']);return;}for(let _0xf76204=0x0;_0xd62190[_0x32807f(0x14a)](_0xf76204,_0x59af4b['length']);_0xf76204++){const _0x1685af=_0x59af4b[_0xf76204],_0x2d8cfb=_0x1685af[_0x32807f(0x101)]>0x1?_0x32807f(0xcf)+_0x1685af[_0x32807f(0x101)]+')':'',_0x3c696=await _0xd62190['xaUhz'](getItemFeedback,_0x34be41,_0x1685af['id']);if(_0x3c696['unaddressedComments'][_0x32807f(0xa8)]>0x0){console['log'](_0x32807f(0x11c)+_0xd62190[_0x32807f(0x12e)](_0xf76204,0x1)+':\x20\x22'+_0x1685af['description']+'\x22'+_0x2d8cfb+'\x20—\x20'+_0x3c696[_0x32807f(0x13c)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x5c71cc of _0x3c696[_0x32807f(0x13c)]){const _0x3d170f=new Date(_0x5c71cc['createdAt'])[_0x32807f(0x124)]('en-US',{'month':_0xd62190[_0x32807f(0x132)],'day':_0xd62190[_0x32807f(0x139)]}),_0x58c95e=_0x5c71cc[_0x32807f(0xad)]||_0x5c71cc['authorEmail']||_0xd62190['zJdPk'];console[_0x32807f(0x15b)]('\x20\x20💬\x20'+_0x58c95e+'\x20('+_0x3d170f+_0x32807f(0xfa)+_0x5c71cc['content']+'\x22');if(_0x5c71cc[_0x32807f(0x152)]){const _0x4f4899=await _0xd62190[_0x32807f(0x14e)](downloadFeedbackImage,_0x5c71cc[_0x32807f(0x152)],_0x5c71cc['id']);_0x4f4899&&console[_0x32807f(0x15b)](_0x32807f(0x181)+_0x4f4899);}if(_0x5c71cc[_0x32807f(0x141)]){const _0x769d56=_0x5c71cc[_0x32807f(0x141)][_0x32807f(0x155)][_0x32807f(0x171)](_0xd62190[_0x32807f(0xee)])[_0x32807f(0xff)]()?.[_0x32807f(0x171)](':')[0x0]||'element',_0x5002e8=_0x5c71cc['domRef']['textContent']?'\x20\x22'+_0x5c71cc[_0x32807f(0x141)][_0x32807f(0x156)]['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x769d56+'>'+_0x5002e8),console[_0x32807f(0x15b)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x5c71cc[_0x32807f(0x141)]['selector']);}else{if(_0x5c71cc['spatial']){const _0x41bf21=_0x5c71cc[_0x32807f(0xaa)]['coordinates'];_0xd62190[_0x32807f(0x164)](_0x5c71cc['spatial']['type'],'point')&&_0xd62190[_0x32807f(0xb2)](_0x41bf21['length'],0x2)?console[_0x32807f(0x15b)](_0x32807f(0xd8)+_0x41bf21[0x0]['toFixed'](0x2)+',\x20'+_0x41bf21[0x1][_0x32807f(0x109)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x5c71cc['spatial']['type']+_0x32807f(0x17d)+_0x41bf21['map'](_0x556af2=>_0x556af2[_0x32807f(0x109)](0x2))[_0x32807f(0xd2)](',\x20')+']');}}}if(_0x3c696[_0x32807f(0x163)]){console['log'](_0x32807f(0x114));for(const _0x27116e of _0x3c696[_0x32807f(0x163)][_0x32807f(0x171)]('\x0a')){console[_0x32807f(0x15b)]('\x20\x20\x20\x20'+_0x27116e);}}}else console['log']('Scenario\x20'+(_0xf76204+0x1)+_0x32807f(0x151)+_0x1685af[_0x32807f(0xf3)]+'\x22'+_0x2d8cfb+_0x32807f(0xf2)),console[_0x32807f(0x15b)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x32807f(0x15b)]('');}}export async function featureDelete(_0x82bb8f){const _0x30b236=_0x4901ae,_0x4a9853={'cSpjT':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','KzdeF':_0x30b236(0x13e)},_0x538516=_0x82bb8f||await getActiveFeatureId();if(!_0x538516)throw new Error(_0x4a9853['cSpjT']);const _0x2abdf6=await getFeature(_0x538516);await softDeleteFeature(_0x538516),console['log'](_0x30b236(0x16b)+_0x2abdf6[_0x30b236(0xe8)]+'\x20('+_0x538516+')'),console['log'](_0x4a9853['KzdeF']+_0x538516);}export async function featureRestore(_0x476ee1){const _0x2b2f01=_0x4901ae;await restoreFeature(_0x476ee1);const _0x58f7ee=await getFeature(_0x476ee1);console[_0x2b2f01(0x15b)](_0x2b2f01(0xe5)+_0x58f7ee[_0x2b2f01(0xe8)]+'\x20('+_0x476ee1+')'),displayFeature(_0x58f7ee,_0x58f7ee['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x231ea5,_0x55f1ba){const _0x1dcde7=_0xcd9c,_0x3c3c75=_0x231ea5();while(!![]){try{const _0x48eb2b=parseInt(_0x1dcde7(0xbe))/0x1*(parseInt(_0x1dcde7(0xc9))/0x2)+-parseInt(_0x1dcde7(0xc1))/0x3*(-parseInt(_0x1dcde7(0xbd))/0x4)+-parseInt(_0x1dcde7(0xc0))/0x5*(-parseInt(_0x1dcde7(0xba))/0x6)+parseInt(_0x1dcde7(0xb8))/0x7*(parseInt(_0x1dcde7(0xb9))/0x8)+parseInt(_0x1dcde7(0xc3))/0x9*(parseInt(_0x1dcde7(0xbc))/0xa)+parseInt(_0x1dcde7(0xc6))/0xb+-parseInt(_0x1dcde7(0xc4))/0xc*(parseInt(_0x1dcde7(0xbf))/0xd);if(_0x48eb2b===_0x55f1ba)break;else _0x3c3c75['push'](_0x3c3c75['shift']());}catch(_0x2a75d4){_0x3c3c75['push'](_0x3c3c75['shift']());}}}(_0x460c,0x4e033));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function _0x460c(){const _0x25d003=['172675uwhKHN','363177aSKcOM','SIGINT','56601yzDPWD','10670472SrejdR','Unknown\x20hook:\x20','4939869NwIiMy','once','Valid\x20hooks:\x20','69412KhjIvI','error','7CQRxOh','895952MwwNth','48ghlfaF','exit','40McLwxx','8vWilgJ','3XyRThG','13mzXuMM'];_0x460c=function(){return _0x25d003;};return _0x460c();}function _0xcd9c(_0x3a161d,_0x5f8b98){_0x3a161d=_0x3a161d-0xb7;const _0x460cf1=_0x460c();let _0xcd9c88=_0x460cf1[_0x3a161d];return _0xcd9c88;}function installCancellationHandlers(){const _0x21cd16=_0xcd9c;if(cancellationHandlersInstalled)return;const _0x4f1d41=()=>{process['exit'](0x0);};process[_0x21cd16(0xc7)](_0x21cd16(0xc2),_0x4f1d41),process['once']('SIGTERM',_0x4f1d41),process[_0x21cd16(0xc7)]('SIGHUP',_0x4f1d41),cancellationHandlersInstalled=!![];}export async function hook(_0x5997c9,_0x39af45){const _0x5cd1bf=_0xcd9c;installCancellationHandlers();const _0x41b453=HOOKS[_0x5997c9];if(!_0x41b453){const _0x2dc3f7=Object['keys'](HOOKS)['join'](',\x20');console[_0x5cd1bf(0xb7)](_0x5cd1bf(0xc5)+_0x5997c9),console['error'](_0x5cd1bf(0xc8)+_0x2dc3f7),process[_0x5cd1bf(0xbb)](0x1);}await _0x41b453(_0x39af45);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5447(_0x475d4b,_0x231bf4){_0x475d4b=_0x475d4b-0xdf;const _0x1da71e=_0x1da7();let _0x5447e6=_0x1da71e[_0x475d4b];return _0x5447e6;}const _0x35e6c5=_0x5447;(function(_0x482383,_0x150834){const _0x2891f9=_0x5447,_0x2895ae=_0x482383();while(!![]){try{const _0x164a19=-parseInt(_0x2891f9(0xe4))/0x1*(-parseInt(_0x2891f9(0xec))/0x2)+parseInt(_0x2891f9(0xe7))/0x3*(parseInt(_0x2891f9(0xe8))/0x4)+-parseInt(_0x2891f9(0xe3))/0x5*(parseInt(_0x2891f9(0xe9))/0x6)+-parseInt(_0x2891f9(0xe5))/0x7*(-parseInt(_0x2891f9(0xee))/0x8)+parseInt(_0x2891f9(0xe0))/0x9*(-parseInt(_0x2891f9(0xe2))/0xa)+-parseInt(_0x2891f9(0xed))/0xb*(parseInt(_0x2891f9(0xdf))/0xc)+-parseInt(_0x2891f9(0xea))/0xd*(-parseInt(_0x2891f9(0xeb))/0xe);if(_0x164a19===_0x150834)break;else _0x2895ae['push'](_0x2895ae['shift']());}catch(_0xad07aa){_0x2895ae['push'](_0x2895ae['shift']());}}}(_0x1da7,0x869be));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x35e6c5(0xe1);function _0x1da7(){const _0x3d291a=['2636293Xylvvg','40Saizph','36twKakA','90xOyMQr','\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.','1028170JgGasw','518845XZmUAK','118TVZgKc','774893EkBSbJ','session_id','147171dFraYx','16LYuBLn','48jsEDfH','2939690ehakbP','140uhRqUW','1994sblKqd'];_0x1da7=function(){return _0x3d291a;};return _0x1da7();}export async function autoPrompt(){const _0x968688=_0x35e6c5,_0x652e85={'mrzdh':function(_0x126fb2){return _0x126fb2();},'bfFDD':function(_0x206ba3,_0x57ead9){return _0x206ba3(_0x57ead9);}};if(resolveHookMode()==='off')return;const _0x1eacf5=await _0x652e85['mrzdh'](readHookInput),_0x1d0712=_0x1eacf5?.[_0x968688(0xe6)];if(!_0x1d0712)return;if(isSessionEnabled(_0x1d0712)||_0x652e85['bfFDD'](hasSessionBeenPrompted,_0x1d0712))return;markSessionPrompted(_0x1d0712),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54f64a,_0xbb1bbe){const _0xb0936c=_0x3d22,_0x26a93e=_0x54f64a();while(!![]){try{const _0x4786b6=-parseInt(_0xb0936c(0x16a))/0x1+-parseInt(_0xb0936c(0x15c))/0x2+-parseInt(_0xb0936c(0x15b))/0x3*(parseInt(_0xb0936c(0x15d))/0x4)+parseInt(_0xb0936c(0x162))/0x5+-parseInt(_0xb0936c(0x158))/0x6*(-parseInt(_0xb0936c(0x161))/0x7)+-parseInt(_0xb0936c(0x167))/0x8*(parseInt(_0xb0936c(0x169))/0x9)+parseInt(_0xb0936c(0x163))/0xa*(parseInt(_0xb0936c(0x160))/0xb);if(_0x4786b6===_0xbb1bbe)break;else _0x26a93e['push'](_0x26a93e['shift']());}catch(_0xc5dd9b){_0x26a93e['push'](_0x26a93e['shift']());}}}(_0x20b4,0x5e63e));function _0x3d22(_0x1a8bb3,_0x34022b){_0x1a8bb3=_0x1a8bb3-0x158;const _0x20b4b6=_0x20b4();let _0x3d2253=_0x20b4b6[_0x1a8bb3];return _0x3d2253;}function _0x20b4(){const _0x50f208=['fPnhT','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','ZdYdH','8rjozok','env','5906997xTFrrL','92968knDPHW','330txDKmT','CLAUDE_SESSION_ID','yJYbB','6NrICyp','581868RCbJxU','1297192DQwCpv','rPzfr','master','10797193dHLkqw','76846mneXVU','2450500JjRkAq','10baoNMY'];_0x20b4=function(){return _0x50f208;};return _0x20b4();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x4d8519){const _0x308709=_0x3d22,_0x436433={'rPzfr':function(_0x20984e,_0x50c8c1){return _0x20984e(_0x50c8c1);},'fPnhT':function(_0x388689,_0x55f10b){return _0x388689!==_0x55f10b;},'ZdYdH':function(_0x1b5216,_0xd5cb4f){return _0x1b5216(_0xd5cb4f);},'NJLmx':function(_0x31915a,_0x5f5760){return _0x31915a!==_0x5f5760;},'yJYbB':function(_0x4a509a,_0x7ee68f){return _0x4a509a!==_0x7ee68f;}},_0x188e6b=_0x4d8519||process[_0x308709(0x168)][_0x308709(0x159)]||'';_0x188e6b&&_0x436433[_0x308709(0x15e)](disableSession,_0x188e6b);const _0xc43736=getCurrentBranch();_0xc43736&&_0xc43736!=='main'&&_0x436433[_0x308709(0x164)](_0xc43736,'master')&&disableBranch(_0xc43736),_0x436433[_0x308709(0x166)](printBlock,_0x308709(0x165)+(_0xc43736&&_0x436433['NJLmx'](_0xc43736,'main')&&_0x436433[_0x308709(0x15a)](_0xc43736,_0x308709(0x15f))?'\x20and\x20branch\x20\x27'+_0xc43736+'\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(_0x35129f,_0x46439d){const _0x313bcb=_0x833b,_0x718acc=_0x35129f();while(!![]){try{const _0x456fbf=-parseInt(_0x313bcb(0xfa))/0x1*(-parseInt(_0x313bcb(0x10d))/0x2)+-parseInt(_0x313bcb(0x110))/0x3*(-parseInt(_0x313bcb(0xfd))/0x4)+parseInt(_0x313bcb(0x106))/0x5*(-parseInt(_0x313bcb(0x10c))/0x6)+-parseInt(_0x313bcb(0x102))/0x7*(parseInt(_0x313bcb(0xfe))/0x8)+parseInt(_0x313bcb(0x100))/0x9+parseInt(_0x313bcb(0xf9))/0xa*(parseInt(_0x313bcb(0x10b))/0xb)+parseInt(_0x313bcb(0x108))/0xc;if(_0x456fbf===_0x46439d)break;else _0x718acc['push'](_0x718acc['shift']());}catch(_0x6b9bfd){_0x718acc['push'](_0x718acc['shift']());}}}(_0x2b69,0xc0fea));function _0x833b(_0x1f9447,_0x412907){_0x1f9447=_0x1f9447-0xf8;const _0x2b69ac=_0x2b69();let _0x833b65=_0x2b69ac[_0x1f9447];return _0x833b65;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x452b23){const _0x234841=_0x833b,_0x332989={'sIhMt':function(_0x83ccaf,_0x522912){return _0x83ccaf(_0x522912);},'WJHdi':function(_0x7c4d52){return _0x7c4d52();},'wDgfE':function(_0x14f00a,_0x551d74){return _0x14f00a(_0x551d74);},'RXhvf':'main','OBGdK':function(_0x38ccaf,_0x462e37){return _0x38ccaf!==_0x462e37;},'uepLM':'master','EjyeI':function(_0x4584b5,_0x29d447){return _0x4584b5(_0x29d447);}},_0x194462=_0x452b23||process[_0x234841(0x104)]['CLAUDE_SESSION_ID']||'',_0x568049=_0x332989['sIhMt'](Boolean,_0x452b23),_0x85ab31=await getToken();if(!_0x85ab31){const _0x14094c=_0x568049?_0x234841(0x103):_0x234841(0x105),_0x438ae9=_0x568049?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x234841(0x10f);printBlock(_0x234841(0x10e)+_0x14094c+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x438ae9);return;}try{await _0x332989[_0x234841(0xff)](update);}catch{}_0x194462&&_0x332989[_0x234841(0xf8)](enableSession,_0x194462);const _0x37b3e8=getCurrentBranch(),_0x11f6de=_0x37b3e8&&_0x37b3e8!==_0x332989['RXhvf']&&_0x332989[_0x234841(0xfb)](_0x37b3e8,_0x332989[_0x234841(0x107)])?_0x234841(0x10a)+_0x37b3e8+_0x234841(0x109):'',_0x2af709=getRangerSkillContent();_0x332989[_0x234841(0xfc)](printBlock,'#\x20RANGER\x20ENABLED'+_0x11f6de+_0x234841(0x101)+_0x2af709+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}function _0x2b69(){const _0x5e390e=['\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','\x0a\x0a**Branch\x20\x27','2634797GclAnD','50178dNlFuT','4796EzvaBF','#\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`','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','3esoQuS','wDgfE','30AifAaO','73mMTzQP','OBGdK','EjyeI','2485412OypGNf','8GasRTD','WJHdi','7561044mNFPIc','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','4383393nlsufU','ranger\x20setup\x20--opencode','env','ranger\x20setup','565cjQvUD','uepLM','79440pSOZub'];_0x2b69=function(){return _0x5e390e;};return _0x2b69();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x482333,_0x18a66a){const _0x3fd1fd=_0xe437,_0x4cce8c=_0x482333();while(!![]){try{const _0x297738=parseInt(_0x3fd1fd(0x86))/0x1*(-parseInt(_0x3fd1fd(0x8b))/0x2)+-parseInt(_0x3fd1fd(0x88))/0x3*(-parseInt(_0x3fd1fd(0x89))/0x4)+-parseInt(_0x3fd1fd(0x83))/0x5*(-parseInt(_0x3fd1fd(0x8d))/0x6)+-parseInt(_0x3fd1fd(0x8c))/0x7+-parseInt(_0x3fd1fd(0x82))/0x8+parseInt(_0x3fd1fd(0x87))/0x9+-parseInt(_0x3fd1fd(0x8a))/0xa;if(_0x297738===_0x18a66a)break;else _0x4cce8c['push'](_0x4cce8c['shift']());}catch(_0x25c3ea){_0x4cce8c['push'](_0x4cce8c['shift']());}}}(_0xaea1,0xefdbe));import{printBlock,getEnabledSessionId}from'./output.js';function _0xe437(_0x10369a,_0x41756e){_0x10369a=_0x10369a-0x82;const _0xaea1b3=_0xaea1();let _0xe43709=_0xaea1b3[_0x10369a];return _0xe43709;}function _0xaea1(){const _0x48b3cc=['1058544jUwUMa','343400eObghN','55cIuOhh','===\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===','UoASt','41941CJmkvx','8211636xkznuO','3uwTcme','4259624MSSXQn','10516120Qlafzd','32AgeRmP','8189433PmaQuI'];_0xaea1=function(){return _0x48b3cc;};return _0xaea1();}export async function exitPlanMode(_0x5993a3){const _0x1548dd=_0xe437,_0x21e71b={'UoASt':function(_0x1fe6c4,_0x2e858d){return _0x1fe6c4(_0x2e858d);}},_0x219833=await getEnabledSessionId(_0x5993a3);if(!_0x219833)return;_0x21e71b[_0x1548dd(0x85)](printBlock,_0x1548dd(0x84));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x376330,_0x2776fc){var _0x31b123=_0x1f23,_0x405de1=_0x376330();while(!![]){try{var _0x269cf4=parseInt(_0x31b123(0x14a))/0x1*(parseInt(_0x31b123(0x14d))/0x2)+parseInt(_0x31b123(0x14b))/0x3*(parseInt(_0x31b123(0x14c))/0x4)+parseInt(_0x31b123(0x143))/0x5*(parseInt(_0x31b123(0x145))/0x6)+parseInt(_0x31b123(0x149))/0x7+-parseInt(_0x31b123(0x144))/0x8+-parseInt(_0x31b123(0x148))/0x9*(parseInt(_0x31b123(0x146))/0xa)+parseInt(_0x31b123(0x147))/0xb;if(_0x269cf4===_0x2776fc)break;else _0x405de1['push'](_0x405de1['shift']());}catch(_0x5e296d){_0x405de1['push'](_0x405de1['shift']());}}}(_0x1803,0xa007e));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';function _0x1f23(_0x5e5ceb,_0x81150f){_0x5e5ceb=_0x5e5ceb-0x143;var _0x180390=_0x1803();var _0x1f238a=_0x180390[_0x5e5ceb];return _0x1f238a;}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';function _0x1803(){var _0x13477e=['1847140vvaMkZ','55006xCYgmc','5765nzpXft','5891472tiVYHy','2454yIXhzK','5233330EmDSTJ','772508CbzBcj','9feSSLX','6189120lzfApl','1JfxjEL','3rSavrm'];_0x1803=function(){return _0x13477e;};return _0x1803();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2eb116,_0x488c98){const _0x39833c=_0xa975,_0x194915=_0x2eb116();while(!![]){try{const _0x56bbf1=parseInt(_0x39833c(0x134))/0x1+-parseInt(_0x39833c(0x138))/0x2+-parseInt(_0x39833c(0x141))/0x3*(parseInt(_0x39833c(0x132))/0x4)+parseInt(_0x39833c(0x139))/0x5*(-parseInt(_0x39833c(0x140))/0x6)+parseInt(_0x39833c(0x13a))/0x7+parseInt(_0x39833c(0x133))/0x8*(parseInt(_0x39833c(0x13d))/0x9)+-parseInt(_0x39833c(0x136))/0xa*(-parseInt(_0x39833c(0x135))/0xb);if(_0x56bbf1===_0x488c98)break;else _0x194915['push'](_0x194915['shift']());}catch(_0x1ad843){_0x194915['push'](_0x194915['shift']());}}}(_0x4b8c,0x9844c));function _0xa975(_0x1231c8,_0x4fd591){_0x1231c8=_0x1231c8-0x132;const _0x4b8cc9=_0x4b8c();let _0xa97575=_0x4b8cc9[_0x1231c8];return _0xa97575;}import{isSessionEnabled}from'../utils/sessionCache.js';function _0x4b8c(){const _0x14a514=['trim','1316492gJaRql','29040ODomgn','7384475FMlQwI','LelSv','session_id','18kXNVsK','HzxLY','log','864ZJzpxg','61689pjHQJi','parse','28wdhmAp','1514280JSkUtt','306422jKrzIf','2872727MHVOCG','20ueungf'];_0x4b8c=function(){return _0x14a514;};return _0x4b8c();}export function printBlock(_0xa871c4){const _0x55cbf6=_0xa975;console[_0x55cbf6(0x13f)](_0xa871c4);}export async function readHookInput(){const _0x264f0d=_0xa975;let _0x3b7174='';try{for await(const _0x3f5fc4 of process['stdin']){_0x3b7174+=_0x3f5fc4;}}catch{return null;}if(!_0x3b7174[_0x264f0d(0x137)]())return null;try{return JSON[_0x264f0d(0x142)](_0x3b7174);}catch{return null;}}export async function getEnabledSessionId(_0x54b4da){const _0x34a791=_0xa975,_0x2c1131={'HzxLY':function(_0x4da793,_0x2bb67c){return _0x4da793(_0x2bb67c);}};if(_0x54b4da)return isSessionEnabled(_0x54b4da)?_0x54b4da:null;const _0x58f886=await readHookInput(),_0x5509f9=_0x58f886?.[_0x34a791(0x13c)];if(!_0x5509f9||!_0x2c1131[_0x34a791(0x13e)](isSessionEnabled,_0x5509f9))return null;return _0x5509f9;}export async function getEnabledHookContext(_0x542278){const _0x21fb83=_0xa975,_0x3212ed={'LelSv':function(_0x1da8a9,_0x40e938){return _0x1da8a9(_0x40e938);}};if(_0x542278){if(!isSessionEnabled(_0x542278))return null;return{'sessionId':_0x542278,'input':{'session_id':_0x542278}};}const _0x1681a2=await readHookInput(),_0xd0fb29=_0x1681a2?.['session_id'];if(!_0xd0fb29||!_0x3212ed[_0x21fb83(0x13b)](isSessionEnabled,_0xd0fb29))return null;return{'sessionId':_0xd0fb29,'input':_0x1681a2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x46e7(_0x46d303,_0x56b7ca){_0x46d303=_0x46d303-0x157;const _0xdeb60c=_0xdeb6();let _0x46e78f=_0xdeb60c[_0x46d303];return _0x46e78f;}(function(_0x3f3812,_0x97e81b){const _0x34fb38=_0x46e7,_0x20931e=_0x3f3812();while(!![]){try{const _0x55d3be=-parseInt(_0x34fb38(0x157))/0x1*(parseInt(_0x34fb38(0x158))/0x2)+parseInt(_0x34fb38(0x15b))/0x3+-parseInt(_0x34fb38(0x15f))/0x4*(-parseInt(_0x34fb38(0x15e))/0x5)+-parseInt(_0x34fb38(0x163))/0x6+parseInt(_0x34fb38(0x15d))/0x7*(-parseInt(_0x34fb38(0x160))/0x8)+parseInt(_0x34fb38(0x161))/0x9+parseInt(_0x34fb38(0x164))/0xa;if(_0x55d3be===_0x97e81b)break;else _0x20931e['push'](_0x20931e['shift']());}catch(_0x1ef4a9){_0x20931e['push'](_0x20931e['shift']());}}}(_0xdeb6,0xb3be4));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x169e56){const _0x566c46=_0x46e7,_0x169964={'mXPKJ':function(_0x4f3fa0,_0x9d84c0){return _0x4f3fa0!==_0x9d84c0;},'OudQW':function(_0x2fbd47,_0x1d47e9){return _0x2fbd47(_0x1d47e9);}},_0x1080a7=await getEnabledHookContext(_0x169e56);if(!_0x1080a7)return;if(_0x169964[_0x566c46(0x162)](_0x1080a7['input']['permission_mode'],'plan'))return;if(!shouldShowPlanReminder(_0x1080a7[_0x566c46(0x15c)]))return;_0x169964[_0x566c46(0x15a)](printBlock,_0x566c46(0x159));}function _0xdeb6(){const _0x21b480=['80780SFEHpy','379895tuVjtG','40yKFQNq','784lcgPyL','6050421CQbmaw','mXPKJ','8712030UDyuZK','21361390tXyjgX','568315geCOWi','2wlJJmt','===\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===','OudQW','957810IKMIHy','sessionId'];_0xdeb6=function(){return _0x21b480;};return _0xdeb6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47e339,_0x4debed){const _0x25560f=_0x3e5c,_0x4f8bfa=_0x47e339();while(!![]){try{const _0x322958=parseInt(_0x25560f(0x101))/0x1*(parseInt(_0x25560f(0x106))/0x2)+parseInt(_0x25560f(0x109))/0x3*(parseInt(_0x25560f(0x10a))/0x4)+-parseInt(_0x25560f(0x104))/0x5+-parseInt(_0x25560f(0x105))/0x6+-parseInt(_0x25560f(0x108))/0x7*(-parseInt(_0x25560f(0x102))/0x8)+parseInt(_0x25560f(0x107))/0x9*(parseInt(_0x25560f(0x103))/0xa)+-parseInt(_0x25560f(0x100))/0xb;if(_0x322958===_0x4debed)break;else _0x4f8bfa['push'](_0x4f8bfa['shift']());}catch(_0x28b8cf){_0x4f8bfa['push'](_0x4f8bfa['shift']());}}}(_0x2802,0xa9d58));import{printBlock,getEnabledSessionId}from'./output.js';function _0x3e5c(_0x50882c,_0x4ed272){_0x50882c=_0x50882c-0xff;const _0x2802f5=_0x2802();let _0x3e5cdb=_0x2802f5[_0x50882c];return _0x3e5cdb;}export async function planStart(_0x32a74f){const _0x5da889=_0x3e5c,_0x1eee26={'didOs':function(_0x2627ad,_0x311a5b){return _0x2627ad(_0x311a5b);},'ngnfm':function(_0x1876a1,_0xf589ce){return _0x1876a1(_0xf589ce);}},_0x44dba4=await _0x1eee26[_0x5da889(0xff)](getEnabledSessionId,_0x32a74f);if(!_0x44dba4)return;_0x1eee26['ngnfm'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}function _0x2802(){const _0x2e0c55=['6627306wuFcoH','6008OTwNfy','189BOWEio','3179323ElrwWy','42JkkuGu','227148dhWzkX','didOs','1309055REzOfz','362svZMOm','8eKWefg','149090SXjmsN','3652740cvQtCq'];_0x2802=function(){return _0x2e0c55;};return _0x2802();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x755c01,_0xa7e1b1){const _0x3a8979=_0x3808,_0x25bc27=_0x755c01();while(!![]){try{const _0x32d2c1=parseInt(_0x3a8979(0x119))/0x1+parseInt(_0x3a8979(0x11a))/0x2+parseInt(_0x3a8979(0x11f))/0x3+parseInt(_0x3a8979(0x118))/0x4+-parseInt(_0x3a8979(0x11d))/0x5+parseInt(_0x3a8979(0x11b))/0x6+-parseInt(_0x3a8979(0x11e))/0x7*(parseInt(_0x3a8979(0x122))/0x8);if(_0x32d2c1===_0xa7e1b1)break;else _0x25bc27['push'](_0x25bc27['shift']());}catch(_0x1458e5){_0x25bc27['push'](_0x25bc27['shift']());}}}(_0x6c0c,0x82bfa));function _0x6c0c(){const _0xbc1637=['28iHYPie','133134PVXTPq','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).','PostToolUse','2775768ulUhMh','1723256fNHtyg','722616HbxksH','1908594MKMMpN','2644596TFNHhz','log','3347205JRvvIX'];_0x6c0c=function(){return _0xbc1637;};return _0x6c0c();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3808(_0x28ddc4,_0x42e513){_0x28ddc4=_0x28ddc4-0x118;const _0x6c0c29=_0x6c0c();let _0x38086c=_0x6c0c29[_0x28ddc4];return _0x38086c;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x1b4995){const _0x4a7e92=_0x3808,_0x39a524={'EtDdb':function(_0x3d5009){return _0x3d5009();},'MKOad':'PostToolUse'},_0x3e3af5=await getEnabledSessionId(_0x1b4995);if(!_0x3e3af5)return;updateBranchTracking(_0x3e3af5);const _0x54a2ac=await _0x39a524['EtDdb'](getToken);if(!_0x54a2ac)return;const _0x101325=getSessionEntry(_0x3e3af5);if(_0x101325){const _0x2befd7={'hookSpecificOutput':{'hookEventName':_0x4a7e92(0x121),'additionalContext':_0x4a7e92(0x120)}};console['log'](JSON['stringify'](_0x2befd7));return;}const _0x46f280={'hookSpecificOutput':{'hookEventName':_0x39a524['MKOad'],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console[_0x4a7e92(0x11c)](JSON['stringify'](_0x46f280));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xf8aa(){const _0x34e456=['8243685lxXVYG','11NmIaYZ','9013039xLxZkN','340204oQLBrV','44689740UNMZNK','42wrFlrP','6wcfQHw','76578OMDXAS','2rVpjSy','8178830ZhVlQj','2858565GQTnIc','DDFdT','8qmhQlt'];_0xf8aa=function(){return _0x34e456;};return _0xf8aa();}(function(_0xa18c5f,_0x4e97e1){const _0x2b1da4=_0x3ff3,_0x12c010=_0xa18c5f();while(!![]){try{const _0x252626=parseInt(_0x2b1da4(0x1a1))/0x1*(-parseInt(_0x2b1da4(0x1a0))/0x2)+parseInt(_0x2b1da4(0x19e))/0x3*(-parseInt(_0x2b1da4(0x19c))/0x4)+parseInt(_0x2b1da4(0x196))/0x5*(-parseInt(_0x2b1da4(0x19f))/0x6)+parseInt(_0x2b1da4(0x19b))/0x7*(-parseInt(_0x2b1da4(0x198))/0x8)+parseInt(_0x2b1da4(0x199))/0x9+parseInt(_0x2b1da4(0x195))/0xa*(-parseInt(_0x2b1da4(0x19a))/0xb)+parseInt(_0x2b1da4(0x19d))/0xc;if(_0x252626===_0x4e97e1)break;else _0x12c010['push'](_0x12c010['shift']());}catch(_0x48f0c0){_0x12c010['push'](_0x12c010['shift']());}}}(_0xf8aa,0xa9d5d));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x3ff3(_0x11a8d8,_0x54278f){_0x11a8d8=_0x11a8d8-0x195;const _0xf8aa1=_0xf8aa();let _0x3ff3b5=_0xf8aa1[_0x11a8d8];return _0x3ff3b5;}export async function preCompact(_0x1914dd){const _0x46a8e9=_0x3ff3,_0x141bf9={'durcu':function(_0xb21e18,_0x262ab7){return _0xb21e18(_0x262ab7);},'gIhvy':function(_0x5a0de4){return _0x5a0de4();},'DDFdT':function(_0x42e1cb,_0x323ea2){return _0x42e1cb(_0x323ea2);}},_0x42d151=await _0x141bf9['durcu'](getEnabledSessionId,_0x1914dd);if(!_0x42d151)return;try{const _0x50555b=await _0x141bf9['gIhvy'](getToken);if(!_0x50555b)return;_0x141bf9[_0x46a8e9(0x197)](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(_0x470d1f,_0x585856){const _0x1f7771=_0x3582,_0x5aeae8=_0x470d1f();while(!![]){try{const _0x43e527=parseInt(_0x1f7771(0x12f))/0x1+-parseInt(_0x1f7771(0x12d))/0x2+-parseInt(_0x1f7771(0x132))/0x3*(-parseInt(_0x1f7771(0x135))/0x4)+-parseInt(_0x1f7771(0x130))/0x5+-parseInt(_0x1f7771(0x12e))/0x6+-parseInt(_0x1f7771(0x134))/0x7+-parseInt(_0x1f7771(0x131))/0x8*(-parseInt(_0x1f7771(0x129))/0x9);if(_0x43e527===_0x585856)break;else _0x5aeae8['push'](_0x5aeae8['shift']());}catch(_0x203473){_0x5aeae8['push'](_0x5aeae8['shift']());}}}(_0x4550,0xaf5a8));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x3582(_0x29ad3e,_0x4d0306){_0x29ad3e=_0x29ad3e-0x129;const _0x4550ed=_0x4550();let _0x35827c=_0x4550ed[_0x29ad3e];return _0x35827c;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x10ddcf){const _0x319023=_0x3582,_0x22069a={'GakOy':function(_0x4bb209){return _0x4bb209();},'SQeAi':function(_0x202c86,_0x19bc5f){return _0x202c86===_0x19bc5f;},'ZOKuK':function(_0x597ce3,_0xc4ccf5){return _0x597ce3(_0xc4ccf5);}},_0x275e74=process['env'][_0x319023(0x12a)];let _0x15ee7b=_0x10ddcf,_0x25b059;if(!_0x10ddcf){if(_0x275e74&&!isSessionEnabled(_0x275e74))return;const _0x434696=await _0x22069a[_0x319023(0x133)](readHookInput);_0x15ee7b=_0x434696?.['session_id']||_0x275e74,_0x25b059=_0x434696?.[_0x319023(0x12c)];}if(!_0x15ee7b)return;_0x22069a['SQeAi'](_0x25b059,'clear')&&_0x22069a[_0x319023(0x12b)](recordEnabledSessionCleared,_0x15ee7b);}function _0x4550(){const _0x1353fc=['280128QSkKuw','GakOy','6946240jdNrKr','8SWVRjY','126FIVzmY','CLAUDE_SESSION_ID','ZOKuK','reason','1782294SUqkYy','8129526EKxhqv','1145488TezhgA','2676460bldNIh','1805536oxbCEO'];_0x4550=function(){return _0x1353fc;};return _0x4550();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x26cb(_0x411b36,_0x53bf6e){_0x411b36=_0x411b36-0x117;const _0x58ce42=_0x58ce();let _0x26cb21=_0x58ce42[_0x411b36];return _0x26cb21;}(function(_0x3e75ff,_0x455bd3){const _0x1c12a8=_0x26cb,_0x45354c=_0x3e75ff();while(!![]){try{const _0x20d21e=parseInt(_0x1c12a8(0x119))/0x1*(-parseInt(_0x1c12a8(0x11d))/0x2)+-parseInt(_0x1c12a8(0x123))/0x3+parseInt(_0x1c12a8(0x122))/0x4+-parseInt(_0x1c12a8(0x11e))/0x5+parseInt(_0x1c12a8(0x11a))/0x6+-parseInt(_0x1c12a8(0x121))/0x7*(-parseInt(_0x1c12a8(0x11f))/0x8)+-parseInt(_0x1c12a8(0x127))/0x9*(parseInt(_0x1c12a8(0x129))/0xa);if(_0x20d21e===_0x455bd3)break;else _0x45354c['push'](_0x45354c['shift']());}catch(_0x77ce53){_0x45354c['push'](_0x45354c['shift']());}}}(_0x58ce,0xdc8c7));import{appendFile}from'fs/promises';function _0x58ce(){const _0x531c81=['gTIdI','gZzwO','349857BNdcSd','CLAUDE_ENV_FILE','270VVBLEz','GlLfj','session_id','main','log','XWwam','miKQt','env','8IOnyQx','3751236pWfqyS','zzyuT','SessionStart','182722zbyYeY','216685unWWVo','6433288OXrRJM','trackCommandEnd','14ItTvYS','3509368gwOoQK','1151121rvYyMm','\x20(Branch:\x20'];_0x58ce=function(){return _0x531c81;};return _0x58ce();}import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';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(_0x22d9fa){const _0x24396e=_0x26cb,_0x597000={'zzyuT':function(_0x1597f2,_0x3c1948){return _0x1597f2||_0x3c1948;},'NgauC':function(_0x333752,_0x3c0d11){return _0x333752&&_0x3c0d11;},'gZzwO':function(_0x166cd8,_0x15c260){return _0x166cd8(_0x15c260);},'gTIdI':function(_0x1c2867){return _0x1c2867();},'miKQt':_0x24396e(0x12c),'XWwam':'master','GlLfj':_0x24396e(0x11c),'QLoyh':function(_0x2aea45,_0x5b1dfd){return _0x2aea45+_0x5b1dfd;}};let _0x378a8e=_0x597000[_0x24396e(0x11b)](_0x22d9fa,''),_0x3ef40a;if(!_0x22d9fa){let _0x2bc68c='';for await(const _0xac1c30 of process['stdin']){_0x2bc68c+=_0xac1c30;}try{const _0x542463=JSON['parse'](_0x2bc68c);_0x378a8e=_0x542463[_0x24396e(0x12b)]||'',_0x3ef40a=_0x542463['source'];}catch{}const _0x5665c3=process[_0x24396e(0x118)][_0x24396e(0x128)];if(_0x597000['NgauC'](_0x5665c3,_0x378a8e))try{await appendFile(_0x5665c3,'export\x20CLAUDE_SESSION_ID=\x22'+_0x378a8e+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x378a8e){_0x597000['gZzwO'](shouldAutoEnableAfterClear,_0x3ef40a)&&autoEnableAfterClear(_0x378a8e);initBranchTracking(_0x378a8e);resolveHookMode()==='on'&&enableSession(_0x378a8e);const _0x59f46d=isSessionEnabled(_0x378a8e);try{const _0x5d2ac5=_0x597000[_0x24396e(0x126)](createTelemetryCollector,'hook:session-start');await _0x5d2ac5['trackCommandStart']({'sessionId':_0x378a8e,'hooksEnabled':_0x59f46d}),await _0x5d2ac5[_0x24396e(0x120)]('success');}catch{}if(_0x59f46d){const _0x390898=_0x597000[_0x24396e(0x125)](getCurrentBranch),_0x9c7bc9=_0x390898&&_0x390898!==_0x597000[_0x24396e(0x117)]&&_0x390898!==_0x597000[_0x24396e(0x12e)]?_0x24396e(0x124)+_0x390898+')':'',_0xc79196={'hookSpecificOutput':{'hookEventName':_0x597000[_0x24396e(0x12a)],'additionalContext':_0x597000['QLoyh'](RANGER_AUTO_ENABLED_PROMPT,_0x9c7bc9)}};console[_0x24396e(0x12d)](JSON['stringify'](_0xc79196));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfec240,_0x4cc3ad){const _0x39d6fe=_0x582c,_0xd5e5fe=_0xfec240();while(!![]){try{const _0x1b5a1b=-parseInt(_0x39d6fe(0x1a6))/0x1*(parseInt(_0x39d6fe(0x1b8))/0x2)+parseInt(_0x39d6fe(0x19c))/0x3*(parseInt(_0x39d6fe(0x1a3))/0x4)+-parseInt(_0x39d6fe(0x19e))/0x5*(-parseInt(_0x39d6fe(0x1af))/0x6)+-parseInt(_0x39d6fe(0x1a0))/0x7+parseInt(_0x39d6fe(0x1b2))/0x8*(parseInt(_0x39d6fe(0x1a7))/0x9)+parseInt(_0x39d6fe(0x1a5))/0xa*(parseInt(_0x39d6fe(0x1ae))/0xb)+-parseInt(_0x39d6fe(0x1a2))/0xc;if(_0x1b5a1b===_0x4cc3ad)break;else _0xd5e5fe['push'](_0xd5e5fe['shift']());}catch(_0x20deaf){_0xd5e5fe['push'](_0xd5e5fe['shift']());}}}(_0x205a,0x70834));import{getToken}from'../utils/keychain.js';function _0x205a(){const _0x59d1e3=['featureId','9YvHtoQ','https://dashboard.ranger.net/features/','740ZWAFfS','filter','4823266jfRqqV','closed','6533412dLaTxG','511284fGHRDP','HgKaa','2900540sMbCog','158ilBmTO','9pfnQCj','verification_in_progress','SUpzK','sessionId','iwggQ','success','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','11LjaLbA','34494YIWFkp','IfkZq','log','5051920fuPEOI','trackCommandEnd','stringify','some','trackCommandStart','verified','5842ufBgxG','blocked','status','KAbLE','incomplete'];_0x205a=function(){return _0x59d1e3;};return _0x205a();}import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x1c5fd2){const _0x473211=_0x582c,_0x3d5357={'IfkZq':function(_0x465fe2,_0x52c248){return _0x465fe2(_0x52c248);},'YHbIj':function(_0x5028f4){return _0x5028f4();},'SUpzK':function(_0x19839a,_0x4f9c1a){return _0x19839a&&_0x4f9c1a;},'KAbLE':function(_0x5e4238,_0x44f1bf,_0x2724f1,_0x4670fb){return _0x5e4238(_0x44f1bf,_0x2724f1,_0x4670fb);}},_0x3ef7cd=await _0x3d5357[_0x473211(0x1b0)](getEnabledHookContext,_0x1c5fd2),_0x20554d=_0x3ef7cd?.[_0x473211(0x1aa)]??null;let _0x5c6709=!![];if(!_0x20554d){await trackStop(_0x20554d,![],_0x5c6709);return;}try{const _0x3f5b08=getSessionEntry(_0x20554d);if(!_0x3f5b08){await trackStop(_0x20554d,!![],_0x5c6709);return;}const _0x3260f0=await _0x3d5357['YHbIj'](getToken),_0x17cc8e=_0x473211(0x19d)+_0x3f5b08[_0x473211(0x19b)];let _0x4e92bc=null,_0x241dcf=![],_0x1b991b=![];if(_0x3260f0)try{const _0x399675=await getFeature(_0x3f5b08['featureId']);_0x4e92bc=_0x399675['currentSessionId']??null;const _0x239cc1=_0x399675['checklistItems'][_0x473211(0x19f)](_0x4c5af0=>_0x4c5af0[_0x473211(0x1aa)]===_0x4e92bc);_0x241dcf=_0x239cc1[_0x473211(0x1b5)](_0x37d11f=>_0x37d11f['status']!==_0x473211(0x1b7)&&_0x37d11f[_0x473211(0x1ba)]!==_0x473211(0x1b9)&&_0x37d11f[_0x473211(0x1ba)]!==_0x473211(0x1a1)&&_0x37d11f['status']!==_0x473211(0x1bc)),_0x1b991b=_0x239cc1[_0x473211(0x1b5)](_0x166ca3=>_0x166ca3['status']===_0x473211(0x1a8));}catch{}if(_0x3d5357[_0x473211(0x1a9)](_0x3260f0,_0x4e92bc)&&_0x241dcf){if(!_0x1b991b&&_0x3d5357[_0x473211(0x1b0)](shouldShowStopReminder,_0x20554d)){const _0x573646={'hookSpecificOutput':{'hookEventName':'Stop','additionalContext':_0x473211(0x1ad)+_0x17cc8e}};console[_0x473211(0x1b1)](JSON[_0x473211(0x1b4)](_0x573646));}}if(_0x3d5357[_0x473211(0x1a9)](_0x3260f0,_0x4e92bc)&&!_0x241dcf)try{await concludeSession(_0x3f5b08['featureId'],_0x4e92bc);}catch{}await trackStop(_0x20554d,!![],_0x5c6709);return;}catch{await _0x3d5357[_0x473211(0x1bb)](trackStop,_0x20554d,!![],_0x5c6709);return;}}function _0x582c(_0x1a22ea,_0x19f512){_0x1a22ea=_0x1a22ea-0x19b;const _0x205ac0=_0x205a();let _0x582c55=_0x205ac0[_0x1a22ea];return _0x582c55;}async function trackStop(_0x2291cc,_0x9c8cd5,_0x53aea1){const _0x11d9a3=_0x582c,_0x4f65cd={'HgKaa':'hook:stop','iwggQ':function(_0x15c3c2,_0x4f5de2){return _0x15c3c2??_0x4f5de2;}};try{const _0x155fd1=createTelemetryCollector(_0x4f65cd[_0x11d9a3(0x1a4)]);await _0x155fd1[_0x11d9a3(0x1b6)]({'sessionId':_0x4f65cd[_0x11d9a3(0x1ab)](_0x2291cc,undefined),'hooksEnabled':_0x9c8cd5,'stopAllowed':_0x53aea1}),await _0x155fd1[_0x11d9a3(0x1b3)](_0x11d9a3(0x1ac));}catch{}}
|