@adverant-nexus/cli 2.0.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/ARCHITECTURE.md +1366 -0
- package/LICENSE +21 -0
- package/README.md +593 -0
- package/completions/_nexus +452 -0
- package/completions/nexus.bash +329 -0
- package/completions/nexus.fish +187 -0
- package/dist/cli.d.ts +35 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +135 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/agent/index.d.ts +9 -0
- package/dist/commands/agent/index.d.ts.map +1 -0
- package/dist/commands/agent/index.js +20 -0
- package/dist/commands/agent/index.js.map +1 -0
- package/dist/commands/agent/list.d.ts +9 -0
- package/dist/commands/agent/list.d.ts.map +1 -0
- package/dist/commands/agent/list.js +122 -0
- package/dist/commands/agent/list.js.map +1 -0
- package/dist/commands/agent/run.d.ts +10 -0
- package/dist/commands/agent/run.d.ts.map +1 -0
- package/dist/commands/agent/run.js +167 -0
- package/dist/commands/agent/run.js.map +1 -0
- package/dist/commands/agent/status.d.ts +9 -0
- package/dist/commands/agent/status.d.ts.map +1 -0
- package/dist/commands/agent/status.js +157 -0
- package/dist/commands/agent/status.js.map +1 -0
- package/dist/commands/compute/agent.d.ts +21 -0
- package/dist/commands/compute/agent.d.ts.map +1 -0
- package/dist/commands/compute/agent.js +158 -0
- package/dist/commands/compute/agent.js.map +1 -0
- package/dist/commands/compute/index.d.ts +10 -0
- package/dist/commands/compute/index.d.ts.map +1 -0
- package/dist/commands/compute/index.js +27 -0
- package/dist/commands/compute/index.js.map +1 -0
- package/dist/commands/compute/lib/hardware-detection.d.ts +52 -0
- package/dist/commands/compute/lib/hardware-detection.d.ts.map +1 -0
- package/dist/commands/compute/lib/hardware-detection.js +432 -0
- package/dist/commands/compute/lib/hardware-detection.js.map +1 -0
- package/dist/commands/compute/lib/local-compute-agent.d.ts +143 -0
- package/dist/commands/compute/lib/local-compute-agent.d.ts.map +1 -0
- package/dist/commands/compute/lib/local-compute-agent.js +1162 -0
- package/dist/commands/compute/lib/local-compute-agent.js.map +1 -0
- package/dist/commands/compute/lib/local-compute-client.d.ts +89 -0
- package/dist/commands/compute/lib/local-compute-client.d.ts.map +1 -0
- package/dist/commands/compute/lib/local-compute-client.js +388 -0
- package/dist/commands/compute/lib/local-compute-client.js.map +1 -0
- package/dist/commands/compute/list.d.ts +14 -0
- package/dist/commands/compute/list.d.ts.map +1 -0
- package/dist/commands/compute/list.js +164 -0
- package/dist/commands/compute/list.js.map +1 -0
- package/dist/commands/compute/logs.d.ts +14 -0
- package/dist/commands/compute/logs.d.ts.map +1 -0
- package/dist/commands/compute/logs.js +105 -0
- package/dist/commands/compute/logs.js.map +1 -0
- package/dist/commands/compute/resources.d.ts +14 -0
- package/dist/commands/compute/resources.d.ts.map +1 -0
- package/dist/commands/compute/resources.js +163 -0
- package/dist/commands/compute/resources.js.map +1 -0
- package/dist/commands/compute/status.d.ts +13 -0
- package/dist/commands/compute/status.d.ts.map +1 -0
- package/dist/commands/compute/status.js +223 -0
- package/dist/commands/compute/status.js.map +1 -0
- package/dist/commands/compute/submit.d.ts +19 -0
- package/dist/commands/compute/submit.d.ts.map +1 -0
- package/dist/commands/compute/submit.js +99 -0
- package/dist/commands/compute/submit.js.map +1 -0
- package/dist/commands/deploy.d.ts +11 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +117 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/dynamic/graphrag-commands.d.ts +16 -0
- package/dist/commands/dynamic/graphrag-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/graphrag-commands.js +562 -0
- package/dist/commands/dynamic/graphrag-commands.js.map +1 -0
- package/dist/commands/dynamic/index.d.ts +10 -0
- package/dist/commands/dynamic/index.d.ts.map +1 -0
- package/dist/commands/dynamic/index.js +17 -0
- package/dist/commands/dynamic/index.js.map +1 -0
- package/dist/commands/dynamic/mageagent-commands.d.ts +8 -0
- package/dist/commands/dynamic/mageagent-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/mageagent-commands.js +86 -0
- package/dist/commands/dynamic/mageagent-commands.js.map +1 -0
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts +97 -0
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts.map +1 -0
- package/dist/commands/dynamic/mcp-tool-mapper.js +328 -0
- package/dist/commands/dynamic/mcp-tool-mapper.js.map +1 -0
- package/dist/commands/dynamic/nexus-commands.d.ts +78 -0
- package/dist/commands/dynamic/nexus-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/nexus-commands.js +426 -0
- package/dist/commands/dynamic/nexus-commands.js.map +1 -0
- package/dist/commands/dynamic/sandbox-commands.d.ts +8 -0
- package/dist/commands/dynamic/sandbox-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/sandbox-commands.js +80 -0
- package/dist/commands/dynamic/sandbox-commands.js.map +1 -0
- package/dist/commands/init.d.ts +11 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +128 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/list.d.ts +10 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +81 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/login.d.ts +10 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +83 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logs.d.ts +11 -0
- package/dist/commands/logs.d.ts.map +1 -0
- package/dist/commands/logs.js +79 -0
- package/dist/commands/logs.js.map +1 -0
- package/dist/commands/nexus/index.d.ts +69 -0
- package/dist/commands/nexus/index.d.ts.map +1 -0
- package/dist/commands/nexus/index.js +336 -0
- package/dist/commands/nexus/index.js.map +1 -0
- package/dist/commands/plugin/disable.d.ts +8 -0
- package/dist/commands/plugin/disable.d.ts.map +1 -0
- package/dist/commands/plugin/disable.js +31 -0
- package/dist/commands/plugin/disable.js.map +1 -0
- package/dist/commands/plugin/enable.d.ts +8 -0
- package/dist/commands/plugin/enable.d.ts.map +1 -0
- package/dist/commands/plugin/enable.js +37 -0
- package/dist/commands/plugin/enable.js.map +1 -0
- package/dist/commands/plugin/index.d.ts +8 -0
- package/dist/commands/plugin/index.d.ts.map +1 -0
- package/dist/commands/plugin/index.js +23 -0
- package/dist/commands/plugin/index.js.map +1 -0
- package/dist/commands/plugin/info.d.ts +8 -0
- package/dist/commands/plugin/info.d.ts.map +1 -0
- package/dist/commands/plugin/info.js +129 -0
- package/dist/commands/plugin/info.js.map +1 -0
- package/dist/commands/plugin/init.d.ts +8 -0
- package/dist/commands/plugin/init.d.ts.map +1 -0
- package/dist/commands/plugin/init.js +83 -0
- package/dist/commands/plugin/init.js.map +1 -0
- package/dist/commands/plugin/install.d.ts +8 -0
- package/dist/commands/plugin/install.d.ts.map +1 -0
- package/dist/commands/plugin/install.js +56 -0
- package/dist/commands/plugin/install.js.map +1 -0
- package/dist/commands/plugin/list.d.ts +8 -0
- package/dist/commands/plugin/list.d.ts.map +1 -0
- package/dist/commands/plugin/list.js +72 -0
- package/dist/commands/plugin/list.js.map +1 -0
- package/dist/commands/plugin/uninstall.d.ts +8 -0
- package/dist/commands/plugin/uninstall.d.ts.map +1 -0
- package/dist/commands/plugin/uninstall.js +49 -0
- package/dist/commands/plugin/uninstall.js.map +1 -0
- package/dist/commands/register.d.ts +10 -0
- package/dist/commands/register.d.ts.map +1 -0
- package/dist/commands/register.js +85 -0
- package/dist/commands/register.js.map +1 -0
- package/dist/commands/services/health.d.ts +7 -0
- package/dist/commands/services/health.d.ts.map +1 -0
- package/dist/commands/services/health.js +73 -0
- package/dist/commands/services/health.js.map +1 -0
- package/dist/commands/services/index.d.ts +16 -0
- package/dist/commands/services/index.d.ts.map +1 -0
- package/dist/commands/services/index.js +26 -0
- package/dist/commands/services/index.js.map +1 -0
- package/dist/commands/services/info.d.ts +7 -0
- package/dist/commands/services/info.d.ts.map +1 -0
- package/dist/commands/services/info.js +68 -0
- package/dist/commands/services/info.js.map +1 -0
- package/dist/commands/services/list.d.ts +9 -0
- package/dist/commands/services/list.d.ts.map +1 -0
- package/dist/commands/services/list.js +43 -0
- package/dist/commands/services/list.js.map +1 -0
- package/dist/commands/services/logs.d.ts +7 -0
- package/dist/commands/services/logs.d.ts.map +1 -0
- package/dist/commands/services/logs.js +107 -0
- package/dist/commands/services/logs.js.map +1 -0
- package/dist/commands/services/ports.d.ts +7 -0
- package/dist/commands/services/ports.d.ts.map +1 -0
- package/dist/commands/services/ports.js +65 -0
- package/dist/commands/services/ports.js.map +1 -0
- package/dist/commands/services/restart.d.ts +7 -0
- package/dist/commands/services/restart.d.ts.map +1 -0
- package/dist/commands/services/restart.js +67 -0
- package/dist/commands/services/restart.js.map +1 -0
- package/dist/commands/services/start.d.ts +7 -0
- package/dist/commands/services/start.d.ts.map +1 -0
- package/dist/commands/services/start.js +67 -0
- package/dist/commands/services/start.js.map +1 -0
- package/dist/commands/services/status.d.ts +9 -0
- package/dist/commands/services/status.d.ts.map +1 -0
- package/dist/commands/services/status.js +119 -0
- package/dist/commands/services/status.js.map +1 -0
- package/dist/commands/services/stop.d.ts +7 -0
- package/dist/commands/services/stop.d.ts.map +1 -0
- package/dist/commands/services/stop.js +67 -0
- package/dist/commands/services/stop.js.map +1 -0
- package/dist/commands/session/delete.d.ts +9 -0
- package/dist/commands/session/delete.d.ts.map +1 -0
- package/dist/commands/session/delete.js +51 -0
- package/dist/commands/session/delete.js.map +1 -0
- package/dist/commands/session/export.d.ts +9 -0
- package/dist/commands/session/export.d.ts.map +1 -0
- package/dist/commands/session/export.js +36 -0
- package/dist/commands/session/export.js.map +1 -0
- package/dist/commands/session/import.d.ts +9 -0
- package/dist/commands/session/import.d.ts.map +1 -0
- package/dist/commands/session/import.js +54 -0
- package/dist/commands/session/import.js.map +1 -0
- package/dist/commands/session/index.d.ts +9 -0
- package/dist/commands/session/index.d.ts.map +1 -0
- package/dist/commands/session/index.js +28 -0
- package/dist/commands/session/index.js.map +1 -0
- package/dist/commands/session/list.d.ts +9 -0
- package/dist/commands/session/list.d.ts.map +1 -0
- package/dist/commands/session/list.js +88 -0
- package/dist/commands/session/list.js.map +1 -0
- package/dist/commands/session/load.d.ts +9 -0
- package/dist/commands/session/load.d.ts.map +1 -0
- package/dist/commands/session/load.js +71 -0
- package/dist/commands/session/load.js.map +1 -0
- package/dist/commands/session/resume.d.ts +9 -0
- package/dist/commands/session/resume.d.ts.map +1 -0
- package/dist/commands/session/resume.js +49 -0
- package/dist/commands/session/resume.js.map +1 -0
- package/dist/commands/session/save.d.ts +9 -0
- package/dist/commands/session/save.d.ts.map +1 -0
- package/dist/commands/session/save.js +69 -0
- package/dist/commands/session/save.js.map +1 -0
- package/dist/commands/workspace/git-commit.d.ts +9 -0
- package/dist/commands/workspace/git-commit.d.ts.map +1 -0
- package/dist/commands/workspace/git-commit.js +156 -0
- package/dist/commands/workspace/git-commit.js.map +1 -0
- package/dist/commands/workspace/git-status.d.ts +9 -0
- package/dist/commands/workspace/git-status.d.ts.map +1 -0
- package/dist/commands/workspace/git-status.js +192 -0
- package/dist/commands/workspace/git-status.js.map +1 -0
- package/dist/commands/workspace/index.d.ts +9 -0
- package/dist/commands/workspace/index.d.ts.map +1 -0
- package/dist/commands/workspace/index.js +24 -0
- package/dist/commands/workspace/index.js.map +1 -0
- package/dist/commands/workspace/info.d.ts +10 -0
- package/dist/commands/workspace/info.d.ts.map +1 -0
- package/dist/commands/workspace/info.js +191 -0
- package/dist/commands/workspace/info.js.map +1 -0
- package/dist/commands/workspace/init.d.ts +9 -0
- package/dist/commands/workspace/init.d.ts.map +1 -0
- package/dist/commands/workspace/init.js +193 -0
- package/dist/commands/workspace/init.js.map +1 -0
- package/dist/commands/workspace/validate.d.ts +9 -0
- package/dist/commands/workspace/validate.d.ts.map +1 -0
- package/dist/commands/workspace/validate.js +140 -0
- package/dist/commands/workspace/validate.js.map +1 -0
- package/dist/core/agent-client.d.ts +49 -0
- package/dist/core/agent-client.d.ts.map +1 -0
- package/dist/core/agent-client.js +289 -0
- package/dist/core/agent-client.js.map +1 -0
- package/dist/core/config/config-manager.d.ts +75 -0
- package/dist/core/config/config-manager.d.ts.map +1 -0
- package/dist/core/config/config-manager.js +379 -0
- package/dist/core/config/config-manager.js.map +1 -0
- package/dist/core/config/profile-manager.d.ts +76 -0
- package/dist/core/config/profile-manager.d.ts.map +1 -0
- package/dist/core/config/profile-manager.js +250 -0
- package/dist/core/config/profile-manager.js.map +1 -0
- package/dist/core/config/workspace-detector.d.ts +66 -0
- package/dist/core/config/workspace-detector.d.ts.map +1 -0
- package/dist/core/config/workspace-detector.js +291 -0
- package/dist/core/config/workspace-detector.js.map +1 -0
- package/dist/core/discovery/docker-parser.d.ts +27 -0
- package/dist/core/discovery/docker-parser.d.ts.map +1 -0
- package/dist/core/discovery/docker-parser.js +361 -0
- package/dist/core/discovery/docker-parser.js.map +1 -0
- package/dist/core/discovery/index.d.ts +11 -0
- package/dist/core/discovery/index.d.ts.map +1 -0
- package/dist/core/discovery/index.js +16 -0
- package/dist/core/discovery/index.js.map +1 -0
- package/dist/core/discovery/mcp-discovery.d.ts +41 -0
- package/dist/core/discovery/mcp-discovery.d.ts.map +1 -0
- package/dist/core/discovery/mcp-discovery.js +439 -0
- package/dist/core/discovery/mcp-discovery.js.map +1 -0
- package/dist/core/discovery/openapi-parser.d.ts +95 -0
- package/dist/core/discovery/openapi-parser.d.ts.map +1 -0
- package/dist/core/discovery/openapi-parser.js +353 -0
- package/dist/core/discovery/openapi-parser.js.map +1 -0
- package/dist/core/discovery/plugin-discovery.d.ts +63 -0
- package/dist/core/discovery/plugin-discovery.d.ts.map +1 -0
- package/dist/core/discovery/plugin-discovery.js +333 -0
- package/dist/core/discovery/plugin-discovery.js.map +1 -0
- package/dist/core/discovery/service-discovery.d.ts +107 -0
- package/dist/core/discovery/service-discovery.d.ts.map +1 -0
- package/dist/core/discovery/service-discovery.js +349 -0
- package/dist/core/discovery/service-discovery.js.map +1 -0
- package/dist/core/nexus-client.d.ts +119 -0
- package/dist/core/nexus-client.d.ts.map +1 -0
- package/dist/core/nexus-client.js +292 -0
- package/dist/core/nexus-client.js.map +1 -0
- package/dist/core/nexus-tool-executor.d.ts +102 -0
- package/dist/core/nexus-tool-executor.d.ts.map +1 -0
- package/dist/core/nexus-tool-executor.js +386 -0
- package/dist/core/nexus-tool-executor.js.map +1 -0
- package/dist/core/react-handler.d.ts +17 -0
- package/dist/core/react-handler.d.ts.map +1 -0
- package/dist/core/react-handler.js +296 -0
- package/dist/core/react-handler.js.map +1 -0
- package/dist/core/router/command-registry.d.ts +61 -0
- package/dist/core/router/command-registry.d.ts.map +1 -0
- package/dist/core/router/command-registry.js +138 -0
- package/dist/core/router/command-registry.js.map +1 -0
- package/dist/core/router/command-router.d.ts +33 -0
- package/dist/core/router/command-router.d.ts.map +1 -0
- package/dist/core/router/command-router.js +111 -0
- package/dist/core/router/command-router.js.map +1 -0
- package/dist/core/router/index.d.ts +9 -0
- package/dist/core/router/index.d.ts.map +1 -0
- package/dist/core/router/index.js +8 -0
- package/dist/core/router/index.js.map +1 -0
- package/dist/core/session/context-manager.d.ts +69 -0
- package/dist/core/session/context-manager.d.ts.map +1 -0
- package/dist/core/session/context-manager.js +109 -0
- package/dist/core/session/context-manager.js.map +1 -0
- package/dist/core/session/history-manager.d.ts +72 -0
- package/dist/core/session/history-manager.d.ts.map +1 -0
- package/dist/core/session/history-manager.js +175 -0
- package/dist/core/session/history-manager.js.map +1 -0
- package/dist/core/session/index.d.ts +9 -0
- package/dist/core/session/index.d.ts.map +1 -0
- package/dist/core/session/index.js +9 -0
- package/dist/core/session/index.js.map +1 -0
- package/dist/core/session/session-manager.d.ts +50 -0
- package/dist/core/session/session-manager.d.ts.map +1 -0
- package/dist/core/session/session-manager.js +200 -0
- package/dist/core/session/session-manager.js.map +1 -0
- package/dist/core/session/session-storage.d.ts +59 -0
- package/dist/core/session/session-storage.d.ts.map +1 -0
- package/dist/core/session/session-storage.js +226 -0
- package/dist/core/session/session-storage.js.map +1 -0
- package/dist/core/transport/http-client.d.ts +27 -0
- package/dist/core/transport/http-client.d.ts.map +1 -0
- package/dist/core/transport/http-client.js +182 -0
- package/dist/core/transport/http-client.js.map +1 -0
- package/dist/core/transport/index.d.ts +11 -0
- package/dist/core/transport/index.d.ts.map +1 -0
- package/dist/core/transport/index.js +10 -0
- package/dist/core/transport/index.js.map +1 -0
- package/dist/core/transport/mcp-client.d.ts +69 -0
- package/dist/core/transport/mcp-client.d.ts.map +1 -0
- package/dist/core/transport/mcp-client.js +252 -0
- package/dist/core/transport/mcp-client.js.map +1 -0
- package/dist/core/transport/stream-handler.d.ts +51 -0
- package/dist/core/transport/stream-handler.d.ts.map +1 -0
- package/dist/core/transport/stream-handler.js +264 -0
- package/dist/core/transport/stream-handler.js.map +1 -0
- package/dist/core/transport/websocket-client.d.ts +66 -0
- package/dist/core/transport/websocket-client.d.ts.map +1 -0
- package/dist/core/transport/websocket-client.js +232 -0
- package/dist/core/transport/websocket-client.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/output/formatters/index.d.ts +9 -0
- package/dist/output/formatters/index.d.ts.map +1 -0
- package/dist/output/formatters/index.js +9 -0
- package/dist/output/formatters/index.js.map +1 -0
- package/dist/output/formatters/json-formatter.d.ts +71 -0
- package/dist/output/formatters/json-formatter.d.ts.map +1 -0
- package/dist/output/formatters/json-formatter.js +236 -0
- package/dist/output/formatters/json-formatter.js.map +1 -0
- package/dist/output/formatters/stream-formatter.d.ts +107 -0
- package/dist/output/formatters/stream-formatter.d.ts.map +1 -0
- package/dist/output/formatters/stream-formatter.js +247 -0
- package/dist/output/formatters/stream-formatter.js.map +1 -0
- package/dist/output/formatters/table-formatter.d.ts +63 -0
- package/dist/output/formatters/table-formatter.d.ts.map +1 -0
- package/dist/output/formatters/table-formatter.js +294 -0
- package/dist/output/formatters/table-formatter.js.map +1 -0
- package/dist/output/formatters/text-formatter.d.ts +63 -0
- package/dist/output/formatters/text-formatter.d.ts.map +1 -0
- package/dist/output/formatters/text-formatter.js +202 -0
- package/dist/output/formatters/text-formatter.js.map +1 -0
- package/dist/output/formatters/yaml-formatter.d.ts +71 -0
- package/dist/output/formatters/yaml-formatter.d.ts.map +1 -0
- package/dist/output/formatters/yaml-formatter.js +239 -0
- package/dist/output/formatters/yaml-formatter.js.map +1 -0
- package/dist/output/index.d.ts +7 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +7 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/output-manager.d.ts +156 -0
- package/dist/output/output-manager.d.ts.map +1 -0
- package/dist/output/output-manager.js +339 -0
- package/dist/output/output-manager.js.map +1 -0
- package/dist/output/renderers/index.d.ts +6 -0
- package/dist/output/renderers/index.d.ts.map +1 -0
- package/dist/output/renderers/index.js +6 -0
- package/dist/output/renderers/index.js.map +1 -0
- package/dist/output/renderers/progress-renderer.d.ts +56 -0
- package/dist/output/renderers/progress-renderer.d.ts.map +1 -0
- package/dist/output/renderers/progress-renderer.js +306 -0
- package/dist/output/renderers/progress-renderer.js.map +1 -0
- package/dist/output/renderers/terminal-renderer.d.ts +117 -0
- package/dist/output/renderers/terminal-renderer.d.ts.map +1 -0
- package/dist/output/renderers/terminal-renderer.js +294 -0
- package/dist/output/renderers/terminal-renderer.js.map +1 -0
- package/dist/plugins/index.d.ts +12 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +18 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/plugin-loader.d.ts +37 -0
- package/dist/plugins/plugin-loader.d.ts.map +1 -0
- package/dist/plugins/plugin-loader.js +155 -0
- package/dist/plugins/plugin-loader.js.map +1 -0
- package/dist/plugins/plugin-manager.d.ts +78 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.js +310 -0
- package/dist/plugins/plugin-manager.js.map +1 -0
- package/dist/plugins/plugin-sdk.d.ts +136 -0
- package/dist/plugins/plugin-sdk.d.ts.map +1 -0
- package/dist/plugins/plugin-sdk.js +260 -0
- package/dist/plugins/plugin-sdk.js.map +1 -0
- package/dist/plugins/plugin-storage.d.ts +109 -0
- package/dist/plugins/plugin-storage.d.ts.map +1 -0
- package/dist/plugins/plugin-storage.js +207 -0
- package/dist/plugins/plugin-storage.js.map +1 -0
- package/dist/plugins/plugin-validator.d.ts +44 -0
- package/dist/plugins/plugin-validator.d.ts.map +1 -0
- package/dist/plugins/plugin-validator.js +272 -0
- package/dist/plugins/plugin-validator.js.map +1 -0
- package/dist/plugins/template-generator.d.ts +35 -0
- package/dist/plugins/template-generator.d.ts.map +1 -0
- package/dist/plugins/template-generator.js +438 -0
- package/dist/plugins/template-generator.js.map +1 -0
- package/dist/repl/completer.d.ts +58 -0
- package/dist/repl/completer.d.ts.map +1 -0
- package/dist/repl/completer.js +198 -0
- package/dist/repl/completer.js.map +1 -0
- package/dist/repl/evaluator.d.ts +55 -0
- package/dist/repl/evaluator.d.ts.map +1 -0
- package/dist/repl/evaluator.js +299 -0
- package/dist/repl/evaluator.js.map +1 -0
- package/dist/repl/index.d.ts +10 -0
- package/dist/repl/index.d.ts.map +1 -0
- package/dist/repl/index.js +10 -0
- package/dist/repl/index.js.map +1 -0
- package/dist/repl/renderer.d.ts +77 -0
- package/dist/repl/renderer.d.ts.map +1 -0
- package/dist/repl/renderer.js +291 -0
- package/dist/repl/renderer.js.map +1 -0
- package/dist/repl/repl.d.ts +89 -0
- package/dist/repl/repl.d.ts.map +1 -0
- package/dist/repl/repl.js +339 -0
- package/dist/repl/repl.js.map +1 -0
- package/dist/templates/python.d.ts +15 -0
- package/dist/templates/python.d.ts.map +1 -0
- package/dist/templates/python.js +375 -0
- package/dist/templates/python.js.map +1 -0
- package/dist/templates/typescript.d.ts +15 -0
- package/dist/templates/typescript.d.ts.map +1 -0
- package/dist/templates/typescript.js +274 -0
- package/dist/templates/typescript.js.map +1 -0
- package/dist/types/agent.d.ts +109 -0
- package/dist/types/agent.d.ts.map +1 -0
- package/dist/types/agent.js +7 -0
- package/dist/types/agent.js.map +1 -0
- package/dist/types/api.d.ts +125 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/api.js +53 -0
- package/dist/types/api.js.map +1 -0
- package/dist/types/command.d.ts +101 -0
- package/dist/types/command.d.ts.map +1 -0
- package/dist/types/command.js +7 -0
- package/dist/types/command.js.map +1 -0
- package/dist/types/compute.d.ts +317 -0
- package/dist/types/compute.d.ts.map +1 -0
- package/dist/types/compute.js +19 -0
- package/dist/types/compute.js.map +1 -0
- package/dist/types/config.d.ts +71 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +7 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/errors.d.ts +56 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +64 -0
- package/dist/types/errors.js.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +16 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/nexus.d.ts +254 -0
- package/dist/types/nexus.d.ts.map +1 -0
- package/dist/types/nexus.js +7 -0
- package/dist/types/nexus.js.map +1 -0
- package/dist/types/output.d.ts +107 -0
- package/dist/types/output.d.ts.map +1 -0
- package/dist/types/output.js +7 -0
- package/dist/types/output.js.map +1 -0
- package/dist/types/plugin.d.ts +118 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +7 -0
- package/dist/types/plugin.js.map +1 -0
- package/dist/types/service.d.ts +94 -0
- package/dist/types/service.d.ts.map +1 -0
- package/dist/types/service.js +15 -0
- package/dist/types/service.js.map +1 -0
- package/dist/types/session.d.ts +80 -0
- package/dist/types/session.d.ts.map +1 -0
- package/dist/types/session.js +7 -0
- package/dist/types/session.js.map +1 -0
- package/dist/types/transport.d.ts +96 -0
- package/dist/types/transport.d.ts.map +1 -0
- package/dist/types/transport.js +7 -0
- package/dist/types/transport.js.map +1 -0
- package/dist/utils/config.d.ts +47 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +166 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/error-handler.d.ts +82 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +238 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logger.d.ts +61 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +200 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/prompt.d.ts +57 -0
- package/dist/utils/prompt.d.ts.map +1 -0
- package/dist/utils/prompt.js +141 -0
- package/dist/utils/prompt.js.map +1 -0
- package/dist/utils/spinner.d.ts +47 -0
- package/dist/utils/spinner.d.ts.map +1 -0
- package/dist/utils/spinner.js +123 -0
- package/dist/utils/spinner.js.map +1 -0
- package/dist/utils/validation.d.ts +97 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +289 -0
- package/dist/utils/validation.js.map +1 -0
- package/docs/COMPLETIONS.md +528 -0
- package/docs/REPL.md +466 -0
- package/docs/graphrag-commands.md +387 -0
- package/package.json +154 -0
- package/scripts/install-completions.sh +356 -0
- package/scripts/prepublish.js +522 -0
- package/scripts/verify-package.js +505 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Adverant AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
# Adverant-Nexus CLI
|
|
2
|
+
|
|
3
|
+
> World-class command-line interface for the Adverant-Nexus platform - Surpassing Claude Code CLI and Gemini CLI
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@adverant-nexus/cli)
|
|
6
|
+
[](https://github.com/adverant-ai/adverant-nexus/blob/main/LICENSE)
|
|
7
|
+
[](https://www.typescriptlang.org/)
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
The **Adverant-Nexus CLI** (`nexus`) is a production-grade, auto-discovering command-line interface that provides unified access to all 32+ microservices, 70+ Nexus MCP tools, and the entire Adverant-Nexus ecosystem.
|
|
12
|
+
|
|
13
|
+
### Why This CLI is Better
|
|
14
|
+
|
|
15
|
+
| Feature | Adverant-Nexus CLI | Claude Code | Gemini CLI |
|
|
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 |
|
|
27
|
+
|
|
28
|
+
## Features
|
|
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
|
|
77
|
+
|
|
78
|
+
# Build
|
|
79
|
+
npm run build
|
|
80
|
+
|
|
81
|
+
# Link globally
|
|
82
|
+
npm run link:global
|
|
83
|
+
|
|
84
|
+
# Verify installation
|
|
85
|
+
nexus --version
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### From NPM (Coming Soon)
|
|
89
|
+
```bash
|
|
90
|
+
npm install -g @adverant-nexus/cli
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Quick Start
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
# Check CLI version
|
|
97
|
+
nexus --version
|
|
98
|
+
|
|
99
|
+
# Show all discovered services
|
|
100
|
+
nexus services list
|
|
101
|
+
|
|
102
|
+
# Check service health
|
|
103
|
+
nexus services health --all
|
|
104
|
+
|
|
105
|
+
# Store a document in GraphRAG
|
|
106
|
+
nexus graphrag store-document --file report.pdf --title "Q4 Report"
|
|
107
|
+
|
|
108
|
+
# Query GraphRAG
|
|
109
|
+
nexus graphrag query --text "user authentication patterns"
|
|
110
|
+
|
|
111
|
+
# Run multi-agent orchestration
|
|
112
|
+
nexus mageagent orchestrate --task "Analyze codebase for security issues"
|
|
113
|
+
|
|
114
|
+
# Execute code in sandbox
|
|
115
|
+
nexus sandbox execute --code "print('Hello, Nexus!')" --language python
|
|
116
|
+
|
|
117
|
+
# Recall memories from Nexus
|
|
118
|
+
nexus nexus recall-memory --query "typescript patterns" --limit 10
|
|
119
|
+
|
|
120
|
+
# Start interactive REPL
|
|
121
|
+
nexus repl
|
|
122
|
+
|
|
123
|
+
# Run autonomous agent
|
|
124
|
+
nexus agent run --task "Fix all TypeScript errors"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Usage
|
|
128
|
+
|
|
129
|
+
### Service Commands
|
|
130
|
+
|
|
131
|
+
Every microservice in the Adverant-Nexus stack is accessible via the CLI:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# GraphRAG - Knowledge Management
|
|
135
|
+
nexus graphrag store-document --file report.pdf
|
|
136
|
+
nexus graphrag query --text "search query"
|
|
137
|
+
nexus graphrag store-entity --domain code --type class --content "User"
|
|
138
|
+
|
|
139
|
+
# MageAgent - Multi-Agent Orchestration
|
|
140
|
+
nexus mageagent orchestrate --task "Complex task" --max-agents 5
|
|
141
|
+
nexus mageagent analyze --input code.ts --focus security
|
|
142
|
+
nexus mageagent collaborate --agents 3 --task "Build API"
|
|
143
|
+
|
|
144
|
+
# Sandbox - Code Execution
|
|
145
|
+
nexus sandbox execute --code "..." --language python --stream
|
|
146
|
+
nexus sandbox list-languages
|
|
147
|
+
|
|
148
|
+
# VideoAgent - Video Intelligence
|
|
149
|
+
nexus videoagent process-video --url video.mp4 --stream
|
|
150
|
+
|
|
151
|
+
# GeoAgent - Geospatial Intelligence
|
|
152
|
+
nexus geoagent proximity-search --lat 37.7749 --lon -122.4194 --radius 10km
|
|
153
|
+
|
|
154
|
+
# OrchestrationAgent - Autonomous Execution
|
|
155
|
+
nexus orchestration run --task "Implement feature" --max-iterations 20
|
|
156
|
+
|
|
157
|
+
# LearningAgent - Progressive Learning
|
|
158
|
+
nexus learning trigger --topic "rust_async" --priority 9
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Nexus MCP Commands
|
|
162
|
+
|
|
163
|
+
All 70+ Nexus tools are exposed:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
# Memory Operations
|
|
167
|
+
nexus nexus store-memory --content "..." --tags "tag1,tag2"
|
|
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
|
+
```
|
|
191
|
+
|
|
192
|
+
### Service Management
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
# List all services
|
|
196
|
+
nexus services list
|
|
197
|
+
|
|
198
|
+
# Check service status
|
|
199
|
+
nexus services status
|
|
200
|
+
|
|
201
|
+
# Get service info
|
|
202
|
+
nexus services info graphrag
|
|
203
|
+
|
|
204
|
+
# Control services
|
|
205
|
+
nexus services start graphrag
|
|
206
|
+
nexus services stop mageagent
|
|
207
|
+
nexus services restart sandbox
|
|
208
|
+
|
|
209
|
+
# View logs
|
|
210
|
+
nexus services logs graphrag --follow
|
|
211
|
+
|
|
212
|
+
# Check health
|
|
213
|
+
nexus services health --all
|
|
214
|
+
|
|
215
|
+
# Show port mappings
|
|
216
|
+
nexus services ports
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Interactive REPL
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
# Start REPL
|
|
223
|
+
nexus repl
|
|
224
|
+
|
|
225
|
+
# Inside REPL:
|
|
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
|
+
```
|
|
234
|
+
|
|
235
|
+
### Autonomous Agent Mode
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
# Run autonomous task
|
|
239
|
+
nexus agent run --task "Fix all TypeScript errors"
|
|
240
|
+
|
|
241
|
+
# With constraints
|
|
242
|
+
nexus agent run \
|
|
243
|
+
--task "Implement user authentication" \
|
|
244
|
+
--max-iterations 20 \
|
|
245
|
+
--budget 50 \
|
|
246
|
+
--workspace /path/to/project
|
|
247
|
+
|
|
248
|
+
# With streaming
|
|
249
|
+
nexus agent run --task "Security audit" --stream
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Session Management
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
# Save session
|
|
256
|
+
nexus session save my-work
|
|
257
|
+
|
|
258
|
+
# List sessions
|
|
259
|
+
nexus session list
|
|
260
|
+
|
|
261
|
+
# Resume session
|
|
262
|
+
nexus session load my-work
|
|
263
|
+
|
|
264
|
+
# Export/import
|
|
265
|
+
nexus session export my-work > session.json
|
|
266
|
+
nexus session import < session.json
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Configuration
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
# Show current config
|
|
273
|
+
nexus config list
|
|
274
|
+
|
|
275
|
+
# Get specific value
|
|
276
|
+
nexus config get services.api_url
|
|
277
|
+
|
|
278
|
+
# Set value
|
|
279
|
+
nexus config set defaults.output_format json
|
|
280
|
+
|
|
281
|
+
# Manage profiles
|
|
282
|
+
nexus config profiles list
|
|
283
|
+
nexus config profiles use production
|
|
284
|
+
|
|
285
|
+
# Initialize workspace
|
|
286
|
+
nexus config init
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
### Output Formats
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
# JSON output (for scripting)
|
|
293
|
+
nexus services list --output-format json
|
|
294
|
+
|
|
295
|
+
# Streaming JSON (real-time)
|
|
296
|
+
nexus videoagent process-video --url video.mp4 --output-format stream-json
|
|
297
|
+
|
|
298
|
+
# Table output
|
|
299
|
+
nexus services status --output-format table
|
|
300
|
+
|
|
301
|
+
# YAML output
|
|
302
|
+
nexus services list --output-format yaml
|
|
303
|
+
|
|
304
|
+
# Quiet mode
|
|
305
|
+
nexus sandbox execute --code "..." --quiet
|
|
306
|
+
|
|
307
|
+
# Verbose mode
|
|
308
|
+
nexus mageagent orchestrate --task "..." --verbose
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
## Configuration
|
|
312
|
+
|
|
313
|
+
### Global Configuration
|
|
314
|
+
|
|
315
|
+
Located at: `~/.nexus/config.toml`
|
|
316
|
+
|
|
317
|
+
```toml
|
|
318
|
+
[services]
|
|
319
|
+
api_url = "http://localhost:9092"
|
|
320
|
+
mcp_url = "http://localhost:9000"
|
|
321
|
+
timeout = 30000
|
|
322
|
+
|
|
323
|
+
[auth]
|
|
324
|
+
api_key = "${NEXUS_API_KEY}"
|
|
325
|
+
strategy = "api-key"
|
|
326
|
+
|
|
327
|
+
[defaults]
|
|
328
|
+
output_format = "json"
|
|
329
|
+
streaming = true
|
|
330
|
+
verbose = false
|
|
331
|
+
|
|
332
|
+
[plugins]
|
|
333
|
+
enabled = ["my-plugin"]
|
|
334
|
+
disabled = []
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Workspace Configuration
|
|
338
|
+
|
|
339
|
+
Located at: `.nexus.toml` (project root)
|
|
340
|
+
|
|
341
|
+
```toml
|
|
342
|
+
[workspace]
|
|
343
|
+
name = "my-project"
|
|
344
|
+
type = "typescript"
|
|
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
|
|
360
|
+
|
|
361
|
+
### Create a Plugin
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
# Initialize plugin
|
|
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
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Plugin Manifest (plugin.json)
|
|
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
|
+
```
|
|
409
|
+
|
|
410
|
+
### Plugin Implementation
|
|
411
|
+
|
|
412
|
+
```typescript
|
|
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
|
+
```
|
|
435
|
+
|
|
436
|
+
### Install Plugin
|
|
437
|
+
|
|
438
|
+
```bash
|
|
439
|
+
# Install locally
|
|
440
|
+
nexus plugin install ./my-plugin
|
|
441
|
+
|
|
442
|
+
# Publish to registry
|
|
443
|
+
nexus plugin publish my-plugin
|
|
444
|
+
|
|
445
|
+
# Install from registry
|
|
446
|
+
nexus plugin install my-plugin
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
## Architecture
|
|
450
|
+
|
|
451
|
+
The CLI is built with a modular, auto-discovering architecture:
|
|
452
|
+
|
|
453
|
+
```
|
|
454
|
+
┌─────────────────────────────────────────────────────┐
|
|
455
|
+
│ Adverant-Nexus CLI │
|
|
456
|
+
├─────────────────────────────────────────────────────┤
|
|
457
|
+
│ Interactive REPL │ Scripting │ Autonomous Agent │
|
|
458
|
+
│ ↓ ↓ ↓ │
|
|
459
|
+
│ Command Router (Auto-Discovery) │
|
|
460
|
+
│ ↓ ↓ ↓ │
|
|
461
|
+
│ Service Commands │ Nexus MCP │ Plugin Commands │
|
|
462
|
+
│ ↓ ↓ ↓ │
|
|
463
|
+
│ Transport Layer (HTTP | WS | MCP) │
|
|
464
|
+
│ ↓ │
|
|
465
|
+
│ Adverant-Nexus Microservices │
|
|
466
|
+
└─────────────────────────────────────────────────────┘
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
Key components:
|
|
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
|
|
475
|
+
|
|
476
|
+
See [ARCHITECTURE.md](./ARCHITECTURE.md) for complete details.
|
|
477
|
+
|
|
478
|
+
## Development
|
|
479
|
+
|
|
480
|
+
### Build
|
|
481
|
+
|
|
482
|
+
```bash
|
|
483
|
+
npm run build
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
### Development Mode
|
|
487
|
+
|
|
488
|
+
```bash
|
|
489
|
+
npm run dev
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
### Testing
|
|
493
|
+
|
|
494
|
+
```bash
|
|
495
|
+
npm test
|
|
496
|
+
npm run test:watch
|
|
497
|
+
npm run test:coverage
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
### Linting
|
|
501
|
+
|
|
502
|
+
```bash
|
|
503
|
+
npm run lint
|
|
504
|
+
npm run lint:fix
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
### Type Checking
|
|
508
|
+
|
|
509
|
+
```bash
|
|
510
|
+
npm run typecheck
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
## Project Status
|
|
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
|
|
571
|
+
|
|
572
|
+
## Contributing
|
|
573
|
+
|
|
574
|
+
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
|
|
575
|
+
|
|
576
|
+
## License
|
|
577
|
+
|
|
578
|
+
MIT © Adverant AI
|
|
579
|
+
|
|
580
|
+
## Support
|
|
581
|
+
|
|
582
|
+
- **Documentation**: [ARCHITECTURE.md](./ARCHITECTURE.md)
|
|
583
|
+
- **Issues**: [GitHub Issues](https://github.com/adverant-ai/adverant-nexus/issues)
|
|
584
|
+
- **Discussions**: [GitHub Discussions](https://github.com/adverant-ai/adverant-nexus/discussions)
|
|
585
|
+
|
|
586
|
+
## Related Projects
|
|
587
|
+
|
|
588
|
+
- [@adverant-nexus/sdk](../nexus-sdk) - SDK for building Nexus Nexus plugins
|
|
589
|
+
- [Adverant-Nexus Platform](../../README.md) - Main platform documentation
|
|
590
|
+
|
|
591
|
+
---
|
|
592
|
+
|
|
593
|
+
**Made with ❤️ by Adverant AI**
|