@wingman-ai/gateway 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.wingman/agents/README.md +161 -0
- package/.wingman/agents/coding/agent.md +147 -0
- package/.wingman/agents/coding/implementor.md +56 -0
- package/.wingman/agents/main/agent.md +19 -0
- package/.wingman/agents/researcher/agent.md +62 -0
- package/.wingman/agents/stock-trader/agent.md +223 -0
- package/.wingman/agents/stock-trader/chain-curator.md +24 -0
- package/.wingman/agents/stock-trader/goal-translator.md +42 -0
- package/.wingman/agents/stock-trader/guardrails-veto.md +11 -0
- package/.wingman/agents/stock-trader/path-planner.md +23 -0
- package/.wingman/agents/stock-trader/regime-analyst.md +15 -0
- package/.wingman/agents/stock-trader/risk.md +20 -0
- package/.wingman/agents/stock-trader/selection.md +22 -0
- package/.wingman/agents/stock-trader/strategy-composer.md +38 -0
- package/.wingman/agents/wingman/agent.json +12 -0
- package/bin/wingman +7 -0
- package/dist/agent/config/agentConfig.cjs +95 -0
- package/dist/agent/config/agentConfig.d.ts +187 -0
- package/dist/agent/config/agentConfig.js +52 -0
- package/dist/agent/config/agentLoader.cjs +242 -0
- package/dist/agent/config/agentLoader.d.ts +42 -0
- package/dist/agent/config/agentLoader.js +208 -0
- package/dist/agent/config/mcpClientManager.cjs +168 -0
- package/dist/agent/config/mcpClientManager.d.ts +41 -0
- package/dist/agent/config/mcpClientManager.js +134 -0
- package/dist/agent/config/modelFactory.cjs +175 -0
- package/dist/agent/config/modelFactory.d.ts +33 -0
- package/dist/agent/config/modelFactory.js +141 -0
- package/dist/agent/config/toolRegistry.cjs +111 -0
- package/dist/agent/config/toolRegistry.d.ts +25 -0
- package/dist/agent/config/toolRegistry.js +71 -0
- package/dist/agent/middleware/additional-messages.cjs +60 -0
- package/dist/agent/middleware/additional-messages.d.ts +7 -0
- package/dist/agent/middleware/additional-messages.js +26 -0
- package/dist/agent/middleware/hooks/executor.cjs +137 -0
- package/dist/agent/middleware/hooks/executor.d.ts +52 -0
- package/dist/agent/middleware/hooks/executor.js +103 -0
- package/dist/agent/middleware/hooks/input-builder.cjs +55 -0
- package/dist/agent/middleware/hooks/input-builder.d.ts +15 -0
- package/dist/agent/middleware/hooks/input-builder.js +21 -0
- package/dist/agent/middleware/hooks/matcher.cjs +59 -0
- package/dist/agent/middleware/hooks/matcher.d.ts +27 -0
- package/dist/agent/middleware/hooks/matcher.js +22 -0
- package/dist/agent/middleware/hooks/merger.cjs +54 -0
- package/dist/agent/middleware/hooks/merger.d.ts +18 -0
- package/dist/agent/middleware/hooks/merger.js +20 -0
- package/dist/agent/middleware/hooks/types.cjs +62 -0
- package/dist/agent/middleware/hooks/types.d.ts +82 -0
- package/dist/agent/middleware/hooks/types.js +19 -0
- package/dist/agent/middleware/hooks.cjs +79 -0
- package/dist/agent/middleware/hooks.d.ts +19 -0
- package/dist/agent/middleware/hooks.js +45 -0
- package/dist/agent/middleware/media-compat.cjs +80 -0
- package/dist/agent/middleware/media-compat.d.ts +7 -0
- package/dist/agent/middleware/media-compat.js +46 -0
- package/dist/agent/tests/agentConfig.test.cjs +132 -0
- package/dist/agent/tests/agentConfig.test.d.ts +1 -0
- package/dist/agent/tests/agentConfig.test.js +126 -0
- package/dist/agent/tests/agentLoader.test.cjs +235 -0
- package/dist/agent/tests/agentLoader.test.d.ts +1 -0
- package/dist/agent/tests/agentLoader.test.js +229 -0
- package/dist/agent/tests/modelFactory.test.cjs +114 -0
- package/dist/agent/tests/modelFactory.test.d.ts +1 -0
- package/dist/agent/tests/modelFactory.test.js +108 -0
- package/dist/agent/tests/test-agent-loader.cjs +33 -0
- package/dist/agent/tests/test-agent-loader.d.ts +1 -0
- package/dist/agent/tests/test-agent-loader.js +27 -0
- package/dist/agent/tests/test-subagent-loading.cjs +99 -0
- package/dist/agent/tests/test-subagent-loading.d.ts +1 -0
- package/dist/agent/tests/test-subagent-loading.js +93 -0
- package/dist/agent/tests/toolRegistry.test.cjs +109 -0
- package/dist/agent/tests/toolRegistry.test.d.ts +1 -0
- package/dist/agent/tests/toolRegistry.test.js +103 -0
- package/dist/agent/tools/code_search.cjs +108 -0
- package/dist/agent/tools/code_search.d.ts +24 -0
- package/dist/agent/tools/code_search.js +74 -0
- package/dist/agent/tools/command_execute.cjs +136 -0
- package/dist/agent/tools/command_execute.d.ts +12 -0
- package/dist/agent/tools/command_execute.js +99 -0
- package/dist/agent/tools/git_status.cjs +126 -0
- package/dist/agent/tools/git_status.d.ts +15 -0
- package/dist/agent/tools/git_status.js +92 -0
- package/dist/agent/tools/internet_search.cjs +93 -0
- package/dist/agent/tools/internet_search.d.ts +25 -0
- package/dist/agent/tools/internet_search.js +56 -0
- package/dist/agent/tools/think.cjs +53 -0
- package/dist/agent/tools/think.d.ts +26 -0
- package/dist/agent/tools/think.js +16 -0
- package/dist/agent/tools/web_crawler.cjs +180 -0
- package/dist/agent/tools/web_crawler.d.ts +31 -0
- package/dist/agent/tools/web_crawler.js +143 -0
- package/dist/agent/utils.cjs +54 -0
- package/dist/agent/utils.d.ts +1 -0
- package/dist/agent/utils.js +10 -0
- package/dist/cli/commands/agent.cjs +169 -0
- package/dist/cli/commands/agent.d.ts +15 -0
- package/dist/cli/commands/agent.js +125 -0
- package/dist/cli/commands/gateway.cjs +601 -0
- package/dist/cli/commands/gateway.d.ts +12 -0
- package/dist/cli/commands/gateway.js +567 -0
- package/dist/cli/commands/init.cjs +681 -0
- package/dist/cli/commands/init.d.ts +10 -0
- package/dist/cli/commands/init.js +634 -0
- package/dist/cli/commands/provider.cjs +208 -0
- package/dist/cli/commands/provider.d.ts +5 -0
- package/dist/cli/commands/provider.js +174 -0
- package/dist/cli/commands/skill.cjs +145 -0
- package/dist/cli/commands/skill.d.ts +10 -0
- package/dist/cli/commands/skill.js +111 -0
- package/dist/cli/config/loader.cjs +143 -0
- package/dist/cli/config/loader.d.ts +14 -0
- package/dist/cli/config/loader.js +109 -0
- package/dist/cli/config/schema.cjs +262 -0
- package/dist/cli/config/schema.d.ts +268 -0
- package/dist/cli/config/schema.js +213 -0
- package/dist/cli/core/agentInvoker.cjs +284 -0
- package/dist/cli/core/agentInvoker.d.ts +77 -0
- package/dist/cli/core/agentInvoker.js +247 -0
- package/dist/cli/core/commandHandler.cjs +257 -0
- package/dist/cli/core/commandHandler.d.ts +62 -0
- package/dist/cli/core/commandHandler.js +223 -0
- package/dist/cli/core/database/bunSqliteAdapter.cjs +87 -0
- package/dist/cli/core/database/bunSqliteAdapter.d.ts +34 -0
- package/dist/cli/core/database/bunSqliteAdapter.js +53 -0
- package/dist/cli/core/loggerBridge.cjs +42 -0
- package/dist/cli/core/loggerBridge.d.ts +8 -0
- package/dist/cli/core/loggerBridge.js +8 -0
- package/dist/cli/core/outputManager.cjs +106 -0
- package/dist/cli/core/outputManager.d.ts +43 -0
- package/dist/cli/core/outputManager.js +72 -0
- package/dist/cli/core/sessionManager.cjs +535 -0
- package/dist/cli/core/sessionManager.d.ts +111 -0
- package/dist/cli/core/sessionManager.js +486 -0
- package/dist/cli/core/streamParser.cjs +328 -0
- package/dist/cli/core/streamParser.d.ts +42 -0
- package/dist/cli/core/streamParser.js +288 -0
- package/dist/cli/index.cjs +211 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +205 -0
- package/dist/cli/services/skillRepository.cjs +178 -0
- package/dist/cli/services/skillRepository.d.ts +35 -0
- package/dist/cli/services/skillRepository.js +144 -0
- package/dist/cli/services/skillService.cjs +336 -0
- package/dist/cli/services/skillService.d.ts +48 -0
- package/dist/cli/services/skillService.js +302 -0
- package/dist/cli/types/gateway.cjs +18 -0
- package/dist/cli/types/gateway.d.ts +18 -0
- package/dist/cli/types/gateway.js +0 -0
- package/dist/cli/types/init.cjs +18 -0
- package/dist/cli/types/init.d.ts +13 -0
- package/dist/cli/types/init.js +0 -0
- package/dist/cli/types/provider.cjs +18 -0
- package/dist/cli/types/provider.d.ts +9 -0
- package/dist/cli/types/provider.js +0 -0
- package/dist/cli/types/skill.cjs +18 -0
- package/dist/cli/types/skill.d.ts +71 -0
- package/dist/cli/types/skill.js +0 -0
- package/dist/cli/types.cjs +18 -0
- package/dist/cli/types.d.ts +175 -0
- package/dist/cli/types.js +0 -0
- package/dist/cli/ui/AgentOutput.cjs +82 -0
- package/dist/cli/ui/AgentOutput.d.ts +8 -0
- package/dist/cli/ui/AgentOutput.js +38 -0
- package/dist/cli/ui/App.cjs +285 -0
- package/dist/cli/ui/App.d.ts +6 -0
- package/dist/cli/ui/App.js +241 -0
- package/dist/cli/ui/ErrorDisplay.cjs +65 -0
- package/dist/cli/ui/ErrorDisplay.d.ts +8 -0
- package/dist/cli/ui/ErrorDisplay.js +21 -0
- package/dist/cli/ui/LogDisplay.cjs +74 -0
- package/dist/cli/ui/LogDisplay.d.ts +13 -0
- package/dist/cli/ui/LogDisplay.js +30 -0
- package/dist/cli/ui/SessionListDisplay.cjs +135 -0
- package/dist/cli/ui/SessionListDisplay.d.ts +9 -0
- package/dist/cli/ui/SessionListDisplay.js +91 -0
- package/dist/cli/ui/blockHelpers.cjs +80 -0
- package/dist/cli/ui/blockHelpers.d.ts +21 -0
- package/dist/cli/ui/blockHelpers.js +40 -0
- package/dist/cli/ui/components/ToolCallDisplay.cjs +207 -0
- package/dist/cli/ui/components/ToolCallDisplay.d.ts +7 -0
- package/dist/cli/ui/components/ToolCallDisplay.js +162 -0
- package/dist/cli/ui/components/ToolResultDisplay.cjs +86 -0
- package/dist/cli/ui/components/ToolResultDisplay.d.ts +8 -0
- package/dist/cli/ui/components/ToolResultDisplay.js +42 -0
- package/dist/cli/ui/toolDisplayHelpers.cjs +112 -0
- package/dist/cli/ui/toolDisplayHelpers.d.ts +3 -0
- package/dist/cli/ui/toolDisplayHelpers.js +72 -0
- package/dist/gateway/adapters/discord.cjs +298 -0
- package/dist/gateway/adapters/discord.d.ts +42 -0
- package/dist/gateway/adapters/discord.js +246 -0
- package/dist/gateway/auth.cjs +94 -0
- package/dist/gateway/auth.d.ts +36 -0
- package/dist/gateway/auth.js +60 -0
- package/dist/gateway/broadcast.cjs +131 -0
- package/dist/gateway/broadcast.d.ts +76 -0
- package/dist/gateway/broadcast.js +97 -0
- package/dist/gateway/client.cjs +282 -0
- package/dist/gateway/client.d.ts +141 -0
- package/dist/gateway/client.js +248 -0
- package/dist/gateway/daemon.cjs +195 -0
- package/dist/gateway/daemon.d.ts +67 -0
- package/dist/gateway/daemon.js +161 -0
- package/dist/gateway/discovery/index.cjs +72 -0
- package/dist/gateway/discovery/index.d.ts +3 -0
- package/dist/gateway/discovery/index.js +3 -0
- package/dist/gateway/discovery/mdns.cjs +221 -0
- package/dist/gateway/discovery/mdns.d.ts +37 -0
- package/dist/gateway/discovery/mdns.js +177 -0
- package/dist/gateway/discovery/tailscale.cjs +140 -0
- package/dist/gateway/discovery/tailscale.d.ts +31 -0
- package/dist/gateway/discovery/tailscale.js +106 -0
- package/dist/gateway/discovery/types.cjs +18 -0
- package/dist/gateway/discovery/types.d.ts +41 -0
- package/dist/gateway/discovery/types.js +0 -0
- package/dist/gateway/env.cjs +45 -0
- package/dist/gateway/env.d.ts +2 -0
- package/dist/gateway/env.js +8 -0
- package/dist/gateway/hooks/loader.cjs +137 -0
- package/dist/gateway/hooks/loader.d.ts +10 -0
- package/dist/gateway/hooks/loader.js +103 -0
- package/dist/gateway/hooks/registry.cjs +128 -0
- package/dist/gateway/hooks/registry.d.ts +13 -0
- package/dist/gateway/hooks/registry.js +94 -0
- package/dist/gateway/hooks/types.cjs +58 -0
- package/dist/gateway/hooks/types.d.ts +50 -0
- package/dist/gateway/hooks/types.js +18 -0
- package/dist/gateway/http/agents.cjs +280 -0
- package/dist/gateway/http/agents.d.ts +2 -0
- package/dist/gateway/http/agents.js +246 -0
- package/dist/gateway/http/fs.cjs +81 -0
- package/dist/gateway/http/fs.d.ts +2 -0
- package/dist/gateway/http/fs.js +47 -0
- package/dist/gateway/http/providers.cjs +120 -0
- package/dist/gateway/http/providers.d.ts +2 -0
- package/dist/gateway/http/providers.js +86 -0
- package/dist/gateway/http/routines.cjs +196 -0
- package/dist/gateway/http/routines.d.ts +20 -0
- package/dist/gateway/http/routines.js +159 -0
- package/dist/gateway/http/sessions.cjs +241 -0
- package/dist/gateway/http/sessions.d.ts +2 -0
- package/dist/gateway/http/sessions.js +207 -0
- package/dist/gateway/http/types.cjs +18 -0
- package/dist/gateway/http/types.d.ts +25 -0
- package/dist/gateway/http/types.js +0 -0
- package/dist/gateway/http/voice.cjs +167 -0
- package/dist/gateway/http/voice.d.ts +2 -0
- package/dist/gateway/http/voice.js +133 -0
- package/dist/gateway/http/webhooks.cjs +353 -0
- package/dist/gateway/http/webhooks.d.ts +22 -0
- package/dist/gateway/http/webhooks.js +313 -0
- package/dist/gateway/index.cjs +119 -0
- package/dist/gateway/index.d.ts +8 -0
- package/dist/gateway/index.js +9 -0
- package/dist/gateway/node.cjs +218 -0
- package/dist/gateway/node.d.ts +112 -0
- package/dist/gateway/node.js +184 -0
- package/dist/gateway/router.cjs +85 -0
- package/dist/gateway/router.d.ts +9 -0
- package/dist/gateway/router.js +51 -0
- package/dist/gateway/rpcClient.cjs +152 -0
- package/dist/gateway/rpcClient.d.ts +24 -0
- package/dist/gateway/rpcClient.js +118 -0
- package/dist/gateway/server.cjs +1175 -0
- package/dist/gateway/server.d.ts +185 -0
- package/dist/gateway/server.js +1138 -0
- package/dist/gateway/transport/http.cjs +153 -0
- package/dist/gateway/transport/http.d.ts +25 -0
- package/dist/gateway/transport/http.js +119 -0
- package/dist/gateway/transport/index.cjs +40 -0
- package/dist/gateway/transport/index.d.ts +3 -0
- package/dist/gateway/transport/index.js +3 -0
- package/dist/gateway/transport/types.cjs +18 -0
- package/dist/gateway/transport/types.d.ts +59 -0
- package/dist/gateway/transport/types.js +0 -0
- package/dist/gateway/transport/websocket.cjs +132 -0
- package/dist/gateway/transport/websocket.d.ts +21 -0
- package/dist/gateway/transport/websocket.js +98 -0
- package/dist/gateway/types.cjs +18 -0
- package/dist/gateway/types.d.ts +215 -0
- package/dist/gateway/types.js +0 -0
- package/dist/gateway/validation.cjs +225 -0
- package/dist/gateway/validation.d.ts +157 -0
- package/dist/gateway/validation.js +158 -0
- package/dist/index.cjs +95 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/logger.cjs +270 -0
- package/dist/logger.d.ts +54 -0
- package/dist/logger.js +215 -0
- package/dist/providers/copilot.cjs +148 -0
- package/dist/providers/copilot.d.ts +3 -0
- package/dist/providers/copilot.js +114 -0
- package/dist/providers/credentials.cjs +154 -0
- package/dist/providers/credentials.d.ts +26 -0
- package/dist/providers/credentials.js +99 -0
- package/dist/providers/oauth.cjs +279 -0
- package/dist/providers/oauth.d.ts +13 -0
- package/dist/providers/oauth.js +245 -0
- package/dist/providers/registry.cjs +138 -0
- package/dist/providers/registry.d.ts +32 -0
- package/dist/providers/registry.js +98 -0
- package/dist/tests/additionalMessageMiddleware.test.cjs +45 -0
- package/dist/tests/additionalMessageMiddleware.test.d.ts +1 -0
- package/dist/tests/additionalMessageMiddleware.test.js +39 -0
- package/dist/tests/agent-config-voice.test.cjs +25 -0
- package/dist/tests/agent-config-voice.test.d.ts +1 -0
- package/dist/tests/agent-config-voice.test.js +19 -0
- package/dist/tests/agentInvokerAttachments.test.cjs +67 -0
- package/dist/tests/agentInvokerAttachments.test.d.ts +1 -0
- package/dist/tests/agentInvokerAttachments.test.js +61 -0
- package/dist/tests/attachments-utils.test.cjs +46 -0
- package/dist/tests/attachments-utils.test.d.ts +1 -0
- package/dist/tests/attachments-utils.test.js +40 -0
- package/dist/tests/bunSqliteAdapter.test.cjs +265 -0
- package/dist/tests/bunSqliteAdapter.test.d.ts +1 -0
- package/dist/tests/bunSqliteAdapter.test.js +259 -0
- package/dist/tests/candleRange.test.cjs +48 -0
- package/dist/tests/candleRange.test.d.ts +1 -0
- package/dist/tests/candleRange.test.js +42 -0
- package/dist/tests/cli-config-loader.test.cjs +364 -0
- package/dist/tests/cli-config-loader.test.d.ts +1 -0
- package/dist/tests/cli-config-loader.test.js +358 -0
- package/dist/tests/cli-init.test.cjs +82 -0
- package/dist/tests/cli-init.test.d.ts +1 -0
- package/dist/tests/cli-init.test.js +76 -0
- package/dist/tests/discord-adapter.test.cjs +55 -0
- package/dist/tests/discord-adapter.test.d.ts +1 -0
- package/dist/tests/discord-adapter.test.js +49 -0
- package/dist/tests/gateway.test.cjs +319 -0
- package/dist/tests/gateway.test.d.ts +1 -0
- package/dist/tests/gateway.test.js +313 -0
- package/dist/tests/hooks-matcher.test.cjs +309 -0
- package/dist/tests/hooks-matcher.test.d.ts +1 -0
- package/dist/tests/hooks-matcher.test.js +303 -0
- package/dist/tests/hooks-merger.test.cjs +528 -0
- package/dist/tests/hooks-merger.test.d.ts +1 -0
- package/dist/tests/hooks-merger.test.js +522 -0
- package/dist/tests/integration/agent-invocation.integration.test.cjs +264 -0
- package/dist/tests/integration/agent-invocation.integration.test.d.ts +1 -0
- package/dist/tests/integration/agent-invocation.integration.test.js +258 -0
- package/dist/tests/integration/finnhub-candles.integration.test.cjs +98 -0
- package/dist/tests/integration/finnhub-candles.integration.test.d.ts +1 -0
- package/dist/tests/integration/finnhub-candles.integration.test.js +92 -0
- package/dist/tests/logger.test.cjs +353 -0
- package/dist/tests/logger.test.d.ts +1 -0
- package/dist/tests/logger.test.js +347 -0
- package/dist/tests/mediaCompatibilityMiddleware.test.cjs +106 -0
- package/dist/tests/mediaCompatibilityMiddleware.test.d.ts +1 -0
- package/dist/tests/mediaCompatibilityMiddleware.test.js +100 -0
- package/dist/tests/routines-api.test.cjs +107 -0
- package/dist/tests/routines-api.test.d.ts +1 -0
- package/dist/tests/routines-api.test.js +101 -0
- package/dist/tests/sessionMessageAttachments.test.cjs +108 -0
- package/dist/tests/sessionMessageAttachments.test.d.ts +1 -0
- package/dist/tests/sessionMessageAttachments.test.js +102 -0
- package/dist/tests/sessionMessageRole.test.cjs +44 -0
- package/dist/tests/sessionMessageRole.test.d.ts +1 -0
- package/dist/tests/sessionMessageRole.test.js +38 -0
- package/dist/tests/sessionStateMessages.test.cjs +72 -0
- package/dist/tests/sessionStateMessages.test.d.ts +1 -0
- package/dist/tests/sessionStateMessages.test.js +66 -0
- package/dist/tests/sessions-api.test.cjs +68 -0
- package/dist/tests/sessions-api.test.d.ts +1 -0
- package/dist/tests/sessions-api.test.js +62 -0
- package/dist/tests/technicalIndicators.test.cjs +82 -0
- package/dist/tests/technicalIndicators.test.d.ts +1 -0
- package/dist/tests/technicalIndicators.test.js +76 -0
- package/dist/tests/toolDisplayHelpers.test.cjs +43 -0
- package/dist/tests/toolDisplayHelpers.test.d.ts +1 -0
- package/dist/tests/toolDisplayHelpers.test.js +37 -0
- package/dist/tests/voice-config.test.cjs +35 -0
- package/dist/tests/voice-config.test.d.ts +1 -0
- package/dist/tests/voice-config.test.js +29 -0
- package/dist/tests/yahooCandles.test.cjs +111 -0
- package/dist/tests/yahooCandles.test.d.ts +1 -0
- package/dist/tests/yahooCandles.test.js +105 -0
- package/dist/tools/finance/candleRange.cjs +71 -0
- package/dist/tools/finance/candleRange.d.ts +21 -0
- package/dist/tools/finance/candleRange.js +28 -0
- package/dist/tools/finance/optionsAnalytics.cjs +222 -0
- package/dist/tools/finance/optionsAnalytics.d.ts +44 -0
- package/dist/tools/finance/optionsAnalytics.js +188 -0
- package/dist/tools/finance/optionsAnalytics.test.cjs +128 -0
- package/dist/tools/finance/optionsAnalytics.test.d.ts +1 -0
- package/dist/tools/finance/optionsAnalytics.test.js +122 -0
- package/dist/tools/finance/technicalIndicators.cjs +111 -0
- package/dist/tools/finance/technicalIndicators.d.ts +15 -0
- package/dist/tools/finance/technicalIndicators.js +68 -0
- package/dist/tools/finance/yahooCandles.cjs +125 -0
- package/dist/tools/finance/yahooCandles.d.ts +41 -0
- package/dist/tools/finance/yahooCandles.js +85 -0
- package/dist/tools/mcp-finance.cjs +649 -0
- package/dist/tools/mcp-finance.d.ts +1 -0
- package/dist/tools/mcp-finance.js +631 -0
- package/dist/types/agents.cjs +18 -0
- package/dist/types/agents.d.ts +11 -0
- package/dist/types/agents.js +0 -0
- package/dist/types/hooks.cjs +18 -0
- package/dist/types/hooks.d.ts +82 -0
- package/dist/types/hooks.js +0 -0
- package/dist/types/mcp.cjs +86 -0
- package/dist/types/mcp.d.ts +107 -0
- package/dist/types/mcp.js +40 -0
- package/dist/types/voice.cjs +103 -0
- package/dist/types/voice.d.ts +117 -0
- package/dist/types/voice.js +51 -0
- package/dist/utils/attachments.cjs +46 -0
- package/dist/utils/attachments.d.ts +7 -0
- package/dist/utils/attachments.js +12 -0
- package/dist/voice/config.cjs +52 -0
- package/dist/voice/config.d.ts +8 -0
- package/dist/voice/config.js +18 -0
- package/dist/webui/assets/index-BA0HaStz.css +1 -0
- package/dist/webui/assets/index-NHgTZsWN.js +112 -0
- package/dist/webui/assets/wingman_icon-DOy91UEF.webp +0 -0
- package/dist/webui/assets/wingman_logo-Cogyt3qm.webp +0 -0
- package/dist/webui/index.html +19 -0
- package/package.json +130 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
GatewayRouter: ()=>GatewayRouter
|
|
28
|
+
});
|
|
29
|
+
function _define_property(obj, key, value) {
|
|
30
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
31
|
+
value: value,
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true
|
|
35
|
+
});
|
|
36
|
+
else obj[key] = value;
|
|
37
|
+
return obj;
|
|
38
|
+
}
|
|
39
|
+
class GatewayRouter {
|
|
40
|
+
selectAgent(explicitAgentId, routing) {
|
|
41
|
+
if (explicitAgentId) return explicitAgentId;
|
|
42
|
+
const bindings = this.config.agents?.bindings ?? [];
|
|
43
|
+
if (routing) {
|
|
44
|
+
for (const binding of bindings)if (this.matches(binding.match, routing)) return binding.agentId;
|
|
45
|
+
}
|
|
46
|
+
return this.config.defaultAgent || this.config.agents?.list?.find((agent)=>agent.default)?.id || this.config.agents?.list?.[0]?.id;
|
|
47
|
+
}
|
|
48
|
+
buildSessionKey(agentId, routing) {
|
|
49
|
+
if (!routing) return `agent:${agentId}:main`;
|
|
50
|
+
if (routing.peer?.kind === "dm") return `agent:${agentId}:main`;
|
|
51
|
+
const parts = [
|
|
52
|
+
"agent",
|
|
53
|
+
agentId,
|
|
54
|
+
routing.channel
|
|
55
|
+
];
|
|
56
|
+
if (routing.accountId) parts.push("account", routing.accountId);
|
|
57
|
+
if (routing.peer) parts.push(routing.peer.kind, routing.peer.id);
|
|
58
|
+
if (routing.threadId) parts.push("thread", routing.threadId);
|
|
59
|
+
if (3 === parts.length) parts.push("main");
|
|
60
|
+
return parts.join(":");
|
|
61
|
+
}
|
|
62
|
+
matches(match, routing) {
|
|
63
|
+
if (match.channel !== routing.channel) return false;
|
|
64
|
+
if (match.accountId && match.accountId !== routing.accountId) return false;
|
|
65
|
+
if (match.guildId && match.guildId !== routing.guildId) return false;
|
|
66
|
+
if (match.teamId && match.teamId !== routing.teamId) return false;
|
|
67
|
+
if (match.peer) {
|
|
68
|
+
if (!routing.peer) return false;
|
|
69
|
+
if (match.peer.kind !== routing.peer.kind) return false;
|
|
70
|
+
if (match.peer.id !== routing.peer.id) return false;
|
|
71
|
+
}
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
constructor(config){
|
|
75
|
+
_define_property(this, "config", void 0);
|
|
76
|
+
this.config = config;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.GatewayRouter = __webpack_exports__.GatewayRouter;
|
|
80
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
81
|
+
"GatewayRouter"
|
|
82
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
83
|
+
Object.defineProperty(exports, '__esModule', {
|
|
84
|
+
value: true
|
|
85
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WingmanConfigType } from "../cli/config/schema.js";
|
|
2
|
+
import type { RoutingInfo } from "./types.js";
|
|
3
|
+
export declare class GatewayRouter {
|
|
4
|
+
private config;
|
|
5
|
+
constructor(config: WingmanConfigType);
|
|
6
|
+
selectAgent(explicitAgentId?: string, routing?: RoutingInfo): string | undefined;
|
|
7
|
+
buildSessionKey(agentId: string, routing?: RoutingInfo): string;
|
|
8
|
+
private matches;
|
|
9
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
3
|
+
value: value,
|
|
4
|
+
enumerable: true,
|
|
5
|
+
configurable: true,
|
|
6
|
+
writable: true
|
|
7
|
+
});
|
|
8
|
+
else obj[key] = value;
|
|
9
|
+
return obj;
|
|
10
|
+
}
|
|
11
|
+
class GatewayRouter {
|
|
12
|
+
selectAgent(explicitAgentId, routing) {
|
|
13
|
+
if (explicitAgentId) return explicitAgentId;
|
|
14
|
+
const bindings = this.config.agents?.bindings ?? [];
|
|
15
|
+
if (routing) {
|
|
16
|
+
for (const binding of bindings)if (this.matches(binding.match, routing)) return binding.agentId;
|
|
17
|
+
}
|
|
18
|
+
return this.config.defaultAgent || this.config.agents?.list?.find((agent)=>agent.default)?.id || this.config.agents?.list?.[0]?.id;
|
|
19
|
+
}
|
|
20
|
+
buildSessionKey(agentId, routing) {
|
|
21
|
+
if (!routing) return `agent:${agentId}:main`;
|
|
22
|
+
if (routing.peer?.kind === "dm") return `agent:${agentId}:main`;
|
|
23
|
+
const parts = [
|
|
24
|
+
"agent",
|
|
25
|
+
agentId,
|
|
26
|
+
routing.channel
|
|
27
|
+
];
|
|
28
|
+
if (routing.accountId) parts.push("account", routing.accountId);
|
|
29
|
+
if (routing.peer) parts.push(routing.peer.kind, routing.peer.id);
|
|
30
|
+
if (routing.threadId) parts.push("thread", routing.threadId);
|
|
31
|
+
if (3 === parts.length) parts.push("main");
|
|
32
|
+
return parts.join(":");
|
|
33
|
+
}
|
|
34
|
+
matches(match, routing) {
|
|
35
|
+
if (match.channel !== routing.channel) return false;
|
|
36
|
+
if (match.accountId && match.accountId !== routing.accountId) return false;
|
|
37
|
+
if (match.guildId && match.guildId !== routing.guildId) return false;
|
|
38
|
+
if (match.teamId && match.teamId !== routing.teamId) return false;
|
|
39
|
+
if (match.peer) {
|
|
40
|
+
if (!routing.peer) return false;
|
|
41
|
+
if (match.peer.kind !== routing.peer.kind) return false;
|
|
42
|
+
if (match.peer.id !== routing.peer.id) return false;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
constructor(config){
|
|
47
|
+
_define_property(this, "config", void 0);
|
|
48
|
+
this.config = config;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export { GatewayRouter };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
GatewayRpcClient: ()=>GatewayRpcClient
|
|
28
|
+
});
|
|
29
|
+
const external_uuid_namespaceObject = require("uuid");
|
|
30
|
+
const external_logger_cjs_namespaceObject = require("../logger.cjs");
|
|
31
|
+
const websocket_cjs_namespaceObject = require("./transport/websocket.cjs");
|
|
32
|
+
function _define_property(obj, key, value) {
|
|
33
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
34
|
+
value: value,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true
|
|
38
|
+
});
|
|
39
|
+
else obj[key] = value;
|
|
40
|
+
return obj;
|
|
41
|
+
}
|
|
42
|
+
class GatewayRpcClient {
|
|
43
|
+
async connect() {
|
|
44
|
+
this.transport = new websocket_cjs_namespaceObject.WebSocketTransport(this.url, {
|
|
45
|
+
autoReconnect: false
|
|
46
|
+
});
|
|
47
|
+
this.transport.onMessage((message)=>this.handleMessage(message));
|
|
48
|
+
await this.transport.connect();
|
|
49
|
+
const connectId = (0, external_uuid_namespaceObject.v4)();
|
|
50
|
+
const connectMessage = {
|
|
51
|
+
type: "connect",
|
|
52
|
+
id: connectId,
|
|
53
|
+
client: this.clientInfo,
|
|
54
|
+
auth: this.auth,
|
|
55
|
+
timestamp: Date.now()
|
|
56
|
+
};
|
|
57
|
+
const response = await this.sendRequest(connectId, connectMessage);
|
|
58
|
+
if (!response.ok) throw new Error("string" == typeof response.payload ? response.payload : "Gateway authentication failed");
|
|
59
|
+
}
|
|
60
|
+
async requestAgent(payload, onEvent) {
|
|
61
|
+
const requestId = (0, external_uuid_namespaceObject.v4)();
|
|
62
|
+
const message = {
|
|
63
|
+
type: "req:agent",
|
|
64
|
+
id: requestId,
|
|
65
|
+
payload,
|
|
66
|
+
timestamp: Date.now()
|
|
67
|
+
};
|
|
68
|
+
const completion = new Promise((resolve, reject)=>{
|
|
69
|
+
this.pendingAgentRequests.set(requestId, {
|
|
70
|
+
resolve,
|
|
71
|
+
reject,
|
|
72
|
+
onEvent
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
this.send(message);
|
|
76
|
+
return completion;
|
|
77
|
+
}
|
|
78
|
+
disconnect() {
|
|
79
|
+
if (this.transport) {
|
|
80
|
+
this.transport.disconnect();
|
|
81
|
+
this.transport = null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
handleMessage(msg) {
|
|
85
|
+
if ("res" === msg.type && msg.id) {
|
|
86
|
+
const pending = this.pendingResponses.get(msg.id);
|
|
87
|
+
if (pending) {
|
|
88
|
+
this.pendingResponses.delete(msg.id);
|
|
89
|
+
pending.resolve(msg);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if ("event:agent" === msg.type && msg.id) {
|
|
94
|
+
const pending = this.pendingAgentRequests.get(msg.id);
|
|
95
|
+
if (!pending) return;
|
|
96
|
+
pending.onEvent?.(msg.payload);
|
|
97
|
+
const payload = msg.payload;
|
|
98
|
+
if (payload?.type === "agent-complete") {
|
|
99
|
+
this.pendingAgentRequests.delete(msg.id);
|
|
100
|
+
pending.resolve();
|
|
101
|
+
}
|
|
102
|
+
if (payload?.type === "agent-error") {
|
|
103
|
+
this.pendingAgentRequests.delete(msg.id);
|
|
104
|
+
const error = new Error(payload.error || "Agent failed");
|
|
105
|
+
error.isAgentError = true;
|
|
106
|
+
pending.reject(error);
|
|
107
|
+
}
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if ("error" === msg.type) this.logger.error("Gateway error", msg.payload);
|
|
111
|
+
}
|
|
112
|
+
sendRequest(id, message) {
|
|
113
|
+
return new Promise((resolve, reject)=>{
|
|
114
|
+
this.pendingResponses.set(id, {
|
|
115
|
+
resolve,
|
|
116
|
+
reject
|
|
117
|
+
});
|
|
118
|
+
this.send(message);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
send(message) {
|
|
122
|
+
if (!this.transport) throw new Error("Gateway transport not connected");
|
|
123
|
+
this.transport.send(message);
|
|
124
|
+
}
|
|
125
|
+
constructor(url, options = {}){
|
|
126
|
+
_define_property(this, "url", void 0);
|
|
127
|
+
_define_property(this, "logger", void 0);
|
|
128
|
+
_define_property(this, "transport", null);
|
|
129
|
+
_define_property(this, "pendingResponses", new Map());
|
|
130
|
+
_define_property(this, "pendingAgentRequests", new Map());
|
|
131
|
+
_define_property(this, "clientInfo", void 0);
|
|
132
|
+
_define_property(this, "auth", void 0);
|
|
133
|
+
this.url = url;
|
|
134
|
+
this.logger = (0, external_logger_cjs_namespaceObject.createLogger)();
|
|
135
|
+
this.clientInfo = {
|
|
136
|
+
instanceId: options.instanceId || `cli-${Date.now()}`,
|
|
137
|
+
clientType: options.clientType || "cli",
|
|
138
|
+
version: options.version
|
|
139
|
+
};
|
|
140
|
+
this.auth = {
|
|
141
|
+
token: options.token,
|
|
142
|
+
password: options.password
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.GatewayRpcClient = __webpack_exports__.GatewayRpcClient;
|
|
147
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
148
|
+
"GatewayRpcClient"
|
|
149
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
150
|
+
Object.defineProperty(exports, '__esModule', {
|
|
151
|
+
value: true
|
|
152
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AgentRequestPayload } from "./types.js";
|
|
2
|
+
export interface GatewayRpcClientOptions {
|
|
3
|
+
token?: string;
|
|
4
|
+
password?: string;
|
|
5
|
+
clientType?: string;
|
|
6
|
+
instanceId?: string;
|
|
7
|
+
version?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class GatewayRpcClient {
|
|
10
|
+
private url;
|
|
11
|
+
private logger;
|
|
12
|
+
private transport;
|
|
13
|
+
private pendingResponses;
|
|
14
|
+
private pendingAgentRequests;
|
|
15
|
+
private clientInfo;
|
|
16
|
+
private auth;
|
|
17
|
+
constructor(url: string, options?: GatewayRpcClientOptions);
|
|
18
|
+
connect(): Promise<void>;
|
|
19
|
+
requestAgent(payload: AgentRequestPayload, onEvent?: (event: unknown) => void): Promise<void>;
|
|
20
|
+
disconnect(): void;
|
|
21
|
+
private handleMessage;
|
|
22
|
+
private sendRequest;
|
|
23
|
+
private send;
|
|
24
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { v4 } from "uuid";
|
|
2
|
+
import { createLogger } from "../logger.js";
|
|
3
|
+
import { WebSocketTransport } from "./transport/websocket.js";
|
|
4
|
+
function _define_property(obj, key, value) {
|
|
5
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
6
|
+
value: value,
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true
|
|
10
|
+
});
|
|
11
|
+
else obj[key] = value;
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
class GatewayRpcClient {
|
|
15
|
+
async connect() {
|
|
16
|
+
this.transport = new WebSocketTransport(this.url, {
|
|
17
|
+
autoReconnect: false
|
|
18
|
+
});
|
|
19
|
+
this.transport.onMessage((message)=>this.handleMessage(message));
|
|
20
|
+
await this.transport.connect();
|
|
21
|
+
const connectId = v4();
|
|
22
|
+
const connectMessage = {
|
|
23
|
+
type: "connect",
|
|
24
|
+
id: connectId,
|
|
25
|
+
client: this.clientInfo,
|
|
26
|
+
auth: this.auth,
|
|
27
|
+
timestamp: Date.now()
|
|
28
|
+
};
|
|
29
|
+
const response = await this.sendRequest(connectId, connectMessage);
|
|
30
|
+
if (!response.ok) throw new Error("string" == typeof response.payload ? response.payload : "Gateway authentication failed");
|
|
31
|
+
}
|
|
32
|
+
async requestAgent(payload, onEvent) {
|
|
33
|
+
const requestId = v4();
|
|
34
|
+
const message = {
|
|
35
|
+
type: "req:agent",
|
|
36
|
+
id: requestId,
|
|
37
|
+
payload,
|
|
38
|
+
timestamp: Date.now()
|
|
39
|
+
};
|
|
40
|
+
const completion = new Promise((resolve, reject)=>{
|
|
41
|
+
this.pendingAgentRequests.set(requestId, {
|
|
42
|
+
resolve,
|
|
43
|
+
reject,
|
|
44
|
+
onEvent
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
this.send(message);
|
|
48
|
+
return completion;
|
|
49
|
+
}
|
|
50
|
+
disconnect() {
|
|
51
|
+
if (this.transport) {
|
|
52
|
+
this.transport.disconnect();
|
|
53
|
+
this.transport = null;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
handleMessage(msg) {
|
|
57
|
+
if ("res" === msg.type && msg.id) {
|
|
58
|
+
const pending = this.pendingResponses.get(msg.id);
|
|
59
|
+
if (pending) {
|
|
60
|
+
this.pendingResponses.delete(msg.id);
|
|
61
|
+
pending.resolve(msg);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if ("event:agent" === msg.type && msg.id) {
|
|
66
|
+
const pending = this.pendingAgentRequests.get(msg.id);
|
|
67
|
+
if (!pending) return;
|
|
68
|
+
pending.onEvent?.(msg.payload);
|
|
69
|
+
const payload = msg.payload;
|
|
70
|
+
if (payload?.type === "agent-complete") {
|
|
71
|
+
this.pendingAgentRequests.delete(msg.id);
|
|
72
|
+
pending.resolve();
|
|
73
|
+
}
|
|
74
|
+
if (payload?.type === "agent-error") {
|
|
75
|
+
this.pendingAgentRequests.delete(msg.id);
|
|
76
|
+
const error = new Error(payload.error || "Agent failed");
|
|
77
|
+
error.isAgentError = true;
|
|
78
|
+
pending.reject(error);
|
|
79
|
+
}
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if ("error" === msg.type) this.logger.error("Gateway error", msg.payload);
|
|
83
|
+
}
|
|
84
|
+
sendRequest(id, message) {
|
|
85
|
+
return new Promise((resolve, reject)=>{
|
|
86
|
+
this.pendingResponses.set(id, {
|
|
87
|
+
resolve,
|
|
88
|
+
reject
|
|
89
|
+
});
|
|
90
|
+
this.send(message);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
send(message) {
|
|
94
|
+
if (!this.transport) throw new Error("Gateway transport not connected");
|
|
95
|
+
this.transport.send(message);
|
|
96
|
+
}
|
|
97
|
+
constructor(url, options = {}){
|
|
98
|
+
_define_property(this, "url", void 0);
|
|
99
|
+
_define_property(this, "logger", void 0);
|
|
100
|
+
_define_property(this, "transport", null);
|
|
101
|
+
_define_property(this, "pendingResponses", new Map());
|
|
102
|
+
_define_property(this, "pendingAgentRequests", new Map());
|
|
103
|
+
_define_property(this, "clientInfo", void 0);
|
|
104
|
+
_define_property(this, "auth", void 0);
|
|
105
|
+
this.url = url;
|
|
106
|
+
this.logger = createLogger();
|
|
107
|
+
this.clientInfo = {
|
|
108
|
+
instanceId: options.instanceId || `cli-${Date.now()}`,
|
|
109
|
+
clientType: options.clientType || "cli",
|
|
110
|
+
version: options.version
|
|
111
|
+
};
|
|
112
|
+
this.auth = {
|
|
113
|
+
token: options.token,
|
|
114
|
+
password: options.password
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export { GatewayRpcClient };
|