@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,528 @@
|
|
|
1
|
+
# Shell Completions for Nexus CLI
|
|
2
|
+
|
|
3
|
+
This guide explains how to install and use shell completions for the Nexus CLI across Bash, Zsh, and Fish shells.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Overview](#overview)
|
|
8
|
+
- [Quick Installation](#quick-installation)
|
|
9
|
+
- [Manual Installation](#manual-installation)
|
|
10
|
+
- [Bash](#bash)
|
|
11
|
+
- [Zsh](#zsh)
|
|
12
|
+
- [Fish](#fish)
|
|
13
|
+
- [Completion Features](#completion-features)
|
|
14
|
+
- [Usage Examples](#usage-examples)
|
|
15
|
+
- [Troubleshooting](#troubleshooting)
|
|
16
|
+
- [Updating Completions](#updating-completions)
|
|
17
|
+
|
|
18
|
+
## Overview
|
|
19
|
+
|
|
20
|
+
The Nexus CLI provides intelligent shell completions for all major shells:
|
|
21
|
+
|
|
22
|
+
- **Bash** - Bourne Again Shell (most common on Linux)
|
|
23
|
+
- **Zsh** - Z Shell (default on macOS)
|
|
24
|
+
- **Fish** - Friendly Interactive Shell
|
|
25
|
+
|
|
26
|
+
Completions provide:
|
|
27
|
+
- Command and subcommand suggestions
|
|
28
|
+
- Option flag completion with descriptions
|
|
29
|
+
- Dynamic completion of service names, sessions, plugins
|
|
30
|
+
- File path completion where appropriate
|
|
31
|
+
- Context-aware suggestions
|
|
32
|
+
|
|
33
|
+
## Quick Installation
|
|
34
|
+
|
|
35
|
+
### Automatic Installation (Recommended)
|
|
36
|
+
|
|
37
|
+
After installing the Nexus CLI, run:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm run completions:install
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This will auto-detect your shell and install the appropriate completions.
|
|
44
|
+
|
|
45
|
+
### Shell-Specific Installation
|
|
46
|
+
|
|
47
|
+
Install for a specific shell:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Bash
|
|
51
|
+
npm run completions:install:bash
|
|
52
|
+
|
|
53
|
+
# Zsh
|
|
54
|
+
npm run completions:install:zsh
|
|
55
|
+
|
|
56
|
+
# Fish
|
|
57
|
+
npm run completions:install:fish
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Using the Installation Script Directly
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Auto-detect shell
|
|
64
|
+
./scripts/install-completions.sh
|
|
65
|
+
|
|
66
|
+
# Install for specific shell
|
|
67
|
+
./scripts/install-completions.sh --shell bash
|
|
68
|
+
./scripts/install-completions.sh --shell zsh
|
|
69
|
+
./scripts/install-completions.sh --shell fish
|
|
70
|
+
|
|
71
|
+
# List available completion files
|
|
72
|
+
./scripts/install-completions.sh --list
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Manual Installation
|
|
76
|
+
|
|
77
|
+
If automatic installation doesn't work, follow these manual steps:
|
|
78
|
+
|
|
79
|
+
### Bash
|
|
80
|
+
|
|
81
|
+
#### Option 1: System-wide (requires sudo)
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
sudo cp completions/nexus.bash /etc/bash_completion.d/nexus
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
#### Option 2: User-local (recommended)
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# Create completions directory
|
|
91
|
+
mkdir -p ~/.local/share/bash-completion/completions
|
|
92
|
+
|
|
93
|
+
# Copy completion file
|
|
94
|
+
cp completions/nexus.bash ~/.local/share/bash-completion/completions/nexus
|
|
95
|
+
|
|
96
|
+
# Add to ~/.bashrc
|
|
97
|
+
echo '[ -f ~/.local/share/bash-completion/completions/nexus ] && source ~/.local/share/bash-completion/completions/nexus' >> ~/.bashrc
|
|
98
|
+
|
|
99
|
+
# Reload shell
|
|
100
|
+
source ~/.bashrc
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### macOS (Homebrew)
|
|
104
|
+
|
|
105
|
+
If you have bash-completion installed via Homebrew:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
cp completions/nexus.bash $(brew --prefix)/etc/bash_completion.d/nexus
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Zsh
|
|
112
|
+
|
|
113
|
+
#### Option 1: Standard location
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Create completions directory
|
|
117
|
+
mkdir -p ~/.zsh/completions
|
|
118
|
+
|
|
119
|
+
# Copy completion file
|
|
120
|
+
cp completions/_nexus ~/.zsh/completions/_nexus
|
|
121
|
+
|
|
122
|
+
# Add to ~/.zshrc (if not already present)
|
|
123
|
+
cat >> ~/.zshrc << 'EOF'
|
|
124
|
+
|
|
125
|
+
# Nexus CLI completions
|
|
126
|
+
fpath=(~/.zsh/completions $fpath)
|
|
127
|
+
autoload -Uz compinit && compinit
|
|
128
|
+
EOF
|
|
129
|
+
|
|
130
|
+
# Reload shell
|
|
131
|
+
exec zsh
|
|
132
|
+
|
|
133
|
+
# Rebuild completion cache
|
|
134
|
+
rm -f ~/.zcompdump
|
|
135
|
+
compinit
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
#### Option 2: System-wide (requires sudo)
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
sudo cp completions/_nexus /usr/local/share/zsh/site-functions/_nexus
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
#### macOS (Homebrew)
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# If using Homebrew's zsh
|
|
148
|
+
cp completions/_nexus $(brew --prefix)/share/zsh/site-functions/_nexus
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Fish
|
|
152
|
+
|
|
153
|
+
Fish completions are the easiest to install:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
# Create Fish completions directory
|
|
157
|
+
mkdir -p ~/.config/fish/completions
|
|
158
|
+
|
|
159
|
+
# Copy completion file
|
|
160
|
+
cp completions/nexus.fish ~/.config/fish/completions/nexus.fish
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Completions are active immediately in new Fish sessions!
|
|
164
|
+
|
|
165
|
+
## Completion Features
|
|
166
|
+
|
|
167
|
+
### Command Completion
|
|
168
|
+
|
|
169
|
+
All main commands are completed with descriptions:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
nexus <TAB>
|
|
173
|
+
# Shows: version, config, workspace, services, nexus, agent, session, plugin, etc.
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Subcommand Completion
|
|
177
|
+
|
|
178
|
+
Each command group has intelligent subcommand completion:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
nexus services <TAB>
|
|
182
|
+
# Shows: list, status, health, info, logs, start, stop, restart, ports
|
|
183
|
+
|
|
184
|
+
nexus nexus <TAB>
|
|
185
|
+
# Shows: list, categories, health, store-memory, recall-memory, etc.
|
|
186
|
+
|
|
187
|
+
nexus agent <TAB>
|
|
188
|
+
# Shows: run, list, status
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Option Completion
|
|
192
|
+
|
|
193
|
+
All options are completed with descriptions:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
nexus --<TAB>
|
|
197
|
+
# Shows: --config, --profile, --output-format, --verbose, --quiet, etc.
|
|
198
|
+
|
|
199
|
+
nexus services list --output-format <TAB>
|
|
200
|
+
# Shows: text, json, yaml, table, stream-json
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Dynamic Completion
|
|
204
|
+
|
|
205
|
+
Completions intelligently fetch available resources:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
# Service names (from running services)
|
|
209
|
+
nexus services start <TAB>
|
|
210
|
+
# Shows: graphrag, mageagent, api-gateway, etc.
|
|
211
|
+
|
|
212
|
+
# Session names (from saved sessions)
|
|
213
|
+
nexus session load <TAB>
|
|
214
|
+
# Shows: my-session-1, debug-session, etc.
|
|
215
|
+
|
|
216
|
+
# Plugin names (from installed plugins)
|
|
217
|
+
nexus plugin disable <TAB>
|
|
218
|
+
# Shows: my-plugin, test-plugin, etc.
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### File Path Completion
|
|
222
|
+
|
|
223
|
+
File paths are completed where appropriate:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
nexus nexus store-document <TAB>
|
|
227
|
+
# Shows: available files in current directory
|
|
228
|
+
|
|
229
|
+
nexus workspace init --path <TAB>
|
|
230
|
+
# Shows: available directories
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Usage Examples
|
|
234
|
+
|
|
235
|
+
### Example 1: Starting a Service
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
# Type the command
|
|
239
|
+
nexus services start <TAB>
|
|
240
|
+
|
|
241
|
+
# Completion shows available services:
|
|
242
|
+
# graphrag mageagent api-gateway postgres redis neo4j
|
|
243
|
+
|
|
244
|
+
# Select one
|
|
245
|
+
nexus services start graphrag
|
|
246
|
+
|
|
247
|
+
# Continue with options
|
|
248
|
+
nexus services start graphrag --output-format <TAB>
|
|
249
|
+
# Shows: text json yaml table stream-json
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Example 2: Storing a Memory in Nexus
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
# Type the command
|
|
256
|
+
nexus nexus store-memory --<TAB>
|
|
257
|
+
|
|
258
|
+
# Completion shows options:
|
|
259
|
+
# --content --tags --importance --verbose --output-format
|
|
260
|
+
|
|
261
|
+
# Build the command
|
|
262
|
+
nexus nexus store-memory \
|
|
263
|
+
--content "User prefers TypeScript strict mode" \
|
|
264
|
+
--tags typescript,preferences \
|
|
265
|
+
--importance 0.8
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Example 3: Loading a Session
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
# Type the command
|
|
272
|
+
nexus session load <TAB>
|
|
273
|
+
|
|
274
|
+
# Completion shows available sessions:
|
|
275
|
+
# refactoring-2024 debugging-session feature-xyz
|
|
276
|
+
|
|
277
|
+
# Select one
|
|
278
|
+
nexus session load refactoring-2024
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Example 4: Using Nexus Tools
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
# List available Nexus tools
|
|
285
|
+
nexus nexus list --<TAB>
|
|
286
|
+
# Shows: --category, --verbose, --output-format
|
|
287
|
+
|
|
288
|
+
# Validate code with completion
|
|
289
|
+
nexus nexus validate-code \
|
|
290
|
+
--language <TAB> # Shows: typescript javascript python go rust java
|
|
291
|
+
--risk-level <TAB> # Shows: low medium high critical
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
## Troubleshooting
|
|
295
|
+
|
|
296
|
+
### Completions Not Working (Bash)
|
|
297
|
+
|
|
298
|
+
**Problem**: Tab completion doesn't work after installation.
|
|
299
|
+
|
|
300
|
+
**Solutions**:
|
|
301
|
+
|
|
302
|
+
1. Ensure bash-completion is installed:
|
|
303
|
+
```bash
|
|
304
|
+
# Ubuntu/Debian
|
|
305
|
+
sudo apt-get install bash-completion
|
|
306
|
+
|
|
307
|
+
# macOS (Homebrew)
|
|
308
|
+
brew install bash-completion@2
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
2. Verify the completion file is sourced:
|
|
312
|
+
```bash
|
|
313
|
+
grep -r "nexus.bash" ~/.bashrc ~/.bash_profile
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
3. Reload your shell:
|
|
317
|
+
```bash
|
|
318
|
+
source ~/.bashrc
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Completions Not Working (Zsh)
|
|
322
|
+
|
|
323
|
+
**Problem**: Tab completion doesn't work or shows "command not found: compdef".
|
|
324
|
+
|
|
325
|
+
**Solutions**:
|
|
326
|
+
|
|
327
|
+
1. Ensure compinit is called in ~/.zshrc:
|
|
328
|
+
```bash
|
|
329
|
+
grep "compinit" ~/.zshrc
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
If not found, add:
|
|
333
|
+
```bash
|
|
334
|
+
autoload -Uz compinit && compinit
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
2. Rebuild the completion cache:
|
|
338
|
+
```bash
|
|
339
|
+
rm -f ~/.zcompdump*
|
|
340
|
+
exec zsh
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
3. Check fpath includes your completions directory:
|
|
344
|
+
```bash
|
|
345
|
+
echo $fpath
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### Completions Not Working (Fish)
|
|
349
|
+
|
|
350
|
+
**Problem**: Completions don't appear.
|
|
351
|
+
|
|
352
|
+
**Solutions**:
|
|
353
|
+
|
|
354
|
+
1. Verify the file is in the correct location:
|
|
355
|
+
```bash
|
|
356
|
+
ls -la ~/.config/fish/completions/nexus.fish
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
2. Restart Fish:
|
|
360
|
+
```bash
|
|
361
|
+
exec fish
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
3. Test completion directly:
|
|
365
|
+
```bash
|
|
366
|
+
complete -C "nexus "
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
### Dynamic Completions Fail
|
|
370
|
+
|
|
371
|
+
**Problem**: Service names, session names, or plugin names don't complete.
|
|
372
|
+
|
|
373
|
+
**Cause**: The CLI command to fetch dynamic data failed (e.g., `nexus services list`).
|
|
374
|
+
|
|
375
|
+
**Solutions**:
|
|
376
|
+
|
|
377
|
+
1. Ensure Nexus CLI is installed and in PATH:
|
|
378
|
+
```bash
|
|
379
|
+
which nexus
|
|
380
|
+
nexus --version
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
2. Test the underlying command:
|
|
384
|
+
```bash
|
|
385
|
+
nexus services list --output-format text
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
3. Check for errors:
|
|
389
|
+
```bash
|
|
390
|
+
nexus services list 2>&1 | grep -i error
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
### Completions Show Old Commands
|
|
394
|
+
|
|
395
|
+
**Problem**: Completions show outdated or removed commands.
|
|
396
|
+
|
|
397
|
+
**Solution**: Reinstall completions (see [Updating Completions](#updating-completions)).
|
|
398
|
+
|
|
399
|
+
## Updating Completions
|
|
400
|
+
|
|
401
|
+
When you update the Nexus CLI, you may need to update completions:
|
|
402
|
+
|
|
403
|
+
### Automatic Update
|
|
404
|
+
|
|
405
|
+
```bash
|
|
406
|
+
npm run completions:install
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
### Manual Update
|
|
410
|
+
|
|
411
|
+
#### Bash
|
|
412
|
+
```bash
|
|
413
|
+
cp completions/nexus.bash ~/.local/share/bash-completion/completions/nexus
|
|
414
|
+
source ~/.bashrc
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
#### Zsh
|
|
418
|
+
```bash
|
|
419
|
+
cp completions/_nexus ~/.zsh/completions/_nexus
|
|
420
|
+
rm -f ~/.zcompdump
|
|
421
|
+
exec zsh
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
#### Fish
|
|
425
|
+
```bash
|
|
426
|
+
cp completions/nexus.fish ~/.config/fish/completions/nexus.fish
|
|
427
|
+
# Completions update automatically
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
## Advanced Usage
|
|
431
|
+
|
|
432
|
+
### Completion Cache (Zsh)
|
|
433
|
+
|
|
434
|
+
Zsh caches completions for performance. To force a refresh:
|
|
435
|
+
|
|
436
|
+
```bash
|
|
437
|
+
# Clear cache
|
|
438
|
+
rm -f ~/.zcompdump*
|
|
439
|
+
|
|
440
|
+
# Reload completions
|
|
441
|
+
compinit
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### Debugging Completions (Zsh)
|
|
445
|
+
|
|
446
|
+
Enable verbose completion debugging:
|
|
447
|
+
|
|
448
|
+
```bash
|
|
449
|
+
# Add to ~/.zshrc temporarily
|
|
450
|
+
zstyle ':completion:*' verbose yes
|
|
451
|
+
zstyle ':completion:*:descriptions' format '%B%d%b'
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
### Custom Completion Paths
|
|
455
|
+
|
|
456
|
+
To install completions to a custom location:
|
|
457
|
+
|
|
458
|
+
#### Bash
|
|
459
|
+
```bash
|
|
460
|
+
# Copy to custom directory
|
|
461
|
+
cp completions/nexus.bash /path/to/custom/dir/nexus
|
|
462
|
+
|
|
463
|
+
# Source in ~/.bashrc
|
|
464
|
+
echo 'source /path/to/custom/dir/nexus' >> ~/.bashrc
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
#### Zsh
|
|
468
|
+
```bash
|
|
469
|
+
# Copy to custom directory
|
|
470
|
+
cp completions/_nexus /path/to/custom/dir/_nexus
|
|
471
|
+
|
|
472
|
+
# Add to fpath in ~/.zshrc
|
|
473
|
+
echo 'fpath=(/path/to/custom/dir $fpath)' >> ~/.zshrc
|
|
474
|
+
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
## Shell-Specific Features
|
|
478
|
+
|
|
479
|
+
### Bash Features
|
|
480
|
+
|
|
481
|
+
- Context-aware completion based on previous arguments
|
|
482
|
+
- Dynamic service/session/plugin name fetching
|
|
483
|
+
- File path completion with `_filedir`
|
|
484
|
+
- Option value suggestions
|
|
485
|
+
|
|
486
|
+
### Zsh Features
|
|
487
|
+
|
|
488
|
+
- Rich descriptions for all commands and options
|
|
489
|
+
- Advanced argument handling with `_arguments`
|
|
490
|
+
- Multiple completion strategies
|
|
491
|
+
- Cached completion for performance
|
|
492
|
+
- Color-coded suggestions
|
|
493
|
+
|
|
494
|
+
### Fish Features
|
|
495
|
+
|
|
496
|
+
- Inline descriptions as you type
|
|
497
|
+
- Real-time completion updates
|
|
498
|
+
- Fuzzy matching support
|
|
499
|
+
- Zero configuration needed
|
|
500
|
+
|
|
501
|
+
## Contributing
|
|
502
|
+
|
|
503
|
+
Found a bug or want to add completions for a new command?
|
|
504
|
+
|
|
505
|
+
1. Edit the appropriate completion file:
|
|
506
|
+
- Bash: `completions/nexus.bash`
|
|
507
|
+
- Zsh: `completions/_nexus`
|
|
508
|
+
- Fish: `completions/nexus.fish`
|
|
509
|
+
|
|
510
|
+
2. Test your changes locally
|
|
511
|
+
|
|
512
|
+
3. Submit a pull request
|
|
513
|
+
|
|
514
|
+
## Support
|
|
515
|
+
|
|
516
|
+
If you encounter issues with completions:
|
|
517
|
+
|
|
518
|
+
1. Check this troubleshooting guide
|
|
519
|
+
2. Verify your shell version: `bash --version`, `zsh --version`, or `fish --version`
|
|
520
|
+
3. Open an issue on GitHub with:
|
|
521
|
+
- Your shell and version
|
|
522
|
+
- Installation method used
|
|
523
|
+
- Error messages or unexpected behavior
|
|
524
|
+
- Output of `echo $SHELL`
|
|
525
|
+
|
|
526
|
+
## License
|
|
527
|
+
|
|
528
|
+
Completions are part of the Nexus CLI and released under the MIT License.
|