@loxia-labs/loxia-autopilot-one 1.0.17 → 1.0.19

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 (122) hide show
  1. package/README.md +5 -3
  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/agentActivityService.js +1 -1
  76. package/src/services/aiService.js +1 -1
  77. package/src/services/apiKeyManager.js +1 -1
  78. package/src/services/benchmarkService.js +1 -1
  79. package/src/services/budgetService.js +1 -1
  80. package/src/services/contextInjectionService.js +1 -1
  81. package/src/services/conversationCompactionService.js +1 -1
  82. package/src/services/errorHandler.js +1 -1
  83. package/src/services/fileAttachmentService.js +1 -1
  84. package/src/services/modelRouterService.js +1 -1
  85. package/src/services/modelsService.js +1 -1
  86. package/src/services/qualityInspector.js +1 -1
  87. package/src/services/tokenCountingService.js +1 -1
  88. package/src/tools/agentCommunicationTool.js +1 -1
  89. package/src/tools/agentDelayTool.js +1 -1
  90. package/src/tools/asyncToolManager.js +1 -1
  91. package/src/tools/baseTool.js +1 -1
  92. package/src/tools/browserTool.js +1 -1
  93. package/src/tools/cloneDetectionTool.js +1 -1
  94. package/src/tools/dependencyResolverTool.js +1 -1
  95. package/src/tools/fileContentReplaceTool.js +1 -1
  96. package/src/tools/fileSystemTool.js +1 -1
  97. package/src/tools/fileTreeTool.js +1 -1
  98. package/src/tools/imageTool.js +1 -1
  99. package/src/tools/importAnalyzerTool.js +1 -1
  100. package/src/tools/jobDoneTool.js +1 -1
  101. package/src/tools/seekTool.js +1 -1
  102. package/src/tools/staticAnalysisTool.js +1 -1
  103. package/src/tools/taskManagerTool.js +1 -1
  104. package/src/tools/terminalTool.js +1 -1
  105. package/src/tools/webTool.js +1 -1
  106. package/src/types/agent.js +1 -1
  107. package/src/types/contextReference.js +1 -1
  108. package/src/types/conversation.js +1 -1
  109. package/src/types/toolCommand.js +1 -1
  110. package/src/utilities/attachmentValidator.js +1 -1
  111. package/src/utilities/configManager.js +1 -1
  112. package/src/utilities/constants.js +1 -1
  113. package/src/utilities/directoryAccessManager.js +1 -1
  114. package/src/utilities/fileProcessor.js +1 -1
  115. package/src/utilities/logger.js +1 -1
  116. package/src/utilities/tagParser.js +1 -1
  117. package/src/utilities/toolConstants.js +1 -1
  118. package/src/utilities/userDataDir.js +1 -1
  119. package/web-ui/build/index.html +2 -2
  120. package/web-ui/build/static/index-Cb8CHAFw.css +1 -0
  121. package/web-ui/build/static/{index-DzOU48ux.js → index-CcwO7jS4.js} +72 -72
  122. package/web-ui/build/static/index-CRkOpV4k.css +0 -1
@@ -1 +1 @@
1
- const a0_0x489a49=a0_0x4b67;(function(_0x2db687,_0x2b6f13){const _0x445551=a0_0x4b67,_0x20fefb=_0x2db687();while(!![]){try{const _0x5627ee=parseInt(_0x445551(0x121))/0x1*(parseInt(_0x445551(0x11d))/0x2)+parseInt(_0x445551(0x11f))/0x3*(-parseInt(_0x445551(0x10b))/0x4)+parseInt(_0x445551(0x12a))/0x5+-parseInt(_0x445551(0xe9))/0x6*(-parseInt(_0x445551(0x11e))/0x7)+parseInt(_0x445551(0xf4))/0x8*(parseInt(_0x445551(0xfb))/0x9)+parseInt(_0x445551(0x105))/0xa+-parseInt(_0x445551(0x104))/0xb*(parseInt(_0x445551(0xfc))/0xc);if(_0x5627ee===_0x2b6f13)break;else _0x20fefb['push'](_0x20fefb['shift']());}catch(_0x49587a){_0x20fefb['push'](_0x20fefb['shift']());}}}(a0_0x4365,0x914b9));import a0_0x2aed28 from'readline';import{INTERFACE_TYPES,ORCHESTRATOR_ACTIONS}from'../utilities/constants.js';function a0_0x4b67(_0x4cecf6,_0x28441d){_0x4cecf6=_0x4cecf6-0xe6;const _0x4365ba=a0_0x4365();let _0x4b673c=_0x4365ba[_0x4cecf6];if(a0_0x4b67['HRHYoO']===undefined){var _0x33f79d=function(_0x3c92d9){const _0x298c3c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2aed28='',_0x4c79c5='';for(let _0x2c0cc5=0x0,_0x59d117,_0x568a42,_0x2efd02=0x0;_0x568a42=_0x3c92d9['charAt'](_0x2efd02++);~_0x568a42&&(_0x59d117=_0x2c0cc5%0x4?_0x59d117*0x40+_0x568a42:_0x568a42,_0x2c0cc5++%0x4)?_0x2aed28+=String['fromCharCode'](0xff&_0x59d117>>(-0x2*_0x2c0cc5&0x6)):0x0){_0x568a42=_0x298c3c['indexOf'](_0x568a42);}for(let _0x6e1d00=0x0,_0x3705d9=_0x2aed28['length'];_0x6e1d00<_0x3705d9;_0x6e1d00++){_0x4c79c5+='%'+('00'+_0x2aed28['charCodeAt'](_0x6e1d00)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c79c5);};a0_0x4b67['xFzKdP']=_0x33f79d,a0_0x4b67['qXWonr']={},a0_0x4b67['HRHYoO']=!![];}const _0x2f32b5=_0x4365ba[0x0],_0x1bc9c0=_0x4cecf6+_0x2f32b5,_0x30f42a=a0_0x4b67['qXWonr'][_0x1bc9c0];return!_0x30f42a?(_0x4b673c=a0_0x4b67['xFzKdP'](_0x4b673c),a0_0x4b67['qXWonr'][_0x1bc9c0]=_0x4b673c):_0x4b673c=_0x30f42a,_0x4b673c;}class CLIInterface{constructor(_0x4c79c5,_0x2c0cc5,_0x59d117={}){const _0x4581c3=a0_0x4b67;this['orchestrator']=_0x4c79c5,this['logger']=_0x2c0cc5,this['config']=_0x59d117,this['rl']=null,this['sessionId']='cli-'+Date['now'](),this['currentAgent']=null,this['isRunning']=![],this[_0x4581c3(0x12b)]=_0x59d117['historySize']||0x3e8,this['commandHistory']=[],this[_0x4581c3(0x148)]={'help':this['showHelp'][_0x4581c3(0x112)](this),'exit':this['exit']['bind'](this),'quit':this['exit'][_0x4581c3(0x112)](this),'status':this['showStatus']['bind'](this),'agents':this[_0x4581c3(0x10c)]['bind'](this),'create':this['createAgent']['bind'](this),'switch':this[_0x4581c3(0x13b)][_0x4581c3(0x112)](this),'pause':this['pauseAgent'][_0x4581c3(0x112)](this),'resume':this['resumeAgent'][_0x4581c3(0x112)](this),'clear':this['clearScreen']['bind'](this),'history':this[_0x4581c3(0x135)]['bind'](this)};}async['initialize'](){const _0x2e7668=a0_0x4b67;this['rl']=a0_0x2aed28[_0x2e7668(0x10e)]({'input':process['stdin'],'output':process[_0x2e7668(0x101)],'prompt':this[_0x2e7668(0xf8)](),'historySize':this[_0x2e7668(0x12b)]}),this['rl']['on']('line',this['handleInput']['bind'](this)),this['rl']['on']('close',this[_0x2e7668(0x13f)][_0x2e7668(0x112)](this)),this['rl']['on']('SIGINT',()=>{const _0x288abf=_0x2e7668;console['log'](_0x288abf(0x157)),this['rl'][_0x288abf(0x12c)]();}),this['isRunning']=!![],this[_0x2e7668(0x114)](),this['rl'][_0x2e7668(0x12c)]();}async['handleInput'](_0x568a42){const _0x5e05c3=a0_0x4b67,_0x2efd02=_0x568a42[_0x5e05c3(0x141)]();if(_0x2efd02[_0x5e05c3(0xe8)]===0x0){this['rl'][_0x5e05c3(0x12c)]();return;}this[_0x5e05c3(0x111)]['push']({'command':_0x2efd02,'timestamp':new Date()[_0x5e05c3(0x14c)]()});this[_0x5e05c3(0x111)]['length']>this[_0x5e05c3(0x12b)]&&this['commandHistory']['shift']();try{await this[_0x5e05c3(0x14f)](_0x2efd02);}catch(_0x6e1d00){console[_0x5e05c3(0x151)](_0x5e05c3(0x14b),_0x6e1d00['message']),this[_0x5e05c3(0x10a)]?.[_0x5e05c3(0x151)]('CLI\x20command\x20error',{'command':_0x2efd02,'error':_0x6e1d00[_0x5e05c3(0x11b)]});}this[_0x5e05c3(0x155)]&&this['rl'][_0x5e05c3(0x12c)]();}async[a0_0x489a49(0x14f)](_0x3705d9){const _0x1f0e20=a0_0x489a49;if(_0x3705d9[_0x1f0e20(0x120)]('/')){const _0x35a586=_0x3705d9['slice'](0x1)[_0x1f0e20(0x108)]('\x20'),_0x32bb90=_0x35a586[0x0]['toLowerCase'](),_0x31984a=_0x35a586[_0x1f0e20(0x100)](0x1);if(this['commands'][_0x32bb90]){await this['commands'][_0x32bb90](_0x31984a);return;}else{console['log'](_0x1f0e20(0xec)+_0x32bb90),console['log'](_0x1f0e20(0xf7));return;}}if(!this['currentAgent']){console['log'](_0x1f0e20(0x10d));return;}await this[_0x1f0e20(0xf5)](_0x3705d9);}async['sendMessageToAgent'](_0x4df64b){const _0x1a49c0=a0_0x489a49;console['log'](_0x1a49c0(0x110));try{const _0x294e8e={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0x1a49c0(0x153)],'action':ORCHESTRATOR_ACTIONS['SEND_MESSAGE'],'payload':{'agentId':this['currentAgent']['id'],'message':_0x4df64b,'mode':_0x1a49c0(0x145)},'projectDir':process[_0x1a49c0(0xed)]()},_0x8d576f=await this[_0x1a49c0(0xf2)][_0x1a49c0(0x142)](_0x294e8e);if(_0x8d576f['success']){console[_0x1a49c0(0x14d)]('🤖\x20Agent\x20response:'),console[_0x1a49c0(0x14d)](_0x8d576f['data'][_0x1a49c0(0x11b)]['content']);if(_0x8d576f['data']['toolResults']&&_0x8d576f['data']['toolResults']['length']>0x0){console['log']('\x0a🔧\x20Tool\x20execution\x20results:');for(const _0x158281 of _0x8d576f['data'][_0x1a49c0(0xfe)]){console[_0x1a49c0(0x14d)]('\x20\x20'+_0x158281['toolId']+':\x20'+_0x158281[_0x1a49c0(0xf9)]),_0x158281[_0x1a49c0(0xef)]&&console[_0x1a49c0(0x14d)]('\x20\x20\x20\x20Result:\x20'+JSON['stringify'](_0x158281[_0x1a49c0(0xef)],null,0x2));}}}else console[_0x1a49c0(0x151)](_0x1a49c0(0x119),_0x8d576f['error']);}catch(_0x598d37){console[_0x1a49c0(0x151)](_0x1a49c0(0x126),_0x598d37[_0x1a49c0(0x11b)]);}}[a0_0x489a49(0x114)](){const _0x25fbf2=a0_0x489a49;console['log'](''),console['log'](_0x25fbf2(0x13d)),console[_0x25fbf2(0x14d)](_0x25fbf2(0x15a)),console[_0x25fbf2(0x14d)]('\x20\x20\x20Type\x20/create\x20<name>\x20to\x20create\x20your\x20first\x20agent'),console[_0x25fbf2(0x14d)]('');}async[a0_0x489a49(0x115)](){const _0x2e0791=a0_0x489a49;console[_0x2e0791(0x14d)](''),console['log'](_0x2e0791(0xe6)),console[_0x2e0791(0x14d)](''),console['log'](_0x2e0791(0xf1)),console[_0x2e0791(0x14d)](_0x2e0791(0xf0)),console['log'](_0x2e0791(0x152)),console['log'](_0x2e0791(0x14e)),console['log'](_0x2e0791(0x127)),console[_0x2e0791(0x14d)](_0x2e0791(0x138)),console['log'](_0x2e0791(0x147)),console[_0x2e0791(0x14d)]('\x20\x20/history\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20command\x20history'),console['log'](_0x2e0791(0xfd)),console[_0x2e0791(0x14d)]('\x20\x20/exit\x20or\x20/quit\x20\x20\x20\x20\x20\x20\x20-\x20Exit\x20the\x20CLI'),console[_0x2e0791(0x14d)](''),console['log'](_0x2e0791(0x123)),console[_0x2e0791(0x14d)]('\x20\x20\x20Simply\x20type\x20your\x20message\x20to\x20send\x20it\x20to\x20the\x20current\x20agent'),console[_0x2e0791(0x14d)]('\x20\x20\x20Agents\x20can\x20use\x20tools\x20and\x20communicate\x20with\x20other\x20agents'),console[_0x2e0791(0x14d)]('');}async['showStatus'](){const _0x3e5ec1=a0_0x489a49;try{const _0x554f51={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['GET_SESSION_STATE'],'payload':{},'projectDir':process[_0x3e5ec1(0xed)]()},_0x4dd168=await this[_0x3e5ec1(0xf2)]['processRequest'](_0x554f51);if(_0x4dd168['success']){const _0xba8f2e=_0x4dd168['data'];console[_0x3e5ec1(0x14d)](''),console[_0x3e5ec1(0x14d)]('📊\x20System\x20Status:'),console[_0x3e5ec1(0x14d)](_0x3e5ec1(0x128)+_0xba8f2e[_0x3e5ec1(0x153)]),console['log']('\x20\x20\x20Project:\x20'+_0xba8f2e[_0x3e5ec1(0x159)]),console['log']('\x20\x20\x20Agents:\x20'+_0xba8f2e['agents'][_0x3e5ec1(0xe8)]),console[_0x3e5ec1(0x14d)]('\x20\x20\x20Current\x20Agent:\x20'+(this['currentAgent']?this[_0x3e5ec1(0x137)][_0x3e5ec1(0x113)]:'None')),console[_0x3e5ec1(0x14d)]('');if(_0xba8f2e[_0x3e5ec1(0x12e)]['length']>0x0){console['log']('🤖\x20Active\x20Agents:');for(const _0x20a9db of _0xba8f2e['agents']){const _0x113c0d=_0x20a9db[_0x3e5ec1(0x156)]?_0x20a9db[_0x3e5ec1(0xf9)]+_0x3e5ec1(0x130)+_0x20a9db['pausedUntil']+')':_0x20a9db[_0x3e5ec1(0xf9)];console[_0x3e5ec1(0x14d)](_0x3e5ec1(0x154)+_0x20a9db['id']+':\x20'+_0x20a9db['name']+'\x20('+_0x113c0d+')');}console[_0x3e5ec1(0x14d)]('');}}else console['error']('❌\x20Failed\x20to\x20get\x20status:',_0x4dd168['error']);}catch(_0x489e31){console[_0x3e5ec1(0x151)](_0x3e5ec1(0xf3),_0x489e31[_0x3e5ec1(0x11b)]);}}async[a0_0x489a49(0x10c)](){const _0x276e0c=a0_0x489a49;try{const _0x559aaa={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0x276e0c(0x153)],'action':ORCHESTRATOR_ACTIONS[_0x276e0c(0x140)],'payload':{},'projectDir':process[_0x276e0c(0xed)]()},_0x40a0dd=await this['orchestrator']['processRequest'](_0x559aaa);if(_0x40a0dd[_0x276e0c(0x143)]){const _0x1f239f=_0x40a0dd[_0x276e0c(0x158)];console[_0x276e0c(0x14d)]('');if(_0x1f239f['length']===0x0)console['log'](_0x276e0c(0x10f)),console['log'](_0x276e0c(0x107));else{console[_0x276e0c(0x14d)](_0x276e0c(0x134));for(const _0x716aa2 of _0x1f239f){const _0x96dbd1=this['currentAgent']&&this['currentAgent']['id']===_0x716aa2['id']?_0x276e0c(0xff):'',_0x13db1f=_0x716aa2['isPaused']?_0x716aa2['status']+_0x276e0c(0x130)+_0x716aa2['pausedUntil']+')':_0x716aa2['status'];console[_0x276e0c(0x14d)](_0x276e0c(0x154)+_0x716aa2['id']+':\x20'+_0x716aa2['name']+_0x96dbd1),console[_0x276e0c(0x14d)]('\x20\x20\x20\x20\x20Status:\x20'+_0x13db1f),console[_0x276e0c(0x14d)](_0x276e0c(0x13c)+_0x716aa2['currentModel']),console[_0x276e0c(0x14d)](_0x276e0c(0x133)+_0x716aa2[_0x276e0c(0x102)]),console[_0x276e0c(0x14d)]('');}}}else console[_0x276e0c(0x151)]('❌\x20Failed\x20to\x20list\x20agents:',_0x40a0dd[_0x276e0c(0x151)]);}catch(_0x303f63){console[_0x276e0c(0x151)](_0x276e0c(0xfa),_0x303f63['message']);}}async['createAgent'](_0x30981a){const _0x201fc8=a0_0x489a49;if(_0x30981a[_0x201fc8(0xe8)]===0x0){console['log']('❌\x20Usage:\x20/create\x20<agent-name>\x20[model]');return;}const _0x2cca1a=_0x30981a[0x0],_0x418224=_0x30981a[0x1]||_0x201fc8(0x116);console[_0x201fc8(0x14d)](_0x201fc8(0x12d)+_0x2cca1a+'\x22\x20with\x20model\x20'+_0x418224+_0x201fc8(0x125));try{const _0x57d045={'interface':INTERFACE_TYPES[_0x201fc8(0xee)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x201fc8(0x146)],'payload':{'name':_0x2cca1a,'systemPrompt':'You\x20are\x20'+_0x2cca1a+_0x201fc8(0xea),'model':_0x418224,'capabilities':['terminal',_0x201fc8(0x131),'agentdelay','browser']},'projectDir':process[_0x201fc8(0xed)]()},_0x1b6d6b=await this['orchestrator']['processRequest'](_0x57d045);if(_0x1b6d6b[_0x201fc8(0x143)]){const _0x1f94dd=_0x1b6d6b[_0x201fc8(0x158)];this['currentAgent']=_0x1f94dd,console['log']('✅\x20Agent\x20created\x20successfully!'),console['log']('\x20\x20\x20ID:\x20'+_0x1f94dd['id']),console[_0x201fc8(0x14d)]('\x20\x20\x20Name:\x20'+_0x1f94dd['name']),console[_0x201fc8(0x14d)](_0x201fc8(0x150)+_0x1f94dd[_0x201fc8(0x117)]),console[_0x201fc8(0x14d)](_0x201fc8(0xeb)),this['rl']['setPrompt'](this['getPrompt']());}else console[_0x201fc8(0x151)]('❌\x20Failed\x20to\x20create\x20agent:',_0x1b6d6b[_0x201fc8(0x151)]);}catch(_0x438fa6){console[_0x201fc8(0x151)]('❌\x20Create\x20agent\x20command\x20failed:',_0x438fa6[_0x201fc8(0x11b)]);}}async[a0_0x489a49(0x13b)](_0x4f5573){const _0x520f50=a0_0x489a49;if(_0x4f5573[_0x520f50(0xe8)]===0x0){console['log'](_0x520f50(0x122));return;}const _0x410dab=_0x4f5573[0x0];try{const _0x39dc98={'interface':INTERFACE_TYPES[_0x520f50(0xee)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x520f50(0x11c)],'payload':{'agentId':_0x410dab},'projectDir':process['cwd']()},_0x4f74e1=await this[_0x520f50(0xf2)]['processRequest'](_0x39dc98);_0x4f74e1['success']?(this['currentAgent']=_0x4f74e1[_0x520f50(0x158)],console['log']('✅\x20Switched\x20to\x20agent:\x20'+this['currentAgent'][_0x520f50(0x113)]+'\x20('+this['currentAgent']['id']+')'),this['rl'][_0x520f50(0x144)](this['getPrompt']())):console[_0x520f50(0x151)](_0x520f50(0x12f),_0x4f74e1[_0x520f50(0x151)]);}catch(_0x43a21c){console['error'](_0x520f50(0x132),_0x43a21c[_0x520f50(0x11b)]);}}async[a0_0x489a49(0xe7)](_0x57a15e){const _0x49a7ff=a0_0x489a49;if(_0x57a15e[_0x49a7ff(0xe8)]===0x0){console['log'](_0x49a7ff(0x13e));return;}const _0x40d42c=_0x57a15e[0x0],_0xe42214=parseInt(_0x57a15e[0x1])||0x3c,_0xe6e59e=_0x57a15e[_0x49a7ff(0x100)](0x2)['join']('\x20')||'Manual pause from CLI';try{const _0x379773={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x49a7ff(0x11a)],'payload':{'agentId':_0x40d42c,'duration':_0xe42214,'reason':_0xe6e59e},'projectDir':process['cwd']()},_0x4f048b=await this[_0x49a7ff(0xf2)]['processRequest'](_0x379773);_0x4f048b[_0x49a7ff(0x143)]?(console['log']('✅\x20Agent\x20paused\x20for\x20'+_0xe42214+'\x20seconds'),console[_0x49a7ff(0x14d)](_0x49a7ff(0x129)+_0xe6e59e)):console['error'](_0x49a7ff(0x106),_0x4f048b['error']);}catch(_0x2c4742){console['error']('❌\x20Pause\x20agent\x20command\x20failed:',_0x2c4742['message']);}}async[a0_0x489a49(0x13a)](_0x1767d7){const _0x4e6fce=a0_0x489a49;if(_0x1767d7['length']===0x0){console[_0x4e6fce(0x14d)](_0x4e6fce(0xf6));return;}const _0x2c8fca=_0x1767d7[0x0];try{const _0x5a0c03={'interface':INTERFACE_TYPES[_0x4e6fce(0xee)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x4e6fce(0x103)],'payload':{'agentId':_0x2c8fca},'projectDir':process['cwd']()},_0x177c71=await this[_0x4e6fce(0xf2)][_0x4e6fce(0x142)](_0x5a0c03);_0x177c71['success']?console[_0x4e6fce(0x14d)]('✅\x20Agent\x20resumed\x20successfully'):console['error']('❌\x20Failed\x20to\x20resume\x20agent:',_0x177c71['error']);}catch(_0x2aacc6){console['error'](_0x4e6fce(0x124),_0x2aacc6[_0x4e6fce(0x11b)]);}}async['showHistory'](){const _0x2de085=a0_0x489a49;console[_0x2de085(0x14d)](''),console['log']('📜\x20Command\x20History:');if(this[_0x2de085(0x111)][_0x2de085(0xe8)]===0x0)console[_0x2de085(0x14d)](_0x2de085(0x149));else{const _0x41fb3c=this['commandHistory']['slice'](-0xa);for(let _0x93ac01=0x0;_0x93ac01<_0x41fb3c[_0x2de085(0xe8)];_0x93ac01++){const _0x32600e=_0x41fb3c[_0x93ac01],_0x483835=new Date(_0x32600e[_0x2de085(0x14a)])['toLocaleTimeString']();console[_0x2de085(0x14d)](_0x2de085(0x154)+(_0x93ac01+0x1)+_0x2de085(0x109)+_0x483835+']\x20'+_0x32600e['command']);}this['commandHistory']['length']>0xa&&console['log']('\x20\x20\x20...\x20and\x20'+(this[_0x2de085(0x111)][_0x2de085(0xe8)]-0xa)+'\x20more\x20commands');}console[_0x2de085(0x14d)]('');}async['clearScreen'](){const _0x33fe39=a0_0x489a49;console[_0x33fe39(0x118)](),this[_0x33fe39(0x114)]();}async[a0_0x489a49(0x13f)](){const _0x21a5f9=a0_0x489a49;this[_0x21a5f9(0x155)]&&(console['log'](_0x21a5f9(0x139)),this[_0x21a5f9(0x155)]=![],this['rl']&&this['rl']['close']());}['getPrompt'](){const _0x3d0e2b=a0_0x489a49,_0xc8bca2=this['currentAgent']?this[_0x3d0e2b(0x137)]['name']:'no-agent';return _0x3d0e2b(0x136)+_0xc8bca2+'>\x20';}async['shutdown'](){const _0xeab92c=a0_0x489a49;await this[_0xeab92c(0x13f)]();}}export default CLIInterface;function a0_0x4365(){const _0x52933b=['icaGtM8Gy29TBwfUzhmGzxHLy3v0zwqGEwv0','DgLTzxn0yw1W','4P2mievYCM9YoG','Dg9ju09tDhjPBMC','Bg9N','icaVy3jLyxrLidXUyw1LpIaGicaGicaTienYzwf0zsbHig5LDYbHz2vUDa','ChjVy2vZC0LUChv0','icaGtw9KzwW6ia','zxjYB3i','icaVywDLBNrZicaGicaGicaGicaGicaTieXPC3qGywXSigfNzw50CW','C2vZC2LVBKLK','icaG','AxnsDw5UAw5N','AxnqyxvZzwq','cIHuBYbLEgL0lcb0ExbLicjLEgL0iIbVCIbWCMvZCYbdDhjSk0mGywDHAw4P','zgf0yq','ChjVAMvJDerPCG','icaGvhLWzsaVAgvSCcbMB3iGyxzHAwXHyMXLignVBw1HBMrZ','8j+tMIbmB3HPysbbDxrVCgLSB3qGt25LienmssbdB21Tyw5KCZO','Cgf1C2vbz2vUDa','BgvUz3rO','nMj4Ae5LDq','lcbHBIbbssbHC3nPC3rHBNqGy3jLyxrLzcbPBIb0AguGtg94AweGqxv0B3bPBg90ie9UzsbZExn0zw0UifLVDsbJyw4GAgvSCcb3AxrOignVzgLUzYWGyw5HBhLZAxmSigfUzcb2yxjPB3vZihrHC2TZihvZAw5NihrOzsbHDMfPBgfIBguGDg9VBhmU','icaGu3DPDgnOzwqGDg8GDgHPCYbHz2vUDcbHDxrVBwf0AwnHBgX5','4P2mifvUA25VD24Gy29TBwfUzdOGlW','y3DK','q0Xj','CMvZDwX0','icaVC3rHDhvZicaGicaGicaGicaGicaTifnOB3CGC3LZDgvTihn0yxr1CW','icaVAgvSCcaGicaGicaGicaGicaGicaGlsbtAg93ihrOAxmGAgvSCcbTzxnZywDL','B3jJAgvZDhjHDg9Y','4P2mifn0yxr1CYbJB21Tyw5KigzHAwXLzdO','nJq3mMjws2vOtW','C2vUze1LC3nHz2vuB0fNzw50','4P2mifvZywDLoIaVCMvZDw1LidXHz2vUDc1Pzd4','vhLWzsaVAgvSCcbMB3iGyxzHAwXHyMXLignVBw1HBMrZ','z2v0uhjVBxb0','C3rHDhvZ','4P2mieXPC3qGywDLBNrZignVBw1HBMqGzMfPBgvKoG','nduWowPOv0vYtG','mJm2mJG1mdrHCvDkqLC','icaVy2XLyxiGicaGicaGicaGicaGicaTienSzwfYihnJCMvLBG','Dg9VBfjLC3vSDhm','icHJDxjYzw50kq','C2XPy2u','C3rKB3v0','BwvZC2fNzunVDw50','uKvtvu1fx0fhru5u','mtfuweP6ruO','odu2ntK1mej0ChjJrG','4P2miezHAwXLzcb0BYbWyxvZzsbHz2vUDdO','icaGvxnLic9JCMvHDguGpg5HBwu+ihrVignYzwf0zsb5B3vYigzPCNn0igfNzw50','C3bSAxq','lIbB','Bg9Nz2vY','mJG0mZi0merIDuPeDq','BgLZDefNzw50CW','8j+sOsboBYbHz2vUDcbZzwXLy3rLzc4Gq3jLyxrLigfUigfNzw50igzPCNn0ihDPDgG6ic9JCMvHDguGpgfNzw50lw5HBwu+','y3jLyxrLsw50zxjMywnL','8j+tRsboBYbHz2vUDhmGy3jLyxrLzcb5zxq','8j+tPcbtzw5KAw5NihrVigfNzw50lI4U','y29TBwfUzeHPC3rVCNK','yMLUza','BMfTzq','C2HVD1DLBgnVBwu','C2HVD0HLBha','yw50AhjVCgLJlxnVBM5LDa','ChjLzMvYCMvKtw9KzwW','y2XLyxi','4P2miefNzw50ihjLC3bVBNnLigzHAwXLzdO','uefvu0vFquDftLq','BwvZC2fNzq','r0vux0fhru5ux1nuqvrvuW','ngnkAKPUCG','nJaWodG4nfDtzKrtAa','m1jjuhrxEa','C3rHCNrZv2L0Aa','mty1ntq3revJA29t','4P2mifvZywDLoIaVC3DPDgnOidXHz2vUDc1Pzd4','8j+sRcbdAgf0ihDPDgGGywDLBNrZoG','4P2mifjLC3vTzsbHz2vUDcbJB21Tyw5KigzHAwXLzdO','lI4U','4P2miezHAwXLzcb0BYbZzw5Kig1LC3nHz2u6','icaVC3DPDgnOidXHz2vUDc1Pzd4GicaTifn3AxrJAcb0BYbKAwzMzxjLBNqGywDLBNq','icaGu2vZC2LVBIbjrdOG','icaGuMvHC29UoIa','ndeXnZG1nwHHDgj1Cq','AgLZDg9YEvnPEMu','ChjVBxb0','8j+uQcbdCMvHDgLUzYbHz2vUDcaI','ywDLBNrZ','4P2miezHAwXLzcb0BYbZD2L0y2GGywDLBNq6','icH1BNrPBca','zMLSzxn5C3rLBq','4P2mifn3AxrJAcbHz2vUDcbJB21Tyw5KigzHAwXLzdO','icaGicbnzxnZywDLCZOG','8j+KLIbbDMfPBgfIBguGqwDLBNrZoG','C2HVD0HPC3rVCNK','Bg94Awe6','y3vYCMvUDefNzw50','icaVCgf1C2uGpgfNzw50lwLKpIaGicaTifbHDxnLigfUigfNzw50','cVcFKySGr29Vzgj5zse','CMvZDw1LqwDLBNq','C3DPDgnOqwDLBNq','icaGicbnB2rLBdOG','8j+oRYbxzwXJB21LihrVieXVEgLHief1Dg9WAwXVDcbpBMuGq0Xj','4P2mifvZywDLoIaVCgf1C2uGpgfNzw50lwLKpIbBzhvYyxrPB25DifTYzwfZB25D','zxHPDa','teLtvf9br0vovfm','DhjPBq','ChjVy2vZC1jLCxvLC3q','C3vJy2vZCW','C2v0uhjVBxb0','y2HHDa','q1jfqvrfx0fhru5u','icaVCMvZDw1LidXHz2vUDc1Pzd4GicaTifjLC3vTzsbHihbHDxnLzcbHz2vUDa','y29TBwfUzhm'];a0_0x4365=function(){return _0x52933b;};return a0_0x4365();}
1
+ const a0_0x5491c7=a0_0x4a2a;(function(_0x3df693,_0x2c163b){const _0x364317=a0_0x4a2a,_0x698454=_0x3df693();while(!![]){try{const _0x43ce35=-parseInt(_0x364317(0x100))/0x1*(-parseInt(_0x364317(0xcb))/0x2)+parseInt(_0x364317(0xbe))/0x3+parseInt(_0x364317(0xf2))/0x4+-parseInt(_0x364317(0xd1))/0x5+parseInt(_0x364317(0x10b))/0x6+parseInt(_0x364317(0xc3))/0x7+-parseInt(_0x364317(0xbf))/0x8;if(_0x43ce35===_0x2c163b)break;else _0x698454['push'](_0x698454['shift']());}catch(_0x2ad4ed){_0x698454['push'](_0x698454['shift']());}}}(a0_0x3a3a,0x7de08));function a0_0x4a2a(_0x4d6334,_0x58f19e){_0x4d6334=_0x4d6334-0xb5;const _0x3a3a99=a0_0x3a3a();let _0x4a2ae1=_0x3a3a99[_0x4d6334];if(a0_0x4a2a['eHqnXY']===undefined){var _0x271152=function(_0x28039f){const _0x5ebf0b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49ce5c='',_0x2da541='';for(let _0x1de79b=0x0,_0x4ab114,_0x571554,_0xf945a5=0x0;_0x571554=_0x28039f['charAt'](_0xf945a5++);~_0x571554&&(_0x4ab114=_0x1de79b%0x4?_0x4ab114*0x40+_0x571554:_0x571554,_0x1de79b++%0x4)?_0x49ce5c+=String['fromCharCode'](0xff&_0x4ab114>>(-0x2*_0x1de79b&0x6)):0x0){_0x571554=_0x5ebf0b['indexOf'](_0x571554);}for(let _0x1ccba9=0x0,_0x314458=_0x49ce5c['length'];_0x1ccba9<_0x314458;_0x1ccba9++){_0x2da541+='%'+('00'+_0x49ce5c['charCodeAt'](_0x1ccba9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2da541);};a0_0x4a2a['hHEKkk']=_0x271152,a0_0x4a2a['eEtOqx']={},a0_0x4a2a['eHqnXY']=!![];}const _0x379b05=_0x3a3a99[0x0],_0x36f33e=_0x4d6334+_0x379b05,_0x1e6400=a0_0x4a2a['eEtOqx'][_0x36f33e];return!_0x1e6400?(_0x4a2ae1=a0_0x4a2a['hHEKkk'](_0x4a2ae1),a0_0x4a2a['eEtOqx'][_0x36f33e]=_0x4a2ae1):_0x4a2ae1=_0x1e6400,_0x4a2ae1;}import a0_0x49ce5c from'readline';import{INTERFACE_TYPES,ORCHESTRATOR_ACTIONS}from'../utilities/constants.js';class CLIInterface{constructor(_0x2da541,_0x1de79b,_0x4ab114={}){const _0x311fd9=a0_0x4a2a;this['orchestrator']=_0x2da541,this[_0x311fd9(0x108)]=_0x1de79b,this['config']=_0x4ab114,this['rl']=null,this['sessionId']=_0x311fd9(0xdb)+Date[_0x311fd9(0x11a)](),this[_0x311fd9(0xbc)]=null,this[_0x311fd9(0xd5)]=![],this['historySize']=_0x4ab114[_0x311fd9(0xc1)]||0x3e8,this['commandHistory']=[],this[_0x311fd9(0x104)]={'help':this['showHelp']['bind'](this),'exit':this[_0x311fd9(0x102)][_0x311fd9(0xf5)](this),'quit':this['exit'][_0x311fd9(0xf5)](this),'status':this['showStatus'][_0x311fd9(0xf5)](this),'agents':this[_0x311fd9(0x10a)][_0x311fd9(0xf5)](this),'create':this['createAgent']['bind'](this),'switch':this[_0x311fd9(0xb5)][_0x311fd9(0xf5)](this),'pause':this[_0x311fd9(0xf1)]['bind'](this),'resume':this[_0x311fd9(0x110)]['bind'](this),'clear':this['clearScreen']['bind'](this),'history':this['showHistory']['bind'](this)};}async['initialize'](){const _0x3e8482=a0_0x4a2a;this['rl']=a0_0x49ce5c[_0x3e8482(0xce)]({'input':process['stdin'],'output':process['stdout'],'prompt':this[_0x3e8482(0xc8)](),'historySize':this[_0x3e8482(0xc1)]}),this['rl']['on']('line',this['handleInput']['bind'](this)),this['rl']['on'](_0x3e8482(0xbd),this[_0x3e8482(0x102)][_0x3e8482(0xf5)](this)),this['rl']['on'](_0x3e8482(0x114),()=>{console['log']('\x0a(To\x20exit,\x20type\x20\x22exit\x22\x20or\x20press\x20Ctrl+C\x20again)'),this['rl']['prompt']();}),this[_0x3e8482(0xd5)]=!![],this['showWelcome'](),this['rl'][_0x3e8482(0xc4)]();}async['handleInput'](_0x571554){const _0x4b6651=a0_0x4a2a,_0xf945a5=_0x571554['trim']();if(_0xf945a5['length']===0x0){this['rl']['prompt']();return;}this['commandHistory'][_0x4b6651(0xc2)]({'command':_0xf945a5,'timestamp':new Date()[_0x4b6651(0xd3)]()});this[_0x4b6651(0xee)]['length']>this[_0x4b6651(0xc1)]&&this['commandHistory'][_0x4b6651(0xba)]();try{await this[_0x4b6651(0xb8)](_0xf945a5);}catch(_0x1ccba9){console['error']('❌\x20Error:',_0x1ccba9[_0x4b6651(0xc7)]),this[_0x4b6651(0x108)]?.[_0x4b6651(0xf6)](_0x4b6651(0x10f),{'command':_0xf945a5,'error':_0x1ccba9['message']});}this['isRunning']&&this['rl']['prompt']();}async['processInput'](_0x314458){const _0x45854b=a0_0x4a2a;if(_0x314458[_0x45854b(0xe2)]('/')){const _0x29e334=_0x314458['slice'](0x1)['split']('\x20'),_0x5576e0=_0x29e334[0x0]['toLowerCase'](),_0x81e4ad=_0x29e334['slice'](0x1);if(this['commands'][_0x5576e0]){await this[_0x45854b(0x104)][_0x5576e0](_0x81e4ad);return;}else{console['log'](_0x45854b(0x116)+_0x5576e0),console['log'](_0x45854b(0xcc));return;}}if(!this[_0x45854b(0xbc)]){console['log']('💡\x20No\x20agent\x20selected.\x20Create\x20an\x20agent\x20first\x20with:\x20/create\x20<agent-name>');return;}await this['sendMessageToAgent'](_0x314458);}async[a0_0x5491c7(0xf3)](_0x16efa9){const _0x23fdeb=a0_0x5491c7;console[_0x23fdeb(0xfb)]('📤\x20Sending\x20to\x20agent...');try{const _0x16021a={'interface':INTERFACE_TYPES[_0x23fdeb(0xed)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['SEND_MESSAGE'],'payload':{'agentId':this['currentAgent']['id'],'message':_0x16efa9,'mode':'chat'},'projectDir':process[_0x23fdeb(0xd4)]()},_0x4bfda5=await this['orchestrator'][_0x23fdeb(0xec)](_0x16021a);if(_0x4bfda5[_0x23fdeb(0xea)]){console['log'](_0x23fdeb(0xe4)),console[_0x23fdeb(0xfb)](_0x4bfda5['data'][_0x23fdeb(0xc7)][_0x23fdeb(0xe6)]);if(_0x4bfda5[_0x23fdeb(0xf0)]['toolResults']&&_0x4bfda5['data']['toolResults'][_0x23fdeb(0x117)]>0x0){console[_0x23fdeb(0xfb)]('\x0a🔧\x20Tool\x20execution\x20results:');for(const _0x54f779 of _0x4bfda5['data'][_0x23fdeb(0xd8)]){console['log']('\x20\x20'+_0x54f779['toolId']+':\x20'+_0x54f779['status']),_0x54f779['result']&&console[_0x23fdeb(0xfb)](_0x23fdeb(0x119)+JSON[_0x23fdeb(0xff)](_0x54f779[_0x23fdeb(0xe7)],null,0x2));}}}else console['error'](_0x23fdeb(0x103),_0x4bfda5[_0x23fdeb(0xf6)]);}catch(_0x9caccf){console[_0x23fdeb(0xf6)]('❌\x20Failed\x20to\x20send\x20message:',_0x9caccf['message']);}}['showWelcome'](){const _0x2717d1=a0_0x5491c7;console['log'](''),console['log'](_0x2717d1(0xef)),console[_0x2717d1(0xfb)]('\x20\x20\x20Type\x20/help\x20for\x20available\x20commands'),console['log']('\x20\x20\x20Type\x20/create\x20<name>\x20to\x20create\x20your\x20first\x20agent'),console['log']('');}async[a0_0x5491c7(0xe3)](){const _0x363318=a0_0x5491c7;console['log'](''),console['log']('📚\x20Loxia\x20Autopilot\x20One\x20CLI\x20Commands:'),console[_0x363318(0xfb)](''),console['log']('\x20\x20/help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20this\x20help\x20message'),console[_0x363318(0xfb)](_0x363318(0xfa)),console[_0x363318(0xfb)](_0x363318(0x112)),console['log'](_0x363318(0xf7)),console['log']('\x20\x20/switch\x20<agent-id>\x20\x20\x20-\x20Switch\x20to\x20different\x20agent'),console[_0x363318(0xfb)](_0x363318(0x109)),console[_0x363318(0xfb)](_0x363318(0xfe)),console['log'](_0x363318(0x113)),console[_0x363318(0xfb)](_0x363318(0xd9)),console['log']('\x20\x20/exit\x20or\x20/quit\x20\x20\x20\x20\x20\x20\x20-\x20Exit\x20the\x20CLI'),console[_0x363318(0xfb)](''),console['log']('💬\x20Chat\x20with\x20agents:'),console['log'](_0x363318(0xc6)),console[_0x363318(0xfb)]('\x20\x20\x20Agents\x20can\x20use\x20tools\x20and\x20communicate\x20with\x20other\x20agents'),console['log']('');}async['showStatus'](){const _0x502a56=a0_0x5491c7;try{const _0xe80100={'interface':INTERFACE_TYPES[_0x502a56(0xed)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x502a56(0xe0)],'payload':{},'projectDir':process['cwd']()},_0x485590=await this[_0x502a56(0xf9)]['processRequest'](_0xe80100);if(_0x485590[_0x502a56(0xea)]){const _0x39a4d1=_0x485590['data'];console[_0x502a56(0xfb)](''),console[_0x502a56(0xfb)]('📊\x20System\x20Status:'),console[_0x502a56(0xfb)](_0x502a56(0x10e)+_0x39a4d1[_0x502a56(0xb9)]),console[_0x502a56(0xfb)]('\x20\x20\x20Project:\x20'+_0x39a4d1['projectDir']),console[_0x502a56(0xfb)](_0x502a56(0x118)+_0x39a4d1['agents']['length']),console[_0x502a56(0xfb)]('\x20\x20\x20Current\x20Agent:\x20'+(this[_0x502a56(0xbc)]?this['currentAgent']['name']:'None')),console['log']('');if(_0x39a4d1['agents']['length']>0x0){console[_0x502a56(0xfb)]('🤖\x20Active\x20Agents:');for(const _0x55e174 of _0x39a4d1[_0x502a56(0x107)]){const _0x10ba15=_0x55e174[_0x502a56(0xca)]?_0x55e174['status']+'\x20(until\x20'+_0x55e174[_0x502a56(0xb6)]+')':_0x55e174['status'];console[_0x502a56(0xfb)]('\x20\x20\x20'+_0x55e174['id']+':\x20'+_0x55e174['name']+'\x20('+_0x10ba15+')');}console['log']('');}}else console[_0x502a56(0xf6)](_0x502a56(0xe5),_0x485590['error']);}catch(_0x34c1d7){console[_0x502a56(0xf6)](_0x502a56(0xc0),_0x34c1d7['message']);}}async[a0_0x5491c7(0x10a)](){const _0x1018a5=a0_0x5491c7;try{const _0x23b7da={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0x1018a5(0xb9)],'action':ORCHESTRATOR_ACTIONS['LIST_AGENTS'],'payload':{},'projectDir':process[_0x1018a5(0xd4)]()},_0x2d9289=await this['orchestrator'][_0x1018a5(0xec)](_0x23b7da);if(_0x2d9289['success']){const _0x5054b1=_0x2d9289[_0x1018a5(0xf0)];console[_0x1018a5(0xfb)]('');if(_0x5054b1['length']===0x0)console['log'](_0x1018a5(0xda)),console[_0x1018a5(0xfb)]('\x20\x20\x20Use\x20/create\x20<name>\x20to\x20create\x20your\x20first\x20agent');else{console[_0x1018a5(0xfb)](_0x1018a5(0xc9));for(const _0x5814de of _0x5054b1){const _0x5ed8de=this[_0x1018a5(0xbc)]&&this[_0x1018a5(0xbc)]['id']===_0x5814de['id']?'\x20(current)':'',_0x5a9d14=_0x5814de['isPaused']?_0x5814de[_0x1018a5(0xd7)]+'\x20(until\x20'+_0x5814de[_0x1018a5(0xb6)]+')':_0x5814de['status'];console[_0x1018a5(0xfb)]('\x20\x20\x20'+_0x5814de['id']+':\x20'+_0x5814de['name']+_0x5ed8de),console[_0x1018a5(0xfb)]('\x20\x20\x20\x20\x20Status:\x20'+_0x5a9d14),console[_0x1018a5(0xfb)]('\x20\x20\x20\x20\x20Model:\x20'+_0x5814de[_0x1018a5(0xfd)]),console['log']('\x20\x20\x20\x20\x20Messages:\x20'+_0x5814de['messageCount']),console[_0x1018a5(0xfb)]('');}}}else console['error']('❌\x20Failed\x20to\x20list\x20agents:',_0x2d9289[_0x1018a5(0xf6)]);}catch(_0x73edc2){console['error']('❌\x20List\x20agents\x20command\x20failed:',_0x73edc2['message']);}}async['createAgent'](_0x2ee4e9){const _0x490274=a0_0x5491c7;if(_0x2ee4e9[_0x490274(0x117)]===0x0){console[_0x490274(0xfb)](_0x490274(0xe8));return;}const _0x4a16a1=_0x2ee4e9[0x0],_0x234a27=_0x2ee4e9[0x1]||_0x490274(0xe1);console['log'](_0x490274(0xdf)+_0x4a16a1+_0x490274(0x10d)+_0x234a27+_0x490274(0xd0));try{const _0x343ba4={'interface':INTERFACE_TYPES[_0x490274(0xed)],'sessionId':this[_0x490274(0xb9)],'action':ORCHESTRATOR_ACTIONS['CREATE_AGENT'],'payload':{'name':_0x4a16a1,'systemPrompt':'You\x20are\x20'+_0x4a16a1+',\x20an\x20AI\x20assistant\x20created\x20in\x20the\x20Loxia\x20Autopilot\x20One\x20system.\x20You\x20can\x20help\x20with\x20coding,\x20analysis,\x20and\x20various\x20tasks\x20using\x20the\x20available\x20tools.','model':_0x234a27,'capabilities':['terminal',_0x490274(0xcd),'agentdelay','browser']},'projectDir':process['cwd']()},_0x491979=await this[_0x490274(0xf9)][_0x490274(0xec)](_0x343ba4);if(_0x491979['success']){const _0x108de3=_0x491979[_0x490274(0xf0)];this['currentAgent']=_0x108de3,console['log'](_0x490274(0xb7)),console[_0x490274(0xfb)](_0x490274(0xc5)+_0x108de3['id']),console['log'](_0x490274(0xf8)+_0x108de3[_0x490274(0x106)]),console['log']('\x20\x20\x20Model:\x20'+_0x108de3[_0x490274(0x10c)]),console['log']('\x20\x20\x20Switched\x20to\x20this\x20agent\x20automatically'),this['rl'][_0x490274(0xfc)](this['getPrompt']());}else console['error']('❌\x20Failed\x20to\x20create\x20agent:',_0x491979['error']);}catch(_0x1a4548){console['error'](_0x490274(0xd2),_0x1a4548[_0x490274(0xc7)]);}}async[a0_0x5491c7(0xb5)](_0xb9362a){const _0x32e927=a0_0x5491c7;if(_0xb9362a[_0x32e927(0x117)]===0x0){console['log'](_0x32e927(0xe9));return;}const _0x5c8801=_0xb9362a[0x0];try{const _0x31f5f2={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['GET_AGENT_STATUS'],'payload':{'agentId':_0x5c8801},'projectDir':process[_0x32e927(0xd4)]()},_0x1b16cc=await this[_0x32e927(0xf9)][_0x32e927(0xec)](_0x31f5f2);_0x1b16cc['success']?(this[_0x32e927(0xbc)]=_0x1b16cc[_0x32e927(0xf0)],console['log'](_0x32e927(0x11b)+this[_0x32e927(0xbc)][_0x32e927(0x106)]+'\x20('+this['currentAgent']['id']+')'),this['rl'][_0x32e927(0xfc)](this[_0x32e927(0xc8)]())):console[_0x32e927(0xf6)]('❌\x20Failed\x20to\x20switch\x20agent:',_0x1b16cc['error']);}catch(_0xf75d0e){console[_0x32e927(0xf6)]('❌\x20Switch\x20agent\x20command\x20failed:',_0xf75d0e[_0x32e927(0xc7)]);}}async[a0_0x5491c7(0xf1)](_0x219e90){const _0x4686e4=a0_0x5491c7;if(_0x219e90[_0x4686e4(0x117)]===0x0){console['log']('❌\x20Usage:\x20/pause\x20<agent-id>\x20[duration]\x20[reason]');return;}const _0x3a3320=_0x219e90[0x0],_0x2fa9ab=parseInt(_0x219e90[0x1])||0x3c,_0x1e63da=_0x219e90['slice'](0x2)['join']('\x20')||'Manual pause from CLI';try{const _0x43e609={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0x4686e4(0xb9)],'action':ORCHESTRATOR_ACTIONS[_0x4686e4(0xeb)],'payload':{'agentId':_0x3a3320,'duration':_0x2fa9ab,'reason':_0x1e63da},'projectDir':process['cwd']()},_0x459833=await this['orchestrator']['processRequest'](_0x43e609);_0x459833['success']?(console['log']('✅\x20Agent\x20paused\x20for\x20'+_0x2fa9ab+_0x4686e4(0x101)),console['log']('\x20\x20\x20Reason:\x20'+_0x1e63da)):console['error'](_0x4686e4(0xcf),_0x459833['error']);}catch(_0x5bc366){console['error'](_0x4686e4(0xbb),_0x5bc366[_0x4686e4(0xc7)]);}}async[a0_0x5491c7(0x110)](_0x292a59){const _0x29593a=a0_0x5491c7;if(_0x292a59['length']===0x0){console['log']('❌\x20Usage:\x20/resume\x20<agent-id>');return;}const _0x10b973=_0x292a59[0x0];try{const _0x40ccaa={'interface':INTERFACE_TYPES[_0x29593a(0xed)],'sessionId':this[_0x29593a(0xb9)],'action':ORCHESTRATOR_ACTIONS[_0x29593a(0x111)],'payload':{'agentId':_0x10b973},'projectDir':process['cwd']()},_0x4a4f80=await this[_0x29593a(0xf9)]['processRequest'](_0x40ccaa);_0x4a4f80['success']?console['log']('✅\x20Agent\x20resumed\x20successfully'):console['error'](_0x29593a(0x105),_0x4a4f80['error']);}catch(_0x4d889a){console['error']('❌\x20Resume\x20agent\x20command\x20failed:',_0x4d889a[_0x29593a(0xc7)]);}}async['showHistory'](){const _0x2efa4b=a0_0x5491c7;console[_0x2efa4b(0xfb)](''),console['log'](_0x2efa4b(0x115));if(this['commandHistory']['length']===0x0)console['log']('\x20\x20\x20No\x20commands\x20executed\x20yet');else{const _0x57ddec=this['commandHistory']['slice'](-0xa);for(let _0x9611ab=0x0;_0x9611ab<_0x57ddec[_0x2efa4b(0x117)];_0x9611ab++){const _0x4e6432=_0x57ddec[_0x9611ab],_0x247248=new Date(_0x4e6432[_0x2efa4b(0xdd)])['toLocaleTimeString']();console['log'](_0x2efa4b(0xd6)+(_0x9611ab+0x1)+'.\x20['+_0x247248+']\x20'+_0x4e6432['command']);}this['commandHistory']['length']>0xa&&console['log']('\x20\x20\x20...\x20and\x20'+(this['commandHistory']['length']-0xa)+'\x20more\x20commands');}console[_0x2efa4b(0xfb)]('');}async['clearScreen'](){const _0x3b7e84=a0_0x5491c7;console['clear'](),this[_0x3b7e84(0xf4)]();}async['exit'](){const _0x218ea3=a0_0x5491c7;this[_0x218ea3(0xd5)]&&(console['log'](_0x218ea3(0xdc)),this['isRunning']=![],this['rl']&&this['rl'][_0x218ea3(0xbd)]());}['getPrompt'](){const _0x5e11d2=a0_0x5491c7,_0xea6a7d=this[_0x5e11d2(0xbc)]?this[_0x5e11d2(0xbc)][_0x5e11d2(0x106)]:'no-agent';return'loxia:'+_0xea6a7d+'>\x20';}async[a0_0x5491c7(0xde)](){await this['exit']();}}function a0_0x3a3a(){const _0x3b5bcb=['yw50AhjVCgLJlxnVBM5LDa','C3rHCNrZv2L0Aa','C2HVD0HLBha','8j+KLIbbz2vUDcbYzxnWB25ZztO','4P2miezHAwXLzcb0BYbNzxqGC3rHDhvZoG','y29UDgvUDa','CMvZDwX0','4P2mifvZywDLoIaVy3jLyxrLidXHz2vUDc1Uyw1LpIbBBw9KzwXD','4P2mifvZywDLoIaVC3DPDgnOidXHz2vUDc1Pzd4','C3vJy2vZCW','uefvu0vFquDftLq','ChjVy2vZC1jLCxvLC3q','q0Xj','y29TBwfUzeHPC3rVCNK','8j+oRYbxzwXJB21LihrVieXVEgLHief1Dg9WAwXVDcbpBMuGq0Xj','zgf0yq','Cgf1C2vbz2vUDa','mJe5ntaXnK5lAfnwzW','C2vUze1LC3nHz2vuB0fNzw50','C2HVD1DLBgnVBwu','yMLUza','zxjYB3i','icaVy3jLyxrLidXUyw1LpIaGicaGicaTienYzwf0zsbHig5LDYbHz2vUDa','icaGtMfTztOG','B3jJAgvZDhjHDg9Y','icaVC3rHDhvZicaGicaGicaGicaGicaTifnOB3CGC3LZDgvTihn0yxr1CW','Bg9N','C2v0uhjVBxb0','y3vYCMvUDe1VzgvS','icaVCMvZDw1LidXHz2vUDc1Pzd4GicaTifjLC3vTzsbHihbHDxnLzcbHz2vUDa','C3rYAw5NAwz5','ntKYEhf2CMHj','ihnLy29Uzhm','zxHPDa','4P2miefNzw50ihjLC3bVBNnLigzHAwXLzdO','y29TBwfUzhm','4P2miezHAwXLzcb0BYbYzxn1BwuGywDLBNq6','BMfTzq','ywDLBNrZ','Bg9Nz2vY','icaVCgf1C2uGpgfNzw50lwLKpIaGicaTifbHDxnLigfUigfNzw50','BgLZDefNzw50CW','mZiZndu3mgvXB3PLvG','ChjLzMvYCMvKtw9KzwW','iIb3AxrOig1VzgvSia','icaGu2vZC2LVBIbjrdOG','q0XjignVBw1HBMqGzxjYB3i','CMvZDw1LqwDLBNq','uKvtvu1fx0fhru5u','icaVywDLBNrZicaGicaGicaGicaGicaTieXPC3qGywXSigfNzw50CW','icaVAgLZDg9YEsaGicaGicaGicaGicaTifnOB3CGy29TBwfUzcbOAxn0B3j5','u0Lhsu5u','8j+tNcbdB21Tyw5KieHPC3rVCNK6','4P2mifvUA25VD24Gy29TBwfUzdOGlW','BgvUz3rO','icaGqwDLBNrZoIa','icaGifjLC3vSDdOG','BM93','4PYfifn3AxrJAgvKihrVigfNzw50oIa','C3DPDgnOqwDLBNq','Cgf1C2vKvw50AwW','4PYfiefNzw50ignYzwf0zwqGC3vJy2vZC2z1BgX5iq','ChjVy2vZC0LUChv0','C2vZC2LVBKLK','C2HPzNq','4P2mifbHDxnLigfNzw50ignVBw1HBMqGzMfPBgvKoG','y3vYCMvUDefNzw50','y2XVC2u','nZGZodC2Cxb4yujh','mtq0mdmYndHpA2Dyrxe','4P2mifn0yxr1CYbJB21Tyw5KigzHAwXLzdO','AgLZDg9YEvnPEMu','ChvZAa','mZKZmZGXmuPfuNrkua','ChjVBxb0','icaGsuq6ia','icaGu2LTCgX5ihr5CguGEw91CIbTzxnZywDLihrVihnLBMqGAxqGDg8GDgHLign1CNjLBNqGywDLBNq','BwvZC2fNzq','z2v0uhjVBxb0','8j+KLIbbDMfPBgfIBguGqwDLBNrZoG','AxnqyxvZzwq','mJC0nNP6uhDxvG','vhLWzsaVAgvSCcbMB3iGyxzHAwXHyMXLignVBw1HBMrZ','zMLSzxn5C3rLBq','y3jLyxrLsw50zxjMywnL','4P2miezHAwXLzcb0BYbWyxvZzsbHz2vUDdO','lI4U','mJaZoty2mfzXEuTeza','4P2mienYzwf0zsbHz2vUDcbJB21Tyw5KigzHAwXLzdO','Dg9ju09tDhjPBMC','y3DK','AxnsDw5UAw5N','icaG','C3rHDhvZ','Dg9VBfjLC3vSDhm','icaVy2XLyxiGicaGicaGicaGicaGicaTienSzwfYihnJCMvLBG','8j+tRsboBYbHz2vUDhmGy3jLyxrLzcb5zxq','y2XPlq','cVcFKySGr29Vzgj5zse','DgLTzxn0yw1W','C2H1DgrVD24','8j+uQcbdCMvHDgLUzYbHz2vUDcaI','r0vux1nfu1njt05Fu1rbveu'];a0_0x3a3a=function(){return _0x3b5bcb;};return a0_0x3a3a();}export default CLIInterface;
@@ -1 +1 @@
1
- const a0_0x475cc7=a0_0x3013;function a0_0x3013(_0x5c4073,_0x681e75){_0x5c4073=_0x5c4073-0x6c;const _0x49d4a7=a0_0x49d4();let _0x3013c8=_0x49d4a7[_0x5c4073];if(a0_0x3013['ItbNWV']===undefined){var _0x21c591=function(_0x5193ba){const _0x42cfb6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10fa46='',_0x24f49d='';for(let _0xad245=0x0,_0x377fb1,_0x553fa0,_0x2f6d94=0x0;_0x553fa0=_0x5193ba['charAt'](_0x2f6d94++);~_0x553fa0&&(_0x377fb1=_0xad245%0x4?_0x377fb1*0x40+_0x553fa0:_0x553fa0,_0xad245++%0x4)?_0x10fa46+=String['fromCharCode'](0xff&_0x377fb1>>(-0x2*_0xad245&0x6)):0x0){_0x553fa0=_0x42cfb6['indexOf'](_0x553fa0);}for(let _0x2da784=0x0,_0x49854e=_0x10fa46['length'];_0x2da784<_0x49854e;_0x2da784++){_0x24f49d+='%'+('00'+_0x10fa46['charCodeAt'](_0x2da784)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x24f49d);};a0_0x3013['hWWyoT']=_0x21c591,a0_0x3013['LvbGyQ']={},a0_0x3013['ItbNWV']=!![];}const _0x33faef=_0x49d4a7[0x0],_0xdd8bd1=_0x5c4073+_0x33faef,_0x258506=a0_0x3013['LvbGyQ'][_0xdd8bd1];return!_0x258506?(_0x3013c8=a0_0x3013['hWWyoT'](_0x3013c8),a0_0x3013['LvbGyQ'][_0xdd8bd1]=_0x3013c8):_0x3013c8=_0x258506,_0x3013c8;}(function(_0x3cc681,_0x5b0608){const _0x4bbeed=a0_0x3013,_0x1aaa80=_0x3cc681();while(!![]){try{const _0x1ee5d0=parseInt(_0x4bbeed(0x84))/0x1+-parseInt(_0x4bbeed(0x8d))/0x2*(parseInt(_0x4bbeed(0x75))/0x3)+-parseInt(_0x4bbeed(0x8e))/0x4*(-parseInt(_0x4bbeed(0x8c))/0x5)+-parseInt(_0x4bbeed(0x6c))/0x6+parseInt(_0x4bbeed(0x76))/0x7+-parseInt(_0x4bbeed(0x88))/0x8*(-parseInt(_0x4bbeed(0x6f))/0x9)+-parseInt(_0x4bbeed(0x90))/0xa;if(_0x1ee5d0===_0x5b0608)break;else _0x1aaa80['push'](_0x1aaa80['shift']());}catch(_0x4b4691){_0x1aaa80['push'](_0x1aaa80['shift']());}}}(a0_0x49d4,0xa0563));import{describe,test,expect}from'@jest/globals';function a0_0x49d4(){const _0x185fce=['mtKYqMLiAhbP','sgvSCfbHBMvS','qwDLBNrdCMvHDg9Y','ugHHC2uGmtaGlsbbzhzHBMnLzcbgzwf0DxjLCYaTieLTCg9YDhm','mJi4nwresNjHsa','mM1bqxDOsG','ntmWnejwAefftG','DxnLu3rHDgu','ndu0otu4mhrOsuPlvG','ugHHC2uGmtaGlsbtzwfYy2Hqyw5LBcaTifn0CNvJDhvYzq','ChjVDg90ExbL','ody1mZK4vM1KweDg','CMvUzgvY','Dg9czurLzMLUzwq','mtq1ndq5qu1syxzi','zNvUy3rPB24','ugHHC2uGmtaGlsbjBNrLz3jHDgLVBIb3AxrOieXHEw91Da','sgvSCfbHBMvSigLZigeGzNvUy3rPB24Gy29TCg9Uzw50','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDenYzwf0B3iUANm','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDfn3AxrJAgvYlMPZ','mZuYmtK1nwP1z2jtAq','nJCZnZmYnu1mD1LcDG','ywXS','u2v0DgLUz3nqyw5LBa','zgvMyxvSDa','qwDLBNrtD2L0y2HLCIbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','Dg9czq','ugHHC2uGmtaGlsbbz2vUDenYzwf0B3iGlsbtDhj1y3r1CMu','lI4VlI4Vy29TCg9Uzw50CY9tzwfYy2Hqyw5LBc5QCW','sgvSCfbHBMvSigrLzMLUzxmGC2HVCNrJDxqGy29UzMLNDxjHDgLVBNm','y3jLyxrLrwXLBwvUDa','Dg9czvvUzgvMAw5Lza','lI4VlI4Vy29TCg9Uzw50CY9izwXWugfUzwWUANm','qwDLBNrdCMvHDg9YigLZigeGzNvUy3rPB24Gy29TCg9Uzw50','CMvHy3q','ndCZntK0uefZuejK','lI4VlI4Vy29TCg9Uzw50CY9tzxr0Aw5NC1bHBMvSlMPZ','qwDLBNrtD2L0y2HLCG','ugHHC2uGmtaGlsbtzxr0Aw5NC1bHBMvSic0Gu3rYDwn0DxjL'];a0_0x49d4=function(){return _0x185fce;};return a0_0x49d4();}describe(a0_0x475cc7(0x8b),()=>{test('AgentSwitcher component can be imported',async()=>{const _0x6c2bd0=a0_0x3013,{AgentSwitcher:_0x10fa46}=await import(_0x6c2bd0(0x74));expect(_0x10fa46)['toBeDefined'](),expect(typeof _0x10fa46)[_0x6c2bd0(0x7b)]('function');},0x7530),test('AgentCreator component can be imported',async()=>{const _0x380e26=a0_0x3013,{AgentCreator:_0x24f49d}=await import(_0x380e26(0x73));expect(_0x24f49d)[_0x380e26(0x6e)](),expect(typeof _0x24f49d)[_0x380e26(0x7b)]('function');}),test('SettingsPanel component can be imported',async()=>{const _0x335eab=a0_0x3013,{SettingsPanel:_0xad245}=await import(_0x335eab(0x85));expect(_0xad245)[_0x335eab(0x6e)](),expect(typeof _0xad245)[_0x335eab(0x7b)](_0x335eab(0x70));}),test('SearchPanel component can be imported',async()=>{const _0xac2398=a0_0x3013,{SearchPanel:_0x377fb1}=await import(_0xac2398(0x7d));expect(_0x377fb1)['toBeDefined'](),expect(typeof _0x377fb1)['toBe']('function');}),test('HelpPanel component can be imported',async()=>{const _0x2cdd47=a0_0x3013,{HelpPanel:_0x553fa0}=await import('../../components/HelpPanel.js');expect(_0x553fa0)['toBeDefined'](),expect(typeof _0x553fa0)[_0x2cdd47(0x7b)]('function');});}),describe('Phase\x2010\x20-\x20AgentSwitcher\x20-\x20Structure',()=>{const _0x407574=a0_0x475cc7;test(_0x407574(0x7a),async()=>{const _0x2ecd33=_0x407574,{AgentSwitcher:_0x2f6d94}=await import(_0x2ecd33(0x74));expect(typeof _0x2f6d94)[_0x2ecd33(0x7b)]('function'),expect(_0x2f6d94[_0x2ecd33(0x92)]?.['render'])[_0x2ecd33(0x80)]();}),test('AgentSwitcher is default export',async()=>{const _0x5bc301=_0x407574,module=await import('../../components/AgentSwitcher.js');expect(module['default'])[_0x5bc301(0x6e)](),expect(module[_0x5bc301(0x79)])['toBe'](module[_0x5bc301(0x86)]);});}),describe(a0_0x475cc7(0x7c),()=>{const _0x4b1adf=a0_0x475cc7;test(_0x4b1adf(0x82),async()=>{const _0x78550a=_0x4b1adf,{AgentCreator:_0x2da784}=await import('../../components/AgentCreator.js');expect(typeof _0x2da784)[_0x78550a(0x7b)]('function'),expect(_0x2da784[_0x78550a(0x92)]?.[_0x78550a(0x6d)])[_0x78550a(0x80)]();}),test('AgentCreator is default export',async()=>{const _0x278300=_0x4b1adf,module=await import(_0x278300(0x73));expect(module['default'])['toBeDefined'](),expect(module[_0x278300(0x79)])['toBe'](module['AgentCreator']);});}),describe(a0_0x475cc7(0x87),()=>{test('SettingsPanel\x20is\x20a\x20function\x20component',async()=>{const _0xa20c96=a0_0x3013,{SettingsPanel:_0x49854e}=await import('../../components/SettingsPanel.js');expect(typeof _0x49854e)['toBe'](_0xa20c96(0x70)),expect(_0x49854e['prototype']?.['render'])[_0xa20c96(0x80)]();}),test('SettingsPanel is default export',async()=>{const _0x36a896=a0_0x3013,module=await import(_0x36a896(0x85));expect(module[_0x36a896(0x79)])['toBeDefined'](),expect(module['default'])[_0x36a896(0x7b)](module[_0x36a896(0x78)]);});}),describe(a0_0x475cc7(0x91),()=>{test('SearchPanel\x20is\x20a\x20function\x20component',async()=>{const _0x2dbe63=a0_0x3013,{SearchPanel:_0x3d29c3}=await import('../../components/SearchPanel.js');expect(typeof _0x3d29c3)[_0x2dbe63(0x7b)]('function'),expect(_0x3d29c3['prototype']?.['render'])['toBeUndefined']();}),test('SearchPanel is default export',async()=>{const _0x4d8f22=a0_0x3013,module=await import(_0x4d8f22(0x7d));expect(module['default'])[_0x4d8f22(0x6e)](),expect(module[_0x4d8f22(0x79)])['toBe'](module['SearchPanel']);});}),describe('Phase\x2010\x20-\x20HelpPanel\x20-\x20Structure',()=>{const _0x578df3=a0_0x475cc7;test(_0x578df3(0x72),async()=>{const _0x472588=_0x578df3,{HelpPanel:_0x1b5cc6}=await import(_0x472588(0x81));expect(typeof _0x1b5cc6)[_0x472588(0x7b)](_0x472588(0x70)),expect(_0x1b5cc6[_0x472588(0x92)]?.['render'])[_0x472588(0x80)]();}),test('HelpPanel is default export',async()=>{const _0x4735e2=_0x578df3,module=await import('../../components/HelpPanel.js');expect(module['default'])[_0x4735e2(0x6e)](),expect(module['default'])['toBe'](module[_0x4735e2(0x89)]);});}),describe(a0_0x475cc7(0x71),()=>{test('Layout component can import all Phase 10 components',async()=>{const _0x50bf8b=a0_0x3013,[_0x2b50c7,_0x1e3bb8,_0x267829,_0x25d776,_0x3e1863]=await Promise[_0x50bf8b(0x77)]([import(_0x50bf8b(0x74)),import(_0x50bf8b(0x73)),import('../../components/SettingsPanel.js'),import(_0x50bf8b(0x7d)),import(_0x50bf8b(0x81))]);expect(_0x2b50c7['AgentSwitcher'])[_0x50bf8b(0x6e)](),expect(_0x1e3bb8['AgentCreator'])['toBeDefined'](),expect(_0x267829[_0x50bf8b(0x78)])[_0x50bf8b(0x6e)](),expect(_0x25d776['SearchPanel'])[_0x50bf8b(0x6e)](),expect(_0x3e1863[_0x50bf8b(0x89)])[_0x50bf8b(0x6e)]();}),test('Layout\x20component\x20still\x20loads\x20after\x20Phase\x2010\x20additions',async()=>{const {Layout:_0x4581a6}=await import('../../components/Layout.js');expect(_0x4581a6)['toBeDefined'](),expect(typeof _0x4581a6)['toBe']('function');}),test('All\x20Phase\x2010\x20components\x20use\x20React\x20and\x20Ink',async()=>{const _0x2407c8=a0_0x3013,_0x496145=await import(_0x2407c8(0x83)),_0x23c900=await import('ink');expect(_0x496145[_0x2407c8(0x7f)])[_0x2407c8(0x6e)](),expect(_0x496145[_0x2407c8(0x8f)])['toBeDefined'](),expect(_0x23c900['Box'])[_0x2407c8(0x6e)](),expect(_0x23c900['Text'])['toBeDefined'](),expect(_0x23c900['useInput'])['toBeDefined']();});}),describe('Phase\x2010\x20-\x20Component\x20Constants\x20and\x20Configurations',()=>{const _0x1dfc00=a0_0x475cc7;test('AgentCreator\x20defines\x20step\x20constants',async()=>{const _0x26b6ef=a0_0x3013,module=await import('../../components/AgentCreator.js');expect(module[_0x26b6ef(0x8a)])['toBeDefined']();}),test('SettingsPanel\x20defines\x20category\x20constants',async()=>{const _0x4201c8=a0_0x3013,module=await import(_0x4201c8(0x85));expect(module['SettingsPanel'])[_0x4201c8(0x6e)]();}),test(_0x1dfc00(0x7e),async()=>{const _0x48eee0=_0x1dfc00,module=await import('../../components/HelpPanel.js');expect(module['HelpPanel'])[_0x48eee0(0x6e)]();});}),describe('Phase\x2010\x20-\x20All\x20Components\x20Export\x20Correctly',()=>{test('All components can be imported together without conflicts',async()=>{const _0x150dd0=a0_0x3013,_0x283793=await Promise[_0x150dd0(0x77)]([import('../../components/AgentSwitcher.js'),import('../../components/AgentCreator.js'),import('../../components/SettingsPanel.js'),import(_0x150dd0(0x7d)),import('../../components/HelpPanel.js')]),_0x596de6=_0x283793['map'](_0x285ab7=>Object['keys'](_0x285ab7)[0x0]),_0x11a7a4=new Set(_0x596de6);expect(_0x11a7a4['size'])[_0x150dd0(0x7b)](_0x596de6['length']);});});
1
+ const a0_0x3f778f=a0_0x1100;(function(_0x135772,_0xf84635){const _0xa3baaf=a0_0x1100,_0x8e8163=_0x135772();while(!![]){try{const _0x47a123=parseInt(_0xa3baaf(0x9d))/0x1*(-parseInt(_0xa3baaf(0xbd))/0x2)+-parseInt(_0xa3baaf(0xac))/0x3*(parseInt(_0xa3baaf(0xba))/0x4)+-parseInt(_0xa3baaf(0x9e))/0x5*(-parseInt(_0xa3baaf(0xbb))/0x6)+-parseInt(_0xa3baaf(0xb4))/0x7+-parseInt(_0xa3baaf(0xaa))/0x8*(-parseInt(_0xa3baaf(0xb0))/0x9)+-parseInt(_0xa3baaf(0xc7))/0xa+parseInt(_0xa3baaf(0xa4))/0xb*(parseInt(_0xa3baaf(0xae))/0xc);if(_0x47a123===_0xf84635)break;else _0x8e8163['push'](_0x8e8163['shift']());}catch(_0x50beb8){_0x8e8163['push'](_0x8e8163['shift']());}}}(a0_0x4152,0x52c5a));import{describe,test,expect}from'@jest/globals';function a0_0x4152(){const _0x2d8d84=['lI4VlI4Vy29TCg9Uzw50CY9bz2vUDfn3AxrJAgvYlMPZ','qwDLBNrdCMvHDg9Y','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','qwDLBNrdCMvHDg9YigrLzMLUzxmGC3rLCcbJB25ZDgfUDhm','u2v0DgLUz3nqyw5LBcbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','ugHHC2uGmtaGlsbbz2vUDfn3AxrJAgvYic0Gu3rYDwn0DxjL','qwDLBNrtD2L0y2HLCIbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','Dg9czurLzMLUzwq','CMvUzgvY','mty1nZuYmfvmzxbZsG','zNvUy3rPB24','sgvSCfbHBMvSigLZigeGzNvUy3rPB24Gy29TCg9Uzw50','qwDLBNrtD2L0y2HLCG','nta5mZK1D3nlrvbf','nJm1mdq1qKTktwXW','vgv4Da','zgvMyxvSDa','u2v0DgLUz3nqyw5LBcbKzwzPBMvZignHDgvNB3j5ignVBNn0yw50CW','ywXS','C2L6zq','mJa5nZDArLzurgi','Dg9czvvUzgvMAw5Lza','ugHHC2uGmtaGlsbjBNrLz3jHDgLVBIb3AxrOieXHEw91Da','lI4VlI4Vy29TCg9Uzw50CY9tzwfYy2Hqyw5LBc5QCW','ugHHC2uGmtaGlsbbz2vUDenYzwf0B3iGlsbtDhj1y3r1CMu','A2v5CW','mZa2oti4EenpDxrb','u2vHCMnOugfUzwW','mZzlr3fgDvm','ugHHC2uGmtaGlsbbzhzHBMnLzcbgzwf0DxjLCYaTieLTCg9YDhm','mZa4ngv0ENvrEG','qwXSifbOyxnLideWignVBxbVBMvUDhmGDxnLifjLywn0igfUzcbjBMS','mte3AhvZsK5d','u2v0DgLUz3nqyw5LBa','lI4VlI4Vy29TCg9Uzw50CY9izwXWugfUzwWUANm','ChjVDg90ExbL','mJGYmtq4m0Hlzhzeuq','sgvSCfbHBMvS','BwfW','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDenYzwf0B3iUANm','Dg9czq','lI4VlI4Vy29TCg9Uzw50CY9tzxr0Aw5NC1bHBMvSlMPZ','nJG4odrIugv5Ag4','mZbqufHzEvm','ugHHC2uGmtaGlsbizwXWugfUzwWGlsbtDhj1y3r1CMu','mMfyAgPIuG'];a0_0x4152=function(){return _0x2d8d84;};return a0_0x4152();}function a0_0x1100(_0x503e9d,_0x1228af){_0x503e9d=_0x503e9d-0x9a;const _0x415290=a0_0x4152();let _0x1100b7=_0x415290[_0x503e9d];if(a0_0x1100['LKLVFQ']===undefined){var _0x36b2d8=function(_0x275bc8){const _0x47a561='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x19c870='',_0x423ecd='';for(let _0x531e77=0x0,_0x5432e0,_0x5a5257,_0x199461=0x0;_0x5a5257=_0x275bc8['charAt'](_0x199461++);~_0x5a5257&&(_0x5432e0=_0x531e77%0x4?_0x5432e0*0x40+_0x5a5257:_0x5a5257,_0x531e77++%0x4)?_0x19c870+=String['fromCharCode'](0xff&_0x5432e0>>(-0x2*_0x531e77&0x6)):0x0){_0x5a5257=_0x47a561['indexOf'](_0x5a5257);}for(let _0x5538f6=0x0,_0x568903=_0x19c870['length'];_0x5538f6<_0x568903;_0x5538f6++){_0x423ecd+='%'+('00'+_0x19c870['charCodeAt'](_0x5538f6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x423ecd);};a0_0x1100['pEZNzH']=_0x36b2d8,a0_0x1100['kCxwLM']={},a0_0x1100['LKLVFQ']=!![];}const _0x372329=_0x415290[0x0],_0x4ca67b=_0x503e9d+_0x372329,_0xb49109=a0_0x1100['kCxwLM'][_0x4ca67b];return!_0xb49109?(_0x1100b7=a0_0x1100['pEZNzH'](_0x1100b7),a0_0x1100['kCxwLM'][_0x4ca67b]=_0x1100b7):_0x1100b7=_0xb49109,_0x1100b7;}describe(a0_0x3f778f(0xad),()=>{test('AgentSwitcher component can be imported',async()=>{const _0x2d3d8e=a0_0x1100,{AgentSwitcher:_0x19c870}=await import('../../components/AgentSwitcher.js');expect(_0x19c870)['toBeDefined'](),expect(typeof _0x19c870)[_0x2d3d8e(0xb8)]('function');},0x7530),test('AgentCreator component can be imported',async()=>{const _0x424afa=a0_0x1100,{AgentCreator:_0x423ecd}=await import(_0x424afa(0xb7));expect(_0x423ecd)['toBeDefined'](),expect(typeof _0x423ecd)[_0x424afa(0xb8)](_0x424afa(0x9a));}),test('SettingsPanel component can be imported',async()=>{const _0x503984=a0_0x1100,{SettingsPanel:_0x531e77}=await import(_0x503984(0xb9));expect(_0x531e77)['toBeDefined'](),expect(typeof _0x531e77)[_0x503984(0xb8)]('function');}),test('SearchPanel component can be imported',async()=>{const _0x513900=a0_0x1100,{SearchPanel:_0x5432e0}=await import(_0x513900(0xa7));expect(_0x5432e0)[_0x513900(0xc5)](),expect(typeof _0x5432e0)['toBe']('function');}),test('HelpPanel component can be imported',async()=>{const _0x33c30b=a0_0x1100,{HelpPanel:_0x5a5257}=await import(_0x33c30b(0xb2));expect(_0x5a5257)[_0x33c30b(0xc5)](),expect(typeof _0x5a5257)['toBe']('function');});}),describe(a0_0x3f778f(0xc3),()=>{const _0x50723d=a0_0x3f778f;test(_0x50723d(0xc4),async()=>{const _0x440253=_0x50723d,{AgentSwitcher:_0x199461}=await import(_0x440253(0xbe));expect(typeof _0x199461)[_0x440253(0xb8)](_0x440253(0x9a)),expect(_0x199461['prototype']?.[_0x440253(0xc6)])['toBeUndefined']();}),test('AgentSwitcher is default export',async()=>{const _0x37a6be=_0x50723d,module=await import(_0x37a6be(0xbe));expect(module['default'])['toBeDefined'](),expect(module[_0x37a6be(0xa0)])[_0x37a6be(0xb8)](module[_0x37a6be(0x9c)]);});}),describe(a0_0x3f778f(0xa8),()=>{test('AgentCreator\x20is\x20a\x20function\x20component',async()=>{const _0x5369f2=a0_0x1100,{AgentCreator:_0x5538f6}=await import(_0x5369f2(0xb7));expect(typeof _0x5538f6)[_0x5369f2(0xb8)](_0x5369f2(0x9a)),expect(_0x5538f6['prototype']?.['render'])[_0x5369f2(0xa5)]();}),test('AgentCreator is default export',async()=>{const _0x12fe98=a0_0x1100,module=await import(_0x12fe98(0xb7));expect(module[_0x12fe98(0xa0)])[_0x12fe98(0xc5)](),expect(module['default'])['toBe'](module[_0x12fe98(0xbf)]);});}),describe('Phase\x2010\x20-\x20SettingsPanel\x20-\x20Structure',()=>{const _0x258969=a0_0x3f778f;test(_0x258969(0xc2),async()=>{const _0x3f6ca0=_0x258969,{SettingsPanel:_0x568903}=await import(_0x3f6ca0(0xb9));expect(typeof _0x568903)['toBe'](_0x3f6ca0(0x9a)),expect(_0x568903['prototype']?.[_0x3f6ca0(0xc6)])['toBeUndefined']();}),test('SettingsPanel is default export',async()=>{const _0x1ecef1=_0x258969,module=await import(_0x1ecef1(0xb9));expect(module['default'])['toBeDefined'](),expect(module[_0x1ecef1(0xa0)])['toBe'](module['SettingsPanel']);});}),describe('Phase\x2010\x20-\x20SearchPanel\x20-\x20Structure',()=>{test('SearchPanel\x20is\x20a\x20function\x20component',async()=>{const _0x253043=a0_0x1100,{SearchPanel:_0x41ad8c}=await import('../../components/SearchPanel.js');expect(typeof _0x41ad8c)['toBe'](_0x253043(0x9a)),expect(_0x41ad8c[_0x253043(0xb3)]?.['render'])[_0x253043(0xa5)]();}),test('SearchPanel is default export',async()=>{const _0xf9b024=a0_0x1100,module=await import(_0xf9b024(0xa7));expect(module[_0xf9b024(0xa0)])[_0xf9b024(0xc5)](),expect(module['default'])['toBe'](module['SearchPanel']);});}),describe(a0_0x3f778f(0xbc),()=>{const _0x3ee3fc=a0_0x3f778f;test(_0x3ee3fc(0x9b),async()=>{const _0x52d513=_0x3ee3fc,{HelpPanel:_0x19b293}=await import(_0x52d513(0xb2));expect(typeof _0x19b293)[_0x52d513(0xb8)]('function'),expect(_0x19b293['prototype']?.[_0x52d513(0xc6)])['toBeUndefined']();}),test('HelpPanel is default export',async()=>{const _0x276286=_0x3ee3fc,module=await import(_0x276286(0xb2));expect(module[_0x276286(0xa0)])[_0x276286(0xc5)](),expect(module['default'])['toBe'](module[_0x276286(0xb5)]);});}),describe(a0_0x3f778f(0xa6),()=>{const _0x816578=a0_0x3f778f;test('Layout component can import all Phase 10 components',async()=>{const _0xb97157=a0_0x1100,[_0x42113a,_0x20fe75,_0x5dddd9,_0x3c6e8f,_0x3c4245]=await Promise[_0xb97157(0xa2)]([import(_0xb97157(0xbe)),import('../../components/AgentCreator.js'),import(_0xb97157(0xb9)),import('../../components/SearchPanel.js'),import('../../components/HelpPanel.js')]);expect(_0x42113a[_0xb97157(0x9c)])['toBeDefined'](),expect(_0x20fe75['AgentCreator'])['toBeDefined'](),expect(_0x5dddd9[_0xb97157(0xb1)])[_0xb97157(0xc5)](),expect(_0x3c6e8f[_0xb97157(0xab)])['toBeDefined'](),expect(_0x3c4245['HelpPanel'])['toBeDefined']();}),test('Layout\x20component\x20still\x20loads\x20after\x20Phase\x2010\x20additions',async()=>{const _0x4f1e99=a0_0x1100,{Layout:_0x4a4fc3}=await import(_0x4f1e99(0xc0));expect(_0x4a4fc3)[_0x4f1e99(0xc5)](),expect(typeof _0x4a4fc3)['toBe']('function');}),test(_0x816578(0xaf),async()=>{const _0x44f160=_0x816578,_0x314f5f=await import('react'),_0x133380=await import('ink');expect(_0x314f5f['createElement'])[_0x44f160(0xc5)](),expect(_0x314f5f['useState'])[_0x44f160(0xc5)](),expect(_0x133380['Box'])['toBeDefined'](),expect(_0x133380[_0x44f160(0x9f)])['toBeDefined'](),expect(_0x133380['useInput'])[_0x44f160(0xc5)]();});}),describe('Phase\x2010\x20-\x20Component\x20Constants\x20and\x20Configurations',()=>{const _0x11aa3b=a0_0x3f778f;test(_0x11aa3b(0xc1),async()=>{const _0x3aa566=_0x11aa3b,module=await import('../../components/AgentCreator.js');expect(module['AgentCreator'])[_0x3aa566(0xc5)]();}),test(_0x11aa3b(0xa1),async()=>{const _0xfe779f=_0x11aa3b,module=await import(_0xfe779f(0xb9));expect(module['SettingsPanel'])[_0xfe779f(0xc5)]();}),test('HelpPanel\x20defines\x20shortcut\x20configurations',async()=>{const _0x3891e6=_0x11aa3b,module=await import(_0x3891e6(0xb2));expect(module[_0x3891e6(0xb5)])['toBeDefined']();});}),describe('Phase\x2010\x20-\x20All\x20Components\x20Export\x20Correctly',()=>{test('All components can be imported together without conflicts',async()=>{const _0x41958f=a0_0x1100,_0x3c451b=await Promise[_0x41958f(0xa2)]([import(_0x41958f(0xbe)),import(_0x41958f(0xb7)),import(_0x41958f(0xb9)),import('../../components/SearchPanel.js'),import(_0x41958f(0xb2))]),_0x5fc251=_0x3c451b[_0x41958f(0xb6)](_0x39b119=>Object[_0x41958f(0xa9)](_0x39b119)[0x0]),_0x5aa784=new Set(_0x5fc251);expect(_0x5aa784[_0x41958f(0xa3)])['toBe'](_0x5fc251['length']);});});
@@ -1 +1 @@
1
- function a0_0x2d01(_0x5cb87e,_0x4a4c33){_0x5cb87e=_0x5cb87e-0x15e;const _0x46458c=a0_0x4645();let _0x2d01fe=_0x46458c[_0x5cb87e];if(a0_0x2d01['qiPbMx']===undefined){var _0x2b14d6=function(_0x19a944){const _0x1a93af='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3e2bb3='',_0x424b0c='';for(let _0x4a5278=0x0,_0x786e79,_0x5a9225,_0x1c9b91=0x0;_0x5a9225=_0x19a944['charAt'](_0x1c9b91++);~_0x5a9225&&(_0x786e79=_0x4a5278%0x4?_0x786e79*0x40+_0x5a9225:_0x5a9225,_0x4a5278++%0x4)?_0x3e2bb3+=String['fromCharCode'](0xff&_0x786e79>>(-0x2*_0x4a5278&0x6)):0x0){_0x5a9225=_0x1a93af['indexOf'](_0x5a9225);}for(let _0x39a65a=0x0,_0x315e00=_0x3e2bb3['length'];_0x39a65a<_0x315e00;_0x39a65a++){_0x424b0c+='%'+('00'+_0x3e2bb3['charCodeAt'](_0x39a65a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x424b0c);};a0_0x2d01['XbWHuE']=_0x2b14d6,a0_0x2d01['uavseX']={},a0_0x2d01['qiPbMx']=!![];}const _0x39e012=_0x46458c[0x0],_0x3588b7=_0x5cb87e+_0x39e012,_0x207f92=a0_0x2d01['uavseX'][_0x3588b7];return!_0x207f92?(_0x2d01fe=a0_0x2d01['XbWHuE'](_0x2d01fe),a0_0x2d01['uavseX'][_0x3588b7]=_0x2d01fe):_0x2d01fe=_0x207f92,_0x2d01fe;}const a0_0x394226=a0_0x2d01;(function(_0x1c8379,_0x1fe402){const _0x91a507=a0_0x2d01,_0x12ab80=_0x1c8379();while(!![]){try{const _0x404628=-parseInt(_0x91a507(0x167))/0x1+parseInt(_0x91a507(0x196))/0x2+-parseInt(_0x91a507(0x187))/0x3+-parseInt(_0x91a507(0x168))/0x4+-parseInt(_0x91a507(0x163))/0x5*(parseInt(_0x91a507(0x18a))/0x6)+-parseInt(_0x91a507(0x174))/0x7+parseInt(_0x91a507(0x16d))/0x8;if(_0x404628===_0x1fe402)break;else _0x12ab80['push'](_0x12ab80['shift']());}catch(_0x13503e){_0x12ab80['push'](_0x12ab80['shift']());}}}(a0_0x4645,0xc7462));import{describe,test,expect}from'@jest/globals';function a0_0x4645(){const _0x12eb2c=['qu5usfjpueLd','Dg9dB250ywLU','l2fWAs9SBg0VBw9KzwXZ','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','zgvLChnLzwS','t1bftKfj','nJG1mJK0nfPKweDcvW','twvZC2fNzvjVDxrLCIbOyxmGBw9KzsbJAgfUz2uGzxzLBNqGAgfUzgXLCIbYzwDPC3rLCMvK','Dg9czurLzMLUzwq','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gv2vIu29JA2v0iev2zw50ieHHBMrSzxjZ','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gq29UC3rHBNrZifzHBgLKyxrPB24','ywXS','t1jdsevtvfjbve9s','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsw1WB3j0CW','quDftLrFtu9ersb2ywX1zxmGyxjLihvWCgvYy2fZzq','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzwWGrMLSDgvYAw5N','quDftLrtx01prevFu0vu','revfufnfruS','Dg9vChbLCKnHC2u','tuLduK9tt0zu','tw9KzsbHBMqGBw9KzwWGqvbjigvUzhbVAw50CYbHCMuGzgvMAw5Lza','quDftLq','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','qvbjx0vorfbpsu5uuW','l2fWAs9VCMnOzxn0CMf0B3i','mZCWmJi0owXctxjIsG','oMfNzw50swq','A2v5CW','mtqYndr3DejfvMW','quDftLrFtu9ersbZDxbWB3j0CYb0B2DNBgLUzYbIzxr3zwvUig1VzgvZ','AgfZsgfUzgXLCG','zgvLChnLzwSTy2HHDa','q0Hbva','zgvMyxvSDa','y2XHDwrLltmTns1ZB25Uzxq','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0GqvbjievUzhbVAw50CYbwywXPzgf0Aw9U','DxnLqwDLBNrdB250CM9SihjLDhvYBNmGzxHWzwn0zwqGAw50zxjMywnLihnOyxbL','BwLJCM9ZB2z0','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','Dg9czq','mtmYmdCZognlAKniBa','DxnLqwDLBNrdB250CM9SigHVB2SGAw50zwDYyxrLCYb3AxrOifnLC3nPB24Gyw5Kie1LC3nHz2vsB3v0zxi','B3bLBMfP','Dg9mB3DLCKnHC2u','Dg9nyxrJAa','zNvUy3rPB24','Bg9JywXOB3n0','t3jJAgvZDhjHDg9YigvUzhbVAw50igv4Axn0CYbMB3iGBw9KzwWGyw5KignVBMzPzYbVCgvYyxrPB25Z','v2vIu29JA2v0twfUywDLCG','mtvUEevtzLC','y2f0zwDVCNK','DxnLqwDLBNrdB250CM9S','teXnig1VzgvSCYbLBMrWB2LUDcbLEgLZDhm','mZi2otC5zefNuxLr','ntGZnJq1mMDUuKHOwq','tu9eruXFq0furuDpuLKGAw5JBhvKzxmGBwfQB3iGteXnihbYB3zPzgvYCW','lI4VlI4VC3rHDguVDxnLqwDLBNrdB250CM9SlMPZ','quDftLrtx01prevFr0vu','BgvUz3rO','mZmYotCXnJHXCKDgzu8'];a0_0x4645=function(){return _0x12eb2c;};return a0_0x4645();}describe(a0_0x394226(0x17b),()=>{test('useAgentControl hook can be imported',async()=>{const _0x4ab0bd=a0_0x2d01,{useAgentControl:_0x3e2bb3}=await import(_0x4ab0bd(0x16a));expect(_0x3e2bb3)[_0x4ab0bd(0x176)](),expect(typeof _0x3e2bb3)[_0x4ab0bd(0x195)](_0x4ab0bd(0x15f));}),test('useAgentControl is default export',async()=>{const _0x100973=a0_0x2d01,module=await import('../../state/useAgentControl.js');expect(module['default'])[_0x100973(0x176)](),expect(typeof module[_0x100973(0x18f)])[_0x100973(0x195)](_0x100973(0x15f)),expect(module[_0x100973(0x18f)])['toBe'](module['useAgentControl']);});}),describe('Agent\x20Control\x20Management\x20-\x20Constants',()=>{const _0x5b33fa=a0_0x394226;test('AGENT_MODE\x20constants\x20are\x20defined',async()=>{const _0x2f22e0=a0_0x2d01,{AGENT_MODE:_0x424b0c}=await import(_0x2f22e0(0x184));expect(_0x424b0c)[_0x2f22e0(0x176)](),expect(_0x424b0c['CHAT'])['toBe']('CHAT'),expect(_0x424b0c[_0x2f22e0(0x183)])[_0x2f22e0(0x195)]('AGENT');}),test('MODEL_CATEGORY\x20constants\x20are\x20defined',async()=>{const _0x3b7371=a0_0x2d01,{MODEL_CATEGORY:_0x4a5278}=await import(_0x3b7371(0x184));expect(_0x4a5278)[_0x3b7371(0x176)](),expect(_0x4a5278['ANTHROPIC'])[_0x3b7371(0x195)]('anthropic'),expect(_0x4a5278['OPENAI'])[_0x3b7371(0x195)]('openai'),expect(_0x4a5278['DEEPSEEK'])['toBe'](_0x3b7371(0x172)),expect(_0x4a5278[_0x3b7371(0x181)])['toBe']('microsoft');}),test(_0x5b33fa(0x182),async()=>{const _0x4950e8=_0x5b33fa,{API_ENDPOINTS:_0x786e79}=await import(_0x4950e8(0x184));expect(_0x786e79['AGENTS_MODE_SET'])[_0x4950e8(0x195)]('/api/agents/:agentId/mode'),expect(_0x786e79['AGENTS_MODE_GET'])[_0x4950e8(0x195)]('/api/agents/:agentId/mode'),expect(_0x786e79['LLM_MODELS'])[_0x4950e8(0x195)]('/api/llm/models');}),test('WS_MESSAGE_TYPE\x20includes\x20mode\x20and\x20model\x20change\x20events',async()=>{const {WS_MESSAGE_TYPE:_0x5a9225}=await import('../../config/constants.js');expect(_0x5a9225)['toBeDefined'](),expect(_0x5a9225['AGENT_MODE_CHANGED'])['toBe']('agent_mode_changed');});}),describe('Agent\x20Control\x20Management\x20-\x20Integration',()=>{const _0x43106b=a0_0x394226;test(_0x43106b(0x197),async()=>{const _0x5a6e31=_0x43106b,{useAgentControl:_0x1c9b91}=await import('../../state/useAgentControl.js'),{SessionManager:_0x39a65a}=await import('../../api/session.js'),{MessageRouter:_0x315e00}=await import(_0x5a6e31(0x194)),{WebSocketManager:_0x207f26}=await import(_0x5a6e31(0x171)),_0x5e2a63=new _0x39a65a('localhost',0x1f90),_0x5498b0=new _0x207f26('localhost',0x1f90),_0x41c01e=new _0x315e00(_0x5498b0);expect(_0x5e2a63)[_0x5a6e31(0x176)](),expect(_0x41c01e)['toBeDefined'](),expect(typeof _0x1c9b91)['toBe'](_0x5a6e31(0x15f));}),test('Full agent control stack can be imported together',async()=>{const _0x69f0e7=_0x43106b,[_0x1958f6,_0x2bbf7b,_0x1a68da,_0x4f8e94,_0x4be5c2]=await Promise[_0x69f0e7(0x179)]([import('../../config/constants.js'),import('../../api/session.js'),import(_0x69f0e7(0x171)),import('../../api/messageRouter.js'),import(_0x69f0e7(0x16a))]);expect(_0x1958f6['AGENT_MODE'])['toBeDefined'](),expect(_0x1958f6['MODEL_CATEGORY'])[_0x69f0e7(0x176)](),expect(_0x1958f6[_0x69f0e7(0x185)])['toBeDefined'](),expect(_0x2bbf7b['SessionManager'])['toBeDefined'](),expect(_0x1a68da[_0x69f0e7(0x162)])[_0x69f0e7(0x176)](),expect(_0x4f8e94['MessageRouter'])[_0x69f0e7(0x176)](),expect(_0x4be5c2[_0x69f0e7(0x165)])['toBeDefined']();});}),describe(a0_0x394226(0x191),()=>{const _0x38150b=a0_0x394226;test('Agent\x20mode\x20endpoints\x20follow\x20RESTful\x20pattern',async()=>{const _0xa69438=a0_0x2d01,{API_ENDPOINTS:_0x3035fd}=await import(_0xa69438(0x184));expect(_0x3035fd[_0xa69438(0x17e)])['toMatch'](/^\/api\/agents/),expect(_0x3035fd[_0xa69438(0x16b)])[_0xa69438(0x15e)](/^\/api\/agents/),expect(_0x3035fd[_0xa69438(0x17e)])['toContain'](':agentId'),expect(_0x3035fd[_0xa69438(0x16b)])['toContain'](_0xa69438(0x188));}),test(_0x38150b(0x166),async()=>{const _0x361e4e=_0x38150b,{API_ENDPOINTS:_0xecbdb3}=await import('../../config/constants.js');expect(_0xecbdb3['LLM_MODELS'])[_0x361e4e(0x176)](),expect(_0xecbdb3['LLM_MODELS'])['toBe'](_0x361e4e(0x170));}),test(_0x38150b(0x161),async()=>{const _0x37c39d=_0x38150b,{API_ENDPOINTS:_0x2c007c}=await import('../../config/constants.js');expect(_0x2c007c['ORCHESTRATOR'])[_0x37c39d(0x176)](),expect(_0x2c007c[_0x37c39d(0x17a)])[_0x37c39d(0x195)](_0x37c39d(0x186));});}),describe('Agent\x20Control\x20Management\x20-\x20Hook\x20Interface\x20Verification',()=>{const _0x44bd16=a0_0x394226;test(_0x44bd16(0x192),async()=>{const _0x172d0b=_0x44bd16,{useAgentControl:_0x3bb437}=await import('../../state/useAgentControl.js');expect(_0x3bb437[_0x172d0b(0x16c)])['toBe'](0x3);});}),describe(a0_0x394226(0x178),()=>{const _0x387c6e=a0_0x394226;test('AGENT_MODE\x20has\x20exactly\x20two\x20modes',async()=>{const _0x5093ff=a0_0x2d01,{AGENT_MODE:_0x46d755}=await import('../../config/constants.js'),_0x281a18=Object[_0x5093ff(0x189)](_0x46d755);expect(_0x281a18['length'])[_0x5093ff(0x195)](0x2),expect(_0x281a18)['toContain']('CHAT'),expect(_0x281a18)[_0x5093ff(0x16f)]('AGENT');}),test(_0x387c6e(0x17c),async()=>{const _0x38e123=_0x387c6e,{AGENT_MODE:_0x5eb79a}=await import('../../config/constants.js');expect(_0x5eb79a[_0x38e123(0x18e)])['toBe']('CHAT'),expect(_0x5eb79a['AGENT'])[_0x38e123(0x195)](_0x38e123(0x183)),expect(_0x5eb79a[_0x38e123(0x18e)])[_0x38e123(0x195)](_0x5eb79a['CHAT']['toUpperCase']()),expect(_0x5eb79a['AGENT'])['toBe'](_0x5eb79a['AGENT'][_0x38e123(0x180)]());}),test('MODEL_CATEGORY\x20values\x20are\x20lowercase',async()=>{const _0x3877ce=_0x387c6e,{MODEL_CATEGORY:_0x47db6c}=await import('../../config/constants.js');expect(_0x47db6c[_0x3877ce(0x16e)])[_0x3877ce(0x195)]('anthropic'),expect(_0x47db6c[_0x3877ce(0x173)])[_0x3877ce(0x195)](_0x3877ce(0x198)),expect(_0x47db6c[_0x3877ce(0x17f)])[_0x3877ce(0x195)](_0x3877ce(0x172)),expect(_0x47db6c[_0x3877ce(0x181)])['toBe'](_0x3877ce(0x193)),expect(_0x47db6c['ANTHROPIC'])[_0x3877ce(0x195)](_0x47db6c[_0x3877ce(0x16e)][_0x3877ce(0x199)]()),expect(_0x47db6c['OPENAI'])[_0x3877ce(0x195)](_0x47db6c['OPENAI'][_0x3877ce(0x199)]());}),test(_0x387c6e(0x169),async()=>{const _0x175cd7=_0x387c6e,{MODEL_CATEGORY:_0x22fa7a}=await import(_0x175cd7(0x184)),_0x188984=Object[_0x175cd7(0x189)](_0x22fa7a);expect(_0x188984)[_0x175cd7(0x16f)](_0x175cd7(0x16e)),expect(_0x188984)[_0x175cd7(0x16f)]('OPENAI'),expect(_0x188984)[_0x175cd7(0x16f)](_0x175cd7(0x17f)),expect(_0x188984)['toContain'](_0x175cd7(0x181));});}),describe(a0_0x394226(0x177),()=>{const _0xca99cd=a0_0x394226;test(_0xca99cd(0x175),async()=>{const _0x5d562a=_0xca99cd,{MessageRouter:_0x180c61}=await import(_0x5d562a(0x194)),{WebSocketManager:_0x3227f6}=await import(_0x5d562a(0x171)),{WS_MESSAGE_TYPE:_0x3075b6}=await import(_0x5d562a(0x184)),_0x3ff389=new _0x3227f6(_0x5d562a(0x160),0x1f90),_0x3816ac=new _0x180c61(_0x3ff389);expect(_0x3816ac[_0x5d562a(0x18c)](_0x3075b6['AGENT_MODE_CHANGED']))['toBe'](!![]);});}),describe('Agent\x20Control\x20Management\x20-\x20Mode\x20Switching\x20Logic',()=>{const _0x41e1f8=a0_0x394226;test(_0x41e1f8(0x18b),async()=>{const _0x87c118=_0x41e1f8,{AGENT_MODE:_0x222828}=await import('../../config/constants.js');let _0x4866e8=_0x222828[_0x87c118(0x18e)],_0x71e5e2=_0x4866e8===_0x222828[_0x87c118(0x18e)]?_0x222828['AGENT']:_0x222828[_0x87c118(0x18e)];expect(_0x71e5e2)[_0x87c118(0x195)](_0x222828['AGENT']),_0x4866e8=_0x222828['AGENT'],_0x71e5e2=_0x4866e8===_0x222828['CHAT']?_0x222828['AGENT']:_0x222828['CHAT'],expect(_0x71e5e2)['toBe'](_0x222828['CHAT']);});}),describe(a0_0x394226(0x17d),()=>{test('MODEL_CATEGORY\x20can\x20be\x20used\x20to\x20filter\x20models\x20by\x20category',async()=>{const _0x11fe8d=a0_0x2d01,{MODEL_CATEGORY:_0x3d319f}=await import(_0x11fe8d(0x184)),_0x1e99d7=[{'id':_0x11fe8d(0x190),'category':_0x3d319f['ANTHROPIC']},{'id':'gpt-4','category':_0x3d319f[_0x11fe8d(0x173)]},{'id':_0x11fe8d(0x18d),'category':_0x3d319f['DEEPSEEK']}],_0x11191a=_0x1e99d7['filter'](_0x1ce7db=>_0x1ce7db[_0x11fe8d(0x164)]===_0x3d319f[_0x11fe8d(0x16e)]),_0x54115f=_0x1e99d7['filter'](_0x5d7a03=>_0x5d7a03['category']===_0x3d319f['OPENAI']);expect(_0x11191a['length'])['toBe'](0x1),expect(_0x11191a[0x0]['id'])['toBe'](_0x11fe8d(0x190)),expect(_0x54115f[_0x11fe8d(0x16c)])[_0x11fe8d(0x195)](0x1),expect(_0x54115f[0x0]['id'])[_0x11fe8d(0x195)]('gpt-4');});});
1
+ function a0_0x4a47(){const _0x2d1099=['zNvUy3rPB24','tu9eruXFq0furuDpuLKGAw5JBhvKzxmGBwfQB3iGteXnihbYB3zPzgvYCW','nJe4ndGWCLfeBK9j','mvr6yunHtq','zgvLChnLzwSTy2HHDa','l2fWAs9VCMnOzxn0CMf0B3i','y2f0zwDVCNK','ntu2D0npuvzw','A2v5CW','Bg9JywXOB3n0','Dg9czurLzMLUzwq','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','tuLduK9tt0zu','qvbjx0vorfbpsu5uuW','teXnx01prevmuW','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzsbtD2L0y2HPBMCGtg9NAwm','Dg9czq','lI4VlI4VC3rHDguVDxnLqwDLBNrdB250CM9SlMPZ','y2XHDwrLltmTns1ZB25Uzxq','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsw50zwDYyxrPB24','BgvUz3rO','DxnLqwDLBNrdB250CM9SigHVB2SGAw50zwDYyxrLCYb3AxrOifnLC3nPB24Gyw5Kie1LC3nHz2vsB3v0zxi','revfufnfruS','zgvMyxvSDa','nZm1mJq1AgjhDgHU','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsg9VAYbjBNrLCMzHy2uGvMvYAwzPy2f0Aw9U','B3bLBMfP','quDftLrFtu9erv9dsefor0ve','quDftLrtx01prevFu0vu','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gv2vIu29JA2v0iev2zw50ieHHBMrSzxjZ','l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','BwLJCM9ZB2z0','Dg9dB250ywLU','Dg9mB3DLCKnHC2u','nJi2ntKWq2DfyNjf','oMfNzw50swq','Dg9nyxrJAa','u2vZC2LVBK1HBMfNzxi','v2vIu29JA2v0twfUywDLCG','DxnLqwDLBNrdB250CM9SihjLDhvYBNmGzxHWzwn0zwqGAw50zxjMywnLihnOyxbL','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','lI4VlI4VyxbPl3nLC3nPB24UANm','zMLSDgvY','ow1uCvb1uW','Dg9vChbLCKnHC2u','quDftLrtx01prevFr0vu','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','qwDLBNqGBw9KzsbLBMrWB2LUDhmGzM9SBg93ifjfu1rMDwWGCgf0DgvYBG','mte1nu5qBuXWzG','tu9eruXFq0furuDpuLKGy2fUigjLihvZzwqGDg8GzMLSDgvYig1VzgvSCYbIEsbJyxrLz29YEq','l2fWAs9SBg0VBw9KzwXZ','qu5usfjpueLd','nduXnZi1CeLis3Lq','tu9eruXFq0furuDpuLK','twvZC2fNzvjVDxrLCG','z3b0ltq','q0Hbva','mZaZotm4BxrnzNPV','tu9eruXFq0furuDpuLKGDMfSDwvZigfYzsbSB3DLCMnHC2u','ndu2mtjruvHlzee','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzwWGrMLSDgvYAw5N','t1bftKfj','zgvLChnLzwS','quDftLq','v1nFtuvtu0fhrv9uwvbfigLUy2X1zgvZig1VzguGyw5Kig1VzgvSignOyw5NzsbLDMvUDhm','AgfZsgfUzgXLCG','DxnLqwDLBNrdB250CM9S'];a0_0x4a47=function(){return _0x2d1099;};return a0_0x4a47();}const a0_0x47ffb2=a0_0x4f5f;(function(_0x3ce806,_0x5a03a4){const _0x77c155=a0_0x4f5f,_0x551460=_0x3ce806();while(!![]){try{const _0x495087=parseInt(_0x77c155(0xd1))/0x1*(parseInt(_0x77c155(0xc4))/0x2)+parseInt(_0x77c155(0xbb))/0x3*(-parseInt(_0x77c155(0xd5))/0x4)+-parseInt(_0x77c155(0xbf))/0x5+parseInt(_0x77c155(0xc6))/0x6+parseInt(_0x77c155(0xa3))/0x7+parseInt(_0x77c155(0xd0))/0x8+parseInt(_0x77c155(0xb6))/0x9*(-parseInt(_0x77c155(0xad))/0xa);if(_0x495087===_0x5a03a4)break;else _0x551460['push'](_0x551460['shift']());}catch(_0x13ed22){_0x551460['push'](_0x551460['shift']());}}}(a0_0x4a47,0x210e5));function a0_0x4f5f(_0x47ecdc,_0x478863){_0x47ecdc=_0x47ecdc-0x99;const _0x4a47ee=a0_0x4a47();let _0x4f5f2a=_0x4a47ee[_0x47ecdc];if(a0_0x4f5f['NMaskR']===undefined){var _0x2ecaca=function(_0xd8a28b){const _0x253f3d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x54e76f='',_0x2cc5e9='';for(let _0x37f837=0x0,_0x1214fe,_0x5ed2a2,_0x33c402=0x0;_0x5ed2a2=_0xd8a28b['charAt'](_0x33c402++);~_0x5ed2a2&&(_0x1214fe=_0x37f837%0x4?_0x1214fe*0x40+_0x5ed2a2:_0x5ed2a2,_0x37f837++%0x4)?_0x54e76f+=String['fromCharCode'](0xff&_0x1214fe>>(-0x2*_0x37f837&0x6)):0x0){_0x5ed2a2=_0x253f3d['indexOf'](_0x5ed2a2);}for(let _0x5a0bf1=0x0,_0x4a3610=_0x54e76f['length'];_0x5a0bf1<_0x4a3610;_0x5a0bf1++){_0x2cc5e9+='%'+('00'+_0x54e76f['charCodeAt'](_0x5a0bf1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2cc5e9);};a0_0x4f5f['HoEdEz']=_0x2ecaca,a0_0x4f5f['sWZepd']={},a0_0x4f5f['NMaskR']=!![];}const _0x3f875c=_0x4a47ee[0x0],_0x381b31=_0x47ecdc+_0x3f875c,_0x55ddef=a0_0x4f5f['sWZepd'][_0x381b31];return!_0x55ddef?(_0x4f5f2a=a0_0x4f5f['HoEdEz'](_0x4f5f2a),a0_0x4f5f['sWZepd'][_0x381b31]=_0x4f5f2a):_0x4f5f2a=_0x55ddef,_0x4f5f2a;}import{describe,test,expect}from'@jest/globals';describe('Agent\x20Control\x20Management\x20-\x20Imports',()=>{test('useAgentControl hook can be imported',async()=>{const _0x550a05=a0_0x4f5f,{useAgentControl:_0x54e76f}=await import('../../state/useAgentControl.js');expect(_0x54e76f)['toBeDefined'](),expect(typeof _0x54e76f)[_0x550a05(0x9b)](_0x550a05(0xce));}),test('useAgentControl is default export',async()=>{const _0x23c137=a0_0x4f5f,module=await import('../../state/useAgentControl.js');expect(module['default'])[_0x23c137(0xd8)](),expect(typeof module['default'])['toBe']('function'),expect(module[_0x23c137(0xa2)])[_0x23c137(0x9b)](module[_0x23c137(0xcd)]);});}),describe('Agent\x20Control\x20Management\x20-\x20Constants',()=>{const _0x176251=a0_0x4f5f;test('AGENT_MODE\x20constants\x20are\x20defined',async()=>{const _0x44166b=a0_0x4f5f,{AGENT_MODE:_0x2cc5e9}=await import('../../config/constants.js');expect(_0x2cc5e9)['toBeDefined'](),expect(_0x2cc5e9['CHAT'])['toBe']('CHAT'),expect(_0x2cc5e9[_0x44166b(0xca)])[_0x44166b(0x9b)](_0x44166b(0xca));}),test('MODEL_CATEGORY\x20constants\x20are\x20defined',async()=>{const _0x4a57fe=a0_0x4f5f,{MODEL_CATEGORY:_0x37f837}=await import('../../config/constants.js');expect(_0x37f837)['toBeDefined'](),expect(_0x37f837[_0x4a57fe(0xbe)])[_0x4a57fe(0x9b)]('anthropic'),expect(_0x37f837[_0x4a57fe(0xc8)])['toBe'](_0x4a57fe(0xa5)),expect(_0x37f837['DEEPSEEK'])[_0x4a57fe(0x9b)](_0x4a57fe(0xc9)),expect(_0x37f837['MICROSOFT'])[_0x4a57fe(0x9b)](_0x4a57fe(0xaa));}),test('Mode\x20and\x20model\x20API\x20endpoints\x20are\x20defined',async()=>{const _0x26f0ff=a0_0x4f5f,{API_ENDPOINTS:_0x1214fe}=await import(_0x26f0ff(0xb3));expect(_0x1214fe[_0x26f0ff(0xa7)])['toBe'](_0x26f0ff(0xa9)),expect(_0x1214fe[_0x26f0ff(0xb8)])[_0x26f0ff(0x9b)](_0x26f0ff(0xa9)),expect(_0x1214fe['LLM_MODELS'])[_0x26f0ff(0x9b)](_0x26f0ff(0xbd));}),test(_0x176251(0xcb),async()=>{const _0x49e281=_0x176251,{WS_MESSAGE_TYPE:_0x5ed2a2}=await import(_0x49e281(0xb3));expect(_0x5ed2a2)['toBeDefined'](),expect(_0x5ed2a2['AGENT_MODE_CHANGED'])['toBe']('agent_mode_changed');});}),describe(a0_0x47ffb2(0x9e),()=>{const _0x4811a1=a0_0x47ffb2;test(_0x4811a1(0xa0),async()=>{const _0x5eb6f1=_0x4811a1,{useAgentControl:_0x33c402}=await import('../../state/useAgentControl.js'),{SessionManager:_0x5a0bf1}=await import(_0x5eb6f1(0xb4)),{MessageRouter:_0x4a3610}=await import('../../api/messageRouter.js'),{WebSocketManager:_0x245d3a}=await import('../../api/websocket.js'),_0x4846ae=new _0x5a0bf1(_0x5eb6f1(0xd7),0x1f90),_0x5d3e34=new _0x245d3a(_0x5eb6f1(0xd7),0x1f90),_0x74d07b=new _0x4a3610(_0x5d3e34);expect(_0x4846ae)['toBeDefined'](),expect(_0x74d07b)['toBeDefined'](),expect(typeof _0x33c402)[_0x5eb6f1(0x9b)](_0x5eb6f1(0xce));}),test('Full agent control stack can be imported together',async()=>{const _0x4afc80=_0x4811a1,[_0x23e518,_0x21804b,_0x1f02ab,_0x30f88e,_0x24bef6]=await Promise['all']([import('../../config/constants.js'),import('../../api/session.js'),import(_0x4afc80(0xd9)),import(_0x4afc80(0xb9)),import(_0x4afc80(0x9c))]);expect(_0x23e518['AGENT_MODE'])[_0x4afc80(0xd8)](),expect(_0x23e518[_0x4afc80(0xc0)])[_0x4afc80(0xd8)](),expect(_0x23e518[_0x4afc80(0xdb)])[_0x4afc80(0xd8)](),expect(_0x21804b[_0x4afc80(0xb0)])[_0x4afc80(0xd8)](),expect(_0x1f02ab[_0x4afc80(0xb1)])[_0x4afc80(0xd8)](),expect(_0x30f88e[_0x4afc80(0xc1)])['toBeDefined'](),expect(_0x24bef6[_0x4afc80(0xcd)])['toBeDefined']();});}),describe('Agent\x20Control\x20Management\x20-\x20API\x20Endpoints\x20Validation',()=>{const _0xf5eca7=a0_0x47ffb2;test(_0xf5eca7(0xba),async()=>{const _0x1aacc4=_0xf5eca7,{API_ENDPOINTS:_0x130708}=await import('../../config/constants.js');expect(_0x130708['AGENTS_MODE_SET'])[_0x1aacc4(0xaf)](/^\/api\/agents/),expect(_0x130708['AGENTS_MODE_GET'])[_0x1aacc4(0xaf)](/^\/api\/agents/),expect(_0x130708[_0x1aacc4(0xa7)])['toContain'](':agentId'),expect(_0x130708['AGENTS_MODE_GET'])['toContain'](_0x1aacc4(0xae));}),test('LLM\x20models\x20endpoint\x20exists',async()=>{const _0x4fa0b9=_0xf5eca7,{API_ENDPOINTS:_0x488897}=await import(_0x4fa0b9(0xb3));expect(_0x488897[_0x4fa0b9(0x99)])[_0x4fa0b9(0xd8)](),expect(_0x488897['LLM_MODELS'])[_0x4fa0b9(0x9b)]('/api/llm/models');}),test('Orchestrator\x20endpoint\x20exists\x20for\x20model\x20and\x20config\x20operations',async()=>{const _0x512cbe=_0xf5eca7,{API_ENDPOINTS:_0x69dc35}=await import(_0x512cbe(0xb3));expect(_0x69dc35['ORCHESTRATOR'])[_0x512cbe(0xd8)](),expect(_0x69dc35['ORCHESTRATOR'])['toBe'](_0x512cbe(0xd3));});}),describe(a0_0x47ffb2(0xa4),()=>{const _0x1c9819=a0_0x47ffb2;test(_0x1c9819(0xb2),async()=>{const _0x53b665=_0x1c9819,{useAgentControl:_0xc80d4}=await import('../../state/useAgentControl.js');expect(_0xc80d4[_0x53b665(0x9f)])['toBe'](0x3);});}),describe('Agent\x20Control\x20Management\x20-\x20Constants\x20Validation',()=>{const _0x13738b=a0_0x47ffb2;test('AGENT_MODE\x20has\x20exactly\x20two\x20modes',async()=>{const _0x18b0d5=a0_0x4f5f,{AGENT_MODE:_0x3971d0}=await import('../../config/constants.js'),_0x2a3a79=Object['keys'](_0x3971d0);expect(_0x2a3a79[_0x18b0d5(0x9f)])[_0x18b0d5(0x9b)](0x2),expect(_0x2a3a79)[_0x18b0d5(0xab)]('CHAT'),expect(_0x2a3a79)['toContain'](_0x18b0d5(0xca));}),test('AGENT_MODE\x20values\x20are\x20uppercase',async()=>{const _0x25b0cb=a0_0x4f5f,{AGENT_MODE:_0x163de2}=await import(_0x25b0cb(0xb3));expect(_0x163de2['CHAT'])[_0x25b0cb(0x9b)]('CHAT'),expect(_0x163de2[_0x25b0cb(0xca)])['toBe'](_0x25b0cb(0xca)),expect(_0x163de2['CHAT'])[_0x25b0cb(0x9b)](_0x163de2['CHAT'][_0x25b0cb(0xb7)]()),expect(_0x163de2['AGENT'])[_0x25b0cb(0x9b)](_0x163de2[_0x25b0cb(0xca)][_0x25b0cb(0xb7)]());}),test(_0x13738b(0xc5),async()=>{const _0x2c6903=_0x13738b,{MODEL_CATEGORY:_0x41048b}=await import('../../config/constants.js');expect(_0x41048b['ANTHROPIC'])[_0x2c6903(0x9b)]('anthropic'),expect(_0x41048b['OPENAI'])['toBe']('openai'),expect(_0x41048b[_0x2c6903(0xa1)])[_0x2c6903(0x9b)]('deepseek'),expect(_0x41048b[_0x2c6903(0xda)])[_0x2c6903(0x9b)]('microsoft'),expect(_0x41048b[_0x2c6903(0xbe)])[_0x2c6903(0x9b)](_0x41048b[_0x2c6903(0xbe)][_0x2c6903(0xac)]()),expect(_0x41048b[_0x2c6903(0xc8)])[_0x2c6903(0x9b)](_0x41048b[_0x2c6903(0xc8)][_0x2c6903(0xac)]());}),test(_0x13738b(0xcf),async()=>{const _0xc4b9e4=_0x13738b,{MODEL_CATEGORY:_0x5dd4ff}=await import('../../config/constants.js'),_0x256abb=Object[_0xc4b9e4(0xd6)](_0x5dd4ff);expect(_0x256abb)['toContain'](_0xc4b9e4(0xbe)),expect(_0x256abb)['toContain'](_0xc4b9e4(0xc8)),expect(_0x256abb)[_0xc4b9e4(0xab)](_0xc4b9e4(0xa1)),expect(_0x256abb)[_0xc4b9e4(0xab)]('MICROSOFT');});}),describe(a0_0x47ffb2(0xa8),()=>{test('MessageRouter\x20has\x20mode\x20change\x20event\x20handler\x20registered',async()=>{const _0x183aca=a0_0x4f5f,{MessageRouter:_0x1b329d}=await import(_0x183aca(0xb9)),{WebSocketManager:_0x712a7a}=await import(_0x183aca(0xd9)),{WS_MESSAGE_TYPE:_0x31a40f}=await import(_0x183aca(0xb3)),_0x51c322=new _0x712a7a('localhost',0x1f90),_0x542240=new _0x1b329d(_0x51c322);expect(_0x542240[_0x183aca(0xcc)](_0x31a40f[_0x183aca(0xa6)]))[_0x183aca(0x9b)](!![]);});}),describe(a0_0x47ffb2(0x9a),()=>{test('AGENT_MODE\x20supports\x20toggling\x20between\x20modes',async()=>{const _0x293bbb=a0_0x4f5f,{AGENT_MODE:_0x54e360}=await import('../../config/constants.js');let _0x2f3b49=_0x54e360['CHAT'],_0x3b6a3e=_0x2f3b49===_0x54e360['CHAT']?_0x54e360[_0x293bbb(0xca)]:_0x54e360['CHAT'];expect(_0x3b6a3e)[_0x293bbb(0x9b)](_0x54e360[_0x293bbb(0xca)]),_0x2f3b49=_0x54e360['AGENT'],_0x3b6a3e=_0x2f3b49===_0x54e360[_0x293bbb(0xc3)]?_0x54e360[_0x293bbb(0xca)]:_0x54e360['CHAT'],expect(_0x3b6a3e)['toBe'](_0x54e360['CHAT']);});}),describe(a0_0x47ffb2(0xc7),()=>{const _0x42ed92=a0_0x47ffb2;test(_0x42ed92(0xbc),async()=>{const _0x1634e1=_0x42ed92,{MODEL_CATEGORY:_0x48436c}=await import('../../config/constants.js'),_0x73fb57=[{'id':_0x1634e1(0x9d),'category':_0x48436c['ANTHROPIC']},{'id':_0x1634e1(0xc2),'category':_0x48436c[_0x1634e1(0xc8)]},{'id':_0x1634e1(0xd2),'category':_0x48436c[_0x1634e1(0xa1)]}],_0x1637f5=_0x73fb57[_0x1634e1(0xb5)](_0x130b31=>_0x130b31[_0x1634e1(0xd4)]===_0x48436c['ANTHROPIC']),_0x2994bb=_0x73fb57['filter'](_0x2e84e5=>_0x2e84e5['category']===_0x48436c['OPENAI']);expect(_0x1637f5['length'])[_0x1634e1(0x9b)](0x1),expect(_0x1637f5[0x0]['id'])[_0x1634e1(0x9b)]('claude-3-5-sonnet'),expect(_0x2994bb[_0x1634e1(0x9f)])[_0x1634e1(0x9b)](0x1),expect(_0x2994bb[0x0]['id'])[_0x1634e1(0x9b)]('gpt-4');});});
@@ -1 +1 @@
1
- const a0_0x1249ed=a0_0x4e22;function a0_0x4814(){const _0x1b4696=['Dg9czurLzMLUzwq','Bg9JywXOB3n0','Dg9nyxrJAa','quDftLq','Dg9dB250ywLU','DxnLqwDLBNrZigHVB2SGAw50zwDYyxrLCYb3AxrOifnLC3nPB24Gyw5Kie1LC3nHz2vsB3v0zxi','qunusvzf','l2fWAs9Hz2vUDhmVoMfNzw50swqVBwv0ywrHDge','qwDLBNqGqvbjigvUzhbVAw50CYbHCMuGzgvMAw5Lza','ywXS','mtG2otm1mMXYwfLmwG','y3vZDg9T','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','quDftLrFu1rbvfvtignVBNn0yw50CYbHCMuGzgvMAw5Lza','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','quDftLrtx01prevFu0vu','quDftLrtx0Lnue9sva','quDftLrtx1nut1a','l2fWAs9VCMnOzxn0CMf0B3i','zgvMyxvSDa','quDftLrtx01prevFr0vu','lI4VlI4VyxbPl3nLC3nPB24UANm','l2fWAs9Hz2vUDhmVyxzHAwXHyMXL','n3j1BMjzEG','q0Hbva','Dg9czq','u1Ltvevnx0fetuLosvnuuKfut1i','oMfNzw50swq','qwDLBNqGtwfUywDLBwvUDcaTiefqssbfBMrWB2LUDhmGvMfSAwrHDgLVBG','ntaYnJm0vK9gqwzm','t3jJAgvZDhjHDg9YigvUzhbVAw50igv4Axn0CYbMB3iGywDLBNqGB3bLCMf0Aw9UCW','l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','quDftLrtx0fwquLmqujmrq','q1jfqvrjvKvFv1jjvevs','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','mtbdBKDbD2C','mJrntwnpsw0','zNvUy3rPB24','u2vZC2LVBK1HBMfNzxi','mJqXmde1BKHKrMrx','ndeWnJiYvfLwu0n3','twvZC2fNzvjVDxrLCG','zgf0ys1HBMfSExn0','otCXodbXwwnhqNa','qwDLBNqGtwfUywDLBwvUDcaTieLUDgvNCMf0Aw9U','yxjJAgL2zwq','refuqv9btKfmwvnu','mZGZotK1rePAyuf5','quDftLrtx01fvefeqvrb','rvjst1i','Cgf1C2vK','mZCYnJe3mxf3EK9cyq','lI4VlI4VC3rHDguVDxnLqwDLBNrZlMPZ','uefvu0ve','DxnLqwDLBNrZ','y3jLyxrPDMuTD3jPDgvY','zxjYB3i'];a0_0x4814=function(){return _0x1b4696;};return a0_0x4814();}function a0_0x4e22(_0x49676f,_0x1bcae6){_0x49676f=_0x49676f-0x1d2;const _0x481443=a0_0x4814();let _0x4e2215=_0x481443[_0x49676f];if(a0_0x4e22['PdAvoW']===undefined){var _0x380358=function(_0x497c20){const _0x444d66='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fd901='',_0x20b515='';for(let _0x102ecf=0x0,_0x1e2541,_0x1116b1,_0x2415ce=0x0;_0x1116b1=_0x497c20['charAt'](_0x2415ce++);~_0x1116b1&&(_0x1e2541=_0x102ecf%0x4?_0x1e2541*0x40+_0x1116b1:_0x1116b1,_0x102ecf++%0x4)?_0x1fd901+=String['fromCharCode'](0xff&_0x1e2541>>(-0x2*_0x102ecf&0x6)):0x0){_0x1116b1=_0x444d66['indexOf'](_0x1116b1);}for(let _0x1500fd=0x0,_0x498456=_0x1fd901['length'];_0x1500fd<_0x498456;_0x1500fd++){_0x20b515+='%'+('00'+_0x1fd901['charCodeAt'](_0x1500fd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20b515);};a0_0x4e22['IZhzgl']=_0x380358,a0_0x4e22['EHqucS']={},a0_0x4e22['PdAvoW']=!![];}const _0x1dca67=_0x481443[0x0],_0x588ffb=_0x49676f+_0x1dca67,_0x5480fa=a0_0x4e22['EHqucS'][_0x588ffb];return!_0x5480fa?(_0x4e2215=a0_0x4e22['IZhzgl'](_0x4e2215),a0_0x4e22['EHqucS'][_0x588ffb]=_0x4e2215):_0x4e2215=_0x5480fa,_0x4e2215;}(function(_0x1348a5,_0x244762){const _0x1930fd=a0_0x4e22,_0x4eef0b=_0x1348a5();while(!![]){try{const _0x13fabf=parseInt(_0x1930fd(0x1d7))/0x1+parseInt(_0x1930fd(0x206))/0x2+parseInt(_0x1930fd(0x1d4))/0x3*(-parseInt(_0x1930fd(0x1db))/0x4)+parseInt(_0x1930fd(0x1df))/0x5+-parseInt(_0x1930fd(0x1d8))/0x6*(parseInt(_0x1930fd(0x200))/0x7)+parseInt(_0x1930fd(0x1f3))/0x8+-parseInt(_0x1930fd(0x1e3))/0x9*(parseInt(_0x1930fd(0x1d3))/0xa);if(_0x13fabf===_0x244762)break;else _0x4eef0b['push'](_0x4eef0b['shift']());}catch(_0x4ac71d){_0x4eef0b['push'](_0x4eef0b['shift']());}}}(a0_0x4814,0x1ec20));import{describe,test,expect}from'@jest/globals';describe('Agent\x20Management\x20-\x20Imports',()=>{test('useAgents hook can be imported',async()=>{const _0x1cb5cf=a0_0x4e22,{useAgents:_0x1fd901}=await import(_0x1cb5cf(0x1e4));expect(_0x1fd901)['toBeDefined'](),expect(typeof _0x1fd901)['toBe'](_0x1cb5cf(0x1d5));}),test('useAgents is default export',async()=>{const _0x3d32e2=a0_0x4e22,module=await import(_0x3d32e2(0x1e4));expect(module[_0x3d32e2(0x1fc)])[_0x3d32e2(0x1e9)](),expect(typeof module[_0x3d32e2(0x1fc)])['toBe']('function'),expect(module[_0x3d32e2(0x1fc)])[_0x3d32e2(0x202)](module['useAgents']);});}),describe('Agent\x20Management\x20-\x20Constants',()=>{const _0x526aea=a0_0x4e22;test('AGENT_MODE\x20constants\x20are\x20defined',async()=>{const _0x392f96=a0_0x4e22,{AGENT_MODE:_0x20b515}=await import(_0x392f96(0x1d2));expect(_0x20b515)['toBeDefined'](),expect(_0x20b515['CHAT'])[_0x392f96(0x202)](_0x392f96(0x201)),expect(_0x20b515[_0x392f96(0x1ec)])[_0x392f96(0x202)]('AGENT');}),test(_0x526aea(0x1f6),async()=>{const _0x2b8586=_0x526aea,{AGENT_STATUS:_0x102ecf}=await import(_0x2b8586(0x1d2));expect(_0x102ecf)['toBeDefined'](),expect(_0x102ecf[_0x2b8586(0x1ef)])[_0x2b8586(0x202)]('active'),expect(_0x102ecf[_0x2b8586(0x1e5)])[_0x2b8586(0x202)](_0x2b8586(0x1e2)),expect(_0x102ecf['IDLE'])['toBe']('idle'),expect(_0x102ecf[_0x2b8586(0x1e1)])[_0x2b8586(0x202)](_0x2b8586(0x1e8)),expect(_0x102ecf['ARCHIVED'])['toBe'](_0x2b8586(0x1dd));}),test(_0x526aea(0x1f1),async()=>{const _0x3d6569=_0x526aea,{API_ENDPOINTS:_0x1e2541}=await import('../../config/constants.js');expect(_0x1e2541[_0x3d6569(0x209)])['toBe'](_0x3d6569(0x1ff)),expect(_0x1e2541['AGENTS_METADATA'])['toBe'](_0x3d6569(0x1f0)),expect(_0x1e2541[_0x3d6569(0x1f9)])[_0x3d6569(0x202)]('/api/agents/import'),expect(_0x1e2541[_0x3d6569(0x1f8)])[_0x3d6569(0x202)](_0x3d6569(0x208)),expect(_0x1e2541[_0x3d6569(0x1fd)])[_0x3d6569(0x202)]('/api/agents/:agentId/mode'),expect(_0x1e2541[_0x3d6569(0x1fa)])[_0x3d6569(0x202)]('/api/agents/:agentId/stop');}),test('AGENT_TEMPLATES\x20constants\x20are\x20defined',async()=>{const _0x437c74=_0x526aea,{AGENT_TEMPLATES:_0x1116b1}=await import(_0x437c74(0x1d2));expect(_0x1116b1)['toBeDefined'](),expect(_0x1116b1['CODING_ASSISTANT'])['toBe']('coding-assistant'),expect(_0x1116b1[_0x437c74(0x1de)])[_0x437c74(0x202)](_0x437c74(0x1da)),expect(_0x1116b1[_0x437c74(0x20a)])['toBe'](_0x437c74(0x1e7)),expect(_0x1116b1[_0x437c74(0x203)])[_0x437c74(0x202)]('system-administrator'),expect(_0x1116b1['CUSTOM'])['toBe'](_0x437c74(0x1f4));});}),describe(a0_0x1249ed(0x1dc),()=>{const _0x2de591=a0_0x1249ed;test(_0x2de591(0x1ee),async()=>{const _0x28276c=_0x2de591,{useAgents:_0x2415ce}=await import('../../state/useAgents.js'),{SessionManager:_0x1500fd}=await import(_0x28276c(0x1fe)),{MessageRouter:_0x498456}=await import(_0x28276c(0x1f5)),{WebSocketManager:_0x2a0ef6}=await import(_0x28276c(0x1f7)),_0x2ab14b=new _0x1500fd(_0x28276c(0x1ea),0x1f90),_0x572fe9=new _0x2a0ef6(_0x28276c(0x1ea),0x1f90),_0x5a9b2e=new _0x498456(_0x572fe9);expect(_0x2ab14b)['toBeDefined'](),expect(_0x5a9b2e)[_0x28276c(0x1e9)](),expect(typeof _0x2415ce)[_0x28276c(0x202)](_0x28276c(0x1d5));}),test('Full agent management stack can be imported together',async()=>{const _0x37ee9a=_0x2de591,[_0x54611f,_0x3ec5aa,_0x2e68e5,_0x4669dd,_0x1fc15f]=await Promise[_0x37ee9a(0x1f2)]([import('../../config/constants.js'),import(_0x37ee9a(0x1fe)),import('../../api/websocket.js'),import(_0x37ee9a(0x1f5)),import(_0x37ee9a(0x1e4))]);expect(_0x54611f['AGENT_MODE'])['toBeDefined'](),expect(_0x3ec5aa[_0x37ee9a(0x1d6)])['toBeDefined'](),expect(_0x2e68e5['WebSocketManager'])['toBeDefined'](),expect(_0x4669dd[_0x37ee9a(0x1d9)])['toBeDefined'](),expect(_0x1fc15f[_0x37ee9a(0x1e6)])[_0x37ee9a(0x1e9)]();});}),describe(a0_0x1249ed(0x205),()=>{const _0x179db8=a0_0x1249ed;test('All\x20agent\x20endpoints\x20follow\x20RESTful\x20pattern',async()=>{const _0x53f1e5=a0_0x4e22,{API_ENDPOINTS:_0x3ad4ae}=await import('../../config/constants.js');expect(_0x3ad4ae[_0x53f1e5(0x209)])['toMatch'](/^\/api\/agents/),expect(_0x3ad4ae[_0x53f1e5(0x1e0)])[_0x53f1e5(0x1eb)](/^\/api\/agents/),expect(_0x3ad4ae[_0x53f1e5(0x1f9)])[_0x53f1e5(0x1eb)](/^\/api\/agents/),expect(_0x3ad4ae[_0x53f1e5(0x1f8)])[_0x53f1e5(0x1eb)](/^\/api\/agents/),expect(_0x3ad4ae['AGENTS_MODE_GET'])[_0x53f1e5(0x1eb)](/^\/api\/agents/),expect(_0x3ad4ae['AGENTS_STOP'])['toMatch'](/^\/api\/agents/),expect(_0x3ad4ae['AGENTS_METADATA'])[_0x53f1e5(0x1ed)](_0x53f1e5(0x204)),expect(_0x3ad4ae[_0x53f1e5(0x1f8)])[_0x53f1e5(0x1ed)](_0x53f1e5(0x204)),expect(_0x3ad4ae[_0x53f1e5(0x1fd)])['toContain'](_0x53f1e5(0x204)),expect(_0x3ad4ae['AGENTS_STOP'])[_0x53f1e5(0x1ed)](':agentId');}),test(_0x179db8(0x207),async()=>{const _0x3a3d3a=_0x179db8,{API_ENDPOINTS:_0xb4518e}=await import(_0x3a3d3a(0x1d2));expect(_0xb4518e['ORCHESTRATOR'])[_0x3a3d3a(0x1e9)](),expect(_0xb4518e['ORCHESTRATOR'])['toBe'](_0x3a3d3a(0x1fb));});});
1
+ const a0_0x479a6b=a0_0x5bed;(function(_0x34a34c,_0x4317d5){const _0x5a9301=a0_0x5bed,_0x25e792=_0x34a34c();while(!![]){try{const _0x3294d0=-parseInt(_0x5a9301(0x1b2))/0x1+-parseInt(_0x5a9301(0x1c8))/0x2+-parseInt(_0x5a9301(0x1a5))/0x3*(parseInt(_0x5a9301(0x1b3))/0x4)+-parseInt(_0x5a9301(0x1ae))/0x5+-parseInt(_0x5a9301(0x1a6))/0x6*(parseInt(_0x5a9301(0x1b4))/0x7)+parseInt(_0x5a9301(0x1c2))/0x8+parseInt(_0x5a9301(0x1c5))/0x9;if(_0x3294d0===_0x4317d5)break;else _0x25e792['push'](_0x25e792['shift']());}catch(_0x3c2f0f){_0x25e792['push'](_0x25e792['shift']());}}}(a0_0xbc27,0xec066));function a0_0x5bed(_0x5845ea,_0x5f46d1){_0x5845ea=_0x5845ea-0x1a4;const _0xbc2775=a0_0xbc27();let _0x5bed07=_0xbc2775[_0x5845ea];if(a0_0x5bed['XkjqLe']===undefined){var _0x37a08d=function(_0x45fcfb){const _0x58c529='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x530200='',_0x5b461d='';for(let _0x2edcfb=0x0,_0x2b8086,_0x55dad5,_0x3e0a58=0x0;_0x55dad5=_0x45fcfb['charAt'](_0x3e0a58++);~_0x55dad5&&(_0x2b8086=_0x2edcfb%0x4?_0x2b8086*0x40+_0x55dad5:_0x55dad5,_0x2edcfb++%0x4)?_0x530200+=String['fromCharCode'](0xff&_0x2b8086>>(-0x2*_0x2edcfb&0x6)):0x0){_0x55dad5=_0x58c529['indexOf'](_0x55dad5);}for(let _0x4c3545=0x0,_0x508873=_0x530200['length'];_0x4c3545<_0x508873;_0x4c3545++){_0x5b461d+='%'+('00'+_0x530200['charCodeAt'](_0x4c3545)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b461d);};a0_0x5bed['feJDOy']=_0x37a08d,a0_0x5bed['xVTEKc']={},a0_0x5bed['XkjqLe']=!![];}const _0x3a46c7=_0xbc2775[0x0],_0x4cb013=_0x5845ea+_0x3a46c7,_0x380c49=a0_0x5bed['xVTEKc'][_0x4cb013];return!_0x380c49?(_0x5bed07=a0_0x5bed['feJDOy'](_0x5bed07),a0_0x5bed['xVTEKc'][_0x4cb013]=_0x5bed07):_0x5bed07=_0x380c49,_0x5bed07;}import{describe,test,expect}from'@jest/globals';function a0_0xbc27(){const _0x56d6d7=['l2fWAs9VCMnOzxn0CMf0B3i','quDftLrtx0fwquLmqujmrq','u1Ltvevnx0fetuLosvnuuKfut1i','Dg9dB250ywLU','quDftLrtx01prevFr0vu','quDftLq','ntqWmdu1mKfTwuXsrq','quDftLrtx01fvefeqvrb','DxnLqwDLBNrZigHVB2SGAw50zwDYyxrLCYb3AxrOifnLC3nPB24Gyw5Kie1LC3nHz2vsB3v0zxi','ntm5mdaYodbKyMXbz2G','l2fWAs9Hz2vUDhmVyxzHAwXHyMXL','AwrSzq','mZu1nZy5mMX2tuf2CW','quDftLrFtu9ersbJB25ZDgfUDhmGyxjLigrLzMLUzwq','refuqv9btKfmwvnu','DxnLqwDLBNrZ','quDftLrtx01prevFu0vu','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','qwDLBNqGtwfUywDLBwvUDcaTieLUDgvNCMf0Aw9U','l2fWAs9Hz2vUDhmVoMfNzw50swqVC3rVCa','rvjst1i','quDftLrtx0Lnue9sva','q0Hbva','C3LZDgvTlwfKBwLUAxn0CMf0B3i','yxjJAgL2zwq','y3vZDg9T','y29KAw5NlwfZC2LZDgfUDa','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','nJG0mZnNtMfVq3e','nJm5mhnpswLIEG','lI4VlI4VC3rHDguVDxnLqwDLBNrZlMPZ','l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','Cgf1C2vK','lI4VlI4VyxbPl3nLC3nPB24UANm','v2vIu29JA2v0twfUywDLCG','Dg9czurLzMLUzwq','q1vtve9n','mZK5mJGXnvHOEvPstW','qwDLBNqGtwfUywDLBwvUDcaTieLTCg9YDhm','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','oMfNzw50swq','mtyXnJm4mfbyzwHeDW','mtG4C1H2Cgfm','mJGZnwnVBufsyq','ywXS','zNvUy3rPB24','Dg9czq','quDftLrFvevnueXbvevtignVBNn0yw50CYbHCMuGzgvMAw5Lza','zxjYB3i','uefvu0ve','Dg9nyxrJAa'];a0_0xbc27=function(){return _0x56d6d7;};return a0_0xbc27();}describe(a0_0x479a6b(0x1af),()=>{test('useAgents hook can be imported',async()=>{const _0x143b10=a0_0x5bed,{useAgents:_0x530200}=await import(_0x143b10(0x1a7));expect(_0x530200)['toBeDefined'](),expect(typeof _0x530200)[_0x143b10(0x1b7)]('function');}),test('useAgents is default export',async()=>{const _0x4593e8=a0_0x5bed,module=await import(_0x4593e8(0x1a7));expect(module['default'])['toBeDefined'](),expect(typeof module['default'])['toBe'](_0x4593e8(0x1b6)),expect(module['default'])[_0x4593e8(0x1b7)](module[_0x4593e8(0x1cb)]);});}),describe('Agent\x20Management\x20-\x20Constants',()=>{const _0x193611=a0_0x479a6b;test(_0x193611(0x1c9),async()=>{const _0x36ba25=_0x193611,{AGENT_MODE:_0x5b461d}=await import(_0x36ba25(0x1b0));expect(_0x5b461d)[_0x36ba25(0x1ac)](),expect(_0x5b461d[_0x36ba25(0x1d2)])['toBe']('CHAT'),expect(_0x5b461d['AGENT'])['toBe'](_0x36ba25(0x1c1));}),test('AGENT_STATUS\x20constants\x20are\x20defined',async()=>{const _0x477e88=_0x193611,{AGENT_STATUS:_0x2edcfb}=await import(_0x477e88(0x1b0));expect(_0x2edcfb)['toBeDefined'](),expect(_0x2edcfb['ACTIVE'])['toBe']('active'),expect(_0x2edcfb[_0x477e88(0x1ba)])['toBe'](_0x477e88(0x1a9)),expect(_0x2edcfb['IDLE'])['toBe'](_0x477e88(0x1c7)),expect(_0x2edcfb[_0x477e88(0x1d0)])[_0x477e88(0x1b7)](_0x477e88(0x1b9)),expect(_0x2edcfb['ARCHIVED'])['toBe'](_0x477e88(0x1d4));}),test('Agent\x20API\x20endpoints\x20are\x20defined',async()=>{const _0x2b68be=_0x193611,{API_ENDPOINTS:_0x2b8086}=await import(_0x2b68be(0x1b0));expect(_0x2b8086[_0x2b68be(0x1bd)])[_0x2b68be(0x1b7)](_0x2b68be(0x1c6)),expect(_0x2b8086['AGENTS_METADATA'])['toBe']('/api/agents/:agentId/metadata'),expect(_0x2b8086[_0x2b68be(0x1d1)])[_0x2b68be(0x1b7)]('/api/agents/import'),expect(_0x2b8086['AGENTS_MODE_SET'])['toBe'](_0x2b68be(0x1a8)),expect(_0x2b8086[_0x2b68be(0x1c0)])['toBe']('/api/agents/:agentId/mode'),expect(_0x2b8086['AGENTS_STOP'])[_0x2b68be(0x1b7)](_0x2b68be(0x1cf));}),test(_0x193611(0x1b8),async()=>{const _0x4283ff=_0x193611,{AGENT_TEMPLATES:_0x55dad5}=await import(_0x4283ff(0x1b0));expect(_0x55dad5)[_0x4283ff(0x1ac)](),expect(_0x55dad5['CODING_ASSISTANT'])['toBe'](_0x4283ff(0x1d6)),expect(_0x55dad5[_0x4283ff(0x1ca)])[_0x4283ff(0x1b7)]('data-analyst'),expect(_0x55dad5['CREATIVE_WRITER'])[_0x4283ff(0x1b7)]('creative-writer'),expect(_0x55dad5[_0x4283ff(0x1be)])['toBe'](_0x4283ff(0x1d3)),expect(_0x55dad5[_0x4283ff(0x1ad)])[_0x4283ff(0x1b7)](_0x4283ff(0x1d5));});}),describe(a0_0x479a6b(0x1ce),()=>{const _0x4b0115=a0_0x479a6b;test(_0x4b0115(0x1c4),async()=>{const _0x4e8780=_0x4b0115,{useAgents:_0x3e0a58}=await import('../../state/useAgents.js'),{SessionManager:_0x4c3545}=await import(_0x4e8780(0x1aa)),{MessageRouter:_0x508873}=await import(_0x4e8780(0x1cd)),{WebSocketManager:_0x3b09a3}=await import('../../api/websocket.js'),_0x49faff=new _0x4c3545('localhost',0x1f90),_0x13d6d0=new _0x3b09a3('localhost',0x1f90),_0x578d66=new _0x508873(_0x13d6d0);expect(_0x49faff)['toBeDefined'](),expect(_0x578d66)[_0x4e8780(0x1ac)](),expect(typeof _0x3e0a58)['toBe']('function');}),test('Full agent management stack can be imported together',async()=>{const _0xff64d6=_0x4b0115,[_0x20e84a,_0x2ff8a4,_0x1ed004,_0x1f60d8,_0x15c05e]=await Promise[_0xff64d6(0x1b5)]([import(_0xff64d6(0x1b0)),import(_0xff64d6(0x1aa)),import(_0xff64d6(0x1a4)),import(_0xff64d6(0x1cd)),import('../../state/useAgents.js')]);expect(_0x20e84a['AGENT_MODE'])['toBeDefined'](),expect(_0x2ff8a4['SessionManager'])['toBeDefined'](),expect(_0x1ed004[_0xff64d6(0x1ab)])[_0xff64d6(0x1ac)](),expect(_0x1f60d8['MessageRouter'])['toBeDefined'](),expect(_0x15c05e[_0xff64d6(0x1cb)])['toBeDefined']();});}),describe('Agent\x20Management\x20-\x20API\x20Endpoints\x20Validation',()=>{test('All\x20agent\x20endpoints\x20follow\x20RESTful\x20pattern',async()=>{const _0xe9a396=a0_0x5bed,{API_ENDPOINTS:_0x5b276f}=await import(_0xe9a396(0x1b0));expect(_0x5b276f[_0xe9a396(0x1bd)])['toMatch'](/^\/api\/agents/),expect(_0x5b276f[_0xe9a396(0x1c3)])['toMatch'](/^\/api\/agents/),expect(_0x5b276f[_0xe9a396(0x1d1)])[_0xe9a396(0x1bb)](/^\/api\/agents/),expect(_0x5b276f['AGENTS_MODE_SET'])['toMatch'](/^\/api\/agents/),expect(_0x5b276f[_0xe9a396(0x1c0)])['toMatch'](/^\/api\/agents/),expect(_0x5b276f['AGENTS_STOP'])[_0xe9a396(0x1bb)](/^\/api\/agents/),expect(_0x5b276f[_0xe9a396(0x1c3)])['toContain'](_0xe9a396(0x1b1)),expect(_0x5b276f[_0xe9a396(0x1cc)])[_0xe9a396(0x1bf)](_0xe9a396(0x1b1)),expect(_0x5b276f['AGENTS_MODE_GET'])[_0xe9a396(0x1bf)](_0xe9a396(0x1b1)),expect(_0x5b276f['AGENTS_STOP'])[_0xe9a396(0x1bf)](_0xe9a396(0x1b1));}),test('Orchestrator\x20endpoint\x20exists\x20for\x20agent\x20operations',async()=>{const _0x2ef2e2=a0_0x5bed,{API_ENDPOINTS:_0x424886}=await import('../../config/constants.js');expect(_0x424886['ORCHESTRATOR'])['toBeDefined'](),expect(_0x424886['ORCHESTRATOR'])[_0x2ef2e2(0x1b7)](_0x2ef2e2(0x1bc));});});
@@ -1 +1 @@
1
- function a0_0x1611(_0x2d50db,_0x562968){_0x2d50db=_0x2d50db-0x15b;const _0x1ee0c6=a0_0x1ee0();let _0x161124=_0x1ee0c6[_0x2d50db];if(a0_0x1611['xZhmjG']===undefined){var _0x1c2869=function(_0x5dc152){const _0x575820='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x321f7e='',_0x384451='';for(let _0xa19f3f=0x0,_0x465f29,_0x2ef8cf,_0x3ff04f=0x0;_0x2ef8cf=_0x5dc152['charAt'](_0x3ff04f++);~_0x2ef8cf&&(_0x465f29=_0xa19f3f%0x4?_0x465f29*0x40+_0x2ef8cf:_0x2ef8cf,_0xa19f3f++%0x4)?_0x321f7e+=String['fromCharCode'](0xff&_0x465f29>>(-0x2*_0xa19f3f&0x6)):0x0){_0x2ef8cf=_0x575820['indexOf'](_0x2ef8cf);}for(let _0x187072=0x0,_0x5cf68b=_0x321f7e['length'];_0x187072<_0x5cf68b;_0x187072++){_0x384451+='%'+('00'+_0x321f7e['charCodeAt'](_0x187072)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x384451);};a0_0x1611['MyuRUW']=_0x1c2869,a0_0x1611['rtbgxL']={},a0_0x1611['xZhmjG']=!![];}const _0x8160c4=_0x1ee0c6[0x0],_0x30cb17=_0x2d50db+_0x8160c4,_0xfcacb0=a0_0x1611['rtbgxL'][_0x30cb17];return!_0xfcacb0?(_0x161124=a0_0x1611['MyuRUW'](_0x161124),a0_0x1611['rtbgxL'][_0x30cb17]=_0x161124):_0x161124=_0xfcacb0,_0x161124;}const a0_0x160edf=a0_0x1611;(function(_0x422f97,_0xf43ae7){const _0x2173ab=a0_0x1611,_0x93ebca=_0x422f97();while(!![]){try{const _0x588b51=-parseInt(_0x2173ab(0x15d))/0x1*(-parseInt(_0x2173ab(0x15c))/0x2)+-parseInt(_0x2173ab(0x171))/0x3*(parseInt(_0x2173ab(0x169))/0x4)+-parseInt(_0x2173ab(0x174))/0x5+parseInt(_0x2173ab(0x164))/0x6*(-parseInt(_0x2173ab(0x16e))/0x7)+parseInt(_0x2173ab(0x176))/0x8+-parseInt(_0x2173ab(0x166))/0x9*(parseInt(_0x2173ab(0x16a))/0xa)+parseInt(_0x2173ab(0x165))/0xb;if(_0x588b51===_0xf43ae7)break;else _0x93ebca['push'](_0x93ebca['shift']());}catch(_0x59c981){_0x93ebca['push'](_0x93ebca['shift']());}}}(a0_0x1ee0,0x252e8));function a0_0x1ee0(){const _0x2c64d2=['lI4VlI4Vy29TCg9Uzw50CY9izwfKzxiUANm','lI4VlI4VC3rHDguVDxnLvg9VBhmUANm','sw5WDxrcB3G','nJuXnJn3t1rTAMO','tgf5B3v0','DxnLu3rHDgu','mte3m2D1y3jhza','Dg9czq','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbjBxbVCNrZ','nZi2ote1y25qzxj3','zNvUy3rPB24','mJiZmZi4wwDREurN','lI4VlI4Vy29TCg9Uzw50CY9tDgf0DxncyxiUANm','Dg9czurLzMLUzwq','mZi2ndq0vKnsvuPH','mwX3Aev0tG','lI4VlI4Vy29TCg9Uzw50CY9nzxnZywDLtgLZDc5QCW','u3rHDhvZqMfY','lI4VlI4VC3rHDguVDxnLqwDLBNrdB250CM9SlMPZ','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','sgvHzgvY','twvZC2fNzuXPC3q','nM11vwzcrG','mJu4otq1nxj6vgneuW','owvhA0rvzq','zgvMyxvSDa','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','mZzSqMPbu0C','mte2mdm2merfvNrgsa'];a0_0x1ee0=function(){return _0x2c64d2;};return a0_0x1ee0();}import{describe,test,expect}from'@jest/globals';describe(a0_0x160edf(0x173),()=>{test('Layout component can be imported',async()=>{const _0x3d158a=a0_0x1611,{Layout:_0x321f7e}=await import('../../components/Layout.js');expect(_0x321f7e)['toBeDefined'](),expect(typeof _0x321f7e)[_0x3d158a(0x172)](_0x3d158a(0x175));}),test('Layout is default export',async()=>{const _0x4deebd=a0_0x1611,module=await import(_0x4deebd(0x168));expect(module[_0x4deebd(0x167)])['toBeDefined'](),expect(typeof module['default'])['toBe'](_0x4deebd(0x175)),expect(module['default'])['toBe'](module[_0x4deebd(0x16f)]);}),test('Header component can be imported',async()=>{const _0x4a605d=a0_0x1611,{Header:_0x384451}=await import(_0x4a605d(0x16b));expect(_0x384451)[_0x4a605d(0x15b)](),expect(typeof _0x384451)[_0x4a605d(0x172)](_0x4a605d(0x175));}),test('Header is default export',async()=>{const _0x55285d=a0_0x1611,module=await import('../../components/Header.js');expect(module['default'])['toBeDefined'](),expect(module[_0x55285d(0x167)])['toBe'](module[_0x55285d(0x162)]);}),test('StatusBar component can be imported',async()=>{const {StatusBar:_0xa19f3f}=await import('../../components/StatusBar.js');expect(_0xa19f3f)['toBeDefined'](),expect(typeof _0xa19f3f)['toBe']('function');}),test('StatusBar is default export',async()=>{const _0x266f1c=a0_0x1611,module=await import(_0x266f1c(0x177));expect(module[_0x266f1c(0x167)])['toBeDefined'](),expect(module['default'])[_0x266f1c(0x172)](module[_0x266f1c(0x15f)]);}),test('MessageList component can be imported',async()=>{const _0x32dcec=a0_0x1611,{MessageList:_0x465f29}=await import(_0x32dcec(0x15e));expect(_0x465f29)[_0x32dcec(0x15b)](),expect(typeof _0x465f29)['toBe']('function');}),test('MessageList is default export',async()=>{const _0x26e8bb=a0_0x1611,module=await import(_0x26e8bb(0x15e));expect(module[_0x26e8bb(0x167)])[_0x26e8bb(0x15b)](),expect(module[_0x26e8bb(0x167)])[_0x26e8bb(0x172)](module[_0x26e8bb(0x163)]);}),test('InputBox component can be imported',async()=>{const _0x2e7567=a0_0x1611,{InputBox:_0x2ef8cf}=await import('../../components/InputBox.js');expect(_0x2ef8cf)['toBeDefined'](),expect(typeof _0x2ef8cf)['toBe'](_0x2e7567(0x175));}),test('InputBox is default export',async()=>{const _0xe2b17f=a0_0x1611,module=await import(_0xe2b17f(0x161));expect(module['default'])[_0xe2b17f(0x15b)](),expect(module['default'])[_0xe2b17f(0x172)](module[_0xe2b17f(0x16d)]);});}),describe('Component\x20Management\x20-\x20Integration',()=>{test('All components can be imported together',async()=>{const _0x1b9859=a0_0x1611,[_0x3ff04f,_0x187072,_0x5cf68b,_0x5ed98a,_0x429888]=await Promise['all']([import('../../components/Layout.js'),import('../../components/Header.js'),import('../../components/StatusBar.js'),import('../../components/MessageList.js'),import(_0x1b9859(0x161))]);expect(_0x3ff04f[_0x1b9859(0x16f)])['toBeDefined'](),expect(_0x187072[_0x1b9859(0x162)])['toBeDefined'](),expect(_0x5cf68b[_0x1b9859(0x15f)])[_0x1b9859(0x15b)](),expect(_0x5ed98a['MessageList'])['toBeDefined'](),expect(_0x429888[_0x1b9859(0x16d)])[_0x1b9859(0x15b)]();}),test('Layout\x20component\x20integrates\x20with\x20all\x20state\x20hooks',async()=>{const _0x27cd48=a0_0x1611,{Layout:_0x68eb95}=await import(_0x27cd48(0x168)),{useConnection:_0x28a386}=await import('../../state/useConnection.js'),{useAgents:_0x1c5500}=await import('../../state/useAgents.js'),{useMessages:_0x3b32c6}=await import('../../state/useMessages.js'),{useAgentControl:_0x1d6080}=await import(_0x27cd48(0x160)),{useTools:_0x286436}=await import(_0x27cd48(0x16c));expect(_0x68eb95)['toBeDefined'](),expect(_0x28a386)['toBeDefined'](),expect(_0x1c5500)['toBeDefined'](),expect(_0x3b32c6)[_0x27cd48(0x15b)](),expect(_0x1d6080)[_0x27cd48(0x15b)](),expect(_0x286436)['toBeDefined']();});}),describe('Component\x20Management\x20-\x20React/Ink\x20Dependencies',()=>{test('Ink components can be imported',async()=>{const _0x2a2645=a0_0x1611,{Box:_0x3ce8b0,Text:_0xd952bb}=await import('ink');expect(_0x3ce8b0)[_0x2a2645(0x15b)](),expect(_0xd952bb)[_0x2a2645(0x15b)]();}),test('React can be imported',async()=>{const _0x403677=a0_0x1611,_0x32eb48=await import('react');expect(_0x32eb48['default'])['toBeDefined'](),expect(_0x32eb48[_0x403677(0x170)])['toBeDefined'](),expect(_0x32eb48['useEffect'])[_0x403677(0x15b)]();});});
1
+ const a0_0x2d460c=a0_0x9b3d;(function(_0xe8ef8d,_0x5e7fa1){const _0x51e2b3=a0_0x9b3d,_0x12d1b6=_0xe8ef8d();while(!![]){try{const _0x88ec7a=parseInt(_0x51e2b3(0x18a))/0x1*(parseInt(_0x51e2b3(0x191))/0x2)+parseInt(_0x51e2b3(0x187))/0x3*(-parseInt(_0x51e2b3(0x196))/0x4)+parseInt(_0x51e2b3(0x190))/0x5*(parseInt(_0x51e2b3(0x189))/0x6)+-parseInt(_0x51e2b3(0x188))/0x7*(-parseInt(_0x51e2b3(0x195))/0x8)+parseInt(_0x51e2b3(0x185))/0x9+-parseInt(_0x51e2b3(0x17e))/0xa*(-parseInt(_0x51e2b3(0x18b))/0xb)+-parseInt(_0x51e2b3(0x199))/0xc;if(_0x88ec7a===_0x5e7fa1)break;else _0x12d1b6['push'](_0x12d1b6['shift']());}catch(_0x5c450b){_0x12d1b6['push'](_0x12d1b6['shift']());}}}(a0_0x6234,0xc67e9));function a0_0x9b3d(_0x421c96,_0x3a97d8){_0x421c96=_0x421c96-0x17d;const _0x6234da=a0_0x6234();let _0x9b3d5c=_0x6234da[_0x421c96];if(a0_0x9b3d['CDCKjv']===undefined){var _0x536d4d=function(_0x20b84f){const _0x337edf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x181888='',_0x436e54='';for(let _0x1ee272=0x0,_0x4cec25,_0x23ce95,_0x2a9ed1=0x0;_0x23ce95=_0x20b84f['charAt'](_0x2a9ed1++);~_0x23ce95&&(_0x4cec25=_0x1ee272%0x4?_0x4cec25*0x40+_0x23ce95:_0x23ce95,_0x1ee272++%0x4)?_0x181888+=String['fromCharCode'](0xff&_0x4cec25>>(-0x2*_0x1ee272&0x6)):0x0){_0x23ce95=_0x337edf['indexOf'](_0x23ce95);}for(let _0x350333=0x0,_0x3d886c=_0x181888['length'];_0x350333<_0x3d886c;_0x350333++){_0x436e54+='%'+('00'+_0x181888['charCodeAt'](_0x350333)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x436e54);};a0_0x9b3d['LUiWTN']=_0x536d4d,a0_0x9b3d['JYkgQo']={},a0_0x9b3d['CDCKjv']=!![];}const _0x4597ef=_0x6234da[0x0],_0x400a62=_0x421c96+_0x4597ef,_0x53fb42=a0_0x9b3d['JYkgQo'][_0x400a62];return!_0x53fb42?(_0x9b3d5c=a0_0x9b3d['LUiWTN'](_0x9b3d5c),a0_0x9b3d['JYkgQo'][_0x400a62]=_0x9b3d5c):_0x9b3d5c=_0x53fb42,_0x9b3d5c;}import{describe,test,expect}from'@jest/globals';function a0_0x6234(){const _0x420a2e=['tgf5B3v0','mteWmtq2ntLerLLQBei','sw5WDxrcB3G','odqWmdaZwu5jrMLo','nduYmZrkAxrRzum','mZK2mJeXoerUywDIza','mtfSuKP1vu8','mJC1mJe2n2zbzKXYvG','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbjBNrLz3jHDgLVBG','u3rHDhvZqMfY','Dg9czurLzMLUzwq','CMvHy3q','mtbdrvzNzvy','ntm4ntr2r2jQsha','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbjBxbVCNrZ','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbszwfJDc9jBMSGrgvWzw5Kzw5JAwvZ','zNvUy3rPB24','oty4BeXiz1jv','ne5usLHUra','zgvMyxvSDa','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','mZyZnJaXotjHCujQAMW','lI4VlI4Vy29TCg9Uzw50CY9tDgf0DxncyxiUANm','mJbAwg93AKS','tgf5B3v0ignVBxbVBMvUDcbPBNrLz3jHDgvZihDPDgGGywXSihn0yxrLigHVB2TZ','sgvHzgvY','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','Dg9czq','twvZC2fNzuXPC3q'];a0_0x6234=function(){return _0x420a2e;};return a0_0x6234();}describe(a0_0x2d460c(0x192),()=>{test('Layout component can be imported',async()=>{const {Layout:_0x181888}=await import('../../components/Layout.js');expect(_0x181888)['toBeDefined'](),expect(typeof _0x181888)['toBe']('function');}),test('Layout is default export',async()=>{const _0x125458=a0_0x9b3d,module=await import('../../components/Layout.js');expect(module['default'])['toBeDefined'](),expect(typeof module['default'])[_0x125458(0x182)](_0x125458(0x194)),expect(module['default'])[_0x125458(0x182)](module[_0x125458(0x184)]);}),test('Header component can be imported',async()=>{const _0x3ed599=a0_0x9b3d,{Header:_0x436e54}=await import('../../components/Header.js');expect(_0x436e54)[_0x3ed599(0x18e)](),expect(typeof _0x436e54)[_0x3ed599(0x182)]('function');}),test('Header is default export',async()=>{const _0x9e8f1a=a0_0x9b3d,module=await import('../../components/Header.js');expect(module['default'])['toBeDefined'](),expect(module[_0x9e8f1a(0x197)])[_0x9e8f1a(0x182)](module['Header']);}),test('StatusBar component can be imported',async()=>{const _0x305ff4=a0_0x9b3d,{StatusBar:_0x1ee272}=await import(_0x305ff4(0x17d));expect(_0x1ee272)[_0x305ff4(0x18e)](),expect(typeof _0x1ee272)[_0x305ff4(0x182)]('function');}),test('StatusBar is default export',async()=>{const _0x38fdf8=a0_0x9b3d,module=await import('../../components/StatusBar.js');expect(module[_0x38fdf8(0x197)])['toBeDefined'](),expect(module['default'])['toBe'](module[_0x38fdf8(0x18d)]);}),test('MessageList component can be imported',async()=>{const _0x565274=a0_0x9b3d,{MessageList:_0x4cec25}=await import('../../components/MessageList.js');expect(_0x4cec25)[_0x565274(0x18e)](),expect(typeof _0x4cec25)[_0x565274(0x182)](_0x565274(0x194));}),test('MessageList is default export',async()=>{const _0x154d62=a0_0x9b3d,module=await import('../../components/MessageList.js');expect(module[_0x154d62(0x197)])['toBeDefined'](),expect(module['default'])[_0x154d62(0x182)](module[_0x154d62(0x183)]);}),test('InputBox component can be imported',async()=>{const _0x241bdd=a0_0x9b3d,{InputBox:_0x23ce95}=await import('../../components/InputBox.js');expect(_0x23ce95)['toBeDefined'](),expect(typeof _0x23ce95)[_0x241bdd(0x182)](_0x241bdd(0x194));}),test('InputBox is default export',async()=>{const _0x55c3da=a0_0x9b3d,module=await import(_0x55c3da(0x181));expect(module[_0x55c3da(0x197)])['toBeDefined'](),expect(module['default'])['toBe'](module[_0x55c3da(0x186)]);});}),describe(a0_0x2d460c(0x18c),()=>{const _0x3391e7=a0_0x2d460c;test('All components can be imported together',async()=>{const _0xabc45a=a0_0x9b3d,[_0x2a9ed1,_0x350333,_0x3d886c,_0x39cea1,_0x43ce6e]=await Promise['all']([import(_0xabc45a(0x198)),import('../../components/Header.js'),import('../../components/StatusBar.js'),import('../../components/MessageList.js'),import('../../components/InputBox.js')]);expect(_0x2a9ed1['Layout'])['toBeDefined'](),expect(_0x350333[_0xabc45a(0x180)])[_0xabc45a(0x18e)](),expect(_0x3d886c['StatusBar'])[_0xabc45a(0x18e)](),expect(_0x39cea1[_0xabc45a(0x183)])['toBeDefined'](),expect(_0x43ce6e['InputBox'])[_0xabc45a(0x18e)]();}),test(_0x3391e7(0x17f),async()=>{const _0x5be80c=_0x3391e7,{Layout:_0x58a25f}=await import(_0x5be80c(0x198)),{useConnection:_0x525964}=await import('../../state/useConnection.js'),{useAgents:_0x8d3a57}=await import('../../state/useAgents.js'),{useMessages:_0x51685f}=await import('../../state/useMessages.js'),{useAgentControl:_0x2bf106}=await import('../../state/useAgentControl.js'),{useTools:_0xb958b8}=await import('../../state/useTools.js');expect(_0x58a25f)['toBeDefined'](),expect(_0x525964)['toBeDefined'](),expect(_0x8d3a57)[_0x5be80c(0x18e)](),expect(_0x51685f)['toBeDefined'](),expect(_0x2bf106)[_0x5be80c(0x18e)](),expect(_0xb958b8)[_0x5be80c(0x18e)]();});}),describe(a0_0x2d460c(0x193),()=>{test('Ink components can be imported',async()=>{const _0x207b58=a0_0x9b3d,{Box:_0x493e22,Text:_0xf6ebef}=await import('ink');expect(_0x493e22)['toBeDefined'](),expect(_0xf6ebef)[_0x207b58(0x18e)]();}),test('React can be imported',async()=>{const _0x30efdf=a0_0x9b3d,_0x51db25=await import(_0x30efdf(0x18f));expect(_0x51db25[_0x30efdf(0x197)])[_0x30efdf(0x18e)](),expect(_0x51db25['useState'])[_0x30efdf(0x18e)](),expect(_0x51db25['useEffect'])[_0x30efdf(0x18e)]();});});
@@ -1 +1 @@
1
- const a0_0x3bc744=a0_0x2d42;function a0_0x5d2e(){const _0x3ceea8=['C3rHDhvZ','ndK2nhfUtefuvW','uKvdt05orunux0nptKzjrW','mtbHB1PTzuy','q29UBMvJDgLVBIbZDgf0DxmGDhjHBNnPDgLVBNmGzM9SBg93ihzHBgLKigzSB3C','Bg9JywXOB3n0','mtqZmtu2r0XTsu5J','reLtq09otKvdveve','q09otKvdveve','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gq29UBMvJDgLVBIbjBMzV','mtu3nNjzvw51sW','Dg9czuDYzwf0zxjuAgfUt3jfCxvHBa','Dg9czurLzMLUzwq','tufyx0rftefz','mteZmtHtrKrsz0K','nJa2odrArKjUBhi','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','mtK0odaXmgTRBuTRwa','Dg9mB3DLCKnHC2u','qKfds09grL9nvuXusvbmsuvs','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0GrxHWB25LBNrPywWGqMfJA29MzIbmB2DPyW','DxnLq29UBMvJDgLVBG','ody5nhb2uwnfAa','uKvdt05orunux0nptKzjrYbJB25ZDgfUDhmGyxjLigrLzMLUzwq','uKvdt05orunusu5h','BM93','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gu2vZC2LVBIbtDgf0zq','su5jveLbtf9eruXbwq','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gv2vIu29JA2v0iev2zw50ieLUDgvNCMf0Aw9U','mJe1rxDOEunN','zgLZy29UBMvJDgvK','C3rYAw5N','Dg9czq','BgvUz3rO','q29UBMvJDgLVBIb1ChrPBwuGy2fUigjLihrYywnRzwq','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsw1WB3j0CW','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gq29UBMvJDgLVBIbnzxrYAwnZ','nJm2v29Ovgft','DgvZDc1ZzxnZAw9UlteYmW','y29UBMvJDgvK','zNvUy3rPB24','Dg9czuDYzwf0zxjuAgfU','mZeYndC3meXUB0rUEa','q09otKvdveLptL9tvefuvvmGDMfSDwvZigfYzsbSB3DLCMnHC2uGC3rYAw5NCW','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','Dg9czuXLC3nuAgfUt3jfCxvHBa','ywXS','mtHUwer5txG','tufyx0fuvevnufrt','zgvMyxvSDa','q09otKvdveLptL9tvefuvvmGAxmGywXPyxmGzM9YienptK5fq1rjt05Fu1rbveu','y29UBMvJDgLUzW','ndq0s3Hvzu15','q09otKvdveLorW','Dxb0Aw1L','uMvJB25Uzwn0Aw9Uigf0DgvTChrZignHBIbIzsb0CMfJA2vK','v2vIu29JA2v0twfUywDLCG'];a0_0x5d2e=function(){return _0x3ceea8;};return a0_0x5d2e();}(function(_0x23a548,_0xfe6053){const _0x508dd3=a0_0x2d42,_0x2c872f=_0x23a548();while(!![]){try{const _0x5a310d=parseInt(_0x508dd3(0xb3))/0x1*(-parseInt(_0x508dd3(0xbe))/0x2)+-parseInt(_0x508dd3(0xe5))/0x3*(parseInt(_0x508dd3(0xb1))/0x4)+parseInt(_0x508dd3(0xce))/0x5*(-parseInt(_0x508dd3(0xbf))/0x6)+-parseInt(_0x508dd3(0xc7))/0x7*(parseInt(_0x508dd3(0xba))/0x8)+parseInt(_0x508dd3(0xe0))/0x9*(parseInt(_0x508dd3(0xc2))/0xa)+parseInt(_0x508dd3(0xdb))/0xb+-parseInt(_0x508dd3(0xd6))/0xc*(-parseInt(_0x508dd3(0xb6))/0xd);if(_0x5a310d===_0xfe6053)break;else _0x2c872f['push'](_0x2c872f['shift']());}catch(_0x28d68b){_0x2c872f['push'](_0x2c872f['shift']());}}}(a0_0x5d2e,0x52642));import{describe,test,expect}from'@jest/globals';function a0_0x2d42(_0x273534,_0x404626){_0x273534=_0x273534-0xac;const _0x5d2e06=a0_0x5d2e();let _0x2d426d=_0x5d2e06[_0x273534];if(a0_0x2d42['XXxFLm']===undefined){var _0x501415=function(_0x34b2bb){const _0x3c25e0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xb32db0='',_0x5b14ef='';for(let _0x5c8131=0x0,_0x462171,_0x408686,_0x35cdfe=0x0;_0x408686=_0x34b2bb['charAt'](_0x35cdfe++);~_0x408686&&(_0x462171=_0x5c8131%0x4?_0x462171*0x40+_0x408686:_0x408686,_0x5c8131++%0x4)?_0xb32db0+=String['fromCharCode'](0xff&_0x462171>>(-0x2*_0x5c8131&0x6)):0x0){_0x408686=_0x3c25e0['indexOf'](_0x408686);}for(let _0x4779e6=0x0,_0x17fa74=_0xb32db0['length'];_0x4779e6<_0x17fa74;_0x4779e6++){_0x5b14ef+='%'+('00'+_0xb32db0['charCodeAt'](_0x4779e6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b14ef);};a0_0x2d42['umrplQ']=_0x501415,a0_0x2d42['XJBHkk']={},a0_0x2d42['XXxFLm']=!![];}const _0x10c0e2=_0x5d2e06[0x0],_0x4f5161=_0x273534+_0x10c0e2,_0x2b3294=a0_0x2d42['XJBHkk'][_0x4f5161];return!_0x2b3294?(_0x2d426d=a0_0x2d42['umrplQ'](_0x2d426d),a0_0x2d42['XJBHkk'][_0x4f5161]=_0x2d426d):_0x2d426d=_0x2b3294,_0x2d426d;}describe(a0_0x3bc744(0xd4),()=>{test('useConnection hook can be imported',async()=>{const {useConnection:_0xb32db0}=await import('../../state/useConnection.js');expect(_0xb32db0)['toBeDefined'](),expect(typeof _0xb32db0)['toBe']('function');}),test('useConnection is default export',async()=>{const _0x16b81d=a0_0x2d42,module=await import('../../state/useConnection.js');expect(module[_0x16b81d(0xe2)])[_0x16b81d(0xbc)](),expect(typeof module[_0x16b81d(0xe2)])['toBe']('function'),expect(module[_0x16b81d(0xe2)])[_0x16b81d(0xd1)](module['useConnection']);});}),describe('Connection\x20Management\x20-\x20Constants',()=>{const _0x3cafc6=a0_0x3bc744;test('CONNECTION_STATUS\x20constants\x20are\x20defined',async()=>{const _0x539890=a0_0x2d42,{CONNECTION_STATUS:_0x5b14ef}=await import(_0x539890(0xc0));expect(_0x5b14ef)[_0x539890(0xbc)](),expect(_0x5b14ef['CONNECTING'])[_0x539890(0xd1)](_0x539890(0xe4)),expect(_0x5b14ef['CONNECTED'])[_0x539890(0xd1)](_0x539890(0xd8)),expect(_0x5b14ef[_0x539890(0xb7)])[_0x539890(0xd1)](_0x539890(0xcf)),expect(_0x5b14ef[_0x539890(0xc9)])[_0x539890(0xd1)]('reconnecting');}),test(_0x3cafc6(0xe3),async()=>{const _0x597753=_0x3cafc6,{CONNECTION_STATUS:_0x5c8131,CONNECTION_STATE:_0x462171}=await import(_0x597753(0xc0));expect(_0x5c8131)[_0x597753(0xd1)](_0x462171);}),test(_0x3cafc6(0xc8),async()=>{const _0x856fe=_0x3cafc6,{RECONNECT_CONFIG:_0x408686}=await import('../../config/constants.js');expect(_0x408686)[_0x856fe(0xbc)](),expect(_0x408686[_0x856fe(0xcc)])['toBeDefined'](),expect(_0x408686['MAX_DELAY'])[_0x856fe(0xbc)](),expect(_0x408686[_0x856fe(0xc4)])[_0x856fe(0xbc)](),expect(_0x408686['MAX_ATTEMPTS'])[_0x856fe(0xbc)]();}),test('RECONNECT_CONFIG\x20values\x20are\x20reasonable',async()=>{const _0x4a708e=_0x3cafc6,{RECONNECT_CONFIG:_0x35cdfe}=await import(_0x4a708e(0xc0));expect(_0x35cdfe['INITIAL_DELAY'])['toBeGreaterThan'](0x0),expect(_0x35cdfe[_0x4a708e(0xbd)])[_0x4a708e(0xda)](_0x35cdfe['INITIAL_DELAY']),expect(_0x35cdfe['BACKOFF_MULTIPLIER'])[_0x4a708e(0xda)](0x1),expect(_0x35cdfe['MAX_ATTEMPTS'])['toBeGreaterThan'](0x0);});}),describe('Connection\x20Management\x20-\x20Integration',()=>{test('useConnection\x20hook\x20integrates\x20with\x20SessionManager\x20and\x20WebSocketManager',async()=>{const _0x368394=a0_0x2d42,{useConnection:_0x4779e6}=await import(_0x368394(0xdd)),{SessionManager:_0x17fa74}=await import('../../api/session.js'),{WebSocketManager:_0x41bea8}=await import(_0x368394(0xc1)),_0x2170ca=new _0x17fa74(_0x368394(0xb5),0x1f90),_0x8f59aa=new _0x41bea8(_0x368394(0xb5),0x1f90);expect(_0x2170ca)[_0x368394(0xbc)](),expect(_0x8f59aa)['toBeDefined'](),expect(typeof _0x4779e6)[_0x368394(0xd1)](_0x368394(0xd9));}),test('Full connection stack can be imported together',async()=>{const _0x3abbca=a0_0x2d42,[_0x161674,_0x22eb02,_0x4e0b76,_0x3d8fb6]=await Promise[_0x3abbca(0xdf)]([import('../../config/constants.js'),import('../../api/session.js'),import('../../api/websocket.js'),import(_0x3abbca(0xdd))]);expect(_0x161674['CONNECTION_STATUS'])[_0x3abbca(0xbc)](),expect(_0x161674[_0x3abbca(0xb2)])[_0x3abbca(0xbc)](),expect(_0x22eb02['SessionManager'])[_0x3abbca(0xbc)](),expect(_0x4e0b76[_0x3abbca(0xaf)])[_0x3abbca(0xbc)](),expect(_0x3d8fb6[_0x3abbca(0xc6)])['toBeDefined']();});}),describe('Connection\x20Management\x20-\x20Hook\x20Interface\x20Verification',()=>{test('useConnection\x20returns\x20expected\x20interface\x20shape',async()=>{const _0x360fef=a0_0x2d42,{useConnection:_0x1c1011}=await import(_0x360fef(0xdd));expect(_0x1c1011[_0x360fef(0xd2)])[_0x360fef(0xd1)](0x2);});}),describe('Connection\x20Management\x20-\x20Status\x20Values',()=>{const _0x1d7b18=a0_0x3bc744;test(_0x1d7b18(0xdc),async()=>{const _0x53e61c=_0x1d7b18,{CONNECTION_STATUS:_0x4f55f8}=await import('../../config/constants.js');expect(typeof _0x4f55f8[_0x53e61c(0xac)])[_0x53e61c(0xd1)](_0x53e61c(0xd0)),expect(typeof _0x4f55f8[_0x53e61c(0xb8)])['toBe'](_0x53e61c(0xd0)),expect(typeof _0x4f55f8[_0x53e61c(0xb7)])[_0x53e61c(0xd1)](_0x53e61c(0xd0)),expect(typeof _0x4f55f8['RECONNECTING'])[_0x53e61c(0xd1)]('string'),expect(_0x4f55f8['CONNECTING'])['toBe'](_0x4f55f8['CONNECTING']['toLowerCase']()),expect(_0x4f55f8['CONNECTED'])['toBe'](_0x4f55f8['CONNECTED'][_0x53e61c(0xc3)]());}),test('CONNECTION_STATUS\x20has\x20all\x20required\x20states',async()=>{const _0x4babbd=_0x1d7b18,{CONNECTION_STATUS:_0x13d4be}=await import(_0x4babbd(0xc0)),_0xcfc0ef=Object['keys'](_0x13d4be);expect(_0xcfc0ef)['toContain']('CONNECTING'),expect(_0xcfc0ef)['toContain'](_0x4babbd(0xb8)),expect(_0xcfc0ef)['toContain'](_0x4babbd(0xb7)),expect(_0xcfc0ef)['toContain'](_0x4babbd(0xc9));});}),describe(a0_0x3bc744(0xc5),()=>{test('Exponential\x20backoff\x20delay\x20calculation\x20works\x20correctly',async()=>{const _0x145b7d=a0_0x2d42,{RECONNECT_CONFIG:_0x3f0b49}=await import('../../config/constants.js'),_0x28d667=_0x42a936=>{const _0x1fad09=a0_0x2d42;return Math['min'](_0x3f0b49['INITIAL_DELAY']*Math['pow'](_0x3f0b49['BACKOFF_MULTIPLIER'],_0x42a936),_0x3f0b49[_0x1fad09(0xbd)]);},_0x5accdc=_0x28d667(0x0),_0x26ccc6=_0x28d667(0x1),_0x5c0842=_0x28d667(0x2);expect(_0x5accdc)[_0x145b7d(0xd1)](_0x3f0b49['INITIAL_DELAY']),expect(_0x26ccc6)[_0x145b7d(0xda)](_0x5accdc),expect(_0x5c0842)['toBeGreaterThan'](_0x26ccc6);}),test('Exponential\x20backoff\x20respects\x20max\x20delay',async()=>{const _0x214113=a0_0x2d42,{RECONNECT_CONFIG:_0x314c9f}=await import('../../config/constants.js'),_0x200b57=_0xdd3ed0=>{return Math['min'](_0x314c9f['INITIAL_DELAY']*Math['pow'](_0x314c9f['BACKOFF_MULTIPLIER'],_0xdd3ed0),_0x314c9f['MAX_DELAY']);},_0x1fafa8=_0x200b57(0x64);expect(_0x1fafa8)['toBe'](_0x314c9f[_0x214113(0xbd)]),expect(_0x1fafa8)[_0x214113(0xde)](_0x314c9f['MAX_DELAY']);});}),describe(a0_0x3bc744(0xcb),()=>{test('Session\x20state\x20should\x20track\x20validity',async()=>{const _0x171b59=a0_0x2d42;let _0x3ae11c=null,_0x3818a9=![],_0x284f01=null;_0x3ae11c='test-session-123',_0x3818a9=!![],_0x284f01=Date['now']()+0x36ee80,expect(_0x3ae11c)[_0x171b59(0xbc)](),expect(_0x3818a9)['toBe'](!![]),expect(_0x284f01)['toBeGreaterThan'](Date['now']());}),test('Session\x20state\x20should\x20invalidate',async()=>{const _0x38a6f5=a0_0x2d42;let _0x4d9ed9=_0x38a6f5(0xd7),_0x5d66ed=!![];_0x4d9ed9=null,_0x5d66ed=![],expect(_0x4d9ed9)['toBeNull'](),expect(_0x5d66ed)[_0x38a6f5(0xd1)](![]);});}),describe(a0_0x3bc744(0xd5),()=>{const _0x59291d=a0_0x3bc744;test(_0x59291d(0xd3),async()=>{const _0x3142c4=_0x59291d,_0x1bb2f9=Date[_0x3142c4(0xca)]();await new Promise(_0x438745=>setTimeout(_0x438745,0x64));const _0x28e6c9=Date[_0x3142c4(0xca)]()-_0x1bb2f9;expect(_0x28e6c9)[_0x3142c4(0xda)](0x0),expect(_0x28e6c9)[_0x3142c4(0xbb)](0x64);}),test('Connection\x20metrics\x20track\x20timestamps',async()=>{const _0x17b452=_0x59291d,_0x1e5631=Date[_0x17b452(0xca)]();await new Promise(_0x43294e=>setTimeout(_0x43294e,0x32));const _0xd2000d=Date[_0x17b452(0xca)]();expect(_0x1e5631)['toBeDefined'](),expect(_0xd2000d)[_0x17b452(0xbc)](),expect(_0xd2000d)['toBeGreaterThan'](_0x1e5631);}),test(_0x59291d(0xae),async()=>{const _0x222215=_0x59291d;let _0x3d1c74=0x0;_0x3d1c74+=0x1,expect(_0x3d1c74)['toBe'](0x1),_0x3d1c74+=0x1,expect(_0x3d1c74)[_0x222215(0xd1)](0x2),_0x3d1c74=0x0,expect(_0x3d1c74)[_0x222215(0xd1)](0x0);});}),describe('Connection\x20Management\x20-\x20Connection\x20Status\x20Transitions',()=>{const _0x2d70c4=a0_0x3bc744;test(_0x2d70c4(0xb4),async()=>{const _0x47ef6c=_0x2d70c4,{CONNECTION_STATUS:_0x18be9c}=await import('../../config/constants.js');let _0x25a615=_0x18be9c[_0x47ef6c(0xb7)];expect(_0x25a615)['toBe'](_0x47ef6c(0xcf)),_0x25a615=_0x18be9c['CONNECTING'],expect(_0x25a615)['toBe']('connecting'),_0x25a615=_0x18be9c[_0x47ef6c(0xb8)],expect(_0x25a615)['toBe'](_0x47ef6c(0xd8)),_0x25a615=_0x18be9c[_0x47ef6c(0xb7)],expect(_0x25a615)['toBe'](_0x47ef6c(0xcf)),_0x25a615=_0x18be9c[_0x47ef6c(0xc9)],expect(_0x25a615)[_0x47ef6c(0xd1)]('reconnecting'),_0x25a615=_0x18be9c['CONNECTED'],expect(_0x25a615)[_0x47ef6c(0xd1)](_0x47ef6c(0xd8));});}),describe(a0_0x3bc744(0xcd),()=>{test('WebSocketManager\x20has\x20event\x20emitter\x20methods',async()=>{const _0x5627b1=a0_0x2d42,{WebSocketManager:_0x3e598e}=await import('../../api/websocket.js'),_0x272e00=new _0x3e598e(_0x5627b1(0xb5),0x1f90);expect(_0x272e00['on'])[_0x5627b1(0xbc)](),expect(_0x272e00['off'])[_0x5627b1(0xbc)](),expect(typeof _0x272e00['on'])[_0x5627b1(0xd1)](_0x5627b1(0xd9)),expect(typeof _0x272e00['off'])[_0x5627b1(0xd1)]('function');});}),describe('Connection\x20Management\x20-\x20Max\x20Attempts\x20Limit',()=>{test('Reconnection\x20should\x20stop\x20after\x20max\x20attempts',async()=>{const _0xc70a43=a0_0x2d42,{RECONNECT_CONFIG:_0x5c14d9}=await import('../../config/constants.js');let _0x559f1c=0x0;for(let _0x4cdaae=0x0;_0x4cdaae<_0x5c14d9['MAX_ATTEMPTS']+0x5;_0x4cdaae++){if(_0x559f1c<_0x5c14d9['MAX_ATTEMPTS'])_0x559f1c+=0x1;else break;}expect(_0x559f1c)[_0xc70a43(0xd1)](_0x5c14d9[_0xc70a43(0xe1)]),expect(_0x559f1c)['toBeLessThanOrEqual'](_0x5c14d9[_0xc70a43(0xe1)]);});}),describe(a0_0x3bc744(0xb9),()=>{test('Connection\x20info\x20should\x20contain\x20all\x20metrics',async()=>{const _0x5f2279=a0_0x2d42,{CONNECTION_STATUS:_0x38a8c0}=await import(_0x5f2279(0xc0)),_0x1694fb={'status':_0x38a8c0['CONNECTED'],'isConnected':!![],'isReconnecting':![],'sessionId':'test-session-123','sessionValid':!![],'sessionExpiration':Date[_0x5f2279(0xca)]()+0x36ee80,'uptime':0x1388,'lastConnectedAt':Date['now']()-0x1388,'lastDisconnectedAt':null,'reconnectAttempts':0x0};expect(_0x1694fb[_0x5f2279(0xb0)])[_0x5f2279(0xbc)](),expect(_0x1694fb['isConnected'])['toBe'](!![]),expect(_0x1694fb['isReconnecting'])[_0x5f2279(0xd1)](![]),expect(_0x1694fb['sessionId'])[_0x5f2279(0xbc)](),expect(_0x1694fb['sessionValid'])[_0x5f2279(0xd1)](!![]),expect(_0x1694fb[_0x5f2279(0xad)])[_0x5f2279(0xda)](0x0);});});
1
+ function a0_0x10df(){const _0x587170=['Cg93','C3rYAw5N','otqYmdjez01ds2e','uKvdt05orunusu5h','reLtq09otKvdveve','mta1nJuZovHot2z0Aa','mtC0mZK5m1zxuw9qAq','C3rHDhvZ','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gu3rHDhvZifzHBhvLCW','Dg9czuXLC3nuAgfUt3jfCxvHBa','q09otKvdveLptL9tvefuvvm','BM93','q09otKvdveve','y29UBMvJDgLUzW','u2vZC2LVBIbZDgf0zsbZAg91BgqGDhjHy2SGDMfSAwrPDhK','Dg9czq','mtu4mdb4yMvKqNi','tufyx0fuvevnufrt','y29UBMvJDgvK','q29UBMvJDgLVBIbPBMzVihnOB3vSzcbJB250ywLUigfSBcbTzxrYAwnZ','q09otKvdveLorW','B2zM','A2v5CW','mLbJsNjrqG','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gq29UBMvJDgLVBIbjBMzV','mtq1mJq3nJrirLf5Cfu','DgvZDc1ZzxnZAw9UlteYmW','Dg9czu51BgW','tufyx0rftefz','zgvMyxvSDa','zNvUy3rPB24','Dg9mB3DLCKnHC2u','nJiXndaYBg1yrLjw','BwLU','C2vZC2LVBLzHBgLK','q09otKvdveLptL9tvefuvvmGy29UC3rHBNrZigfYzsbKzwzPBMvK','Bg9JywXOB3n0','q09otKvdveLptL9tvefuvvmGAxmGywXPyxmGzM9YienptK5fq1rjt05Fu1rbveu','CMvJB25Uzwn0Aw5N','uMvJB25Uzwn0Aw9UihnOB3vSzcbZDg9WigfMDgvYig1HEcbHDhrLBxb0CW','rxHWB25LBNrPywWGyMfJA29MzIbYzxnWzwn0CYbTyxGGzgvSyxK','su5jveLbtf9eruXbwq','mtbyruLot3i','mJfbzg9hBeS','AxndB25Uzwn0zwq','Dg9dB250ywLU','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','oxPmueLQDa','Dg9czuDYzwf0zxjuAgfU','zgLZy29UBMvJDgvK','v2vIu29JA2v0twfUywDLCIbOyxmGzxzLBNqGzw1PDhrLCIbTzxrOB2rZ','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsg9VAYbjBNrLCMzHy2uGvMvYAwzPy2f0Aw9U','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','ndbUAMfrsKK','Dg9czurLzMLUzwq','mZa3ndq2nhHmsNf6Cq','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','DxnLq29UBMvJDgLVBG','AxnszwnVBM5Ly3rPBMC','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gq29UBMvJDgLVBIbnzxrYAwnZ','Dg9czuDYzwf0zxjuAgfUt3jfCxvHBa'];a0_0x10df=function(){return _0x587170;};return a0_0x10df();}const a0_0x9a78f2=a0_0x40c1;(function(_0x4953df,_0x86b653){const _0x403cac=a0_0x40c1,_0x1f0145=_0x4953df();while(!![]){try{const _0x2bd60f=-parseInt(_0x403cac(0x97))/0x1*(parseInt(_0x403cac(0xac))/0x2)+-parseInt(_0x403cac(0x9b))/0x3+parseInt(_0x403cac(0x8d))/0x4*(parseInt(_0x403cac(0xa5))/0x5)+parseInt(_0x403cac(0xb5))/0x6*(-parseInt(_0x403cac(0x83))/0x7)+parseInt(_0x403cac(0x8f))/0x8*(parseInt(_0x403cac(0x87))/0x9)+-parseInt(_0x403cac(0x82))/0xa*(parseInt(_0x403cac(0x9a))/0xb)+parseInt(_0x403cac(0xae))/0xc;if(_0x2bd60f===_0x86b653)break;else _0x1f0145['push'](_0x1f0145['shift']());}catch(_0x23a310){_0x1f0145['push'](_0x1f0145['shift']());}}}(a0_0x10df,0x84d16));function a0_0x40c1(_0x2ebe9a,_0x349ec4){_0x2ebe9a=_0x2ebe9a-0x80;const _0x10df23=a0_0x10df();let _0x40c129=_0x10df23[_0x2ebe9a];if(a0_0x40c1['lJGSAP']===undefined){var _0x2f72a9=function(_0x53270c){const _0x11ff01='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17144d='',_0x16dd3a='';for(let _0x3340c5=0x0,_0x52ce0e,_0x16af7b,_0x1a079b=0x0;_0x16af7b=_0x53270c['charAt'](_0x1a079b++);~_0x16af7b&&(_0x52ce0e=_0x3340c5%0x4?_0x52ce0e*0x40+_0x16af7b:_0x16af7b,_0x3340c5++%0x4)?_0x17144d+=String['fromCharCode'](0xff&_0x52ce0e>>(-0x2*_0x3340c5&0x6)):0x0){_0x16af7b=_0x11ff01['indexOf'](_0x16af7b);}for(let _0x5762ea=0x0,_0xf660a4=_0x17144d['length'];_0x5762ea<_0xf660a4;_0x5762ea++){_0x16dd3a+='%'+('00'+_0x17144d['charCodeAt'](_0x5762ea)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x16dd3a);};a0_0x40c1['ybyyFD']=_0x2f72a9,a0_0x40c1['kwYtZo']={},a0_0x40c1['lJGSAP']=!![];}const _0x1ad224=_0x10df23[0x0],_0x18c085=_0x2ebe9a+_0x1ad224,_0x56034e=a0_0x40c1['kwYtZo'][_0x18c085];return!_0x56034e?(_0x40c129=a0_0x40c1['ybyyFD'](_0x40c129),a0_0x40c1['kwYtZo'][_0x18c085]=_0x40c129):_0x40c129=_0x56034e,_0x40c129;}import{describe,test,expect}from'@jest/globals';describe('Connection\x20Management\x20-\x20Imports',()=>{test('useConnection hook can be imported',async()=>{const _0x1fcba1=a0_0x40c1,{useConnection:_0x17144d}=await import('../../state/useConnection.js');expect(_0x17144d)[_0x1fcba1(0x8e)](),expect(typeof _0x17144d)[_0x1fcba1(0xa4)]('function');}),test('useConnection is default export',async()=>{const _0x53377a=a0_0x40c1,module=await import(_0x53377a(0x90));expect(module['default'])['toBeDefined'](),expect(typeof module[_0x53377a(0xb2)])['toBe']('function'),expect(module['default'])['toBe'](module[_0x53377a(0x91)]);});}),describe('Connection\x20Management\x20-\x20Constants',()=>{const _0x77e5ca=a0_0x40c1;test(_0x77e5ca(0xb8),async()=>{const _0x3cf5ca=_0x77e5ca,{CONNECTION_STATUS:_0x16dd3a}=await import(_0x3cf5ca(0x86));expect(_0x16dd3a)[_0x3cf5ca(0x8e)](),expect(_0x16dd3a['CONNECTING'])[_0x3cf5ca(0xa4)](_0x3cf5ca(0xa2)),expect(_0x16dd3a[_0x3cf5ca(0xa1)])['toBe'](_0x3cf5ca(0xa7)),expect(_0x16dd3a['DISCONNECTED'])['toBe'](_0x3cf5ca(0x89)),expect(_0x16dd3a['RECONNECTING'])['toBe'](_0x3cf5ca(0xbb));}),test(_0x77e5ca(0xba),async()=>{const {CONNECTION_STATUS:_0x3340c5,CONNECTION_STATE:_0x52ce0e}=await import('../../config/constants.js');expect(_0x3340c5)['toBe'](_0x52ce0e);}),test('RECONNECT_CONFIG\x20constants\x20are\x20defined',async()=>{const _0x110f87=_0x77e5ca,{RECONNECT_CONFIG:_0x16af7b}=await import('../../config/constants.js');expect(_0x16af7b)['toBeDefined'](),expect(_0x16af7b['INITIAL_DELAY'])['toBeDefined'](),expect(_0x16af7b['MAX_DELAY'])['toBeDefined'](),expect(_0x16af7b['BACKOFF_MULTIPLIER'])[_0x110f87(0x8e)](),expect(_0x16af7b[_0x110f87(0xa6)])[_0x110f87(0x8e)]();}),test('RECONNECT_CONFIG\x20values\x20are\x20reasonable',async()=>{const _0x565f90=_0x77e5ca,{RECONNECT_CONFIG:_0x1a079b}=await import(_0x565f90(0x86));expect(_0x1a079b[_0x565f90(0x81)])[_0x565f90(0x88)](0x0),expect(_0x1a079b['MAX_DELAY'])['toBeGreaterThan'](_0x1a079b['INITIAL_DELAY']),expect(_0x1a079b['BACKOFF_MULTIPLIER'])['toBeGreaterThan'](0x1),expect(_0x1a079b['MAX_ATTEMPTS'])['toBeGreaterThan'](0x0);});}),describe('Connection\x20Management\x20-\x20Integration',()=>{test('useConnection\x20hook\x20integrates\x20with\x20SessionManager\x20and\x20WebSocketManager',async()=>{const _0x50a7a9=a0_0x40c1,{useConnection:_0x5762ea}=await import('../../state/useConnection.js'),{SessionManager:_0xf660a4}=await import('../../api/session.js'),{WebSocketManager:_0x4dd216}=await import('../../api/websocket.js'),_0x917930=new _0xf660a4(_0x50a7a9(0xb9),0x1f90),_0x1d7bc8=new _0x4dd216('localhost',0x1f90);expect(_0x917930)[_0x50a7a9(0x8e)](),expect(_0x1d7bc8)[_0x50a7a9(0x8e)](),expect(typeof _0x5762ea)[_0x50a7a9(0xa4)](_0x50a7a9(0xb3));}),test('Full connection stack can be imported together',async()=>{const _0x14efa2=a0_0x40c1,[_0x2414bc,_0x3f2337,_0x4b9a03,_0x338739]=await Promise['all']([import(_0x14efa2(0x86)),import('../../api/session.js'),import(_0x14efa2(0x8c)),import('../../state/useConnection.js')]);expect(_0x2414bc[_0x14efa2(0x9f)])[_0x14efa2(0x8e)](),expect(_0x2414bc['RECONNECT_CONFIG'])[_0x14efa2(0x8e)](),expect(_0x3f2337['SessionManager'])['toBeDefined'](),expect(_0x4b9a03['WebSocketManager'])[_0x14efa2(0x8e)](),expect(_0x338739[_0x14efa2(0x91)])['toBeDefined']();});}),describe(a0_0x9a78f2(0x8b),()=>{test('useConnection\x20returns\x20expected\x20interface\x20shape',async()=>{const _0x491d00=a0_0x40c1,{useConnection:_0x2b9ffc}=await import(_0x491d00(0x90));expect(_0x2b9ffc['length'])[_0x491d00(0xa4)](0x2);});}),describe(a0_0x9a78f2(0x9d),()=>{test('CONNECTION_STATUS\x20values\x20are\x20lowercase\x20strings',async()=>{const _0x395f5b=a0_0x40c1,{CONNECTION_STATUS:_0x23d8d4}=await import('../../config/constants.js');expect(typeof _0x23d8d4['CONNECTING'])['toBe']('string'),expect(typeof _0x23d8d4['CONNECTED'])[_0x395f5b(0xa4)](_0x395f5b(0x96)),expect(typeof _0x23d8d4[_0x395f5b(0x99)])['toBe']('string'),expect(typeof _0x23d8d4['RECONNECTING'])[_0x395f5b(0xa4)]('string'),expect(_0x23d8d4['CONNECTING'])[_0x395f5b(0xa4)](_0x23d8d4[_0x395f5b(0xa9)][_0x395f5b(0xb4)]()),expect(_0x23d8d4[_0x395f5b(0xa1)])['toBe'](_0x23d8d4['CONNECTED'][_0x395f5b(0xb4)]());}),test('CONNECTION_STATUS\x20has\x20all\x20required\x20states',async()=>{const _0x2e8348=a0_0x40c1,{CONNECTION_STATUS:_0x219c80}=await import(_0x2e8348(0x86)),_0x25a20c=Object[_0x2e8348(0xab)](_0x219c80);expect(_0x25a20c)[_0x2e8348(0x85)]('CONNECTING'),expect(_0x25a20c)['toContain'](_0x2e8348(0xa1)),expect(_0x25a20c)['toContain']('DISCONNECTED'),expect(_0x25a20c)['toContain'](_0x2e8348(0x98));});}),describe('Connection\x20Management\x20-\x20Exponential\x20Backoff\x20Logic',()=>{const _0x5247a7=a0_0x9a78f2;test('Exponential\x20backoff\x20delay\x20calculation\x20works\x20correctly',async()=>{const _0x3080b7=a0_0x40c1,{RECONNECT_CONFIG:_0xffedd6}=await import('../../config/constants.js'),_0x2983b8=_0x198572=>{const _0x1de04d=a0_0x40c1;return Math[_0x1de04d(0xb6)](_0xffedd6['INITIAL_DELAY']*Math[_0x1de04d(0x95)](_0xffedd6['BACKOFF_MULTIPLIER'],_0x198572),_0xffedd6[_0x1de04d(0xb1)]);},_0x62372a=_0x2983b8(0x0),_0x32a0f6=_0x2983b8(0x1),_0x123a8a=_0x2983b8(0x2);expect(_0x62372a)['toBe'](_0xffedd6[_0x3080b7(0x81)]),expect(_0x32a0f6)['toBeGreaterThan'](_0x62372a),expect(_0x123a8a)[_0x3080b7(0x88)](_0x32a0f6);}),test(_0x5247a7(0x80),async()=>{const _0x34b0e8=_0x5247a7,{RECONNECT_CONFIG:_0x43a966}=await import(_0x34b0e8(0x86)),_0x3c5b28=_0x378fd8=>{return Math['min'](_0x43a966['INITIAL_DELAY']*Math['pow'](_0x43a966['BACKOFF_MULTIPLIER'],_0x378fd8),_0x43a966['MAX_DELAY']);},_0x475f0b=_0x3c5b28(0x64);expect(_0x475f0b)[_0x34b0e8(0xa4)](_0x43a966[_0x34b0e8(0xb1)]),expect(_0x475f0b)[_0x34b0e8(0x9e)](_0x43a966[_0x34b0e8(0xb1)]);});}),describe('Connection\x20Management\x20-\x20Session\x20State',()=>{const _0x38be04=a0_0x9a78f2;test(_0x38be04(0xa3),async()=>{const _0x10860b=_0x38be04;let _0x3c5200=null,_0x335326=![],_0x4f3d6e=null;_0x3c5200=_0x10860b(0xaf),_0x335326=!![],_0x4f3d6e=Date[_0x10860b(0xa0)]()+0x36ee80,expect(_0x3c5200)['toBeDefined'](),expect(_0x335326)['toBe'](!![]),expect(_0x4f3d6e)[_0x10860b(0x88)](Date['now']());}),test('Session\x20state\x20should\x20invalidate',async()=>{const _0x2505a4=_0x38be04;let _0x44503e='test-session-123',_0x592bd1=!![];_0x44503e=null,_0x592bd1=![],expect(_0x44503e)[_0x2505a4(0xb0)](),expect(_0x592bd1)['toBe'](![]);});}),describe(a0_0x9a78f2(0x93),()=>{test('Connection\x20uptime\x20can\x20be\x20tracked',async()=>{const _0x5a657c=a0_0x40c1,_0x38af0a=Date[_0x5a657c(0xa0)]();await new Promise(_0x1991d3=>setTimeout(_0x1991d3,0x64));const _0x4a15b2=Date['now']()-_0x38af0a;expect(_0x4a15b2)[_0x5a657c(0x88)](0x0),expect(_0x4a15b2)[_0x5a657c(0x94)](0x64);}),test('Connection\x20metrics\x20track\x20timestamps',async()=>{const _0x525240=a0_0x40c1,_0x136a10=Date['now']();await new Promise(_0x48da23=>setTimeout(_0x48da23,0x32));const _0x4fbb6d=Date[_0x525240(0xa0)]();expect(_0x136a10)['toBeDefined'](),expect(_0x4fbb6d)['toBeDefined'](),expect(_0x4fbb6d)[_0x525240(0x88)](_0x136a10);}),test('Reconnection\x20attempts\x20can\x20be\x20tracked',async()=>{const _0x5dd342=a0_0x40c1;let _0x2824ea=0x0;_0x2824ea+=0x1,expect(_0x2824ea)['toBe'](0x1),_0x2824ea+=0x1,expect(_0x2824ea)[_0x5dd342(0xa4)](0x2),_0x2824ea=0x0,expect(_0x2824ea)[_0x5dd342(0xa4)](0x0);});}),describe('Connection\x20Management\x20-\x20Connection\x20Status\x20Transitions',()=>{test('Connection\x20status\x20transitions\x20follow\x20valid\x20flow',async()=>{const _0x54c537=a0_0x40c1,{CONNECTION_STATUS:_0x5a042d}=await import('../../config/constants.js');let _0x4c3cf8=_0x5a042d['DISCONNECTED'];expect(_0x4c3cf8)['toBe']('disconnected'),_0x4c3cf8=_0x5a042d[_0x54c537(0xa9)],expect(_0x4c3cf8)[_0x54c537(0xa4)](_0x54c537(0xa2)),_0x4c3cf8=_0x5a042d[_0x54c537(0xa1)],expect(_0x4c3cf8)[_0x54c537(0xa4)]('connected'),_0x4c3cf8=_0x5a042d[_0x54c537(0x99)],expect(_0x4c3cf8)[_0x54c537(0xa4)]('disconnected'),_0x4c3cf8=_0x5a042d['RECONNECTING'],expect(_0x4c3cf8)[_0x54c537(0xa4)](_0x54c537(0xbb)),_0x4c3cf8=_0x5a042d[_0x54c537(0xa1)],expect(_0x4c3cf8)[_0x54c537(0xa4)](_0x54c537(0xa7));});}),describe('Connection\x20Management\x20-\x20WebSocket\x20Event\x20Integration',()=>{const _0x4bba89=a0_0x9a78f2;test(_0x4bba89(0x8a),async()=>{const _0x4a3789=_0x4bba89,{WebSocketManager:_0x2efa88}=await import(_0x4a3789(0x8c)),_0x4e5dcc=new _0x2efa88('localhost',0x1f90);expect(_0x4e5dcc['on'])['toBeDefined'](),expect(_0x4e5dcc['off'])['toBeDefined'](),expect(typeof _0x4e5dcc['on'])['toBe'](_0x4a3789(0xb3)),expect(typeof _0x4e5dcc[_0x4a3789(0xaa)])[_0x4a3789(0xa4)](_0x4a3789(0xb3));});}),describe('Connection\x20Management\x20-\x20Max\x20Attempts\x20Limit',()=>{const _0x54fe1b=a0_0x9a78f2;test(_0x54fe1b(0xbc),async()=>{const _0x234bad=_0x54fe1b,{RECONNECT_CONFIG:_0x4a9268}=await import('../../config/constants.js');let _0x7660af=0x0;for(let _0xd77908=0x0;_0xd77908<_0x4a9268[_0x234bad(0xa6)]+0x5;_0xd77908++){if(_0x7660af<_0x4a9268[_0x234bad(0xa6)])_0x7660af+=0x1;else break;}expect(_0x7660af)['toBe'](_0x4a9268[_0x234bad(0xa6)]),expect(_0x7660af)['toBeLessThanOrEqual'](_0x4a9268[_0x234bad(0xa6)]);});}),describe(a0_0x9a78f2(0xad),()=>{const _0x22644c=a0_0x9a78f2;test(_0x22644c(0xa8),async()=>{const _0xd9029f=_0x22644c,{CONNECTION_STATUS:_0x991562}=await import('../../config/constants.js'),_0x1eb830={'status':_0x991562[_0xd9029f(0xa1)],'isConnected':!![],'isReconnecting':![],'sessionId':'test-session-123','sessionValid':!![],'sessionExpiration':Date['now']()+0x36ee80,'uptime':0x1388,'lastConnectedAt':Date[_0xd9029f(0xa0)]()-0x1388,'lastDisconnectedAt':null,'reconnectAttempts':0x0};expect(_0x1eb830[_0xd9029f(0x9c)])[_0xd9029f(0x8e)](),expect(_0x1eb830[_0xd9029f(0x84)])['toBe'](!![]),expect(_0x1eb830[_0xd9029f(0x92)])['toBe'](![]),expect(_0x1eb830['sessionId'])[_0xd9029f(0x8e)](),expect(_0x1eb830[_0xd9029f(0xb7)])['toBe'](!![]),expect(_0x1eb830['uptime'])['toBeGreaterThan'](0x0);});});
@@ -1 +1 @@
1
- function a0_0x9f7e(_0x5f4ad1,_0x2ce4b){_0x5f4ad1=_0x5f4ad1-0xbd;const _0x391a49=a0_0x391a();let _0x9f7e66=_0x391a49[_0x5f4ad1];if(a0_0x9f7e['aENGIf']===undefined){var _0x2afa87=function(_0x51b0ee){const _0x53b1bf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ca98e='',_0x560e63='';for(let _0x2b0a32=0x0,_0x38f1d9,_0x4a26e2,_0x1da594=0x0;_0x4a26e2=_0x51b0ee['charAt'](_0x1da594++);~_0x4a26e2&&(_0x38f1d9=_0x2b0a32%0x4?_0x38f1d9*0x40+_0x4a26e2:_0x4a26e2,_0x2b0a32++%0x4)?_0x4ca98e+=String['fromCharCode'](0xff&_0x38f1d9>>(-0x2*_0x2b0a32&0x6)):0x0){_0x4a26e2=_0x53b1bf['indexOf'](_0x4a26e2);}for(let _0x4d1ee9=0x0,_0x466c95=_0x4ca98e['length'];_0x4d1ee9<_0x466c95;_0x4d1ee9++){_0x560e63+='%'+('00'+_0x4ca98e['charCodeAt'](_0x4d1ee9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x560e63);};a0_0x9f7e['FLwcLz']=_0x2afa87,a0_0x9f7e['mnJjTM']={},a0_0x9f7e['aENGIf']=!![];}const _0x4b1c89=_0x391a49[0x0],_0x2585a8=_0x5f4ad1+_0x4b1c89,_0x23550b=a0_0x9f7e['mnJjTM'][_0x2585a8];return!_0x23550b?(_0x9f7e66=a0_0x9f7e['FLwcLz'](_0x9f7e66),a0_0x9f7e['mnJjTM'][_0x2585a8]=_0x9f7e66):_0x9f7e66=_0x23550b,_0x9f7e66;}const a0_0x5c8d50=a0_0x9f7e;(function(_0x5ec5f3,_0x2d1cd1){const _0x23dd55=a0_0x9f7e,_0x5e0490=_0x5ec5f3();while(!![]){try{const _0x375bc7=-parseInt(_0x23dd55(0xd1))/0x1*(-parseInt(_0x23dd55(0xcc))/0x2)+parseInt(_0x23dd55(0xdd))/0x3*(parseInt(_0x23dd55(0xd2))/0x4)+parseInt(_0x23dd55(0xd6))/0x5+-parseInt(_0x23dd55(0xd8))/0x6+-parseInt(_0x23dd55(0xc7))/0x7*(parseInt(_0x23dd55(0xdc))/0x8)+parseInt(_0x23dd55(0xde))/0x9+parseInt(_0x23dd55(0xce))/0xa;if(_0x375bc7===_0x2d1cd1)break;else _0x5e0490['push'](_0x5e0490['shift']());}catch(_0x39caf6){_0x5e0490['push'](_0x5e0490['shift']());}}}(a0_0x391a,0xe5188));function a0_0x391a(){const _0xce245a=['tg9HzgLUz1nWAw5Uzxi','Dg9czvvUzgvMAw5Lza','CMvHy3q','mJmZmde4mxDMuhf6Ea','Dg9czurLzMLUzwq','zgvMyxvSDa','zNvUy3rPB24','DxnLsw5WDxq','mtm1oda0DLfsyMLb','ugHHC2uGosaTievUAgfUy2vKiezLyxr1CMvZic0Gq29UC3rHBNrZ','mJeYmda4nZbwBNL0s2q','ChjVDg90ExbL','DxnLu3rHDgu','mtDHzKnZEw4','nJb6DgnAwfu','ugHHC2uGosaTieXVywrPBMDtCgLUBMvYic0Gu3rYDwn0DxjL','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','lI4VlI4Vy29TCg9Uzw50CY9fCNjVCKjVDw5Kyxj5lMPZ','mJu5mdqWugzyzLbi','ugHHC2uGosaTievUAgfUy2vKieLUChv0qM94ic0GsgLZDg9YEsbtDxbWB3j0','otK2mte0mg9LELrmqW','CMvUzgvY','rxjYB3jcB3vUzgfYEsbPCYbHifjLywn0ienVBxbVBMvUDcbJBgfZCW','y29TCg9Uzw50rgLKq2f0y2G','ndbQBhnkB1K','ode2mtHOA0jxBNu','ndC1nZK1ofLYEwnKyq','sw5WDxrcB3G','sw5SAw5Lu3bPBM5LCG','rxjYB3jcB3vUzgfYEsbOyxmGz2v0rgvYAxzLzfn0yxrLrNjVBuvYCM9Yihn0yxrPyYbTzxrOB2q','Dg9czq','lI4VlI4Vy29TCg9Uzw50CY9mB2fKAw5Nu3bPBM5LCI5QCW','rxjYB3jcB3vUzgfYEsbJB21WB25LBNreAwrdyxrJAcbPCYbKzwzPBMvK','ywXS'];a0_0x391a=function(){return _0xce245a;};return a0_0x391a();}import{describe,test,expect}from'@jest/globals';describe('Phase\x209\x20-\x20Enhanced\x20Components\x20-\x20Imports',()=>{test('ErrorBoundary component can be imported',async()=>{const _0x43bfe5=a0_0x9f7e,{ErrorBoundary:_0x4ca98e}=await import('../../components/ErrorBoundary.js');expect(_0x4ca98e)['toBeDefined'](),expect(typeof _0x4ca98e)[_0x43bfe5(0xc0)]('function');},0x7530),test('ErrorBoundary\x20is\x20a\x20class\x20component',async()=>{const _0x26e261=a0_0x9f7e,{ErrorBoundary:_0x560e63}=await import('../../components/ErrorBoundary.js');expect(_0x560e63['prototype'])['toBeDefined'](),expect(typeof _0x560e63[_0x26e261(0xcf)][_0x26e261(0xd9)])[_0x26e261(0xc0)]('function');}),test('LoadingSpinner component can be imported',async()=>{const _0x38ffac=a0_0x9f7e,{LoadingSpinner:_0x2b0a32}=await import('../../components/LoadingSpinner.js');expect(_0x2b0a32)[_0x38ffac(0xc8)](),expect(typeof _0x2b0a32)[_0x38ffac(0xc0)]('function');}),test('InlineSpinner component can be imported',async()=>{const {InlineSpinner:_0x38f1d9}=await import('../../components/LoadingSpinner.js');expect(_0x38f1d9)['toBeDefined'](),expect(typeof _0x38f1d9)['toBe']('function');}),test('LoadingSpinner is default export',async()=>{const _0x2df7eb=a0_0x9f7e,module=await import(_0x2df7eb(0xc1));expect(module[_0x2df7eb(0xc9)])['toBeDefined'](),expect(module[_0x2df7eb(0xc9)])['toBe'](module[_0x2df7eb(0xc4)]);}),test('Enhanced\x20InputBox\x20maintains\x20backward\x20compatibility',async()=>{const _0x3b6c34=a0_0x9f7e,{InputBox:_0x4a26e2}=await import('../../components/InputBox.js');expect(_0x4a26e2)['toBeDefined'](),expect(typeof _0x4a26e2)[_0x3b6c34(0xc0)](_0x3b6c34(0xca));});}),describe('Phase\x209\x20-\x20ErrorBoundary\x20-\x20Structure',()=>{const _0xa6d267=a0_0x9f7e;test(_0xa6d267(0xda),async()=>{const _0xf9f7b6=_0xa6d267,{ErrorBoundary:_0x1da594}=await import(_0xf9f7b6(0xd5)),_0x4d1ee9=await import(_0xf9f7b6(0xc6));expect(_0x1da594[_0xf9f7b6(0xcf)])[_0xf9f7b6(0xc8)](),expect(typeof _0x1da594['prototype'][_0xf9f7b6(0xd9)])[_0xf9f7b6(0xc0)]('function'),expect(typeof _0x1da594[_0xf9f7b6(0xcf)][_0xf9f7b6(0xdb)])['toBe'](_0xf9f7b6(0xca));}),test(_0xa6d267(0xbf),async()=>{const _0x4198dc=_0xa6d267,{ErrorBoundary:_0x466c95}=await import(_0x4198dc(0xd5));expect(typeof _0x466c95['getDerivedStateFromError'])[_0x4198dc(0xc0)]('function');}),test(_0xa6d267(0xc2),async()=>{const _0x28a60f=_0xa6d267,{ErrorBoundary:_0x1cf726}=await import(_0x28a60f(0xd5));expect(typeof _0x1cf726[_0x28a60f(0xcf)][_0x28a60f(0xdb)])[_0x28a60f(0xc0)]('function');});}),describe(a0_0x5c8d50(0xd3),()=>{test('LoadingSpinner\x20is\x20a\x20function\x20component',async()=>{const _0x2e3777=a0_0x9f7e,{LoadingSpinner:_0x5bc90a}=await import('../../components/LoadingSpinner.js');expect(typeof _0x5bc90a)['toBe'](_0x2e3777(0xca)),expect(_0x5bc90a[_0x2e3777(0xcf)]?.[_0x2e3777(0xd9)])[_0x2e3777(0xc5)]();}),test('InlineSpinner\x20is\x20a\x20function\x20component',async()=>{const _0x5665e8=a0_0x9f7e,{InlineSpinner:_0x3513b5}=await import('../../components/LoadingSpinner.js');expect(typeof _0x3513b5)[_0x5665e8(0xc0)]('function'),expect(_0x3513b5[_0x5665e8(0xcf)]?.['render'])['toBeUndefined']();});}),describe(a0_0x5c8d50(0xd7),()=>{test('Enhanced InputBox imports useRef for history',async()=>{const _0x3081d2=a0_0x9f7e,_0x5abd13=await import(_0x3081d2(0xd4)),_0x23ea7a=await import(_0x3081d2(0xc6));expect(_0x23ea7a[_0x3081d2(0xd0)])[_0x3081d2(0xc8)](),expect(_0x23ea7a['useRef'])['toBeDefined']();}),test('InputBox component maintains exports',async()=>{const _0x67b7e5=a0_0x9f7e,module=await import(_0x67b7e5(0xd4));expect(module[_0x67b7e5(0xbd)])[_0x67b7e5(0xc8)](),expect(module[_0x67b7e5(0xc9)])['toBeDefined'](),expect(module[_0x67b7e5(0xc9)])['toBe'](module['InputBox']);});}),describe('Phase\x209\x20-\x20Integration',()=>{test('All enhanced components can be imported together',async()=>{const _0x21487f=a0_0x9f7e,[_0x2b6121,_0x23d889,_0x3214c6]=await Promise[_0x21487f(0xc3)]([import(_0x21487f(0xd5)),import('../../components/LoadingSpinner.js'),import('../../components/InputBox.js')]);expect(_0x2b6121['ErrorBoundary'])['toBeDefined'](),expect(_0x23d889[_0x21487f(0xc4)])['toBeDefined'](),expect(_0x23d889[_0x21487f(0xbe)])['toBeDefined'](),expect(_0x3214c6['InputBox'])['toBeDefined']();}),test('Enhanced Layout component imports useInput for keyboard shortcuts',async()=>{const _0x573a31=a0_0x9f7e,_0x496d1d=await import(_0x573a31(0xc6)),_0x52297c=await import('ink');expect(_0x52297c[_0x573a31(0xcb)])[_0x573a31(0xc8)](),expect(typeof _0x52297c[_0x573a31(0xcb)])['toBe']('function');}),test('Layout component can still be imported after enhancements',async()=>{const _0x19289e=a0_0x9f7e,{Layout:_0x1f9e17}=await import('../../components/Layout.js');expect(_0x1f9e17)[_0x19289e(0xc8)](),expect(typeof _0x1f9e17)[_0x19289e(0xc0)](_0x19289e(0xca));});}),describe(a0_0x5c8d50(0xcd),()=>{test('InputBox\x20defines\x20MAX_HISTORY\x20constant',async()=>{const _0x25fd09=a0_0x9f7e,module=await import(_0x25fd09(0xd4));expect(module[_0x25fd09(0xbd)])['toBeDefined']();});});
1
+ function a0_0x2323(){const _0x58c595=['ndC1mZDlzfDbBhy','ugHHC2uGosaTievYCM9YqM91BMrHCNKGlsbtDhj1y3r1CMu','ndK2nJiXnKHjB3zPvG','y29TCg9Uzw50rgLKq2f0y2G','Dg9czq','lI4VlI4Vy29TCg9Uzw50CY9mB2fKAw5Nu3bPBM5LCI5QCW','nda4rLf0rMLS','sw5SAw5Lu3bPBM5LCG','DxnLu3rHDgu','ugHHC2uGosaTievUAgfUy2vKiezLyxr1CMvZic0Gq29UC3rHBNrZ','odG3nZfVrgLJsKG','ChjVDg90ExbL','rxjYB3jcB3vUzgfYEsbJB21WB25LBNreAwrdyxrJAcbPCYbKzwzPBMvK','nti1ntbiwMj4t1K','Dg9czvvUzgvMAw5Lza','CMvHy3q','Dg9czurLzMLUzwq','mte3ownXvNzXzW','ywXS','mtyYodG5mZjzBNvzEve','lI4VlI4Vy29TCg9Uzw50CY9fCNjVCKjVDw5Kyxj5lMPZ','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','mtC4mtiWmK93swXtrG','rxjYB3jcB3vUzgfYEsbPCYbHignSyxnZignVBxbVBMvUDa','ndq1u2PcwNnS','tg9HzgLUz1nWAw5Uzxi','sw5WDxrcB3G','CMvUzgvY','Aw5R','zNvUy3rPB24','ohHVAwT1wG','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','ugHHC2uGosaTieXVywrPBMDtCgLUBMvYic0Gu3rYDwn0DxjL','rxjYB3jcB3vUzgfYEq','mtfTvwP5CfK','DxnLsw5WDxq','mtqWndrIBNnfwum','zgvMyxvSDa'];a0_0x2323=function(){return _0x58c595;};return a0_0x2323();}const a0_0x5205b0=a0_0x4e8c;(function(_0x5c6b9a,_0x386a74){const _0x164463=a0_0x4e8c,_0x4bc10a=_0x5c6b9a();while(!![]){try{const _0x4ad105=-parseInt(_0x164463(0x149))/0x1*(-parseInt(_0x164463(0x137))/0x2)+-parseInt(_0x164463(0x12f))/0x3+-parseInt(_0x164463(0x13d))/0x4*(-parseInt(_0x164463(0x131))/0x5)+-parseInt(_0x164463(0x145))/0x6*(-parseInt(_0x164463(0x13f))/0x7)+-parseInt(_0x164463(0x141))/0x8+parseInt(_0x164463(0x12a))/0x9*(-parseInt(_0x164463(0x126))/0xa)+-parseInt(_0x164463(0x13b))/0xb*(-parseInt(_0x164463(0x12c))/0xc);if(_0x4ad105===_0x386a74)break;else _0x4bc10a['push'](_0x4bc10a['shift']());}catch(_0x4c7174){_0x4bc10a['push'](_0x4bc10a['shift']());}}}(a0_0x2323,0x8e8a6));import{describe,test,expect}from'@jest/globals';function a0_0x4e8c(_0x28e784,_0x59b04c){_0x28e784=_0x28e784-0x124;const _0x23233b=a0_0x2323();let _0x4e8c55=_0x23233b[_0x28e784];if(a0_0x4e8c['EIFjaz']===undefined){var _0x148ee0=function(_0x5bd6e1){const _0x43af7b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xea49ac='',_0x5bdc9b='';for(let _0x4acef5=0x0,_0x5af2df,_0x4bc744,_0x20ee83=0x0;_0x4bc744=_0x5bd6e1['charAt'](_0x20ee83++);~_0x4bc744&&(_0x5af2df=_0x4acef5%0x4?_0x5af2df*0x40+_0x4bc744:_0x4bc744,_0x4acef5++%0x4)?_0xea49ac+=String['fromCharCode'](0xff&_0x5af2df>>(-0x2*_0x4acef5&0x6)):0x0){_0x4bc744=_0x43af7b['indexOf'](_0x4bc744);}for(let _0x42dcbe=0x0,_0x1bf754=_0xea49ac['length'];_0x42dcbe<_0x1bf754;_0x42dcbe++){_0x5bdc9b+='%'+('00'+_0xea49ac['charCodeAt'](_0x42dcbe)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5bdc9b);};a0_0x4e8c['DQfEBQ']=_0x148ee0,a0_0x4e8c['eyoxMa']={},a0_0x4e8c['EIFjaz']=!![];}const _0x5e3e1b=_0x23233b[0x0],_0x4bf13a=_0x28e784+_0x5e3e1b,_0x13e05b=a0_0x4e8c['eyoxMa'][_0x4bf13a];return!_0x13e05b?(_0x4e8c55=a0_0x4e8c['DQfEBQ'](_0x4e8c55),a0_0x4e8c['eyoxMa'][_0x4bf13a]=_0x4e8c55):_0x4e8c55=_0x13e05b,_0x4e8c55;}describe('Phase\x209\x20-\x20Enhanced\x20Components\x20-\x20Imports',()=>{const _0x2aea14=a0_0x4e8c;test('ErrorBoundary component can be imported',async()=>{const _0x1c450d=a0_0x4e8c,{ErrorBoundary:_0xea49ac}=await import(_0x1c450d(0x12d));expect(_0xea49ac)['toBeDefined'](),expect(typeof _0xea49ac)['toBe']('function');},0x7530),test(_0x2aea14(0x130),async()=>{const _0x50aa43=_0x2aea14,{ErrorBoundary:_0x5bdc9b}=await import(_0x50aa43(0x12d));expect(_0x5bdc9b['prototype'])['toBeDefined'](),expect(typeof _0x5bdc9b['prototype']['render'])[_0x50aa43(0x143)]('function');}),test('LoadingSpinner component can be imported',async()=>{const _0x392ba0=_0x2aea14,{LoadingSpinner:_0x4acef5}=await import(_0x392ba0(0x144));expect(_0x4acef5)[_0x392ba0(0x129)](),expect(typeof _0x4acef5)['toBe'](_0x392ba0(0x136));}),test('InlineSpinner component can be imported',async()=>{const {InlineSpinner:_0x5af2df}=await import('../../components/LoadingSpinner.js');expect(_0x5af2df)['toBeDefined'](),expect(typeof _0x5af2df)['toBe']('function');}),test('LoadingSpinner is default export',async()=>{const _0x5ed5ea=_0x2aea14,module=await import('../../components/LoadingSpinner.js');expect(module[_0x5ed5ea(0x13e)])[_0x5ed5ea(0x129)](),expect(module[_0x5ed5ea(0x13e)])[_0x5ed5ea(0x143)](module['LoadingSpinner']);}),test('Enhanced\x20InputBox\x20maintains\x20backward\x20compatibility',async()=>{const _0x3d8457=_0x2aea14,{InputBox:_0x4bc744}=await import('../../components/InputBox.js');expect(_0x4bc744)[_0x3d8457(0x129)](),expect(typeof _0x4bc744)['toBe']('function');});}),describe(a0_0x5205b0(0x140),()=>{const _0x4aea62=a0_0x5205b0;test('ErrorBoundary\x20is\x20a\x20React\x20Component\x20class',async()=>{const _0x4d78cb=a0_0x4e8c,{ErrorBoundary:_0x20ee83}=await import('../../components/ErrorBoundary.js'),_0x42dcbe=await import(_0x4d78cb(0x128));expect(_0x20ee83[_0x4d78cb(0x124)])[_0x4d78cb(0x129)](),expect(typeof _0x20ee83[_0x4d78cb(0x124)][_0x4d78cb(0x134)])[_0x4d78cb(0x143)]('function'),expect(typeof _0x20ee83[_0x4d78cb(0x124)]['componentDidCatch'])[_0x4d78cb(0x143)](_0x4d78cb(0x136));}),test('ErrorBoundary\x20has\x20getDerivedStateFromError\x20static\x20method',async()=>{const _0x306980=a0_0x4e8c,{ErrorBoundary:_0x1bf754}=await import(_0x306980(0x12d));expect(typeof _0x1bf754['getDerivedStateFromError'])[_0x306980(0x143)](_0x306980(0x136));}),test(_0x4aea62(0x125),async()=>{const _0x2be473=_0x4aea62,{ErrorBoundary:_0x362ed5}=await import(_0x2be473(0x12d));expect(typeof _0x362ed5['prototype'][_0x2be473(0x142)])[_0x2be473(0x143)](_0x2be473(0x136));});}),describe(a0_0x5205b0(0x139),()=>{test('LoadingSpinner\x20is\x20a\x20function\x20component',async()=>{const _0x531ffb=a0_0x4e8c,{LoadingSpinner:_0x3c6af1}=await import('../../components/LoadingSpinner.js');expect(typeof _0x3c6af1)['toBe'](_0x531ffb(0x136)),expect(_0x3c6af1[_0x531ffb(0x124)]?.['render'])[_0x531ffb(0x127)]();}),test('InlineSpinner\x20is\x20a\x20function\x20component',async()=>{const _0x320f41=a0_0x4e8c,{InlineSpinner:_0xf8d272}=await import(_0x320f41(0x144));expect(typeof _0xf8d272)[_0x320f41(0x143)]('function'),expect(_0xf8d272[_0x320f41(0x124)]?.['render'])['toBeUndefined']();});}),describe('Phase\x209\x20-\x20Enhanced\x20InputBox\x20-\x20History\x20Support',()=>{test('Enhanced InputBox imports useRef for history',async()=>{const _0x2fd285=a0_0x4e8c,_0x39a7a=await import(_0x2fd285(0x12e)),_0x11b4e4=await import('react');expect(_0x11b4e4[_0x2fd285(0x147)])['toBeDefined'](),expect(_0x11b4e4['useRef'])['toBeDefined']();}),test('InputBox component maintains exports',async()=>{const _0x388a10=a0_0x4e8c,module=await import('../../components/InputBox.js');expect(module[_0x388a10(0x133)])['toBeDefined'](),expect(module[_0x388a10(0x13e)])['toBeDefined'](),expect(module[_0x388a10(0x13e)])[_0x388a10(0x143)](module[_0x388a10(0x133)]);});}),describe('Phase\x209\x20-\x20Integration',()=>{test('All enhanced components can be imported together',async()=>{const _0x57e556=a0_0x4e8c,[_0x4188a8,_0x340caf,_0x4ce76f]=await Promise[_0x57e556(0x12b)]([import('../../components/ErrorBoundary.js'),import('../../components/LoadingSpinner.js'),import('../../components/InputBox.js')]);expect(_0x4188a8[_0x57e556(0x13a)])[_0x57e556(0x129)](),expect(_0x340caf[_0x57e556(0x132)])[_0x57e556(0x129)](),expect(_0x340caf[_0x57e556(0x146)])[_0x57e556(0x129)](),expect(_0x4ce76f[_0x57e556(0x133)])['toBeDefined']();}),test('Enhanced Layout component imports useInput for keyboard shortcuts',async()=>{const _0x435dbe=a0_0x4e8c,_0x5f3181=await import('react'),_0x2cb44a=await import(_0x435dbe(0x135));expect(_0x2cb44a[_0x435dbe(0x13c)])[_0x435dbe(0x129)](),expect(typeof _0x2cb44a['useInput'])['toBe']('function');}),test('Layout component can still be imported after enhancements',async()=>{const _0xb987ee=a0_0x4e8c,{Layout:_0x5e881f}=await import(_0xb987ee(0x138));expect(_0x5e881f)[_0xb987ee(0x129)](),expect(typeof _0x5e881f)['toBe'](_0xb987ee(0x136));});}),describe(a0_0x5205b0(0x148),()=>{test('InputBox\x20defines\x20MAX_HISTORY\x20constant',async()=>{const _0x3084e5=a0_0x4e8c,module=await import(_0x3084e5(0x12e));expect(module[_0x3084e5(0x133)])[_0x3084e5(0x129)]();});});