@ranger-testing/ranger-cli 3.1.3-alpha.e1ca941-42 → 3.1.4-alpha.fb796e7-45
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/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 _0x22ecc5=_0x50fb;(function(_0x19fe15,_0x5ee127){const _0x29971c=_0x50fb,_0x476119=_0x19fe15();while(!![]){try{const _0x459dda=parseInt(_0x29971c(0x152))/0x1*(-parseInt(_0x29971c(0x185))/0x2)+parseInt(_0x29971c(0x168))/0x3*(parseInt(_0x29971c(0x1ca))/0x4)+parseInt(_0x29971c(0x15d))/0x5*(-parseInt(_0x29971c(0x149))/0x6)+-parseInt(_0x29971c(0x18f))/0x7*(-parseInt(_0x29971c(0x1de))/0x8)+-parseInt(_0x29971c(0x1c1))/0x9*(-parseInt(_0x29971c(0x1a4))/0xa)+-parseInt(_0x29971c(0x1fb))/0xb*(-parseInt(_0x29971c(0x159))/0xc)+parseInt(_0x29971c(0x1fa))/0xd;if(_0x459dda===_0x5ee127)break;else _0x476119['push'](_0x476119['shift']());}catch(_0x59d085){_0x476119['push'](_0x476119['shift']());}}}(_0x53c8,0x6f619));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x35c7f2 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='active-feature.txt',bold=_0x5f1062=>_0x22ecc5(0x151)+_0x5f1062+_0x22ecc5(0x219);function getGitRepoUrl(){const _0x49c028=_0x22ecc5,_0x3aadae={'nCCtO':'git\x20remote\x20get-url\x20origin','MHhLF':_0x49c028(0x1af),'DScYl':_0x49c028(0x187)};try{const _0xebc794=execSync(_0x3aadae['nCCtO'],{'encoding':_0x49c028(0x1ae),'stdio':[_0x3aadae['MHhLF'],'pipe',_0x3aadae['MHhLF']]})[_0x49c028(0x1fc)]();return _0xebc794[_0x49c028(0x155)](/\.git$/,'')[_0x49c028(0x155)](/^git@github\.com:/,_0x3aadae['DScYl'])[_0x49c028(0x155)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x4fca3c=_0x22ecc5,_0x294545={'AXPCh':function(_0x11085c,_0x2527fb,_0x15287b){return _0x11085c(_0x2527fb,_0x15287b);}};try{return _0x294545[_0x4fca3c(0x189)](execSync,_0x4fca3c(0x181),{'encoding':_0x4fca3c(0x1ae),'stdio':['pipe',_0x4fca3c(0x1af),_0x4fca3c(0x1af)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5a29e5=_0x22ecc5,_0x106f03={'bflMT':_0x5a29e5(0x1ae)},_0x41168f=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x41168f))return null;try{const _0x56fa12=await readFile(_0x41168f,_0x106f03[_0x5a29e5(0x171)]);return _0x56fa12['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x2bc3ed){const _0xb4bce=_0x22ecc5,_0x3a2153={'cGOdC':function(_0x49a1b9,_0x3fb443){return _0x49a1b9(_0x3fb443);},'fqvTZ':function(_0x953245,_0x593eb2,_0x2ea1d6,_0x2bc968){return _0x953245(_0x593eb2,_0x2ea1d6,_0x2bc968);},'CzUgA':_0xb4bce(0x1ae)},_0x2c006d=getRangerDir(),_0x4abf10=join(_0x2c006d,ACTIVE_FEATURE_FILE);!_0x3a2153[_0xb4bce(0x210)](existsSync,_0x2c006d)&&await mkdir(_0x2c006d,{'recursive':!![]}),await _0x3a2153[_0xb4bce(0x19c)](writeFile,_0x4abf10,_0x2bc3ed,_0x3a2153[_0xb4bce(0x20c)]);}function getProgressDisplay(_0x1639c4){const _0x5cc961=_0x22ecc5,_0x4d434f={'vkyyD':function(_0x299fa9,_0x43f0c2){return _0x299fa9+_0x43f0c2;},'GNsUl':function(_0x1506be,_0x4a4f6b){return _0x1506be+_0x4a4f6b;},'mbaQy':function(_0x5ad826,_0x46f1a9){return _0x5ad826*_0x46f1a9;},'lJzXg':function(_0x3cf4d0,_0x279825){return _0x3cf4d0-_0x279825;},'GUjlF':function(_0x541d13,_0x46ec77){return _0x541d13>_0x46ec77;}},_0x5370f9=_0x1639c4[_0x5cc961(0x180)]||0x0,_0x56d52b=_0x1639c4['verificationInProgressItems']||0x0,_0x27cb7e=_0x1639c4['blockedItems']||0x0,_0x2d5491=_0x1639c4[_0x5cc961(0x19e)]||0x0,_0x54a5c8=_0x1639c4[_0x5cc961(0x1d0)]||0x0,_0x564101=_0x4d434f[_0x5cc961(0x14c)](_0x4d434f[_0x5cc961(0x1f3)](_0x5370f9+_0x56d52b,_0x27cb7e),_0x2d5491)+_0x54a5c8;if(_0x564101===0x0)return'-';const _0x2623f6=0xa,_0x273721=Math['round'](_0x4d434f[_0x5cc961(0x186)](_0x5370f9/_0x564101,_0x2623f6)),_0x5df48a='█'['repeat'](_0x273721)+'░'[_0x5cc961(0x15b)](_0x4d434f[_0x5cc961(0x1db)](_0x2623f6,_0x273721)),_0x2e12b1=[];if(_0x27cb7e>0x0)_0x2e12b1['push'](_0x27cb7e+'\x20blocked');if(_0x4d434f[_0x5cc961(0x18b)](_0x2d5491,0x0))_0x2e12b1[_0x5cc961(0x192)](_0x2d5491+'\x20incomplete');if(_0x56d52b>0x0)_0x2e12b1[_0x5cc961(0x192)](_0x56d52b+_0x5cc961(0x214));const _0x135eb6=_0x2e12b1['length']>0x0?'\x20('+_0x2e12b1['join'](',\x20')+')':'';return _0x5df48a+'\x20'+_0x5370f9+'/'+_0x564101+'\x20verified'+_0x135eb6;}function getCurrentSessionItems(_0x5775f4,_0xf54093){const _0x1681d5=_0x22ecc5;if(!_0x5775f4['currentSessionId'])return _0xf54093[_0x1681d5(0x1b3)](_0x4ad683=>!_0x4ad683[_0x1681d5(0x222)]);return _0xf54093['filter'](_0x39e01d=>_0x39e01d[_0x1681d5(0x222)]===_0x5775f4['currentSessionId']||!_0x39e01d[_0x1681d5(0x222)]);}function displayFeature(_0x362181,_0x5194fd){const _0x545f37=_0x22ecc5,_0x10893c={'eebEI':function(_0x2e0f93,_0x1794f8){return _0x2e0f93(_0x1794f8);},'NvpCF':_0x545f37(0x1ab),'VDvol':function(_0x30f65e,_0x1326ce){return _0x30f65e<_0x1326ce;},'CwWbp':function(_0x91f4e8,_0x4f9b94){return _0x91f4e8===_0x4f9b94;},'KSIkQ':'approved','XvvtL':_0x545f37(0x21d),'mRjwR':_0x545f37(0x1b9),'RRZmK':function(_0x4da9f8,_0x1b6a7a){return _0x4da9f8===_0x1b6a7a;},'dTZCZ':'closed','CZJsF':function(_0x3ab3cc,_0xf94f35){return _0x3ab3cc===_0xf94f35;},'SkhCL':_0x545f37(0x200),'bRVKJ':function(_0x4f0dee,_0x4423ca){return _0x4f0dee>_0x4423ca;},'jlPre':_0x545f37(0x163),'BmLFE':function(_0x296720,_0x9466f4){return _0x296720+_0x9466f4;},'oxcFx':'blocked','oHOFR':function(_0x497160,_0x4d053d){return _0x497160===_0x4d053d;}};console['log']('\x0a'+_0x362181['name']+'\x20('+_0x362181[_0x545f37(0x21e)]+')');_0x362181[_0x545f37(0x1ea)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x10893c[_0x545f37(0x182)](getProgressDisplay,_0x362181[_0x545f37(0x1ea)]));_0x362181['description']&&console[_0x545f37(0x14e)](_0x545f37(0x16e)+_0x362181['description']);_0x362181['gitRepoUrl']&&console['log'](_0x545f37(0x141)+_0x362181[_0x545f37(0x20b)]);_0x362181['gitBranch']&&console['log'](_0x545f37(0x218)+_0x362181[_0x545f37(0x211)]);console['log'](_0x545f37(0x1ba)+new Date(_0x362181[_0x545f37(0x15e)])['toLocaleString']());_0x362181['completedAt']&&console['log'](_0x545f37(0x195)+new Date(_0x362181[_0x545f37(0x1ed)])[_0x545f37(0x1fe)]());if(_0x5194fd&&_0x5194fd['length']>0x0){console[_0x545f37(0x14e)](_0x10893c[_0x545f37(0x220)]);for(let _0x2ad1dd=0x0;_0x10893c[_0x545f37(0x1b1)](_0x2ad1dd,_0x5194fd[_0x545f37(0x1ff)]);_0x2ad1dd++){const _0x21d3a9=_0x5194fd[_0x2ad1dd];let _0x4f4d13;if(_0x21d3a9[_0x545f37(0x19d)]==='closed'&&_0x10893c['CwWbp'](_0x21d3a9[_0x545f37(0x224)],_0x10893c['KSIkQ']))_0x4f4d13='✅';else{if(_0x21d3a9['status']===_0x10893c[_0x545f37(0x197)])_0x4f4d13='🟢';else{if(_0x21d3a9[_0x545f37(0x19d)]===_0x10893c['mRjwR'])_0x4f4d13='🟠';else{if(_0x10893c['CwWbp'](_0x21d3a9['status'],'blocked'))_0x4f4d13='🛑';else{if(_0x10893c[_0x545f37(0x20e)](_0x21d3a9['status'],_0x10893c['dTZCZ']))_0x4f4d13='⛔';else _0x10893c[_0x545f37(0x20a)](_0x21d3a9[_0x545f37(0x19d)],_0x10893c['SkhCL'])?_0x4f4d13='⏳':_0x4f4d13='⬜';}}}}const _0x589260=_0x10893c[_0x545f37(0x1c9)](_0x21d3a9['version'],0x1)?'\x20(v'+_0x21d3a9[_0x545f37(0x1e9)]+')':'',_0x822cc8=_0x21d3a9['version']>0x1&&_0x21d3a9['parentItemId']&&_0x21d3a9[_0x545f37(0x19d)]!=='closed'&&_0x21d3a9['status']!==_0x545f37(0x21d)?_0x10893c[_0x545f37(0x1bc)]:'';console[_0x545f37(0x14e)]('\x20\x20\x20'+_0x10893c['BmLFE'](_0x2ad1dd,0x1)+'.\x20'+_0x4f4d13+'\x20'+_0x21d3a9['description']+_0x589260+_0x822cc8);_0x21d3a9[_0x545f37(0x19d)]===_0x10893c['oxcFx']&&_0x21d3a9[_0x545f37(0x1ac)]&&console[_0x545f37(0x14e)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x21d3a9[_0x545f37(0x1ac)]);_0x10893c['RRZmK'](_0x21d3a9[_0x545f37(0x19d)],_0x10893c['mRjwR'])&&_0x21d3a9['incompleteReason']&&console['log'](_0x545f37(0x1f6)+_0x21d3a9[_0x545f37(0x1c3)]);if(_0x21d3a9['status']===_0x10893c['dTZCZ']&&_0x10893c['oHOFR'](_0x21d3a9[_0x545f37(0x224)],_0x10893c[_0x545f37(0x1c8)]))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x21d3a9['status']==='closed'&&_0x21d3a9[_0x545f37(0x142)]&&console[_0x545f37(0x14e)](_0x545f37(0x223)+_0x21d3a9[_0x545f37(0x142)]);}}}export async function featureCreate(_0x5e48e6,_0x5c43fc){const _0x5463f7=_0x22ecc5,_0x29e83f={'xzyGj':function(_0x325515,_0x417ac3){return _0x325515===_0x417ac3;},'EwEqv':function(_0x31f029,_0x1b8ce7){return _0x31f029(_0x1b8ce7);},'zsbmw':function(_0x28e392,_0x22be5f,_0x176d4f){return _0x28e392(_0x22be5f,_0x176d4f);}},{envNames:_0x20f361}=await getEnvNames();if(_0x29e83f[_0x5463f7(0x18d)](_0x20f361['length'],0x0)&&!process[_0x5463f7(0x156)]['RANGER_TEST_USERNAME']){let _0x43a355=0x0;try{_0x43a355=(await listCloudProfiles())[_0x5463f7(0x1ff)];}catch{_0x43a355=0x1;}_0x43a355===0x0&&console[_0x5463f7(0x1d8)]('\x0a'+_0x29e83f['EwEqv'](formatProfileRequiredMessage,_0x47e877=>bold(_0x47e877)));}const _0x18b6a7=_0x5c43fc['scenarios']?_0x5c43fc[_0x5463f7(0x193)]['map'](_0x430533=>_0x430533['trim']()):[],_0x4633f2=getGitRepoUrl(),_0xbe22a1=getGitBranch();console[_0x5463f7(0x14e)](_0x5463f7(0x19f));const _0x230bd4=await createFeature({'name':_0x5e48e6,'description':_0x5c43fc['description'],'checklist':_0x18b6a7,'gitRepoUrl':_0x4633f2,'gitBranch':_0xbe22a1});await setActiveFeatureId(_0x230bd4['id']),await tryStartCurrentSession(_0x230bd4['id']);const _0xd12c6c=process[_0x5463f7(0x156)]['CLAUDE_SESSION_ID'];_0xd12c6c&&_0x29e83f['zsbmw'](registerSession,_0xd12c6c,_0x230bd4['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x230bd4['id']),displayFeature(_0x230bd4,_0x230bd4[_0x5463f7(0x1b7)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}function _0x50fb(_0x58e25e,_0x40f580){_0x58e25e=_0x58e25e-0x13d;const _0x53c8d0=_0x53c8();let _0x50fbc2=_0x53c8d0[_0x58e25e];return _0x50fbc2;}export async function featureList(_0x15a4fb){const _0x168544=_0x22ecc5,_0xe81a7d={'DDeTZ':function(_0x403209){return _0x403209();},'JXTsg':function(_0xa9215b,_0x3201b9){return _0xa9215b(_0x3201b9);},'XITJa':function(_0x3af398,_0x2f9285){return _0x3af398>_0x2f9285;},'wkRyH':function(_0x34b79b,_0x5664e2){return _0x34b79b<_0x5664e2;},'BnRWE':function(_0x106943,_0x3c52d6){return _0x106943!==_0x3c52d6;}},_0x43d3eb={'limit':_0x15a4fb[_0x168544(0x1c0)]??0xa,'offset':_0x15a4fb['offset']??0x0,'includeDeleted':_0x15a4fb['includeDeleted']};_0x15a4fb[_0x168544(0x1cd)]&&(_0x43d3eb[_0x168544(0x20b)]=_0xe81a7d[_0x168544(0x205)](getGitRepoUrl),_0x43d3eb['gitBranch']=_0xe81a7d['DDeTZ'](getGitBranch));const _0xc3ddf1=await _0xe81a7d[_0x168544(0x1fd)](listFeatures,_0x43d3eb);if(_0xc3ddf1[_0x168544(0x16d)][_0x168544(0x1ff)]===0x0){console['log'](_0x168544(0x18e));return;}const _0x1382ce=_0xe81a7d['XITJa'](_0xc3ddf1['totalCount'],_0xc3ddf1['items'][_0x168544(0x1ff)])?'Showing\x20'+_0xc3ddf1[_0x168544(0x16d)]['length']+_0x168544(0x1aa)+_0xc3ddf1['totalCount']:_0xc3ddf1[_0x168544(0x1a0)]+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x1382ce+':\x0a');for(const _0x2ddf39 of _0xc3ddf1[_0x168544(0x16d)]){console['log'](''+_0x2ddf39[_0x168544(0x21f)]),console['log'](_0x168544(0x16a)+_0x2ddf39['id']),_0x2ddf39['stats']&&console['log'](_0x168544(0x179)+getProgressDisplay(_0x2ddf39[_0x168544(0x1ea)])),_0x2ddf39[_0x168544(0x211)]&&console['log'](_0x168544(0x218)+_0x2ddf39[_0x168544(0x211)]),console['log'](_0x168544(0x1ba)+new Date(_0x2ddf39[_0x168544(0x15e)])['toLocaleDateString']()),console[_0x168544(0x14e)]('');}const _0x46dcd8=_0x43d3eb[_0x168544(0x1c0)]??0xa,_0x322f2b=(_0x43d3eb['offset']??0x0)+_0xc3ddf1[_0x168544(0x16d)]['length'];if(_0xe81a7d[_0x168544(0x196)](_0x322f2b,_0xc3ddf1['totalCount'])){const _0x483534=_0xe81a7d[_0x168544(0x216)](_0x46dcd8,0xa)?'\x20--limit\x20'+_0x46dcd8:'',_0x46fdf1=_0x15a4fb['currentBranch']?'\x20--current-branch':'',_0x22e676=_0x15a4fb['includeDeleted']?_0x168544(0x1d5):'';console['log'](_0x168544(0x19b)+_0x322f2b+_0x483534+_0x46fdf1+_0x22e676);}}export async function featureShow(_0x332e7c){const _0x3a6d0d=_0x22ecc5,_0x175bba=_0x332e7c||await getActiveFeatureId();if(!_0x175bba)throw new Error(_0x3a6d0d(0x1d7));const _0x5bfb9f=await getFeature(_0x175bba);displayFeature(_0x5bfb9f,_0x5bfb9f['checklistItems']);}export async function featureResume(_0x268fb4){const _0x1cce4c=_0x22ecc5,_0x2fde87={'Ijrbo':function(_0x5457c1){return _0x5457c1();},'NLeVV':function(_0x59f92a,_0x51df46){return _0x59f92a!==_0x51df46;},'YCXXw':function(_0x533096,_0x467e9d,_0x22fb25){return _0x533096(_0x467e9d,_0x22fb25);},'tUmct':function(_0x4bf799,_0x245590){return _0x4bf799(_0x245590);},'pfPGL':function(_0x4436eb,_0x3e8d1f){return _0x4436eb&&_0x3e8d1f;},'ZHrJL':_0x1cce4c(0x217),'KuYBv':function(_0x5e0d6b,_0x582fb7){return _0x5e0d6b||_0x582fb7;},'kpAUA':function(_0x4210f0,_0x276ab2){return _0x4210f0===_0x276ab2;},'bgRPL':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','pcWvE':_0x1cce4c(0x1cc),'qzlbL':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','mGBkx':_0x1cce4c(0x191),'Anazq':_0x1cce4c(0x173),'sZoPO':_0x1cce4c(0x1f5),'evIxt':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','kupMP':function(_0x539a1a,_0x109306){return _0x539a1a(_0x109306);}};if(_0x268fb4){const _0x3dc272=await getFeature(_0x268fb4);await setActiveFeatureId(_0x3dc272['id']);const _0x574e3f=_0x2fde87['Ijrbo'](getGitBranch);_0x574e3f&&_0x2fde87['NLeVV'](_0x574e3f,_0x3dc272['gitBranch'])&&(await _0x2fde87[_0x1cce4c(0x175)](updateFeature,_0x3dc272['id'],{'gitBranch':_0x574e3f}),console[_0x1cce4c(0x14e)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x574e3f));console[_0x1cce4c(0x14e)](_0x1cce4c(0x164)+_0x3dc272['name']+'\x20('+_0x3dc272['id']+')'),await _0x2fde87['tUmct'](tryStartCurrentSession,_0x3dc272['id']);const _0x5d8440=process['env']['CLAUDE_SESSION_ID'];_0x5d8440&&_0x2fde87['YCXXw'](registerSession,_0x5d8440,_0x3dc272['id']);displayFeature(_0x3dc272,_0x3dc272['checklistItems']),await printFeedbackNudge(_0x3dc272['id']);return;}const _0x1ee4f7=_0x2fde87[_0x1cce4c(0x153)](getGitRepoUrl),_0x5b0654=_0x2fde87['Ijrbo'](getGitBranch);if(_0x2fde87['pfPGL'](!_0x1ee4f7,!_0x5b0654))throw new Error(_0x1cce4c(0x1e1));console[_0x1cce4c(0x14e)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x1ee4f7||_0x2fde87['ZHrJL'])+'\x20/\x20'+_0x2fde87[_0x1cce4c(0x1bd)](_0x5b0654,_0x1cce4c(0x217))+'...');const _0xb1d2a9=await listFeatures({'gitRepoUrl':_0x1ee4f7,'gitBranch':_0x5b0654}),_0x357372=_0xb1d2a9[_0x1cce4c(0x16d)]['filter'](_0x396caf=>_0x396caf[_0x1cce4c(0x19d)]?_0x396caf[_0x1cce4c(0x19d)]!==_0x1cce4c(0x21d):!_0x396caf['completedAt']);if(_0x2fde87[_0x1cce4c(0x1a7)](_0x357372[_0x1cce4c(0x1ff)],0x0)){console['log'](_0x2fde87[_0x1cce4c(0x1d6)]),console['log'](_0x2fde87[_0x1cce4c(0x21a)]);return;}let _0x32939b;if(_0x2fde87[_0x1cce4c(0x1a7)](_0x357372[_0x1cce4c(0x1ff)],0x1))_0x32939b=_0x357372[0x0];else{const _0x2769f7=process['stdin'][_0x1cce4c(0x1da)]&&process['stdout'][_0x1cce4c(0x1da)];if(!_0x2769f7){console[_0x1cce4c(0x14e)](_0x2fde87[_0x1cce4c(0x162)]);for(const _0x1c35d5 of _0x357372){console[_0x1cce4c(0x14e)]('\x20\x20'+_0x1c35d5['name']),console['log'](_0x1cce4c(0x20d)+_0x1c35d5['id']),_0x1c35d5['stats']&&console[_0x1cce4c(0x14e)](_0x1cce4c(0x1df)+getProgressDisplay(_0x1c35d5['stats'])),_0x1c35d5['gitBranch']&&console[_0x1cce4c(0x14e)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x1c35d5[_0x1cce4c(0x211)]);}throw new Error(_0x2fde87['mGBkx']);}const {selected:_0x554841}=await _0x35c7f2['prompt']([{'type':_0x2fde87[_0x1cce4c(0x165)],'name':_0x2fde87[_0x1cce4c(0x21b)],'message':_0x2fde87[_0x1cce4c(0x17a)],'choices':_0x357372[_0x1cce4c(0x1b6)](_0xf69623=>({'name':_0xf69623[_0x1cce4c(0x21f)]+'\x20('+_0xf69623['id']+')','value':_0xf69623['id']}))}]);_0x32939b=_0x357372[_0x1cce4c(0x1b4)](_0xa3b0d5=>_0xa3b0d5['id']===_0x554841);}await setActiveFeatureId(_0x32939b['id']);_0x5b0654&&_0x5b0654!==_0x32939b['gitBranch']&&(await _0x2fde87[_0x1cce4c(0x175)](updateFeature,_0x32939b['id'],{'gitBranch':_0x5b0654}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x5b0654));console[_0x1cce4c(0x14e)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x32939b['name']+'\x20('+_0x32939b['id']+')'),await _0x2fde87['tUmct'](tryStartCurrentSession,_0x32939b['id']);const _0x3980d3=await _0x2fde87['kupMP'](getFeature,_0x32939b['id']),_0x3c140e=process[_0x1cce4c(0x156)][_0x1cce4c(0x1a3)];_0x3c140e&®isterSession(_0x3c140e,_0x3980d3['id']),displayFeature(_0x3980d3,_0x3980d3[_0x1cce4c(0x1b7)]),await _0x2fde87['kupMP'](printFeedbackNudge,_0x3980d3['id']);}async function printFeedbackNudge(_0x26f6dd){const _0x393964=_0x22ecc5,_0x4aec27={'yFmod':function(_0x3dd4ce,_0x1d0585){return _0x3dd4ce(_0x1d0585);},'xsBwu':function(_0x37458f,_0x2f1da5,_0x16e05c){return _0x37458f(_0x2f1da5,_0x16e05c);},'yPKdM':function(_0x1efbe3,_0x349766){return _0x1efbe3>_0x349766;},'VtSJx':function(_0xac567a,_0x168bfa){return _0xac567a>_0x168bfa;}};try{const {items:_0x298800}=await _0x4aec27[_0x393964(0x1f4)](getActionItems,_0x26f6dd);let _0x1172ea=0x0,_0x48251d=0x0;for(const _0x1b6c9a of _0x298800){const _0x5d1e28=await _0x4aec27['xsBwu'](getItemFeedback,_0x26f6dd,_0x1b6c9a['id']);_0x4aec27[_0x393964(0x178)](_0x5d1e28['unaddressedComments'][_0x393964(0x1ff)],0x0)&&(_0x1172ea+=_0x5d1e28[_0x393964(0x14b)][_0x393964(0x1ff)],_0x48251d++);}_0x4aec27[_0x393964(0x17e)](_0x1172ea,0x0)&&(console['log'](_0x393964(0x14d)+_0x1172ea+_0x393964(0x1f0)+_0x48251d+_0x393964(0x207)),console['log'](_0x393964(0x1ef)));}catch{}}async function tryStartCurrentSession(_0x5a1547){const _0x2b0e23=_0x22ecc5;try{const {sessions:_0x51f919}=await listFeatureSessions(_0x5a1547),_0x40f595=_0x51f919[_0x2b0e23(0x1b4)](_0x175ae3=>_0x175ae3[_0x2b0e23(0x19d)]===_0x2b0e23(0x1a8));_0x40f595&&(await startSession(_0x5a1547,_0x40f595['id']),console['log'](_0x2b0e23(0x17f)+_0x40f595[_0x2b0e23(0x145)]));}catch{}}export async function featureReport(_0x35581f,_0x5d73c2){const _0x22281a=_0x22ecc5,_0x3b8756={'OiPVI':function(_0x25fdca,_0x5e67c2,_0x492764){return _0x25fdca(_0x5e67c2,_0x492764);},'ZMUrl':function(_0x8286cc,_0x4337c6){return _0x8286cc(_0x4337c6);},'cYWSa':_0x22281a(0x1ae)},_0x8ac292=_0x35581f||await getActiveFeatureId();if(!_0x8ac292)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log']('\x0aGenerating\x20report...');const _0x34f97e=await _0x3b8756[_0x22281a(0x20f)](getFeatureReportMarkdown,_0x8ac292,{'style':_0x5d73c2[_0x22281a(0x169)]}),_0x4a82f0=_0x5d73c2[_0x22281a(0x19a)]||join(getRangerDir(),_0x22281a(0x1f7),_0x8ac292+'.md'),_0x1abc0e=join(_0x4a82f0,'..');!_0x3b8756[_0x22281a(0x202)](existsSync,_0x1abc0e)&&await mkdir(_0x1abc0e,{'recursive':!![]}),await writeFile(_0x4a82f0,_0x34f97e,_0x3b8756[_0x22281a(0x1a5)]),console['log'](_0x22281a(0x1a9)+_0x4a82f0);}function getScenarioResult(_0x1d0eee){const _0x546bff=_0x22ecc5,_0x3f6ce8={'snALa':_0x546bff(0x1ad),'SrKqu':'verification_in_progress','poQSy':_0x546bff(0x160)};if(_0x1d0eee['status']==='closed')return _0x1d0eee[_0x546bff(0x224)]??_0x3f6ce8[_0x546bff(0x1e7)];if(_0x1d0eee['status']===_0x3f6ce8['SrKqu'])return _0x3f6ce8[_0x546bff(0x16b)];return _0x1d0eee[_0x546bff(0x19d)];}function getScenarioRationale(_0xfcee19,_0x1f7b95){const _0x3f4c16=_0x22ecc5;if(_0x1f7b95)return _0x1f7b95;if(_0xfcee19[_0x3f4c16(0x1ac)])return _0xfcee19['blockedReason'];if(_0xfcee19['incompleteReason'])return _0xfcee19[_0x3f4c16(0x1c3)];if(_0xfcee19['canceledReason'])return _0xfcee19[_0x3f4c16(0x142)];if(_0xfcee19['notes'])return _0xfcee19['notes'];return null;}export async function featureReportPrDescription(_0x2f69c1,_0x2f005d){const _0x4f694a=_0x22ecc5,_0x50b6cf={'LQIKN':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','eNHEc':function(_0x46ae0a,_0x15cf64){return _0x46ae0a(_0x15cf64);},'kQXIX':function(_0x38eb85,_0x3ae6fe,_0x49cbf0){return _0x38eb85(_0x3ae6fe,_0x49cbf0);},'HJPmB':function(_0x10c1a5,_0x2441f2){return _0x10c1a5===_0x2441f2;},'cNbiu':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','ComES':function(_0x1ef846,_0x29f878){return _0x1ef846>_0x29f878;},'UXCYW':function(_0x2904bc,_0x242380){return _0x2904bc+_0x242380;}},_0x4ff124=_0x2f69c1||await getActiveFeatureId();if(!_0x4ff124)throw new Error(_0x50b6cf[_0x4f694a(0x13f)]);const _0x162cb6=await _0x50b6cf['eNHEc'](getFeature,_0x4ff124),_0x453aba=_0x162cb6['checklistItems']||[],_0x5cd585=_0x50b6cf[_0x4f694a(0x1a2)](getCurrentSessionItems,_0x162cb6,_0x453aba);_0x50b6cf['HJPmB'](_0x5cd585['length'],0x0)&&(console['error'](_0x50b6cf[_0x4f694a(0x176)]),process[_0x4f694a(0x1c2)](0x1));const _0x4ae8e3=_0x2f005d[_0x4f694a(0x1ec)]??[],_0x4e8195=_0x4ae8e3[_0x4f694a(0x1b3)](_0x4e55af=>!Number[_0x4f694a(0x1f9)](_0x4e55af)||_0x4e55af<0x1||_0x4e55af>_0x5cd585['length']);if(_0x50b6cf['ComES'](_0x4e8195['length'],0x0)){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x4e8195[_0x4f694a(0x157)](',\x20')),console['log'](_0x4f694a(0x184));for(let _0xe6da58=0x0;_0xe6da58<_0x5cd585[_0x4f694a(0x1ff)];_0xe6da58++){console['log']('\x20\x20'+_0x50b6cf['UXCYW'](_0xe6da58,0x1)+'.\x20'+_0x5cd585[_0xe6da58]['description']);}process['exit'](0x1);}const _0x51f930=new Set(_0x4ae8e3[_0x4f694a(0x1b6)](_0x28e6fb=>_0x28e6fb-0x1)),_0x2fa60c=_0x5cd585[_0x4f694a(0x1b3)]((_0x2829cf,_0x1a6c54)=>!_0x51f930['has'](_0x1a6c54));_0x2fa60c['length']===0x0&&(console['error'](_0x4f694a(0x1c6)),process[_0x4f694a(0x1c2)](0x1));if(_0x2f005d[_0x4f694a(0x183)])await outputJsonReport(_0x4ff124,_0x162cb6,_0x2fa60c);else{const _0x1b21f1=await getFeatureReportMarkdown(_0x4ff124,{'itemIds':_0x2fa60c[_0x4f694a(0x1b6)](_0x53c10f=>_0x53c10f['id'])});process['stdout'][_0x4f694a(0x1b0)](_0x1b21f1[_0x4f694a(0x194)]()+'\x0a');}}async function outputJsonReport(_0x319abb,_0x49624d,_0x10707b){const _0x38e648=_0x22ecc5,_0x1cf630={'OOWke':function(_0x590016,_0x3b3edd){return _0x590016>_0x3b3edd;},'gLIgB':function(_0x7e8324,_0x1af73e){return _0x7e8324(_0x1af73e);},'baeFR':function(_0x2a5c8f,_0x23c8de,_0x2e3937){return _0x2a5c8f(_0x23c8de,_0x2e3937);},'wkTkV':function(_0x401d75){return _0x401d75();},'SlHzb':function(_0x516461,_0x5401c9){return _0x516461+_0x5401c9;}},_0x5b350f=_0x1cf630[_0x38e648(0x1c7)](getApiBaseUrl),_0x2bfc83=await getFeatureReport(_0x319abb),_0x186ecf=new Map(_0x2bfc83['checklistItems']['map'](_0x310edf=>[_0x310edf['id'],_0x310edf])),_0x3a4d35=await Promise['all'](_0x10707b['map'](async _0x1910ba=>{const _0x407491=_0x38e648,_0x4afdb4=_0x186ecf[_0x407491(0x1f8)](_0x1910ba['id']),_0xc30d1b=_0x4afdb4?.[_0x407491(0x208)]??null;let _0x2cf825=[];if(_0x1910ba['browserSessionId'])try{const {steps:_0x2ebaf8}=await getBrowserSessionSteps(_0x1910ba[_0x407491(0x150)]);_0x1cf630[_0x407491(0x17b)](_0x2ebaf8[_0x407491(0x1ff)],0x0)&&(_0x2cf825=_0x2ebaf8[_0x407491(0x1b6)](_0x26eee9=>{const _0x170ed9=_0x407491,_0x1b774f=_0x26eee9[_0x170ed9(0x1d9)][_0x170ed9(0x1b4)](_0xab53c9=>_0xab53c9[_0x170ed9(0x1dd)]===_0x170ed9(0x1d4)&&_0xab53c9['timing']==='after')??_0x26eee9['assets']['find'](_0x349d0c=>_0x349d0c['assetType']==='screenshot');let _0x376e88=null,_0x4289b9=null;if(_0x1b774f){const _0x1f98ad=_0x1b774f['storage']['location']['split']('/')['pop']();_0x376e88=_0x5b350f+'/api/v1/mcp/browser-sessions/'+_0x1910ba[_0x170ed9(0x150)]+_0x170ed9(0x1cb)+_0x1f98ad,_0x1f98ad&&(_0x4289b9=_0x1f98ad['replace'](/\.\w+$/,'')[_0x170ed9(0x155)](/^(key_)?\d+_/,'')[_0x170ed9(0x155)](/[-_]/g,'\x20'));}return{'description':_0x4289b9||_0x26eee9[_0x170ed9(0x1eb)]||_0x26eee9[_0x170ed9(0x15c)]||_0x170ed9(0x143)+_0x26eee9['position'],'screenshot':_0x376e88,'is_key_step':_0x26eee9[_0x170ed9(0x1dc)]};}));}catch{}return _0x2cf825['length']===0x0&&_0xc30d1b?.['screenshotUrls']&&(_0x2cf825=_0xc30d1b[_0x407491(0x1ce)][_0x407491(0x1b6)]((_0x33e118,_0x43bd99)=>({'description':_0x407491(0x1c5)+(_0x43bd99+0x1),'screenshot':_0x33e118,'is_key_step':![]}))),{'description':_0x1910ba['description'],'result':_0x1cf630[_0x407491(0x212)](getScenarioResult,_0x1910ba),'rationale':_0x1cf630[_0x407491(0x1d1)](getScenarioRationale,_0x1910ba,_0xc30d1b?.['agentResponse']),'steps':_0x2cf825};})),_0x264548={'url':_0x49624d[_0x38e648(0x21e)],'scenarios':_0x3a4d35};process['stdout'][_0x38e648(0x1b0)](_0x1cf630['SlHzb'](JSON[_0x38e648(0x1ee)](_0x264548,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x20c873){const _0x50c215=_0x22ecc5,_0x56a4ff={'qrSkX':_0x50c215(0x1d7),'OgBfO':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','QFfAv':'\x0a✅\x20Session\x20is\x20already\x20completed.','GYNUX':function(_0xdcde9c,_0x2d2f86){return _0xdcde9c!==_0x2d2f86;},'eVzWE':'\x0aConcluding\x20session...','SsVHz':function(_0x55ed17,_0x1ea000,_0x788e71){return _0x55ed17(_0x1ea000,_0x788e71);}},_0x3f41f4=_0x20c873||await getActiveFeatureId();if(!_0x3f41f4)throw new Error(_0x56a4ff[_0x50c215(0x1f2)]);const _0x2ff03c=await getFeature(_0x3f41f4);if(!_0x2ff03c[_0x50c215(0x158)])throw new Error(_0x56a4ff['OgBfO']);const {sessions:_0x451ab8}=await listFeatureSessions(_0x3f41f4),_0x130547=_0x451ab8['find'](_0x2d36a4=>_0x2d36a4['id']===_0x2ff03c[_0x50c215(0x158)]);if(!_0x130547)throw new Error('Current\x20session\x20not\x20found.');if(_0x130547['status']==='completed'){console[_0x50c215(0x14e)](_0x56a4ff[_0x50c215(0x1e6)]);return;}if(_0x56a4ff['GYNUX'](_0x130547[_0x50c215(0x19d)],'in_progress'))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x130547['status']);console['log'](_0x56a4ff[_0x50c215(0x15a)]),await _0x56a4ff['SsVHz'](concludeSession,_0x3f41f4,_0x2ff03c['currentSessionId']),console[_0x50c215(0x14e)]('\x0a✅\x20Session\x20'+_0x130547[_0x50c215(0x145)]+'\x20concluded.'),console['log'](_0x50c215(0x166));}export async function featureSessions(_0x242295){const _0x25a20b=_0x22ecc5,_0x1f9a64={'SzxSH':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','AkOOr':function(_0x59d5f2,_0x26a018){return _0x59d5f2(_0x26a018);},'oAXBT':function(_0x31e4fa,_0xe9001b){return _0x31e4fa===_0xe9001b;},'bZYpy':_0x25a20b(0x201),'kxojV':_0x25a20b(0x160)},_0x3b0b42=_0x242295||await getActiveFeatureId();if(!_0x3b0b42)throw new Error(_0x1f9a64[_0x25a20b(0x16f)]);const _0xa1bcf7=await _0x1f9a64[_0x25a20b(0x16c)](getFeature,_0x3b0b42);console[_0x25a20b(0x14e)](_0x25a20b(0x1b8)+_0xa1bcf7[_0x25a20b(0x21f)]+'\x0a');const {sessions:_0x5f4337}=await _0x1f9a64[_0x25a20b(0x16c)](listFeatureSessions,_0x3b0b42);if(_0x1f9a64[_0x25a20b(0x1d2)](_0x5f4337['length'],0x0)){console[_0x25a20b(0x14e)](_0x1f9a64[_0x25a20b(0x215)]);return;}for(const _0x3388a9 of _0x5f4337){const _0x1adce8=_0x3388a9[_0x25a20b(0x19d)]===_0x25a20b(0x1c4)?'✅':_0x3388a9[_0x25a20b(0x19d)]===_0x1f9a64['kxojV']?'🔄':'▶️';console['log'](_0x1adce8+_0x25a20b(0x1be)+_0x3388a9[_0x25a20b(0x145)]+'\x20('+_0x3388a9['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x3388a9['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3388a9[_0x25a20b(0x15e)])['toLocaleString']()),_0x3388a9['completedAt']&&console[_0x25a20b(0x14e)]('\x20\x20\x20Completed:\x20'+new Date(_0x3388a9[_0x25a20b(0x1ed)])['toLocaleString']()),console[_0x25a20b(0x14e)]('');}}export async function featureAddScenario(_0x172931,_0x5555ae){const _0x39d99a=_0x22ecc5,_0x3bde87={'ZQTmr':function(_0x35f8e3){return _0x35f8e3();},'KpXeR':_0x39d99a(0x1d7),'VZrMJ':function(_0x27ad44,_0x5ae007){return _0x27ad44(_0x5ae007);},'djHrU':function(_0x5e6a06,_0x22f9dc,_0xdd5916){return _0x5e6a06(_0x22f9dc,_0xdd5916);}},_0x290f15=_0x5555ae||await _0x3bde87['ZQTmr'](getActiveFeatureId);if(!_0x290f15)throw new Error(_0x3bde87['KpXeR']);const _0x1b0638=await _0x3bde87[_0x39d99a(0x1e5)](getFeature,_0x290f15);if(_0x1b0638['latestReview']&&!_0x1b0638['latestReview'][_0x39d99a(0x1a1)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x1b0638[_0x39d99a(0x21e)]);await _0x3bde87[_0x39d99a(0x170)](createChecklistItem,_0x290f15,_0x172931);const _0x347131=await getFeature(_0x290f15);console['log'](_0x39d99a(0x1b2)),displayFeature(_0x347131,_0x347131[_0x39d99a(0x1b7)]);}export async function featureEditScenario(_0x1bbe84,_0x5ef8f6){const _0x4e9623=_0x22ecc5,_0x3f2ad2={'Tiugx':_0x4e9623(0x1e3),'vHoLJ':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','IUvWb':function(_0xdb1804,_0x678292){return _0xdb1804(_0x678292);},'CzCYE':function(_0x512afa,_0x49764f){return _0x512afa===_0x49764f;},'ygSJo':_0x4e9623(0x13e),'IGmdF':function(_0x488cc9,_0x2e45ae){return _0x488cc9+_0x2e45ae;},'kbxkD':function(_0x28f73f,_0x527901){return _0x28f73f-_0x527901;},'yCHNR':function(_0x2b23af,_0x3bb09f){return _0x2b23af<_0x3bb09f;},'Xdqpl':'\x0aAvailable\x20scenarios:','ecFdl':function(_0x37480b,_0x2c7ce5){return _0x37480b<_0x2c7ce5;}},_0x41f43e=_0x5ef8f6['id']||await getActiveFeatureId();!_0x41f43e&&(console['error'](_0x3f2ad2['Tiugx']),console['error'](_0x3f2ad2['vHoLJ']),process[_0x4e9623(0x1c2)](0x1));const _0x2f0907=await _0x3f2ad2[_0x4e9623(0x1e8)](getFeature,_0x41f43e);_0x2f0907[_0x4e9623(0x18c)]&&!_0x2f0907[_0x4e9623(0x18c)][_0x4e9623(0x1a1)]&&(console['error']('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x4e9623(0x15f)](_0x4e9623(0x172)),console[_0x4e9623(0x15f)]('\x20\x20'+_0x2f0907['dashboardUrl']),process['exit'](0x1));const _0x5216db=_0x2f0907[_0x4e9623(0x1b7)]||[];_0x3f2ad2['CzCYE'](_0x5216db['length'],0x0)&&(console[_0x4e9623(0x15f)](_0x3f2ad2['ygSJo']),process[_0x4e9623(0x1c2)](0x1));if(_0x5ef8f6['scenario']===undefined){console[_0x4e9623(0x15f)](_0x4e9623(0x148)),console['log']('\x0aAvailable\x20scenarios:');for(let _0x49782d=0x0;_0x49782d<_0x5216db['length'];_0x49782d++){console[_0x4e9623(0x14e)]('\x20\x20'+_0x3f2ad2[_0x4e9623(0x188)](_0x49782d,0x1)+'.\x20'+_0x5216db[_0x49782d][_0x4e9623(0x1eb)]);}process['exit'](0x1);}const _0x549b28=_0x3f2ad2['kbxkD'](_0x5ef8f6['scenario'],0x1);if(_0x3f2ad2[_0x4e9623(0x147)](_0x549b28,0x0)||_0x549b28>=_0x5216db['length']){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x5ef8f6[_0x4e9623(0x1cf)]+_0x4e9623(0x13d)+_0x5216db[_0x4e9623(0x1ff)]+'\x20scenarios.'),console[_0x4e9623(0x14e)](_0x3f2ad2[_0x4e9623(0x203)]);for(let _0x50b17f=0x0;_0x3f2ad2[_0x4e9623(0x199)](_0x50b17f,_0x5216db[_0x4e9623(0x1ff)]);_0x50b17f++){console[_0x4e9623(0x14e)]('\x20\x20'+(_0x50b17f+0x1)+'.\x20'+_0x5216db[_0x50b17f]['description']);}process['exit'](0x1);}const _0x1bc8a1=_0x5216db[_0x549b28];await updateChecklistItem(_0x41f43e,_0x1bc8a1['id'],{'description':_0x1bbe84});const _0x4528cc=await _0x3f2ad2['IUvWb'](getFeature,_0x41f43e);console[_0x4e9623(0x14e)](_0x4e9623(0x1e2)),displayFeature(_0x4528cc,_0x4528cc['checklistItems']);}async function downloadFeedbackImage(_0x55a81f,_0x5896c9){const _0x3abfbc=_0x22ecc5,_0xe8ba62={'ptZdJ':function(_0x5d2818){return _0x5d2818();}};try{const _0x44b4d6=join(_0xe8ba62['ptZdJ'](getRangerDir),'feedback-images');await mkdir(_0x44b4d6,{'recursive':!![]});const _0x234534=join(_0x44b4d6,'comment_'+_0x5896c9+_0x3abfbc(0x204)),_0x15af49=await fetch(_0x55a81f);if(!_0x15af49['ok'])return null;const _0xcaff36=Buffer[_0x3abfbc(0x144)](await _0x15af49['arrayBuffer']());return await writeFile(_0x234534,_0xcaff36),_0x234534;}catch{return null;}}export async function featureGetReview(_0x367816){const _0x55aae0=_0x22ecc5,_0x3b1039={'XYvcO':function(_0x300990,_0x2af6b2){return _0x300990===_0x2af6b2;},'WzUfr':_0x55aae0(0x146),'OrpNe':function(_0x5ed7f3,_0x3c1b96){return _0x5ed7f3<_0x3c1b96;},'EbvEm':function(_0x2ff7b3,_0x37d482){return _0x2ff7b3+_0x37d482;},'aPAbF':'numeric','zGElq':'Unknown','sdSJs':'element','YUlcL':function(_0x2f38e9,_0x29eba8){return _0x2f38e9>=_0x29eba8;}},_0x2d1395=_0x367816||await getActiveFeatureId();if(!_0x2d1395)throw new Error(_0x55aae0(0x1d7));const _0xdc2743=await getFeature(_0x2d1395),{items:_0x1b3126}=await getActionItems(_0x2d1395);console['log'](_0x55aae0(0x177)+_0xdc2743['name']+'\x20('+_0xdc2743['id']+')\x0a');if(_0x3b1039['XYvcO'](_0x1b3126[_0x55aae0(0x1ff)],0x0)){console[_0x55aae0(0x14e)](_0x3b1039[_0x55aae0(0x206)]);return;}for(let _0x3fdb38=0x0;_0x3b1039[_0x55aae0(0x1f1)](_0x3fdb38,_0x1b3126[_0x55aae0(0x1ff)]);_0x3fdb38++){const _0x2ad2ae=_0x1b3126[_0x3fdb38],_0x445263=_0x2ad2ae['version']>0x1?'\x20(v'+_0x2ad2ae[_0x55aae0(0x1e9)]+')':'',_0x176eea=await getItemFeedback(_0x2d1395,_0x2ad2ae['id']);if(_0x176eea['unaddressedComments']['length']>0x0){console[_0x55aae0(0x14e)]('Scenario\x20'+_0x3b1039['EbvEm'](_0x3fdb38,0x1)+':\x20\x22'+_0x2ad2ae[_0x55aae0(0x1eb)]+'\x22'+_0x445263+'\x20—\x20'+_0x176eea['unaddressedComments'][_0x55aae0(0x1ff)]+'\x20unaddressed\x20comment(s)');for(const _0x151a1c of _0x176eea[_0x55aae0(0x14b)]){const _0x5410c1=new Date(_0x151a1c['createdAt'])[_0x55aae0(0x1bb)]('en-US',{'month':_0x55aae0(0x154),'day':_0x3b1039[_0x55aae0(0x213)]}),_0x2da83a=_0x151a1c[_0x55aae0(0x1d3)]||_0x151a1c['authorEmail']||_0x3b1039['zGElq'];console[_0x55aae0(0x14e)](_0x55aae0(0x1bf)+_0x2da83a+'\x20('+_0x5410c1+'):\x20\x22'+_0x151a1c['content']+'\x22');if(_0x151a1c['assetUrl']){const _0x106d7e=await downloadFeedbackImage(_0x151a1c['assetUrl'],_0x151a1c['id']);_0x106d7e&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x106d7e);}if(_0x151a1c['domRef']){const _0x3ada38=_0x151a1c['domRef'][_0x55aae0(0x14a)][_0x55aae0(0x17c)](_0x55aae0(0x1e0))[_0x55aae0(0x161)]()?.[_0x55aae0(0x17c)](':')[0x0]||_0x3b1039[_0x55aae0(0x209)],_0xcd652a=_0x151a1c['domRef'][_0x55aae0(0x1a6)]?'\x20\x22'+_0x151a1c['domRef']['textContent'][_0x55aae0(0x1b5)](0x0,0x3c)+'\x22':'';console[_0x55aae0(0x14e)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x3ada38+'>'+_0xcd652a),console[_0x55aae0(0x14e)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x151a1c[_0x55aae0(0x190)][_0x55aae0(0x14a)]);}else{if(_0x151a1c['spatial']){const _0x28028f=_0x151a1c['spatial']['coordinates'];_0x3b1039['XYvcO'](_0x151a1c[_0x55aae0(0x167)][_0x55aae0(0x17d)],'point')&&_0x3b1039['YUlcL'](_0x28028f['length'],0x2)?console[_0x55aae0(0x14e)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x28028f[0x0][_0x55aae0(0x14f)](0x2)+',\x20'+_0x28028f[0x1][_0x55aae0(0x14f)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x151a1c['spatial'][_0x55aae0(0x17d)]+'\x20at\x20['+_0x28028f[_0x55aae0(0x1b6)](_0x3b7fdf=>_0x3b7fdf[_0x55aae0(0x14f)](0x2))[_0x55aae0(0x157)](',\x20')+']');}}}if(_0x176eea['canonicalFlow']){console[_0x55aae0(0x14e)]('\x20\x20Expected\x20flow:');for(const _0x381d26 of _0x176eea['canonicalFlow'][_0x55aae0(0x17c)]('\x0a')){console['log'](_0x55aae0(0x174)+_0x381d26);}}}else console['log'](_0x55aae0(0x21c)+(_0x3fdb38+0x1)+':\x20\x22'+_0x2ad2ae['description']+'\x22'+_0x445263+'\x20—\x20no\x20comments'),console['log'](_0x55aae0(0x18a));console[_0x55aae0(0x14e)]('');}}function _0x53c8(){const _0x2aa6f8=['VtSJx','\x20\x20\x20▶️\x20Started\x20session\x20','verifiedItems','git\x20rev-parse\x20--abbrev-ref\x20HEAD','eebEI','json','\x0aAvailable\x20scenarios:','14566SdzeLf','mbaQy','github.com/','IGmdF','AXPCh','\x20\x20✅\x20No\x20feedback\x20to\x20address','GUjlF','latestReview','xzyGj','\x0aNo\x20feature\x20reviews\x20found.','21jyxQNm','domRef','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','push','scenarios','trimEnd','\x20\x20\x20Completed:\x20','wkRyH','XvvtL','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','ecFdl','output','Next\x20page:\x20ranger\x20list\x20--offset\x20','fqvTZ','status','incompleteItems','\x0aCreating\x20feature\x20review...','totalCount','submittedAt','kQXIX','CLAUDE_SESSION_ID','20nLKePj','cYWSa','textContent','kpAUA','ready','\x0a✅\x20Report\x20generated:\x20','\x20of\x20','\x0a\x20\x20\x20Scenarios:','blockedReason','closed','utf-8','pipe','write','VDvol','\x0a✅\x20Scenario\x20added','filter','find','slice','map','checklistItems','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','incomplete','\x20\x20\x20Created:\x20','toLocaleDateString','jlPre','KuYBv','\x20Session\x20','\x20\x20💬\x20','limit','850077yjMuzo','exit','incompleteReason','completed','Screenshot\x20','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','wkTkV','KSIkQ','bRVKJ','4zJdvht','/artifacts/','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','currentBranch','screenshotUrls','scenario','pendingItems','baeFR','oAXBT','authorName','screenshot','\x20--include-deleted','bgRPL','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','warn','assets','isTTY','lJzXg','isKeyStep','assetType','1089616pLbGBR','\x20\x20\x20\x20\x20Progress:\x20','\x20>\x20','Not\x20in\x20a\x20git\x20repository.','\x0a✅\x20Scenario\x20updated','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','VZrMJ','QFfAv','snALa','IUvWb','version','stats','description','excludeScenarios','completedAt','stringify','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','OrpNe','qrSkX','GNsUl','yFmod','selected','\x20\x20\x20\x20\x20\x20Incomplete:\x20','reports','get','isInteger','989768qxvqJY','22NCXOSA','trim','JXTsg','toLocaleString','length','verification_in_progress','No\x20sessions\x20found.','ZMUrl','Xdqpl','.png','DDeTZ','WzUfr','\x20scenario(s).','linkedSession','sdSJs','CZJsF','gitRepoUrl','CzUgA','\x20\x20\x20\x20\x20ID:\x20','RRZmK','OiPVI','cGOdC','gitBranch','gLIgB','aPAbF','\x20in\x20progress','bZYpy','BnRWE','any','\x20\x20\x20Branch:\x20','\x1b[0m','pcWvE','sZoPO','Scenario\x20','verified','dashboardUrl','name','NvpCF','dHiEr','sessionId','\x20\x20\x20\x20\x20\x20Cancelled:\x20','terminalReason','.\x20Feature\x20review\x20has\x20','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','LQIKN','SsIkY','\x20\x20\x20Repository:\x20','canceledReason','Step\x20','from','iteration','No\x20scenarios\x20found.','yCHNR','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','170718DEZxDm','selector','unaddressedComments','vkyyD','\x0a⚠️\x20\x20','log','toFixed','browserSessionId','\x1b[1m','79RRRvOX','Ijrbo','short','replace','env','join','currentSessionId','2978772VzIFGZ','eVzWE','repeat','stepName','45vRtIKw','createdAt','error','in_progress','pop','qzlbL','\x20[has\x20reviewer\x20feedback]','\x0a✅\x20Resumed\x20feature\x20review:\x20','Anazq','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','spatial','352623YxrERK','style','\x20\x20\x20ID:\x20','poQSy','AkOOr','items','\x20\x20\x20Description:\x20','SzxSH','djHrU','bflMT','Please\x20finish\x20your\x20review\x20first:','list','\x20\x20\x20\x20','YCXXw','cNbiu','\x0a📋\x20Feedback\x20for:\x20','yPKdM','\x20\x20\x20Progress:\x20','evIxt','OOWke','split','type'];_0x53c8=function(){return _0x2aa6f8;};return _0x53c8();}export async function featureDelete(_0x5ebee3){const _0x8caf44=_0x22ecc5,_0x115c4b={'dHiEr':function(_0x7efd32){return _0x7efd32();},'bqGAr':_0x8caf44(0x1e4)},_0x5db89e=_0x5ebee3||await _0x115c4b[_0x8caf44(0x221)](getActiveFeatureId);if(!_0x5db89e)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 _0x14f99e=await getFeature(_0x5db89e);await softDeleteFeature(_0x5db89e),console['log'](_0x8caf44(0x198)+_0x14f99e['name']+'\x20('+_0x5db89e+')'),console['log'](_0x115c4b['bqGAr']+_0x5db89e);}export async function featureRestore(_0x29ee89){const _0x547efc=_0x22ecc5,_0x505d4b={'SsIkY':function(_0x4f6155,_0x17c057){return _0x4f6155(_0x17c057);}};await _0x505d4b[_0x547efc(0x140)](restoreFeature,_0x29ee89);const _0x423266=await _0x505d4b['SsIkY'](getFeature,_0x29ee89);console[_0x547efc(0x14e)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x423266['name']+'\x20('+_0x29ee89+')'),displayFeature(_0x423266,_0x423266['checklistItems']);}
|
|
1
|
+
const _0x5d6635=_0x20f5;(function(_0x4718b4,_0x19d5e6){const _0x1f90a0=_0x20f5,_0x4b73ed=_0x4718b4();while(!![]){try{const _0x1d08e4=-parseInt(_0x1f90a0(0x1b7))/0x1*(-parseInt(_0x1f90a0(0x143))/0x2)+parseInt(_0x1f90a0(0x15b))/0x3*(-parseInt(_0x1f90a0(0xfb))/0x4)+parseInt(_0x1f90a0(0x1a9))/0x5+-parseInt(_0x1f90a0(0x112))/0x6+parseInt(_0x1f90a0(0xe7))/0x7*(parseInt(_0x1f90a0(0xfe))/0x8)+-parseInt(_0x1f90a0(0x129))/0x9+parseInt(_0x1f90a0(0x1c2))/0xa*(parseInt(_0x1f90a0(0xee))/0xb);if(_0x1d08e4===_0x19d5e6)break;else _0x4b73ed['push'](_0x4b73ed['shift']());}catch(_0x43878b){_0x4b73ed['push'](_0x4b73ed['shift']());}}}(_0x1c7c,0xf1b83));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x42c5fc 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=_0x5d6635(0x179),bold=_0xb7b9b=>_0x5d6635(0x13e)+_0xb7b9b+_0x5d6635(0xff);function _0x20f5(_0x51af9e,_0x40903e){_0x51af9e=_0x51af9e-0xdd;const _0x1c7c4f=_0x1c7c();let _0x20f5a8=_0x1c7c4f[_0x51af9e];return _0x20f5a8;}function getGitRepoUrl(){const _0x19ac00=_0x5d6635,_0x34cdd8={'csqJh':'pipe','EYtUA':'github.com/'};try{const _0x3b1998=execSync('git\x20remote\x20get-url\x20origin',{'encoding':'utf-8','stdio':[_0x34cdd8[_0x19ac00(0x127)],'pipe',_0x19ac00(0x12c)]})[_0x19ac00(0x11c)]();return _0x3b1998[_0x19ac00(0xfd)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x34cdd8[_0x19ac00(0x189)])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x51a723=_0x5d6635,_0x580b22={'ctHUy':function(_0x4a1aa3,_0x1841a5,_0x22d484){return _0x4a1aa3(_0x1841a5,_0x22d484);},'eVRKs':'pipe'};try{return _0x580b22[_0x51a723(0x140)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x51a723(0x13d),'stdio':[_0x580b22['eVRKs'],_0x580b22['eVRKs'],'pipe']})[_0x51a723(0x11c)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x54cee6=_0x5d6635,_0x428206={'WSrbz':function(_0x3456f1,_0x41bfd8,_0x1fca3f){return _0x3456f1(_0x41bfd8,_0x1fca3f);}},_0x212ee4=_0x428206[_0x54cee6(0x130)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x212ee4))return null;try{const _0x5ef5c0=await readFile(_0x212ee4,_0x54cee6(0x13d));return _0x5ef5c0['trim']()||null;}catch{return null;}}function _0x1c7c(){const _0x9f729d=['\x20unaddressed\x20comment(s)','kcXBc','beIXd','exit','foBJk','52dYBtpV','parentItemId','replace','8734536pMnDeS','\x1b[0m','HbDGG','isTTY','name','.png','\x20at\x20[','ldrLu','any','authorName','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','...','uLEnb','OuRya','scenarios','ShWKV','scenario','toFixed','\x0a\x20\x20\x20Scenarios:','tduKl','220806qMJglK','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','spatial','OUBoV','Not\x20in\x20a\x20git\x20repository.','has','content','):\x20\x22','split','\x20—\x20','trim','IpxES','incomplete','OYIVA','tqEdU','CLAUDE_SESSION_ID','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','timing','\x20of\x20','approved','filter','csqJh','\x20--include-deleted','1908567gPRMIm','verificationInProgressItems','closed','pipe','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','blockedReason','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','WSrbz','\x0aConcluding\x20session...','flcpb','\x0a✅\x20Session\x20','fkotI','\x20[has\x20reviewer\x20feedback]','canonicalFlow','Current\x20session\x20not\x20found.','arrayBuffer','completed','short','trimEnd','LGIbU','utf-8','\x1b[1m','\x20\x20\x20\x20\x20📋\x20Selector:\x20','ctHUy','push','bTfXr','58kLYgTI','ARNhD','\x20\x20\x20\x20\x20\x20Approved','description','all','completedAt','toLocaleString','GgVyr','stdout','env','WHCws','includeDeleted','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','KHsQX','cluRb','stats','linkedSession','coordinates','\x20(v','storage','gljRV','\x20scenario(s).','\x20\x20\x20Updated\x20branch\x20to:\x20','No\x20sessions\x20found.','397983czcALP','/api/v1/mcp/browser-sessions/','uOfsQ','unaddressedComments','\x0a✅\x20Restored\x20feature\x20review:\x20','json','items','lLJFp','aIcGR','\x20\x20\x20Description:\x20','point','Unknown','CPYjl','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','dashboardUrl','RANGER_TEST_USERNAME','sessionId','adVjG','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','bOUuS','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','after','Screenshot\x20','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','FNqsK','.md','xHZpb','FKrev','sBjqj','No\x20active\x20session\x20for\x20this\x20feature\x20review.','active-feature.txt','Jozom','iteration','bwild','\x20Session\x20','gitBranch','\x20\x20\x20\x20\x20\x20Incomplete:\x20','error','verifiedItems','\x20\x20\x20Branch:\x20','CsAsD','wgOcu','uLXRk','\x0a✅\x20Report\x20generated:\x20','Step\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','EYtUA','offset','prompt','BHANJ','LlXSo','.\x20Feature\x20review\x20has\x20','assetUrl','SjGfD','SemOO','log','\x20\x20\x20Progress:\x20','createdAt','\x0a✅\x20Session\x20is\x20already\x20completed.','\x20\x20\x20\x20\x20ID:\x20','MyrTY','uXRoZ','No\x20scenarios\x20found.','notes','NQWHZ','currentBranch','currentSessionId','bogHk','\x0aNo\x20feature\x20reviews\x20found.','Cannot\x20conclude\x20session\x20with\x20status:\x20','xFwJS','incompleteReason','mcqNS','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.',':\x20\x22','GWapF','element','WKgaX','1420840nMZjyh','rDyoj','in_progress','StNhW','\x20\x20\x20Created:\x20','from','style','XEESc','find','BGrVK','yZGyR','XqLye','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x20\x20\x20Status:\x20','38293gixtej','\x20\x20\x20\x20\x20Progress:\x20','\x20concluded.','\x20verified','domRef','version','/artifacts/','verification_in_progress','JLlKM','Tmvno','\x0aAvailable\x20scenarios:','10DsGovh','\x20blocked','\x20scenarios.','sMCFI','isInteger','aDiHy','output','\x20in\x20progress','blocked','fdOxz','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','round','verified','\x0a✅\x20Feature\x20review\x20created:\x20','bWRfx','screenshot','\x20\x20✅\x20No\x20feedback\x20to\x20address','length','7ktNOtf','DeKXd','iWjZr','status','lHNJA','checklistItems','UyIIQ','5247638UsXFqh','blockedItems','\x0aGenerating\x20report...','uXhAr','Showing\x20','map','\x0a❌\x20Invalid\x20scenario\x20index:\x20','stdin'];_0x1c7c=function(){return _0x9f729d;};return _0x1c7c();}async function setActiveFeatureId(_0x4493db){const _0x469c26=_0x5d6635,_0x18d302={'aPPaN':function(_0x23ad8d,_0x635b5a){return _0x23ad8d(_0x635b5a);},'NpvAW':function(_0x228ca7,_0xb724cf,_0x1e998e,_0x2ff5fb){return _0x228ca7(_0xb724cf,_0x1e998e,_0x2ff5fb);}},_0x13781b=getRangerDir(),_0x3b12e0=join(_0x13781b,ACTIVE_FEATURE_FILE);!_0x18d302['aPPaN'](existsSync,_0x13781b)&&await mkdir(_0x13781b,{'recursive':!![]}),await _0x18d302['NpvAW'](writeFile,_0x3b12e0,_0x4493db,_0x469c26(0x13d));}function getProgressDisplay(_0x42625f){const _0x1fc22d=_0x5d6635,_0x367e01={'xJuCa':function(_0x3b3271,_0x17d307){return _0x3b3271+_0x17d307;},'OuRya':function(_0x54858f,_0x4b53b7){return _0x54858f===_0x4b53b7;},'fSRlp':function(_0xe75e15,_0x53f6b1){return _0xe75e15*_0x53f6b1;},'uxPJj':function(_0x11e3db,_0x597607){return _0x11e3db/_0x597607;},'LGIbU':function(_0x45cf72,_0x43742c){return _0x45cf72-_0x43742c;},'phOVY':function(_0x2da949,_0x12fa5c){return _0x2da949>_0x12fa5c;},'uLEnb':function(_0x189e44,_0x445eeb){return _0x189e44>_0x445eeb;}},_0x5e4943=_0x42625f[_0x1fc22d(0x181)]||0x0,_0x343a60=_0x42625f[_0x1fc22d(0x12a)]||0x0,_0x19152a=_0x42625f[_0x1fc22d(0xef)]||0x0,_0x5ccc4d=_0x42625f['incompleteItems']||0x0,_0x5db9b8=_0x42625f['pendingItems']||0x0,_0x88f812=_0x367e01['xJuCa'](_0x367e01['xJuCa'](_0x5e4943,_0x343a60)+_0x19152a,_0x5ccc4d)+_0x5db9b8;if(_0x367e01[_0x1fc22d(0x10b)](_0x88f812,0x0))return'-';const _0x40008=0xa,_0x148f25=Math[_0x1fc22d(0xe0)](_0x367e01['fSRlp'](_0x367e01['uxPJj'](_0x5e4943,_0x88f812),_0x40008)),_0x3cc518='█'['repeat'](_0x148f25)+'░'['repeat'](_0x367e01[_0x1fc22d(0x13c)](_0x40008,_0x148f25)),_0x58a4fa=[];if(_0x19152a>0x0)_0x58a4fa['push'](_0x19152a+_0x1fc22d(0x1c3));if(_0x367e01['phOVY'](_0x5ccc4d,0x0))_0x58a4fa[_0x1fc22d(0x141)](_0x5ccc4d+'\x20incomplete');if(_0x343a60>0x0)_0x58a4fa[_0x1fc22d(0x141)](_0x343a60+_0x1fc22d(0x1c9));const _0x359f1b=_0x367e01[_0x1fc22d(0x10a)](_0x58a4fa[_0x1fc22d(0xe6)],0x0)?'\x20('+_0x58a4fa['join'](',\x20')+')':'';return _0x3cc518+'\x20'+_0x5e4943+'/'+_0x88f812+_0x1fc22d(0x1ba)+_0x359f1b;}function getCurrentSessionItems(_0x5b19a2,_0x284109){const _0x3b592a=_0x5d6635;if(!_0x5b19a2['currentSessionId'])return _0x284109['filter'](_0x54fa20=>!_0x54fa20[_0x3b592a(0x16b)]);return _0x284109['filter'](_0x101dc9=>_0x101dc9[_0x3b592a(0x16b)]===_0x5b19a2['currentSessionId']||!_0x101dc9[_0x3b592a(0x16b)]);}function displayFeature(_0x313a9b,_0x17948){const _0x49bc6a=_0x5d6635,_0x5bb0ff={'zokTY':function(_0x2f3795,_0x2eed66){return _0x2f3795>_0x2eed66;},'MnIMW':_0x49bc6a(0x110),'wgOcu':_0x49bc6a(0x12b),'kcXBc':function(_0x30fe11,_0x45c248){return _0x30fe11===_0x45c248;},'FnPza':'incomplete','UyIIQ':_0x49bc6a(0xdd),'NLVvk':'verification_in_progress','Tmvno':function(_0x2c53b6,_0x257749){return _0x2c53b6>_0x257749;},'MyrTY':function(_0x26ba19,_0x45183b){return _0x26ba19!==_0x45183b;},'sBIjV':'verified','YVlUo':_0x49bc6a(0x135),'VberO':function(_0xfdb9a2,_0x188892){return _0xfdb9a2===_0x188892;},'ldrLu':_0x49bc6a(0x125)};console[_0x49bc6a(0x192)]('\x0a'+_0x313a9b['name']+'\x20('+_0x313a9b['dashboardUrl']+')');_0x313a9b[_0x49bc6a(0x152)]&&console['log'](_0x49bc6a(0x193)+getProgressDisplay(_0x313a9b['stats']));_0x313a9b['description']&&console['log'](_0x49bc6a(0x164)+_0x313a9b['description']);_0x313a9b['gitRepoUrl']&&console['log']('\x20\x20\x20Repository:\x20'+_0x313a9b['gitRepoUrl']);_0x313a9b['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x313a9b[_0x49bc6a(0x17e)]);console[_0x49bc6a(0x192)](_0x49bc6a(0x1ad)+new Date(_0x313a9b['createdAt'])[_0x49bc6a(0x149)]());_0x313a9b[_0x49bc6a(0x148)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x313a9b['completedAt'])[_0x49bc6a(0x149)]());if(_0x17948&&_0x5bb0ff['zokTY'](_0x17948[_0x49bc6a(0xe6)],0x0)){console['log'](_0x5bb0ff['MnIMW']);for(let _0x10d08c=0x0;_0x10d08c<_0x17948['length'];_0x10d08c++){const _0x1a4daa=_0x17948[_0x10d08c];let _0x4ca40f;if(_0x1a4daa['status']===_0x5bb0ff['wgOcu']&&_0x1a4daa['terminalReason']==='approved')_0x4ca40f='✅';else{if(_0x5bb0ff[_0x49bc6a(0xf7)](_0x1a4daa[_0x49bc6a(0xea)],_0x49bc6a(0xe1)))_0x4ca40f='🟢';else{if(_0x1a4daa['status']===_0x5bb0ff['FnPza'])_0x4ca40f='🟠';else{if(_0x1a4daa['status']===_0x5bb0ff[_0x49bc6a(0xed)])_0x4ca40f='🛑';else{if(_0x1a4daa[_0x49bc6a(0xea)]===_0x5bb0ff['wgOcu'])_0x4ca40f='⛔';else _0x5bb0ff[_0x49bc6a(0xf7)](_0x1a4daa[_0x49bc6a(0xea)],_0x5bb0ff['NLVvk'])?_0x4ca40f='⏳':_0x4ca40f='⬜';}}}}const _0x43284c=_0x1a4daa[_0x49bc6a(0x1bc)]>0x1?'\x20(v'+_0x1a4daa[_0x49bc6a(0x1bc)]+')':'',_0x198cf2=_0x5bb0ff[_0x49bc6a(0x1c0)](_0x1a4daa[_0x49bc6a(0x1bc)],0x1)&&_0x1a4daa[_0x49bc6a(0xfc)]&&_0x1a4daa['status']!=='closed'&&_0x5bb0ff[_0x49bc6a(0x197)](_0x1a4daa[_0x49bc6a(0xea)],_0x5bb0ff['sBIjV'])?_0x5bb0ff['YVlUo']:'';console[_0x49bc6a(0x192)]('\x20\x20\x20'+(_0x10d08c+0x1)+'.\x20'+_0x4ca40f+'\x20'+_0x1a4daa['description']+_0x43284c+_0x198cf2);_0x1a4daa[_0x49bc6a(0xea)]===_0x5bb0ff['UyIIQ']&&_0x1a4daa[_0x49bc6a(0x12e)]&&console[_0x49bc6a(0x192)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x1a4daa['blockedReason']);_0x1a4daa['status']===_0x49bc6a(0x11e)&&_0x1a4daa['incompleteReason']&&console[_0x49bc6a(0x192)](_0x49bc6a(0x17f)+_0x1a4daa[_0x49bc6a(0x1a2)]);if(_0x5bb0ff['VberO'](_0x1a4daa['status'],_0x5bb0ff[_0x49bc6a(0x184)])&&_0x5bb0ff['kcXBc'](_0x1a4daa['terminalReason'],_0x5bb0ff[_0x49bc6a(0x105)]))console['log'](_0x49bc6a(0x145));else _0x1a4daa['status']===_0x5bb0ff['wgOcu']&&_0x1a4daa['canceledReason']&&console[_0x49bc6a(0x192)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x1a4daa['canceledReason']);}}}export async function featureCreate(_0x52577f,_0xd7cc3d){const _0x4c2479=_0x5d6635,_0x3980d4={'flcpb':function(_0x328c1b){return _0x328c1b();},'beIXd':function(_0x50aced,_0x39b2f9){return _0x50aced===_0x39b2f9;},'RwOSg':'\x0aCreating\x20feature\x20review...','CPYjl':function(_0x5940dd,_0x31a606,_0x358763){return _0x5940dd(_0x31a606,_0x358763);}},{envNames:_0x1a0586}=await _0x3980d4[_0x4c2479(0x132)](getEnvNames);if(_0x3980d4[_0x4c2479(0xf8)](_0x1a0586['length'],0x0)&&!process[_0x4c2479(0x14c)][_0x4c2479(0x16a)]){let _0x20b1e9=0x0;try{_0x20b1e9=(await _0x3980d4[_0x4c2479(0x132)](listCloudProfiles))['length'];}catch{_0x20b1e9=0x1;}_0x20b1e9===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x22204b=>bold(_0x22204b)));}const _0x10b1d5=_0xd7cc3d['scenarios']?_0xd7cc3d[_0x4c2479(0x10c)][_0x4c2479(0xf3)](_0x26f4c5=>_0x26f4c5[_0x4c2479(0x11c)]()):[],_0x32ab2a=_0x3980d4['flcpb'](getGitRepoUrl),_0x1d7f2f=_0x3980d4['flcpb'](getGitBranch);console[_0x4c2479(0x192)](_0x3980d4['RwOSg']);const _0x15a410=await createFeature({'name':_0x52577f,'description':_0xd7cc3d['description'],'checklist':_0x10b1d5,'gitRepoUrl':_0x32ab2a,'gitBranch':_0x1d7f2f});await setActiveFeatureId(_0x15a410['id']),await tryStartCurrentSession(_0x15a410['id']);const _0x100b4d=process[_0x4c2479(0x14c)]['CLAUDE_SESSION_ID'];_0x100b4d&&_0x3980d4[_0x4c2479(0x167)](registerSession,_0x100b4d,_0x15a410['id']),console[_0x4c2479(0x192)](_0x4c2479(0xe2)+_0x15a410['id']),displayFeature(_0x15a410,_0x15a410[_0x4c2479(0xec)]),console[_0x4c2479(0x192)](_0x4c2479(0x113));}export async function featureList(_0x5b8f3f){const _0x429bb1=_0x5d6635,_0x3321ed={'yZGyR':function(_0x115059){return _0x115059();},'lHNJA':function(_0x3ffb11,_0x4b5ce8){return _0x3ffb11===_0x4b5ce8;},'xFwJS':_0x429bb1(0x19f),'SyuGt':function(_0x510b3b,_0x16ed4b){return _0x510b3b(_0x16ed4b);},'bWRfx':function(_0x52f7da,_0x41715d){return _0x52f7da+_0x41715d;},'GgVyr':function(_0x1536cf,_0x2d63d6){return _0x1536cf<_0x2d63d6;},'FamWo':function(_0x135704,_0x40d3bf){return _0x135704!==_0x40d3bf;},'HVNFC':'\x20--current-branch','gljRV':_0x429bb1(0x128)},_0x4f1f4a={'limit':_0x5b8f3f['limit']??0xa,'offset':_0x5b8f3f[_0x429bb1(0x18a)]??0x0,'includeDeleted':_0x5b8f3f[_0x429bb1(0x14e)]};_0x5b8f3f['currentBranch']&&(_0x4f1f4a['gitRepoUrl']=_0x3321ed[_0x429bb1(0x1b3)](getGitRepoUrl),_0x4f1f4a[_0x429bb1(0x17e)]=getGitBranch());const _0x85fbb=await listFeatures(_0x4f1f4a);if(_0x3321ed[_0x429bb1(0xeb)](_0x85fbb[_0x429bb1(0x161)][_0x429bb1(0xe6)],0x0)){console[_0x429bb1(0x192)](_0x3321ed[_0x429bb1(0x1a1)]);return;}const _0x2bc585=_0x85fbb['totalCount']>_0x85fbb['items'][_0x429bb1(0xe6)]?_0x429bb1(0xf2)+_0x85fbb[_0x429bb1(0x161)][_0x429bb1(0xe6)]+_0x429bb1(0x124)+_0x85fbb['totalCount']:_0x85fbb['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x429bb1(0x192)]('\x0a'+_0x2bc585+':\x0a');for(const _0x24b6ec of _0x85fbb[_0x429bb1(0x161)]){const _0x36d3d8='0|4|3|2|5|1'[_0x429bb1(0x11a)]('|');let _0x4b557d=0x0;while(!![]){switch(_0x36d3d8[_0x4b557d++]){case'0':console['log'](''+_0x24b6ec['name']);continue;case'1':console['log']('');continue;case'2':_0x24b6ec[_0x429bb1(0x17e)]&&console['log'](_0x429bb1(0x182)+_0x24b6ec['gitBranch']);continue;case'3':_0x24b6ec[_0x429bb1(0x152)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x3321ed['SyuGt'](getProgressDisplay,_0x24b6ec['stats']));continue;case'4':console[_0x429bb1(0x192)]('\x20\x20\x20ID:\x20'+_0x24b6ec['id']);continue;case'5':console[_0x429bb1(0x192)](_0x429bb1(0x1ad)+new Date(_0x24b6ec['createdAt'])['toLocaleDateString']());continue;}break;}}const _0x57810b=_0x4f1f4a['limit']??0xa,_0x1a30a9=_0x3321ed[_0x429bb1(0xe3)](_0x4f1f4a['offset']??0x0,_0x85fbb[_0x429bb1(0x161)][_0x429bb1(0xe6)]);if(_0x3321ed[_0x429bb1(0x14a)](_0x1a30a9,_0x85fbb['totalCount'])){const _0x4012b9=_0x3321ed['FamWo'](_0x57810b,0xa)?'\x20--limit\x20'+_0x57810b:'',_0x37e39a=_0x5b8f3f[_0x429bb1(0x19c)]?_0x3321ed['HVNFC']:'',_0x1bab87=_0x5b8f3f['includeDeleted']?_0x3321ed[_0x429bb1(0x157)]:'';console[_0x429bb1(0x192)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x1a30a9+_0x4012b9+_0x37e39a+_0x1bab87);}}export async function featureShow(_0x5db4b){const _0x33b662=_0x5d6635,_0x29d99f={'WHCws':function(_0x4e9369){return _0x4e9369();},'LSwxu':function(_0x2155ef,_0x31e0fb,_0xb77bce){return _0x2155ef(_0x31e0fb,_0xb77bce);}},_0x1b2efd=_0x5db4b||await _0x29d99f[_0x33b662(0x14d)](getActiveFeatureId);if(!_0x1b2efd)throw new Error(_0x33b662(0x16f));const _0x25dc2b=await getFeature(_0x1b2efd);_0x29d99f['LSwxu'](displayFeature,_0x25dc2b,_0x25dc2b['checklistItems']);}export async function featureResume(_0x1192f1){const _0x137ba7=_0x5d6635,_0x573fa2={'SemOO':function(_0x25e02b,_0x5247f3){return _0x25e02b(_0x5247f3);},'uXhAr':function(_0x5a2258){return _0x5a2258();},'lLJFp':function(_0x1b76a2,_0x39932a,_0x575566){return _0x1b76a2(_0x39932a,_0x575566);},'TeByX':function(_0x2c9ce9){return _0x2c9ce9();},'USaSy':function(_0x1e6651,_0x311770){return _0x1e6651&&_0x311770;},'lLvFd':function(_0x3f52f2,_0xa8ab8){return _0x3f52f2||_0xa8ab8;},'iWjZr':_0x137ba7(0x106),'AIQiO':function(_0x495735,_0x443ff9){return _0x495735(_0x443ff9);},'KWPLC':function(_0x3d6aaf,_0x1cea72){return _0x3d6aaf===_0x1cea72;},'sMCFI':_0x137ba7(0x188),'OzJdN':function(_0x4b3a89,_0x5f7bca){return _0x4b3a89(_0x5f7bca);},'tqEdU':function(_0x3fcc13,_0x21a9df){return _0x3fcc13(_0x21a9df);},'BHANJ':function(_0x4783f8,_0x3216c4){return _0x4783f8(_0x3216c4);},'oLbCl':function(_0x2609f6,_0x1fe408,_0xad5c4d){return _0x2609f6(_0x1fe408,_0xad5c4d);}};if(_0x1192f1){const _0x496010=await _0x573fa2[_0x137ba7(0x191)](getFeature,_0x1192f1);await setActiveFeatureId(_0x496010['id']);const _0x846e38=_0x573fa2[_0x137ba7(0xf1)](getGitBranch);_0x846e38&&_0x846e38!==_0x496010[_0x137ba7(0x17e)]&&(await _0x573fa2['lLJFp'](updateFeature,_0x496010['id'],{'gitBranch':_0x846e38}),console['log'](_0x137ba7(0x159)+_0x846e38));console[_0x137ba7(0x192)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x496010['name']+'\x20('+_0x496010['id']+')'),await _0x573fa2[_0x137ba7(0x191)](tryStartCurrentSession,_0x496010['id']);const _0x24cd36=process[_0x137ba7(0x14c)]['CLAUDE_SESSION_ID'];_0x24cd36&&_0x573fa2[_0x137ba7(0x162)](registerSession,_0x24cd36,_0x496010['id']);displayFeature(_0x496010,_0x496010[_0x137ba7(0xec)]),await _0x573fa2['SemOO'](printFeedbackNudge,_0x496010['id']);return;}const _0x10e7f7=_0x573fa2['TeByX'](getGitRepoUrl),_0x4ac0dd=getGitBranch();if(_0x573fa2['USaSy'](!_0x10e7f7,!_0x4ac0dd))throw new Error(_0x137ba7(0x116));console['log'](_0x137ba7(0x16d)+_0x573fa2['lLvFd'](_0x10e7f7,_0x573fa2[_0x137ba7(0xe9)])+'\x20/\x20'+(_0x4ac0dd||_0x573fa2[_0x137ba7(0xe9)])+_0x137ba7(0x109));const _0x1c12db=await _0x573fa2['AIQiO'](listFeatures,{'gitRepoUrl':_0x10e7f7,'gitBranch':_0x4ac0dd}),_0xc8da5b=_0x1c12db['items'][_0x137ba7(0x126)](_0x359f45=>_0x359f45['status']?_0x359f45[_0x137ba7(0xea)]!=='verified':!_0x359f45[_0x137ba7(0x148)]);if(_0x573fa2['KWPLC'](_0xc8da5b['length'],0x0)){console['log'](_0x137ba7(0x1a4)),console[_0x137ba7(0x192)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0xb51bc6;if(_0xc8da5b[_0x137ba7(0xe6)]===0x1)_0xb51bc6=_0xc8da5b[0x0];else{const _0x16d90e=process[_0x137ba7(0xf5)][_0x137ba7(0x101)]&&process['stdout']['isTTY'];if(!_0x16d90e){console['log'](_0x573fa2[_0x137ba7(0x1c5)]);for(const _0x25cd25 of _0xc8da5b){console['log']('\x20\x20'+_0x25cd25[_0x137ba7(0x102)]),console[_0x137ba7(0x192)](_0x137ba7(0x196)+_0x25cd25['id']),_0x25cd25['stats']&&console[_0x137ba7(0x192)](_0x137ba7(0x1b8)+_0x573fa2[_0x137ba7(0x191)](getProgressDisplay,_0x25cd25['stats'])),_0x25cd25['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x25cd25[_0x137ba7(0x17e)]);}throw new Error(_0x137ba7(0x168));}const {selected:_0x486900}=await _0x42c5fc[_0x137ba7(0x18b)]([{'type':'list','name':'selected','message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0xc8da5b[_0x137ba7(0xf3)](_0x2da8de=>({'name':_0x2da8de['name']+'\x20('+_0x2da8de['id']+')','value':_0x2da8de['id']}))}]);_0xb51bc6=_0xc8da5b[_0x137ba7(0x1b1)](_0x2d270e=>_0x2d270e['id']===_0x486900);}await _0x573fa2['OzJdN'](setActiveFeatureId,_0xb51bc6['id']);_0x4ac0dd&&_0x4ac0dd!==_0xb51bc6[_0x137ba7(0x17e)]&&(await updateFeature(_0xb51bc6['id'],{'gitBranch':_0x4ac0dd}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4ac0dd));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xb51bc6[_0x137ba7(0x102)]+'\x20('+_0xb51bc6['id']+')'),await _0x573fa2[_0x137ba7(0x120)](tryStartCurrentSession,_0xb51bc6['id']);const _0x1a01ab=await _0x573fa2['BHANJ'](getFeature,_0xb51bc6['id']),_0x21a9e5=process['env'][_0x137ba7(0x121)];_0x21a9e5&&_0x573fa2['oLbCl'](registerSession,_0x21a9e5,_0x1a01ab['id']),_0x573fa2['lLJFp'](displayFeature,_0x1a01ab,_0x1a01ab[_0x137ba7(0xec)]),await _0x573fa2[_0x137ba7(0x18c)](printFeedbackNudge,_0x1a01ab['id']);}async function printFeedbackNudge(_0x2f651a){const _0x83ca9e=_0x5d6635,_0x3c454e={'adVjG':function(_0x1021fb,_0x3a0f09){return _0x1021fb(_0x3a0f09);},'hLuyG':function(_0x501219,_0x347be7){return _0x501219>_0x347be7;}};try{const {items:_0x56470a}=await _0x3c454e[_0x83ca9e(0x16c)](getActionItems,_0x2f651a);let _0x163009=0x0,_0x51857e=0x0;for(const _0x4c95bd of _0x56470a){const _0x40c727=await getItemFeedback(_0x2f651a,_0x4c95bd['id']);_0x3c454e['hLuyG'](_0x40c727['unaddressedComments'][_0x83ca9e(0xe6)],0x0)&&(_0x163009+=_0x40c727['unaddressedComments'][_0x83ca9e(0xe6)],_0x51857e++);}_0x163009>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x163009+_0x83ca9e(0x12d)+_0x51857e+_0x83ca9e(0x158)),console[_0x83ca9e(0x192)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x3bb480){const _0x4ee691=_0x5d6635;try{const {sessions:_0x2e03d3}=await listFeatureSessions(_0x3bb480),_0x5f2511=_0x2e03d3[_0x4ee691(0x1b1)](_0x56aea8=>_0x56aea8['status']==='ready');_0x5f2511&&(await startSession(_0x3bb480,_0x5f2511['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x5f2511[_0x4ee691(0x17b)]));}catch{}}export async function featureReport(_0x4f84f0,_0x8c3dde){const _0xbe1ca4=_0x5d6635,_0x19d8dc={'BAhyG':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','mVozz':_0xbe1ca4(0xf0),'fdOxz':function(_0x1c853f,_0x577df9,_0x2c9074){return _0x1c853f(_0x577df9,_0x2c9074);},'Rgovc':function(_0x4084cb,_0xc083d8,_0x19ef2d,_0x329162){return _0x4084cb(_0xc083d8,_0x19ef2d,_0x329162);},'kyxow':'reports','aDiHy':function(_0x14efb2,_0x349894){return _0x14efb2(_0x349894);},'mArsq':function(_0x3aca54,_0x7122da,_0xeda229){return _0x3aca54(_0x7122da,_0xeda229);}},_0x156444=_0x4f84f0||await getActiveFeatureId();if(!_0x156444)throw new Error(_0x19d8dc['BAhyG']);console[_0xbe1ca4(0x192)](_0x19d8dc['mVozz']);const _0x47c2f8=await _0x19d8dc['fdOxz'](getFeatureReportMarkdown,_0x156444,{'style':_0x8c3dde[_0xbe1ca4(0x1af)]}),_0x2b8a30=_0x8c3dde[_0xbe1ca4(0x1c8)]||_0x19d8dc['Rgovc'](join,getRangerDir(),_0x19d8dc['kyxow'],_0x156444+_0xbe1ca4(0x174)),_0x4d6fa6=_0x19d8dc[_0xbe1ca4(0xde)](join,_0x2b8a30,'..');!_0x19d8dc[_0xbe1ca4(0x1c7)](existsSync,_0x4d6fa6)&&await _0x19d8dc['mArsq'](mkdir,_0x4d6fa6,{'recursive':!![]}),await writeFile(_0x2b8a30,_0x47c2f8,'utf-8'),console['log'](_0xbe1ca4(0x186)+_0x2b8a30);}function getScenarioResult(_0x132b72){const _0x2c47de=_0x5d6635,_0xa28541={'FNqsK':function(_0x29085d,_0x52fccb){return _0x29085d===_0x52fccb;},'NQWHZ':_0x2c47de(0x12b),'cluRb':_0x2c47de(0x1be),'EuEtK':'in_progress'};if(_0xa28541[_0x2c47de(0x173)](_0x132b72[_0x2c47de(0xea)],_0xa28541[_0x2c47de(0x19b)]))return _0x132b72['terminalReason']??_0xa28541[_0x2c47de(0x19b)];if(_0x132b72['status']===_0xa28541[_0x2c47de(0x151)])return _0xa28541['EuEtK'];return _0x132b72['status'];}function getScenarioRationale(_0x80118e,_0x134610){const _0x528c21=_0x5d6635;if(_0x134610)return _0x134610;if(_0x80118e[_0x528c21(0x12e)])return _0x80118e[_0x528c21(0x12e)];if(_0x80118e['incompleteReason'])return _0x80118e['incompleteReason'];if(_0x80118e['canceledReason'])return _0x80118e['canceledReason'];if(_0x80118e['notes'])return _0x80118e[_0x528c21(0x19a)];return null;}export async function featureReportPrDescription(_0x3375c2,_0x46eadf){const _0x184043=_0x5d6635,_0x46dc99={'XqLye':function(_0x28f364){return _0x28f364();},'JLlKM':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','JrogI':function(_0x429515,_0x1a766d){return _0x429515(_0x1a766d);},'wWTHv':function(_0x2795f2,_0x1efc97){return _0x2795f2>_0x1efc97;},'SjGfD':function(_0x5ce024,_0xd85718){return _0x5ce024+_0xd85718;},'BiXUK':function(_0x5431af,_0x46274b){return _0x5431af===_0x46274b;},'StNhW':_0x184043(0x108),'tduKl':function(_0x1ac8ea,_0x46b59a,_0x52f731,_0x5b55e1){return _0x1ac8ea(_0x46b59a,_0x52f731,_0x5b55e1);}},_0x190847=_0x3375c2||await _0x46dc99[_0x184043(0x1b4)](getActiveFeatureId);if(!_0x190847)throw new Error(_0x46dc99[_0x184043(0x1bf)]);const _0x4763c0=await _0x46dc99['JrogI'](getFeature,_0x190847),_0x2aaa99=_0x4763c0['checklistItems']||[],_0x3ca580=getCurrentSessionItems(_0x4763c0,_0x2aaa99);_0x3ca580[_0x184043(0xe6)]===0x0&&(console[_0x184043(0x180)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x13a1eb=_0x46eadf['excludeScenarios']??[],_0x17a8f9=_0x13a1eb[_0x184043(0x126)](_0xbb5999=>!Number[_0x184043(0x1c6)](_0xbb5999)||_0xbb5999<0x1||_0xbb5999>_0x3ca580['length']);if(_0x46dc99['wWTHv'](_0x17a8f9[_0x184043(0xe6)],0x0)){console[_0x184043(0x180)](_0x184043(0x122)+_0x17a8f9['join'](',\x20')),console[_0x184043(0x192)](_0x184043(0x1c1));for(let _0x4d3457=0x0;_0x4d3457<_0x3ca580['length'];_0x4d3457++){console[_0x184043(0x192)]('\x20\x20'+_0x46dc99[_0x184043(0x190)](_0x4d3457,0x1)+'.\x20'+_0x3ca580[_0x4d3457]['description']);}process[_0x184043(0xf9)](0x1);}const _0x53d655=new Set(_0x13a1eb[_0x184043(0xf3)](_0x18b277=>_0x18b277-0x1)),_0x27f234=_0x3ca580[_0x184043(0x126)]((_0x32a852,_0x326199)=>!_0x53d655[_0x184043(0x117)](_0x326199));_0x46dc99['BiXUK'](_0x27f234['length'],0x0)&&(console['error'](_0x46dc99[_0x184043(0x1ac)]),process['exit'](0x1));if(_0x46eadf[_0x184043(0x160)])await _0x46dc99[_0x184043(0x111)](outputJsonReport,_0x190847,_0x4763c0,_0x27f234);else{const _0x187f9c=await getFeatureReportMarkdown(_0x190847,{'itemIds':_0x27f234[_0x184043(0xf3)](_0x1027b8=>_0x1027b8['id'])});process['stdout']['write'](_0x187f9c[_0x184043(0x13b)]()+'\x0a');}}async function outputJsonReport(_0x2b2d84,_0x15edd0,_0x11f22a){const _0x1e610b=_0x5d6635,_0x51f354={'LlXSo':function(_0x183a10,_0x142cad){return _0x183a10(_0x142cad);},'ShWKV':function(_0xbafe1b,_0x7b801c){return _0xbafe1b===_0x7b801c;},'kGolV':function(_0x1ebd43){return _0x1ebd43();},'xHZpb':function(_0x138284,_0x13859c){return _0x138284(_0x13859c);},'aIcGR':function(_0x2d9d55,_0x2b4044){return _0x2d9d55+_0x2b4044;}},_0xf8484b=_0x51f354['kGolV'](getApiBaseUrl),_0x4b8beb=await _0x51f354[_0x1e610b(0x175)](getFeatureReport,_0x2b2d84),_0x3aa2e5=new Map(_0x4b8beb[_0x1e610b(0xec)][_0x1e610b(0xf3)](_0x37d528=>[_0x37d528['id'],_0x37d528])),_0x596691=await Promise[_0x1e610b(0x147)](_0x11f22a['map'](async _0x3782a6=>{const _0x1e44af=_0x1e610b,_0x4f8e7a=_0x3aa2e5['get'](_0x3782a6['id']),_0x2386c3=_0x4f8e7a?.[_0x1e44af(0x153)]??null;let _0x899b62=[];if(_0x3782a6['browserSessionId'])try{const {steps:_0xe78f57}=await _0x51f354[_0x1e44af(0x18d)](getBrowserSessionSteps,_0x3782a6['browserSessionId']);_0xe78f57[_0x1e44af(0xe6)]>0x0&&(_0x899b62=_0xe78f57[_0x1e44af(0xf3)](_0x22afe3=>{const _0xa8c47d=_0x1e44af,_0x2feb13=_0x22afe3['assets'][_0xa8c47d(0x1b1)](_0x499d6d=>_0x499d6d['assetType']==='screenshot'&&_0x499d6d[_0xa8c47d(0x123)]===_0xa8c47d(0x170))??_0x22afe3['assets'][_0xa8c47d(0x1b1)](_0x26be6f=>_0x26be6f['assetType']===_0xa8c47d(0xe4));let _0x26eaf7=null,_0x40e449=null;if(_0x2feb13){const _0x13dc36=_0x2feb13[_0xa8c47d(0x156)]['location'][_0xa8c47d(0x11a)]('/')['pop']();_0x26eaf7=_0xf8484b+_0xa8c47d(0x15c)+_0x3782a6['browserSessionId']+_0xa8c47d(0x1bd)+_0x13dc36,_0x13dc36&&(_0x40e449=_0x13dc36['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x40e449||_0x22afe3['description']||_0x22afe3['stepName']||_0xa8c47d(0x187)+_0x22afe3['position'],'screenshot':_0x26eaf7,'is_key_step':_0x22afe3['isKeyStep']};}));}catch{}return _0x51f354[_0x1e44af(0x10d)](_0x899b62['length'],0x0)&&_0x2386c3?.['screenshotUrls']&&(_0x899b62=_0x2386c3['screenshotUrls']['map']((_0x119669,_0x2dda4f)=>({'description':_0x1e44af(0x171)+(_0x2dda4f+0x1),'screenshot':_0x119669,'is_key_step':![]}))),{'description':_0x3782a6[_0x1e44af(0x146)],'result':getScenarioResult(_0x3782a6),'rationale':getScenarioRationale(_0x3782a6,_0x2386c3?.['agentResponse']),'steps':_0x899b62};})),_0x27be40={'url':_0x15edd0[_0x1e610b(0x169)],'scenarios':_0x596691};process[_0x1e610b(0x14b)]['write'](_0x51f354[_0x1e610b(0x163)](JSON['stringify'](_0x27be40,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x4f8042){const _0x17a4b1=_0x5d6635,_0x12457f={'fkotI':function(_0x2cdd2c){return _0x2cdd2c();},'uXRoZ':_0x17a4b1(0x178),'QIdJg':function(_0x3e6b83,_0x358fad){return _0x3e6b83(_0x358fad);},'luAUm':function(_0x23759c,_0x48826f){return _0x23759c!==_0x48826f;},'AZytn':_0x17a4b1(0x1ab),'jyICy':_0x17a4b1(0x131)},_0x1e6200=_0x4f8042||await _0x12457f[_0x17a4b1(0x134)](getActiveFeatureId);if(!_0x1e6200)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 _0xd3af79=await getFeature(_0x1e6200);if(!_0xd3af79[_0x17a4b1(0x19d)])throw new Error(_0x12457f[_0x17a4b1(0x198)]);const {sessions:_0x44582a}=await _0x12457f['QIdJg'](listFeatureSessions,_0x1e6200),_0x39c7f9=_0x44582a[_0x17a4b1(0x1b1)](_0x59ce80=>_0x59ce80['id']===_0xd3af79['currentSessionId']);if(!_0x39c7f9)throw new Error(_0x17a4b1(0x137));if(_0x39c7f9[_0x17a4b1(0xea)]==='completed'){console[_0x17a4b1(0x192)](_0x17a4b1(0x195));return;}if(_0x12457f['luAUm'](_0x39c7f9['status'],_0x12457f['AZytn']))throw new Error(_0x17a4b1(0x1a0)+_0x39c7f9['status']);console[_0x17a4b1(0x192)](_0x12457f['jyICy']),await concludeSession(_0x1e6200,_0xd3af79[_0x17a4b1(0x19d)]),console['log'](_0x17a4b1(0x133)+_0x39c7f9['iteration']+_0x17a4b1(0x1b9)),console[_0x17a4b1(0x192)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5e909c){const _0x465292=_0x5d6635,_0x39688d={'BGrVK':_0x465292(0x12f),'ARNhD':function(_0x2c3e50,_0x26da19){return _0x2c3e50===_0x26da19;},'bOUuS':_0x465292(0x15a)},_0xfcbde4=_0x5e909c||await getActiveFeatureId();if(!_0xfcbde4)throw new Error(_0x39688d[_0x465292(0x1b2)]);const _0x41f8d2=await getFeature(_0xfcbde4);console[_0x465292(0x192)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x41f8d2[_0x465292(0x102)]+'\x0a');const {sessions:_0x3253f7}=await listFeatureSessions(_0xfcbde4);if(_0x39688d[_0x465292(0x144)](_0x3253f7['length'],0x0)){console[_0x465292(0x192)](_0x39688d[_0x465292(0x16e)]);return;}for(const _0x279e8a of _0x3253f7){const _0x2503b0=_0x279e8a[_0x465292(0xea)]===_0x465292(0x139)?'✅':_0x279e8a['status']==='in_progress'?'🔄':'▶️';console['log'](_0x2503b0+_0x465292(0x17d)+_0x279e8a[_0x465292(0x17b)]+'\x20('+_0x279e8a['id']+')'),console['log'](_0x465292(0x1b6)+_0x279e8a['status']),console[_0x465292(0x192)](_0x465292(0x1ad)+new Date(_0x279e8a[_0x465292(0x194)])['toLocaleString']()),_0x279e8a[_0x465292(0x148)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x279e8a['completedAt'])[_0x465292(0x149)]()),console[_0x465292(0x192)]('');}}export async function featureAddScenario(_0x56acef,_0x18098f){const _0xf407ae=_0x5d6635,_0x25b5c9={'XYeEp':function(_0x24906c){return _0x24906c();},'uOfsQ':function(_0x27a24e,_0x5d36eb,_0x27ef68){return _0x27a24e(_0x5d36eb,_0x27ef68);},'DeKXd':function(_0x3dce06,_0x20c467){return _0x3dce06(_0x20c467);}},_0x34573c=_0x18098f||await _0x25b5c9['XYeEp'](getActiveFeatureId);if(!_0x34573c)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 _0x4b807a=await getFeature(_0x34573c);if(_0x4b807a['latestReview']&&!_0x4b807a['latestReview']['submittedAt'])throw new Error(_0xf407ae(0x1b5)+_0x4b807a[_0xf407ae(0x169)]);await _0x25b5c9[_0xf407ae(0x15d)](createChecklistItem,_0x34573c,_0x56acef);const _0x1faf0c=await _0x25b5c9[_0xf407ae(0xe8)](getFeature,_0x34573c);console['log']('\x0a✅\x20Scenario\x20added'),displayFeature(_0x1faf0c,_0x1faf0c['checklistItems']);}export async function featureEditScenario(_0x1a3a41,_0xd4207d){const _0x462a8c=_0x5d6635,_0x18f9d4={'CsAsD':function(_0x95582b){return _0x95582b();},'mcqNS':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','Bxzdj':function(_0x3e8e42,_0x30c6aa){return _0x3e8e42===_0x30c6aa;},'RmtKt':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','dZuIA':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','bTfXr':function(_0x135108,_0x47eaba){return _0x135108<_0x47eaba;},'UIzOD':function(_0xd58c46,_0x4383e7){return _0xd58c46+_0x4383e7;},'loUla':function(_0x1ee41b,_0x4abc64){return _0x1ee41b-_0x4abc64;},'Jozom':'\x0aAvailable\x20scenarios:','FKrev':function(_0x47ef4a,_0x57909a){return _0x47ef4a<_0x57909a;},'gIdHH':function(_0x4b22c0,_0x5a7ef1){return _0x4b22c0+_0x5a7ef1;},'bwild':function(_0x699938,_0x5009f3,_0x74053e){return _0x699938(_0x5009f3,_0x74053e);}},_0x1c1ea5=_0xd4207d['id']||await _0x18f9d4[_0x462a8c(0x183)](getActiveFeatureId);!_0x1c1ea5&&(console[_0x462a8c(0x180)](_0x462a8c(0x172)),console[_0x462a8c(0x180)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x631787=await getFeature(_0x1c1ea5);_0x631787['latestReview']&&!_0x631787['latestReview']['submittedAt']&&(console[_0x462a8c(0x180)](_0x18f9d4[_0x462a8c(0x1a3)]),console[_0x462a8c(0x180)]('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x631787[_0x462a8c(0x169)]),process['exit'](0x1));const _0x14d24f=_0x631787[_0x462a8c(0xec)]||[];_0x18f9d4['Bxzdj'](_0x14d24f[_0x462a8c(0xe6)],0x0)&&(console['error'](_0x18f9d4['RmtKt']),process['exit'](0x1));if(_0xd4207d[_0x462a8c(0x10e)]===undefined){console[_0x462a8c(0x180)](_0x18f9d4['dZuIA']),console[_0x462a8c(0x192)](_0x462a8c(0x1c1));for(let _0x2b42ce=0x0;_0x18f9d4[_0x462a8c(0x142)](_0x2b42ce,_0x14d24f['length']);_0x2b42ce++){console[_0x462a8c(0x192)]('\x20\x20'+_0x18f9d4['UIzOD'](_0x2b42ce,0x1)+'.\x20'+_0x14d24f[_0x2b42ce][_0x462a8c(0x146)]);}process[_0x462a8c(0xf9)](0x1);}const _0x3450be=_0x18f9d4['loUla'](_0xd4207d[_0x462a8c(0x10e)],0x1);if(_0x3450be<0x0||_0x3450be>=_0x14d24f[_0x462a8c(0xe6)]){console[_0x462a8c(0x180)](_0x462a8c(0xf4)+_0xd4207d['scenario']+_0x462a8c(0x18e)+_0x14d24f['length']+_0x462a8c(0x1c4)),console['log'](_0x18f9d4[_0x462a8c(0x17a)]);for(let _0x4ae9bd=0x0;_0x18f9d4[_0x462a8c(0x176)](_0x4ae9bd,_0x14d24f[_0x462a8c(0xe6)]);_0x4ae9bd++){console['log']('\x20\x20'+_0x18f9d4['gIdHH'](_0x4ae9bd,0x1)+'.\x20'+_0x14d24f[_0x4ae9bd]['description']);}process['exit'](0x1);}const _0x2e0e28=_0x14d24f[_0x3450be];await updateChecklistItem(_0x1c1ea5,_0x2e0e28['id'],{'description':_0x1a3a41});const _0x4caaa6=await getFeature(_0x1c1ea5);console['log']('\x0a✅\x20Scenario\x20updated'),_0x18f9d4[_0x462a8c(0x17c)](displayFeature,_0x4caaa6,_0x4caaa6['checklistItems']);}async function downloadFeedbackImage(_0x5e2e27,_0x5b5677){const _0x35a75f=_0x5d6635,_0x579d6b={'OYIVA':function(_0x59ce13,_0x515d27,_0x316ca4){return _0x59ce13(_0x515d27,_0x316ca4);},'XEESc':function(_0x1bd9c8){return _0x1bd9c8();},'nCgCQ':'feedback-images','nkQPu':function(_0x16ce82,_0x4bee2c){return _0x16ce82(_0x4bee2c);}};try{const _0x4fc935=_0x579d6b[_0x35a75f(0x11f)](join,_0x579d6b[_0x35a75f(0x1b0)](getRangerDir),_0x579d6b['nCgCQ']);await mkdir(_0x4fc935,{'recursive':!![]});const _0x450452=join(_0x4fc935,'comment_'+_0x5b5677+_0x35a75f(0x103)),_0x507cca=await _0x579d6b['nkQPu'](fetch,_0x5e2e27);if(!_0x507cca['ok'])return null;const _0x533694=Buffer[_0x35a75f(0x1ae)](await _0x507cca[_0x35a75f(0x138)]());return await writeFile(_0x450452,_0x533694),_0x450452;}catch{return null;}}export async function featureGetReview(_0x177d07){const _0x3f133a=_0x5d6635,_0x248b95={'DyvEL':function(_0x5e9de3){return _0x5e9de3();},'KHsQX':function(_0x20f059,_0x57d857){return _0x20f059(_0x57d857);},'WKgaX':function(_0x15a904,_0x2e2f79){return _0x15a904===_0x2e2f79;},'aclga':function(_0x3f867c,_0x2a37f0){return _0x3f867c<_0x2a37f0;},'rCRVh':function(_0x28c71b,_0x301700,_0x3c9ff8){return _0x28c71b(_0x301700,_0x3c9ff8);},'GWapF':_0x3f133a(0x13a),'qtOhZ':'numeric','foBJk':_0x3f133a(0x166),'zjjFC':'\x20>\x20','sBjqj':_0x3f133a(0x1a7),'OUBoV':_0x3f133a(0x165),'rDyoj':function(_0x3b4e7b,_0x285185){return _0x3b4e7b>=_0x285185;}},_0x5d1437=_0x177d07||await _0x248b95['DyvEL'](getActiveFeatureId);if(!_0x5d1437)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 _0x15e0de=await _0x248b95[_0x3f133a(0x150)](getFeature,_0x5d1437),{items:_0x4afb45}=await getActionItems(_0x5d1437);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x15e0de[_0x3f133a(0x102)]+'\x20('+_0x15e0de['id']+')\x0a');if(_0x248b95[_0x3f133a(0x1a8)](_0x4afb45[_0x3f133a(0xe6)],0x0)){console[_0x3f133a(0x192)](_0x3f133a(0x199));return;}for(let _0xe0a952=0x0;_0x248b95['aclga'](_0xe0a952,_0x4afb45[_0x3f133a(0xe6)]);_0xe0a952++){const _0x483dc2=_0x4afb45[_0xe0a952],_0x14d5d8=_0x483dc2['version']>0x1?_0x3f133a(0x155)+_0x483dc2['version']+')':'',_0x214214=await _0x248b95['rCRVh'](getItemFeedback,_0x5d1437,_0x483dc2['id']);if(_0x214214['unaddressedComments'][_0x3f133a(0xe6)]>0x0){console[_0x3f133a(0x192)]('Scenario\x20'+(_0xe0a952+0x1)+_0x3f133a(0x1a5)+_0x483dc2['description']+'\x22'+_0x14d5d8+_0x3f133a(0x11b)+_0x214214[_0x3f133a(0x15e)]['length']+_0x3f133a(0xf6));for(const _0x4342aa of _0x214214['unaddressedComments']){const _0x14e764=new Date(_0x4342aa['createdAt'])['toLocaleDateString']('en-US',{'month':_0x248b95[_0x3f133a(0x1a6)],'day':_0x248b95['qtOhZ']}),_0x301726=_0x4342aa[_0x3f133a(0x107)]||_0x4342aa['authorEmail']||_0x248b95[_0x3f133a(0xfa)];console[_0x3f133a(0x192)]('\x20\x20💬\x20'+_0x301726+'\x20('+_0x14e764+_0x3f133a(0x119)+_0x4342aa[_0x3f133a(0x118)]+'\x22');if(_0x4342aa[_0x3f133a(0x18f)]){const _0x41db12=await _0x248b95['rCRVh'](downloadFeedbackImage,_0x4342aa[_0x3f133a(0x18f)],_0x4342aa['id']);_0x41db12&&console[_0x3f133a(0x192)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x41db12);}if(_0x4342aa['domRef']){const _0x48a062=_0x4342aa[_0x3f133a(0x1bb)]['selector']['split'](_0x248b95['zjjFC'])['pop']()?.[_0x3f133a(0x11a)](':')[0x0]||_0x248b95[_0x3f133a(0x177)],_0x51107b=_0x4342aa['domRef']['textContent']?'\x20\x22'+_0x4342aa['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x3f133a(0x192)](_0x3f133a(0xdf)+_0x48a062+'>'+_0x51107b),console['log'](_0x3f133a(0x13f)+_0x4342aa['domRef']['selector']);}else{if(_0x4342aa['spatial']){const _0x53003a=_0x4342aa[_0x3f133a(0x114)][_0x3f133a(0x154)];_0x248b95[_0x3f133a(0x1a8)](_0x4342aa['spatial']['type'],_0x248b95[_0x3f133a(0x115)])&&_0x248b95[_0x3f133a(0x1aa)](_0x53003a['length'],0x2)?console[_0x3f133a(0x192)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x53003a[0x0][_0x3f133a(0x10f)](0x2)+',\x20'+_0x53003a[0x1][_0x3f133a(0x10f)](0x2)+')'):console[_0x3f133a(0x192)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x4342aa['spatial']['type']+_0x3f133a(0x104)+_0x53003a[_0x3f133a(0xf3)](_0x25d394=>_0x25d394['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x214214['canonicalFlow']){console[_0x3f133a(0x192)]('\x20\x20Expected\x20flow:');for(const _0x1ba8bd of _0x214214[_0x3f133a(0x136)][_0x3f133a(0x11a)]('\x0a')){console[_0x3f133a(0x192)]('\x20\x20\x20\x20'+_0x1ba8bd);}}}else console['log']('Scenario\x20'+(_0xe0a952+0x1)+_0x3f133a(0x1a5)+_0x483dc2[_0x3f133a(0x146)]+'\x22'+_0x14d5d8+'\x20—\x20no\x20comments'),console[_0x3f133a(0x192)](_0x3f133a(0xe5));console['log']('');}}export async function featureDelete(_0xb69b6b){const _0x593259=_0x5d6635,_0x91500b={'bogHk':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','emLnm':function(_0x42467d,_0x44b496){return _0x42467d(_0x44b496);},'uLXRk':_0x593259(0x14f)},_0x4923aa=_0xb69b6b||await getActiveFeatureId();if(!_0x4923aa)throw new Error(_0x91500b[_0x593259(0x19e)]);const _0x4b7abe=await getFeature(_0x4923aa);await _0x91500b['emLnm'](softDeleteFeature,_0x4923aa),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x4b7abe[_0x593259(0x102)]+'\x20('+_0x4923aa+')'),console['log'](_0x91500b[_0x593259(0x185)]+_0x4923aa);}export async function featureRestore(_0x3b6d9a){const _0x2086e2=_0x5d6635,_0x3b36d2={'IpxES':function(_0x3f6813,_0x3438a2){return _0x3f6813(_0x3438a2);},'HbDGG':function(_0x29d374,_0x472b07,_0x51de45){return _0x29d374(_0x472b07,_0x51de45);}};await _0x3b36d2[_0x2086e2(0x11d)](restoreFeature,_0x3b6d9a);const _0x15c5e3=await getFeature(_0x3b6d9a);console[_0x2086e2(0x192)](_0x2086e2(0x15f)+_0x15c5e3[_0x2086e2(0x102)]+'\x20('+_0x3b6d9a+')'),_0x3b36d2[_0x2086e2(0x100)](displayFeature,_0x15c5e3,_0x15c5e3[_0x2086e2(0xec)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1a87(_0x22104a,_0x57198b){_0x22104a=_0x22104a-0x19e;const _0x4e31fc=_0x4e31();let _0x1a87af=_0x4e31fc[_0x22104a];return _0x1a87af;}function _0x4e31(){const _0x2fdfca=['16160551tsTvZK','551927RxIbnY','907552KYQPXK','once','6YkehOo','SIGTERM','exit','rkUWx','4586968JrzJNK','error','Unknown\x20hook:\x20','7zJbAZL','cJHtA','582662aReoVf','2169275jbXiNY','keys','6dJqatK','NuEBN','399650gqwlpF','12BITJiO','99OdlXtU'];_0x4e31=function(){return _0x2fdfca;};return _0x4e31();}(function(_0x474522,_0x3d5a0f){const _0x20b225=_0x1a87,_0x1affed=_0x474522();while(!![]){try{const _0x28bda8=parseInt(_0x20b225(0x1a4))/0x1+-parseInt(_0x20b225(0x1b0))/0x2+-parseInt(_0x20b225(0x1a7))/0x3*(parseInt(_0x20b225(0x1a5))/0x4)+-parseInt(_0x20b225(0x1b1))/0x5*(-parseInt(_0x20b225(0x19e))/0x6)+-parseInt(_0x20b225(0x1ae))/0x7*(parseInt(_0x20b225(0x1ab))/0x8)+parseInt(_0x20b225(0x1a2))/0x9*(-parseInt(_0x20b225(0x1a0))/0xa)+-parseInt(_0x20b225(0x1a3))/0xb*(-parseInt(_0x20b225(0x1a1))/0xc);if(_0x28bda8===_0x3d5a0f)break;else _0x1affed['push'](_0x1affed['shift']());}catch(_0x506bfb){_0x1affed['push'](_0x1affed['shift']());}}}(_0x4e31,0xaa1fe));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 installCancellationHandlers(){const _0x1c6936=_0x1a87,_0x14a992={'rkUWx':'SIGINT','cJHtA':_0x1c6936(0x1a8)};if(cancellationHandlersInstalled)return;const _0x29dd73=()=>{const _0x4bd4ed=_0x1c6936;process[_0x4bd4ed(0x1a9)](0x0);};process['once'](_0x14a992[_0x1c6936(0x1aa)],_0x29dd73),process[_0x1c6936(0x1a6)](_0x14a992[_0x1c6936(0x1af)],_0x29dd73),process[_0x1c6936(0x1a6)]('SIGHUP',_0x29dd73),cancellationHandlersInstalled=!![];}export async function hook(_0x53b241,_0x5c694e){const _0x8b465c=_0x1a87,_0x39da0f={'NuEBN':function(_0xa0c569,_0x3dfc07){return _0xa0c569(_0x3dfc07);}};installCancellationHandlers();const _0x1b16bc=HOOKS[_0x53b241];if(!_0x1b16bc){const _0x3ae34a=Object[_0x8b465c(0x1b2)](HOOKS)['join'](',\x20');console[_0x8b465c(0x1ac)](_0x8b465c(0x1ad)+_0x53b241),console[_0x8b465c(0x1ac)]('Valid\x20hooks:\x20'+_0x3ae34a),process['exit'](0x1);}await _0x39da0f[_0x8b465c(0x19f)](_0x1b16bc,_0x5c694e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27d2be,_0x3a848f){const _0x3af252=_0x34cd,_0x3a4b1b=_0x27d2be();while(!![]){try{const _0x5b5801=-parseInt(_0x3af252(0x185))/0x1+parseInt(_0x3af252(0x182))/0x2+-parseInt(_0x3af252(0x180))/0x3+parseInt(_0x3af252(0x184))/0x4+-parseInt(_0x3af252(0x181))/0x5+-parseInt(_0x3af252(0x17f))/0x6*(-parseInt(_0x3af252(0x189))/0x7)+parseInt(_0x3af252(0x183))/0x8;if(_0x5b5801===_0x3a848f)break;else _0x3a4b1b['push'](_0x3a4b1b['shift']());}catch(_0x54570b){_0x3a4b1b['push'](_0x3a4b1b['shift']());}}}(_0x5631,0xdfb33));function _0x5631(){const _0x43e077=['795704AHGmez','15515112RevilT','2348808AoDtas','790826FwYqYN','off','sbjHc','log','14vEnjRp','5387598yLqLko','4930296OiEyjv','6848880jujkfC'];_0x5631=function(){return _0x43e077;};return _0x5631();}import{readHookInput}from'./output.js';function _0x34cd(_0x4a7fe9,_0x3ef671){_0x4a7fe9=_0x4a7fe9-0x17f;const _0x5631e1=_0x5631();let _0x34cd99=_0x5631e1[_0x4a7fe9];return _0x34cd99;}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';export async function autoPrompt(){const _0x22692d=_0x34cd,_0x1ccf3e={'sbjHc':_0x22692d(0x186)};if(resolveHookMode()===_0x1ccf3e[_0x22692d(0x187)])return;const _0x318147=await readHookInput(),_0xfa51c0=_0x318147?.['session_id'];if(!_0xfa51c0)return;if(isSessionEnabled(_0xfa51c0)||hasSessionBeenPrompted(_0xfa51c0))return;markSessionPrompted(_0xfa51c0),console[_0x22692d(0x188)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2677(){const _0x2d3c45=['751557SZYjEZ','master','env','424899JjlnSL','13386978rFISJX','2570352NdgTSy','main','clAjy','100QNUxME','130qctroh','174jnVozw','\x20and\x20branch\x20\x27','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','137545cURlPO','3149140YqWzba','CLAUDE_SESSION_ID','39663tfLfPp','21EPxUfL'];_0x2677=function(){return _0x2d3c45;};return _0x2677();}(function(_0x1b7f0f,_0x4b4089){const _0x5996a9=_0x38a0,_0x2a9f6d=_0x1b7f0f();while(!![]){try{const _0x25c705=parseInt(_0x5996a9(0x1d5))/0x1+-parseInt(_0x5996a9(0x1cb))/0x2*(-parseInt(_0x5996a9(0x1d3))/0x3)+-parseInt(_0x5996a9(0x1d1))/0x4+-parseInt(_0x5996a9(0x1d0))/0x5*(-parseInt(_0x5996a9(0x1cd))/0x6)+parseInt(_0x5996a9(0x1d4))/0x7*(parseInt(_0x5996a9(0x1c8))/0x8)+parseInt(_0x5996a9(0x1c6))/0x9*(-parseInt(_0x5996a9(0x1cc))/0xa)+-parseInt(_0x5996a9(0x1c7))/0xb;if(_0x25c705===_0x4b4089)break;else _0x2a9f6d['push'](_0x2a9f6d['shift']());}catch(_0x41e134){_0x2a9f6d['push'](_0x2a9f6d['shift']());}}}(_0x2677,0x87cc0));function _0x38a0(_0x1a060b,_0x17ba0a){_0x1a060b=_0x1a060b-0x1c5;const _0x26775b=_0x2677();let _0x38a0d1=_0x26775b[_0x1a060b];return _0x38a0d1;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x58b77d){const _0x56f509=_0x38a0,_0x4bcf94={'lZIjp':function(_0x60d836){return _0x60d836();},'clAjy':function(_0x91bc56,_0xd24b6d){return _0x91bc56!==_0xd24b6d;}},_0xcaf8ad=_0x58b77d||process[_0x56f509(0x1c5)][_0x56f509(0x1d2)]||'';_0xcaf8ad&&disableSession(_0xcaf8ad);const _0x24f14e=_0x4bcf94['lZIjp'](getCurrentBranch);_0x24f14e&&_0x4bcf94['clAjy'](_0x24f14e,_0x56f509(0x1c9))&&_0x24f14e!=='master'&&disableBranch(_0x24f14e),printBlock(_0x56f509(0x1cf)+(_0x24f14e&&_0x24f14e!==_0x56f509(0x1c9)&&_0x4bcf94[_0x56f509(0x1ca)](_0x24f14e,_0x56f509(0x1d6))?_0x56f509(0x1ce)+_0x24f14e+'\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(_0x5eb956,_0x45f875){const _0x3dba8e=_0x92e7,_0x442ed1=_0x5eb956();while(!![]){try{const _0x48fb41=parseInt(_0x3dba8e(0x15f))/0x1+parseInt(_0x3dba8e(0x168))/0x2*(-parseInt(_0x3dba8e(0x15b))/0x3)+-parseInt(_0x3dba8e(0x173))/0x4*(-parseInt(_0x3dba8e(0x175))/0x5)+parseInt(_0x3dba8e(0x170))/0x6*(-parseInt(_0x3dba8e(0x15d))/0x7)+-parseInt(_0x3dba8e(0x165))/0x8*(-parseInt(_0x3dba8e(0x162))/0x9)+parseInt(_0x3dba8e(0x161))/0xa*(parseInt(_0x3dba8e(0x172))/0xb)+-parseInt(_0x3dba8e(0x16a))/0xc*(parseInt(_0x3dba8e(0x163))/0xd);if(_0x48fb41===_0x45f875)break;else _0x442ed1['push'](_0x442ed1['shift']());}catch(_0xed82fc){_0x442ed1['push'](_0x442ed1['shift']());}}}(_0x5852,0x22f14));function _0x92e7(_0x32e43f,_0x299201){_0x32e43f=_0x32e43f-0x15b;const _0x5852bb=_0x5852();let _0x92e7d0=_0x5852bb[_0x32e43f];return _0x92e7d0;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x5852(){const _0xdf95be=['TVUJn','129484VQnBoN','ranger\x20setup','60VOBUHF','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','VLunk','HcZAP','#\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`','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','13290FuLeiq','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','87505OTdRHn','6884yQriUi','\x0a\x0a**Branch\x20\x27','795rwyGyB','12JPCPqQ','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','63MCEync','boyWc','180674jPySAi','ranger\x20setup\x20--opencode','90owtEiR','18dqldOI','419861TtiebD','#\x20RANGER\x20ENABLED','230416KpgaFb','enzeb'];_0x5852=function(){return _0xdf95be;};return _0x5852();}import{update}from'../update.js';export async function enable(_0x19bb03){const _0x3fdc69=_0x92e7,_0x2b1f95={'boyWc':function(_0x50b11c,_0x183adf){return _0x50b11c(_0x183adf);},'enzeb':function(_0x39ac76){return _0x39ac76();},'ZoBMp':_0x3fdc69(0x160),'VLunk':_0x3fdc69(0x171),'TVUJn':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','wnSVz':function(_0xb12fdd,_0x10c498){return _0xb12fdd!==_0x10c498;},'HcZAP':'main','sGxIh':function(_0x32004a,_0x2c4ad6){return _0x32004a!==_0x2c4ad6;}},_0x12c2c4=_0x19bb03||process['env']['CLAUDE_SESSION_ID']||'',_0x1198f7=_0x2b1f95[_0x3fdc69(0x15e)](Boolean,_0x19bb03),_0x5cd0ac=await _0x2b1f95[_0x3fdc69(0x166)](getToken);if(!_0x5cd0ac){const _0xc89fbf=_0x1198f7?_0x2b1f95['ZoBMp']:_0x3fdc69(0x169),_0x4b3d33=_0x1198f7?_0x2b1f95[_0x3fdc69(0x16c)]:_0x2b1f95[_0x3fdc69(0x167)];_0x2b1f95['boyWc'](printBlock,_0x3fdc69(0x16e)+_0xc89fbf+_0x3fdc69(0x16b)+_0x4b3d33);return;}try{await update();}catch{}_0x12c2c4&&_0x2b1f95[_0x3fdc69(0x15e)](enableSession,_0x12c2c4);const _0x3eeb4a=_0x2b1f95['enzeb'](getCurrentBranch),_0x144ff3=_0x3eeb4a&&_0x2b1f95['wnSVz'](_0x3eeb4a,_0x2b1f95[_0x3fdc69(0x16d)])&&_0x2b1f95['sGxIh'](_0x3eeb4a,'master')?_0x3fdc69(0x174)+_0x3eeb4a+_0x3fdc69(0x16f):'',_0x50c6ff=getRangerSkillContent();printBlock(_0x3fdc69(0x164)+_0x144ff3+_0x3fdc69(0x15c)+_0x50c6ff+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1dae(_0x20aa28,_0x1941b0){_0x20aa28=_0x20aa28-0x197;const _0xd92b30=_0xd92b();let _0x1dae91=_0xd92b30[_0x20aa28];return _0x1dae91;}function _0xd92b(){const _0x291edf=['1252564sgcErz','673212WFtYJX','===\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===','216349zRyYeW','135771XBVAHc','838621kTZgDU','940646XTEesj','1553335ELlUpj','48WRXwzt'];_0xd92b=function(){return _0x291edf;};return _0xd92b();}(function(_0x489f26,_0x46093a){const _0x3611cc=_0x1dae,_0x23ea60=_0x489f26();while(!![]){try{const _0x3f6f18=-parseInt(_0x3611cc(0x19a))/0x1+parseInt(_0x3611cc(0x19d))/0x2+parseInt(_0x3611cc(0x19b))/0x3+parseInt(_0x3611cc(0x197))/0x4+parseInt(_0x3611cc(0x19e))/0x5+parseInt(_0x3611cc(0x198))/0x6+parseInt(_0x3611cc(0x19c))/0x7*(-parseInt(_0x3611cc(0x19f))/0x8);if(_0x3f6f18===_0x46093a)break;else _0x23ea60['push'](_0x23ea60['shift']());}catch(_0x2fbfbd){_0x23ea60['push'](_0x23ea60['shift']());}}}(_0xd92b,0x4d407));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x3497f2){const _0xb2f87c=_0x1dae,_0xb03911={'pJXWY':function(_0x32cf4c,_0x3d9d06){return _0x32cf4c(_0x3d9d06);},'wdXTC':function(_0x4dbc87,_0x476ba6){return _0x4dbc87(_0x476ba6);}},_0x19e086=await _0xb03911['pJXWY'](getEnabledSessionId,_0x3497f2);if(!_0x19e086)return;_0xb03911['wdXTC'](printBlock,_0xb2f87c(0x199));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56cf8a,_0x5bdb6e){var _0x2f4d3d=_0x300f,_0x50981d=_0x56cf8a();while(!![]){try{var _0x5826cb=-parseInt(_0x2f4d3d(0x75))/0x1*(parseInt(_0x2f4d3d(0x72))/0x2)+parseInt(_0x2f4d3d(0x73))/0x3*(parseInt(_0x2f4d3d(0x7a))/0x4)+-parseInt(_0x2f4d3d(0x76))/0x5+-parseInt(_0x2f4d3d(0x79))/0x6*(parseInt(_0x2f4d3d(0x74))/0x7)+-parseInt(_0x2f4d3d(0x7c))/0x8*(parseInt(_0x2f4d3d(0x7b))/0x9)+-parseInt(_0x2f4d3d(0x78))/0xa+parseInt(_0x2f4d3d(0x77))/0xb;if(_0x5826cb===_0x5bdb6e)break;else _0x50981d['push'](_0x50981d['shift']());}catch(_0x3bb267){_0x50981d['push'](_0x50981d['shift']());}}}(_0x3ca8,0x2108a));function _0x3ca8(){var _0x9892ff=['3227WaTzjV','360FpHZws','190025gYhSAu','6140728xTbRdT','1799420UmDBDa','342rbyMzm','634856FIlkhJ','36kEjsJY','276704PHtCoJ','1106XFSYaG','3pkVMFi'];_0x3ca8=function(){return _0x9892ff;};return _0x3ca8();}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x300f(_0x2ee82e,_0x5a1027){_0x2ee82e=_0x2ee82e-0x72;var _0x3ca84e=_0x3ca8();var _0x300fb7=_0x3ca84e[_0x2ee82e];return _0x300fb7;}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41df6f,_0x2dd5fa){const _0x386bb5=_0x3fea,_0x54d518=_0x41df6f();while(!![]){try{const _0x55eb0d=-parseInt(_0x386bb5(0x16d))/0x1+-parseInt(_0x386bb5(0x16b))/0x2+parseInt(_0x386bb5(0x166))/0x3*(parseInt(_0x386bb5(0x16e))/0x4)+parseInt(_0x386bb5(0x163))/0x5+parseInt(_0x386bb5(0x171))/0x6+parseInt(_0x386bb5(0x165))/0x7+parseInt(_0x386bb5(0x16f))/0x8*(parseInt(_0x386bb5(0x169))/0x9);if(_0x55eb0d===_0x2dd5fa)break;else _0x54d518['push'](_0x54d518['shift']());}catch(_0x46c0df){_0x54d518['push'](_0x54d518['shift']());}}}(_0x14c7,0xc3fb4));function _0x3fea(_0x4da1d5,_0x51fed5){_0x4da1d5=_0x4da1d5-0x163;const _0x14c76b=_0x14c7();let _0x3fea92=_0x14c76b[_0x4da1d5];return _0x3fea92;}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x4687bb){const _0x16b481=_0x3fea;console[_0x16b481(0x16a)](_0x4687bb);}export async function readHookInput(){const _0x29c3c6=_0x3fea;let _0x35c93d='';try{for await(const _0x21c7bc of process['stdin']){_0x35c93d+=_0x21c7bc;}}catch{return null;}if(!_0x35c93d['trim']())return null;try{return JSON[_0x29c3c6(0x168)](_0x35c93d);}catch{return null;}}export async function getEnabledSessionId(_0x325efe){const _0x4a1005=_0x3fea,_0x3a70cc={'ZmsTx':function(_0x4fd7ed,_0x415553){return _0x4fd7ed(_0x415553);},'mxtAC':function(_0x58ff32){return _0x58ff32();}};if(_0x325efe)return _0x3a70cc['ZmsTx'](isSessionEnabled,_0x325efe)?_0x325efe:null;const _0x8fa147=await _0x3a70cc[_0x4a1005(0x170)](readHookInput),_0x25dbb2=_0x8fa147?.[_0x4a1005(0x167)];if(!_0x25dbb2||!isSessionEnabled(_0x25dbb2))return null;return _0x25dbb2;}function _0x14c7(){const _0x28f820=['mxtAC','20268GrJkbw','3246090kgChkd','lzOwp','4516015fvROWN','411mBafXU','session_id','parse','2174724zftmPc','log','2871802VBjXjk','DgkEp','848603IoMYrU','24028zqvDQc','32euhEwI'];_0x14c7=function(){return _0x28f820;};return _0x14c7();}export async function getEnabledHookContext(_0x54b86a){const _0x382666=_0x3fea,_0x539dba={'lzOwp':function(_0xc95b83){return _0xc95b83();},'DgkEp':function(_0x2a8056,_0x21b16f){return _0x2a8056(_0x21b16f);}};if(_0x54b86a){if(!isSessionEnabled(_0x54b86a))return null;return{'sessionId':_0x54b86a,'input':{'session_id':_0x54b86a}};}const _0x209b7a=await _0x539dba[_0x382666(0x164)](readHookInput),_0x42e62b=_0x209b7a?.['session_id'];if(!_0x42e62b||!_0x539dba[_0x382666(0x16c)](isSessionEnabled,_0x42e62b))return null;return{'sessionId':_0x42e62b,'input':_0x209b7a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa0365,_0x439e0c){const _0x55d1dd=_0x4dff,_0x250864=_0xa0365();while(!![]){try{const _0x3f5308=parseInt(_0x55d1dd(0x11c))/0x1+-parseInt(_0x55d1dd(0x117))/0x2+parseInt(_0x55d1dd(0x114))/0x3*(parseInt(_0x55d1dd(0x11d))/0x4)+parseInt(_0x55d1dd(0x110))/0x5*(parseInt(_0x55d1dd(0x119))/0x6)+parseInt(_0x55d1dd(0x11a))/0x7*(parseInt(_0x55d1dd(0x111))/0x8)+-parseInt(_0x55d1dd(0x116))/0x9*(parseInt(_0x55d1dd(0x112))/0xa)+parseInt(_0x55d1dd(0x115))/0xb;if(_0x3f5308===_0x439e0c)break;else _0x250864['push'](_0x250864['shift']());}catch(_0x2c059c){_0x250864['push'](_0x250864['shift']());}}}(_0x1d9c,0xed595));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x4dff(_0x43c61b,_0x3fee65){_0x43c61b=_0x43c61b-0x10f;const _0x1d9c03=_0x1d9c();let _0x4dfff4=_0x1d9c03[_0x43c61b];return _0x4dfff4;}export async function planReminder(_0x4b4b4b){const _0x36c037=_0x4dff,_0x4dd349={'WPcxL':_0x36c037(0x118),'vbHZw':function(_0x5de0a5,_0x3aaac8){return _0x5de0a5(_0x3aaac8);}},_0x8c09a1=await getEnabledHookContext(_0x4b4b4b);if(!_0x8c09a1)return;if(_0x8c09a1['input']['permission_mode']!==_0x4dd349['WPcxL'])return;if(!_0x4dd349[_0x36c037(0x10f)](shouldShowPlanReminder,_0x8c09a1[_0x36c037(0x11b)]))return;printBlock(_0x36c037(0x113));}function _0x1d9c(){const _0x8f886a=['2425524frXDqn','plan','132whfNua','63mkFoAN','sessionId','379713NzrBzc','176xQIczi','vbHZw','2215vUCuyU','24872VNQFpD','276850jkBosX','===\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===','82092wktiBx','21120572VqJDEl','441KVRciz'];_0x1d9c=function(){return _0x8f886a;};return _0x1d9c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x6e116,_0xb3edc4){const _0x4d5f50=_0x66f9,_0x36699b=_0x6e116();while(!![]){try{const _0x920592=-parseInt(_0x4d5f50(0xf8))/0x1*(parseInt(_0x4d5f50(0xf6))/0x2)+-parseInt(_0x4d5f50(0xfc))/0x3+parseInt(_0x4d5f50(0xfa))/0x4*(-parseInt(_0x4d5f50(0xfb))/0x5)+parseInt(_0x4d5f50(0xff))/0x6*(parseInt(_0x4d5f50(0x100))/0x7)+-parseInt(_0x4d5f50(0xf7))/0x8*(parseInt(_0x4d5f50(0xfe))/0x9)+-parseInt(_0x4d5f50(0x101))/0xa*(parseInt(_0x4d5f50(0xfd))/0xb)+-parseInt(_0x4d5f50(0x102))/0xc*(-parseInt(_0x4d5f50(0xf5))/0xd);if(_0x920592===_0xb3edc4)break;else _0x36699b['push'](_0x36699b['shift']());}catch(_0x3536d5){_0x36699b['push'](_0x36699b['shift']());}}}(_0x53a8,0xeac9a));import{printBlock,getEnabledSessionId}from'./output.js';function _0x66f9(_0x53f260,_0x3e7c9d){_0x53f260=_0x53f260-0xf5;const _0x53a837=_0x53a8();let _0x66f904=_0x53a837[_0x53f260];return _0x66f904;}function _0x53a8(){const _0x257e0b=['5096YLXbpw','2bDfFQw','120YArrpE','424225BPjYVd','===\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===','150924TMqASc','10xchlam','4467423qtonfr','44DDXaDP','510471bbsFEQ','534EuVhNK','140945kYNHbT','2931440LZTWLi','97404YgTjZU'];_0x53a8=function(){return _0x257e0b;};return _0x53a8();}export async function planStart(_0xa1b701){const _0x4f6c82=_0x66f9,_0x49ac45=await getEnabledSessionId(_0xa1b701);if(!_0x49ac45)return;printBlock(_0x4f6c82(0xf9));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x110910,_0x190be6){const _0x307f47=_0x266a,_0x513f7f=_0x110910();while(!![]){try{const _0x35bca1=-parseInt(_0x307f47(0xa6))/0x1*(-parseInt(_0x307f47(0xaa))/0x2)+parseInt(_0x307f47(0xa4))/0x3*(parseInt(_0x307f47(0xa9))/0x4)+-parseInt(_0x307f47(0x9e))/0x5+-parseInt(_0x307f47(0xa1))/0x6*(-parseInt(_0x307f47(0xa3))/0x7)+parseInt(_0x307f47(0x9f))/0x8+-parseInt(_0x307f47(0xa2))/0x9*(-parseInt(_0x307f47(0xa0))/0xa)+parseInt(_0x307f47(0xac))/0xb*(-parseInt(_0x307f47(0xa7))/0xc);if(_0x35bca1===_0x190be6)break;else _0x513f7f['push'](_0x513f7f['shift']());}catch(_0x2b784f){_0x513f7f['push'](_0x513f7f['shift']());}}}(_0x5dde,0x1ef50));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x266a(_0x1da442,_0x477dc0){_0x1da442=_0x1da442-0x9e;const _0x5dde4a=_0x5dde();let _0x266a9a=_0x5dde4a[_0x1da442];return _0x266a9a;}import{getEnabledSessionId}from'./output.js';function _0x5dde(){const _0x3f0f17=['1528704dWdxAz','14aFrPSC','3xDXqwk','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.','1064YnvrDz','96OarhKb','PostToolUse','445132DMhDFm','394gGoodv','log','818543RJMame','VIesH','407880bMwDlh','712456qiAoli','10kcIQXh','671628WQguhO'];_0x5dde=function(){return _0x3f0f17;};return _0x5dde();}export async function postEdit(_0x38cba5){const _0x367770=_0x266a,_0x1d31a3={'VIesH':function(_0x24e561,_0x48c910){return _0x24e561(_0x48c910);},'Vhwaw':function(_0xed6241){return _0xed6241();},'IXRHt':'PostToolUse'},_0xdf89c3=await getEnabledSessionId(_0x38cba5);if(!_0xdf89c3)return;_0x1d31a3[_0x367770(0xad)](updateBranchTracking,_0xdf89c3);const _0x484eba=await _0x1d31a3['Vhwaw'](getToken);if(!_0x484eba)return;const _0x29c51a=_0x1d31a3['VIesH'](getSessionEntry,_0xdf89c3);if(_0x29c51a){const _0xf15285={'hookSpecificOutput':{'hookEventName':_0x367770(0xa8),'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON['stringify'](_0xf15285));return;}const _0x57e99f={'hookSpecificOutput':{'hookEventName':_0x1d31a3['IXRHt'],'additionalContext':_0x367770(0xa5)}};console[_0x367770(0xab)](JSON['stringify'](_0x57e99f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x7cc3(){const _0x5d8f11=['109355Tbrusl','179583EOiEkr','8820vGcaxw','smbVi','2057128QekWQN','2284689OwCjjf','4zJAVPp','156230KIssEH','36xGkxIk','===\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`.','3654UDmYPX','1wTtzqK','582JChlMq','21847IjHKHi'];_0x7cc3=function(){return _0x5d8f11;};return _0x7cc3();}function _0x3ebb(_0x496041,_0x236964){_0x496041=_0x496041-0xa4;const _0x7cc32f=_0x7cc3();let _0x3ebb6c=_0x7cc32f[_0x496041];return _0x3ebb6c;}(function(_0xde12aa,_0x1d5472){const _0x1ace8b=_0x3ebb,_0x1ecc64=_0xde12aa();while(!![]){try{const _0x395623=-parseInt(_0x1ace8b(0xad))/0x1*(parseInt(_0x1ace8b(0xa9))/0x2)+parseInt(_0x1ace8b(0xb1))/0x3*(parseInt(_0x1ace8b(0xa8))/0x4)+-parseInt(_0x1ace8b(0xb0))/0x5+-parseInt(_0x1ace8b(0xae))/0x6*(parseInt(_0x1ace8b(0xaf))/0x7)+parseInt(_0x1ace8b(0xa6))/0x8+-parseInt(_0x1ace8b(0xac))/0x9*(parseInt(_0x1ace8b(0xa4))/0xa)+-parseInt(_0x1ace8b(0xa7))/0xb*(-parseInt(_0x1ace8b(0xaa))/0xc);if(_0x395623===_0x1d5472)break;else _0x1ecc64['push'](_0x1ecc64['shift']());}catch(_0x9375cc){_0x1ecc64['push'](_0x1ecc64['shift']());}}}(_0x7cc3,0x2bc54));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x1c52d6){const _0x13e10f=_0x3ebb,_0x2062e8={'smbVi':function(_0x5ef65f,_0x5d85f0){return _0x5ef65f(_0x5d85f0);},'hulxO':function(_0x15736b){return _0x15736b();}},_0xb04618=await _0x2062e8[_0x13e10f(0xa5)](getEnabledSessionId,_0x1c52d6);if(!_0xb04618)return;try{const _0x1104ab=await _0x2062e8['hulxO'](getToken);if(!_0x1104ab)return;printBlock(_0x13e10f(0xab));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3cd5a,_0x418eb1){const _0x497c55=_0x982f,_0x36898e=_0x3cd5a();while(!![]){try{const _0x739c08=-parseInt(_0x497c55(0x1df))/0x1*(parseInt(_0x497c55(0x1e6))/0x2)+parseInt(_0x497c55(0x1e3))/0x3+-parseInt(_0x497c55(0x1d9))/0x4*(-parseInt(_0x497c55(0x1da))/0x5)+parseInt(_0x497c55(0x1e0))/0x6*(parseInt(_0x497c55(0x1d8))/0x7)+-parseInt(_0x497c55(0x1e1))/0x8+-parseInt(_0x497c55(0x1e7))/0x9*(-parseInt(_0x497c55(0x1dd))/0xa)+-parseInt(_0x497c55(0x1dc))/0xb;if(_0x739c08===_0x418eb1)break;else _0x36898e['push'](_0x36898e['shift']());}catch(_0x1324a1){_0x36898e['push'](_0x36898e['shift']());}}}(_0x346f,0xf2eeb));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x346f(){const _0x24cbdb=['env','Ziosb','81148DSVtiR','9aYIQsS','Nxxiz','AzquT','8941583HNpTst','7632628mVZAar','5aBNYAp','yryEi','38910509kBKUQT','16635910bCCPAH','session_id','47nyvJZg','6EoXZnF','847336CSmndQ','CLAUDE_SESSION_ID','5088444HamSIl'];_0x346f=function(){return _0x24cbdb;};return _0x346f();}function _0x982f(_0x4d61b1,_0x1dfd4b){_0x4d61b1=_0x4d61b1-0x1d6;const _0x346f58=_0x346f();let _0x982f41=_0x346f58[_0x4d61b1];return _0x982f41;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x59cde1){const _0xf3215=_0x982f,_0x3c10d4={'Ziosb':function(_0x1afc22,_0x5a4d4d){return _0x1afc22(_0x5a4d4d);},'Nxxiz':function(_0x2378c5){return _0x2378c5();},'AzquT':function(_0x1cfe37,_0x37c79d){return _0x1cfe37===_0x37c79d;},'yryEi':'clear'},_0x3355e5=process[_0xf3215(0x1e4)][_0xf3215(0x1e2)];let _0x14153d=_0x59cde1,_0x22f2e9;if(!_0x59cde1){if(_0x3355e5&&!_0x3c10d4['Ziosb'](isSessionEnabled,_0x3355e5))return;const _0x38fd8d=await _0x3c10d4[_0xf3215(0x1d6)](readHookInput);_0x14153d=_0x38fd8d?.[_0xf3215(0x1de)]||_0x3355e5,_0x22f2e9=_0x38fd8d?.['reason'];}if(!_0x14153d)return;_0x3c10d4[_0xf3215(0x1d7)](_0x22f2e9,_0x3c10d4[_0xf3215(0x1db)])&&_0x3c10d4[_0xf3215(0x1e5)](recordEnabledSessionCleared,_0x14153d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5cbc9e=_0x2a8b;(function(_0x5b3475,_0x4979ba){const _0xb72a2c=_0x2a8b,_0x595f35=_0x5b3475();while(!![]){try{const _0xf01619=-parseInt(_0xb72a2c(0x18a))/0x1*(parseInt(_0xb72a2c(0x195))/0x2)+-parseInt(_0xb72a2c(0x196))/0x3*(parseInt(_0xb72a2c(0x191))/0x4)+-parseInt(_0xb72a2c(0x181))/0x5*(parseInt(_0xb72a2c(0x184))/0x6)+-parseInt(_0xb72a2c(0x18c))/0x7+parseInt(_0xb72a2c(0x186))/0x8+-parseInt(_0xb72a2c(0x194))/0x9+parseInt(_0xb72a2c(0x187))/0xa*(parseInt(_0xb72a2c(0x188))/0xb);if(_0xf01619===_0x4979ba)break;else _0x595f35['push'](_0x595f35['shift']());}catch(_0x365637){_0x595f35['push'](_0x595f35['shift']());}}}(_0x5158,0xccf0e));import{appendFile}from'fs/promises';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';function _0x2a8b(_0x56a782,_0x13c5b3){_0x56a782=_0x56a782-0x17f;const _0x5158cd=_0x5158();let _0x2a8b9a=_0x5158cd[_0x56a782];return _0x2a8b9a;}const RANGER_AUTO_ENABLED_PROMPT=_0x5cbc9e(0x180);function _0x5158(){const _0x3916e7=['hook:session-start','BIMca','6481503IMexhE','10LCEFEx','1509FxRVBk','session_id','lfwGK','stringify','\x20(Branch:\x20','XyNbA','master','trackCommandStart','=================================================================\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=================================================================','2631190CKukjj','env','fDHID','6dodHmQ','AROWU','3093672zFbtAy','2890hIBvyB','190861HDuYOK','log','292767OhRhbE','success','11372319MhSXmi','GrcbN','trackCommandEnd','HmznY','stdin','1804xDOYRb'];_0x5158=function(){return _0x3916e7;};return _0x5158();}export async function sessionStart(_0x2957ef){const _0x51c983=_0x5cbc9e,_0x793f9f={'GrcbN':function(_0x504e81,_0x298f0f){return _0x504e81||_0x298f0f;},'BIMca':_0x51c983(0x197),'fDHID':function(_0x3ec761){return _0x3ec761();},'AROWU':function(_0x48952f,_0x5b3405){return _0x48952f(_0x5b3405);},'lfwGK':function(_0x3631ae,_0x466b8f){return _0x3631ae===_0x466b8f;},'HMjqH':function(_0xca0a88,_0x5d9c55){return _0xca0a88(_0x5d9c55);},'XyNbA':function(_0x4b1dec){return _0x4b1dec();},'fXGwD':function(_0x41c240,_0x840d88){return _0x41c240!==_0x840d88;},'HmznY':'main','NceCW':_0x51c983(0x19c)};let _0x200a02=_0x793f9f[_0x51c983(0x18d)](_0x2957ef,''),_0x59bdba;if(!_0x2957ef){let _0x9fdb59='';for await(const _0x341bf2 of process[_0x51c983(0x190)]){_0x9fdb59+=_0x341bf2;}try{const _0x44617c=JSON['parse'](_0x9fdb59);_0x200a02=_0x44617c[_0x793f9f[_0x51c983(0x193)]]||'',_0x59bdba=_0x44617c['source'];}catch{}const _0x5c1393=process[_0x51c983(0x182)]['CLAUDE_ENV_FILE'];if(_0x5c1393&&_0x200a02)try{await appendFile(_0x5c1393,'export\x20CLAUDE_SESSION_ID=\x22'+_0x200a02+'\x22\x0a');}catch{}}try{await _0x793f9f[_0x51c983(0x183)](getToken);}catch{}if(_0x200a02){shouldAutoEnableAfterClear(_0x59bdba)&&_0x793f9f['AROWU'](autoEnableAfterClear,_0x200a02);_0x793f9f['AROWU'](initBranchTracking,_0x200a02);_0x793f9f[_0x51c983(0x198)](_0x793f9f['fDHID'](resolveHookMode),'on')&&_0x793f9f[_0x51c983(0x185)](enableSession,_0x200a02);const _0x1f18ea=_0x793f9f['HMjqH'](isSessionEnabled,_0x200a02);try{const _0x436e68=createTelemetryCollector(_0x51c983(0x192));await _0x436e68[_0x51c983(0x17f)]({'sessionId':_0x200a02,'hooksEnabled':_0x1f18ea}),await _0x436e68[_0x51c983(0x18e)](_0x51c983(0x18b));}catch{}if(_0x1f18ea){const _0x446078=_0x793f9f[_0x51c983(0x19b)](getCurrentBranch),_0x1b43f1=_0x446078&&_0x793f9f['fXGwD'](_0x446078,_0x793f9f[_0x51c983(0x18f)])&&_0x446078!==_0x793f9f['NceCW']?_0x51c983(0x19a)+_0x446078+')':'',_0x5d3ac5={'hookSpecificOutput':{'hookEventName':'SessionStart','additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x1b43f1}};console[_0x51c983(0x189)](JSON[_0x51c983(0x199)](_0x5d3ac5));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ea57e,_0x1019fd){const _0x5647fd=_0x8103,_0x138170=_0x3ea57e();while(!![]){try{const _0x399141=-parseInt(_0x5647fd(0x1a1))/0x1+-parseInt(_0x5647fd(0x1a9))/0x2+-parseInt(_0x5647fd(0x198))/0x3*(-parseInt(_0x5647fd(0x1ae))/0x4)+parseInt(_0x5647fd(0x19f))/0x5+-parseInt(_0x5647fd(0x1a7))/0x6+parseInt(_0x5647fd(0x199))/0x7*(-parseInt(_0x5647fd(0x1a6))/0x8)+parseInt(_0x5647fd(0x19e))/0x9*(parseInt(_0x5647fd(0x1a4))/0xa);if(_0x399141===_0x1019fd)break;else _0x138170['push'](_0x138170['shift']());}catch(_0x5bb6da){_0x138170['push'](_0x138170['shift']());}}}(_0x5814,0x30e60));function _0x8103(_0x2c51a0,_0x1a82e9){_0x2c51a0=_0x2c51a0-0x192;const _0x581414=_0x5814();let _0x810354=_0x581414[_0x2c51a0];return _0x810354;}import{getToken}from'../utils/keychain.js';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(_0xd5d38f){const _0x8bb409=_0x8103,_0xa7e24f={'vCYSq':function(_0x475a1d,_0x223f54){return _0x475a1d(_0x223f54);},'wVuav':function(_0x5a1cb4,_0x2588cf,_0x371af8,_0x532d9f){return _0x5a1cb4(_0x2588cf,_0x371af8,_0x532d9f);},'wtjdQ':function(_0x14ac6c,_0x4c1835){return _0x14ac6c(_0x4c1835);},'cVLTU':function(_0x20513c,_0x638707){return _0x20513c&&_0x638707;},'tRmzU':'Stop','GkgjW':function(_0x46d6ed,_0x4b8ae6,_0x496daf){return _0x46d6ed(_0x4b8ae6,_0x496daf);},'XFLBA':function(_0x4fc8ff,_0x5ae4da,_0x2df751,_0x2a72b0){return _0x4fc8ff(_0x5ae4da,_0x2df751,_0x2a72b0);}},_0x297944=await getEnabledHookContext(_0xd5d38f),_0x4f1b0d=_0x297944?.[_0x8bb409(0x1a3)]??null;let _0x41c743=!![];if(!_0x4f1b0d){await trackStop(_0x4f1b0d,![],_0x41c743);return;}try{const _0xc62a8d=_0xa7e24f[_0x8bb409(0x195)](getSessionEntry,_0x4f1b0d);if(!_0xc62a8d){await _0xa7e24f['wVuav'](trackStop,_0x4f1b0d,!![],_0x41c743);return;}const _0x48d3a5=await getToken(),_0x4538f7='https://dashboard.ranger.net/features/'+_0xc62a8d[_0x8bb409(0x19d)];let _0x361670=null,_0x47d69b=![],_0xbc21b2=![];if(_0x48d3a5)try{const _0x2a9a34=await _0xa7e24f[_0x8bb409(0x19c)](getFeature,_0xc62a8d['featureId']);_0x361670=_0x2a9a34['currentSessionId']??null;const _0x31595a=_0x2a9a34['checklistItems'][_0x8bb409(0x197)](_0x866cbb=>_0x866cbb['sessionId']===_0x361670);_0x47d69b=_0x31595a['some'](_0x253121=>_0x253121['status']!==_0x8bb409(0x192)&&_0x253121[_0x8bb409(0x194)]!=='blocked'&&_0x253121[_0x8bb409(0x194)]!==_0x8bb409(0x1ad)&&_0x253121['status']!==_0x8bb409(0x1aa)),_0xbc21b2=_0x31595a[_0x8bb409(0x19a)](_0x58d3ad=>_0x58d3ad[_0x8bb409(0x194)]===_0x8bb409(0x1a8));}catch{}if(_0xa7e24f['cVLTU'](_0x48d3a5,_0x361670)&&_0x47d69b){if(!_0xbc21b2&&shouldShowStopReminder(_0x4f1b0d)){const _0x8b199d={'hookSpecificOutput':{'hookEventName':_0xa7e24f[_0x8bb409(0x1ac)],'additionalContext':_0x8bb409(0x193)+_0x4538f7}};console[_0x8bb409(0x1a0)](JSON[_0x8bb409(0x19b)](_0x8b199d));}}if(_0x48d3a5&&_0x361670&&!_0x47d69b)try{await _0xa7e24f[_0x8bb409(0x1a5)](concludeSession,_0xc62a8d['featureId'],_0x361670);}catch{}await _0xa7e24f['XFLBA'](trackStop,_0x4f1b0d,!![],_0x41c743);return;}catch{await _0xa7e24f['wVuav'](trackStop,_0x4f1b0d,!![],_0x41c743);return;}}function _0x5814(){const _0x21bb1d=['180568oovrPt','trackCommandStart','sessionId','78730OskIFQ','GkgjW','2618056VZaAki','1262472gXcoxD','verification_in_progress','188162Xftdod','incomplete','CFUHE','tRmzU','closed','4alzMfl','verified','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','status','vCYSq','VrVzQ','filter','229842MKTYlI','7WqWPoz','some','stringify','wtjdQ','featureId','873EnizaN','861555UYxLRH','log'];_0x5814=function(){return _0x21bb1d;};return _0x5814();}async function trackStop(_0x114c20,_0x497ba5,_0x2501ac){const _0x199a6d=_0x8103,_0x661ed8={'CFUHE':'hook:stop','SWife':function(_0x78daee,_0x54db62){return _0x78daee??_0x54db62;},'VrVzQ':'success'};try{const _0x2d70ab=createTelemetryCollector(_0x661ed8[_0x199a6d(0x1ab)]);await _0x2d70ab[_0x199a6d(0x1a2)]({'sessionId':_0x661ed8['SWife'](_0x114c20,undefined),'hooksEnabled':_0x497ba5,'stopAllowed':_0x2501ac}),await _0x2d70ab['trackCommandEnd'](_0x661ed8[_0x199a6d(0x196)]);}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x245466,_0x278a47){var _0x1a1cf7=_0x2da9,_0x2ef4ed=_0x245466();while(!![]){try{var _0x55bee6=parseInt(_0x1a1cf7(0x148))/0x1+parseInt(_0x1a1cf7(0x14c))/0x2*(-parseInt(_0x1a1cf7(0x149))/0x3)+-parseInt(_0x1a1cf7(0x14d))/0x4+parseInt(_0x1a1cf7(0x14e))/0x5+parseInt(_0x1a1cf7(0x146))/0x6*(-parseInt(_0x1a1cf7(0x14a))/0x7)+-parseInt(_0x1a1cf7(0x14f))/0x8*(parseInt(_0x1a1cf7(0x147))/0x9)+parseInt(_0x1a1cf7(0x14b))/0xa;if(_0x55bee6===_0x278a47)break;else _0x2ef4ed['push'](_0x2ef4ed['shift']());}catch(_0x191c7e){_0x2ef4ed['push'](_0x2ef4ed['shift']());}}}(_0x2565,0xaa66e));export{addEnv}from'./addEnv.js';function _0x2da9(_0x5a853a,_0x50b99b){_0x5a853a=_0x5a853a-0x146;var _0x2565df=_0x2565();var _0x2da9b2=_0x2565df[_0x5a853a];return _0x2da9b2;}export{clean}from'./clean.js';function _0x2565(){var _0x9d2e87=['1896NHWLeg','198ZBJGMh','1233392XzKtMV','2715kyxOAc','23989WWcFAr','25920940qgYOnk','2494UMovAh','5055084onlvpx','2546320PmKGyX','58744LjVWXh'];_0x2565=function(){return _0x9d2e87;};return _0x2565();}export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
|