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

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 (116) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.js +1 -1
  3. package/bin/loxia-terminal-v2.js +1 -1
  4. package/bin/loxia-terminal.js +1 -1
  5. package/bin/start-with-terminal.js +1 -1
  6. package/package.json +1 -1
  7. package/scripts/install-scanners.js +1 -1
  8. package/src/analyzers/CSSAnalyzer.js +1 -1
  9. package/src/analyzers/ConfigValidator.js +1 -1
  10. package/src/analyzers/ESLintAnalyzer.js +1 -1
  11. package/src/analyzers/JavaScriptAnalyzer.js +1 -1
  12. package/src/analyzers/PrettierFormatter.js +1 -1
  13. package/src/analyzers/PythonAnalyzer.js +1 -1
  14. package/src/analyzers/SecurityAnalyzer.js +1 -1
  15. package/src/analyzers/TypeScriptAnalyzer.js +1 -1
  16. package/src/analyzers/codeCloneDetector/analyzer.js +1 -1
  17. package/src/analyzers/codeCloneDetector/detector.js +1 -1
  18. package/src/analyzers/codeCloneDetector/index.js +1 -1
  19. package/src/analyzers/codeCloneDetector/parser.js +1 -1
  20. package/src/analyzers/codeCloneDetector/reporter.js +1 -1
  21. package/src/analyzers/codeCloneDetector/scanner.js +1 -1
  22. package/src/core/agentPool.js +1 -1
  23. package/src/core/agentScheduler.js +1 -1
  24. package/src/core/contextManager.js +1 -1
  25. package/src/core/messageProcessor.js +1 -1
  26. package/src/core/orchestrator.js +1 -1
  27. package/src/core/stateManager.js +1 -1
  28. package/src/index.js +1 -1
  29. package/src/interfaces/cli.js +1 -1
  30. package/src/interfaces/terminal/__tests__/smoke/advancedFeatures.test.js +1 -1
  31. package/src/interfaces/terminal/__tests__/smoke/agentControl.test.js +1 -1
  32. package/src/interfaces/terminal/__tests__/smoke/agents.test.js +1 -1
  33. package/src/interfaces/terminal/__tests__/smoke/components.test.js +1 -1
  34. package/src/interfaces/terminal/__tests__/smoke/connection.test.js +1 -1
  35. package/src/interfaces/terminal/__tests__/smoke/enhancements.test.js +1 -1
  36. package/src/interfaces/terminal/__tests__/smoke/imports.test.js +1 -1
  37. package/src/interfaces/terminal/__tests__/smoke/messages.test.js +1 -1
  38. package/src/interfaces/terminal/__tests__/smoke/tools.test.js +1 -1
  39. package/src/interfaces/terminal/api/apiClient.js +1 -1
  40. package/src/interfaces/terminal/api/messageRouter.js +1 -1
  41. package/src/interfaces/terminal/api/session.js +1 -1
  42. package/src/interfaces/terminal/api/websocket.js +1 -1
  43. package/src/interfaces/terminal/components/AgentCreator.js +1 -1
  44. package/src/interfaces/terminal/components/AgentEditor.js +1 -1
  45. package/src/interfaces/terminal/components/AgentSwitcher.js +1 -1
  46. package/src/interfaces/terminal/components/ErrorBoundary.js +1 -1
  47. package/src/interfaces/terminal/components/ErrorPanel.js +1 -1
  48. package/src/interfaces/terminal/components/Header.js +1 -1
  49. package/src/interfaces/terminal/components/HelpPanel.js +1 -1
  50. package/src/interfaces/terminal/components/InputBox.js +1 -1
  51. package/src/interfaces/terminal/components/Layout.js +1 -1
  52. package/src/interfaces/terminal/components/LoadingSpinner.js +1 -1
  53. package/src/interfaces/terminal/components/MessageList.js +1 -1
  54. package/src/interfaces/terminal/components/MultilineTextInput.js +1 -1
  55. package/src/interfaces/terminal/components/SearchPanel.js +1 -1
  56. package/src/interfaces/terminal/components/SettingsPanel.js +1 -1
  57. package/src/interfaces/terminal/components/StatusBar.js +1 -1
  58. package/src/interfaces/terminal/components/TextInput.js +1 -1
  59. package/src/interfaces/terminal/config/agentEditorConstants.js +1 -1
  60. package/src/interfaces/terminal/config/constants.js +1 -1
  61. package/src/interfaces/terminal/index.js +1 -1
  62. package/src/interfaces/terminal/state/useAgentControl.js +1 -1
  63. package/src/interfaces/terminal/state/useAgents.js +1 -1
  64. package/src/interfaces/terminal/state/useConnection.js +1 -1
  65. package/src/interfaces/terminal/state/useMessages.js +1 -1
  66. package/src/interfaces/terminal/state/useTools.js +1 -1
  67. package/src/interfaces/terminal/utils/debugLogger.js +1 -1
  68. package/src/interfaces/terminal/utils/settingsStorage.js +1 -1
  69. package/src/interfaces/terminal/utils/theme.js +1 -1
  70. package/src/interfaces/webServer.js +1 -1
  71. package/src/modules/fileExplorer/controller.js +1 -1
  72. package/src/modules/fileExplorer/index.js +1 -1
  73. package/src/modules/fileExplorer/middleware.js +1 -1
  74. package/src/modules/fileExplorer/routes.js +1 -1
  75. package/src/services/aiService.js +1 -1
  76. package/src/services/apiKeyManager.js +1 -1
  77. package/src/services/benchmarkService.js +1 -1
  78. package/src/services/budgetService.js +1 -1
  79. package/src/services/contextInjectionService.js +1 -1
  80. package/src/services/conversationCompactionService.js +1 -1
  81. package/src/services/errorHandler.js +1 -1
  82. package/src/services/fileAttachmentService.js +1 -1
  83. package/src/services/modelRouterService.js +1 -1
  84. package/src/services/modelsService.js +1 -1
  85. package/src/services/qualityInspector.js +1 -1
  86. package/src/services/tokenCountingService.js +1 -1
  87. package/src/tools/agentCommunicationTool.js +1 -1
  88. package/src/tools/agentDelayTool.js +1 -1
  89. package/src/tools/asyncToolManager.js +1 -1
  90. package/src/tools/baseTool.js +1 -1
  91. package/src/tools/browserTool.js +1 -1
  92. package/src/tools/cloneDetectionTool.js +1 -1
  93. package/src/tools/dependencyResolverTool.js +1 -1
  94. package/src/tools/fileContentReplaceTool.js +1 -1
  95. package/src/tools/fileSystemTool.js +1 -1
  96. package/src/tools/fileTreeTool.js +1 -1
  97. package/src/tools/imageTool.js +1 -1
  98. package/src/tools/importAnalyzerTool.js +1 -1
  99. package/src/tools/jobDoneTool.js +1 -1
  100. package/src/tools/seekTool.js +1 -1
  101. package/src/tools/staticAnalysisTool.js +1 -1
  102. package/src/tools/taskManagerTool.js +1 -1
  103. package/src/tools/terminalTool.js +1 -1
  104. package/src/tools/webTool.js +1 -1
  105. package/src/types/agent.js +1 -1
  106. package/src/types/contextReference.js +1 -1
  107. package/src/types/conversation.js +1 -1
  108. package/src/types/toolCommand.js +1 -1
  109. package/src/utilities/attachmentValidator.js +1 -1
  110. package/src/utilities/configManager.js +1 -1
  111. package/src/utilities/constants.js +1 -1
  112. package/src/utilities/directoryAccessManager.js +1 -1
  113. package/src/utilities/fileProcessor.js +1 -1
  114. package/src/utilities/logger.js +1 -1
  115. package/src/utilities/tagParser.js +1 -1
  116. package/src/utilities/toolConstants.js +1 -1
@@ -1 +1 @@
1
- const a0_0x9d7dfb=a0_0x4c01;(function(_0x8d2deb,_0x5df099){const _0x264e39=a0_0x4c01,_0x56b75f=_0x8d2deb();while(!![]){try{const _0x4b41da=-parseInt(_0x264e39(0x168))/0x1+-parseInt(_0x264e39(0x14c))/0x2*(parseInt(_0x264e39(0x15d))/0x3)+-parseInt(_0x264e39(0x143))/0x4+-parseInt(_0x264e39(0x161))/0x5+parseInt(_0x264e39(0x13b))/0x6*(-parseInt(_0x264e39(0x108))/0x7)+-parseInt(_0x264e39(0x132))/0x8+parseInt(_0x264e39(0x176))/0x9*(parseInt(_0x264e39(0x13f))/0xa);if(_0x4b41da===_0x5df099)break;else _0x56b75f['push'](_0x56b75f['shift']());}catch(_0x46c070){_0x56b75f['push'](_0x56b75f['shift']());}}}(a0_0x1f9d,0xbfa48));import a0_0x340e37 from'readline';function a0_0x4c01(_0x47f101,_0x2ce14d){_0x47f101=_0x47f101-0x104;const _0x1f9dfe=a0_0x1f9d();let _0x4c01fe=_0x1f9dfe[_0x47f101];if(a0_0x4c01['cRnxiD']===undefined){var _0x1e7a6b=function(_0x2f17a3){const _0x48eff8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x340e37='',_0x59d712='';for(let _0xae2588=0x0,_0x2fbf67,_0x490b3c,_0x2e4cc4=0x0;_0x490b3c=_0x2f17a3['charAt'](_0x2e4cc4++);~_0x490b3c&&(_0x2fbf67=_0xae2588%0x4?_0x2fbf67*0x40+_0x490b3c:_0x490b3c,_0xae2588++%0x4)?_0x340e37+=String['fromCharCode'](0xff&_0x2fbf67>>(-0x2*_0xae2588&0x6)):0x0){_0x490b3c=_0x48eff8['indexOf'](_0x490b3c);}for(let _0x3937b2=0x0,_0x456b58=_0x340e37['length'];_0x3937b2<_0x456b58;_0x3937b2++){_0x59d712+='%'+('00'+_0x340e37['charCodeAt'](_0x3937b2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x59d712);};a0_0x4c01['DPnxST']=_0x1e7a6b,a0_0x4c01['WamOha']={},a0_0x4c01['cRnxiD']=!![];}const _0x4745e8=_0x1f9dfe[0x0],_0x2cd705=_0x47f101+_0x4745e8,_0x5e99fe=a0_0x4c01['WamOha'][_0x2cd705];return!_0x5e99fe?(_0x4c01fe=a0_0x4c01['DPnxST'](_0x4c01fe),a0_0x4c01['WamOha'][_0x2cd705]=_0x4c01fe):_0x4c01fe=_0x5e99fe,_0x4c01fe;}function a0_0x1f9d(){const _0x415919=['4P2mieXPC3qGywDLBNrZignVBw1HBMqGzMfPBgvKoG','4P2mifvZywDLoIaVy3jLyxrLidXHz2vUDc1Uyw1LpIbBBw9KzwXD','8j+tMIbmB3HPysbbDxrVCgLSB3qGt25LienmssbdB21Tyw5KCZO','icHJDxjYzw50kq','BgvUz3rO','icH1BNrPBca','y29UzMLN','BgLZDefNzw50CW','q0Xj','u0Lhsu5u','y2XPlq','ChjLzMvYCMvKtw9KzwW','mJuYzg1lDeTJ','C3rHDhvZ','zxHPDa','icaGqwDLBNrZignHBIb1C2uGDg9VBhmGyw5KignVBw11BMLJyxrLihDPDgGGB3rOzxiGywDLBNrZ','z2v0uhjVBxb0','icaVC3rHDhvZicaGicaGicaGicaGicaTifnOB3CGC3LZDgvTihn0yxr1CW','yw50AhjVCgLJlxnVBM5LDa','yMLUza','icaVC3DPDgnOidXHz2vUDc1Pzd4GicaTifn3AxrJAcb0BYbKAwzMzxjLBNqGywDLBNq','y29TBwfUzhm','4P2mifvZywDLoIaVC3DPDgnOidXHz2vUDc1Pzd4','lI4U','CMvZDwX0','zgf0yq','odq5nJmYAvnsvKzx','8j+KLIbby3rPDMuGqwDLBNrZoG','ChvZAa','cIHuBYbLEgL0lcb0ExbLicjLEgL0iIbVCIbWCMvZCYbdDhjSk0mGywDHAw4P','icaG','y3DK','cVcFLkCGvg9VBcbLEgvJDxrPB24GCMvZDwX0CZO','B3jJAgvZDhjHDg9Y','ig1VCMuGy29TBwfUzhm','icaGlI4UigfUzca','4PYfiefNzw50ignYzwf0zwqGC3vJy2vZC2z1BgX5iq','icaVCMvZDw1LidXHz2vUDc1Pzd4GicaTifjLC3vTzsbHihbHDxnLzcbHz2vUDa','AxnsDw5UAw5N','u0vorf9nrvntquDf','Bg9Nz2vY','icaGifjLC3vSDdOG','AxnqyxvZzwq','C2HVD1n0yxr1CW','Bg94Awe6','lcbHBIbbssbHC3nPC3rHBNqGy3jLyxrLzcbPBIb0AguGtg94AweGqxv0B3bPBg90ie9UzsbZExn0zw0UifLVDsbJyw4GAgvSCcb3AxrOignVzgLUzYWGyw5HBhLZAxmSigfUzcb2yxjPB3vZihrHC2TZihvZAw5NihrOzsbHDMfPBgfIBguGDg9VBhmU','C2HVD1DLBgnVBwu','4P2miezHAwXLzcb0BYbJCMvHDguGywDLBNq6','Cgf1C2vbz2vUDa','C2v0uhjVBxb0','4P2mievYCM9YoG','icaGu3DPDgnOzwqGDg8GDgHPCYbHz2vUDcbHDxrVBwf0AwnHBgX5','Bg9N','AgfUzgXLsw5WDxq','icaVy2XLyxiGicaGicaGicaGicaGicaTienSzwfYihnJCMvLBG','Dg9VBfjLC3vSDhm','AgLZDg9YEvnPEMu','4P2miezHAwXLzcb0BYbWyxvZzsbHz2vUDdO','y3vYCMvUDefNzw50','icaGu2LTCgX5ihr5CguGEw91CIbTzxnZywDLihrVihnLBMqGAxqGDg8GDgHLign1CNjLBNqGywDLBNq','zxjYB3i','icaVy3jLyxrLidXUyw1LpIaGicaGicaTienYzwf0zsbHig5LDYbHz2vUDa','C2XPy2u','icaGsuq6ia','8j+KLIbbDMfPBgfIBguGqwDLBNrZoG','icaGqwDLBNrZoIa','uefvu0vFquDftLq','ChjVy2vZC1jLCxvLC3q','mZiWnteYsKzky2LT','C3DPDgnOqwDLBNq','C2HVD0HPC3rVCNK','ww91igfYzsa','icaGtMfTztOG','BMfTzq','C2HPzNq','vhLWzsaVAgvSCcbMB3iGyxzHAwXHyMXLignVBw1HBMrZ','y3vYCMvUDe1VzgvS','nKjjDePytW','ChjVBxb0','Dg9mB3DLCKnHC2u','y2XLyxjty3jLzw4','mtm3nJKZmgPXyMTnAG','r0vux0fhru5ux1nuqvrvuW','C2HVD0HLBha','y29TBwfUzeHPC3rVCNK','nde5mZu0ohPHwwvWDW','8j+tPcbtzw5KAw5NihrVigfNzw50lI4U','8j+tNcbdB21Tyw5KieHPC3rVCNK6','DgvYBwLUywW','icaVywDLBNrZicaGicaGicaGicaGicaTieXPC3qGywXSigfNzw50CW','icaVzxHPDcbVCIaVCxvPDcaGicaGicaTiev4AxqGDgHLienmsq','8j+tRsboBYbHz2vUDhmGy3jLyxrLzcb5zxq','y29UDgvUDa','C3rKB3v0','mMLjChrusG','icaGicbtDgf0Dxm6ia','ihnLy29Uzhm','CMvZDw1LqwDLBNq','BwvZC2fNzq','C2vUze1LC3nHz2vuB0fNzw50','DhjPBq','icaGvhLWzsaVAgvSCcbMB3iGyxzHAwXHyMXLignVBw1HBMrZ','icaGtM8Gy29TBwfUzhmGzxHLy3v0zwqGEwv0','4P2miezHAwXLzcb0BYbNzxqGC3rHDhvZoG','ChjVy2vZC0LUChv0','C2vZC2LVBKLK','icaVAgvSCcaGicaGicaGicaGicaGicaGlsbtAg93ihrOAxmGAgvSCcbTzxnZywDL','iIb3AxrOig1VzgvSia','uKvtvu1fx0fhru5u','icaGtw9KzwW6ia','4PYfifn3AxrJAgvKihrVigfNzw50oIa','nZmWndaXCvrIDM1c','y29TBwfUza','y3jLyxrLqwDLBNq','tM9Uzq','mZm1mduWnvnAsLnTyq','4P2mifvUA25VD24Gy29TBwfUzdOGlW','4P2miezHAwXLzcb0BYbZzw5Kig1LC3nHz2u6','BwvZC2fNzunVDw50','lIbB','4P2miezHAwXLzcb0BYbZD2L0y2GGywDLBNq6','8j+sOsboBYbHz2vUDcbZzwXLy3rLzc4Gq3jLyxrLigfUigfNzw50igzPCNn0ihDPDgG6ic9JCMvHDguGpgfNzw50lw5HBwu+','otq3mdqXv2fvAfD5','C3vJy2vZCW'];a0_0x1f9d=function(){return _0x415919;};return a0_0x1f9d();}import{INTERFACE_TYPES,ORCHESTRATOR_ACTIONS}from'../utilities/constants.js';class CLIInterface{constructor(_0x59d712,_0xae2588,_0x2fbf67={}){const _0x4c230f=a0_0x4c01;this[_0x4c230f(0x10f)]=_0x59d712,this['logger']=_0xae2588,this[_0x4c230f(0x170)]=_0x2fbf67,this['rl']=null,this['sessionId']=_0x4c230f(0x174)+Date['now'](),this[_0x4c230f(0x128)]=null,this[_0x4c230f(0x114)]=![],this[_0x4c230f(0x126)]=_0x2fbf67['historySize']||0x3e8,this['commandHistory']=[],this['commands']={'help':this[_0x4c230f(0x141)][_0x4c230f(0x17d)](this),'exit':this[_0x4c230f(0x178)]['bind'](this),'quit':this['exit'][_0x4c230f(0x17d)](this),'status':this['showStatus']['bind'](this),'agents':this[_0x4c230f(0x171)]['bind'](this),'create':this['createAgent'][_0x4c230f(0x17d)](this),'switch':this['switchAgent'][_0x4c230f(0x17d)](this),'pause':this[_0x4c230f(0x11e)]['bind'](this),'resume':this[_0x4c230f(0x14f)]['bind'](this),'clear':this[_0x4c230f(0x13e)]['bind'](this),'history':this['showHistory']['bind'](this)};}async['initialize'](){const _0x1ff637=a0_0x4c01;this['rl']=a0_0x340e37['createInterface']({'input':process['stdin'],'output':process[_0x1ff637(0x14b)],'prompt':this['getPrompt'](),'historySize':this[_0x1ff637(0x126)]}),this['rl']['on']('line',this[_0x1ff637(0x123)][_0x1ff637(0x17d)](this)),this['rl']['on']('close',this['exit']['bind'](this)),this['rl']['on'](_0x1ff637(0x173),()=>{const _0x547fa5=_0x1ff637;console[_0x547fa5(0x122)](_0x547fa5(0x10b)),this['rl'][_0x547fa5(0x13c)]();}),this['isRunning']=!![],this['showWelcome'](),this['rl'][_0x1ff637(0x13c)]();}async[a0_0x9d7dfb(0x123)](_0x490b3c){const _0x18160c=a0_0x9d7dfb,_0x2e4cc4=_0x490b3c[_0x18160c(0x152)]();if(_0x2e4cc4['length']===0x0){this['rl']['prompt']();return;}this['commandHistory'][_0x18160c(0x10a)]({'command':_0x2e4cc4,'timestamp':new Date()['toISOString']()});this['commandHistory']['length']>this['historySize']&&this[_0x18160c(0x142)][_0x18160c(0x138)]();try{await this[_0x18160c(0x156)](_0x2e4cc4);}catch(_0x3937b2){console['error'](_0x18160c(0x120),_0x3937b2['message']),this[_0x18160c(0x116)]?.['error']('CLI\x20command\x20error',{'command':_0x2e4cc4,'error':_0x3937b2['message']});}this['isRunning']&&this['rl'][_0x18160c(0x13c)]();}async['processInput'](_0x456b58){const _0x291fe4=a0_0x9d7dfb;if(_0x456b58['startsWith']('/')){const _0x3c7124=_0x456b58['slice'](0x1)['split']('\x20'),_0x11d85a=_0x3c7124[0x0][_0x291fe4(0x13d)](),_0x313798=_0x3c7124[_0x291fe4(0x12c)](0x1);if(this[_0x291fe4(0x17f)][_0x11d85a]){await this['commands'][_0x11d85a](_0x313798);return;}else{console[_0x291fe4(0x122)](_0x291fe4(0x162)+_0x11d85a),console['log'](_0x291fe4(0x139));return;}}if(!this[_0x291fe4(0x128)]){console['log'](_0x291fe4(0x167));return;}await this['sendMessageToAgent'](_0x456b58);}async[a0_0x9d7dfb(0x151)](_0x3c7ee3){const _0x2c0d45=a0_0x9d7dfb;console['log'](_0x2c0d45(0x144));try{const _0x31aa79={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x2c0d45(0x115)],'payload':{'agentId':this['currentAgent']['id'],'message':_0x3c7ee3,'mode':'chat'},'projectDir':process[_0x2c0d45(0x10d)]()},_0x26f129=await this[_0x2c0d45(0x10f)][_0x2c0d45(0x131)](_0x31aa79);if(_0x26f129[_0x2c0d45(0x169)]){console[_0x2c0d45(0x122)]('🤖\x20Agent\x20response:'),console[_0x2c0d45(0x122)](_0x26f129['data'][_0x2c0d45(0x150)][_0x2c0d45(0x14a)]);if(_0x26f129[_0x2c0d45(0x107)][_0x2c0d45(0x125)]&&_0x26f129['data'][_0x2c0d45(0x125)]['length']>0x0){console['log'](_0x2c0d45(0x10e));for(const _0x55c3ec of _0x26f129[_0x2c0d45(0x107)]['toolResults']){console[_0x2c0d45(0x122)]('\x20\x20'+_0x55c3ec['toolId']+':\x20'+_0x55c3ec['status']),_0x55c3ec['result']&&console['log'](_0x2c0d45(0x117)+JSON['stringify'](_0x55c3ec[_0x2c0d45(0x106)],null,0x2));}}}else console[_0x2c0d45(0x12a)]('❌\x20Agent\x20response\x20failed:',_0x26f129[_0x2c0d45(0x12a)]);}catch(_0x2e22a1){console['error'](_0x2c0d45(0x163),_0x2e22a1['message']);}}[a0_0x9d7dfb(0x11c)](){const _0x2506fd=a0_0x9d7dfb;console['log'](''),console[_0x2506fd(0x122)]('🎯\x20Welcome\x20to\x20Loxia\x20Autopilot\x20One\x20CLI'),console[_0x2506fd(0x122)](_0x2506fd(0x153)),console['log']('\x20\x20\x20Type\x20/create\x20<name>\x20to\x20create\x20your\x20first\x20agent'),console['log']('');}async['showHelp'](){const _0x18e032=a0_0x9d7dfb;console[_0x18e032(0x122)](''),console['log'](_0x18e032(0x16c)),console['log'](''),console[_0x18e032(0x122)](_0x18e032(0x158)),console[_0x18e032(0x122)](_0x18e032(0x17b)),console['log'](_0x18e032(0x147)),console[_0x18e032(0x122)](_0x18e032(0x12b)),console['log'](_0x18e032(0x17e)),console[_0x18e032(0x122)]('\x20\x20/pause\x20<agent-id>\x20\x20\x20\x20-\x20Pause\x20an\x20agent'),console[_0x18e032(0x122)](_0x18e032(0x113)),console['log']('\x20\x20/history\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20command\x20history'),console[_0x18e032(0x122)](_0x18e032(0x124)),console[_0x18e032(0x122)](_0x18e032(0x148)),console['log'](''),console[_0x18e032(0x122)]('💬\x20Chat\x20with\x20agents:'),console['log'](_0x18e032(0x129)),console['log'](_0x18e032(0x179)),console[_0x18e032(0x122)]('');}async[a0_0x9d7dfb(0x119)](){const _0x224b34=a0_0x9d7dfb;try{const _0x3e2cb3={'interface':INTERFACE_TYPES[_0x224b34(0x172)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['GET_SESSION_STATE'],'payload':{},'projectDir':process[_0x224b34(0x10d)]()},_0x19eac8=await this[_0x224b34(0x10f)]['processRequest'](_0x3e2cb3);if(_0x19eac8['success']){const _0x5662a6=_0x19eac8[_0x224b34(0x107)];console[_0x224b34(0x122)](''),console['log']('📊\x20System\x20Status:'),console['log']('\x20\x20\x20Session\x20ID:\x20'+_0x5662a6[_0x224b34(0x157)]),console[_0x224b34(0x122)]('\x20\x20\x20Project:\x20'+_0x5662a6['projectDir']),console[_0x224b34(0x122)](_0x224b34(0x12f)+_0x5662a6['agents'][_0x224b34(0x16e)]),console['log']('\x20\x20\x20Current\x20Agent:\x20'+(this[_0x224b34(0x128)]?this[_0x224b34(0x128)]['name']:_0x224b34(0x160))),console[_0x224b34(0x122)]('');if(_0x5662a6['agents']['length']>0x0){console[_0x224b34(0x122)](_0x224b34(0x109));for(const _0x5ab415 of _0x5662a6['agents']){const _0x11ede7=_0x5ab415[_0x224b34(0x118)]?_0x5ab415['status']+'\x20(until\x20'+_0x5ab415['pausedUntil']+')':_0x5ab415[_0x224b34(0x177)];console[_0x224b34(0x122)]('\x20\x20\x20'+_0x5ab415['id']+':\x20'+_0x5ab415[_0x224b34(0x137)]+'\x20('+_0x11ede7+')');}console[_0x224b34(0x122)]('');}}else console[_0x224b34(0x12a)](_0x224b34(0x155),_0x19eac8[_0x224b34(0x12a)]);}catch(_0x4df5ab){console['error']('❌\x20Status\x20command\x20failed:',_0x4df5ab[_0x224b34(0x150)]);}}async[a0_0x9d7dfb(0x171)](){const _0x272afd=a0_0x9d7dfb;try{const _0x2c058d={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0x272afd(0x157)],'action':ORCHESTRATOR_ACTIONS['LIST_AGENTS'],'payload':{},'projectDir':process['cwd']()},_0xfddc2d=await this['orchestrator']['processRequest'](_0x2c058d);if(_0xfddc2d['success']){const _0xf38e60=_0xfddc2d[_0x272afd(0x107)];console[_0x272afd(0x122)]('');if(_0xf38e60['length']===0x0)console[_0x272afd(0x122)](_0x272afd(0x149)),console[_0x272afd(0x122)]('\x20\x20\x20Use\x20/create\x20<name>\x20to\x20create\x20your\x20first\x20agent');else{console[_0x272afd(0x122)](_0x272afd(0x12e));for(const _0x307900 of _0xf38e60){const _0x12847d=this[_0x272afd(0x128)]&&this[_0x272afd(0x128)]['id']===_0x307900['id']?_0x272afd(0x16d):'',_0xf9b271=_0x307900['isPaused']?_0x307900['status']+_0x272afd(0x16f)+_0x307900['pausedUntil']+')':_0x307900['status'];console[_0x272afd(0x122)](_0x272afd(0x10c)+_0x307900['id']+':\x20'+_0x307900['name']+_0x12847d),console[_0x272afd(0x122)](_0x272afd(0x14d)+_0xf9b271),console['log']('\x20\x20\x20\x20\x20Model:\x20'+_0x307900[_0x272afd(0x13a)]),console['log']('\x20\x20\x20\x20\x20Messages:\x20'+_0x307900[_0x272afd(0x164)]),console[_0x272afd(0x122)]('');}}}else console[_0x272afd(0x12a)]('❌\x20Failed\x20to\x20list\x20agents:',_0xfddc2d[_0x272afd(0x12a)]);}catch(_0x53dcb6){console[_0x272afd(0x12a)](_0x272afd(0x16a),_0x53dcb6['message']);}}async[a0_0x9d7dfb(0x15f)](_0x4896e5){const _0xe6ee6a=a0_0x9d7dfb;if(_0x4896e5[_0xe6ee6a(0x16e)]===0x0){console['log'](_0xe6ee6a(0x16b));return;}const _0x2078e3=_0x4896e5[0x0],_0x14f948=_0x4896e5[0x1]||_0xe6ee6a(0x17c);console['log']('🔨\x20Creating\x20agent\x20\x22'+_0x2078e3+_0xe6ee6a(0x159)+_0x14f948+_0xe6ee6a(0x105));try{const _0x191f6b={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0xe6ee6a(0x157)],'action':ORCHESTRATOR_ACTIONS['CREATE_AGENT'],'payload':{'name':_0x2078e3,'systemPrompt':_0xe6ee6a(0x135)+_0x2078e3+_0xe6ee6a(0x11b),'model':_0x14f948,'capabilities':[_0xe6ee6a(0x146),'filesystem','agentdelay','browser']},'projectDir':process['cwd']()},_0x2e1845=await this['orchestrator']['processRequest'](_0x191f6b);if(_0x2e1845['success']){const _0x33e600=_0x2e1845[_0xe6ee6a(0x107)];this['currentAgent']=_0x33e600,console['log'](_0xe6ee6a(0x112)),console['log'](_0xe6ee6a(0x12d)+_0x33e600['id']),console['log'](_0xe6ee6a(0x136)+_0x33e600[_0xe6ee6a(0x137)]),console['log'](_0xe6ee6a(0x15b)+_0x33e600[_0xe6ee6a(0x175)]),console[_0xe6ee6a(0x122)](_0xe6ee6a(0x121)),this['rl']['setPrompt'](this[_0xe6ee6a(0x17a)]());}else console[_0xe6ee6a(0x12a)](_0xe6ee6a(0x11d),_0x2e1845['error']);}catch(_0x3a4fda){console[_0xe6ee6a(0x12a)]('❌\x20Create\x20agent\x20command\x20failed:',_0x3a4fda[_0xe6ee6a(0x150)]);}}async[a0_0x9d7dfb(0x133)](_0x354492){const _0x376c2d=a0_0x9d7dfb;if(_0x354492['length']===0x0){console[_0x376c2d(0x122)](_0x376c2d(0x104));return;}const _0x284d4a=_0x354492[0x0];try{const _0x2ff509={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x376c2d(0x140)],'payload':{'agentId':_0x284d4a},'projectDir':process[_0x376c2d(0x10d)]()},_0x127bed=await this['orchestrator'][_0x376c2d(0x131)](_0x2ff509);_0x127bed['success']?(this[_0x376c2d(0x128)]=_0x127bed['data'],console[_0x376c2d(0x122)](_0x376c2d(0x15c)+this[_0x376c2d(0x128)]['name']+'\x20('+this['currentAgent']['id']+')'),this['rl'][_0x376c2d(0x11f)](this[_0x376c2d(0x17a)]())):console[_0x376c2d(0x12a)](_0x376c2d(0x166),_0x127bed['error']);}catch(_0x4fdc82){console[_0x376c2d(0x12a)]('❌\x20Switch\x20agent\x20command\x20failed:',_0x4fdc82['message']);}}async['pauseAgent'](_0xe4035e){const _0x3ba456=a0_0x9d7dfb;if(_0xe4035e[_0x3ba456(0x16e)]===0x0){console[_0x3ba456(0x122)]('❌\x20Usage:\x20/pause\x20<agent-id>\x20[duration]\x20[reason]');return;}const _0x131801=_0xe4035e[0x0],_0xb11e6c=parseInt(_0xe4035e[0x1])||0x3c,_0x59c7f6=_0xe4035e[_0x3ba456(0x12c)](0x2)['join']('\x20')||'Manual pause from CLI';try{const _0x1cb744={'interface':INTERFACE_TYPES[_0x3ba456(0x172)],'sessionId':this[_0x3ba456(0x157)],'action':ORCHESTRATOR_ACTIONS[_0x3ba456(0x130)],'payload':{'agentId':_0x131801,'duration':_0xb11e6c,'reason':_0x59c7f6},'projectDir':process['cwd']()},_0x44ad1d=await this[_0x3ba456(0x10f)][_0x3ba456(0x131)](_0x1cb744);_0x44ad1d[_0x3ba456(0x169)]?(console[_0x3ba456(0x122)]('✅\x20Agent\x20paused\x20for\x20'+_0xb11e6c+_0x3ba456(0x14e)),console[_0x3ba456(0x122)]('\x20\x20\x20Reason:\x20'+_0x59c7f6)):console['error'](_0x3ba456(0x127),_0x44ad1d[_0x3ba456(0x12a)]);}catch(_0x12ebd3){console[_0x3ba456(0x12a)]('❌\x20Pause\x20agent\x20command\x20failed:',_0x12ebd3['message']);}}async[a0_0x9d7dfb(0x14f)](_0x313068){const _0x331140=a0_0x9d7dfb;if(_0x313068['length']===0x0){console['log']('❌\x20Usage:\x20/resume\x20<agent-id>');return;}const _0x28c934=_0x313068[0x0];try{const _0x14b75a={'interface':INTERFACE_TYPES[_0x331140(0x172)],'sessionId':this[_0x331140(0x157)],'action':ORCHESTRATOR_ACTIONS[_0x331140(0x15a)],'payload':{'agentId':_0x28c934},'projectDir':process['cwd']()},_0x48487c=await this['orchestrator']['processRequest'](_0x14b75a);_0x48487c[_0x331140(0x169)]?console[_0x331140(0x122)]('✅\x20Agent\x20resumed\x20successfully'):console['error']('❌\x20Failed\x20to\x20resume\x20agent:',_0x48487c['error']);}catch(_0x42a3b0){console[_0x331140(0x12a)]('❌\x20Resume\x20agent\x20command\x20failed:',_0x42a3b0[_0x331140(0x150)]);}}async[a0_0x9d7dfb(0x134)](){const _0x1f3aa0=a0_0x9d7dfb;console['log'](''),console[_0x1f3aa0(0x122)](_0x1f3aa0(0x145));if(this[_0x1f3aa0(0x142)][_0x1f3aa0(0x16e)]===0x0)console[_0x1f3aa0(0x122)](_0x1f3aa0(0x154));else{const _0x36b0f7=this['commandHistory']['slice'](-0xa);for(let _0x4bff6e=0x0;_0x4bff6e<_0x36b0f7['length'];_0x4bff6e++){const _0x354fe5=_0x36b0f7[_0x4bff6e],_0x45fbe0=new Date(_0x354fe5['timestamp'])['toLocaleTimeString']();console['log'](_0x1f3aa0(0x10c)+(_0x4bff6e+0x1)+_0x1f3aa0(0x165)+_0x45fbe0+']\x20'+_0x354fe5[_0x1f3aa0(0x15e)]);}this['commandHistory'][_0x1f3aa0(0x16e)]>0xa&&console['log'](_0x1f3aa0(0x111)+(this['commandHistory']['length']-0xa)+_0x1f3aa0(0x110));}console[_0x1f3aa0(0x122)]('');}async['clearScreen'](){const _0x25e2af=a0_0x9d7dfb;console['clear'](),this[_0x25e2af(0x11c)]();}async['exit'](){this['isRunning']&&(console['log']('\x0a👋\x20Goodbye!'),this['isRunning']=![],this['rl']&&this['rl']['close']());}[a0_0x9d7dfb(0x17a)](){const _0x5c7a1c=a0_0x9d7dfb,_0x59995e=this[_0x5c7a1c(0x128)]?this[_0x5c7a1c(0x128)]['name']:'no-agent';return _0x5c7a1c(0x11a)+_0x59995e+'>\x20';}async['shutdown'](){await this['exit']();}}export default CLIInterface;
1
+ const a0_0x5ac9b9=a0_0x4300;(function(_0x5106b2,_0x1d7b96){const _0x5f1b39=a0_0x4300,_0xc1c1e9=_0x5106b2();while(!![]){try{const _0x11e17d=-parseInt(_0x5f1b39(0xdd))/0x1*(parseInt(_0x5f1b39(0xd0))/0x2)+parseInt(_0x5f1b39(0x129))/0x3+parseInt(_0x5f1b39(0x12c))/0x4*(-parseInt(_0x5f1b39(0x109))/0x5)+parseInt(_0x5f1b39(0xe3))/0x6+-parseInt(_0x5f1b39(0x100))/0x7+-parseInt(_0x5f1b39(0x12f))/0x8*(-parseInt(_0x5f1b39(0xce))/0x9)+parseInt(_0x5f1b39(0xe0))/0xa*(parseInt(_0x5f1b39(0xd8))/0xb);if(_0x11e17d===_0x1d7b96)break;else _0xc1c1e9['push'](_0xc1c1e9['shift']());}catch(_0x960c9a){_0xc1c1e9['push'](_0xc1c1e9['shift']());}}}(a0_0x3e24,0x8475c));import a0_0x1223cc from'readline';import{INTERFACE_TYPES,ORCHESTRATOR_ACTIONS}from'../utilities/constants.js';function a0_0x4300(_0x459c40,_0xad3149){_0x459c40=_0x459c40-0xca;const _0x3e2470=a0_0x3e24();let _0x430086=_0x3e2470[_0x459c40];if(a0_0x4300['TlkpiY']===undefined){var _0x4dcc34=function(_0x111811){const _0x9fc059='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1223cc='',_0x4d9fb0='';for(let _0x10fbd9=0x0,_0x4631fe,_0x4230c4,_0x4167a1=0x0;_0x4230c4=_0x111811['charAt'](_0x4167a1++);~_0x4230c4&&(_0x4631fe=_0x10fbd9%0x4?_0x4631fe*0x40+_0x4230c4:_0x4230c4,_0x10fbd9++%0x4)?_0x1223cc+=String['fromCharCode'](0xff&_0x4631fe>>(-0x2*_0x10fbd9&0x6)):0x0){_0x4230c4=_0x9fc059['indexOf'](_0x4230c4);}for(let _0x4b5cee=0x0,_0x12cb4c=_0x1223cc['length'];_0x4b5cee<_0x12cb4c;_0x4b5cee++){_0x4d9fb0+='%'+('00'+_0x1223cc['charCodeAt'](_0x4b5cee)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d9fb0);};a0_0x4300['GwZBTK']=_0x4dcc34,a0_0x4300['VfcnJE']={},a0_0x4300['TlkpiY']=!![];}const _0x3c0c9e=_0x3e2470[0x0],_0x4514cc=_0x459c40+_0x3c0c9e,_0xb889a4=a0_0x4300['VfcnJE'][_0x4514cc];return!_0xb889a4?(_0x430086=a0_0x4300['GwZBTK'](_0x430086),a0_0x4300['VfcnJE'][_0x4514cc]=_0x430086):_0x430086=_0xb889a4,_0x430086;}class CLIInterface{constructor(_0x4d9fb0,_0x10fbd9,_0x4631fe={}){const _0x3aa2ec=a0_0x4300;this['orchestrator']=_0x4d9fb0,this[_0x3aa2ec(0xf2)]=_0x10fbd9,this[_0x3aa2ec(0xdb)]=_0x4631fe,this['rl']=null,this['sessionId']='cli-'+Date['now'](),this[_0x3aa2ec(0xd4)]=null,this['isRunning']=![],this[_0x3aa2ec(0x130)]=_0x4631fe[_0x3aa2ec(0x130)]||0x3e8,this[_0x3aa2ec(0xda)]=[],this['commands']={'help':this[_0x3aa2ec(0xdf)][_0x3aa2ec(0xe8)](this),'exit':this['exit'][_0x3aa2ec(0xe8)](this),'quit':this['exit'][_0x3aa2ec(0xe8)](this),'status':this[_0x3aa2ec(0x121)][_0x3aa2ec(0xe8)](this),'agents':this[_0x3aa2ec(0xff)]['bind'](this),'create':this[_0x3aa2ec(0x11a)][_0x3aa2ec(0xe8)](this),'switch':this[_0x3aa2ec(0xfc)]['bind'](this),'pause':this['pauseAgent'][_0x3aa2ec(0xe8)](this),'resume':this[_0x3aa2ec(0x111)]['bind'](this),'clear':this['clearScreen'][_0x3aa2ec(0xe8)](this),'history':this[_0x3aa2ec(0x137)][_0x3aa2ec(0xe8)](this)};}async['initialize'](){const _0x2ec5c9=a0_0x4300;this['rl']=a0_0x1223cc[_0x2ec5c9(0x115)]({'input':process[_0x2ec5c9(0x101)],'output':process[_0x2ec5c9(0x114)],'prompt':this[_0x2ec5c9(0x10a)](),'historySize':this['historySize']}),this['rl']['on']('line',this[_0x2ec5c9(0x125)]['bind'](this)),this['rl']['on']('close',this[_0x2ec5c9(0x123)][_0x2ec5c9(0xe8)](this)),this['rl']['on'](_0x2ec5c9(0xf6),()=>{const _0x4c6cde=_0x2ec5c9;console['log'](_0x4c6cde(0xf3)),this['rl']['prompt']();}),this[_0x2ec5c9(0xe7)]=!![],this['showWelcome'](),this['rl'][_0x2ec5c9(0x108)]();}async['handleInput'](_0x4230c4){const _0x4e7132=a0_0x4300,_0x4167a1=_0x4230c4[_0x4e7132(0x128)]();if(_0x4167a1[_0x4e7132(0xd6)]===0x0){this['rl']['prompt']();return;}this['commandHistory']['push']({'command':_0x4167a1,'timestamp':new Date()['toISOString']()});this['commandHistory'][_0x4e7132(0xd6)]>this['historySize']&&this['commandHistory']['shift']();try{await this[_0x4e7132(0xcd)](_0x4167a1);}catch(_0x4b5cee){console[_0x4e7132(0x107)]('❌\x20Error:',_0x4b5cee['message']),this['logger']?.['error'](_0x4e7132(0x120),{'command':_0x4167a1,'error':_0x4b5cee['message']});}this[_0x4e7132(0xe7)]&&this['rl']['prompt']();}async[a0_0x5ac9b9(0xcd)](_0x12cb4c){const _0xe33ffa=a0_0x5ac9b9;if(_0x12cb4c[_0xe33ffa(0x131)]('/')){const _0x204f7e=_0x12cb4c['slice'](0x1)['split']('\x20'),_0x13413c=_0x204f7e[0x0][_0xe33ffa(0xfd)](),_0x38c25f=_0x204f7e[_0xe33ffa(0x12e)](0x1);if(this[_0xe33ffa(0x11c)][_0x13413c]){await this['commands'][_0x13413c](_0x38c25f);return;}else{console['log']('❌\x20Unknown\x20command:\x20/'+_0x13413c),console[_0xe33ffa(0x124)]('Type\x20/help\x20for\x20available\x20commands');return;}}if(!this[_0xe33ffa(0xd4)]){console[_0xe33ffa(0x124)](_0xe33ffa(0x132));return;}await this['sendMessageToAgent'](_0x12cb4c);}async[a0_0x5ac9b9(0xd1)](_0x1cfb23){const _0x5aa13f=a0_0x5ac9b9;console[_0x5aa13f(0x124)](_0x5aa13f(0x11d));try{const _0x21cb6d={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x5aa13f(0xe9)],'payload':{'agentId':this['currentAgent']['id'],'message':_0x1cfb23,'mode':'chat'},'projectDir':process[_0x5aa13f(0xe1)]()},_0x50c81b=await this['orchestrator']['processRequest'](_0x21cb6d);if(_0x50c81b['success']){console[_0x5aa13f(0x124)](_0x5aa13f(0x110)),console[_0x5aa13f(0x124)](_0x50c81b['data']['message'][_0x5aa13f(0x10d)]);if(_0x50c81b['data'][_0x5aa13f(0x118)]&&_0x50c81b[_0x5aa13f(0xfe)][_0x5aa13f(0x118)]['length']>0x0){console['log']('\x0a🔧\x20Tool\x20execution\x20results:');for(const _0x4d62b9 of _0x50c81b[_0x5aa13f(0xfe)][_0x5aa13f(0x118)]){console[_0x5aa13f(0x124)]('\x20\x20'+_0x4d62b9[_0x5aa13f(0xfa)]+':\x20'+_0x4d62b9['status']),_0x4d62b9['result']&&console['log']('\x20\x20\x20\x20Result:\x20'+JSON[_0x5aa13f(0x134)](_0x4d62b9['result'],null,0x2));}}}else console[_0x5aa13f(0x107)]('❌\x20Agent\x20response\x20failed:',_0x50c81b['error']);}catch(_0xb2df13){console['error']('❌\x20Failed\x20to\x20send\x20message:',_0xb2df13['message']);}}['showWelcome'](){const _0x408aff=a0_0x5ac9b9;console['log'](''),console[_0x408aff(0x124)]('🎯\x20Welcome\x20to\x20Loxia\x20Autopilot\x20One\x20CLI'),console[_0x408aff(0x124)]('\x20\x20\x20Type\x20/help\x20for\x20available\x20commands'),console['log'](_0x408aff(0xf4)),console['log']('');}async[a0_0x5ac9b9(0xdf)](){const _0x800f94=a0_0x5ac9b9;console[_0x800f94(0x124)](''),console['log'](_0x800f94(0x13b)),console['log'](''),console[_0x800f94(0x124)]('\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['log']('\x20\x20/status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Show\x20system\x20status'),console['log']('\x20\x20/agents\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20List\x20all\x20agents'),console['log']('\x20\x20/create\x20<name>\x20\x20\x20\x20\x20\x20\x20-\x20Create\x20a\x20new\x20agent'),console['log'](_0x800f94(0x11f)),console['log'](_0x800f94(0xec)),console[_0x800f94(0x124)](_0x800f94(0xcb)),console[_0x800f94(0x124)](_0x800f94(0x12a)),console[_0x800f94(0x124)](_0x800f94(0x10c)),console['log'](_0x800f94(0xe2)),console['log'](''),console['log'](_0x800f94(0x133)),console['log'](_0x800f94(0x11b)),console['log']('\x20\x20\x20Agents\x20can\x20use\x20tools\x20and\x20communicate\x20with\x20other\x20agents'),console[_0x800f94(0x124)]('');}async['showStatus'](){const _0x5aa46e=a0_0x5ac9b9;try{const _0x518fe8={'interface':INTERFACE_TYPES[_0x5aa46e(0xfb)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['GET_SESSION_STATE'],'payload':{},'projectDir':process[_0x5aa46e(0xe1)]()},_0x9202e2=await this['orchestrator']['processRequest'](_0x518fe8);if(_0x9202e2[_0x5aa46e(0xe5)]){const _0x974b02=_0x9202e2['data'];console[_0x5aa46e(0x124)](''),console[_0x5aa46e(0x124)]('📊\x20System\x20Status:'),console[_0x5aa46e(0x124)]('\x20\x20\x20Session\x20ID:\x20'+_0x974b02[_0x5aa46e(0xd9)]),console['log'](_0x5aa46e(0xd5)+_0x974b02['projectDir']),console['log'](_0x5aa46e(0xeb)+_0x974b02[_0x5aa46e(0x12b)][_0x5aa46e(0xd6)]),console[_0x5aa46e(0x124)](_0x5aa46e(0xed)+(this[_0x5aa46e(0xd4)]?this[_0x5aa46e(0xd4)][_0x5aa46e(0x126)]:'None')),console['log']('');if(_0x974b02['agents']['length']>0x0){console['log']('🤖\x20Active\x20Agents:');for(const _0x1abf02 of _0x974b02[_0x5aa46e(0x12b)]){const _0xc77103=_0x1abf02['isPaused']?_0x1abf02['status']+_0x5aa46e(0x13c)+_0x1abf02[_0x5aa46e(0x10b)]+')':_0x1abf02['status'];console['log'](_0x5aa46e(0x112)+_0x1abf02['id']+':\x20'+_0x1abf02[_0x5aa46e(0x126)]+'\x20('+_0xc77103+')');}console['log']('');}}else console['error'](_0x5aa46e(0xf7),_0x9202e2['error']);}catch(_0x1a4c5a){console[_0x5aa46e(0x107)](_0x5aa46e(0x136),_0x1a4c5a[_0x5aa46e(0x13a)]);}}async['listAgents'](){const _0x490990=a0_0x5ac9b9;try{const _0x57ff67={'interface':INTERFACE_TYPES[_0x490990(0xfb)],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['LIST_AGENTS'],'payload':{},'projectDir':process[_0x490990(0xe1)]()},_0x347c30=await this[_0x490990(0xcc)][_0x490990(0x119)](_0x57ff67);if(_0x347c30['success']){const _0x3ded74=_0x347c30[_0x490990(0xfe)];console[_0x490990(0x124)]('');if(_0x3ded74['length']===0x0)console['log']('📭\x20No\x20agents\x20created\x20yet'),console[_0x490990(0x124)]('\x20\x20\x20Use\x20/create\x20<name>\x20to\x20create\x20your\x20first\x20agent');else{console['log']('🤖\x20Available\x20Agents:');for(const _0x4a7c38 of _0x3ded74){const _0x34d939=this['currentAgent']&&this[_0x490990(0xd4)]['id']===_0x4a7c38['id']?_0x490990(0xdc):'',_0x232fb9=_0x4a7c38[_0x490990(0xe6)]?_0x4a7c38['status']+'\x20(until\x20'+_0x4a7c38[_0x490990(0x10b)]+')':_0x4a7c38[_0x490990(0xde)];console[_0x490990(0x124)]('\x20\x20\x20'+_0x4a7c38['id']+':\x20'+_0x4a7c38['name']+_0x34d939),console['log']('\x20\x20\x20\x20\x20Status:\x20'+_0x232fb9),console['log']('\x20\x20\x20\x20\x20Model:\x20'+_0x4a7c38['currentModel']),console['log']('\x20\x20\x20\x20\x20Messages:\x20'+_0x4a7c38['messageCount']),console[_0x490990(0x124)]('');}}}else console['error']('❌\x20Failed\x20to\x20list\x20agents:',_0x347c30['error']);}catch(_0x4f807b){console[_0x490990(0x107)](_0x490990(0xd3),_0x4f807b[_0x490990(0x13a)]);}}async[a0_0x5ac9b9(0x11a)](_0x37cc50){const _0x2ee307=a0_0x5ac9b9;if(_0x37cc50['length']===0x0){console[_0x2ee307(0x124)](_0x2ee307(0x105));return;}const _0x38b850=_0x37cc50[0x0],_0x5ec168=_0x37cc50[0x1]||'anthropic-sonnet';console[_0x2ee307(0x124)]('🔨\x20Creating\x20agent\x20\x22'+_0x38b850+'\x22\x20with\x20model\x20'+_0x5ec168+_0x2ee307(0xe4));try{const _0x4b0762={'interface':INTERFACE_TYPES[_0x2ee307(0xfb)],'sessionId':this[_0x2ee307(0xd9)],'action':ORCHESTRATOR_ACTIONS['CREATE_AGENT'],'payload':{'name':_0x38b850,'systemPrompt':'You\x20are\x20'+_0x38b850+',\x20an\x20AI\x20assistant\x20created\x20in\x20the\x20Loxia\x20Autopilot\x20One\x20system.\x20You\x20can\x20help\x20with\x20coding,\x20analysis,\x20and\x20various\x20tasks\x20using\x20the\x20available\x20tools.','model':_0x5ec168,'capabilities':['terminal',_0x2ee307(0x10e),_0x2ee307(0xd2),_0x2ee307(0xf5)]},'projectDir':process[_0x2ee307(0xe1)]()},_0x5c1e25=await this['orchestrator'][_0x2ee307(0x119)](_0x4b0762);if(_0x5c1e25[_0x2ee307(0xe5)]){const _0x522b4e=_0x5c1e25[_0x2ee307(0xfe)];this[_0x2ee307(0xd4)]=_0x522b4e,console[_0x2ee307(0x124)](_0x2ee307(0xd7)),console[_0x2ee307(0x124)](_0x2ee307(0x116)+_0x522b4e['id']),console['log']('\x20\x20\x20Name:\x20'+_0x522b4e[_0x2ee307(0x126)]),console['log']('\x20\x20\x20Model:\x20'+_0x522b4e[_0x2ee307(0x102)]),console[_0x2ee307(0x124)]('\x20\x20\x20Switched\x20to\x20this\x20agent\x20automatically'),this['rl'][_0x2ee307(0x135)](this[_0x2ee307(0x10a)]());}else console[_0x2ee307(0x107)]('❌\x20Failed\x20to\x20create\x20agent:',_0x5c1e25['error']);}catch(_0x4a21ea){console[_0x2ee307(0x107)](_0x2ee307(0x113),_0x4a21ea[_0x2ee307(0x13a)]);}}async['switchAgent'](_0x1e1473){const _0xf05e01=a0_0x5ac9b9;if(_0x1e1473['length']===0x0){console['log'](_0xf05e01(0xef));return;}const _0x44de22=_0x1e1473[0x0];try{const _0x511f53={'interface':INTERFACE_TYPES['CLI'],'sessionId':this[_0xf05e01(0xd9)],'action':ORCHESTRATOR_ACTIONS[_0xf05e01(0x11e)],'payload':{'agentId':_0x44de22},'projectDir':process[_0xf05e01(0xe1)]()},_0x565922=await this['orchestrator']['processRequest'](_0x511f53);_0x565922[_0xf05e01(0xe5)]?(this['currentAgent']=_0x565922['data'],console[_0xf05e01(0x124)]('✅\x20Switched\x20to\x20agent:\x20'+this[_0xf05e01(0xd4)]['name']+'\x20('+this[_0xf05e01(0xd4)]['id']+')'),this['rl']['setPrompt'](this[_0xf05e01(0x10a)]())):console[_0xf05e01(0x107)](_0xf05e01(0x122),_0x565922['error']);}catch(_0xd12aa6){console['error']('❌\x20Switch\x20agent\x20command\x20failed:',_0xd12aa6[_0xf05e01(0x13a)]);}}async['pauseAgent'](_0x25e682){const _0x4fc27e=a0_0x5ac9b9;if(_0x25e682[_0x4fc27e(0xd6)]===0x0){console[_0x4fc27e(0x124)]('❌\x20Usage:\x20/pause\x20<agent-id>\x20[duration]\x20[reason]');return;}const _0x4a8043=_0x25e682[0x0],_0x5a6728=parseInt(_0x25e682[0x1])||0x3c,_0x25a230=_0x25e682[_0x4fc27e(0x12e)](0x2)[_0x4fc27e(0x127)]('\x20')||'Manual pause from CLI';try{const _0x3d834a={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS['PAUSE_AGENT'],'payload':{'agentId':_0x4a8043,'duration':_0x5a6728,'reason':_0x25a230},'projectDir':process[_0x4fc27e(0xe1)]()},_0x50fae6=await this['orchestrator']['processRequest'](_0x3d834a);_0x50fae6[_0x4fc27e(0xe5)]?(console['log']('✅\x20Agent\x20paused\x20for\x20'+_0x5a6728+_0x4fc27e(0x103)),console[_0x4fc27e(0x124)](_0x4fc27e(0xf1)+_0x25a230)):console['error'](_0x4fc27e(0xf8),_0x50fae6['error']);}catch(_0xa9fd7b){console[_0x4fc27e(0x107)](_0x4fc27e(0x104),_0xa9fd7b[_0x4fc27e(0x13a)]);}}async['resumeAgent'](_0x6ce38f){const _0x20ea1e=a0_0x5ac9b9;if(_0x6ce38f['length']===0x0){console[_0x20ea1e(0x124)]('❌\x20Usage:\x20/resume\x20<agent-id>');return;}const _0x4dbedd=_0x6ce38f[0x0];try{const _0x4b15a3={'interface':INTERFACE_TYPES['CLI'],'sessionId':this['sessionId'],'action':ORCHESTRATOR_ACTIONS[_0x20ea1e(0xee)],'payload':{'agentId':_0x4dbedd},'projectDir':process[_0x20ea1e(0xe1)]()},_0x3ab04e=await this[_0x20ea1e(0xcc)][_0x20ea1e(0x119)](_0x4b15a3);_0x3ab04e[_0x20ea1e(0xe5)]?console['log'](_0x20ea1e(0x13d)):console['error']('❌\x20Failed\x20to\x20resume\x20agent:',_0x3ab04e['error']);}catch(_0x4f3f43){console['error']('❌\x20Resume\x20agent\x20command\x20failed:',_0x4f3f43['message']);}}async['showHistory'](){const _0x4b4702=a0_0x5ac9b9;console[_0x4b4702(0x124)](''),console[_0x4b4702(0x124)](_0x4b4702(0x106));if(this[_0x4b4702(0xda)]['length']===0x0)console['log']('\x20\x20\x20No\x20commands\x20executed\x20yet');else{const _0x45c544=this['commandHistory']['slice'](-0xa);for(let _0x345f6c=0x0;_0x345f6c<_0x45c544[_0x4b4702(0xd6)];_0x345f6c++){const _0x45b5e6=_0x45c544[_0x345f6c],_0xeed44b=new Date(_0x45b5e6['timestamp'])[_0x4b4702(0x10f)]();console['log'](_0x4b4702(0x112)+(_0x345f6c+0x1)+_0x4b4702(0xca)+_0xeed44b+']\x20'+_0x45b5e6[_0x4b4702(0xf9)]);}this['commandHistory']['length']>0xa&&console[_0x4b4702(0x124)]('\x20\x20\x20...\x20and\x20'+(this['commandHistory']['length']-0xa)+_0x4b4702(0x117));}console['log']('');}async[a0_0x5ac9b9(0xea)](){const _0x56496f=a0_0x5ac9b9;console['clear'](),this[_0x56496f(0x138)]();}async['exit'](){const _0x10b3bd=a0_0x5ac9b9;this[_0x10b3bd(0xe7)]&&(console[_0x10b3bd(0x124)](_0x10b3bd(0x12d)),this[_0x10b3bd(0xe7)]=![],this['rl']&&this['rl'][_0x10b3bd(0x139)]());}['getPrompt'](){const _0x409538=a0_0x5ac9b9,_0xc6eea0=this[_0x409538(0xd4)]?this['currentAgent']['name']:_0x409538(0xcf);return'loxia:'+_0xc6eea0+'>\x20';}async[a0_0x5ac9b9(0xf0)](){await this['exit']();}}function a0_0x3e24(){const _0xdfeed0=['B3jJAgvZDhjHDg9Y','ChjVy2vZC0LUChv0','mtCWmtK5D1bAAM90','BM8TywDLBNq','mJu4nZrHAhzLuhe','C2vUze1LC3nHz2vuB0fNzw50','ywDLBNrKzwXHEq','4P2mieXPC3qGywDLBNrZignVBw1HBMqGzMfPBgvKoG','y3vYCMvUDefNzw50','icaGuhjVAMvJDdOG','BgvUz3rO','4PYfiefNzw50ignYzwf0zwqGC3vJy2vZC2z1BgX5iq','nJq5ntyXCvblwxHw','C2vZC2LVBKLK','y29TBwfUzeHPC3rVCNK','y29UzMLN','icHJDxjYzw50kq','ntfOzMLprMC','C3rHDhvZ','C2HVD0HLBha','mJaWDvPZAM9T','y3DK','icaVzxHPDcbVCIaVCxvPDcaGicaGicaTiev4AxqGDgHLienmsq','ntu2ntC4qLnRzNPT','lI4U','C3vJy2vZCW','AxnqyxvZzwq','AxnsDw5UAw5N','yMLUza','u0vorf9nrvntquDf','y2XLyxjty3jLzw4','icaGqwDLBNrZoIa','icaVCgf1C2uGpgfNzw50lwLKpIaGicaTifbHDxnLigfUigfNzw50','icaGq3vYCMvUDcbbz2vUDdOG','uKvtvu1fx0fhru5u','4P2mifvZywDLoIaVC3DPDgnOidXHz2vUDc1Pzd4','C2H1DgrVD24','icaGuMvHC29UoIa','Bg9Nz2vY','cIHuBYbLEgL0lcb0ExbLicjLEgL0iIbVCIbWCMvZCYbdDhjSk0mGywDHAw4P','icaGvhLWzsaVy3jLyxrLidXUyw1LpIb0BYbJCMvHDguGEw91CIbMAxjZDcbHz2vUDa','yNjVD3nLCG','u0Lhsu5u','4P2miezHAwXLzcb0BYbNzxqGC3rHDhvZoG','4P2miezHAwXLzcb0BYbWyxvZzsbHz2vUDdO','y29TBwfUza','Dg9VBeLK','q0Xj','C3DPDgnOqwDLBNq','Dg9mB3DLCKnHC2u','zgf0yq','BgLZDefNzw50CW','nZiWmZGXovf3uKT5ta','C3rKAw4','ChjLzMvYCMvKtw9KzwW','ihnLy29Uzhm','4P2mifbHDxnLigfNzw50ignVBw1HBMqGzMfPBgvKoG','4P2mifvZywDLoIaVy3jLyxrLidXHz2vUDc1Uyw1LpIbBBw9KzwXD','8j+tNcbdB21Tyw5KieHPC3rVCNK6','zxjYB3i','ChjVBxb0','mta4nwHmvLbIzW','z2v0uhjVBxb0','Cgf1C2vKvw50AwW','icaVy2XLyxiGicaGicaGicaGicaGicaTienSzwfYihnJCMvLBG','y29UDgvUDa','zMLSzxn5C3rLBq','Dg9mB2nHBgvuAw1Lu3rYAw5N','8j+KLIbbz2vUDcbYzxnWB25ZztO','CMvZDw1LqwDLBNq','icaG','4P2mienYzwf0zsbHz2vUDcbJB21Tyw5KigzHAwXLzdO','C3rKB3v0','y3jLyxrLsw50zxjMywnL','icaGsuq6ia','ig1VCMuGy29TBwfUzhm','Dg9VBfjLC3vSDhm','ChjVy2vZC1jLCxvLC3q','y3jLyxrLqwDLBNq','icaGu2LTCgX5ihr5CguGEw91CIbTzxnZywDLihrVihnLBMqGAxqGDg8GDgHLign1CNjLBNqGywDLBNq','y29TBwfUzhm','8j+tPcbtzw5KAw5NihrVigfNzw50lI4U','r0vux0fhru5ux1nuqvrvuW','icaVC3DPDgnOidXHz2vUDc1Pzd4GicaTifn3AxrJAcb0BYbKAwzMzxjLBNqGywDLBNq','q0XjignVBw1HBMqGzxjYB3i','C2HVD1n0yxr1CW','4P2miezHAwXLzcb0BYbZD2L0y2GGywDLBNq6','zxHPDa','Bg9N','AgfUzgXLsw5WDxq','BMfTzq','AM9PBG','DhjPBq','mJCYodu2m0voC1zmzG','icaVAgLZDg9YEsaGicaGicaGicaGicaTifnOB3CGy29TBwfUzcbOAxn0B3j5','ywDLBNrZ','mZy0nen4zvHnCq','cVcFKySGr29Vzgj5zse','C2XPy2u','mta0CgHNBfbp','AgLZDg9YEvnPEMu','C3rHCNrZv2L0Aa','8j+sOsboBYbHz2vUDcbZzwXLy3rLzc4Gq3jLyxrLigfUigfNzw50igzPCNn0ihDPDgG6ic9JCMvHDguGpgfNzw50lw5HBwu+','8j+sRcbdAgf0ihDPDgGGywDLBNrZoG','C3rYAw5NAwz5','C2v0uhjVBxb0','4P2mifn0yxr1CYbJB21Tyw5KigzHAwXLzdO','C2HVD0HPC3rVCNK','C2HVD1DLBgnVBwu','y2XVC2u','BwvZC2fNzq','8j+tMIbmB3HPysbbDxrVCgLSB3qGt25LienmssbdB21Tyw5KCZO','icH1BNrPBca','4PYfiefNzw50ihjLC3vTzwqGC3vJy2vZC2z1BgX5','lIbB','icaVCMvZDw1LidXHz2vUDc1Pzd4GicaTifjLC3vTzsbHihbHDxnLzcbHz2vUDa'];a0_0x3e24=function(){return _0xdfeed0;};return a0_0x3e24();}export default CLIInterface;
@@ -1 +1 @@
1
- const a0_0x1ce478=a0_0x4752;(function(_0x36d6c4,_0x4d8859){const _0x31196=a0_0x4752,_0x58d4fa=_0x36d6c4();while(!![]){try{const _0x1fe104=parseInt(_0x31196(0x1a1))/0x1+-parseInt(_0x31196(0x189))/0x2*(-parseInt(_0x31196(0x1a4))/0x3)+-parseInt(_0x31196(0x198))/0x4*(-parseInt(_0x31196(0x1af))/0x5)+parseInt(_0x31196(0x1a7))/0x6*(parseInt(_0x31196(0x19e))/0x7)+parseInt(_0x31196(0x1ad))/0x8*(parseInt(_0x31196(0x19d))/0x9)+-parseInt(_0x31196(0x196))/0xa+-parseInt(_0x31196(0x192))/0xb;if(_0x1fe104===_0x4d8859)break;else _0x58d4fa['push'](_0x58d4fa['shift']());}catch(_0x55550a){_0x58d4fa['push'](_0x58d4fa['shift']());}}}(a0_0x3d7a,0x87797));import{describe,test,expect}from'@jest/globals';function a0_0x4752(_0x15f0f4,_0x5b251f){_0x15f0f4=_0x15f0f4-0x187;const _0x3d7adf=a0_0x3d7a();let _0x4752c6=_0x3d7adf[_0x15f0f4];if(a0_0x4752['jVNBBb']===undefined){var _0x383bf6=function(_0x5450d0){const _0x765fc4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x521f2b='',_0x117be1='';for(let _0x5fca3c=0x0,_0x584c42,_0x3158c9,_0x312d4b=0x0;_0x3158c9=_0x5450d0['charAt'](_0x312d4b++);~_0x3158c9&&(_0x584c42=_0x5fca3c%0x4?_0x584c42*0x40+_0x3158c9:_0x3158c9,_0x5fca3c++%0x4)?_0x521f2b+=String['fromCharCode'](0xff&_0x584c42>>(-0x2*_0x5fca3c&0x6)):0x0){_0x3158c9=_0x765fc4['indexOf'](_0x3158c9);}for(let _0x55b410=0x0,_0x3dbe63=_0x521f2b['length'];_0x55b410<_0x3dbe63;_0x55b410++){_0x117be1+='%'+('00'+_0x521f2b['charCodeAt'](_0x55b410)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x117be1);};a0_0x4752['YxOppr']=_0x383bf6,a0_0x4752['sKbcQg']={},a0_0x4752['jVNBBb']=!![];}const _0x181551=_0x3d7adf[0x0],_0xc90bf7=_0x15f0f4+_0x181551,_0x5cd5b5=a0_0x4752['sKbcQg'][_0xc90bf7];return!_0x5cd5b5?(_0x4752c6=a0_0x4752['YxOppr'](_0x4752c6),a0_0x4752['sKbcQg'][_0xc90bf7]=_0x4752c6):_0x4752c6=_0x5cd5b5,_0x4752c6;}function a0_0x3d7a(){const _0x1072f3=['sgvSCfbHBMvSigrLzMLUzxmGC2HVCNrJDxqGy29UzMLNDxjHDgLVBNm','DxnLsw5WDxq','mta1ofLAwxbXzq','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','Dg9czurLzMLUzwq','y3jLyxrLrwXLBwvUDa','qwDLBNrdCMvHDg9Y','qwDLBNrtD2L0y2HLCIbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','lI4VlI4Vy29TCg9Uzw50CY9tzxr0Aw5NC1bHBMvSlMPZ','qwDLBNrdCMvHDg9YigrLzMLUzxmGC3rLCcbJB25ZDgfUDhm','qwDLBNrdCMvHDg9YigLZigeGzNvUy3rPB24Gy29TCg9Uzw50','mJy0mJG0ntDluwj6twS','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDenYzwf0B3iUANm','u2vHCMnOugfUzwWGAxmGysbMDw5JDgLVBIbJB21WB25LBNq','Dg9czq','nZCWmJuWB3DkuMrJ','CMvUzgvY','nty1ndHMz0veq0q','lI4VlI4Vy29TCg9Uzw50CY9izwXWugfUzwWUANm','ugHHC2uGmtaGlsbdB21WB25LBNqGq29UC3rHBNrZigfUzcbdB25MAwD1CMf0Aw9UCW','lI4VlI4Vy29TCg9Uzw50CY9tzwfYy2Hqyw5LBc5QCW','sgvSCfbHBMvSigLZigeGzNvUy3rPB24Gy29TCg9Uzw50','ouDhyuvNqq','mZGWmZaZzLLYu1D2','Dg9czvvUzgvMAw5Lza','qwDLBNrtD2L0y2HLCG','ntu3mdiWCLbRt1vU','BwfW','u2v0DgLUz3nqyw5LBcbKzwzPBMvZignHDgvNB3j5ignVBNn0yw50CW','ndiYn0frrLfeBq','sgvSCfbHBMvS','CMvHy3q','nJbmyLzLzg8','ChjVDg90ExbL','ugHHC2uGmtaGlsbbz2vUDfn3AxrJAgvYic0Gu3rYDwn0DxjL','Aw5R','u2vHCMnOugfUzwW','BgvUz3rO','ndK4nJKXmMv4t21oDq','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDfn3AxrJAgvYlMPZ','mJaWwM1PugTd','zgvMyxvSDa','zNvUy3rPB24','ugHHC2uGmtaGlsbtzxr0Aw5NC1bHBMvSic0Gu3rYDwn0DxjL','ugHHC2uGmtaGlsbbzhzHBMnLzcbgzwf0DxjLCYaTieLTCg9YDhm'];a0_0x3d7a=function(){return _0x1072f3;};return a0_0x3d7a();}describe(a0_0x1ce478(0x1b3),()=>{test('AgentSwitcher component can be imported',async()=>{const _0x2a9319=a0_0x4752,{AgentSwitcher:_0x521f2b}=await import('../../components/AgentSwitcher.js');expect(_0x521f2b)['toBeDefined'](),expect(typeof _0x521f2b)[_0x2a9319(0x195)](_0x2a9319(0x1b1));},0x7530),test('AgentCreator component can be imported',async()=>{const _0x14daf2=a0_0x4752,{AgentCreator:_0x117be1}=await import(_0x14daf2(0x193));expect(_0x117be1)['toBeDefined'](),expect(typeof _0x117be1)['toBe']('function');}),test('SettingsPanel component can be imported',async()=>{const _0x53cf44=a0_0x4752,{SettingsPanel:_0x5fca3c}=await import(_0x53cf44(0x18f));expect(_0x5fca3c)['toBeDefined'](),expect(typeof _0x5fca3c)['toBe'](_0x53cf44(0x1b1));}),test('SearchPanel component can be imported',async()=>{const _0x15ff58=a0_0x4752,{SearchPanel:_0x584c42}=await import(_0x15ff58(0x19b));expect(_0x584c42)['toBeDefined'](),expect(typeof _0x584c42)[_0x15ff58(0x195)](_0x15ff58(0x1b1));}),test('HelpPanel component can be imported',async()=>{const _0x397f6b=a0_0x4752,{HelpPanel:_0x3158c9}=await import('../../components/HelpPanel.js');expect(_0x3158c9)[_0x397f6b(0x18b)](),expect(typeof _0x3158c9)['toBe']('function');});}),describe(a0_0x1ce478(0x1a9),()=>{const _0xfec89=a0_0x1ce478;test(_0xfec89(0x18e),async()=>{const _0x3dc6b9=_0xfec89,{AgentSwitcher:_0x312d4b}=await import(_0x3dc6b9(0x1ae));expect(typeof _0x312d4b)[_0x3dc6b9(0x195)](_0x3dc6b9(0x1b1)),expect(_0x312d4b['prototype']?.['render'])['toBeUndefined']();}),test('AgentSwitcher is default export',async()=>{const _0x5792f9=_0xfec89,module=await import(_0x5792f9(0x1ae));expect(module['default'])[_0x5792f9(0x18b)](),expect(module[_0x5792f9(0x1b0)])[_0x5792f9(0x195)](module[_0x5792f9(0x1a0)]);});}),describe('Phase\x2010\x20-\x20AgentCreator\x20-\x20Structure',()=>{const _0x47b4a8=a0_0x1ce478;test(_0x47b4a8(0x191),async()=>{const _0x2ab907=_0x47b4a8,{AgentCreator:_0x55b410}=await import(_0x2ab907(0x193));expect(typeof _0x55b410)['toBe']('function'),expect(_0x55b410[_0x2ab907(0x1a8)]?.[_0x2ab907(0x197)])['toBeUndefined']();}),test('AgentCreator is default export',async()=>{const _0x542ef3=_0x47b4a8,module=await import('../../components/AgentCreator.js');expect(module['default'])['toBeDefined'](),expect(module['default'])['toBe'](module[_0x542ef3(0x18d)]);});}),describe(a0_0x1ce478(0x1b2),()=>{test('SettingsPanel\x20is\x20a\x20function\x20component',async()=>{const _0x51912e=a0_0x4752,{SettingsPanel:_0x3dbe63}=await import(_0x51912e(0x18f));expect(typeof _0x3dbe63)['toBe']('function'),expect(_0x3dbe63['prototype']?.['render'])['toBeUndefined']();}),test('SettingsPanel is default export',async()=>{const _0x46a2fd=a0_0x4752,module=await import('../../components/SettingsPanel.js');expect(module[_0x46a2fd(0x1b0)])['toBeDefined'](),expect(module[_0x46a2fd(0x1b0)])['toBe'](module['SettingsPanel']);});}),describe('Phase\x2010\x20-\x20SearchPanel\x20-\x20Structure',()=>{const _0x4a5bbb=a0_0x1ce478;test(_0x4a5bbb(0x194),async()=>{const _0x1c44f4=_0x4a5bbb,{SearchPanel:_0x1d50db}=await import(_0x1c44f4(0x19b));expect(typeof _0x1d50db)[_0x1c44f4(0x195)](_0x1c44f4(0x1b1)),expect(_0x1d50db[_0x1c44f4(0x1a8)]?.[_0x1c44f4(0x197)])[_0x1c44f4(0x19f)]();}),test('SearchPanel is default export',async()=>{const _0x43c83b=_0x4a5bbb,module=await import(_0x43c83b(0x19b));expect(module[_0x43c83b(0x1b0)])[_0x43c83b(0x18b)](),expect(module[_0x43c83b(0x1b0)])['toBe'](module[_0x43c83b(0x1ab)]);});}),describe('Phase\x2010\x20-\x20HelpPanel\x20-\x20Structure',()=>{const _0x46a205=a0_0x1ce478;test(_0x46a205(0x19c),async()=>{const _0x317d0c=_0x46a205,{HelpPanel:_0x1198ed}=await import('../../components/HelpPanel.js');expect(typeof _0x1198ed)['toBe'](_0x317d0c(0x1b1)),expect(_0x1198ed['prototype']?.['render'])['toBeUndefined']();}),test('HelpPanel is default export',async()=>{const _0x5094cc=_0x46a205,module=await import(_0x5094cc(0x199));expect(module['default'])['toBeDefined'](),expect(module[_0x5094cc(0x1b0)])['toBe'](module[_0x5094cc(0x1a5)]);});}),describe('Phase\x2010\x20-\x20Integration\x20with\x20Layout',()=>{test('Layout component can import all Phase 10 components',async()=>{const _0x134495=a0_0x4752,[_0x48b8da,_0x1a1051,_0x4c532d,_0x4aac7d,_0x1af842]=await Promise['all']([import(_0x134495(0x1ae)),import('../../components/AgentCreator.js'),import('../../components/SettingsPanel.js'),import('../../components/SearchPanel.js'),import(_0x134495(0x199))]);expect(_0x48b8da[_0x134495(0x1a0)])['toBeDefined'](),expect(_0x1a1051[_0x134495(0x18d)])['toBeDefined'](),expect(_0x4c532d['SettingsPanel'])[_0x134495(0x18b)](),expect(_0x4aac7d['SearchPanel'])[_0x134495(0x18b)](),expect(_0x1af842[_0x134495(0x1a5)])[_0x134495(0x18b)]();}),test('Layout\x20component\x20still\x20loads\x20after\x20Phase\x2010\x20additions',async()=>{const _0x5e9b6f=a0_0x4752,{Layout:_0xbe25db}=await import(_0x5e9b6f(0x18a));expect(_0xbe25db)[_0x5e9b6f(0x18b)](),expect(typeof _0xbe25db)['toBe']('function');}),test('All\x20Phase\x2010\x20components\x20use\x20React\x20and\x20Ink',async()=>{const _0x3f8e0a=a0_0x4752,_0x34aab1=await import(_0x3f8e0a(0x1a6)),_0x7d4ca7=await import(_0x3f8e0a(0x1aa));expect(_0x34aab1[_0x3f8e0a(0x18c)])[_0x3f8e0a(0x18b)](),expect(_0x34aab1['useState'])[_0x3f8e0a(0x18b)](),expect(_0x7d4ca7['Box'])['toBeDefined'](),expect(_0x7d4ca7['Text'])[_0x3f8e0a(0x18b)](),expect(_0x7d4ca7[_0x3f8e0a(0x188)])[_0x3f8e0a(0x18b)]();});}),describe(a0_0x1ce478(0x19a),()=>{const _0x29da5a=a0_0x1ce478;test(_0x29da5a(0x190),async()=>{const _0x582071=_0x29da5a,module=await import(_0x582071(0x193));expect(module[_0x582071(0x18d)])[_0x582071(0x18b)]();}),test(_0x29da5a(0x1a3),async()=>{const _0x576e81=_0x29da5a,module=await import('../../components/SettingsPanel.js');expect(module['SettingsPanel'])[_0x576e81(0x18b)]();}),test(_0x29da5a(0x187),async()=>{const _0x3d6c1c=_0x29da5a,module=await import(_0x3d6c1c(0x199));expect(module['HelpPanel'])[_0x3d6c1c(0x18b)]();});}),describe('Phase\x2010\x20-\x20All\x20Components\x20Export\x20Correctly',()=>{test('All components can be imported together without conflicts',async()=>{const _0x32bf19=a0_0x4752,_0x108837=await Promise['all']([import('../../components/AgentSwitcher.js'),import('../../components/AgentCreator.js'),import(_0x32bf19(0x18f)),import('../../components/SearchPanel.js'),import(_0x32bf19(0x199))]),_0x45aa32=_0x108837[_0x32bf19(0x1a2)](_0x59c217=>Object['keys'](_0x59c217)[0x0]),_0x776399=new Set(_0x45aa32);expect(_0x776399['size'])[_0x32bf19(0x195)](_0x45aa32[_0x32bf19(0x1ac)]);});});
1
+ function a0_0xfda6(){const _0x816b26=['lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','ugHHC2uGmtaGlsbtzwfYy2Hqyw5LBcaTifn0CNvJDhvYzq','mJCYmZm3nwHtzwnlzW','odqWnteXBgHKuwjk','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDenYzwf0B3iUANm','mZm1mtmYmgn4uKXosW','zgvMyxvSDa','mtm4mZuZmhHNt1vQAq','u2v0DgLUz3nqyw5LBa','sgvSCfbHBMvS','ugHHC2uGmtaGlsbbzhzHBMnLzcbgzwf0DxjLCYaTieLTCg9YDhm','qwDLBNrtD2L0y2HLCIbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','mtCZodHbDLrKr3q','zNvUy3rPB24','mJK3BMniswTY','C2L6zq','u2vHCMnOugfUzwW','lI4VlI4Vy29TCg9Uzw50CY9bz2vUDfn3AxrJAgvYlMPZ','nKfvz3HYCq','qwDLBNrtD2L0y2HLCG','otq5mfLVqKXzwG','u2v0DgLUz3nqyw5LBcbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','u2vHCMnOugfUzwWGAxmGysbMDw5JDgLVBIbJB21WB25LBNq','qwDLBNrdCMvHDg9YigrLzMLUzxmGC3rLCcbJB25ZDgfUDhm','Dg9czvvUzgvMAw5Lza','Aw5R','mtC4ndrjCxbqt2y','BgvUz3rO','vgv4Da','A2v5CW','ChjVDg90ExbL','lI4VlI4Vy29TCg9Uzw50CY9izwXWugfUzwWUANm','lI4VlI4Vy29TCg9Uzw50CY9tzwfYy2Hqyw5LBc5QCW','ywXS','Dg9czurLzMLUzwq','CMvUzgvY','qwXSifbOyxnLideWignVBxbVBMvUDhmGDxnLifjLywn0igfUzcbjBMS','qM94','Dg9czq','ntKZmZyWmffmAfb6sW','lI4VlI4Vy29TCg9Uzw50CY9tzxr0Aw5NC1bHBMvSlMPZ'];a0_0xfda6=function(){return _0x816b26;};return a0_0xfda6();}function a0_0xf27f(_0x53367f,_0x2f51fc){_0x53367f=_0x53367f-0x194;const _0xfda630=a0_0xfda6();let _0xf27fcc=_0xfda630[_0x53367f];if(a0_0xf27f['rcFNDv']===undefined){var _0x32549d=function(_0x36cfc9){const _0x1046f3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ab00c='',_0x4b807c='';for(let _0x1dab64=0x0,_0x127448,_0x4335c6,_0x16a901=0x0;_0x4335c6=_0x36cfc9['charAt'](_0x16a901++);~_0x4335c6&&(_0x127448=_0x1dab64%0x4?_0x127448*0x40+_0x4335c6:_0x4335c6,_0x1dab64++%0x4)?_0x3ab00c+=String['fromCharCode'](0xff&_0x127448>>(-0x2*_0x1dab64&0x6)):0x0){_0x4335c6=_0x1046f3['indexOf'](_0x4335c6);}for(let _0x56561b=0x0,_0x4c3c0f=_0x3ab00c['length'];_0x56561b<_0x4c3c0f;_0x56561b++){_0x4b807c+='%'+('00'+_0x3ab00c['charCodeAt'](_0x56561b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b807c);};a0_0xf27f['jyECKa']=_0x32549d,a0_0xf27f['pMTALs']={},a0_0xf27f['rcFNDv']=!![];}const _0x131502=_0xfda630[0x0],_0xabe6b3=_0x53367f+_0x131502,_0x503acb=a0_0xf27f['pMTALs'][_0xabe6b3];return!_0x503acb?(_0xf27fcc=a0_0xf27f['jyECKa'](_0xf27fcc),a0_0xf27f['pMTALs'][_0xabe6b3]=_0xf27fcc):_0xf27fcc=_0x503acb,_0xf27fcc;}const a0_0x306b57=a0_0xf27f;(function(_0x2d682e,_0x1f78a1){const _0x32a3fc=a0_0xf27f,_0x54b814=_0x2d682e();while(!![]){try{const _0x1d5df0=-parseInt(_0x32a3fc(0x19d))/0x1+parseInt(_0x32a3fc(0x1a1))/0x2+-parseInt(_0x32a3fc(0x1a8))/0x3*(parseInt(_0x32a3fc(0x1b4))/0x4)+parseInt(_0x32a3fc(0x19c))/0x5*(-parseInt(_0x32a3fc(0x1ac))/0x6)+parseInt(_0x32a3fc(0x19f))/0x7+-parseInt(_0x32a3fc(0x198))/0x8+-parseInt(_0x32a3fc(0x1a6))/0x9*(-parseInt(_0x32a3fc(0x1ae))/0xa);if(_0x1d5df0===_0x1f78a1)break;else _0x54b814['push'](_0x54b814['shift']());}catch(_0x4e87f6){_0x54b814['push'](_0x54b814['shift']());}}}(a0_0xfda6,0x6a50c));import{describe,test,expect}from'@jest/globals';describe(a0_0x306b57(0x1a4),()=>{test('AgentSwitcher component can be imported',async()=>{const _0x253c2e=a0_0xf27f,{AgentSwitcher:_0x3ab00c}=await import(_0x253c2e(0x1ab));expect(_0x3ab00c)[_0x253c2e(0x1bc)](),expect(typeof _0x3ab00c)[_0x253c2e(0x197)]('function');},0x7530),test('AgentCreator component can be imported',async()=>{const _0xb0c24=a0_0xf27f,{AgentCreator:_0x4b807c}=await import(_0xb0c24(0x19e));expect(_0x4b807c)['toBeDefined'](),expect(typeof _0x4b807c)['toBe'](_0xb0c24(0x1a7));}),test('SettingsPanel component can be imported',async()=>{const _0x5cd6cd=a0_0xf27f,{SettingsPanel:_0x1dab64}=await import('../../components/SettingsPanel.js');expect(_0x1dab64)[_0x5cd6cd(0x1bc)](),expect(typeof _0x1dab64)[_0x5cd6cd(0x197)](_0x5cd6cd(0x1a7));}),test('SearchPanel component can be imported',async()=>{const _0x1a161c=a0_0xf27f,{SearchPanel:_0x127448}=await import('../../components/SearchPanel.js');expect(_0x127448)['toBeDefined'](),expect(typeof _0x127448)['toBe'](_0x1a161c(0x1a7));}),test('HelpPanel component can be imported',async()=>{const _0x5448dc=a0_0xf27f,{HelpPanel:_0x4335c6}=await import(_0x5448dc(0x1b9));expect(_0x4335c6)['toBeDefined'](),expect(typeof _0x4335c6)['toBe'](_0x5448dc(0x1a7));});}),describe('Phase\x2010\x20-\x20AgentSwitcher\x20-\x20Structure',()=>{const _0x52cf62=a0_0x306b57;test(_0x52cf62(0x1a5),async()=>{const _0x43a274=_0x52cf62,{AgentSwitcher:_0x16a901}=await import(_0x43a274(0x1ab));expect(typeof _0x16a901)['toBe'](_0x43a274(0x1a7)),expect(_0x16a901['prototype']?.['render'])['toBeUndefined']();}),test('AgentSwitcher is default export',async()=>{const _0xd855a5=_0x52cf62,module=await import('../../components/AgentSwitcher.js');expect(module['default'])[_0xd855a5(0x1bc)](),expect(module[_0xd855a5(0x1a0)])['toBe'](module[_0xd855a5(0x1ad)]);});}),describe('Phase\x2010\x20-\x20AgentCreator\x20-\x20Structure',()=>{test('AgentCreator\x20is\x20a\x20function\x20component',async()=>{const _0x51374f=a0_0xf27f,{AgentCreator:_0x56561b}=await import('../../components/AgentCreator.js');expect(typeof _0x56561b)['toBe'](_0x51374f(0x1a7)),expect(_0x56561b['prototype']?.[_0x51374f(0x194)])[_0x51374f(0x1b2)]();}),test('AgentCreator is default export',async()=>{const _0x236b77=a0_0xf27f,module=await import(_0x236b77(0x19e));expect(module[_0x236b77(0x1a0)])['toBeDefined'](),expect(module[_0x236b77(0x1a0)])['toBe'](module['AgentCreator']);});}),describe('Phase\x2010\x20-\x20SettingsPanel\x20-\x20Structure',()=>{const _0x54e4c1=a0_0x306b57;test(_0x54e4c1(0x1af),async()=>{const _0x40f40e=_0x54e4c1,{SettingsPanel:_0x4c3c0f}=await import(_0x40f40e(0x199));expect(typeof _0x4c3c0f)['toBe']('function'),expect(_0x4c3c0f[_0x40f40e(0x1b8)]?.[_0x40f40e(0x194)])[_0x40f40e(0x1b2)]();}),test('SettingsPanel is default export',async()=>{const _0x52cfb0=_0x54e4c1,module=await import('../../components/SettingsPanel.js');expect(module[_0x52cfb0(0x1a0)])[_0x52cfb0(0x1bc)](),expect(module[_0x52cfb0(0x1a0)])['toBe'](module[_0x52cfb0(0x1a2)]);});}),describe(a0_0x306b57(0x19b),()=>{const _0x11886e=a0_0x306b57;test(_0x11886e(0x1b0),async()=>{const _0x3ed001=_0x11886e,{SearchPanel:_0x52aa08}=await import('../../components/SearchPanel.js');expect(typeof _0x52aa08)['toBe'](_0x3ed001(0x1a7)),expect(_0x52aa08['prototype']?.['render'])['toBeUndefined']();}),test('SearchPanel is default export',async()=>{const _0x334c4a=_0x11886e,module=await import(_0x334c4a(0x1ba));expect(module['default'])['toBeDefined'](),expect(module[_0x334c4a(0x1a0)])[_0x334c4a(0x197)](module[_0x334c4a(0x1aa)]);});}),describe('Phase\x2010\x20-\x20HelpPanel\x20-\x20Structure',()=>{test('HelpPanel\x20is\x20a\x20function\x20component',async()=>{const _0x4e5b1f=a0_0xf27f,{HelpPanel:_0x4ea892}=await import(_0x4e5b1f(0x1b9));expect(typeof _0x4ea892)[_0x4e5b1f(0x197)]('function'),expect(_0x4ea892['prototype']?.['render'])[_0x4e5b1f(0x1b2)]();}),test('HelpPanel is default export',async()=>{const _0x488553=a0_0xf27f,module=await import(_0x488553(0x1b9));expect(module['default'])['toBeDefined'](),expect(module[_0x488553(0x1a0)])['toBe'](module[_0x488553(0x1a3)]);});}),describe('Phase\x2010\x20-\x20Integration\x20with\x20Layout',()=>{const _0x417c14=a0_0x306b57;test('Layout component can import all Phase 10 components',async()=>{const _0x422ffb=a0_0xf27f,[_0x2440cd,_0x221a99,_0x4a2620,_0x34cce7,_0x3958fd]=await Promise[_0x422ffb(0x1bb)]([import('../../components/AgentSwitcher.js'),import(_0x422ffb(0x19e)),import(_0x422ffb(0x199)),import(_0x422ffb(0x1ba)),import('../../components/HelpPanel.js')]);expect(_0x2440cd['AgentSwitcher'])['toBeDefined'](),expect(_0x221a99['AgentCreator'])['toBeDefined'](),expect(_0x4a2620[_0x422ffb(0x1a2)])[_0x422ffb(0x1bc)](),expect(_0x34cce7[_0x422ffb(0x1aa)])[_0x422ffb(0x1bc)](),expect(_0x3958fd['HelpPanel'])['toBeDefined']();}),test('Layout\x20component\x20still\x20loads\x20after\x20Phase\x2010\x20additions',async()=>{const _0x3482a3=a0_0xf27f,{Layout:_0x5610f3}=await import(_0x3482a3(0x19a));expect(_0x5610f3)['toBeDefined'](),expect(typeof _0x5610f3)['toBe'](_0x3482a3(0x1a7));}),test(_0x417c14(0x195),async()=>{const _0x371e22=_0x417c14,_0x5d876c=await import('react'),_0x5d9bd1=await import(_0x371e22(0x1b3));expect(_0x5d876c['createElement'])[_0x371e22(0x1bc)](),expect(_0x5d876c['useState'])['toBeDefined'](),expect(_0x5d9bd1[_0x371e22(0x196)])['toBeDefined'](),expect(_0x5d9bd1[_0x371e22(0x1b6)])[_0x371e22(0x1bc)](),expect(_0x5d9bd1['useInput'])[_0x371e22(0x1bc)]();});}),describe('Phase\x2010\x20-\x20Component\x20Constants\x20and\x20Configurations',()=>{const _0x163588=a0_0x306b57;test(_0x163588(0x1b1),async()=>{const module=await import('../../components/AgentCreator.js');expect(module['AgentCreator'])['toBeDefined']();}),test('SettingsPanel\x20defines\x20category\x20constants',async()=>{const _0x119ed5=_0x163588,module=await import(_0x119ed5(0x199));expect(module[_0x119ed5(0x1a2)])['toBeDefined']();}),test('HelpPanel\x20defines\x20shortcut\x20configurations',async()=>{const _0xcf1747=_0x163588,module=await import(_0xcf1747(0x1b9));expect(module[_0xcf1747(0x1a3)])['toBeDefined']();});}),describe('Phase\x2010\x20-\x20All\x20Components\x20Export\x20Correctly',()=>{test('All components can be imported together without conflicts',async()=>{const _0x34cc70=a0_0xf27f,_0x32a9cb=await Promise['all']([import('../../components/AgentSwitcher.js'),import(_0x34cc70(0x19e)),import('../../components/SettingsPanel.js'),import('../../components/SearchPanel.js'),import('../../components/HelpPanel.js')]),_0x2ea468=_0x32a9cb['map'](_0x2367a6=>Object[_0x34cc70(0x1b7)](_0x2367a6)[0x0]),_0x50fd09=new Set(_0x2ea468);expect(_0x50fd09[_0x34cc70(0x1a9)])[_0x34cc70(0x197)](_0x2ea468[_0x34cc70(0x1b5)]);});});
@@ -1 +1 @@
1
- function a0_0x2982(_0x568029,_0x592c96){_0x568029=_0x568029-0x1a0;const _0xf7b877=a0_0xf7b8();let _0x2982ea=_0xf7b877[_0x568029];if(a0_0x2982['FQNizO']===undefined){var _0x40c554=function(_0x365a1a){const _0x54e9ab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44c209='',_0x4ab863='';for(let _0x58b89a=0x0,_0x368ece,_0x3bfb76,_0x298889=0x0;_0x3bfb76=_0x365a1a['charAt'](_0x298889++);~_0x3bfb76&&(_0x368ece=_0x58b89a%0x4?_0x368ece*0x40+_0x3bfb76:_0x3bfb76,_0x58b89a++%0x4)?_0x44c209+=String['fromCharCode'](0xff&_0x368ece>>(-0x2*_0x58b89a&0x6)):0x0){_0x3bfb76=_0x54e9ab['indexOf'](_0x3bfb76);}for(let _0x307fa4=0x0,_0x52862a=_0x44c209['length'];_0x307fa4<_0x52862a;_0x307fa4++){_0x4ab863+='%'+('00'+_0x44c209['charCodeAt'](_0x307fa4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4ab863);};a0_0x2982['npAsgq']=_0x40c554,a0_0x2982['Lbrsnv']={},a0_0x2982['FQNizO']=!![];}const _0x2d0b3b=_0xf7b877[0x0],_0x1d75bb=_0x568029+_0x2d0b3b,_0x30c323=a0_0x2982['Lbrsnv'][_0x1d75bb];return!_0x30c323?(_0x2982ea=a0_0x2982['npAsgq'](_0x2982ea),a0_0x2982['Lbrsnv'][_0x1d75bb]=_0x2982ea):_0x2982ea=_0x30c323,_0x2982ea;}const a0_0x19f726=a0_0x2982;(function(_0x185fcf,_0xbbda54){const _0x495918=a0_0x2982,_0x290d35=_0x185fcf();while(!![]){try{const _0x5a9811=-parseInt(_0x495918(0x1b1))/0x1+-parseInt(_0x495918(0x1c6))/0x2+parseInt(_0x495918(0x1a3))/0x3+-parseInt(_0x495918(0x1cf))/0x4+-parseInt(_0x495918(0x1af))/0x5+-parseInt(_0x495918(0x1b2))/0x6*(-parseInt(_0x495918(0x1d5))/0x7)+parseInt(_0x495918(0x1b0))/0x8;if(_0x5a9811===_0xbbda54)break;else _0x290d35['push'](_0x290d35['shift']());}catch(_0xe761a7){_0x290d35['push'](_0x290d35['shift']());}}}(a0_0xf7b8,0x3a2c7));import{describe,test,expect}from'@jest/globals';function a0_0xf7b8(){const _0x1dcef2=['revfufnfruS','z3b0ltq','l2fWAs9SBg0VBw9KzwXZ','tu9eruXFq0furuDpuLKGAw5JBhvKzxmGBwfQB3iGteXnihbYB3zPzgvYCW','teXnx01prevmuW','DxnLqwDLBNrdB250CM9SigHVB2SGAw50zwDYyxrLCYb3AxrOifnLC3nPB24Gyw5Kie1LC3nHz2vsB3v0zxi','Dg9czurLzMLUzwq','Dg9vChbLCKnHC2u','q0Hbva','zMLSDgvY','oduYotqYC3jRzKTS','zNvUy3rPB24','Bg9JywXOB3n0','Dg9czq','quDftLrtx01prevFr0vu','lI4VlI4VC3rHDguVDxnLqwDLBNrdB250CM9SlMPZ','zgvLChnLzwSTy2HHDa','BwLJCM9ZB2z0','zgvLChnLzwS','mJK0oty0EKrorgPu','A2v5CW','teXnig1VzgvSCYbLBMrWB2LUDcbLEgLZDhm','DxnLqwDLBNrdB250CM9S','t3jJAgvZDhjHDg9YigvUzhbVAw50igv4Axn0CYbMB3iGBw9KzwWGyw5KignVBMzPzYbVCgvYyxrPB25Z','lI4VlI4VyxbPl3nLC3nPB24UANm','otyYmtaXzuXXqwnx','quDftLq','quDftLrFtu9ersbJB25ZDgfUDhmGyxjLigrLzMLUzwq','y2f0zwDVCNK','y2XHDwrLltmTns1ZB25Uzxq','Dg9nyxrJAa','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsw1WB3j0CW','l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','oMfNzw50swq','t1bftKfj','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzwWGrMLSDgvYAw5N','mtmZmJa5nLzTA2rUyq','v1nFtuvtu0fhrv9uwvbfigLUy2X1zgvZig1VzguGyw5Kig1VzgvSignOyw5NzsbLDMvUDhm','yw50AhjVCgLJ','zgvMyxvSDa','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzsbtD2L0y2HPBMCGtg9NAwm','tuLduK9tt0zu','ywDLBNrFBw9Kzv9JAgfUz2vK','twvZC2fNzvjVDxrLCG','quDftLrFtu9erv9dsefor0ve','qu5usfjpueLd','quDftLrFtu9erq','otG0mJiWy3rvz0LL','ndyZmJG4mgHHEMXnuW','mZyYnJKZzuTNz3rh','mtjyu3jiBuK','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0GqvbjievUzhbVAw50CYbwywXPzgf0Aw9U','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','Dg9dB250ywLU','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gq29UC3rHBNrZ','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsw50zwDYyxrPB24','l2fWAs9VCMnOzxn0CMf0B3i','ywXS','BgvUz3rO'];a0_0xf7b8=function(){return _0x1dcef2;};return a0_0xf7b8();}describe(a0_0x19f726(0x1db),()=>{test('useAgentControl hook can be imported',async()=>{const _0x33ff4a=a0_0x2982,{useAgentControl:_0x44c209}=await import(_0x33ff4a(0x1cb));expect(_0x44c209)[_0x33ff4a(0x1c2)](),expect(typeof _0x44c209)['toBe']('function');}),test('useAgentControl is default export',async()=>{const _0x456987=a0_0x2982,module=await import(_0x456987(0x1cb));expect(module['default'])[_0x456987(0x1c2)](),expect(typeof module['default'])[_0x456987(0x1c9)](_0x456987(0x1c7)),expect(module[_0x456987(0x1a6)])['toBe'](module['useAgentControl']);});}),describe(a0_0x19f726(0x1b6),()=>{const _0x2ac40e=a0_0x19f726;test(_0x2ac40e(0x1d7),async()=>{const _0x5232e0=_0x2ac40e,{AGENT_MODE:_0x4ab863}=await import(_0x5232e0(0x1a7));expect(_0x4ab863)[_0x5232e0(0x1c2)](),expect(_0x4ab863['CHAT'])['toBe']('CHAT'),expect(_0x4ab863[_0x5232e0(0x1d6)])['toBe']('AGENT');}),test('MODEL_CATEGORY\x20constants\x20are\x20defined',async()=>{const _0x2e1f77=_0x2ac40e,{MODEL_CATEGORY:_0x58b89a}=await import('../../config/constants.js');expect(_0x58b89a)[_0x2e1f77(0x1c2)](),expect(_0x58b89a[_0x2e1f77(0x1ad)])[_0x2e1f77(0x1c9)]('anthropic'),expect(_0x58b89a['OPENAI'])['toBe']('openai'),expect(_0x58b89a[_0x2e1f77(0x1bc)])['toBe'](_0x2e1f77(0x1ce)),expect(_0x58b89a[_0x2e1f77(0x1a9)])['toBe'](_0x2e1f77(0x1cd));}),test('Mode\x20and\x20model\x20API\x20endpoints\x20are\x20defined',async()=>{const _0x238e2e=_0x2ac40e,{API_ENDPOINTS:_0x368ece}=await import('../../config/constants.js');expect(_0x368ece['AGENTS_MODE_SET'])[_0x238e2e(0x1c9)](_0x238e2e(0x1dc)),expect(_0x368ece[_0x238e2e(0x1ca)])['toBe']('/api/agents/:agentId/mode'),expect(_0x368ece['LLM_MODELS'])[_0x238e2e(0x1c9)](_0x238e2e(0x1be));}),test(_0x2ac40e(0x1a4),async()=>{const _0x5abf00=_0x2ac40e,{WS_MESSAGE_TYPE:_0x3bfb76}=await import(_0x5abf00(0x1a7));expect(_0x3bfb76)[_0x5abf00(0x1c2)](),expect(_0x3bfb76[_0x5abf00(0x1ac)])[_0x5abf00(0x1c9)](_0x5abf00(0x1aa));});}),describe(a0_0x19f726(0x1b8),()=>{const _0x4e4e00=a0_0x19f726;test(_0x4e4e00(0x1c1),async()=>{const _0x2725f1=_0x4e4e00,{useAgentControl:_0x298889}=await import(_0x2725f1(0x1cb)),{SessionManager:_0x307fa4}=await import(_0x2725f1(0x1d4)),{MessageRouter:_0x52862a}=await import('../../api/messageRouter.js'),{WebSocketManager:_0x47113c}=await import(_0x2725f1(0x1b7)),_0x893592=new _0x307fa4(_0x2725f1(0x1c8),0x1f90),_0x13a294=new _0x47113c(_0x2725f1(0x1c8),0x1f90),_0x204ca5=new _0x52862a(_0x13a294);expect(_0x893592)[_0x2725f1(0x1c2)](),expect(_0x204ca5)[_0x2725f1(0x1c2)](),expect(typeof _0x298889)['toBe']('function');}),test('Full agent control stack can be imported together',async()=>{const _0xbca627=_0x4e4e00,[_0x4cb5e3,_0x1b152e,_0x327dbf,_0x5e3e88,_0x580611]=await Promise[_0xbca627(0x1ba)]([import('../../config/constants.js'),import(_0xbca627(0x1d4)),import('../../api/websocket.js'),import(_0xbca627(0x1b4)),import(_0xbca627(0x1cb))]);expect(_0x4cb5e3[_0xbca627(0x1ae)])[_0xbca627(0x1c2)](),expect(_0x4cb5e3['MODEL_CATEGORY'])['toBeDefined'](),expect(_0x4cb5e3['API_ENDPOINTS'])['toBeDefined'](),expect(_0x1b152e['SessionManager'])[_0xbca627(0x1c2)](),expect(_0x327dbf['WebSocketManager'])[_0xbca627(0x1c2)](),expect(_0x5e3e88[_0xbca627(0x1ab)])['toBeDefined'](),expect(_0x580611[_0xbca627(0x1d2)])['toBeDefined']();});}),describe(a0_0x19f726(0x1b3),()=>{const _0x12844d=a0_0x19f726;test('Agent\x20mode\x20endpoints\x20follow\x20RESTful\x20pattern',async()=>{const _0x3f49ad=a0_0x2982,{API_ENDPOINTS:_0x5a5428}=await import(_0x3f49ad(0x1a7));expect(_0x5a5428['AGENTS_MODE_SET'])[_0x3f49ad(0x1da)](/^\/api\/agents/),expect(_0x5a5428[_0x3f49ad(0x1ca)])[_0x3f49ad(0x1da)](/^\/api\/agents/),expect(_0x5a5428['AGENTS_MODE_SET'])['toContain'](_0x3f49ad(0x1a0)),expect(_0x5a5428[_0x3f49ad(0x1ca)])['toContain'](_0x3f49ad(0x1a0));}),test(_0x12844d(0x1d1),async()=>{const _0x239cc8=_0x12844d,{API_ENDPOINTS:_0x20a6e8}=await import('../../config/constants.js');expect(_0x20a6e8['LLM_MODELS'])['toBeDefined'](),expect(_0x20a6e8[_0x239cc8(0x1c0)])[_0x239cc8(0x1c9)](_0x239cc8(0x1be));}),test(_0x12844d(0x1d3),async()=>{const _0x5abdef=_0x12844d,{API_ENDPOINTS:_0x565135}=await import(_0x5abdef(0x1a7));expect(_0x565135['ORCHESTRATOR'])['toBeDefined'](),expect(_0x565135['ORCHESTRATOR'])['toBe'](_0x5abdef(0x1b9));});}),describe('Agent\x20Control\x20Management\x20-\x20Hook\x20Interface\x20Verification',()=>{test('useAgentControl\x20returns\x20expected\x20interface\x20shape',async()=>{const _0x37ca1b=a0_0x2982,{useAgentControl:_0x42df42}=await import('../../state/useAgentControl.js');expect(_0x42df42['length'])[_0x37ca1b(0x1c9)](0x3);});}),describe('Agent\x20Control\x20Management\x20-\x20Constants\x20Validation',()=>{const _0x2db573=a0_0x19f726;test('AGENT_MODE\x20has\x20exactly\x20two\x20modes',async()=>{const _0x378112=a0_0x2982,{AGENT_MODE:_0x1df5ca}=await import('../../config/constants.js'),_0x574298=Object[_0x378112(0x1d0)](_0x1df5ca);expect(_0x574298[_0x378112(0x1bb)])['toBe'](0x2),expect(_0x574298)['toContain'](_0x378112(0x1c4)),expect(_0x574298)['toContain'](_0x378112(0x1d6));}),test('AGENT_MODE\x20values\x20are\x20uppercase',async()=>{const _0x542063=a0_0x2982,{AGENT_MODE:_0x5f14d5}=await import(_0x542063(0x1a7));expect(_0x5f14d5['CHAT'])[_0x542063(0x1c9)]('CHAT'),expect(_0x5f14d5[_0x542063(0x1d6)])['toBe'](_0x542063(0x1d6)),expect(_0x5f14d5[_0x542063(0x1c4)])['toBe'](_0x5f14d5['CHAT'][_0x542063(0x1c3)]()),expect(_0x5f14d5[_0x542063(0x1d6)])[_0x542063(0x1c9)](_0x5f14d5[_0x542063(0x1d6)][_0x542063(0x1c3)]());}),test('MODEL_CATEGORY\x20values\x20are\x20lowercase',async()=>{const _0x3e2efc=a0_0x2982,{MODEL_CATEGORY:_0x1be960}=await import('../../config/constants.js');expect(_0x1be960[_0x3e2efc(0x1ad)])['toBe'](_0x3e2efc(0x1a5)),expect(_0x1be960[_0x3e2efc(0x1a1)])[_0x3e2efc(0x1c9)]('openai'),expect(_0x1be960['DEEPSEEK'])[_0x3e2efc(0x1c9)]('deepseek'),expect(_0x1be960['MICROSOFT'])['toBe']('microsoft'),expect(_0x1be960[_0x3e2efc(0x1ad)])['toBe'](_0x1be960[_0x3e2efc(0x1ad)]['toLowerCase']()),expect(_0x1be960[_0x3e2efc(0x1a1)])[_0x3e2efc(0x1c9)](_0x1be960[_0x3e2efc(0x1a1)]['toLowerCase']());}),test(_0x2db573(0x1bf),async()=>{const _0x2f39c4=_0x2db573,{MODEL_CATEGORY:_0x168221}=await import('../../config/constants.js'),_0x14de46=Object[_0x2f39c4(0x1d0)](_0x168221);expect(_0x14de46)[_0x2f39c4(0x1b5)](_0x2f39c4(0x1ad)),expect(_0x14de46)[_0x2f39c4(0x1b5)]('OPENAI'),expect(_0x14de46)[_0x2f39c4(0x1b5)]('DEEPSEEK'),expect(_0x14de46)['toContain'](_0x2f39c4(0x1a9));});}),describe('Agent\x20Control\x20Management\x20-\x20WebSocket\x20Event\x20Handlers',()=>{test('MessageRouter\x20has\x20mode\x20change\x20event\x20handler\x20registered',async()=>{const _0x505c83=a0_0x2982,{MessageRouter:_0x2b5293}=await import(_0x505c83(0x1b4)),{WebSocketManager:_0x25cb28}=await import('../../api/websocket.js'),{WS_MESSAGE_TYPE:_0xc4efb7}=await import('../../config/constants.js'),_0x40549c=new _0x25cb28('localhost',0x1f90),_0x26bec1=new _0x2b5293(_0x40549c);expect(_0x26bec1['hasHandler'](_0xc4efb7[_0x505c83(0x1ac)]))['toBe'](!![]);});}),describe(a0_0x19f726(0x1a8),()=>{test('AGENT_MODE\x20supports\x20toggling\x20between\x20modes',async()=>{const _0x307258=a0_0x2982,{AGENT_MODE:_0x6031b}=await import(_0x307258(0x1a7));let _0x113035=_0x6031b['CHAT'],_0x5dc216=_0x113035===_0x6031b[_0x307258(0x1c4)]?_0x6031b[_0x307258(0x1d6)]:_0x6031b['CHAT'];expect(_0x5dc216)[_0x307258(0x1c9)](_0x6031b['AGENT']),_0x113035=_0x6031b[_0x307258(0x1d6)],_0x5dc216=_0x113035===_0x6031b[_0x307258(0x1c4)]?_0x6031b['AGENT']:_0x6031b[_0x307258(0x1c4)],expect(_0x5dc216)['toBe'](_0x6031b[_0x307258(0x1c4)]);});}),describe(a0_0x19f726(0x1a2),()=>{test('MODEL_CATEGORY\x20can\x20be\x20used\x20to\x20filter\x20models\x20by\x20category',async()=>{const _0x345f6b=a0_0x2982,{MODEL_CATEGORY:_0x7491f8}=await import('../../config/constants.js'),_0x44127e=[{'id':'claude-3-5-sonnet','category':_0x7491f8[_0x345f6b(0x1ad)]},{'id':_0x345f6b(0x1bd),'category':_0x7491f8[_0x345f6b(0x1a1)]},{'id':_0x345f6b(0x1cc),'category':_0x7491f8[_0x345f6b(0x1bc)]}],_0x2386b=_0x44127e['filter'](_0x57e2ab=>_0x57e2ab['category']===_0x7491f8['ANTHROPIC']),_0x2bd3dd=_0x44127e[_0x345f6b(0x1c5)](_0x25ded7=>_0x25ded7[_0x345f6b(0x1d8)]===_0x7491f8[_0x345f6b(0x1a1)]);expect(_0x2386b['length'])[_0x345f6b(0x1c9)](0x1),expect(_0x2386b[0x0]['id'])[_0x345f6b(0x1c9)](_0x345f6b(0x1d9)),expect(_0x2bd3dd['length'])[_0x345f6b(0x1c9)](0x1),expect(_0x2bd3dd[0x0]['id'])[_0x345f6b(0x1c9)](_0x345f6b(0x1bd));});});
1
+ const a0_0x399779=a0_0x1d67;(function(_0x2e00da,_0xe7d26b){const _0x59462b=a0_0x1d67,_0x15019d=_0x2e00da();while(!![]){try{const _0x19b33b=-parseInt(_0x59462b(0xf3))/0x1*(parseInt(_0x59462b(0xee))/0x2)+parseInt(_0x59462b(0x102))/0x3*(parseInt(_0x59462b(0x11b))/0x4)+parseInt(_0x59462b(0xf6))/0x5+-parseInt(_0x59462b(0x100))/0x6*(-parseInt(_0x59462b(0x112))/0x7)+parseInt(_0x59462b(0xfd))/0x8*(-parseInt(_0x59462b(0xf0))/0x9)+-parseInt(_0x59462b(0x116))/0xa*(parseInt(_0x59462b(0xfb))/0xb)+-parseInt(_0x59462b(0x113))/0xc*(-parseInt(_0x59462b(0xf1))/0xd);if(_0x19b33b===_0xe7d26b)break;else _0x15019d['push'](_0x15019d['shift']());}catch(_0x4d93cb){_0x15019d['push'](_0x15019d['shift']());}}}(a0_0x2233,0xe5049));function a0_0x1d67(_0x14e4a5,_0x375a17){_0x14e4a5=_0x14e4a5-0xec;const _0x2233d6=a0_0x2233();let _0x1d6782=_0x2233d6[_0x14e4a5];if(a0_0x1d67['mkmDTl']===undefined){var _0x3abdd6=function(_0x25f886){const _0x4b80a8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x471426='',_0x21dcb2='';for(let _0x3ef44b=0x0,_0x2a08f3,_0x3dc462,_0x500b82=0x0;_0x3dc462=_0x25f886['charAt'](_0x500b82++);~_0x3dc462&&(_0x2a08f3=_0x3ef44b%0x4?_0x2a08f3*0x40+_0x3dc462:_0x3dc462,_0x3ef44b++%0x4)?_0x471426+=String['fromCharCode'](0xff&_0x2a08f3>>(-0x2*_0x3ef44b&0x6)):0x0){_0x3dc462=_0x4b80a8['indexOf'](_0x3dc462);}for(let _0x37c0d6=0x0,_0x500c8f=_0x471426['length'];_0x37c0d6<_0x500c8f;_0x37c0d6++){_0x21dcb2+='%'+('00'+_0x471426['charCodeAt'](_0x37c0d6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21dcb2);};a0_0x1d67['NyImvt']=_0x3abdd6,a0_0x1d67['WBYajb']={},a0_0x1d67['mkmDTl']=!![];}const _0x5722f4=_0x2233d6[0x0],_0x1c9b23=_0x14e4a5+_0x5722f4,_0x463c0e=a0_0x1d67['WBYajb'][_0x1c9b23];return!_0x463c0e?(_0x1d6782=a0_0x1d67['NyImvt'](_0x1d6782),a0_0x1d67['WBYajb'][_0x1c9b23]=_0x1d6782):_0x1d6782=_0x463c0e,_0x1d6782;}import{describe,test,expect}from'@jest/globals';describe(a0_0x399779(0x117),()=>{test('useAgentControl hook can be imported',async()=>{const _0x45e9a0=a0_0x1d67,{useAgentControl:_0x471426}=await import(_0x45e9a0(0xed));expect(_0x471426)[_0x45e9a0(0x120)](),expect(typeof _0x471426)[_0x45e9a0(0x10a)]('function');}),test('useAgentControl is default export',async()=>{const _0x3f998c=a0_0x1d67,module=await import('../../state/useAgentControl.js');expect(module['default'])['toBeDefined'](),expect(typeof module[_0x3f998c(0x101)])[_0x3f998c(0x10a)]('function'),expect(module[_0x3f998c(0x101)])[_0x3f998c(0x10a)](module[_0x3f998c(0xf7)]);});}),describe(a0_0x399779(0x10d),()=>{const _0x2c571a=a0_0x399779;test('AGENT_MODE\x20constants\x20are\x20defined',async()=>{const _0x3079d8=a0_0x1d67,{AGENT_MODE:_0x21dcb2}=await import(_0x3079d8(0xfa));expect(_0x21dcb2)[_0x3079d8(0x120)](),expect(_0x21dcb2[_0x3079d8(0x124)])[_0x3079d8(0x10a)]('CHAT'),expect(_0x21dcb2[_0x3079d8(0x103)])[_0x3079d8(0x10a)](_0x3079d8(0x103));}),test('MODEL_CATEGORY\x20constants\x20are\x20defined',async()=>{const _0x489991=a0_0x1d67,{MODEL_CATEGORY:_0x3ef44b}=await import('../../config/constants.js');expect(_0x3ef44b)[_0x489991(0x120)](),expect(_0x3ef44b[_0x489991(0x11c)])['toBe'](_0x489991(0x11d)),expect(_0x3ef44b[_0x489991(0x11f)])[_0x489991(0x10a)](_0x489991(0x121)),expect(_0x3ef44b[_0x489991(0x114)])['toBe']('deepseek'),expect(_0x3ef44b[_0x489991(0xf5)])['toBe']('microsoft');}),test('Mode\x20and\x20model\x20API\x20endpoints\x20are\x20defined',async()=>{const _0x344532=a0_0x1d67,{API_ENDPOINTS:_0x2a08f3}=await import(_0x344532(0xfa));expect(_0x2a08f3['AGENTS_MODE_SET'])['toBe']('/api/agents/:agentId/mode'),expect(_0x2a08f3['AGENTS_MODE_GET'])['toBe']('/api/agents/:agentId/mode'),expect(_0x2a08f3[_0x344532(0x105)])['toBe']('/api/llm/models');}),test(_0x2c571a(0x115),async()=>{const _0x4372ba=_0x2c571a,{WS_MESSAGE_TYPE:_0x3dc462}=await import('../../config/constants.js');expect(_0x3dc462)[_0x4372ba(0x120)](),expect(_0x3dc462[_0x4372ba(0x10e)])[_0x4372ba(0x10a)]('agent_mode_changed');});}),describe(a0_0x399779(0xfe),()=>{const _0x6ab2b1=a0_0x399779;test(_0x6ab2b1(0x119),async()=>{const _0x195f4e=_0x6ab2b1,{useAgentControl:_0x500b82}=await import('../../state/useAgentControl.js'),{SessionManager:_0x37c0d6}=await import('../../api/session.js'),{MessageRouter:_0x500c8f}=await import(_0x195f4e(0xfc)),{WebSocketManager:_0xdce4a7}=await import('../../api/websocket.js'),_0x5f0de6=new _0x37c0d6(_0x195f4e(0x108),0x1f90),_0x5ea3b0=new _0xdce4a7('localhost',0x1f90),_0x559cc6=new _0x500c8f(_0x5ea3b0);expect(_0x5f0de6)[_0x195f4e(0x120)](),expect(_0x559cc6)[_0x195f4e(0x120)](),expect(typeof _0x500b82)[_0x195f4e(0x10a)]('function');}),test('Full agent control stack can be imported together',async()=>{const _0x99da5e=_0x6ab2b1,[_0x25123f,_0x20fae9,_0xa1d639,_0x30295c,_0x53ac81]=await Promise[_0x99da5e(0x106)]([import(_0x99da5e(0xfa)),import('../../api/session.js'),import(_0x99da5e(0x122)),import(_0x99da5e(0xfc)),import(_0x99da5e(0xed))]);expect(_0x25123f['AGENT_MODE'])[_0x99da5e(0x120)](),expect(_0x25123f['MODEL_CATEGORY'])['toBeDefined'](),expect(_0x25123f[_0x99da5e(0x11a)])[_0x99da5e(0x120)](),expect(_0x20fae9['SessionManager'])[_0x99da5e(0x120)](),expect(_0xa1d639['WebSocketManager'])['toBeDefined'](),expect(_0x30295c[_0x99da5e(0x10b)])[_0x99da5e(0x120)](),expect(_0x53ac81['useAgentControl'])[_0x99da5e(0x120)]();});}),describe(a0_0x399779(0x110),()=>{test('Agent\x20mode\x20endpoints\x20follow\x20RESTful\x20pattern',async()=>{const _0x504eb4=a0_0x1d67,{API_ENDPOINTS:_0x4ac5b0}=await import('../../config/constants.js');expect(_0x4ac5b0['AGENTS_MODE_SET'])[_0x504eb4(0x10c)](/^\/api\/agents/),expect(_0x4ac5b0[_0x504eb4(0xf4)])[_0x504eb4(0x10c)](/^\/api\/agents/),expect(_0x4ac5b0[_0x504eb4(0x10f)])['toContain'](':agentId'),expect(_0x4ac5b0[_0x504eb4(0xf4)])[_0x504eb4(0xf8)](':agentId');}),test('LLM\x20models\x20endpoint\x20exists',async()=>{const _0x52e0a9=a0_0x1d67,{API_ENDPOINTS:_0x2fac94}=await import('../../config/constants.js');expect(_0x2fac94['LLM_MODELS'])[_0x52e0a9(0x120)](),expect(_0x2fac94[_0x52e0a9(0x105)])[_0x52e0a9(0x10a)](_0x52e0a9(0xef));}),test('Orchestrator\x20endpoint\x20exists\x20for\x20model\x20and\x20config\x20operations',async()=>{const _0x868705=a0_0x1d67,{API_ENDPOINTS:_0x5c36e9}=await import(_0x868705(0xfa));expect(_0x5c36e9['ORCHESTRATOR'])['toBeDefined'](),expect(_0x5c36e9['ORCHESTRATOR'])['toBe']('/api/orchestrator');});}),describe('Agent\x20Control\x20Management\x20-\x20Hook\x20Interface\x20Verification',()=>{test('useAgentControl\x20returns\x20expected\x20interface\x20shape',async()=>{const _0x2b9906=a0_0x1d67,{useAgentControl:_0xbbf5f5}=await import('../../state/useAgentControl.js');expect(_0xbbf5f5['length'])[_0x2b9906(0x10a)](0x3);});}),describe('Agent\x20Control\x20Management\x20-\x20Constants\x20Validation',()=>{const _0x254833=a0_0x399779;test(_0x254833(0xf2),async()=>{const _0x1fa7f4=_0x254833,{AGENT_MODE:_0x3f7fa6}=await import('../../config/constants.js'),_0x1bf0ef=Object['keys'](_0x3f7fa6);expect(_0x1bf0ef[_0x1fa7f4(0x118)])['toBe'](0x2),expect(_0x1bf0ef)[_0x1fa7f4(0xf8)](_0x1fa7f4(0x124)),expect(_0x1bf0ef)[_0x1fa7f4(0xf8)](_0x1fa7f4(0x103));}),test('AGENT_MODE\x20values\x20are\x20uppercase',async()=>{const _0x595cb8=_0x254833,{AGENT_MODE:_0x2c86de}=await import(_0x595cb8(0xfa));expect(_0x2c86de[_0x595cb8(0x124)])['toBe']('CHAT'),expect(_0x2c86de['AGENT'])['toBe']('AGENT'),expect(_0x2c86de[_0x595cb8(0x124)])['toBe'](_0x2c86de[_0x595cb8(0x124)]['toUpperCase']()),expect(_0x2c86de[_0x595cb8(0x103)])['toBe'](_0x2c86de['AGENT'][_0x595cb8(0x123)]());}),test('MODEL_CATEGORY\x20values\x20are\x20lowercase',async()=>{const _0x4ed6bb=_0x254833,{MODEL_CATEGORY:_0x53246a}=await import(_0x4ed6bb(0xfa));expect(_0x53246a[_0x4ed6bb(0x11c)])[_0x4ed6bb(0x10a)]('anthropic'),expect(_0x53246a[_0x4ed6bb(0x11f)])[_0x4ed6bb(0x10a)](_0x4ed6bb(0x121)),expect(_0x53246a[_0x4ed6bb(0x114)])[_0x4ed6bb(0x10a)](_0x4ed6bb(0x109)),expect(_0x53246a[_0x4ed6bb(0xf5)])['toBe']('microsoft'),expect(_0x53246a[_0x4ed6bb(0x11c)])['toBe'](_0x53246a['ANTHROPIC']['toLowerCase']()),expect(_0x53246a['OPENAI'])['toBe'](_0x53246a[_0x4ed6bb(0x11f)][_0x4ed6bb(0xf9)]());}),test(_0x254833(0x104),async()=>{const _0x3c6ab5=_0x254833,{MODEL_CATEGORY:_0x23776f}=await import(_0x3c6ab5(0xfa)),_0x4ee2c0=Object[_0x3c6ab5(0xec)](_0x23776f);expect(_0x4ee2c0)['toContain']('ANTHROPIC'),expect(_0x4ee2c0)[_0x3c6ab5(0xf8)](_0x3c6ab5(0x11f)),expect(_0x4ee2c0)[_0x3c6ab5(0xf8)](_0x3c6ab5(0x114)),expect(_0x4ee2c0)['toContain'](_0x3c6ab5(0xf5));});}),describe(a0_0x399779(0x126),()=>{const _0x57731a=a0_0x399779;test(_0x57731a(0xff),async()=>{const _0x6a1752=_0x57731a,{MessageRouter:_0x1436f4}=await import(_0x6a1752(0xfc)),{WebSocketManager:_0x1131f6}=await import('../../api/websocket.js'),{WS_MESSAGE_TYPE:_0x2ade82}=await import(_0x6a1752(0xfa)),_0x316393=new _0x1131f6(_0x6a1752(0x108),0x1f90),_0x5b3559=new _0x1436f4(_0x316393);expect(_0x5b3559['hasHandler'](_0x2ade82['AGENT_MODE_CHANGED']))[_0x6a1752(0x10a)](!![]);});}),describe('Agent\x20Control\x20Management\x20-\x20Mode\x20Switching\x20Logic',()=>{test('AGENT_MODE\x20supports\x20toggling\x20between\x20modes',async()=>{const _0x197b3f=a0_0x1d67,{AGENT_MODE:_0x5b6745}=await import(_0x197b3f(0xfa));let _0x97d1a8=_0x5b6745['CHAT'],_0x1c4600=_0x97d1a8===_0x5b6745[_0x197b3f(0x124)]?_0x5b6745['AGENT']:_0x5b6745[_0x197b3f(0x124)];expect(_0x1c4600)['toBe'](_0x5b6745['AGENT']),_0x97d1a8=_0x5b6745[_0x197b3f(0x103)],_0x1c4600=_0x97d1a8===_0x5b6745[_0x197b3f(0x124)]?_0x5b6745['AGENT']:_0x5b6745[_0x197b3f(0x124)],expect(_0x1c4600)['toBe'](_0x5b6745[_0x197b3f(0x124)]);});}),describe(a0_0x399779(0x107),()=>{test('MODEL_CATEGORY\x20can\x20be\x20used\x20to\x20filter\x20models\x20by\x20category',async()=>{const _0x2d55cc=a0_0x1d67,{MODEL_CATEGORY:_0x53072d}=await import(_0x2d55cc(0xfa)),_0x241381=[{'id':_0x2d55cc(0x111),'category':_0x53072d[_0x2d55cc(0x11c)]},{'id':'gpt-4','category':_0x53072d[_0x2d55cc(0x11f)]},{'id':'deepseek-chat','category':_0x53072d[_0x2d55cc(0x114)]}],_0x18af4e=_0x241381['filter'](_0x2c65ea=>_0x2c65ea['category']===_0x53072d['ANTHROPIC']),_0x5b8520=_0x241381[_0x2d55cc(0x125)](_0x4e21d1=>_0x4e21d1[_0x2d55cc(0x11e)]===_0x53072d['OPENAI']);expect(_0x18af4e['length'])['toBe'](0x1),expect(_0x18af4e[0x0]['id'])[_0x2d55cc(0x10a)](_0x2d55cc(0x111)),expect(_0x5b8520['length'])['toBe'](0x1),expect(_0x5b8520[0x0]['id'])['toBe']('gpt-4');});});function a0_0x2233(){const _0x576621=['quDftLrtx01prevFr0vu','tuLduK9tt0zu','nty4nJi3mejqEwXrta','DxnLqwDLBNrdB250CM9S','Dg9dB250ywLU','Dg9mB3DLCKnHC2u','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','mtfbrxz2vhK','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','ofnmrxbcCq','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsw50zwDYyxrPB24','twvZC2fNzvjVDxrLCIbOyxmGBw9KzsbJAgfUz2uGzxzLBNqGAgfUzgXLCIbYzwDPC3rLCMvK','ode3otHurwfwqNG','zgvMyxvSDa','m29NBKHtAG','quDftLq','tu9eruXFq0furuDpuLKGAw5JBhvKzxmGBwfQB3iGteXnihbYB3zPzgvYCW','teXnx01prevmuW','ywXS','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gtw9KzwWGrMLSDgvYAw5N','Bg9JywXOB3n0','zgvLChnLzwS','Dg9czq','twvZC2fNzvjVDxrLCG','Dg9nyxrJAa','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gq29UC3rHBNrZ','quDftLrFtu9erv9dsefor0ve','quDftLrtx01prevFu0vu','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0GqvbjievUzhbVAw50CYbwywXPzgf0Aw9U','y2XHDwrLltmTns1ZB25Uzxq','otuYsu5jEKvi','mtjmtwPZtgK','revfufnfruS','v1nFtuvtu0fhrv9uwvbfigLUy2X1zgvZig1VzguGyw5Kig1VzgvSignOyw5NzsbLDMvUDhm','nZG2mJi3mfDszgXfDq','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gsw1WB3j0CW','BgvUz3rO','DxnLqwDLBNrdB250CM9SigHVB2SGAw50zwDYyxrLCYb3AxrOifnLC3nPB24Gyw5Kie1LC3nHz2vsB3v0zxi','qvbjx0vorfbpsu5uuW','odu3ody0rKHUvMHH','qu5usfjpueLd','yw50AhjVCgLJ','y2f0zwDVCNK','t1bftKfj','Dg9czurLzMLUzwq','B3bLBMfP','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','Dg9vChbLCKnHC2u','q0Hbva','zMLSDgvY','qwDLBNqGq29UDhjVBcbnyw5Hz2vTzw50ic0Gv2vIu29JA2v0iev2zw50ieHHBMrSzxjZ','A2v5CW','lI4VlI4VC3rHDguVDxnLqwDLBNrdB250CM9SlMPZ','mtjiENvPBM4','l2fWAs9SBg0VBw9KzwXZ','ndq5ndC2mKHeDNv5va','otiXntKWofforvzfAa','quDftLrFtu9ersbOyxmGzxHHy3rSEsb0D28GBw9Kzxm','mJGXodm3DfnWyxLN'];a0_0x2233=function(){return _0x576621;};return a0_0x2233();}
@@ -1 +1 @@
1
- function a0_0x4221(_0x1499c8,_0x284900){_0x1499c8=_0x1499c8-0x16c;const _0x2c9e38=a0_0x2c9e();let _0x42217f=_0x2c9e38[_0x1499c8];if(a0_0x4221['FrUVEA']===undefined){var _0x4a36c6=function(_0x11571b){const _0x57bd24='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x45ea08='',_0x4f0f65='';for(let _0x55eeeb=0x0,_0x2c2dc7,_0x4a2ac2,_0x404c17=0x0;_0x4a2ac2=_0x11571b['charAt'](_0x404c17++);~_0x4a2ac2&&(_0x2c2dc7=_0x55eeeb%0x4?_0x2c2dc7*0x40+_0x4a2ac2:_0x4a2ac2,_0x55eeeb++%0x4)?_0x45ea08+=String['fromCharCode'](0xff&_0x2c2dc7>>(-0x2*_0x55eeeb&0x6)):0x0){_0x4a2ac2=_0x57bd24['indexOf'](_0x4a2ac2);}for(let _0x3f3740=0x0,_0x2e3dd0=_0x45ea08['length'];_0x3f3740<_0x2e3dd0;_0x3f3740++){_0x4f0f65+='%'+('00'+_0x45ea08['charCodeAt'](_0x3f3740)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f0f65);};a0_0x4221['JuhXel']=_0x4a36c6,a0_0x4221['gBZIxk']={},a0_0x4221['FrUVEA']=!![];}const _0x496532=_0x2c9e38[0x0],_0x3f8c3a=_0x1499c8+_0x496532,_0x779e61=a0_0x4221['gBZIxk'][_0x3f8c3a];return!_0x779e61?(_0x42217f=a0_0x4221['JuhXel'](_0x42217f),a0_0x4221['gBZIxk'][_0x3f8c3a]=_0x42217f):_0x42217f=_0x779e61,_0x42217f;}const a0_0x5362b0=a0_0x4221;(function(_0x5a73ee,_0x2e673d){const _0x4aa090=a0_0x4221,_0x1beb3e=_0x5a73ee();while(!![]){try{const _0x39d99c=parseInt(_0x4aa090(0x181))/0x1+parseInt(_0x4aa090(0x196))/0x2+-parseInt(_0x4aa090(0x187))/0x3+-parseInt(_0x4aa090(0x182))/0x4+parseInt(_0x4aa090(0x19a))/0x5+parseInt(_0x4aa090(0x16e))/0x6+-parseInt(_0x4aa090(0x173))/0x7*(-parseInt(_0x4aa090(0x170))/0x8);if(_0x39d99c===_0x2e673d)break;else _0x1beb3e['push'](_0x1beb3e['shift']());}catch(_0x5b0b0b){_0x1beb3e['push'](_0x1beb3e['shift']());}}}(a0_0x2c9e,0x945a8));import{describe,test,expect}from'@jest/globals';describe('Agent\x20Management\x20-\x20Imports',()=>{test('useAgents hook can be imported',async()=>{const _0xf59c0b=a0_0x4221,{useAgents:_0x45ea08}=await import(_0xf59c0b(0x16f));expect(_0x45ea08)['toBeDefined'](),expect(typeof _0x45ea08)[_0xf59c0b(0x190)]('function');}),test('useAgents is default export',async()=>{const _0x360c8a=a0_0x4221,module=await import('../../state/useAgents.js');expect(module['default'])['toBeDefined'](),expect(typeof module['default'])[_0x360c8a(0x190)]('function'),expect(module[_0x360c8a(0x194)])['toBe'](module['useAgents']);});}),describe(a0_0x5362b0(0x171),()=>{const _0x490790=a0_0x5362b0;test('AGENT_MODE\x20constants\x20are\x20defined',async()=>{const _0x1bb981=a0_0x4221,{AGENT_MODE:_0x4f0f65}=await import(_0x1bb981(0x197));expect(_0x4f0f65)['toBeDefined'](),expect(_0x4f0f65['CHAT'])['toBe']('CHAT'),expect(_0x4f0f65['AGENT'])['toBe']('AGENT');}),test(_0x490790(0x191),async()=>{const _0xc02d6a=_0x490790,{AGENT_STATUS:_0x55eeeb}=await import('../../config/constants.js');expect(_0x55eeeb)[_0xc02d6a(0x189)](),expect(_0x55eeeb[_0xc02d6a(0x17d)])['toBe']('active'),expect(_0x55eeeb['PAUSED'])['toBe'](_0xc02d6a(0x180)),expect(_0x55eeeb[_0xc02d6a(0x177)])[_0xc02d6a(0x190)]('idle'),expect(_0x55eeeb[_0xc02d6a(0x19b)])['toBe']('error'),expect(_0x55eeeb['ARCHIVED'])['toBe'](_0xc02d6a(0x17b));}),test(_0x490790(0x16d),async()=>{const _0x9e0ad7=_0x490790,{API_ENDPOINTS:_0x2c2dc7}=await import(_0x9e0ad7(0x197));expect(_0x2c2dc7[_0x9e0ad7(0x193)])['toBe']('/api/agents/available'),expect(_0x2c2dc7[_0x9e0ad7(0x17e)])[_0x9e0ad7(0x190)]('/api/agents/:agentId/metadata'),expect(_0x2c2dc7['AGENTS_IMPORT'])['toBe']('/api/agents/import'),expect(_0x2c2dc7[_0x9e0ad7(0x17c)])['toBe'](_0x9e0ad7(0x198)),expect(_0x2c2dc7[_0x9e0ad7(0x18f)])['toBe']('/api/agents/:agentId/mode'),expect(_0x2c2dc7['AGENTS_STOP'])[_0x9e0ad7(0x190)](_0x9e0ad7(0x172));}),test('AGENT_TEMPLATES\x20constants\x20are\x20defined',async()=>{const _0x4fe8c1=_0x490790,{AGENT_TEMPLATES:_0x4a2ac2}=await import('../../config/constants.js');expect(_0x4a2ac2)['toBeDefined'](),expect(_0x4a2ac2[_0x4fe8c1(0x183)])['toBe'](_0x4fe8c1(0x17f)),expect(_0x4a2ac2[_0x4fe8c1(0x199)])['toBe'](_0x4fe8c1(0x18b)),expect(_0x4a2ac2[_0x4fe8c1(0x179)])[_0x4fe8c1(0x190)](_0x4fe8c1(0x174)),expect(_0x4a2ac2[_0x4fe8c1(0x188)])[_0x4fe8c1(0x190)](_0x4fe8c1(0x178)),expect(_0x4a2ac2['CUSTOM'])[_0x4fe8c1(0x190)]('custom');});}),describe('Agent\x20Management\x20-\x20Integration',()=>{test('useAgents\x20hook\x20integrates\x20with\x20Session\x20and\x20MessageRouter',async()=>{const _0x44e0ef=a0_0x4221,{useAgents:_0x404c17}=await import(_0x44e0ef(0x16f)),{SessionManager:_0x3f3740}=await import(_0x44e0ef(0x16c)),{MessageRouter:_0x2e3dd0}=await import(_0x44e0ef(0x192)),{WebSocketManager:_0x28e414}=await import('../../api/websocket.js'),_0x56fc85=new _0x3f3740('localhost',0x1f90),_0x270d97=new _0x28e414(_0x44e0ef(0x18e),0x1f90),_0x121927=new _0x2e3dd0(_0x270d97);expect(_0x56fc85)[_0x44e0ef(0x189)](),expect(_0x121927)[_0x44e0ef(0x189)](),expect(typeof _0x404c17)['toBe']('function');}),test('Full agent management stack can be imported together',async()=>{const _0x4fd6ae=a0_0x4221,[_0x357ecd,_0x99406b,_0x2fb6b9,_0x3463bc,_0x1892a8]=await Promise['all']([import('../../config/constants.js'),import(_0x4fd6ae(0x16c)),import('../../api/websocket.js'),import('../../api/messageRouter.js'),import(_0x4fd6ae(0x16f))]);expect(_0x357ecd[_0x4fd6ae(0x18d)])[_0x4fd6ae(0x189)](),expect(_0x99406b[_0x4fd6ae(0x186)])['toBeDefined'](),expect(_0x2fb6b9['WebSocketManager'])[_0x4fd6ae(0x189)](),expect(_0x3463bc['MessageRouter'])['toBeDefined'](),expect(_0x1892a8[_0x4fd6ae(0x185)])[_0x4fd6ae(0x189)]();});}),describe(a0_0x5362b0(0x18c),()=>{const _0x455f5e=a0_0x5362b0;test(_0x455f5e(0x195),async()=>{const _0x17a99b=_0x455f5e,{API_ENDPOINTS:_0x4dc9c4}=await import('../../config/constants.js');expect(_0x4dc9c4['AGENTS_AVAILABLE'])[_0x17a99b(0x176)](/^\/api\/agents/),expect(_0x4dc9c4[_0x17a99b(0x17e)])['toMatch'](/^\/api\/agents/),expect(_0x4dc9c4['AGENTS_IMPORT'])['toMatch'](/^\/api\/agents/),expect(_0x4dc9c4['AGENTS_MODE_SET'])['toMatch'](/^\/api\/agents/),expect(_0x4dc9c4[_0x17a99b(0x18f)])[_0x17a99b(0x176)](/^\/api\/agents/),expect(_0x4dc9c4[_0x17a99b(0x175)])['toMatch'](/^\/api\/agents/),expect(_0x4dc9c4[_0x17a99b(0x17e)])['toContain'](_0x17a99b(0x184)),expect(_0x4dc9c4['AGENTS_MODE_SET'])['toContain'](_0x17a99b(0x184)),expect(_0x4dc9c4[_0x17a99b(0x18f)])[_0x17a99b(0x18a)](':agentId'),expect(_0x4dc9c4[_0x17a99b(0x175)])[_0x17a99b(0x18a)](':agentId');}),test('Orchestrator\x20endpoint\x20exists\x20for\x20agent\x20operations',async()=>{const _0x8cef5=_0x455f5e,{API_ENDPOINTS:_0x144379}=await import(_0x8cef5(0x197));expect(_0x144379['ORCHESTRATOR'])['toBeDefined'](),expect(_0x144379[_0x8cef5(0x17a)])['toBe']('/api/orchestrator');});});function a0_0x2c9e(){const _0x245bd2=['l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','refuqv9btKfmwvnu','mJy2nZC0mhj4yuLNta','rvjst1i','lI4VlI4VyxbPl3nLC3nPB24UANm','qwDLBNqGqvbjigvUzhbVAw50CYbHCMuGzgvMAw5Lza','ntC4otaXnLP3A0znyG','lI4VlI4VC3rHDguVDxnLqwDLBNrZlMPZ','mte1mtjhs3zerMe','qwDLBNqGtwfUywDLBwvUDcaTienVBNn0yw50CW','l2fWAs9Hz2vUDhmVoMfNzw50swqVC3rVCa','mZvLr0rjBKi','y3jLyxrPDMuTD3jPDgvY','quDftLrtx1nut1a','Dg9nyxrJAa','surmrq','C3LZDgvTlwfKBwLUAxn0CMf0B3i','q1jfqvrjvKvFv1jjvevs','t1jdsevtvfjbve9s','yxjJAgL2zwq','quDftLrtx01prevFu0vu','qunusvzf','quDftLrtx01fvefeqvrb','y29KAw5NlwfZC2LZDgfUDa','Cgf1C2vK','mtCZndGXv1fstM5b','mZG5nti2mfrlB25XEq','q09esu5hx0ftu0Ltvefova','oMfNzw50swq','DxnLqwDLBNrZ','u2vZC2LVBK1HBMfNzxi','mJu2nJC2n2jwyLHwza','u1Ltvevnx0fetuLosvnuuKfut1i','Dg9czurLzMLUzwq','Dg9dB250ywLU','zgf0ys1HBMfSExn0','qwDLBNqGtwfUywDLBwvUDcaTiefqssbfBMrWB2LUDhmGvMfSAwrHDgLVBG','quDftLrFtu9erq','Bg9JywXOB3n0','quDftLrtx01prevFr0vu','Dg9czq','quDftLrFu1rbvfvtignVBNn0yw50CYbHCMuGzgvMAw5Lza','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','quDftLrtx0fwquLmqujmrq','zgvMyxvSDa','qwXSigfNzw50igvUzhbVAw50CYbMB2XSB3CGuKvtvgz1BcbWyxr0zxjU','mtuXnJaWmeTAshLMzG','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW'];a0_0x2c9e=function(){return _0x245bd2;};return a0_0x2c9e();}
1
+ const a0_0x3fb395=a0_0x18a0;(function(_0xa0e836,_0x4778cd){const _0x5b3c52=a0_0x18a0,_0x4fcb07=_0xa0e836();while(!![]){try{const _0x4f15ca=parseInt(_0x5b3c52(0x1db))/0x1+parseInt(_0x5b3c52(0x1c2))/0x2*(parseInt(_0x5b3c52(0x1e6))/0x3)+-parseInt(_0x5b3c52(0x1ea))/0x4*(parseInt(_0x5b3c52(0x1ce))/0x5)+parseInt(_0x5b3c52(0x1e8))/0x6+parseInt(_0x5b3c52(0x1df))/0x7+parseInt(_0x5b3c52(0x1c5))/0x8+-parseInt(_0x5b3c52(0x1e3))/0x9;if(_0x4f15ca===_0x4778cd)break;else _0x4fcb07['push'](_0x4fcb07['shift']());}catch(_0x40f9ac){_0x4fcb07['push'](_0x4fcb07['shift']());}}}(a0_0xc48e,0xb64a4));import{describe,test,expect}from'@jest/globals';function a0_0x18a0(_0x1784d3,_0x2aee5f){_0x1784d3=_0x1784d3-0x1c2;const _0xc48e5a=a0_0xc48e();let _0x18a039=_0xc48e5a[_0x1784d3];if(a0_0x18a0['hDRWMz']===undefined){var _0x1232df=function(_0x13e515){const _0x51dc3b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x35fc70='',_0x2ed42a='';for(let _0x1a9735=0x0,_0x31275d,_0x29660f,_0x23c855=0x0;_0x29660f=_0x13e515['charAt'](_0x23c855++);~_0x29660f&&(_0x31275d=_0x1a9735%0x4?_0x31275d*0x40+_0x29660f:_0x29660f,_0x1a9735++%0x4)?_0x35fc70+=String['fromCharCode'](0xff&_0x31275d>>(-0x2*_0x1a9735&0x6)):0x0){_0x29660f=_0x51dc3b['indexOf'](_0x29660f);}for(let _0x112552=0x0,_0x23de69=_0x35fc70['length'];_0x112552<_0x23de69;_0x112552++){_0x2ed42a+='%'+('00'+_0x35fc70['charCodeAt'](_0x112552)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ed42a);};a0_0x18a0['wpOOMw']=_0x1232df,a0_0x18a0['ZIPmVp']={},a0_0x18a0['hDRWMz']=!![];}const _0x107517=_0xc48e5a[0x0],_0x50a935=_0x1784d3+_0x107517,_0x11f82f=a0_0x18a0['ZIPmVp'][_0x50a935];return!_0x11f82f?(_0x18a039=a0_0x18a0['wpOOMw'](_0x18a039),a0_0x18a0['ZIPmVp'][_0x50a935]=_0x18a039):_0x18a039=_0x11f82f,_0x18a039;}describe('Agent\x20Management\x20-\x20Imports',()=>{test('useAgents hook can be imported',async()=>{const _0x4052c1=a0_0x18a0,{useAgents:_0x35fc70}=await import(_0x4052c1(0x1e4));expect(_0x35fc70)[_0x4052c1(0x1de)](),expect(typeof _0x35fc70)[_0x4052c1(0x1e5)](_0x4052c1(0x1d3));}),test('useAgents is default export',async()=>{const _0x5da905=a0_0x18a0,module=await import(_0x5da905(0x1e4));expect(module[_0x5da905(0x1c8)])[_0x5da905(0x1de)](),expect(typeof module[_0x5da905(0x1c8)])[_0x5da905(0x1e5)](_0x5da905(0x1d3)),expect(module[_0x5da905(0x1c8)])['toBe'](module['useAgents']);});}),describe('Agent\x20Management\x20-\x20Constants',()=>{const _0xb3ada5=a0_0x18a0;test('AGENT_MODE\x20constants\x20are\x20defined',async()=>{const _0x892dfc=a0_0x18a0,{AGENT_MODE:_0x2ed42a}=await import(_0x892dfc(0x1d4));expect(_0x2ed42a)[_0x892dfc(0x1de)](),expect(_0x2ed42a[_0x892dfc(0x1d1)])['toBe'](_0x892dfc(0x1d1)),expect(_0x2ed42a[_0x892dfc(0x1d8)])[_0x892dfc(0x1e5)]('AGENT');}),test('AGENT_STATUS\x20constants\x20are\x20defined',async()=>{const _0x1a28ae=a0_0x18a0,{AGENT_STATUS:_0x1a9735}=await import('../../config/constants.js');expect(_0x1a9735)[_0x1a28ae(0x1de)](),expect(_0x1a9735['ACTIVE'])[_0x1a28ae(0x1e5)](_0x1a28ae(0x1d9)),expect(_0x1a9735['PAUSED'])[_0x1a28ae(0x1e5)]('paused'),expect(_0x1a9735['IDLE'])[_0x1a28ae(0x1e5)](_0x1a28ae(0x1ca)),expect(_0x1a9735['ERROR'])[_0x1a28ae(0x1e5)]('error'),expect(_0x1a9735[_0x1a28ae(0x1d5)])['toBe']('archived');}),test(_0xb3ada5(0x1dd),async()=>{const _0x330db9=_0xb3ada5,{API_ENDPOINTS:_0x31275d}=await import('../../config/constants.js');expect(_0x31275d[_0x330db9(0x1e0)])['toBe'](_0x330db9(0x1cb)),expect(_0x31275d[_0x330db9(0x1d7)])['toBe']('/api/agents/:agentId/metadata'),expect(_0x31275d['AGENTS_IMPORT'])['toBe']('/api/agents/import'),expect(_0x31275d['AGENTS_MODE_SET'])['toBe'](_0x330db9(0x1c7)),expect(_0x31275d['AGENTS_MODE_GET'])['toBe']('/api/agents/:agentId/mode'),expect(_0x31275d[_0x330db9(0x1eb)])[_0x330db9(0x1e5)](_0x330db9(0x1e2));}),test(_0xb3ada5(0x1c9),async()=>{const _0x4a0b6b=_0xb3ada5,{AGENT_TEMPLATES:_0x29660f}=await import(_0x4a0b6b(0x1d4));expect(_0x29660f)['toBeDefined'](),expect(_0x29660f['CODING_ASSISTANT'])[_0x4a0b6b(0x1e5)]('coding-assistant'),expect(_0x29660f[_0x4a0b6b(0x1cf)])[_0x4a0b6b(0x1e5)]('data-analyst'),expect(_0x29660f['CREATIVE_WRITER'])[_0x4a0b6b(0x1e5)]('creative-writer'),expect(_0x29660f[_0x4a0b6b(0x1d2)])['toBe']('system-administrator'),expect(_0x29660f[_0x4a0b6b(0x1d0)])[_0x4a0b6b(0x1e5)](_0x4a0b6b(0x1dc));});}),describe('Agent\x20Management\x20-\x20Integration',()=>{test('useAgents\x20hook\x20integrates\x20with\x20Session\x20and\x20MessageRouter',async()=>{const _0x1a681b=a0_0x18a0,{useAgents:_0x23c855}=await import(_0x1a681b(0x1e4)),{SessionManager:_0x112552}=await import('../../api/session.js'),{MessageRouter:_0x23de69}=await import(_0x1a681b(0x1c4)),{WebSocketManager:_0x50025d}=await import(_0x1a681b(0x1c3)),_0x501408=new _0x112552(_0x1a681b(0x1cd),0x1f90),_0x521e89=new _0x50025d(_0x1a681b(0x1cd),0x1f90),_0x4c90bb=new _0x23de69(_0x521e89);expect(_0x501408)['toBeDefined'](),expect(_0x4c90bb)['toBeDefined'](),expect(typeof _0x23c855)['toBe']('function');}),test('Full agent management stack can be imported together',async()=>{const _0x5a4687=a0_0x18a0,[_0x40fcb5,_0x397702,_0x51816e,_0x2332cf,_0x190ee3]=await Promise['all']([import('../../config/constants.js'),import(_0x5a4687(0x1c6)),import('../../api/websocket.js'),import('../../api/messageRouter.js'),import('../../state/useAgents.js')]);expect(_0x40fcb5[_0x5a4687(0x1da)])['toBeDefined'](),expect(_0x397702[_0x5a4687(0x1ee)])[_0x5a4687(0x1de)](),expect(_0x51816e['WebSocketManager'])[_0x5a4687(0x1de)](),expect(_0x2332cf['MessageRouter'])[_0x5a4687(0x1de)](),expect(_0x190ee3['useAgents'])[_0x5a4687(0x1de)]();});}),describe(a0_0x3fb395(0x1e7),()=>{const _0x56bbbf=a0_0x3fb395;test(_0x56bbbf(0x1e9),async()=>{const _0x2d13f2=_0x56bbbf,{API_ENDPOINTS:_0x2c580c}=await import(_0x2d13f2(0x1d4));expect(_0x2c580c['AGENTS_AVAILABLE'])['toMatch'](/^\/api\/agents/),expect(_0x2c580c['AGENTS_METADATA'])['toMatch'](/^\/api\/agents/),expect(_0x2c580c['AGENTS_IMPORT'])[_0x2d13f2(0x1cc)](/^\/api\/agents/),expect(_0x2c580c['AGENTS_MODE_SET'])['toMatch'](/^\/api\/agents/),expect(_0x2c580c[_0x2d13f2(0x1e1)])['toMatch'](/^\/api\/agents/),expect(_0x2c580c[_0x2d13f2(0x1eb)])['toMatch'](/^\/api\/agents/),expect(_0x2c580c['AGENTS_METADATA'])[_0x2d13f2(0x1d6)](_0x2d13f2(0x1ed)),expect(_0x2c580c['AGENTS_MODE_SET'])['toContain'](_0x2d13f2(0x1ed)),expect(_0x2c580c['AGENTS_MODE_GET'])['toContain'](':agentId'),expect(_0x2c580c[_0x2d13f2(0x1eb)])[_0x2d13f2(0x1d6)](':agentId');}),test('Orchestrator\x20endpoint\x20exists\x20for\x20agent\x20operations',async()=>{const _0x309240=_0x56bbbf,{API_ENDPOINTS:_0x1c30e4}=await import('../../config/constants.js');expect(_0x1c30e4[_0x309240(0x1ec)])['toBeDefined'](),expect(_0x1c30e4['ORCHESTRATOR'])[_0x309240(0x1e5)]('/api/orchestrator');});});function a0_0xc48e(){const _0x3be268=['quDftLq','ywn0AxzL','quDftLrFtu9erq','mtaXodKZogzTAhPSCq','y3vZDg9T','qwDLBNqGqvbjigvUzhbVAw50CYbHCMuGzgvMAw5Lza','Dg9czurLzMLUzwq','ody1nduYme15zeDbCW','quDftLrtx0fwquLmqujmrq','quDftLrtx01prevFr0vu','l2fWAs9Hz2vUDhmVoMfNzw50swqVC3rVCa','mJG2nJy1mdnhCxPzALi','lI4VlI4VC3rHDguVDxnLqwDLBNrZlMPZ','Dg9czq','m1flwKjpqq','qwDLBNqGtwfUywDLBwvUDcaTiefqssbfBMrWB2LUDhmGvMfSAwrHDgLVBG','nJG5mdGZoeXnDxDgsW','qwXSigfNzw50igvUzhbVAw50CYbMB2XSB3CGuKvtvgz1BcbWyxr0zxjU','ntjsBNvSvu0','quDftLrtx1nut1a','t1jdsevtvfjbve9s','oMfNzw50swq','u2vZC2LVBK1HBMfNzxi','mJiZnJq1nhfbwgjLtG','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','lI4VlI4VyxbPl21LC3nHz2vsB3v0zxiUANm','mZa5ntu4nffTAu91Cq','lI4VlI4VyxbPl3nLC3nPB24UANm','l2fWAs9Hz2vUDhmVoMfNzw50swqVBw9Kzq','zgvMyxvSDa','quDftLrFvevnueXbvevtignVBNn0yw50CYbHCMuGzgvMAw5Lza','AwrSzq','l2fWAs9Hz2vUDhmVyxzHAwXHyMXL','Dg9nyxrJAa','Bg9JywXOB3n0','mZC1ode1twnzzMTw','refuqv9btKfmwvnu','q1vtve9n','q0Hbva','u1Ltvevnx0fetuLosvnuuKfut1i','zNvUy3rPB24','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','qvjdseLwruq','Dg9dB250ywLU','quDftLrtx01fvefeqvrb'];a0_0xc48e=function(){return _0x3be268;};return a0_0xc48e();}
@@ -1 +1 @@
1
- function a0_0x6834(_0x3c77f3,_0x36ed2a){_0x3c77f3=_0x3c77f3-0x1b6;const _0x5179b5=a0_0x5179();let _0x6834f5=_0x5179b5[_0x3c77f3];if(a0_0x6834['fcolri']===undefined){var _0x1b0e1c=function(_0x2288da){const _0x2dfc47='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x533019='',_0x2d5190='';for(let _0x12d96d=0x0,_0x3dc12c,_0x2e5d47,_0x511947=0x0;_0x2e5d47=_0x2288da['charAt'](_0x511947++);~_0x2e5d47&&(_0x3dc12c=_0x12d96d%0x4?_0x3dc12c*0x40+_0x2e5d47:_0x2e5d47,_0x12d96d++%0x4)?_0x533019+=String['fromCharCode'](0xff&_0x3dc12c>>(-0x2*_0x12d96d&0x6)):0x0){_0x2e5d47=_0x2dfc47['indexOf'](_0x2e5d47);}for(let _0x3457eb=0x0,_0xe3b1a=_0x533019['length'];_0x3457eb<_0xe3b1a;_0x3457eb++){_0x2d5190+='%'+('00'+_0x533019['charCodeAt'](_0x3457eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d5190);};a0_0x6834['wdOGJq']=_0x1b0e1c,a0_0x6834['APZpNp']={},a0_0x6834['fcolri']=!![];}const _0x29395c=_0x5179b5[0x0],_0x55af72=_0x3c77f3+_0x29395c,_0x29c006=a0_0x6834['APZpNp'][_0x55af72];return!_0x29c006?(_0x6834f5=a0_0x6834['wdOGJq'](_0x6834f5),a0_0x6834['APZpNp'][_0x55af72]=_0x6834f5):_0x6834f5=_0x29c006,_0x6834f5;}function a0_0x5179(){const _0x41783d=['nJm5nZe3mhDXyNLiEa','ntq0mZyWnxzHCxrIrq','lI4VlI4Vy29TCg9Uzw50CY9nzxnZywDLtgLZDc5QCW','zNvUy3rPB24','mJbnEhPqAMK','Dg9czurLzMLUzwq','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbjBxbVCNrZ','owfOsxzNrW','ndi0mdeZnLvsAMH6sa','ndyWmJC0me93DM1mEq','n3PVAgfZra','u3rHDhvZqMfY','ywXS','Dg9czq','ntK2otCWoffbu3ngAW','mti4odaYD2zHAuHj','CMvHy3q','mte3ndaYmvb0wezPtG','sw5WDxrcB3G','sgvHzgvY','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','zgvMyxvSDa','lI4VlI4VC3rHDguVDxnLtwvZC2fNzxmUANm','DxnLu3rHDgu','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbszwfJDc9jBMSGrgvWzw5Kzw5JAwvZ','lI4VlI4Vy29TCg9Uzw50CY9tDgf0DxncyxiUANm'];a0_0x5179=function(){return _0x41783d;};return a0_0x5179();}const a0_0x537879=a0_0x6834;(function(_0x1dfd21,_0x4dcfd3){const _0x28062d=a0_0x6834,_0x1a061e=_0x1dfd21();while(!![]){try{const _0x5ed232=-parseInt(_0x28062d(0x1ca))/0x1+-parseInt(_0x28062d(0x1bc))/0x2*(-parseInt(_0x28062d(0x1c8))/0x3)+parseInt(_0x28062d(0x1c7))/0x4+-parseInt(_0x28062d(0x1b9))/0x5+parseInt(_0x28062d(0x1b8))/0x6+parseInt(_0x28062d(0x1c3))/0x7*(parseInt(_0x28062d(0x1c1))/0x8)+-parseInt(_0x28062d(0x1c0))/0x9*(parseInt(_0x28062d(0x1c2))/0xa);if(_0x5ed232===_0x4dcfd3)break;else _0x1a061e['push'](_0x1a061e['shift']());}catch(_0x554684){_0x1a061e['push'](_0x1a061e['shift']());}}}(a0_0x5179,0xc2153));import{describe,test,expect}from'@jest/globals';describe(a0_0x537879(0x1bf),()=>{test('Layout component can be imported',async()=>{const {Layout:_0x533019}=await import('../../components/Layout.js');expect(_0x533019)['toBeDefined'](),expect(typeof _0x533019)['toBe']('function');}),test('Layout is default export',async()=>{const _0xf9ad01=a0_0x6834,module=await import('../../components/Layout.js');expect(module['default'])[_0xf9ad01(0x1bd)](),expect(typeof module[_0xf9ad01(0x1ce)])[_0xf9ad01(0x1c6)](_0xf9ad01(0x1bb)),expect(module['default'])[_0xf9ad01(0x1c6)](module['Layout']);}),test('Header component can be imported',async()=>{const _0x6798b2=a0_0x6834,{Header:_0x2d5190}=await import('../../components/Header.js');expect(_0x2d5190)[_0x6798b2(0x1bd)](),expect(typeof _0x2d5190)['toBe']('function');}),test('Header is default export',async()=>{const module=await import('../../components/Header.js');expect(module['default'])['toBeDefined'](),expect(module['default'])['toBe'](module['Header']);}),test('StatusBar component can be imported',async()=>{const _0x25120e=a0_0x6834,{StatusBar:_0x12d96d}=await import('../../components/StatusBar.js');expect(_0x12d96d)[_0x25120e(0x1bd)](),expect(typeof _0x12d96d)['toBe'](_0x25120e(0x1bb));}),test('StatusBar is default export',async()=>{const _0x9dc0db=a0_0x6834,module=await import(_0x9dc0db(0x1b7));expect(module['default'])[_0x9dc0db(0x1bd)](),expect(module[_0x9dc0db(0x1ce)])[_0x9dc0db(0x1c6)](module['StatusBar']);}),test('MessageList component can be imported',async()=>{const _0x4c7303=a0_0x6834,{MessageList:_0x3dc12c}=await import('../../components/MessageList.js');expect(_0x3dc12c)[_0x4c7303(0x1bd)](),expect(typeof _0x3dc12c)[_0x4c7303(0x1c6)]('function');}),test('MessageList is default export',async()=>{const _0x5be6a5=a0_0x6834,module=await import('../../components/MessageList.js');expect(module['default'])['toBeDefined'](),expect(module[_0x5be6a5(0x1ce)])[_0x5be6a5(0x1c6)](module['MessageList']);}),test('InputBox component can be imported',async()=>{const _0x417a6a=a0_0x6834,{InputBox:_0x2e5d47}=await import('../../components/InputBox.js');expect(_0x2e5d47)[_0x417a6a(0x1bd)](),expect(typeof _0x2e5d47)['toBe']('function');}),test('InputBox is default export',async()=>{const _0x5bf26e=a0_0x6834,module=await import('../../components/InputBox.js');expect(module['default'])['toBeDefined'](),expect(module[_0x5bf26e(0x1ce)])['toBe'](module[_0x5bf26e(0x1cb)]);});}),describe('Component\x20Management\x20-\x20Integration',()=>{test('All components can be imported together',async()=>{const _0x4d412e=a0_0x6834,[_0x511947,_0x3457eb,_0xe3b1a,_0x9ae793,_0x51da00]=await Promise[_0x4d412e(0x1c5)]([import(_0x4d412e(0x1be)),import('../../components/Header.js'),import('../../components/StatusBar.js'),import(_0x4d412e(0x1ba)),import('../../components/InputBox.js')]);expect(_0x511947['Layout'])['toBeDefined'](),expect(_0x3457eb[_0x4d412e(0x1cc)])['toBeDefined'](),expect(_0xe3b1a[_0x4d412e(0x1c4)])['toBeDefined'](),expect(_0x9ae793['MessageList'])[_0x4d412e(0x1bd)](),expect(_0x51da00['InputBox'])[_0x4d412e(0x1bd)]();}),test('Layout\x20component\x20integrates\x20with\x20all\x20state\x20hooks',async()=>{const _0x2ddf36=a0_0x6834,{Layout:_0xb9becc}=await import('../../components/Layout.js'),{useConnection:_0x2f752a}=await import(_0x2ddf36(0x1cd)),{useAgents:_0x4552a9}=await import('../../state/useAgents.js'),{useMessages:_0x397e84}=await import(_0x2ddf36(0x1cf)),{useAgentControl:_0x131dc7}=await import('../../state/useAgentControl.js'),{useTools:_0x5dcabe}=await import('../../state/useTools.js');expect(_0xb9becc)[_0x2ddf36(0x1bd)](),expect(_0x2f752a)[_0x2ddf36(0x1bd)](),expect(_0x4552a9)['toBeDefined'](),expect(_0x397e84)[_0x2ddf36(0x1bd)](),expect(_0x131dc7)['toBeDefined'](),expect(_0x5dcabe)['toBeDefined']();});}),describe(a0_0x537879(0x1b6),()=>{test('Ink components can be imported',async()=>{const _0x543cb5=a0_0x6834,{Box:_0x3c2312,Text:_0x2e290f}=await import('ink');expect(_0x3c2312)['toBeDefined'](),expect(_0x2e290f)[_0x543cb5(0x1bd)]();}),test('React can be imported',async()=>{const _0x240c12=a0_0x6834,_0x5ec4fc=await import(_0x240c12(0x1c9));expect(_0x5ec4fc[_0x240c12(0x1ce)])['toBeDefined'](),expect(_0x5ec4fc[_0x240c12(0x1d0)])['toBeDefined'](),expect(_0x5ec4fc['useEffect'])['toBeDefined']();});});
1
+ const a0_0x3f2d9f=a0_0x385c;function a0_0x1859(){const _0x42a0c0=['tgf5B3v0','oda1nZa0rKnRrKXH','nte1BwfSALnU','DxnLu3rHDgu','mtm2mJzpD1nIBey','mJi2ndHXCMXns0q','zgvMyxvSDa','mZG3reHfshzy','zNvUy3rPB24','twvZC2fNzuXPC3q','mJi5nJi2ouTTvKnsrq','CMvHy3q','lI4VlI4Vy29TCg9Uzw50CY9nzxnZywDLtgLZDc5QCW','q29TCg9Uzw50ie1HBMfNzw1LBNqGlsbjBNrLz3jHDgLVBG','mJaWCMfysu9f','lI4VlI4Vy29TCg9Uzw50CY9izwfKzxiUANm','lI4VlI4VC3rHDguVDxnLqwDLBNrZlMPZ','ntq2mda3z0Dmr0Dd','lI4VlI4VC3rHDguVDxnLtwvZC2fNzxmUANm','ote1mtiWCfH2yw1Q','sw5WDxrcB3G','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','nJeYntu4mu9Jze93qW','nhfTCfL0vq','Aw5R','Dg9czq','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','lI4VlI4Vy29TCg9Uzw50CY9tDgf0DxncyxiUANm','sgvHzgvY','Dg9czurLzMLUzwq','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW'];a0_0x1859=function(){return _0x42a0c0;};return a0_0x1859();}(function(_0x4a36f7,_0x3563e4){const _0x192e67=a0_0x385c,_0x36664e=_0x4a36f7();while(!![]){try{const _0x2ff890=parseInt(_0x192e67(0x128))/0x1+-parseInt(_0x192e67(0x11b))/0x2+parseInt(_0x192e67(0x131))/0x3*(parseInt(_0x192e67(0x11f))/0x4)+-parseInt(_0x192e67(0x129))/0x5*(parseInt(_0x192e67(0x12b))/0x6)+parseInt(_0x192e67(0x11e))/0x7+parseInt(_0x192e67(0x12c))/0x8*(-parseInt(_0x192e67(0x12e))/0x9)+-parseInt(_0x192e67(0x116))/0xa*(parseInt(_0x192e67(0x119))/0xb);if(_0x2ff890===_0x3563e4)break;else _0x36664e['push'](_0x36664e['shift']());}catch(_0x20d73d){_0x36664e['push'](_0x36664e['shift']());}}}(a0_0x1859,0x9c508));function a0_0x385c(_0x1371d9,_0x481c5a){_0x1371d9=_0x1371d9-0x116;const _0x18593a=a0_0x1859();let _0x385c78=_0x18593a[_0x1371d9];if(a0_0x385c['cbvaxn']===undefined){var _0x4a17f0=function(_0x2ba7f8){const _0x189a6a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x413c51='',_0x588568='';for(let _0x51fcfd=0x0,_0x2f60a4,_0x1cc503,_0x2fa464=0x0;_0x1cc503=_0x2ba7f8['charAt'](_0x2fa464++);~_0x1cc503&&(_0x2f60a4=_0x51fcfd%0x4?_0x2f60a4*0x40+_0x1cc503:_0x1cc503,_0x51fcfd++%0x4)?_0x413c51+=String['fromCharCode'](0xff&_0x2f60a4>>(-0x2*_0x51fcfd&0x6)):0x0){_0x1cc503=_0x189a6a['indexOf'](_0x1cc503);}for(let _0x5ad45c=0x0,_0x39e15f=_0x413c51['length'];_0x5ad45c<_0x39e15f;_0x5ad45c++){_0x588568+='%'+('00'+_0x413c51['charCodeAt'](_0x5ad45c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x588568);};a0_0x385c['IoZabU']=_0x4a17f0,a0_0x385c['xJYXSQ']={},a0_0x385c['cbvaxn']=!![];}const _0x1137e0=_0x18593a[0x0],_0x31375e=_0x1371d9+_0x1137e0,_0x47b008=a0_0x385c['xJYXSQ'][_0x31375e];return!_0x47b008?(_0x385c78=a0_0x385c['IoZabU'](_0x385c78),a0_0x385c['xJYXSQ'][_0x31375e]=_0x385c78):_0x385c78=_0x47b008,_0x385c78;}import{describe,test,expect}from'@jest/globals';describe('Component\x20Management\x20-\x20Imports',()=>{test('Layout component can be imported',async()=>{const _0x2ae140=a0_0x385c,{Layout:_0x413c51}=await import('../../components/Layout.js');expect(_0x413c51)[_0x2ae140(0x125)](),expect(typeof _0x413c51)[_0x2ae140(0x121)]('function');}),test('Layout is default export',async()=>{const _0x4c02e9=a0_0x385c,module=await import('../../components/Layout.js');expect(module['default'])[_0x4c02e9(0x125)](),expect(typeof module[_0x4c02e9(0x12d)])['toBe']('function'),expect(module[_0x4c02e9(0x12d)])[_0x4c02e9(0x121)](module[_0x4c02e9(0x127)]);}),test('Header component can be imported',async()=>{const _0x58f76b=a0_0x385c,{Header:_0x588568}=await import('../../components/Header.js');expect(_0x588568)['toBeDefined'](),expect(typeof _0x588568)[_0x58f76b(0x121)]('function');}),test('Header is default export',async()=>{const _0x38b619=a0_0x385c,module=await import(_0x38b619(0x117));expect(module['default'])['toBeDefined'](),expect(module['default'])[_0x38b619(0x121)](module['Header']);}),test('StatusBar component can be imported',async()=>{const _0x2f8d76=a0_0x385c,{StatusBar:_0x51fcfd}=await import('../../components/StatusBar.js');expect(_0x51fcfd)['toBeDefined'](),expect(typeof _0x51fcfd)[_0x2f8d76(0x121)]('function');}),test('StatusBar is default export',async()=>{const _0x2aa819=a0_0x385c,module=await import(_0x2aa819(0x123));expect(module[_0x2aa819(0x12d)])[_0x2aa819(0x125)](),expect(module[_0x2aa819(0x12d)])['toBe'](module['StatusBar']);}),test('MessageList component can be imported',async()=>{const _0x2ae6fc=a0_0x385c,{MessageList:_0x2f60a4}=await import(_0x2ae6fc(0x133));expect(_0x2f60a4)[_0x2ae6fc(0x125)](),expect(typeof _0x2f60a4)[_0x2ae6fc(0x121)](_0x2ae6fc(0x12f));}),test('MessageList is default export',async()=>{const _0x423a81=a0_0x385c,module=await import(_0x423a81(0x133));expect(module[_0x423a81(0x12d)])['toBeDefined'](),expect(module['default'])[_0x423a81(0x121)](module[_0x423a81(0x130)]);}),test('InputBox component can be imported',async()=>{const _0x3bdd6f=a0_0x385c,{InputBox:_0x1cc503}=await import(_0x3bdd6f(0x122));expect(_0x1cc503)['toBeDefined'](),expect(typeof _0x1cc503)['toBe']('function');}),test('InputBox is default export',async()=>{const _0x5c4d78=a0_0x385c,module=await import('../../components/InputBox.js');expect(module['default'])[_0x5c4d78(0x125)](),expect(module[_0x5c4d78(0x12d)])[_0x5c4d78(0x121)](module['InputBox']);});}),describe(a0_0x3f2d9f(0x134),()=>{test('All components can be imported together',async()=>{const _0x52df43=a0_0x385c,[_0x2fa464,_0x5ad45c,_0x39e15f,_0x589687,_0x2eacf9]=await Promise['all']([import('../../components/Layout.js'),import(_0x52df43(0x117)),import('../../components/StatusBar.js'),import(_0x52df43(0x133)),import(_0x52df43(0x122))]);expect(_0x2fa464['Layout'])['toBeDefined'](),expect(_0x5ad45c[_0x52df43(0x124)])['toBeDefined'](),expect(_0x39e15f['StatusBar'])['toBeDefined'](),expect(_0x589687[_0x52df43(0x130)])['toBeDefined'](),expect(_0x2eacf9[_0x52df43(0x11c)])['toBeDefined']();}),test('Layout\x20component\x20integrates\x20with\x20all\x20state\x20hooks',async()=>{const _0x9eec4=a0_0x385c,{Layout:_0xbebb77}=await import(_0x9eec4(0x11d)),{useConnection:_0x4e4f22}=await import(_0x9eec4(0x126)),{useAgents:_0x3a3872}=await import(_0x9eec4(0x118)),{useMessages:_0x54dae4}=await import(_0x9eec4(0x11a)),{useAgentControl:_0xa26962}=await import('../../state/useAgentControl.js'),{useTools:_0x255ed6}=await import('../../state/useTools.js');expect(_0xbebb77)[_0x9eec4(0x125)](),expect(_0x4e4f22)[_0x9eec4(0x125)](),expect(_0x3a3872)['toBeDefined'](),expect(_0x54dae4)[_0x9eec4(0x125)](),expect(_0xa26962)['toBeDefined'](),expect(_0x255ed6)[_0x9eec4(0x125)]();});}),describe('Component\x20Management\x20-\x20React/Ink\x20Dependencies',()=>{test('Ink components can be imported',async()=>{const _0x1b2026=a0_0x385c,{Box:_0x2dbd59,Text:_0x1be484}=await import(_0x1b2026(0x120));expect(_0x2dbd59)[_0x1b2026(0x125)](),expect(_0x1be484)[_0x1b2026(0x125)]();}),test('React can be imported',async()=>{const _0x45bfc0=a0_0x385c,_0x273595=await import(_0x45bfc0(0x132));expect(_0x273595['default'])['toBeDefined'](),expect(_0x273595[_0x45bfc0(0x12a)])[_0x45bfc0(0x125)](),expect(_0x273595['useEffect'])['toBeDefined']();});});
@@ -1 +1 @@
1
- function a0_0x4287(){const _0x313f30=['q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0GrxHWB25LBNrPywWGqMfJA29MzIbmB2DPyW','Dg9czuDYzwf0zxjuAgfU','DgvZDc1ZzxnZAw9UlteYmW','Dg9mB3DLCKnHC2u','q09otKvdveLptL9tvefuvvmGDMfSDwvZigfYzsbSB3DLCMnHC2uGC3rYAw5NCW','Dxb0Aw1L','Dg9czurLzMLUzwq','y29UBMvJDgvK','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsw1WB3j0CW','odq1mZm4mMHgywziuq','q09otKvdveLptL9tvefuvvmGAgfZigfSBcbYzxf1AxjLzcbZDgf0zxm','DxnLq29UBMvJDgLVBG','zgLZy29UBMvJDgvK','ywXS','zNvUy3rPB24','uKvdt05orunux0nptKzjrYb2ywX1zxmGyxjLihjLyxnVBMfIBgu','Dg9czq','lI4VlI4VyxbPl3nLC3nPB24UANm','tufyx0fuvevnufrt','tufyx0rftefz','ndi3mdiWodr5CMreuei','u2vZC2LVBIbZDgf0zsbZAg91BgqGAw52ywXPzgf0zq','A2v5CW','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gq29UBMvJDgLVBIbnzxrYAwnZ','q09otKvdveLptL9tvefuvvmGy29UC3rHBNrZigfYzsbKzwzPBMvK','Cg93','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gu3rHDhvZifzHBhvLCW','BgvUz3rO','uMvJB25Uzwn0Aw9UihnOB3vSzcbZDg9WigfMDgvYig1HEcbHDhrLBxb0CW','su5jveLbtf9eruXbwq','uKvdt05orunusu5h','q09otKvdveLorW','nxffzer3wG','q09otKvdveve','v2vIu29JA2v0twfUywDLCG','mZKZnujQA0vnBG','BM93','ndi0nde1n1H1D2DKwG','reLtq09otKvdveve','Bg9JywXOB3n0','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsw50zwDYyxrPB24','Dg9dB250ywLU','Dg9czu51BgW','mZmYtfvruKXS','BwLU','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','C3rYAw5N','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','qKfds09grL9nvuXusvbmsuvs','mZGYotC2m2DXtxPAta','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gv2vIu29JA2v0iev2zw50ieLUDgvNCMf0Aw9U','u2vZC2LVBK1HBMfNzxi','zgvMyxvSDa','uMvJB25Uzwn0Aw9Uigf0DgvTChrZignHBIbIzsb0CMfJA2vK','mta1otCZmtjwuKTUBLa','nta5nJa4ohv5u0DeyW'];a0_0x4287=function(){return _0x313f30;};return a0_0x4287();}const a0_0x15c7d7=a0_0x1f69;(function(_0x3403f2,_0x2e3240){const _0xdb1c79=a0_0x1f69,_0x280428=_0x3403f2();while(!![]){try{const _0x998308=parseInt(_0xdb1c79(0x9d))/0x1*(-parseInt(_0xdb1c79(0xa5))/0x2)+-parseInt(_0xdb1c79(0x9f))/0x3+-parseInt(_0xdb1c79(0xb2))/0x4+parseInt(_0xdb1c79(0x9a))/0x5*(-parseInt(_0xdb1c79(0x83))/0x6)+-parseInt(_0xdb1c79(0xab))/0x7+parseInt(_0xdb1c79(0xb1))/0x8+parseInt(_0xdb1c79(0x8e))/0x9;if(_0x998308===_0x2e3240)break;else _0x280428['push'](_0x280428['shift']());}catch(_0x25da74){_0x280428['push'](_0x280428['shift']());}}}(a0_0x4287,0xbc537));import{describe,test,expect}from'@jest/globals';function a0_0x1f69(_0x2f6d9c,_0x3d8a99){_0x2f6d9c=_0x2f6d9c-0x7c;const _0x4287e5=a0_0x4287();let _0x1f693a=_0x4287e5[_0x2f6d9c];if(a0_0x1f69['vjZeaG']===undefined){var _0x28802b=function(_0x322e2e){const _0x329355='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3513b9='',_0x16e394='';for(let _0x29eecb=0x0,_0x3349df,_0x5aad5e,_0x4755f2=0x0;_0x5aad5e=_0x322e2e['charAt'](_0x4755f2++);~_0x5aad5e&&(_0x3349df=_0x29eecb%0x4?_0x3349df*0x40+_0x5aad5e:_0x5aad5e,_0x29eecb++%0x4)?_0x3513b9+=String['fromCharCode'](0xff&_0x3349df>>(-0x2*_0x29eecb&0x6)):0x0){_0x5aad5e=_0x329355['indexOf'](_0x5aad5e);}for(let _0x773549=0x0,_0x130109=_0x3513b9['length'];_0x773549<_0x130109;_0x773549++){_0x16e394+='%'+('00'+_0x3513b9['charCodeAt'](_0x773549)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x16e394);};a0_0x1f69['WZxFeW']=_0x28802b,a0_0x1f69['LRAxpl']={},a0_0x1f69['vjZeaG']=!![];}const _0x253df3=_0x4287e5[0x0],_0x537c8c=_0x2f6d9c+_0x253df3,_0x28e87a=a0_0x1f69['LRAxpl'][_0x537c8c];return!_0x28e87a?(_0x1f693a=a0_0x1f69['WZxFeW'](_0x1f693a),a0_0x1f69['LRAxpl'][_0x537c8c]=_0x1f693a):_0x1f693a=_0x28e87a,_0x1f693a;}describe(a0_0x15c7d7(0x82),()=>{test('useConnection hook can be imported',async()=>{const _0x2e128e=a0_0x1f69,{useConnection:_0x3513b9}=await import('../../state/useConnection.js');expect(_0x3513b9)['toBeDefined'](),expect(typeof _0x3513b9)['toBe'](_0x2e128e(0x88));}),test('useConnection is default export',async()=>{const _0x2d1ec7=a0_0x1f69,module=await import('../../state/useConnection.js');expect(module[_0x2d1ec7(0xaf)])[_0x2d1ec7(0x80)](),expect(typeof module[_0x2d1ec7(0xaf)])[_0x2d1ec7(0x8a)]('function'),expect(module['default'])['toBe'](module[_0x2d1ec7(0x85)]);});}),describe('Connection\x20Management\x20-\x20Constants',()=>{const _0x30f641=a0_0x15c7d7;test(_0x30f641(0x92),async()=>{const _0x7737c5=_0x30f641,{CONNECTION_STATUS:_0x16e394}=await import(_0x7737c5(0xa9));expect(_0x16e394)[_0x7737c5(0x80)](),expect(_0x16e394[_0x7737c5(0x99)])['toBe']('connecting'),expect(_0x16e394['CONNECTED'])[_0x7737c5(0x8a)](_0x7737c5(0x81)),expect(_0x16e394['DISCONNECTED'])['toBe']('disconnected'),expect(_0x16e394[_0x7737c5(0x98)])['toBe']('reconnecting');}),test('CONNECTION_STATUS\x20is\x20alias\x20for\x20CONNECTION_STATE',async()=>{const _0xa3b738=_0x30f641,{CONNECTION_STATUS:_0x29eecb,CONNECTION_STATE:_0x3349df}=await import('../../config/constants.js');expect(_0x29eecb)[_0xa3b738(0x8a)](_0x3349df);}),test('RECONNECT_CONFIG\x20constants\x20are\x20defined',async()=>{const _0x7aa34d=_0x30f641,{RECONNECT_CONFIG:_0x5aad5e}=await import('../../config/constants.js');expect(_0x5aad5e)['toBeDefined'](),expect(_0x5aad5e['INITIAL_DELAY'])['toBeDefined'](),expect(_0x5aad5e['MAX_DELAY'])[_0x7aa34d(0x80)](),expect(_0x5aad5e['BACKOFF_MULTIPLIER'])['toBeDefined'](),expect(_0x5aad5e['MAX_ATTEMPTS'])['toBeDefined']();}),test(_0x30f641(0x89),async()=>{const _0x259bae=_0x30f641,{RECONNECT_CONFIG:_0x4755f2}=await import(_0x259bae(0xa9));expect(_0x4755f2['INITIAL_DELAY'])['toBeGreaterThan'](0x0),expect(_0x4755f2[_0x259bae(0x8d)])['toBeGreaterThan'](_0x4755f2[_0x259bae(0x97)]),expect(_0x4755f2[_0x259bae(0xaa)])[_0x259bae(0xb4)](0x1),expect(_0x4755f2[_0x259bae(0x8c)])['toBeGreaterThan'](0x0);});}),describe(a0_0x15c7d7(0xa2),()=>{test('useConnection\x20hook\x20integrates\x20with\x20SessionManager\x20and\x20WebSocketManager',async()=>{const _0x31602d=a0_0x1f69,{useConnection:_0x773549}=await import(_0x31602d(0xa7)),{SessionManager:_0x130109}=await import(_0x31602d(0x8b)),{WebSocketManager:_0x386320}=await import('../../api/websocket.js'),_0x1404e0=new _0x130109(_0x31602d(0xa1),0x1f90),_0x37eb74=new _0x386320('localhost',0x1f90);expect(_0x1404e0)['toBeDefined'](),expect(_0x37eb74)['toBeDefined'](),expect(typeof _0x773549)[_0x31602d(0x8a)]('function');}),test('Full connection stack can be imported together',async()=>{const _0x2f4314=a0_0x1f69,[_0x65e0f6,_0x21c774,_0x19c7a9,_0x27fb63]=await Promise[_0x2f4314(0x87)]([import('../../config/constants.js'),import(_0x2f4314(0x8b)),import(_0x2f4314(0xac)),import('../../state/useConnection.js')]);expect(_0x65e0f6['CONNECTION_STATUS'])['toBeDefined'](),expect(_0x65e0f6['RECONNECT_CONFIG'])[_0x2f4314(0x80)](),expect(_0x21c774[_0x2f4314(0xae)])['toBeDefined'](),expect(_0x19c7a9[_0x2f4314(0x9c)])['toBeDefined'](),expect(_0x27fb63['useConnection'])['toBeDefined']();});}),describe('Connection\x20Management\x20-\x20Hook\x20Interface\x20Verification',()=>{test('useConnection\x20returns\x20expected\x20interface\x20shape',async()=>{const _0x221885=a0_0x1f69,{useConnection:_0x4285fb}=await import(_0x221885(0xa7));expect(_0x4285fb[_0x221885(0x95)])['toBe'](0x2);});}),describe(a0_0x15c7d7(0x94),()=>{const _0x1787e2=a0_0x15c7d7;test(_0x1787e2(0x7e),async()=>{const _0x129baa=_0x1787e2,{CONNECTION_STATUS:_0x1fff15}=await import(_0x129baa(0xa9));expect(typeof _0x1fff15[_0x129baa(0x99)])[_0x129baa(0x8a)]('string'),expect(typeof _0x1fff15['CONNECTED'])['toBe']('string'),expect(typeof _0x1fff15[_0x129baa(0xa0)])['toBe'](_0x129baa(0xa8)),expect(typeof _0x1fff15[_0x129baa(0x98)])['toBe'](_0x129baa(0xa8)),expect(_0x1fff15[_0x129baa(0x99)])[_0x129baa(0x8a)](_0x1fff15['CONNECTING']['toLowerCase']()),expect(_0x1fff15['CONNECTED'])['toBe'](_0x1fff15['CONNECTED'][_0x129baa(0x7d)]());}),test(_0x1787e2(0x84),async()=>{const _0xc19c8e=_0x1787e2,{CONNECTION_STATUS:_0x43739e}=await import(_0xc19c8e(0xa9)),_0x48b0f5=Object[_0xc19c8e(0x90)](_0x43739e);expect(_0x48b0f5)[_0xc19c8e(0xa3)](_0xc19c8e(0x99)),expect(_0x48b0f5)[_0xc19c8e(0xa3)](_0xc19c8e(0x9b)),expect(_0x48b0f5)['toContain'](_0xc19c8e(0xa0)),expect(_0x48b0f5)[_0xc19c8e(0xa3)]('RECONNECTING');});}),describe(a0_0x15c7d7(0xb3),()=>{test('Exponential\x20backoff\x20delay\x20calculation\x20works\x20correctly',async()=>{const _0x11bf75=a0_0x1f69,{RECONNECT_CONFIG:_0x1c2d3a}=await import('../../config/constants.js'),_0x19b923=_0x336bbf=>{const _0x153a72=a0_0x1f69;return Math['min'](_0x1c2d3a['INITIAL_DELAY']*Math[_0x153a72(0x93)](_0x1c2d3a[_0x153a72(0xaa)],_0x336bbf),_0x1c2d3a[_0x153a72(0x8d)]);},_0x2dfc61=_0x19b923(0x0),_0x5bac37=_0x19b923(0x1),_0x3045e4=_0x19b923(0x2);expect(_0x2dfc61)['toBe'](_0x1c2d3a['INITIAL_DELAY']),expect(_0x5bac37)[_0x11bf75(0xb4)](_0x2dfc61),expect(_0x3045e4)['toBeGreaterThan'](_0x5bac37);}),test('Exponential\x20backoff\x20respects\x20max\x20delay',async()=>{const _0x1eb93f=a0_0x1f69,{RECONNECT_CONFIG:_0x2364bc}=await import('../../config/constants.js'),_0x5dff39=_0x11b6b7=>{const _0x56df4d=a0_0x1f69;return Math[_0x56df4d(0xa6)](_0x2364bc['INITIAL_DELAY']*Math['pow'](_0x2364bc[_0x56df4d(0xaa)],_0x11b6b7),_0x2364bc['MAX_DELAY']);},_0x192f74=_0x5dff39(0x64);expect(_0x192f74)['toBe'](_0x2364bc[_0x1eb93f(0x8d)]),expect(_0x192f74)['toBeLessThanOrEqual'](_0x2364bc['MAX_DELAY']);});}),describe('Connection\x20Management\x20-\x20Session\x20State',()=>{const _0x89039=a0_0x15c7d7;test('Session\x20state\x20should\x20track\x20validity',async()=>{const _0x165df7=a0_0x1f69;let _0x5e480f=null,_0x2c2c77=![],_0x21ed98=null;_0x5e480f=_0x165df7(0x7c),_0x2c2c77=!![],_0x21ed98=Date[_0x165df7(0x9e)]()+0x36ee80,expect(_0x5e480f)[_0x165df7(0x80)](),expect(_0x2c2c77)['toBe'](!![]),expect(_0x21ed98)['toBeGreaterThan'](Date['now']());}),test(_0x89039(0x8f),async()=>{const _0x2e0bc5=_0x89039;let _0xf72def=_0x2e0bc5(0x7c),_0x4a09=!![];_0xf72def=null,_0x4a09=![],expect(_0xf72def)[_0x2e0bc5(0xa4)](),expect(_0x4a09)[_0x2e0bc5(0x8a)](![]);});}),describe(a0_0x15c7d7(0x91),()=>{const _0x34521e=a0_0x15c7d7;test('Connection\x20uptime\x20can\x20be\x20tracked',async()=>{const _0x482c7e=a0_0x1f69,_0x32b0ac=Date['now']();await new Promise(_0x37b503=>setTimeout(_0x37b503,0x64));const _0x233577=Date[_0x482c7e(0x9e)]()-_0x32b0ac;expect(_0x233577)['toBeGreaterThan'](0x0),expect(_0x233577)['toBeGreaterThanOrEqual'](0x64);}),test('Connection\x20metrics\x20track\x20timestamps',async()=>{const _0xdc3c14=a0_0x1f69,_0x4aeb06=Date['now']();await new Promise(_0x575d68=>setTimeout(_0x575d68,0x32));const _0x5b176d=Date[_0xdc3c14(0x9e)]();expect(_0x4aeb06)['toBeDefined'](),expect(_0x5b176d)['toBeDefined'](),expect(_0x5b176d)[_0xdc3c14(0xb4)](_0x4aeb06);}),test(_0x34521e(0xb0),async()=>{const _0x341dab=_0x34521e;let _0xd9656d=0x0;_0xd9656d+=0x1,expect(_0xd9656d)['toBe'](0x1),_0xd9656d+=0x1,expect(_0xd9656d)[_0x341dab(0x8a)](0x2),_0xd9656d=0x0,expect(_0xd9656d)[_0x341dab(0x8a)](0x0);});}),describe('Connection\x20Management\x20-\x20Connection\x20Status\x20Transitions',()=>{test('Connection\x20status\x20transitions\x20follow\x20valid\x20flow',async()=>{const _0x5357e5=a0_0x1f69,{CONNECTION_STATUS:_0x523f38}=await import('../../config/constants.js');let _0x4a6fab=_0x523f38[_0x5357e5(0xa0)];expect(_0x4a6fab)[_0x5357e5(0x8a)](_0x5357e5(0x86)),_0x4a6fab=_0x523f38['CONNECTING'],expect(_0x4a6fab)[_0x5357e5(0x8a)]('connecting'),_0x4a6fab=_0x523f38['CONNECTED'],expect(_0x4a6fab)[_0x5357e5(0x8a)]('connected'),_0x4a6fab=_0x523f38[_0x5357e5(0xa0)],expect(_0x4a6fab)['toBe'](_0x5357e5(0x86)),_0x4a6fab=_0x523f38[_0x5357e5(0x98)],expect(_0x4a6fab)[_0x5357e5(0x8a)]('reconnecting'),_0x4a6fab=_0x523f38['CONNECTED'],expect(_0x4a6fab)[_0x5357e5(0x8a)]('connected');});}),describe(a0_0x15c7d7(0xad),()=>{test('WebSocketManager\x20has\x20event\x20emitter\x20methods',async()=>{const _0x31ddbd=a0_0x1f69,{WebSocketManager:_0x4dad07}=await import('../../api/websocket.js'),_0x44b359=new _0x4dad07('localhost',0x1f90);expect(_0x44b359['on'])['toBeDefined'](),expect(_0x44b359['off'])[_0x31ddbd(0x80)](),expect(typeof _0x44b359['on'])['toBe']('function'),expect(typeof _0x44b359['off'])[_0x31ddbd(0x8a)](_0x31ddbd(0x88));});}),describe('Connection\x20Management\x20-\x20Max\x20Attempts\x20Limit',()=>{const _0x368549=a0_0x15c7d7;test(_0x368549(0x96),async()=>{const _0x174a91=_0x368549,{RECONNECT_CONFIG:_0x548623}=await import(_0x174a91(0xa9));let _0x3f3ac3=0x0;for(let _0x49aa20=0x0;_0x49aa20<_0x548623[_0x174a91(0x8c)]+0x5;_0x49aa20++){if(_0x3f3ac3<_0x548623[_0x174a91(0x8c)])_0x3f3ac3+=0x1;else break;}expect(_0x3f3ac3)['toBe'](_0x548623['MAX_ATTEMPTS']),expect(_0x3f3ac3)['toBeLessThanOrEqual'](_0x548623[_0x174a91(0x8c)]);});}),describe('Connection\x20Management\x20-\x20Connection\x20Info',()=>{test('Connection\x20info\x20should\x20contain\x20all\x20metrics',async()=>{const _0x3e6679=a0_0x1f69,{CONNECTION_STATUS:_0x1daca9}=await import(_0x3e6679(0xa9)),_0x715194={'status':_0x1daca9['CONNECTED'],'isConnected':!![],'isReconnecting':![],'sessionId':_0x3e6679(0x7c),'sessionValid':!![],'sessionExpiration':Date[_0x3e6679(0x9e)]()+0x36ee80,'uptime':0x1388,'lastConnectedAt':Date['now']()-0x1388,'lastDisconnectedAt':null,'reconnectAttempts':0x0};expect(_0x715194['status'])[_0x3e6679(0x80)](),expect(_0x715194['isConnected'])['toBe'](!![]),expect(_0x715194['isReconnecting'])[_0x3e6679(0x8a)](![]),expect(_0x715194['sessionId'])['toBeDefined'](),expect(_0x715194['sessionValid'])['toBe'](!![]),expect(_0x715194[_0x3e6679(0x7f)])['toBeGreaterThan'](0x0);});});
1
+ const a0_0x4e3a7b=a0_0x1e7a;function a0_0x1e7a(_0x3b2463,_0x4a4014){_0x3b2463=_0x3b2463-0x1d6;const _0x696d75=a0_0x696d();let _0x1e7af9=_0x696d75[_0x3b2463];if(a0_0x1e7a['nckSCi']===undefined){var _0x12034f=function(_0x1f3b76){const _0x327639='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b0a78='',_0x562857='';for(let _0x117bcf=0x0,_0x515424,_0x3345c5,_0x361f40=0x0;_0x3345c5=_0x1f3b76['charAt'](_0x361f40++);~_0x3345c5&&(_0x515424=_0x117bcf%0x4?_0x515424*0x40+_0x3345c5:_0x3345c5,_0x117bcf++%0x4)?_0x3b0a78+=String['fromCharCode'](0xff&_0x515424>>(-0x2*_0x117bcf&0x6)):0x0){_0x3345c5=_0x327639['indexOf'](_0x3345c5);}for(let _0x36776e=0x0,_0x3e7a29=_0x3b0a78['length'];_0x36776e<_0x3e7a29;_0x36776e++){_0x562857+='%'+('00'+_0x3b0a78['charCodeAt'](_0x36776e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x562857);};a0_0x1e7a['WjuBBv']=_0x12034f,a0_0x1e7a['xiiBJw']={},a0_0x1e7a['nckSCi']=!![];}const _0x2a6037=_0x696d75[0x0],_0x342b9f=_0x3b2463+_0x2a6037,_0x33361e=a0_0x1e7a['xiiBJw'][_0x342b9f];return!_0x33361e?(_0x1e7af9=a0_0x1e7a['WjuBBv'](_0x1e7af9),a0_0x1e7a['xiiBJw'][_0x342b9f]=_0x1e7af9):_0x1e7af9=_0x33361e,_0x1e7af9;}function a0_0x696d(){const _0x300c9a=['m0nPthn6AG','C3rYAw5N','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gu3rHDhvZifzHBhvLCW','qKfds09grL9nvuXusvbmsuvs','B2zM','nMHVvwneAq','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0GrxHWB25LBNrPywWGqMfJA29MzIbmB2DPyW','Dg9czurLzMLUzwq','Dg9czq','zgLZy29UBMvJDgvK','C3rHDhvZ','AxnszwnVBM5Ly3rPBMC','u2vZC2LVBIbZDgf0zsbZAg91BgqGAw52ywXPzgf0zq','mJq5otaZmNDJz1HwEG','nde1mLjvt0H2uq','zgvMyxvSDa','mJu4nde0t3j6yxnI','mtaWmZfstMfsz0y','uMvJB25Uzwn0Aw9Uigf0DgvTChrZignHBIbIzsb0CMfJA2vK','v2vIu29JA2v0twfUywDLCG','q09otKvdveLptL9tvefuvvm','DgvZDc1ZzxnZAw9UlteYmW','uKvdt05orunusu5h','y29UBMvJDgLUzW','Dg9czuXLC3nuAgfUt3jfCxvHBa','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gsg9VAYbjBNrLCMzHy2uGvMvYAwzPy2f0Aw9U','BM93','rxHWB25LBNrPywWGyMfJA29MzIbKzwXHEsbJywXJDwXHDgLVBIb3B3jRCYbJB3jYzwn0BhK','u2vZC2LVBK1HBMfNzxi','Bg9JywXOB3n0','Dg9dB250ywLU','q09otKvdveve','uKvdt05orunux0nptKzjrW','mtmXotC2mJbdAKjxC08','q29UBMvJDgLVBIbTzxrYAwnZihrYywnRihrPBwvZDgfTChm','lI4VlI4VC3rHDguVDxnLq29UBMvJDgLVBI5QCW','lI4VlI4VyxbPl3nLC3nPB24UANm','A2v5CW','BwLU','ndq2mJq3owrLyvrJta','y29UBMvJDgvK','tufyx0fuvevnufrt','q09otKvdveLptL9tvefuvvmGDMfSDwvZigfYzsbSB3DLCMnHC2uGC3rYAw5NCW','zNvUy3rPB24','uKvdt05orunux0nptKzjrYbJB25ZDgfUDhmGyxjLigrLzMLUzwq','mteZmdC4neT3wePczW','q09otKvdveLorW','lI4VlI4Vy29UzMLNl2nVBNn0yw50CY5QCW','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gv2vIu29JA2v0iev2zw50ieLUDgvNCMf0Aw9U','Dxb0Aw1L','mtiYmtiZnufXv1PgEa','tufyx0rftefz','lI4VlI4VyxbPl3DLyNnVy2TLDc5QCW','q09otKvdveLptL9tvefuvvmGAgfZigfSBcbYzxf1AxjLzcbZDgf0zxm','q29UBMvJDgLVBIbnyw5Hz2vTzw50ic0Gu2vZC2LVBIbtDgf0zq','reLtq09otKvdveve','q29UBMvJDgLVBIbZDgf0DxmGDhjHBNnPDgLVBNmGzM9SBg93ihzHBgLKigzSB3C','su5jveLbtf9eruXbwq','Dg9czuDYzwf0zxjuAgfU','Dg9mB3DLCKnHC2u'];a0_0x696d=function(){return _0x300c9a;};return a0_0x696d();}(function(_0x298c01,_0x5c6e3e){const _0x139a2c=a0_0x1e7a,_0x2df733=_0x298c01();while(!![]){try{const _0x2a2988=-parseInt(_0x139a2c(0x1ea))/0x1*(parseInt(_0x139a2c(0x1fa))/0x2)+parseInt(_0x139a2c(0x1db))/0x3+parseInt(_0x139a2c(0x1f7))/0x4+-parseInt(_0x139a2c(0x1e0))/0x5*(parseInt(_0x139a2c(0x1ef))/0x6)+parseInt(_0x139a2c(0x1fb))/0x7*(-parseInt(_0x139a2c(0x1f8))/0x8)+-parseInt(_0x139a2c(0x211))/0x9+parseInt(_0x139a2c(0x20b))/0xa;if(_0x2a2988===_0x5c6e3e)break;else _0x2df733['push'](_0x2df733['shift']());}catch(_0x1841c4){_0x2df733['push'](_0x2df733['shift']());}}}(a0_0x696d,0x6dde6));import{describe,test,expect}from'@jest/globals';describe('Connection\x20Management\x20-\x20Imports',()=>{test('useConnection hook can be imported',async()=>{const {useConnection:_0x3b0a78}=await import('../../state/useConnection.js');expect(_0x3b0a78)['toBeDefined'](),expect(typeof _0x3b0a78)['toBe']('function');}),test('useConnection is default export',async()=>{const _0x39186c=a0_0x1e7a,module=await import('../../state/useConnection.js');expect(module['default'])[_0x39186c(0x1f1)](),expect(typeof module[_0x39186c(0x1f9)])['toBe'](_0x39186c(0x1d9)),expect(module[_0x39186c(0x1f9)])[_0x39186c(0x1f2)](module['useConnection']);});}),describe('Connection\x20Management\x20-\x20Constants',()=>{const _0xc61d42=a0_0x1e7a;test('CONNECTION_STATUS\x20constants\x20are\x20defined',async()=>{const _0x2ba52e=a0_0x1e7a,{CONNECTION_STATUS:_0x562857}=await import(_0x2ba52e(0x1dd));expect(_0x562857)['toBeDefined'](),expect(_0x562857['CONNECTING'])['toBe']('connecting'),expect(_0x562857['CONNECTED'])[_0x2ba52e(0x1f2)]('connected'),expect(_0x562857[_0x2ba52e(0x1e5)])[_0x2ba52e(0x1f2)]('disconnected'),expect(_0x562857[_0x2ba52e(0x200)])['toBe']('reconnecting');}),test('CONNECTION_STATUS\x20is\x20alias\x20for\x20CONNECTION_STATE',async()=>{const _0x152246=a0_0x1e7a,{CONNECTION_STATUS:_0x117bcf,CONNECTION_STATE:_0x515424}=await import(_0x152246(0x1dd));expect(_0x117bcf)[_0x152246(0x1f2)](_0x515424);}),test(_0xc61d42(0x1da),async()=>{const _0x51cb02=_0xc61d42,{RECONNECT_CONFIG:_0x3345c5}=await import(_0x51cb02(0x1dd));expect(_0x3345c5)['toBeDefined'](),expect(_0x3345c5[_0x51cb02(0x1e7)])[_0x51cb02(0x1f1)](),expect(_0x3345c5[_0x51cb02(0x1e1)])[_0x51cb02(0x1f1)](),expect(_0x3345c5['BACKOFF_MULTIPLIER'])['toBeDefined'](),expect(_0x3345c5['MAX_ATTEMPTS'])['toBeDefined']();}),test('RECONNECT_CONFIG\x20values\x20are\x20reasonable',async()=>{const _0x27fd19=_0xc61d42,{RECONNECT_CONFIG:_0x361f40}=await import('../../config/constants.js');expect(_0x361f40[_0x27fd19(0x1e7)])[_0x27fd19(0x1e8)](0x0),expect(_0x361f40['MAX_DELAY'])[_0x27fd19(0x1e8)](_0x361f40[_0x27fd19(0x1e7)]),expect(_0x361f40['BACKOFF_MULTIPLIER'])[_0x27fd19(0x1e8)](0x1),expect(_0x361f40['MAX_ATTEMPTS'])[_0x27fd19(0x1e8)](0x0);});}),describe('Connection\x20Management\x20-\x20Integration',()=>{test('useConnection\x20hook\x20integrates\x20with\x20SessionManager\x20and\x20WebSocketManager',async()=>{const _0x3f73e2=a0_0x1e7a,{useConnection:_0x36776e}=await import(_0x3f73e2(0x20d)),{SessionManager:_0x3e7a29}=await import(_0x3f73e2(0x20e)),{WebSocketManager:_0x454d31}=await import(_0x3f73e2(0x1e2)),_0x3f9818=new _0x3e7a29(_0x3f73e2(0x207),0x1f90),_0x2dc4fa=new _0x454d31('localhost',0x1f90);expect(_0x3f9818)['toBeDefined'](),expect(_0x2dc4fa)['toBeDefined'](),expect(typeof _0x36776e)['toBe']('function');}),test('Full connection stack can be imported together',async()=>{const _0x25d8fa=a0_0x1e7a,[_0x541209,_0x486fc0,_0x3f61cf,_0x56ef48]=await Promise['all']([import(_0x25d8fa(0x1dd)),import('../../api/session.js'),import(_0x25d8fa(0x1e2)),import(_0x25d8fa(0x20d))]);expect(_0x541209[_0x25d8fa(0x1fe)])['toBeDefined'](),expect(_0x541209[_0x25d8fa(0x20a)])[_0x25d8fa(0x1f1)](),expect(_0x486fc0[_0x25d8fa(0x206)])[_0x25d8fa(0x1f1)](),expect(_0x3f61cf[_0x25d8fa(0x1fd)])['toBeDefined'](),expect(_0x56ef48['useConnection'])['toBeDefined']();});}),describe(a0_0x4e3a7b(0x203),()=>{test('useConnection\x20returns\x20expected\x20interface\x20shape',async()=>{const {useConnection:_0x89e3e9}=await import('../../state/useConnection.js');expect(_0x89e3e9['length'])['toBe'](0x2);});}),describe(a0_0x4e3a7b(0x1ec),()=>{const _0x163b7e=a0_0x4e3a7b;test(_0x163b7e(0x1d8),async()=>{const _0x56cfc2=_0x163b7e,{CONNECTION_STATUS:_0x1bf39e}=await import(_0x56cfc2(0x1dd));expect(typeof _0x1bf39e['CONNECTING'])[_0x56cfc2(0x1f2)]('string'),expect(typeof _0x1bf39e[_0x56cfc2(0x209)])[_0x56cfc2(0x1f2)](_0x56cfc2(0x1eb)),expect(typeof _0x1bf39e[_0x56cfc2(0x1e5)])[_0x56cfc2(0x1f2)](_0x56cfc2(0x1eb)),expect(typeof _0x1bf39e[_0x56cfc2(0x200)])[_0x56cfc2(0x1f2)]('string'),expect(_0x1bf39e['CONNECTING'])[_0x56cfc2(0x1f2)](_0x1bf39e[_0x56cfc2(0x1dc)]['toLowerCase']()),expect(_0x1bf39e[_0x56cfc2(0x209)])['toBe'](_0x1bf39e['CONNECTED'][_0x56cfc2(0x1e9)]());}),test(_0x163b7e(0x1e3),async()=>{const _0x3cb967=_0x163b7e,{CONNECTION_STATUS:_0x3eb734}=await import('../../config/constants.js'),_0x94ee1d=Object[_0x3cb967(0x20f)](_0x3eb734);expect(_0x94ee1d)['toContain']('CONNECTING'),expect(_0x94ee1d)[_0x3cb967(0x208)]('CONNECTED'),expect(_0x94ee1d)['toContain'](_0x3cb967(0x1e5)),expect(_0x94ee1d)[_0x3cb967(0x208)](_0x3cb967(0x200));});}),describe(a0_0x4e3a7b(0x1f0),()=>{const _0x1d7f21=a0_0x4e3a7b;test(_0x1d7f21(0x205),async()=>{const _0x3b4fed=_0x1d7f21,{RECONNECT_CONFIG:_0x5b23e7}=await import('../../config/constants.js'),_0x599917=_0x29bf94=>{const _0x1a4e5f=a0_0x1e7a;return Math[_0x1a4e5f(0x210)](_0x5b23e7[_0x1a4e5f(0x1e7)]*Math['pow'](_0x5b23e7[_0x1a4e5f(0x1ed)],_0x29bf94),_0x5b23e7['MAX_DELAY']);},_0x4a6ddb=_0x599917(0x0),_0x460f4c=_0x599917(0x1),_0x4a0bad=_0x599917(0x2);expect(_0x4a6ddb)['toBe'](_0x5b23e7[_0x3b4fed(0x1e7)]),expect(_0x460f4c)[_0x3b4fed(0x1e8)](_0x4a6ddb),expect(_0x4a0bad)[_0x3b4fed(0x1e8)](_0x460f4c);}),test('Exponential\x20backoff\x20respects\x20max\x20delay',async()=>{const _0x1ace9b=_0x1d7f21,{RECONNECT_CONFIG:_0x12f340}=await import('../../config/constants.js'),_0x15dfb7=_0x37d37f=>{const _0x2ad92e=a0_0x1e7a;return Math['min'](_0x12f340['INITIAL_DELAY']*Math['pow'](_0x12f340['BACKOFF_MULTIPLIER'],_0x37d37f),_0x12f340[_0x2ad92e(0x1e1)]);},_0x415789=_0x15dfb7(0x64);expect(_0x415789)['toBe'](_0x12f340[_0x1ace9b(0x1e1)]),expect(_0x415789)['toBeLessThanOrEqual'](_0x12f340[_0x1ace9b(0x1e1)]);});}),describe(a0_0x4e3a7b(0x1e4),()=>{const _0x37a094=a0_0x4e3a7b;test('Session\x20state\x20should\x20track\x20validity',async()=>{const _0x190ce3=a0_0x1e7a;let _0x302135=null,_0x6bdd82=![],_0x4cb064=null;_0x302135='test-session-123',_0x6bdd82=!![],_0x4cb064=Date['now']()+0x36ee80,expect(_0x302135)['toBeDefined'](),expect(_0x6bdd82)['toBe'](!![]),expect(_0x4cb064)['toBeGreaterThan'](Date[_0x190ce3(0x204)]());}),test(_0x37a094(0x1f6),async()=>{const _0x4c1843=_0x37a094;let _0x4e8874=_0x4c1843(0x1ff),_0x42f639=!![];_0x4e8874=null,_0x42f639=![],expect(_0x4e8874)['toBeNull'](),expect(_0x42f639)['toBe'](![]);});}),describe('Connection\x20Management\x20-\x20Connection\x20Metrics',()=>{const _0x3e4afd=a0_0x4e3a7b;test('Connection\x20uptime\x20can\x20be\x20tracked',async()=>{const _0x3d97d8=a0_0x1e7a,_0x2f4921=Date[_0x3d97d8(0x204)]();await new Promise(_0x2da8cb=>setTimeout(_0x2da8cb,0x64));const _0x5ae30b=Date[_0x3d97d8(0x204)]()-_0x2f4921;expect(_0x5ae30b)[_0x3d97d8(0x1e8)](0x0),expect(_0x5ae30b)['toBeGreaterThanOrEqual'](0x64);}),test(_0x3e4afd(0x20c),async()=>{const _0x5bd36d=Date['now']();await new Promise(_0xcc58c7=>setTimeout(_0xcc58c7,0x32));const _0xda0e5a=Date['now']();expect(_0x5bd36d)['toBeDefined'](),expect(_0xda0e5a)['toBeDefined'](),expect(_0xda0e5a)['toBeGreaterThan'](_0x5bd36d);}),test(_0x3e4afd(0x1fc),async()=>{const _0x1627f2=_0x3e4afd;let _0x70ad19=0x0;_0x70ad19+=0x1,expect(_0x70ad19)[_0x1627f2(0x1f2)](0x1),_0x70ad19+=0x1,expect(_0x70ad19)['toBe'](0x2),_0x70ad19=0x0,expect(_0x70ad19)[_0x1627f2(0x1f2)](0x0);});}),describe('Connection\x20Management\x20-\x20Connection\x20Status\x20Transitions',()=>{const _0x1c592e=a0_0x4e3a7b;test(_0x1c592e(0x1e6),async()=>{const _0x9848a2=_0x1c592e,{CONNECTION_STATUS:_0x16d62d}=await import('../../config/constants.js');let _0x47676a=_0x16d62d[_0x9848a2(0x1e5)];expect(_0x47676a)['toBe'](_0x9848a2(0x1f3)),_0x47676a=_0x16d62d['CONNECTING'],expect(_0x47676a)[_0x9848a2(0x1f2)](_0x9848a2(0x201)),_0x47676a=_0x16d62d[_0x9848a2(0x209)],expect(_0x47676a)[_0x9848a2(0x1f2)](_0x9848a2(0x1d6)),_0x47676a=_0x16d62d['DISCONNECTED'],expect(_0x47676a)[_0x9848a2(0x1f2)]('disconnected'),_0x47676a=_0x16d62d[_0x9848a2(0x200)],expect(_0x47676a)['toBe']('reconnecting'),_0x47676a=_0x16d62d['CONNECTED'],expect(_0x47676a)['toBe'](_0x9848a2(0x1d6));});}),describe(a0_0x4e3a7b(0x1de),()=>{test('WebSocketManager\x20has\x20event\x20emitter\x20methods',async()=>{const _0xa19e8a=a0_0x1e7a,{WebSocketManager:_0x38d6f8}=await import(_0xa19e8a(0x1e2)),_0x51da2c=new _0x38d6f8('localhost',0x1f90);expect(_0x51da2c['on'])['toBeDefined'](),expect(_0x51da2c[_0xa19e8a(0x1ee)])[_0xa19e8a(0x1f1)](),expect(typeof _0x51da2c['on'])[_0xa19e8a(0x1f2)]('function'),expect(typeof _0x51da2c['off'])[_0xa19e8a(0x1f2)]('function');});}),describe('Connection\x20Management\x20-\x20Max\x20Attempts\x20Limit',()=>{test('Reconnection\x20should\x20stop\x20after\x20max\x20attempts',async()=>{const _0x18e6f0=a0_0x1e7a,{RECONNECT_CONFIG:_0x242cf9}=await import('../../config/constants.js');let _0x33e6b3=0x0;for(let _0x4ca40a=0x0;_0x4ca40a<_0x242cf9[_0x18e6f0(0x1d7)]+0x5;_0x4ca40a++){if(_0x33e6b3<_0x242cf9['MAX_ATTEMPTS'])_0x33e6b3+=0x1;else break;}expect(_0x33e6b3)[_0x18e6f0(0x1f2)](_0x242cf9['MAX_ATTEMPTS']),expect(_0x33e6b3)[_0x18e6f0(0x202)](_0x242cf9['MAX_ATTEMPTS']);});}),describe('Connection\x20Management\x20-\x20Connection\x20Info',()=>{test('Connection\x20info\x20should\x20contain\x20all\x20metrics',async()=>{const _0x1b9163=a0_0x1e7a,{CONNECTION_STATUS:_0x6d6d1d}=await import(_0x1b9163(0x1dd)),_0xba2dd9={'status':_0x6d6d1d['CONNECTED'],'isConnected':!![],'isReconnecting':![],'sessionId':'test-session-123','sessionValid':!![],'sessionExpiration':Date[_0x1b9163(0x204)]()+0x36ee80,'uptime':0x1388,'lastConnectedAt':Date['now']()-0x1388,'lastDisconnectedAt':null,'reconnectAttempts':0x0};expect(_0xba2dd9[_0x1b9163(0x1f4)])['toBeDefined'](),expect(_0xba2dd9['isConnected'])['toBe'](!![]),expect(_0xba2dd9[_0x1b9163(0x1f5)])[_0x1b9163(0x1f2)](![]),expect(_0xba2dd9['sessionId'])['toBeDefined'](),expect(_0xba2dd9['sessionValid'])['toBe'](!![]),expect(_0xba2dd9[_0x1b9163(0x1df)])[_0x1b9163(0x1e8)](0x0);});});
@@ -1 +1 @@
1
- const a0_0x528f69=a0_0x519b;(function(_0x4e02ed,_0x597e2c){const _0x220b13=a0_0x519b,_0x415577=_0x4e02ed();while(!![]){try{const _0x24d905=parseInt(_0x220b13(0x100))/0x1*(parseInt(_0x220b13(0xeb))/0x2)+-parseInt(_0x220b13(0x102))/0x3*(parseInt(_0x220b13(0xed))/0x4)+-parseInt(_0x220b13(0xff))/0x5*(-parseInt(_0x220b13(0xf9))/0x6)+parseInt(_0x220b13(0xe8))/0x7*(-parseInt(_0x220b13(0xf3))/0x8)+-parseInt(_0x220b13(0xea))/0x9*(-parseInt(_0x220b13(0xfb))/0xa)+-parseInt(_0x220b13(0xf0))/0xb+-parseInt(_0x220b13(0xfe))/0xc*(-parseInt(_0x220b13(0xf4))/0xd);if(_0x24d905===_0x597e2c)break;else _0x415577['push'](_0x415577['shift']());}catch(_0x48dc08){_0x415577['push'](_0x415577['shift']());}}}(a0_0x1588,0x75e06));function a0_0x1588(){const _0x175f07=['CMvUzgvY','tg9HzgLUz1nWAw5UzxiGAxmGysbMDw5JDgLVBIbJB21WB25LBNq','y29TCg9Uzw50rgLKq2f0y2G','rxjYB3jcB3vUzgfYEsbPCYbHifjLywn0ienVBxbVBMvUDcbJBgfZCW','DxnLu3rHDgu','ugHHC2uGosaTieXVywrPBMDtCgLUBMvYic0Gu3rYDwn0DxjL','oteYmwjiwuDorW','sw5SAw5Lu3bPBM5LCIbPCYbHigz1BMn0Aw9UignVBxbVBMvUDa','ouzXsw5syW','mZG0mLfWBgr1sG','sw5WDxrcB3G','nevZC3nLyW','zgvMyxvSDa','ugHHC2uGosaTieLUDgvNCMf0Aw9U','ntC3nZm3nLHgBM9vAq','DxnLsw5WDxq','rxjYB3jcB3vUzgfYEsbJB21WB25LBNreAwrdyxrJAcbPCYbKzwzPBMvK','mtu1mMXUz09Ayq','mZLrzg5Uwui','ugHHC2uGosaTievUAgfUy2vKieLUChv0qM94ic0GsgLZDg9YEsbtDxbWB3j0','ywXS','ugHHC2uGosaTievYCM9YqM91BMrHCNKGlsbtDhj1y3r1CMu','Dg9czq','nMnqu0TfqW','rxjYB3jcB3vUzgfYEq','ntyZmdC3mhrbseXcra','lI4VlI4Vy29TCg9Uzw50CY9fCNjVCKjVDw5Kyxj5lMPZ','DxnLuMvM','mJuYmZeYvxvVEffI','mJmWnZe5nuH2z05eBG','ndK5weXfu3LX','zNvUy3rPB24','mJm1nJa1our2t1zSCa','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','z2v0rgvYAxzLzfn0yxrLrNjVBuvYCM9Y','ChjVDg90ExbL','lI4VlI4Vy29TCg9Uzw50CY9mB2fKAw5Nu3bPBM5LCI5QCW','CMvHy3q','Dg9czurLzMLUzwq','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','rxjYB3jcB3vUzgfYEsbPCYbHignSyxnZignVBxbVBMvUDa'];a0_0x1588=function(){return _0x175f07;};return a0_0x1588();}function a0_0x519b(_0x3ee884,_0x304f2c){_0x3ee884=_0x3ee884-0xe6;const _0x1588e3=a0_0x1588();let _0x519b12=_0x1588e3[_0x3ee884];if(a0_0x519b['eAyMSp']===undefined){var _0x54a861=function(_0x5bca0b){const _0x2a308b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1074c5='',_0x56b5d0='';for(let _0x16858d=0x0,_0x2809c0,_0x5ba24d,_0x47465d=0x0;_0x5ba24d=_0x5bca0b['charAt'](_0x47465d++);~_0x5ba24d&&(_0x2809c0=_0x16858d%0x4?_0x2809c0*0x40+_0x5ba24d:_0x5ba24d,_0x16858d++%0x4)?_0x1074c5+=String['fromCharCode'](0xff&_0x2809c0>>(-0x2*_0x16858d&0x6)):0x0){_0x5ba24d=_0x2a308b['indexOf'](_0x5ba24d);}for(let _0x28dcd0=0x0,_0xc5b65f=_0x1074c5['length'];_0x28dcd0<_0xc5b65f;_0x28dcd0++){_0x56b5d0+='%'+('00'+_0x1074c5['charCodeAt'](_0x28dcd0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x56b5d0);};a0_0x519b['LZrIuy']=_0x54a861,a0_0x519b['ixfWhx']={},a0_0x519b['eAyMSp']=!![];}const _0x22e1d9=_0x1588e3[0x0],_0x1ef36f=_0x3ee884+_0x22e1d9,_0x2d1bef=a0_0x519b['ixfWhx'][_0x1ef36f];return!_0x2d1bef?(_0x519b12=a0_0x519b['LZrIuy'](_0x519b12),a0_0x519b['ixfWhx'][_0x1ef36f]=_0x519b12):_0x519b12=_0x2d1bef,_0x519b12;}import{describe,test,expect}from'@jest/globals';describe('Phase\x209\x20-\x20Enhanced\x20Components\x20-\x20Imports',()=>{const _0x5a4f2f=a0_0x519b;test('ErrorBoundary component can be imported',async()=>{const _0x2a049e=a0_0x519b,{ErrorBoundary:_0x1074c5}=await import(_0x2a049e(0xfc));expect(_0x1074c5)['toBeDefined'](),expect(typeof _0x1074c5)['toBe']('function');},0x7530),test(_0x5a4f2f(0x10a),async()=>{const _0x4fcee1=_0x5a4f2f,{ErrorBoundary:_0x56b5d0}=await import(_0x4fcee1(0xfc));expect(_0x56b5d0['prototype'])[_0x4fcee1(0x108)](),expect(typeof _0x56b5d0['prototype'][_0x4fcee1(0x10b)])['toBe'](_0x4fcee1(0x101));}),test('LoadingSpinner component can be imported',async()=>{const _0x32fc87=_0x5a4f2f,{LoadingSpinner:_0x16858d}=await import(_0x32fc87(0x106));expect(_0x16858d)[_0x32fc87(0x108)](),expect(typeof _0x16858d)[_0x32fc87(0xf8)]('function');}),test('InlineSpinner component can be imported',async()=>{const _0x52502f=_0x5a4f2f,{InlineSpinner:_0x2809c0}=await import('../../components/LoadingSpinner.js');expect(_0x2809c0)['toBeDefined'](),expect(typeof _0x2809c0)[_0x52502f(0xf8)]('function');}),test('LoadingSpinner is default export',async()=>{const _0x3c395d=_0x5a4f2f,module=await import('../../components/LoadingSpinner.js');expect(module[_0x3c395d(0xee)])['toBeDefined'](),expect(module[_0x3c395d(0xee)])[_0x3c395d(0xf8)](module['LoadingSpinner']);}),test('Enhanced\x20InputBox\x20maintains\x20backward\x20compatibility',async()=>{const _0x36f67d=_0x5a4f2f,{InputBox:_0x5ba24d}=await import(_0x36f67d(0x103));expect(_0x5ba24d)[_0x36f67d(0x108)](),expect(typeof _0x5ba24d)[_0x36f67d(0xf8)]('function');});}),describe(a0_0x528f69(0xf7),()=>{const _0x3133f9=a0_0x528f69;test(_0x3133f9(0x10e),async()=>{const _0x48dd47=_0x3133f9,{ErrorBoundary:_0x47465d}=await import(_0x48dd47(0xfc)),_0x28dcd0=await import(_0x48dd47(0x107));expect(_0x47465d[_0x48dd47(0x105)])['toBeDefined'](),expect(typeof _0x47465d[_0x48dd47(0x105)][_0x48dd47(0x10b)])[_0x48dd47(0xf8)]('function'),expect(typeof _0x47465d[_0x48dd47(0x105)][_0x48dd47(0x10d)])['toBe'](_0x48dd47(0x101));}),test('ErrorBoundary\x20has\x20getDerivedStateFromError\x20static\x20method',async()=>{const _0x41be97=_0x3133f9,{ErrorBoundary:_0xc5b65f}=await import(_0x41be97(0xfc));expect(typeof _0xc5b65f[_0x41be97(0x104)])[_0x41be97(0xf8)](_0x41be97(0x101));}),test(_0x3133f9(0xf2),async()=>{const _0x50684b=_0x3133f9,{ErrorBoundary:_0x3dd7c6}=await import('../../components/ErrorBoundary.js');expect(typeof _0x3dd7c6['prototype'][_0x50684b(0x10d)])['toBe']('function');});}),describe(a0_0x528f69(0xe7),()=>{const _0x278d2f=a0_0x528f69;test(_0x278d2f(0x10c),async()=>{const _0x134e4a=_0x278d2f,{LoadingSpinner:_0x37cc9c}=await import('../../components/LoadingSpinner.js');expect(typeof _0x37cc9c)['toBe'](_0x134e4a(0x101)),expect(_0x37cc9c[_0x134e4a(0x105)]?.[_0x134e4a(0x10b)])['toBeUndefined']();}),test(_0x278d2f(0xe9),async()=>{const _0x27c6f7=_0x278d2f,{InlineSpinner:_0x525c39}=await import(_0x27c6f7(0x106));expect(typeof _0x525c39)[_0x27c6f7(0xf8)](_0x27c6f7(0x101)),expect(_0x525c39[_0x27c6f7(0x105)]?.['render'])['toBeUndefined']();});}),describe(a0_0x528f69(0xf5),()=>{test('Enhanced InputBox imports useRef for history',async()=>{const _0x535322=a0_0x519b,_0x5de7a3=await import('../../components/InputBox.js'),_0x3a1abb=await import('react');expect(_0x3a1abb[_0x535322(0xe6)])[_0x535322(0x108)](),expect(_0x3a1abb[_0x535322(0xfd)])['toBeDefined']();}),test('InputBox component maintains exports',async()=>{const _0x4c6ca0=a0_0x519b,module=await import('../../components/InputBox.js');expect(module[_0x4c6ca0(0xec)])[_0x4c6ca0(0x108)](),expect(module[_0x4c6ca0(0xee)])[_0x4c6ca0(0x108)](),expect(module['default'])[_0x4c6ca0(0xf8)](module[_0x4c6ca0(0xec)]);});}),describe(a0_0x528f69(0xef),()=>{test('All enhanced components can be imported together',async()=>{const _0x4c6c1a=a0_0x519b,[_0x33ae3e,_0x451ce4,_0x1e7bdc]=await Promise[_0x4c6c1a(0xf6)]([import(_0x4c6c1a(0xfc)),import('../../components/LoadingSpinner.js'),import(_0x4c6c1a(0x103))]);expect(_0x33ae3e[_0x4c6c1a(0xfa)])['toBeDefined'](),expect(_0x451ce4['LoadingSpinner'])[_0x4c6c1a(0x108)](),expect(_0x451ce4['InlineSpinner'])[_0x4c6c1a(0x108)](),expect(_0x1e7bdc['InputBox'])[_0x4c6c1a(0x108)]();}),test('Enhanced Layout component imports useInput for keyboard shortcuts',async()=>{const _0x5a3f07=a0_0x519b,_0x152142=await import(_0x5a3f07(0x107)),_0x51d189=await import('ink');expect(_0x51d189[_0x5a3f07(0xf1)])['toBeDefined'](),expect(typeof _0x51d189[_0x5a3f07(0xf1)])[_0x5a3f07(0xf8)]('function');}),test('Layout component can still be imported after enhancements',async()=>{const _0xd7896d=a0_0x519b,{Layout:_0x333773}=await import(_0xd7896d(0x109));expect(_0x333773)[_0xd7896d(0x108)](),expect(typeof _0x333773)[_0xd7896d(0xf8)](_0xd7896d(0x101));});}),describe('Phase\x209\x20-\x20Enhanced\x20Features\x20-\x20Constants',()=>{test('InputBox\x20defines\x20MAX_HISTORY\x20constant',async()=>{const _0x4c2a49=a0_0x519b,module=await import('../../components/InputBox.js');expect(module['InputBox'])[_0x4c2a49(0x108)]();});});
1
+ const a0_0x7ead93=a0_0x3f97;function a0_0x3f97(_0x18f9e5,_0x4d9b71){_0x18f9e5=_0x18f9e5-0x7f;const _0x452845=a0_0x4528();let _0x3f9765=_0x452845[_0x18f9e5];if(a0_0x3f97['KKwBqf']===undefined){var _0x1716b5=function(_0x1650a4){const _0x3592e9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ddde8='',_0x2c6ba6='';for(let _0x111c52=0x0,_0x11a3a6,_0x4e0cc8,_0x1e8a34=0x0;_0x4e0cc8=_0x1650a4['charAt'](_0x1e8a34++);~_0x4e0cc8&&(_0x11a3a6=_0x111c52%0x4?_0x11a3a6*0x40+_0x4e0cc8:_0x4e0cc8,_0x111c52++%0x4)?_0x5ddde8+=String['fromCharCode'](0xff&_0x11a3a6>>(-0x2*_0x111c52&0x6)):0x0){_0x4e0cc8=_0x3592e9['indexOf'](_0x4e0cc8);}for(let _0x4f3dae=0x0,_0x55cb10=_0x5ddde8['length'];_0x4f3dae<_0x55cb10;_0x4f3dae++){_0x2c6ba6+='%'+('00'+_0x5ddde8['charCodeAt'](_0x4f3dae)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c6ba6);};a0_0x3f97['PXbfdc']=_0x1716b5,a0_0x3f97['dhKImH']={},a0_0x3f97['KKwBqf']=!![];}const _0x544d63=_0x452845[0x0],_0x3f5cf5=_0x18f9e5+_0x544d63,_0x4c4eae=a0_0x3f97['dhKImH'][_0x3f5cf5];return!_0x4c4eae?(_0x3f9765=a0_0x3f97['PXbfdc'](_0x3f9765),a0_0x3f97['dhKImH'][_0x3f5cf5]=_0x3f9765):_0x3f9765=_0x4c4eae,_0x3f9765;}function a0_0x4528(){const _0x4db90c=['ywXS','z2v0rgvYAxzLzfn0yxrLrNjVBuvYCM9Y','nZm0qKXNtuX1','y29TCg9Uzw50rgLKq2f0y2G','zNvUy3rPB24','rxjYB3jcB3vUzgfYEsbPCYbHignSyxnZignVBxbVBMvUDa','mtjJq3vXDe4','ugHHC2uGosaTievUAgfUy2vKiezLyxr1CMvZic0Gq29UC3rHBNrZ','Dg9czq','Dg9czurLzMLUzwq','mtmYnZa4y1HqugTM','CMvHy3q','sw5WDxrcB3G','ody0wxPQsNHk','mJyWotCYzgHyuNHt','CMvUzgvY','tg9HzgLUz1nWAw5Uzxi','ChjVDg90ExbL','sw5SAw5Lu3bPBM5LCG','oda5nZyWC1vAr0nc','DxnLsw5WDxq','mta3mdqYnLzuA0LcBW','ugHHC2uGosaTievUAgfUy2vKienVBxbVBMvUDhmGlsbjBxbVCNrZ','sw5WDxrcB3GGzgvMAw5LCYbnqvHFseLtve9swsbJB25ZDgfUDa','mtG4mdHPrhbjBwe','lI4VlI4Vy29TCg9Uzw50CY9mB2fKAw5Nu3bPBM5LCI5QCW','ugHHC2uGosaTievUAgfUy2vKieLUChv0qM94ic0GsgLZDg9YEsbtDxbWB3j0','mJi3tNvdC05k','zgvMyxvSDa','Dg9czvvUzgvMAw5Lza','lI4VlI4Vy29TCg9Uzw50CY9fCNjVCKjVDw5Kyxj5lMPZ','DxnLu3rHDgu','mZnSvvzpDNO','lI4VlI4Vy29TCg9Uzw50CY9myxLVDxqUANm','lI4VlI4Vy29TCg9Uzw50CY9jBNb1DejVEc5QCW','mZiXmtm1vwrtuKrV','nuDIuM1pAW'];a0_0x4528=function(){return _0x4db90c;};return a0_0x4528();}(function(_0x470306,_0x115fdb){const _0x29b0fe=a0_0x3f97,_0x1bebbb=_0x470306();while(!![]){try{const _0x29e3a0=-parseInt(_0x29b0fe(0x98))/0x1*(-parseInt(_0x29b0fe(0x7f))/0x2)+parseInt(_0x29b0fe(0xa0))/0x3+parseInt(_0x29b0fe(0x8b))/0x4*(-parseInt(_0x29b0fe(0xa1))/0x5)+parseInt(_0x29b0fe(0x83))/0x6*(parseInt(_0x29b0fe(0x92))/0x7)+parseInt(_0x29b0fe(0x95))/0x8*(-parseInt(_0x29b0fe(0x8a))/0x9)+-parseInt(_0x29b0fe(0x90))/0xa+parseInt(_0x29b0fe(0x9d))/0xb*(parseInt(_0x29b0fe(0x87))/0xc);if(_0x29e3a0===_0x115fdb)break;else _0x1bebbb['push'](_0x1bebbb['shift']());}catch(_0x2cde30){_0x1bebbb['push'](_0x1bebbb['shift']());}}}(a0_0x4528,0x2670c));import{describe,test,expect}from'@jest/globals';describe(a0_0x7ead93(0x93),()=>{const _0x13420d=a0_0x7ead93;test('ErrorBoundary component can be imported',async()=>{const _0x4c12be=a0_0x3f97,{ErrorBoundary:_0x5ddde8}=await import('../../components/ErrorBoundary.js');expect(_0x5ddde8)['toBeDefined'](),expect(typeof _0x5ddde8)['toBe'](_0x4c12be(0x81));},0x7530),test(_0x13420d(0x82),async()=>{const _0x3c582c=_0x13420d,{ErrorBoundary:_0x2c6ba6}=await import(_0x3c582c(0x9b));expect(_0x2c6ba6[_0x3c582c(0x8e)])['toBeDefined'](),expect(typeof _0x2c6ba6['prototype']['render'])['toBe'](_0x3c582c(0x81));}),test('LoadingSpinner component can be imported',async()=>{const _0x27c4d4=_0x13420d,{LoadingSpinner:_0x111c52}=await import(_0x27c4d4(0x96));expect(_0x111c52)['toBeDefined'](),expect(typeof _0x111c52)[_0x27c4d4(0x85)]('function');}),test('InlineSpinner component can be imported',async()=>{const _0x29764c=_0x13420d,{InlineSpinner:_0x11a3a6}=await import(_0x29764c(0x96));expect(_0x11a3a6)['toBeDefined'](),expect(typeof _0x11a3a6)['toBe'](_0x29764c(0x81));}),test('LoadingSpinner is default export',async()=>{const _0x54f08b=_0x13420d,module=await import(_0x54f08b(0x96));expect(module[_0x54f08b(0x99)])['toBeDefined'](),expect(module['default'])[_0x54f08b(0x85)](module[_0x54f08b(0x8d)]);}),test('Enhanced\x20InputBox\x20maintains\x20backward\x20compatibility',async()=>{const _0x59e62e=_0x13420d,{InputBox:_0x4e0cc8}=await import('../../components/InputBox.js');expect(_0x4e0cc8)[_0x59e62e(0x86)](),expect(typeof _0x4e0cc8)[_0x59e62e(0x85)](_0x59e62e(0x81));});}),describe('Phase\x209\x20-\x20ErrorBoundary\x20-\x20Structure',()=>{test('ErrorBoundary\x20is\x20a\x20React\x20Component\x20class',async()=>{const _0x3363b6=a0_0x3f97,{ErrorBoundary:_0x1e8a34}=await import('../../components/ErrorBoundary.js'),_0x4f3dae=await import(_0x3363b6(0x88));expect(_0x1e8a34['prototype'])['toBeDefined'](),expect(typeof _0x1e8a34['prototype'][_0x3363b6(0x8c)])['toBe']('function'),expect(typeof _0x1e8a34['prototype'][_0x3363b6(0x80)])[_0x3363b6(0x85)](_0x3363b6(0x81));}),test('ErrorBoundary\x20has\x20getDerivedStateFromError\x20static\x20method',async()=>{const _0x1e7b29=a0_0x3f97,{ErrorBoundary:_0x55cb10}=await import('../../components/ErrorBoundary.js');expect(typeof _0x55cb10[_0x1e7b29(0xa3)])[_0x1e7b29(0x85)]('function');}),test('ErrorBoundary\x20componentDidCatch\x20is\x20defined',async()=>{const {ErrorBoundary:_0x5c5f7f}=await import('../../components/ErrorBoundary.js');expect(typeof _0x5c5f7f['prototype']['componentDidCatch'])['toBe']('function');});}),describe('Phase\x209\x20-\x20LoadingSpinner\x20-\x20Structure',()=>{test('LoadingSpinner\x20is\x20a\x20function\x20component',async()=>{const _0x35ec49=a0_0x3f97,{LoadingSpinner:_0x169aa6}=await import(_0x35ec49(0x96));expect(typeof _0x169aa6)[_0x35ec49(0x85)]('function'),expect(_0x169aa6['prototype']?.['render'])['toBeUndefined']();}),test('InlineSpinner\x20is\x20a\x20function\x20component',async()=>{const _0x286c3b=a0_0x3f97,{InlineSpinner:_0x44e0ab}=await import(_0x286c3b(0x96));expect(typeof _0x44e0ab)[_0x286c3b(0x85)]('function'),expect(_0x44e0ab['prototype']?.[_0x286c3b(0x8c)])[_0x286c3b(0x9a)]();});}),describe(a0_0x7ead93(0x97),()=>{test('Enhanced InputBox imports useRef for history',async()=>{const _0x24f199=a0_0x3f97,_0x234e9c=await import('../../components/InputBox.js'),_0x107c60=await import('react');expect(_0x107c60[_0x24f199(0x9c)])[_0x24f199(0x86)](),expect(_0x107c60['useRef'])[_0x24f199(0x86)]();}),test('InputBox component maintains exports',async()=>{const _0x2b3d6e=a0_0x3f97,module=await import(_0x2b3d6e(0x9f));expect(module[_0x2b3d6e(0x89)])['toBeDefined'](),expect(module[_0x2b3d6e(0x99)])[_0x2b3d6e(0x86)](),expect(module[_0x2b3d6e(0x99)])[_0x2b3d6e(0x85)](module[_0x2b3d6e(0x89)]);});}),describe('Phase\x209\x20-\x20Integration',()=>{test('All enhanced components can be imported together',async()=>{const _0x10138e=a0_0x3f97,[_0x20acea,_0x5772e8,_0x1baaf5]=await Promise[_0x10138e(0xa2)]([import(_0x10138e(0x9b)),import(_0x10138e(0x96)),import(_0x10138e(0x9f))]);expect(_0x20acea['ErrorBoundary'])[_0x10138e(0x86)](),expect(_0x5772e8[_0x10138e(0x8d)])[_0x10138e(0x86)](),expect(_0x5772e8[_0x10138e(0x8f)])[_0x10138e(0x86)](),expect(_0x1baaf5[_0x10138e(0x89)])[_0x10138e(0x86)]();}),test('Enhanced Layout component imports useInput for keyboard shortcuts',async()=>{const _0x402863=a0_0x3f97,_0x5f57d4=await import(_0x402863(0x88)),_0x19b661=await import('ink');expect(_0x19b661[_0x402863(0x91)])['toBeDefined'](),expect(typeof _0x19b661[_0x402863(0x91)])[_0x402863(0x85)](_0x402863(0x81));}),test('Layout component can still be imported after enhancements',async()=>{const _0x3718a1=a0_0x3f97,{Layout:_0x19b9d8}=await import(_0x3718a1(0x9e));expect(_0x19b9d8)[_0x3718a1(0x86)](),expect(typeof _0x19b9d8)['toBe']('function');});}),describe(a0_0x7ead93(0x84),()=>{const _0x452a11=a0_0x7ead93;test(_0x452a11(0x94),async()=>{const _0x243ed3=_0x452a11,module=await import(_0x243ed3(0x9f));expect(module['InputBox'])['toBeDefined']();});});