@adverant-nexus/cli 2.0.0 → 3.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/README.md +34 -552
- package/dist/.tsbuildinfo +1 -0
- package/dist/auth/auth-client.d.ts +84 -0
- package/dist/auth/auth-client.d.ts.map +1 -0
- package/dist/auth/auth-client.js +145 -0
- package/dist/auth/auth-client.js.map +1 -0
- package/dist/auth/credentials-manager.d.ts +82 -0
- package/dist/auth/credentials-manager.d.ts.map +1 -0
- package/dist/auth/credentials-manager.js +200 -0
- package/dist/auth/credentials-manager.js.map +1 -0
- package/dist/cli.d.ts +4 -29
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +167 -111
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent/index.d.ts +1 -2
- package/dist/commands/agent/index.d.ts.map +1 -1
- package/dist/commands/agent/index.js +1 -3
- package/dist/commands/agent/index.js.map +1 -1
- package/dist/commands/agent/list.d.ts +0 -1
- package/dist/commands/agent/list.d.ts.map +1 -1
- package/dist/commands/agent/list.js +32 -29
- package/dist/commands/agent/list.js.map +1 -1
- package/dist/commands/agent/run.d.ts +1 -3
- package/dist/commands/agent/run.d.ts.map +1 -1
- package/dist/commands/agent/run.js +92 -107
- package/dist/commands/agent/run.js.map +1 -1
- package/dist/commands/agent/status.d.ts +0 -1
- package/dist/commands/agent/status.d.ts.map +1 -1
- package/dist/commands/agent/status.js +37 -32
- package/dist/commands/agent/status.js.map +1 -1
- package/dist/commands/api-key/create.d.ts +10 -0
- package/dist/commands/api-key/create.d.ts.map +1 -0
- package/dist/commands/api-key/create.js +314 -0
- package/dist/commands/api-key/create.js.map +1 -0
- package/dist/commands/api-key/delete.d.ts +10 -0
- package/dist/commands/api-key/delete.d.ts.map +1 -0
- package/dist/commands/api-key/delete.js +132 -0
- package/dist/commands/api-key/delete.js.map +1 -0
- package/dist/commands/api-key/index.d.ts +11 -0
- package/dist/commands/api-key/index.d.ts.map +1 -0
- package/dist/commands/api-key/index.js +11 -0
- package/dist/commands/api-key/index.js.map +1 -0
- package/dist/commands/api-key/info.d.ts +10 -0
- package/dist/commands/api-key/info.d.ts.map +1 -0
- package/dist/commands/api-key/info.js +163 -0
- package/dist/commands/api-key/info.js.map +1 -0
- package/dist/commands/api-key/list.d.ts +10 -0
- package/dist/commands/api-key/list.d.ts.map +1 -0
- package/dist/commands/api-key/list.js +130 -0
- package/dist/commands/api-key/list.js.map +1 -0
- package/dist/commands/api-key/rotate.d.ts +10 -0
- package/dist/commands/api-key/rotate.d.ts.map +1 -0
- package/dist/commands/api-key/rotate.js +196 -0
- package/dist/commands/api-key/rotate.js.map +1 -0
- package/dist/commands/auth/index.d.ts +10 -0
- package/dist/commands/auth/index.d.ts.map +1 -0
- package/dist/commands/auth/index.js +10 -0
- package/dist/commands/auth/index.js.map +1 -0
- package/dist/commands/auth/login.d.ts +10 -0
- package/dist/commands/auth/login.d.ts.map +1 -0
- package/dist/commands/auth/login.js +162 -0
- package/dist/commands/auth/login.js.map +1 -0
- package/dist/commands/auth/logout.d.ts +10 -0
- package/dist/commands/auth/logout.d.ts.map +1 -0
- package/dist/commands/auth/logout.js +89 -0
- package/dist/commands/auth/logout.js.map +1 -0
- package/dist/commands/auth/register.d.ts +10 -0
- package/dist/commands/auth/register.d.ts.map +1 -0
- package/dist/commands/auth/register.js +289 -0
- package/dist/commands/auth/register.js.map +1 -0
- package/dist/commands/auth/whoami.d.ts +10 -0
- package/dist/commands/auth/whoami.d.ts.map +1 -0
- package/dist/commands/auth/whoami.js +220 -0
- package/dist/commands/auth/whoami.js.map +1 -0
- package/dist/commands/dynamic/graphrag-commands.d.ts +1 -7
- package/dist/commands/dynamic/graphrag-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/graphrag-commands.js +23 -440
- package/dist/commands/dynamic/graphrag-commands.js.map +1 -1
- package/dist/commands/dynamic/index.d.ts +3 -1
- package/dist/commands/dynamic/index.d.ts.map +1 -1
- package/dist/commands/dynamic/index.js +1 -0
- package/dist/commands/dynamic/index.js.map +1 -1
- package/dist/commands/dynamic/mageagent-commands.d.ts +3 -1
- package/dist/commands/dynamic/mageagent-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/mageagent-commands.js +52 -13
- package/dist/commands/dynamic/mageagent-commands.js.map +1 -1
- package/dist/commands/dynamic/{nexus-commands.d.ts → mcp-commands.d.ts} +17 -22
- package/dist/commands/dynamic/mcp-commands.d.ts.map +1 -0
- package/dist/commands/dynamic/mcp-commands.js +199 -0
- package/dist/commands/dynamic/mcp-commands.js.map +1 -0
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts +8 -17
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts.map +1 -1
- package/dist/commands/dynamic/mcp-tool-mapper.js +28 -105
- package/dist/commands/dynamic/mcp-tool-mapper.js.map +1 -1
- package/dist/commands/dynamic/sandbox-commands.d.ts +3 -1
- package/dist/commands/dynamic/sandbox-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/sandbox-commands.js +48 -13
- package/dist/commands/dynamic/sandbox-commands.js.map +1 -1
- package/dist/commands/org/create.d.ts +10 -0
- package/dist/commands/org/create.d.ts.map +1 -0
- package/dist/commands/org/create.js +134 -0
- package/dist/commands/org/create.js.map +1 -0
- package/dist/commands/org/index.d.ts +10 -0
- package/dist/commands/org/index.d.ts.map +1 -0
- package/dist/commands/org/index.js +10 -0
- package/dist/commands/org/index.js.map +1 -0
- package/dist/commands/org/info.d.ts +10 -0
- package/dist/commands/org/info.d.ts.map +1 -0
- package/dist/commands/org/info.js +129 -0
- package/dist/commands/org/info.js.map +1 -0
- package/dist/commands/org/list.d.ts +10 -0
- package/dist/commands/org/list.d.ts.map +1 -0
- package/dist/commands/org/list.js +99 -0
- package/dist/commands/org/list.js.map +1 -0
- package/dist/commands/org/switch.d.ts +10 -0
- package/dist/commands/org/switch.d.ts.map +1 -0
- package/dist/commands/org/switch.js +129 -0
- package/dist/commands/org/switch.js.map +1 -0
- package/dist/commands/plugin/disable.d.ts +1 -1
- package/dist/commands/plugin/disable.d.ts.map +1 -1
- package/dist/commands/plugin/disable.js +35 -22
- package/dist/commands/plugin/disable.js.map +1 -1
- package/dist/commands/plugin/enable.d.ts +1 -1
- package/dist/commands/plugin/enable.d.ts.map +1 -1
- package/dist/commands/plugin/enable.js +48 -27
- package/dist/commands/plugin/enable.js.map +1 -1
- package/dist/commands/plugin/index.d.ts +1 -1
- package/dist/commands/plugin/index.d.ts.map +1 -1
- package/dist/commands/plugin/index.js +19 -16
- package/dist/commands/plugin/index.js.map +1 -1
- package/dist/commands/plugin/info.d.ts +1 -1
- package/dist/commands/plugin/info.d.ts.map +1 -1
- package/dist/commands/plugin/info.js +115 -113
- package/dist/commands/plugin/info.js.map +1 -1
- package/dist/commands/plugin/init.d.ts +1 -1
- package/dist/commands/plugin/init.d.ts.map +1 -1
- package/dist/commands/plugin/init.js +226 -69
- package/dist/commands/plugin/init.js.map +1 -1
- package/dist/commands/plugin/install.d.ts +1 -1
- package/dist/commands/plugin/install.d.ts.map +1 -1
- package/dist/commands/plugin/install.js +69 -44
- package/dist/commands/plugin/install.js.map +1 -1
- package/dist/commands/plugin/list.d.ts +1 -1
- package/dist/commands/plugin/list.d.ts.map +1 -1
- package/dist/commands/plugin/list.js +98 -58
- package/dist/commands/plugin/list.js.map +1 -1
- package/dist/commands/plugin/uninstall.d.ts +1 -1
- package/dist/commands/plugin/uninstall.d.ts.map +1 -1
- package/dist/commands/plugin/uninstall.js +44 -38
- package/dist/commands/plugin/uninstall.js.map +1 -1
- package/dist/commands/services/health.d.ts +4 -3
- package/dist/commands/services/health.d.ts.map +1 -1
- package/dist/commands/services/health.js +171 -60
- package/dist/commands/services/health.js.map +1 -1
- package/dist/commands/services/index.d.ts +2 -10
- package/dist/commands/services/index.d.ts.map +1 -1
- package/dist/commands/services/index.js +26 -20
- package/dist/commands/services/index.js.map +1 -1
- package/dist/commands/services/info.d.ts +4 -3
- package/dist/commands/services/info.d.ts.map +1 -1
- package/dist/commands/services/info.js +142 -60
- package/dist/commands/services/info.js.map +1 -1
- package/dist/commands/services/list.d.ts +2 -3
- package/dist/commands/services/list.d.ts.map +1 -1
- package/dist/commands/services/list.js +85 -36
- package/dist/commands/services/list.js.map +1 -1
- package/dist/commands/services/logs.d.ts +4 -3
- package/dist/commands/services/logs.d.ts.map +1 -1
- package/dist/commands/services/logs.js +55 -94
- package/dist/commands/services/logs.js.map +1 -1
- package/dist/commands/services/ports.d.ts +4 -3
- package/dist/commands/services/ports.d.ts.map +1 -1
- package/dist/commands/services/ports.js +129 -58
- package/dist/commands/services/ports.js.map +1 -1
- package/dist/commands/services/restart.d.ts +4 -3
- package/dist/commands/services/restart.d.ts.map +1 -1
- package/dist/commands/services/restart.js +89 -55
- package/dist/commands/services/restart.js.map +1 -1
- package/dist/commands/services/start.d.ts +4 -3
- package/dist/commands/services/start.d.ts.map +1 -1
- package/dist/commands/services/start.js +87 -55
- package/dist/commands/services/start.js.map +1 -1
- package/dist/commands/services/status.d.ts +2 -3
- package/dist/commands/services/status.d.ts.map +1 -1
- package/dist/commands/services/status.js +141 -82
- package/dist/commands/services/status.js.map +1 -1
- package/dist/commands/services/stop.d.ts +4 -3
- package/dist/commands/services/stop.d.ts.map +1 -1
- package/dist/commands/services/stop.js +91 -55
- package/dist/commands/services/stop.js.map +1 -1
- package/dist/commands/session/delete.js +2 -2
- package/dist/commands/session/delete.js.map +1 -1
- package/dist/commands/session/export.js +3 -3
- package/dist/commands/session/export.js.map +1 -1
- package/dist/commands/session/import.d.ts.map +1 -1
- package/dist/commands/session/import.js +3 -4
- package/dist/commands/session/import.js.map +1 -1
- package/dist/commands/session/list.d.ts.map +1 -1
- package/dist/commands/session/list.js +3 -3
- package/dist/commands/session/list.js.map +1 -1
- package/dist/commands/session/load.d.ts.map +1 -1
- package/dist/commands/session/load.js +4 -4
- package/dist/commands/session/load.js.map +1 -1
- package/dist/commands/session/resume.d.ts.map +1 -1
- package/dist/commands/session/resume.js +36 -15
- package/dist/commands/session/resume.js.map +1 -1
- package/dist/commands/session/save.d.ts.map +1 -1
- package/dist/commands/session/save.js +20 -15
- package/dist/commands/session/save.js.map +1 -1
- package/dist/commands/workspace/git-commit.d.ts.map +1 -1
- package/dist/commands/workspace/git-commit.js +16 -33
- package/dist/commands/workspace/git-commit.js.map +1 -1
- package/dist/commands/workspace/git-status.d.ts.map +1 -1
- package/dist/commands/workspace/git-status.js +22 -17
- package/dist/commands/workspace/git-status.js.map +1 -1
- package/dist/commands/workspace/index.d.ts.map +1 -1
- package/dist/commands/workspace/index.js +0 -1
- package/dist/commands/workspace/index.js.map +1 -1
- package/dist/commands/workspace/info.d.ts.map +1 -1
- package/dist/commands/workspace/info.js +26 -133
- package/dist/commands/workspace/info.js.map +1 -1
- package/dist/commands/workspace/init.d.ts.map +1 -1
- package/dist/commands/workspace/init.js +10 -13
- package/dist/commands/workspace/init.js.map +1 -1
- package/dist/commands/workspace/validate.d.ts.map +1 -1
- package/dist/commands/workspace/validate.js +12 -16
- package/dist/commands/workspace/validate.js.map +1 -1
- package/dist/core/config/config-manager.d.ts +16 -3
- package/dist/core/config/config-manager.d.ts.map +1 -1
- package/dist/core/config/config-manager.js +57 -89
- package/dist/core/config/config-manager.js.map +1 -1
- package/dist/core/config/index.d.ts +10 -0
- package/dist/core/config/index.d.ts.map +1 -0
- package/dist/core/config/index.js +9 -0
- package/dist/core/config/index.js.map +1 -0
- package/dist/core/config/profile-manager.d.ts +1 -1
- package/dist/core/config/profile-manager.d.ts.map +1 -1
- package/dist/core/config/profile-manager.js +39 -22
- package/dist/core/config/profile-manager.js.map +1 -1
- package/dist/core/config/workspace-detector.d.ts +3 -3
- package/dist/core/config/workspace-detector.d.ts.map +1 -1
- package/dist/core/config/workspace-detector.js +17 -25
- package/dist/core/config/workspace-detector.js.map +1 -1
- package/dist/core/discovery/docker-parser.d.ts +32 -5
- package/dist/core/discovery/docker-parser.d.ts.map +1 -1
- package/dist/core/discovery/docker-parser.js +78 -118
- package/dist/core/discovery/docker-parser.js.map +1 -1
- package/dist/core/discovery/index.d.ts +6 -2
- package/dist/core/discovery/index.d.ts.map +1 -1
- package/dist/core/discovery/index.js +6 -2
- package/dist/core/discovery/index.js.map +1 -1
- package/dist/core/discovery/mcp-discovery.d.ts +33 -2
- package/dist/core/discovery/mcp-discovery.d.ts.map +1 -1
- package/dist/core/discovery/mcp-discovery.js +74 -40
- package/dist/core/discovery/mcp-discovery.js.map +1 -1
- package/dist/core/discovery/openapi-parser.d.ts +39 -1
- package/dist/core/discovery/openapi-parser.d.ts.map +1 -1
- package/dist/core/discovery/openapi-parser.js +60 -5
- package/dist/core/discovery/openapi-parser.js.map +1 -1
- package/dist/core/discovery/plugin-discovery.d.ts +45 -2
- package/dist/core/discovery/plugin-discovery.d.ts.map +1 -1
- package/dist/core/discovery/plugin-discovery.js +53 -2
- package/dist/core/discovery/plugin-discovery.js.map +1 -1
- package/dist/core/discovery/service-discovery.d.ts +110 -7
- package/dist/core/discovery/service-discovery.d.ts.map +1 -1
- package/dist/core/discovery/service-discovery.js +123 -23
- package/dist/core/discovery/service-discovery.js.map +1 -1
- package/dist/core/discovery/service-metadata-loader.d.ts +88 -0
- package/dist/core/discovery/service-metadata-loader.d.ts.map +1 -0
- package/dist/core/discovery/service-metadata-loader.js +161 -0
- package/dist/core/discovery/service-metadata-loader.js.map +1 -0
- package/dist/core/docker/docker-executor.d.ts +234 -0
- package/dist/core/docker/docker-executor.d.ts.map +1 -0
- package/dist/core/docker/docker-executor.js +375 -0
- package/dist/core/docker/docker-executor.js.map +1 -0
- package/dist/core/logging/index.d.ts +7 -0
- package/dist/core/logging/index.d.ts.map +1 -0
- package/dist/core/logging/index.js +7 -0
- package/dist/core/logging/index.js.map +1 -0
- package/dist/core/logging/logger.d.ts +152 -0
- package/dist/core/logging/logger.d.ts.map +1 -0
- package/dist/core/logging/logger.js +338 -0
- package/dist/core/logging/logger.js.map +1 -0
- package/dist/core/router/command-registry.d.ts +145 -8
- package/dist/core/router/command-registry.d.ts.map +1 -1
- package/dist/core/router/command-registry.js +200 -13
- package/dist/core/router/command-registry.js.map +1 -1
- package/dist/core/router/command-router.d.ts +116 -6
- package/dist/core/router/command-router.d.ts.map +1 -1
- package/dist/core/router/command-router.js +223 -19
- package/dist/core/router/command-router.js.map +1 -1
- package/dist/core/router/examples/commander-integration.d.ts +20 -0
- package/dist/core/router/examples/commander-integration.d.ts.map +1 -0
- package/dist/core/router/examples/commander-integration.js +345 -0
- package/dist/core/router/examples/commander-integration.js.map +1 -0
- package/dist/core/router/index.d.ts +12 -4
- package/dist/core/router/index.d.ts.map +1 -1
- package/dist/core/router/index.js +14 -3
- package/dist/core/router/index.js.map +1 -1
- package/dist/core/router/middleware.d.ts +74 -0
- package/dist/core/router/middleware.d.ts.map +1 -0
- package/dist/core/router/middleware.js +227 -0
- package/dist/core/router/middleware.js.map +1 -0
- package/dist/core/session/context-manager.d.ts +9 -4
- package/dist/core/session/context-manager.d.ts.map +1 -1
- package/dist/core/session/context-manager.js +17 -8
- package/dist/core/session/context-manager.js.map +1 -1
- package/dist/core/session/env-sanitizer.d.ts +74 -0
- package/dist/core/session/env-sanitizer.d.ts.map +1 -0
- package/dist/core/session/env-sanitizer.js +219 -0
- package/dist/core/session/env-sanitizer.js.map +1 -0
- package/dist/core/session/history-manager.d.ts +1 -1
- package/dist/core/session/history-manager.d.ts.map +1 -1
- package/dist/core/session/history-manager.js +5 -2
- package/dist/core/session/history-manager.js.map +1 -1
- package/dist/core/session/index.d.ts +1 -0
- package/dist/core/session/index.d.ts.map +1 -1
- package/dist/core/session/index.js +1 -0
- package/dist/core/session/index.js.map +1 -1
- package/dist/core/session/session-manager.d.ts +13 -1
- package/dist/core/session/session-manager.d.ts.map +1 -1
- package/dist/core/session/session-manager.js +33 -2
- package/dist/core/session/session-manager.js.map +1 -1
- package/dist/core/session/session-storage.d.ts +4 -1
- package/dist/core/session/session-storage.d.ts.map +1 -1
- package/dist/core/session/session-storage.js +29 -27
- package/dist/core/session/session-storage.js.map +1 -1
- package/dist/core/transport/http-client.d.ts +82 -9
- package/dist/core/transport/http-client.d.ts.map +1 -1
- package/dist/core/transport/http-client.js +255 -130
- package/dist/core/transport/http-client.js.map +1 -1
- package/dist/core/transport/index.d.ts +2 -2
- package/dist/core/transport/index.d.ts.map +1 -1
- package/dist/core/transport/index.js +1 -1
- package/dist/core/transport/mcp-client.d.ts +87 -14
- package/dist/core/transport/mcp-client.d.ts.map +1 -1
- package/dist/core/transport/mcp-client.js +263 -63
- package/dist/core/transport/mcp-client.js.map +1 -1
- package/dist/core/transport/stream-handler.d.ts +36 -5
- package/dist/core/transport/stream-handler.d.ts.map +1 -1
- package/dist/core/transport/stream-handler.js +232 -43
- package/dist/core/transport/stream-handler.js.map +1 -1
- package/dist/core/transport/websocket-client.d.ts +31 -4
- package/dist/core/transport/websocket-client.d.ts.map +1 -1
- package/dist/core/transport/websocket-client.js +178 -65
- package/dist/core/transport/websocket-client.js.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -90
- package/dist/index.js.map +1 -1
- package/dist/output/index.d.ts +0 -3
- package/dist/output/index.d.ts.map +1 -1
- package/dist/output/index.js +4 -3
- package/dist/output/index.js.map +1 -1
- package/dist/repl/completer.d.ts +2 -2
- package/dist/repl/completer.d.ts.map +1 -1
- package/dist/repl/completer.js +5 -5
- package/dist/repl/completer.js.map +1 -1
- package/dist/repl/evaluator.d.ts +9 -3
- package/dist/repl/evaluator.d.ts.map +1 -1
- package/dist/repl/evaluator.js +78 -20
- package/dist/repl/evaluator.js.map +1 -1
- package/dist/repl/renderer.d.ts +2 -2
- package/dist/repl/renderer.d.ts.map +1 -1
- package/dist/repl/renderer.js +4 -5
- package/dist/repl/renderer.js.map +1 -1
- package/dist/repl/repl.d.ts +8 -4
- package/dist/repl/repl.d.ts.map +1 -1
- package/dist/repl/repl.js +68 -34
- package/dist/repl/repl.js.map +1 -1
- package/dist/session/context-manager.d.ts +5 -0
- package/dist/session/context-manager.d.ts.map +1 -0
- package/dist/session/context-manager.js +5 -0
- package/dist/session/context-manager.js.map +1 -0
- package/dist/session/history-manager.d.ts +5 -0
- package/dist/session/history-manager.d.ts.map +1 -0
- package/dist/session/history-manager.js +5 -0
- package/dist/session/history-manager.js.map +1 -0
- package/dist/session/session-manager.d.ts +5 -0
- package/dist/session/session-manager.d.ts.map +1 -0
- package/dist/session/session-manager.js +5 -0
- package/dist/session/session-manager.js.map +1 -0
- package/dist/utils/banner.d.ts +55 -0
- package/dist/utils/banner.d.ts.map +1 -0
- package/dist/utils/banner.js +257 -0
- package/dist/utils/banner.js.map +1 -0
- package/package.json +21 -36
- package/ARCHITECTURE.md +0 -1366
- package/LICENSE +0 -21
- package/completions/_nexus +0 -452
- package/completions/nexus.bash +0 -329
- package/completions/nexus.fish +0 -187
- package/dist/commands/compute/agent.d.ts +0 -21
- package/dist/commands/compute/agent.d.ts.map +0 -1
- package/dist/commands/compute/agent.js +0 -158
- package/dist/commands/compute/agent.js.map +0 -1
- package/dist/commands/compute/index.d.ts +0 -10
- package/dist/commands/compute/index.d.ts.map +0 -1
- package/dist/commands/compute/index.js +0 -27
- package/dist/commands/compute/index.js.map +0 -1
- package/dist/commands/compute/lib/hardware-detection.d.ts +0 -52
- package/dist/commands/compute/lib/hardware-detection.d.ts.map +0 -1
- package/dist/commands/compute/lib/hardware-detection.js +0 -432
- package/dist/commands/compute/lib/hardware-detection.js.map +0 -1
- package/dist/commands/compute/lib/local-compute-agent.d.ts +0 -143
- package/dist/commands/compute/lib/local-compute-agent.d.ts.map +0 -1
- package/dist/commands/compute/lib/local-compute-agent.js +0 -1162
- package/dist/commands/compute/lib/local-compute-agent.js.map +0 -1
- package/dist/commands/compute/lib/local-compute-client.d.ts +0 -89
- package/dist/commands/compute/lib/local-compute-client.d.ts.map +0 -1
- package/dist/commands/compute/lib/local-compute-client.js +0 -388
- package/dist/commands/compute/lib/local-compute-client.js.map +0 -1
- package/dist/commands/compute/list.d.ts +0 -14
- package/dist/commands/compute/list.d.ts.map +0 -1
- package/dist/commands/compute/list.js +0 -164
- package/dist/commands/compute/list.js.map +0 -1
- package/dist/commands/compute/logs.d.ts +0 -14
- package/dist/commands/compute/logs.d.ts.map +0 -1
- package/dist/commands/compute/logs.js +0 -105
- package/dist/commands/compute/logs.js.map +0 -1
- package/dist/commands/compute/resources.d.ts +0 -14
- package/dist/commands/compute/resources.d.ts.map +0 -1
- package/dist/commands/compute/resources.js +0 -163
- package/dist/commands/compute/resources.js.map +0 -1
- package/dist/commands/compute/status.d.ts +0 -13
- package/dist/commands/compute/status.d.ts.map +0 -1
- package/dist/commands/compute/status.js +0 -223
- package/dist/commands/compute/status.js.map +0 -1
- package/dist/commands/compute/submit.d.ts +0 -19
- package/dist/commands/compute/submit.d.ts.map +0 -1
- package/dist/commands/compute/submit.js +0 -99
- package/dist/commands/compute/submit.js.map +0 -1
- package/dist/commands/deploy.d.ts +0 -11
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -117
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/dynamic/nexus-commands.d.ts.map +0 -1
- package/dist/commands/dynamic/nexus-commands.js +0 -426
- package/dist/commands/dynamic/nexus-commands.js.map +0 -1
- package/dist/commands/init.d.ts +0 -11
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -128
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/list.d.ts +0 -10
- package/dist/commands/list.d.ts.map +0 -1
- package/dist/commands/list.js +0 -81
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/login.d.ts +0 -10
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/login.js +0 -83
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/logs.d.ts +0 -11
- package/dist/commands/logs.d.ts.map +0 -1
- package/dist/commands/logs.js +0 -79
- package/dist/commands/logs.js.map +0 -1
- package/dist/commands/nexus/index.d.ts +0 -69
- package/dist/commands/nexus/index.d.ts.map +0 -1
- package/dist/commands/nexus/index.js +0 -336
- package/dist/commands/nexus/index.js.map +0 -1
- package/dist/commands/register.d.ts +0 -10
- package/dist/commands/register.d.ts.map +0 -1
- package/dist/commands/register.js +0 -85
- package/dist/commands/register.js.map +0 -1
- package/dist/core/agent-client.d.ts +0 -49
- package/dist/core/agent-client.d.ts.map +0 -1
- package/dist/core/agent-client.js +0 -289
- package/dist/core/agent-client.js.map +0 -1
- package/dist/core/nexus-client.d.ts +0 -119
- package/dist/core/nexus-client.d.ts.map +0 -1
- package/dist/core/nexus-client.js +0 -292
- package/dist/core/nexus-client.js.map +0 -1
- package/dist/core/nexus-tool-executor.d.ts +0 -102
- package/dist/core/nexus-tool-executor.d.ts.map +0 -1
- package/dist/core/nexus-tool-executor.js +0 -386
- package/dist/core/nexus-tool-executor.js.map +0 -1
- package/dist/core/react-handler.d.ts +0 -17
- package/dist/core/react-handler.d.ts.map +0 -1
- package/dist/core/react-handler.js +0 -296
- package/dist/core/react-handler.js.map +0 -1
- package/dist/output/formatters/index.d.ts +0 -9
- package/dist/output/formatters/index.d.ts.map +0 -1
- package/dist/output/formatters/index.js +0 -9
- package/dist/output/formatters/index.js.map +0 -1
- package/dist/output/formatters/json-formatter.d.ts +0 -71
- package/dist/output/formatters/json-formatter.d.ts.map +0 -1
- package/dist/output/formatters/json-formatter.js +0 -236
- package/dist/output/formatters/json-formatter.js.map +0 -1
- package/dist/output/formatters/stream-formatter.d.ts +0 -107
- package/dist/output/formatters/stream-formatter.d.ts.map +0 -1
- package/dist/output/formatters/stream-formatter.js +0 -247
- package/dist/output/formatters/stream-formatter.js.map +0 -1
- package/dist/output/formatters/table-formatter.d.ts +0 -63
- package/dist/output/formatters/table-formatter.d.ts.map +0 -1
- package/dist/output/formatters/table-formatter.js +0 -294
- package/dist/output/formatters/table-formatter.js.map +0 -1
- package/dist/output/formatters/text-formatter.d.ts +0 -63
- package/dist/output/formatters/text-formatter.d.ts.map +0 -1
- package/dist/output/formatters/text-formatter.js +0 -202
- package/dist/output/formatters/text-formatter.js.map +0 -1
- package/dist/output/formatters/yaml-formatter.d.ts +0 -71
- package/dist/output/formatters/yaml-formatter.d.ts.map +0 -1
- package/dist/output/formatters/yaml-formatter.js +0 -239
- package/dist/output/formatters/yaml-formatter.js.map +0 -1
- package/dist/output/output-manager.d.ts +0 -156
- package/dist/output/output-manager.d.ts.map +0 -1
- package/dist/output/output-manager.js +0 -339
- package/dist/output/output-manager.js.map +0 -1
- package/dist/output/renderers/index.d.ts +0 -6
- package/dist/output/renderers/index.d.ts.map +0 -1
- package/dist/output/renderers/index.js +0 -6
- package/dist/output/renderers/index.js.map +0 -1
- package/dist/output/renderers/progress-renderer.d.ts +0 -56
- package/dist/output/renderers/progress-renderer.d.ts.map +0 -1
- package/dist/output/renderers/progress-renderer.js +0 -306
- package/dist/output/renderers/progress-renderer.js.map +0 -1
- package/dist/output/renderers/terminal-renderer.d.ts +0 -117
- package/dist/output/renderers/terminal-renderer.d.ts.map +0 -1
- package/dist/output/renderers/terminal-renderer.js +0 -294
- package/dist/output/renderers/terminal-renderer.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -12
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -18
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/plugin-loader.d.ts +0 -37
- package/dist/plugins/plugin-loader.d.ts.map +0 -1
- package/dist/plugins/plugin-loader.js +0 -155
- package/dist/plugins/plugin-loader.js.map +0 -1
- package/dist/plugins/plugin-manager.d.ts +0 -78
- package/dist/plugins/plugin-manager.d.ts.map +0 -1
- package/dist/plugins/plugin-manager.js +0 -310
- package/dist/plugins/plugin-manager.js.map +0 -1
- package/dist/plugins/plugin-sdk.d.ts +0 -136
- package/dist/plugins/plugin-sdk.d.ts.map +0 -1
- package/dist/plugins/plugin-sdk.js +0 -260
- package/dist/plugins/plugin-sdk.js.map +0 -1
- package/dist/plugins/plugin-storage.d.ts +0 -109
- package/dist/plugins/plugin-storage.d.ts.map +0 -1
- package/dist/plugins/plugin-storage.js +0 -207
- package/dist/plugins/plugin-storage.js.map +0 -1
- package/dist/plugins/plugin-validator.d.ts +0 -44
- package/dist/plugins/plugin-validator.d.ts.map +0 -1
- package/dist/plugins/plugin-validator.js +0 -272
- package/dist/plugins/plugin-validator.js.map +0 -1
- package/dist/plugins/template-generator.d.ts +0 -35
- package/dist/plugins/template-generator.d.ts.map +0 -1
- package/dist/plugins/template-generator.js +0 -438
- package/dist/plugins/template-generator.js.map +0 -1
- package/dist/templates/python.d.ts +0 -15
- package/dist/templates/python.d.ts.map +0 -1
- package/dist/templates/python.js +0 -375
- package/dist/templates/python.js.map +0 -1
- package/dist/templates/typescript.d.ts +0 -15
- package/dist/templates/typescript.d.ts.map +0 -1
- package/dist/templates/typescript.js +0 -274
- package/dist/templates/typescript.js.map +0 -1
- package/dist/types/agent.d.ts +0 -109
- package/dist/types/agent.d.ts.map +0 -1
- package/dist/types/agent.js +0 -7
- package/dist/types/agent.js.map +0 -1
- package/dist/types/api.d.ts +0 -125
- package/dist/types/api.d.ts.map +0 -1
- package/dist/types/api.js +0 -53
- package/dist/types/api.js.map +0 -1
- package/dist/types/command.d.ts +0 -101
- package/dist/types/command.d.ts.map +0 -1
- package/dist/types/command.js +0 -7
- package/dist/types/command.js.map +0 -1
- package/dist/types/compute.d.ts +0 -317
- package/dist/types/compute.d.ts.map +0 -1
- package/dist/types/compute.js +0 -19
- package/dist/types/compute.js.map +0 -1
- package/dist/types/config.d.ts +0 -71
- package/dist/types/config.d.ts.map +0 -1
- package/dist/types/config.js +0 -7
- package/dist/types/config.js.map +0 -1
- package/dist/types/errors.d.ts +0 -56
- package/dist/types/errors.d.ts.map +0 -1
- package/dist/types/errors.js +0 -64
- package/dist/types/errors.js.map +0 -1
- package/dist/types/index.d.ts +0 -16
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -16
- package/dist/types/index.js.map +0 -1
- package/dist/types/nexus.d.ts +0 -254
- package/dist/types/nexus.d.ts.map +0 -1
- package/dist/types/nexus.js +0 -7
- package/dist/types/nexus.js.map +0 -1
- package/dist/types/output.d.ts +0 -107
- package/dist/types/output.d.ts.map +0 -1
- package/dist/types/output.js +0 -7
- package/dist/types/output.js.map +0 -1
- package/dist/types/plugin.d.ts +0 -118
- package/dist/types/plugin.d.ts.map +0 -1
- package/dist/types/plugin.js +0 -7
- package/dist/types/plugin.js.map +0 -1
- package/dist/types/service.d.ts +0 -94
- package/dist/types/service.d.ts.map +0 -1
- package/dist/types/service.js +0 -15
- package/dist/types/service.js.map +0 -1
- package/dist/types/session.d.ts +0 -80
- package/dist/types/session.d.ts.map +0 -1
- package/dist/types/session.js +0 -7
- package/dist/types/session.js.map +0 -1
- package/dist/types/transport.d.ts +0 -96
- package/dist/types/transport.d.ts.map +0 -1
- package/dist/types/transport.js +0 -7
- package/dist/types/transport.js.map +0 -1
- package/dist/utils/config.d.ts +0 -47
- package/dist/utils/config.d.ts.map +0 -1
- package/dist/utils/config.js +0 -166
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -82
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -238
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -9
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -61
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -200
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/prompt.d.ts +0 -57
- package/dist/utils/prompt.d.ts.map +0 -1
- package/dist/utils/prompt.js +0 -141
- package/dist/utils/prompt.js.map +0 -1
- package/dist/utils/spinner.d.ts +0 -47
- package/dist/utils/spinner.d.ts.map +0 -1
- package/dist/utils/spinner.js +0 -123
- package/dist/utils/spinner.js.map +0 -1
- package/dist/utils/validation.d.ts +0 -97
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -289
- package/dist/utils/validation.js.map +0 -1
- package/docs/COMPLETIONS.md +0 -528
- package/docs/REPL.md +0 -466
- package/docs/graphrag-commands.md +0 -387
- package/scripts/install-completions.sh +0 -356
- package/scripts/prepublish.js +0 -522
- package/scripts/verify-package.js +0 -505
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Adverant AI
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/completions/_nexus
DELETED
|
@@ -1,452 +0,0 @@
|
|
|
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 "$@"
|