@adverant-nexus/cli 2.0.1 → 3.0.1
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/README.md +397 -455
- package/dist/.tsbuildinfo +1 -0
- package/dist/auth/auth-client.d.ts +84 -0
- package/dist/auth/auth-client.d.ts.map +1 -0
- package/dist/auth/auth-client.js +145 -0
- package/dist/auth/auth-client.js.map +1 -0
- package/dist/auth/credentials-manager.d.ts +82 -0
- package/dist/auth/credentials-manager.d.ts.map +1 -0
- package/dist/auth/credentials-manager.js +200 -0
- package/dist/auth/credentials-manager.js.map +1 -0
- package/dist/cli.d.ts +4 -29
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +167 -111
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent/index.d.ts +1 -2
- package/dist/commands/agent/index.d.ts.map +1 -1
- package/dist/commands/agent/index.js +1 -3
- package/dist/commands/agent/index.js.map +1 -1
- package/dist/commands/agent/list.d.ts +0 -1
- package/dist/commands/agent/list.d.ts.map +1 -1
- package/dist/commands/agent/list.js +32 -29
- package/dist/commands/agent/list.js.map +1 -1
- package/dist/commands/agent/run.d.ts +1 -3
- package/dist/commands/agent/run.d.ts.map +1 -1
- package/dist/commands/agent/run.js +92 -107
- package/dist/commands/agent/run.js.map +1 -1
- package/dist/commands/agent/status.d.ts +0 -1
- package/dist/commands/agent/status.d.ts.map +1 -1
- package/dist/commands/agent/status.js +37 -32
- package/dist/commands/agent/status.js.map +1 -1
- package/dist/commands/api-key/create.d.ts +10 -0
- package/dist/commands/api-key/create.d.ts.map +1 -0
- package/dist/commands/api-key/create.js +314 -0
- package/dist/commands/api-key/create.js.map +1 -0
- package/dist/commands/api-key/delete.d.ts +10 -0
- package/dist/commands/api-key/delete.d.ts.map +1 -0
- package/dist/commands/api-key/delete.js +132 -0
- package/dist/commands/api-key/delete.js.map +1 -0
- package/dist/commands/api-key/index.d.ts +11 -0
- package/dist/commands/api-key/index.d.ts.map +1 -0
- package/dist/commands/api-key/index.js +11 -0
- package/dist/commands/api-key/index.js.map +1 -0
- package/dist/commands/api-key/info.d.ts +10 -0
- package/dist/commands/api-key/info.d.ts.map +1 -0
- package/dist/commands/api-key/info.js +163 -0
- package/dist/commands/api-key/info.js.map +1 -0
- package/dist/commands/api-key/list.d.ts +10 -0
- package/dist/commands/api-key/list.d.ts.map +1 -0
- package/dist/commands/api-key/list.js +130 -0
- package/dist/commands/api-key/list.js.map +1 -0
- package/dist/commands/api-key/rotate.d.ts +10 -0
- package/dist/commands/api-key/rotate.d.ts.map +1 -0
- package/dist/commands/api-key/rotate.js +196 -0
- package/dist/commands/api-key/rotate.js.map +1 -0
- package/dist/commands/auth/index.d.ts +10 -0
- package/dist/commands/auth/index.d.ts.map +1 -0
- package/dist/commands/auth/index.js +10 -0
- package/dist/commands/auth/index.js.map +1 -0
- package/dist/commands/auth/login.d.ts +10 -0
- package/dist/commands/auth/login.d.ts.map +1 -0
- package/dist/commands/auth/login.js +162 -0
- package/dist/commands/auth/login.js.map +1 -0
- package/dist/commands/auth/logout.d.ts +10 -0
- package/dist/commands/auth/logout.d.ts.map +1 -0
- package/dist/commands/auth/logout.js +89 -0
- package/dist/commands/auth/logout.js.map +1 -0
- package/dist/commands/auth/register.d.ts +10 -0
- package/dist/commands/auth/register.d.ts.map +1 -0
- package/dist/commands/auth/register.js +289 -0
- package/dist/commands/auth/register.js.map +1 -0
- package/dist/commands/auth/whoami.d.ts +10 -0
- package/dist/commands/auth/whoami.d.ts.map +1 -0
- package/dist/commands/auth/whoami.js +220 -0
- package/dist/commands/auth/whoami.js.map +1 -0
- package/dist/commands/dynamic/graphrag-commands.d.ts +1 -7
- package/dist/commands/dynamic/graphrag-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/graphrag-commands.js +23 -440
- package/dist/commands/dynamic/graphrag-commands.js.map +1 -1
- package/dist/commands/dynamic/index.d.ts +3 -1
- package/dist/commands/dynamic/index.d.ts.map +1 -1
- package/dist/commands/dynamic/index.js +1 -0
- package/dist/commands/dynamic/index.js.map +1 -1
- package/dist/commands/dynamic/mageagent-commands.d.ts +3 -1
- package/dist/commands/dynamic/mageagent-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/mageagent-commands.js +52 -13
- package/dist/commands/dynamic/mageagent-commands.js.map +1 -1
- package/dist/commands/dynamic/{nexus-commands.d.ts → mcp-commands.d.ts} +17 -22
- package/dist/commands/dynamic/mcp-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/mcp-commands.js +199 -0
- package/dist/commands/dynamic/mcp-commands.js.map +1 -0
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts +8 -17
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts.map +1 -1
- package/dist/commands/dynamic/mcp-tool-mapper.js +28 -105
- package/dist/commands/dynamic/mcp-tool-mapper.js.map +1 -1
- package/dist/commands/dynamic/sandbox-commands.d.ts +3 -1
- package/dist/commands/dynamic/sandbox-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/sandbox-commands.js +48 -13
- package/dist/commands/dynamic/sandbox-commands.js.map +1 -1
- package/dist/commands/org/create.d.ts +10 -0
- package/dist/commands/org/create.d.ts.map +1 -0
- package/dist/commands/org/create.js +134 -0
- package/dist/commands/org/create.js.map +1 -0
- package/dist/commands/org/index.d.ts +10 -0
- package/dist/commands/org/index.d.ts.map +1 -0
- package/dist/commands/org/index.js +10 -0
- package/dist/commands/org/index.js.map +1 -0
- package/dist/commands/org/info.d.ts +10 -0
- package/dist/commands/org/info.d.ts.map +1 -0
- package/dist/commands/org/info.js +129 -0
- package/dist/commands/org/info.js.map +1 -0
- package/dist/commands/org/list.d.ts +10 -0
- package/dist/commands/org/list.d.ts.map +1 -0
- package/dist/commands/org/list.js +99 -0
- package/dist/commands/org/list.js.map +1 -0
- package/dist/commands/org/switch.d.ts +10 -0
- package/dist/commands/org/switch.d.ts.map +1 -0
- package/dist/commands/org/switch.js +129 -0
- package/dist/commands/org/switch.js.map +1 -0
- package/dist/commands/plugin/disable.d.ts +1 -1
- package/dist/commands/plugin/disable.d.ts.map +1 -1
- package/dist/commands/plugin/disable.js +35 -22
- package/dist/commands/plugin/disable.js.map +1 -1
- package/dist/commands/plugin/enable.d.ts +1 -1
- package/dist/commands/plugin/enable.d.ts.map +1 -1
- package/dist/commands/plugin/enable.js +48 -27
- package/dist/commands/plugin/enable.js.map +1 -1
- package/dist/commands/plugin/index.d.ts +1 -1
- package/dist/commands/plugin/index.d.ts.map +1 -1
- package/dist/commands/plugin/index.js +19 -16
- package/dist/commands/plugin/index.js.map +1 -1
- package/dist/commands/plugin/info.d.ts +1 -1
- package/dist/commands/plugin/info.d.ts.map +1 -1
- package/dist/commands/plugin/info.js +115 -113
- package/dist/commands/plugin/info.js.map +1 -1
- package/dist/commands/plugin/init.d.ts +1 -1
- package/dist/commands/plugin/init.d.ts.map +1 -1
- package/dist/commands/plugin/init.js +226 -69
- package/dist/commands/plugin/init.js.map +1 -1
- package/dist/commands/plugin/install.d.ts +1 -1
- package/dist/commands/plugin/install.d.ts.map +1 -1
- package/dist/commands/plugin/install.js +69 -44
- package/dist/commands/plugin/install.js.map +1 -1
- package/dist/commands/plugin/list.d.ts +1 -1
- package/dist/commands/plugin/list.d.ts.map +1 -1
- package/dist/commands/plugin/list.js +98 -58
- package/dist/commands/plugin/list.js.map +1 -1
- package/dist/commands/plugin/uninstall.d.ts +1 -1
- package/dist/commands/plugin/uninstall.d.ts.map +1 -1
- package/dist/commands/plugin/uninstall.js +44 -38
- package/dist/commands/plugin/uninstall.js.map +1 -1
- package/dist/commands/services/health.d.ts +4 -3
- package/dist/commands/services/health.d.ts.map +1 -1
- package/dist/commands/services/health.js +171 -60
- package/dist/commands/services/health.js.map +1 -1
- package/dist/commands/services/index.d.ts +2 -10
- package/dist/commands/services/index.d.ts.map +1 -1
- package/dist/commands/services/index.js +26 -20
- package/dist/commands/services/index.js.map +1 -1
- package/dist/commands/services/info.d.ts +4 -3
- package/dist/commands/services/info.d.ts.map +1 -1
- package/dist/commands/services/info.js +142 -60
- package/dist/commands/services/info.js.map +1 -1
- package/dist/commands/services/list.d.ts +2 -3
- package/dist/commands/services/list.d.ts.map +1 -1
- package/dist/commands/services/list.js +85 -36
- package/dist/commands/services/list.js.map +1 -1
- package/dist/commands/services/logs.d.ts +4 -3
- package/dist/commands/services/logs.d.ts.map +1 -1
- package/dist/commands/services/logs.js +55 -94
- package/dist/commands/services/logs.js.map +1 -1
- package/dist/commands/services/ports.d.ts +4 -3
- package/dist/commands/services/ports.d.ts.map +1 -1
- package/dist/commands/services/ports.js +129 -58
- package/dist/commands/services/ports.js.map +1 -1
- package/dist/commands/services/restart.d.ts +4 -3
- package/dist/commands/services/restart.d.ts.map +1 -1
- package/dist/commands/services/restart.js +89 -55
- package/dist/commands/services/restart.js.map +1 -1
- package/dist/commands/services/start.d.ts +4 -3
- package/dist/commands/services/start.d.ts.map +1 -1
- package/dist/commands/services/start.js +87 -55
- package/dist/commands/services/start.js.map +1 -1
- package/dist/commands/services/status.d.ts +2 -3
- package/dist/commands/services/status.d.ts.map +1 -1
- package/dist/commands/services/status.js +141 -82
- package/dist/commands/services/status.js.map +1 -1
- package/dist/commands/services/stop.d.ts +4 -3
- package/dist/commands/services/stop.d.ts.map +1 -1
- package/dist/commands/services/stop.js +91 -55
- package/dist/commands/services/stop.js.map +1 -1
- package/dist/commands/session/delete.js +2 -2
- package/dist/commands/session/delete.js.map +1 -1
- package/dist/commands/session/export.js +3 -3
- package/dist/commands/session/export.js.map +1 -1
- package/dist/commands/session/import.d.ts.map +1 -1
- package/dist/commands/session/import.js +3 -4
- package/dist/commands/session/import.js.map +1 -1
- package/dist/commands/session/list.d.ts.map +1 -1
- package/dist/commands/session/list.js +3 -3
- package/dist/commands/session/list.js.map +1 -1
- package/dist/commands/session/load.d.ts.map +1 -1
- package/dist/commands/session/load.js +4 -4
- package/dist/commands/session/load.js.map +1 -1
- package/dist/commands/session/resume.d.ts.map +1 -1
- package/dist/commands/session/resume.js +36 -15
- package/dist/commands/session/resume.js.map +1 -1
- package/dist/commands/session/save.d.ts.map +1 -1
- package/dist/commands/session/save.js +20 -15
- package/dist/commands/session/save.js.map +1 -1
- package/dist/commands/workspace/git-commit.d.ts.map +1 -1
- package/dist/commands/workspace/git-commit.js +16 -33
- package/dist/commands/workspace/git-commit.js.map +1 -1
- package/dist/commands/workspace/git-status.d.ts.map +1 -1
- package/dist/commands/workspace/git-status.js +22 -17
- package/dist/commands/workspace/git-status.js.map +1 -1
- package/dist/commands/workspace/index.d.ts.map +1 -1
- package/dist/commands/workspace/index.js +0 -1
- package/dist/commands/workspace/index.js.map +1 -1
- package/dist/commands/workspace/info.d.ts.map +1 -1
- package/dist/commands/workspace/info.js +26 -133
- package/dist/commands/workspace/info.js.map +1 -1
- package/dist/commands/workspace/init.d.ts.map +1 -1
- package/dist/commands/workspace/init.js +10 -13
- package/dist/commands/workspace/init.js.map +1 -1
- package/dist/commands/workspace/validate.d.ts.map +1 -1
- package/dist/commands/workspace/validate.js +12 -16
- package/dist/commands/workspace/validate.js.map +1 -1
- package/dist/core/config/config-manager.d.ts +16 -3
- package/dist/core/config/config-manager.d.ts.map +1 -1
- package/dist/core/config/config-manager.js +57 -89
- package/dist/core/config/config-manager.js.map +1 -1
- package/dist/core/config/index.d.ts +10 -0
- package/dist/core/config/index.d.ts.map +1 -0
- package/dist/core/config/index.js +9 -0
- package/dist/core/config/index.js.map +1 -0
- package/dist/core/config/profile-manager.d.ts +1 -1
- package/dist/core/config/profile-manager.d.ts.map +1 -1
- package/dist/core/config/profile-manager.js +39 -22
- package/dist/core/config/profile-manager.js.map +1 -1
- package/dist/core/config/workspace-detector.d.ts +3 -3
- package/dist/core/config/workspace-detector.d.ts.map +1 -1
- package/dist/core/config/workspace-detector.js +17 -25
- package/dist/core/config/workspace-detector.js.map +1 -1
- package/dist/core/discovery/docker-parser.d.ts +32 -5
- package/dist/core/discovery/docker-parser.d.ts.map +1 -1
- package/dist/core/discovery/docker-parser.js +78 -118
- package/dist/core/discovery/docker-parser.js.map +1 -1
- package/dist/core/discovery/index.d.ts +6 -2
- package/dist/core/discovery/index.d.ts.map +1 -1
- package/dist/core/discovery/index.js +6 -2
- package/dist/core/discovery/index.js.map +1 -1
- package/dist/core/discovery/mcp-discovery.d.ts +33 -2
- package/dist/core/discovery/mcp-discovery.d.ts.map +1 -1
- package/dist/core/discovery/mcp-discovery.js +74 -40
- package/dist/core/discovery/mcp-discovery.js.map +1 -1
- package/dist/core/discovery/openapi-parser.d.ts +39 -1
- package/dist/core/discovery/openapi-parser.d.ts.map +1 -1
- package/dist/core/discovery/openapi-parser.js +60 -5
- package/dist/core/discovery/openapi-parser.js.map +1 -1
- package/dist/core/discovery/plugin-discovery.d.ts +45 -2
- package/dist/core/discovery/plugin-discovery.d.ts.map +1 -1
- package/dist/core/discovery/plugin-discovery.js +53 -2
- package/dist/core/discovery/plugin-discovery.js.map +1 -1
- package/dist/core/discovery/service-discovery.d.ts +110 -7
- package/dist/core/discovery/service-discovery.d.ts.map +1 -1
- package/dist/core/discovery/service-discovery.js +123 -23
- package/dist/core/discovery/service-discovery.js.map +1 -1
- package/dist/core/discovery/service-metadata-loader.d.ts +88 -0
- package/dist/core/discovery/service-metadata-loader.d.ts.map +1 -0
- package/dist/core/discovery/service-metadata-loader.js +161 -0
- package/dist/core/discovery/service-metadata-loader.js.map +1 -0
- package/dist/core/docker/docker-executor.d.ts +234 -0
- package/dist/core/docker/docker-executor.d.ts.map +1 -0
- package/dist/core/docker/docker-executor.js +375 -0
- package/dist/core/docker/docker-executor.js.map +1 -0
- package/dist/core/logging/index.d.ts +7 -0
- package/dist/core/logging/index.d.ts.map +1 -0
- package/dist/core/logging/index.js +7 -0
- package/dist/core/logging/index.js.map +1 -0
- package/dist/core/logging/logger.d.ts +152 -0
- package/dist/core/logging/logger.d.ts.map +1 -0
- package/dist/core/logging/logger.js +338 -0
- package/dist/core/logging/logger.js.map +1 -0
- package/dist/core/router/command-registry.d.ts +145 -8
- package/dist/core/router/command-registry.d.ts.map +1 -1
- package/dist/core/router/command-registry.js +200 -13
- package/dist/core/router/command-registry.js.map +1 -1
- package/dist/core/router/command-router.d.ts +116 -6
- package/dist/core/router/command-router.d.ts.map +1 -1
- package/dist/core/router/command-router.js +223 -19
- package/dist/core/router/command-router.js.map +1 -1
- package/dist/core/router/examples/commander-integration.d.ts +20 -0
- package/dist/core/router/examples/commander-integration.d.ts.map +1 -0
- package/dist/core/router/examples/commander-integration.js +345 -0
- package/dist/core/router/examples/commander-integration.js.map +1 -0
- package/dist/core/router/index.d.ts +12 -4
- package/dist/core/router/index.d.ts.map +1 -1
- package/dist/core/router/index.js +14 -3
- package/dist/core/router/index.js.map +1 -1
- package/dist/core/router/middleware.d.ts +74 -0
- package/dist/core/router/middleware.d.ts.map +1 -0
- package/dist/core/router/middleware.js +227 -0
- package/dist/core/router/middleware.js.map +1 -0
- package/dist/core/session/context-manager.d.ts +9 -4
- package/dist/core/session/context-manager.d.ts.map +1 -1
- package/dist/core/session/context-manager.js +17 -8
- package/dist/core/session/context-manager.js.map +1 -1
- package/dist/core/session/env-sanitizer.d.ts +74 -0
- package/dist/core/session/env-sanitizer.d.ts.map +1 -0
- package/dist/core/session/env-sanitizer.js +219 -0
- package/dist/core/session/env-sanitizer.js.map +1 -0
- package/dist/core/session/history-manager.d.ts +1 -1
- package/dist/core/session/history-manager.d.ts.map +1 -1
- package/dist/core/session/history-manager.js +5 -2
- package/dist/core/session/history-manager.js.map +1 -1
- package/dist/core/session/index.d.ts +1 -0
- package/dist/core/session/index.d.ts.map +1 -1
- package/dist/core/session/index.js +1 -0
- package/dist/core/session/index.js.map +1 -1
- package/dist/core/session/session-manager.d.ts +13 -1
- package/dist/core/session/session-manager.d.ts.map +1 -1
- package/dist/core/session/session-manager.js +33 -2
- package/dist/core/session/session-manager.js.map +1 -1
- package/dist/core/session/session-storage.d.ts +4 -1
- package/dist/core/session/session-storage.d.ts.map +1 -1
- package/dist/core/session/session-storage.js +29 -27
- package/dist/core/session/session-storage.js.map +1 -1
- package/dist/core/transport/http-client.d.ts +82 -9
- package/dist/core/transport/http-client.d.ts.map +1 -1
- package/dist/core/transport/http-client.js +255 -130
- package/dist/core/transport/http-client.js.map +1 -1
- package/dist/core/transport/index.d.ts +2 -2
- package/dist/core/transport/index.d.ts.map +1 -1
- package/dist/core/transport/index.js +1 -1
- package/dist/core/transport/mcp-client.d.ts +87 -14
- package/dist/core/transport/mcp-client.d.ts.map +1 -1
- package/dist/core/transport/mcp-client.js +263 -63
- package/dist/core/transport/mcp-client.js.map +1 -1
- package/dist/core/transport/stream-handler.d.ts +36 -5
- package/dist/core/transport/stream-handler.d.ts.map +1 -1
- package/dist/core/transport/stream-handler.js +232 -43
- package/dist/core/transport/stream-handler.js.map +1 -1
- package/dist/core/transport/websocket-client.d.ts +31 -4
- package/dist/core/transport/websocket-client.d.ts.map +1 -1
- package/dist/core/transport/websocket-client.js +178 -65
- package/dist/core/transport/websocket-client.js.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -90
- package/dist/index.js.map +1 -1
- package/dist/output/index.d.ts +0 -3
- package/dist/output/index.d.ts.map +1 -1
- package/dist/output/index.js +4 -3
- package/dist/output/index.js.map +1 -1
- package/dist/repl/completer.d.ts +2 -2
- package/dist/repl/completer.d.ts.map +1 -1
- package/dist/repl/completer.js +5 -5
- package/dist/repl/completer.js.map +1 -1
- package/dist/repl/evaluator.d.ts +9 -3
- package/dist/repl/evaluator.d.ts.map +1 -1
- package/dist/repl/evaluator.js +78 -20
- package/dist/repl/evaluator.js.map +1 -1
- package/dist/repl/renderer.d.ts +2 -2
- package/dist/repl/renderer.d.ts.map +1 -1
- package/dist/repl/renderer.js +4 -5
- package/dist/repl/renderer.js.map +1 -1
- package/dist/repl/repl.d.ts +8 -4
- package/dist/repl/repl.d.ts.map +1 -1
- package/dist/repl/repl.js +68 -34
- package/dist/repl/repl.js.map +1 -1
- package/dist/session/context-manager.d.ts +5 -0
- package/dist/session/context-manager.d.ts.map +1 -0
- package/dist/session/context-manager.js +5 -0
- package/dist/session/context-manager.js.map +1 -0
- package/dist/session/history-manager.d.ts +5 -0
- package/dist/session/history-manager.d.ts.map +1 -0
- package/dist/session/history-manager.js +5 -0
- package/dist/session/history-manager.js.map +1 -0
- package/dist/session/session-manager.d.ts +5 -0
- package/dist/session/session-manager.d.ts.map +1 -0
- package/dist/session/session-manager.js +5 -0
- package/dist/session/session-manager.js.map +1 -0
- package/dist/utils/banner.d.ts +55 -0
- package/dist/utils/banner.d.ts.map +1 -0
- package/dist/utils/banner.js +257 -0
- package/dist/utils/banner.js.map +1 -0
- package/package.json +21 -36
- package/ARCHITECTURE.md +0 -1366
- package/LICENSE +0 -21
- package/completions/_nexus +0 -452
- package/completions/nexus.bash +0 -329
- package/completions/nexus.fish +0 -187
- package/dist/commands/compute/agent.d.ts +0 -21
- package/dist/commands/compute/agent.d.ts.map +0 -1
- package/dist/commands/compute/agent.js +0 -158
- package/dist/commands/compute/agent.js.map +0 -1
- package/dist/commands/compute/index.d.ts +0 -10
- package/dist/commands/compute/index.d.ts.map +0 -1
- package/dist/commands/compute/index.js +0 -27
- package/dist/commands/compute/index.js.map +0 -1
- package/dist/commands/compute/lib/hardware-detection.d.ts +0 -52
- package/dist/commands/compute/lib/hardware-detection.d.ts.map +0 -1
- package/dist/commands/compute/lib/hardware-detection.js +0 -432
- package/dist/commands/compute/lib/hardware-detection.js.map +0 -1
- package/dist/commands/compute/lib/local-compute-agent.d.ts +0 -143
- package/dist/commands/compute/lib/local-compute-agent.d.ts.map +0 -1
- package/dist/commands/compute/lib/local-compute-agent.js +0 -1162
- package/dist/commands/compute/lib/local-compute-agent.js.map +0 -1
- package/dist/commands/compute/lib/local-compute-client.d.ts +0 -89
- package/dist/commands/compute/lib/local-compute-client.d.ts.map +0 -1
- package/dist/commands/compute/lib/local-compute-client.js +0 -388
- package/dist/commands/compute/lib/local-compute-client.js.map +0 -1
- package/dist/commands/compute/list.d.ts +0 -14
- package/dist/commands/compute/list.d.ts.map +0 -1
- package/dist/commands/compute/list.js +0 -164
- package/dist/commands/compute/list.js.map +0 -1
- package/dist/commands/compute/logs.d.ts +0 -14
- package/dist/commands/compute/logs.d.ts.map +0 -1
- package/dist/commands/compute/logs.js +0 -105
- package/dist/commands/compute/logs.js.map +0 -1
- package/dist/commands/compute/resources.d.ts +0 -14
- package/dist/commands/compute/resources.d.ts.map +0 -1
- package/dist/commands/compute/resources.js +0 -163
- package/dist/commands/compute/resources.js.map +0 -1
- package/dist/commands/compute/status.d.ts +0 -13
- package/dist/commands/compute/status.d.ts.map +0 -1
- package/dist/commands/compute/status.js +0 -223
- package/dist/commands/compute/status.js.map +0 -1
- package/dist/commands/compute/submit.d.ts +0 -19
- package/dist/commands/compute/submit.d.ts.map +0 -1
- package/dist/commands/compute/submit.js +0 -99
- package/dist/commands/compute/submit.js.map +0 -1
- package/dist/commands/deploy.d.ts +0 -11
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -117
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/dynamic/nexus-commands.d.ts.map +0 -1
- package/dist/commands/dynamic/nexus-commands.js +0 -426
- package/dist/commands/dynamic/nexus-commands.js.map +0 -1
- package/dist/commands/init.d.ts +0 -11
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -128
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/list.d.ts +0 -10
- package/dist/commands/list.d.ts.map +0 -1
- package/dist/commands/list.js +0 -81
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/login.d.ts +0 -10
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/login.js +0 -83
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/logs.d.ts +0 -11
- package/dist/commands/logs.d.ts.map +0 -1
- package/dist/commands/logs.js +0 -79
- package/dist/commands/logs.js.map +0 -1
- package/dist/commands/nexus/index.d.ts +0 -69
- package/dist/commands/nexus/index.d.ts.map +0 -1
- package/dist/commands/nexus/index.js +0 -336
- package/dist/commands/nexus/index.js.map +0 -1
- package/dist/commands/register.d.ts +0 -10
- package/dist/commands/register.d.ts.map +0 -1
- package/dist/commands/register.js +0 -85
- package/dist/commands/register.js.map +0 -1
- package/dist/core/agent-client.d.ts +0 -49
- package/dist/core/agent-client.d.ts.map +0 -1
- package/dist/core/agent-client.js +0 -289
- package/dist/core/agent-client.js.map +0 -1
- package/dist/core/nexus-client.d.ts +0 -119
- package/dist/core/nexus-client.d.ts.map +0 -1
- package/dist/core/nexus-client.js +0 -292
- package/dist/core/nexus-client.js.map +0 -1
- package/dist/core/nexus-tool-executor.d.ts +0 -102
- package/dist/core/nexus-tool-executor.d.ts.map +0 -1
- package/dist/core/nexus-tool-executor.js +0 -386
- package/dist/core/nexus-tool-executor.js.map +0 -1
- package/dist/core/react-handler.d.ts +0 -17
- package/dist/core/react-handler.d.ts.map +0 -1
- package/dist/core/react-handler.js +0 -296
- package/dist/core/react-handler.js.map +0 -1
- package/dist/output/formatters/index.d.ts +0 -9
- package/dist/output/formatters/index.d.ts.map +0 -1
- package/dist/output/formatters/index.js +0 -9
- package/dist/output/formatters/index.js.map +0 -1
- package/dist/output/formatters/json-formatter.d.ts +0 -71
- package/dist/output/formatters/json-formatter.d.ts.map +0 -1
- package/dist/output/formatters/json-formatter.js +0 -236
- package/dist/output/formatters/json-formatter.js.map +0 -1
- package/dist/output/formatters/stream-formatter.d.ts +0 -107
- package/dist/output/formatters/stream-formatter.d.ts.map +0 -1
- package/dist/output/formatters/stream-formatter.js +0 -247
- package/dist/output/formatters/stream-formatter.js.map +0 -1
- package/dist/output/formatters/table-formatter.d.ts +0 -63
- package/dist/output/formatters/table-formatter.d.ts.map +0 -1
- package/dist/output/formatters/table-formatter.js +0 -294
- package/dist/output/formatters/table-formatter.js.map +0 -1
- package/dist/output/formatters/text-formatter.d.ts +0 -63
- package/dist/output/formatters/text-formatter.d.ts.map +0 -1
- package/dist/output/formatters/text-formatter.js +0 -202
- package/dist/output/formatters/text-formatter.js.map +0 -1
- package/dist/output/formatters/yaml-formatter.d.ts +0 -71
- package/dist/output/formatters/yaml-formatter.d.ts.map +0 -1
- package/dist/output/formatters/yaml-formatter.js +0 -239
- package/dist/output/formatters/yaml-formatter.js.map +0 -1
- package/dist/output/output-manager.d.ts +0 -156
- package/dist/output/output-manager.d.ts.map +0 -1
- package/dist/output/output-manager.js +0 -339
- package/dist/output/output-manager.js.map +0 -1
- package/dist/output/renderers/index.d.ts +0 -6
- package/dist/output/renderers/index.d.ts.map +0 -1
- package/dist/output/renderers/index.js +0 -6
- package/dist/output/renderers/index.js.map +0 -1
- package/dist/output/renderers/progress-renderer.d.ts +0 -56
- package/dist/output/renderers/progress-renderer.d.ts.map +0 -1
- package/dist/output/renderers/progress-renderer.js +0 -306
- package/dist/output/renderers/progress-renderer.js.map +0 -1
- package/dist/output/renderers/terminal-renderer.d.ts +0 -117
- package/dist/output/renderers/terminal-renderer.d.ts.map +0 -1
- package/dist/output/renderers/terminal-renderer.js +0 -294
- package/dist/output/renderers/terminal-renderer.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -12
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -18
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/plugin-loader.d.ts +0 -37
- package/dist/plugins/plugin-loader.d.ts.map +0 -1
- package/dist/plugins/plugin-loader.js +0 -155
- package/dist/plugins/plugin-loader.js.map +0 -1
- package/dist/plugins/plugin-manager.d.ts +0 -78
- package/dist/plugins/plugin-manager.d.ts.map +0 -1
- package/dist/plugins/plugin-manager.js +0 -310
- package/dist/plugins/plugin-manager.js.map +0 -1
- package/dist/plugins/plugin-sdk.d.ts +0 -136
- package/dist/plugins/plugin-sdk.d.ts.map +0 -1
- package/dist/plugins/plugin-sdk.js +0 -260
- package/dist/plugins/plugin-sdk.js.map +0 -1
- package/dist/plugins/plugin-storage.d.ts +0 -109
- package/dist/plugins/plugin-storage.d.ts.map +0 -1
- package/dist/plugins/plugin-storage.js +0 -207
- package/dist/plugins/plugin-storage.js.map +0 -1
- package/dist/plugins/plugin-validator.d.ts +0 -44
- package/dist/plugins/plugin-validator.d.ts.map +0 -1
- package/dist/plugins/plugin-validator.js +0 -272
- package/dist/plugins/plugin-validator.js.map +0 -1
- package/dist/plugins/template-generator.d.ts +0 -35
- package/dist/plugins/template-generator.d.ts.map +0 -1
- package/dist/plugins/template-generator.js +0 -438
- package/dist/plugins/template-generator.js.map +0 -1
- package/dist/templates/python.d.ts +0 -15
- package/dist/templates/python.d.ts.map +0 -1
- package/dist/templates/python.js +0 -375
- package/dist/templates/python.js.map +0 -1
- package/dist/templates/typescript.d.ts +0 -15
- package/dist/templates/typescript.d.ts.map +0 -1
- package/dist/templates/typescript.js +0 -274
- package/dist/templates/typescript.js.map +0 -1
- package/dist/types/agent.d.ts +0 -109
- package/dist/types/agent.d.ts.map +0 -1
- package/dist/types/agent.js +0 -7
- package/dist/types/agent.js.map +0 -1
- package/dist/types/api.d.ts +0 -125
- package/dist/types/api.d.ts.map +0 -1
- package/dist/types/api.js +0 -53
- package/dist/types/api.js.map +0 -1
- package/dist/types/command.d.ts +0 -101
- package/dist/types/command.d.ts.map +0 -1
- package/dist/types/command.js +0 -7
- package/dist/types/command.js.map +0 -1
- package/dist/types/compute.d.ts +0 -317
- package/dist/types/compute.d.ts.map +0 -1
- package/dist/types/compute.js +0 -19
- package/dist/types/compute.js.map +0 -1
- package/dist/types/config.d.ts +0 -71
- package/dist/types/config.d.ts.map +0 -1
- package/dist/types/config.js +0 -7
- package/dist/types/config.js.map +0 -1
- package/dist/types/errors.d.ts +0 -56
- package/dist/types/errors.d.ts.map +0 -1
- package/dist/types/errors.js +0 -64
- package/dist/types/errors.js.map +0 -1
- package/dist/types/index.d.ts +0 -16
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -16
- package/dist/types/index.js.map +0 -1
- package/dist/types/nexus.d.ts +0 -254
- package/dist/types/nexus.d.ts.map +0 -1
- package/dist/types/nexus.js +0 -7
- package/dist/types/nexus.js.map +0 -1
- package/dist/types/output.d.ts +0 -107
- package/dist/types/output.d.ts.map +0 -1
- package/dist/types/output.js +0 -7
- package/dist/types/output.js.map +0 -1
- package/dist/types/plugin.d.ts +0 -118
- package/dist/types/plugin.d.ts.map +0 -1
- package/dist/types/plugin.js +0 -7
- package/dist/types/plugin.js.map +0 -1
- package/dist/types/service.d.ts +0 -94
- package/dist/types/service.d.ts.map +0 -1
- package/dist/types/service.js +0 -15
- package/dist/types/service.js.map +0 -1
- package/dist/types/session.d.ts +0 -80
- package/dist/types/session.d.ts.map +0 -1
- package/dist/types/session.js +0 -7
- package/dist/types/session.js.map +0 -1
- package/dist/types/transport.d.ts +0 -96
- package/dist/types/transport.d.ts.map +0 -1
- package/dist/types/transport.js +0 -7
- package/dist/types/transport.js.map +0 -1
- package/dist/utils/config.d.ts +0 -47
- package/dist/utils/config.d.ts.map +0 -1
- package/dist/utils/config.js +0 -166
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -82
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -238
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -9
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -61
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -200
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/prompt.d.ts +0 -57
- package/dist/utils/prompt.d.ts.map +0 -1
- package/dist/utils/prompt.js +0 -141
- package/dist/utils/prompt.js.map +0 -1
- package/dist/utils/spinner.d.ts +0 -47
- package/dist/utils/spinner.d.ts.map +0 -1
- package/dist/utils/spinner.js +0 -123
- package/dist/utils/spinner.js.map +0 -1
- package/dist/utils/validation.d.ts +0 -97
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -289
- package/dist/utils/validation.js.map +0 -1
- package/docs/COMPLETIONS.md +0 -528
- package/docs/REPL.md +0 -466
- package/docs/graphrag-commands.md +0 -387
- package/scripts/install-completions.sh +0 -356
- package/scripts/prepublish.js +0 -522
- package/scripts/verify-package.js +0 -505
package/README.md
CHANGED
|
@@ -1,593 +1,535 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/adverant/Adverant-Nexus-CLI/main/docs/images/adverant-logo-final.svg" alt="Adverant" width="280"/>
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
# Nexus CLI
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
[](https://github.com/adverant-ai/adverant-nexus/blob/main/LICENSE)
|
|
7
|
-
[](https://www.typescriptlang.org/)
|
|
6
|
+
**Enterprise-Grade CLI for AI-Powered Development**
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
[](https://www.npmjs.com/package/@adverant-nexus/cli)
|
|
9
|
+
[](https://opensource.org/licenses/MIT)
|
|
10
|
+
[](https://www.typescriptlang.org/)
|
|
11
|
+
[](https://nodejs.org/)
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
**Version:** 3.0.0 | **Last Updated:** December 2024
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
[Why Nexus?](#why-nexus-cli) • [Features](#-features) • [Quick Start](#-quick-start) • [Commands](#-command-reference) • [Architecture](#-architecture) • [Contributing](#-contributing)
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|---------|-------------------|-------------|------------|
|
|
17
|
-
| **Auto-Discovery** | ✅ All services & plugins | ❌ Manual | ❌ Manual |
|
|
18
|
-
| **Service Commands** | ✅ 32+ services | ❌ Single agent | ❌ Single agent |
|
|
19
|
-
| **Nexus Tools** | ✅ 70+ tools exposed | ❌ N/A | ❌ N/A |
|
|
20
|
-
| **Plugin System** | ✅ Full SDK | ✅ Skills | ✅ Extensions |
|
|
21
|
-
| **Interactive REPL** | ✅ Full-featured | ❌ Chat only | ✅ Yes |
|
|
22
|
-
| **Streaming** | ✅ WebSocket + SSE | ✅ Yes | ✅ Yes |
|
|
23
|
-
| **Output Formats** | ✅ 5 formats | ✅ Text + JSON | ✅ Text + JSON |
|
|
24
|
-
| **ReAct Agent** | ✅ 20 iterations | ✅ Task agent | ❌ No |
|
|
25
|
-
| **Service Management** | ✅ Full control | ❌ N/A | ❌ N/A |
|
|
26
|
-
| **Multi-Agent** | ✅ 10+ agents | ❌ Single | ❌ Single |
|
|
17
|
+
</div>
|
|
27
18
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### 🚀 Auto-Discovery
|
|
31
|
-
- **Automatic service detection** from docker-compose.yml
|
|
32
|
-
- **OpenAPI schema parsing** for automatic command generation
|
|
33
|
-
- **MCP tool discovery** for Nexus system integration
|
|
34
|
-
- **Plugin auto-loading** from ~/.nexus/plugins/
|
|
35
|
-
|
|
36
|
-
### 🎯 Unified Interface
|
|
37
|
-
- **32+ microservices** accessible via single CLI
|
|
38
|
-
- **500+ API endpoints** exposed as commands
|
|
39
|
-
- **70+ Nexus tools** integrated
|
|
40
|
-
- **Service namespaces**: `nexus <service> <action>`
|
|
41
|
-
|
|
42
|
-
### 🤖 Intelligent Automation
|
|
43
|
-
- **ReAct agent mode** for autonomous task execution
|
|
44
|
-
- **Multi-agent orchestration** (up to 10 agents)
|
|
45
|
-
- **Code validation** with 3-model consensus
|
|
46
|
-
- **Progressive learning** system integration
|
|
47
|
-
|
|
48
|
-
### 🔌 Extensible
|
|
49
|
-
- **Plugin SDK** for third-party extensions
|
|
50
|
-
- **MCP protocol** support
|
|
51
|
-
- **Custom commands** via .nexus.toml
|
|
52
|
-
- **Workspace-aware** configuration
|
|
53
|
-
|
|
54
|
-
### 📊 Multiple Output Formats
|
|
55
|
-
- **Text** (human-readable)
|
|
56
|
-
- **JSON** (machine-parseable)
|
|
57
|
-
- **YAML** (configuration files)
|
|
58
|
-
- **Table** (structured data)
|
|
59
|
-
- **Stream-JSON** (real-time events)
|
|
60
|
-
|
|
61
|
-
### 🎨 Rich Developer Experience
|
|
62
|
-
- **Interactive REPL** mode
|
|
63
|
-
- **Tab completion** for all commands
|
|
64
|
-
- **Session checkpointing** (save/resume work)
|
|
65
|
-
- **Streaming progress** for long operations
|
|
66
|
-
- **Git integration** (status, diff, commit)
|
|
67
|
-
|
|
68
|
-
## Installation
|
|
69
|
-
|
|
70
|
-
### From Source (Current)
|
|
71
|
-
```bash
|
|
72
|
-
# Navigate to CLI directory
|
|
73
|
-
cd /home/user/Adverant-Nexus/packages/nexus-cli
|
|
74
|
-
|
|
75
|
-
# Install dependencies
|
|
76
|
-
npm install
|
|
19
|
+
---
|
|
77
20
|
|
|
78
|
-
|
|
79
|
-
npm run build
|
|
21
|
+
## Why Nexus CLI?
|
|
80
22
|
|
|
81
|
-
|
|
82
|
-
npm run link:global
|
|
23
|
+
**Most AI CLIs give you a chatbot. Nexus gives you a command center.**
|
|
83
24
|
|
|
84
|
-
|
|
85
|
-
nexus --version
|
|
86
|
-
```
|
|
25
|
+
Developers often juggle multiple tools, copy context between terminals, and lose track of what each system knows. Nexus CLI was built to unify your AI-powered workflow into a single, coherent interface.
|
|
87
26
|
|
|
88
|
-
###
|
|
89
|
-
```bash
|
|
90
|
-
npm install -g @adverant-nexus/cli
|
|
91
|
-
```
|
|
27
|
+
### Key Capabilities
|
|
92
28
|
|
|
93
|
-
|
|
29
|
+
| Capability | Description |
|
|
30
|
+
|------------|-------------|
|
|
31
|
+
| **Auto-Discovery** | Automatically detects and integrates 32+ microservices |
|
|
32
|
+
| **MCP Integration** | 70+ Model Context Protocol tools exposed as commands |
|
|
33
|
+
| **Multi-Agent Orchestration** | Run 10+ concurrent AI agents for complex tasks |
|
|
34
|
+
| **ReAct Agent Mode** | Autonomous task execution with up to 20 iterations |
|
|
35
|
+
| **Interactive REPL** | Full-featured shell with history and tab completion |
|
|
36
|
+
| **Plugin SDK** | Complete extensibility for custom integrations |
|
|
37
|
+
| **Workflow Automation** | YAML-based workflows with visual builder |
|
|
38
|
+
| **Real-time Monitoring** | Dashboard with alerts and performance metrics |
|
|
39
|
+
| **Cost Tracking** | Built-in usage analytics per operation |
|
|
40
|
+
| **Session Management** | Save, resume, and checkpoint your work |
|
|
41
|
+
| **Collaboration** | Multi-user sessions for team workflows |
|
|
42
|
+
| **Streaming** | WebSocket and SSE support for real-time updates |
|
|
94
43
|
|
|
95
|
-
|
|
96
|
-
# Check CLI version
|
|
97
|
-
nexus --version
|
|
44
|
+
---
|
|
98
45
|
|
|
99
|
-
|
|
100
|
-
nexus services list
|
|
46
|
+
## The Problem We Solve
|
|
101
47
|
|
|
102
|
-
|
|
103
|
-
|
|
48
|
+
```
|
|
49
|
+
BEFORE: Fragmented Tooling
|
|
50
|
+
|
|
51
|
+
Your Terminal --> Tool A Custom Scripts Tool B
|
|
52
|
+
| | |
|
|
53
|
+
v v v
|
|
54
|
+
Context Lost | No Integration | Limited Features
|
|
55
|
+
|
|
56
|
+
AFTER: Unified Command Center
|
|
57
|
+
|
|
58
|
+
Your Terminal --> NEXUS CLI
|
|
59
|
+
- 32+ Services
|
|
60
|
+
- 70+ MCP Tools
|
|
61
|
+
- 10+ Agents
|
|
62
|
+
- Full Context
|
|
63
|
+
|
|
|
64
|
+
+----------------+----------------+
|
|
65
|
+
v v v
|
|
66
|
+
GraphRAG MageAgent Gateway
|
|
67
|
+
```
|
|
104
68
|
|
|
105
|
-
|
|
106
|
-
nexus graphrag store-document --file report.pdf --title "Q4 Report"
|
|
69
|
+
---
|
|
107
70
|
|
|
108
|
-
|
|
109
|
-
nexus graphrag query --text "user authentication patterns"
|
|
71
|
+
## Features
|
|
110
72
|
|
|
111
|
-
|
|
112
|
-
nexus mageagent orchestrate --task "Analyze codebase for security issues"
|
|
73
|
+
### Auto-Discovery & Integration
|
|
113
74
|
|
|
114
|
-
|
|
115
|
-
nexus sandbox execute --code "print('Hello, Nexus!')" --language python
|
|
75
|
+
Stop configuring. Start building.
|
|
116
76
|
|
|
117
|
-
|
|
118
|
-
|
|
77
|
+
- **Automatic service detection** from Docker Compose, Kubernetes, and OpenAPI specs
|
|
78
|
+
- **70+ MCP tools** exposed through Model Context Protocol integration
|
|
79
|
+
- **32+ microservices** accessible through a single CLI
|
|
80
|
+
- **500+ API endpoints** auto-generated as commands
|
|
81
|
+
- **Plugin auto-loading** from `~/.nexus/plugins/`
|
|
119
82
|
|
|
120
|
-
|
|
121
|
-
|
|
83
|
+
```bash
|
|
84
|
+
# Nexus discovers your entire stack automatically
|
|
85
|
+
nexus services list
|
|
86
|
+
# Output: 32 services discovered, 47 healthy, 0 degraded
|
|
122
87
|
|
|
123
|
-
|
|
124
|
-
|
|
88
|
+
nexus mcp tools
|
|
89
|
+
# Output: 70 tools available across 12 providers
|
|
125
90
|
```
|
|
126
91
|
|
|
127
|
-
|
|
92
|
+
### Intelligent Automation
|
|
128
93
|
|
|
129
|
-
|
|
94
|
+
Your AI that actually gets things done.
|
|
130
95
|
|
|
131
|
-
|
|
96
|
+
- **Natural language commands**: Just describe what you want
|
|
97
|
+
- **ReAct agent mode**: 20 autonomous iterations with reasoning
|
|
98
|
+
- **Multi-agent orchestration**: Up to 10 concurrent specialized agents
|
|
99
|
+
- **Context-aware execution**: Remembers your stack, preferences, and patterns
|
|
100
|
+
- **Workflow templates**: YAML-defined automation pipelines
|
|
132
101
|
|
|
133
102
|
```bash
|
|
134
|
-
#
|
|
135
|
-
nexus
|
|
136
|
-
nexus graphrag query --text "search query"
|
|
137
|
-
nexus graphrag store-entity --domain code --type class --content "User"
|
|
103
|
+
# Natural language - Nexus understands intent
|
|
104
|
+
nexus ask "Deploy the latest GraphRAG changes to staging"
|
|
138
105
|
|
|
139
|
-
#
|
|
140
|
-
nexus
|
|
141
|
-
nexus mageagent analyze --input code.ts --focus security
|
|
142
|
-
nexus mageagent collaborate --agents 3 --task "Build API"
|
|
106
|
+
# ReAct agent - autonomous problem solving
|
|
107
|
+
nexus agent task "Analyze the codebase and suggest performance improvements" --iterations 20
|
|
143
108
|
|
|
144
|
-
#
|
|
145
|
-
nexus
|
|
146
|
-
|
|
109
|
+
# Multi-agent - parallel specialized work
|
|
110
|
+
nexus agent orchestrate --agents "code-review,security-scan,test-coverage"
|
|
111
|
+
```
|
|
147
112
|
|
|
148
|
-
|
|
149
|
-
nexus videoagent process-video --url video.mp4 --stream
|
|
113
|
+
### Extensible Architecture
|
|
150
114
|
|
|
151
|
-
|
|
152
|
-
nexus geoagent proximity-search --lat 37.7749 --lon -122.4194 --radius 10km
|
|
115
|
+
Build on top of Nexus, don't work around it.
|
|
153
116
|
|
|
154
|
-
|
|
155
|
-
|
|
117
|
+
- **Plugin SDK** with full TypeScript support
|
|
118
|
+
- **Hot-reloadable** plugins without restart
|
|
119
|
+
- **Permission-based sandbox** for security
|
|
120
|
+
- **Custom commands** via workspace configuration
|
|
121
|
+
- **MCP protocol** support for tool integration
|
|
156
122
|
|
|
157
|
-
|
|
158
|
-
|
|
123
|
+
```typescript
|
|
124
|
+
// Create a plugin in minutes
|
|
125
|
+
import { NexusPlugin, command } from '@adverant-nexus/sdk';
|
|
126
|
+
|
|
127
|
+
export default class MyPlugin extends NexusPlugin {
|
|
128
|
+
@command('greet', 'Say hello')
|
|
129
|
+
async greet(name: string) {
|
|
130
|
+
return `Hello, ${name}! Welcome to Nexus.`;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
159
133
|
```
|
|
160
134
|
|
|
161
|
-
###
|
|
135
|
+
### Rich Developer Experience
|
|
162
136
|
|
|
163
|
-
|
|
137
|
+
Built by developers, for developers who demand excellence.
|
|
138
|
+
|
|
139
|
+
- **Interactive REPL** with full history and tab completion
|
|
140
|
+
- **Session checkpointing**: Save work, switch contexts, resume later
|
|
141
|
+
- **Multiple output formats**: JSON, YAML, Table, Streaming
|
|
142
|
+
- **Git integration**: Status, diff, commit from Nexus
|
|
143
|
+
- **Real-time streaming**: Watch operations as they happen
|
|
164
144
|
|
|
165
145
|
```bash
|
|
166
|
-
#
|
|
167
|
-
nexus
|
|
168
|
-
nexus nexus recall-memory --query "search" --limit 10
|
|
169
|
-
nexus nexus store-document --file doc.pdf
|
|
170
|
-
nexus nexus retrieve --query "..." --strategy hybrid
|
|
171
|
-
|
|
172
|
-
# Knowledge Graph
|
|
173
|
-
nexus nexus store-entity --domain code --type function --content "..."
|
|
174
|
-
nexus nexus query-entities --domain code --search "auth"
|
|
175
|
-
nexus nexus create-relationship --source id1 --target id2 --type CALLS
|
|
176
|
-
|
|
177
|
-
# Code Analysis
|
|
178
|
-
nexus nexus validate-code --file app.ts --risk-level high
|
|
179
|
-
nexus nexus analyze-code --file app.ts --focus security,performance
|
|
180
|
-
|
|
181
|
-
# Multi-Agent
|
|
182
|
-
nexus nexus orchestrate --task "Security audit" --max-agents 5
|
|
183
|
-
|
|
184
|
-
# Learning
|
|
185
|
-
nexus nexus trigger-learning --topic "rust" --priority 8
|
|
186
|
-
nexus nexus recall-knowledge --topic "async" --layer EXPERT
|
|
187
|
-
|
|
188
|
-
# Health
|
|
189
|
-
nexus nexus health --detailed
|
|
190
|
-
```
|
|
146
|
+
# Interactive mode - your AI command center
|
|
147
|
+
nexus repl
|
|
191
148
|
|
|
192
|
-
|
|
149
|
+
nexus> services health --all
|
|
150
|
+
nexus> agent start research --topic "GraphRAG optimization"
|
|
151
|
+
nexus> session save "morning-work"
|
|
152
|
+
nexus> exit
|
|
193
153
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
154
|
+
# Resume exactly where you left off
|
|
155
|
+
nexus session load "morning-work"
|
|
156
|
+
```
|
|
197
157
|
|
|
198
|
-
|
|
199
|
-
nexus services status
|
|
158
|
+
### Monitoring & Analytics
|
|
200
159
|
|
|
201
|
-
|
|
202
|
-
nexus services info graphrag
|
|
160
|
+
Know everything. Miss nothing.
|
|
203
161
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
162
|
+
- **Service health dashboard** with live updates
|
|
163
|
+
- **Custom alert conditions** with webhooks and notifications
|
|
164
|
+
- **Performance metrics** per operation
|
|
165
|
+
- **Cost tracking** for API operations
|
|
166
|
+
- **Time-series analytics** for optimization
|
|
208
167
|
|
|
209
|
-
|
|
210
|
-
|
|
168
|
+
```bash
|
|
169
|
+
# Real-time health monitoring
|
|
170
|
+
nexus monitor --dashboard
|
|
211
171
|
|
|
212
|
-
#
|
|
213
|
-
nexus
|
|
172
|
+
# Cost analysis
|
|
173
|
+
nexus analytics costs --period 30d
|
|
174
|
+
# Output: Total: $47.82 | GraphRAG: $23.41 | MageAgent: $18.90 | Other: $5.51
|
|
214
175
|
|
|
215
|
-
#
|
|
216
|
-
nexus
|
|
176
|
+
# Performance insights
|
|
177
|
+
nexus analytics performance --service graphrag
|
|
217
178
|
```
|
|
218
179
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
```bash
|
|
222
|
-
# Start REPL
|
|
223
|
-
nexus repl
|
|
180
|
+
---
|
|
224
181
|
|
|
225
|
-
|
|
226
|
-
> help # Show all commands
|
|
227
|
-
> services # List discovered services
|
|
228
|
-
> use graphrag # Switch to graphrag namespace
|
|
229
|
-
> store-document --file x.pdf # Execute in current namespace
|
|
230
|
-
> history # Show command history
|
|
231
|
-
> save my-session # Save session
|
|
232
|
-
> exit # Exit REPL
|
|
233
|
-
```
|
|
182
|
+
## Quick Start
|
|
234
183
|
|
|
235
|
-
###
|
|
184
|
+
### Installation
|
|
236
185
|
|
|
237
186
|
```bash
|
|
238
|
-
#
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
#
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
--workspace /path/to/project
|
|
247
|
-
|
|
248
|
-
# With streaming
|
|
249
|
-
nexus agent run --task "Security audit" --stream
|
|
187
|
+
# npm (recommended)
|
|
188
|
+
npm install -g @adverant-nexus/cli
|
|
189
|
+
|
|
190
|
+
# yarn
|
|
191
|
+
yarn global add @adverant-nexus/cli
|
|
192
|
+
|
|
193
|
+
# pnpm
|
|
194
|
+
pnpm add -g @adverant-nexus/cli
|
|
250
195
|
```
|
|
251
196
|
|
|
252
|
-
###
|
|
197
|
+
### First Run
|
|
253
198
|
|
|
254
199
|
```bash
|
|
255
|
-
#
|
|
256
|
-
nexus
|
|
200
|
+
# 1. Configure your API endpoint
|
|
201
|
+
nexus config set services.apiUrl https://your-nexus-api.com
|
|
257
202
|
|
|
258
|
-
#
|
|
259
|
-
nexus
|
|
203
|
+
# 2. Authenticate
|
|
204
|
+
nexus auth login
|
|
205
|
+
# Opens browser for OAuth, or use API key:
|
|
206
|
+
nexus auth login --api-key YOUR_API_KEY
|
|
260
207
|
|
|
261
|
-
#
|
|
262
|
-
nexus
|
|
208
|
+
# 3. Verify connection
|
|
209
|
+
nexus services health
|
|
263
210
|
|
|
264
|
-
#
|
|
265
|
-
nexus
|
|
266
|
-
nexus
|
|
211
|
+
# 4. Explore what's available
|
|
212
|
+
nexus --help
|
|
213
|
+
nexus services list
|
|
214
|
+
nexus mcp tools
|
|
267
215
|
```
|
|
268
216
|
|
|
269
|
-
###
|
|
217
|
+
### Your First Commands
|
|
270
218
|
|
|
271
219
|
```bash
|
|
272
|
-
#
|
|
273
|
-
nexus
|
|
220
|
+
# Ask a natural language question
|
|
221
|
+
nexus ask "What services are currently running?"
|
|
274
222
|
|
|
275
|
-
#
|
|
276
|
-
nexus
|
|
277
|
-
|
|
278
|
-
# Set value
|
|
279
|
-
nexus config set defaults.output_format json
|
|
223
|
+
# Check all service health
|
|
224
|
+
nexus services health --all
|
|
280
225
|
|
|
281
|
-
#
|
|
282
|
-
nexus
|
|
283
|
-
nexus config profiles use production
|
|
226
|
+
# Start an interactive session
|
|
227
|
+
nexus repl
|
|
284
228
|
|
|
285
|
-
#
|
|
286
|
-
nexus
|
|
229
|
+
# Run an autonomous agent task
|
|
230
|
+
nexus agent task "Analyze authentication patterns in the codebase"
|
|
287
231
|
```
|
|
288
232
|
|
|
289
|
-
|
|
233
|
+
---
|
|
290
234
|
|
|
291
|
-
|
|
292
|
-
# JSON output (for scripting)
|
|
293
|
-
nexus services list --output-format json
|
|
235
|
+
## Command Reference
|
|
294
236
|
|
|
295
|
-
|
|
296
|
-
nexus videoagent process-video --url video.mp4 --output-format stream-json
|
|
237
|
+
### Core Commands
|
|
297
238
|
|
|
298
|
-
|
|
299
|
-
|
|
239
|
+
| Command | Description |
|
|
240
|
+
|---------|-------------|
|
|
241
|
+
| `nexus auth login` | Authenticate with Nexus API |
|
|
242
|
+
| `nexus auth logout` | Clear stored credentials |
|
|
243
|
+
| `nexus auth whoami` | Show current user info |
|
|
244
|
+
| `nexus config set <key> <value>` | Update configuration |
|
|
245
|
+
| `nexus config get <key>` | Get configuration value |
|
|
246
|
+
|
|
247
|
+
### Service Commands
|
|
300
248
|
|
|
301
|
-
|
|
302
|
-
|
|
249
|
+
| Command | Description |
|
|
250
|
+
|---------|-------------|
|
|
251
|
+
| `nexus services list` | List all discovered services |
|
|
252
|
+
| `nexus services health [--all]` | Check service health |
|
|
253
|
+
| `nexus services info <service>` | Get detailed service info |
|
|
254
|
+
| `nexus services logs <service>` | Stream service logs |
|
|
255
|
+
| `nexus services restart <service>` | Restart a service |
|
|
256
|
+
|
|
257
|
+
### Agent Commands
|
|
258
|
+
|
|
259
|
+
| Command | Description |
|
|
260
|
+
|---------|-------------|
|
|
261
|
+
| `nexus agent task <description>` | Run autonomous agent task |
|
|
262
|
+
| `nexus agent orchestrate` | Multi-agent orchestration |
|
|
263
|
+
| `nexus agent status <id>` | Check agent task status |
|
|
264
|
+
| `nexus agent list` | List running agents |
|
|
265
|
+
| `nexus agent stop <id>` | Stop running agent |
|
|
266
|
+
|
|
267
|
+
### MCP Commands
|
|
268
|
+
|
|
269
|
+
| Command | Description |
|
|
270
|
+
|---------|-------------|
|
|
271
|
+
| `nexus mcp tools` | List available MCP tools |
|
|
272
|
+
| `nexus mcp run <tool> [args]` | Execute an MCP tool |
|
|
273
|
+
| `nexus mcp servers` | List MCP servers |
|
|
274
|
+
| `nexus mcp status` | MCP connection status |
|
|
275
|
+
|
|
276
|
+
### Session Commands
|
|
277
|
+
|
|
278
|
+
| Command | Description |
|
|
279
|
+
|---------|-------------|
|
|
280
|
+
| `nexus session save <name>` | Save current session |
|
|
281
|
+
| `nexus session load <name>` | Load saved session |
|
|
282
|
+
| `nexus session list` | List all saved sessions |
|
|
283
|
+
| `nexus session export` | Export session to file |
|
|
284
|
+
|
|
285
|
+
### Workflow Commands
|
|
286
|
+
|
|
287
|
+
| Command | Description |
|
|
288
|
+
|---------|-------------|
|
|
289
|
+
| `nexus workflow run <file>` | Execute workflow from YAML |
|
|
290
|
+
| `nexus workflow create` | Interactive workflow builder |
|
|
291
|
+
| `nexus workflow list` | List saved workflows |
|
|
292
|
+
| `nexus workflow status <id>` | Check workflow status |
|
|
293
|
+
|
|
294
|
+
### Analytics Commands
|
|
295
|
+
|
|
296
|
+
| Command | Description |
|
|
297
|
+
|---------|-------------|
|
|
298
|
+
| `nexus analytics costs` | View cost breakdown |
|
|
299
|
+
| `nexus analytics usage` | View usage statistics |
|
|
300
|
+
| `nexus analytics performance` | Performance metrics |
|
|
303
301
|
|
|
304
|
-
|
|
305
|
-
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Architecture
|
|
306
305
|
|
|
307
|
-
# Verbose mode
|
|
308
|
-
nexus mageagent orchestrate --task "..." --verbose
|
|
309
306
|
```
|
|
307
|
+
+-----------------------------------------------------------------------------+
|
|
308
|
+
| NEXUS CLI |
|
|
309
|
+
+-----------------------------------------------------------------------------+
|
|
310
|
+
| |
|
|
311
|
+
| +------------------+ +------------------+ +-------------------------+ |
|
|
312
|
+
| | Commands | | REPL | | Plugin System | |
|
|
313
|
+
| | (60+ cmds) | | (Interactive) | | (SDK + Hooks) | |
|
|
314
|
+
| +--------+---------+ +--------+---------+ +------------+------------+ |
|
|
315
|
+
| | | | |
|
|
316
|
+
| +---------------------+-------------------------+ |
|
|
317
|
+
| | |
|
|
318
|
+
| +------------v------------+ |
|
|
319
|
+
| | Command Router | |
|
|
320
|
+
| | (Discovery + Routing) | |
|
|
321
|
+
| +------------+------------+ |
|
|
322
|
+
| | |
|
|
323
|
+
| +---------------------+---------------------+ |
|
|
324
|
+
| | | | |
|
|
325
|
+
| +------v------+ +------v------+ +------v------+ |
|
|
326
|
+
| | HTTP Client | | WebSocket | | MCP | |
|
|
327
|
+
| | (REST API) | | (Streaming) | | (Tools) | |
|
|
328
|
+
| +------+------+ +------+------+ +------+------+ |
|
|
329
|
+
| | | | |
|
|
330
|
+
+------------+---------------------+---------------------+--------------------+
|
|
331
|
+
| | |
|
|
332
|
+
v v v
|
|
333
|
+
+-----------------------------------------------------------------------------+
|
|
334
|
+
| NEXUS PLATFORM SERVICES |
|
|
335
|
+
+-----------------------------------------------------------------------------+
|
|
336
|
+
| |
|
|
337
|
+
| +-------------+ +-------------+ +-------------+ +-----------------+ |
|
|
338
|
+
| | GraphRAG | | MageAgent | | Gateway | | 32+ More... | |
|
|
339
|
+
| | Memory | | Agents | | Routing | | Services | |
|
|
340
|
+
| +-------------+ +-------------+ +-------------+ +-----------------+ |
|
|
341
|
+
| |
|
|
342
|
+
+-----------------------------------------------------------------------------+
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
---
|
|
310
346
|
|
|
311
347
|
## Configuration
|
|
312
348
|
|
|
313
|
-
###
|
|
349
|
+
### Environment Variables
|
|
314
350
|
|
|
315
|
-
|
|
351
|
+
```bash
|
|
352
|
+
# Required
|
|
353
|
+
NEXUS_API_URL=https://your-nexus-api.com
|
|
354
|
+
|
|
355
|
+
# Authentication (choose one)
|
|
356
|
+
NEXUS_API_KEY=your_api_key_here
|
|
357
|
+
NEXUS_JWT_TOKEN=your_jwt_token_here
|
|
358
|
+
|
|
359
|
+
# Optional
|
|
360
|
+
NEXUS_OUTPUT_FORMAT=json # json, yaml, table, text
|
|
361
|
+
NEXUS_STREAMING=true # Enable real-time streaming
|
|
362
|
+
NEXUS_LOG_LEVEL=info # debug, info, warn, error
|
|
363
|
+
NEXUS_CACHE_ENABLED=true # Enable response caching
|
|
364
|
+
NEXUS_CACHE_TTL=300000 # Cache TTL in ms (5 min)
|
|
365
|
+
NEXUS_REQUEST_TIMEOUT=30000 # Request timeout in ms
|
|
366
|
+
NEXUS_MAX_RETRIES=3 # Max retry attempts
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
### Configuration Files
|
|
316
370
|
|
|
371
|
+
**Global config**: `~/.nexus/config.toml`
|
|
317
372
|
```toml
|
|
318
373
|
[services]
|
|
319
|
-
api_url = "
|
|
320
|
-
mcp_url = "http://localhost:9000"
|
|
374
|
+
api_url = "https://your-nexus-api.com"
|
|
321
375
|
timeout = 30000
|
|
322
376
|
|
|
323
377
|
[auth]
|
|
378
|
+
type = "api-key"
|
|
324
379
|
api_key = "${NEXUS_API_KEY}"
|
|
325
|
-
strategy = "api-key"
|
|
326
380
|
|
|
327
|
-
[
|
|
328
|
-
|
|
381
|
+
[output]
|
|
382
|
+
format = "json"
|
|
383
|
+
color = true
|
|
329
384
|
streaming = true
|
|
330
|
-
verbose = false
|
|
331
385
|
|
|
332
386
|
[plugins]
|
|
333
|
-
|
|
334
|
-
|
|
387
|
+
directory = "~/.nexus/plugins"
|
|
388
|
+
auto_update = false
|
|
335
389
|
```
|
|
336
390
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
Located at: `.nexus.toml` (project root)
|
|
340
|
-
|
|
391
|
+
**Workspace config**: `.nexus.toml`
|
|
341
392
|
```toml
|
|
342
|
-
[
|
|
393
|
+
[project]
|
|
343
394
|
name = "my-project"
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
[agent]
|
|
347
|
-
max_iterations = 20
|
|
348
|
-
auto_approve_safe = true
|
|
349
|
-
|
|
350
|
-
[nexus]
|
|
351
|
-
auto_store = true
|
|
352
|
-
memory_tags = ["project:my-project"]
|
|
353
|
-
|
|
354
|
-
[[shortcuts]]
|
|
355
|
-
name = "test"
|
|
356
|
-
command = "sandbox execute --file tests/run.py"
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
## Plugin Development
|
|
395
|
+
default_service = "graphrag"
|
|
360
396
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
nexus plugin init my-plugin --template typescript
|
|
366
|
-
|
|
367
|
-
# Plugin structure:
|
|
368
|
-
my-plugin/
|
|
369
|
-
├── plugin.json # Plugin manifest
|
|
370
|
-
├── src/
|
|
371
|
-
│ ├── index.ts # Main entry point
|
|
372
|
-
│ └── commands/ # Command implementations
|
|
373
|
-
├── package.json
|
|
374
|
-
└── README.md
|
|
397
|
+
[commands]
|
|
398
|
+
# Custom command aliases
|
|
399
|
+
deploy = "workflow run ./deploy.yaml"
|
|
400
|
+
test = "agent task 'Run all tests and report coverage'"
|
|
375
401
|
```
|
|
376
402
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
```json
|
|
380
|
-
{
|
|
381
|
-
"name": "my-plugin",
|
|
382
|
-
"version": "1.0.0",
|
|
383
|
-
"description": "My custom plugin",
|
|
384
|
-
"author": "Your Name",
|
|
385
|
-
"main": "dist/index.js",
|
|
386
|
-
|
|
387
|
-
"commands": [
|
|
388
|
-
{
|
|
389
|
-
"name": "analyze",
|
|
390
|
-
"description": "Analyze data",
|
|
391
|
-
"args": [
|
|
392
|
-
{
|
|
393
|
-
"name": "input",
|
|
394
|
-
"type": "string",
|
|
395
|
-
"required": true,
|
|
396
|
-
"description": "Input file path"
|
|
397
|
-
}
|
|
398
|
-
]
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
|
|
402
|
-
"permissions": [
|
|
403
|
-
"file:read",
|
|
404
|
-
"network:http",
|
|
405
|
-
"service:graphrag"
|
|
406
|
-
]
|
|
407
|
-
}
|
|
408
|
-
```
|
|
403
|
+
---
|
|
409
404
|
|
|
410
|
-
|
|
405
|
+
## Plugin Development
|
|
411
406
|
|
|
412
|
-
|
|
413
|
-
import { PluginBuilder } from '@adverant-nexus/cli-sdk';
|
|
414
|
-
|
|
415
|
-
export default PluginBuilder
|
|
416
|
-
.create('my-plugin')
|
|
417
|
-
.version('1.0.0')
|
|
418
|
-
.description('My plugin')
|
|
419
|
-
|
|
420
|
-
.command('analyze', {
|
|
421
|
-
description: 'Analyze data',
|
|
422
|
-
args: [{ name: 'input', type: 'string', required: true }],
|
|
423
|
-
handler: async (args, context) => {
|
|
424
|
-
// Access Nexus services
|
|
425
|
-
const result = await context.services.graphrag.query({
|
|
426
|
-
text: `Analyze file: ${args.input}`
|
|
427
|
-
});
|
|
428
|
-
|
|
429
|
-
return { success: true, data: result };
|
|
430
|
-
}
|
|
431
|
-
})
|
|
432
|
-
|
|
433
|
-
.build();
|
|
434
|
-
```
|
|
407
|
+
Create powerful extensions with the Nexus SDK.
|
|
435
408
|
|
|
436
|
-
###
|
|
409
|
+
### Quick Start
|
|
437
410
|
|
|
438
411
|
```bash
|
|
439
|
-
#
|
|
440
|
-
nexus
|
|
412
|
+
# Create new plugin
|
|
413
|
+
npx @adverant-nexus/sdk create my-plugin
|
|
414
|
+
cd my-plugin
|
|
441
415
|
|
|
442
|
-
#
|
|
443
|
-
|
|
416
|
+
# Install dependencies
|
|
417
|
+
npm install
|
|
444
418
|
|
|
445
|
-
#
|
|
446
|
-
|
|
419
|
+
# Build and link
|
|
420
|
+
npm run build
|
|
421
|
+
nexus plugin install ./dist
|
|
447
422
|
```
|
|
448
423
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
The CLI is built with a modular, auto-discovering architecture:
|
|
424
|
+
### Example Plugin
|
|
452
425
|
|
|
453
|
-
```
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
426
|
+
```typescript
|
|
427
|
+
import {
|
|
428
|
+
NexusPlugin,
|
|
429
|
+
command,
|
|
430
|
+
option,
|
|
431
|
+
PluginContext
|
|
432
|
+
} from '@adverant-nexus/sdk';
|
|
433
|
+
|
|
434
|
+
export default class AnalyticsPlugin extends NexusPlugin {
|
|
435
|
+
name = 'analytics';
|
|
436
|
+
version = '1.0.0';
|
|
437
|
+
description = 'Custom analytics commands';
|
|
438
|
+
|
|
439
|
+
@command('report', 'Generate analytics report')
|
|
440
|
+
@option('--period <days>', 'Report period in days', '30')
|
|
441
|
+
@option('--format <type>', 'Output format', 'table')
|
|
442
|
+
async generateReport(ctx: PluginContext) {
|
|
443
|
+
const { period, format } = ctx.options;
|
|
444
|
+
|
|
445
|
+
// Access Nexus services
|
|
446
|
+
const analytics = await ctx.services.get('analytics');
|
|
447
|
+
const data = await analytics.getReport({ days: parseInt(period) });
|
|
448
|
+
|
|
449
|
+
// Format and return
|
|
450
|
+
return ctx.format(data, format);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
467
453
|
```
|
|
468
454
|
|
|
469
|
-
|
|
470
|
-
- **Service Discovery**: Auto-discovers services from docker-compose and OpenAPI
|
|
471
|
-
- **Command Router**: Dynamically routes commands to appropriate handlers
|
|
472
|
-
- **Transport Layer**: HTTP, WebSocket, and MCP protocol support
|
|
473
|
-
- **Plugin System**: Third-party extensions with full SDK
|
|
474
|
-
- **Output Formatters**: Multiple output formats for different use cases
|
|
455
|
+
---
|
|
475
456
|
|
|
476
|
-
|
|
457
|
+
## Contributing
|
|
477
458
|
|
|
478
|
-
|
|
459
|
+
We welcome contributions! Nexus CLI is open source and community-driven.
|
|
479
460
|
|
|
480
|
-
###
|
|
461
|
+
### Getting Started
|
|
481
462
|
|
|
482
463
|
```bash
|
|
464
|
+
# Fork and clone
|
|
465
|
+
git clone https://github.com/YOUR_USERNAME/Adverant-Nexus-CLI.git
|
|
466
|
+
cd Adverant-Nexus-CLI
|
|
467
|
+
|
|
468
|
+
# Install dependencies
|
|
469
|
+
npm install
|
|
470
|
+
|
|
471
|
+
# Build all packages
|
|
483
472
|
npm run build
|
|
484
|
-
```
|
|
485
473
|
|
|
486
|
-
|
|
474
|
+
# Run tests
|
|
475
|
+
npm test
|
|
487
476
|
|
|
488
|
-
|
|
489
|
-
npm run dev
|
|
477
|
+
# Run in development
|
|
478
|
+
npm run dev:cli
|
|
490
479
|
```
|
|
491
480
|
|
|
492
|
-
###
|
|
481
|
+
### Development Guidelines
|
|
493
482
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
```
|
|
483
|
+
- **TypeScript**: All code must be TypeScript with strict mode
|
|
484
|
+
- **Testing**: Add tests for new features
|
|
485
|
+
- **Commits**: Use [Conventional Commits](https://www.conventionalcommits.org/)
|
|
486
|
+
- **PRs**: Include description, tests, and documentation updates
|
|
499
487
|
|
|
500
|
-
|
|
488
|
+
See [CONTRIBUTING.md](https://github.com/adverant/Adverant-Nexus-CLI/blob/main/CONTRIBUTING.md) for detailed guidelines.
|
|
501
489
|
|
|
502
|
-
|
|
503
|
-
npm run lint
|
|
504
|
-
npm run lint:fix
|
|
505
|
-
```
|
|
490
|
+
---
|
|
506
491
|
|
|
507
|
-
|
|
492
|
+
## Documentation
|
|
508
493
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
494
|
+
- [Full Documentation](https://docs.adverant.ai/nexus-cli)
|
|
495
|
+
- [API Reference](https://docs.adverant.ai/nexus-cli/api)
|
|
496
|
+
- [Plugin SDK Guide](https://docs.adverant.ai/nexus-cli/plugins)
|
|
497
|
+
- [Configuration Guide](https://docs.adverant.ai/nexus-cli/config)
|
|
512
498
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
### ✅ Completed
|
|
516
|
-
- [x] Comprehensive architecture design (see [ARCHITECTURE.md](./ARCHITECTURE.md))
|
|
517
|
-
- [x] Complete type system (7 type modules)
|
|
518
|
-
- [x] Enhanced package.json with all dependencies
|
|
519
|
-
- [x] Directory structure
|
|
520
|
-
- [x] Documentation (README + ARCHITECTURE)
|
|
521
|
-
|
|
522
|
-
### 🚧 In Progress
|
|
523
|
-
- [ ] Core CLI framework implementation
|
|
524
|
-
- [ ] Service discovery engine
|
|
525
|
-
- [ ] Transport layers (HTTP, WebSocket, MCP)
|
|
526
|
-
- [ ] Output formatters
|
|
527
|
-
- [ ] Command generation system
|
|
528
|
-
|
|
529
|
-
### 📋 Upcoming
|
|
530
|
-
- [ ] Service-specific commands (32+ services)
|
|
531
|
-
- [ ] Nexus MCP integration (70+ tools)
|
|
532
|
-
- [ ] Interactive REPL
|
|
533
|
-
- [ ] Plugin system
|
|
534
|
-
- [ ] Agent mode
|
|
535
|
-
- [ ] Session management
|
|
536
|
-
- [ ] Comprehensive tests
|
|
537
|
-
|
|
538
|
-
## Roadmap
|
|
539
|
-
|
|
540
|
-
### Phase 1: Core Framework (Week 1)
|
|
541
|
-
- CLI framework setup
|
|
542
|
-
- Configuration management
|
|
543
|
-
- Workspace detection
|
|
544
|
-
- HTTP transport layer
|
|
545
|
-
- Output formatters
|
|
546
|
-
|
|
547
|
-
### Phase 2: Service Discovery (Week 2)
|
|
548
|
-
- Docker Compose parser
|
|
549
|
-
- OpenAPI schema parser
|
|
550
|
-
- Service discovery engine
|
|
551
|
-
- Auto-command generation
|
|
552
|
-
|
|
553
|
-
### Phase 3: Service Commands (Week 3)
|
|
554
|
-
- GraphRAG commands
|
|
555
|
-
- MageAgent commands
|
|
556
|
-
- Sandbox commands
|
|
557
|
-
- Service management commands
|
|
558
|
-
|
|
559
|
-
### Phase 4: Nexus MCP Integration (Week 4)
|
|
560
|
-
- MCP client implementation
|
|
561
|
-
- All 70+ Nexus tools exposed
|
|
562
|
-
- MCP tool discovery
|
|
563
|
-
|
|
564
|
-
### Phase 5: Advanced Features (Weeks 5-10)
|
|
565
|
-
- Streaming & real-time
|
|
566
|
-
- Interactive REPL
|
|
567
|
-
- Plugin system
|
|
568
|
-
- Agent mode
|
|
569
|
-
- Session management
|
|
570
|
-
- Documentation & testing
|
|
499
|
+
---
|
|
571
500
|
|
|
572
|
-
##
|
|
501
|
+
## Security
|
|
573
502
|
|
|
574
|
-
|
|
503
|
+
Security is a top priority. See [SECURITY.md](https://github.com/adverant/Adverant-Nexus-CLI/blob/main/SECURITY.md) for:
|
|
504
|
+
- Reporting vulnerabilities
|
|
505
|
+
- Security best practices
|
|
506
|
+
- Credential management
|
|
507
|
+
|
|
508
|
+
---
|
|
575
509
|
|
|
576
510
|
## License
|
|
577
511
|
|
|
578
|
-
MIT
|
|
512
|
+
MIT License - see [LICENSE](https://github.com/adverant/Adverant-Nexus-CLI/blob/main/LICENSE) for details.
|
|
579
513
|
|
|
580
|
-
|
|
514
|
+
---
|
|
581
515
|
|
|
582
|
-
|
|
583
|
-
- **Issues**: [GitHub Issues](https://github.com/adverant-ai/adverant-nexus/issues)
|
|
584
|
-
- **Discussions**: [GitHub Discussions](https://github.com/adverant-ai/adverant-nexus/discussions)
|
|
516
|
+
## Acknowledgments
|
|
585
517
|
|
|
586
|
-
|
|
518
|
+
Built with these amazing open source projects:
|
|
587
519
|
|
|
588
|
-
- [
|
|
589
|
-
- [
|
|
520
|
+
- [Commander.js](https://github.com/tj/commander.js/) - CLI framework
|
|
521
|
+
- [Inquirer.js](https://github.com/SBoudrias/Inquirer.js/) - Interactive prompts
|
|
522
|
+
- [Chalk](https://github.com/chalk/chalk) - Terminal styling
|
|
523
|
+
- [Axios](https://github.com/axios/axios) - HTTP client
|
|
524
|
+
- [Zod](https://github.com/colinhacks/zod) - Schema validation
|
|
525
|
+
- [MCP SDK](https://github.com/anthropics/mcp) - Model Context Protocol
|
|
590
526
|
|
|
591
527
|
---
|
|
592
528
|
|
|
593
|
-
|
|
529
|
+
<div align="center">
|
|
530
|
+
|
|
531
|
+
**Built with love by [Adverant](https://adverant.ai)**
|
|
532
|
+
|
|
533
|
+
[Website](https://adverant.ai) • [Documentation](https://docs.adverant.ai) • [Twitter](https://twitter.com/adverant) • [Discord](https://discord.gg/adverant)
|
|
534
|
+
|
|
535
|
+
</div>
|