@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,452 @@
|
|
|
1
|
+
#compdef nexus
|
|
2
|
+
# Zsh completion script for Nexus CLI
|
|
3
|
+
# Install: Copy to a directory in $fpath (e.g., /usr/local/share/zsh/site-functions/)
|
|
4
|
+
|
|
5
|
+
_nexus() {
|
|
6
|
+
local context state state_descr line
|
|
7
|
+
typeset -A opt_args
|
|
8
|
+
|
|
9
|
+
# Global options
|
|
10
|
+
local -a global_opts
|
|
11
|
+
global_opts=(
|
|
12
|
+
'(- *)'{-h,--help}'[Show help information]'
|
|
13
|
+
'(- *)'{-V,--version}'[Show version information]'
|
|
14
|
+
'--config[Specify config file path]:config file:_files'
|
|
15
|
+
'--profile[Use specific profile]:profile:(default production staging development)'
|
|
16
|
+
'(-o --output-format)'{-o,--output-format}'[Output format]:format:(text json yaml table stream-json)'
|
|
17
|
+
'(-v --verbose)'{-v,--verbose}'[Enable verbose output]'
|
|
18
|
+
'(-q --quiet)'{-q,--quiet}'[Minimal output (errors only)]'
|
|
19
|
+
'--no-color[Disable colored output]'
|
|
20
|
+
'--timeout[Request timeout in milliseconds]:timeout (ms):'
|
|
21
|
+
'--retries[Number of retries]:retries:'
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
_arguments -C \
|
|
25
|
+
$global_opts \
|
|
26
|
+
'1: :_nexus_commands' \
|
|
27
|
+
'*:: :->args'
|
|
28
|
+
|
|
29
|
+
case $state in
|
|
30
|
+
args)
|
|
31
|
+
case ${words[1]} in
|
|
32
|
+
services)
|
|
33
|
+
_nexus_services
|
|
34
|
+
;;
|
|
35
|
+
brain)
|
|
36
|
+
_nexus_brain
|
|
37
|
+
;;
|
|
38
|
+
agent)
|
|
39
|
+
_nexus_agent
|
|
40
|
+
;;
|
|
41
|
+
session)
|
|
42
|
+
_nexus_session
|
|
43
|
+
;;
|
|
44
|
+
plugin)
|
|
45
|
+
_nexus_plugin
|
|
46
|
+
;;
|
|
47
|
+
workspace)
|
|
48
|
+
_nexus_workspace
|
|
49
|
+
;;
|
|
50
|
+
init)
|
|
51
|
+
_nexus_init
|
|
52
|
+
;;
|
|
53
|
+
deploy)
|
|
54
|
+
_nexus_deploy
|
|
55
|
+
;;
|
|
56
|
+
login)
|
|
57
|
+
_nexus_login
|
|
58
|
+
;;
|
|
59
|
+
logs)
|
|
60
|
+
_nexus_logs
|
|
61
|
+
;;
|
|
62
|
+
*)
|
|
63
|
+
_message 'no more arguments'
|
|
64
|
+
;;
|
|
65
|
+
esac
|
|
66
|
+
;;
|
|
67
|
+
esac
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
# Main commands
|
|
71
|
+
_nexus_commands() {
|
|
72
|
+
local -a commands
|
|
73
|
+
commands=(
|
|
74
|
+
'version:Show version information'
|
|
75
|
+
'config:Configuration management'
|
|
76
|
+
'workspace:Workspace management (init, info, validate, git)'
|
|
77
|
+
'services:Service management (start, stop, restart, status, logs)'
|
|
78
|
+
'brain:Brain MCP tools - Memory, Knowledge Graph, Code Analysis'
|
|
79
|
+
'agent:Autonomous agent management (run, list, status)'
|
|
80
|
+
'repl:Start interactive REPL mode'
|
|
81
|
+
'session:Session management (save, load, resume, import, export)'
|
|
82
|
+
'plugin:Plugin management (install, uninstall, enable, disable)'
|
|
83
|
+
'init:Initialize new workspace or project'
|
|
84
|
+
'deploy:Deploy services to environment'
|
|
85
|
+
'login:Authenticate with Nexus platform'
|
|
86
|
+
'register:Register new account'
|
|
87
|
+
'logs:View service logs'
|
|
88
|
+
'list:List available resources'
|
|
89
|
+
'help:Display help for command'
|
|
90
|
+
)
|
|
91
|
+
_describe 'command' commands
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
# Services subcommands
|
|
95
|
+
_nexus_services() {
|
|
96
|
+
local -a subcmds
|
|
97
|
+
subcmds=(
|
|
98
|
+
'list:List all available services'
|
|
99
|
+
'status:Show service status'
|
|
100
|
+
'health:Check service health'
|
|
101
|
+
'info:Display detailed service information'
|
|
102
|
+
'logs:View service logs'
|
|
103
|
+
'start:Start one or more services'
|
|
104
|
+
'stop:Stop one or more services'
|
|
105
|
+
'restart:Restart one or more services'
|
|
106
|
+
'ports:Show service port mappings'
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
_arguments -C \
|
|
110
|
+
$global_opts \
|
|
111
|
+
'1: :->subcmd' \
|
|
112
|
+
'*:: :->args'
|
|
113
|
+
|
|
114
|
+
case $state in
|
|
115
|
+
subcmd)
|
|
116
|
+
_describe 'services subcommand' subcmds
|
|
117
|
+
;;
|
|
118
|
+
args)
|
|
119
|
+
case ${words[1]} in
|
|
120
|
+
start|stop|restart|info|logs|status)
|
|
121
|
+
_nexus_service_names
|
|
122
|
+
;;
|
|
123
|
+
list|health|ports)
|
|
124
|
+
_arguments $global_opts
|
|
125
|
+
;;
|
|
126
|
+
esac
|
|
127
|
+
;;
|
|
128
|
+
esac
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
# Brain subcommands
|
|
132
|
+
_nexus_brain() {
|
|
133
|
+
local -a subcmds
|
|
134
|
+
subcmds=(
|
|
135
|
+
'list:List all available Brain tools'
|
|
136
|
+
'categories:List Brain tool categories'
|
|
137
|
+
'refresh:Refresh Brain tools from MCP server'
|
|
138
|
+
'health:Check Brain system health'
|
|
139
|
+
'store-memory:Store a memory/fact in Brain'
|
|
140
|
+
'recall-memory:Recall memories from Brain'
|
|
141
|
+
'store-document:Store a document in Brain'
|
|
142
|
+
'store-episode:Store an episode/event'
|
|
143
|
+
'store-pattern:Store a learned pattern'
|
|
144
|
+
'retrieve:Advanced retrieval with multiple strategies'
|
|
145
|
+
'recall-episodes:Recall past episodes with temporal context'
|
|
146
|
+
'enhanced-retrieve:Unified retrieval across all memory types'
|
|
147
|
+
'store-entity:Store entity in knowledge graph'
|
|
148
|
+
'query-entities:Query knowledge graph entities'
|
|
149
|
+
'create-entity-relationship:Create relationship between entities'
|
|
150
|
+
'validate-code:Multi-model code validation'
|
|
151
|
+
'validate-command:Validate shell commands before execution'
|
|
152
|
+
'analyze-code:Fast single-model code analysis'
|
|
153
|
+
'orchestrate:Multi-agent orchestration for complex tasks'
|
|
154
|
+
'trigger-learning:Trigger progressive learning on topics'
|
|
155
|
+
'recall-learned-knowledge:Retrieve learned knowledge'
|
|
156
|
+
'inject-context:Manually inject context for operations'
|
|
157
|
+
'get-suggestions:Get AI suggestions for operations'
|
|
158
|
+
'ingest-url:Ingest files from URL (Google Drive, GitHub, etc.)'
|
|
159
|
+
'ingest-url-confirm:Confirm and start URL ingestion'
|
|
160
|
+
'check-ingestion-job:Check ingestion job status'
|
|
161
|
+
'validation-result:Get code validation results'
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
_arguments -C \
|
|
165
|
+
$global_opts \
|
|
166
|
+
'1: :->subcmd' \
|
|
167
|
+
'*:: :->args'
|
|
168
|
+
|
|
169
|
+
case $state in
|
|
170
|
+
subcmd)
|
|
171
|
+
_describe 'brain subcommand' subcmds
|
|
172
|
+
;;
|
|
173
|
+
args)
|
|
174
|
+
case ${words[1]} in
|
|
175
|
+
list)
|
|
176
|
+
_arguments \
|
|
177
|
+
$global_opts \
|
|
178
|
+
'(-c --category)'{-c,--category}'[Filter by category]:category:' \
|
|
179
|
+
'(-v --verbose)'{-v,--verbose}'[Show detailed information]'
|
|
180
|
+
;;
|
|
181
|
+
store-document|ingest-url)
|
|
182
|
+
_arguments \
|
|
183
|
+
$global_opts \
|
|
184
|
+
'*:file:_files'
|
|
185
|
+
;;
|
|
186
|
+
store-memory)
|
|
187
|
+
_arguments \
|
|
188
|
+
$global_opts \
|
|
189
|
+
'--content[Memory content]:content:' \
|
|
190
|
+
'--tags[Tags (comma-separated)]:tags:' \
|
|
191
|
+
'--importance[Importance (0-1)]:importance:'
|
|
192
|
+
;;
|
|
193
|
+
recall-memory|retrieve)
|
|
194
|
+
_arguments \
|
|
195
|
+
$global_opts \
|
|
196
|
+
'--query[Search query]:query:' \
|
|
197
|
+
'--limit[Maximum results]:limit:' \
|
|
198
|
+
'--threshold[Score threshold]:threshold:'
|
|
199
|
+
;;
|
|
200
|
+
validate-code|analyze-code)
|
|
201
|
+
_arguments \
|
|
202
|
+
$global_opts \
|
|
203
|
+
'--code[Code to analyze]:code:' \
|
|
204
|
+
'--language[Programming language]:language:(typescript javascript python go rust java)' \
|
|
205
|
+
'--risk-level[Risk level]:level:(low medium high critical)'
|
|
206
|
+
;;
|
|
207
|
+
orchestrate)
|
|
208
|
+
_arguments \
|
|
209
|
+
$global_opts \
|
|
210
|
+
'--task[Task description]:task:' \
|
|
211
|
+
'--max-agents[Maximum agents]:count:' \
|
|
212
|
+
'--timeout[Timeout in ms]:timeout:'
|
|
213
|
+
;;
|
|
214
|
+
*)
|
|
215
|
+
_arguments $global_opts
|
|
216
|
+
;;
|
|
217
|
+
esac
|
|
218
|
+
;;
|
|
219
|
+
esac
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
# Agent subcommands
|
|
223
|
+
_nexus_agent() {
|
|
224
|
+
local -a subcmds
|
|
225
|
+
subcmds=(
|
|
226
|
+
'run:Run an autonomous agent'
|
|
227
|
+
'list:List available agents'
|
|
228
|
+
'status:Show agent status'
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
_arguments -C \
|
|
232
|
+
$global_opts \
|
|
233
|
+
'1: :->subcmd' \
|
|
234
|
+
'*:: :->args'
|
|
235
|
+
|
|
236
|
+
case $state in
|
|
237
|
+
subcmd)
|
|
238
|
+
_describe 'agent subcommand' subcmds
|
|
239
|
+
;;
|
|
240
|
+
args)
|
|
241
|
+
case ${words[1]} in
|
|
242
|
+
run)
|
|
243
|
+
_arguments \
|
|
244
|
+
$global_opts \
|
|
245
|
+
'--task[Task description]:task:' \
|
|
246
|
+
'--timeout[Timeout in seconds]:timeout:' \
|
|
247
|
+
'--max-iterations[Maximum iterations]:iterations:'
|
|
248
|
+
;;
|
|
249
|
+
*)
|
|
250
|
+
_arguments $global_opts
|
|
251
|
+
;;
|
|
252
|
+
esac
|
|
253
|
+
;;
|
|
254
|
+
esac
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
# Session subcommands
|
|
258
|
+
_nexus_session() {
|
|
259
|
+
local -a subcmds
|
|
260
|
+
subcmds=(
|
|
261
|
+
'save:Save current session'
|
|
262
|
+
'load:Load a saved session'
|
|
263
|
+
'list:List all saved sessions'
|
|
264
|
+
'resume:Resume a session'
|
|
265
|
+
'import:Import session from file'
|
|
266
|
+
'export:Export session to file'
|
|
267
|
+
'delete:Delete a saved session'
|
|
268
|
+
)
|
|
269
|
+
|
|
270
|
+
_arguments -C \
|
|
271
|
+
$global_opts \
|
|
272
|
+
'1: :->subcmd' \
|
|
273
|
+
'*:: :->args'
|
|
274
|
+
|
|
275
|
+
case $state in
|
|
276
|
+
subcmd)
|
|
277
|
+
_describe 'session subcommand' subcmds
|
|
278
|
+
;;
|
|
279
|
+
args)
|
|
280
|
+
case ${words[1]} in
|
|
281
|
+
save)
|
|
282
|
+
_arguments \
|
|
283
|
+
$global_opts \
|
|
284
|
+
'--name[Session name]:name:' \
|
|
285
|
+
'--description[Session description]:description:'
|
|
286
|
+
;;
|
|
287
|
+
load|resume|delete)
|
|
288
|
+
_nexus_session_names
|
|
289
|
+
;;
|
|
290
|
+
import|export)
|
|
291
|
+
_arguments \
|
|
292
|
+
$global_opts \
|
|
293
|
+
'*:file:_files'
|
|
294
|
+
;;
|
|
295
|
+
*)
|
|
296
|
+
_arguments $global_opts
|
|
297
|
+
;;
|
|
298
|
+
esac
|
|
299
|
+
;;
|
|
300
|
+
esac
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
# Plugin subcommands
|
|
304
|
+
_nexus_plugin() {
|
|
305
|
+
local -a subcmds
|
|
306
|
+
subcmds=(
|
|
307
|
+
'install:Install a plugin'
|
|
308
|
+
'uninstall:Uninstall a plugin'
|
|
309
|
+
'list:List installed plugins'
|
|
310
|
+
'init:Initialize a new plugin'
|
|
311
|
+
'enable:Enable a plugin'
|
|
312
|
+
'disable:Disable a plugin'
|
|
313
|
+
'info:Show plugin information'
|
|
314
|
+
)
|
|
315
|
+
|
|
316
|
+
_arguments -C \
|
|
317
|
+
$global_opts \
|
|
318
|
+
'1: :->subcmd' \
|
|
319
|
+
'*:: :->args'
|
|
320
|
+
|
|
321
|
+
case $state in
|
|
322
|
+
subcmd)
|
|
323
|
+
_describe 'plugin subcommand' subcmds
|
|
324
|
+
;;
|
|
325
|
+
args)
|
|
326
|
+
case ${words[1]} in
|
|
327
|
+
install)
|
|
328
|
+
_arguments \
|
|
329
|
+
$global_opts \
|
|
330
|
+
'--path[Install from path]:path:_files -/' \
|
|
331
|
+
'--git[Install from git repository]:git url:' \
|
|
332
|
+
'--npm[Install from npm]:package:'
|
|
333
|
+
;;
|
|
334
|
+
uninstall|enable|disable|info)
|
|
335
|
+
_nexus_plugin_names
|
|
336
|
+
;;
|
|
337
|
+
*)
|
|
338
|
+
_arguments $global_opts
|
|
339
|
+
;;
|
|
340
|
+
esac
|
|
341
|
+
;;
|
|
342
|
+
esac
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
# Workspace subcommands
|
|
346
|
+
_nexus_workspace() {
|
|
347
|
+
local -a subcmds
|
|
348
|
+
subcmds=(
|
|
349
|
+
'init:Initialize workspace'
|
|
350
|
+
'info:Show workspace information'
|
|
351
|
+
'validate:Validate workspace configuration'
|
|
352
|
+
'git-status:Show git status'
|
|
353
|
+
'git-commit:Commit changes'
|
|
354
|
+
)
|
|
355
|
+
|
|
356
|
+
_arguments -C \
|
|
357
|
+
$global_opts \
|
|
358
|
+
'1: :->subcmd' \
|
|
359
|
+
'*:: :->args'
|
|
360
|
+
|
|
361
|
+
case $state in
|
|
362
|
+
subcmd)
|
|
363
|
+
_describe 'workspace subcommand' subcmds
|
|
364
|
+
;;
|
|
365
|
+
args)
|
|
366
|
+
case ${words[1]} in
|
|
367
|
+
init)
|
|
368
|
+
_arguments \
|
|
369
|
+
$global_opts \
|
|
370
|
+
'--name[Workspace name]:name:' \
|
|
371
|
+
'--template[Template to use]:template:' \
|
|
372
|
+
'--path[Workspace path]:path:_files -/'
|
|
373
|
+
;;
|
|
374
|
+
git-commit)
|
|
375
|
+
_arguments \
|
|
376
|
+
$global_opts \
|
|
377
|
+
'(-m --message)'{-m,--message}'[Commit message]:message:' \
|
|
378
|
+
'--amend[Amend previous commit]' \
|
|
379
|
+
'--no-verify[Skip git hooks]'
|
|
380
|
+
;;
|
|
381
|
+
*)
|
|
382
|
+
_arguments $global_opts
|
|
383
|
+
;;
|
|
384
|
+
esac
|
|
385
|
+
;;
|
|
386
|
+
esac
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
# Init command
|
|
390
|
+
_nexus_init() {
|
|
391
|
+
_arguments \
|
|
392
|
+
$global_opts \
|
|
393
|
+
'--name[Project name]:name:' \
|
|
394
|
+
'--template[Template to use]:template:' \
|
|
395
|
+
'--path[Project path]:path:_files -/' \
|
|
396
|
+
'--force[Force overwrite existing files]'
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
# Deploy command
|
|
400
|
+
_nexus_deploy() {
|
|
401
|
+
_arguments \
|
|
402
|
+
$global_opts \
|
|
403
|
+
'--environment[Target environment]:environment:(development staging production)' \
|
|
404
|
+
'--service[Specific service to deploy]:service:_nexus_service_names' \
|
|
405
|
+
'--all[Deploy all services]' \
|
|
406
|
+
'--dry-run[Perform dry run without actual deployment]'
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
# Login command
|
|
410
|
+
_nexus_login() {
|
|
411
|
+
_arguments \
|
|
412
|
+
$global_opts \
|
|
413
|
+
'--username[Username]:username:' \
|
|
414
|
+
'--password[Password]:password:' \
|
|
415
|
+
'--token[Authentication token]:token:' \
|
|
416
|
+
'--sso[Use SSO authentication]'
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
# Logs command
|
|
420
|
+
_nexus_logs() {
|
|
421
|
+
_arguments \
|
|
422
|
+
$global_opts \
|
|
423
|
+
'--service[Service name]:service:_nexus_service_names' \
|
|
424
|
+
'(-f --follow)'{-f,--follow}'[Follow log output]' \
|
|
425
|
+
'--tail[Number of lines to show]:lines:' \
|
|
426
|
+
'--since[Show logs since timestamp]:timestamp:' \
|
|
427
|
+
'--until[Show logs until timestamp]:timestamp:'
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
# Helper: Complete service names
|
|
431
|
+
_nexus_service_names() {
|
|
432
|
+
local -a services
|
|
433
|
+
services=(${(f)"$(nexus services list --output-format text 2>/dev/null | tail -n +2 | awk '{print $1":"$2}')"})
|
|
434
|
+
_describe 'service' services
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
# Helper: Complete session names
|
|
438
|
+
_nexus_session_names() {
|
|
439
|
+
local -a sessions
|
|
440
|
+
sessions=(${(f)"$(nexus session list --output-format text 2>/dev/null | tail -n +2 | awk '{print $1":"$2}')"})
|
|
441
|
+
_describe 'session' sessions
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
# Helper: Complete plugin names
|
|
445
|
+
_nexus_plugin_names() {
|
|
446
|
+
local -a plugins
|
|
447
|
+
plugins=(${(f)"$(nexus plugin list --output-format text 2>/dev/null | tail -n +2 | awk '{print $1":"$2}')"})
|
|
448
|
+
_describe 'plugin' plugins
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
# Run the completion function
|
|
452
|
+
_nexus "$@"
|