@loxia-labs/loxia-autopilot-one 1.0.6 → 1.0.8

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 (120) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.js +1 -1
  3. package/bin/loxia-terminal-v2.js +1 -1
  4. package/bin/loxia-terminal.js +1 -1
  5. package/bin/start-with-terminal.js +1 -1
  6. package/package.json +1 -1
  7. package/scripts/install-scanners.js +1 -1
  8. package/src/analyzers/CSSAnalyzer.js +1 -1
  9. package/src/analyzers/ConfigValidator.js +1 -1
  10. package/src/analyzers/ESLintAnalyzer.js +1 -1
  11. package/src/analyzers/JavaScriptAnalyzer.js +1 -1
  12. package/src/analyzers/PrettierFormatter.js +1 -1
  13. package/src/analyzers/PythonAnalyzer.js +1 -1
  14. package/src/analyzers/SecurityAnalyzer.js +1 -1
  15. package/src/analyzers/TypeScriptAnalyzer.js +1 -1
  16. package/src/analyzers/codeCloneDetector/analyzer.js +1 -1
  17. package/src/analyzers/codeCloneDetector/detector.js +1 -1
  18. package/src/analyzers/codeCloneDetector/index.js +1 -1
  19. package/src/analyzers/codeCloneDetector/parser.js +1 -1
  20. package/src/analyzers/codeCloneDetector/reporter.js +1 -1
  21. package/src/analyzers/codeCloneDetector/scanner.js +1 -1
  22. package/src/core/agentPool.js +1 -1
  23. package/src/core/agentScheduler.js +1 -1
  24. package/src/core/contextManager.js +1 -1
  25. package/src/core/messageProcessor.js +1 -1
  26. package/src/core/orchestrator.js +1 -1
  27. package/src/core/stateManager.js +1 -1
  28. package/src/index.js +1 -1
  29. package/src/interfaces/cli.js +1 -1
  30. package/src/interfaces/terminal/__tests__/smoke/advancedFeatures.test.js +1 -1
  31. package/src/interfaces/terminal/__tests__/smoke/agentControl.test.js +1 -1
  32. package/src/interfaces/terminal/__tests__/smoke/agents.test.js +1 -1
  33. package/src/interfaces/terminal/__tests__/smoke/components.test.js +1 -1
  34. package/src/interfaces/terminal/__tests__/smoke/connection.test.js +1 -1
  35. package/src/interfaces/terminal/__tests__/smoke/enhancements.test.js +1 -1
  36. package/src/interfaces/terminal/__tests__/smoke/imports.test.js +1 -1
  37. package/src/interfaces/terminal/__tests__/smoke/messages.test.js +1 -1
  38. package/src/interfaces/terminal/__tests__/smoke/tools.test.js +1 -1
  39. package/src/interfaces/terminal/api/apiClient.js +1 -1
  40. package/src/interfaces/terminal/api/messageRouter.js +1 -1
  41. package/src/interfaces/terminal/api/session.js +1 -1
  42. package/src/interfaces/terminal/api/websocket.js +1 -1
  43. package/src/interfaces/terminal/components/AgentCreator.js +1 -1
  44. package/src/interfaces/terminal/components/AgentEditor.js +1 -1
  45. package/src/interfaces/terminal/components/AgentSwitcher.js +1 -1
  46. package/src/interfaces/terminal/components/ErrorBoundary.js +1 -1
  47. package/src/interfaces/terminal/components/ErrorPanel.js +1 -1
  48. package/src/interfaces/terminal/components/Header.js +1 -1
  49. package/src/interfaces/terminal/components/HelpPanel.js +1 -1
  50. package/src/interfaces/terminal/components/InputBox.js +1 -1
  51. package/src/interfaces/terminal/components/Layout.js +1 -1
  52. package/src/interfaces/terminal/components/LoadingSpinner.js +1 -1
  53. package/src/interfaces/terminal/components/MessageList.js +1 -1
  54. package/src/interfaces/terminal/components/MultilineTextInput.js +1 -1
  55. package/src/interfaces/terminal/components/SearchPanel.js +1 -1
  56. package/src/interfaces/terminal/components/SettingsPanel.js +1 -1
  57. package/src/interfaces/terminal/components/StatusBar.js +1 -1
  58. package/src/interfaces/terminal/components/TextInput.js +1 -1
  59. package/src/interfaces/terminal/config/agentEditorConstants.js +1 -1
  60. package/src/interfaces/terminal/config/constants.js +1 -1
  61. package/src/interfaces/terminal/index.js +1 -1
  62. package/src/interfaces/terminal/state/useAgentControl.js +1 -1
  63. package/src/interfaces/terminal/state/useAgents.js +1 -1
  64. package/src/interfaces/terminal/state/useConnection.js +1 -1
  65. package/src/interfaces/terminal/state/useMessages.js +1 -1
  66. package/src/interfaces/terminal/state/useTools.js +1 -1
  67. package/src/interfaces/terminal/utils/debugLogger.js +1 -1
  68. package/src/interfaces/terminal/utils/settingsStorage.js +1 -1
  69. package/src/interfaces/terminal/utils/theme.js +1 -1
  70. package/src/interfaces/webServer.js +1 -1
  71. package/src/modules/fileExplorer/controller.js +1 -1
  72. package/src/modules/fileExplorer/index.js +1 -1
  73. package/src/modules/fileExplorer/middleware.js +1 -1
  74. package/src/modules/fileExplorer/routes.js +1 -1
  75. package/src/services/aiService.js +1 -1
  76. package/src/services/apiKeyManager.js +1 -1
  77. package/src/services/benchmarkService.js +1 -1
  78. package/src/services/budgetService.js +1 -1
  79. package/src/services/contextInjectionService.js +1 -1
  80. package/src/services/conversationCompactionService.js +1 -1
  81. package/src/services/errorHandler.js +1 -1
  82. package/src/services/fileAttachmentService.js +1 -1
  83. package/src/services/modelRouterService.js +1 -1
  84. package/src/services/modelsService.js +1 -1
  85. package/src/services/qualityInspector.js +1 -1
  86. package/src/services/tokenCountingService.js +1 -1
  87. package/src/tools/agentCommunicationTool.js +1 -1
  88. package/src/tools/agentDelayTool.js +1 -1
  89. package/src/tools/asyncToolManager.js +1 -1
  90. package/src/tools/baseTool.js +1 -1
  91. package/src/tools/browserTool.js +1 -1
  92. package/src/tools/cloneDetectionTool.js +1 -1
  93. package/src/tools/dependencyResolverTool.js +1 -1
  94. package/src/tools/fileContentReplaceTool.js +1 -1
  95. package/src/tools/fileSystemTool.js +1 -1
  96. package/src/tools/fileTreeTool.js +1 -1
  97. package/src/tools/imageTool.js +1 -1
  98. package/src/tools/importAnalyzerTool.js +1 -1
  99. package/src/tools/jobDoneTool.js +1 -1
  100. package/src/tools/seekTool.js +1 -1
  101. package/src/tools/staticAnalysisTool.js +1 -1
  102. package/src/tools/taskManagerTool.js +1 -1
  103. package/src/tools/terminalTool.js +1 -1
  104. package/src/tools/webTool.js +1 -1
  105. package/src/types/agent.js +1 -1
  106. package/src/types/contextReference.js +1 -1
  107. package/src/types/conversation.js +1 -1
  108. package/src/types/toolCommand.js +1 -1
  109. package/src/utilities/attachmentValidator.js +1 -1
  110. package/src/utilities/configManager.js +1 -1
  111. package/src/utilities/constants.js +1 -1
  112. package/src/utilities/directoryAccessManager.js +1 -1
  113. package/src/utilities/fileProcessor.js +1 -1
  114. package/src/utilities/logger.js +1 -1
  115. package/src/utilities/tagParser.js +1 -1
  116. package/src/utilities/toolConstants.js +1 -1
  117. package/web-ui/build/index.html +2 -2
  118. package/web-ui/build/static/index-BmKxmRe3.css +1 -0
  119. package/web-ui/build/static/{index-CX8ZfpGw.js → index-BzXbDs8z.js} +69 -69
  120. package/web-ui/build/static/index-Dwg_JrlO.css +0 -1
@@ -1 +1 @@
1
- const a0_0x429d25=a0_0x2021;(function(_0x2b311b,_0x3eab04){const _0x52f9dd=a0_0x2021,_0x5f13bc=_0x2b311b();while(!![]){try{const _0x233c56=-parseInt(_0x52f9dd(0x10e))/0x1*(-parseInt(_0x52f9dd(0x114))/0x2)+parseInt(_0x52f9dd(0xc6))/0x3*(parseInt(_0x52f9dd(0xda))/0x4)+-parseInt(_0x52f9dd(0x10f))/0x5+-parseInt(_0x52f9dd(0xfe))/0x6+parseInt(_0x52f9dd(0xe6))/0x7+parseInt(_0x52f9dd(0xff))/0x8*(-parseInt(_0x52f9dd(0xbd))/0x9)+parseInt(_0x52f9dd(0xf7))/0xa;if(_0x233c56===_0x3eab04)break;else _0x5f13bc['push'](_0x5f13bc['shift']());}catch(_0x4a61c9){_0x5f13bc['push'](_0x5f13bc['shift']());}}}(a0_0x5963,0x47434));function a0_0x5963(){const _0x3ff443=['Dg9ju09tDhjPBMC','y29TBwfUzhm','y2XLyxjty3jLzw4','B3jJAgvZDhjHDg9Y','icaVCgf1C2uGpgfNzw50lwLKpIaGicaTifbHDxnLigfUigfNzw50','cVcFKySGr29Vzgj5zse','icaGvxnLic9JCMvHDguGpg5HBwu+ihrVignYzwf0zsb5B3vYigzPCNn0igfNzw50','C2H1DgrVD24','y2XPlq','icaVCMvZDw1LidXHz2vUDc1Pzd4GicaTifjLC3vTzsbHihbHDxnLzcbHz2vUDa','BwvZC2fNzq','C2HVD1n0yxr1CW','mtnxtLvuzhi','mJm0ntKXmfnMvwfIAG','y29TBwfUza','C2XPy2u','AM9PBG','y3DK','odyZndHTs1rAu0C','Dg9VBfjLC3vSDhm','BgvUz3rO','4P2mifn3AxrJAcbHz2vUDcbJB21Tyw5KigzHAwXLzdO','Bg9Nz2vY','BgLZDefNzw50CW','8j+KLIbbDMfPBgfIBguGqwDLBNrZoG','4P2miezHAwXLzcb0BYbZD2L0y2GGywDLBNq6','8j+tPcbtzw5KAw5NihrVigfNzw50lI4U','4P2mifbHDxnLigfNzw50ignVBw1HBMqGzMfPBgvKoG','q0Xj','4P2miezHAwXLzcb0BYbSAxn0igfNzw50CZO','8j+sOsboBYbHz2vUDcbZzwXLy3rLzc4Gq3jLyxrLigfUigfNzw50igzPCNn0ihDPDgG6ic9JCMvHDguGpgfNzw50lw5HBwu+','tM9Uzq','C3rKB3v0','BM8TywDLBNq','icaGqwDLBNrZoIa','8j+tNcbdB21Tyw5KieHPC3rVCNK6','icaGvhLWzsaVy3jLyxrLidXUyw1LpIb0BYbJCMvHDguGEw91CIbMAxjZDcbHz2vUDa','q0XjignVBw1HBMqGzxjYB3i','CMvZDw1LqwDLBNq','C2HPzNq','ChjVAMvJDerPCG','zgf0yq','8j+oRYbxzwXJB21LihrVieXVEgLHief1Dg9WAwXVDcbpBMuGq0Xj','C2HVD0HLBha','icaGicbtDgf0Dxm6ia','nJe5ntmZzu9ss3bJ','CMvZDwX0','C2HVD1DLBgnVBwu','4P2miezHAwXLzcb0BYbNzxqGC3rHDhvZoG','C2vZC2LVBKLK','y29UDgvUDa','zxHPDa','ww91igfYzsa','ihnLy29Uzhm','mtvKwwPkyNO','C2vUze1LC3nHz2vuB0fNzw50','yNjVD3nLCG','cVcFLkCGvg9VBcbLEgvJDxrPB24GCMvZDwX0CZO','4P2mievYCM9YoG','Bg9N','4P2miezHAwXLzcb0BYbZzw5Kig1LC3nHz2u6','y29TBwfUzeHPC3rVCNK','ChjVy2vZC1jLCxvLC3q','8j+KLIbbz2vUDcbYzxnWB25ZztO','4P2miezHAwXLzcb0BYbWyxvZzsbHz2vUDdO','icaVzxHPDcbVCIaVCxvPDcaGicaGicaTiev4AxqGDgHLienmsq','ywDLBNrKzwXHEq','z2v0uhjVBxb0','y3vYCMvUDefNzw50','C3rYAw5NAwz5','ig1VCMuGy29TBwfUzhm','uKvtvu1fx0fhru5u','y3jLyxrLqwDLBNq','zxjYB3i','mtm1odK2CfDQve9e','icaGtMfTztOG','C2HVD0HPC3rVCNK','ChvZAa','C3rHDhvZ','4P2mifvZywDLoIaVy3jLyxrLidXHz2vUDc1Uyw1LpIbBBw9KzwXD','8j+tRsboBYbHz2vUDhmGy3jLyxrLzcb5zxq','ywDLBNrZ','ChjVBxb0','icaGu3DPDgnOzwqGDg8GDgHPCYbHz2vUDcbHDxrVBwf0AwnHBgX5','icaVy3jLyxrLidXUyw1LpIaGicaGicaTienYzwf0zsbHig5LDYbHz2vUDa','icaGu2LTCgX5ihr5CguGEw91CIbTzxnZywDLihrVihnLBMqGAxqGDg8GDgHLign1CNjLBNqGywDLBNq','mJyYmJaZmMXMsMTzCW','icaVAgvSCcaGicaGicaGicaGicaGicaGlsbtAg93ihrOAxmGAgvSCcbTzxnZywDL','Bg94Awe6','y2XLyxi','4P2mifvZywDLoIaVCMvZDw1LidXHz2vUDc1Pzd4','C2v0uhjVBxb0','cIHuBYbLEgL0lcb0ExbLicjLEgL0iIbVCIbWCMvZCYbdDhjSk0mGywDHAw4P','C3vJy2vZCW','icH1BNrPBca','icaGu2vZC2LVBIbjrdOG','AxnsDw5UAw5N','AxnqyxvZzwq','DgvYBwLUywW','zMLSzxn5C3rLBq','icaVAgLZDg9YEsaGicaGicaGicaGicaTifnOB3CGy29TBwfUzcbOAxn0B3j5','ChjVy2vZC0LUChv0','icaGifjLC3vSDdOG','nJq3nZbdENbUyMy','AgfUzgXLsw5WDxq','DhjPBq','yw50AhjVCgLJlxnVBM5LDa','DgLTzxn0yw1W','yMLUza','4P2miezHAwXLzcb0BYbJCMvHDguGywDLBNq6','mty5mZy0nfjRz1L5Da','ogDOwLvKrq','y2XVC2u','icaG'];a0_0x5963=function(){return _0x3ff443;};return a0_0x5963();}import a0_0x436b75 from'readline';import{INTERFACE_TYPES,ORCHESTRATOR_ACTIONS}from'../utilities/constants.js';function a0_0x2021(_0x4618c4,_0x1d4588){_0x4618c4=_0x4618c4-0xb8;const _0x59630d=a0_0x5963();let _0x202171=_0x59630d[_0x4618c4];if(a0_0x2021['dhjrkR']===undefined){var _0x13fff5=function(_0x3173f3){const _0x1cec68='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x436b75='',_0x266a40='';for(let _0x4c1a01=0x0,_0x4c7054,_0x3d1190,_0x2aa1de=0x0;_0x3d1190=_0x3173f3['charAt'](_0x2aa1de++);~_0x3d1190&&(_0x4c7054=_0x4c1a01%0x4?_0x4c7054*0x40+_0x3d1190:_0x3d1190,_0x4c1a01++%0x4)?_0x436b75+=String['fromCharCode'](0xff&_0x4c7054>>(-0x2*_0x4c1a01&0x6)):0x0){_0x3d1190=_0x1cec68['indexOf'](_0x3d1190);}for(let _0x2b9cf1=0x0,_0x31ed79=_0x436b75['length'];_0x2b9cf1<_0x31ed79;_0x2b9cf1++){_0x266a40+='%'+('00'+_0x436b75['charCodeAt'](_0x2b9cf1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x266a40);};a0_0x2021['mvxyeE']=_0x13fff5,a0_0x2021['PzJNqR']={},a0_0x2021['dhjrkR']=!![];}const _0x225e22=_0x59630d[0x0],_0x3f9958=_0x4618c4+_0x225e22,_0x37ed6e=a0_0x2021['PzJNqR'][_0x3f9958];return!_0x37ed6e?(_0x202171=a0_0x2021['mvxyeE'](_0x202171),a0_0x2021['PzJNqR'][_0x3f9958]=_0x202171):_0x202171=_0x37ed6e,_0x202171;}class CLIInterface{constructor(_0x266a40,_0x4c1a01,_0x4c7054={}){const _0x46ed6a=a0_0x2021;this['orchestrator']=_0x266a40,this[_0x46ed6a(0x118)]=_0x4c1a01,this['config']=_0x4c7054,this['rl']=null,this[_0x46ed6a(0xc1)]=_0x46ed6a(0x10a)+Date['now'](),this[_0x46ed6a(0xd4)]=null,this['isRunning']=![],this['historySize']=_0x4c7054['historySize']||0x3e8,this['commandHistory']=[],this['commands']={'help':this['showHelp']['bind'](this),'exit':this['exit'][_0x46ed6a(0xfc)](this),'quit':this[_0x46ed6a(0xc3)]['bind'](this),'status':this[_0x46ed6a(0x10d)][_0x46ed6a(0xfc)](this),'agents':this[_0x46ed6a(0x119)]['bind'](this),'create':this[_0x46ed6a(0xd8)]['bind'](this),'switch':this['switchAgent'][_0x46ed6a(0xfc)](this),'pause':this['pauseAgent'][_0x46ed6a(0xfc)](this),'resume':this[_0x46ed6a(0x128)]['bind'](this),'clear':this[_0x46ed6a(0x104)][_0x46ed6a(0xfc)](this),'history':this[_0x46ed6a(0xdc)]['bind'](this)};}async['initialize'](){const _0xec49d5=a0_0x2021;this['rl']=a0_0x436b75['createInterface']({'input':process['stdin'],'output':process[_0xec49d5(0x122)],'prompt':this[_0xec49d5(0xd3)](),'historySize':this['historySize']}),this['rl']['on']('line',this[_0xec49d5(0xf8)][_0xec49d5(0xfc)](this)),this['rl']['on'](_0xec49d5(0x100),this['exit'][_0xec49d5(0xfc)](this)),this['rl']['on']('SIGINT',()=>{const _0xef490c=_0xec49d5;console[_0xef490c(0xcb)](_0xef490c(0xec)),this['rl'][_0xef490c(0xe2)]();}),this['isRunning']=!![],this['showWelcome'](),this['rl'][_0xec49d5(0xe2)]();}async['handleInput'](_0x3d1190){const _0xf0600a=a0_0x2021,_0x2aa1de=_0x3d1190[_0xf0600a(0xf9)]();if(_0x2aa1de['length']===0x0){this['rl'][_0xf0600a(0xe2)]();return;}this[_0xf0600a(0xcd)][_0xf0600a(0xdd)]({'command':_0x2aa1de,'timestamp':new Date()[_0xf0600a(0x102)]()});this['commandHistory'][_0xf0600a(0x116)]>this['historySize']&&this[_0xf0600a(0xcd)][_0xf0600a(0x129)]();try{await this[_0xf0600a(0xf5)](_0x2aa1de);}catch(_0x2b9cf1){console[_0xf0600a(0xd9)](_0xf0600a(0xca),_0x2b9cf1[_0xf0600a(0x10c)]),this['logger']?.['error'](_0xf0600a(0x127),{'command':_0x2aa1de,'error':_0x2b9cf1['message']});}this['isRunning']&&this['rl']['prompt']();}async['processInput'](_0x31ed79){const _0x5b4ed2=a0_0x2021;if(_0x31ed79['startsWith']('/')){const _0x9ec211=_0x31ed79['slice'](0x1)['split']('\x20'),_0x21c866=_0x9ec211[0x0]['toLowerCase'](),_0x187952=_0x9ec211['slice'](0x1);if(this[_0x5b4ed2(0x103)][_0x21c866]){await this['commands'][_0x21c866](_0x187952);return;}else{console[_0x5b4ed2(0xcb)]('❌\x20Unknown\x20command:\x20/'+_0x21c866),console['log']('Type\x20/help\x20for\x20available\x20commands');return;}}if(!this[_0x5b4ed2(0xd4)]){console['log'](_0x5b4ed2(0x120));return;}await this[_0x5b4ed2(0xc7)](_0x31ed79);}async[a0_0x429d25(0xc7)](_0x1272ba){const _0x56421c=a0_0x429d25;console[_0x56421c(0xcb)](_0x56421c(0x11c));try{const _0x13496c={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0x56421c(0xc1)],'action':ORCHESTRATOR_ACTIONS['SEND_MESSAGE'],'payload':{'agentId':this['currentAgent']['id'],'message':_0x1272ba,'mode':'chat'},'projectDir':process['cwd']()},_0x2d485a=await this['orchestrator'][_0x56421c(0xce)](_0x13496c);if(_0x2d485a['success']){console['log'](_0x56421c(0xcf)),console['log'](_0x2d485a['data']['message'][_0x56421c(0xc2)]);if(_0x2d485a['data']['toolResults']&&_0x2d485a['data']['toolResults'][_0x56421c(0x116)]>0x0){console[_0x56421c(0xcb)](_0x56421c(0xc9));for(const _0x45c5b7 of _0x2d485a[_0x56421c(0xb9)][_0x56421c(0x115)]){console[_0x56421c(0xcb)]('\x20\x20'+_0x45c5b7['toolId']+':\x20'+_0x45c5b7[_0x56421c(0xde)]),_0x45c5b7[_0x56421c(0xbe)]&&console['log'](_0x56421c(0xf6)+JSON[_0x56421c(0xd5)](_0x45c5b7[_0x56421c(0xbe)],null,0x2));}}}else console['error']('❌\x20Agent\x20response\x20failed:',_0x2d485a[_0x56421c(0xd9)]);}catch(_0x4974b7){console[_0x56421c(0xd9)](_0x56421c(0xcc),_0x4974b7[_0x56421c(0x10c)]);}}['showWelcome'](){const _0x5f4e75=a0_0x429d25;console['log'](''),console[_0x5f4e75(0xcb)](_0x5f4e75(0xba)),console['log']('\x20\x20\x20Type\x20/help\x20for\x20available\x20commands'),console['log'](_0x5f4e75(0x126)),console['log']('');}async[a0_0x429d25(0xbb)](){const _0x36c17c=a0_0x429d25;console[_0x36c17c(0xcb)](''),console['log']('📚\x20Loxia\x20Autopilot\x20One\x20CLI\x20Commands:'),console['log'](''),console[_0x36c17c(0xcb)](_0x36c17c(0xe7)),console['log']('\x20\x20/status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20system\x20status'),console[_0x36c17c(0xcb)]('\x20\x20/agents\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20List\x20all\x20agents'),console[_0x36c17c(0xcb)](_0x36c17c(0xe4)),console['log']('\x20\x20/switch\x20<agent-id>\x20\x20\x20-\x20Switch\x20to\x20different\x20agent'),console['log'](_0x36c17c(0x106)),console[_0x36c17c(0xcb)](_0x36c17c(0x10b)),console['log'](_0x36c17c(0xf4)),console[_0x36c17c(0xcb)]('\x20\x20/clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Clear\x20screen'),console['log'](_0x36c17c(0xd1)),console[_0x36c17c(0xcb)](''),console[_0x36c17c(0xcb)]('💬\x20Chat\x20with\x20agents:'),console['log'](_0x36c17c(0xe5)),console['log']('\x20\x20\x20Agents\x20can\x20use\x20tools\x20and\x20communicate\x20with\x20other\x20agents'),console[_0x36c17c(0xcb)]('');}async[a0_0x429d25(0x10d)](){const _0x5b27c9=a0_0x429d25;try{const _0x490476={'interface':INTERFACE_TYPES[_0x5b27c9(0x11e)],'sessionId':this[_0x5b27c9(0xc1)],'action':ORCHESTRATOR_ACTIONS['GET_SESSION_STATE'],'payload':{},'projectDir':process['cwd']()},_0x3952c6=await this['orchestrator']['processRequest'](_0x490476);if(_0x3952c6['success']){const _0x317c57=_0x3952c6['data'];console['log'](''),console[_0x5b27c9(0xcb)]('📊\x20System\x20Status:'),console['log'](_0x5b27c9(0xef)+_0x317c57[_0x5b27c9(0xc1)]),console['log']('\x20\x20\x20Project:\x20'+_0x317c57[_0x5b27c9(0xb8)]),console[_0x5b27c9(0xcb)](_0x5b27c9(0x124)+_0x317c57['agents']['length']),console['log']('\x20\x20\x20Current\x20Agent:\x20'+(this[_0x5b27c9(0xd4)]?this[_0x5b27c9(0xd4)]['name']:_0x5b27c9(0x121))),console['log']('');if(_0x317c57[_0x5b27c9(0xe1)]['length']>0x0){console['log']('🤖\x20Active\x20Agents:');for(const _0xa7b73d of _0x317c57[_0x5b27c9(0xe1)]){const _0x29a5bb=_0xa7b73d[_0x5b27c9(0xf1)]?_0xa7b73d['status']+'\x20(until\x20'+_0xa7b73d['pausedUntil']+')':_0xa7b73d['status'];console[_0x5b27c9(0xcb)]('\x20\x20\x20'+_0xa7b73d['id']+':\x20'+_0xa7b73d['name']+'\x20('+_0x29a5bb+')');}console['log']('');}}else console['error'](_0x5b27c9(0xc0),_0x3952c6['error']);}catch(_0x168771){console['error']('❌\x20Status\x20command\x20failed:',_0x168771['message']);}}async['listAgents'](){const _0x3515fb=a0_0x429d25;try{const _0x186a6b={'interface':INTERFACE_TYPES[_0x3515fb(0x11e)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['LIST_AGENTS'],'payload':{},'projectDir':process['cwd']()},_0x1a3d19=await this['orchestrator']['processRequest'](_0x186a6b);if(_0x1a3d19['success']){const _0xbd3b15=_0x1a3d19[_0x3515fb(0xb9)];console['log']('');if(_0xbd3b15['length']===0x0)console[_0x3515fb(0xcb)](_0x3515fb(0xe0)),console['log'](_0x3515fb(0x108));else{console[_0x3515fb(0xcb)](_0x3515fb(0x11a));for(const _0x12ae55 of _0xbd3b15){const _0x527795=this[_0x3515fb(0xd4)]&&this['currentAgent']['id']===_0x12ae55['id']?'\x20(current)':'',_0x5550dc=_0x12ae55[_0x3515fb(0xf1)]?_0x12ae55[_0x3515fb(0xde)]+_0x3515fb(0xee)+_0x12ae55['pausedUntil']+')':_0x12ae55['status'];console[_0x3515fb(0xcb)](_0x3515fb(0x101)+_0x12ae55['id']+':\x20'+_0x12ae55['name']+_0x527795),console['log'](_0x3515fb(0xbc)+_0x5550dc),console['log']('\x20\x20\x20\x20\x20Model:\x20'+_0x12ae55['currentModel']),console[_0x3515fb(0xcb)]('\x20\x20\x20\x20\x20Messages:\x20'+_0x12ae55['messageCount']),console['log']('');}}}else console[_0x3515fb(0xd9)](_0x3515fb(0x11f),_0x1a3d19[_0x3515fb(0xd9)]);}catch(_0x5a27fd){console['error']('❌\x20List\x20agents\x20command\x20failed:',_0x5a27fd['message']);}}async[a0_0x429d25(0xd8)](_0x3773d8){const _0x17837d=a0_0x429d25;if(_0x3773d8['length']===0x0){console['log'](_0x17837d(0xdf));return;}const _0x2a592b=_0x3773d8[0x0],_0x2ba807=_0x3773d8[0x1]||_0x17837d(0xfa);console[_0x17837d(0xcb)]('🔨\x20Creating\x20agent\x20\x22'+_0x2a592b+'\x22\x20with\x20model\x20'+_0x2ba807+'...');try{const _0x51aafa={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['CREATE_AGENT'],'payload':{'name':_0x2a592b,'systemPrompt':_0x17837d(0xc4)+_0x2a592b+',\x20an\x20AI\x20assistant\x20created\x20in\x20the\x20Loxia\x20Autopilot\x20One\x20system.\x20You\x20can\x20help\x20with\x20coding,\x20analysis,\x20and\x20various\x20tasks\x20using\x20the\x20available\x20tools.','model':_0x2ba807,'capabilities':[_0x17837d(0xf2),_0x17837d(0xf3),_0x17837d(0xd2),_0x17837d(0xc8)]},'projectDir':process['cwd']()},_0x4bde32=await this[_0x17837d(0x105)]['processRequest'](_0x51aafa);if(_0x4bde32['success']){const _0x1fc687=_0x4bde32['data'];this['currentAgent']=_0x1fc687,console[_0x17837d(0xcb)]('✅\x20Agent\x20created\x20successfully!'),console['log']('\x20\x20\x20ID:\x20'+_0x1fc687['id']),console['log'](_0x17837d(0xdb)+_0x1fc687['name']),console['log']('\x20\x20\x20Model:\x20'+_0x1fc687['preferredModel']),console['log'](_0x17837d(0xe3)),this['rl']['setPrompt'](this[_0x17837d(0xd3)]());}else console[_0x17837d(0xd9)](_0x17837d(0xfd),_0x4bde32['error']);}catch(_0x26e707){console['error']('❌\x20Create\x20agent\x20command\x20failed:',_0x26e707[_0x17837d(0x10c)]);}}async['switchAgent'](_0x9934cc){const _0x63dd7f=a0_0x429d25;if(_0x9934cc['length']===0x0){console[_0x63dd7f(0xcb)]('❌\x20Usage:\x20/switch\x20<agent-id>');return;}const _0x1c3e51=_0x9934cc[0x0];try{const _0x404a04={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['GET_AGENT_STATUS'],'payload':{'agentId':_0x1c3e51},'projectDir':process['cwd']()},_0x389e9c=await this[_0x63dd7f(0x105)]['processRequest'](_0x404a04);_0x389e9c['success']?(this[_0x63dd7f(0xd4)]=_0x389e9c[_0x63dd7f(0xb9)],console['log']('✅\x20Switched\x20to\x20agent:\x20'+this['currentAgent']['name']+'\x20('+this['currentAgent']['id']+')'),this['rl'][_0x63dd7f(0xeb)](this[_0x63dd7f(0xd3)]())):console['error'](_0x63dd7f(0x11b),_0x389e9c['error']);}catch(_0x4ec1a0){console[_0x63dd7f(0xd9)](_0x63dd7f(0x117),_0x4ec1a0['message']);}}async['pauseAgent'](_0x2909b9){const _0x4d1389=a0_0x429d25;if(_0x2909b9['length']===0x0){console['log']('❌\x20Usage:\x20/pause\x20<agent-id>\x20[duration]\x20[reason]');return;}const _0x3993cd=_0x2909b9[0x0],_0x548f61=parseInt(_0x2909b9[0x1])||0x3c,_0x215b7a=_0x2909b9[_0x4d1389(0x111)](0x2)[_0x4d1389(0x112)]('\x20')||'Manual pause from CLI';try{const _0x5f5a57={'interface':INTERFACE_TYPES[_0x4d1389(0x11e)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['PAUSE_AGENT'],'payload':{'agentId':_0x3993cd,'duration':_0x548f61,'reason':_0x215b7a},'projectDir':process[_0x4d1389(0x113)]()},_0x39e443=await this['orchestrator'][_0x4d1389(0xce)](_0x5f5a57);_0x39e443['success']?(console['log']('✅\x20Agent\x20paused\x20for\x20'+_0x548f61+_0x4d1389(0xc5)),console[_0x4d1389(0xcb)]('\x20\x20\x20Reason:\x20'+_0x215b7a)):console['error'](_0x4d1389(0xd0),_0x39e443['error']);}catch(_0x1d3e47){console['error'](_0x4d1389(0x11d),_0x1d3e47[_0x4d1389(0x10c)]);}}async[a0_0x429d25(0x128)](_0x3b8e5d){const _0xcbf79d=a0_0x429d25;if(_0x3b8e5d[_0xcbf79d(0x116)]===0x0){console[_0xcbf79d(0xcb)](_0xcbf79d(0xea));return;}const _0x29a2f6=_0x3b8e5d[0x0];try{const _0x2975bb={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0xcbf79d(0xd7)],'payload':{'agentId':_0x29a2f6},'projectDir':process[_0xcbf79d(0x113)]()},_0x19bec2=await this[_0xcbf79d(0x105)][_0xcbf79d(0xce)](_0x2975bb);_0x19bec2[_0xcbf79d(0xed)]?console[_0xcbf79d(0xcb)]('✅\x20Agent\x20resumed\x20successfully'):console[_0xcbf79d(0xd9)]('❌\x20Failed\x20to\x20resume\x20agent:',_0x19bec2['error']);}catch(_0x1600f0){console[_0xcbf79d(0xd9)]('❌\x20Resume\x20agent\x20command\x20failed:',_0x1600f0['message']);}}async['showHistory'](){const _0xbdd766=a0_0x429d25;console[_0xbdd766(0xcb)](''),console['log'](_0xbdd766(0x125));if(this['commandHistory']['length']===0x0)console[_0xbdd766(0xcb)]('\x20\x20\x20No\x20commands\x20executed\x20yet');else{const _0x58111a=this[_0xbdd766(0xcd)]['slice'](-0xa);for(let _0x405904=0x0;_0x405904<_0x58111a['length'];_0x405904++){const _0x956f90=_0x58111a[_0x405904],_0x6e759=new Date(_0x956f90[_0xbdd766(0xfb)])['toLocaleTimeString']();console[_0xbdd766(0xcb)](_0xbdd766(0x101)+(_0x405904+0x1)+'.\x20['+_0x6e759+']\x20'+_0x956f90[_0xbdd766(0x110)]);}this[_0xbdd766(0xcd)]['length']>0xa&&console['log']('\x20\x20\x20...\x20and\x20'+(this[_0xbdd766(0xcd)]['length']-0xa)+_0xbdd766(0xd6));}console['log']('');}async[a0_0x429d25(0x104)](){const _0x48c1b1=a0_0x429d25;console[_0x48c1b1(0xe9)](),this[_0x48c1b1(0xbf)]();}async['exit'](){const _0x4acaa6=a0_0x429d25;this['isRunning']&&(console['log'](_0x4acaa6(0x107)),this[_0x4acaa6(0xf0)]=![],this['rl']&&this['rl']['close']());}['getPrompt'](){const _0x2966b6=a0_0x429d25,_0x3da8b7=this[_0x2966b6(0xd4)]?this['currentAgent']['name']:_0x2966b6(0x123);return _0x2966b6(0xe8)+_0x3da8b7+'>\x20';}async[a0_0x429d25(0x109)](){await this['exit']();}}export default CLIInterface;
1
+ const a0_0x9d7dfb=a0_0x4c01;(function(_0x8d2deb,_0x5df099){const _0x264e39=a0_0x4c01,_0x56b75f=_0x8d2deb();while(!![]){try{const _0x4b41da=-parseInt(_0x264e39(0x168))/0x1+-parseInt(_0x264e39(0x14c))/0x2*(parseInt(_0x264e39(0x15d))/0x3)+-parseInt(_0x264e39(0x143))/0x4+-parseInt(_0x264e39(0x161))/0x5+parseInt(_0x264e39(0x13b))/0x6*(-parseInt(_0x264e39(0x108))/0x7)+-parseInt(_0x264e39(0x132))/0x8+parseInt(_0x264e39(0x176))/0x9*(parseInt(_0x264e39(0x13f))/0xa);if(_0x4b41da===_0x5df099)break;else _0x56b75f['push'](_0x56b75f['shift']());}catch(_0x46c070){_0x56b75f['push'](_0x56b75f['shift']());}}}(a0_0x1f9d,0xbfa48));import a0_0x340e37 from'readline';function a0_0x4c01(_0x47f101,_0x2ce14d){_0x47f101=_0x47f101-0x104;const _0x1f9dfe=a0_0x1f9d();let _0x4c01fe=_0x1f9dfe[_0x47f101];if(a0_0x4c01['cRnxiD']===undefined){var _0x1e7a6b=function(_0x2f17a3){const _0x48eff8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x340e37='',_0x59d712='';for(let _0xae2588=0x0,_0x2fbf67,_0x490b3c,_0x2e4cc4=0x0;_0x490b3c=_0x2f17a3['charAt'](_0x2e4cc4++);~_0x490b3c&&(_0x2fbf67=_0xae2588%0x4?_0x2fbf67*0x40+_0x490b3c:_0x490b3c,_0xae2588++%0x4)?_0x340e37+=String['fromCharCode'](0xff&_0x2fbf67>>(-0x2*_0xae2588&0x6)):0x0){_0x490b3c=_0x48eff8['indexOf'](_0x490b3c);}for(let _0x3937b2=0x0,_0x456b58=_0x340e37['length'];_0x3937b2<_0x456b58;_0x3937b2++){_0x59d712+='%'+('00'+_0x340e37['charCodeAt'](_0x3937b2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x59d712);};a0_0x4c01['DPnxST']=_0x1e7a6b,a0_0x4c01['WamOha']={},a0_0x4c01['cRnxiD']=!![];}const _0x4745e8=_0x1f9dfe[0x0],_0x2cd705=_0x47f101+_0x4745e8,_0x5e99fe=a0_0x4c01['WamOha'][_0x2cd705];return!_0x5e99fe?(_0x4c01fe=a0_0x4c01['DPnxST'](_0x4c01fe),a0_0x4c01['WamOha'][_0x2cd705]=_0x4c01fe):_0x4c01fe=_0x5e99fe,_0x4c01fe;}function a0_0x1f9d(){const _0x415919=['4P2mieXPC3qGywDLBNrZignVBw1HBMqGzMfPBgvKoG','4P2mifvZywDLoIaVy3jLyxrLidXHz2vUDc1Uyw1LpIbBBw9KzwXD','8j+tMIbmB3HPysbbDxrVCgLSB3qGt25LienmssbdB21Tyw5KCZO','icHJDxjYzw50kq','BgvUz3rO','icH1BNrPBca','y29UzMLN','BgLZDefNzw50CW','q0Xj','u0Lhsu5u','y2XPlq','ChjLzMvYCMvKtw9KzwW','mJuYzg1lDeTJ','C3rHDhvZ','zxHPDa','icaGqwDLBNrZignHBIb1C2uGDg9VBhmGyw5KignVBw11BMLJyxrLihDPDgGGB3rOzxiGywDLBNrZ','z2v0uhjVBxb0','icaVC3rHDhvZicaGicaGicaGicaGicaTifnOB3CGC3LZDgvTihn0yxr1CW','yw50AhjVCgLJlxnVBM5LDa','yMLUza','icaVC3DPDgnOidXHz2vUDc1Pzd4GicaTifn3AxrJAcb0BYbKAwzMzxjLBNqGywDLBNq','y29TBwfUzhm','4P2mifvZywDLoIaVC3DPDgnOidXHz2vUDc1Pzd4','lI4U','CMvZDwX0','zgf0yq','odq5nJmYAvnsvKzx','8j+KLIbby3rPDMuGqwDLBNrZoG','ChvZAa','cIHuBYbLEgL0lcb0ExbLicjLEgL0iIbVCIbWCMvZCYbdDhjSk0mGywDHAw4P','icaG','y3DK','cVcFLkCGvg9VBcbLEgvJDxrPB24GCMvZDwX0CZO','B3jJAgvZDhjHDg9Y','ig1VCMuGy29TBwfUzhm','icaGlI4UigfUzca','4PYfiefNzw50ignYzwf0zwqGC3vJy2vZC2z1BgX5iq','icaVCMvZDw1LidXHz2vUDc1Pzd4GicaTifjLC3vTzsbHihbHDxnLzcbHz2vUDa','AxnsDw5UAw5N','u0vorf9nrvntquDf','Bg9Nz2vY','icaGifjLC3vSDdOG','AxnqyxvZzwq','C2HVD1n0yxr1CW','Bg94Awe6','lcbHBIbbssbHC3nPC3rHBNqGy3jLyxrLzcbPBIb0AguGtg94AweGqxv0B3bPBg90ie9UzsbZExn0zw0UifLVDsbJyw4GAgvSCcb3AxrOignVzgLUzYWGyw5HBhLZAxmSigfUzcb2yxjPB3vZihrHC2TZihvZAw5NihrOzsbHDMfPBgfIBguGDg9VBhmU','C2HVD1DLBgnVBwu','4P2miezHAwXLzcb0BYbJCMvHDguGywDLBNq6','Cgf1C2vbz2vUDa','C2v0uhjVBxb0','4P2mievYCM9YoG','icaGu3DPDgnOzwqGDg8GDgHPCYbHz2vUDcbHDxrVBwf0AwnHBgX5','Bg9N','AgfUzgXLsw5WDxq','icaVy2XLyxiGicaGicaGicaGicaGicaTienSzwfYihnJCMvLBG','Dg9VBfjLC3vSDhm','AgLZDg9YEvnPEMu','4P2miezHAwXLzcb0BYbWyxvZzsbHz2vUDdO','y3vYCMvUDefNzw50','icaGu2LTCgX5ihr5CguGEw91CIbTzxnZywDLihrVihnLBMqGAxqGDg8GDgHLign1CNjLBNqGywDLBNq','zxjYB3i','icaVy3jLyxrLidXUyw1LpIaGicaGicaTienYzwf0zsbHig5LDYbHz2vUDa','C2XPy2u','icaGsuq6ia','8j+KLIbbDMfPBgfIBguGqwDLBNrZoG','icaGqwDLBNrZoIa','uefvu0vFquDftLq','ChjVy2vZC1jLCxvLC3q','mZiWnteYsKzky2LT','C3DPDgnOqwDLBNq','C2HVD0HPC3rVCNK','ww91igfYzsa','icaGtMfTztOG','BMfTzq','C2HPzNq','vhLWzsaVAgvSCcbMB3iGyxzHAwXHyMXLignVBw1HBMrZ','y3vYCMvUDe1VzgvS','nKjjDePytW','ChjVBxb0','Dg9mB3DLCKnHC2u','y2XLyxjty3jLzw4','mtm3nJKZmgPXyMTnAG','r0vux0fhru5ux1nuqvrvuW','C2HVD0HLBha','y29TBwfUzeHPC3rVCNK','nde5mZu0ohPHwwvWDW','8j+tPcbtzw5KAw5NihrVigfNzw50lI4U','8j+tNcbdB21Tyw5KieHPC3rVCNK6','DgvYBwLUywW','icaVywDLBNrZicaGicaGicaGicaGicaTieXPC3qGywXSigfNzw50CW','icaVzxHPDcbVCIaVCxvPDcaGicaGicaTiev4AxqGDgHLienmsq','8j+tRsboBYbHz2vUDhmGy3jLyxrLzcb5zxq','y29UDgvUDa','C3rKB3v0','mMLjChrusG','icaGicbtDgf0Dxm6ia','ihnLy29Uzhm','CMvZDw1LqwDLBNq','BwvZC2fNzq','C2vUze1LC3nHz2vuB0fNzw50','DhjPBq','icaGvhLWzsaVAgvSCcbMB3iGyxzHAwXHyMXLignVBw1HBMrZ','icaGtM8Gy29TBwfUzhmGzxHLy3v0zwqGEwv0','4P2miezHAwXLzcb0BYbNzxqGC3rHDhvZoG','ChjVy2vZC0LUChv0','C2vZC2LVBKLK','icaVAgvSCcaGicaGicaGicaGicaGicaGlsbtAg93ihrOAxmGAgvSCcbTzxnZywDL','iIb3AxrOig1VzgvSia','uKvtvu1fx0fhru5u','icaGtw9KzwW6ia','4PYfifn3AxrJAgvKihrVigfNzw50oIa','nZmWndaXCvrIDM1c','y29TBwfUza','y3jLyxrLqwDLBNq','tM9Uzq','mZm1mduWnvnAsLnTyq','4P2mifvUA25VD24Gy29TBwfUzdOGlW','4P2miezHAwXLzcb0BYbZzw5Kig1LC3nHz2u6','BwvZC2fNzunVDw50','lIbB','4P2miezHAwXLzcb0BYbZD2L0y2GGywDLBNq6','8j+sOsboBYbHz2vUDcbZzwXLy3rLzc4Gq3jLyxrLigfUigfNzw50igzPCNn0ihDPDgG6ic9JCMvHDguGpgfNzw50lw5HBwu+','otq3mdqXv2fvAfD5','C3vJy2vZCW'];a0_0x1f9d=function(){return _0x415919;};return a0_0x1f9d();}import{INTERFACE_TYPES,ORCHESTRATOR_ACTIONS}from'../utilities/constants.js';class CLIInterface{constructor(_0x59d712,_0xae2588,_0x2fbf67={}){const _0x4c230f=a0_0x4c01;this[_0x4c230f(0x10f)]=_0x59d712,this['logger']=_0xae2588,this[_0x4c230f(0x170)]=_0x2fbf67,this['rl']=null,this['sessionId']=_0x4c230f(0x174)+Date['now'](),this[_0x4c230f(0x128)]=null,this[_0x4c230f(0x114)]=![],this[_0x4c230f(0x126)]=_0x2fbf67['historySize']||0x3e8,this['commandHistory']=[],this['commands']={'help':this[_0x4c230f(0x141)][_0x4c230f(0x17d)](this),'exit':this[_0x4c230f(0x178)]['bind'](this),'quit':this['exit'][_0x4c230f(0x17d)](this),'status':this['showStatus']['bind'](this),'agents':this[_0x4c230f(0x171)]['bind'](this),'create':this['createAgent'][_0x4c230f(0x17d)](this),'switch':this['switchAgent'][_0x4c230f(0x17d)](this),'pause':this[_0x4c230f(0x11e)]['bind'](this),'resume':this[_0x4c230f(0x14f)]['bind'](this),'clear':this[_0x4c230f(0x13e)]['bind'](this),'history':this['showHistory']['bind'](this)};}async['initialize'](){const _0x1ff637=a0_0x4c01;this['rl']=a0_0x340e37['createInterface']({'input':process['stdin'],'output':process[_0x1ff637(0x14b)],'prompt':this['getPrompt'](),'historySize':this[_0x1ff637(0x126)]}),this['rl']['on']('line',this[_0x1ff637(0x123)][_0x1ff637(0x17d)](this)),this['rl']['on']('close',this['exit']['bind'](this)),this['rl']['on'](_0x1ff637(0x173),()=>{const _0x547fa5=_0x1ff637;console[_0x547fa5(0x122)](_0x547fa5(0x10b)),this['rl'][_0x547fa5(0x13c)]();}),this['isRunning']=!![],this['showWelcome'](),this['rl'][_0x1ff637(0x13c)]();}async[a0_0x9d7dfb(0x123)](_0x490b3c){const _0x18160c=a0_0x9d7dfb,_0x2e4cc4=_0x490b3c[_0x18160c(0x152)]();if(_0x2e4cc4['length']===0x0){this['rl']['prompt']();return;}this['commandHistory'][_0x18160c(0x10a)]({'command':_0x2e4cc4,'timestamp':new Date()['toISOString']()});this['commandHistory']['length']>this['historySize']&&this[_0x18160c(0x142)][_0x18160c(0x138)]();try{await this[_0x18160c(0x156)](_0x2e4cc4);}catch(_0x3937b2){console['error'](_0x18160c(0x120),_0x3937b2['message']),this[_0x18160c(0x116)]?.['error']('CLI\x20command\x20error',{'command':_0x2e4cc4,'error':_0x3937b2['message']});}this['isRunning']&&this['rl'][_0x18160c(0x13c)]();}async['processInput'](_0x456b58){const _0x291fe4=a0_0x9d7dfb;if(_0x456b58['startsWith']('/')){const _0x3c7124=_0x456b58['slice'](0x1)['split']('\x20'),_0x11d85a=_0x3c7124[0x0][_0x291fe4(0x13d)](),_0x313798=_0x3c7124[_0x291fe4(0x12c)](0x1);if(this[_0x291fe4(0x17f)][_0x11d85a]){await this['commands'][_0x11d85a](_0x313798);return;}else{console[_0x291fe4(0x122)](_0x291fe4(0x162)+_0x11d85a),console['log'](_0x291fe4(0x139));return;}}if(!this[_0x291fe4(0x128)]){console['log'](_0x291fe4(0x167));return;}await this['sendMessageToAgent'](_0x456b58);}async[a0_0x9d7dfb(0x151)](_0x3c7ee3){const _0x2c0d45=a0_0x9d7dfb;console['log'](_0x2c0d45(0x144));try{const _0x31aa79={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x2c0d45(0x115)],'payload':{'agentId':this['currentAgent']['id'],'message':_0x3c7ee3,'mode':'chat'},'projectDir':process[_0x2c0d45(0x10d)]()},_0x26f129=await this[_0x2c0d45(0x10f)][_0x2c0d45(0x131)](_0x31aa79);if(_0x26f129[_0x2c0d45(0x169)]){console[_0x2c0d45(0x122)]('🤖\x20Agent\x20response:'),console[_0x2c0d45(0x122)](_0x26f129['data'][_0x2c0d45(0x150)][_0x2c0d45(0x14a)]);if(_0x26f129[_0x2c0d45(0x107)][_0x2c0d45(0x125)]&&_0x26f129['data'][_0x2c0d45(0x125)]['length']>0x0){console['log'](_0x2c0d45(0x10e));for(const _0x55c3ec of _0x26f129[_0x2c0d45(0x107)]['toolResults']){console[_0x2c0d45(0x122)]('\x20\x20'+_0x55c3ec['toolId']+':\x20'+_0x55c3ec['status']),_0x55c3ec['result']&&console['log'](_0x2c0d45(0x117)+JSON['stringify'](_0x55c3ec[_0x2c0d45(0x106)],null,0x2));}}}else console[_0x2c0d45(0x12a)]('❌\x20Agent\x20response\x20failed:',_0x26f129[_0x2c0d45(0x12a)]);}catch(_0x2e22a1){console['error'](_0x2c0d45(0x163),_0x2e22a1['message']);}}[a0_0x9d7dfb(0x11c)](){const _0x2506fd=a0_0x9d7dfb;console['log'](''),console[_0x2506fd(0x122)]('🎯\x20Welcome\x20to\x20Loxia\x20Autopilot\x20One\x20CLI'),console[_0x2506fd(0x122)](_0x2506fd(0x153)),console['log']('\x20\x20\x20Type\x20/create\x20<name>\x20to\x20create\x20your\x20first\x20agent'),console['log']('');}async['showHelp'](){const _0x18e032=a0_0x9d7dfb;console[_0x18e032(0x122)](''),console['log'](_0x18e032(0x16c)),console['log'](''),console[_0x18e032(0x122)](_0x18e032(0x158)),console[_0x18e032(0x122)](_0x18e032(0x17b)),console['log'](_0x18e032(0x147)),console[_0x18e032(0x122)](_0x18e032(0x12b)),console['log'](_0x18e032(0x17e)),console[_0x18e032(0x122)]('\x20\x20/pause\x20<agent-id>\x20\x20\x20\x20-\x20Pause\x20an\x20agent'),console[_0x18e032(0x122)](_0x18e032(0x113)),console['log']('\x20\x20/history\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20command\x20history'),console[_0x18e032(0x122)](_0x18e032(0x124)),console[_0x18e032(0x122)](_0x18e032(0x148)),console['log'](''),console[_0x18e032(0x122)]('💬\x20Chat\x20with\x20agents:'),console['log'](_0x18e032(0x129)),console['log'](_0x18e032(0x179)),console[_0x18e032(0x122)]('');}async[a0_0x9d7dfb(0x119)](){const _0x224b34=a0_0x9d7dfb;try{const _0x3e2cb3={'interface':INTERFACE_TYPES[_0x224b34(0x172)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['GET_SESSION_STATE'],'payload':{},'projectDir':process[_0x224b34(0x10d)]()},_0x19eac8=await this[_0x224b34(0x10f)]['processRequest'](_0x3e2cb3);if(_0x19eac8['success']){const _0x5662a6=_0x19eac8[_0x224b34(0x107)];console[_0x224b34(0x122)](''),console['log']('📊\x20System\x20Status:'),console['log']('\x20\x20\x20Session\x20ID:\x20'+_0x5662a6[_0x224b34(0x157)]),console[_0x224b34(0x122)]('\x20\x20\x20Project:\x20'+_0x5662a6['projectDir']),console[_0x224b34(0x122)](_0x224b34(0x12f)+_0x5662a6['agents'][_0x224b34(0x16e)]),console['log']('\x20\x20\x20Current\x20Agent:\x20'+(this[_0x224b34(0x128)]?this[_0x224b34(0x128)]['name']:_0x224b34(0x160))),console[_0x224b34(0x122)]('');if(_0x5662a6['agents']['length']>0x0){console[_0x224b34(0x122)](_0x224b34(0x109));for(const _0x5ab415 of _0x5662a6['agents']){const _0x11ede7=_0x5ab415[_0x224b34(0x118)]?_0x5ab415['status']+'\x20(until\x20'+_0x5ab415['pausedUntil']+')':_0x5ab415[_0x224b34(0x177)];console[_0x224b34(0x122)]('\x20\x20\x20'+_0x5ab415['id']+':\x20'+_0x5ab415[_0x224b34(0x137)]+'\x20('+_0x11ede7+')');}console[_0x224b34(0x122)]('');}}else console[_0x224b34(0x12a)](_0x224b34(0x155),_0x19eac8[_0x224b34(0x12a)]);}catch(_0x4df5ab){console['error']('❌\x20Status\x20command\x20failed:',_0x4df5ab[_0x224b34(0x150)]);}}async[a0_0x9d7dfb(0x171)](){const _0x272afd=a0_0x9d7dfb;try{const _0x2c058d={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0x272afd(0x157)],'action':ORCHESTRATOR_ACTIONS['LIST_AGENTS'],'payload':{},'projectDir':process['cwd']()},_0xfddc2d=await this['orchestrator']['processRequest'](_0x2c058d);if(_0xfddc2d['success']){const _0xf38e60=_0xfddc2d[_0x272afd(0x107)];console[_0x272afd(0x122)]('');if(_0xf38e60['length']===0x0)console[_0x272afd(0x122)](_0x272afd(0x149)),console[_0x272afd(0x122)]('\x20\x20\x20Use\x20/create\x20<name>\x20to\x20create\x20your\x20first\x20agent');else{console[_0x272afd(0x122)](_0x272afd(0x12e));for(const _0x307900 of _0xf38e60){const _0x12847d=this[_0x272afd(0x128)]&&this[_0x272afd(0x128)]['id']===_0x307900['id']?_0x272afd(0x16d):'',_0xf9b271=_0x307900['isPaused']?_0x307900['status']+_0x272afd(0x16f)+_0x307900['pausedUntil']+')':_0x307900['status'];console[_0x272afd(0x122)](_0x272afd(0x10c)+_0x307900['id']+':\x20'+_0x307900['name']+_0x12847d),console[_0x272afd(0x122)](_0x272afd(0x14d)+_0xf9b271),console['log']('\x20\x20\x20\x20\x20Model:\x20'+_0x307900[_0x272afd(0x13a)]),console['log']('\x20\x20\x20\x20\x20Messages:\x20'+_0x307900[_0x272afd(0x164)]),console[_0x272afd(0x122)]('');}}}else console[_0x272afd(0x12a)]('❌\x20Failed\x20to\x20list\x20agents:',_0xfddc2d[_0x272afd(0x12a)]);}catch(_0x53dcb6){console[_0x272afd(0x12a)](_0x272afd(0x16a),_0x53dcb6['message']);}}async[a0_0x9d7dfb(0x15f)](_0x4896e5){const _0xe6ee6a=a0_0x9d7dfb;if(_0x4896e5[_0xe6ee6a(0x16e)]===0x0){console['log'](_0xe6ee6a(0x16b));return;}const _0x2078e3=_0x4896e5[0x0],_0x14f948=_0x4896e5[0x1]||_0xe6ee6a(0x17c);console['log']('🔨\x20Creating\x20agent\x20\x22'+_0x2078e3+_0xe6ee6a(0x159)+_0x14f948+_0xe6ee6a(0x105));try{const _0x191f6b={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0xe6ee6a(0x157)],'action':ORCHESTRATOR_ACTIONS['CREATE_AGENT'],'payload':{'name':_0x2078e3,'systemPrompt':_0xe6ee6a(0x135)+_0x2078e3+_0xe6ee6a(0x11b),'model':_0x14f948,'capabilities':[_0xe6ee6a(0x146),'filesystem','agentdelay','browser']},'projectDir':process['cwd']()},_0x2e1845=await this['orchestrator']['processRequest'](_0x191f6b);if(_0x2e1845['success']){const _0x33e600=_0x2e1845[_0xe6ee6a(0x107)];this['currentAgent']=_0x33e600,console['log'](_0xe6ee6a(0x112)),console['log'](_0xe6ee6a(0x12d)+_0x33e600['id']),console['log'](_0xe6ee6a(0x136)+_0x33e600[_0xe6ee6a(0x137)]),console['log'](_0xe6ee6a(0x15b)+_0x33e600[_0xe6ee6a(0x175)]),console[_0xe6ee6a(0x122)](_0xe6ee6a(0x121)),this['rl']['setPrompt'](this[_0xe6ee6a(0x17a)]());}else console[_0xe6ee6a(0x12a)](_0xe6ee6a(0x11d),_0x2e1845['error']);}catch(_0x3a4fda){console[_0xe6ee6a(0x12a)]('❌\x20Create\x20agent\x20command\x20failed:',_0x3a4fda[_0xe6ee6a(0x150)]);}}async[a0_0x9d7dfb(0x133)](_0x354492){const _0x376c2d=a0_0x9d7dfb;if(_0x354492['length']===0x0){console[_0x376c2d(0x122)](_0x376c2d(0x104));return;}const _0x284d4a=_0x354492[0x0];try{const _0x2ff509={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x376c2d(0x140)],'payload':{'agentId':_0x284d4a},'projectDir':process[_0x376c2d(0x10d)]()},_0x127bed=await this['orchestrator'][_0x376c2d(0x131)](_0x2ff509);_0x127bed['success']?(this[_0x376c2d(0x128)]=_0x127bed['data'],console[_0x376c2d(0x122)](_0x376c2d(0x15c)+this[_0x376c2d(0x128)]['name']+'\x20('+this['currentAgent']['id']+')'),this['rl'][_0x376c2d(0x11f)](this[_0x376c2d(0x17a)]())):console[_0x376c2d(0x12a)](_0x376c2d(0x166),_0x127bed['error']);}catch(_0x4fdc82){console[_0x376c2d(0x12a)]('❌\x20Switch\x20agent\x20command\x20failed:',_0x4fdc82['message']);}}async['pauseAgent'](_0xe4035e){const _0x3ba456=a0_0x9d7dfb;if(_0xe4035e[_0x3ba456(0x16e)]===0x0){console[_0x3ba456(0x122)]('❌\x20Usage:\x20/pause\x20<agent-id>\x20[duration]\x20[reason]');return;}const _0x131801=_0xe4035e[0x0],_0xb11e6c=parseInt(_0xe4035e[0x1])||0x3c,_0x59c7f6=_0xe4035e[_0x3ba456(0x12c)](0x2)['join']('\x20')||'Manual pause from CLI';try{const _0x1cb744={'interface':INTERFACE_TYPES[_0x3ba456(0x172)],'sessionId':this[_0x3ba456(0x157)],'action':ORCHESTRATOR_ACTIONS[_0x3ba456(0x130)],'payload':{'agentId':_0x131801,'duration':_0xb11e6c,'reason':_0x59c7f6},'projectDir':process['cwd']()},_0x44ad1d=await this[_0x3ba456(0x10f)][_0x3ba456(0x131)](_0x1cb744);_0x44ad1d[_0x3ba456(0x169)]?(console[_0x3ba456(0x122)]('✅\x20Agent\x20paused\x20for\x20'+_0xb11e6c+_0x3ba456(0x14e)),console[_0x3ba456(0x122)]('\x20\x20\x20Reason:\x20'+_0x59c7f6)):console['error'](_0x3ba456(0x127),_0x44ad1d[_0x3ba456(0x12a)]);}catch(_0x12ebd3){console[_0x3ba456(0x12a)]('❌\x20Pause\x20agent\x20command\x20failed:',_0x12ebd3['message']);}}async[a0_0x9d7dfb(0x14f)](_0x313068){const _0x331140=a0_0x9d7dfb;if(_0x313068['length']===0x0){console['log']('❌\x20Usage:\x20/resume\x20<agent-id>');return;}const _0x28c934=_0x313068[0x0];try{const _0x14b75a={'interface':INTERFACE_TYPES[_0x331140(0x172)],'sessionId':this[_0x331140(0x157)],'action':ORCHESTRATOR_ACTIONS[_0x331140(0x15a)],'payload':{'agentId':_0x28c934},'projectDir':process['cwd']()},_0x48487c=await this['orchestrator']['processRequest'](_0x14b75a);_0x48487c[_0x331140(0x169)]?console[_0x331140(0x122)]('✅\x20Agent\x20resumed\x20successfully'):console['error']('❌\x20Failed\x20to\x20resume\x20agent:',_0x48487c['error']);}catch(_0x42a3b0){console[_0x331140(0x12a)]('❌\x20Resume\x20agent\x20command\x20failed:',_0x42a3b0[_0x331140(0x150)]);}}async[a0_0x9d7dfb(0x134)](){const _0x1f3aa0=a0_0x9d7dfb;console['log'](''),console[_0x1f3aa0(0x122)](_0x1f3aa0(0x145));if(this[_0x1f3aa0(0x142)][_0x1f3aa0(0x16e)]===0x0)console[_0x1f3aa0(0x122)](_0x1f3aa0(0x154));else{const _0x36b0f7=this['commandHistory']['slice'](-0xa);for(let _0x4bff6e=0x0;_0x4bff6e<_0x36b0f7['length'];_0x4bff6e++){const _0x354fe5=_0x36b0f7[_0x4bff6e],_0x45fbe0=new Date(_0x354fe5['timestamp'])['toLocaleTimeString']();console['log'](_0x1f3aa0(0x10c)+(_0x4bff6e+0x1)+_0x1f3aa0(0x165)+_0x45fbe0+']\x20'+_0x354fe5[_0x1f3aa0(0x15e)]);}this['commandHistory'][_0x1f3aa0(0x16e)]>0xa&&console['log'](_0x1f3aa0(0x111)+(this['commandHistory']['length']-0xa)+_0x1f3aa0(0x110));}console[_0x1f3aa0(0x122)]('');}async['clearScreen'](){const _0x25e2af=a0_0x9d7dfb;console['clear'](),this[_0x25e2af(0x11c)]();}async['exit'](){this['isRunning']&&(console['log']('\x0a👋\x20Goodbye!'),this['isRunning']=![],this['rl']&&this['rl']['close']());}[a0_0x9d7dfb(0x17a)](){const _0x5c7a1c=a0_0x9d7dfb,_0x59995e=this[_0x5c7a1c(0x128)]?this[_0x5c7a1c(0x128)]['name']:'no-agent';return _0x5c7a1c(0x11a)+_0x59995e+'>\x20';}async['shutdown'](){await this['exit']();}}export default CLIInterface;
@@ -1 +1 @@
1
- const a0_0x1f2cc4=a0_0x2e64;(function(_0x388e25,_0x5dd174){const _0x8bd005=a0_0x2e64,_0xb7a316=_0x388e25();while(!![]){try{const _0x5c5d99=-parseInt(_0x8bd005(0x1f8))/0x1*(-parseInt(_0x8bd005(0x1f5))/0x2)+parseInt(_0x8bd005(0x1e8))/0x3+-parseInt(_0x8bd005(0x200))/0x4*(parseInt(_0x8bd005(0x1f2))/0x5)+-parseInt(_0x8bd005(0x1fd))/0x6*(parseInt(_0x8bd005(0x20e))/0x7)+parseInt(_0x8bd005(0x1e6))/0x8+parseInt(_0x8bd005(0x1f7))/0x9*(-parseInt(_0x8bd005(0x205))/0xa)+parseInt(_0x8bd005(0x1ff))/0xb*(parseInt(_0x8bd005(0x1e7))/0xc);if(_0x5c5d99===_0x5dd174)break;else _0xb7a316['push'](_0xb7a316['shift']());}catch(_0x41bc18){_0xb7a316['push'](_0xb7a316['shift']());}}}(a0_0x51dd,0x527ab));function a0_0x2e64(_0xdd8034,_0x3dc315){_0xdd8034=_0xdd8034-0x1e3;const _0x51dd48=a0_0x51dd();let _0x2e6447=_0x51dd48[_0xdd8034];if(a0_0x2e64['PsrWyJ']===undefined){var _0x306e7a=function(_0x32fa6c){const _0x20177e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1221d8='',_0x2f298a='';for(let _0x3a0969=0x0,_0x4422eb,_0x522ba6,_0x5f5a9e=0x0;_0x522ba6=_0x32fa6c['charAt'](_0x5f5a9e++);~_0x522ba6&&(_0x4422eb=_0x3a0969%0x4?_0x4422eb*0x40+_0x522ba6:_0x522ba6,_0x3a0969++%0x4)?_0x1221d8+=String['fromCharCode'](0xff&_0x4422eb>>(-0x2*_0x3a0969&0x6)):0x0){_0x522ba6=_0x20177e['indexOf'](_0x522ba6);}for(let _0x428fa1=0x0,_0x34eb57=_0x1221d8['length'];_0x428fa1<_0x34eb57;_0x428fa1++){_0x2f298a+='%'+('00'+_0x1221d8['charCodeAt'](_0x428fa1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f298a);};a0_0x2e64['XoXCJQ']=_0x306e7a,a0_0x2e64['GcmWSZ']={},a0_0x2e64['PsrWyJ']=!![];}const _0x5b9dee=_0x51dd48[0x0],_0x2b9095=_0xdd8034+_0x5b9dee,_0x2f9c3b=a0_0x2e64['GcmWSZ'][_0x2b9095];return!_0x2f9c3b?(_0x2e6447=a0_0x2e64['XoXCJQ'](_0x2e6447),a0_0x2e64['GcmWSZ'][_0x2b9095]=_0x2e6447):_0x2e6447=_0x2f9c3b,_0x2e6447;}function a0_0x51dd(){const _0x6720ba=['DxnLsw5WDxq','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDfn3AxrJAgvYlMPZ','odi0nJq2ufHeAhLV','lI4VlI4Vy29TCg9Uzw50CY9izwXWugfUzwWUANm','mJK3CuH3Bfri','mZaWD0DJChDR','BgvUz3rO','lI4VlI4Vy29TCg9Uzw50CY9tzwfYy2Hqyw5LBc5QCW','qwDLBNrdCMvHDg9YigLZigeGzNvUy3rPB24Gy29TCg9Uzw50','qwDLBNrdCMvHDg9Y','nZqZmfPvqu5kyG','lI4VlI4Vy29TCg9Uzw50CY9tzxr0Aw5NC1bHBMvSlMPZ','ugHHC2uGmtaGlsbdB21WB25LBNqGq29UC3rHBNrZigfUzcbdB25MAwD1CMf0Aw9UCW','A2v5CW','u2vHCMnOugfUzwWGAxmGysbMDw5JDgLVBIbJB21WB25LBNq','C2L6zq','qwDLBNrdCMvHDg9YigrLzMLUzxmGC3rLCcbJB25ZDgfUDhm','DxnLu3rHDgu','BwfW','n0z5D3Deuq','ugHHC2uGmtaGlsbbz2vUDenYzwf0B3iGlsbtDhj1y3r1CMu','zNvUy3rPB24','Dg9czq','qwDLBNrtD2L0y2HLCIbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','u2vHCMnOugfUzwW','mJC2otmZnNLNtenYyW','mZm1nJrVAKj2CLC','mteYote3mgTMuKfHsG','vgv4Da','ugHHC2uGmtaGlsbizwXWugfUzwWGlsbtDhj1y3r1CMu','Dg9czurLzMLUzwq','ugHHC2uGmtaGlsbtzxr0Aw5NC1bHBMvSic0Gu3rYDwn0DxjL','u2v0DgLUz3nqyw5LBa','qwDLBNrtD2L0y2HLCG','ugHHC2uGmtaGlsbbz2vUDfn3AxrJAgvYic0Gu3rYDwn0DxjL','ChjVDg90ExbL','ugHHC2uGmtaGlsbjBNrLz3jHDgLVBIb3AxrOieXHEw91Da','mtq1mZbfC0jQyMG','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDenYzwf0B3iUANm','CMvUzgvY','mNjnCvP1Ba','zgvMyxvSDa','nty3ovDsDuDIBG','mZyZotGZq0DxuLb4','Dg9czvvUzgvMAw5Lza','Aw5R'];a0_0x51dd=function(){return _0x6720ba;};return a0_0x51dd();}import{describe,test,expect}from'@jest/globals';describe('Phase\x2010\x20-\x20Advanced\x20Features\x20-\x20Imports',()=>{test('AgentSwitcher component can be imported',async()=>{const _0x3bcc7b=a0_0x2e64,{AgentSwitcher:_0x1221d8}=await import('../../components/AgentSwitcher.js');expect(_0x1221d8)[_0x3bcc7b(0x1eb)](),expect(typeof _0x1221d8)['toBe']('function');},0x7530),test('AgentCreator component can be imported',async()=>{const _0xed0a19=a0_0x2e64,{AgentCreator:_0x2f298a}=await import(_0xed0a19(0x1f3));expect(_0x2f298a)[_0xed0a19(0x1eb)](),expect(typeof _0x2f298a)[_0xed0a19(0x1e3)](_0xed0a19(0x210));}),test('SettingsPanel component can be imported',async()=>{const _0x28501e=a0_0x2e64,{SettingsPanel:_0x3a0969}=await import(_0x28501e(0x206));expect(_0x3a0969)['toBeDefined'](),expect(typeof _0x3a0969)[_0x28501e(0x1e3)]('function');}),test('SearchPanel component can be imported',async()=>{const _0x315c0c=a0_0x2e64,{SearchPanel:_0x4422eb}=await import(_0x315c0c(0x202));expect(_0x4422eb)['toBeDefined'](),expect(typeof _0x4422eb)['toBe'](_0x315c0c(0x210));}),test('HelpPanel component can be imported',async()=>{const {HelpPanel:_0x522ba6}=await import('../../components/HelpPanel.js');expect(_0x522ba6)['toBeDefined'](),expect(typeof _0x522ba6)['toBe']('function');});}),describe(a0_0x1f2cc4(0x1ef),()=>{const _0x1d8236=a0_0x1f2cc4;test(_0x1d8236(0x1e4),async()=>{const _0x848c9d=_0x1d8236,{AgentSwitcher:_0x5f5a9e}=await import(_0x848c9d(0x1fc));expect(typeof _0x5f5a9e)['toBe']('function'),expect(_0x5f5a9e['prototype']?.['render'])[_0x848c9d(0x1f9)]();}),test('AgentSwitcher is default export',async()=>{const _0x424e22=_0x1d8236,module=await import('../../components/AgentSwitcher.js');expect(module['default'])[_0x424e22(0x1eb)](),expect(module['default'])[_0x424e22(0x1e3)](module[_0x424e22(0x1ee)]);});}),describe(a0_0x1f2cc4(0x20f),()=>{const _0x552364=a0_0x1f2cc4;test(_0x552364(0x203),async()=>{const _0x22a74b=_0x552364,{AgentCreator:_0x428fa1}=await import(_0x22a74b(0x1f3));expect(typeof _0x428fa1)[_0x22a74b(0x1e3)]('function'),expect(_0x428fa1['prototype']?.[_0x22a74b(0x1f4)])[_0x22a74b(0x1f9)]();}),test('AgentCreator is default export',async()=>{const _0x14f06f=_0x552364,module=await import(_0x14f06f(0x1f3));expect(module[_0x14f06f(0x1f6)])[_0x14f06f(0x1eb)](),expect(module[_0x14f06f(0x1f6)])[_0x14f06f(0x1e3)](module[_0x14f06f(0x204)]);});}),describe(a0_0x1f2cc4(0x1ec),()=>{test('SettingsPanel\x20is\x20a\x20function\x20component',async()=>{const _0x5b06ec=a0_0x2e64,{SettingsPanel:_0x34eb57}=await import(_0x5b06ec(0x206));expect(typeof _0x34eb57)[_0x5b06ec(0x1e3)](_0x5b06ec(0x210)),expect(_0x34eb57[_0x5b06ec(0x1f0)]?.[_0x5b06ec(0x1f4)])[_0x5b06ec(0x1f9)]();}),test('SettingsPanel is default export',async()=>{const _0x2d5e42=a0_0x2e64,module=await import('../../components/SettingsPanel.js');expect(module['default'])[_0x2d5e42(0x1eb)](),expect(module['default'])[_0x2d5e42(0x1e3)](module['SettingsPanel']);});}),describe('Phase\x2010\x20-\x20SearchPanel\x20-\x20Structure',()=>{const _0x596185=a0_0x1f2cc4;test(_0x596185(0x209),async()=>{const _0x3c4ba4=_0x596185,{SearchPanel:_0x3b1928}=await import(_0x3c4ba4(0x202));expect(typeof _0x3b1928)[_0x3c4ba4(0x1e3)]('function'),expect(_0x3b1928[_0x3c4ba4(0x1f0)]?.[_0x3c4ba4(0x1f4)])[_0x3c4ba4(0x1f9)]();}),test('SearchPanel is default export',async()=>{const _0x2dfad9=_0x596185,module=await import(_0x2dfad9(0x202));expect(module[_0x2dfad9(0x1f6)])[_0x2dfad9(0x1eb)](),expect(module['default'])[_0x2dfad9(0x1e3)](module[_0x2dfad9(0x1e5)]);});}),describe(a0_0x1f2cc4(0x1ea),()=>{test('HelpPanel\x20is\x20a\x20function\x20component',async()=>{const _0xa09898=a0_0x2e64,{HelpPanel:_0x1001b4}=await import(_0xa09898(0x1fe));expect(typeof _0x1001b4)[_0xa09898(0x1e3)]('function'),expect(_0x1001b4['prototype']?.['render'])['toBeUndefined']();}),test('HelpPanel is default export',async()=>{const _0x5d905b=a0_0x2e64,module=await import(_0x5d905b(0x1fe));expect(module['default'])['toBeDefined'](),expect(module[_0x5d905b(0x1f6)])[_0x5d905b(0x1e3)](module['HelpPanel']);});}),describe(a0_0x1f2cc4(0x1f1),()=>{test('Layout component can import all Phase 10 components',async()=>{const _0x23202b=a0_0x2e64,[_0x314646,_0x575462,_0x243585,_0x1cebb9,_0x3a0208]=await Promise['all']([import(_0x23202b(0x1fc)),import(_0x23202b(0x1f3)),import(_0x23202b(0x206)),import('../../components/SearchPanel.js'),import('../../components/HelpPanel.js')]);expect(_0x314646[_0x23202b(0x1ee)])[_0x23202b(0x1eb)](),expect(_0x575462[_0x23202b(0x204)])[_0x23202b(0x1eb)](),expect(_0x243585[_0x23202b(0x1ed)])[_0x23202b(0x1eb)](),expect(_0x1cebb9[_0x23202b(0x1e5)])[_0x23202b(0x1eb)](),expect(_0x3a0208['HelpPanel'])['toBeDefined']();}),test('Layout\x20component\x20still\x20loads\x20after\x20Phase\x2010\x20additions',async()=>{const _0x183321=a0_0x2e64,{Layout:_0x1d7014}=await import('../../components/Layout.js');expect(_0x1d7014)['toBeDefined'](),expect(typeof _0x1d7014)['toBe'](_0x183321(0x210));}),test('All\x20Phase\x2010\x20components\x20use\x20React\x20and\x20Ink',async()=>{const _0x3a3ae6=a0_0x2e64,_0xacc192=await import('react'),_0x5c2548=await import(_0x3a3ae6(0x1fa));expect(_0xacc192['createElement'])[_0x3a3ae6(0x1eb)](),expect(_0xacc192[_0x3a3ae6(0x20c)])['toBeDefined'](),expect(_0x5c2548['Box'])[_0x3a3ae6(0x1eb)](),expect(_0x5c2548[_0x3a3ae6(0x1e9)])['toBeDefined'](),expect(_0x5c2548[_0x3a3ae6(0x1fb)])[_0x3a3ae6(0x1eb)]();});}),describe(a0_0x1f2cc4(0x207),()=>{const _0x50e4a2=a0_0x1f2cc4;test(_0x50e4a2(0x20b),async()=>{const module=await import('../../components/AgentCreator.js');expect(module['AgentCreator'])['toBeDefined']();}),test('SettingsPanel\x20defines\x20category\x20constants',async()=>{const _0x36b9a5=_0x50e4a2,module=await import(_0x36b9a5(0x206));expect(module['SettingsPanel'])['toBeDefined']();}),test('HelpPanel\x20defines\x20shortcut\x20configurations',async()=>{const _0x574958=_0x50e4a2,module=await import('../../components/HelpPanel.js');expect(module['HelpPanel'])[_0x574958(0x1eb)]();});}),describe('Phase\x2010\x20-\x20All\x20Components\x20Export\x20Correctly',()=>{test('All components can be imported together without conflicts',async()=>{const _0x14817c=a0_0x2e64,_0x5f046e=await Promise['all']([import('../../components/AgentSwitcher.js'),import('../../components/AgentCreator.js'),import(_0x14817c(0x206)),import('../../components/SearchPanel.js'),import(_0x14817c(0x1fe))]),_0x4e33b9=_0x5f046e[_0x14817c(0x20d)](_0x5b5b1b=>Object[_0x14817c(0x208)](_0x5b5b1b)[0x0]),_0x19e324=new Set(_0x4e33b9);expect(_0x19e324[_0x14817c(0x20a)])[_0x14817c(0x1e3)](_0x4e33b9[_0x14817c(0x201)]);});});
1
+ const a0_0x1ce478=a0_0x4752;(function(_0x36d6c4,_0x4d8859){const _0x31196=a0_0x4752,_0x58d4fa=_0x36d6c4();while(!![]){try{const _0x1fe104=parseInt(_0x31196(0x1a1))/0x1+-parseInt(_0x31196(0x189))/0x2*(-parseInt(_0x31196(0x1a4))/0x3)+-parseInt(_0x31196(0x198))/0x4*(-parseInt(_0x31196(0x1af))/0x5)+parseInt(_0x31196(0x1a7))/0x6*(parseInt(_0x31196(0x19e))/0x7)+parseInt(_0x31196(0x1ad))/0x8*(parseInt(_0x31196(0x19d))/0x9)+-parseInt(_0x31196(0x196))/0xa+-parseInt(_0x31196(0x192))/0xb;if(_0x1fe104===_0x4d8859)break;else _0x58d4fa['push'](_0x58d4fa['shift']());}catch(_0x55550a){_0x58d4fa['push'](_0x58d4fa['shift']());}}}(a0_0x3d7a,0x87797));import{describe,test,expect}from'@jest/globals';function a0_0x4752(_0x15f0f4,_0x5b251f){_0x15f0f4=_0x15f0f4-0x187;const _0x3d7adf=a0_0x3d7a();let _0x4752c6=_0x3d7adf[_0x15f0f4];if(a0_0x4752['jVNBBb']===undefined){var _0x383bf6=function(_0x5450d0){const _0x765fc4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x521f2b='',_0x117be1='';for(let _0x5fca3c=0x0,_0x584c42,_0x3158c9,_0x312d4b=0x0;_0x3158c9=_0x5450d0['charAt'](_0x312d4b++);~_0x3158c9&&(_0x584c42=_0x5fca3c%0x4?_0x584c42*0x40+_0x3158c9:_0x3158c9,_0x5fca3c++%0x4)?_0x521f2b+=String['fromCharCode'](0xff&_0x584c42>>(-0x2*_0x5fca3c&0x6)):0x0){_0x3158c9=_0x765fc4['indexOf'](_0x3158c9);}for(let _0x55b410=0x0,_0x3dbe63=_0x521f2b['length'];_0x55b410<_0x3dbe63;_0x55b410++){_0x117be1+='%'+('00'+_0x521f2b['charCodeAt'](_0x55b410)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x117be1);};a0_0x4752['YxOppr']=_0x383bf6,a0_0x4752['sKbcQg']={},a0_0x4752['jVNBBb']=!![];}const _0x181551=_0x3d7adf[0x0],_0xc90bf7=_0x15f0f4+_0x181551,_0x5cd5b5=a0_0x4752['sKbcQg'][_0xc90bf7];return!_0x5cd5b5?(_0x4752c6=a0_0x4752['YxOppr'](_0x4752c6),a0_0x4752['sKbcQg'][_0xc90bf7]=_0x4752c6):_0x4752c6=_0x5cd5b5,_0x4752c6;}function a0_0x3d7a(){const _0x1072f3=['sgvSCfbHBMvSigrLzMLUzxmGC2HVCNrJDxqGy29UzMLNDxjHDgLVBNm','DxnLsw5WDxq','mta1ofLAwxbXzq','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','Dg9czurLzMLUzwq','y3jLyxrLrwXLBwvUDa','qwDLBNrdCMvHDg9Y','qwDLBNrtD2L0y2HLCIbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','lI4VlI4Vy29TCg9Uzw50CY9tzxr0Aw5NC1bHBMvSlMPZ','qwDLBNrdCMvHDg9YigrLzMLUzxmGC3rLCcbJB25ZDgfUDhm','qwDLBNrdCMvHDg9YigLZigeGzNvUy3rPB24Gy29TCg9Uzw50','mJy0mJG0ntDluwj6twS','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDenYzwf0B3iUANm','u2vHCMnOugfUzwWGAxmGysbMDw5JDgLVBIbJB21WB25LBNq','Dg9czq','nZCWmJuWB3DkuMrJ','CMvUzgvY','nty1ndHMz0veq0q','lI4VlI4Vy29TCg9Uzw50CY9izwXWugfUzwWUANm','ugHHC2uGmtaGlsbdB21WB25LBNqGq29UC3rHBNrZigfUzcbdB25MAwD1CMf0Aw9UCW','lI4VlI4Vy29TCg9Uzw50CY9tzwfYy2Hqyw5LBc5QCW','sgvSCfbHBMvSigLZigeGzNvUy3rPB24Gy29TCg9Uzw50','ouDhyuvNqq','mZGWmZaZzLLYu1D2','Dg9czvvUzgvMAw5Lza','qwDLBNrtD2L0y2HLCG','ntu3mdiWCLbRt1vU','BwfW','u2v0DgLUz3nqyw5LBcbKzwzPBMvZignHDgvNB3j5ignVBNn0yw50CW','ndiYn0frrLfeBq','sgvSCfbHBMvS','CMvHy3q','nJbmyLzLzg8','ChjVDg90ExbL','ugHHC2uGmtaGlsbbz2vUDfn3AxrJAgvYic0Gu3rYDwn0DxjL','Aw5R','u2vHCMnOugfUzwW','BgvUz3rO','ndK4nJKXmMv4t21oDq','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDfn3AxrJAgvYlMPZ','mJaWwM1PugTd','zgvMyxvSDa','zNvUy3rPB24','ugHHC2uGmtaGlsbtzxr0Aw5NC1bHBMvSic0Gu3rYDwn0DxjL','ugHHC2uGmtaGlsbbzhzHBMnLzcbgzwf0DxjLCYaTieLTCg9YDhm'];a0_0x3d7a=function(){return _0x1072f3;};return a0_0x3d7a();}describe(a0_0x1ce478(0x1b3),()=>{test('AgentSwitcher component can be imported',async()=>{const _0x2a9319=a0_0x4752,{AgentSwitcher:_0x521f2b}=await import('../../components/AgentSwitcher.js');expect(_0x521f2b)['toBeDefined'](),expect(typeof _0x521f2b)[_0x2a9319(0x195)](_0x2a9319(0x1b1));},0x7530),test('AgentCreator component can be imported',async()=>{const _0x14daf2=a0_0x4752,{AgentCreator:_0x117be1}=await import(_0x14daf2(0x193));expect(_0x117be1)['toBeDefined'](),expect(typeof _0x117be1)['toBe']('function');}),test('SettingsPanel component can be imported',async()=>{const _0x53cf44=a0_0x4752,{SettingsPanel:_0x5fca3c}=await import(_0x53cf44(0x18f));expect(_0x5fca3c)['toBeDefined'](),expect(typeof _0x5fca3c)['toBe'](_0x53cf44(0x1b1));}),test('SearchPanel component can be imported',async()=>{const _0x15ff58=a0_0x4752,{SearchPanel:_0x584c42}=await import(_0x15ff58(0x19b));expect(_0x584c42)['toBeDefined'](),expect(typeof _0x584c42)[_0x15ff58(0x195)](_0x15ff58(0x1b1));}),test('HelpPanel component can be imported',async()=>{const _0x397f6b=a0_0x4752,{HelpPanel:_0x3158c9}=await import('../../components/HelpPanel.js');expect(_0x3158c9)[_0x397f6b(0x18b)](),expect(typeof _0x3158c9)['toBe']('function');});}),describe(a0_0x1ce478(0x1a9),()=>{const _0xfec89=a0_0x1ce478;test(_0xfec89(0x18e),async()=>{const _0x3dc6b9=_0xfec89,{AgentSwitcher:_0x312d4b}=await import(_0x3dc6b9(0x1ae));expect(typeof _0x312d4b)[_0x3dc6b9(0x195)](_0x3dc6b9(0x1b1)),expect(_0x312d4b['prototype']?.['render'])['toBeUndefined']();}),test('AgentSwitcher is default export',async()=>{const _0x5792f9=_0xfec89,module=await import(_0x5792f9(0x1ae));expect(module['default'])[_0x5792f9(0x18b)](),expect(module[_0x5792f9(0x1b0)])[_0x5792f9(0x195)](module[_0x5792f9(0x1a0)]);});}),describe('Phase\x2010\x20-\x20AgentCreator\x20-\x20Structure',()=>{const _0x47b4a8=a0_0x1ce478;test(_0x47b4a8(0x191),async()=>{const _0x2ab907=_0x47b4a8,{AgentCreator:_0x55b410}=await import(_0x2ab907(0x193));expect(typeof _0x55b410)['toBe']('function'),expect(_0x55b410[_0x2ab907(0x1a8)]?.[_0x2ab907(0x197)])['toBeUndefined']();}),test('AgentCreator is default export',async()=>{const _0x542ef3=_0x47b4a8,module=await import('../../components/AgentCreator.js');expect(module['default'])['toBeDefined'](),expect(module['default'])['toBe'](module[_0x542ef3(0x18d)]);});}),describe(a0_0x1ce478(0x1b2),()=>{test('SettingsPanel\x20is\x20a\x20function\x20component',async()=>{const _0x51912e=a0_0x4752,{SettingsPanel:_0x3dbe63}=await import(_0x51912e(0x18f));expect(typeof _0x3dbe63)['toBe']('function'),expect(_0x3dbe63['prototype']?.['render'])['toBeUndefined']();}),test('SettingsPanel is default export',async()=>{const _0x46a2fd=a0_0x4752,module=await import('../../components/SettingsPanel.js');expect(module[_0x46a2fd(0x1b0)])['toBeDefined'](),expect(module[_0x46a2fd(0x1b0)])['toBe'](module['SettingsPanel']);});}),describe('Phase\x2010\x20-\x20SearchPanel\x20-\x20Structure',()=>{const _0x4a5bbb=a0_0x1ce478;test(_0x4a5bbb(0x194),async()=>{const _0x1c44f4=_0x4a5bbb,{SearchPanel:_0x1d50db}=await import(_0x1c44f4(0x19b));expect(typeof _0x1d50db)[_0x1c44f4(0x195)](_0x1c44f4(0x1b1)),expect(_0x1d50db[_0x1c44f4(0x1a8)]?.[_0x1c44f4(0x197)])[_0x1c44f4(0x19f)]();}),test('SearchPanel is default export',async()=>{const _0x43c83b=_0x4a5bbb,module=await import(_0x43c83b(0x19b));expect(module[_0x43c83b(0x1b0)])[_0x43c83b(0x18b)](),expect(module[_0x43c83b(0x1b0)])['toBe'](module[_0x43c83b(0x1ab)]);});}),describe('Phase\x2010\x20-\x20HelpPanel\x20-\x20Structure',()=>{const _0x46a205=a0_0x1ce478;test(_0x46a205(0x19c),async()=>{const _0x317d0c=_0x46a205,{HelpPanel:_0x1198ed}=await import('../../components/HelpPanel.js');expect(typeof _0x1198ed)['toBe'](_0x317d0c(0x1b1)),expect(_0x1198ed['prototype']?.['render'])['toBeUndefined']();}),test('HelpPanel is default export',async()=>{const _0x5094cc=_0x46a205,module=await import(_0x5094cc(0x199));expect(module['default'])['toBeDefined'](),expect(module[_0x5094cc(0x1b0)])['toBe'](module[_0x5094cc(0x1a5)]);});}),describe('Phase\x2010\x20-\x20Integration\x20with\x20Layout',()=>{test('Layout component can import all Phase 10 components',async()=>{const _0x134495=a0_0x4752,[_0x48b8da,_0x1a1051,_0x4c532d,_0x4aac7d,_0x1af842]=await Promise['all']([import(_0x134495(0x1ae)),import('../../components/AgentCreator.js'),import('../../components/SettingsPanel.js'),import('../../components/SearchPanel.js'),import(_0x134495(0x199))]);expect(_0x48b8da[_0x134495(0x1a0)])['toBeDefined'](),expect(_0x1a1051[_0x134495(0x18d)])['toBeDefined'](),expect(_0x4c532d['SettingsPanel'])[_0x134495(0x18b)](),expect(_0x4aac7d['SearchPanel'])[_0x134495(0x18b)](),expect(_0x1af842[_0x134495(0x1a5)])[_0x134495(0x18b)]();}),test('Layout\x20component\x20still\x20loads\x20after\x20Phase\x2010\x20additions',async()=>{const _0x5e9b6f=a0_0x4752,{Layout:_0xbe25db}=await import(_0x5e9b6f(0x18a));expect(_0xbe25db)[_0x5e9b6f(0x18b)](),expect(typeof _0xbe25db)['toBe']('function');}),test('All\x20Phase\x2010\x20components\x20use\x20React\x20and\x20Ink',async()=>{const _0x3f8e0a=a0_0x4752,_0x34aab1=await import(_0x3f8e0a(0x1a6)),_0x7d4ca7=await import(_0x3f8e0a(0x1aa));expect(_0x34aab1[_0x3f8e0a(0x18c)])[_0x3f8e0a(0x18b)](),expect(_0x34aab1['useState'])[_0x3f8e0a(0x18b)](),expect(_0x7d4ca7['Box'])['toBeDefined'](),expect(_0x7d4ca7['Text'])[_0x3f8e0a(0x18b)](),expect(_0x7d4ca7[_0x3f8e0a(0x188)])[_0x3f8e0a(0x18b)]();});}),describe(a0_0x1ce478(0x19a),()=>{const _0x29da5a=a0_0x1ce478;test(_0x29da5a(0x190),async()=>{const _0x582071=_0x29da5a,module=await import(_0x582071(0x193));expect(module[_0x582071(0x18d)])[_0x582071(0x18b)]();}),test(_0x29da5a(0x1a3),async()=>{const _0x576e81=_0x29da5a,module=await import('../../components/SettingsPanel.js');expect(module['SettingsPanel'])[_0x576e81(0x18b)]();}),test(_0x29da5a(0x187),async()=>{const _0x3d6c1c=_0x29da5a,module=await import(_0x3d6c1c(0x199));expect(module['HelpPanel'])[_0x3d6c1c(0x18b)]();});}),describe('Phase\x2010\x20-\x20All\x20Components\x20Export\x20Correctly',()=>{test('All components can be imported together without conflicts',async()=>{const _0x32bf19=a0_0x4752,_0x108837=await Promise['all']([import('../../components/AgentSwitcher.js'),import('../../components/AgentCreator.js'),import(_0x32bf19(0x18f)),import('../../components/SearchPanel.js'),import(_0x32bf19(0x199))]),_0x45aa32=_0x108837[_0x32bf19(0x1a2)](_0x59c217=>Object['keys'](_0x59c217)[0x0]),_0x776399=new Set(_0x45aa32);expect(_0x776399['size'])[_0x32bf19(0x195)](_0x45aa32[_0x32bf19(0x1ac)]);});});
@@ -1 +1 @@
1
- const a0_0x4ec4f6=a0_0x3451;(function(_0x18ccea,_0x4a7fe2){const _0x10be19=a0_0x3451,_0x3c2a86=_0x18ccea();while(!![]){try{const _0x19a712=-parseInt(_0x10be19(0x166))/0x1*(-parseInt(_0x10be19(0x174))/0x2)+-parseInt(_0x10be19(0x148))/0x3*(-parseInt(_0x10be19(0x16e))/0x4)+parseInt(_0x10be19(0x178))/0x5*(-parseInt(_0x10be19(0x168))/0x6)+parseInt(_0x10be19(0x176))/0x7*(-parseInt(_0x10be19(0x17b))/0x8)+parseInt(_0x10be19(0x155))/0x9*(parseInt(_0x10be19(0x15d))/0xa)+parseInt(_0x10be19(0x165))/0xb+-parseInt(_0x10be19(0x17c))/0xc*(parseInt(_0x10be19(0x16b))/0xd);if(_0x19a712===_0x4a7fe2)break;else _0x3c2a86['push'](_0x3c2a86['shift']());}catch(_0x1ecf3c){_0x3c2a86['push'](_0x3c2a86['shift']());}}}(a0_0x305d,0xa0422));import{describe,test,expect}from'@jest/globals';function a0_0x3451(_0x3f64b0,_0xa2c0d1){_0x3f64b0=_0x3f64b0-0x146;const _0x305d37=a0_0x305d();let _0x34512f=_0x305d37[_0x3f64b0];if(a0_0x3451['XzhfiA']===undefined){var _0x31b0dd=function(_0x3ba4f9){const _0x5dd8fe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a1d26='',_0x49c0ab='';for(let _0x5c6d99=0x0,_0x37c251,_0x55eb1b,_0x44ebb4=0x0;_0x55eb1b=_0x3ba4f9['charAt'](_0x44ebb4++);~_0x55eb1b&&(_0x37c251=_0x5c6d99%0x4?_0x37c251*0x40+_0x55eb1b:_0x55eb1b,_0x5c6d99++%0x4)?_0x1a1d26+=String['fromCharCode'](0xff&_0x37c251>>(-0x2*_0x5c6d99&0x6)):0x0){_0x55eb1b=_0x5dd8fe['indexOf'](_0x55eb1b);}for(let _0x52af54=0x0,_0x301e75=_0x1a1d26['length'];_0x52af54<_0x301e75;_0x52af54++){_0x49c0ab+='%'+('00'+_0x1a1d26['charCodeAt'](_0x52af54)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49c0ab);};a0_0x3451['jlzmQK']=_0x31b0dd,a0_0x3451['WtosOa']={},a0_0x3451['XzhfiA']=!![];}const _0x1bd9e9=_0x305d37[0x0],_0x1c7708=_0x3f64b0+_0x1bd9e9,_0x1c362b=a0_0x3451['WtosOa'][_0x1c7708];return!_0x1c362b?(_0x34512f=a0_0x3451['jlzmQK'](_0x34512f),a0_0x3451['WtosOa'][_0x1c7708]=_0x34512f):_0x34512f=_0x1c362b,_0x34512f;}function a0_0x305d(){const _0x5c27cd=['mJyXmZy1y1LeB3vk','Dg9czurLzMLUzwq','lI4VlI4VC3rHDguVDxnLqwDLBNrdB250CM9SlMPZ','ne1lB0fzEG','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gq29UC3rHBNrZ','tu9eruXFq0furuDpuLK','quDftLq','quDftLrFtu9erq','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzwWGrMLSDgvYAw5N','mtKYnJuXmfLqCurxuW','v1nFtuvtu0fhrv9uwvbfigLUy2X1zgvZig1VzguGyw5Kig1VzgvSignOyw5NzsbLDMvUDhm','mtm5mtm4m2LMvfHHyq','quDftLrFtu9ersbJB25ZDgfUDhmGyxjLigrLzMLUzwq','otbfwgHUuxm','quDftLrtx01prevFr0vu','tuLduK9tt0zu','mtz3AMH3rvG','mtu2AgfMCuvv','AgfZsgfUzgXLCG','DxnLqwDLBNrdB250CM9S','yw50AhjVCgLJ','Dg9czq','BwLJCM9ZB2z0','tu9eruXFq0furuDpuLKGDMfSDwvZigfYzsbSB3DLCMnHC2u','teXnx01prevmuW','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gq29UC3rHBNrZifzHBgLKyxrPB24','quDftLrtx01prevFu0vu','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gv2vIu29JA2v0iev2zw50ieHHBMrSzxjZ','mJC1ntiZrLDZzwTY','zMLSDgvY','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsg9VAYbjBNrLCMzHy2uGvMvYAwzPy2f0Aw9U','oMfNzw50swq','z3b0ltq','y2f0zwDVCNK','A2v5CW','qvbjx0vorfbpsu5uuW','DxnLqwDLBNrdB250CM9SihjLDhvYBNmGzxHWzwn0zwqGAw50zxjMywnLihnOyxbL','DxnLqwDLBNrdB250CM9SigHVB2SGAw50zwDYyxrLCYb3AxrOifnLC3nPB24Gyw5Kie1LC3nHz2vsB3v0zxi','u2vZC2LVBK1HBMfNzxi','BgvUz3rO','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','nde0ouvfBxHIvG','Dg9nyxrJAa','l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','qu5usfjpueLd','tw9KzsbHBMqGBw9KzwWGqvbjigvUzhbVAw50CYbHCMuGzgvMAw5Lza','v2vIu29JA2v0twfUywDLCG','zNvUy3rPB24','Dg9dB250ywLU','nJC5meTgrhDHzW','lI4VlI4VyxbPl3nLC3nPB24UANm','zgvMyxvSDa','quDftLrFtu9ersbOyxmGzxHHy3rSEsb0D28GBw9Kzxm','B3bLBMfP','revfufnfruS','t1bftKfj','q0Hbva','otG5nta1mgjyuKr5ua','mxDyD0vLvG','Bg9JywXOB3n0','mZe3ndq4CMTXwuXt','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','twvZC2fNzvjVDxrLCG'];a0_0x305d=function(){return _0x5c27cd;};return a0_0x305d();}describe('Agent\x20Control\x20Management\x20-\x20Imports',()=>{test('useAgentControl hook can be imported',async()=>{const _0x588f9d=a0_0x3451,{useAgentControl:_0x1a1d26}=await import(_0x588f9d(0x16d));expect(_0x1a1d26)['toBeDefined'](),expect(typeof _0x1a1d26)[_0x588f9d(0x180)](_0x588f9d(0x15b));}),test('useAgentControl is default export',async()=>{const _0x373616=a0_0x3451,module=await import(_0x373616(0x16d));expect(module[_0x373616(0x15f)])['toBeDefined'](),expect(typeof module['default'])[_0x373616(0x180)](_0x373616(0x15b)),expect(module[_0x373616(0x15f)])[_0x373616(0x180)](module[_0x373616(0x17e)]);});}),describe(a0_0x4ec4f6(0x16f),()=>{const _0x153a60=a0_0x4ec4f6;test(_0x153a60(0x177),async()=>{const _0x48ab51=_0x153a60,{AGENT_MODE:_0x49c0ab}=await import('../../config/constants.js');expect(_0x49c0ab)['toBeDefined'](),expect(_0x49c0ab[_0x48ab51(0x164)])[_0x48ab51(0x180)](_0x48ab51(0x164)),expect(_0x49c0ab[_0x48ab51(0x171)])['toBe'](_0x48ab51(0x171));}),test('MODEL_CATEGORY\x20constants\x20are\x20defined',async()=>{const _0x24adb4=_0x153a60,{MODEL_CATEGORY:_0x5c6d99}=await import(_0x24adb4(0x169));expect(_0x5c6d99)['toBeDefined'](),expect(_0x5c6d99[_0x24adb4(0x158)])['toBe'](_0x24adb4(0x17f)),expect(_0x5c6d99[_0x24adb4(0x163)])[_0x24adb4(0x180)](_0x24adb4(0x161)),expect(_0x5c6d99['DEEPSEEK'])[_0x24adb4(0x180)]('deepseek'),expect(_0x5c6d99['MICROSOFT'])['toBe'](_0x24adb4(0x181));}),test(_0x153a60(0x159),async()=>{const _0x7929f9=_0x153a60,{API_ENDPOINTS:_0x37c251}=await import('../../config/constants.js');expect(_0x37c251['AGENTS_MODE_SET'])[_0x7929f9(0x180)]('/api/agents/:agentId/mode'),expect(_0x37c251[_0x7929f9(0x179)])[_0x7929f9(0x180)](_0x7929f9(0x157)),expect(_0x37c251[_0x7929f9(0x183)])['toBe']('/api/llm/models');}),test(_0x153a60(0x175),async()=>{const _0xc10fd8=_0x153a60,{WS_MESSAGE_TYPE:_0x55eb1b}=await import(_0xc10fd8(0x169));expect(_0x55eb1b)[_0xc10fd8(0x16c)](),expect(_0x55eb1b['AGENT_MODE_CHANGED'])['toBe']('agent_mode_changed');});}),describe('Agent\x20Control\x20Management\x20-\x20Integration',()=>{const _0x4f9baa=a0_0x4ec4f6;test(_0x4f9baa(0x151),async()=>{const _0x2454a2=_0x4f9baa,{useAgentControl:_0x44ebb4}=await import('../../state/useAgentControl.js'),{SessionManager:_0x52af54}=await import(_0x2454a2(0x15e)),{MessageRouter:_0x301e75}=await import(_0x2454a2(0x146)),{WebSocketManager:_0x58ca55}=await import(_0x2454a2(0x154)),_0x7aac74=new _0x52af54(_0x2454a2(0x167),0x1f90),_0x1e7431=new _0x58ca55('localhost',0x1f90),_0x4bc23f=new _0x301e75(_0x1e7431);expect(_0x7aac74)['toBeDefined'](),expect(_0x4bc23f)[_0x2454a2(0x16c)](),expect(typeof _0x44ebb4)[_0x2454a2(0x180)](_0x2454a2(0x15b));}),test('Full agent control stack can be imported together',async()=>{const _0x3b4e0c=_0x4f9baa,[_0x1ccdb2,_0x251dee,_0x2548a6,_0x1cf2b9,_0x23c06b]=await Promise['all']([import(_0x3b4e0c(0x169)),import('../../api/session.js'),import(_0x3b4e0c(0x154)),import('../../api/messageRouter.js'),import(_0x3b4e0c(0x16d))]);expect(_0x1ccdb2[_0x3b4e0c(0x172)])[_0x3b4e0c(0x16c)](),expect(_0x1ccdb2[_0x3b4e0c(0x170)])['toBeDefined'](),expect(_0x1ccdb2[_0x3b4e0c(0x14f)])[_0x3b4e0c(0x16c)](),expect(_0x251dee[_0x3b4e0c(0x152)])[_0x3b4e0c(0x16c)](),expect(_0x2548a6[_0x3b4e0c(0x15a)])[_0x3b4e0c(0x16c)](),expect(_0x1cf2b9[_0x3b4e0c(0x16a)])['toBeDefined'](),expect(_0x23c06b[_0x3b4e0c(0x17e)])[_0x3b4e0c(0x16c)]();});}),describe('Agent\x20Control\x20Management\x20-\x20API\x20Endpoints\x20Validation',()=>{test('Agent\x20mode\x20endpoints\x20follow\x20RESTful\x20pattern',async()=>{const _0x2fa66a=a0_0x3451,{API_ENDPOINTS:_0x4e1ff6}=await import(_0x2fa66a(0x169));expect(_0x4e1ff6[_0x2fa66a(0x185)])[_0x2fa66a(0x156)](/^\/api\/agents/),expect(_0x4e1ff6[_0x2fa66a(0x179)])[_0x2fa66a(0x156)](/^\/api\/agents/),expect(_0x4e1ff6['AGENTS_MODE_SET'])['toContain'](':agentId'),expect(_0x4e1ff6['AGENTS_MODE_GET'])['toContain'](_0x2fa66a(0x14b));}),test('LLM\x20models\x20endpoint\x20exists',async()=>{const _0x3a15af=a0_0x3451,{API_ENDPOINTS:_0x51794e}=await import(_0x3a15af(0x169));expect(_0x51794e['LLM_MODELS'])['toBeDefined'](),expect(_0x51794e['LLM_MODELS'])[_0x3a15af(0x180)]('/api/llm/models');}),test('Orchestrator\x20endpoint\x20exists\x20for\x20model\x20and\x20config\x20operations',async()=>{const _0x4f492a=a0_0x3451,{API_ENDPOINTS:_0x992ab6}=await import(_0x4f492a(0x169));expect(_0x992ab6['ORCHESTRATOR'])['toBeDefined'](),expect(_0x992ab6['ORCHESTRATOR'])[_0x4f492a(0x180)]('/api/orchestrator');});}),describe(a0_0x4ec4f6(0x14a),()=>{const _0x4e8d0a=a0_0x4ec4f6;test(_0x4e8d0a(0x150),async()=>{const _0x17d375=_0x4e8d0a,{useAgentControl:_0x1d24f2}=await import('../../state/useAgentControl.js');expect(_0x1d24f2[_0x17d375(0x153)])['toBe'](0x3);});}),describe(a0_0x4ec4f6(0x184),()=>{const _0x212063=a0_0x4ec4f6;test(_0x212063(0x160),async()=>{const _0xb2fc76=_0x212063,{AGENT_MODE:_0x4dc8aa}=await import('../../config/constants.js'),_0x1a10f7=Object[_0xb2fc76(0x14e)](_0x4dc8aa);expect(_0x1a10f7['length'])[_0xb2fc76(0x180)](0x2),expect(_0x1a10f7)[_0xb2fc76(0x15c)](_0xb2fc76(0x164)),expect(_0x1a10f7)['toContain'](_0xb2fc76(0x171));}),test('AGENT_MODE\x20values\x20are\x20uppercase',async()=>{const _0x57b18d=_0x212063,{AGENT_MODE:_0x172dcc}=await import(_0x57b18d(0x169));expect(_0x172dcc[_0x57b18d(0x164)])['toBe'](_0x57b18d(0x164)),expect(_0x172dcc['AGENT'])['toBe'](_0x57b18d(0x171)),expect(_0x172dcc['CHAT'])[_0x57b18d(0x180)](_0x172dcc[_0x57b18d(0x164)]['toUpperCase']()),expect(_0x172dcc[_0x57b18d(0x171)])['toBe'](_0x172dcc[_0x57b18d(0x171)]['toUpperCase']());}),test(_0x212063(0x182),async()=>{const _0xefd851=_0x212063,{MODEL_CATEGORY:_0x52340d}=await import(_0xefd851(0x169));expect(_0x52340d[_0xefd851(0x158)])[_0xefd851(0x180)](_0xefd851(0x17f)),expect(_0x52340d['OPENAI'])[_0xefd851(0x180)](_0xefd851(0x161)),expect(_0x52340d['DEEPSEEK'])['toBe']('deepseek'),expect(_0x52340d[_0xefd851(0x17a)])[_0xefd851(0x180)](_0xefd851(0x181)),expect(_0x52340d['ANTHROPIC'])['toBe'](_0x52340d[_0xefd851(0x158)]['toLowerCase']()),expect(_0x52340d[_0xefd851(0x163)])['toBe'](_0x52340d[_0xefd851(0x163)]['toLowerCase']());}),test('MODEL_CATEGORY\x20includes\x20major\x20LLM\x20providers',async()=>{const _0x1fa7fb=_0x212063,{MODEL_CATEGORY:_0x94aec2}=await import(_0x1fa7fb(0x169)),_0x17c4d0=Object['keys'](_0x94aec2);expect(_0x17c4d0)[_0x1fa7fb(0x15c)]('ANTHROPIC'),expect(_0x17c4d0)['toContain'](_0x1fa7fb(0x163)),expect(_0x17c4d0)['toContain'](_0x1fa7fb(0x162)),expect(_0x17c4d0)[_0x1fa7fb(0x15c)](_0x1fa7fb(0x17a));});}),describe(a0_0x4ec4f6(0x147),()=>{test('MessageRouter\x20has\x20mode\x20change\x20event\x20handler\x20registered',async()=>{const _0x3cd951=a0_0x3451,{MessageRouter:_0x5289ed}=await import(_0x3cd951(0x146)),{WebSocketManager:_0x162f26}=await import(_0x3cd951(0x154)),{WS_MESSAGE_TYPE:_0x5f2df0}=await import('../../config/constants.js'),_0x1dc67c=new _0x162f26(_0x3cd951(0x167),0x1f90),_0x6120a4=new _0x5289ed(_0x1dc67c);expect(_0x6120a4[_0x3cd951(0x17d)](_0x5f2df0['AGENT_MODE_CHANGED']))[_0x3cd951(0x180)](!![]);});}),describe('Agent\x20Control\x20Management\x20-\x20Mode\x20Switching\x20Logic',()=>{test('AGENT_MODE\x20supports\x20toggling\x20between\x20modes',async()=>{const _0x49c9fd=a0_0x3451,{AGENT_MODE:_0x41fbce}=await import('../../config/constants.js');let _0x455dcc=_0x41fbce[_0x49c9fd(0x164)],_0x15e6c7=_0x455dcc===_0x41fbce['CHAT']?_0x41fbce[_0x49c9fd(0x171)]:_0x41fbce['CHAT'];expect(_0x15e6c7)['toBe'](_0x41fbce[_0x49c9fd(0x171)]),_0x455dcc=_0x41fbce[_0x49c9fd(0x171)],_0x15e6c7=_0x455dcc===_0x41fbce['CHAT']?_0x41fbce['AGENT']:_0x41fbce['CHAT'],expect(_0x15e6c7)['toBe'](_0x41fbce[_0x49c9fd(0x164)]);});}),describe(a0_0x4ec4f6(0x173),()=>{test('MODEL_CATEGORY\x20can\x20be\x20used\x20to\x20filter\x20models\x20by\x20category',async()=>{const _0x46d85e=a0_0x3451,{MODEL_CATEGORY:_0x2437a6}=await import('../../config/constants.js'),_0x517095=[{'id':'claude-3-5-sonnet','category':_0x2437a6['ANTHROPIC']},{'id':'gpt-4','category':_0x2437a6[_0x46d85e(0x163)]},{'id':'deepseek-chat','category':_0x2437a6[_0x46d85e(0x162)]}],_0x1d0f90=_0x517095['filter'](_0x182dce=>_0x182dce[_0x46d85e(0x14d)]===_0x2437a6[_0x46d85e(0x158)]),_0x86849b=_0x517095[_0x46d85e(0x149)](_0x3b2ac9=>_0x3b2ac9[_0x46d85e(0x14d)]===_0x2437a6['OPENAI']);expect(_0x1d0f90['length'])[_0x46d85e(0x180)](0x1),expect(_0x1d0f90[0x0]['id'])['toBe']('claude-3-5-sonnet'),expect(_0x86849b[_0x46d85e(0x153)])[_0x46d85e(0x180)](0x1),expect(_0x86849b[0x0]['id'])['toBe'](_0x46d85e(0x14c));});});
1
+ function a0_0x2982(_0x568029,_0x592c96){_0x568029=_0x568029-0x1a0;const _0xf7b877=a0_0xf7b8();let _0x2982ea=_0xf7b877[_0x568029];if(a0_0x2982['FQNizO']===undefined){var _0x40c554=function(_0x365a1a){const _0x54e9ab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44c209='',_0x4ab863='';for(let _0x58b89a=0x0,_0x368ece,_0x3bfb76,_0x298889=0x0;_0x3bfb76=_0x365a1a['charAt'](_0x298889++);~_0x3bfb76&&(_0x368ece=_0x58b89a%0x4?_0x368ece*0x40+_0x3bfb76:_0x3bfb76,_0x58b89a++%0x4)?_0x44c209+=String['fromCharCode'](0xff&_0x368ece>>(-0x2*_0x58b89a&0x6)):0x0){_0x3bfb76=_0x54e9ab['indexOf'](_0x3bfb76);}for(let _0x307fa4=0x0,_0x52862a=_0x44c209['length'];_0x307fa4<_0x52862a;_0x307fa4++){_0x4ab863+='%'+('00'+_0x44c209['charCodeAt'](_0x307fa4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4ab863);};a0_0x2982['npAsgq']=_0x40c554,a0_0x2982['Lbrsnv']={},a0_0x2982['FQNizO']=!![];}const _0x2d0b3b=_0xf7b877[0x0],_0x1d75bb=_0x568029+_0x2d0b3b,_0x30c323=a0_0x2982['Lbrsnv'][_0x1d75bb];return!_0x30c323?(_0x2982ea=a0_0x2982['npAsgq'](_0x2982ea),a0_0x2982['Lbrsnv'][_0x1d75bb]=_0x2982ea):_0x2982ea=_0x30c323,_0x2982ea;}const a0_0x19f726=a0_0x2982;(function(_0x185fcf,_0xbbda54){const _0x495918=a0_0x2982,_0x290d35=_0x185fcf();while(!![]){try{const _0x5a9811=-parseInt(_0x495918(0x1b1))/0x1+-parseInt(_0x495918(0x1c6))/0x2+parseInt(_0x495918(0x1a3))/0x3+-parseInt(_0x495918(0x1cf))/0x4+-parseInt(_0x495918(0x1af))/0x5+-parseInt(_0x495918(0x1b2))/0x6*(-parseInt(_0x495918(0x1d5))/0x7)+parseInt(_0x495918(0x1b0))/0x8;if(_0x5a9811===_0xbbda54)break;else _0x290d35['push'](_0x290d35['shift']());}catch(_0xe761a7){_0x290d35['push'](_0x290d35['shift']());}}}(a0_0xf7b8,0x3a2c7));import{describe,test,expect}from'@jest/globals';function a0_0xf7b8(){const _0x1dcef2=['revfufnfruS','z3b0ltq','l2fWAs9SBg0VBw9KzwXZ','tu9eruXFq0furuDpuLKGAw5JBhvKzxmGBwfQB3iGteXnihbYB3zPzgvYCW','teXnx01prevmuW','DxnLqwDLBNrdB250CM9SigHVB2SGAw50zwDYyxrLCYb3AxrOifnLC3nPB24Gyw5Kie1LC3nHz2vsB3v0zxi','Dg9czurLzMLUzwq','Dg9vChbLCKnHC2u','q0Hbva','zMLSDgvY','oduYotqYC3jRzKTS','zNvUy3rPB24','Bg9JywXOB3n0','Dg9czq','quDftLrtx01prevFr0vu','lI4VlI4VC3rHDguVDxnLqwDLBNrdB250CM9SlMPZ','zgvLChnLzwSTy2HHDa','BwLJCM9ZB2z0','zgvLChnLzwS','mJK0oty0EKrorgPu','A2v5CW','teXnig1VzgvSCYbLBMrWB2LUDcbLEgLZDhm','DxnLqwDLBNrdB250CM9S','t3jJAgvZDhjHDg9YigvUzhbVAw50igv4Axn0CYbMB3iGBw9KzwWGyw5KignVBMzPzYbVCgvYyxrPB25Z','lI4VlI4VyxbPl3nLC3nPB24UANm','otyYmtaXzuXXqwnx','quDftLq','quDftLrFtu9ersbJB25ZDgfUDhmGyxjLigrLzMLUzwq','y2f0zwDVCNK','y2XHDwrLltmTns1ZB25Uzxq','Dg9nyxrJAa','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsw1WB3j0CW','l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','oMfNzw50swq','t1bftKfj','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzwWGrMLSDgvYAw5N','mtmZmJa5nLzTA2rUyq','v1nFtuvtu0fhrv9uwvbfigLUy2X1zgvZig1VzguGyw5Kig1VzgvSignOyw5NzsbLDMvUDhm','yw50AhjVCgLJ','zgvMyxvSDa','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzsbtD2L0y2HPBMCGtg9NAwm','tuLduK9tt0zu','ywDLBNrFBw9Kzv9JAgfUz2vK','twvZC2fNzvjVDxrLCG','quDftLrFtu9erv9dsefor0ve','qu5usfjpueLd','quDftLrFtu9erq','otG0mJiWy3rvz0LL','ndyZmJG4mgHHEMXnuW','mZyYnJKZzuTNz3rh','mtjyu3jiBuK','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0GqvbjievUzhbVAw50CYbwywXPzgf0Aw9U','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','Dg9dB250ywLU','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gq29UC3rHBNrZ','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsw50zwDYyxrPB24','l2fWAs9VCMnOzxn0CMf0B3i','ywXS','BgvUz3rO'];a0_0xf7b8=function(){return _0x1dcef2;};return a0_0xf7b8();}describe(a0_0x19f726(0x1db),()=>{test('useAgentControl hook can be imported',async()=>{const _0x33ff4a=a0_0x2982,{useAgentControl:_0x44c209}=await import(_0x33ff4a(0x1cb));expect(_0x44c209)[_0x33ff4a(0x1c2)](),expect(typeof _0x44c209)['toBe']('function');}),test('useAgentControl is default export',async()=>{const _0x456987=a0_0x2982,module=await import(_0x456987(0x1cb));expect(module['default'])[_0x456987(0x1c2)](),expect(typeof module['default'])[_0x456987(0x1c9)](_0x456987(0x1c7)),expect(module[_0x456987(0x1a6)])['toBe'](module['useAgentControl']);});}),describe(a0_0x19f726(0x1b6),()=>{const _0x2ac40e=a0_0x19f726;test(_0x2ac40e(0x1d7),async()=>{const _0x5232e0=_0x2ac40e,{AGENT_MODE:_0x4ab863}=await import(_0x5232e0(0x1a7));expect(_0x4ab863)[_0x5232e0(0x1c2)](),expect(_0x4ab863['CHAT'])['toBe']('CHAT'),expect(_0x4ab863[_0x5232e0(0x1d6)])['toBe']('AGENT');}),test('MODEL_CATEGORY\x20constants\x20are\x20defined',async()=>{const _0x2e1f77=_0x2ac40e,{MODEL_CATEGORY:_0x58b89a}=await import('../../config/constants.js');expect(_0x58b89a)[_0x2e1f77(0x1c2)](),expect(_0x58b89a[_0x2e1f77(0x1ad)])[_0x2e1f77(0x1c9)]('anthropic'),expect(_0x58b89a['OPENAI'])['toBe']('openai'),expect(_0x58b89a[_0x2e1f77(0x1bc)])['toBe'](_0x2e1f77(0x1ce)),expect(_0x58b89a[_0x2e1f77(0x1a9)])['toBe'](_0x2e1f77(0x1cd));}),test('Mode\x20and\x20model\x20API\x20endpoints\x20are\x20defined',async()=>{const _0x238e2e=_0x2ac40e,{API_ENDPOINTS:_0x368ece}=await import('../../config/constants.js');expect(_0x368ece['AGENTS_MODE_SET'])[_0x238e2e(0x1c9)](_0x238e2e(0x1dc)),expect(_0x368ece[_0x238e2e(0x1ca)])['toBe']('/api/agents/:agentId/mode'),expect(_0x368ece['LLM_MODELS'])[_0x238e2e(0x1c9)](_0x238e2e(0x1be));}),test(_0x2ac40e(0x1a4),async()=>{const _0x5abf00=_0x2ac40e,{WS_MESSAGE_TYPE:_0x3bfb76}=await import(_0x5abf00(0x1a7));expect(_0x3bfb76)[_0x5abf00(0x1c2)](),expect(_0x3bfb76[_0x5abf00(0x1ac)])[_0x5abf00(0x1c9)](_0x5abf00(0x1aa));});}),describe(a0_0x19f726(0x1b8),()=>{const _0x4e4e00=a0_0x19f726;test(_0x4e4e00(0x1c1),async()=>{const _0x2725f1=_0x4e4e00,{useAgentControl:_0x298889}=await import(_0x2725f1(0x1cb)),{SessionManager:_0x307fa4}=await import(_0x2725f1(0x1d4)),{MessageRouter:_0x52862a}=await import('../../api/messageRouter.js'),{WebSocketManager:_0x47113c}=await import(_0x2725f1(0x1b7)),_0x893592=new _0x307fa4(_0x2725f1(0x1c8),0x1f90),_0x13a294=new _0x47113c(_0x2725f1(0x1c8),0x1f90),_0x204ca5=new _0x52862a(_0x13a294);expect(_0x893592)[_0x2725f1(0x1c2)](),expect(_0x204ca5)[_0x2725f1(0x1c2)](),expect(typeof _0x298889)['toBe']('function');}),test('Full agent control stack can be imported together',async()=>{const _0xbca627=_0x4e4e00,[_0x4cb5e3,_0x1b152e,_0x327dbf,_0x5e3e88,_0x580611]=await Promise[_0xbca627(0x1ba)]([import('../../config/constants.js'),import(_0xbca627(0x1d4)),import('../../api/websocket.js'),import(_0xbca627(0x1b4)),import(_0xbca627(0x1cb))]);expect(_0x4cb5e3[_0xbca627(0x1ae)])[_0xbca627(0x1c2)](),expect(_0x4cb5e3['MODEL_CATEGORY'])['toBeDefined'](),expect(_0x4cb5e3['API_ENDPOINTS'])['toBeDefined'](),expect(_0x1b152e['SessionManager'])[_0xbca627(0x1c2)](),expect(_0x327dbf['WebSocketManager'])[_0xbca627(0x1c2)](),expect(_0x5e3e88[_0xbca627(0x1ab)])['toBeDefined'](),expect(_0x580611[_0xbca627(0x1d2)])['toBeDefined']();});}),describe(a0_0x19f726(0x1b3),()=>{const _0x12844d=a0_0x19f726;test('Agent\x20mode\x20endpoints\x20follow\x20RESTful\x20pattern',async()=>{const _0x3f49ad=a0_0x2982,{API_ENDPOINTS:_0x5a5428}=await import(_0x3f49ad(0x1a7));expect(_0x5a5428['AGENTS_MODE_SET'])[_0x3f49ad(0x1da)](/^\/api\/agents/),expect(_0x5a5428[_0x3f49ad(0x1ca)])[_0x3f49ad(0x1da)](/^\/api\/agents/),expect(_0x5a5428['AGENTS_MODE_SET'])['toContain'](_0x3f49ad(0x1a0)),expect(_0x5a5428[_0x3f49ad(0x1ca)])['toContain'](_0x3f49ad(0x1a0));}),test(_0x12844d(0x1d1),async()=>{const _0x239cc8=_0x12844d,{API_ENDPOINTS:_0x20a6e8}=await import('../../config/constants.js');expect(_0x20a6e8['LLM_MODELS'])['toBeDefined'](),expect(_0x20a6e8[_0x239cc8(0x1c0)])[_0x239cc8(0x1c9)](_0x239cc8(0x1be));}),test(_0x12844d(0x1d3),async()=>{const _0x5abdef=_0x12844d,{API_ENDPOINTS:_0x565135}=await import(_0x5abdef(0x1a7));expect(_0x565135['ORCHESTRATOR'])['toBeDefined'](),expect(_0x565135['ORCHESTRATOR'])['toBe'](_0x5abdef(0x1b9));});}),describe('Agent\x20Control\x20Management\x20-\x20Hook\x20Interface\x20Verification',()=>{test('useAgentControl\x20returns\x20expected\x20interface\x20shape',async()=>{const _0x37ca1b=a0_0x2982,{useAgentControl:_0x42df42}=await import('../../state/useAgentControl.js');expect(_0x42df42['length'])[_0x37ca1b(0x1c9)](0x3);});}),describe('Agent\x20Control\x20Management\x20-\x20Constants\x20Validation',()=>{const _0x2db573=a0_0x19f726;test('AGENT_MODE\x20has\x20exactly\x20two\x20modes',async()=>{const _0x378112=a0_0x2982,{AGENT_MODE:_0x1df5ca}=await import('../../config/constants.js'),_0x574298=Object[_0x378112(0x1d0)](_0x1df5ca);expect(_0x574298[_0x378112(0x1bb)])['toBe'](0x2),expect(_0x574298)['toContain'](_0x378112(0x1c4)),expect(_0x574298)['toContain'](_0x378112(0x1d6));}),test('AGENT_MODE\x20values\x20are\x20uppercase',async()=>{const _0x542063=a0_0x2982,{AGENT_MODE:_0x5f14d5}=await import(_0x542063(0x1a7));expect(_0x5f14d5['CHAT'])[_0x542063(0x1c9)]('CHAT'),expect(_0x5f14d5[_0x542063(0x1d6)])['toBe'](_0x542063(0x1d6)),expect(_0x5f14d5[_0x542063(0x1c4)])['toBe'](_0x5f14d5['CHAT'][_0x542063(0x1c3)]()),expect(_0x5f14d5[_0x542063(0x1d6)])[_0x542063(0x1c9)](_0x5f14d5[_0x542063(0x1d6)][_0x542063(0x1c3)]());}),test('MODEL_CATEGORY\x20values\x20are\x20lowercase',async()=>{const _0x3e2efc=a0_0x2982,{MODEL_CATEGORY:_0x1be960}=await import('../../config/constants.js');expect(_0x1be960[_0x3e2efc(0x1ad)])['toBe'](_0x3e2efc(0x1a5)),expect(_0x1be960[_0x3e2efc(0x1a1)])[_0x3e2efc(0x1c9)]('openai'),expect(_0x1be960['DEEPSEEK'])[_0x3e2efc(0x1c9)]('deepseek'),expect(_0x1be960['MICROSOFT'])['toBe']('microsoft'),expect(_0x1be960[_0x3e2efc(0x1ad)])['toBe'](_0x1be960[_0x3e2efc(0x1ad)]['toLowerCase']()),expect(_0x1be960[_0x3e2efc(0x1a1)])[_0x3e2efc(0x1c9)](_0x1be960[_0x3e2efc(0x1a1)]['toLowerCase']());}),test(_0x2db573(0x1bf),async()=>{const _0x2f39c4=_0x2db573,{MODEL_CATEGORY:_0x168221}=await import('../../config/constants.js'),_0x14de46=Object[_0x2f39c4(0x1d0)](_0x168221);expect(_0x14de46)[_0x2f39c4(0x1b5)](_0x2f39c4(0x1ad)),expect(_0x14de46)[_0x2f39c4(0x1b5)]('OPENAI'),expect(_0x14de46)[_0x2f39c4(0x1b5)]('DEEPSEEK'),expect(_0x14de46)['toContain'](_0x2f39c4(0x1a9));});}),describe('Agent\x20Control\x20Management\x20-\x20WebSocket\x20Event\x20Handlers',()=>{test('MessageRouter\x20has\x20mode\x20change\x20event\x20handler\x20registered',async()=>{const _0x505c83=a0_0x2982,{MessageRouter:_0x2b5293}=await import(_0x505c83(0x1b4)),{WebSocketManager:_0x25cb28}=await import('../../api/websocket.js'),{WS_MESSAGE_TYPE:_0xc4efb7}=await import('../../config/constants.js'),_0x40549c=new _0x25cb28('localhost',0x1f90),_0x26bec1=new _0x2b5293(_0x40549c);expect(_0x26bec1['hasHandler'](_0xc4efb7[_0x505c83(0x1ac)]))['toBe'](!![]);});}),describe(a0_0x19f726(0x1a8),()=>{test('AGENT_MODE\x20supports\x20toggling\x20between\x20modes',async()=>{const _0x307258=a0_0x2982,{AGENT_MODE:_0x6031b}=await import(_0x307258(0x1a7));let _0x113035=_0x6031b['CHAT'],_0x5dc216=_0x113035===_0x6031b[_0x307258(0x1c4)]?_0x6031b[_0x307258(0x1d6)]:_0x6031b['CHAT'];expect(_0x5dc216)[_0x307258(0x1c9)](_0x6031b['AGENT']),_0x113035=_0x6031b[_0x307258(0x1d6)],_0x5dc216=_0x113035===_0x6031b[_0x307258(0x1c4)]?_0x6031b['AGENT']:_0x6031b[_0x307258(0x1c4)],expect(_0x5dc216)['toBe'](_0x6031b[_0x307258(0x1c4)]);});}),describe(a0_0x19f726(0x1a2),()=>{test('MODEL_CATEGORY\x20can\x20be\x20used\x20to\x20filter\x20models\x20by\x20category',async()=>{const _0x345f6b=a0_0x2982,{MODEL_CATEGORY:_0x7491f8}=await import('../../config/constants.js'),_0x44127e=[{'id':'claude-3-5-sonnet','category':_0x7491f8[_0x345f6b(0x1ad)]},{'id':_0x345f6b(0x1bd),'category':_0x7491f8[_0x345f6b(0x1a1)]},{'id':_0x345f6b(0x1cc),'category':_0x7491f8[_0x345f6b(0x1bc)]}],_0x2386b=_0x44127e['filter'](_0x57e2ab=>_0x57e2ab['category']===_0x7491f8['ANTHROPIC']),_0x2bd3dd=_0x44127e[_0x345f6b(0x1c5)](_0x25ded7=>_0x25ded7[_0x345f6b(0x1d8)]===_0x7491f8[_0x345f6b(0x1a1)]);expect(_0x2386b['length'])[_0x345f6b(0x1c9)](0x1),expect(_0x2386b[0x0]['id'])[_0x345f6b(0x1c9)](_0x345f6b(0x1d9)),expect(_0x2bd3dd['length'])[_0x345f6b(0x1c9)](0x1),expect(_0x2bd3dd[0x0]['id'])[_0x345f6b(0x1c9)](_0x345f6b(0x1bd));});});
@@ -1 +1 @@
1
- const a0_0xb37efe=a0_0x2583;function a0_0x27f9(){const _0x4f7b3c=['mJrRy3HsyNi','quDftLrtx01fvefeqvrb','qunusvzf','zgf0ys1HBMfSExn0','refuqv9btKfmwvnu','l2fWAs9Hz2vUDhmVoMfNzw50swqVBwv0ywrHDge','mtC5ndaXnLLYEg1sBq','mNHurgvXtq','quDftLrFtu9ersbJB25ZDgfUDhmGyxjLigrLzMLUzwq','mZuZmZa3ovf1Ew1fra','qwDLBNqGtwfUywDLBwvUDcaTienVBNn0yw50CW','zgvMyxvSDa','l2fWAs9Hz2vUDhmVyxzHAwXHyMXL','quDftLrtx1nut1a','Dg9dB250ywLU','quDftLrtx01prevFr0vu','oMfNzw50swq','t1jdsevtvfjbve9s','lI4VlI4VC3rHDguVDxnLqwDLBNrZlMPZ','q1vtve9n','nZi5odCZv2nqBKD6','quDftLrtx01prevFu0vu','Dg9czq','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','mZC4otmYnuHMthnoAa','DxnLqwDLBNrZ','quDftLrFtu9erq','ohv0DhrsDa','Cgf1C2vK','ywn0AxzL','v2vIu29JA2v0twfUywDLCG','q09esu5hx0ftu0Ltvefova','t3jJAgvZDhjHDg9YigvUzhbVAw50igv4Axn0CYbMB3iGywDLBNqGB3bLCMf0Aw9UCW','C3LZDgvTlwfKBwLUAxn0CMf0B3i','mJuWmte4mhzMAgXTBG','mJmWBxjlzKrV','mtiWq092tMj0','y29KAw5NlwfZC2LZDgfUDa','l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','ywXS','surmrq','zNvUy3rPB24','ode1mJy2u3zwseXs','Dg9nyxrJAa','mtuZnZyWmZjiA0fwueC','qwDLBNqGtwfUywDLBwvUDcaTiefqssbfBMrWB2LUDhmGvMfSAwrHDgLVBG','Dg9czurLzMLUzwq'];a0_0x27f9=function(){return _0x4f7b3c;};return a0_0x27f9();}function a0_0x2583(_0x5af625,_0x12c3c6){_0x5af625=_0x5af625-0x11e;const _0x27f9c4=a0_0x27f9();let _0x25831e=_0x27f9c4[_0x5af625];if(a0_0x2583['ZufLAD']===undefined){var _0x1c6f78=function(_0x4c59ab){const _0x54dc64='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36bf9b='',_0x51bebc='';for(let _0x445a3f=0x0,_0xe1780f,_0x5af77a,_0x18c336=0x0;_0x5af77a=_0x4c59ab['charAt'](_0x18c336++);~_0x5af77a&&(_0xe1780f=_0x445a3f%0x4?_0xe1780f*0x40+_0x5af77a:_0x5af77a,_0x445a3f++%0x4)?_0x36bf9b+=String['fromCharCode'](0xff&_0xe1780f>>(-0x2*_0x445a3f&0x6)):0x0){_0x5af77a=_0x54dc64['indexOf'](_0x5af77a);}for(let _0x493557=0x0,_0x447cbe=_0x36bf9b['length'];_0x493557<_0x447cbe;_0x493557++){_0x51bebc+='%'+('00'+_0x36bf9b['charCodeAt'](_0x493557)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51bebc);};a0_0x2583['upPkGK']=_0x1c6f78,a0_0x2583['jfccTX']={},a0_0x2583['ZufLAD']=!![];}const _0x59de1b=_0x27f9c4[0x0],_0x35cc10=_0x5af625+_0x59de1b,_0x46c836=a0_0x2583['jfccTX'][_0x35cc10];return!_0x46c836?(_0x25831e=a0_0x2583['upPkGK'](_0x25831e),a0_0x2583['jfccTX'][_0x35cc10]=_0x25831e):_0x25831e=_0x46c836,_0x25831e;}(function(_0x2efaf4,_0x476597){const _0x53f597=a0_0x2583,_0x41efce=_0x2efaf4();while(!![]){try{const _0x1db1f9=parseInt(_0x53f597(0x13d))/0x1*(parseInt(_0x53f597(0x131))/0x2)+parseInt(_0x53f597(0x13f))/0x3+parseInt(_0x53f597(0x122))/0x4*(-parseInt(_0x53f597(0x11f))/0x5)+parseInt(_0x53f597(0x136))/0x6*(-parseInt(_0x53f597(0x13c))/0x7)+parseInt(_0x53f597(0x133))/0x8+parseInt(_0x53f597(0x14a))/0x9*(parseInt(_0x53f597(0x12a))/0xa)+-parseInt(_0x53f597(0x129))/0xb*(parseInt(_0x53f597(0x12b))/0xc);if(_0x1db1f9===_0x476597)break;else _0x41efce['push'](_0x41efce['shift']());}catch(_0x1b97ab){_0x41efce['push'](_0x41efce['shift']());}}}(a0_0x27f9,0xebb88));import{describe,test,expect}from'@jest/globals';describe('Agent\x20Management\x20-\x20Imports',()=>{test('useAgents hook can be imported',async()=>{const _0x4c5209=a0_0x2583,{useAgents:_0x36bf9b}=await import(_0x4c5209(0x148));expect(_0x36bf9b)[_0x4c5209(0x135)](),expect(typeof _0x36bf9b)['toBe'](_0x4c5209(0x130));}),test('useAgents is default export',async()=>{const _0x76bdb9=a0_0x2583,module=await import(_0x76bdb9(0x148));expect(module[_0x76bdb9(0x141)])['toBeDefined'](),expect(typeof module['default'])['toBe']('function'),expect(module['default'])['toBe'](module[_0x76bdb9(0x120)]);});}),describe(a0_0xb37efe(0x140),()=>{const _0x5a7a82=a0_0xb37efe;test(_0x5a7a82(0x13e),async()=>{const _0x46bcd8=_0x5a7a82,{AGENT_MODE:_0x51bebc}=await import(_0x46bcd8(0x11e));expect(_0x51bebc)[_0x46bcd8(0x135)](),expect(_0x51bebc['CHAT'])[_0x46bcd8(0x14c)]('CHAT'),expect(_0x51bebc['AGENT'])['toBe']('AGENT');}),test('AGENT_STATUS\x20constants\x20are\x20defined',async()=>{const _0x4e15df=_0x5a7a82,{AGENT_STATUS:_0x445a3f}=await import(_0x4e15df(0x11e));expect(_0x445a3f)[_0x4e15df(0x135)](),expect(_0x445a3f[_0x4e15df(0x138)])['toBe'](_0x4e15df(0x124)),expect(_0x445a3f['PAUSED'])['toBe'](_0x4e15df(0x123)),expect(_0x445a3f[_0x4e15df(0x12f)])[_0x4e15df(0x14c)]('idle'),expect(_0x445a3f['ERROR'])[_0x4e15df(0x14c)]('error'),expect(_0x445a3f['ARCHIVED'])[_0x4e15df(0x14c)]('archived');}),test('Agent\x20API\x20endpoints\x20are\x20defined',async()=>{const _0x53de0c=_0x5a7a82,{API_ENDPOINTS:_0xe1780f}=await import(_0x53de0c(0x11e));expect(_0xe1780f['AGENTS_AVAILABLE'])[_0x53de0c(0x14c)](_0x53de0c(0x142)),expect(_0xe1780f['AGENTS_METADATA'])['toBe'](_0x53de0c(0x13b)),expect(_0xe1780f['AGENTS_IMPORT'])['toBe']('/api/agents/import'),expect(_0xe1780f[_0x53de0c(0x14b)])['toBe']('/api/agents/:agentId/mode'),expect(_0xe1780f['AGENTS_MODE_GET'])[_0x53de0c(0x14c)](_0x53de0c(0x12d)),expect(_0xe1780f['AGENTS_STOP'])[_0x53de0c(0x14c)]('/api/agents/:agentId/stop');}),test('AGENT_TEMPLATES\x20constants\x20are\x20defined',async()=>{const _0x1cb4e2=_0x5a7a82,{AGENT_TEMPLATES:_0x5af77a}=await import('../../config/constants.js');expect(_0x5af77a)['toBeDefined'](),expect(_0x5af77a[_0x1cb4e2(0x126)])[_0x1cb4e2(0x14c)](_0x1cb4e2(0x12c)),expect(_0x5af77a[_0x1cb4e2(0x13a)])['toBe'](_0x1cb4e2(0x139)),expect(_0x5af77a['CREATIVE_WRITER'])['toBe']('creative-writer'),expect(_0x5af77a['SYSTEM_ADMINISTRATOR'])['toBe'](_0x1cb4e2(0x128)),expect(_0x5af77a[_0x1cb4e2(0x149)])[_0x1cb4e2(0x14c)]('custom');});}),describe('Agent\x20Management\x20-\x20Integration',()=>{test('useAgents\x20hook\x20integrates\x20with\x20Session\x20and\x20MessageRouter',async()=>{const _0x3e2c2a=a0_0x2583,{useAgents:_0x18c336}=await import('../../state/useAgents.js'),{SessionManager:_0x493557}=await import('../../api/session.js'),{MessageRouter:_0x447cbe}=await import('../../api/messageRouter.js'),{WebSocketManager:_0x9d6006}=await import('../../api/websocket.js'),_0x3d97d4=new _0x493557('localhost',0x1f90),_0x4bd7b8=new _0x9d6006('localhost',0x1f90),_0x3ac482=new _0x447cbe(_0x4bd7b8);expect(_0x3d97d4)[_0x3e2c2a(0x135)](),expect(_0x3ac482)['toBeDefined'](),expect(typeof _0x18c336)['toBe']('function');}),test('Full agent management stack can be imported together',async()=>{const _0x147d7b=a0_0x2583,[_0x526bc5,_0x26ce01,_0x320863,_0x5753b5,_0x195768]=await Promise[_0x147d7b(0x12e)]([import(_0x147d7b(0x11e)),import('../../api/session.js'),import('../../api/websocket.js'),import('../../api/messageRouter.js'),import(_0x147d7b(0x148))]);expect(_0x526bc5[_0x147d7b(0x121)])[_0x147d7b(0x135)](),expect(_0x26ce01['SessionManager'])[_0x147d7b(0x135)](),expect(_0x320863[_0x147d7b(0x125)])[_0x147d7b(0x135)](),expect(_0x5753b5['MessageRouter'])['toBeDefined'](),expect(_0x195768['useAgents'])['toBeDefined']();});}),describe(a0_0xb37efe(0x134),()=>{const _0x31363e=a0_0xb37efe;test('All\x20agent\x20endpoints\x20follow\x20RESTful\x20pattern',async()=>{const _0x2ca650=a0_0x2583,{API_ENDPOINTS:_0x1d23a9}=await import(_0x2ca650(0x11e));expect(_0x1d23a9['AGENTS_AVAILABLE'])['toMatch'](/^\/api\/agents/),expect(_0x1d23a9[_0x2ca650(0x137)])['toMatch'](/^\/api\/agents/),expect(_0x1d23a9['AGENTS_IMPORT'])['toMatch'](/^\/api\/agents/),expect(_0x1d23a9['AGENTS_MODE_SET'])['toMatch'](/^\/api\/agents/),expect(_0x1d23a9[_0x2ca650(0x145)])['toMatch'](/^\/api\/agents/),expect(_0x1d23a9[_0x2ca650(0x143)])[_0x2ca650(0x132)](/^\/api\/agents/),expect(_0x1d23a9['AGENTS_METADATA'])['toContain'](_0x2ca650(0x146)),expect(_0x1d23a9[_0x2ca650(0x14b)])[_0x2ca650(0x144)](':agentId'),expect(_0x1d23a9['AGENTS_MODE_GET'])['toContain'](_0x2ca650(0x146)),expect(_0x1d23a9['AGENTS_STOP'])[_0x2ca650(0x144)](':agentId');}),test(_0x31363e(0x127),async()=>{const _0x5cdde3=_0x31363e,{API_ENDPOINTS:_0x218db8}=await import(_0x5cdde3(0x11e));expect(_0x218db8['ORCHESTRATOR'])[_0x5cdde3(0x135)](),expect(_0x218db8[_0x5cdde3(0x147)])[_0x5cdde3(0x14c)]('/api/orchestrator');});});
1
+ function a0_0x4221(_0x1499c8,_0x284900){_0x1499c8=_0x1499c8-0x16c;const _0x2c9e38=a0_0x2c9e();let _0x42217f=_0x2c9e38[_0x1499c8];if(a0_0x4221['FrUVEA']===undefined){var _0x4a36c6=function(_0x11571b){const _0x57bd24='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x45ea08='',_0x4f0f65='';for(let _0x55eeeb=0x0,_0x2c2dc7,_0x4a2ac2,_0x404c17=0x0;_0x4a2ac2=_0x11571b['charAt'](_0x404c17++);~_0x4a2ac2&&(_0x2c2dc7=_0x55eeeb%0x4?_0x2c2dc7*0x40+_0x4a2ac2:_0x4a2ac2,_0x55eeeb++%0x4)?_0x45ea08+=String['fromCharCode'](0xff&_0x2c2dc7>>(-0x2*_0x55eeeb&0x6)):0x0){_0x4a2ac2=_0x57bd24['indexOf'](_0x4a2ac2);}for(let _0x3f3740=0x0,_0x2e3dd0=_0x45ea08['length'];_0x3f3740<_0x2e3dd0;_0x3f3740++){_0x4f0f65+='%'+('00'+_0x45ea08['charCodeAt'](_0x3f3740)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f0f65);};a0_0x4221['JuhXel']=_0x4a36c6,a0_0x4221['gBZIxk']={},a0_0x4221['FrUVEA']=!![];}const _0x496532=_0x2c9e38[0x0],_0x3f8c3a=_0x1499c8+_0x496532,_0x779e61=a0_0x4221['gBZIxk'][_0x3f8c3a];return!_0x779e61?(_0x42217f=a0_0x4221['JuhXel'](_0x42217f),a0_0x4221['gBZIxk'][_0x3f8c3a]=_0x42217f):_0x42217f=_0x779e61,_0x42217f;}const a0_0x5362b0=a0_0x4221;(function(_0x5a73ee,_0x2e673d){const _0x4aa090=a0_0x4221,_0x1beb3e=_0x5a73ee();while(!![]){try{const _0x39d99c=parseInt(_0x4aa090(0x181))/0x1+parseInt(_0x4aa090(0x196))/0x2+-parseInt(_0x4aa090(0x187))/0x3+-parseInt(_0x4aa090(0x182))/0x4+parseInt(_0x4aa090(0x19a))/0x5+parseInt(_0x4aa090(0x16e))/0x6+-parseInt(_0x4aa090(0x173))/0x7*(-parseInt(_0x4aa090(0x170))/0x8);if(_0x39d99c===_0x2e673d)break;else _0x1beb3e['push'](_0x1beb3e['shift']());}catch(_0x5b0b0b){_0x1beb3e['push'](_0x1beb3e['shift']());}}}(a0_0x2c9e,0x945a8));import{describe,test,expect}from'@jest/globals';describe('Agent\x20Management\x20-\x20Imports',()=>{test('useAgents hook can be imported',async()=>{const _0xf59c0b=a0_0x4221,{useAgents:_0x45ea08}=await import(_0xf59c0b(0x16f));expect(_0x45ea08)['toBeDefined'](),expect(typeof _0x45ea08)[_0xf59c0b(0x190)]('function');}),test('useAgents is default export',async()=>{const _0x360c8a=a0_0x4221,module=await import('../../state/useAgents.js');expect(module['default'])['toBeDefined'](),expect(typeof module['default'])[_0x360c8a(0x190)]('function'),expect(module[_0x360c8a(0x194)])['toBe'](module['useAgents']);});}),describe(a0_0x5362b0(0x171),()=>{const _0x490790=a0_0x5362b0;test('AGENT_MODE\x20constants\x20are\x20defined',async()=>{const _0x1bb981=a0_0x4221,{AGENT_MODE:_0x4f0f65}=await import(_0x1bb981(0x197));expect(_0x4f0f65)['toBeDefined'](),expect(_0x4f0f65['CHAT'])['toBe']('CHAT'),expect(_0x4f0f65['AGENT'])['toBe']('AGENT');}),test(_0x490790(0x191),async()=>{const _0xc02d6a=_0x490790,{AGENT_STATUS:_0x55eeeb}=await import('../../config/constants.js');expect(_0x55eeeb)[_0xc02d6a(0x189)](),expect(_0x55eeeb[_0xc02d6a(0x17d)])['toBe']('active'),expect(_0x55eeeb['PAUSED'])['toBe'](_0xc02d6a(0x180)),expect(_0x55eeeb[_0xc02d6a(0x177)])[_0xc02d6a(0x190)]('idle'),expect(_0x55eeeb[_0xc02d6a(0x19b)])['toBe']('error'),expect(_0x55eeeb['ARCHIVED'])['toBe'](_0xc02d6a(0x17b));}),test(_0x490790(0x16d),async()=>{const _0x9e0ad7=_0x490790,{API_ENDPOINTS:_0x2c2dc7}=await import(_0x9e0ad7(0x197));expect(_0x2c2dc7[_0x9e0ad7(0x193)])['toBe']('/api/agents/available'),expect(_0x2c2dc7[_0x9e0ad7(0x17e)])[_0x9e0ad7(0x190)]('/api/agents/:agentId/metadata'),expect(_0x2c2dc7['AGENTS_IMPORT'])['toBe']('/api/agents/import'),expect(_0x2c2dc7[_0x9e0ad7(0x17c)])['toBe'](_0x9e0ad7(0x198)),expect(_0x2c2dc7[_0x9e0ad7(0x18f)])['toBe']('/api/agents/:agentId/mode'),expect(_0x2c2dc7['AGENTS_STOP'])[_0x9e0ad7(0x190)](_0x9e0ad7(0x172));}),test('AGENT_TEMPLATES\x20constants\x20are\x20defined',async()=>{const _0x4fe8c1=_0x490790,{AGENT_TEMPLATES:_0x4a2ac2}=await import('../../config/constants.js');expect(_0x4a2ac2)['toBeDefined'](),expect(_0x4a2ac2[_0x4fe8c1(0x183)])['toBe'](_0x4fe8c1(0x17f)),expect(_0x4a2ac2[_0x4fe8c1(0x199)])['toBe'](_0x4fe8c1(0x18b)),expect(_0x4a2ac2[_0x4fe8c1(0x179)])[_0x4fe8c1(0x190)](_0x4fe8c1(0x174)),expect(_0x4a2ac2[_0x4fe8c1(0x188)])[_0x4fe8c1(0x190)](_0x4fe8c1(0x178)),expect(_0x4a2ac2['CUSTOM'])[_0x4fe8c1(0x190)]('custom');});}),describe('Agent\x20Management\x20-\x20Integration',()=>{test('useAgents\x20hook\x20integrates\x20with\x20Session\x20and\x20MessageRouter',async()=>{const _0x44e0ef=a0_0x4221,{useAgents:_0x404c17}=await import(_0x44e0ef(0x16f)),{SessionManager:_0x3f3740}=await import(_0x44e0ef(0x16c)),{MessageRouter:_0x2e3dd0}=await import(_0x44e0ef(0x192)),{WebSocketManager:_0x28e414}=await import('../../api/websocket.js'),_0x56fc85=new _0x3f3740('localhost',0x1f90),_0x270d97=new _0x28e414(_0x44e0ef(0x18e),0x1f90),_0x121927=new _0x2e3dd0(_0x270d97);expect(_0x56fc85)[_0x44e0ef(0x189)](),expect(_0x121927)[_0x44e0ef(0x189)](),expect(typeof _0x404c17)['toBe']('function');}),test('Full agent management stack can be imported together',async()=>{const _0x4fd6ae=a0_0x4221,[_0x357ecd,_0x99406b,_0x2fb6b9,_0x3463bc,_0x1892a8]=await Promise['all']([import('../../config/constants.js'),import(_0x4fd6ae(0x16c)),import('../../api/websocket.js'),import('../../api/messageRouter.js'),import(_0x4fd6ae(0x16f))]);expect(_0x357ecd[_0x4fd6ae(0x18d)])[_0x4fd6ae(0x189)](),expect(_0x99406b[_0x4fd6ae(0x186)])['toBeDefined'](),expect(_0x2fb6b9['WebSocketManager'])[_0x4fd6ae(0x189)](),expect(_0x3463bc['MessageRouter'])['toBeDefined'](),expect(_0x1892a8[_0x4fd6ae(0x185)])[_0x4fd6ae(0x189)]();});}),describe(a0_0x5362b0(0x18c),()=>{const _0x455f5e=a0_0x5362b0;test(_0x455f5e(0x195),async()=>{const _0x17a99b=_0x455f5e,{API_ENDPOINTS:_0x4dc9c4}=await import('../../config/constants.js');expect(_0x4dc9c4['AGENTS_AVAILABLE'])[_0x17a99b(0x176)](/^\/api\/agents/),expect(_0x4dc9c4[_0x17a99b(0x17e)])['toMatch'](/^\/api\/agents/),expect(_0x4dc9c4['AGENTS_IMPORT'])['toMatch'](/^\/api\/agents/),expect(_0x4dc9c4['AGENTS_MODE_SET'])['toMatch'](/^\/api\/agents/),expect(_0x4dc9c4[_0x17a99b(0x18f)])[_0x17a99b(0x176)](/^\/api\/agents/),expect(_0x4dc9c4[_0x17a99b(0x175)])['toMatch'](/^\/api\/agents/),expect(_0x4dc9c4[_0x17a99b(0x17e)])['toContain'](_0x17a99b(0x184)),expect(_0x4dc9c4['AGENTS_MODE_SET'])['toContain'](_0x17a99b(0x184)),expect(_0x4dc9c4[_0x17a99b(0x18f)])[_0x17a99b(0x18a)](':agentId'),expect(_0x4dc9c4[_0x17a99b(0x175)])[_0x17a99b(0x18a)](':agentId');}),test('Orchestrator\x20endpoint\x20exists\x20for\x20agent\x20operations',async()=>{const _0x8cef5=_0x455f5e,{API_ENDPOINTS:_0x144379}=await import(_0x8cef5(0x197));expect(_0x144379['ORCHESTRATOR'])['toBeDefined'](),expect(_0x144379[_0x8cef5(0x17a)])['toBe']('/api/orchestrator');});});function a0_0x2c9e(){const _0x245bd2=['l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','refuqv9btKfmwvnu','mJy2nZC0mhj4yuLNta','rvjst1i','lI4VlI4VyxbPl3nLC3nPB24UANm','qwDLBNqGqvbjigvUzhbVAw50CYbHCMuGzgvMAw5Lza','ntC4otaXnLP3A0znyG','lI4VlI4VC3rHDguVDxnLqwDLBNrZlMPZ','mte1mtjhs3zerMe','qwDLBNqGtwfUywDLBwvUDcaTienVBNn0yw50CW','l2fWAs9Hz2vUDhmVoMfNzw50swqVC3rVCa','mZvLr0rjBKi','y3jLyxrPDMuTD3jPDgvY','quDftLrtx1nut1a','Dg9nyxrJAa','surmrq','C3LZDgvTlwfKBwLUAxn0CMf0B3i','q1jfqvrjvKvFv1jjvevs','t1jdsevtvfjbve9s','yxjJAgL2zwq','quDftLrtx01prevFu0vu','qunusvzf','quDftLrtx01fvefeqvrb','y29KAw5NlwfZC2LZDgfUDa','Cgf1C2vK','mtCZndGXv1fstM5b','mZG5nti2mfrlB25XEq','q09esu5hx0ftu0Ltvefova','oMfNzw50swq','DxnLqwDLBNrZ','u2vZC2LVBK1HBMfNzxi','mJu2nJC2n2jwyLHwza','u1Ltvevnx0fetuLosvnuuKfut1i','Dg9czurLzMLUzwq','Dg9dB250ywLU','zgf0ys1HBMfSExn0','qwDLBNqGtwfUywDLBwvUDcaTiefqssbfBMrWB2LUDhmGvMfSAwrHDgLVBG','quDftLrFtu9erq','Bg9JywXOB3n0','quDftLrtx01prevFr0vu','Dg9czq','quDftLrFu1rbvfvtignVBNn0yw50CYbHCMuGzgvMAw5Lza','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','quDftLrtx0fwquLmqujmrq','zgvMyxvSDa','qwXSigfNzw50igvUzhbVAw50CYbMB2XSB3CGuKvtvgz1BcbWyxr0zxjU','mtuXnJaWmeTAshLMzG','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW'];a0_0x2c9e=function(){return _0x245bd2;};return a0_0x2c9e();}
@@ -1 +1 @@
1
- (function(_0x413a48,_0x2091c1){const _0x3221c5=a0_0xc469,_0x3a4e35=_0x413a48();while(!![]){try{const _0x6dc8f5=parseInt(_0x3221c5(0x126))/0x1+-parseInt(_0x3221c5(0x124))/0x2+-parseInt(_0x3221c5(0x117))/0x3+-parseInt(_0x3221c5(0x12b))/0x4*(parseInt(_0x3221c5(0x12e))/0x5)+parseInt(_0x3221c5(0x123))/0x6*(-parseInt(_0x3221c5(0x129))/0x7)+parseInt(_0x3221c5(0x121))/0x8+-parseInt(_0x3221c5(0x11f))/0x9*(-parseInt(_0x3221c5(0x130))/0xa);if(_0x6dc8f5===_0x2091c1)break;else _0x3a4e35['push'](_0x3a4e35['shift']());}catch(_0x2ea085){_0x3a4e35['push'](_0x3a4e35['shift']());}}}(a0_0x210a,0xb1724));function a0_0x210a(){const _0x3b3b36=['DxnLu3rHDgu','tgf5B3v0','lI4VlI4VC3rHDguVDxnLqwDLBNrZlMPZ','sgvHzgvY','zgvMyxvSDa','lI4VlI4VC3rHDguVDxnLvg9VBhmUANm','sw5WDxrcB3G','mta5otCXzvjxDKP4','twvZC2fNzuXPC3q','otK3mdq2ng93uhL3tW','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','otyYnZzlAhP3sxK','mta4mZeZohfuB3D0yq','lI4VlI4VC3rHDguVDxnLqwDLBNrdB250CM9SlMPZ','mtqXndGZnM5Oz1DUDq','Dg9czq','Aw5R','ntC0wxDoug1l','DxnLrwzMzwn0','ndaWmZq5mMTHy1zurW','ywXS','zNvUy3rPB24','nujWwujpAa','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','mty3mezyvffQvG','Dg9czurLzMLUzwq','lI4VlI4VC3rHDguVDxnLtwvZC2fNzxmUANm','lI4VlI4Vy29TCg9Uzw50CY9izwfKzxiUANm','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','mZm1mda0ow5vqun0uq'];a0_0x210a=function(){return _0x3b3b36;};return a0_0x210a();}function a0_0xc469(_0x45f624,_0x211275){_0x45f624=_0x45f624-0x115;const _0x210afc=a0_0x210a();let _0xc469f=_0x210afc[_0x45f624];if(a0_0xc469['BcSHMZ']===undefined){var _0x45924c=function(_0x39bda3){const _0x339b79='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x442d9a='',_0x278384='';for(let _0x356102=0x0,_0x54d7fe,_0x207d2e,_0x16a3e2=0x0;_0x207d2e=_0x39bda3['charAt'](_0x16a3e2++);~_0x207d2e&&(_0x54d7fe=_0x356102%0x4?_0x54d7fe*0x40+_0x207d2e:_0x207d2e,_0x356102++%0x4)?_0x442d9a+=String['fromCharCode'](0xff&_0x54d7fe>>(-0x2*_0x356102&0x6)):0x0){_0x207d2e=_0x339b79['indexOf'](_0x207d2e);}for(let _0x484816=0x0,_0x571372=_0x442d9a['length'];_0x484816<_0x571372;_0x484816++){_0x278384+='%'+('00'+_0x442d9a['charCodeAt'](_0x484816)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x278384);};a0_0xc469['QIkKvn']=_0x45924c,a0_0xc469['FoDsBo']={},a0_0xc469['BcSHMZ']=!![];}const _0x58c4a2=_0x210afc[0x0],_0x1db42c=_0x45f624+_0x58c4a2,_0x2ef26a=a0_0xc469['FoDsBo'][_0x1db42c];return!_0x2ef26a?(_0xc469f=a0_0xc469['QIkKvn'](_0xc469f),a0_0xc469['FoDsBo'][_0x1db42c]=_0xc469f):_0xc469f=_0x2ef26a,_0xc469f;}import{describe,test,expect}from'@jest/globals';describe('Component\x20Management\x20-\x20Imports',()=>{test('Layout component can be imported',async()=>{const _0x39f42c=a0_0xc469,{Layout:_0x442d9a}=await import(_0x39f42c(0x122));expect(_0x442d9a)[_0x39f42c(0x131)](),expect(typeof _0x442d9a)[_0x39f42c(0x127)](_0x39f42c(0x12d));}),test('Layout is default export',async()=>{const _0x5e86d0=a0_0xc469,module=await import('../../components/Layout.js');expect(module['default'])['toBeDefined'](),expect(typeof module['default'])['toBe'](_0x5e86d0(0x12d)),expect(module[_0x5e86d0(0x11c)])[_0x5e86d0(0x127)](module[_0x5e86d0(0x119)]);}),test('Header component can be imported',async()=>{const _0x38be57=a0_0xc469,{Header:_0x278384}=await import(_0x38be57(0x115));expect(_0x278384)[_0x38be57(0x131)](),expect(typeof _0x278384)[_0x38be57(0x127)]('function');}),test('Header is default export',async()=>{const _0x2571c4=a0_0xc469,module=await import('../../components/Header.js');expect(module[_0x2571c4(0x11c)])['toBeDefined'](),expect(module[_0x2571c4(0x11c)])['toBe'](module['Header']);}),test('StatusBar component can be imported',async()=>{const _0x2b1a8b=a0_0xc469,{StatusBar:_0x356102}=await import('../../components/StatusBar.js');expect(_0x356102)[_0x2b1a8b(0x131)](),expect(typeof _0x356102)[_0x2b1a8b(0x127)]('function');}),test('StatusBar is default export',async()=>{const _0x21b6aa=a0_0xc469,module=await import('../../components/StatusBar.js');expect(module[_0x21b6aa(0x11c)])['toBeDefined'](),expect(module['default'])['toBe'](module['StatusBar']);}),test('MessageList component can be imported',async()=>{const _0x397ad1=a0_0xc469,{MessageList:_0x54d7fe}=await import('../../components/MessageList.js');expect(_0x54d7fe)['toBeDefined'](),expect(typeof _0x54d7fe)['toBe'](_0x397ad1(0x12d));}),test('MessageList is default export',async()=>{const _0x50b76d=a0_0xc469,module=await import('../../components/MessageList.js');expect(module[_0x50b76d(0x11c)])[_0x50b76d(0x131)](),expect(module['default'])[_0x50b76d(0x127)](module[_0x50b76d(0x120)]);}),test('InputBox component can be imported',async()=>{const _0x40a9e6=a0_0xc469,{InputBox:_0x207d2e}=await import('../../components/InputBox.js');expect(_0x207d2e)[_0x40a9e6(0x131)](),expect(typeof _0x207d2e)['toBe'](_0x40a9e6(0x12d));}),test('InputBox is default export',async()=>{const _0x28ff8a=a0_0xc469,module=await import('../../components/InputBox.js');expect(module['default'])[_0x28ff8a(0x131)](),expect(module[_0x28ff8a(0x11c)])[_0x28ff8a(0x127)](module['InputBox']);});}),describe('Component\x20Management\x20-\x20Integration',()=>{test('All components can be imported together',async()=>{const _0x1dcfb8=a0_0xc469,[_0x16a3e2,_0x484816,_0x571372,_0x11e301,_0x3d4e2b]=await Promise[_0x1dcfb8(0x12c)]([import(_0x1dcfb8(0x122)),import(_0x1dcfb8(0x115)),import('../../components/StatusBar.js'),import('../../components/MessageList.js'),import(_0x1dcfb8(0x12f))]);expect(_0x16a3e2[_0x1dcfb8(0x119)])['toBeDefined'](),expect(_0x484816[_0x1dcfb8(0x11b)])[_0x1dcfb8(0x131)](),expect(_0x571372['StatusBar'])[_0x1dcfb8(0x131)](),expect(_0x11e301['MessageList'])['toBeDefined'](),expect(_0x3d4e2b[_0x1dcfb8(0x11e)])['toBeDefined']();}),test('Layout\x20component\x20integrates\x20with\x20all\x20state\x20hooks',async()=>{const _0x3b805c=a0_0xc469,{Layout:_0x5809f1}=await import('../../components/Layout.js'),{useConnection:_0x1ac280}=await import(_0x3b805c(0x116)),{useAgents:_0x34986b}=await import(_0x3b805c(0x11a)),{useMessages:_0x3ddc56}=await import(_0x3b805c(0x132)),{useAgentControl:_0x5a7b36}=await import(_0x3b805c(0x125)),{useTools:_0x1f4fe8}=await import(_0x3b805c(0x11d));expect(_0x5809f1)['toBeDefined'](),expect(_0x1ac280)['toBeDefined'](),expect(_0x34986b)['toBeDefined'](),expect(_0x3ddc56)['toBeDefined'](),expect(_0x5a7b36)[_0x3b805c(0x131)](),expect(_0x1f4fe8)['toBeDefined']();});}),describe('Component\x20Management\x20-\x20React/Ink\x20Dependencies',()=>{test('Ink components can be imported',async()=>{const _0x39de45=a0_0xc469,{Box:_0x423c5c,Text:_0x4a24ee}=await import(_0x39de45(0x128));expect(_0x423c5c)['toBeDefined'](),expect(_0x4a24ee)['toBeDefined']();}),test('React can be imported',async()=>{const _0x22cc37=a0_0xc469,_0x4f092d=await import('react');expect(_0x4f092d[_0x22cc37(0x11c)])['toBeDefined'](),expect(_0x4f092d[_0x22cc37(0x118)])[_0x22cc37(0x131)](),expect(_0x4f092d[_0x22cc37(0x12a)])['toBeDefined']();});});
1
+ function a0_0x6834(_0x3c77f3,_0x36ed2a){_0x3c77f3=_0x3c77f3-0x1b6;const _0x5179b5=a0_0x5179();let _0x6834f5=_0x5179b5[_0x3c77f3];if(a0_0x6834['fcolri']===undefined){var _0x1b0e1c=function(_0x2288da){const _0x2dfc47='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x533019='',_0x2d5190='';for(let _0x12d96d=0x0,_0x3dc12c,_0x2e5d47,_0x511947=0x0;_0x2e5d47=_0x2288da['charAt'](_0x511947++);~_0x2e5d47&&(_0x3dc12c=_0x12d96d%0x4?_0x3dc12c*0x40+_0x2e5d47:_0x2e5d47,_0x12d96d++%0x4)?_0x533019+=String['fromCharCode'](0xff&_0x3dc12c>>(-0x2*_0x12d96d&0x6)):0x0){_0x2e5d47=_0x2dfc47['indexOf'](_0x2e5d47);}for(let _0x3457eb=0x0,_0xe3b1a=_0x533019['length'];_0x3457eb<_0xe3b1a;_0x3457eb++){_0x2d5190+='%'+('00'+_0x533019['charCodeAt'](_0x3457eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d5190);};a0_0x6834['wdOGJq']=_0x1b0e1c,a0_0x6834['APZpNp']={},a0_0x6834['fcolri']=!![];}const _0x29395c=_0x5179b5[0x0],_0x55af72=_0x3c77f3+_0x29395c,_0x29c006=a0_0x6834['APZpNp'][_0x55af72];return!_0x29c006?(_0x6834f5=a0_0x6834['wdOGJq'](_0x6834f5),a0_0x6834['APZpNp'][_0x55af72]=_0x6834f5):_0x6834f5=_0x29c006,_0x6834f5;}function a0_0x5179(){const _0x41783d=['nJm5nZe3mhDXyNLiEa','ntq0mZyWnxzHCxrIrq','lI4VlI4Vy29TCg9Uzw50CY9nzxnZywDLtgLZDc5QCW','zNvUy3rPB24','mJbnEhPqAMK','Dg9czurLzMLUzwq','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbjBxbVCNrZ','owfOsxzNrW','ndi0mdeZnLvsAMH6sa','ndyWmJC0me93DM1mEq','n3PVAgfZra','u3rHDhvZqMfY','ywXS','Dg9czq','ntK2otCWoffbu3ngAW','mti4odaYD2zHAuHj','CMvHy3q','mte3ndaYmvb0wezPtG','sw5WDxrcB3G','sgvHzgvY','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','zgvMyxvSDa','lI4VlI4VC3rHDguVDxnLtwvZC2fNzxmUANm','DxnLu3rHDgu','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbszwfJDc9jBMSGrgvWzw5Kzw5JAwvZ','lI4VlI4Vy29TCg9Uzw50CY9tDgf0DxncyxiUANm'];a0_0x5179=function(){return _0x41783d;};return a0_0x5179();}const a0_0x537879=a0_0x6834;(function(_0x1dfd21,_0x4dcfd3){const _0x28062d=a0_0x6834,_0x1a061e=_0x1dfd21();while(!![]){try{const _0x5ed232=-parseInt(_0x28062d(0x1ca))/0x1+-parseInt(_0x28062d(0x1bc))/0x2*(-parseInt(_0x28062d(0x1c8))/0x3)+parseInt(_0x28062d(0x1c7))/0x4+-parseInt(_0x28062d(0x1b9))/0x5+parseInt(_0x28062d(0x1b8))/0x6+parseInt(_0x28062d(0x1c3))/0x7*(parseInt(_0x28062d(0x1c1))/0x8)+-parseInt(_0x28062d(0x1c0))/0x9*(parseInt(_0x28062d(0x1c2))/0xa);if(_0x5ed232===_0x4dcfd3)break;else _0x1a061e['push'](_0x1a061e['shift']());}catch(_0x554684){_0x1a061e['push'](_0x1a061e['shift']());}}}(a0_0x5179,0xc2153));import{describe,test,expect}from'@jest/globals';describe(a0_0x537879(0x1bf),()=>{test('Layout component can be imported',async()=>{const {Layout:_0x533019}=await import('../../components/Layout.js');expect(_0x533019)['toBeDefined'](),expect(typeof _0x533019)['toBe']('function');}),test('Layout is default export',async()=>{const _0xf9ad01=a0_0x6834,module=await import('../../components/Layout.js');expect(module['default'])[_0xf9ad01(0x1bd)](),expect(typeof module[_0xf9ad01(0x1ce)])[_0xf9ad01(0x1c6)](_0xf9ad01(0x1bb)),expect(module['default'])[_0xf9ad01(0x1c6)](module['Layout']);}),test('Header component can be imported',async()=>{const _0x6798b2=a0_0x6834,{Header:_0x2d5190}=await import('../../components/Header.js');expect(_0x2d5190)[_0x6798b2(0x1bd)](),expect(typeof _0x2d5190)['toBe']('function');}),test('Header is default export',async()=>{const module=await import('../../components/Header.js');expect(module['default'])['toBeDefined'](),expect(module['default'])['toBe'](module['Header']);}),test('StatusBar component can be imported',async()=>{const _0x25120e=a0_0x6834,{StatusBar:_0x12d96d}=await import('../../components/StatusBar.js');expect(_0x12d96d)[_0x25120e(0x1bd)](),expect(typeof _0x12d96d)['toBe'](_0x25120e(0x1bb));}),test('StatusBar is default export',async()=>{const _0x9dc0db=a0_0x6834,module=await import(_0x9dc0db(0x1b7));expect(module['default'])[_0x9dc0db(0x1bd)](),expect(module[_0x9dc0db(0x1ce)])[_0x9dc0db(0x1c6)](module['StatusBar']);}),test('MessageList component can be imported',async()=>{const _0x4c7303=a0_0x6834,{MessageList:_0x3dc12c}=await import('../../components/MessageList.js');expect(_0x3dc12c)[_0x4c7303(0x1bd)](),expect(typeof _0x3dc12c)[_0x4c7303(0x1c6)]('function');}),test('MessageList is default export',async()=>{const _0x5be6a5=a0_0x6834,module=await import('../../components/MessageList.js');expect(module['default'])['toBeDefined'](),expect(module[_0x5be6a5(0x1ce)])[_0x5be6a5(0x1c6)](module['MessageList']);}),test('InputBox component can be imported',async()=>{const _0x417a6a=a0_0x6834,{InputBox:_0x2e5d47}=await import('../../components/InputBox.js');expect(_0x2e5d47)[_0x417a6a(0x1bd)](),expect(typeof _0x2e5d47)['toBe']('function');}),test('InputBox is default export',async()=>{const _0x5bf26e=a0_0x6834,module=await import('../../components/InputBox.js');expect(module['default'])['toBeDefined'](),expect(module[_0x5bf26e(0x1ce)])['toBe'](module[_0x5bf26e(0x1cb)]);});}),describe('Component\x20Management\x20-\x20Integration',()=>{test('All components can be imported together',async()=>{const _0x4d412e=a0_0x6834,[_0x511947,_0x3457eb,_0xe3b1a,_0x9ae793,_0x51da00]=await Promise[_0x4d412e(0x1c5)]([import(_0x4d412e(0x1be)),import('../../components/Header.js'),import('../../components/StatusBar.js'),import(_0x4d412e(0x1ba)),import('../../components/InputBox.js')]);expect(_0x511947['Layout'])['toBeDefined'](),expect(_0x3457eb[_0x4d412e(0x1cc)])['toBeDefined'](),expect(_0xe3b1a[_0x4d412e(0x1c4)])['toBeDefined'](),expect(_0x9ae793['MessageList'])[_0x4d412e(0x1bd)](),expect(_0x51da00['InputBox'])[_0x4d412e(0x1bd)]();}),test('Layout\x20component\x20integrates\x20with\x20all\x20state\x20hooks',async()=>{const _0x2ddf36=a0_0x6834,{Layout:_0xb9becc}=await import('../../components/Layout.js'),{useConnection:_0x2f752a}=await import(_0x2ddf36(0x1cd)),{useAgents:_0x4552a9}=await import('../../state/useAgents.js'),{useMessages:_0x397e84}=await import(_0x2ddf36(0x1cf)),{useAgentControl:_0x131dc7}=await import('../../state/useAgentControl.js'),{useTools:_0x5dcabe}=await import('../../state/useTools.js');expect(_0xb9becc)[_0x2ddf36(0x1bd)](),expect(_0x2f752a)[_0x2ddf36(0x1bd)](),expect(_0x4552a9)['toBeDefined'](),expect(_0x397e84)[_0x2ddf36(0x1bd)](),expect(_0x131dc7)['toBeDefined'](),expect(_0x5dcabe)['toBeDefined']();});}),describe(a0_0x537879(0x1b6),()=>{test('Ink components can be imported',async()=>{const _0x543cb5=a0_0x6834,{Box:_0x3c2312,Text:_0x2e290f}=await import('ink');expect(_0x3c2312)['toBeDefined'](),expect(_0x2e290f)[_0x543cb5(0x1bd)]();}),test('React can be imported',async()=>{const _0x240c12=a0_0x6834,_0x5ec4fc=await import(_0x240c12(0x1c9));expect(_0x5ec4fc[_0x240c12(0x1ce)])['toBeDefined'](),expect(_0x5ec4fc[_0x240c12(0x1d0)])['toBeDefined'](),expect(_0x5ec4fc['useEffect'])['toBeDefined']();});});
@@ -1 +1 @@
1
- const a0_0x3416bd=a0_0x5cfd;(function(_0x2a4340,_0x560b77){const _0x56299e=a0_0x5cfd,_0xa1acb3=_0x2a4340();while(!![]){try{const _0x173114=-parseInt(_0x56299e(0x1b7))/0x1*(-parseInt(_0x56299e(0x185))/0x2)+-parseInt(_0x56299e(0x1bb))/0x3*(-parseInt(_0x56299e(0x1ba))/0x4)+parseInt(_0x56299e(0x1c2))/0x5+-parseInt(_0x56299e(0x1a4))/0x6*(parseInt(_0x56299e(0x1a6))/0x7)+-parseInt(_0x56299e(0x18a))/0x8*(parseInt(_0x56299e(0x1a8))/0x9)+-parseInt(_0x56299e(0x18d))/0xa*(-parseInt(_0x56299e(0x192))/0xb)+-parseInt(_0x56299e(0x1a5))/0xc;if(_0x173114===_0x560b77)break;else _0xa1acb3['push'](_0xa1acb3['shift']());}catch(_0xd3b69b){_0xa1acb3['push'](_0xa1acb3['shift']());}}}(a0_0x141b,0xd0df3));function a0_0x5cfd(_0x320691,_0x35d226){_0x320691=_0x320691-0x17e;const _0x141b57=a0_0x141b();let _0x5cfdd5=_0x141b57[_0x320691];if(a0_0x5cfd['YrQWJf']===undefined){var _0x17a8a3=function(_0x2a27e5){const _0x8dc14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2b0947='',_0x5c2acf='';for(let _0x733a03=0x0,_0x145024,_0xd763ea,_0x1bb099=0x0;_0xd763ea=_0x2a27e5['charAt'](_0x1bb099++);~_0xd763ea&&(_0x145024=_0x733a03%0x4?_0x145024*0x40+_0xd763ea:_0xd763ea,_0x733a03++%0x4)?_0x2b0947+=String['fromCharCode'](0xff&_0x145024>>(-0x2*_0x733a03&0x6)):0x0){_0xd763ea=_0x8dc14['indexOf'](_0xd763ea);}for(let _0x1c6c77=0x0,_0x13a4b1=_0x2b0947['length'];_0x1c6c77<_0x13a4b1;_0x1c6c77++){_0x5c2acf+='%'+('00'+_0x2b0947['charCodeAt'](_0x1c6c77)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c2acf);};a0_0x5cfd['CDgXot']=_0x17a8a3,a0_0x5cfd['MfUxfD']={},a0_0x5cfd['YrQWJf']=!![];}const _0x5df4d8=_0x141b57[0x0],_0x221231=_0x320691+_0x5df4d8,_0x2941bc=a0_0x5cfd['MfUxfD'][_0x221231];return!_0x2941bc?(_0x5cfdd5=a0_0x5cfd['CDgXot'](_0x5cfdd5),a0_0x5cfd['MfUxfD'][_0x221231]=_0x5cfdd5):_0x5cfdd5=_0x2941bc,_0x5cfdd5;}function a0_0x141b(){const _0xee74b4=['Dxb0Aw1L','BwLU','Dg9czq','nZm5oduWmhLKqwLKvG','DxnLq29UBMvJDgLVBG','Bg9JywXOB3n0','Dg9czuDYzwf0zxjuAgfUt3jfCxvHBa','lI4VlI4VyxbPl3nLC3nPB24UANm','q29UBMvJDgLVBIbPBMzVihnOB3vSzcbJB250ywLUigfSBcbTzxrYAwnZ','su5jveLbtf9eruXbwq','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsw1WB3j0CW','B2zM','nJqXmJjSy0P1EvO','q29UBMvJDgLVBIb1ChrPBwuGy2fUigjLihrYywnRzwq','u2vZC2LVBK1HBMfNzxi','CMvJB25Uzwn0Aw5N','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','ofbetwXVuq','uKvdt05orunux0nptKzjrYb2ywX1zxmGyxjLihjLyxnVBMfIBgu','uMvJB25Uzwn0Aw9UihnOB3vSzcbZDg9WigfMDgvYig1HEcbHDhrLBxb0CW','mti4mdCXmg13rLvYwq','Dg9czu51BgW','uKvdt05orunux0nptKzjrYbJB25ZDgfUDhmGyxjLigrLzMLUzwq','AxnszwnVBM5Ly3rPBMC','A2v5CW','mJj0BKreshy','Dg9czurLzMLUzwq','Dg9czuXLC3nuAgfUt3jfCxvHBa','ywXS','DxnLq29UBMvJDgLVBIbYzxr1CM5Zigv4CgvJDgvKigLUDgvYzMfJzsbZAgfWzq','C3rYAw5N','zgLZy29UBMvJDgvK','y29UBMvJDgvK','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gtwf4ief0DgvTChrZieXPBwL0','q09otKvdveLptL9tvefuvvmGDMfSDwvZigfYzsbSB3DLCMnHC2uGC3rYAw5NCW','C2vZC2LVBKLK','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','reLtq09otKvdveve','uKvdt05orunux0nptKzjrW','q29UBMvJDgLVBIbZDgf0DxmGDhjHBNnPDgLVBNmGzM9SBg93ihzHBgLKigzSB3C','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','zNvUy3rPB24','v2vIu29JA2v0twfUywDLCG','ndG2BwzTvw9g','otG5mJiXmMTJsgPbzW','mteYmJH3z1nNv1m','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsw50zwDYyxrPB24','mJu5nJu4mxHxt2Lqua','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gq29UC3rHBNrZ','q09otKvdveLorW','uKvdt05orunusu5h','tufyx0rftefz','tufyx0fuvevnufrt','qKfds09grL9nvuXusvbmsuvs','uMvJB25Uzwn0Aw9Uigf0DgvTChrZignHBIbIzsb0CMfJA2vK','q29UBMvJDgLVBIbTzxrYAwnZihrYywnRihrPBwvZDgfTChm','Dg9czuDYzwf0zxjuAgfU','BM93','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsg9VAYbjBNrLCMzHy2uGvMvYAwzPy2f0Aw9U','zgvMyxvSDa','y29UBMvJDgLUzW','DgvZDc1ZzxnZAw9UlteYmW','n2riz0vWyG','q09otKvdveLptL9tvefuvvmGAxmGywXPyxmGzM9YienptK5fq1rjt05Fu1rbveu','Dg9mB3DLCKnHC2u','nZzoAhviBLK','mJe3otHAzffjvxG','q09otKvdveLptL9tvefuvvmGAgfZigfSBcbYzxf1AxjLzcbZDgf0zxm','Dg9dB250ywLU','q09otKvdveve'];a0_0x141b=function(){return _0xee74b4;};return a0_0x141b();}import{describe,test,expect}from'@jest/globals';describe(a0_0x3416bd(0x183),()=>{test('useConnection hook can be imported',async()=>{const _0x4e2f28=a0_0x5cfd,{useConnection:_0x2b0947}=await import(_0x4e2f28(0x189));expect(_0x2b0947)['toBeDefined'](),expect(typeof _0x2b0947)[_0x4e2f28(0x1c1)](_0x4e2f28(0x1a2));}),test('useConnection is default export',async()=>{const _0x2aad11=a0_0x5cfd,module=await import(_0x2aad11(0x189));expect(module['default'])['toBeDefined'](),expect(typeof module[_0x2aad11(0x1b4)])[_0x2aad11(0x1c1)](_0x2aad11(0x1a2)),expect(module[_0x2aad11(0x1b4)])['toBe'](module['useConnection']);});}),describe(a0_0x3416bd(0x1a9),()=>{const _0x50689b=a0_0x3416bd;test('CONNECTION_STATUS\x20constants\x20are\x20defined',async()=>{const _0x48de5e=a0_0x5cfd,{CONNECTION_STATUS:_0x5c2acf}=await import(_0x48de5e(0x1a1));expect(_0x5c2acf)[_0x48de5e(0x193)](),expect(_0x5c2acf['CONNECTING'])['toBe'](_0x48de5e(0x1b5)),expect(_0x5c2acf[_0x48de5e(0x1be)])['toBe']('connected'),expect(_0x5c2acf['DISCONNECTED'])['toBe']('disconnected'),expect(_0x5c2acf['RECONNECTING'])['toBe'](_0x48de5e(0x188));}),test(_0x50689b(0x1b8),async()=>{const _0x40f899=_0x50689b,{CONNECTION_STATUS:_0x733a03,CONNECTION_STATE:_0x145024}=await import('../../config/constants.js');expect(_0x733a03)[_0x40f899(0x1c1)](_0x145024);}),test(_0x50689b(0x18f),async()=>{const _0x17f05f=_0x50689b,{RECONNECT_CONFIG:_0xd763ea}=await import(_0x17f05f(0x1a1));expect(_0xd763ea)['toBeDefined'](),expect(_0xd763ea['INITIAL_DELAY'])[_0x17f05f(0x193)](),expect(_0xd763ea['MAX_DELAY'])[_0x17f05f(0x193)](),expect(_0xd763ea['BACKOFF_MULTIPLIER'])[_0x17f05f(0x193)](),expect(_0xd763ea['MAX_ATTEMPTS'])['toBeDefined']();}),test(_0x50689b(0x18b),async()=>{const _0x478bd5=_0x50689b,{RECONNECT_CONFIG:_0x1bb099}=await import('../../config/constants.js');expect(_0x1bb099[_0x478bd5(0x182)])['toBeGreaterThan'](0x0),expect(_0x1bb099[_0x478bd5(0x1ac)])['toBeGreaterThan'](_0x1bb099[_0x478bd5(0x182)]),expect(_0x1bb099['BACKOFF_MULTIPLIER'])['toBeGreaterThan'](0x1),expect(_0x1bb099[_0x478bd5(0x1ad)])[_0x478bd5(0x1b1)](0x0);});}),describe(a0_0x3416bd(0x1a7),()=>{test('useConnection\x20hook\x20integrates\x20with\x20SessionManager\x20and\x20WebSocketManager',async()=>{const _0x24c3fc=a0_0x5cfd,{useConnection:_0x1c6c77}=await import(_0x24c3fc(0x189)),{SessionManager:_0x13a4b1}=await import(_0x24c3fc(0x180)),{WebSocketManager:_0x52dc67}=await import('../../api/websocket.js'),_0x44bf7a=new _0x13a4b1('localhost',0x1f90),_0x48b7ae=new _0x52dc67(_0x24c3fc(0x17e),0x1f90);expect(_0x44bf7a)['toBeDefined'](),expect(_0x48b7ae)['toBeDefined'](),expect(typeof _0x1c6c77)['toBe']('function');}),test('Full connection stack can be imported together',async()=>{const _0x5b6511=a0_0x5cfd,[_0x1310d7,_0x5b30f9,_0x5aa21c,_0x39d976]=await Promise[_0x5b6511(0x195)]([import('../../config/constants.js'),import('../../api/session.js'),import('../../api/websocket.js'),import('../../state/useConnection.js')]);expect(_0x1310d7['CONNECTION_STATUS'])[_0x5b6511(0x193)](),expect(_0x1310d7[_0x5b6511(0x19f)])['toBeDefined'](),expect(_0x5b30f9[_0x5b6511(0x187)])[_0x5b6511(0x193)](),expect(_0x5aa21c[_0x5b6511(0x1a3)])['toBeDefined'](),expect(_0x39d976[_0x5b6511(0x1c3)])['toBeDefined']();});}),describe(a0_0x3416bd(0x1b3),()=>{const _0x334db3=a0_0x3416bd;test(_0x334db3(0x196),async()=>{const _0x215287=_0x334db3,{useConnection:_0x45b6e1}=await import(_0x215287(0x189));expect(_0x45b6e1['length'])['toBe'](0x2);});}),describe('Connection\x20Management\x20-\x20Status\x20Values',()=>{const _0x363309=a0_0x3416bd;test(_0x363309(0x19b),async()=>{const _0x136ebe=_0x363309,{CONNECTION_STATUS:_0x264a9c}=await import('../../config/constants.js');expect(typeof _0x264a9c[_0x136ebe(0x1aa)])['toBe']('string'),expect(typeof _0x264a9c['CONNECTED'])['toBe'](_0x136ebe(0x197)),expect(typeof _0x264a9c[_0x136ebe(0x19e)])['toBe']('string'),expect(typeof _0x264a9c[_0x136ebe(0x1ab)])[_0x136ebe(0x1c1)]('string'),expect(_0x264a9c['CONNECTING'])['toBe'](_0x264a9c['CONNECTING'][_0x136ebe(0x1b9)]()),expect(_0x264a9c[_0x136ebe(0x1be)])['toBe'](_0x264a9c['CONNECTED'][_0x136ebe(0x1b9)]());}),test(_0x363309(0x1bc),async()=>{const _0x58fd1a=_0x363309,{CONNECTION_STATUS:_0x2e8928}=await import('../../config/constants.js'),_0x2be042=Object[_0x58fd1a(0x191)](_0x2e8928);expect(_0x2be042)[_0x58fd1a(0x1bd)]('CONNECTING'),expect(_0x2be042)[_0x58fd1a(0x1bd)](_0x58fd1a(0x1be)),expect(_0x2be042)['toContain'](_0x58fd1a(0x19e)),expect(_0x2be042)['toContain']('RECONNECTING');});}),describe('Connection\x20Management\x20-\x20Exponential\x20Backoff\x20Logic',()=>{test('Exponential\x20backoff\x20delay\x20calculation\x20works\x20correctly',async()=>{const _0x2a5d32=a0_0x5cfd,{RECONNECT_CONFIG:_0x59b550}=await import('../../config/constants.js'),_0x43f9f2=_0x12ac24=>{const _0x530eed=a0_0x5cfd;return Math['min'](_0x59b550[_0x530eed(0x182)]*Math['pow'](_0x59b550['BACKOFF_MULTIPLIER'],_0x12ac24),_0x59b550['MAX_DELAY']);},_0x521ad3=_0x43f9f2(0x0),_0x67a80=_0x43f9f2(0x1),_0x4d1dda=_0x43f9f2(0x2);expect(_0x521ad3)[_0x2a5d32(0x1c1)](_0x59b550[_0x2a5d32(0x182)]),expect(_0x67a80)[_0x2a5d32(0x1b1)](_0x521ad3),expect(_0x4d1dda)['toBeGreaterThan'](_0x67a80);}),test('Exponential\x20backoff\x20respects\x20max\x20delay',async()=>{const _0x3c12af=a0_0x5cfd,{RECONNECT_CONFIG:_0x58f7ee}=await import(_0x3c12af(0x1a1)),_0x2a348e=_0x5170cd=>{const _0x2220e7=_0x3c12af;return Math[_0x2220e7(0x1c0)](_0x58f7ee[_0x2220e7(0x182)]*Math['pow'](_0x58f7ee[_0x2220e7(0x1ae)],_0x5170cd),_0x58f7ee['MAX_DELAY']);},_0x58a079=_0x2a348e(0x64);expect(_0x58a079)['toBe'](_0x58f7ee[_0x3c12af(0x1ac)]),expect(_0x58a079)['toBeLessThanOrEqual'](_0x58f7ee[_0x3c12af(0x1ac)]);});}),describe('Connection\x20Management\x20-\x20Session\x20State',()=>{test('Session\x20state\x20should\x20track\x20validity',async()=>{const _0x399c41=a0_0x5cfd;let _0x4db8b6=null,_0x53b681=![],_0x40a172=null;_0x4db8b6='test-session-123',_0x53b681=!![],_0x40a172=Date[_0x399c41(0x1b2)]()+0x36ee80,expect(_0x4db8b6)['toBeDefined'](),expect(_0x53b681)['toBe'](!![]),expect(_0x40a172)[_0x399c41(0x1b1)](Date['now']());}),test('Session\x20state\x20should\x20invalidate',async()=>{const _0x37f813=a0_0x5cfd;let _0x396f16=_0x37f813(0x1b6),_0x5cf475=!![];_0x396f16=null,_0x5cf475=![],expect(_0x396f16)[_0x37f813(0x18e)](),expect(_0x5cf475)['toBe'](![]);});}),describe('Connection\x20Management\x20-\x20Connection\x20Metrics',()=>{const _0x141282=a0_0x3416bd;test(_0x141282(0x186),async()=>{const _0x47eed4=_0x141282,_0x59fab2=Date['now']();await new Promise(_0x160614=>setTimeout(_0x160614,0x64));const _0x2806b6=Date['now']()-_0x59fab2;expect(_0x2806b6)[_0x47eed4(0x1b1)](0x0),expect(_0x2806b6)[_0x47eed4(0x17f)](0x64);}),test(_0x141282(0x1b0),async()=>{const _0x3802ff=_0x141282,_0x4b4ca9=Date['now']();await new Promise(_0x5735d9=>setTimeout(_0x5735d9,0x32));const _0x5b11fa=Date[_0x3802ff(0x1b2)]();expect(_0x4b4ca9)['toBeDefined'](),expect(_0x5b11fa)['toBeDefined'](),expect(_0x5b11fa)[_0x3802ff(0x1b1)](_0x4b4ca9);}),test(_0x141282(0x1af),async()=>{const _0x71b8bc=_0x141282;let _0x531c1a=0x0;_0x531c1a+=0x1,expect(_0x531c1a)['toBe'](0x1),_0x531c1a+=0x1,expect(_0x531c1a)[_0x71b8bc(0x1c1)](0x2),_0x531c1a=0x0,expect(_0x531c1a)[_0x71b8bc(0x1c1)](0x0);});}),describe('Connection\x20Management\x20-\x20Connection\x20Status\x20Transitions',()=>{const _0x4c6d2b=a0_0x3416bd;test(_0x4c6d2b(0x1a0),async()=>{const _0x1cd554=_0x4c6d2b,{CONNECTION_STATUS:_0xae8ab6}=await import('../../config/constants.js');let _0x13f1ea=_0xae8ab6['DISCONNECTED'];expect(_0x13f1ea)[_0x1cd554(0x1c1)](_0x1cd554(0x198)),_0x13f1ea=_0xae8ab6['CONNECTING'],expect(_0x13f1ea)['toBe']('connecting'),_0x13f1ea=_0xae8ab6[_0x1cd554(0x1be)],expect(_0x13f1ea)['toBe'](_0x1cd554(0x199)),_0x13f1ea=_0xae8ab6['DISCONNECTED'],expect(_0x13f1ea)[_0x1cd554(0x1c1)]('disconnected'),_0x13f1ea=_0xae8ab6['RECONNECTING'],expect(_0x13f1ea)[_0x1cd554(0x1c1)](_0x1cd554(0x188)),_0x13f1ea=_0xae8ab6[_0x1cd554(0x1be)],expect(_0x13f1ea)[_0x1cd554(0x1c1)](_0x1cd554(0x199));});}),describe('Connection\x20Management\x20-\x20WebSocket\x20Event\x20Integration',()=>{test('WebSocketManager\x20has\x20event\x20emitter\x20methods',async()=>{const _0x17a778=a0_0x5cfd,{WebSocketManager:_0x5d1569}=await import(_0x17a778(0x19d)),_0x485575=new _0x5d1569(_0x17a778(0x17e),0x1f90);expect(_0x485575['on'])[_0x17a778(0x193)](),expect(_0x485575[_0x17a778(0x184)])[_0x17a778(0x193)](),expect(typeof _0x485575['on'])['toBe']('function'),expect(typeof _0x485575[_0x17a778(0x184)])['toBe']('function');});}),describe(a0_0x3416bd(0x19a),()=>{const _0x5ac926=a0_0x3416bd;test(_0x5ac926(0x18c),async()=>{const _0x582e92=_0x5ac926,{RECONNECT_CONFIG:_0x519009}=await import(_0x582e92(0x1a1));let _0x312eec=0x0;for(let _0x41fea6=0x0;_0x41fea6<_0x519009[_0x582e92(0x1ad)]+0x5;_0x41fea6++){if(_0x312eec<_0x519009[_0x582e92(0x1ad)])_0x312eec+=0x1;else break;}expect(_0x312eec)[_0x582e92(0x1c1)](_0x519009['MAX_ATTEMPTS']),expect(_0x312eec)[_0x582e92(0x194)](_0x519009[_0x582e92(0x1ad)]);});}),describe('Connection\x20Management\x20-\x20Connection\x20Info',()=>{const _0x4878d2=a0_0x3416bd;test(_0x4878d2(0x181),async()=>{const _0x1a429c=_0x4878d2,{CONNECTION_STATUS:_0x4704b1}=await import('../../config/constants.js'),_0x3179b0={'status':_0x4704b1['CONNECTED'],'isConnected':!![],'isReconnecting':![],'sessionId':'test-session-123','sessionValid':!![],'sessionExpiration':Date['now']()+0x36ee80,'uptime':0x1388,'lastConnectedAt':Date['now']()-0x1388,'lastDisconnectedAt':null,'reconnectAttempts':0x0};expect(_0x3179b0['status'])[_0x1a429c(0x193)](),expect(_0x3179b0['isConnected'])['toBe'](!![]),expect(_0x3179b0[_0x1a429c(0x190)])['toBe'](![]),expect(_0x3179b0[_0x1a429c(0x19c)])['toBeDefined'](),expect(_0x3179b0['sessionValid'])['toBe'](!![]),expect(_0x3179b0[_0x1a429c(0x1bf)])[_0x1a429c(0x1b1)](0x0);});});
1
+ function a0_0x4287(){const _0x313f30=['q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0GrxHWB25LBNrPywWGqMfJA29MzIbmB2DPyW','Dg9czuDYzwf0zxjuAgfU','DgvZDc1ZzxnZAw9UlteYmW','Dg9mB3DLCKnHC2u','q09otKvdveLptL9tvefuvvmGDMfSDwvZigfYzsbSB3DLCMnHC2uGC3rYAw5NCW','Dxb0Aw1L','Dg9czurLzMLUzwq','y29UBMvJDgvK','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsw1WB3j0CW','odq1mZm4mMHgywziuq','q09otKvdveLptL9tvefuvvmGAgfZigfSBcbYzxf1AxjLzcbZDgf0zxm','DxnLq29UBMvJDgLVBG','zgLZy29UBMvJDgvK','ywXS','zNvUy3rPB24','uKvdt05orunux0nptKzjrYb2ywX1zxmGyxjLihjLyxnVBMfIBgu','Dg9czq','lI4VlI4VyxbPl3nLC3nPB24UANm','tufyx0fuvevnufrt','tufyx0rftefz','ndi3mdiWodr5CMreuei','u2vZC2LVBIbZDgf0zsbZAg91BgqGAw52ywXPzgf0zq','A2v5CW','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gq29UBMvJDgLVBIbnzxrYAwnZ','q09otKvdveLptL9tvefuvvmGy29UC3rHBNrZigfYzsbKzwzPBMvK','Cg93','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gu3rHDhvZifzHBhvLCW','BgvUz3rO','uMvJB25Uzwn0Aw9UihnOB3vSzcbZDg9WigfMDgvYig1HEcbHDhrLBxb0CW','su5jveLbtf9eruXbwq','uKvdt05orunusu5h','q09otKvdveLorW','nxffzer3wG','q09otKvdveve','v2vIu29JA2v0twfUywDLCG','mZKZnujQA0vnBG','BM93','ndi0nde1n1H1D2DKwG','reLtq09otKvdveve','Bg9JywXOB3n0','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsw50zwDYyxrPB24','Dg9dB250ywLU','Dg9czu51BgW','mZmYtfvruKXS','BwLU','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','C3rYAw5N','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','qKfds09grL9nvuXusvbmsuvs','mZGYotC2m2DXtxPAta','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gv2vIu29JA2v0iev2zw50ieLUDgvNCMf0Aw9U','u2vZC2LVBK1HBMfNzxi','zgvMyxvSDa','uMvJB25Uzwn0Aw9Uigf0DgvTChrZignHBIbIzsb0CMfJA2vK','mta1otCZmtjwuKTUBLa','nta5nJa4ohv5u0DeyW'];a0_0x4287=function(){return _0x313f30;};return a0_0x4287();}const a0_0x15c7d7=a0_0x1f69;(function(_0x3403f2,_0x2e3240){const _0xdb1c79=a0_0x1f69,_0x280428=_0x3403f2();while(!![]){try{const _0x998308=parseInt(_0xdb1c79(0x9d))/0x1*(-parseInt(_0xdb1c79(0xa5))/0x2)+-parseInt(_0xdb1c79(0x9f))/0x3+-parseInt(_0xdb1c79(0xb2))/0x4+parseInt(_0xdb1c79(0x9a))/0x5*(-parseInt(_0xdb1c79(0x83))/0x6)+-parseInt(_0xdb1c79(0xab))/0x7+parseInt(_0xdb1c79(0xb1))/0x8+parseInt(_0xdb1c79(0x8e))/0x9;if(_0x998308===_0x2e3240)break;else _0x280428['push'](_0x280428['shift']());}catch(_0x25da74){_0x280428['push'](_0x280428['shift']());}}}(a0_0x4287,0xbc537));import{describe,test,expect}from'@jest/globals';function a0_0x1f69(_0x2f6d9c,_0x3d8a99){_0x2f6d9c=_0x2f6d9c-0x7c;const _0x4287e5=a0_0x4287();let _0x1f693a=_0x4287e5[_0x2f6d9c];if(a0_0x1f69['vjZeaG']===undefined){var _0x28802b=function(_0x322e2e){const _0x329355='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3513b9='',_0x16e394='';for(let _0x29eecb=0x0,_0x3349df,_0x5aad5e,_0x4755f2=0x0;_0x5aad5e=_0x322e2e['charAt'](_0x4755f2++);~_0x5aad5e&&(_0x3349df=_0x29eecb%0x4?_0x3349df*0x40+_0x5aad5e:_0x5aad5e,_0x29eecb++%0x4)?_0x3513b9+=String['fromCharCode'](0xff&_0x3349df>>(-0x2*_0x29eecb&0x6)):0x0){_0x5aad5e=_0x329355['indexOf'](_0x5aad5e);}for(let _0x773549=0x0,_0x130109=_0x3513b9['length'];_0x773549<_0x130109;_0x773549++){_0x16e394+='%'+('00'+_0x3513b9['charCodeAt'](_0x773549)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x16e394);};a0_0x1f69['WZxFeW']=_0x28802b,a0_0x1f69['LRAxpl']={},a0_0x1f69['vjZeaG']=!![];}const _0x253df3=_0x4287e5[0x0],_0x537c8c=_0x2f6d9c+_0x253df3,_0x28e87a=a0_0x1f69['LRAxpl'][_0x537c8c];return!_0x28e87a?(_0x1f693a=a0_0x1f69['WZxFeW'](_0x1f693a),a0_0x1f69['LRAxpl'][_0x537c8c]=_0x1f693a):_0x1f693a=_0x28e87a,_0x1f693a;}describe(a0_0x15c7d7(0x82),()=>{test('useConnection hook can be imported',async()=>{const _0x2e128e=a0_0x1f69,{useConnection:_0x3513b9}=await import('../../state/useConnection.js');expect(_0x3513b9)['toBeDefined'](),expect(typeof _0x3513b9)['toBe'](_0x2e128e(0x88));}),test('useConnection is default export',async()=>{const _0x2d1ec7=a0_0x1f69,module=await import('../../state/useConnection.js');expect(module[_0x2d1ec7(0xaf)])[_0x2d1ec7(0x80)](),expect(typeof module[_0x2d1ec7(0xaf)])[_0x2d1ec7(0x8a)]('function'),expect(module['default'])['toBe'](module[_0x2d1ec7(0x85)]);});}),describe('Connection\x20Management\x20-\x20Constants',()=>{const _0x30f641=a0_0x15c7d7;test(_0x30f641(0x92),async()=>{const _0x7737c5=_0x30f641,{CONNECTION_STATUS:_0x16e394}=await import(_0x7737c5(0xa9));expect(_0x16e394)[_0x7737c5(0x80)](),expect(_0x16e394[_0x7737c5(0x99)])['toBe']('connecting'),expect(_0x16e394['CONNECTED'])[_0x7737c5(0x8a)](_0x7737c5(0x81)),expect(_0x16e394['DISCONNECTED'])['toBe']('disconnected'),expect(_0x16e394[_0x7737c5(0x98)])['toBe']('reconnecting');}),test('CONNECTION_STATUS\x20is\x20alias\x20for\x20CONNECTION_STATE',async()=>{const _0xa3b738=_0x30f641,{CONNECTION_STATUS:_0x29eecb,CONNECTION_STATE:_0x3349df}=await import('../../config/constants.js');expect(_0x29eecb)[_0xa3b738(0x8a)](_0x3349df);}),test('RECONNECT_CONFIG\x20constants\x20are\x20defined',async()=>{const _0x7aa34d=_0x30f641,{RECONNECT_CONFIG:_0x5aad5e}=await import('../../config/constants.js');expect(_0x5aad5e)['toBeDefined'](),expect(_0x5aad5e['INITIAL_DELAY'])['toBeDefined'](),expect(_0x5aad5e['MAX_DELAY'])[_0x7aa34d(0x80)](),expect(_0x5aad5e['BACKOFF_MULTIPLIER'])['toBeDefined'](),expect(_0x5aad5e['MAX_ATTEMPTS'])['toBeDefined']();}),test(_0x30f641(0x89),async()=>{const _0x259bae=_0x30f641,{RECONNECT_CONFIG:_0x4755f2}=await import(_0x259bae(0xa9));expect(_0x4755f2['INITIAL_DELAY'])['toBeGreaterThan'](0x0),expect(_0x4755f2[_0x259bae(0x8d)])['toBeGreaterThan'](_0x4755f2[_0x259bae(0x97)]),expect(_0x4755f2[_0x259bae(0xaa)])[_0x259bae(0xb4)](0x1),expect(_0x4755f2[_0x259bae(0x8c)])['toBeGreaterThan'](0x0);});}),describe(a0_0x15c7d7(0xa2),()=>{test('useConnection\x20hook\x20integrates\x20with\x20SessionManager\x20and\x20WebSocketManager',async()=>{const _0x31602d=a0_0x1f69,{useConnection:_0x773549}=await import(_0x31602d(0xa7)),{SessionManager:_0x130109}=await import(_0x31602d(0x8b)),{WebSocketManager:_0x386320}=await import('../../api/websocket.js'),_0x1404e0=new _0x130109(_0x31602d(0xa1),0x1f90),_0x37eb74=new _0x386320('localhost',0x1f90);expect(_0x1404e0)['toBeDefined'](),expect(_0x37eb74)['toBeDefined'](),expect(typeof _0x773549)[_0x31602d(0x8a)]('function');}),test('Full connection stack can be imported together',async()=>{const _0x2f4314=a0_0x1f69,[_0x65e0f6,_0x21c774,_0x19c7a9,_0x27fb63]=await Promise[_0x2f4314(0x87)]([import('../../config/constants.js'),import(_0x2f4314(0x8b)),import(_0x2f4314(0xac)),import('../../state/useConnection.js')]);expect(_0x65e0f6['CONNECTION_STATUS'])['toBeDefined'](),expect(_0x65e0f6['RECONNECT_CONFIG'])[_0x2f4314(0x80)](),expect(_0x21c774[_0x2f4314(0xae)])['toBeDefined'](),expect(_0x19c7a9[_0x2f4314(0x9c)])['toBeDefined'](),expect(_0x27fb63['useConnection'])['toBeDefined']();});}),describe('Connection\x20Management\x20-\x20Hook\x20Interface\x20Verification',()=>{test('useConnection\x20returns\x20expected\x20interface\x20shape',async()=>{const _0x221885=a0_0x1f69,{useConnection:_0x4285fb}=await import(_0x221885(0xa7));expect(_0x4285fb[_0x221885(0x95)])['toBe'](0x2);});}),describe(a0_0x15c7d7(0x94),()=>{const _0x1787e2=a0_0x15c7d7;test(_0x1787e2(0x7e),async()=>{const _0x129baa=_0x1787e2,{CONNECTION_STATUS:_0x1fff15}=await import(_0x129baa(0xa9));expect(typeof _0x1fff15[_0x129baa(0x99)])[_0x129baa(0x8a)]('string'),expect(typeof _0x1fff15['CONNECTED'])['toBe']('string'),expect(typeof _0x1fff15[_0x129baa(0xa0)])['toBe'](_0x129baa(0xa8)),expect(typeof _0x1fff15[_0x129baa(0x98)])['toBe'](_0x129baa(0xa8)),expect(_0x1fff15[_0x129baa(0x99)])[_0x129baa(0x8a)](_0x1fff15['CONNECTING']['toLowerCase']()),expect(_0x1fff15['CONNECTED'])['toBe'](_0x1fff15['CONNECTED'][_0x129baa(0x7d)]());}),test(_0x1787e2(0x84),async()=>{const _0xc19c8e=_0x1787e2,{CONNECTION_STATUS:_0x43739e}=await import(_0xc19c8e(0xa9)),_0x48b0f5=Object[_0xc19c8e(0x90)](_0x43739e);expect(_0x48b0f5)[_0xc19c8e(0xa3)](_0xc19c8e(0x99)),expect(_0x48b0f5)[_0xc19c8e(0xa3)](_0xc19c8e(0x9b)),expect(_0x48b0f5)['toContain'](_0xc19c8e(0xa0)),expect(_0x48b0f5)[_0xc19c8e(0xa3)]('RECONNECTING');});}),describe(a0_0x15c7d7(0xb3),()=>{test('Exponential\x20backoff\x20delay\x20calculation\x20works\x20correctly',async()=>{const _0x11bf75=a0_0x1f69,{RECONNECT_CONFIG:_0x1c2d3a}=await import('../../config/constants.js'),_0x19b923=_0x336bbf=>{const _0x153a72=a0_0x1f69;return Math['min'](_0x1c2d3a['INITIAL_DELAY']*Math[_0x153a72(0x93)](_0x1c2d3a[_0x153a72(0xaa)],_0x336bbf),_0x1c2d3a[_0x153a72(0x8d)]);},_0x2dfc61=_0x19b923(0x0),_0x5bac37=_0x19b923(0x1),_0x3045e4=_0x19b923(0x2);expect(_0x2dfc61)['toBe'](_0x1c2d3a['INITIAL_DELAY']),expect(_0x5bac37)[_0x11bf75(0xb4)](_0x2dfc61),expect(_0x3045e4)['toBeGreaterThan'](_0x5bac37);}),test('Exponential\x20backoff\x20respects\x20max\x20delay',async()=>{const _0x1eb93f=a0_0x1f69,{RECONNECT_CONFIG:_0x2364bc}=await import('../../config/constants.js'),_0x5dff39=_0x11b6b7=>{const _0x56df4d=a0_0x1f69;return Math[_0x56df4d(0xa6)](_0x2364bc['INITIAL_DELAY']*Math['pow'](_0x2364bc[_0x56df4d(0xaa)],_0x11b6b7),_0x2364bc['MAX_DELAY']);},_0x192f74=_0x5dff39(0x64);expect(_0x192f74)['toBe'](_0x2364bc[_0x1eb93f(0x8d)]),expect(_0x192f74)['toBeLessThanOrEqual'](_0x2364bc['MAX_DELAY']);});}),describe('Connection\x20Management\x20-\x20Session\x20State',()=>{const _0x89039=a0_0x15c7d7;test('Session\x20state\x20should\x20track\x20validity',async()=>{const _0x165df7=a0_0x1f69;let _0x5e480f=null,_0x2c2c77=![],_0x21ed98=null;_0x5e480f=_0x165df7(0x7c),_0x2c2c77=!![],_0x21ed98=Date[_0x165df7(0x9e)]()+0x36ee80,expect(_0x5e480f)[_0x165df7(0x80)](),expect(_0x2c2c77)['toBe'](!![]),expect(_0x21ed98)['toBeGreaterThan'](Date['now']());}),test(_0x89039(0x8f),async()=>{const _0x2e0bc5=_0x89039;let _0xf72def=_0x2e0bc5(0x7c),_0x4a09=!![];_0xf72def=null,_0x4a09=![],expect(_0xf72def)[_0x2e0bc5(0xa4)](),expect(_0x4a09)[_0x2e0bc5(0x8a)](![]);});}),describe(a0_0x15c7d7(0x91),()=>{const _0x34521e=a0_0x15c7d7;test('Connection\x20uptime\x20can\x20be\x20tracked',async()=>{const _0x482c7e=a0_0x1f69,_0x32b0ac=Date['now']();await new Promise(_0x37b503=>setTimeout(_0x37b503,0x64));const _0x233577=Date[_0x482c7e(0x9e)]()-_0x32b0ac;expect(_0x233577)['toBeGreaterThan'](0x0),expect(_0x233577)['toBeGreaterThanOrEqual'](0x64);}),test('Connection\x20metrics\x20track\x20timestamps',async()=>{const _0xdc3c14=a0_0x1f69,_0x4aeb06=Date['now']();await new Promise(_0x575d68=>setTimeout(_0x575d68,0x32));const _0x5b176d=Date[_0xdc3c14(0x9e)]();expect(_0x4aeb06)['toBeDefined'](),expect(_0x5b176d)['toBeDefined'](),expect(_0x5b176d)[_0xdc3c14(0xb4)](_0x4aeb06);}),test(_0x34521e(0xb0),async()=>{const _0x341dab=_0x34521e;let _0xd9656d=0x0;_0xd9656d+=0x1,expect(_0xd9656d)['toBe'](0x1),_0xd9656d+=0x1,expect(_0xd9656d)[_0x341dab(0x8a)](0x2),_0xd9656d=0x0,expect(_0xd9656d)[_0x341dab(0x8a)](0x0);});}),describe('Connection\x20Management\x20-\x20Connection\x20Status\x20Transitions',()=>{test('Connection\x20status\x20transitions\x20follow\x20valid\x20flow',async()=>{const _0x5357e5=a0_0x1f69,{CONNECTION_STATUS:_0x523f38}=await import('../../config/constants.js');let _0x4a6fab=_0x523f38[_0x5357e5(0xa0)];expect(_0x4a6fab)[_0x5357e5(0x8a)](_0x5357e5(0x86)),_0x4a6fab=_0x523f38['CONNECTING'],expect(_0x4a6fab)[_0x5357e5(0x8a)]('connecting'),_0x4a6fab=_0x523f38['CONNECTED'],expect(_0x4a6fab)[_0x5357e5(0x8a)]('connected'),_0x4a6fab=_0x523f38[_0x5357e5(0xa0)],expect(_0x4a6fab)['toBe'](_0x5357e5(0x86)),_0x4a6fab=_0x523f38[_0x5357e5(0x98)],expect(_0x4a6fab)[_0x5357e5(0x8a)]('reconnecting'),_0x4a6fab=_0x523f38['CONNECTED'],expect(_0x4a6fab)[_0x5357e5(0x8a)]('connected');});}),describe(a0_0x15c7d7(0xad),()=>{test('WebSocketManager\x20has\x20event\x20emitter\x20methods',async()=>{const _0x31ddbd=a0_0x1f69,{WebSocketManager:_0x4dad07}=await import('../../api/websocket.js'),_0x44b359=new _0x4dad07('localhost',0x1f90);expect(_0x44b359['on'])['toBeDefined'](),expect(_0x44b359['off'])[_0x31ddbd(0x80)](),expect(typeof _0x44b359['on'])['toBe']('function'),expect(typeof _0x44b359['off'])[_0x31ddbd(0x8a)](_0x31ddbd(0x88));});}),describe('Connection\x20Management\x20-\x20Max\x20Attempts\x20Limit',()=>{const _0x368549=a0_0x15c7d7;test(_0x368549(0x96),async()=>{const _0x174a91=_0x368549,{RECONNECT_CONFIG:_0x548623}=await import(_0x174a91(0xa9));let _0x3f3ac3=0x0;for(let _0x49aa20=0x0;_0x49aa20<_0x548623[_0x174a91(0x8c)]+0x5;_0x49aa20++){if(_0x3f3ac3<_0x548623[_0x174a91(0x8c)])_0x3f3ac3+=0x1;else break;}expect(_0x3f3ac3)['toBe'](_0x548623['MAX_ATTEMPTS']),expect(_0x3f3ac3)['toBeLessThanOrEqual'](_0x548623[_0x174a91(0x8c)]);});}),describe('Connection\x20Management\x20-\x20Connection\x20Info',()=>{test('Connection\x20info\x20should\x20contain\x20all\x20metrics',async()=>{const _0x3e6679=a0_0x1f69,{CONNECTION_STATUS:_0x1daca9}=await import(_0x3e6679(0xa9)),_0x715194={'status':_0x1daca9['CONNECTED'],'isConnected':!![],'isReconnecting':![],'sessionId':_0x3e6679(0x7c),'sessionValid':!![],'sessionExpiration':Date[_0x3e6679(0x9e)]()+0x36ee80,'uptime':0x1388,'lastConnectedAt':Date['now']()-0x1388,'lastDisconnectedAt':null,'reconnectAttempts':0x0};expect(_0x715194['status'])[_0x3e6679(0x80)](),expect(_0x715194['isConnected'])['toBe'](!![]),expect(_0x715194['isReconnecting'])[_0x3e6679(0x8a)](![]),expect(_0x715194['sessionId'])['toBeDefined'](),expect(_0x715194['sessionValid'])['toBe'](!![]),expect(_0x715194[_0x3e6679(0x7f)])['toBeGreaterThan'](0x0);});});
@@ -1 +1 @@
1
- const a0_0x3e0120=a0_0xd3e6;(function(_0x1c0850,_0x5ceaf9){const _0x446395=a0_0xd3e6,_0x1cd394=_0x1c0850();while(!![]){try{const _0x203279=parseInt(_0x446395(0xbb))/0x1+parseInt(_0x446395(0xc7))/0x2*(-parseInt(_0x446395(0xb5))/0x3)+-parseInt(_0x446395(0xb0))/0x4*(-parseInt(_0x446395(0xb6))/0x5)+-parseInt(_0x446395(0xbc))/0x6*(parseInt(_0x446395(0xb3))/0x7)+parseInt(_0x446395(0xa4))/0x8*(parseInt(_0x446395(0xbf))/0x9)+-parseInt(_0x446395(0xc0))/0xa+parseInt(_0x446395(0xa5))/0xb*(parseInt(_0x446395(0xb4))/0xc);if(_0x203279===_0x5ceaf9)break;else _0x1cd394['push'](_0x1cd394['shift']());}catch(_0x309e54){_0x1cd394['push'](_0x1cd394['shift']());}}}(a0_0x4879,0x8a2c3));function a0_0xd3e6(_0x2a7edc,_0x1e747c){_0x2a7edc=_0x2a7edc-0xa4;const _0x4879a4=a0_0x4879();let _0xd3e688=_0x4879a4[_0x2a7edc];if(a0_0xd3e6['wHXBVx']===undefined){var _0x257158=function(_0x549574){const _0x29b0ca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a7cd7='',_0x19a0a4='';for(let _0x8013c3=0x0,_0xf9b0c,_0x3c8e57,_0x23a262=0x0;_0x3c8e57=_0x549574['charAt'](_0x23a262++);~_0x3c8e57&&(_0xf9b0c=_0x8013c3%0x4?_0xf9b0c*0x40+_0x3c8e57:_0x3c8e57,_0x8013c3++%0x4)?_0x5a7cd7+=String['fromCharCode'](0xff&_0xf9b0c>>(-0x2*_0x8013c3&0x6)):0x0){_0x3c8e57=_0x29b0ca['indexOf'](_0x3c8e57);}for(let _0x292ea1=0x0,_0x50f0a2=_0x5a7cd7['length'];_0x292ea1<_0x50f0a2;_0x292ea1++){_0x19a0a4+='%'+('00'+_0x5a7cd7['charCodeAt'](_0x292ea1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19a0a4);};a0_0xd3e6['QVUsZC']=_0x257158,a0_0xd3e6['aZnKtT']={},a0_0xd3e6['wHXBVx']=!![];}const _0x23e47d=_0x4879a4[0x0],_0x50fe14=_0x2a7edc+_0x23e47d,_0x2f0078=a0_0xd3e6['aZnKtT'][_0x50fe14];return!_0x2f0078?(_0xd3e688=a0_0xd3e6['QVUsZC'](_0xd3e688),a0_0xd3e6['aZnKtT'][_0x50fe14]=_0xd3e688):_0xd3e688=_0x2f0078,_0xd3e688;}function a0_0x4879(){const _0x41b8c4=['Dg9czurLzMLUzwq','ugHHC2uGosaTievUAgfUy2vKiezLyxr1CMvZic0Gq29UC3rHBNrZ','sw5SAw5Lu3bPBM5LCG','rxjYB3jcB3vUzgfYEq','ChjVDg90ExbL','rxjYB3jcB3vUzgfYEsbPCYbHifjLywn0ienVBxbVBMvUDcbJBgfZCW','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','sw5WDxrcB3GGzgvMAw5LCYbnqvHFseLtve9swsbJB25ZDgfUDa','neP3DurIDq','CMvHy3q','sw5WDxrcB3G','n1DquNfjDq','mJmXntC5mJrRwhnhBgq','mJmYmJG0m3vpAur4BG','mZu4nZi3meX2rKfIuq','rxjYB3jcB3vUzgfYEsbJB21WB25LBNreAwrdyxrJAcbPCYbKzwzPBMvK','tg9HzgLUz1nWAw5Uzxi','y29TCg9Uzw50rgLKq2f0y2G','CMvUzgvY','ntuXodmWB3f0B3vO','nte1mdi2mNbQsgPLzG','zNvUy3rPB24','ugHHC2uGosaTievUAgfUy2vKienVBxbVBMvUDhmGlsbjBxbVCNrZ','nJnXCxrwAxC','mta4ndGYmdbtAgjHqvG','rxjYB3jcB3vUzgfYEsbOyxmGz2v0rgvYAxzLzfn0yxrLrNjVBuvYCM9Yihn0yxrPyYbTzxrOB2q','zgvMyxvSDa','z2v0rgvYAxzLzfn0yxrLrNjVBuvYCM9Y','lI4VlI4Vy29TCg9Uzw50CY9mB2fKAw5Nu3bPBM5LCI5QCW','lI4VlI4Vy29TCg9Uzw50CY9fCNjVCKjVDw5Kyxj5lMPZ','rxjYB3jcB3vUzgfYEsbPCYbHignSyxnZignVBxbVBMvUDa','mLruu1bvuG','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','otyZnJHsswngAgy','mtfvrgLyA1u','ywXS','Dg9czq'];a0_0x4879=function(){return _0x41b8c4;};return a0_0x4879();}import{describe,test,expect}from'@jest/globals';describe(a0_0x3e0120(0xbe),()=>{const _0x4d5f1c=a0_0x3e0120;test('ErrorBoundary component can be imported',async()=>{const {ErrorBoundary:_0x5a7cd7}=await import('../../components/ErrorBoundary.js');expect(_0x5a7cd7)['toBeDefined'](),expect(typeof _0x5a7cd7)['toBe']('function');},0x7530),test(_0x4d5f1c(0xc6),async()=>{const _0x314616=_0x4d5f1c,{ErrorBoundary:_0x19a0a4}=await import('../../components/ErrorBoundary.js');expect(_0x19a0a4[_0x314616(0xac)])[_0x314616(0xa8)](),expect(typeof _0x19a0a4['prototype']['render'])['toBe']('function');}),test('LoadingSpinner component can be imported',async()=>{const _0x4c9675=_0x4d5f1c,{LoadingSpinner:_0x8013c3}=await import(_0x4c9675(0xc4));expect(_0x8013c3)[_0x4c9675(0xa8)](),expect(typeof _0x8013c3)['toBe'](_0x4c9675(0xbd));}),test('InlineSpinner component can be imported',async()=>{const _0xe3f8dd=_0x4d5f1c,{InlineSpinner:_0xf9b0c}=await import(_0xe3f8dd(0xc4));expect(_0xf9b0c)['toBeDefined'](),expect(typeof _0xf9b0c)[_0xe3f8dd(0xa7)]('function');}),test('LoadingSpinner is default export',async()=>{const _0x48a305=_0x4d5f1c,module=await import(_0x48a305(0xc4));expect(module[_0x48a305(0xc2)])[_0x48a305(0xa8)](),expect(module[_0x48a305(0xc2)])[_0x48a305(0xa7)](module[_0x48a305(0xb8)]);}),test('Enhanced\x20InputBox\x20maintains\x20backward\x20compatibility',async()=>{const _0x327eb7=_0x4d5f1c,{InputBox:_0x3c8e57}=await import('../../components/InputBox.js');expect(_0x3c8e57)[_0x327eb7(0xa8)](),expect(typeof _0x3c8e57)[_0x327eb7(0xa7)]('function');});}),describe('Phase\x209\x20-\x20ErrorBoundary\x20-\x20Structure',()=>{const _0x1e5c40=a0_0x3e0120;test(_0x1e5c40(0xad),async()=>{const _0x3feb47=_0x1e5c40,{ErrorBoundary:_0x23a262}=await import('../../components/ErrorBoundary.js'),_0x292ea1=await import(_0x3feb47(0xb1));expect(_0x23a262[_0x3feb47(0xac)])['toBeDefined'](),expect(typeof _0x23a262[_0x3feb47(0xac)][_0x3feb47(0xba)])[_0x3feb47(0xa7)](_0x3feb47(0xbd)),expect(typeof _0x23a262[_0x3feb47(0xac)][_0x3feb47(0xb9)])['toBe']('function');}),test(_0x1e5c40(0xc1),async()=>{const _0x4721ba=_0x1e5c40,{ErrorBoundary:_0x50f0a2}=await import('../../components/ErrorBoundary.js');expect(typeof _0x50f0a2[_0x4721ba(0xc3)])['toBe']('function');}),test(_0x1e5c40(0xb7),async()=>{const _0x30b502=_0x1e5c40,{ErrorBoundary:_0x1ed46f}=await import(_0x30b502(0xc5));expect(typeof _0x1ed46f[_0x30b502(0xac)][_0x30b502(0xb9)])['toBe'](_0x30b502(0xbd));});}),describe('Phase\x209\x20-\x20LoadingSpinner\x20-\x20Structure',()=>{test('LoadingSpinner\x20is\x20a\x20function\x20component',async()=>{const _0x2051a5=a0_0xd3e6,{LoadingSpinner:_0x3b2ee0}=await import(_0x2051a5(0xc4));expect(typeof _0x3b2ee0)[_0x2051a5(0xa7)]('function'),expect(_0x3b2ee0['prototype']?.['render'])['toBeUndefined']();}),test('InlineSpinner\x20is\x20a\x20function\x20component',async()=>{const _0x17e2fd=a0_0xd3e6,{InlineSpinner:_0x31beea}=await import(_0x17e2fd(0xc4));expect(typeof _0x31beea)[_0x17e2fd(0xa7)]('function'),expect(_0x31beea['prototype']?.[_0x17e2fd(0xba)])['toBeUndefined']();});}),describe('Phase\x209\x20-\x20Enhanced\x20InputBox\x20-\x20History\x20Support',()=>{test('Enhanced InputBox imports useRef for history',async()=>{const _0x5b5715=await import('../../components/InputBox.js'),_0x5943f1=await import('react');expect(_0x5943f1['useState'])['toBeDefined'](),expect(_0x5943f1['useRef'])['toBeDefined']();}),test('InputBox component maintains exports',async()=>{const _0x4e93c1=a0_0xd3e6,module=await import('../../components/InputBox.js');expect(module['InputBox'])['toBeDefined'](),expect(module[_0x4e93c1(0xc2)])['toBeDefined'](),expect(module['default'])[_0x4e93c1(0xa7)](module[_0x4e93c1(0xb2)]);});}),describe('Phase\x209\x20-\x20Integration',()=>{test('All enhanced components can be imported together',async()=>{const _0x4c7934=a0_0xd3e6,[_0x3b1176,_0x1f737f,_0x5c4e44]=await Promise[_0x4c7934(0xa6)]([import(_0x4c7934(0xc5)),import('../../components/LoadingSpinner.js'),import(_0x4c7934(0xc8))]);expect(_0x3b1176[_0x4c7934(0xab)])['toBeDefined'](),expect(_0x1f737f[_0x4c7934(0xb8)])['toBeDefined'](),expect(_0x1f737f[_0x4c7934(0xaa)])['toBeDefined'](),expect(_0x5c4e44[_0x4c7934(0xb2)])['toBeDefined']();}),test('Enhanced Layout component imports useInput for keyboard shortcuts',async()=>{const _0x5b131a=a0_0xd3e6,_0x1165ad=await import(_0x5b131a(0xb1)),_0xb071fa=await import('ink');expect(_0xb071fa['useInput'])['toBeDefined'](),expect(typeof _0xb071fa['useInput'])['toBe'](_0x5b131a(0xbd));}),test('Layout component can still be imported after enhancements',async()=>{const _0x133dbb=a0_0xd3e6,{Layout:_0xe3aae2}=await import(_0x133dbb(0xae));expect(_0xe3aae2)['toBeDefined'](),expect(typeof _0xe3aae2)['toBe'](_0x133dbb(0xbd));});}),describe(a0_0x3e0120(0xa9),()=>{const _0x2044ec=a0_0x3e0120;test(_0x2044ec(0xaf),async()=>{const _0x247eca=_0x2044ec,module=await import('../../components/InputBox.js');expect(module[_0x247eca(0xb2)])['toBeDefined']();});});
1
+ const a0_0x528f69=a0_0x519b;(function(_0x4e02ed,_0x597e2c){const _0x220b13=a0_0x519b,_0x415577=_0x4e02ed();while(!![]){try{const _0x24d905=parseInt(_0x220b13(0x100))/0x1*(parseInt(_0x220b13(0xeb))/0x2)+-parseInt(_0x220b13(0x102))/0x3*(parseInt(_0x220b13(0xed))/0x4)+-parseInt(_0x220b13(0xff))/0x5*(-parseInt(_0x220b13(0xf9))/0x6)+parseInt(_0x220b13(0xe8))/0x7*(-parseInt(_0x220b13(0xf3))/0x8)+-parseInt(_0x220b13(0xea))/0x9*(-parseInt(_0x220b13(0xfb))/0xa)+-parseInt(_0x220b13(0xf0))/0xb+-parseInt(_0x220b13(0xfe))/0xc*(-parseInt(_0x220b13(0xf4))/0xd);if(_0x24d905===_0x597e2c)break;else _0x415577['push'](_0x415577['shift']());}catch(_0x48dc08){_0x415577['push'](_0x415577['shift']());}}}(a0_0x1588,0x75e06));function a0_0x1588(){const _0x175f07=['CMvUzgvY','tg9HzgLUz1nWAw5UzxiGAxmGysbMDw5JDgLVBIbJB21WB25LBNq','y29TCg9Uzw50rgLKq2f0y2G','rxjYB3jcB3vUzgfYEsbPCYbHifjLywn0ienVBxbVBMvUDcbJBgfZCW','DxnLu3rHDgu','ugHHC2uGosaTieXVywrPBMDtCgLUBMvYic0Gu3rYDwn0DxjL','oteYmwjiwuDorW','sw5SAw5Lu3bPBM5LCIbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','ouzXsw5syW','mZG0mLfWBgr1sG','sw5WDxrcB3G','nevZC3nLyW','zgvMyxvSDa','ugHHC2uGosaTieLUDgvNCMf0Aw9U','ntC3nZm3nLHgBM9vAq','DxnLsw5WDxq','rxjYB3jcB3vUzgfYEsbJB21WB25LBNreAwrdyxrJAcbPCYbKzwzPBMvK','mtu1mMXUz09Ayq','mZLrzg5Uwui','ugHHC2uGosaTievUAgfUy2vKieLUChv0qM94ic0GsgLZDg9YEsbtDxbWB3j0','ywXS','ugHHC2uGosaTievYCM9YqM91BMrHCNKGlsbtDhj1y3r1CMu','Dg9czq','nMnqu0TfqW','rxjYB3jcB3vUzgfYEq','ntyZmdC3mhrbseXcra','lI4VlI4Vy29TCg9Uzw50CY9fCNjVCKjVDw5Kyxj5lMPZ','DxnLuMvM','mJuYmZeYvxvVEffI','mJmWnZe5nuH2z05eBG','ndK5weXfu3LX','zNvUy3rPB24','mJm1nJa1our2t1zSCa','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','z2v0rgvYAxzLzfn0yxrLrNjVBuvYCM9Y','ChjVDg90ExbL','lI4VlI4Vy29TCg9Uzw50CY9mB2fKAw5Nu3bPBM5LCI5QCW','CMvHy3q','Dg9czurLzMLUzwq','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','rxjYB3jcB3vUzgfYEsbPCYbHignSyxnZignVBxbVBMvUDa'];a0_0x1588=function(){return _0x175f07;};return a0_0x1588();}function a0_0x519b(_0x3ee884,_0x304f2c){_0x3ee884=_0x3ee884-0xe6;const _0x1588e3=a0_0x1588();let _0x519b12=_0x1588e3[_0x3ee884];if(a0_0x519b['eAyMSp']===undefined){var _0x54a861=function(_0x5bca0b){const _0x2a308b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1074c5='',_0x56b5d0='';for(let _0x16858d=0x0,_0x2809c0,_0x5ba24d,_0x47465d=0x0;_0x5ba24d=_0x5bca0b['charAt'](_0x47465d++);~_0x5ba24d&&(_0x2809c0=_0x16858d%0x4?_0x2809c0*0x40+_0x5ba24d:_0x5ba24d,_0x16858d++%0x4)?_0x1074c5+=String['fromCharCode'](0xff&_0x2809c0>>(-0x2*_0x16858d&0x6)):0x0){_0x5ba24d=_0x2a308b['indexOf'](_0x5ba24d);}for(let _0x28dcd0=0x0,_0xc5b65f=_0x1074c5['length'];_0x28dcd0<_0xc5b65f;_0x28dcd0++){_0x56b5d0+='%'+('00'+_0x1074c5['charCodeAt'](_0x28dcd0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x56b5d0);};a0_0x519b['LZrIuy']=_0x54a861,a0_0x519b['ixfWhx']={},a0_0x519b['eAyMSp']=!![];}const _0x22e1d9=_0x1588e3[0x0],_0x1ef36f=_0x3ee884+_0x22e1d9,_0x2d1bef=a0_0x519b['ixfWhx'][_0x1ef36f];return!_0x2d1bef?(_0x519b12=a0_0x519b['LZrIuy'](_0x519b12),a0_0x519b['ixfWhx'][_0x1ef36f]=_0x519b12):_0x519b12=_0x2d1bef,_0x519b12;}import{describe,test,expect}from'@jest/globals';describe('Phase\x209\x20-\x20Enhanced\x20Components\x20-\x20Imports',()=>{const _0x5a4f2f=a0_0x519b;test('ErrorBoundary component can be imported',async()=>{const _0x2a049e=a0_0x519b,{ErrorBoundary:_0x1074c5}=await import(_0x2a049e(0xfc));expect(_0x1074c5)['toBeDefined'](),expect(typeof _0x1074c5)['toBe']('function');},0x7530),test(_0x5a4f2f(0x10a),async()=>{const _0x4fcee1=_0x5a4f2f,{ErrorBoundary:_0x56b5d0}=await import(_0x4fcee1(0xfc));expect(_0x56b5d0['prototype'])[_0x4fcee1(0x108)](),expect(typeof _0x56b5d0['prototype'][_0x4fcee1(0x10b)])['toBe'](_0x4fcee1(0x101));}),test('LoadingSpinner component can be imported',async()=>{const _0x32fc87=_0x5a4f2f,{LoadingSpinner:_0x16858d}=await import(_0x32fc87(0x106));expect(_0x16858d)[_0x32fc87(0x108)](),expect(typeof _0x16858d)[_0x32fc87(0xf8)]('function');}),test('InlineSpinner component can be imported',async()=>{const _0x52502f=_0x5a4f2f,{InlineSpinner:_0x2809c0}=await import('../../components/LoadingSpinner.js');expect(_0x2809c0)['toBeDefined'](),expect(typeof _0x2809c0)[_0x52502f(0xf8)]('function');}),test('LoadingSpinner is default export',async()=>{const _0x3c395d=_0x5a4f2f,module=await import('../../components/LoadingSpinner.js');expect(module[_0x3c395d(0xee)])['toBeDefined'](),expect(module[_0x3c395d(0xee)])[_0x3c395d(0xf8)](module['LoadingSpinner']);}),test('Enhanced\x20InputBox\x20maintains\x20backward\x20compatibility',async()=>{const _0x36f67d=_0x5a4f2f,{InputBox:_0x5ba24d}=await import(_0x36f67d(0x103));expect(_0x5ba24d)[_0x36f67d(0x108)](),expect(typeof _0x5ba24d)[_0x36f67d(0xf8)]('function');});}),describe(a0_0x528f69(0xf7),()=>{const _0x3133f9=a0_0x528f69;test(_0x3133f9(0x10e),async()=>{const _0x48dd47=_0x3133f9,{ErrorBoundary:_0x47465d}=await import(_0x48dd47(0xfc)),_0x28dcd0=await import(_0x48dd47(0x107));expect(_0x47465d[_0x48dd47(0x105)])['toBeDefined'](),expect(typeof _0x47465d[_0x48dd47(0x105)][_0x48dd47(0x10b)])[_0x48dd47(0xf8)]('function'),expect(typeof _0x47465d[_0x48dd47(0x105)][_0x48dd47(0x10d)])['toBe'](_0x48dd47(0x101));}),test('ErrorBoundary\x20has\x20getDerivedStateFromError\x20static\x20method',async()=>{const _0x41be97=_0x3133f9,{ErrorBoundary:_0xc5b65f}=await import(_0x41be97(0xfc));expect(typeof _0xc5b65f[_0x41be97(0x104)])[_0x41be97(0xf8)](_0x41be97(0x101));}),test(_0x3133f9(0xf2),async()=>{const _0x50684b=_0x3133f9,{ErrorBoundary:_0x3dd7c6}=await import('../../components/ErrorBoundary.js');expect(typeof _0x3dd7c6['prototype'][_0x50684b(0x10d)])['toBe']('function');});}),describe(a0_0x528f69(0xe7),()=>{const _0x278d2f=a0_0x528f69;test(_0x278d2f(0x10c),async()=>{const _0x134e4a=_0x278d2f,{LoadingSpinner:_0x37cc9c}=await import('../../components/LoadingSpinner.js');expect(typeof _0x37cc9c)['toBe'](_0x134e4a(0x101)),expect(_0x37cc9c[_0x134e4a(0x105)]?.[_0x134e4a(0x10b)])['toBeUndefined']();}),test(_0x278d2f(0xe9),async()=>{const _0x27c6f7=_0x278d2f,{InlineSpinner:_0x525c39}=await import(_0x27c6f7(0x106));expect(typeof _0x525c39)[_0x27c6f7(0xf8)](_0x27c6f7(0x101)),expect(_0x525c39[_0x27c6f7(0x105)]?.['render'])['toBeUndefined']();});}),describe(a0_0x528f69(0xf5),()=>{test('Enhanced InputBox imports useRef for history',async()=>{const _0x535322=a0_0x519b,_0x5de7a3=await import('../../components/InputBox.js'),_0x3a1abb=await import('react');expect(_0x3a1abb[_0x535322(0xe6)])[_0x535322(0x108)](),expect(_0x3a1abb[_0x535322(0xfd)])['toBeDefined']();}),test('InputBox component maintains exports',async()=>{const _0x4c6ca0=a0_0x519b,module=await import('../../components/InputBox.js');expect(module[_0x4c6ca0(0xec)])[_0x4c6ca0(0x108)](),expect(module[_0x4c6ca0(0xee)])[_0x4c6ca0(0x108)](),expect(module['default'])[_0x4c6ca0(0xf8)](module[_0x4c6ca0(0xec)]);});}),describe(a0_0x528f69(0xef),()=>{test('All enhanced components can be imported together',async()=>{const _0x4c6c1a=a0_0x519b,[_0x33ae3e,_0x451ce4,_0x1e7bdc]=await Promise[_0x4c6c1a(0xf6)]([import(_0x4c6c1a(0xfc)),import('../../components/LoadingSpinner.js'),import(_0x4c6c1a(0x103))]);expect(_0x33ae3e[_0x4c6c1a(0xfa)])['toBeDefined'](),expect(_0x451ce4['LoadingSpinner'])[_0x4c6c1a(0x108)](),expect(_0x451ce4['InlineSpinner'])[_0x4c6c1a(0x108)](),expect(_0x1e7bdc['InputBox'])[_0x4c6c1a(0x108)]();}),test('Enhanced Layout component imports useInput for keyboard shortcuts',async()=>{const _0x5a3f07=a0_0x519b,_0x152142=await import(_0x5a3f07(0x107)),_0x51d189=await import('ink');expect(_0x51d189[_0x5a3f07(0xf1)])['toBeDefined'](),expect(typeof _0x51d189[_0x5a3f07(0xf1)])[_0x5a3f07(0xf8)]('function');}),test('Layout component can still be imported after enhancements',async()=>{const _0xd7896d=a0_0x519b,{Layout:_0x333773}=await import(_0xd7896d(0x109));expect(_0x333773)[_0xd7896d(0x108)](),expect(typeof _0x333773)[_0xd7896d(0xf8)](_0xd7896d(0x101));});}),describe('Phase\x209\x20-\x20Enhanced\x20Features\x20-\x20Constants',()=>{test('InputBox\x20defines\x20MAX_HISTORY\x20constant',async()=>{const _0x4c2a49=a0_0x519b,module=await import('../../components/InputBox.js');expect(module['InputBox'])[_0x4c2a49(0x108)]();});});