@ranger-testing/ranger-cli 3.1.7-alpha.62f152a-54 → 3.1.7-alpha.9ed0a8d-59

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.
Files changed (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +2 -5
@@ -1 +1 @@
1
- const _0x5d5956=_0x5e92;(function(_0x35c68a,_0x55dbe6){const _0x1e0a2e=_0x5e92,_0x18397e=_0x35c68a();while(!![]){try{const _0x4f7c2c=parseInt(_0x1e0a2e(0x148))/0x1+-parseInt(_0x1e0a2e(0x191))/0x2+-parseInt(_0x1e0a2e(0x141))/0x3*(parseInt(_0x1e0a2e(0x18b))/0x4)+parseInt(_0x1e0a2e(0xcb))/0x5*(-parseInt(_0x1e0a2e(0xc6))/0x6)+-parseInt(_0x1e0a2e(0x16e))/0x7*(parseInt(_0x1e0a2e(0x14c))/0x8)+-parseInt(_0x1e0a2e(0xe8))/0x9+-parseInt(_0x1e0a2e(0x154))/0xa*(-parseInt(_0x1e0a2e(0x129))/0xb);if(_0x4f7c2c===_0x55dbe6)break;else _0x18397e['push'](_0x18397e['shift']());}catch(_0x1a6ee5){_0x18397e['push'](_0x18397e['shift']());}}}(_0x29cf,0xad206));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x248dba 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';function _0x5e92(_0xba33dd,_0x372c7e){_0xba33dd=_0xba33dd-0xb2;const _0x29cf92=_0x29cf();let _0x5e929c=_0x29cf92[_0xba33dd];return _0x5e929c;}import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x5d5956(0x140),bold=_0x8e41ba=>'\x1b[1m'+_0x8e41ba+_0x5d5956(0xed);function getGitRepoUrl(){const _0x5b3a24=_0x5d5956,_0x36baf4={'fafMu':_0x5b3a24(0x104),'SRHHt':'pipe','lYFHQ':_0x5b3a24(0x195)};try{const _0x34f3ed=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x36baf4[_0x5b3a24(0x168)],'stdio':[_0x36baf4['SRHHt'],_0x5b3a24(0x11d),_0x36baf4[_0x5b3a24(0xda)]]})['trim']();return _0x34f3ed['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x36baf4[_0x5b3a24(0xf1)])[_0x5b3a24(0x10a)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x5cea38=_0x5d5956,_0x9f1802={'bQtkK':_0x5cea38(0x11d)};try{return execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x5cea38(0x104),'stdio':[_0x5cea38(0x11d),_0x9f1802['bQtkK'],'pipe']})['trim']();}catch{return undefined;}}function _0x29cf(){const _0x1cb61e=['\x20\x20\x20\x20','notes','map','7772310IDVLVm','screenshotUrls','ZpZIZ','iXyWW','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x1b[0m','write','faBXx','trim','lYFHQ','textContent','timing','.md','latestReview','exit','QiUxX','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','KSGUP','gpzko','vPoPk','\x20unaddressed\x20comment(s)','\x0aAvailable\x20scenarios:','\x0aCreating\x20feature\x20review...','MNPQO','Cannot\x20conclude\x20session\x20with\x20status:\x20','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','dashboardUrl','mhGHI','utf-8','WRrSn','Rvkuz','\x20[has\x20reviewer\x20feedback]','sfOVy','\x20\x20\x20\x20\x20\x20Cancelled:\x20','replace','gitBranch','\x20--current-branch','Scenario\x20','\x20\x20\x20Branch:\x20','exdef','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','incompleteReason','type','submittedAt','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','\x20of\x20','.png','\x0a✅\x20Scenario\x20added','warn','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','isKeyStep','completed','toLocaleString','pipe','hcIME','NHimL','version','wrfsh','iteration','Step\x20','scenarios','VmMeM','\x0a✅\x20Feature\x20review\x20created:\x20','IVRqN','NCZwt','198kvOEUP','tutNj',':\x20\x22','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ArsYX','in_progress','Next\x20page:\x20ranger\x20list\x20--offset\x20','GpBzC','comment_','toLocaleDateString','verified','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x20\x20💬\x20','assetUrl','Current\x20session\x20not\x20found.','canceledReason','LJLGm','screenshot','checklistItems','numeric','uFSiB','Screenshot\x20','CLAUDE_SESSION_ID','active-feature.txt','1959osNPmN','NXkOD','blockedReason','\x20\x20\x20▶️\x20Started\x20session\x20','totalCount','browserSessionId','\x20at\x20[','1071177iqYrmO','stats','join','split','37216PRDyqj','description','\x20\x20\x20Status:\x20','terminalReason','currentBranch','jIEqb','\x20in\x20progress','\x0a📋\x20Feedback\x20for:\x20','1531330UhljOZ','verificationInProgressItems','/artifacts/','EzeLW','env','iuwhg','CbcTR','aHWAJ','gitRepoUrl','blockedItems','nMstv','incomplete','error','parentItemId','TvWFh','assetType','nBuyR','closed','items','\x20\x20\x20Completed:\x20','fafMu','prompt','DYmVG','yXwYF','push','ISYio','1099ekjgvn','scenario','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20incomplete','xGwwJ','point','zbgmP','DoDhT','AvbHz','\x20\x20\x20Created:\x20','UJrDs','cDUPJ','TsBgt','unaddressedComments','JrZNV','EpJEh','spatial','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','excludeScenarios','aGvWy','\x20\x20\x20\x20\x20\x20Blocked:\x20','toFixed','length','HUepx','createdAt','\x20\x20Expected\x20flow:','canonicalFlow','\x20>\x20','1224CHJtns','...','\x0aGenerating\x20report...','sessionId','\x20\x20\x20\x20\x20ID:\x20','No\x20sessions\x20found.','172646YGCDJs','mnBVC','HCBQs','\x20\x20\x20Updated\x20branch\x20to:\x20','github.com/','authorEmail','coordinates','\x20/\x20','\x20(v','\x0a❌\x20Invalid\x20scenario\x20index:\x20','pop','\x20\x20\x20','Obfgh','isInteger','authorName','BdFgo','style','cQqpz','FzLwS','\x20scenarios.','\x20scenario(s).','NkZwQ','content','completedAt','stdout','TtLzY','filter','pTaEv','\x0aNo\x20feature\x20reviews\x20found.','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','JpzxA','offset','fUYLu','isTTY','Showing\x20','has','domRef','jzdWI','name','\x20\x20\x20\x20\x20\x20Incomplete:\x20','json','\x20\x20✅\x20No\x20feedback\x20to\x20address','60yyEmxz','No\x20scenarios\x20found.','ijPxE','en-US','NmVVj','619175eQyKiz','MRObw','PKWtL','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','ZVRjK','limit','currentSessionId','verification_in_progress','lzYDe','log','selector','reports','YDspR','includeDeleted','XGFMH','SRHHt','short','\x20\x20\x20Description:\x20','\x20verified','find','NGuMl','status','JIlBo','RaDCe','Unknown','list'];_0x29cf=function(){return _0x1cb61e;};return _0x29cf();}export async function getActiveFeatureId(){const _0x366412=_0x5d5956,_0x435214=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x435214))return null;try{const _0x480407=await readFile(_0x435214,_0x366412(0x104));return _0x480407['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x56a2b9){const _0x16beee=_0x5d5956,_0x264428={'SYpeM':function(_0x340867){return _0x340867();},'nMstv':function(_0x43edd5,_0xd5c092,_0x50b289){return _0x43edd5(_0xd5c092,_0x50b289);},'faBXx':function(_0x50c964,_0x5ae57a,_0x165856){return _0x50c964(_0x5ae57a,_0x165856);},'iXyWW':function(_0x347187,_0x332af7,_0x3d5a91,_0x172e53){return _0x347187(_0x332af7,_0x3d5a91,_0x172e53);},'iBbrC':'utf-8'},_0x31bc88=_0x264428['SYpeM'](getRangerDir),_0x12fa65=_0x264428[_0x16beee(0x15e)](join,_0x31bc88,ACTIVE_FEATURE_FILE);!existsSync(_0x31bc88)&&await _0x264428[_0x16beee(0xef)](mkdir,_0x31bc88,{'recursive':!![]}),await _0x264428[_0x16beee(0xeb)](writeFile,_0x12fa65,_0x56a2b9,_0x264428['iBbrC']);}function getProgressDisplay(_0x1722c0){const _0x12ba01=_0x5d5956,_0x1408ad={'GpBzC':function(_0x4a7897,_0x151f94){return _0x4a7897+_0x151f94;},'NmVVj':function(_0x4e7e24,_0x43fdeb){return _0x4e7e24+_0x43fdeb;},'Obfgh':function(_0x542f5b,_0xb04e06){return _0x542f5b/_0xb04e06;},'xGwwJ':function(_0x57176c,_0x1b5b18){return _0x57176c>_0x1b5b18;}},_0x10bd0b=_0x1722c0['verifiedItems']||0x0,_0x536dfe=_0x1722c0[_0x12ba01(0x155)]||0x0,_0x52f4d2=_0x1722c0[_0x12ba01(0x15d)]||0x0,_0x4784c7=_0x1722c0['incompleteItems']||0x0,_0xd5d87a=_0x1722c0['pendingItems']||0x0,_0x1e0dd1=_0x1408ad[_0x12ba01(0x130)](_0x1408ad['GpBzC'](_0x1408ad[_0x12ba01(0x130)](_0x1408ad[_0x12ba01(0xca)](_0x10bd0b,_0x536dfe),_0x52f4d2),_0x4784c7),_0xd5d87a);if(_0x1e0dd1===0x0)return'-';const _0x53ea15=0xa,_0x41dcaa=Math['round'](_0x1408ad[_0x12ba01(0x19d)](_0x10bd0b,_0x1e0dd1)*_0x53ea15),_0xd5892b='█'['repeat'](_0x41dcaa)+'░'['repeat'](_0x53ea15-_0x41dcaa),_0x3bf25a=[];if(_0x1408ad[_0x12ba01(0x173)](_0x52f4d2,0x0))_0x3bf25a[_0x12ba01(0x16c)](_0x52f4d2+'\x20blocked');if(_0x4784c7>0x0)_0x3bf25a['push'](_0x4784c7+_0x12ba01(0x172));if(_0x536dfe>0x0)_0x3bf25a['push'](_0x536dfe+_0x12ba01(0x152));const _0x161c30=_0x3bf25a['length']>0x0?'\x20('+_0x3bf25a['join'](',\x20')+')':'';return _0xd5892b+'\x20'+_0x10bd0b+'/'+_0x1e0dd1+_0x12ba01(0xdd)+_0x161c30;}function getCurrentSessionItems(_0x5f57e2,_0x336917){const _0x525d5d=_0x5d5956;if(!_0x5f57e2['currentSessionId'])return _0x336917[_0x525d5d(0xb5)](_0xa30083=>!_0xa30083[_0x525d5d(0x18e)]);return _0x336917['filter'](_0x34228a=>_0x34228a['sessionId']===_0x5f57e2[_0x525d5d(0xd1)]||!_0x34228a[_0x525d5d(0x18e)]);}function displayFeature(_0x1a5e21,_0x1e2cfc){const _0x1c7a47=_0x5d5956,_0x26a354={'ijPxE':'\x0a\x20\x20\x20Scenarios:','tSsHA':function(_0xfa9ea7,_0x184f0b){return _0xfa9ea7<_0x184f0b;},'hcIME':function(_0x4aaeea,_0xbbc5d9){return _0x4aaeea===_0xbbc5d9;},'AiwmK':'approved','NHimL':_0x1c7a47(0x133),'exdef':_0x1c7a47(0x15f),'FzLwS':function(_0x2398e9,_0x2da7cd){return _0x2398e9===_0x2da7cd;},'ZxsOn':_0x1c7a47(0x165),'JtVjl':function(_0x43157b,_0x484b6c){return _0x43157b>_0x484b6c;},'jIEqb':function(_0x5166d8,_0x1b74ab){return _0x5166d8>_0x1b74ab;},'juhHY':function(_0x4bacdc,_0x3c5006){return _0x4bacdc!==_0x3c5006;},'FnnoI':function(_0x1fb265,_0x9f553c){return _0x1fb265!==_0x9f553c;},'pTaEv':function(_0x22a9cc,_0x624e69){return _0x22a9cc+_0x624e69;},'LJLGm':function(_0x1f0db6,_0x35c697){return _0x1f0db6===_0x35c697;}};console[_0x1c7a47(0xd4)]('\x0a'+_0x1a5e21[_0x1c7a47(0xc2)]+'\x20('+_0x1a5e21[_0x1c7a47(0x102)]+')');_0x1a5e21[_0x1c7a47(0x149)]&&console[_0x1c7a47(0xd4)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1a5e21['stats']));_0x1a5e21['description']&&console[_0x1c7a47(0xd4)](_0x1c7a47(0xdc)+_0x1a5e21['description']);_0x1a5e21[_0x1c7a47(0x15c)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x1a5e21[_0x1c7a47(0x15c)]);_0x1a5e21[_0x1c7a47(0x10b)]&&console[_0x1c7a47(0xd4)]('\x20\x20\x20Branch:\x20'+_0x1a5e21['gitBranch']);console[_0x1c7a47(0xd4)](_0x1c7a47(0x178)+new Date(_0x1a5e21['createdAt'])[_0x1c7a47(0x11c)]());_0x1a5e21[_0x1c7a47(0xb2)]&&console[_0x1c7a47(0xd4)]('\x20\x20\x20Completed:\x20'+new Date(_0x1a5e21[_0x1c7a47(0xb2)])['toLocaleString']());if(_0x1e2cfc&&_0x1e2cfc[_0x1c7a47(0x185)]>0x0){console[_0x1c7a47(0xd4)](_0x26a354[_0x1c7a47(0xc8)]);for(let _0x2faff3=0x0;_0x26a354['tSsHA'](_0x2faff3,_0x1e2cfc['length']);_0x2faff3++){const _0x599223=_0x1e2cfc[_0x2faff3];let _0x389755;if(_0x26a354[_0x1c7a47(0x11e)](_0x599223['status'],_0x1c7a47(0x165))&&_0x26a354[_0x1c7a47(0x11e)](_0x599223['terminalReason'],_0x26a354['AiwmK']))_0x389755='✅';else{if(_0x599223[_0x1c7a47(0xe0)]===_0x26a354[_0x1c7a47(0x11f)])_0x389755='🟢';else{if(_0x599223['status']===_0x26a354[_0x1c7a47(0x10f)])_0x389755='🟠';else{if(_0x599223[_0x1c7a47(0xe0)]==='blocked')_0x389755='🛑';else{if(_0x26a354[_0x1c7a47(0x1a3)](_0x599223[_0x1c7a47(0xe0)],_0x26a354['ZxsOn']))_0x389755='⛔';else _0x599223[_0x1c7a47(0xe0)]==='verification_in_progress'?_0x389755='⏳':_0x389755='⬜';}}}}const _0x5e520c=_0x26a354['JtVjl'](_0x599223['version'],0x1)?'\x20(v'+_0x599223[_0x1c7a47(0x120)]+')':'',_0x49da2c=_0x26a354[_0x1c7a47(0x151)](_0x599223[_0x1c7a47(0x120)],0x1)&&_0x599223[_0x1c7a47(0x161)]&&_0x26a354['juhHY'](_0x599223['status'],_0x1c7a47(0x165))&&_0x26a354['FnnoI'](_0x599223[_0x1c7a47(0xe0)],_0x1c7a47(0x133))?_0x1c7a47(0x107):'';console[_0x1c7a47(0xd4)](_0x1c7a47(0x19c)+_0x26a354[_0x1c7a47(0xb6)](_0x2faff3,0x1)+'.\x20'+_0x389755+'\x20'+_0x599223[_0x1c7a47(0x14d)]+_0x5e520c+_0x49da2c);_0x599223['status']==='blocked'&&_0x599223[_0x1c7a47(0x143)]&&console[_0x1c7a47(0xd4)](_0x1c7a47(0x183)+_0x599223[_0x1c7a47(0x143)]);_0x599223[_0x1c7a47(0xe0)]===_0x1c7a47(0x15f)&&_0x599223['incompleteReason']&&console[_0x1c7a47(0xd4)](_0x1c7a47(0xc3)+_0x599223[_0x1c7a47(0x111)]);if(_0x599223['status']===_0x1c7a47(0x165)&&_0x599223['terminalReason']===_0x26a354['AiwmK'])console[_0x1c7a47(0xd4)]('\x20\x20\x20\x20\x20\x20Approved');else _0x26a354[_0x1c7a47(0x139)](_0x599223[_0x1c7a47(0xe0)],'closed')&&_0x599223['canceledReason']&&console[_0x1c7a47(0xd4)](_0x1c7a47(0x109)+_0x599223[_0x1c7a47(0x138)]);}}}export async function featureCreate(_0x2f8af0,_0x365c25){const _0x2c17d6=_0x5d5956,_0x1c88cf={'uFSiB':function(_0x2391d2,_0x31f7c5){return _0x2391d2===_0x31f7c5;},'IyqyF':function(_0x471389,_0x54623a){return _0x471389===_0x54623a;},'ZVRjK':function(_0x37cbe3,_0x4baa70){return _0x37cbe3(_0x4baa70);},'KSGUP':function(_0x3fbf05){return _0x3fbf05();},'TvWFh':function(_0x47fe1f){return _0x47fe1f();},'fUYLu':_0x2c17d6(0xfe),'Rvkuz':function(_0x5c1393,_0xd15c4d){return _0x5c1393(_0xd15c4d);},'doBvE':function(_0x1c94d0,_0x41dcc5,_0x4a1ce9){return _0x1c94d0(_0x41dcc5,_0x4a1ce9);}},{envNames:_0x9ef060}=await getEnvNames();if(_0x1c88cf[_0x2c17d6(0x13d)](_0x9ef060[_0x2c17d6(0x185)],0x0)&&!process['env']['RANGER_TEST_USERNAME']){let _0x569c8c=0x0;try{_0x569c8c=(await listCloudProfiles())[_0x2c17d6(0x185)];}catch{_0x569c8c=0x1;}_0x1c88cf['IyqyF'](_0x569c8c,0x0)&&console[_0x2c17d6(0x118)]('\x0a'+_0x1c88cf[_0x2c17d6(0xcf)](formatProfileRequiredMessage,_0x3b759e=>bold(_0x3b759e)));}const _0x22d0a1=_0x365c25[_0x2c17d6(0x124)]?_0x365c25[_0x2c17d6(0x124)][_0x2c17d6(0xe7)](_0x4b58a2=>_0x4b58a2[_0x2c17d6(0xf0)]()):[],_0x4a8eeb=_0x1c88cf[_0x2c17d6(0xf9)](getGitRepoUrl),_0x3bc57f=_0x1c88cf[_0x2c17d6(0x162)](getGitBranch);console['log'](_0x1c88cf[_0x2c17d6(0xbc)]);const _0x17c5a5=await _0x1c88cf[_0x2c17d6(0x106)](createFeature,{'name':_0x2f8af0,'description':_0x365c25['description'],'checklist':_0x22d0a1,'gitRepoUrl':_0x4a8eeb,'gitBranch':_0x3bc57f});await setActiveFeatureId(_0x17c5a5['id']),await tryStartCurrentSession(_0x17c5a5['id']);const _0x48ab28=process['env'][_0x2c17d6(0x13f)];_0x48ab28&&registerSession(_0x48ab28,_0x17c5a5['id']),console['log'](_0x2c17d6(0x126)+_0x17c5a5['id']),_0x1c88cf['doBvE'](displayFeature,_0x17c5a5,_0x17c5a5[_0x2c17d6(0x13b)]),console[_0x2c17d6(0xd4)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x10c2c9){const _0x5e6fdd=_0x5d5956,_0x2c5388={'zbgmP':function(_0x57ab69,_0x37558f){return _0x57ab69(_0x37558f);},'DoDhT':function(_0x10c798,_0x39faa1){return _0x10c798>_0x39faa1;},'UdJlZ':function(_0x5c1a8a,_0x44ad5c){return _0x5c1a8a+_0x44ad5c;},'PExKk':_0x5e6fdd(0x10c)},_0x489eee={'limit':_0x10c2c9['limit']??0xa,'offset':_0x10c2c9['offset']??0x0,'includeDeleted':_0x10c2c9[_0x5e6fdd(0xd8)]};_0x10c2c9['currentBranch']&&(_0x489eee['gitRepoUrl']=getGitRepoUrl(),_0x489eee['gitBranch']=getGitBranch());const _0x56183a=await _0x2c5388[_0x5e6fdd(0x175)](listFeatures,_0x489eee);if(_0x56183a['items'][_0x5e6fdd(0x185)]===0x0){console[_0x5e6fdd(0xd4)](_0x5e6fdd(0xb7));return;}const _0x3c54e9=_0x2c5388[_0x5e6fdd(0x176)](_0x56183a[_0x5e6fdd(0x145)],_0x56183a[_0x5e6fdd(0x166)][_0x5e6fdd(0x185)])?_0x5e6fdd(0xbe)+_0x56183a[_0x5e6fdd(0x166)][_0x5e6fdd(0x185)]+_0x5e6fdd(0x115)+_0x56183a['totalCount']:_0x56183a['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x5e6fdd(0xd4)]('\x0a'+_0x3c54e9+':\x0a');for(const _0x50532e of _0x56183a['items']){console['log'](''+_0x50532e['name']),console['log']('\x20\x20\x20ID:\x20'+_0x50532e['id']),_0x50532e['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x50532e['stats'])),_0x50532e['gitBranch']&&console['log'](_0x5e6fdd(0x10e)+_0x50532e[_0x5e6fdd(0x10b)]),console[_0x5e6fdd(0xd4)]('\x20\x20\x20Created:\x20'+new Date(_0x50532e[_0x5e6fdd(0x187)])['toLocaleDateString']()),console['log']('');}const _0x159702=_0x489eee[_0x5e6fdd(0xd0)]??0xa,_0x7963ff=_0x2c5388['UdJlZ'](_0x489eee[_0x5e6fdd(0xbb)]??0x0,_0x56183a['items'][_0x5e6fdd(0x185)]);if(_0x7963ff<_0x56183a['totalCount']){const _0x41c23f=_0x159702!==0xa?'\x20--limit\x20'+_0x159702:'',_0x417083=_0x10c2c9[_0x5e6fdd(0x150)]?_0x2c5388['PExKk']:'',_0x5ab939=_0x10c2c9[_0x5e6fdd(0xd8)]?'\x20--include-deleted':'';console['log'](_0x5e6fdd(0x12f)+_0x7963ff+_0x41c23f+_0x417083+_0x5ab939);}}export async function featureShow(_0xc4b611){const _0x4f103f=_0x5d5956,_0x1dcfea={'mhGHI':function(_0xc09ed5){return _0xc09ed5();}},_0x5d5368=_0xc4b611||await _0x1dcfea[_0x4f103f(0x103)](getActiveFeatureId);if(!_0x5d5368)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 _0x26f1b2=await getFeature(_0x5d5368);displayFeature(_0x26f1b2,_0x26f1b2['checklistItems']);}export async function featureResume(_0xb2358d){const _0x179007=_0x5d5956,_0x3760a0={'UJrDs':function(_0x170884,_0x39fe49){return _0x170884(_0x39fe49);},'wrfsh':function(_0xa2dd8c,_0x58c35c,_0x2f3ce7){return _0xa2dd8c(_0x58c35c,_0x2f3ce7);},'XqOfh':function(_0x17b23c){return _0x17b23c();},'uHjdL':'Not\x20in\x20a\x20git\x20repository.','HUepx':function(_0x210920,_0x509588){return _0x210920||_0x509588;},'RaDCe':'any','OOeRH':function(_0x476f45,_0x413621){return _0x476f45(_0x413621);},'byEvO':_0x179007(0x170),'ArsYX':function(_0x2d2d7a,_0x51d977){return _0x2d2d7a(_0x51d977);},'RFAoG':function(_0x5a28a5,_0x1097bb){return _0x5a28a5!==_0x1097bb;},'NGuMl':function(_0x256f69,_0x499556){return _0x256f69(_0x499556);},'RPswZ':function(_0x412e8e,_0x14d6ac){return _0x412e8e(_0x14d6ac);}};if(_0xb2358d){const _0x3ea45a=await getFeature(_0xb2358d);await setActiveFeatureId(_0x3ea45a['id']);const _0x54c7db=getGitBranch();_0x54c7db&&_0x54c7db!==_0x3ea45a[_0x179007(0x10b)]&&(await updateFeature(_0x3ea45a['id'],{'gitBranch':_0x54c7db}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x54c7db));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3ea45a[_0x179007(0xc2)]+'\x20('+_0x3ea45a['id']+')'),await _0x3760a0[_0x179007(0x179)](tryStartCurrentSession,_0x3ea45a['id']);const _0x237562=process[_0x179007(0x158)]['CLAUDE_SESSION_ID'];_0x237562&&registerSession(_0x237562,_0x3ea45a['id']);_0x3760a0['wrfsh'](displayFeature,_0x3ea45a,_0x3ea45a['checklistItems']),await printFeedbackNudge(_0x3ea45a['id']);return;}const _0x489624=getGitRepoUrl(),_0x52b10f=_0x3760a0['XqOfh'](getGitBranch);if(!_0x489624&&!_0x52b10f)throw new Error(_0x3760a0['uHjdL']);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x3760a0[_0x179007(0x186)](_0x489624,'any')+_0x179007(0x198)+_0x3760a0['HUepx'](_0x52b10f,_0x3760a0[_0x179007(0xe2)])+_0x179007(0x18c));const _0x49dab3=await listFeatures({'gitRepoUrl':_0x489624,'gitBranch':_0x52b10f}),_0x4e1e28=_0x49dab3['items'][_0x179007(0xb5)](_0x246997=>_0x246997['status']?_0x246997['status']!=='verified':!_0x246997['completedAt']);if(_0x4e1e28['length']===0x0){console[_0x179007(0xd4)](_0x179007(0x110)),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x2a3a22;if(_0x4e1e28['length']===0x1)_0x2a3a22=_0x4e1e28[0x0];else{const _0x1b92f4=process['stdin']['isTTY']&&process[_0x179007(0xb3)][_0x179007(0xbd)];if(!_0x1b92f4){console['log'](_0x179007(0xce));for(const _0x286a80 of _0x4e1e28){console[_0x179007(0xd4)]('\x20\x20'+_0x286a80['name']),console[_0x179007(0xd4)](_0x179007(0x18f)+_0x286a80['id']),_0x286a80[_0x179007(0x149)]&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x3760a0['OOeRH'](getProgressDisplay,_0x286a80[_0x179007(0x149)])),_0x286a80['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x286a80[_0x179007(0x10b)]);}throw new Error(_0x179007(0x114));}const {selected:_0x53054a}=await _0x248dba[_0x179007(0x169)]([{'type':_0x179007(0xe4),'name':'selected','message':_0x3760a0['byEvO'],'choices':_0x4e1e28['map'](_0x20e0a8=>({'name':_0x20e0a8['name']+'\x20('+_0x20e0a8['id']+')','value':_0x20e0a8['id']}))}]);_0x2a3a22=_0x4e1e28[_0x179007(0xde)](_0x282b9f=>_0x282b9f['id']===_0x53054a);}await _0x3760a0[_0x179007(0x12d)](setActiveFeatureId,_0x2a3a22['id']);_0x52b10f&&_0x3760a0['RFAoG'](_0x52b10f,_0x2a3a22[_0x179007(0x10b)])&&(await _0x3760a0[_0x179007(0x121)](updateFeature,_0x2a3a22['id'],{'gitBranch':_0x52b10f}),console[_0x179007(0xd4)](_0x179007(0x194)+_0x52b10f));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x2a3a22['name']+'\x20('+_0x2a3a22['id']+')'),await tryStartCurrentSession(_0x2a3a22['id']);const _0x1f5290=await _0x3760a0[_0x179007(0xdf)](getFeature,_0x2a3a22['id']),_0x2d3668=process['env'][_0x179007(0x13f)];_0x2d3668&&_0x3760a0[_0x179007(0x121)](registerSession,_0x2d3668,_0x1f5290['id']),_0x3760a0['wrfsh'](displayFeature,_0x1f5290,_0x1f5290['checklistItems']),await _0x3760a0['RPswZ'](printFeedbackNudge,_0x1f5290['id']);}async function printFeedbackNudge(_0x5d5f9b){const _0x121d48=_0x5d5956,_0x475518={'QiUxX':function(_0x2e93b9,_0x19a037){return _0x2e93b9(_0x19a037);},'ISYio':function(_0x1ea101,_0x353886,_0x532f7c){return _0x1ea101(_0x353886,_0x532f7c);},'NILYU':_0x121d48(0xf8)};try{const {items:_0x7ab318}=await _0x475518[_0x121d48(0xf7)](getActionItems,_0x5d5f9b);let _0x52ae2c=0x0,_0x51e5df=0x0;for(const _0x2f59a5 of _0x7ab318){const _0x1316f7=await _0x475518[_0x121d48(0x16d)](getItemFeedback,_0x5d5f9b,_0x2f59a5['id']);_0x1316f7['unaddressedComments'][_0x121d48(0x185)]>0x0&&(_0x52ae2c+=_0x1316f7[_0x121d48(0x17c)]['length'],_0x51e5df++);}_0x52ae2c>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x52ae2c+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x51e5df+_0x121d48(0x1a5)),console['log'](_0x475518['NILYU']));}catch{}}async function tryStartCurrentSession(_0x459198){const _0x49e57a=_0x5d5956;try{const {sessions:_0x383828}=await listFeatureSessions(_0x459198),_0x59109a=_0x383828[_0x49e57a(0xde)](_0x5b4d66=>_0x5b4d66[_0x49e57a(0xe0)]==='ready');_0x59109a&&(await startSession(_0x459198,_0x59109a['id']),console[_0x49e57a(0xd4)](_0x49e57a(0x144)+_0x59109a[_0x49e57a(0x122)]));}catch{}}export async function featureReport(_0x5dbc38,_0xa12328){const _0x3b01e4=_0x5d5956,_0x2f50c8={'TsBgt':function(_0x186b7e){return _0x186b7e();},'NHTEL':_0x3b01e4(0xb9),'SRSVM':_0x3b01e4(0x18d),'sfOVy':function(_0x4d3890,_0x4b0a32,_0x10a247,_0x319264){return _0x4d3890(_0x4b0a32,_0x10a247,_0x319264);},'NXkOD':_0x3b01e4(0xd6),'vPoPk':function(_0x52d4f0,_0x399fed,_0x4fb263){return _0x52d4f0(_0x399fed,_0x4fb263);},'mnBVC':function(_0x5ccc7a,_0x458d89,_0x3a17b1,_0x362943){return _0x5ccc7a(_0x458d89,_0x3a17b1,_0x362943);}},_0x3960fe=_0x5dbc38||await _0x2f50c8[_0x3b01e4(0x17b)](getActiveFeatureId);if(!_0x3960fe)throw new Error(_0x2f50c8['NHTEL']);console['log'](_0x2f50c8['SRSVM']);const _0x132f8a=await getFeatureReportMarkdown(_0x3960fe,{'style':_0xa12328[_0x3b01e4(0x1a1)]}),_0x17bcc3=_0xa12328['output']||_0x2f50c8[_0x3b01e4(0x108)](join,_0x2f50c8['TsBgt'](getRangerDir),_0x2f50c8[_0x3b01e4(0x142)],_0x3960fe+_0x3b01e4(0xf4)),_0x514800=join(_0x17bcc3,'..');!existsSync(_0x514800)&&await _0x2f50c8[_0x3b01e4(0xfb)](mkdir,_0x514800,{'recursive':!![]}),await _0x2f50c8[_0x3b01e4(0x192)](writeFile,_0x17bcc3,_0x132f8a,_0x3b01e4(0x104)),console[_0x3b01e4(0xd4)]('\x0a✅\x20Report\x20generated:\x20'+_0x17bcc3);}function getScenarioResult(_0x2a7d20){const _0x296af0=_0x5d5956,_0x1f50e7={'Kefmo':function(_0x32dd61,_0x25600e){return _0x32dd61===_0x25600e;},'ZpZIZ':_0x296af0(0x165),'gGgPw':_0x296af0(0xd2),'cDUPJ':_0x296af0(0x12e)};if(_0x1f50e7['Kefmo'](_0x2a7d20['status'],_0x1f50e7[_0x296af0(0xea)]))return _0x2a7d20[_0x296af0(0x14f)]??_0x1f50e7['ZpZIZ'];if(_0x2a7d20['status']===_0x1f50e7['gGgPw'])return _0x1f50e7[_0x296af0(0x17a)];return _0x2a7d20['status'];}function getScenarioRationale(_0x4706bb,_0x21803a){const _0x15df80=_0x5d5956,_0x370753='0|3|4|1|5|2'[_0x15df80(0x14b)]('|');let _0x5d8165=0x0;while(!![]){switch(_0x370753[_0x5d8165++]){case'0':if(_0x21803a)return _0x21803a;continue;case'1':if(_0x4706bb[_0x15df80(0x138)])return _0x4706bb['canceledReason'];continue;case'2':return null;case'3':if(_0x4706bb[_0x15df80(0x143)])return _0x4706bb[_0x15df80(0x143)];continue;case'4':if(_0x4706bb[_0x15df80(0x111)])return _0x4706bb[_0x15df80(0x111)];continue;case'5':if(_0x4706bb[_0x15df80(0xe6)])return _0x4706bb[_0x15df80(0xe6)];continue;}break;}}export async function featureReportPrDescription(_0x1d13fc,_0x539a82){const _0x4dc279=_0x5d5956,_0x12bdac={'XGFMH':_0x4dc279(0xb9),'uKDyG':function(_0x519265,_0x4e02f5,_0x469f88){return _0x519265(_0x4e02f5,_0x469f88);},'JrZNV':function(_0x217694,_0x34ed73){return _0x217694===_0x34ed73;},'sPEXI':function(_0x2572f1,_0x58f823){return _0x2572f1>_0x58f823;},'DYmVG':_0x4dc279(0xfd),'bqNiX':_0x4dc279(0x180),'YDspR':function(_0x5965c5,_0x6db81d,_0x44ce9d,_0x438ed9){return _0x5965c5(_0x6db81d,_0x44ce9d,_0x438ed9);},'BWuzs':function(_0xfc8a0,_0x10de22,_0x51cb09){return _0xfc8a0(_0x10de22,_0x51cb09);}},_0x5dc3fb=_0x1d13fc||await getActiveFeatureId();if(!_0x5dc3fb)throw new Error(_0x12bdac[_0x4dc279(0xd9)]);const _0x340a9d=await getFeature(_0x5dc3fb),_0x31ddcf=_0x340a9d[_0x4dc279(0x13b)]||[],_0x321e29=_0x12bdac['uKDyG'](getCurrentSessionItems,_0x340a9d,_0x31ddcf);_0x12bdac[_0x4dc279(0x17d)](_0x321e29['length'],0x0)&&(console['error'](_0x4dc279(0x134)),process['exit'](0x1));const _0x262c28=_0x539a82[_0x4dc279(0x181)]??[],_0x3517d5=_0x262c28[_0x4dc279(0xb5)](_0x36c774=>!Number[_0x4dc279(0x19e)](_0x36c774)||_0x36c774<0x1||_0x36c774>_0x321e29['length']);if(_0x12bdac['sPEXI'](_0x3517d5['length'],0x0)){console[_0x4dc279(0x160)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x3517d5[_0x4dc279(0x14a)](',\x20')),console['log'](_0x12bdac[_0x4dc279(0x16a)]);for(let _0x428712=0x0;_0x428712<_0x321e29['length'];_0x428712++){console['log']('\x20\x20'+(_0x428712+0x1)+'.\x20'+_0x321e29[_0x428712][_0x4dc279(0x14d)]);}process[_0x4dc279(0xf6)](0x1);}const _0x18a4e3=new Set(_0x262c28[_0x4dc279(0xe7)](_0x53abc7=>_0x53abc7-0x1)),_0x3eebf1=_0x321e29['filter']((_0x504211,_0x23827b)=>!_0x18a4e3[_0x4dc279(0xbf)](_0x23827b));_0x3eebf1[_0x4dc279(0x185)]===0x0&&(console['error'](_0x12bdac['bqNiX']),process[_0x4dc279(0xf6)](0x1));if(_0x539a82[_0x4dc279(0xc4)])await _0x12bdac[_0x4dc279(0xd7)](outputJsonReport,_0x5dc3fb,_0x340a9d,_0x3eebf1);else{const _0x3b5e57=await _0x12bdac['BWuzs'](getFeatureReportMarkdown,_0x5dc3fb,{'itemIds':_0x3eebf1[_0x4dc279(0xe7)](_0x3adb89=>_0x3adb89['id'])});process[_0x4dc279(0xb3)]['write'](_0x3b5e57['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x55f494,_0x565d0f,_0x151ccf){const _0x14b476=_0x5d5956,_0x314d8b={'HCBQs':function(_0x39e318,_0x3805ca){return _0x39e318>_0x3805ca;},'AvbHz':function(_0x279ff6){return _0x279ff6();},'JpzxA':function(_0xdde353,_0xf59b5a){return _0xdde353+_0xf59b5a;}},_0x3f13d5=_0x314d8b[_0x14b476(0x177)](getApiBaseUrl),_0x45eeae=await getFeatureReport(_0x55f494),_0x1c7886=new Map(_0x45eeae[_0x14b476(0x13b)]['map'](_0x14a245=>[_0x14a245['id'],_0x14a245])),_0xecca0e=await Promise['all'](_0x151ccf[_0x14b476(0xe7)](async _0x3d72ed=>{const _0x4540a4=_0x14b476,_0x469260=_0x1c7886['get'](_0x3d72ed['id']),_0x1324ff=_0x469260?.['linkedSession']??null;let _0x515a3e=[];if(_0x3d72ed['browserSessionId'])try{const {steps:_0x3e03ae}=await getBrowserSessionSteps(_0x3d72ed[_0x4540a4(0x146)]);_0x314d8b[_0x4540a4(0x193)](_0x3e03ae['length'],0x0)&&(_0x515a3e=_0x3e03ae['map'](_0x420195=>{const _0x21681a=_0x4540a4,_0x57ce24=_0x420195['assets']['find'](_0x3d9991=>_0x3d9991[_0x21681a(0x163)]==='screenshot'&&_0x3d9991[_0x21681a(0xf3)]==='after')??_0x420195['assets']['find'](_0x3fd2ac=>_0x3fd2ac['assetType']===_0x21681a(0x13a));let _0x292403=null,_0x212de0=null;if(_0x57ce24){const _0x5ecd2c=_0x57ce24['storage']['location']['split']('/')[_0x21681a(0x19b)]();_0x292403=_0x3f13d5+'/api/v1/mcp/browser-sessions/'+_0x3d72ed[_0x21681a(0x146)]+_0x21681a(0x156)+_0x5ecd2c,_0x5ecd2c&&(_0x212de0=_0x5ecd2c['replace'](/\.\w+$/,'')[_0x21681a(0x10a)](/^(key_)?\d+_/,'')[_0x21681a(0x10a)](/[-_]/g,'\x20'));}return{'description':_0x212de0||_0x420195[_0x21681a(0x14d)]||_0x420195['stepName']||_0x21681a(0x123)+_0x420195['position'],'screenshot':_0x292403,'is_key_step':_0x420195[_0x21681a(0x11a)]};}));}catch{}return _0x515a3e[_0x4540a4(0x185)]===0x0&&_0x1324ff?.[_0x4540a4(0xe9)]&&(_0x515a3e=_0x1324ff['screenshotUrls']['map']((_0x5d4770,_0x48f6dd)=>({'description':_0x4540a4(0x13e)+(_0x48f6dd+0x1),'screenshot':_0x5d4770,'is_key_step':![]}))),{'description':_0x3d72ed[_0x4540a4(0x14d)],'result':getScenarioResult(_0x3d72ed),'rationale':getScenarioRationale(_0x3d72ed,_0x1324ff?.['agentResponse']),'steps':_0x515a3e};})),_0x852c89={'url':_0x565d0f['dashboardUrl'],'scenarios':_0xecca0e};process[_0x14b476(0xb3)][_0x14b476(0xee)](_0x314d8b[_0x14b476(0xba)](JSON['stringify'](_0x852c89,null,0x2),'\x0a'));}export async function featureConcludeSession(_0xec255c){const _0xdacafd=_0x5d5956,_0x9cb1c7={'BdFgo':_0xdacafd(0x171),'JIlBo':function(_0x51547d,_0x3c4982){return _0x51547d(_0x3c4982);},'NCZwt':_0xdacafd(0x137),'TkKQB':'\x0a✅\x20Session\x20is\x20already\x20completed.','HmLmv':function(_0xee4921,_0x599a79){return _0xee4921!==_0x599a79;},'cQqpz':'in_progress','slanv':'\x0aConcluding\x20session...'},_0x2d73bb=_0xec255c||await getActiveFeatureId();if(!_0x2d73bb)throw new Error(_0x9cb1c7[_0xdacafd(0x1a0)]);const _0x4e64e2=await _0x9cb1c7[_0xdacafd(0xe1)](getFeature,_0x2d73bb);if(!_0x4e64e2[_0xdacafd(0xd1)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0xcf1d58}=await listFeatureSessions(_0x2d73bb),_0x2ace0c=_0xcf1d58['find'](_0x1c8513=>_0x1c8513['id']===_0x4e64e2[_0xdacafd(0xd1)]);if(!_0x2ace0c)throw new Error(_0x9cb1c7[_0xdacafd(0x128)]);if(_0x2ace0c['status']===_0xdacafd(0x11b)){console[_0xdacafd(0xd4)](_0x9cb1c7['TkKQB']);return;}if(_0x9cb1c7['HmLmv'](_0x2ace0c['status'],_0x9cb1c7[_0xdacafd(0x1a2)]))throw new Error(_0xdacafd(0x100)+_0x2ace0c['status']);console[_0xdacafd(0xd4)](_0x9cb1c7['slanv']),await concludeSession(_0x2d73bb,_0x4e64e2['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x2ace0c['iteration']+'\x20concluded.'),console[_0xdacafd(0xd4)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5994b5){const _0x3cdc82=_0x5d5956,_0x1fa361={'aGvWy':function(_0x3a1b40,_0x1e48d0){return _0x3a1b40(_0x1e48d0);},'MNPQO':_0x3cdc82(0x11b),'MRObw':'in_progress'},_0x480c79=_0x5994b5||await getActiveFeatureId();if(!_0x480c79)throw new Error(_0x3cdc82(0xb9));const _0x3d9ef2=await _0x1fa361[_0x3cdc82(0x182)](getFeature,_0x480c79);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3d9ef2['name']+'\x0a');const {sessions:_0x579d72}=await listFeatureSessions(_0x480c79);if(_0x579d72[_0x3cdc82(0x185)]===0x0){console['log'](_0x3cdc82(0x190));return;}for(const _0x12798d of _0x579d72){const _0x172398=_0x12798d['status']===_0x1fa361[_0x3cdc82(0xff)]?'✅':_0x12798d['status']===_0x1fa361[_0x3cdc82(0xcc)]?'🔄':'▶️';console[_0x3cdc82(0xd4)](_0x172398+'\x20Session\x20'+_0x12798d[_0x3cdc82(0x122)]+'\x20('+_0x12798d['id']+')'),console['log'](_0x3cdc82(0x14e)+_0x12798d[_0x3cdc82(0xe0)]),console['log'](_0x3cdc82(0x178)+new Date(_0x12798d['createdAt'])[_0x3cdc82(0x11c)]()),_0x12798d['completedAt']&&console[_0x3cdc82(0xd4)](_0x3cdc82(0x167)+new Date(_0x12798d[_0x3cdc82(0xb2)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x1704c6,_0x1c319e){const _0x51f6b2=_0x5d5956,_0x2472d2={'cSRQE':function(_0x50a672,_0x48c418){return _0x50a672(_0x48c418);},'jzdWI':function(_0xcd6312,_0x1e5e61,_0x184dec){return _0xcd6312(_0x1e5e61,_0x184dec);},'syGsj':function(_0x194346,_0x4af2ee,_0x43c827){return _0x194346(_0x4af2ee,_0x43c827);}},_0x38b4fa=_0x1c319e||await getActiveFeatureId();if(!_0x38b4fa)throw new Error(_0x51f6b2(0x171));const _0x50b13d=await _0x2472d2['cSRQE'](getFeature,_0x38b4fa);if(_0x50b13d['latestReview']&&!_0x50b13d[_0x51f6b2(0xf5)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x50b13d[_0x51f6b2(0x102)]);await _0x2472d2[_0x51f6b2(0xc1)](createChecklistItem,_0x38b4fa,_0x1704c6);const _0x3e95a6=await getFeature(_0x38b4fa);console['log'](_0x51f6b2(0x117)),_0x2472d2['syGsj'](displayFeature,_0x3e95a6,_0x3e95a6[_0x51f6b2(0x13b)]);}export async function featureEditScenario(_0x2bfa67,_0x350341){const _0x136199=_0x5d5956,_0x2e26de={'aHWAJ':_0x136199(0x119),'Cixjr':function(_0x15af54,_0x4526ad){return _0x15af54(_0x4526ad);},'NkZwQ':'Please\x20finish\x20your\x20review\x20first:','nBuyR':function(_0x5dbc8b,_0x2390fc){return _0x5dbc8b===_0x2390fc;},'yXwYF':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','CbcTR':_0x136199(0xfd),'gpzko':function(_0x16ff05,_0x270202){return _0x16ff05+_0x270202;},'VmMeM':function(_0x9d386f,_0x46c62e){return _0x9d386f-_0x46c62e;},'WRrSn':function(_0x9b7e7d,_0x4e411a){return _0x9b7e7d>=_0x4e411a;},'csTGG':function(_0x17f02a,_0x4b24a7){return _0x17f02a<_0x4b24a7;},'sLwVw':function(_0x4cd70d,_0x464008){return _0x4cd70d(_0x464008);},'EpJEh':function(_0xae8544,_0x1592d3,_0x574bd9){return _0xae8544(_0x1592d3,_0x574bd9);}},_0x3ac923=_0x350341['id']||await getActiveFeatureId();!_0x3ac923&&(console['error'](_0x2e26de[_0x136199(0x15b)]),console[_0x136199(0x160)](_0x136199(0x12c)),process[_0x136199(0xf6)](0x1));const _0x29ce53=await _0x2e26de['Cixjr'](getFeature,_0x3ac923);_0x29ce53['latestReview']&&!_0x29ce53['latestReview'][_0x136199(0x113)]&&(console[_0x136199(0x160)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error'](_0x2e26de[_0x136199(0x1a6)]),console[_0x136199(0x160)]('\x20\x20'+_0x29ce53['dashboardUrl']),process[_0x136199(0xf6)](0x1));const _0x4ea700=_0x29ce53['checklistItems']||[];_0x2e26de[_0x136199(0x164)](_0x4ea700['length'],0x0)&&(console['error'](_0x2e26de[_0x136199(0x16b)]),process[_0x136199(0xf6)](0x1));if(_0x350341['scenario']===undefined){console['error'](_0x136199(0x101)),console['log'](_0x2e26de[_0x136199(0x15a)]);for(let _0x5ea496=0x0;_0x5ea496<_0x4ea700[_0x136199(0x185)];_0x5ea496++){console['log']('\x20\x20'+_0x2e26de[_0x136199(0xfa)](_0x5ea496,0x1)+'.\x20'+_0x4ea700[_0x5ea496]['description']);}process['exit'](0x1);}const _0x593a8c=_0x2e26de[_0x136199(0x125)](_0x350341[_0x136199(0x16f)],0x1);if(_0x593a8c<0x0||_0x2e26de[_0x136199(0x105)](_0x593a8c,_0x4ea700[_0x136199(0x185)])){console[_0x136199(0x160)](_0x136199(0x19a)+_0x350341[_0x136199(0x16f)]+'.\x20Feature\x20review\x20has\x20'+_0x4ea700[_0x136199(0x185)]+_0x136199(0x1a4)),console[_0x136199(0xd4)]('\x0aAvailable\x20scenarios:');for(let _0x1069cb=0x0;_0x2e26de['csTGG'](_0x1069cb,_0x4ea700['length']);_0x1069cb++){console[_0x136199(0xd4)]('\x20\x20'+_0x2e26de[_0x136199(0xfa)](_0x1069cb,0x1)+'.\x20'+_0x4ea700[_0x1069cb][_0x136199(0x14d)]);}process[_0x136199(0xf6)](0x1);}const _0x1130da=_0x4ea700[_0x593a8c];await updateChecklistItem(_0x3ac923,_0x1130da['id'],{'description':_0x2bfa67});const _0x4522b3=await _0x2e26de['sLwVw'](getFeature,_0x3ac923);console[_0x136199(0xd4)]('\x0a✅\x20Scenario\x20updated'),_0x2e26de[_0x136199(0x17e)](displayFeature,_0x4522b3,_0x4522b3[_0x136199(0x13b)]);}async function downloadFeedbackImage(_0x2f9eb1,_0x2d928f){const _0x15e434=_0x5d5956,_0x48eac0={'TTuyw':'feedback-images','SfufA':function(_0x4e9588,_0x4a1b25,_0x3e2f02){return _0x4e9588(_0x4a1b25,_0x3e2f02);},'OvHpV':function(_0x346fe9,_0x355e9b){return _0x346fe9(_0x355e9b);}};try{const _0x3028b2=join(getRangerDir(),_0x48eac0['TTuyw']);await mkdir(_0x3028b2,{'recursive':!![]});const _0xbabb13=_0x48eac0['SfufA'](join,_0x3028b2,_0x15e434(0x131)+_0x2d928f+_0x15e434(0x116)),_0x4330b9=await _0x48eac0['OvHpV'](fetch,_0x2f9eb1);if(!_0x4330b9['ok'])return null;const _0x4436bf=Buffer['from'](await _0x4330b9['arrayBuffer']());return await writeFile(_0xbabb13,_0x4436bf),_0xbabb13;}catch{return null;}}export async function featureGetReview(_0x53c2a4){const _0x43a207=_0x5d5956,_0x24cd06={'IVRqN':function(_0x515bcd){return _0x515bcd();},'iuwhg':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','tutNj':function(_0x20649b,_0x1c5c22){return _0x20649b(_0x1c5c22);},'EzeLW':function(_0x3138d0,_0x40f40e){return _0x3138d0===_0x40f40e;},'iCdZZ':_0x43a207(0xc7),'ShgdV':function(_0x209a7a,_0x48fed4){return _0x209a7a<_0x48fed4;},'QBuHX':function(_0x36ae8f,_0x4e82b4){return _0x36ae8f>_0x4e82b4;},'TtLzY':function(_0x316095,_0x289869,_0x4541ca){return _0x316095(_0x289869,_0x4541ca);},'lzYDe':function(_0x46ad82,_0x3edd80){return _0x46ad82+_0x3edd80;},'RTxYo':_0x43a207(0xdb),'LdNsD':function(_0x8ebb22,_0x5c525e){return _0x8ebb22+_0x5c525e;}},_0x1a1ff4=_0x53c2a4||await _0x24cd06[_0x43a207(0x127)](getActiveFeatureId);if(!_0x1a1ff4)throw new Error(_0x24cd06[_0x43a207(0x159)]);const _0xa55bb3=await _0x24cd06[_0x43a207(0x12a)](getFeature,_0x1a1ff4),{items:_0x43d673}=await getActionItems(_0x1a1ff4);console[_0x43a207(0xd4)](_0x43a207(0x153)+_0xa55bb3[_0x43a207(0xc2)]+'\x20('+_0xa55bb3['id']+')\x0a');if(_0x24cd06[_0x43a207(0x157)](_0x43d673[_0x43a207(0x185)],0x0)){console[_0x43a207(0xd4)](_0x24cd06['iCdZZ']);return;}for(let _0x2e16e3=0x0;_0x24cd06['ShgdV'](_0x2e16e3,_0x43d673['length']);_0x2e16e3++){const _0x180c23=_0x43d673[_0x2e16e3],_0xfda70d=_0x24cd06['QBuHX'](_0x180c23['version'],0x1)?_0x43a207(0x199)+_0x180c23['version']+')':'',_0x33a977=await _0x24cd06[_0x43a207(0xb4)](getItemFeedback,_0x1a1ff4,_0x180c23['id']);if(_0x33a977['unaddressedComments']['length']>0x0){console['log'](_0x43a207(0x10d)+_0x24cd06[_0x43a207(0xd3)](_0x2e16e3,0x1)+_0x43a207(0x12b)+_0x180c23['description']+'\x22'+_0xfda70d+'\x20—\x20'+_0x33a977['unaddressedComments'][_0x43a207(0x185)]+_0x43a207(0xfc));for(const _0x54d387 of _0x33a977[_0x43a207(0x17c)]){const _0x55e566=new Date(_0x54d387['createdAt'])[_0x43a207(0x132)](_0x43a207(0xc9),{'month':_0x24cd06['RTxYo'],'day':_0x43a207(0x13c)}),_0x4a8d98=_0x54d387[_0x43a207(0x19f)]||_0x54d387[_0x43a207(0x196)]||_0x43a207(0xe3);console['log'](_0x43a207(0x135)+_0x4a8d98+'\x20('+_0x55e566+'):\x20\x22'+_0x54d387[_0x43a207(0x1a7)]+'\x22');if(_0x54d387[_0x43a207(0x136)]){const _0x565090=await downloadFeedbackImage(_0x54d387['assetUrl'],_0x54d387['id']);_0x565090&&console[_0x43a207(0xd4)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x565090);}if(_0x54d387['domRef']){const _0x2ac355=_0x54d387[_0x43a207(0xc0)][_0x43a207(0xd5)]['split'](_0x43a207(0x18a))[_0x43a207(0x19b)]()?.[_0x43a207(0x14b)](':')[0x0]||'element',_0x8fdb5=_0x54d387['domRef'][_0x43a207(0xf2)]?'\x20\x22'+_0x54d387[_0x43a207(0xc0)][_0x43a207(0xf2)]['slice'](0x0,0x3c)+'\x22':'';console[_0x43a207(0xd4)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x2ac355+'>'+_0x8fdb5),console[_0x43a207(0xd4)](_0x43a207(0xec)+_0x54d387['domRef']['selector']);}else{if(_0x54d387[_0x43a207(0x17f)]){const _0x4c657d=_0x54d387['spatial'][_0x43a207(0x197)];_0x24cd06[_0x43a207(0x157)](_0x54d387[_0x43a207(0x17f)][_0x43a207(0x112)],_0x43a207(0x174))&&_0x4c657d[_0x43a207(0x185)]>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x4c657d[0x0][_0x43a207(0x184)](0x2)+',\x20'+_0x4c657d[0x1][_0x43a207(0x184)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x54d387[_0x43a207(0x17f)][_0x43a207(0x112)]+_0x43a207(0x147)+_0x4c657d[_0x43a207(0xe7)](_0x4931fe=>_0x4931fe[_0x43a207(0x184)](0x2))[_0x43a207(0x14a)](',\x20')+']');}}}if(_0x33a977[_0x43a207(0x189)]){console['log'](_0x43a207(0x188));for(const _0x1f3f86 of _0x33a977[_0x43a207(0x189)][_0x43a207(0x14b)]('\x0a')){console[_0x43a207(0xd4)](_0x43a207(0xe5)+_0x1f3f86);}}}else console[_0x43a207(0xd4)]('Scenario\x20'+_0x24cd06['LdNsD'](_0x2e16e3,0x1)+':\x20\x22'+_0x180c23['description']+'\x22'+_0xfda70d+'\x20—\x20no\x20comments'),console[_0x43a207(0xd4)](_0x43a207(0xc5));console[_0x43a207(0xd4)]('');}}export async function featureDelete(_0x744bfd){const _0x5be361=_0x5d5956,_0x4364bb={'zZXvm':_0x5be361(0x171),'RprKc':function(_0x821403,_0x33b91d){return _0x821403(_0x33b91d);},'PKWtL':_0x5be361(0xb8)},_0x90ac8f=_0x744bfd||await getActiveFeatureId();if(!_0x90ac8f)throw new Error(_0x4364bb['zZXvm']);const _0x427f95=await _0x4364bb['RprKc'](getFeature,_0x90ac8f);await softDeleteFeature(_0x90ac8f),console[_0x5be361(0xd4)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x427f95[_0x5be361(0xc2)]+'\x20('+_0x90ac8f+')'),console[_0x5be361(0xd4)](_0x4364bb[_0x5be361(0xcd)]+_0x90ac8f);}export async function featureRestore(_0x14dbf5){const _0x3b6134=_0x5d5956,_0x3c35f9={'jNOeU':function(_0x429246,_0x15ee57){return _0x429246(_0x15ee57);}};await _0x3c35f9['jNOeU'](restoreFeature,_0x14dbf5);const _0x539fb4=await getFeature(_0x14dbf5);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x539fb4['name']+'\x20('+_0x14dbf5+')'),displayFeature(_0x539fb4,_0x539fb4[_0x3b6134(0x13b)]);}
1
+ (function(_0x3c358f,_0x18a5a1){const _0x47892b=_0x458e,_0x421462=_0x3c358f();while(!![]){try{const _0x58e73e=parseInt(_0x47892b(0x185))/0x1*(-parseInt(_0x47892b(0x1e8))/0x2)+-parseInt(_0x47892b(0x1cc))/0x3+-parseInt(_0x47892b(0x1f1))/0x4+parseInt(_0x47892b(0x1ba))/0x5+-parseInt(_0x47892b(0x166))/0x6+parseInt(_0x47892b(0x21e))/0x7+parseInt(_0x47892b(0x216))/0x8;if(_0x58e73e===_0x18a5a1)break;else _0x421462['push'](_0x421462['shift']());}catch(_0x3f4d27){_0x421462['push'](_0x421462['shift']());}}}(_0x4253,0x46833));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0xfe6480 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=_0x7affdd=>'\x1b[1m'+_0x7affdd+'\x1b[0m';function getGitRepoUrl(){const _0x2e8750=_0x458e,_0x54b8aa={'IqDJp':'git\x20remote\x20get-url\x20origin','orcfJ':_0x2e8750(0x200)};try{const _0x310885=execSync(_0x54b8aa['IqDJp'],{'encoding':_0x2e8750(0x228),'stdio':[_0x54b8aa['orcfJ'],'pipe',_0x54b8aa[_0x2e8750(0x1b8)]]})[_0x2e8750(0x197)]();return _0x310885['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x2e8750(0x1c0))[_0x2e8750(0x18a)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x34cb69=_0x458e,_0x516929={'wRGbw':function(_0x540317,_0x57eb48,_0x2dc2b4){return _0x540317(_0x57eb48,_0x2dc2b4);},'fnkWb':'git\x20rev-parse\x20--abbrev-ref\x20HEAD'};try{return _0x516929[_0x34cb69(0x18b)](execSync,_0x516929[_0x34cb69(0x17f)],{'encoding':_0x34cb69(0x228),'stdio':['pipe','pipe','pipe']})[_0x34cb69(0x197)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5c0942=_0x458e,_0x534406={'Vcvwt':function(_0x5447e0){return _0x5447e0();},'KGERI':function(_0x1309d8,_0xc56f37){return _0x1309d8(_0xc56f37);},'aNRYZ':function(_0x14d008,_0x5e3d21,_0x8d8fa8){return _0x14d008(_0x5e3d21,_0x8d8fa8);},'VMdJl':'utf-8'},_0xdc6911=join(_0x534406[_0x5c0942(0x190)](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x534406['KGERI'](existsSync,_0xdc6911))return null;try{const _0x59e6a2=await _0x534406['aNRYZ'](readFile,_0xdc6911,_0x534406[_0x5c0942(0x1ee)]);return _0x59e6a2[_0x5c0942(0x197)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x3b828e){const _0x214437=_0x458e,_0x3a670c={'hGDEG':function(_0x167c58,_0xa4d09f,_0x2f77be){return _0x167c58(_0xa4d09f,_0x2f77be);},'dCuUI':function(_0x8c13d5,_0x49ede0){return _0x8c13d5(_0x49ede0);},'CKeIG':function(_0x1700f6,_0x384512,_0x2da58a,_0x239e14){return _0x1700f6(_0x384512,_0x2da58a,_0x239e14);}},_0x596f72=getRangerDir(),_0x1bb553=_0x3a670c['hGDEG'](join,_0x596f72,ACTIVE_FEATURE_FILE);!_0x3a670c[_0x214437(0x1ff)](existsSync,_0x596f72)&&await mkdir(_0x596f72,{'recursive':!![]}),await _0x3a670c[_0x214437(0x186)](writeFile,_0x1bb553,_0x3b828e,'utf-8');}function getProgressDisplay(_0x17e627){const _0x36943f=_0x458e,_0x422dd2={'nsDuD':function(_0x591f81,_0x54bfbd){return _0x591f81===_0x54bfbd;},'LdVbs':function(_0x3292b0,_0x53119e){return _0x3292b0*_0x53119e;},'FpjNC':function(_0x58ad97,_0x28402a){return _0x58ad97/_0x28402a;},'RDKQT':function(_0xec5fd3,_0x32f050){return _0xec5fd3>_0x32f050;},'CTCsb':function(_0x487612,_0x58ddce){return _0x487612>_0x58ddce;}},_0x4518a9=_0x17e627[_0x36943f(0x18c)]||0x0,_0x50fec6=_0x17e627[_0x36943f(0x1bb)]||0x0,_0x7d3f10=_0x17e627['blockedItems']||0x0,_0x2189ec=_0x17e627['incompleteItems']||0x0,_0x205866=_0x17e627['pendingItems']||0x0,_0x5298c2=_0x4518a9+_0x50fec6+_0x7d3f10+_0x2189ec+_0x205866;if(_0x422dd2[_0x36943f(0x211)](_0x5298c2,0x0))return'-';const _0x488777=0xa,_0x31f0f4=Math[_0x36943f(0x223)](_0x422dd2[_0x36943f(0x1f2)](_0x422dd2['FpjNC'](_0x4518a9,_0x5298c2),_0x488777)),_0x4022e6='█'['repeat'](_0x31f0f4)+'░'[_0x36943f(0x204)](_0x488777-_0x31f0f4),_0x1c044c=[];if(_0x7d3f10>0x0)_0x1c044c['push'](_0x7d3f10+_0x36943f(0x1ac));if(_0x422dd2[_0x36943f(0x188)](_0x2189ec,0x0))_0x1c044c[_0x36943f(0x20a)](_0x2189ec+_0x36943f(0x1a2));if(_0x422dd2['CTCsb'](_0x50fec6,0x0))_0x1c044c['push'](_0x50fec6+_0x36943f(0x174));const _0x842896=_0x1c044c['length']>0x0?'\x20('+_0x1c044c[_0x36943f(0x1af)](',\x20')+')':'';return _0x4022e6+'\x20'+_0x4518a9+'/'+_0x5298c2+'\x20verified'+_0x842896;}function getCurrentSessionItems(_0x40ca16,_0x29826d){const _0x48b5e1=_0x458e;if(!_0x40ca16['currentSessionId'])return _0x29826d['filter'](_0x5a8552=>!_0x5a8552[_0x48b5e1(0x1bf)]);return _0x29826d['filter'](_0x168d03=>_0x168d03['sessionId']===_0x40ca16[_0x48b5e1(0x1a7)]||!_0x168d03[_0x48b5e1(0x1bf)]);}function displayFeature(_0x237a9a,_0x54435a){const _0xf4668b=_0x458e,_0x179934={'WQyST':function(_0x4762db,_0x15974c){return _0x4762db>_0x15974c;},'OdJeq':function(_0x92e2c5,_0x23e4d3){return _0x92e2c5<_0x23e4d3;},'IMiND':'closed','drXQb':function(_0x4abbf7,_0x2d7045){return _0x4abbf7===_0x2d7045;},'ZojMm':_0xf4668b(0x219),'QMkMf':_0xf4668b(0x1dc),'iHyAa':function(_0xe2f6dc,_0x327265){return _0xe2f6dc===_0x327265;},'DECMT':'verification_in_progress','ypeAf':'approved'};console[_0xf4668b(0x1fc)]('\x0a'+_0x237a9a['name']+'\x20('+_0x237a9a[_0xf4668b(0x1d8)]+')');_0x237a9a['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x237a9a[_0xf4668b(0x1da)]));_0x237a9a[_0xf4668b(0x1e5)]&&console['log'](_0xf4668b(0x173)+_0x237a9a[_0xf4668b(0x1e5)]);_0x237a9a['gitRepoUrl']&&console['log'](_0xf4668b(0x1c9)+_0x237a9a['gitRepoUrl']);_0x237a9a['gitBranch']&&console[_0xf4668b(0x1fc)](_0xf4668b(0x1cd)+_0x237a9a[_0xf4668b(0x235)]);console[_0xf4668b(0x1fc)](_0xf4668b(0x1b4)+new Date(_0x237a9a[_0xf4668b(0x1ad)])['toLocaleString']());_0x237a9a[_0xf4668b(0x21a)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x237a9a[_0xf4668b(0x21a)])[_0xf4668b(0x230)]());if(_0x54435a&&_0x179934['WQyST'](_0x54435a[_0xf4668b(0x19a)],0x0)){console['log'](_0xf4668b(0x161));for(let _0x3810b9=0x0;_0x179934['OdJeq'](_0x3810b9,_0x54435a['length']);_0x3810b9++){const _0xcda9b8=_0x54435a[_0x3810b9];let _0x2463df;if(_0xcda9b8['status']===_0x179934[_0xf4668b(0x1a6)]&&_0x179934[_0xf4668b(0x1cb)](_0xcda9b8[_0xf4668b(0x1f9)],'approved'))_0x2463df='✅';else{if(_0x179934['drXQb'](_0xcda9b8[_0xf4668b(0x179)],_0x179934[_0xf4668b(0x231)]))_0x2463df='🟢';else{if(_0xcda9b8[_0xf4668b(0x179)]===_0x179934[_0xf4668b(0x19c)])_0x2463df='🟠';else{if(_0xcda9b8['status']==='blocked')_0x2463df='🛑';else{if(_0x179934['iHyAa'](_0xcda9b8['status'],'closed'))_0x2463df='⛔';else _0xcda9b8['status']===_0x179934['DECMT']?_0x2463df='⏳':_0x2463df='⬜';}}}}const _0x5ad53b=_0xcda9b8['version']>0x1?_0xf4668b(0x19b)+_0xcda9b8[_0xf4668b(0x201)]+')':'',_0xbb9a68=_0xcda9b8['version']>0x1&&_0xcda9b8[_0xf4668b(0x1db)]&&_0xcda9b8[_0xf4668b(0x179)]!==_0xf4668b(0x199)&&_0xcda9b8[_0xf4668b(0x179)]!==_0xf4668b(0x219)?'\x20[has\x20reviewer\x20feedback]':'';console[_0xf4668b(0x1fc)]('\x20\x20\x20'+(_0x3810b9+0x1)+'.\x20'+_0x2463df+'\x20'+_0xcda9b8['description']+_0x5ad53b+_0xbb9a68);_0xcda9b8[_0xf4668b(0x179)]===_0xf4668b(0x1a5)&&_0xcda9b8[_0xf4668b(0x1f4)]&&console[_0xf4668b(0x1fc)](_0xf4668b(0x192)+_0xcda9b8[_0xf4668b(0x1f4)]);_0xcda9b8['status']===_0x179934[_0xf4668b(0x19c)]&&_0xcda9b8['incompleteReason']&&console['log'](_0xf4668b(0x191)+_0xcda9b8[_0xf4668b(0x1e1)]);if(_0xcda9b8[_0xf4668b(0x179)]===_0xf4668b(0x199)&&_0x179934[_0xf4668b(0x226)](_0xcda9b8[_0xf4668b(0x1f9)],_0x179934['ypeAf']))console[_0xf4668b(0x1fc)](_0xf4668b(0x17a));else _0x179934['drXQb'](_0xcda9b8['status'],_0xf4668b(0x199))&&_0xcda9b8['canceledReason']&&console[_0xf4668b(0x1fc)](_0xf4668b(0x1b5)+_0xcda9b8[_0xf4668b(0x1aa)]);}}}export async function featureCreate(_0x337419,_0x3097a1){const _0xf7d005=_0x458e,_0xb521c7={'BooAR':function(_0x32f062){return _0x32f062();},'zUMgb':function(_0x369596){return _0x369596();},'cqsbu':function(_0xe9c6e,_0x48964a){return _0xe9c6e(_0x48964a);},'lXGuj':function(_0x2a80cc,_0x53ddea){return _0x2a80cc(_0x53ddea);},'NDuMk':function(_0x4fbf3b,_0x251b77,_0x1aa1e9){return _0x4fbf3b(_0x251b77,_0x1aa1e9);}},{envNames:_0x1140b6}=await _0xb521c7[_0xf7d005(0x1e2)](getEnvNames);if(_0x1140b6['length']===0x0&&!process['env']['RANGER_TEST_USERNAME']){let _0x450735=0x0;try{_0x450735=(await listCloudProfiles())['length'];}catch{_0x450735=0x1;}_0x450735===0x0&&console[_0xf7d005(0x1fa)]('\x0a'+formatProfileRequiredMessage(_0x3599ff=>bold(_0x3599ff)));}const _0xda5674=_0x3097a1['scenarios']?_0x3097a1['scenarios'][_0xf7d005(0x212)](_0x426859=>_0x426859['trim']()):[],_0x37d146=getGitRepoUrl(),_0xb1b096=_0xb521c7[_0xf7d005(0x1c6)](getGitBranch);console[_0xf7d005(0x1fc)](_0xf7d005(0x22e));const _0x103c7a=await createFeature({'name':_0x337419,'description':_0x3097a1['description'],'checklist':_0xda5674,'gitRepoUrl':_0x37d146,'gitBranch':_0xb1b096});await _0xb521c7[_0xf7d005(0x20c)](setActiveFeatureId,_0x103c7a['id']),await _0xb521c7[_0xf7d005(0x22d)](tryStartCurrentSession,_0x103c7a['id']);const _0x37e605=process['env']['CLAUDE_SESSION_ID'];_0x37e605&&registerSession(_0x37e605,_0x103c7a['id']),console[_0xf7d005(0x1fc)](_0xf7d005(0x21f)+_0x103c7a['id']),_0xb521c7['NDuMk'](displayFeature,_0x103c7a,_0x103c7a[_0xf7d005(0x1c5)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x4c7019){const _0x2728fd=_0x458e,_0x137838={'vfNDc':function(_0x2e5958){return _0x2e5958();},'EAzqC':function(_0x311850,_0x53d719){return _0x311850(_0x53d719);},'DrwTm':function(_0x57fa0a,_0x33ce78){return _0x57fa0a+_0x33ce78;},'nqUJr':function(_0x142068,_0x1c0ad1){return _0x142068<_0x1c0ad1;},'fdKmT':function(_0x2f1c53,_0x2ff85e){return _0x2f1c53!==_0x2ff85e;},'RfhEb':_0x2728fd(0x1f8)},_0x31d099={'limit':_0x4c7019[_0x2728fd(0x1a3)]??0xa,'offset':_0x4c7019['offset']??0x0,'includeDeleted':_0x4c7019['includeDeleted']};_0x4c7019['currentBranch']&&(_0x31d099['gitRepoUrl']=_0x137838['vfNDc'](getGitRepoUrl),_0x31d099[_0x2728fd(0x235)]=getGitBranch());const _0x302b19=await listFeatures(_0x31d099);if(_0x302b19['items']['length']===0x0){console['log'](_0x2728fd(0x1c4));return;}const _0x57285b=_0x302b19['totalCount']>_0x302b19['items']['length']?_0x2728fd(0x175)+_0x302b19['items'][_0x2728fd(0x19a)]+_0x2728fd(0x1e3)+_0x302b19['totalCount']:_0x302b19[_0x2728fd(0x1bc)]+'\x20feature\x20review(s)\x20found';console[_0x2728fd(0x1fc)]('\x0a'+_0x57285b+':\x0a');for(const _0x71cc88 of _0x302b19['items']){const _0x3a9931='5|2|1|4|3|0'[_0x2728fd(0x18f)]('|');let _0x15b0eb=0x0;while(!![]){switch(_0x3a9931[_0x15b0eb++]){case'0':console[_0x2728fd(0x1fc)]('');continue;case'1':_0x71cc88[_0x2728fd(0x1da)]&&console[_0x2728fd(0x1fc)](_0x2728fd(0x176)+_0x137838[_0x2728fd(0x1a4)](getProgressDisplay,_0x71cc88[_0x2728fd(0x1da)]));continue;case'2':console['log']('\x20\x20\x20ID:\x20'+_0x71cc88['id']);continue;case'3':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x71cc88['createdAt'])['toLocaleDateString']());continue;case'4':_0x71cc88['gitBranch']&&console[_0x2728fd(0x1fc)](_0x2728fd(0x1cd)+_0x71cc88['gitBranch']);continue;case'5':console[_0x2728fd(0x1fc)](''+_0x71cc88['name']);continue;}break;}}const _0x512be5=_0x31d099['limit']??0xa,_0x25be56=_0x137838[_0x2728fd(0x215)](_0x31d099['offset']??0x0,_0x302b19[_0x2728fd(0x196)][_0x2728fd(0x19a)]);if(_0x137838[_0x2728fd(0x1a1)](_0x25be56,_0x302b19['totalCount'])){const _0x237130=_0x137838[_0x2728fd(0x229)](_0x512be5,0xa)?_0x2728fd(0x1bd)+_0x512be5:'',_0x2f7a46=_0x4c7019[_0x2728fd(0x210)]?_0x2728fd(0x172):'',_0x13d209=_0x4c7019['includeDeleted']?_0x137838[_0x2728fd(0x18d)]:'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x25be56+_0x237130+_0x2f7a46+_0x13d209);}}export async function featureShow(_0x50b279){const _0x48f401=_0x458e,_0x68c898={'dmMXS':function(_0x1bd636){return _0x1bd636();},'YJpFG':function(_0x1293f6,_0x43359c){return _0x1293f6(_0x43359c);}},_0x17941e=_0x50b279||await _0x68c898['dmMXS'](getActiveFeatureId);if(!_0x17941e)throw new Error(_0x48f401(0x1dd));const _0x28a6dd=await _0x68c898['YJpFG'](getFeature,_0x17941e);displayFeature(_0x28a6dd,_0x28a6dd['checklistItems']);}export async function featureResume(_0x3be458){const _0x141540=_0x458e,_0x11b330={'WAonp':function(_0x11ab1c,_0x53a574){return _0x11ab1c(_0x53a574);},'OTyoT':function(_0x1f5a69,_0x2febf7){return _0x1f5a69(_0x2febf7);},'DOvYi':function(_0x38b776,_0x46a8fb,_0x18c034){return _0x38b776(_0x46a8fb,_0x18c034);},'UsBun':function(_0x546150){return _0x546150();},'zSjOg':function(_0x1aec4e,_0x174d6e){return _0x1aec4e||_0x174d6e;},'cfIQr':function(_0xdfff32,_0x4b5dac){return _0xdfff32||_0x4b5dac;},'mbMyK':function(_0x3a755f,_0x3cdd74){return _0x3a755f===_0x3cdd74;},'YpoUz':_0x141540(0x1b2),'eCEhJ':_0x141540(0x205),'LCVjG':function(_0x22b0af,_0x217866){return _0x22b0af(_0x217866);},'PVvLx':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','pGBwN':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','PVasC':function(_0x227045,_0x27e1d8){return _0x227045(_0x27e1d8);},'Lzyig':function(_0x173f7f,_0x5a728a){return _0x173f7f!==_0x5a728a;}};if(_0x3be458){const _0x1e2e4b=await _0x11b330['WAonp'](getFeature,_0x3be458);await _0x11b330[_0x141540(0x207)](setActiveFeatureId,_0x1e2e4b['id']);const _0x2aaaa=getGitBranch();_0x2aaaa&&_0x2aaaa!==_0x1e2e4b['gitBranch']&&(await updateFeature(_0x1e2e4b['id'],{'gitBranch':_0x2aaaa}),console[_0x141540(0x1fc)](_0x141540(0x227)+_0x2aaaa));console[_0x141540(0x1fc)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x1e2e4b[_0x141540(0x224)]+'\x20('+_0x1e2e4b['id']+')'),await tryStartCurrentSession(_0x1e2e4b['id']);const _0x4b265a=process['env']['CLAUDE_SESSION_ID'];_0x4b265a&&_0x11b330[_0x141540(0x189)](registerSession,_0x4b265a,_0x1e2e4b['id']);displayFeature(_0x1e2e4b,_0x1e2e4b[_0x141540(0x1c5)]),await printFeedbackNudge(_0x1e2e4b['id']);return;}const _0x72603a=getGitRepoUrl(),_0x1db6af=_0x11b330['UsBun'](getGitBranch);if(!_0x72603a&&!_0x1db6af)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x141540(0x1fc)](_0x141540(0x163)+_0x11b330['zSjOg'](_0x72603a,_0x141540(0x184))+'\x20/\x20'+_0x11b330[_0x141540(0x16f)](_0x1db6af,_0x141540(0x184))+_0x141540(0x162));const _0x20cb9a=await listFeatures({'gitRepoUrl':_0x72603a,'gitBranch':_0x1db6af}),_0x514887=_0x20cb9a[_0x141540(0x196)]['filter'](_0x20c53d=>_0x20c53d['status']?_0x20c53d[_0x141540(0x179)]!==_0x141540(0x219):!_0x20c53d[_0x141540(0x21a)]);if(_0x11b330[_0x141540(0x1ab)](_0x514887['length'],0x0)){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x141540(0x1fc)](_0x11b330[_0x141540(0x1ec)]);return;}let _0x5c8a60;if(_0x11b330[_0x141540(0x1ab)](_0x514887[_0x141540(0x19a)],0x1))_0x5c8a60=_0x514887[0x0];else{const _0x3295af=process['stdin'][_0x141540(0x22a)]&&process['stdout']['isTTY'];if(!_0x3295af){console[_0x141540(0x1fc)](_0x11b330[_0x141540(0x22c)]);for(const _0x5372f8 of _0x514887){console[_0x141540(0x1fc)]('\x20\x20'+_0x5372f8[_0x141540(0x224)]),console['log'](_0x141540(0x1f5)+_0x5372f8['id']),_0x5372f8['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x11b330[_0x141540(0x21d)](getProgressDisplay,_0x5372f8[_0x141540(0x1da)])),_0x5372f8['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x5372f8[_0x141540(0x235)]);}throw new Error(_0x11b330['PVvLx']);}const {selected:_0x59c31e}=await _0xfe6480[_0x141540(0x22f)]([{'type':_0x141540(0x1c1),'name':'selected','message':_0x11b330['pGBwN'],'choices':_0x514887['map'](_0x1186f1=>({'name':_0x1186f1[_0x141540(0x224)]+'\x20('+_0x1186f1['id']+')','value':_0x1186f1['id']}))}]);_0x5c8a60=_0x514887['find'](_0x2c6bf6=>_0x2c6bf6['id']===_0x59c31e);}await _0x11b330['PVasC'](setActiveFeatureId,_0x5c8a60['id']);_0x1db6af&&_0x11b330[_0x141540(0x19f)](_0x1db6af,_0x5c8a60['gitBranch'])&&(await updateFeature(_0x5c8a60['id'],{'gitBranch':_0x1db6af}),console[_0x141540(0x1fc)](_0x141540(0x227)+_0x1db6af));console[_0x141540(0x1fc)](_0x141540(0x1ef)+_0x5c8a60['name']+'\x20('+_0x5c8a60['id']+')'),await tryStartCurrentSession(_0x5c8a60['id']);const _0x2327b9=await getFeature(_0x5c8a60['id']),_0x4109ec=process[_0x141540(0x1ed)]['CLAUDE_SESSION_ID'];_0x4109ec&&registerSession(_0x4109ec,_0x2327b9['id']),displayFeature(_0x2327b9,_0x2327b9[_0x141540(0x1c5)]),await printFeedbackNudge(_0x2327b9['id']);}async function printFeedbackNudge(_0x4f0f21){const _0x5837f6=_0x458e,_0x23831f={'eZNaL':function(_0x28b431,_0x24f0d9){return _0x28b431(_0x24f0d9);},'Rgpde':function(_0x8cf4c2,_0x199d98){return _0x8cf4c2>_0x199d98;}};try{const {items:_0xac2930}=await _0x23831f['eZNaL'](getActionItems,_0x4f0f21);let _0x57f2cf=0x0,_0x15c566=0x0;for(const _0x4768ac of _0xac2930){const _0x49e2e7=await getItemFeedback(_0x4f0f21,_0x4768ac['id']);_0x49e2e7['unaddressedComments'][_0x5837f6(0x19a)]>0x0&&(_0x57f2cf+=_0x49e2e7[_0x5837f6(0x169)][_0x5837f6(0x19a)],_0x15c566++);}_0x23831f['Rgpde'](_0x57f2cf,0x0)&&(console[_0x5837f6(0x1fc)]('\x0a⚠️\x20\x20'+_0x57f2cf+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x15c566+_0x5837f6(0x1b6)),console[_0x5837f6(0x1fc)](_0x5837f6(0x1b9)));}catch{}}async function tryStartCurrentSession(_0x46ff77){const _0x31735f=_0x458e,_0x32a767={'rFUWZ':function(_0xd7f664,_0x9df611){return _0xd7f664(_0x9df611);},'wlCvw':function(_0x89ceda,_0x1946ec,_0x244915){return _0x89ceda(_0x1946ec,_0x244915);}};try{const {sessions:_0x4bdfb8}=await _0x32a767['rFUWZ'](listFeatureSessions,_0x46ff77),_0x3789e2=_0x4bdfb8['find'](_0xc2ce82=>_0xc2ce82[_0x31735f(0x179)]==='ready');_0x3789e2&&(await _0x32a767[_0x31735f(0x220)](startSession,_0x46ff77,_0x3789e2['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x3789e2['iteration']));}catch{}}export async function featureReport(_0x38fbc3,_0x300f77){const _0xeb684e=_0x458e,_0x3ea340={'cfxFV':_0xeb684e(0x233),'ggciJ':function(_0x1c152b,_0x39c8e1,_0x58920b){return _0x1c152b(_0x39c8e1,_0x58920b);},'XgcGT':function(_0x5c140e,_0x1ba2cd,_0x3f8565,_0x15c61b){return _0x5c140e(_0x1ba2cd,_0x3f8565,_0x15c61b);},'fDlaZ':'reports','tjtuK':function(_0x58465b,_0x45f73b,_0x3c05ba){return _0x58465b(_0x45f73b,_0x3c05ba);}},_0x18f554=_0x38fbc3||await getActiveFeatureId();if(!_0x18f554)throw new Error(_0xeb684e(0x1f7));console['log'](_0x3ea340[_0xeb684e(0x1e0)]);const _0x103bf7=await _0x3ea340['ggciJ'](getFeatureReportMarkdown,_0x18f554,{'style':_0x300f77[_0xeb684e(0x1be)]}),_0x596e84=_0x300f77['output']||_0x3ea340['XgcGT'](join,getRangerDir(),_0x3ea340['fDlaZ'],_0x18f554+_0xeb684e(0x160)),_0x2d9852=_0x3ea340[_0xeb684e(0x17e)](join,_0x596e84,'..');!existsSync(_0x2d9852)&&await mkdir(_0x2d9852,{'recursive':!![]}),await _0x3ea340['XgcGT'](writeFile,_0x596e84,_0x103bf7,_0xeb684e(0x228)),console[_0xeb684e(0x1fc)](_0xeb684e(0x168)+_0x596e84);}function getScenarioResult(_0x1fdd07){const _0x15d4ee=_0x458e,_0x1a9c0d={'VyizU':function(_0x436fcd,_0x32c359){return _0x436fcd===_0x32c359;},'RBpZa':'closed','oxgPX':'in_progress'};if(_0x1a9c0d['VyizU'](_0x1fdd07['status'],_0x1a9c0d['RBpZa']))return _0x1fdd07[_0x15d4ee(0x1f9)]??_0x1a9c0d['RBpZa'];if(_0x1fdd07['status']===_0x15d4ee(0x1cf))return _0x1a9c0d[_0x15d4ee(0x194)];return _0x1fdd07['status'];}function getScenarioRationale(_0x33418f,_0x34bd5d){const _0x16797a=_0x458e;if(_0x34bd5d)return _0x34bd5d;if(_0x33418f[_0x16797a(0x1f4)])return _0x33418f[_0x16797a(0x1f4)];if(_0x33418f['incompleteReason'])return _0x33418f[_0x16797a(0x1e1)];if(_0x33418f['canceledReason'])return _0x33418f['canceledReason'];if(_0x33418f['notes'])return _0x33418f['notes'];return null;}export async function featureReportPrDescription(_0x61e59e,_0x264950){const _0x15f8a2=_0x458e,_0x41237a={'mtZxN':function(_0x5a3c46){return _0x5a3c46();},'zGnDZ':function(_0x4ecbb4,_0x58b080){return _0x4ecbb4(_0x58b080);},'FAVTE':function(_0x365219,_0x2a2367,_0x112ba6){return _0x365219(_0x2a2367,_0x112ba6);},'wVsiO':function(_0x164c59,_0x436202){return _0x164c59>_0x436202;},'jjtcX':'\x0aAvailable\x20scenarios:','eicWI':function(_0x30c414,_0x1126ba){return _0x30c414===_0x1126ba;},'SIRkU':_0x15f8a2(0x20f),'Ieftt':function(_0x527860,_0x2a4c41,_0x146c6d,_0x123c5f){return _0x527860(_0x2a4c41,_0x146c6d,_0x123c5f);},'ABYkH':function(_0x53ba02,_0x56c952,_0x40130b){return _0x53ba02(_0x56c952,_0x40130b);}},_0x17d931=_0x61e59e||await _0x41237a[_0x15f8a2(0x1d3)](getActiveFeatureId);if(!_0x17d931)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x593921=await _0x41237a['zGnDZ'](getFeature,_0x17d931),_0x22504e=_0x593921[_0x15f8a2(0x1c5)]||[],_0x985180=_0x41237a['FAVTE'](getCurrentSessionItems,_0x593921,_0x22504e);_0x985180['length']===0x0&&(console[_0x15f8a2(0x209)](_0x15f8a2(0x218)),process[_0x15f8a2(0x1ae)](0x1));const _0x4cce2b=_0x264950['excludeScenarios']??[],_0x1e93dc=_0x4cce2b['filter'](_0x82abff=>!Number['isInteger'](_0x82abff)||_0x82abff<0x1||_0x82abff>_0x985180[_0x15f8a2(0x19a)]);if(_0x41237a[_0x15f8a2(0x1e6)](_0x1e93dc['length'],0x0)){console['error'](_0x15f8a2(0x1eb)+_0x1e93dc[_0x15f8a2(0x1af)](',\x20')),console[_0x15f8a2(0x1fc)](_0x41237a['jjtcX']);for(let _0x54c94e=0x0;_0x54c94e<_0x985180[_0x15f8a2(0x19a)];_0x54c94e++){console['log']('\x20\x20'+(_0x54c94e+0x1)+'.\x20'+_0x985180[_0x54c94e]['description']);}process[_0x15f8a2(0x1ae)](0x1);}const _0x1b3772=new Set(_0x4cce2b[_0x15f8a2(0x212)](_0xd52e9f=>_0xd52e9f-0x1)),_0x537e3f=_0x985180['filter']((_0x38c099,_0x887dd7)=>!_0x1b3772[_0x15f8a2(0x221)](_0x887dd7));_0x41237a['eicWI'](_0x537e3f['length'],0x0)&&(console[_0x15f8a2(0x209)](_0x41237a[_0x15f8a2(0x15f)]),process['exit'](0x1));if(_0x264950[_0x15f8a2(0x1b3)])await _0x41237a['Ieftt'](outputJsonReport,_0x17d931,_0x593921,_0x537e3f);else{const _0x43532b=await _0x41237a[_0x15f8a2(0x1fd)](getFeatureReportMarkdown,_0x17d931,{'itemIds':_0x537e3f['map'](_0x169eb6=>_0x169eb6['id'])});process['stdout'][_0x15f8a2(0x1b0)](_0x43532b[_0x15f8a2(0x1e9)]()+'\x0a');}}async function outputJsonReport(_0x3755b4,_0x1d6393,_0x81bc4e){const _0x373bf1=_0x458e,_0x550573={'Suvij':function(_0x1236ef,_0x244e86){return _0x1236ef>_0x244e86;},'fROHr':function(_0x5068b7,_0x5e0c55){return _0x5068b7===_0x5e0c55;},'VoeIZ':function(_0x4ce315,_0x14cf74){return _0x4ce315(_0x14cf74);},'gLiFX':function(_0x502e61,_0x239018,_0x280fea){return _0x502e61(_0x239018,_0x280fea);},'viPQY':function(_0x2a9761,_0x1d41d0){return _0x2a9761+_0x1d41d0;}},_0x492dcb=getApiBaseUrl(),_0x190605=await getFeatureReport(_0x3755b4),_0x1d5ef3=new Map(_0x190605[_0x373bf1(0x1c5)][_0x373bf1(0x212)](_0x53fd0a=>[_0x53fd0a['id'],_0x53fd0a])),_0x4c32c5=await Promise['all'](_0x81bc4e['map'](async _0x25a4c5=>{const _0x329e88=_0x373bf1,_0x129ede=_0x1d5ef3['get'](_0x25a4c5['id']),_0x50bcec=_0x129ede?.['linkedSession']??null;let _0x51bae2=[];if(_0x25a4c5[_0x329e88(0x21b)])try{const {steps:_0xadb15d}=await getBrowserSessionSteps(_0x25a4c5['browserSessionId']);_0x550573[_0x329e88(0x1de)](_0xadb15d[_0x329e88(0x19a)],0x0)&&(_0x51bae2=_0xadb15d['map'](_0x88b9f=>{const _0x39fa33=_0x329e88,_0x205dab=_0x88b9f['assets']['find'](_0x3e3234=>_0x3e3234[_0x39fa33(0x1d1)]==='screenshot'&&_0x3e3234['timing']==='after')??_0x88b9f['assets']['find'](_0x1a543d=>_0x1a543d['assetType']===_0x39fa33(0x1f6));let _0x2a5dfd=null,_0x59fb15=null;if(_0x205dab){const _0x283cec=_0x205dab['storage']['location'][_0x39fa33(0x18f)]('/')['pop']();_0x2a5dfd=_0x492dcb+_0x39fa33(0x16a)+_0x25a4c5[_0x39fa33(0x21b)]+_0x39fa33(0x1d7)+_0x283cec,_0x283cec&&(_0x59fb15=_0x283cec[_0x39fa33(0x18a)](/\.\w+$/,'')[_0x39fa33(0x18a)](/^(key_)?\d+_/,'')[_0x39fa33(0x18a)](/[-_]/g,'\x20'));}return{'description':_0x59fb15||_0x88b9f['description']||_0x88b9f[_0x39fa33(0x1a0)]||_0x39fa33(0x22b)+_0x88b9f[_0x39fa33(0x203)],'screenshot':_0x2a5dfd,'is_key_step':_0x88b9f['isKeyStep']};}));}catch{}return _0x550573['fROHr'](_0x51bae2['length'],0x0)&&_0x50bcec?.['screenshotUrls']&&(_0x51bae2=_0x50bcec[_0x329e88(0x1d4)]['map']((_0x1046c5,_0x37b54f)=>({'description':_0x329e88(0x1df)+(_0x37b54f+0x1),'screenshot':_0x1046c5,'is_key_step':![]}))),{'description':_0x25a4c5[_0x329e88(0x1e5)],'result':_0x550573[_0x329e88(0x1c7)](getScenarioResult,_0x25a4c5),'rationale':_0x550573[_0x329e88(0x181)](getScenarioRationale,_0x25a4c5,_0x50bcec?.['agentResponse']),'steps':_0x51bae2};})),_0x1ebb25={'url':_0x1d6393['dashboardUrl'],'scenarios':_0x4c32c5};process[_0x373bf1(0x1a8)]['write'](_0x550573[_0x373bf1(0x1f3)](JSON[_0x373bf1(0x222)](_0x1ebb25,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x554dad){const _0x51f3ea=_0x458e,_0xa8e974={'WSkJm':function(_0x5a9901){return _0x5a9901();},'cBpxz':_0x51f3ea(0x1b1),'TRvKq':function(_0x291711,_0x3298dc){return _0x291711(_0x3298dc);},'OTIqB':function(_0x5388f4,_0x20d075){return _0x5388f4!==_0x20d075;},'RqMGV':'\x0aConcluding\x20session...'},_0x2260eb=_0x554dad||await _0xa8e974['WSkJm'](getActiveFeatureId);if(!_0x2260eb)throw new Error(_0x51f3ea(0x1dd));const _0x387a59=await getFeature(_0x2260eb);if(!_0x387a59[_0x51f3ea(0x1a7)])throw new Error(_0xa8e974[_0x51f3ea(0x234)]);const {sessions:_0x404fdf}=await _0xa8e974[_0x51f3ea(0x164)](listFeatureSessions,_0x2260eb),_0x4315b8=_0x404fdf[_0x51f3ea(0x1b7)](_0xfe7e0c=>_0xfe7e0c['id']===_0x387a59['currentSessionId']);if(!_0x4315b8)throw new Error(_0x51f3ea(0x17c));if(_0x4315b8['status']==='completed'){console['log']('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0xa8e974['OTIqB'](_0x4315b8[_0x51f3ea(0x179)],_0x51f3ea(0x16c)))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x4315b8[_0x51f3ea(0x179)]);console[_0x51f3ea(0x1fc)](_0xa8e974['RqMGV']),await concludeSession(_0x2260eb,_0x387a59[_0x51f3ea(0x1a7)]),console[_0x51f3ea(0x1fc)]('\x0a✅\x20Session\x20'+_0x4315b8[_0x51f3ea(0x1f0)]+_0x51f3ea(0x225)),console[_0x51f3ea(0x1fc)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x2bbbed){const _0x759aff=_0x458e,_0x509521={'tTVwN':function(_0x1e1020,_0x3864e5){return _0x1e1020(_0x3864e5);},'yNILg':'No\x20sessions\x20found.','KVuVu':function(_0x5d6c08,_0x1cc4cf){return _0x5d6c08===_0x1cc4cf;}},_0x5cff24=_0x2bbbed||await getActiveFeatureId();if(!_0x5cff24)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x4bd2ef=await getFeature(_0x5cff24);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x4bd2ef[_0x759aff(0x224)]+'\x0a');const {sessions:_0x346386}=await _0x509521[_0x759aff(0x16d)](listFeatureSessions,_0x5cff24);if(_0x346386[_0x759aff(0x19a)]===0x0){console['log'](_0x509521['yNILg']);return;}for(const _0x2888e3 of _0x346386){const _0xa09876=_0x2888e3['status']===_0x759aff(0x206)?'✅':_0x509521[_0x759aff(0x18e)](_0x2888e3['status'],'in_progress')?'🔄':'▶️';console['log'](_0xa09876+'\x20Session\x20'+_0x2888e3['iteration']+'\x20('+_0x2888e3['id']+')'),console[_0x759aff(0x1fc)]('\x20\x20\x20Status:\x20'+_0x2888e3['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x2888e3['createdAt'])[_0x759aff(0x230)]()),_0x2888e3[_0x759aff(0x21a)]&&console[_0x759aff(0x1fc)]('\x20\x20\x20Completed:\x20'+new Date(_0x2888e3['completedAt'])['toLocaleString']()),console[_0x759aff(0x1fc)]('');}}function _0x4253(){const _0x42bc26=['\x20\x20\x20\x20\x20📍\x20Annotation:\x20','in_progress','tTVwN','ePqiK','cfIQr','submittedAt','VVjTo','\x20--current-branch','\x20\x20\x20Description:\x20','\x20in\x20progress','Showing\x20','\x20\x20\x20Progress:\x20','toFixed','toLocaleDateString','status','\x20\x20\x20\x20\x20\x20Approved','canonicalFlow','Current\x20session\x20not\x20found.','vPwAX','tjtuK','fnkWb','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','gLiFX','\x20scenarios.','Scenario\x20','any','470149mkZltp','CKeIG','authorName','RDKQT','DOvYi','replace','wRGbw','verifiedItems','RfhEb','KVuVu','split','Vcvwt','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x20\x20\x20\x20\x20\x20Blocked:\x20','oYJdn','oxgPX','content','items','trim','selector','closed','length','\x20(v','QMkMf','comment_','\x20\x20\x20\x20','Lzyig','stepName','nqUJr','\x20incomplete','limit','EAzqC','blocked','IMiND','currentSessionId','stdout','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','canceledReason','mbMyK','\x20blocked','createdAt','exit','join','write','No\x20active\x20session\x20for\x20this\x20feature\x20review.','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','json','\x20\x20\x20Created:\x20','\x20\x20\x20\x20\x20\x20Cancelled:\x20','\x20scenario(s).','find','orcfJ','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','1408045SjIpFP','verificationInProgressItems','totalCount','\x20--limit\x20','style','sessionId','github.com/','list','scenario','Please\x20finish\x20your\x20review\x20first:','\x0aNo\x20feature\x20reviews\x20found.','checklistItems','zUMgb','VoeIZ','short','\x20\x20\x20Repository:\x20','AIIYZ','drXQb','625011niaSBI','\x20\x20\x20Branch:\x20','No\x20scenarios\x20found.','verification_in_progress','latestReview','assetType','\x0a❌\x20Invalid\x20scenario\x20index:\x20','mtZxN','screenshotUrls','pop','coordinates','/artifacts/','dashboardUrl','arrayBuffer','stats','parentItemId','incomplete','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Suvij','Screenshot\x20','cfxFV','incompleteReason','BooAR','\x20of\x20','eglZw','description','wVsiO','domRef','2dNOQbs','trimEnd','nrwmr','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','YpoUz','env','VMdJl','\x0a✅\x20Resumed\x20feature\x20review:\x20','iteration','1980460lCTxbj','LdVbs','viPQY','blockedReason','\x20\x20\x20\x20\x20ID:\x20','screenshot','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x20--include-deleted','terminalReason','warn','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','log','ABYkH','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','dCuUI','pipe','version','\x20unaddressed\x20comment(s)','position','repeat','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','completed','OTyoT','textContent','error','push','KwXHB','cqsbu','assetUrl','element','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','currentBranch','nsDuD','map','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','Unknown','DrwTm','12459744VRLnOz','\x20\x20✅\x20No\x20feedback\x20to\x20address','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','verified','completedAt','browserSessionId','\x20—\x20no\x20comments','LCVjG','611401staaEi','\x0a✅\x20Feature\x20review\x20created:\x20','wlCvw','has','stringify','round','name','\x20concluded.','iHyAa','\x20\x20\x20Updated\x20branch\x20to:\x20','utf-8','fdKmT','isTTY','Step\x20','eCEhJ','lXGuj','\x0aCreating\x20feature\x20review...','prompt','toLocaleString','ZojMm','\x0aAvailable\x20scenarios:','\x0aGenerating\x20report...','cBpxz','gitBranch','SIRkU','.md','\x0a\x20\x20\x20Scenarios:','...','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','TRvKq','type','2784000MxBcRa','spatial','\x0a✅\x20Report\x20generated:\x20','unaddressedComments','/api/v1/mcp/browser-sessions/'];_0x4253=function(){return _0x42bc26;};return _0x4253();}function _0x458e(_0xa15487,_0x153e9a){_0xa15487=_0xa15487-0x15f;const _0x42536a=_0x4253();let _0x458e17=_0x42536a[_0xa15487];return _0x458e17;}export async function featureAddScenario(_0xc2bb14,_0x3b9bf4){const _0xe67e2c=_0x458e,_0x2f3532={'eglZw':function(_0x55978e,_0x5495fb,_0x1e7827){return _0x55978e(_0x5495fb,_0x1e7827);}},_0x2774aa=_0x3b9bf4||await getActiveFeatureId();if(!_0x2774aa)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 _0xbf0f72=await getFeature(_0x2774aa);if(_0xbf0f72[_0xe67e2c(0x1d0)]&&!_0xbf0f72['latestReview'][_0xe67e2c(0x170)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0xbf0f72['dashboardUrl']);await createChecklistItem(_0x2774aa,_0xc2bb14);const _0xe43428=await getFeature(_0x2774aa);console['log']('\x0a✅\x20Scenario\x20added'),_0x2f3532[_0xe67e2c(0x1e4)](displayFeature,_0xe43428,_0xe43428['checklistItems']);}export async function featureEditScenario(_0x23bb60,_0x7cecdd){const _0x38664c=_0x458e,_0x4c4f0d={'vPwAX':_0x38664c(0x180),'mduOH':_0x38664c(0x1a9),'nrwmr':function(_0x1e6a9b,_0x371421){return _0x1e6a9b(_0x371421);},'pICIG':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','VVjTo':_0x38664c(0x1c3),'JKaLa':function(_0xe25d01,_0x404743){return _0xe25d01===_0x404743;},'rIPjR':function(_0x15f7d9,_0x535987){return _0x15f7d9+_0x535987;},'lkWdp':function(_0x3c961d,_0x202c3f){return _0x3c961d-_0x202c3f;},'eYSuX':'\x0aAvailable\x20scenarios:','NXABH':function(_0xc8ee42,_0x46be59){return _0xc8ee42<_0x46be59;},'SpPHx':function(_0x1237f7,_0x2212fc,_0x5e371c){return _0x1237f7(_0x2212fc,_0x5e371c);}},_0x56863d=_0x7cecdd['id']||await getActiveFeatureId();!_0x56863d&&(console[_0x38664c(0x209)](_0x4c4f0d[_0x38664c(0x17d)]),console[_0x38664c(0x209)](_0x4c4f0d['mduOH']),process['exit'](0x1));const _0x2eadb7=await _0x4c4f0d[_0x38664c(0x1ea)](getFeature,_0x56863d);_0x2eadb7[_0x38664c(0x1d0)]&&!_0x2eadb7['latestReview'][_0x38664c(0x170)]&&(console[_0x38664c(0x209)](_0x4c4f0d['pICIG']),console[_0x38664c(0x209)](_0x4c4f0d[_0x38664c(0x171)]),console[_0x38664c(0x209)]('\x20\x20'+_0x2eadb7['dashboardUrl']),process['exit'](0x1));const _0x132c19=_0x2eadb7[_0x38664c(0x1c5)]||[];_0x132c19['length']===0x0&&(console[_0x38664c(0x209)](_0x38664c(0x213)),process[_0x38664c(0x1ae)](0x1));if(_0x4c4f0d['JKaLa'](_0x7cecdd[_0x38664c(0x1c2)],undefined)){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x38664c(0x1fc)](_0x38664c(0x232));for(let _0x58e9b1=0x0;_0x58e9b1<_0x132c19['length'];_0x58e9b1++){console[_0x38664c(0x1fc)]('\x20\x20'+_0x4c4f0d['rIPjR'](_0x58e9b1,0x1)+'.\x20'+_0x132c19[_0x58e9b1]['description']);}process['exit'](0x1);}const _0xa12621=_0x4c4f0d['lkWdp'](_0x7cecdd[_0x38664c(0x1c2)],0x1);if(_0xa12621<0x0||_0xa12621>=_0x132c19[_0x38664c(0x19a)]){console[_0x38664c(0x209)](_0x38664c(0x1d2)+_0x7cecdd['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x132c19['length']+_0x38664c(0x182)),console['log'](_0x4c4f0d['eYSuX']);for(let _0x1a7e36=0x0;_0x4c4f0d['NXABH'](_0x1a7e36,_0x132c19['length']);_0x1a7e36++){console[_0x38664c(0x1fc)]('\x20\x20'+(_0x1a7e36+0x1)+'.\x20'+_0x132c19[_0x1a7e36]['description']);}process[_0x38664c(0x1ae)](0x1);}const _0x47244f=_0x132c19[_0xa12621];await updateChecklistItem(_0x56863d,_0x47244f['id'],{'description':_0x23bb60});const _0xd6b63f=await getFeature(_0x56863d);console['log']('\x0a✅\x20Scenario\x20updated'),_0x4c4f0d['SpPHx'](displayFeature,_0xd6b63f,_0xd6b63f['checklistItems']);}async function downloadFeedbackImage(_0x42dfb0,_0x56919e){const _0x3a05c0=_0x458e,_0x23caaf={'QEtGh':function(_0x5e2463,_0x3720c4,_0x3ada04){return _0x5e2463(_0x3720c4,_0x3ada04);},'hHxiy':function(_0x357ea2,_0x54c647){return _0x357ea2(_0x54c647);}};try{const _0x1d31f9=_0x23caaf['QEtGh'](join,getRangerDir(),'feedback-images');await mkdir(_0x1d31f9,{'recursive':!![]});const _0x25bbee=join(_0x1d31f9,_0x3a05c0(0x19d)+_0x56919e+'.png'),_0x487854=await _0x23caaf['hHxiy'](fetch,_0x42dfb0);if(!_0x487854['ok'])return null;const _0x441f33=Buffer['from'](await _0x487854[_0x3a05c0(0x1d9)]());return await _0x23caaf['QEtGh'](writeFile,_0x25bbee,_0x441f33),_0x25bbee;}catch{return null;}}export async function featureGetReview(_0x2607a8){const _0x3f6d66=_0x458e,_0x2d761e={'oYJdn':function(_0x3ddca3){return _0x3ddca3();},'AIIYZ':function(_0x7b0d74,_0x2805fe){return _0x7b0d74===_0x2805fe;},'TJlPC':function(_0x20a39e,_0x496676){return _0x20a39e<_0x496676;},'TWwfh':function(_0x38ff6e,_0x3188d4){return _0x38ff6e>_0x3188d4;},'rgBhi':function(_0x4faff9,_0x51422b){return _0x4faff9+_0x51422b;},'ePqiK':'en-US','nocDU':_0x3f6d66(0x1c8),'kGKGY':_0x3f6d66(0x214),'HQwHv':function(_0x70900d,_0x4da2ff){return _0x70900d>=_0x4da2ff;}},_0x27dbd8=_0x2607a8||await _0x2d761e[_0x3f6d66(0x193)](getActiveFeatureId);if(!_0x27dbd8)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 _0x1dba96=await getFeature(_0x27dbd8),{items:_0x130f26}=await getActionItems(_0x27dbd8);console[_0x3f6d66(0x1fc)]('\x0a📋\x20Feedback\x20for:\x20'+_0x1dba96[_0x3f6d66(0x224)]+'\x20('+_0x1dba96['id']+')\x0a');if(_0x2d761e[_0x3f6d66(0x1ca)](_0x130f26['length'],0x0)){console['log'](_0x3f6d66(0x1ce));return;}for(let _0xebbfa6=0x0;_0x2d761e['TJlPC'](_0xebbfa6,_0x130f26[_0x3f6d66(0x19a)]);_0xebbfa6++){const _0x40db34=_0x130f26[_0xebbfa6],_0x569aad=_0x2d761e['TWwfh'](_0x40db34[_0x3f6d66(0x201)],0x1)?_0x3f6d66(0x19b)+_0x40db34['version']+')':'',_0x24c807=await getItemFeedback(_0x27dbd8,_0x40db34['id']);if(_0x2d761e['TWwfh'](_0x24c807[_0x3f6d66(0x169)][_0x3f6d66(0x19a)],0x0)){console[_0x3f6d66(0x1fc)](_0x3f6d66(0x183)+_0x2d761e['rgBhi'](_0xebbfa6,0x1)+':\x20\x22'+_0x40db34[_0x3f6d66(0x1e5)]+'\x22'+_0x569aad+'\x20—\x20'+_0x24c807['unaddressedComments']['length']+_0x3f6d66(0x202));for(const _0x3656 of _0x24c807[_0x3f6d66(0x169)]){const _0x46fe05=new Date(_0x3656['createdAt'])[_0x3f6d66(0x178)](_0x2d761e[_0x3f6d66(0x16e)],{'month':_0x2d761e['nocDU'],'day':'numeric'}),_0x1bd47f=_0x3656[_0x3f6d66(0x187)]||_0x3656['authorEmail']||_0x2d761e['kGKGY'];console['log']('\x20\x20💬\x20'+_0x1bd47f+'\x20('+_0x46fe05+'):\x20\x22'+_0x3656[_0x3f6d66(0x195)]+'\x22');if(_0x3656['assetUrl']){const _0x551b79=await downloadFeedbackImage(_0x3656[_0x3f6d66(0x20d)],_0x3656['id']);_0x551b79&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x551b79);}if(_0x3656[_0x3f6d66(0x1e7)]){const _0x49ce2b=_0x3656[_0x3f6d66(0x1e7)]['selector'][_0x3f6d66(0x18f)]('\x20>\x20')[_0x3f6d66(0x1d5)]()?.[_0x3f6d66(0x18f)](':')[0x0]||_0x3f6d66(0x20e),_0x9bdfd1=_0x3656[_0x3f6d66(0x1e7)][_0x3f6d66(0x208)]?'\x20\x22'+_0x3656[_0x3f6d66(0x1e7)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x3f6d66(0x1fc)](_0x3f6d66(0x1fb)+_0x49ce2b+'>'+_0x9bdfd1),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3656['domRef'][_0x3f6d66(0x198)]);}else{if(_0x3656['spatial']){const _0x2cea82=_0x3656[_0x3f6d66(0x167)][_0x3f6d66(0x1d6)];_0x3656['spatial']['type']==='point'&&_0x2d761e['HQwHv'](_0x2cea82[_0x3f6d66(0x19a)],0x2)?console[_0x3f6d66(0x1fc)](_0x3f6d66(0x1fe)+_0x2cea82[0x0][_0x3f6d66(0x177)](0x2)+',\x20'+_0x2cea82[0x1][_0x3f6d66(0x177)](0x2)+')'):console['log'](_0x3f6d66(0x16b)+_0x3656['spatial'][_0x3f6d66(0x165)]+'\x20at\x20['+_0x2cea82[_0x3f6d66(0x212)](_0x1655dc=>_0x1655dc[_0x3f6d66(0x177)](0x2))['join'](',\x20')+']');}}}if(_0x24c807[_0x3f6d66(0x17b)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x5a89d5 of _0x24c807['canonicalFlow']['split']('\x0a')){console[_0x3f6d66(0x1fc)](_0x3f6d66(0x19e)+_0x5a89d5);}}}else console[_0x3f6d66(0x1fc)](_0x3f6d66(0x183)+(_0xebbfa6+0x1)+':\x20\x22'+_0x40db34[_0x3f6d66(0x1e5)]+'\x22'+_0x569aad+_0x3f6d66(0x21c)),console[_0x3f6d66(0x1fc)](_0x3f6d66(0x217));console[_0x3f6d66(0x1fc)]('');}}export async function featureDelete(_0xd90db8){const _0x55d20f=_0x458e,_0x47e6d9={'JUnJI':function(_0x2b586f){return _0x2b586f();},'DoXlK':function(_0x328305,_0x5a41c6){return _0x328305(_0x5a41c6);}},_0x2434f2=_0xd90db8||await _0x47e6d9['JUnJI'](getActiveFeatureId);if(!_0x2434f2)throw new Error(_0x55d20f(0x1dd));const _0xfed446=await _0x47e6d9['DoXlK'](getFeature,_0x2434f2);await softDeleteFeature(_0x2434f2),console[_0x55d20f(0x1fc)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0xfed446[_0x55d20f(0x224)]+'\x20('+_0x2434f2+')'),console[_0x55d20f(0x1fc)]('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x2434f2);}export async function featureRestore(_0xb37080){const _0x52e24e=_0x458e,_0x3ab275={'qebxa':function(_0x77dd8d,_0x32e700){return _0x77dd8d(_0x32e700);},'KwXHB':function(_0x26bf8e,_0x2c17a2,_0x4c26b1){return _0x26bf8e(_0x2c17a2,_0x4c26b1);}};await restoreFeature(_0xb37080);const _0x598930=await _0x3ab275['qebxa'](getFeature,_0xb37080);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x598930['name']+'\x20('+_0xb37080+')'),_0x3ab275[_0x52e24e(0x20b)](displayFeature,_0x598930,_0x598930['checklistItems']);}
@@ -1 +1 @@
1
- (function(_0x501fd6,_0x18cbac){const _0x348a1c=_0x5073,_0x55a98b=_0x501fd6();while(!![]){try{const _0x1a19d0=-parseInt(_0x348a1c(0xa3))/0x1*(parseInt(_0x348a1c(0x9e))/0x2)+parseInt(_0x348a1c(0xa1))/0x3+parseInt(_0x348a1c(0xa0))/0x4*(-parseInt(_0x348a1c(0x9f))/0x5)+-parseInt(_0x348a1c(0x9b))/0x6+-parseInt(_0x348a1c(0xa4))/0x7*(parseInt(_0x348a1c(0x9c))/0x8)+-parseInt(_0x348a1c(0x97))/0x9+parseInt(_0x348a1c(0x96))/0xa*(parseInt(_0x348a1c(0x99))/0xb);if(_0x1a19d0===_0x18cbac)break;else _0x55a98b['push'](_0x55a98b['shift']());}catch(_0x3248e0){_0x55a98b['push'](_0x55a98b['shift']());}}}(_0x6dd8,0x1db49));function _0x5073(_0x261361,_0x3cfde0){_0x261361=_0x261361-0x96;const _0x6dd8ab=_0x6dd8();let _0x5073b3=_0x6dd8ab[_0x261361];return _0x5073b3;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x51937d=_0x5073,_0x1cd7c6={'RsDPY':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x3453c6=()=>{process['exit'](0x0);};process[_0x51937d(0x9d)]('SIGINT',_0x3453c6),process['once']('SIGTERM',_0x3453c6),process['once'](_0x1cd7c6['RsDPY'],_0x3453c6),cancellationHandlersInstalled=!![];}export async function hook(_0x546306,_0x2e4783){const _0x434fce=_0x5073;installCancellationHandlers();const _0x32850=HOOKS[_0x546306];if(!_0x32850){const _0x6651b9=Object[_0x434fce(0x98)](HOOKS)[_0x434fce(0xa2)](',\x20');console['error'](_0x434fce(0x9a)+_0x546306),console['error']('Valid\x20hooks:\x20'+_0x6651b9),process['exit'](0x1);}await _0x32850(_0x2e4783);}function _0x6dd8(){const _0x13ec80=['358230Vgdqks','4YbXgsk','660081NYUFiH','join','168394GuvnwK','875GDfIjL','4021430yqmLkS','1735929pBYEGJ','keys','11juBzrS','Unknown\x20hook:\x20','382206aSTQMi','248KmtXFI','once','2dgQoET'];_0x6dd8=function(){return _0x13ec80;};return _0x6dd8();}
1
+ function _0x320e(_0x288f96,_0x3dfe25){_0x288f96=_0x288f96-0x17b;const _0x2960c3=_0x2960();let _0x320e17=_0x2960c3[_0x288f96];return _0x320e17;}(function(_0x38c2cb,_0x131190){const _0xe073c4=_0x320e,_0x2eccdc=_0x38c2cb();while(!![]){try{const _0x26203c=-parseInt(_0xe073c4(0x17c))/0x1*(parseInt(_0xe073c4(0x17d))/0x2)+-parseInt(_0xe073c4(0x184))/0x3+parseInt(_0xe073c4(0x183))/0x4+parseInt(_0xe073c4(0x182))/0x5+parseInt(_0xe073c4(0x17f))/0x6+-parseInt(_0xe073c4(0x181))/0x7+parseInt(_0xe073c4(0x17b))/0x8*(parseInt(_0xe073c4(0x180))/0x9);if(_0x26203c===_0x131190)break;else _0x2eccdc['push'](_0x2eccdc['shift']());}catch(_0x3f6eaa){_0x2eccdc['push'](_0x2eccdc['shift']());}}}(_0x2960,0xd1062));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x406819=_0x320e,_0x46be25={'bfjvc':'SIGINT'};if(cancellationHandlersInstalled)return;const _0x4c2b23=()=>{process['exit'](0x0);};process['once'](_0x46be25['bfjvc'],_0x4c2b23),process[_0x406819(0x17e)]('SIGTERM',_0x4c2b23),process['once']('SIGHUP',_0x4c2b23),cancellationHandlersInstalled=!![];}export async function hook(_0x1b7300,_0x4dd4b6){const _0x349505={'UjYrN':function(_0x565741){return _0x565741();}};_0x349505['UjYrN'](installCancellationHandlers);const _0x1c5694=HOOKS[_0x1b7300];if(!_0x1c5694){const _0x670295=Object['keys'](HOOKS)['join'](',\x20');console['error']('Unknown\x20hook:\x20'+_0x1b7300),console['error']('Valid\x20hooks:\x20'+_0x670295),process['exit'](0x1);}await _0x1c5694(_0x4dd4b6);}function _0x2960(){const _0x2bcd2c=['191058aATKHF','once','1133112gfKgfu','281790kHOTtA','7801185fMmwKL','2352520iUOAKa','1834028ypfdxk','3316155lNXmpS','720FkzfTD','9fHatFQ'];_0x2960=function(){return _0x2bcd2c;};return _0x2960();}
@@ -1 +1 @@
1
- function _0x34ec(){const _0x5b1ce9=['2682260GeDuYN','session_id','15mdoSfk','104267Giqceo','192330cEuFZS','6OuEAWy','16513970eSeuNV','291426UzNLGn','656KQiqmA','5661908FkcCxj','136qUUEhM','log','11925QlWuDs','Pgpvb'];_0x34ec=function(){return _0x5b1ce9;};return _0x34ec();}(function(_0x58f0fb,_0x52c803){const _0x2198a0=_0x43f6,_0x308ab1=_0x58f0fb();while(!![]){try{const _0x288211=-parseInt(_0x2198a0(0x1cc))/0x1*(parseInt(_0x2198a0(0x1ce))/0x2)+-parseInt(_0x2198a0(0x1c7))/0x3*(parseInt(_0x2198a0(0x1d1))/0x4)+-parseInt(_0x2198a0(0x1cb))/0x5*(parseInt(_0x2198a0(0x1d0))/0x6)+parseInt(_0x2198a0(0x1d2))/0x7+parseInt(_0x2198a0(0x1d3))/0x8*(-parseInt(_0x2198a0(0x1cd))/0x9)+-parseInt(_0x2198a0(0x1c9))/0xa+parseInt(_0x2198a0(0x1cf))/0xb;if(_0x288211===_0x52c803)break;else _0x308ab1['push'](_0x308ab1['shift']());}catch(_0x49b9e7){_0x308ab1['push'](_0x308ab1['shift']());}}}(_0x34ec,0x8ab78));import{readHookInput}from'./output.js';function _0x43f6(_0x233930,_0x36f377){_0x233930=_0x233930-0x1c6;const _0x34ecdb=_0x34ec();let _0x43f668=_0x34ecdb[_0x233930];return _0x43f668;}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';export async function autoPrompt(){const _0x32662d=_0x43f6,_0x1bd220={'Pgpvb':function(_0x26768e){return _0x26768e();},'xEEYp':'off','mUkYT':function(_0x43787a,_0x1a3d44){return _0x43787a(_0x1a3d44);}};if(_0x1bd220[_0x32662d(0x1c8)](resolveHookMode)===_0x1bd220['xEEYp'])return;const _0x4451fe=await readHookInput(),_0x80f97=_0x4451fe?.[_0x32662d(0x1ca)];if(!_0x80f97)return;if(_0x1bd220['mUkYT'](isSessionEnabled,_0x80f97)||_0x1bd220['mUkYT'](hasSessionBeenPrompted,_0x80f97))return;markSessionPrompted(_0x80f97),console[_0x32662d(0x1c6)](AUTO_PROMPT_TEXT);}
1
+ (function(_0x3708f3,_0x24a613){const _0x45d781=_0x4d08,_0xbda61b=_0x3708f3();while(!![]){try{const _0x195d7a=-parseInt(_0x45d781(0xbd))/0x1+-parseInt(_0x45d781(0xb8))/0x2+parseInt(_0x45d781(0xba))/0x3+-parseInt(_0x45d781(0xb9))/0x4+parseInt(_0x45d781(0xb7))/0x5+parseInt(_0x45d781(0xb6))/0x6*(parseInt(_0x45d781(0xb5))/0x7)+-parseInt(_0x45d781(0xbb))/0x8;if(_0x195d7a===_0x24a613)break;else _0xbda61b['push'](_0xbda61b['shift']());}catch(_0x4cdfa1){_0xbda61b['push'](_0xbda61b['shift']());}}}(_0x57fb,0x972ec));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x4d08(_0x1d3e7d,_0x3dd4af){_0x1d3e7d=_0x1d3e7d-0xb5;const _0x57fbe3=_0x57fb();let _0x4d0865=_0x57fbe3[_0x1d3e7d];return _0x4d0865;}import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.';function _0x57fb(){const _0x1ce5b2=['1719608RURzQW','3676095uAZBPy','4971152dmiqLx','log','10903NzIryJ','398783WshXGy','6LqQjTn','4284345mbcltq','915520Daaeqg'];_0x57fb=function(){return _0x1ce5b2;};return _0x57fb();}export async function autoPrompt(){const _0x5711e2=_0x4d08,_0x542976={'MlLEJ':function(_0x42c8a2,_0x1f37ef){return _0x42c8a2(_0x1f37ef);}};if(resolveHookMode()==='off')return;const _0x290c68=await readHookInput(),_0x1ece59=_0x290c68?.['session_id'];if(!_0x1ece59)return;if(isSessionEnabled(_0x1ece59)||hasSessionBeenPrompted(_0x1ece59))return;_0x542976['MlLEJ'](markSessionPrompted,_0x1ece59),console[_0x5711e2(0xbc)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x52e1ff,_0x3041ef){const _0x3e67ff=_0x580c,_0x5731e0=_0x52e1ff();while(!![]){try{const _0x401b27=parseInt(_0x3e67ff(0x73))/0x1+parseInt(_0x3e67ff(0x79))/0x2+parseInt(_0x3e67ff(0x71))/0x3*(-parseInt(_0x3e67ff(0x6f))/0x4)+parseInt(_0x3e67ff(0x70))/0x5+-parseInt(_0x3e67ff(0x78))/0x6+parseInt(_0x3e67ff(0x74))/0x7+-parseInt(_0x3e67ff(0x72))/0x8*(-parseInt(_0x3e67ff(0x75))/0x9);if(_0x401b27===_0x3041ef)break;else _0x5731e0['push'](_0x5731e0['shift']());}catch(_0x2392be){_0x5731e0['push'](_0x5731e0['shift']());}}}(_0x595f,0xcbe03));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x595f(){const _0x57b0ba=['.\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`.','5164020VOcxXD','1280366ENvUcy','334644MTXsLE','404025plalKI','15IgsUmG','375992HwOnYX','756402YBRVZu','3469641KxeKXc','27lAIePh','master'];_0x595f=function(){return _0x57b0ba;};return _0x595f();}function _0x580c(_0xb00fed,_0x5bf161){_0xb00fed=_0xb00fed-0x6f;const _0x595f01=_0x595f();let _0x580cc7=_0x595f01[_0xb00fed];return _0x580cc7;}import{printBlock}from'./output.js';export async function disable(_0x47dc8d){const _0x136367=_0x580c,_0x48bb44={'kYsBj':function(_0x2e6da1,_0x416f4e){return _0x2e6da1!==_0x416f4e;},'XeTCJ':_0x136367(0x76),'OGPrs':function(_0x41f5e9,_0x11dc0a){return _0x41f5e9!==_0x11dc0a;}},_0x3483d6=_0x47dc8d||process['env']['CLAUDE_SESSION_ID']||'';_0x3483d6&&disableSession(_0x3483d6);const _0x532ffb=getCurrentBranch();_0x532ffb&&_0x48bb44['kYsBj'](_0x532ffb,'main')&&_0x532ffb!==_0x48bb44['XeTCJ']&&disableBranch(_0x532ffb),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x532ffb&&_0x532ffb!=='main'&&_0x48bb44['OGPrs'](_0x532ffb,_0x136367(0x76))?'\x20and\x20branch\x20\x27'+_0x532ffb+'\x27':'')+_0x136367(0x77));}
1
+ function _0x30c7(){const _0x2584a2=['master','425rhUSsc','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','632252fCwvrS','1370652HCkTxk','CLAUDE_SESSION_ID','ZTZWq','5688468ijMNhe','110910yyhOoJ','WBJAw','424KifWrO','22041KMzvzA','12182429FaVPhC','3464RSpfzq','nuvfU','fStPV'];_0x30c7=function(){return _0x2584a2;};return _0x30c7();}(function(_0x36efdc,_0x23adea){const _0x1c0c60=_0x173a,_0x5ac96b=_0x36efdc();while(!![]){try{const _0x59f320=parseInt(_0x1c0c60(0x79))/0x1+parseInt(_0x1c0c60(0x78))/0x2+parseInt(_0x1c0c60(0x7d))/0x3+parseInt(_0x1c0c60(0x72))/0x4*(parseInt(_0x1c0c60(0x76))/0x5)+parseInt(_0x1c0c60(0x7c))/0x6+-parseInt(_0x1c0c60(0x71))/0x7+-parseInt(_0x1c0c60(0x7f))/0x8*(parseInt(_0x1c0c60(0x70))/0x9);if(_0x59f320===_0x23adea)break;else _0x5ac96b['push'](_0x5ac96b['shift']());}catch(_0x14b39b){_0x5ac96b['push'](_0x5ac96b['shift']());}}}(_0x30c7,0xd5b1c));function _0x173a(_0x264007,_0x3546fd){_0x264007=_0x264007-0x70;const _0x30c730=_0x30c7();let _0x173acb=_0x30c730[_0x264007];return _0x173acb;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x4601bb){const _0x4fd362=_0x173a,_0x4cfe1e={'WBJAw':function(_0x2dedac){return _0x2dedac();},'fStPV':function(_0x128cff,_0x581f51){return _0x128cff!==_0x581f51;},'nuvfU':'main','ZTZWq':_0x4fd362(0x75),'TTEHD':function(_0x4d4cf9,_0x30f733){return _0x4d4cf9!==_0x30f733;}},_0x48228a=_0x4601bb||process['env'][_0x4fd362(0x7a)]||'';_0x48228a&&disableSession(_0x48228a);const _0x4cfd4d=_0x4cfe1e[_0x4fd362(0x7e)](getCurrentBranch);_0x4cfd4d&&_0x4cfe1e[_0x4fd362(0x74)](_0x4cfd4d,_0x4cfe1e[_0x4fd362(0x73)])&&_0x4cfd4d!==_0x4cfe1e[_0x4fd362(0x7b)]&&disableBranch(_0x4cfd4d),printBlock(_0x4fd362(0x77)+(_0x4cfd4d&&_0x4cfd4d!==_0x4cfe1e['nuvfU']&&_0x4cfe1e['TTEHD'](_0x4cfd4d,_0x4cfe1e[_0x4fd362(0x7b)])?'\x20and\x20branch\x20\x27'+_0x4cfd4d+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
@@ -1 +1 @@
1
- (function(_0x12bfa6,_0xfd8e0b){const _0x33b172=_0x1a47,_0x247b76=_0x12bfa6();while(!![]){try{const _0x5d9813=-parseInt(_0x33b172(0x137))/0x1*(parseInt(_0x33b172(0x134))/0x2)+-parseInt(_0x33b172(0x13d))/0x3*(-parseInt(_0x33b172(0x13b))/0x4)+parseInt(_0x33b172(0x13c))/0x5+parseInt(_0x33b172(0x136))/0x6+-parseInt(_0x33b172(0x135))/0x7+parseInt(_0x33b172(0x133))/0x8+-parseInt(_0x33b172(0x138))/0x9;if(_0x5d9813===_0xfd8e0b)break;else _0x247b76['push'](_0x247b76['shift']());}catch(_0x4498be){_0x247b76['push'](_0x247b76['shift']());}}}(_0x5ba1,0x8b65e));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x5ba1(){const _0x359cf6=['5802MQdpdv','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','ranger\x20setup\x20--opencode','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','master','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','main','924216zXUktW','8546KcEogO','1644629fUqGAC','2600844UBBpRG','137HRruxB','11544363eXRYdA','#\x20RANGER\x20ENABLED','VmTOo','2188Iaxnnd','5335650tQuTGl'];_0x5ba1=function(){return _0x359cf6;};return _0x5ba1();}import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x1a47(_0x41dcc1,_0x50f055){_0x41dcc1=_0x41dcc1-0x12d;const _0x5ba1eb=_0x5ba1();let _0x1a478b=_0x5ba1eb[_0x41dcc1];return _0x1a478b;}export async function enable(_0x272a06){const _0x3d58c9=_0x1a47,_0x18d7cf={'VmTOo':function(_0x35eb85,_0x49db56){return _0x35eb85(_0x49db56);},'uDSRJ':_0x3d58c9(0x12e),'jQMpu':function(_0x47c67b,_0x30d58d){return _0x47c67b(_0x30d58d);},'LMSNO':function(_0x16a83f,_0x4300d2){return _0x16a83f!==_0x4300d2;},'pPMlE':_0x3d58c9(0x132)},_0x4f1974=_0x272a06||process['env']['CLAUDE_SESSION_ID']||'',_0x1c42c3=_0x18d7cf[_0x3d58c9(0x13a)](Boolean,_0x272a06),_0x9bb647=await getToken();if(!_0x9bb647){const _0xa01b81=_0x1c42c3?_0x18d7cf['uDSRJ']:'ranger\x20setup',_0x19b916=_0x1c42c3?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x3d58c9(0x12d);_0x18d7cf['jQMpu'](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`'+_0xa01b81+_0x3d58c9(0x131)+_0x19b916);return;}try{await update();}catch{}_0x4f1974&&enableSession(_0x4f1974);const _0x5288a9=getCurrentBranch(),_0x59c0e0=_0x5288a9&&_0x18d7cf['LMSNO'](_0x5288a9,_0x18d7cf['pPMlE'])&&_0x18d7cf['LMSNO'](_0x5288a9,_0x3d58c9(0x130))?'\x0a\x0a**Branch\x20\x27'+_0x5288a9+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x16798d=getRangerSkillContent();_0x18d7cf['jQMpu'](printBlock,_0x3d58c9(0x139)+_0x59c0e0+_0x3d58c9(0x12f)+_0x16798d+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
1
+ (function(_0x3b86d6,_0x1f2775){const _0x24623d=_0x4beb,_0x5947f4=_0x3b86d6();while(!![]){try{const _0x41adf6=-parseInt(_0x24623d(0xb5))/0x1*(parseInt(_0x24623d(0xa3))/0x2)+-parseInt(_0x24623d(0xae))/0x3+parseInt(_0x24623d(0xab))/0x4+-parseInt(_0x24623d(0xaf))/0x5*(parseInt(_0x24623d(0xa5))/0x6)+-parseInt(_0x24623d(0xa1))/0x7+-parseInt(_0x24623d(0xad))/0x8+-parseInt(_0x24623d(0xb2))/0x9*(-parseInt(_0x24623d(0xa4))/0xa);if(_0x41adf6===_0x1f2775)break;else _0x5947f4['push'](_0x5947f4['shift']());}catch(_0x5b1baa){_0x5947f4['push'](_0x5947f4['shift']());}}}(_0x444e,0xc3663));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x4beb(_0x3928db,_0x85f623){_0x3928db=_0x3928db-0xa1;const _0x444e67=_0x444e();let _0x4beb66=_0x444e67[_0x3928db];return _0x4beb66;}function _0x444e(){const _0x124bb5=['main','OFnlW','#\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`','Bajcn','1921616FBFdCr','\x0a\x0a**Branch\x20\x27','3384744eLtlGd','4348317YejIlJ','705nEKmGM','\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`.','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','50136291aAabKs','CLAUDE_SESSION_ID','EmiSV','15807EoGUrV','QPcnc','7898058ZnFHfe','oMNJp','92VowuNd','10PptfGL','64800iVEqbZ','Uzyeo'];_0x444e=function(){return _0x124bb5;};return _0x444e();}import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x587c2b){const _0x36377e=_0x4beb,_0x386701={'EamMv':function(_0x278ba9,_0x58dc6f){return _0x278ba9(_0x58dc6f);},'EmiSV':function(_0x485321){return _0x485321();},'Bajcn':'ranger\x20setup\x20--opencode','oMNJp':'ranger\x20setup','sGXaT':function(_0x20f55e,_0x26052e){return _0x20f55e(_0x26052e);},'Uzyeo':function(_0x2c807a){return _0x2c807a();},'eNAFB':function(_0x5d2005,_0x1351a7){return _0x5d2005!==_0x1351a7;},'QPcnc':_0x36377e(0xa7),'OFnlW':'master'},_0x42ebd4=_0x587c2b||process['env'][_0x36377e(0xb3)]||'',_0x2bc2c7=_0x386701['EamMv'](Boolean,_0x587c2b),_0x32bc34=await _0x386701[_0x36377e(0xb4)](getToken);if(!_0x32bc34){const _0x2520f6=_0x2bc2c7?_0x386701[_0x36377e(0xaa)]:_0x386701[_0x36377e(0xa2)],_0x464e3e=_0x2bc2c7?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x386701['sGXaT'](printBlock,_0x36377e(0xa9)+_0x2520f6+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x464e3e);return;}try{await _0x386701[_0x36377e(0xa6)](update);}catch{}_0x42ebd4&&enableSession(_0x42ebd4);const _0x55128c=getCurrentBranch(),_0x34f919=_0x55128c&&_0x386701['eNAFB'](_0x55128c,_0x386701[_0x36377e(0xb6)])&&_0x55128c!==_0x386701[_0x36377e(0xa8)]?_0x36377e(0xac)+_0x55128c+_0x36377e(0xb1):'',_0x5cfd40=getRangerSkillContent();_0x386701['EamMv'](printBlock,'#\x20RANGER\x20ENABLED'+_0x34f919+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x5cfd40+_0x36377e(0xb0));}
@@ -1 +1 @@
1
- (function(_0x935050,_0x213ffc){const _0x27ef16=_0x229e,_0x38223e=_0x935050();while(!![]){try{const _0x3ea7c9=-parseInt(_0x27ef16(0x170))/0x1*(parseInt(_0x27ef16(0x16d))/0x2)+-parseInt(_0x27ef16(0x175))/0x3*(-parseInt(_0x27ef16(0x174))/0x4)+-parseInt(_0x27ef16(0x178))/0x5+-parseInt(_0x27ef16(0x171))/0x6*(parseInt(_0x27ef16(0x177))/0x7)+parseInt(_0x27ef16(0x173))/0x8*(-parseInt(_0x27ef16(0x16e))/0x9)+parseInt(_0x27ef16(0x16f))/0xa*(-parseInt(_0x27ef16(0x176))/0xb)+parseInt(_0x27ef16(0x172))/0xc;if(_0x3ea7c9===_0x213ffc)break;else _0x38223e['push'](_0x38223e['shift']());}catch(_0xb32fbf){_0x38223e['push'](_0x38223e['shift']());}}}(_0x3ec0,0xa870e));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x55e796){const _0x45372d={'IiWFJ':function(_0x43d443,_0x49344d){return _0x43d443(_0x49344d);},'PkpGb':function(_0xd4f719,_0x4f9089){return _0xd4f719(_0x4f9089);}},_0x1af84a=await _0x45372d['IiWFJ'](getEnabledSessionId,_0x55e796);if(!_0x1af84a)return;_0x45372d['PkpGb'](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}function _0x229e(_0x2b23b7,_0x4b5dc7){_0x2b23b7=_0x2b23b7-0x16d;const _0x3ec055=_0x3ec0();let _0x229e68=_0x3ec055[_0x2b23b7];return _0x229e68;}function _0x3ec0(){const _0x535ea9=['10588PVsyZi','1542JJLxOt','2493854gpIpyc','7zgStmJ','5014950XgSqgt','1657386AdNTEC','12906DkQmMc','20vQmuXo','1XRtfTP','973314dVMOlC','23832840hAECXw','1168UFlhXi'];_0x3ec0=function(){return _0x535ea9;};return _0x3ec0();}
1
+ function _0x5a03(){const _0x29754c=['3BJNhRm','===\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===','913909PrcdvL','5210450YPRqZn','3811140cTaGSD','610XcFxSv','TKBUO','3168104qwOkGG','7qatGUF','2YseUez','8829153yPwkYF','418044uFVDtI','4298732Evyaxc'];_0x5a03=function(){return _0x29754c;};return _0x5a03();}function _0x3267(_0x460b41,_0x25cd5b){_0x460b41=_0x460b41-0xf9;const _0x5a0391=_0x5a03();let _0x32676c=_0x5a0391[_0x460b41];return _0x32676c;}(function(_0x447cb9,_0x1665d6){const _0x2d1a3a=_0x3267,_0x56dbf1=_0x447cb9();while(!![]){try{const _0x2f8714=-parseInt(_0x2d1a3a(0xfb))/0x1*(-parseInt(_0x2d1a3a(0x102))/0x2)+parseInt(_0x2d1a3a(0xf9))/0x3*(parseInt(_0x2d1a3a(0x105))/0x4)+-parseInt(_0x2d1a3a(0xfc))/0x5+parseInt(_0x2d1a3a(0xfd))/0x6+-parseInt(_0x2d1a3a(0x101))/0x7*(-parseInt(_0x2d1a3a(0x100))/0x8)+parseInt(_0x2d1a3a(0x103))/0x9+parseInt(_0x2d1a3a(0xfe))/0xa*(-parseInt(_0x2d1a3a(0x104))/0xb);if(_0x2f8714===_0x1665d6)break;else _0x56dbf1['push'](_0x56dbf1['shift']());}catch(_0x1713a9){_0x56dbf1['push'](_0x56dbf1['shift']());}}}(_0x5a03,0x9c5de));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x4cd117){const _0x122aa4=_0x3267,_0x98c5d5={'TKBUO':function(_0x17d4f4,_0x23cb6c){return _0x17d4f4(_0x23cb6c);}},_0x49c90f=await _0x98c5d5['TKBUO'](getEnabledSessionId,_0x4cd117);if(!_0x49c90f)return;_0x98c5d5[_0x122aa4(0xff)](printBlock,_0x122aa4(0xfa));}
@@ -1 +1 @@
1
- (function(_0x421324,_0x4ceadf){var _0x36e9c3=_0x25b0,_0xa456f3=_0x421324();while(!![]){try{var _0xa470a=-parseInt(_0x36e9c3(0x1e6))/0x1+-parseInt(_0x36e9c3(0x1e7))/0x2+-parseInt(_0x36e9c3(0x1e9))/0x3+-parseInt(_0x36e9c3(0x1ec))/0x4+-parseInt(_0x36e9c3(0x1ea))/0x5+parseInt(_0x36e9c3(0x1e8))/0x6+parseInt(_0x36e9c3(0x1eb))/0x7;if(_0xa470a===_0x4ceadf)break;else _0xa456f3['push'](_0xa456f3['shift']());}catch(_0x255120){_0xa456f3['push'](_0xa456f3['shift']());}}}(_0x3072,0xa2c0d));function _0x3072(){var _0x5ec6a6=['7361994LlWpNA','166548sgCZsb','4797430Mxvkvq','20781999qbaXyl','3724676XsaTNt','1144031IFmZgl','878034JPHGGy'];_0x3072=function(){return _0x5ec6a6;};return _0x3072();}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';function _0x25b0(_0x52941a,_0x4ba2b5){_0x52941a=_0x52941a-0x1e6;var _0x307243=_0x3072();var _0x25b015=_0x307243[_0x52941a];return _0x25b015;}export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ (function(_0x25c970,_0x408a34){var _0x4de124=_0x46ef,_0x473309=_0x25c970();while(!![]){try{var _0x2ca609=parseInt(_0x4de124(0x184))/0x1*(-parseInt(_0x4de124(0x186))/0x2)+-parseInt(_0x4de124(0x182))/0x3+-parseInt(_0x4de124(0x18a))/0x4+-parseInt(_0x4de124(0x185))/0x5*(-parseInt(_0x4de124(0x181))/0x6)+-parseInt(_0x4de124(0x188))/0x7*(-parseInt(_0x4de124(0x189))/0x8)+parseInt(_0x4de124(0x187))/0x9+parseInt(_0x4de124(0x183))/0xa*(parseInt(_0x4de124(0x180))/0xb);if(_0x2ca609===_0x408a34)break;else _0x473309['push'](_0x473309['shift']());}catch(_0x3bcc6e){_0x473309['push'](_0x473309['shift']());}}}(_0x2d08,0x1b476));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';function _0x46ef(_0x30da91,_0x342aa4){_0x30da91=_0x30da91-0x180;var _0x2d08a2=_0x2d08();var _0x46ef40=_0x2d08a2[_0x30da91];return _0x46ef40;}export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';function _0x2d08(){var _0x21ac52=['33CSGQPd','6OzJkAH','589122PHJRpo','644990gBiVoK','261qflLyl','430655yQwTbK','874tdYTca','678789uKcaIJ','862869lQfQCx','8SiQtNA','224604QWWRIK'];_0x2d08=function(){return _0x21ac52;};return _0x2d08();}export{autoPrompt}from'./autoPrompt.js';
@@ -1 +1 @@
1
- (function(_0x254ad6,_0x4da5f9){const _0x494835=_0x4dab,_0x5b4b3e=_0x254ad6();while(!![]){try{const _0x27c5e1=-parseInt(_0x494835(0xf8))/0x1*(parseInt(_0x494835(0xf5))/0x2)+-parseInt(_0x494835(0xed))/0x3+-parseInt(_0x494835(0xf0))/0x4*(-parseInt(_0x494835(0xf6))/0x5)+-parseInt(_0x494835(0xef))/0x6+parseInt(_0x494835(0xf4))/0x7+-parseInt(_0x494835(0xec))/0x8+-parseInt(_0x494835(0xeb))/0x9*(-parseInt(_0x494835(0xee))/0xa);if(_0x27c5e1===_0x4da5f9)break;else _0x5b4b3e['push'](_0x5b4b3e['shift']());}catch(_0x5368fd){_0x5b4b3e['push'](_0x5b4b3e['shift']());}}}(_0x263b,0xc98cd));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x31f486){console['log'](_0x31f486);}export async function readHookInput(){const _0x53eec3=_0x4dab;let _0x3eb1ce='';try{for await(const _0x1a31a7 of process['stdin']){_0x3eb1ce+=_0x1a31a7;}}catch{return null;}if(!_0x3eb1ce[_0x53eec3(0xf1)]())return null;try{return JSON[_0x53eec3(0xf7)](_0x3eb1ce);}catch{return null;}}function _0x263b(){const _0x2cf5b2=['797176bDUxuZ','trim','XUWSo','ASnBa','10821951sNGFMS','2MvIsix','15FXrXCs','parse','1388447rgoiAz','24350211tCuwYg','9410760xTyyYA','3188025UXjOvU','10dzVOBB','2378628suSWGD'];_0x263b=function(){return _0x2cf5b2;};return _0x263b();}export async function getEnabledSessionId(_0x2dc6e6){const _0x4b108c=_0x4dab,_0x287331={'fHWyk':function(_0x5428a4){return _0x5428a4();},'ASnBa':function(_0x249bd1,_0x4e8255){return _0x249bd1(_0x4e8255);}};if(_0x2dc6e6)return isSessionEnabled(_0x2dc6e6)?_0x2dc6e6:null;const _0x382e49=await _0x287331['fHWyk'](readHookInput),_0x11fc51=_0x382e49?.['session_id'];if(!_0x11fc51||!_0x287331[_0x4b108c(0xf3)](isSessionEnabled,_0x11fc51))return null;return _0x11fc51;}function _0x4dab(_0x7987b0,_0x15ef99){_0x7987b0=_0x7987b0-0xeb;const _0x263b80=_0x263b();let _0x4dab19=_0x263b80[_0x7987b0];return _0x4dab19;}export async function getEnabledHookContext(_0x33e772){const _0xe3d470=_0x4dab,_0x43048b={'XUWSo':function(_0x26b430,_0x473584){return _0x26b430(_0x473584);}};if(_0x33e772){if(!isSessionEnabled(_0x33e772))return null;return{'sessionId':_0x33e772,'input':{'session_id':_0x33e772}};}const _0x1656f4=await readHookInput(),_0x26e52c=_0x1656f4?.['session_id'];if(!_0x26e52c||!_0x43048b[_0xe3d470(0xf2)](isSessionEnabled,_0x26e52c))return null;return{'sessionId':_0x26e52c,'input':_0x1656f4};}
1
+ function _0x7907(_0x40fab0,_0x4b1386){_0x40fab0=_0x40fab0-0x15c;const _0x1eb32d=_0x1eb3();let _0x7907f3=_0x1eb32d[_0x40fab0];return _0x7907f3;}(function(_0x626391,_0x3a3ee4){const _0x28c268=_0x7907,_0x556d00=_0x626391();while(!![]){try{const _0x1c6dd5=parseInt(_0x28c268(0x166))/0x1+-parseInt(_0x28c268(0x15f))/0x2+parseInt(_0x28c268(0x15c))/0x3+-parseInt(_0x28c268(0x15d))/0x4+parseInt(_0x28c268(0x162))/0x5+parseInt(_0x28c268(0x165))/0x6+parseInt(_0x28c268(0x167))/0x7*(parseInt(_0x28c268(0x164))/0x8);if(_0x1c6dd5===_0x3a3ee4)break;else _0x556d00['push'](_0x556d00['shift']());}catch(_0xbd2783){_0x556d00['push'](_0x556d00['shift']());}}}(_0x1eb3,0x50d38));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x4abd4b){console['log'](_0x4abd4b);}export async function readHookInput(){const _0xebf95d=_0x7907;let _0x1541b7='';try{for await(const _0x120f11 of process['stdin']){_0x1541b7+=_0x120f11;}}catch{return null;}if(!_0x1541b7['trim']())return null;try{return JSON[_0xebf95d(0x161)](_0x1541b7);}catch{return null;}}export async function getEnabledSessionId(_0x1fa92d){const _0xc706d0=_0x7907,_0x4b54c7={'mnvEw':function(_0xb73e07,_0x24d71d){return _0xb73e07(_0x24d71d);},'BSife':function(_0x9442c5,_0x1946dc){return _0x9442c5(_0x1946dc);}};if(_0x1fa92d)return _0x4b54c7[_0xc706d0(0x168)](isSessionEnabled,_0x1fa92d)?_0x1fa92d:null;const _0x3dc666=await readHookInput(),_0x569f9d=_0x3dc666?.[_0xc706d0(0x15e)];if(!_0x569f9d||!_0x4b54c7[_0xc706d0(0x163)](isSessionEnabled,_0x569f9d))return null;return _0x569f9d;}export async function getEnabledHookContext(_0x5371bc){const _0x15a42f=_0x7907,_0x4fb507={'EHrTQ':function(_0x3c6120){return _0x3c6120();},'FahkW':function(_0x5a66ad,_0x272da0){return _0x5a66ad(_0x272da0);}};if(_0x5371bc){if(!isSessionEnabled(_0x5371bc))return null;return{'sessionId':_0x5371bc,'input':{'session_id':_0x5371bc}};}const _0x57db6b=await _0x4fb507[_0x15a42f(0x160)](readHookInput),_0x58738a=_0x57db6b?.['session_id'];if(!_0x58738a||!_0x4fb507['FahkW'](isSessionEnabled,_0x58738a))return null;return{'sessionId':_0x58738a,'input':_0x57db6b};}function _0x1eb3(){const _0x4b421c=['379500PBKGJA','2427284jVDaMW','session_id','1057720Futber','EHrTQ','parse','1920380AYQSgo','BSife','40uELMDu','138156REMQGH','346968Cgufxs','820645dHcflf','mnvEw'];_0x1eb3=function(){return _0x4b421c;};return _0x1eb3();}
@@ -1 +1 @@
1
- (function(_0x598ccd,_0x1653f2){const _0x354e0c=_0x49ae,_0x3fff4d=_0x598ccd();while(!![]){try{const _0x3bb40d=parseInt(_0x354e0c(0xb8))/0x1*(-parseInt(_0x354e0c(0xba))/0x2)+parseInt(_0x354e0c(0xbc))/0x3+-parseInt(_0x354e0c(0xb5))/0x4*(-parseInt(_0x354e0c(0xbb))/0x5)+parseInt(_0x354e0c(0xb9))/0x6+-parseInt(_0x354e0c(0xbe))/0x7+-parseInt(_0x354e0c(0xb7))/0x8*(-parseInt(_0x354e0c(0xbd))/0x9)+parseInt(_0x354e0c(0xb4))/0xa*(parseInt(_0x354e0c(0xb6))/0xb);if(_0x3bb40d===_0x1653f2)break;else _0x3fff4d['push'](_0x3fff4d['shift']());}catch(_0x1274ae){_0x3fff4d['push'](_0x3fff4d['shift']());}}}(_0x1d02,0x3f4f3));import{printBlock,getEnabledHookContext}from'./output.js';function _0x49ae(_0x28ce5d,_0x1ae140){_0x28ce5d=_0x28ce5d-0xb4;const _0x1d0259=_0x1d02();let _0x49ae5c=_0x1d0259[_0x28ce5d];return _0x49ae5c;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x3b95c4){const _0x29be91={'HATAe':function(_0x53125c,_0x36c111){return _0x53125c(_0x36c111);},'ibYRb':function(_0x3d9322,_0x523f60){return _0x3d9322!==_0x523f60;}},_0x2b2258=await _0x29be91['HATAe'](getEnabledHookContext,_0x3b95c4);if(!_0x2b2258)return;if(_0x29be91['ibYRb'](_0x2b2258['input']['permission_mode'],'plan'))return;if(!shouldShowPlanReminder(_0x2b2258['sessionId']))return;_0x29be91['HATAe'](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===');}function _0x1d02(){const _0x51d3d6=['176rjLkEW','16SKomWF','363587DNQvfe','877656WFIAjD','2JxBbXN','32055TinUWP','949368rUhQlu','144729BuHshF','1489558SWShkd','60740HcdYtr','152rinegk'];_0x1d02=function(){return _0x51d3d6;};return _0x1d02();}
1
+ (function(_0x320692,_0xe20ef1){const _0x54f962=_0x59a1,_0x791295=_0x320692();while(!![]){try{const _0x11c054=-parseInt(_0x54f962(0xfd))/0x1*(parseInt(_0x54f962(0xfa))/0x2)+parseInt(_0x54f962(0xff))/0x3*(-parseInt(_0x54f962(0xf3))/0x4)+-parseInt(_0x54f962(0xf7))/0x5*(-parseInt(_0x54f962(0xf6))/0x6)+parseInt(_0x54f962(0xfb))/0x7+-parseInt(_0x54f962(0xf5))/0x8+-parseInt(_0x54f962(0xf2))/0x9*(parseInt(_0x54f962(0x100))/0xa)+parseInt(_0x54f962(0xf4))/0xb*(parseInt(_0x54f962(0xfc))/0xc);if(_0x11c054===_0xe20ef1)break;else _0x791295['push'](_0x791295['shift']());}catch(_0x4ac665){_0x791295['push'](_0x791295['shift']());}}}(_0x4e47,0x91990));function _0x4e47(){const _0x2fb287=['FIhTr','9jieZLv','4JdvVlY','187gHMhun','747088SvSZMr','4335516rvvRFl','5Nhaciz','input','plan','2200966KfYxxf','7694680CkBVbB','856068yQFBsJ','1LAwKof','sessionId','2244447njPCgX','4962030yWpUah'];_0x4e47=function(){return _0x2fb287;};return _0x4e47();}import{printBlock,getEnabledHookContext}from'./output.js';function _0x59a1(_0x461fe0,_0xad721d){_0x461fe0=_0x461fe0-0xf2;const _0x4e4771=_0x4e47();let _0x59a133=_0x4e4771[_0x461fe0];return _0x59a133;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x51bfbf){const _0x9fff30=_0x59a1,_0x7eb80={'FIhTr':function(_0x2ab1ff,_0xf2b428){return _0x2ab1ff(_0xf2b428);}},_0x4970ec=await _0x7eb80['FIhTr'](getEnabledHookContext,_0x51bfbf);if(!_0x4970ec)return;if(_0x4970ec[_0x9fff30(0xf8)]['permission_mode']!==_0x9fff30(0xf9))return;if(!_0x7eb80[_0x9fff30(0x101)](shouldShowPlanReminder,_0x4970ec[_0x9fff30(0xfe)]))return;_0x7eb80[_0x9fff30(0x101)](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(_0x11ab79,_0x12477b){const _0x169e0e=_0x3a0b,_0x42f255=_0x11ab79();while(!![]){try{const _0x403028=-parseInt(_0x169e0e(0x1ac))/0x1+-parseInt(_0x169e0e(0x1b2))/0x2*(-parseInt(_0x169e0e(0x1b1))/0x3)+parseInt(_0x169e0e(0x1b3))/0x4+parseInt(_0x169e0e(0x1b0))/0x5*(parseInt(_0x169e0e(0x1ad))/0x6)+-parseInt(_0x169e0e(0x1a9))/0x7*(-parseInt(_0x169e0e(0x1af))/0x8)+parseInt(_0x169e0e(0x1ae))/0x9*(-parseInt(_0x169e0e(0x1aa))/0xa)+-parseInt(_0x169e0e(0x1a8))/0xb;if(_0x403028===_0x12477b)break;else _0x42f255['push'](_0x42f255['shift']());}catch(_0x13201c){_0x42f255['push'](_0x42f255['shift']());}}}(_0xf93d,0xcc962));function _0xf93d(){const _0x3f9875=['4002901bjGdFm','406930jkJgxY','===\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===','348260qNXoRf','8597862bCBpiQ','9KMmBiK','16vQfFmp','5wdBGPv','4884693GRXHij','2uCdbiK','5764080lXiBun','48608725bWYkCP'];_0xf93d=function(){return _0x3f9875;};return _0xf93d();}import{printBlock,getEnabledSessionId}from'./output.js';function _0x3a0b(_0x57acc7,_0x55e7fb){_0x57acc7=_0x57acc7-0x1a8;const _0xf93da8=_0xf93d();let _0x3a0b00=_0xf93da8[_0x57acc7];return _0x3a0b00;}export async function planStart(_0x485f5b){const _0x44739e=_0x3a0b,_0x3ef60b=await getEnabledSessionId(_0x485f5b);if(!_0x3ef60b)return;printBlock(_0x44739e(0x1ab));}
1
+ (function(_0x51d5bb,_0x5a37a7){const _0x5dc947=_0x48a8,_0xe65e46=_0x51d5bb();while(!![]){try{const _0x16ce5a=-parseInt(_0x5dc947(0xa5))/0x1*(-parseInt(_0x5dc947(0xa6))/0x2)+parseInt(_0x5dc947(0xa2))/0x3+parseInt(_0x5dc947(0xaa))/0x4+parseInt(_0x5dc947(0xab))/0x5+parseInt(_0x5dc947(0xa9))/0x6*(-parseInt(_0x5dc947(0xa4))/0x7)+-parseInt(_0x5dc947(0xa3))/0x8+-parseInt(_0x5dc947(0xac))/0x9*(parseInt(_0x5dc947(0xa8))/0xa);if(_0x16ce5a===_0x5a37a7)break;else _0xe65e46['push'](_0xe65e46['shift']());}catch(_0x3b4c06){_0xe65e46['push'](_0xe65e46['shift']());}}}(_0x234e,0x8b97e));function _0x48a8(_0x5f1c67,_0x7e7714){_0x5f1c67=_0x5f1c67-0xa2;const _0x234eb9=_0x234e();let _0x48a8b7=_0x234eb9[_0x5f1c67];return _0x48a8b7;}import{printBlock,getEnabledSessionId}from'./output.js';function _0x234e(){const _0x43caf7=['ZiuSN','10rLQclL','370338zOusXg','539780WPszeA','1697610tcBeBP','9374193NAWcuN','RJYkU','===\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===','2206827rsPTME','4968856bIiVfl','7esoxpK','915kggJAk','2374FlwiTk'];_0x234e=function(){return _0x43caf7;};return _0x234e();}export async function planStart(_0x28062a){const _0x306d0f=_0x48a8,_0x521d2e={'RJYkU':function(_0x51087f,_0x54c22c){return _0x51087f(_0x54c22c);},'ZiuSN':function(_0x4f2290,_0x9af28d){return _0x4f2290(_0x9af28d);}},_0x32fc1e=await _0x521d2e[_0x306d0f(0xad)](getEnabledSessionId,_0x28062a);if(!_0x32fc1e)return;_0x521d2e[_0x306d0f(0xa7)](printBlock,_0x306d0f(0xae));}
@@ -1 +1 @@
1
- function _0x2c5d(){const _0x1b69bc=['985580Fkruui','695904SHVRaA','63880AXUBci','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.','log','rKhvN','862932phjzsT','208292WytRJG','12swYeqg','PostToolUse','270GkWYAT','stringify','28452NJvJqD','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).','21095nSFIIl','117usiuzY'];_0x2c5d=function(){return _0x1b69bc;};return _0x2c5d();}(function(_0x12fb9c,_0x554cbd){const _0x5c6673=_0x21f7,_0x1bef65=_0x12fb9c();while(!![]){try{const _0x5308a2=parseInt(_0x5c6673(0xaa))/0x1+parseInt(_0x5c6673(0x9f))/0x2*(parseInt(_0x5c6673(0xab))/0x3)+parseInt(_0x5c6673(0xa4))/0x4+parseInt(_0x5c6673(0xa1))/0x5*(-parseInt(_0x5c6673(0xad))/0x6)+-parseInt(_0x5c6673(0xa9))/0x7+parseInt(_0x5c6673(0xa5))/0x8*(parseInt(_0x5c6673(0xa2))/0x9)+-parseInt(_0x5c6673(0xa3))/0xa;if(_0x5308a2===_0x554cbd)break;else _0x1bef65['push'](_0x1bef65['shift']());}catch(_0x37fc88){_0x1bef65['push'](_0x1bef65['shift']());}}}(_0x2c5d,0x200d8));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x21f7(_0x358d84,_0x2046c8){_0x358d84=_0x358d84-0x9f;const _0x2c5dfa=_0x2c5d();let _0x21f72b=_0x2c5dfa[_0x358d84];return _0x21f72b;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x3be904){const _0x533a87=_0x21f7,_0x190e51={'rKhvN':function(_0x6493fb,_0x5cafd3){return _0x6493fb(_0x5cafd3);},'khGEI':function(_0x415e1d){return _0x415e1d();},'HfpVw':_0x533a87(0xac)},_0x3153dc=await _0x190e51[_0x533a87(0xa8)](getEnabledSessionId,_0x3be904);if(!_0x3153dc)return;updateBranchTracking(_0x3153dc);const _0x590d9e=await _0x190e51['khGEI'](getToken);if(!_0x590d9e)return;const _0x156621=getSessionEntry(_0x3153dc);if(_0x156621){const _0x2cbf8d={'hookSpecificOutput':{'hookEventName':_0x190e51['HfpVw'],'additionalContext':_0x533a87(0xa0)}};console[_0x533a87(0xa7)](JSON[_0x533a87(0xae)](_0x2cbf8d));return;}const _0x18718f={'hookSpecificOutput':{'hookEventName':_0x190e51['HfpVw'],'additionalContext':_0x533a87(0xa6)}};console['log'](JSON['stringify'](_0x18718f));}
1
+ (function(_0x300152,_0x244fcd){const _0xfc4900=_0x25bd,_0x46c012=_0x300152();while(!![]){try{const _0x1afb36=parseInt(_0xfc4900(0x99))/0x1+-parseInt(_0xfc4900(0x92))/0x2*(-parseInt(_0xfc4900(0x93))/0x3)+-parseInt(_0xfc4900(0x8e))/0x4+-parseInt(_0xfc4900(0x8b))/0x5*(-parseInt(_0xfc4900(0x8f))/0x6)+-parseInt(_0xfc4900(0x98))/0x7*(-parseInt(_0xfc4900(0x97))/0x8)+parseInt(_0xfc4900(0x94))/0x9*(parseInt(_0xfc4900(0x8d))/0xa)+-parseInt(_0xfc4900(0x8c))/0xb;if(_0x1afb36===_0x244fcd)break;else _0x46c012['push'](_0x46c012['shift']());}catch(_0x4a7c04){_0x46c012['push'](_0x46c012['shift']());}}}(_0x59a6,0xafa3b));function _0x59a6(){const _0x30067d=['log','36344NNmLWX','889tVqPvu','848782axuxdQ','zWpSF','6186085qVeVZv','28676648yAMhTg','1182770yWWIKV','5635956OMyXmd','6iTwBxc','stringify','PostToolUse','889646wsUymq','6uNlhXE','90pvvYRv','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).'];_0x59a6=function(){return _0x30067d;};return _0x59a6();}function _0x25bd(_0x5b367d,_0x58bdf5){_0x5b367d=_0x5b367d-0x8b;const _0x59a68f=_0x59a6();let _0x25bdf3=_0x59a68f[_0x5b367d];return _0x25bdf3;}import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x224581){const _0x5237ba=_0x25bd,_0x2a44fd={'zWpSF':function(_0x2cedd8,_0x2ebbc1){return _0x2cedd8(_0x2ebbc1);},'LQCtc':function(_0x27dda4,_0x457449){return _0x27dda4(_0x457449);},'JKbNh':_0x5237ba(0x91)},_0x4be7c2=await getEnabledSessionId(_0x224581);if(!_0x4be7c2)return;_0x2a44fd[_0x5237ba(0x9a)](updateBranchTracking,_0x4be7c2);const _0x8e31c=await getToken();if(!_0x8e31c)return;const _0x17adb8=_0x2a44fd['LQCtc'](getSessionEntry,_0x4be7c2);if(_0x17adb8){const _0x188afd={'hookSpecificOutput':{'hookEventName':_0x2a44fd['JKbNh'],'additionalContext':_0x5237ba(0x95)}};console[_0x5237ba(0x96)](JSON['stringify'](_0x188afd));return;}const _0x250a53={'hookSpecificOutput':{'hookEventName':_0x5237ba(0x91),'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON[_0x5237ba(0x90)](_0x250a53));}
@@ -1 +1 @@
1
- (function(_0x2cd945,_0x481a67){const _0x359a03=_0x5473,_0x3cc1b6=_0x2cd945();while(!![]){try{const _0x42ff15=parseInt(_0x359a03(0x18c))/0x1*(parseInt(_0x359a03(0x18b))/0x2)+parseInt(_0x359a03(0x187))/0x3+parseInt(_0x359a03(0x184))/0x4*(parseInt(_0x359a03(0x189))/0x5)+parseInt(_0x359a03(0x183))/0x6*(parseInt(_0x359a03(0x186))/0x7)+-parseInt(_0x359a03(0x18d))/0x8+-parseInt(_0x359a03(0x188))/0x9*(parseInt(_0x359a03(0x185))/0xa)+parseInt(_0x359a03(0x18a))/0xb;if(_0x42ff15===_0x481a67)break;else _0x3cc1b6['push'](_0x3cc1b6['shift']());}catch(_0x2648a6){_0x3cc1b6['push'](_0x3cc1b6['shift']());}}}(_0x1305,0x568ee));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0xc14bb9){const _0x5450f2={'yTAdh':function(_0x548351){return _0x548351();}},_0x4131fc=await getEnabledSessionId(_0xc14bb9);if(!_0x4131fc)return;try{const _0x4e099a=await _0x5450f2['yTAdh'](getToken);if(!_0x4e099a)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{}}function _0x5473(_0x16de16,_0x5dff29){_0x16de16=_0x16de16-0x183;const _0x1305ab=_0x1305();let _0x54730c=_0x1305ab[_0x16de16];return _0x54730c;}function _0x1305(){const _0x50640e=['20JYiGiX','148423fxjeSd','51782VnJcpl','22gSytyW','2383816pEuyoK','2926338LhjpZV','189212ZLVyUo','10pIlboq','7HoThFD','39834xLZFGi','5587101LLJwBs'];_0x1305=function(){return _0x50640e;};return _0x1305();}
1
+ (function(_0x4e5f2d,_0x58835b){const _0x48c928=_0x2c80,_0x4aa362=_0x4e5f2d();while(!![]){try{const _0x46bf35=-parseInt(_0x48c928(0x185))/0x1*(parseInt(_0x48c928(0x18c))/0x2)+parseInt(_0x48c928(0x186))/0x3+parseInt(_0x48c928(0x187))/0x4+-parseInt(_0x48c928(0x183))/0x5*(parseInt(_0x48c928(0x189))/0x6)+-parseInt(_0x48c928(0x188))/0x7+-parseInt(_0x48c928(0x184))/0x8+-parseInt(_0x48c928(0x18b))/0x9*(-parseInt(_0x48c928(0x18e))/0xa);if(_0x46bf35===_0x58835b)break;else _0x4aa362['push'](_0x4aa362['shift']());}catch(_0x2c359b){_0x4aa362['push'](_0x4aa362['shift']());}}}(_0x3784,0xd26ef));function _0x2c80(_0x54fd25,_0x64e10d){_0x54fd25=_0x54fd25-0x183;const _0x378424=_0x3784();let _0x2c800b=_0x378424[_0x54fd25];return _0x2c800b;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x114294){const _0x40683a=_0x2c80,_0x5bc069={'dFxvO':function(_0x5a35cb,_0x7835fa){return _0x5a35cb(_0x7835fa);}},_0x4fc57a=await _0x5bc069['dFxvO'](getEnabledSessionId,_0x114294);if(!_0x4fc57a)return;try{const _0x3c80ea=await getToken();if(!_0x3c80ea)return;_0x5bc069[_0x40683a(0x18a)](printBlock,_0x40683a(0x18d));}catch{}}function _0x3784(){const _0x12a996=['37773tfJAfb','4ZChYer','===\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`.','7170JtInfR','1207565wVZiaz','7178720CMVlXh','295912oGMAeh','2497566wCgOZl','3550032aATqLa','6503714vCpFsN','36RpsaWg','dFxvO'];_0x3784=function(){return _0x12a996;};return _0x3784();}
@@ -1 +1 @@
1
- function _0x45e1(_0x3c2967,_0x3effd4){_0x3c2967=_0x3c2967-0x1cd;const _0x5b09f7=_0x5b09();let _0x45e1fd=_0x5b09f7[_0x3c2967];return _0x45e1fd;}function _0x5b09(){const _0xb92083=['344016Crazel','51355ppHNBL','68049OpkkYK','36QpybYe','938520WZxKbZ','1000835ADdZCd','63bPwZWF','2774868yOyBFB','SGvJR','522DsmaZo','clear','340pVUkSk','reason','209yNSgvP','327736wyRbBb'];_0x5b09=function(){return _0xb92083;};return _0x5b09();}(function(_0x4ad08b,_0x39f7c8){const _0x12004e=_0x45e1,_0xf5c028=_0x4ad08b();while(!![]){try{const _0xa4fb44=-parseInt(_0x12004e(0x1d8))/0x1+-parseInt(_0x12004e(0x1d3))/0x2+-parseInt(_0x12004e(0x1d6))/0x3*(parseInt(_0x12004e(0x1d2))/0x4)+parseInt(_0x12004e(0x1d4))/0x5*(-parseInt(_0x12004e(0x1cd))/0x6)+-parseInt(_0x12004e(0x1d9))/0x7*(parseInt(_0x12004e(0x1d7))/0x8)+-parseInt(_0x12004e(0x1d5))/0x9*(-parseInt(_0x12004e(0x1cf))/0xa)+parseInt(_0x12004e(0x1d1))/0xb*(parseInt(_0x12004e(0x1da))/0xc);if(_0xa4fb44===_0x39f7c8)break;else _0xf5c028['push'](_0xf5c028['shift']());}catch(_0x397a8c){_0xf5c028['push'](_0xf5c028['shift']());}}}(_0x5b09,0x85180));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x3e5a59){const _0x195100=_0x45e1,_0xdb5ccc={'SGvJR':_0x195100(0x1ce)},_0x333245=process['env']['CLAUDE_SESSION_ID'];let _0x50f078=_0x3e5a59,_0x4e47ed;if(!_0x3e5a59){if(_0x333245&&!isSessionEnabled(_0x333245))return;const _0x25c510=await readHookInput();_0x50f078=_0x25c510?.['session_id']||_0x333245,_0x4e47ed=_0x25c510?.[_0x195100(0x1d0)];}if(!_0x50f078)return;_0x4e47ed===_0xdb5ccc[_0x195100(0x1db)]&&recordEnabledSessionCleared(_0x50f078);}
1
+ (function(_0x32e449,_0x5e34a0){const _0x1cee39=_0x41eb,_0x3860fb=_0x32e449();while(!![]){try{const _0x58484c=parseInt(_0x1cee39(0x1ce))/0x1*(-parseInt(_0x1cee39(0x1cf))/0x2)+-parseInt(_0x1cee39(0x1c5))/0x3*(parseInt(_0x1cee39(0x1c8))/0x4)+-parseInt(_0x1cee39(0x1cc))/0x5*(parseInt(_0x1cee39(0x1cd))/0x6)+parseInt(_0x1cee39(0x1c6))/0x7*(-parseInt(_0x1cee39(0x1c4))/0x8)+parseInt(_0x1cee39(0x1c0))/0x9*(-parseInt(_0x1cee39(0x1ca))/0xa)+-parseInt(_0x1cee39(0x1c2))/0xb*(parseInt(_0x1cee39(0x1c7))/0xc)+parseInt(_0x1cee39(0x1cb))/0xd;if(_0x58484c===_0x5e34a0)break;else _0x3860fb['push'](_0x3860fb['shift']());}catch(_0x461fcf){_0x3860fb['push'](_0x3860fb['shift']());}}}(_0x3046,0x668eb));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';function _0x41eb(_0x2b969b,_0x235b17){_0x2b969b=_0x2b969b-0x1c0;const _0x30469d=_0x3046();let _0x41ebc4=_0x30469d[_0x2b969b];return _0x41ebc4;}function _0x3046(){const _0x4c7403=['40831492zAdfuG','1262855HqzRjS','6HEBfdP','2CRPTRf','513740YozmIC','603036sjGtKi','URSQp','1312388twvexW','session_id','1142392VyRRqu','3bzcnmr','21yXGBhX','72gAKGQM','2436964KUAFBD','jxAkY','30crjlcx'];_0x3046=function(){return _0x4c7403;};return _0x3046();}export async function sessionEnd(_0x1a139b){const _0x4a5772=_0x41eb,_0x480910={'jxAkY':function(_0xdb68e4,_0x469d73){return _0xdb68e4(_0x469d73);},'URSQp':'clear'},_0x3abcb1=process['env']['CLAUDE_SESSION_ID'];let _0x3088c9=_0x1a139b,_0x39b0e9;if(!_0x1a139b){if(_0x3abcb1&&!_0x480910['jxAkY'](isSessionEnabled,_0x3abcb1))return;const _0x57e439=await readHookInput();_0x3088c9=_0x57e439?.[_0x4a5772(0x1c3)]||_0x3abcb1,_0x39b0e9=_0x57e439?.['reason'];}if(!_0x3088c9)return;_0x39b0e9===_0x480910[_0x4a5772(0x1c1)]&&_0x480910[_0x4a5772(0x1c9)](recordEnabledSessionCleared,_0x3088c9);}
@@ -1 +1 @@
1
- (function(_0x138b54,_0x5953fc){const _0x4b5311=_0x3209,_0x37b6fc=_0x138b54();while(!![]){try{const _0x4db9b1=parseInt(_0x4b5311(0x10a))/0x1*(parseInt(_0x4b5311(0x10d))/0x2)+parseInt(_0x4b5311(0x113))/0x3*(parseInt(_0x4b5311(0x10c))/0x4)+parseInt(_0x4b5311(0x101))/0x5+parseInt(_0x4b5311(0xff))/0x6+-parseInt(_0x4b5311(0xfa))/0x7+parseInt(_0x4b5311(0x112))/0x8+-parseInt(_0x4b5311(0xf9))/0x9;if(_0x4db9b1===_0x5953fc)break;else _0x37b6fc['push'](_0x37b6fc['shift']());}catch(_0x4ea76b){_0x37b6fc['push'](_0x37b6fc['shift']());}}}(_0x441f,0xe2b4d));function _0x441f(){const _0xbc3e1d=['sUWyp','Nqypd','1499348HxNXDh','OVvhl','791860wgelXP','2UzkXLF','nazvC','session_id','log','CLAUDE_ENV_FILE','403392nNralm','3MsRJAO','XOrQt','source','15424209lCStpt','8648878YeaZWs','env','lsmlW','stdin','export\x20CLAUDE_SESSION_ID=\x22','2799066LxUFlW','IYmMw','8318480LILclN','sknqk','trackCommandEnd','main','master','SessionStart','success'];_0x441f=function(){return _0xbc3e1d;};return _0x441f();}import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x3209(_0x162afc,_0x32a6d4){_0x162afc=_0x162afc-0xf9;const _0x441feb=_0x441f();let _0x32098c=_0x441feb[_0x162afc];return _0x32098c;}import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================';export async function sessionStart(_0xca9fe){const _0x8ce517=_0x3209,_0x4beb96={'sXmsX':function(_0x2793fc,_0x1e8f66){return _0x2793fc||_0x1e8f66;},'NFRQR':function(_0x668c4a,_0x1f0a1f){return _0x668c4a&&_0x1f0a1f;},'DwWJv':function(_0x6cb7ba,_0x3abff2,_0x24190d){return _0x6cb7ba(_0x3abff2,_0x24190d);},'sUWyp':function(_0x2d2664,_0x132048){return _0x2d2664(_0x132048);},'sknqk':function(_0x5b4793,_0x382e9d){return _0x5b4793(_0x382e9d);},'VWmHB':function(_0x14c55b,_0xbf825f){return _0x14c55b(_0xbf825f);},'Nqypd':function(_0x44920f){return _0x44920f();},'OVvhl':function(_0x2d9ab2,_0x1b9667){return _0x2d9ab2(_0x1b9667);},'IYmMw':function(_0x2a2ba2,_0x2064a6){return _0x2a2ba2(_0x2064a6);},'XOrQt':function(_0x369b55,_0x1aaadf){return _0x369b55!==_0x1aaadf;},'nazvC':_0x8ce517(0x106),'lsmlW':function(_0x5351fd,_0x497e3c){return _0x5351fd+_0x497e3c;}};let _0x2e6d10=_0x4beb96['sXmsX'](_0xca9fe,''),_0x4808f9;if(!_0xca9fe){let _0xc4b5fc='';for await(const _0x25f550 of process[_0x8ce517(0xfd)]){_0xc4b5fc+=_0x25f550;}try{const _0xa5e589=JSON['parse'](_0xc4b5fc);_0x2e6d10=_0xa5e589[_0x8ce517(0x10f)]||'',_0x4808f9=_0xa5e589[_0x8ce517(0x115)];}catch{}const _0xdff244=process[_0x8ce517(0xfb)][_0x8ce517(0x111)];if(_0x4beb96['NFRQR'](_0xdff244,_0x2e6d10))try{await _0x4beb96['DwWJv'](appendFile,_0xdff244,_0x8ce517(0xfe)+_0x2e6d10+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x2e6d10){_0x4beb96[_0x8ce517(0x108)](shouldAutoEnableAfterClear,_0x4808f9)&&_0x4beb96[_0x8ce517(0x102)](autoEnableAfterClear,_0x2e6d10);_0x4beb96['VWmHB'](initBranchTracking,_0x2e6d10);_0x4beb96[_0x8ce517(0x109)](resolveHookMode)==='on'&&_0x4beb96[_0x8ce517(0x10b)](enableSession,_0x2e6d10);const _0x3ec4d7=isSessionEnabled(_0x2e6d10);try{const _0x108f06=_0x4beb96[_0x8ce517(0x100)](createTelemetryCollector,'hook:session-start');await _0x108f06['trackCommandStart']({'sessionId':_0x2e6d10,'hooksEnabled':_0x3ec4d7}),await _0x108f06[_0x8ce517(0x103)](_0x8ce517(0x107));}catch{}if(_0x3ec4d7){const _0x4bdab2=_0x4beb96['Nqypd'](getCurrentBranch),_0x16112f=_0x4bdab2&&_0x4bdab2!==_0x8ce517(0x104)&&_0x4beb96[_0x8ce517(0x114)](_0x4bdab2,_0x8ce517(0x105))?'\x20(Branch:\x20'+_0x4bdab2+')':'',_0x4152b1={'hookSpecificOutput':{'hookEventName':_0x4beb96[_0x8ce517(0x10e)],'additionalContext':_0x4beb96[_0x8ce517(0xfc)](RANGER_AUTO_ENABLED_PROMPT,_0x16112f)}};console[_0x8ce517(0x110)](JSON['stringify'](_0x4152b1));}}}
1
+ (function(_0x57de6e,_0x23f449){const _0xce941=_0x2fa0,_0x131e34=_0x57de6e();while(!![]){try{const _0x5e19f4=-parseInt(_0xce941(0x167))/0x1*(-parseInt(_0xce941(0x16c))/0x2)+-parseInt(_0xce941(0x171))/0x3*(-parseInt(_0xce941(0x16b))/0x4)+parseInt(_0xce941(0x169))/0x5+parseInt(_0xce941(0x168))/0x6+parseInt(_0xce941(0x172))/0x7+parseInt(_0xce941(0x163))/0x8+-parseInt(_0xce941(0x162))/0x9;if(_0x5e19f4===_0x23f449)break;else _0x131e34['push'](_0x131e34['shift']());}catch(_0x52473e){_0x131e34['push'](_0x131e34['shift']());}}}(_0x4806,0xdf4d0));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 _0x2fa0(_0x1e2cb1,_0x43236a){_0x1e2cb1=_0x1e2cb1-0x160;const _0x48068e=_0x4806();let _0x2fa027=_0x48068e[_0x1e2cb1];return _0x2fa027;}function _0x4806(){const _0x2d8202=['export\x20CLAUDE_SESSION_ID=\x22','XMuKN','session_id','ASzpc','177MYqzaY','3741710bLCbXn','ZeXaO','Seosq','30262617xHqOEZ','545176oPppax','AbrpQ','rkQMG','env','843XyhEEk','3877932mKtlMy','8653470HNPamD','hgfwx','10636glRcop','2706TTjUuK'];_0x4806=function(){return _0x2d8202;};return _0x4806();}import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================';export async function sessionStart(_0x5780f7){const _0x33b115=_0x2fa0,_0x22b5f0={'ASzpc':_0x33b115(0x16f),'Seosq':'source','rkQMG':function(_0x2d7154,_0x4c6c27){return _0x2d7154&&_0x4c6c27;},'NjBGO':function(_0x585d00,_0x212c31,_0xbea660){return _0x585d00(_0x212c31,_0xbea660);},'AbrpQ':function(_0x18887c){return _0x18887c();},'XMuKN':function(_0x3b3150,_0x1ea638){return _0x3b3150!==_0x1ea638;},'IxvlN':function(_0xdb208a,_0x2b2f3a){return _0xdb208a!==_0x2b2f3a;},'hgfwx':'SessionStart','ZeXaO':function(_0x2e539b,_0x4783c9){return _0x2e539b+_0x4783c9;}};let _0xed4e92=_0x5780f7||'',_0x2b98bb;if(!_0x5780f7){let _0x50af25='';for await(const _0x508c14 of process['stdin']){_0x50af25+=_0x508c14;}try{const _0x45683b=JSON['parse'](_0x50af25);_0xed4e92=_0x45683b[_0x22b5f0[_0x33b115(0x170)]]||'',_0x2b98bb=_0x45683b[_0x22b5f0[_0x33b115(0x161)]];}catch{}const _0x57aa34=process[_0x33b115(0x166)]['CLAUDE_ENV_FILE'];if(_0x22b5f0[_0x33b115(0x165)](_0x57aa34,_0xed4e92))try{await _0x22b5f0['NjBGO'](appendFile,_0x57aa34,_0x33b115(0x16d)+_0xed4e92+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0xed4e92){shouldAutoEnableAfterClear(_0x2b98bb)&&autoEnableAfterClear(_0xed4e92);initBranchTracking(_0xed4e92);resolveHookMode()==='on'&&enableSession(_0xed4e92);const _0x3cd1b3=isSessionEnabled(_0xed4e92);try{const _0x1267f3=createTelemetryCollector('hook:session-start');await _0x1267f3['trackCommandStart']({'sessionId':_0xed4e92,'hooksEnabled':_0x3cd1b3}),await _0x1267f3['trackCommandEnd']('success');}catch{}if(_0x3cd1b3){const _0xced88b=_0x22b5f0[_0x33b115(0x164)](getCurrentBranch),_0x92f77=_0xced88b&&_0x22b5f0[_0x33b115(0x16e)](_0xced88b,'main')&&_0x22b5f0['IxvlN'](_0xced88b,'master')?'\x20(Branch:\x20'+_0xced88b+')':'',_0x298430={'hookSpecificOutput':{'hookEventName':_0x22b5f0[_0x33b115(0x16a)],'additionalContext':_0x22b5f0[_0x33b115(0x160)](RANGER_AUTO_ENABLED_PROMPT,_0x92f77)}};console['log'](JSON['stringify'](_0x298430));}}}
@@ -1 +1 @@
1
- (function(_0x4bc6d7,_0x430e83){const _0x3e7dd1=_0x2201,_0x32bd77=_0x4bc6d7();while(!![]){try{const _0x6bc243=-parseInt(_0x3e7dd1(0x1ac))/0x1*(parseInt(_0x3e7dd1(0x1a7))/0x2)+-parseInt(_0x3e7dd1(0x1b1))/0x3+parseInt(_0x3e7dd1(0x1aa))/0x4+parseInt(_0x3e7dd1(0x1a9))/0x5*(parseInt(_0x3e7dd1(0x1af))/0x6)+-parseInt(_0x3e7dd1(0x1b2))/0x7*(-parseInt(_0x3e7dd1(0x1b6))/0x8)+-parseInt(_0x3e7dd1(0x1a8))/0x9+parseInt(_0x3e7dd1(0x1b0))/0xa;if(_0x6bc243===_0x430e83)break;else _0x32bd77['push'](_0x32bd77['shift']());}catch(_0x4f62d6){_0x32bd77['push'](_0x32bd77['shift']());}}}(_0x58ca,0x2ce3a));function _0x2201(_0xb12611,_0x62a339){_0xb12611=_0xb12611-0x1a7;const _0x58ca6e=_0x58ca();let _0x22014f=_0x58ca6e[_0xb12611];return _0x22014f;}import{getToken}from'../utils/keychain.js';function _0x58ca(){const _0x519213=['stringify','status','138yyPiGJ','1256544cgPquG','341345qqxgwE','315376kSSLue','trackCommandEnd','5202wzDIQH','sessionId','HXKyP','6WWbbaz','7070740nCejoL','871860sshbov','7OxtoCK','some','hook:stop','featureId','950824DAjFix','kcMDU','trackCommandStart','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','log','Stop'];_0x58ca=function(){return _0x519213;};return _0x58ca();}import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0xf94a0e){const _0x2a046a=_0x2201,_0x1cccc4={'kcMDU':function(_0x28a18d,_0x595b78){return _0x28a18d(_0x595b78);},'ElhpB':_0x2a046a(0x1bb),'efrXk':function(_0x2ff2ef,_0x2c88eb,_0x4b746d,_0x71f29e){return _0x2ff2ef(_0x2c88eb,_0x4b746d,_0x71f29e);}},_0x1c23b5=await _0x1cccc4['kcMDU'](getEnabledHookContext,_0xf94a0e),_0x44c403=_0x1c23b5?.[_0x2a046a(0x1ad)]??null;let _0x17d2e8=!![];if(!_0x44c403){await trackStop(_0x44c403,![],_0x17d2e8);return;}try{const _0x59d807=getSessionEntry(_0x44c403);if(!_0x59d807){await trackStop(_0x44c403,!![],_0x17d2e8);return;}const _0x1e9d40=await getToken(),_0x4de82a='https://dashboard.ranger.net/features/'+_0x59d807['featureId'];let _0x10b934=null,_0x3585c0=![],_0x3b7674=![];if(_0x1e9d40)try{const _0x2da885=await getFeature(_0x59d807[_0x2a046a(0x1b5)]);_0x10b934=_0x2da885['currentSessionId']??null;const _0x436c27=_0x2da885['checklistItems']['filter'](_0x519112=>_0x519112['sessionId']===_0x10b934);_0x3585c0=_0x436c27[_0x2a046a(0x1b3)](_0x29fff8=>_0x29fff8['status']!=='verified'&&_0x29fff8[_0x2a046a(0x1bd)]!=='blocked'&&_0x29fff8[_0x2a046a(0x1bd)]!=='closed'&&_0x29fff8[_0x2a046a(0x1bd)]!=='incomplete'),_0x3b7674=_0x436c27[_0x2a046a(0x1b3)](_0x4c318e=>_0x4c318e['status']==='verification_in_progress');}catch{}if(_0x1e9d40&&_0x10b934&&_0x3585c0){if(!_0x3b7674&&_0x1cccc4[_0x2a046a(0x1b7)](shouldShowStopReminder,_0x44c403)){const _0x59b509={'hookSpecificOutput':{'hookEventName':_0x1cccc4['ElhpB'],'additionalContext':_0x2a046a(0x1b9)+_0x4de82a}};console[_0x2a046a(0x1ba)](JSON[_0x2a046a(0x1bc)](_0x59b509));}}if(_0x1e9d40&&_0x10b934&&!_0x3585c0)try{await concludeSession(_0x59d807['featureId'],_0x10b934);}catch{}await _0x1cccc4['efrXk'](trackStop,_0x44c403,!![],_0x17d2e8);return;}catch{await trackStop(_0x44c403,!![],_0x17d2e8);return;}}async function trackStop(_0x2ea343,_0x27bc3b,_0x12effd){const _0x158c0e=_0x2201,_0x4fcd2f={'HXKyP':_0x158c0e(0x1b4),'VNcTq':function(_0x35d786,_0x345b06){return _0x35d786??_0x345b06;}};try{const _0x47128d=createTelemetryCollector(_0x4fcd2f[_0x158c0e(0x1ae)]);await _0x47128d[_0x158c0e(0x1b8)]({'sessionId':_0x4fcd2f['VNcTq'](_0x2ea343,undefined),'hooksEnabled':_0x27bc3b,'stopAllowed':_0x12effd}),await _0x47128d[_0x158c0e(0x1ab)]('success');}catch{}}
1
+ (function(_0x46eed5,_0x3d955d){const _0x4dced5=_0x5f0b,_0x4b8daf=_0x46eed5();while(!![]){try{const _0x22bd70=-parseInt(_0x4dced5(0x92))/0x1*(parseInt(_0x4dced5(0x91))/0x2)+-parseInt(_0x4dced5(0x99))/0x3+-parseInt(_0x4dced5(0x97))/0x4+parseInt(_0x4dced5(0x96))/0x5*(parseInt(_0x4dced5(0x8c))/0x6)+parseInt(_0x4dced5(0x83))/0x7+-parseInt(_0x4dced5(0x89))/0x8*(parseInt(_0x4dced5(0x9b))/0x9)+parseInt(_0x4dced5(0x95))/0xa;if(_0x22bd70===_0x3d955d)break;else _0x4b8daf['push'](_0x4b8daf['shift']());}catch(_0x4dc9de){_0x4b8daf['push'](_0x4b8daf['shift']());}}}(_0x4180,0x1bd61));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';function _0x4180(){const _0x2a2283=['success','blocked','6KCGTkU','trackCommandStart','status','featureId','oTGgC','347876qsEffr','1rUfVYv','sessionId','duAcM','3621510zbBonx','1133670BkdRTf','491900GAhrFa','dRYCP','104982LwsTBU','verification_in_progress','1918989GjKyZm','trackCommandEnd','incomplete','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','491820LNDfaO','hook:stop','some','Stop','ZYYBV','log','8GrcEZY'];_0x4180=function(){return _0x2a2283;};return _0x4180();}function _0x5f0b(_0x40294,_0x204eaa){_0x40294=_0x40294-0x82;const _0x418039=_0x4180();let _0x5f0b7c=_0x418039[_0x40294];return _0x5f0b7c;}import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x491178){const _0x5c5472=_0x5f0b,_0x39bb21={'ZYYBV':function(_0x17de7b,_0x2162f7){return _0x17de7b(_0x2162f7);},'duAcM':function(_0x81ebf0,_0xfc912f,_0x511c34,_0x45fbcb){return _0x81ebf0(_0xfc912f,_0x511c34,_0x45fbcb);},'dRYCP':function(_0x306c4d,_0x522fdb){return _0x306c4d&&_0x522fdb;},'oTGgC':function(_0x526669,_0x2d561b){return _0x526669&&_0x2d561b;},'EkyJA':function(_0x5312d8,_0x3d484b,_0xb7c51){return _0x5312d8(_0x3d484b,_0xb7c51);}},_0x124ec0=await _0x39bb21[_0x5c5472(0x87)](getEnabledHookContext,_0x491178),_0x1af5b4=_0x124ec0?.['sessionId']??null;let _0x470249=!![];if(!_0x1af5b4){await _0x39bb21[_0x5c5472(0x94)](trackStop,_0x1af5b4,![],_0x470249);return;}try{const _0x402c28=getSessionEntry(_0x1af5b4);if(!_0x402c28){await trackStop(_0x1af5b4,!![],_0x470249);return;}const _0xe3cc32=await getToken(),_0xd80ce0='https://dashboard.ranger.net/features/'+_0x402c28[_0x5c5472(0x8f)];let _0x5f20d4=null,_0x397dd5=![],_0x41ca12=![];if(_0xe3cc32)try{const _0x2cfc3a=await getFeature(_0x402c28[_0x5c5472(0x8f)]);_0x5f20d4=_0x2cfc3a['currentSessionId']??null;const _0x31fc1c=_0x2cfc3a['checklistItems']['filter'](_0x53dea8=>_0x53dea8[_0x5c5472(0x93)]===_0x5f20d4);_0x397dd5=_0x31fc1c[_0x5c5472(0x85)](_0x1edfd7=>_0x1edfd7['status']!=='verified'&&_0x1edfd7[_0x5c5472(0x8e)]!==_0x5c5472(0x8b)&&_0x1edfd7[_0x5c5472(0x8e)]!=='closed'&&_0x1edfd7['status']!==_0x5c5472(0x9d)),_0x41ca12=_0x31fc1c[_0x5c5472(0x85)](_0x48b6ae=>_0x48b6ae['status']===_0x5c5472(0x9a));}catch{}if(_0x39bb21[_0x5c5472(0x98)](_0xe3cc32,_0x5f20d4)&&_0x397dd5){if(!_0x41ca12&&shouldShowStopReminder(_0x1af5b4)){const _0xea351c={'hookSpecificOutput':{'hookEventName':_0x5c5472(0x86),'additionalContext':_0x5c5472(0x82)+_0xd80ce0}};console[_0x5c5472(0x88)](JSON['stringify'](_0xea351c));}}if(_0x39bb21[_0x5c5472(0x90)](_0xe3cc32,_0x5f20d4)&&!_0x397dd5)try{await _0x39bb21['EkyJA'](concludeSession,_0x402c28[_0x5c5472(0x8f)],_0x5f20d4);}catch{}await trackStop(_0x1af5b4,!![],_0x470249);return;}catch{await trackStop(_0x1af5b4,!![],_0x470249);return;}}async function trackStop(_0x5256d2,_0x24970b,_0x697b48){const _0x11c910=_0x5f0b;try{const _0x3c9b36=createTelemetryCollector(_0x11c910(0x84));await _0x3c9b36[_0x11c910(0x8d)]({'sessionId':_0x5256d2??undefined,'hooksEnabled':_0x24970b,'stopAllowed':_0x697b48}),await _0x3c9b36[_0x11c910(0x9c)](_0x11c910(0x8a));}catch{}}
@@ -1 +1 @@
1
- (function(_0x24fe5b,_0x10b675){var _0x1bbb51=_0x403a,_0x821093=_0x24fe5b();while(!![]){try{var _0x2b34cd=parseInt(_0x1bbb51(0x1d3))/0x1*(-parseInt(_0x1bbb51(0x1cd))/0x2)+parseInt(_0x1bbb51(0x1d2))/0x3+-parseInt(_0x1bbb51(0x1d4))/0x4+-parseInt(_0x1bbb51(0x1d1))/0x5+-parseInt(_0x1bbb51(0x1d5))/0x6*(parseInt(_0x1bbb51(0x1cf))/0x7)+-parseInt(_0x1bbb51(0x1ce))/0x8+parseInt(_0x1bbb51(0x1d0))/0x9;if(_0x2b34cd===_0x10b675)break;else _0x821093['push'](_0x821093['shift']());}catch(_0x5dbf47){_0x821093['push'](_0x821093['shift']());}}}(_0x1ed0,0x6a649));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';function _0x1ed0(){var _0x403880=['2989420QzbyAk','1838961qDVNyJ','184udzwcA','443032KQnNVj','6UGbGbK','6118MPYXhc','725056GlKsCz','4160527sYazPC','16013601NrQaQD'];_0x1ed0=function(){return _0x403880;};return _0x1ed0();}export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';function _0x403a(_0x2e65a6,_0x2fcbf7){_0x2e65a6=_0x2e65a6-0x1cd;var _0x1ed03e=_0x1ed0();var _0x403add=_0x1ed03e[_0x2e65a6];return _0x403add;}export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';
1
+ (function(_0x3d788b,_0x11d9cb){var _0x5a1eb2=_0x1b53,_0x2e7495=_0x3d788b();while(!![]){try{var _0x99e5e4=parseInt(_0x5a1eb2(0x92))/0x1+parseInt(_0x5a1eb2(0x97))/0x2+parseInt(_0x5a1eb2(0x96))/0x3+-parseInt(_0x5a1eb2(0x98))/0x4*(-parseInt(_0x5a1eb2(0x93))/0x5)+parseInt(_0x5a1eb2(0x95))/0x6+parseInt(_0x5a1eb2(0x94))/0x7+-parseInt(_0x5a1eb2(0x99))/0x8;if(_0x99e5e4===_0x11d9cb)break;else _0x2e7495['push'](_0x2e7495['shift']());}catch(_0x32450a){_0x2e7495['push'](_0x2e7495['shift']());}}}(_0x1969,0x4b589));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';function _0x1b53(_0x20ebf5,_0x8b8ff5){_0x20ebf5=_0x20ebf5-0x92;var _0x196995=_0x1969();var _0x1b5347=_0x196995[_0x20ebf5];return _0x1b5347;}export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';function _0x1969(){var _0x304c96=['725194TQJCct','28oVbEkp','12865304oAQggh','152015UjIhxr','356765hqkhYM','841421WpDnYy','1243494wCMZBh','1725735iHzBgD'];_0x1969=function(){return _0x304c96;};return _0x1969();}