@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
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Bash completion script for Nexus CLI
|
|
3
|
+
# Install: source this file or copy to /etc/bash_completion.d/nexus
|
|
4
|
+
|
|
5
|
+
_nexus_completions() {
|
|
6
|
+
local cur prev words cword split
|
|
7
|
+
_init_completion -s || return
|
|
8
|
+
|
|
9
|
+
# Global options
|
|
10
|
+
local global_opts="
|
|
11
|
+
--config
|
|
12
|
+
--profile
|
|
13
|
+
--output-format -o
|
|
14
|
+
--verbose -v
|
|
15
|
+
--quiet -q
|
|
16
|
+
--no-color
|
|
17
|
+
--timeout
|
|
18
|
+
--retries
|
|
19
|
+
--help -h
|
|
20
|
+
--version -V
|
|
21
|
+
"
|
|
22
|
+
|
|
23
|
+
# Main commands
|
|
24
|
+
local commands="
|
|
25
|
+
version
|
|
26
|
+
config
|
|
27
|
+
workspace
|
|
28
|
+
services
|
|
29
|
+
brain
|
|
30
|
+
agent
|
|
31
|
+
repl
|
|
32
|
+
session
|
|
33
|
+
plugin
|
|
34
|
+
init
|
|
35
|
+
deploy
|
|
36
|
+
login
|
|
37
|
+
register
|
|
38
|
+
logs
|
|
39
|
+
list
|
|
40
|
+
help
|
|
41
|
+
"
|
|
42
|
+
|
|
43
|
+
# Service subcommands
|
|
44
|
+
local service_cmds="
|
|
45
|
+
list
|
|
46
|
+
status
|
|
47
|
+
health
|
|
48
|
+
info
|
|
49
|
+
logs
|
|
50
|
+
start
|
|
51
|
+
stop
|
|
52
|
+
restart
|
|
53
|
+
ports
|
|
54
|
+
"
|
|
55
|
+
|
|
56
|
+
# Brain subcommands (base commands, dynamic tools discovered at runtime)
|
|
57
|
+
local brain_cmds="
|
|
58
|
+
list
|
|
59
|
+
categories
|
|
60
|
+
refresh
|
|
61
|
+
health
|
|
62
|
+
store-memory
|
|
63
|
+
recall-memory
|
|
64
|
+
store-document
|
|
65
|
+
store-episode
|
|
66
|
+
store-pattern
|
|
67
|
+
retrieve
|
|
68
|
+
recall-episodes
|
|
69
|
+
enhanced-retrieve
|
|
70
|
+
store-entity
|
|
71
|
+
query-entities
|
|
72
|
+
create-entity-relationship
|
|
73
|
+
validate-code
|
|
74
|
+
validate-command
|
|
75
|
+
analyze-code
|
|
76
|
+
orchestrate
|
|
77
|
+
trigger-learning
|
|
78
|
+
recall-learned-knowledge
|
|
79
|
+
inject-context
|
|
80
|
+
get-suggestions
|
|
81
|
+
ingest-url
|
|
82
|
+
ingest-url-confirm
|
|
83
|
+
check-ingestion-job
|
|
84
|
+
validation-result
|
|
85
|
+
"
|
|
86
|
+
|
|
87
|
+
# Agent subcommands
|
|
88
|
+
local agent_cmds="
|
|
89
|
+
run
|
|
90
|
+
list
|
|
91
|
+
status
|
|
92
|
+
"
|
|
93
|
+
|
|
94
|
+
# Session subcommands
|
|
95
|
+
local session_cmds="
|
|
96
|
+
save
|
|
97
|
+
load
|
|
98
|
+
list
|
|
99
|
+
resume
|
|
100
|
+
import
|
|
101
|
+
export
|
|
102
|
+
delete
|
|
103
|
+
"
|
|
104
|
+
|
|
105
|
+
# Plugin subcommands
|
|
106
|
+
local plugin_cmds="
|
|
107
|
+
install
|
|
108
|
+
uninstall
|
|
109
|
+
list
|
|
110
|
+
init
|
|
111
|
+
enable
|
|
112
|
+
disable
|
|
113
|
+
info
|
|
114
|
+
"
|
|
115
|
+
|
|
116
|
+
# Workspace subcommands
|
|
117
|
+
local workspace_cmds="
|
|
118
|
+
init
|
|
119
|
+
info
|
|
120
|
+
validate
|
|
121
|
+
git-status
|
|
122
|
+
git-commit
|
|
123
|
+
"
|
|
124
|
+
|
|
125
|
+
# Get the command being completed
|
|
126
|
+
local command=""
|
|
127
|
+
local subcommand=""
|
|
128
|
+
|
|
129
|
+
# Find the main command
|
|
130
|
+
for ((i=1; i < cword; i++)); do
|
|
131
|
+
if [[ "${words[i]}" != -* ]]; then
|
|
132
|
+
if [[ -z "$command" ]]; then
|
|
133
|
+
command="${words[i]}"
|
|
134
|
+
elif [[ -z "$subcommand" ]]; then
|
|
135
|
+
subcommand="${words[i]}"
|
|
136
|
+
fi
|
|
137
|
+
fi
|
|
138
|
+
done
|
|
139
|
+
|
|
140
|
+
# Handle --output-format completions
|
|
141
|
+
if [[ "$prev" == "--output-format" || "$prev" == "-o" ]]; then
|
|
142
|
+
COMPREPLY=($(compgen -W "text json yaml table stream-json" -- "$cur"))
|
|
143
|
+
return 0
|
|
144
|
+
fi
|
|
145
|
+
|
|
146
|
+
# Handle --config completions (file paths)
|
|
147
|
+
if [[ "$prev" == "--config" ]]; then
|
|
148
|
+
_filedir
|
|
149
|
+
return 0
|
|
150
|
+
fi
|
|
151
|
+
|
|
152
|
+
# Handle --profile completions (could be enhanced to read from config)
|
|
153
|
+
if [[ "$prev" == "--profile" ]]; then
|
|
154
|
+
COMPREPLY=($(compgen -W "default production staging development" -- "$cur"))
|
|
155
|
+
return 0
|
|
156
|
+
fi
|
|
157
|
+
|
|
158
|
+
# Command-specific completions
|
|
159
|
+
case "$command" in
|
|
160
|
+
services)
|
|
161
|
+
case "$subcommand" in
|
|
162
|
+
"")
|
|
163
|
+
# Complete service subcommands
|
|
164
|
+
COMPREPLY=($(compgen -W "$service_cmds $global_opts" -- "$cur"))
|
|
165
|
+
;;
|
|
166
|
+
start|stop|restart|info|logs|status)
|
|
167
|
+
# Complete service names (try to get from nexus services list)
|
|
168
|
+
if command -v nexus &> /dev/null; then
|
|
169
|
+
local services=$(nexus services list --output-format text 2>/dev/null | awk '{print $1}' | tail -n +2)
|
|
170
|
+
COMPREPLY=($(compgen -W "$services $global_opts" -- "$cur"))
|
|
171
|
+
else
|
|
172
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
173
|
+
fi
|
|
174
|
+
;;
|
|
175
|
+
*)
|
|
176
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
177
|
+
;;
|
|
178
|
+
esac
|
|
179
|
+
;;
|
|
180
|
+
|
|
181
|
+
brain)
|
|
182
|
+
case "$subcommand" in
|
|
183
|
+
"")
|
|
184
|
+
# Complete brain subcommands
|
|
185
|
+
COMPREPLY=($(compgen -W "$brain_cmds $global_opts" -- "$cur"))
|
|
186
|
+
;;
|
|
187
|
+
list)
|
|
188
|
+
# Brain list options
|
|
189
|
+
COMPREPLY=($(compgen -W "--category -c --verbose -v $global_opts" -- "$cur"))
|
|
190
|
+
;;
|
|
191
|
+
store-document|ingest-url)
|
|
192
|
+
# File path completion
|
|
193
|
+
if [[ "$cur" != -* ]]; then
|
|
194
|
+
_filedir
|
|
195
|
+
else
|
|
196
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
197
|
+
fi
|
|
198
|
+
;;
|
|
199
|
+
*)
|
|
200
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
201
|
+
;;
|
|
202
|
+
esac
|
|
203
|
+
;;
|
|
204
|
+
|
|
205
|
+
agent)
|
|
206
|
+
case "$subcommand" in
|
|
207
|
+
"")
|
|
208
|
+
# Complete agent subcommands
|
|
209
|
+
COMPREPLY=($(compgen -W "$agent_cmds $global_opts" -- "$cur"))
|
|
210
|
+
;;
|
|
211
|
+
run)
|
|
212
|
+
# Agent run options
|
|
213
|
+
COMPREPLY=($(compgen -W "--task --timeout --max-iterations $global_opts" -- "$cur"))
|
|
214
|
+
;;
|
|
215
|
+
*)
|
|
216
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
217
|
+
;;
|
|
218
|
+
esac
|
|
219
|
+
;;
|
|
220
|
+
|
|
221
|
+
session)
|
|
222
|
+
case "$subcommand" in
|
|
223
|
+
"")
|
|
224
|
+
# Complete session subcommands
|
|
225
|
+
COMPREPLY=($(compgen -W "$session_cmds $global_opts" -- "$cur"))
|
|
226
|
+
;;
|
|
227
|
+
save)
|
|
228
|
+
COMPREPLY=($(compgen -W "--name --description $global_opts" -- "$cur"))
|
|
229
|
+
;;
|
|
230
|
+
load|resume|delete)
|
|
231
|
+
# Try to get session names
|
|
232
|
+
if command -v nexus &> /dev/null; then
|
|
233
|
+
local sessions=$(nexus session list --output-format text 2>/dev/null | awk '{print $1}' | tail -n +2)
|
|
234
|
+
COMPREPLY=($(compgen -W "$sessions $global_opts" -- "$cur"))
|
|
235
|
+
else
|
|
236
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
237
|
+
fi
|
|
238
|
+
;;
|
|
239
|
+
import|export)
|
|
240
|
+
if [[ "$cur" != -* ]]; then
|
|
241
|
+
_filedir
|
|
242
|
+
else
|
|
243
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
244
|
+
fi
|
|
245
|
+
;;
|
|
246
|
+
*)
|
|
247
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
248
|
+
;;
|
|
249
|
+
esac
|
|
250
|
+
;;
|
|
251
|
+
|
|
252
|
+
plugin)
|
|
253
|
+
case "$subcommand" in
|
|
254
|
+
"")
|
|
255
|
+
# Complete plugin subcommands
|
|
256
|
+
COMPREPLY=($(compgen -W "$plugin_cmds $global_opts" -- "$cur"))
|
|
257
|
+
;;
|
|
258
|
+
install)
|
|
259
|
+
COMPREPLY=($(compgen -W "--path --git --npm $global_opts" -- "$cur"))
|
|
260
|
+
;;
|
|
261
|
+
uninstall|enable|disable|info)
|
|
262
|
+
# Try to get plugin names
|
|
263
|
+
if command -v nexus &> /dev/null; then
|
|
264
|
+
local plugins=$(nexus plugin list --output-format text 2>/dev/null | awk '{print $1}' | tail -n +2)
|
|
265
|
+
COMPREPLY=($(compgen -W "$plugins $global_opts" -- "$cur"))
|
|
266
|
+
else
|
|
267
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
268
|
+
fi
|
|
269
|
+
;;
|
|
270
|
+
*)
|
|
271
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
272
|
+
;;
|
|
273
|
+
esac
|
|
274
|
+
;;
|
|
275
|
+
|
|
276
|
+
workspace)
|
|
277
|
+
case "$subcommand" in
|
|
278
|
+
"")
|
|
279
|
+
# Complete workspace subcommands
|
|
280
|
+
COMPREPLY=($(compgen -W "$workspace_cmds $global_opts" -- "$cur"))
|
|
281
|
+
;;
|
|
282
|
+
init)
|
|
283
|
+
COMPREPLY=($(compgen -W "--name --template --path $global_opts" -- "$cur"))
|
|
284
|
+
;;
|
|
285
|
+
git-commit)
|
|
286
|
+
COMPREPLY=($(compgen -W "--message -m --amend --no-verify $global_opts" -- "$cur"))
|
|
287
|
+
;;
|
|
288
|
+
*)
|
|
289
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
290
|
+
;;
|
|
291
|
+
esac
|
|
292
|
+
;;
|
|
293
|
+
|
|
294
|
+
init)
|
|
295
|
+
# Init command options
|
|
296
|
+
COMPREPLY=($(compgen -W "--name --template --path --force $global_opts" -- "$cur"))
|
|
297
|
+
;;
|
|
298
|
+
|
|
299
|
+
deploy)
|
|
300
|
+
# Deploy command options
|
|
301
|
+
COMPREPLY=($(compgen -W "--environment --service --all --dry-run $global_opts" -- "$cur"))
|
|
302
|
+
;;
|
|
303
|
+
|
|
304
|
+
login)
|
|
305
|
+
# Login command options
|
|
306
|
+
COMPREPLY=($(compgen -W "--username --password --token --sso $global_opts" -- "$cur"))
|
|
307
|
+
;;
|
|
308
|
+
|
|
309
|
+
logs)
|
|
310
|
+
# Logs command options
|
|
311
|
+
COMPREPLY=($(compgen -W "--service --follow -f --tail --since --until $global_opts" -- "$cur"))
|
|
312
|
+
;;
|
|
313
|
+
|
|
314
|
+
"")
|
|
315
|
+
# No command yet, complete main commands and global options
|
|
316
|
+
COMPREPLY=($(compgen -W "$commands $global_opts" -- "$cur"))
|
|
317
|
+
;;
|
|
318
|
+
|
|
319
|
+
*)
|
|
320
|
+
# Unknown command, just complete global options
|
|
321
|
+
COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
|
|
322
|
+
;;
|
|
323
|
+
esac
|
|
324
|
+
|
|
325
|
+
return 0
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
# Register the completion function
|
|
329
|
+
complete -F _nexus_completions nexus
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Fish completion script for Nexus CLI
|
|
2
|
+
# Install: Copy to ~/.config/fish/completions/nexus.fish
|
|
3
|
+
|
|
4
|
+
# Remove any existing completions
|
|
5
|
+
complete -c nexus -e
|
|
6
|
+
|
|
7
|
+
# Global options
|
|
8
|
+
complete -c nexus -l config -d 'Use specific config file' -r -F
|
|
9
|
+
complete -c nexus -l profile -d 'Use specific profile' -x -a 'default production staging development'
|
|
10
|
+
complete -c nexus -s o -l output-format -d 'Output format' -x -a 'text json yaml table stream-json'
|
|
11
|
+
complete -c nexus -s v -l verbose -d 'Verbose output (debug level)'
|
|
12
|
+
complete -c nexus -s q -l quiet -d 'Minimal output (errors only)'
|
|
13
|
+
complete -c nexus -l no-color -d 'Disable colors'
|
|
14
|
+
complete -c nexus -l timeout -d 'Request timeout in milliseconds' -x
|
|
15
|
+
complete -c nexus -l retries -d 'Number of retries' -x
|
|
16
|
+
complete -c nexus -s h -l help -d 'Show help information'
|
|
17
|
+
complete -c nexus -s V -l version -d 'Show version information'
|
|
18
|
+
|
|
19
|
+
# Main commands
|
|
20
|
+
complete -c nexus -f -n __fish_use_subcommand -a version -d 'Show version information'
|
|
21
|
+
complete -c nexus -f -n __fish_use_subcommand -a config -d 'Configuration management'
|
|
22
|
+
complete -c nexus -f -n __fish_use_subcommand -a workspace -d 'Workspace management'
|
|
23
|
+
complete -c nexus -f -n __fish_use_subcommand -a services -d 'Service management'
|
|
24
|
+
complete -c nexus -f -n __fish_use_subcommand -a brain -d 'Brain MCP tools'
|
|
25
|
+
complete -c nexus -f -n __fish_use_subcommand -a agent -d 'Autonomous agent management'
|
|
26
|
+
complete -c nexus -f -n __fish_use_subcommand -a repl -d 'Start interactive REPL mode'
|
|
27
|
+
complete -c nexus -f -n __fish_use_subcommand -a session -d 'Session management'
|
|
28
|
+
complete -c nexus -f -n __fish_use_subcommand -a plugin -d 'Plugin management'
|
|
29
|
+
complete -c nexus -f -n __fish_use_subcommand -a init -d 'Initialize new workspace or project'
|
|
30
|
+
complete -c nexus -f -n __fish_use_subcommand -a deploy -d 'Deploy services to environment'
|
|
31
|
+
complete -c nexus -f -n __fish_use_subcommand -a login -d 'Authenticate with Nexus platform'
|
|
32
|
+
complete -c nexus -f -n __fish_use_subcommand -a register -d 'Register new account'
|
|
33
|
+
complete -c nexus -f -n __fish_use_subcommand -a logs -d 'View service logs'
|
|
34
|
+
complete -c nexus -f -n __fish_use_subcommand -a list -d 'List available resources'
|
|
35
|
+
complete -c nexus -f -n __fish_use_subcommand -a help -d 'Display help for command'
|
|
36
|
+
|
|
37
|
+
# Services subcommands
|
|
38
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a list -d 'List all available services'
|
|
39
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a status -d 'Show service status'
|
|
40
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a health -d 'Check service health'
|
|
41
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a info -d 'Display detailed service information'
|
|
42
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a logs -d 'View service logs'
|
|
43
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a start -d 'Start one or more services'
|
|
44
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a stop -d 'Stop one or more services'
|
|
45
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a restart -d 'Restart one or more services'
|
|
46
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services' -a ports -d 'Show service port mappings'
|
|
47
|
+
|
|
48
|
+
# Dynamic service name completion for services commands
|
|
49
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from services; and __fish_seen_subcommand_from start stop restart info logs status' -a '(nexus services list --output-format text 2>/dev/null | tail -n +2 | awk \'{print $1}\')'
|
|
50
|
+
|
|
51
|
+
# Brain subcommands
|
|
52
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a list -d 'List all available Brain tools'
|
|
53
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a categories -d 'List Brain tool categories'
|
|
54
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a refresh -d 'Refresh Brain tools from MCP server'
|
|
55
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a health -d 'Check Brain system health'
|
|
56
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-memory -d 'Store a memory/fact in Brain'
|
|
57
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a recall-memory -d 'Recall memories from Brain'
|
|
58
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-document -d 'Store a document in Brain'
|
|
59
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-episode -d 'Store an episode/event'
|
|
60
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-pattern -d 'Store a learned pattern'
|
|
61
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a retrieve -d 'Advanced retrieval with multiple strategies'
|
|
62
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a recall-episodes -d 'Recall past episodes with temporal context'
|
|
63
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a enhanced-retrieve -d 'Unified retrieval across all memory types'
|
|
64
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-entity -d 'Store entity in knowledge graph'
|
|
65
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a query-entities -d 'Query knowledge graph entities'
|
|
66
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a create-entity-relationship -d 'Create relationship between entities'
|
|
67
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a validate-code -d 'Multi-model code validation'
|
|
68
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a validate-command -d 'Validate shell commands before execution'
|
|
69
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a analyze-code -d 'Fast single-model code analysis'
|
|
70
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a orchestrate -d 'Multi-agent orchestration for complex tasks'
|
|
71
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a trigger-learning -d 'Trigger progressive learning on topics'
|
|
72
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a recall-learned-knowledge -d 'Retrieve learned knowledge'
|
|
73
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a inject-context -d 'Manually inject context for operations'
|
|
74
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a get-suggestions -d 'Get AI suggestions for operations'
|
|
75
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a ingest-url -d 'Ingest files from URL'
|
|
76
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a ingest-url-confirm -d 'Confirm and start URL ingestion'
|
|
77
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a check-ingestion-job -d 'Check ingestion job status'
|
|
78
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a validation-result -d 'Get code validation results'
|
|
79
|
+
|
|
80
|
+
# Brain list options
|
|
81
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from list' -s c -l category -d 'Filter by category' -x
|
|
82
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from list' -s v -l verbose -d 'Show detailed information'
|
|
83
|
+
|
|
84
|
+
# Brain store-memory options
|
|
85
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from store-memory' -l content -d 'Memory content' -x
|
|
86
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from store-memory' -l tags -d 'Tags (comma-separated)' -x
|
|
87
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from store-memory' -l importance -d 'Importance (0-1)' -x
|
|
88
|
+
|
|
89
|
+
# Brain recall-memory/retrieve options
|
|
90
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from recall-memory retrieve' -l query -d 'Search query' -x
|
|
91
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from recall-memory retrieve' -l limit -d 'Maximum results' -x
|
|
92
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from recall-memory retrieve' -l threshold -d 'Score threshold' -x
|
|
93
|
+
|
|
94
|
+
# Brain code analysis options
|
|
95
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from validate-code analyze-code' -l code -d 'Code to analyze' -x
|
|
96
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from validate-code analyze-code' -l language -d 'Programming language' -x -a 'typescript javascript python go rust java'
|
|
97
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from validate-code analyze-code' -l risk-level -d 'Risk level' -x -a 'low medium high critical'
|
|
98
|
+
|
|
99
|
+
# Brain orchestrate options
|
|
100
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from orchestrate' -l task -d 'Task description' -x
|
|
101
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from orchestrate' -l max-agents -d 'Maximum agents' -x
|
|
102
|
+
complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from orchestrate' -l timeout -d 'Timeout in ms' -x
|
|
103
|
+
|
|
104
|
+
# Agent subcommands
|
|
105
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from agent' -a run -d 'Run an autonomous agent'
|
|
106
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from agent' -a list -d 'List available agents'
|
|
107
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from agent' -a status -d 'Show agent status'
|
|
108
|
+
|
|
109
|
+
# Agent run options
|
|
110
|
+
complete -c nexus -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from run' -l task -d 'Task description' -x
|
|
111
|
+
complete -c nexus -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from run' -l timeout -d 'Timeout in seconds' -x
|
|
112
|
+
complete -c nexus -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from run' -l max-iterations -d 'Maximum iterations' -x
|
|
113
|
+
|
|
114
|
+
# Session subcommands
|
|
115
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from session' -a save -d 'Save current session'
|
|
116
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from session' -a load -d 'Load a saved session'
|
|
117
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from session' -a list -d 'List all saved sessions'
|
|
118
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from session' -a resume -d 'Resume a session'
|
|
119
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from session' -a import -d 'Import session from file'
|
|
120
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from session' -a export -d 'Export session to file'
|
|
121
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from session' -a delete -d 'Delete a saved session'
|
|
122
|
+
|
|
123
|
+
# Session save options
|
|
124
|
+
complete -c nexus -n '__fish_seen_subcommand_from session; and __fish_seen_subcommand_from save' -l name -d 'Session name' -x
|
|
125
|
+
complete -c nexus -n '__fish_seen_subcommand_from session; and __fish_seen_subcommand_from save' -l description -d 'Session description' -x
|
|
126
|
+
|
|
127
|
+
# Dynamic session name completion
|
|
128
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from session; and __fish_seen_subcommand_from load resume delete' -a '(nexus session list --output-format text 2>/dev/null | tail -n +2 | awk \'{print $1}\')'
|
|
129
|
+
|
|
130
|
+
# Plugin subcommands
|
|
131
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a install -d 'Install a plugin'
|
|
132
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a uninstall -d 'Uninstall a plugin'
|
|
133
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a list -d 'List installed plugins'
|
|
134
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a init -d 'Initialize a new plugin'
|
|
135
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a enable -d 'Enable a plugin'
|
|
136
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a disable -d 'Disable a plugin'
|
|
137
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a info -d 'Show plugin information'
|
|
138
|
+
|
|
139
|
+
# Plugin install options
|
|
140
|
+
complete -c nexus -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from install' -l path -d 'Install from path' -r -F
|
|
141
|
+
complete -c nexus -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from install' -l git -d 'Install from git repository' -x
|
|
142
|
+
complete -c nexus -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from install' -l npm -d 'Install from npm' -x
|
|
143
|
+
|
|
144
|
+
# Dynamic plugin name completion
|
|
145
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from uninstall enable disable info' -a '(nexus plugin list --output-format text 2>/dev/null | tail -n +2 | awk \'{print $1}\')'
|
|
146
|
+
|
|
147
|
+
# Workspace subcommands
|
|
148
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a init -d 'Initialize workspace'
|
|
149
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a info -d 'Show workspace information'
|
|
150
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a validate -d 'Validate workspace configuration'
|
|
151
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a git-status -d 'Show git status'
|
|
152
|
+
complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a git-commit -d 'Commit changes'
|
|
153
|
+
|
|
154
|
+
# Workspace init options
|
|
155
|
+
complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from init' -l name -d 'Workspace name' -x
|
|
156
|
+
complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from init' -l template -d 'Template to use' -x
|
|
157
|
+
complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from init' -l path -d 'Workspace path' -r -F
|
|
158
|
+
|
|
159
|
+
# Workspace git-commit options
|
|
160
|
+
complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from git-commit' -s m -l message -d 'Commit message' -x
|
|
161
|
+
complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from git-commit' -l amend -d 'Amend previous commit'
|
|
162
|
+
complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from git-commit' -l no-verify -d 'Skip git hooks'
|
|
163
|
+
|
|
164
|
+
# Init command options
|
|
165
|
+
complete -c nexus -n '__fish_seen_subcommand_from init' -l name -d 'Project name' -x
|
|
166
|
+
complete -c nexus -n '__fish_seen_subcommand_from init' -l template -d 'Template to use' -x
|
|
167
|
+
complete -c nexus -n '__fish_seen_subcommand_from init' -l path -d 'Project path' -r -F
|
|
168
|
+
complete -c nexus -n '__fish_seen_subcommand_from init' -l force -d 'Force overwrite existing files'
|
|
169
|
+
|
|
170
|
+
# Deploy command options
|
|
171
|
+
complete -c nexus -n '__fish_seen_subcommand_from deploy' -l environment -d 'Target environment' -x -a 'development staging production'
|
|
172
|
+
complete -c nexus -n '__fish_seen_subcommand_from deploy' -l service -d 'Specific service to deploy' -x
|
|
173
|
+
complete -c nexus -n '__fish_seen_subcommand_from deploy' -l all -d 'Deploy all services'
|
|
174
|
+
complete -c nexus -n '__fish_seen_subcommand_from deploy' -l dry-run -d 'Perform dry run without actual deployment'
|
|
175
|
+
|
|
176
|
+
# Login command options
|
|
177
|
+
complete -c nexus -n '__fish_seen_subcommand_from login' -l username -d 'Username' -x
|
|
178
|
+
complete -c nexus -n '__fish_seen_subcommand_from login' -l password -d 'Password' -x
|
|
179
|
+
complete -c nexus -n '__fish_seen_subcommand_from login' -l token -d 'Authentication token' -x
|
|
180
|
+
complete -c nexus -n '__fish_seen_subcommand_from login' -l sso -d 'Use SSO authentication'
|
|
181
|
+
|
|
182
|
+
# Logs command options
|
|
183
|
+
complete -c nexus -n '__fish_seen_subcommand_from logs' -l service -d 'Service name' -x
|
|
184
|
+
complete -c nexus -n '__fish_seen_subcommand_from logs' -s f -l follow -d 'Follow log output'
|
|
185
|
+
complete -c nexus -n '__fish_seen_subcommand_from logs' -l tail -d 'Number of lines to show' -x
|
|
186
|
+
complete -c nexus -n '__fish_seen_subcommand_from logs' -l since -d 'Show logs since timestamp' -x
|
|
187
|
+
complete -c nexus -n '__fish_seen_subcommand_from logs' -l until -d 'Show logs until timestamp' -x
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Setup and Command Registration for Nexus CLI
|
|
3
|
+
*
|
|
4
|
+
* Sets up Commander.js with all commands, global options,
|
|
5
|
+
* and help system integration.
|
|
6
|
+
*/
|
|
7
|
+
import { Command } from 'commander';
|
|
8
|
+
import type { OutputFormat } from './types/output.js';
|
|
9
|
+
export interface GlobalOptions {
|
|
10
|
+
config?: string;
|
|
11
|
+
profile?: string;
|
|
12
|
+
outputFormat?: OutputFormat;
|
|
13
|
+
verbose?: boolean;
|
|
14
|
+
quiet?: boolean;
|
|
15
|
+
noColor?: boolean;
|
|
16
|
+
timeout?: number;
|
|
17
|
+
retries?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create and configure the CLI program
|
|
21
|
+
*/
|
|
22
|
+
export declare function createCLI(): Command;
|
|
23
|
+
/**
|
|
24
|
+
* Setup CLI with global configuration and error handling
|
|
25
|
+
*/
|
|
26
|
+
export declare function setupCLI(): Promise<Command>;
|
|
27
|
+
/**
|
|
28
|
+
* Register all commands (called from index.ts)
|
|
29
|
+
*/
|
|
30
|
+
export declare function registerCommands(program: Command): void;
|
|
31
|
+
/**
|
|
32
|
+
* Parse CLI arguments and execute
|
|
33
|
+
*/
|
|
34
|
+
export declare function runCLI(argv?: string[]): Promise<void>;
|
|
35
|
+
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAqCnC;AAED;;GAEG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CA6BjD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsDvD;AAED;;GAEG;AACH,wBAAsB,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAM3D"}
|