@ranger-testing/ranger-cli 3.1.3-alpha.e1ca941-42 → 3.1.4-alpha.96fdd81-47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -0
- 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 +3 -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 _0x30920e=_0x4613;(function(_0x2e247b,_0x20ddc7){const _0x5f49f7=_0x4613,_0xa2ae6a=_0x2e247b();while(!![]){try{const _0x311532=parseInt(_0x5f49f7(0x1c5))/0x1*(-parseInt(_0x5f49f7(0x174))/0x2)+-parseInt(_0x5f49f7(0x21b))/0x3*(parseInt(_0x5f49f7(0x1d7))/0x4)+-parseInt(_0x5f49f7(0x234))/0x5+parseInt(_0x5f49f7(0x15b))/0x6+-parseInt(_0x5f49f7(0x210))/0x7*(-parseInt(_0x5f49f7(0x1b2))/0x8)+parseInt(_0x5f49f7(0x158))/0x9*(-parseInt(_0x5f49f7(0x1f1))/0xa)+-parseInt(_0x5f49f7(0x184))/0xb*(-parseInt(_0x5f49f7(0x1bb))/0xc);if(_0x311532===_0x20ddc7)break;else _0xa2ae6a['push'](_0xa2ae6a['shift']());}catch(_0x4879c4){_0xa2ae6a['push'](_0xa2ae6a['shift']());}}}(_0x111b,0x5abbc));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x39653b 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';function _0x4613(_0x51b176,_0x34d0d4){_0x51b176=_0x51b176-0x156;const _0x111bee=_0x111b();let _0x4613e3=_0x111bee[_0x51b176];return _0x4613e3;}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=_0x30920e(0x160),bold=_0x3b3c9e=>_0x30920e(0x1b4)+_0x3b3c9e+'\x1b[0m';function getGitRepoUrl(){const _0x16b934=_0x30920e,_0x1a2a64={'WYXcB':'utf-8','ejaHI':'pipe','INxJu':_0x16b934(0x1fb)};try{const _0x2af660=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x1a2a64['WYXcB'],'stdio':[_0x1a2a64['ejaHI'],_0x1a2a64[_0x16b934(0x1ab)],'pipe']})[_0x16b934(0x156)]();return _0x2af660['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x1a2a64[_0x16b934(0x1b3)])[_0x16b934(0x159)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x50a91f=_0x30920e,_0x4b4836={'MxIKr':function(_0x1bea5e,_0x3a8928,_0x48b11a){return _0x1bea5e(_0x3a8928,_0x48b11a);},'ueZAn':_0x50a91f(0x173),'ALzRX':_0x50a91f(0x1e1)};try{return _0x4b4836[_0x50a91f(0x18f)](execSync,_0x4b4836[_0x50a91f(0x22e)],{'encoding':_0x50a91f(0x16d),'stdio':[_0x4b4836['ALzRX'],_0x50a91f(0x1e1),_0x4b4836['ALzRX']]})[_0x50a91f(0x156)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x280376=_0x30920e,_0xe183cf={'QveDt':function(_0x52e50f,_0x3bc364){return _0x52e50f(_0x3bc364);},'YvKfI':function(_0xf617bf,_0x2de162,_0x5a5b27){return _0xf617bf(_0x2de162,_0x5a5b27);}},_0x2256b5=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0xe183cf[_0x280376(0x176)](existsSync,_0x2256b5))return null;try{const _0x537044=await _0xe183cf[_0x280376(0x205)](readFile,_0x2256b5,_0x280376(0x16d));return _0x537044['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x183064){const _0x3bcb33=_0x30920e,_0x30d120={'PmJvv':function(_0x41e071,_0x5f4dbd,_0x3c7574){return _0x41e071(_0x5f4dbd,_0x3c7574);},'nrLnh':function(_0x3f383d,_0x2692e6,_0x494bc9){return _0x3f383d(_0x2692e6,_0x494bc9);}},_0xd85f07=getRangerDir(),_0x4f0e2b=_0x30d120[_0x3bcb33(0x15c)](join,_0xd85f07,ACTIVE_FEATURE_FILE);!existsSync(_0xd85f07)&&await _0x30d120['nrLnh'](mkdir,_0xd85f07,{'recursive':!![]}),await writeFile(_0x4f0e2b,_0x183064,_0x3bcb33(0x16d));}function getProgressDisplay(_0x90de1a){const _0x2a6f48=_0x30920e,_0x9fc59={'cEkdt':function(_0x40fee1,_0x2c4e0c){return _0x40fee1+_0x2c4e0c;},'stFNm':function(_0x241ce5,_0x312014){return _0x241ce5*_0x312014;},'wRKEG':function(_0x1667d3,_0x5cc87a){return _0x1667d3-_0x5cc87a;},'ShGgc':function(_0x17fb8a,_0x2ef07d){return _0x17fb8a>_0x2ef07d;},'KYHip':function(_0xdeed10,_0x3ed04a){return _0xdeed10>_0x3ed04a;}},_0xbf3e0a=_0x90de1a[_0x2a6f48(0x1d0)]||0x0,_0x44d1a0=_0x90de1a[_0x2a6f48(0x197)]||0x0,_0x5bcd55=_0x90de1a[_0x2a6f48(0x207)]||0x0,_0x5ba3dc=_0x90de1a['incompleteItems']||0x0,_0xef2706=_0x90de1a[_0x2a6f48(0x213)]||0x0,_0x3ddf61=_0x9fc59[_0x2a6f48(0x1d2)](_0x9fc59[_0x2a6f48(0x1d2)](_0xbf3e0a+_0x44d1a0,_0x5bcd55)+_0x5ba3dc,_0xef2706);if(_0x3ddf61===0x0)return'-';const _0x58295a=0xa,_0x384644=Math[_0x2a6f48(0x1a1)](_0x9fc59['stFNm'](_0xbf3e0a/_0x3ddf61,_0x58295a)),_0x1b6bef=_0x9fc59['cEkdt']('█'['repeat'](_0x384644),'░'[_0x2a6f48(0x17f)](_0x9fc59['wRKEG'](_0x58295a,_0x384644))),_0x23eb85=[];if(_0x9fc59[_0x2a6f48(0x1a0)](_0x5bcd55,0x0))_0x23eb85[_0x2a6f48(0x19f)](_0x5bcd55+'\x20blocked');if(_0x5ba3dc>0x0)_0x23eb85['push'](_0x5ba3dc+_0x2a6f48(0x1a9));if(_0x9fc59['KYHip'](_0x44d1a0,0x0))_0x23eb85[_0x2a6f48(0x19f)](_0x44d1a0+_0x2a6f48(0x1b9));const _0x43846c=_0x9fc59['KYHip'](_0x23eb85['length'],0x0)?'\x20('+_0x23eb85[_0x2a6f48(0x1da)](',\x20')+')':'';return _0x1b6bef+'\x20'+_0xbf3e0a+'/'+_0x3ddf61+_0x2a6f48(0x21c)+_0x43846c;}function getCurrentSessionItems(_0x4d7571,_0x1ce2f3){const _0x4954e3=_0x30920e;if(!_0x4d7571[_0x4954e3(0x1df)])return _0x1ce2f3[_0x4954e3(0x1c3)](_0x2a7c89=>!_0x2a7c89['sessionId']);return _0x1ce2f3['filter'](_0x42f77d=>_0x42f77d[_0x4954e3(0x22a)]===_0x4d7571['currentSessionId']||!_0x42f77d[_0x4954e3(0x22a)]);}function displayFeature(_0x2eedd6,_0x295c6e){const _0x21cee0=_0x30920e,_0x3df9d4={'klGAj':function(_0x3865f8,_0x26715a){return _0x3865f8>_0x26715a;},'WQoNs':function(_0x1a845e,_0x2b30d3){return _0x1a845e===_0x2b30d3;},'znuQU':_0x21cee0(0x1bd),'REZNN':function(_0x438899,_0x5b87f5){return _0x438899===_0x5b87f5;},'BzuGF':_0x21cee0(0x19e),'MqtNt':function(_0x546298,_0x54980b){return _0x546298===_0x54980b;},'Brkbk':function(_0x113ff2,_0x3af7f1){return _0x113ff2!==_0x3af7f1;},'HIeOs':_0x21cee0(0x206),'oKMiD':function(_0x132800,_0x231fc0){return _0x132800+_0x231fc0;}};console[_0x21cee0(0x20c)]('\x0a'+_0x2eedd6['name']+'\x20('+_0x2eedd6[_0x21cee0(0x188)]+')');_0x2eedd6[_0x21cee0(0x1ba)]&&console[_0x21cee0(0x20c)](_0x21cee0(0x1b7)+getProgressDisplay(_0x2eedd6['stats']));_0x2eedd6['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x2eedd6[_0x21cee0(0x19a)]);_0x2eedd6[_0x21cee0(0x232)]&&console['log'](_0x21cee0(0x199)+_0x2eedd6['gitRepoUrl']);_0x2eedd6[_0x21cee0(0x21a)]&&console[_0x21cee0(0x20c)]('\x20\x20\x20Branch:\x20'+_0x2eedd6[_0x21cee0(0x21a)]);console[_0x21cee0(0x20c)]('\x20\x20\x20Created:\x20'+new Date(_0x2eedd6[_0x21cee0(0x16f)])[_0x21cee0(0x23b)]());_0x2eedd6['completedAt']&&console[_0x21cee0(0x20c)](_0x21cee0(0x21f)+new Date(_0x2eedd6['completedAt'])['toLocaleString']());if(_0x295c6e&&_0x3df9d4[_0x21cee0(0x1ac)](_0x295c6e[_0x21cee0(0x161)],0x0)){console[_0x21cee0(0x20c)]('\x0a\x20\x20\x20Scenarios:');for(let _0x313957=0x0;_0x313957<_0x295c6e['length'];_0x313957++){const _0x1a2f5d=_0x295c6e[_0x313957];let _0xf243bc;if(_0x3df9d4[_0x21cee0(0x219)](_0x1a2f5d['status'],_0x3df9d4[_0x21cee0(0x193)])&&_0x3df9d4['REZNN'](_0x1a2f5d[_0x21cee0(0x169)],_0x3df9d4['BzuGF']))_0xf243bc='✅';else{if(_0x1a2f5d['status']==='verified')_0xf243bc='🟢';else{if(_0x3df9d4[_0x21cee0(0x1cf)](_0x1a2f5d[_0x21cee0(0x23d)],_0x21cee0(0x222)))_0xf243bc='🟠';else{if(_0x1a2f5d['status']===_0x21cee0(0x1dc))_0xf243bc='🛑';else{if(_0x1a2f5d['status']===_0x3df9d4['znuQU'])_0xf243bc='⛔';else _0x1a2f5d['status']==='verification_in_progress'?_0xf243bc='⏳':_0xf243bc='⬜';}}}}const _0xb8941c=_0x3df9d4['klGAj'](_0x1a2f5d[_0x21cee0(0x208)],0x1)?_0x21cee0(0x1a5)+_0x1a2f5d[_0x21cee0(0x208)]+')':'',_0x269985=_0x3df9d4['klGAj'](_0x1a2f5d['version'],0x1)&&_0x1a2f5d[_0x21cee0(0x217)]&&_0x3df9d4['Brkbk'](_0x1a2f5d[_0x21cee0(0x23d)],'closed')&&_0x1a2f5d[_0x21cee0(0x23d)]!==_0x3df9d4['HIeOs']?_0x21cee0(0x1e0):'';console['log'](_0x21cee0(0x200)+_0x3df9d4['oKMiD'](_0x313957,0x1)+'.\x20'+_0xf243bc+'\x20'+_0x1a2f5d[_0x21cee0(0x19a)]+_0xb8941c+_0x269985);_0x3df9d4['MqtNt'](_0x1a2f5d['status'],'blocked')&&_0x1a2f5d['blockedReason']&&console['log'](_0x21cee0(0x1ae)+_0x1a2f5d[_0x21cee0(0x198)]);_0x3df9d4['WQoNs'](_0x1a2f5d[_0x21cee0(0x23d)],_0x21cee0(0x222))&&_0x1a2f5d['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x1a2f5d[_0x21cee0(0x1b5)]);if(_0x3df9d4[_0x21cee0(0x219)](_0x1a2f5d['status'],'closed')&&_0x1a2f5d['terminalReason']===_0x3df9d4['BzuGF'])console['log'](_0x21cee0(0x1d8));else _0x1a2f5d['status']===_0x21cee0(0x1bd)&&_0x1a2f5d[_0x21cee0(0x190)]&&console[_0x21cee0(0x20c)](_0x21cee0(0x19b)+_0x1a2f5d['canceledReason']);}}}export async function featureCreate(_0x142dfe,_0x2a87b8){const _0x5449ca=_0x30920e,_0x5c5467={'LmVLH':function(_0x3ea0ed){return _0x3ea0ed();},'dKoHJ':function(_0x4da252,_0x59a7c3){return _0x4da252===_0x59a7c3;},'deRoJ':function(_0x441331,_0xfb8efe){return _0x441331(_0xfb8efe);},'yhzDq':function(_0x50c46d){return _0x50c46d();},'PYgHc':function(_0x5c1020,_0x2f6236){return _0x5c1020(_0x2f6236);},'RepuB':function(_0xfe2ccf,_0x21ca4f){return _0xfe2ccf(_0x21ca4f);},'BNIxR':function(_0x42bb9c,_0x3241e9,_0xcf7230){return _0x42bb9c(_0x3241e9,_0xcf7230);}},{envNames:_0x57a70b}=await _0x5c5467[_0x5449ca(0x1f7)](getEnvNames);if(_0x5c5467[_0x5449ca(0x170)](_0x57a70b[_0x5449ca(0x161)],0x0)&&!process['env'][_0x5449ca(0x1e5)]){let _0x196385=0x0;try{_0x196385=(await listCloudProfiles())[_0x5449ca(0x161)];}catch{_0x196385=0x1;}_0x196385===0x0&&console['warn']('\x0a'+_0x5c5467[_0x5449ca(0x18e)](formatProfileRequiredMessage,_0x118565=>bold(_0x118565)));}const _0x4900f0=_0x2a87b8[_0x5449ca(0x1f8)]?_0x2a87b8['scenarios']['map'](_0x33c014=>_0x33c014['trim']()):[],_0xded180=_0x5c5467[_0x5449ca(0x1c7)](getGitRepoUrl),_0x217a23=getGitBranch();console[_0x5449ca(0x20c)]('\x0aCreating\x20feature\x20review...');const _0x3c5941=await _0x5c5467['PYgHc'](createFeature,{'name':_0x142dfe,'description':_0x2a87b8[_0x5449ca(0x19a)],'checklist':_0x4900f0,'gitRepoUrl':_0xded180,'gitBranch':_0x217a23});await _0x5c5467['PYgHc'](setActiveFeatureId,_0x3c5941['id']),await _0x5c5467[_0x5449ca(0x23a)](tryStartCurrentSession,_0x3c5941['id']);const _0x59c41c=process['env']['CLAUDE_SESSION_ID'];_0x59c41c&®isterSession(_0x59c41c,_0x3c5941['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x3c5941['id']),_0x5c5467[_0x5449ca(0x16b)](displayFeature,_0x3c5941,_0x3c5941[_0x5449ca(0x18c)]),console['log'](_0x5449ca(0x23c));}export async function featureList(_0x20d07a){const _0x34c6a1=_0x30920e,_0x32a4ea={'VdfCv':'\x0aNo\x20feature\x20reviews\x20found.','oNMRf':function(_0x194a75,_0x238218){return _0x194a75(_0x238218);},'PRBQm':function(_0x4a8e44,_0xf3c9a){return _0x4a8e44<_0xf3c9a;},'dmROb':_0x34c6a1(0x1c8)},_0x2ddff7={'limit':_0x20d07a['limit']??0xa,'offset':_0x20d07a['offset']??0x0,'includeDeleted':_0x20d07a['includeDeleted']};_0x20d07a[_0x34c6a1(0x1fc)]&&(_0x2ddff7['gitRepoUrl']=getGitRepoUrl(),_0x2ddff7[_0x34c6a1(0x21a)]=getGitBranch());const _0x285ba8=await listFeatures(_0x2ddff7);if(_0x285ba8[_0x34c6a1(0x172)]['length']===0x0){console[_0x34c6a1(0x20c)](_0x32a4ea['VdfCv']);return;}const _0x16f5a7=_0x285ba8['totalCount']>_0x285ba8[_0x34c6a1(0x172)][_0x34c6a1(0x161)]?'Showing\x20'+_0x285ba8[_0x34c6a1(0x172)]['length']+'\x20of\x20'+_0x285ba8[_0x34c6a1(0x1f0)]:_0x285ba8[_0x34c6a1(0x1f0)]+_0x34c6a1(0x1e3);console[_0x34c6a1(0x20c)]('\x0a'+_0x16f5a7+':\x0a');for(const _0xf45314 of _0x285ba8[_0x34c6a1(0x172)]){console[_0x34c6a1(0x20c)](''+_0xf45314[_0x34c6a1(0x192)]),console[_0x34c6a1(0x20c)]('\x20\x20\x20ID:\x20'+_0xf45314['id']),_0xf45314['stats']&&console['log'](_0x34c6a1(0x1b7)+_0x32a4ea[_0x34c6a1(0x215)](getProgressDisplay,_0xf45314[_0x34c6a1(0x1ba)])),_0xf45314['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0xf45314[_0x34c6a1(0x21a)]),console[_0x34c6a1(0x20c)]('\x20\x20\x20Created:\x20'+new Date(_0xf45314[_0x34c6a1(0x16f)])['toLocaleDateString']()),console[_0x34c6a1(0x20c)]('');}const _0x1a237c=_0x2ddff7[_0x34c6a1(0x1a3)]??0xa,_0x382087=(_0x2ddff7[_0x34c6a1(0x224)]??0x0)+_0x285ba8[_0x34c6a1(0x172)][_0x34c6a1(0x161)];if(_0x32a4ea[_0x34c6a1(0x216)](_0x382087,_0x285ba8['totalCount'])){const _0x9ce5aa=_0x1a237c!==0xa?'\x20--limit\x20'+_0x1a237c:'',_0x4eb386=_0x20d07a['currentBranch']?'\x20--current-branch':'',_0x2cc6a7=_0x20d07a['includeDeleted']?_0x32a4ea[_0x34c6a1(0x1b0)]:'';console[_0x34c6a1(0x20c)](_0x34c6a1(0x1c9)+_0x382087+_0x9ce5aa+_0x4eb386+_0x2cc6a7);}}export async function featureShow(_0xd2b918){const _0x1e3164=_0x30920e,_0x3c26b0={'vxMgT':function(_0x1a6502){return _0x1a6502();},'tQOKf':function(_0x593a68,_0x38f703){return _0x593a68(_0x38f703);},'tGkKU':function(_0x50a4e4,_0x31bbd0,_0x1cec37){return _0x50a4e4(_0x31bbd0,_0x1cec37);}},_0xf058e5=_0xd2b918||await _0x3c26b0['vxMgT'](getActiveFeatureId);if(!_0xf058e5)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 _0x54869b=await _0x3c26b0[_0x1e3164(0x15f)](getFeature,_0xf058e5);_0x3c26b0['tGkKU'](displayFeature,_0x54869b,_0x54869b[_0x1e3164(0x18c)]);}export async function featureResume(_0x15d72c){const _0x70ef2=_0x30920e,_0xed84db={'KMZXv':function(_0x4d5701,_0x99d10b){return _0x4d5701(_0x99d10b);},'GwTGJ':function(_0x30b87d,_0x36ac81,_0x1bc2b5){return _0x30b87d(_0x36ac81,_0x1bc2b5);},'mKrAE':function(_0x5274db){return _0x5274db();},'CphmU':function(_0x543811,_0x4e7d6c){return _0x543811||_0x4e7d6c;},'orGUy':_0x70ef2(0x165),'vZEdC':function(_0xf3be8e,_0xd36a96){return _0xf3be8e(_0xd36a96);},'zEJzV':function(_0x46dbd1,_0x20414b){return _0x46dbd1===_0x20414b;},'NmmQj':_0x70ef2(0x20b),'KDMAy':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','uDVHM':_0x70ef2(0x1ca),'cYazr':function(_0x6c6ad,_0x8c1f0c){return _0x6c6ad(_0x8c1f0c);},'sFCWI':_0x70ef2(0x1f9),'IBbKR':_0x70ef2(0x1f6),'hTJDD':function(_0xee6112,_0x4a85d8,_0x48aa7e){return _0xee6112(_0x4a85d8,_0x48aa7e);},'HUBoa':function(_0x5e25d0,_0x4b24df){return _0x5e25d0(_0x4b24df);},'EcQKn':function(_0x7ed891,_0x5de659,_0x4f642d){return _0x7ed891(_0x5de659,_0x4f642d);}};if(_0x15d72c){const _0xdfe951=await getFeature(_0x15d72c);await _0xed84db[_0x70ef2(0x220)](setActiveFeatureId,_0xdfe951['id']);const _0x132b1f=getGitBranch();_0x132b1f&&_0x132b1f!==_0xdfe951[_0x70ef2(0x21a)]&&(await _0xed84db[_0x70ef2(0x1a7)](updateFeature,_0xdfe951['id'],{'gitBranch':_0x132b1f}),console['log'](_0x70ef2(0x229)+_0x132b1f));console[_0x70ef2(0x20c)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xdfe951['name']+'\x20('+_0xdfe951['id']+')'),await _0xed84db['KMZXv'](tryStartCurrentSession,_0xdfe951['id']);const _0x53d35a=process[_0x70ef2(0x214)][_0x70ef2(0x1ec)];_0x53d35a&&_0xed84db['GwTGJ'](registerSession,_0x53d35a,_0xdfe951['id']);displayFeature(_0xdfe951,_0xdfe951['checklistItems']),await printFeedbackNudge(_0xdfe951['id']);return;}const _0x195caf=getGitRepoUrl(),_0x541145=_0xed84db[_0x70ef2(0x20a)](getGitBranch);if(!_0x195caf&&!_0x541145)throw new Error(_0x70ef2(0x1fd));console[_0x70ef2(0x20c)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0xed84db[_0x70ef2(0x227)](_0x195caf,_0xed84db['orGUy'])+_0x70ef2(0x21d)+(_0x541145||'any')+'...');const _0x51d828=await _0xed84db[_0x70ef2(0x164)](listFeatures,{'gitRepoUrl':_0x195caf,'gitBranch':_0x541145}),_0x6c161c=_0x51d828[_0x70ef2(0x172)][_0x70ef2(0x1c3)](_0x33a4dd=>_0x33a4dd[_0x70ef2(0x23d)]?_0x33a4dd[_0x70ef2(0x23d)]!==_0x70ef2(0x206):!_0x33a4dd[_0x70ef2(0x239)]);if(_0xed84db[_0x70ef2(0x212)](_0x6c161c['length'],0x0)){console['log'](_0xed84db['NmmQj']),console[_0x70ef2(0x20c)](_0xed84db[_0x70ef2(0x1af)]);return;}let _0x289f0c;if(_0xed84db[_0x70ef2(0x212)](_0x6c161c['length'],0x1))_0x289f0c=_0x6c161c[0x0];else{const _0xec6dbb=process[_0x70ef2(0x1dd)]['isTTY']&&process[_0x70ef2(0x15d)]['isTTY'];if(!_0xec6dbb){console[_0x70ef2(0x20c)](_0xed84db[_0x70ef2(0x180)]);for(const _0x1c513e of _0x6c161c){console[_0x70ef2(0x20c)]('\x20\x20'+_0x1c513e[_0x70ef2(0x192)]),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x1c513e['id']),_0x1c513e[_0x70ef2(0x1ba)]&&console[_0x70ef2(0x20c)]('\x20\x20\x20\x20\x20Progress:\x20'+_0xed84db['cYazr'](getProgressDisplay,_0x1c513e['stats'])),_0x1c513e[_0x70ef2(0x21a)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x1c513e[_0x70ef2(0x21a)]);}throw new Error(_0xed84db['sFCWI']);}const {selected:_0x398775}=await _0x39653b['prompt']([{'type':_0x70ef2(0x1e6),'name':'selected','message':_0xed84db[_0x70ef2(0x185)],'choices':_0x6c161c['map'](_0x3b0762=>({'name':_0x3b0762[_0x70ef2(0x192)]+'\x20('+_0x3b0762['id']+')','value':_0x3b0762['id']}))}]);_0x289f0c=_0x6c161c['find'](_0x1836eb=>_0x1836eb['id']===_0x398775);}await setActiveFeatureId(_0x289f0c['id']);_0x541145&&_0x541145!==_0x289f0c[_0x70ef2(0x21a)]&&(await _0xed84db['hTJDD'](updateFeature,_0x289f0c['id'],{'gitBranch':_0x541145}),console['log'](_0x70ef2(0x229)+_0x541145));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x289f0c['name']+'\x20('+_0x289f0c['id']+')'),await _0xed84db['HUBoa'](tryStartCurrentSession,_0x289f0c['id']);const _0x3736a1=await _0xed84db[_0x70ef2(0x20e)](getFeature,_0x289f0c['id']),_0x5902b8=process['env']['CLAUDE_SESSION_ID'];_0x5902b8&&_0xed84db['EcQKn'](registerSession,_0x5902b8,_0x3736a1['id']),displayFeature(_0x3736a1,_0x3736a1[_0x70ef2(0x18c)]),await printFeedbackNudge(_0x3736a1['id']);}async function printFeedbackNudge(_0x433365){const _0x330a8e=_0x30920e,_0x10e986={'arDvk':function(_0x3bd942,_0x130dbe,_0x32c7d3){return _0x3bd942(_0x130dbe,_0x32c7d3);},'gAsnU':function(_0x393603,_0x1ea5c0){return _0x393603>_0x1ea5c0;},'lcpuV':function(_0x12d3d1,_0x4911f1){return _0x12d3d1>_0x4911f1;}};try{const {items:_0x3e27b3}=await getActionItems(_0x433365);let _0x5507f6=0x0,_0x35af14=0x0;for(const _0x23a280 of _0x3e27b3){const _0x116293=await _0x10e986[_0x330a8e(0x17d)](getItemFeedback,_0x433365,_0x23a280['id']);_0x10e986[_0x330a8e(0x157)](_0x116293[_0x330a8e(0x218)]['length'],0x0)&&(_0x5507f6+=_0x116293[_0x330a8e(0x218)][_0x330a8e(0x161)],_0x35af14++);}_0x10e986['lcpuV'](_0x5507f6,0x0)&&(console['log']('\x0a⚠️\x20\x20'+_0x5507f6+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x35af14+'\x20scenario(s).'),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x56e077){const _0x1a06fe=_0x30920e;try{const {sessions:_0x30dfb4}=await listFeatureSessions(_0x56e077),_0x1c4c17=_0x30dfb4['find'](_0x43397e=>_0x43397e[_0x1a06fe(0x23d)]==='ready');_0x1c4c17&&(await startSession(_0x56e077,_0x1c4c17['id']),console['log'](_0x1a06fe(0x15a)+_0x1c4c17[_0x1a06fe(0x1c0)]));}catch{}}export async function featureReport(_0x3531dd,_0x51132e){const _0x5c216e=_0x30920e,_0x3950b8={'APEOl':function(_0x4e50f5){return _0x4e50f5();},'IXjFR':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ZQfYS':function(_0x540ffa,_0x262ee8,_0x3473db,_0x5acbdf){return _0x540ffa(_0x262ee8,_0x3473db,_0x5acbdf);},'KcZNz':'reports','PGkJS':function(_0x5802ed,_0x9f2016,_0x3f4a5b,_0x4d091e){return _0x5802ed(_0x9f2016,_0x3f4a5b,_0x4d091e);}},_0x5b50c0=_0x3531dd||await _0x3950b8['APEOl'](getActiveFeatureId);if(!_0x5b50c0)throw new Error(_0x3950b8[_0x5c216e(0x1a2)]);console['log']('\x0aGenerating\x20report...');const _0x183a71=await getFeatureReportMarkdown(_0x5b50c0,{'style':_0x51132e['style']}),_0x2f7bf1=_0x51132e['output']||_0x3950b8[_0x5c216e(0x1d3)](join,getRangerDir(),_0x3950b8['KcZNz'],_0x5b50c0+_0x5c216e(0x235)),_0x24089e=join(_0x2f7bf1,'..');!existsSync(_0x24089e)&&await mkdir(_0x24089e,{'recursive':!![]}),await _0x3950b8['PGkJS'](writeFile,_0x2f7bf1,_0x183a71,'utf-8'),console[_0x5c216e(0x20c)]('\x0a✅\x20Report\x20generated:\x20'+_0x2f7bf1);}function getScenarioResult(_0x16a817){const _0x30647c=_0x30920e,_0x46b257={'TEBaq':'closed','PEAxd':'verification_in_progress','CFIMq':_0x30647c(0x171)};if(_0x16a817['status']===_0x46b257[_0x30647c(0x162)])return _0x16a817['terminalReason']??'closed';if(_0x16a817['status']===_0x46b257[_0x30647c(0x1d4)])return _0x46b257['CFIMq'];return _0x16a817[_0x30647c(0x23d)];}function getScenarioRationale(_0x3422da,_0x102d82){const _0x3ddec9=_0x30920e;if(_0x102d82)return _0x102d82;if(_0x3422da[_0x3ddec9(0x198)])return _0x3422da['blockedReason'];if(_0x3422da[_0x3ddec9(0x1b5)])return _0x3422da[_0x3ddec9(0x1b5)];if(_0x3422da['canceledReason'])return _0x3422da[_0x3ddec9(0x190)];if(_0x3422da['notes'])return _0x3422da[_0x3ddec9(0x1db)];return null;}function _0x111b(){const _0x3ca495=['tQOKf','active-feature.txt','length','TEBaq','\x20\x20Expected\x20flow:','vZEdC','any','Scenario\x20','screenshotUrls','\x0a❌\x20Invalid\x20scenario\x20index:\x20','terminalReason','RgPDu','BNIxR','axvPI','utf-8','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','createdAt','dKoHJ','in_progress','items','git\x20rev-parse\x20--abbrev-ref\x20HEAD','22378oVOGey','No\x20scenarios\x20found.','QveDt','RTIGL','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','scenario','short','\x20Session\x20','\x0a✅\x20Scenario\x20updated','arDvk','RXETA','repeat','uDVHM','timing','assets','content','11OsZaDt','IBbKR','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','map','dashboardUrl','wuItX','write','slice','checklistItems','XgJFw','deRoJ','MxIKr','canceledReason','toFixed','name','znuQU','exit','rVntW','YKCpX','verificationInProgressItems','blockedReason','\x20\x20\x20Repository:\x20','description','\x20\x20\x20\x20\x20\x20Cancelled:\x20','authorName','UCTYv','approved','push','ShGgc','round','IXjFR','limit','arrayBuffer','\x20(v','\x20at\x20[','GwTGJ','pop','\x20incomplete','assetType','ejaHI','klGAj','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x20\x20\x20\x20\x20\x20Blocked:\x20','KDMAy','dmROb','kfoWt','40tDzWkW','INxJu','\x1b[1m','incompleteReason','ZZCfY','\x20\x20\x20Progress:\x20','kAIVz','\x20in\x20progress','stats','7359036BkGAup','textContent','closed','domRef','json','iteration','No\x20active\x20session\x20for\x20this\x20feature\x20review.','latestReview','filter','trimEnd','12TaxRzD','numeric','yhzDq','\x20--include-deleted','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20—\x20no\x20comments','\x20\x20\x20Status:\x20','isKeyStep','UpmcH','MqtNt','verifiedItems','comment_','cEkdt','ZQfYS','PEAxd','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','HvODi','76WtSfqG','\x20\x20\x20\x20\x20\x20Approved','split','join','notes','blocked','stdin','):\x20\x22','currentSessionId','\x20[has\x20reviewer\x20feedback]','pipe','/api/v1/mcp/browser-sessions/','\x20feature\x20review(s)\x20found','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','RANGER_TEST_USERNAME','list','find','\x20unaddressed\x20comment(s)','XAvol','completed','get','CLAUDE_SESSION_ID',':\x20\x22','\x20\x20\x20\x20','nLwfB','totalCount','90PbnZPn','vdKsn','Unknown','TthCb','all','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','LmVLH','scenarios','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','type','github.com/','currentBranch','Not\x20in\x20a\x20git\x20repository.','UIfmR','rFyHr','\x20\x20\x20','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','error','en-US','riewe','YvKfI','verified','blockedItems','version','HFxrr','mKrAE','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','log','linkedSession','cYazr','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','949277vbzist','\x20\x20\x20Created:\x20','zEJzV','pendingItems','env','oNMRf','PRBQm','parentItemId','unaddressedComments','WQoNs','gitBranch','28983eaPNWg','\x20verified','\x20/\x20','IFhEE','\x20\x20\x20Completed:\x20','KMZXv','canonicalFlow','incomplete','from','offset','CYZfr','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','CphmU','\x0a✅\x20Session\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','sessionId','\x20\x20✅\x20No\x20feedback\x20to\x20address','screenshot','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ueZAn','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','RTzaR','element','gitRepoUrl','after','2648535LphnYY','.md','spatial','.png','browserSessionId','completedAt','RepuB','toLocaleString','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','status','position','trim','gAsnU','405639MloeBS','replace','\x20\x20\x20▶️\x20Started\x20session\x20','2001054bvwjtD','PmJvv','stdout','selector'];_0x111b=function(){return _0x3ca495;};return _0x111b();}export async function featureReportPrDescription(_0x47c9cd,_0x441164){const _0x3d257d=_0x30920e,_0xaf43f9={'TthCb':function(_0x171884){return _0x171884();},'ecWjq':function(_0x1aa04a,_0x549de5,_0x442b7c){return _0x1aa04a(_0x549de5,_0x442b7c);},'UCTYv':function(_0x5b6277,_0x51f423){return _0x5b6277+_0x51f423;},'itQdl':function(_0xfb3496,_0x42c121){return _0xfb3496===_0x42c121;},'RXETA':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','XAvol':function(_0x465c3c,_0x53531e,_0x126307,_0x550ff1){return _0x465c3c(_0x53531e,_0x126307,_0x550ff1);}},_0x44ded1=_0x47c9cd||await _0xaf43f9[_0x3d257d(0x1f4)](getActiveFeatureId);if(!_0x44ded1)throw new Error(_0x3d257d(0x1e4));const _0x3edee5=await getFeature(_0x44ded1),_0x7e2f40=_0x3edee5['checklistItems']||[],_0x5a3371=_0xaf43f9['ecWjq'](getCurrentSessionItems,_0x3edee5,_0x7e2f40);_0x5a3371['length']===0x0&&(console['error'](_0x3d257d(0x1d5)),process['exit'](0x1));const _0x1fc1be=_0x441164['excludeScenarios']??[],_0x53a6dc=_0x1fc1be['filter'](_0x1eb964=>!Number['isInteger'](_0x1eb964)||_0x1eb964<0x1||_0x1eb964>_0x5a3371[_0x3d257d(0x161)]);if(_0x53a6dc['length']>0x0){console['error'](_0x3d257d(0x22f)+_0x53a6dc[_0x3d257d(0x1da)](',\x20')),console[_0x3d257d(0x20c)]('\x0aAvailable\x20scenarios:');for(let _0x4b355c=0x0;_0x4b355c<_0x5a3371['length'];_0x4b355c++){console['log']('\x20\x20'+_0xaf43f9[_0x3d257d(0x19d)](_0x4b355c,0x1)+'.\x20'+_0x5a3371[_0x4b355c]['description']);}process[_0x3d257d(0x194)](0x1);}const _0x52b769=new Set(_0x1fc1be[_0x3d257d(0x187)](_0x533525=>_0x533525-0x1)),_0x56f4b3=_0x5a3371[_0x3d257d(0x1c3)]((_0x187a33,_0x2d7ef6)=>!_0x52b769['has'](_0x2d7ef6));_0xaf43f9['itQdl'](_0x56f4b3[_0x3d257d(0x161)],0x0)&&(console[_0x3d257d(0x202)](_0xaf43f9[_0x3d257d(0x17e)]),process['exit'](0x1));if(_0x441164[_0x3d257d(0x1bf)])await _0xaf43f9[_0x3d257d(0x1e9)](outputJsonReport,_0x44ded1,_0x3edee5,_0x56f4b3);else{const _0x13ebe3=await getFeatureReportMarkdown(_0x44ded1,{'itemIds':_0x56f4b3[_0x3d257d(0x187)](_0x2f8ba2=>_0x2f8ba2['id'])});process[_0x3d257d(0x15d)]['write'](_0x13ebe3[_0x3d257d(0x1c4)]()+'\x0a');}}async function outputJsonReport(_0x5baa37,_0x2bdb68,_0x48a0e8){const _0x484a5e=_0x30920e,_0xfcbcf3={'UIfmR':function(_0x4f9207,_0x1f1425){return _0x4f9207(_0x1f1425);},'LSjFT':function(_0x3aff6b,_0x2bfca5){return _0x3aff6b===_0x2bfca5;},'IFhEE':function(_0x5e1a14,_0x569f92,_0x458ea6){return _0x5e1a14(_0x569f92,_0x458ea6);},'TssYt':function(_0x54d5f6){return _0x54d5f6();}},_0x1d482f=_0xfcbcf3['TssYt'](getApiBaseUrl),_0x23f517=await _0xfcbcf3[_0x484a5e(0x1fe)](getFeatureReport,_0x5baa37),_0xfe99c3=new Map(_0x23f517['checklistItems']['map'](_0x4ac329=>[_0x4ac329['id'],_0x4ac329])),_0x210b0b=await Promise[_0x484a5e(0x1f5)](_0x48a0e8['map'](async _0x3782e0=>{const _0x4458f3=_0x484a5e,_0x5df540=_0xfe99c3[_0x4458f3(0x1eb)](_0x3782e0['id']),_0x3c5fc6=_0x5df540?.[_0x4458f3(0x20d)]??null;let _0x4c66ba=[];if(_0x3782e0['browserSessionId'])try{const {steps:_0x183d4d}=await _0xfcbcf3['UIfmR'](getBrowserSessionSteps,_0x3782e0['browserSessionId']);_0x183d4d['length']>0x0&&(_0x4c66ba=_0x183d4d[_0x4458f3(0x187)](_0x3e4ad3=>{const _0x4d61de=_0x4458f3,_0x1423c6=_0x3e4ad3[_0x4d61de(0x182)][_0x4d61de(0x1e7)](_0x256d92=>_0x256d92[_0x4d61de(0x1aa)]==='screenshot'&&_0x256d92[_0x4d61de(0x181)]===_0x4d61de(0x233))??_0x3e4ad3['assets'][_0x4d61de(0x1e7)](_0x2f15d9=>_0x2f15d9['assetType']===_0x4d61de(0x22c));let _0x5c3c1f=null,_0x588570=null;if(_0x1423c6){const _0x5e7dbc=_0x1423c6['storage']['location'][_0x4d61de(0x1d9)]('/')[_0x4d61de(0x1a8)]();_0x5c3c1f=_0x1d482f+_0x4d61de(0x1e2)+_0x3782e0[_0x4d61de(0x238)]+'/artifacts/'+_0x5e7dbc,_0x5e7dbc&&(_0x588570=_0x5e7dbc['replace'](/\.\w+$/,'')[_0x4d61de(0x159)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x588570||_0x3e4ad3[_0x4d61de(0x19a)]||_0x3e4ad3['stepName']||'Step\x20'+_0x3e4ad3[_0x4d61de(0x23e)],'screenshot':_0x5c3c1f,'is_key_step':_0x3e4ad3[_0x4d61de(0x1cd)]};}));}catch{}return _0xfcbcf3['LSjFT'](_0x4c66ba[_0x4458f3(0x161)],0x0)&&_0x3c5fc6?.[_0x4458f3(0x167)]&&(_0x4c66ba=_0x3c5fc6[_0x4458f3(0x167)]['map']((_0x4dfe5e,_0xc6aa79)=>({'description':'Screenshot\x20'+(_0xc6aa79+0x1),'screenshot':_0x4dfe5e,'is_key_step':![]}))),{'description':_0x3782e0['description'],'result':getScenarioResult(_0x3782e0),'rationale':_0xfcbcf3[_0x4458f3(0x21e)](getScenarioRationale,_0x3782e0,_0x3c5fc6?.['agentResponse']),'steps':_0x4c66ba};})),_0xf6221b={'url':_0x2bdb68[_0x484a5e(0x188)],'scenarios':_0x210b0b};process[_0x484a5e(0x15d)][_0x484a5e(0x18a)](JSON['stringify'](_0xf6221b,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x20aed2){const _0x45169b=_0x30920e,_0x3dd123={'IzIxt':function(_0x1e5772){return _0x1e5772();},'xWnjV':function(_0x30bb43,_0x22b976){return _0x30bb43(_0x22b976);},'vdKsn':_0x45169b(0x1c1),'rFyHr':function(_0x136b9b,_0x5a0a56){return _0x136b9b(_0x5a0a56);},'TiNpP':'Current\x20session\x20not\x20found.','wuItX':'\x0a✅\x20Session\x20is\x20already\x20completed.','riewe':function(_0x23972d,_0x48f016){return _0x23972d!==_0x48f016;},'axvPI':_0x45169b(0x171),'dAbCR':function(_0x1af14b,_0x3d568f,_0x3bd32c){return _0x1af14b(_0x3d568f,_0x3bd32c);}},_0x30069e=_0x20aed2||await _0x3dd123['IzIxt'](getActiveFeatureId);if(!_0x30069e)throw new Error(_0x45169b(0x22d));const _0x188c55=await _0x3dd123['xWnjV'](getFeature,_0x30069e);if(!_0x188c55[_0x45169b(0x1df)])throw new Error(_0x3dd123[_0x45169b(0x1f2)]);const {sessions:_0x41d2f9}=await _0x3dd123[_0x45169b(0x1ff)](listFeatureSessions,_0x30069e),_0x3e1f90=_0x41d2f9['find'](_0x52f541=>_0x52f541['id']===_0x188c55['currentSessionId']);if(!_0x3e1f90)throw new Error(_0x3dd123['TiNpP']);if(_0x3e1f90['status']===_0x45169b(0x1ea)){console['log'](_0x3dd123[_0x45169b(0x189)]);return;}if(_0x3dd123[_0x45169b(0x204)](_0x3e1f90['status'],_0x3dd123[_0x45169b(0x16c)]))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x3e1f90[_0x45169b(0x23d)]);console['log']('\x0aConcluding\x20session...'),await _0x3dd123['dAbCR'](concludeSession,_0x30069e,_0x188c55[_0x45169b(0x1df)]),console[_0x45169b(0x20c)](_0x45169b(0x228)+_0x3e1f90['iteration']+'\x20concluded.'),console[_0x45169b(0x20c)](_0x45169b(0x178));}export async function featureSessions(_0x14f648){const _0x232121=_0x30920e,_0x1e0a4e={'RUNvE':_0x232121(0x1e4),'XtXyl':function(_0x25795d,_0x41177b){return _0x25795d(_0x41177b);},'HFxrr':'in_progress'},_0x5c454e=_0x14f648||await getActiveFeatureId();if(!_0x5c454e)throw new Error(_0x1e0a4e['RUNvE']);const _0x5214f6=await _0x1e0a4e['XtXyl'](getFeature,_0x5c454e);console['log'](_0x232121(0x201)+_0x5214f6[_0x232121(0x192)]+'\x0a');const {sessions:_0x2dc785}=await listFeatureSessions(_0x5c454e);if(_0x2dc785[_0x232121(0x161)]===0x0){console['log']('No\x20sessions\x20found.');return;}for(const _0x1a7e92 of _0x2dc785){const _0xc2734b=_0x1a7e92[_0x232121(0x23d)]===_0x232121(0x1ea)?'✅':_0x1a7e92[_0x232121(0x23d)]===_0x1e0a4e[_0x232121(0x209)]?'🔄':'▶️';console[_0x232121(0x20c)](_0xc2734b+_0x232121(0x17b)+_0x1a7e92[_0x232121(0x1c0)]+'\x20('+_0x1a7e92['id']+')'),console[_0x232121(0x20c)](_0x232121(0x1cc)+_0x1a7e92[_0x232121(0x23d)]),console['log'](_0x232121(0x211)+new Date(_0x1a7e92['createdAt'])[_0x232121(0x23b)]()),_0x1a7e92['completedAt']&&console[_0x232121(0x20c)](_0x232121(0x21f)+new Date(_0x1a7e92['completedAt'])[_0x232121(0x23b)]()),console['log']('');}}export async function featureAddScenario(_0x381cca,_0x4c6677){const _0x567864=_0x30920e,_0x1fd781={'Xqrxf':function(_0x432457,_0x6b8043){return _0x432457(_0x6b8043);}},_0x4a8d8a=_0x4c6677||await getActiveFeatureId();if(!_0x4a8d8a)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 _0xcbd6c8=await _0x1fd781['Xqrxf'](getFeature,_0x4a8d8a);if(_0xcbd6c8[_0x567864(0x1c2)]&&!_0xcbd6c8[_0x567864(0x1c2)]['submittedAt'])throw new Error(_0x567864(0x20f)+_0xcbd6c8['dashboardUrl']);await createChecklistItem(_0x4a8d8a,_0x381cca);const _0xf3aaf3=await _0x1fd781['Xqrxf'](getFeature,_0x4a8d8a);console[_0x567864(0x20c)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0xf3aaf3,_0xf3aaf3[_0x567864(0x18c)]);}export async function featureEditScenario(_0x1f6cd6,_0x1e94fa){const _0x439dcf=_0x30920e,_0xfed52={'RTIGL':function(_0x3070dc){return _0x3070dc();},'niuNd':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','YKCpX':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','RabvW':'Please\x20finish\x20your\x20review\x20first:','HvODi':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','rVntW':function(_0x11520a,_0x127683){return _0x11520a===_0x127683;},'RTzaR':function(_0x2fdae2,_0x570671){return _0x2fdae2<_0x570671;},'vgLTM':function(_0xea3ed6,_0xac7d3){return _0xea3ed6+_0xac7d3;},'Mprhd':function(_0x5556f6,_0x5afa1e){return _0x5556f6-_0x5afa1e;},'daeTB':'\x0aAvailable\x20scenarios:','XHwkJ':function(_0x219bad,_0x42fa88){return _0x219bad+_0x42fa88;},'JJdtT':function(_0x53f0a1,_0x415a05,_0x5b0c20,_0x193186){return _0x53f0a1(_0x415a05,_0x5b0c20,_0x193186);}},_0x47b856=_0x1e94fa['id']||await _0xfed52[_0x439dcf(0x177)](getActiveFeatureId);!_0x47b856&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x439dcf(0x202)](_0xfed52['niuNd']),process[_0x439dcf(0x194)](0x1));const _0x227f7c=await getFeature(_0x47b856);_0x227f7c['latestReview']&&!_0x227f7c['latestReview']['submittedAt']&&(console['error'](_0xfed52[_0x439dcf(0x196)]),console['error'](_0xfed52['RabvW']),console[_0x439dcf(0x202)]('\x20\x20'+_0x227f7c[_0x439dcf(0x188)]),process['exit'](0x1));const _0x338f36=_0x227f7c[_0x439dcf(0x18c)]||[];_0x338f36['length']===0x0&&(console[_0x439dcf(0x202)](_0xfed52[_0x439dcf(0x1d6)]),process[_0x439dcf(0x194)](0x1));if(_0xfed52[_0x439dcf(0x195)](_0x1e94fa['scenario'],undefined)){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log']('\x0aAvailable\x20scenarios:');for(let _0x574a2d=0x0;_0xfed52[_0x439dcf(0x230)](_0x574a2d,_0x338f36[_0x439dcf(0x161)]);_0x574a2d++){console['log']('\x20\x20'+_0xfed52['vgLTM'](_0x574a2d,0x1)+'.\x20'+_0x338f36[_0x574a2d][_0x439dcf(0x19a)]);}process[_0x439dcf(0x194)](0x1);}const _0x2aba4e=_0xfed52['Mprhd'](_0x1e94fa[_0x439dcf(0x179)],0x1);if(_0xfed52[_0x439dcf(0x230)](_0x2aba4e,0x0)||_0x2aba4e>=_0x338f36['length']){console[_0x439dcf(0x202)](_0x439dcf(0x168)+_0x1e94fa['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x338f36[_0x439dcf(0x161)]+'\x20scenarios.'),console['log'](_0xfed52['daeTB']);for(let _0xa08775=0x0;_0xfed52[_0x439dcf(0x230)](_0xa08775,_0x338f36['length']);_0xa08775++){console['log']('\x20\x20'+_0xfed52['XHwkJ'](_0xa08775,0x1)+'.\x20'+_0x338f36[_0xa08775]['description']);}process[_0x439dcf(0x194)](0x1);}const _0x226166=_0x338f36[_0x2aba4e];await _0xfed52['JJdtT'](updateChecklistItem,_0x47b856,_0x226166['id'],{'description':_0x1f6cd6});const _0x3d4c4c=await getFeature(_0x47b856);console['log'](_0x439dcf(0x17c)),displayFeature(_0x3d4c4c,_0x3d4c4c['checklistItems']);}async function downloadFeedbackImage(_0x42d0cd,_0x492be6){const _0x41c57c=_0x30920e,_0x41794a={'XgJFw':function(_0xe412c2,_0x2cbc92,_0x5bc1c8){return _0xe412c2(_0x2cbc92,_0x5bc1c8);},'HTzgp':'feedback-images','NxyAg':function(_0x277f2c,_0x314d20,_0x5caffb){return _0x277f2c(_0x314d20,_0x5caffb);}};try{const _0xb374c9=_0x41794a[_0x41c57c(0x18d)](join,getRangerDir(),_0x41794a['HTzgp']);await _0x41794a[_0x41c57c(0x18d)](mkdir,_0xb374c9,{'recursive':!![]});const _0x1c0a2f=join(_0xb374c9,_0x41c57c(0x1d1)+_0x492be6+_0x41c57c(0x237)),_0x377a09=await fetch(_0x42d0cd);if(!_0x377a09['ok'])return null;const _0x31a77a=Buffer[_0x41c57c(0x223)](await _0x377a09[_0x41c57c(0x1a4)]());return await _0x41794a['NxyAg'](writeFile,_0x1c0a2f,_0x31a77a),_0x1c0a2f;}catch{return null;}}export async function featureGetReview(_0x1c1431){const _0x13f7da=_0x30920e,_0x5a0b4c={'DscYS':function(_0x25522e,_0x35b588){return _0x25522e(_0x35b588);},'kAIVz':_0x13f7da(0x175),'RgPDu':function(_0x564f4a,_0x4faf6a){return _0x564f4a>_0x4faf6a;},'dOoLs':function(_0x50b3e4,_0x1004a2){return _0x50b3e4>_0x1004a2;},'uedqB':function(_0x5ef4db,_0xeb4c72){return _0x5ef4db+_0xeb4c72;},'kUOtO':_0x13f7da(0x17a),'LJCtl':function(_0x22b457,_0x58e57a,_0x5f5747){return _0x22b457(_0x58e57a,_0x5f5747);},'CYZfr':'\x20>\x20','nOWuO':_0x13f7da(0x231),'DcGWa':'point'},_0x513ef0=_0x1c1431||await getActiveFeatureId();if(!_0x513ef0)throw new Error(_0x13f7da(0x22d));const _0x3a2276=await getFeature(_0x513ef0),{items:_0x3f0a01}=await _0x5a0b4c['DscYS'](getActionItems,_0x513ef0);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x3a2276['name']+'\x20('+_0x3a2276['id']+')\x0a');if(_0x3f0a01[_0x13f7da(0x161)]===0x0){console['log'](_0x5a0b4c[_0x13f7da(0x1b8)]);return;}for(let _0x3b2b04=0x0;_0x3b2b04<_0x3f0a01['length'];_0x3b2b04++){const _0x10b320=_0x3f0a01[_0x3b2b04],_0xd1c240=_0x5a0b4c[_0x13f7da(0x16a)](_0x10b320[_0x13f7da(0x208)],0x1)?_0x13f7da(0x1a5)+_0x10b320[_0x13f7da(0x208)]+')':'',_0x18d3ca=await getItemFeedback(_0x513ef0,_0x10b320['id']);if(_0x5a0b4c['dOoLs'](_0x18d3ca['unaddressedComments']['length'],0x0)){console['log'](_0x13f7da(0x166)+_0x5a0b4c['uedqB'](_0x3b2b04,0x1)+_0x13f7da(0x1ed)+_0x10b320[_0x13f7da(0x19a)]+'\x22'+_0xd1c240+'\x20—\x20'+_0x18d3ca['unaddressedComments'][_0x13f7da(0x161)]+_0x13f7da(0x1e8));for(const _0x39191a of _0x18d3ca['unaddressedComments']){const _0x5a7dc8=new Date(_0x39191a[_0x13f7da(0x16f)])['toLocaleDateString'](_0x13f7da(0x203),{'month':_0x5a0b4c['kUOtO'],'day':_0x13f7da(0x1c6)}),_0x472bd6=_0x39191a[_0x13f7da(0x19c)]||_0x39191a['authorEmail']||_0x13f7da(0x1f3);console[_0x13f7da(0x20c)]('\x20\x20💬\x20'+_0x472bd6+'\x20('+_0x5a7dc8+_0x13f7da(0x1de)+_0x39191a[_0x13f7da(0x183)]+'\x22');if(_0x39191a['assetUrl']){const _0x49a8fc=await _0x5a0b4c['LJCtl'](downloadFeedbackImage,_0x39191a['assetUrl'],_0x39191a['id']);_0x49a8fc&&console[_0x13f7da(0x20c)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x49a8fc);}if(_0x39191a['domRef']){const _0x30b6e1=_0x39191a[_0x13f7da(0x1be)]['selector'][_0x13f7da(0x1d9)](_0x5a0b4c[_0x13f7da(0x225)])[_0x13f7da(0x1a8)]()?.[_0x13f7da(0x1d9)](':')[0x0]||_0x5a0b4c['nOWuO'],_0x5b9861=_0x39191a['domRef']['textContent']?'\x20\x22'+_0x39191a[_0x13f7da(0x1be)][_0x13f7da(0x1bc)][_0x13f7da(0x18b)](0x0,0x3c)+'\x22':'';console[_0x13f7da(0x20c)](_0x13f7da(0x186)+_0x30b6e1+'>'+_0x5b9861),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x39191a['domRef'][_0x13f7da(0x15e)]);}else{if(_0x39191a['spatial']){const _0x269fe9=_0x39191a['spatial']['coordinates'];_0x39191a['spatial'][_0x13f7da(0x1fa)]===_0x5a0b4c['DcGWa']&&_0x269fe9['length']>=0x2?console[_0x13f7da(0x20c)](_0x13f7da(0x16e)+_0x269fe9[0x0][_0x13f7da(0x191)](0x2)+',\x20'+_0x269fe9[0x1]['toFixed'](0x2)+')'):console[_0x13f7da(0x20c)](_0x13f7da(0x1ad)+_0x39191a[_0x13f7da(0x236)]['type']+_0x13f7da(0x1a6)+_0x269fe9['map'](_0x57914d=>_0x57914d['toFixed'](0x2))[_0x13f7da(0x1da)](',\x20')+']');}}}if(_0x18d3ca[_0x13f7da(0x221)]){console[_0x13f7da(0x20c)](_0x13f7da(0x163));for(const _0x529463 of _0x18d3ca['canonicalFlow']['split']('\x0a')){console[_0x13f7da(0x20c)](_0x13f7da(0x1ee)+_0x529463);}}}else console[_0x13f7da(0x20c)]('Scenario\x20'+(_0x3b2b04+0x1)+':\x20\x22'+_0x10b320[_0x13f7da(0x19a)]+'\x22'+_0xd1c240+_0x13f7da(0x1cb)),console['log'](_0x13f7da(0x22b));console[_0x13f7da(0x20c)]('');}}export async function featureDelete(_0x55a8f2){const _0x4ff502=_0x30920e,_0x6b5af9={'nLwfB':function(_0x370714){return _0x370714();},'ZZCfY':_0x4ff502(0x22d),'JdvVA':function(_0x465fec,_0xdbb7b7){return _0x465fec+_0xdbb7b7;}},_0x23bebd=_0x55a8f2||await _0x6b5af9[_0x4ff502(0x1ef)](getActiveFeatureId);if(!_0x23bebd)throw new Error(_0x6b5af9[_0x4ff502(0x1b6)]);const _0x21b6c8=await getFeature(_0x23bebd);await softDeleteFeature(_0x23bebd),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x21b6c8[_0x4ff502(0x192)]+'\x20('+_0x23bebd+')'),console[_0x4ff502(0x20c)](_0x6b5af9['JdvVA'](_0x4ff502(0x226),_0x23bebd));}export async function featureRestore(_0x298983){const _0x2f8965=_0x30920e,_0xee9f3b={'kfoWt':function(_0x412702,_0x27fafa){return _0x412702(_0x27fafa);},'UpmcH':function(_0x4dd173,_0x5439e2,_0x51db83){return _0x4dd173(_0x5439e2,_0x51db83);}};await _0xee9f3b['kfoWt'](restoreFeature,_0x298983);const _0xa6c4d1=await _0xee9f3b[_0x2f8965(0x1b1)](getFeature,_0x298983);console[_0x2f8965(0x20c)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0xa6c4d1['name']+'\x20('+_0x298983+')'),_0xee9f3b[_0x2f8965(0x1ce)](displayFeature,_0xa6c4d1,_0xa6c4d1['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5c29dd,_0x175e61){const _0x3eeb93=_0x5ef0,_0x206ffa=_0x5c29dd();while(!![]){try{const _0x46fe0b=-parseInt(_0x3eeb93(0xd6))/0x1*(parseInt(_0x3eeb93(0xd7))/0x2)+parseInt(_0x3eeb93(0xdd))/0x3*(parseInt(_0x3eeb93(0xdb))/0x4)+-parseInt(_0x3eeb93(0xe1))/0x5+-parseInt(_0x3eeb93(0xdc))/0x6+parseInt(_0x3eeb93(0xd2))/0x7*(parseInt(_0x3eeb93(0xd8))/0x8)+parseInt(_0x3eeb93(0xd5))/0x9+parseInt(_0x3eeb93(0xda))/0xa;if(_0x46fe0b===_0x175e61)break;else _0x206ffa['push'](_0x206ffa['shift']());}catch(_0x3cf4b0){_0x206ffa['push'](_0x206ffa['shift']());}}}(_0x4e74,0x39bfa));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};function _0x4e74(){const _0x1b027f=['2187AuNHkP','132xpGsTc','375992CSItxU','once','1253540Hvefni','978496jRaRfI','2613852mCnGie','3PpoDZb','JgHec','join','mOpeK','50185wcOocV','SIGINT','56oBrlWc','error','Unknown\x20hook:\x20','725301rYQJmx'];_0x4e74=function(){return _0x1b027f;};return _0x4e74();}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x2edb89=_0x5ef0,_0x1d44bc={'JgHec':'SIGTERM','mOpeK':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x19178a=()=>{process['exit'](0x0);};process[_0x2edb89(0xd9)](_0x2edb89(0xe2),_0x19178a),process['once'](_0x1d44bc[_0x2edb89(0xde)],_0x19178a),process[_0x2edb89(0xd9)](_0x1d44bc[_0x2edb89(0xe0)],_0x19178a),cancellationHandlersInstalled=!![];}function _0x5ef0(_0x3c5e3e,_0x58d9e4){_0x3c5e3e=_0x3c5e3e-0xd2;const _0x4e7447=_0x4e74();let _0x5ef01f=_0x4e7447[_0x3c5e3e];return _0x5ef01f;}export async function hook(_0x52942b,_0x2571dd){const _0x623b98=_0x5ef0,_0x4ef9a5={'oYUMk':function(_0x1ece57){return _0x1ece57();},'ziXBy':function(_0x5de2d5,_0x5dc5a3){return _0x5de2d5(_0x5dc5a3);}};_0x4ef9a5['oYUMk'](installCancellationHandlers);const _0x1b08f5=HOOKS[_0x52942b];if(!_0x1b08f5){const _0x52feaf=Object['keys'](HOOKS)[_0x623b98(0xdf)](',\x20');console[_0x623b98(0xd3)](_0x623b98(0xd4)+_0x52942b),console['error']('Valid\x20hooks:\x20'+_0x52feaf),process['exit'](0x1);}await _0x4ef9a5['ziXBy'](_0x1b08f5,_0x2571dd);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x452130=_0x3825;(function(_0x1269db,_0x510a8d){const _0x16f3aa=_0x3825,_0x24171c=_0x1269db();while(!![]){try{const _0x2d5f7f=parseInt(_0x16f3aa(0x6b))/0x1*(-parseInt(_0x16f3aa(0x6a))/0x2)+-parseInt(_0x16f3aa(0x70))/0x3*(parseInt(_0x16f3aa(0x6f))/0x4)+-parseInt(_0x16f3aa(0x75))/0x5+-parseInt(_0x16f3aa(0x71))/0x6+-parseInt(_0x16f3aa(0x6d))/0x7+-parseInt(_0x16f3aa(0x6e))/0x8*(parseInt(_0x16f3aa(0x69))/0x9)+parseInt(_0x16f3aa(0x72))/0xa*(parseInt(_0x16f3aa(0x73))/0xb);if(_0x2d5f7f===_0x510a8d)break;else _0x24171c['push'](_0x24171c['shift']());}catch(_0x41927a){_0x24171c['push'](_0x24171c['shift']());}}}(_0x544f,0x1f11f));function _0x544f(){const _0x1d6147=['997976UcqbtK','14576GGKghv','4iGgTYz','248433Mgjzom','1437624EfZzVQ','10vKbMye','9198563uZWXRW','HlNlr','763545vjlBjL','guNoB','off','\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.','108uWognM','4rqxZQp','34707TwxnNU','ovnth'];_0x544f=function(){return _0x1d6147;};return _0x544f();}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x452130(0x68);function _0x3825(_0x2bc3ad,_0x2ddf07){_0x2bc3ad=_0x2bc3ad-0x68;const _0x544fb2=_0x544f();let _0x382585=_0x544fb2[_0x2bc3ad];return _0x382585;}export async function autoPrompt(){const _0x29d0fc=_0x452130,_0x2228a6={'guNoB':function(_0x4e0111,_0x1a47b2){return _0x4e0111===_0x1a47b2;},'HlNlr':function(_0x3094f6){return _0x3094f6();},'ovnth':function(_0x230dac,_0x4194e2){return _0x230dac(_0x4194e2);}};if(_0x2228a6[_0x29d0fc(0x76)](resolveHookMode(),_0x29d0fc(0x77)))return;const _0x298928=await _0x2228a6[_0x29d0fc(0x74)](readHookInput),_0x5b085d=_0x298928?.['session_id'];if(!_0x5b085d)return;if(isSessionEnabled(_0x5b085d)||_0x2228a6[_0x29d0fc(0x6c)](hasSessionBeenPrompted,_0x5b085d))return;_0x2228a6[_0x29d0fc(0x6c)](markSessionPrompted,_0x5b085d),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1b763b,_0x4e8be2){const _0x532411=_0x3925,_0x5a1636=_0x1b763b();while(!![]){try{const _0x368f8c=parseInt(_0x532411(0x189))/0x1+-parseInt(_0x532411(0x18d))/0x2+-parseInt(_0x532411(0x190))/0x3+parseInt(_0x532411(0x18c))/0x4*(parseInt(_0x532411(0x197))/0x5)+-parseInt(_0x532411(0x194))/0x6+-parseInt(_0x532411(0x198))/0x7*(parseInt(_0x532411(0x196))/0x8)+parseInt(_0x532411(0x192))/0x9*(parseInt(_0x532411(0x195))/0xa);if(_0x368f8c===_0x4e8be2)break;else _0x5a1636['push'](_0x5a1636['shift']());}catch(_0x5ccad4){_0x5a1636['push'](_0x5a1636['shift']());}}}(_0x508b,0x4fd99));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x508b(){const _0x3ef4e1=['BAkQi','380466OjWbKB','main','.\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`.','188FzbnPw','226616uoFIEn','env','master','166488BoJbxW','zmAQV','37251irbsIV','gFGHH','997164CSIsZi','850SiuBjV','8Btxabd','17200LEmipZ','1623286GgUqPK'];_0x508b=function(){return _0x3ef4e1;};return _0x508b();}function _0x3925(_0x56a42a,_0x1fd344){_0x56a42a=_0x56a42a-0x188;const _0x508b4a=_0x508b();let _0x392543=_0x508b4a[_0x56a42a];return _0x392543;}import{printBlock}from'./output.js';export async function disable(_0x2b4d20){const _0x38a710=_0x3925,_0x152fd0={'KfVUx':function(_0x2f54a3){return _0x2f54a3();},'zmAQV':function(_0x2b2c85,_0xa8c471){return _0x2b2c85!==_0xa8c471;},'ccsZk':_0x38a710(0x18f),'BAkQi':function(_0xa61fa3,_0x485680){return _0xa61fa3(_0x485680);},'gFGHH':function(_0xa768d3,_0x4094c3){return _0xa768d3(_0x4094c3);}},_0x124281=_0x2b4d20||process[_0x38a710(0x18e)]['CLAUDE_SESSION_ID']||'';_0x124281&&disableSession(_0x124281);const _0x257497=_0x152fd0['KfVUx'](getCurrentBranch);_0x257497&&_0x257497!=='main'&&_0x152fd0[_0x38a710(0x191)](_0x257497,_0x152fd0['ccsZk'])&&_0x152fd0[_0x38a710(0x188)](disableBranch,_0x257497),_0x152fd0[_0x38a710(0x193)](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x257497&&_0x257497!==_0x38a710(0x18a)&&_0x257497!==_0x152fd0['ccsZk']?'\x20and\x20branch\x20\x27'+_0x257497+'\x27':'')+_0x38a710(0x18b));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1950(){const _0x3930ab=['2799fdFNxy','ranger\x20setup\x20--opencode','main','11939213ecJcsp','12EbosSi','Iwtlj','2702700YrChxt','186oeJJjA','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','ranger\x20setup','vLwNS','lvadN','2372220NmoIch','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','1208NYdcoH','51235WBGUjo','35979FGANRF','\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`.','XqkLy','7jVDOaI','CLAUDE_SESSION_ID','3203632hxLHng'];_0x1950=function(){return _0x3930ab;};return _0x1950();}(function(_0x1dc9b7,_0x563bbd){const _0x56135b=_0x45e3,_0x2b5170=_0x1dc9b7();while(!![]){try{const _0x18c6c9=parseInt(_0x56135b(0x17c))/0x1*(-parseInt(_0x56135b(0x186))/0x2)+parseInt(_0x56135b(0x182))/0x3*(parseInt(_0x56135b(0x17a))/0x4)+-parseInt(_0x56135b(0x17b))/0x5*(-parseInt(_0x56135b(0x173))/0x6)+-parseInt(_0x56135b(0x17f))/0x7*(-parseInt(_0x56135b(0x181))/0x8)+parseInt(_0x56135b(0x178))/0x9+parseInt(_0x56135b(0x172))/0xa+-parseInt(_0x56135b(0x185))/0xb;if(_0x18c6c9===_0x563bbd)break;else _0x2b5170['push'](_0x2b5170['shift']());}catch(_0x179640){_0x2b5170['push'](_0x2b5170['shift']());}}}(_0x1950,0x38c16));function _0x45e3(_0x993b51,_0x1ce87e){_0x993b51=_0x993b51-0x171;const _0x195001=_0x1950();let _0x45e3f3=_0x195001[_0x993b51];return _0x45e3f3;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x420672){const _0x4b078f=_0x45e3,_0x4d1320={'kvtnK':function(_0x2f4f38,_0x1f6f8a){return _0x2f4f38(_0x1f6f8a);},'Iwtlj':_0x4b078f(0x175),'XqkLy':_0x4b078f(0x174),'YgaUu':_0x4b078f(0x179),'BQXUD':function(_0x2b2d10){return _0x2b2d10();},'vLwNS':_0x4b078f(0x184),'lvadN':'master'},_0x195b63=_0x420672||process['env'][_0x4b078f(0x180)]||'',_0x502447=_0x4d1320['kvtnK'](Boolean,_0x420672),_0x5281ce=await getToken();if(!_0x5281ce){const _0x4f5c8f=_0x502447?_0x4b078f(0x183):_0x4d1320[_0x4b078f(0x171)],_0x39529d=_0x502447?_0x4d1320[_0x4b078f(0x17e)]:_0x4d1320['YgaUu'];_0x4d1320['kvtnK'](printBlock,'#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x4f5c8f+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x39529d);return;}try{await update();}catch{}_0x195b63&&enableSession(_0x195b63);const _0x36c076=_0x4d1320['BQXUD'](getCurrentBranch),_0x46333b=_0x36c076&&_0x36c076!==_0x4d1320[_0x4b078f(0x176)]&&_0x36c076!==_0x4d1320[_0x4b078f(0x177)]?'\x0a\x0a**Branch\x20\x27'+_0x36c076+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x1251d7=getRangerSkillContent();printBlock('#\x20RANGER\x20ENABLED'+_0x46333b+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x1251d7+_0x4b078f(0x17d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfe329a,_0x17992d){const _0x27e0bd=_0x1282,_0x11db2e=_0xfe329a();while(!![]){try{const _0x51629d=-parseInt(_0x27e0bd(0x71))/0x1*(parseInt(_0x27e0bd(0x69))/0x2)+-parseInt(_0x27e0bd(0x6f))/0x3*(parseInt(_0x27e0bd(0x6a))/0x4)+-parseInt(_0x27e0bd(0x6d))/0x5*(-parseInt(_0x27e0bd(0x66))/0x6)+parseInt(_0x27e0bd(0x68))/0x7+parseInt(_0x27e0bd(0x6e))/0x8*(-parseInt(_0x27e0bd(0x6b))/0x9)+-parseInt(_0x27e0bd(0x73))/0xa*(parseInt(_0x27e0bd(0x6c))/0xb)+parseInt(_0x27e0bd(0x72))/0xc*(parseInt(_0x27e0bd(0x67))/0xd);if(_0x51629d===_0x17992d)break;else _0x11db2e['push'](_0x11db2e['shift']());}catch(_0x10a4a7){_0x11db2e['push'](_0x11db2e['shift']());}}}(_0x1635,0x7ecab));function _0x1282(_0x51b9e9,_0x15ca25){_0x51b9e9=_0x51b9e9-0x66;const _0x163587=_0x1635();let _0x128235=_0x163587[_0x51b9e9];return _0x128235;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x4452c6){const _0xadbfd8=_0x1282,_0x1f0265={'JCiMA':function(_0x2ac22e,_0xde3192){return _0x2ac22e(_0xde3192);}},_0x2c08c0=await _0x1f0265['JCiMA'](getEnabledSessionId,_0x4452c6);if(!_0x2c08c0)return;printBlock(_0xadbfd8(0x70));}function _0x1635(){const _0x13e6cc=['6657133TpFXmg','518UPXTDY','28YQLCHI','1591794kCyNcu','770WRQSqU','149605lkwqnB','8UFrcwZ','271857cYKvNt','===\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===','3777Qjrdtz','24LPdxfm','16920MqnZaa','96QcBeWW','6483529SvnGjw'];_0x1635=function(){return _0x13e6cc;};return _0x1635();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14c594,_0x356fcf){var _0x5a8ac7=_0x1a39,_0x5e4a16=_0x14c594();while(!![]){try{var _0x1187c3=parseInt(_0x5a8ac7(0x127))/0x1*(-parseInt(_0x5a8ac7(0x12e))/0x2)+parseInt(_0x5a8ac7(0x12b))/0x3*(-parseInt(_0x5a8ac7(0x12a))/0x4)+-parseInt(_0x5a8ac7(0x126))/0x5+-parseInt(_0x5a8ac7(0x12d))/0x6+-parseInt(_0x5a8ac7(0x12c))/0x7+-parseInt(_0x5a8ac7(0x12f))/0x8*(parseInt(_0x5a8ac7(0x128))/0x9)+-parseInt(_0x5a8ac7(0x129))/0xa*(-parseInt(_0x5a8ac7(0x125))/0xb);if(_0x1187c3===_0x356fcf)break;else _0x5e4a16['push'](_0x5e4a16['shift']());}catch(_0x59072f){_0x5e4a16['push'](_0x5e4a16['shift']());}}}(_0x186d,0xdf4c1));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';function _0x186d(){var _0x426b8=['7lMluPF','18Yugnnj','765460oPceDW','4lHlnRt','4558029KjpsmN','3945326UPuPhz','3854262MSnnKn','382610OsPkoj','6972296pMINRT','1067QFwzRN','3513950fzEzpG'];_0x186d=function(){return _0x426b8;};return _0x186d();}export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';function _0x1a39(_0xe746f9,_0x2cc8de){_0xe746f9=_0xe746f9-0x125;var _0x186df8=_0x186d();var _0x1a39d8=_0x186df8[_0xe746f9];return _0x1a39d8;}export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1056(_0x390153,_0x2ebfcc){_0x390153=_0x390153-0x96;const _0x506fe6=_0x506f();let _0x10567a=_0x506fe6[_0x390153];return _0x10567a;}(function(_0x4bd775,_0x138c0b){const _0x250b69=_0x1056,_0x410c07=_0x4bd775();while(!![]){try{const _0x2386c9=-parseInt(_0x250b69(0x9c))/0x1*(parseInt(_0x250b69(0x98))/0x2)+parseInt(_0x250b69(0x97))/0x3+parseInt(_0x250b69(0x9e))/0x4*(parseInt(_0x250b69(0x9b))/0x5)+-parseInt(_0x250b69(0x96))/0x6+parseInt(_0x250b69(0x9f))/0x7+parseInt(_0x250b69(0x9a))/0x8*(parseInt(_0x250b69(0x9d))/0x9)+-parseInt(_0x250b69(0x99))/0xa;if(_0x2386c9===_0x138c0b)break;else _0x410c07['push'](_0x410c07['shift']());}catch(_0x3b475a){_0x410c07['push'](_0x410c07['shift']());}}}(_0x506f,0xb1af1));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0xd5f80b){console['log'](_0xd5f80b);}export async function readHookInput(){let _0xbb5c5d='';try{for await(const _0x3e28f3 of process['stdin']){_0xbb5c5d+=_0x3e28f3;}}catch{return null;}if(!_0xbb5c5d['trim']())return null;try{return JSON['parse'](_0xbb5c5d);}catch{return null;}}export async function getEnabledSessionId(_0x39e795){if(_0x39e795)return isSessionEnabled(_0x39e795)?_0x39e795:null;const _0x5837d6=await readHookInput(),_0x1e74aa=_0x5837d6?.['session_id'];if(!_0x1e74aa||!isSessionEnabled(_0x1e74aa))return null;return _0x1e74aa;}function _0x506f(){const _0x4b68f0=['18wbqaGL','5872LLMcuA','3566143tfPmxe','695796oTrXKL','95403UmPzLU','2yFaJIj','12086250GBbxSo','3526584oBJByB','3265LbWAlu','329116mQvUjJ'];_0x506f=function(){return _0x4b68f0;};return _0x506f();}export async function getEnabledHookContext(_0x2c2495){const _0x8d9064={'CiBVb':function(_0xa8a7ee,_0x14c1c6){return _0xa8a7ee(_0x14c1c6);}};if(_0x2c2495){if(!isSessionEnabled(_0x2c2495))return null;return{'sessionId':_0x2c2495,'input':{'session_id':_0x2c2495}};}const _0x407abd=await readHookInput(),_0x54a793=_0x407abd?.['session_id'];if(!_0x54a793||!_0x8d9064['CiBVb'](isSessionEnabled,_0x54a793))return null;return{'sessionId':_0x54a793,'input':_0x407abd};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ebf82,_0x2740f7){const _0x34d70c=_0x2fe0,_0x8632be=_0x1ebf82();while(!![]){try{const _0x4d7764=-parseInt(_0x34d70c(0x19c))/0x1+-parseInt(_0x34d70c(0x199))/0x2*(parseInt(_0x34d70c(0x1a2))/0x3)+parseInt(_0x34d70c(0x19d))/0x4+-parseInt(_0x34d70c(0x198))/0x5+parseInt(_0x34d70c(0x196))/0x6+parseInt(_0x34d70c(0x1a1))/0x7*(parseInt(_0x34d70c(0x1a0))/0x8)+parseInt(_0x34d70c(0x19f))/0x9*(parseInt(_0x34d70c(0x19e))/0xa);if(_0x4d7764===_0x2740f7)break;else _0x8632be['push'](_0x8632be['shift']());}catch(_0x17be10){_0x8632be['push'](_0x8632be['shift']());}}}(_0x28be,0xae629));function _0x2fe0(_0x5c7742,_0x121eff){_0x5c7742=_0x5c7742-0x196;const _0x28beec=_0x28be();let _0x2fe05b=_0x28beec[_0x5c7742];return _0x2fe05b;}function _0x28be(){const _0x1e80f4=['672778ywJsod','plan','UcoYI','948963fHkBIt','3866196YtlAOG','101410mNIVOH','981mjIDBq','104gAIYPt','574259mnjAWa','3oetcak','1164174bXZXxp','Mjgsm','6663975BnvZHM'];_0x28be=function(){return _0x1e80f4;};return _0x28be();}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x99aae8){const _0x34acde=_0x2fe0,_0x4292f2={'MLQKJ':function(_0xeadf62,_0x5c9c21){return _0xeadf62!==_0x5c9c21;},'UcoYI':function(_0x2ff368,_0x292234){return _0x2ff368(_0x292234);},'Mjgsm':function(_0x3a75ea,_0x2de5fc){return _0x3a75ea(_0x2de5fc);}},_0x503445=await getEnabledHookContext(_0x99aae8);if(!_0x503445)return;if(_0x4292f2['MLQKJ'](_0x503445['input']['permission_mode'],_0x34acde(0x19a)))return;if(!_0x4292f2[_0x34acde(0x19b)](shouldShowPlanReminder,_0x503445['sessionId']))return;_0x4292f2[_0x34acde(0x197)](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x120d(){const _0x2a4fd1=['1775896qEIRJi','223688zAWPdR','30yXDlNC','20GXXumC','2302731iuMViP','2COKooq','235335PCWIOY','418495NxIBki','671WckRjS','41120tDIisp','70046CvVLOx'];_0x120d=function(){return _0x2a4fd1;};return _0x120d();}function _0x3fa7(_0xd99b32,_0x3dcf3f){_0xd99b32=_0xd99b32-0x1f4;const _0x120dd7=_0x120d();let _0x3fa7d2=_0x120dd7[_0xd99b32];return _0x3fa7d2;}(function(_0x390ece,_0x267530){const _0x3493a8=_0x3fa7,_0x583284=_0x390ece();while(!![]){try{const _0xb5cf66=parseInt(_0x3493a8(0x1f9))/0x1*(-parseInt(_0x3493a8(0x1fe))/0x2)+parseInt(_0x3493a8(0x1fa))/0x3+-parseInt(_0x3493a8(0x1f5))/0x4*(-parseInt(_0x3493a8(0x1f7))/0x5)+parseInt(_0x3493a8(0x1f6))/0x6*(parseInt(_0x3493a8(0x1fb))/0x7)+parseInt(_0x3493a8(0x1f4))/0x8+-parseInt(_0x3493a8(0x1f8))/0x9+-parseInt(_0x3493a8(0x1fd))/0xa*(parseInt(_0x3493a8(0x1fc))/0xb);if(_0xb5cf66===_0x267530)break;else _0x583284['push'](_0x583284['shift']());}catch(_0x34e4eb){_0x583284['push'](_0x583284['shift']());}}}(_0x120d,0x3c224));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x34f6b1){const _0x409a01={'IgHzh':function(_0x185c00,_0xae91b6){return _0x185c00(_0xae91b6);}},_0x534bb3=await getEnabledSessionId(_0x34f6b1);if(!_0x534bb3)return;_0x409a01['IgHzh'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xfff0c,_0x1971c3){const _0x143580=_0x5448,_0x264237=_0xfff0c();while(!![]){try{const _0x5cd55e=parseInt(_0x143580(0x1b7))/0x1*(parseInt(_0x143580(0x1b5))/0x2)+parseInt(_0x143580(0x1ae))/0x3+parseInt(_0x143580(0x1b6))/0x4*(parseInt(_0x143580(0x1b0))/0x5)+parseInt(_0x143580(0x1ba))/0x6+parseInt(_0x143580(0x1b8))/0x7*(-parseInt(_0x143580(0x1b9))/0x8)+parseInt(_0x143580(0x1bc))/0x9+-parseInt(_0x143580(0x1b4))/0xa;if(_0x5cd55e===_0x1971c3)break;else _0x264237['push'](_0x264237['shift']());}catch(_0x35ff9c){_0x264237['push'](_0x264237['shift']());}}}(_0xb6db,0x4e02d));function _0x5448(_0xf3f148,_0x469313){_0xf3f148=_0xf3f148-0x1ae;const _0xb6db45=_0xb6db();let _0x544896=_0xb6db45[_0xf3f148];return _0x544896;}function _0xb6db(){const _0x23baa5=['PostToolUse','log','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.','677780xgtUxL','514DctaJv','342948RpXNYb','389uGGokv','1051183xJAPfi','32gzdiMo','1308222vbuSjz','stringify','816201CkrKfv','1480653CeLuhh','ytTWI','5EVETpT'];_0xb6db=function(){return _0x23baa5;};return _0xb6db();}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x129473){const _0x12b2fa=_0x5448,_0x39c75e={'ytTWI':function(_0x2ff428,_0x1eed4f){return _0x2ff428(_0x1eed4f);}},_0x3948d7=await getEnabledSessionId(_0x129473);if(!_0x3948d7)return;_0x39c75e[_0x12b2fa(0x1af)](updateBranchTracking,_0x3948d7);const _0x62d7b0=await getToken();if(!_0x62d7b0)return;const _0x29533f=_0x39c75e['ytTWI'](getSessionEntry,_0x3948d7);if(_0x29533f){const _0xa433be={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console[_0x12b2fa(0x1b2)](JSON[_0x12b2fa(0x1bb)](_0xa433be));return;}const _0x3a35f5={'hookSpecificOutput':{'hookEventName':_0x12b2fa(0x1b1),'additionalContext':_0x12b2fa(0x1b3)}};console[_0x12b2fa(0x1b2)](JSON[_0x12b2fa(0x1bb)](_0x3a35f5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x19ad(){const _0x29d158=['9keRpmB','9348704mMBksG','1606500gSJhwu','160956mBIcjC','qxhMV','212466uDSqKd','33132vExCKT','6840930VpxwKs','3393642ChUJJM','9OjCuBw','65Keakch'];_0x19ad=function(){return _0x29d158;};return _0x19ad();}(function(_0x3dccbf,_0xe51ad0){const _0x84b053=_0x169c,_0x6084de=_0x3dccbf();while(!![]){try{const _0x4934e1=parseInt(_0x84b053(0x102))/0x1*(parseInt(_0x84b053(0xfe))/0x2)+-parseInt(_0x84b053(0xfb))/0x3+-parseInt(_0x84b053(0xff))/0x4+-parseInt(_0x84b053(0x103))/0x5*(-parseInt(_0x84b053(0xfc))/0x6)+parseInt(_0x84b053(0x101))/0x7+-parseInt(_0x84b053(0xfa))/0x8+parseInt(_0x84b053(0xf9))/0x9*(parseInt(_0x84b053(0x100))/0xa);if(_0x4934e1===_0xe51ad0)break;else _0x6084de['push'](_0x6084de['shift']());}catch(_0x44b548){_0x6084de['push'](_0x6084de['shift']());}}}(_0x19ad,0xb9e13));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x169c(_0x4b0ded,_0x33206f){_0x4b0ded=_0x4b0ded-0xf9;const _0x19ade7=_0x19ad();let _0x169c27=_0x19ade7[_0x4b0ded];return _0x169c27;}export async function preCompact(_0x1da572){const _0x10b7f4=_0x169c,_0x362b0b={'qxhMV':function(_0x5d15e2){return _0x5d15e2();}},_0x199b12=await getEnabledSessionId(_0x1da572);if(!_0x199b12)return;try{const _0x180561=await _0x362b0b[_0x10b7f4(0xfd)](getToken);if(!_0x180561)return;printBlock('===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x931b08,_0x3a00d4){const _0x7d0424=_0x103f,_0xb017c1=_0x931b08();while(!![]){try{const _0x38cea2=-parseInt(_0x7d0424(0x1ce))/0x1*(-parseInt(_0x7d0424(0x1c9))/0x2)+parseInt(_0x7d0424(0x1ca))/0x3+-parseInt(_0x7d0424(0x1c2))/0x4+parseInt(_0x7d0424(0x1c3))/0x5*(-parseInt(_0x7d0424(0x1c8))/0x6)+-parseInt(_0x7d0424(0x1c5))/0x7*(-parseInt(_0x7d0424(0x1c4))/0x8)+-parseInt(_0x7d0424(0x1c7))/0x9*(-parseInt(_0x7d0424(0x1c6))/0xa)+parseInt(_0x7d0424(0x1cd))/0xb*(-parseInt(_0x7d0424(0x1cb))/0xc);if(_0x38cea2===_0x3a00d4)break;else _0xb017c1['push'](_0xb017c1['shift']());}catch(_0x16c77c){_0xb017c1['push'](_0xb017c1['shift']());}}}(_0x38d7,0xc9615));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x103f(_0x461132,_0x3cf296){_0x461132=_0x461132-0x1c2;const _0x38d74a=_0x38d7();let _0x103fee=_0x38d74a[_0x461132];return _0x103fee;}import{readHookInput}from'./output.js';function _0x38d7(){const _0x4a16f2=['2936mMoiFg','29617PUcJYJ','1974070HGIOYw','45YQfpTx','30ctOxiN','133790MddkAk','3161754GvHsGp','635508tCLDsT','clear','66TpnClA','6tFqbob','5589632NinBSR','1455085lEmqiJ'];_0x38d7=function(){return _0x4a16f2;};return _0x38d7();}export async function sessionEnd(_0x7adc5c){const _0x5b4ae2=_0x103f,_0x194792={'WYlYp':function(_0xf84603){return _0xf84603();},'vqlSe':_0x5b4ae2(0x1cc)},_0x19e92d=process['env']['CLAUDE_SESSION_ID'];let _0x46f82b=_0x7adc5c,_0x541f58;if(!_0x7adc5c){if(_0x19e92d&&!isSessionEnabled(_0x19e92d))return;const _0x555989=await _0x194792['WYlYp'](readHookInput);_0x46f82b=_0x555989?.['session_id']||_0x19e92d,_0x541f58=_0x555989?.['reason'];}if(!_0x46f82b)return;_0x541f58===_0x194792['vqlSe']&&recordEnabledSessionCleared(_0x46f82b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x71f7(){const _0x17ca08=['jYoIQ','session_id','1157672FTdaWP','\x20(Branch:\x20','pWieq','16995861PrxMZc','332802XCYPRF','main','125349naqFFi','log','2nLUPvR','=================================================================\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=================================================================','6677027kOvpME','79085OUCfyw','BzQDR','export\x20CLAUDE_SESSION_ID=\x22','stdin','7436904IAzIzT','master','dExQQ','486HahVTU','stringify'];_0x71f7=function(){return _0x17ca08;};return _0x71f7();}const _0x37cf41=_0x3291;(function(_0x31865f,_0x5c1eb6){const _0x3f3ca2=_0x3291,_0x4f0112=_0x31865f();while(!![]){try{const _0x1f6421=-parseInt(_0x3f3ca2(0xea))/0x1+parseInt(_0x3f3ca2(0xec))/0x2*(-parseInt(_0x3f3ca2(0xe8))/0x3)+parseInt(_0x3f3ca2(0xe4))/0x4+-parseInt(_0x3f3ca2(0xef))/0x5*(parseInt(_0x3f3ca2(0xe0))/0x6)+parseInt(_0x3f3ca2(0xee))/0x7+-parseInt(_0x3f3ca2(0xdd))/0x8+parseInt(_0x3f3ca2(0xe7))/0x9;if(_0x1f6421===_0x5c1eb6)break;else _0x4f0112['push'](_0x4f0112['shift']());}catch(_0x20b7ad){_0x4f0112['push'](_0x4f0112['shift']());}}}(_0x71f7,0xa725b));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';function _0x3291(_0x5b9d69,_0xbaa28e){_0x5b9d69=_0x5b9d69-0xda;const _0x71f7ff=_0x71f7();let _0x32914a=_0x71f7ff[_0x5b9d69];return _0x32914a;}import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT=_0x37cf41(0xed);export async function sessionStart(_0x4c89b1){const _0x1d61cd=_0x37cf41,_0x13c7f8={'pWieq':function(_0x5224d2,_0x281e0a){return _0x5224d2||_0x281e0a;},'UjgHF':_0x1d61cd(0xe3),'dExQQ':'source','jYoIQ':function(_0x28c954,_0x36a660){return _0x28c954&&_0x36a660;},'blAiJ':function(_0x2f5ef0,_0x54991d,_0xd5f99){return _0x2f5ef0(_0x54991d,_0xd5f99);},'BzQDR':function(_0x1a59b9){return _0x1a59b9();},'dWRtK':function(_0x451f9e,_0x2d98f4){return _0x451f9e(_0x2d98f4);},'zoVPC':function(_0x3af45f,_0x560273){return _0x3af45f(_0x560273);},'qIIRF':'hook:session-start','mFdnD':function(_0x3f4fc1,_0x399f81){return _0x3f4fc1!==_0x399f81;},'xKYtK':'SessionStart'};let _0x21bd98=_0x13c7f8[_0x1d61cd(0xe6)](_0x4c89b1,''),_0x1424c3;if(!_0x4c89b1){let _0x875d46='';for await(const _0x1cffac of process[_0x1d61cd(0xdc)]){_0x875d46+=_0x1cffac;}try{const _0x2eaffd=JSON['parse'](_0x875d46);_0x21bd98=_0x2eaffd[_0x13c7f8['UjgHF']]||'',_0x1424c3=_0x2eaffd[_0x13c7f8[_0x1d61cd(0xdf)]];}catch{}const _0x2e27fb=process['env']['CLAUDE_ENV_FILE'];if(_0x13c7f8[_0x1d61cd(0xe2)](_0x2e27fb,_0x21bd98))try{await _0x13c7f8['blAiJ'](appendFile,_0x2e27fb,_0x1d61cd(0xdb)+_0x21bd98+'\x22\x0a');}catch{}}try{await _0x13c7f8[_0x1d61cd(0xda)](getToken);}catch{}if(_0x21bd98){shouldAutoEnableAfterClear(_0x1424c3)&&_0x13c7f8['dWRtK'](autoEnableAfterClear,_0x21bd98);_0x13c7f8['dWRtK'](initBranchTracking,_0x21bd98);resolveHookMode()==='on'&&enableSession(_0x21bd98);const _0x4ffab9=isSessionEnabled(_0x21bd98);try{const _0x1b106c=_0x13c7f8['zoVPC'](createTelemetryCollector,_0x13c7f8['qIIRF']);await _0x1b106c['trackCommandStart']({'sessionId':_0x21bd98,'hooksEnabled':_0x4ffab9}),await _0x1b106c['trackCommandEnd']('success');}catch{}if(_0x4ffab9){const _0x2d29d9=getCurrentBranch(),_0x11104b=_0x2d29d9&&_0x2d29d9!==_0x1d61cd(0xe9)&&_0x13c7f8['mFdnD'](_0x2d29d9,_0x1d61cd(0xde))?_0x1d61cd(0xe5)+_0x2d29d9+')':'',_0x3b8e2b={'hookSpecificOutput':{'hookEventName':_0x13c7f8['xKYtK'],'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x11104b}};console[_0x1d61cd(0xeb)](JSON[_0x1d61cd(0xe1)](_0x3b8e2b));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x454da0,_0x1d2aef){const _0xf9cd0c=_0x5e6e,_0x391b83=_0x454da0();while(!![]){try{const _0x93abc6=parseInt(_0xf9cd0c(0x178))/0x1+parseInt(_0xf9cd0c(0x175))/0x2*(parseInt(_0xf9cd0c(0x17d))/0x3)+-parseInt(_0xf9cd0c(0x186))/0x4*(-parseInt(_0xf9cd0c(0x181))/0x5)+parseInt(_0xf9cd0c(0x172))/0x6+parseInt(_0xf9cd0c(0x18c))/0x7*(-parseInt(_0xf9cd0c(0x187))/0x8)+parseInt(_0xf9cd0c(0x18b))/0x9*(parseInt(_0xf9cd0c(0x16f))/0xa)+parseInt(_0xf9cd0c(0x179))/0xb*(-parseInt(_0xf9cd0c(0x170))/0xc);if(_0x93abc6===_0x1d2aef)break;else _0x391b83['push'](_0x391b83['shift']());}catch(_0x1518eb){_0x391b83['push'](_0x391b83['shift']());}}}(_0x1bfe,0x5a7e7));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';function _0x1bfe(){const _0x4cb88e=['hvwzH','QlOvg','425358bQYfSH','FIPmT','sessionId','log','5QhAMRc','trackCommandEnd','DfjOF','status','featureId','599876WbuwNU','1707312sBIgZx','incomplete','closed','currentSessionId','176877tDpEUm','21SLiAkY','CbwfZ','verified','70KaMYYB','33612RhRjDy','EbPli','4347036KoOHjQ','success','Stop','4YmtURt','blocked','some','289492YPwiqd','2255rehmHS','MYPsP'];_0x1bfe=function(){return _0x4cb88e;};return _0x1bfe();}function _0x5e6e(_0x3fa1f8,_0x1d01e2){_0x3fa1f8=_0x3fa1f8-0x16d;const _0x1bfede=_0x1bfe();let _0x5e6e30=_0x1bfede[_0x3fa1f8];return _0x5e6e30;}export async function stopHook(_0x3da3b7){const _0x4ac06e=_0x5e6e,_0x325524={'DfjOF':function(_0x5f3178,_0x1eb61a){return _0x5f3178(_0x1eb61a);},'MYPsP':function(_0x4e2985,_0x54034d,_0x1ae2b8,_0x259e1c){return _0x4e2985(_0x54034d,_0x1ae2b8,_0x259e1c);},'FIPmT':function(_0x35668c,_0x457a9e,_0x270191,_0x361329){return _0x35668c(_0x457a9e,_0x270191,_0x361329);},'EbPli':function(_0x35fbe3){return _0x35fbe3();},'CbwfZ':function(_0x5f3140,_0x580fc0){return _0x5f3140&&_0x580fc0;},'BAnTD':function(_0x538916,_0x1d8d95){return _0x538916&&_0x1d8d95;}},_0x270691=await _0x325524[_0x4ac06e(0x183)](getEnabledHookContext,_0x3da3b7),_0x1502f2=_0x270691?.['sessionId']??null;let _0x1a74ac=!![];if(!_0x1502f2){await _0x325524[_0x4ac06e(0x17a)](trackStop,_0x1502f2,![],_0x1a74ac);return;}try{const _0x2e10f3=getSessionEntry(_0x1502f2);if(!_0x2e10f3){await _0x325524[_0x4ac06e(0x17e)](trackStop,_0x1502f2,!![],_0x1a74ac);return;}const _0x49c480=await _0x325524[_0x4ac06e(0x171)](getToken),_0x2f0cde='https://dashboard.ranger.net/features/'+_0x2e10f3[_0x4ac06e(0x185)];let _0x32faba=null,_0x1c9240=![],_0x4823ac=![];if(_0x49c480)try{const _0x4b7e95=await getFeature(_0x2e10f3[_0x4ac06e(0x185)]);_0x32faba=_0x4b7e95[_0x4ac06e(0x18a)]??null;const _0x5caee5=_0x4b7e95['checklistItems']['filter'](_0x31a338=>_0x31a338[_0x4ac06e(0x17f)]===_0x32faba);_0x1c9240=_0x5caee5['some'](_0x33ad4b=>_0x33ad4b[_0x4ac06e(0x184)]!==_0x4ac06e(0x16e)&&_0x33ad4b[_0x4ac06e(0x184)]!==_0x4ac06e(0x176)&&_0x33ad4b['status']!==_0x4ac06e(0x189)&&_0x33ad4b['status']!==_0x4ac06e(0x188)),_0x4823ac=_0x5caee5[_0x4ac06e(0x177)](_0x4abb87=>_0x4abb87['status']==='verification_in_progress');}catch{}if(_0x325524[_0x4ac06e(0x16d)](_0x49c480,_0x32faba)&&_0x1c9240){if(!_0x4823ac&&shouldShowStopReminder(_0x1502f2)){const _0x30e3d8={'hookSpecificOutput':{'hookEventName':_0x4ac06e(0x174),'additionalContext':'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'+_0x2f0cde}};console[_0x4ac06e(0x180)](JSON['stringify'](_0x30e3d8));}}if(_0x325524['BAnTD'](_0x49c480,_0x32faba)&&!_0x1c9240)try{await concludeSession(_0x2e10f3['featureId'],_0x32faba);}catch{}await trackStop(_0x1502f2,!![],_0x1a74ac);return;}catch{await _0x325524[_0x4ac06e(0x17a)](trackStop,_0x1502f2,!![],_0x1a74ac);return;}}async function trackStop(_0x55bb0d,_0x3a9ff0,_0x493671){const _0x88abc1=_0x5e6e,_0x3bd2b1={'wPVtd':'hook:stop','hvwzH':function(_0x3681dc,_0x52c16f){return _0x3681dc??_0x52c16f;},'QlOvg':_0x88abc1(0x173)};try{const _0x274bc9=createTelemetryCollector(_0x3bd2b1['wPVtd']);await _0x274bc9['trackCommandStart']({'sessionId':_0x3bd2b1[_0x88abc1(0x17b)](_0x55bb0d,undefined),'hooksEnabled':_0x3a9ff0,'stopAllowed':_0x493671}),await _0x274bc9[_0x88abc1(0x182)](_0x3bd2b1[_0x88abc1(0x17c)]);}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3eecca,_0x2daaa3){var _0x3a4498=_0x46f6,_0xb912c2=_0x3eecca();while(!![]){try{var _0x2b594a=-parseInt(_0x3a4498(0x194))/0x1*(-parseInt(_0x3a4498(0x199))/0x2)+parseInt(_0x3a4498(0x192))/0x3*(-parseInt(_0x3a4498(0x193))/0x4)+-parseInt(_0x3a4498(0x196))/0x5+parseInt(_0x3a4498(0x18f))/0x6+-parseInt(_0x3a4498(0x195))/0x7*(-parseInt(_0x3a4498(0x198))/0x8)+-parseInt(_0x3a4498(0x190))/0x9+-parseInt(_0x3a4498(0x197))/0xa*(-parseInt(_0x3a4498(0x191))/0xb);if(_0x2b594a===_0x2daaa3)break;else _0xb912c2['push'](_0xb912c2['shift']());}catch(_0x3ed40a){_0xb912c2['push'](_0xb912c2['shift']());}}}(_0x418c,0x5cd34));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';function _0x418c(){var _0x1a9f9c=['1ajgZHI','161693rwrFDB','2766320Nfcpux','10xbaiIJ','240kSbVPI','1511804SnpKzw','1955862CPjyYT','6238152JfgHvD','1632653eEVVWy','3gSRXAR','1186672zNwQoL'];_0x418c=function(){return _0x1a9f9c;};return _0x418c();}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';function _0x46f6(_0x3151dd,_0x5b7fa4){_0x3151dd=_0x3151dd-0x18f;var _0x418c27=_0x418c();var _0x46f60c=_0x418c27[_0x3151dd];return _0x46f60c;}export{migrateProfile}from'./migrateProfile.js';
|