@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,294 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terminal Renderer
|
|
3
|
+
*
|
|
4
|
+
* Renders output to terminal with colors and formatting
|
|
5
|
+
*/
|
|
6
|
+
import chalk from 'chalk';
|
|
7
|
+
import boxen from 'boxen';
|
|
8
|
+
import cliCursor from 'cli-cursor';
|
|
9
|
+
import logSymbols from 'log-symbols';
|
|
10
|
+
import stringWidth from 'string-width';
|
|
11
|
+
import wrapAnsi from 'wrap-ansi';
|
|
12
|
+
export class TerminalRenderer {
|
|
13
|
+
terminalWidth;
|
|
14
|
+
noColor = false;
|
|
15
|
+
constructor() {
|
|
16
|
+
this.terminalWidth = process.stdout.columns || 80;
|
|
17
|
+
// Listen for terminal resize
|
|
18
|
+
process.stdout.on('resize', () => {
|
|
19
|
+
this.terminalWidth = process.stdout.columns || 80;
|
|
20
|
+
});
|
|
21
|
+
// Check for NO_COLOR environment variable
|
|
22
|
+
this.noColor = !!process.env.NO_COLOR;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Render content to terminal
|
|
26
|
+
*/
|
|
27
|
+
render(content, options) {
|
|
28
|
+
const newline = options?.newline ?? true;
|
|
29
|
+
let output = content;
|
|
30
|
+
// Apply styling
|
|
31
|
+
if (!this.noColor) {
|
|
32
|
+
if (options?.color) {
|
|
33
|
+
const colorFn = chalk[options.color];
|
|
34
|
+
if (typeof colorFn === 'function') {
|
|
35
|
+
output = colorFn(output);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (options?.bold) {
|
|
39
|
+
output = chalk.bold(output);
|
|
40
|
+
}
|
|
41
|
+
if (options?.dim) {
|
|
42
|
+
output = chalk.dim(output);
|
|
43
|
+
}
|
|
44
|
+
if (options?.underline) {
|
|
45
|
+
output = chalk.underline(output);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// Wrap text to terminal width
|
|
49
|
+
if (stringWidth(output) > this.terminalWidth) {
|
|
50
|
+
output = wrapAnsi(output, this.terminalWidth, { hard: true, trim: false });
|
|
51
|
+
}
|
|
52
|
+
// Output
|
|
53
|
+
if (newline) {
|
|
54
|
+
console.log(output);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
process.stdout.write(output);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Render progress (delegated to progress renderer)
|
|
62
|
+
*/
|
|
63
|
+
renderProgress(options) {
|
|
64
|
+
// Import progress renderer to avoid circular dependency
|
|
65
|
+
const { ProgressRenderer } = require('./progress-renderer.js');
|
|
66
|
+
const progressRenderer = new ProgressRenderer();
|
|
67
|
+
return progressRenderer.create(options);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Render table
|
|
71
|
+
*/
|
|
72
|
+
renderTable(data, columns) {
|
|
73
|
+
// Use table formatter
|
|
74
|
+
const { tableFormatter } = require('../formatters/table-formatter.js');
|
|
75
|
+
const table = tableFormatter.formatWithColumns(data, columns, {
|
|
76
|
+
colors: !this.noColor,
|
|
77
|
+
});
|
|
78
|
+
this.render(table);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Render list
|
|
82
|
+
*/
|
|
83
|
+
renderList(items, options) {
|
|
84
|
+
const indent = options?.indent ?? 0;
|
|
85
|
+
const bullet = options?.bullet ?? (this.noColor ? '•' : chalk.dim('•'));
|
|
86
|
+
const ordered = options?.ordered ?? false;
|
|
87
|
+
items.forEach((item, index) => {
|
|
88
|
+
const prefix = ordered ? `${index + 1}.` : bullet;
|
|
89
|
+
const indentStr = ' '.repeat(indent);
|
|
90
|
+
const itemText = typeof item === 'string' ? item : JSON.stringify(item);
|
|
91
|
+
this.render(`${indentStr}${prefix} ${itemText}`);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Render box
|
|
96
|
+
*/
|
|
97
|
+
renderBox(content, options) {
|
|
98
|
+
const boxOptions = {
|
|
99
|
+
padding: options?.padding ?? 1,
|
|
100
|
+
margin: options?.margin ?? 0,
|
|
101
|
+
borderStyle: options?.borderStyle ?? 'round',
|
|
102
|
+
borderColor: !this.noColor ? options?.borderColor : undefined,
|
|
103
|
+
title: options?.title,
|
|
104
|
+
titleAlignment: options?.align ?? 'center',
|
|
105
|
+
};
|
|
106
|
+
const box = boxen(content, boxOptions);
|
|
107
|
+
this.render(box);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Clear terminal
|
|
111
|
+
*/
|
|
112
|
+
clear() {
|
|
113
|
+
console.clear();
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Clear current line
|
|
117
|
+
*/
|
|
118
|
+
clearLine() {
|
|
119
|
+
if (process.stdout.isTTY) {
|
|
120
|
+
process.stdout.write('\r\x1b[K');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Move cursor up
|
|
125
|
+
*/
|
|
126
|
+
cursorUp(lines = 1) {
|
|
127
|
+
if (process.stdout.isTTY) {
|
|
128
|
+
process.stdout.write(`\x1b[${lines}A`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Move cursor down
|
|
133
|
+
*/
|
|
134
|
+
cursorDown(lines = 1) {
|
|
135
|
+
if (process.stdout.isTTY) {
|
|
136
|
+
process.stdout.write(`\x1b[${lines}B`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Hide cursor
|
|
141
|
+
*/
|
|
142
|
+
hideCursor() {
|
|
143
|
+
cliCursor.hide();
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Show cursor
|
|
147
|
+
*/
|
|
148
|
+
showCursor() {
|
|
149
|
+
cliCursor.show();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Render success message
|
|
153
|
+
*/
|
|
154
|
+
success(message) {
|
|
155
|
+
const symbol = this.noColor ? '✓' : logSymbols.success;
|
|
156
|
+
this.render(`${symbol} ${message}`, { color: 'green' });
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Render error message
|
|
160
|
+
*/
|
|
161
|
+
error(message) {
|
|
162
|
+
const symbol = this.noColor ? '✗' : logSymbols.error;
|
|
163
|
+
this.render(`${symbol} ${message}`, { color: 'red' });
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Render warning message
|
|
167
|
+
*/
|
|
168
|
+
warning(message) {
|
|
169
|
+
const symbol = this.noColor ? '⚠' : logSymbols.warning;
|
|
170
|
+
this.render(`${symbol} ${message}`, { color: 'yellow' });
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Render info message
|
|
174
|
+
*/
|
|
175
|
+
info(message) {
|
|
176
|
+
const symbol = this.noColor ? 'ℹ' : logSymbols.info;
|
|
177
|
+
this.render(`${symbol} ${message}`, { color: 'blue' });
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Render header
|
|
181
|
+
*/
|
|
182
|
+
renderHeader(text) {
|
|
183
|
+
if (this.noColor) {
|
|
184
|
+
this.render(`\n${text}\n${'='.repeat(text.length)}\n`);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
this.render(chalk.bold.underline(text));
|
|
188
|
+
this.render('');
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Render separator
|
|
193
|
+
*/
|
|
194
|
+
renderSeparator(char = '─') {
|
|
195
|
+
const separator = char.repeat(this.terminalWidth);
|
|
196
|
+
this.render(this.noColor ? separator : chalk.dim(separator));
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Render key-value pair
|
|
200
|
+
*/
|
|
201
|
+
renderKeyValue(key, value, indent = 0) {
|
|
202
|
+
const indentStr = ' '.repeat(indent);
|
|
203
|
+
const formattedKey = this.noColor ? key : chalk.blue(key);
|
|
204
|
+
this.render(`${indentStr}${formattedKey}: ${value}`);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Render blank line
|
|
208
|
+
*/
|
|
209
|
+
renderBlankLine() {
|
|
210
|
+
console.log();
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Render multiple lines
|
|
214
|
+
*/
|
|
215
|
+
renderLines(lines) {
|
|
216
|
+
lines.forEach((line) => this.render(line));
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Set no-color mode
|
|
220
|
+
*/
|
|
221
|
+
setNoColor(noColor) {
|
|
222
|
+
this.noColor = noColor;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Get terminal width
|
|
226
|
+
*/
|
|
227
|
+
getTerminalWidth() {
|
|
228
|
+
return this.terminalWidth;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Check if terminal supports colors
|
|
232
|
+
*/
|
|
233
|
+
supportsColor() {
|
|
234
|
+
return !this.noColor && !!chalk.level;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Check if output is TTY
|
|
238
|
+
*/
|
|
239
|
+
isTTY() {
|
|
240
|
+
return process.stdout.isTTY ?? false;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Render spinner (simple version)
|
|
244
|
+
*/
|
|
245
|
+
renderSpinner(text) {
|
|
246
|
+
if (!this.isTTY()) {
|
|
247
|
+
this.render(text);
|
|
248
|
+
return () => { };
|
|
249
|
+
}
|
|
250
|
+
const frames = this.noColor
|
|
251
|
+
? ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
|
|
252
|
+
: [
|
|
253
|
+
chalk.cyan('⠋'),
|
|
254
|
+
chalk.cyan('⠙'),
|
|
255
|
+
chalk.cyan('⠹'),
|
|
256
|
+
chalk.cyan('⠸'),
|
|
257
|
+
chalk.cyan('⠼'),
|
|
258
|
+
chalk.cyan('⠴'),
|
|
259
|
+
chalk.cyan('⠦'),
|
|
260
|
+
chalk.cyan('⠧'),
|
|
261
|
+
chalk.cyan('⠇'),
|
|
262
|
+
chalk.cyan('⠏'),
|
|
263
|
+
];
|
|
264
|
+
let i = 0;
|
|
265
|
+
this.hideCursor();
|
|
266
|
+
const interval = setInterval(() => {
|
|
267
|
+
this.clearLine();
|
|
268
|
+
process.stdout.write(`${frames[i]} ${text}`);
|
|
269
|
+
i = (i + 1) % frames.length;
|
|
270
|
+
}, 80);
|
|
271
|
+
return () => {
|
|
272
|
+
clearInterval(interval);
|
|
273
|
+
this.clearLine();
|
|
274
|
+
this.showCursor();
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Ask for confirmation (simple version)
|
|
279
|
+
*/
|
|
280
|
+
async confirm(message, defaultValue = false) {
|
|
281
|
+
// This would typically use inquirer, but for simplicity:
|
|
282
|
+
const suffix = defaultValue ? '[Y/n]' : '[y/N]';
|
|
283
|
+
this.render(`${message} ${suffix}`, { newline: false });
|
|
284
|
+
// Return default for non-interactive
|
|
285
|
+
if (!this.isTTY()) {
|
|
286
|
+
this.render('');
|
|
287
|
+
return defaultValue;
|
|
288
|
+
}
|
|
289
|
+
// Would implement actual prompt here
|
|
290
|
+
return defaultValue;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
export const terminalRenderer = new TerminalRenderer();
|
|
294
|
+
//# sourceMappingURL=terminal-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-renderer.js","sourceRoot":"","sources":["../../../src/output/renderers/terminal-renderer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,QAAQ,MAAM,WAAW,CAAC;AAWjC,MAAM,OAAO,gBAAgB;IACnB,aAAa,CAAS;IACtB,OAAO,GAAY,KAAK,CAAC;IAEjC;QACE,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QAElD,6BAA6B;QAC7B,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;YAC/B,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QACpD,CAAC,CAAC,CAAC;QAEH,0CAA0C;QAC1C,IAAI,CAAC,O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
|
2
|
+
* Plugin System - Public Exports
|
|
3
|
+
*
|
|
4
|
+
* Central export point for all plugin system components
|
|
5
|
+
*/
|
|
6
|
+
export { PluginLoader, pluginLoader } from './plugin-loader.js';
|
|
7
|
+
export { PluginValidator, pluginValidator, type ValidationResult, } from './plugin-validator.js';
|
|
8
|
+
export { PluginManager, pluginManager } from './plugin-manager.js';
|
|
9
|
+
export { PluginStorage, createPluginStorage, getNexusHome, getPluginsDirectory, getPluginDataDirectory, ensureNexusDirectories, } from './plugin-storage.js';
|
|
10
|
+
export { PluginBuilder, createPluginLogger, createPluginContext, filePermission, networkPermission, servicePermission, systemPermission, arg, option, type Plugin, type PluginCommand, type PluginCommandHandler, type PluginPermission, type PluginContext, type PluginLogger, type MCPServerConfig, type PluginArgument, type PluginOption, } from './plugin-sdk.js';
|
|
11
|
+
export { PluginTemplateGenerator, pluginTemplateGenerator, type PluginTemplateType, type PluginScaffoldOptions, } from './template-generator.js';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGhE,OAAO,EACL,eAAe,EACf,eAAe,EACf,KAAK,gBAAgB,GACtB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGnE,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,GAAG,EACH,MAAM,EACN,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,GAC3B,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin System - Public Exports
|
|
3
|
+
*
|
|
4
|
+
* Central export point for all plugin system components
|
|
5
|
+
*/
|
|
6
|
+
// Plugin loader
|
|
7
|
+
export { PluginLoader, pluginLoader } from './plugin-loader.js';
|
|
8
|
+
// Plugin validator
|
|
9
|
+
export { PluginValidator, pluginValidator, } from './plugin-validator.js';
|
|
10
|
+
// Plugin manager
|
|
11
|
+
export { PluginManager, pluginManager } from './plugin-manager.js';
|
|
12
|
+
// Plugin storage
|
|
13
|
+
export { PluginStorage, createPluginStorage, getNexusHome, getPluginsDirectory, getPluginDataDirectory, ensureNexusDirectories, } from './plugin-storage.js';
|
|
14
|
+
// Plugin SDK
|
|
15
|
+
export { PluginBuilder, createPluginLogger, createPluginContext, filePermission, networkPermission, servicePermission, systemPermission, arg, option, } from './plugin-sdk.js';
|
|
16
|
+
// Template generator
|
|
17
|
+
export { PluginTemplateGenerator, pluginTemplateGenerator, } from './template-generator.js';
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,gBAAgB;AAChB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEhE,mBAAmB;AACnB,OAAO,EACL,eAAe,EACf,eAAe,GAEhB,MAAM,uBAAuB,CAAC;AAE/B,iBAAiB;AACjB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEnE,iBAAiB;AACjB,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,aAAa;AACb,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,GAAG,EACH,MAAM,GAUP,MAAM,iBAAiB,CAAC;AAEzB,qBAAqB;AACrB,OAAO,EACL,uBAAuB,EACvB,uBAAuB,GAGxB,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin Loader
|
|
3
|
+
*
|
|
4
|
+
* Loads and initializes plugins from directory paths
|
|
5
|
+
*/
|
|
6
|
+
import type { Plugin, PluginManifest } from '../types/plugin.js';
|
|
7
|
+
export declare class PluginLoader {
|
|
8
|
+
/**
|
|
9
|
+
* Load plugin from directory path
|
|
10
|
+
*/
|
|
11
|
+
load(pluginPath: string): Promise<Plugin>;
|
|
12
|
+
/**
|
|
13
|
+
* Load and parse plugin.json manifest
|
|
14
|
+
*/
|
|
15
|
+
loadPluginManifest(pluginPath: string): Promise<PluginManifest>;
|
|
16
|
+
/**
|
|
17
|
+
* Load plugin main module (ESM/CommonJS)
|
|
18
|
+
*/
|
|
19
|
+
private loadPluginModule;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize plugin lifecycle hooks
|
|
22
|
+
*/
|
|
23
|
+
initializePlugin(plugin: Plugin): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Execute plugin lifecycle hook
|
|
26
|
+
*/
|
|
27
|
+
executePluginHook(plugin: Plugin, hook: 'onLoad' | 'onUnload' | 'onEnable' | 'onDisable'): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Hot-reload plugin (for development)
|
|
30
|
+
*/
|
|
31
|
+
reload(pluginPath: string): Promise<Plugin>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Singleton instance
|
|
35
|
+
*/
|
|
36
|
+
export declare const pluginLoader: PluginLoader;
|
|
37
|
+
//# sourceMappingURL=plugin-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-loader.d.ts","sourceRoot":"","sources":["../../src/plugins/plugin-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAiB,MAAM,oBAAoB,CAAC;AAGhF,qBAAa,YAAY;IACvB;;OAEG;IACG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAkD/C;;OAEG;IACG,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IA8BrE;;OAEG;YACW,gBAAgB;IAsB9B;;OAEG;IACG,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAcrD;;OAEG;IACG,iBAAiB,CACrB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GACrD,OAAO,CAAC,IAAI,CAAC;IAehB;;OAEG;IACG,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBlD;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,cAAqB,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin Loader
|
|
3
|
+
*
|
|
4
|
+
* Loads and initializes plugins from directory paths
|
|
5
|
+
*/
|
|
6
|
+
import fs from 'fs-extra';
|
|
7
|
+
import path from 'path';
|
|
8
|
+
import { pathToFileURL } from 'url';
|
|
9
|
+
import { logger } from '../utils/logger.js';
|
|
10
|
+
export class PluginLoader {
|
|
11
|
+
/**
|
|
12
|
+
* Load plugin from directory path
|
|
13
|
+
*/
|
|
14
|
+
async load(pluginPath) {
|
|
15
|
+
try {
|
|
16
|
+
logger.debug(`Loading plugin from: ${pluginPath}`);
|
|
17
|
+
// Verify plugin directory exists
|
|
18
|
+
if (!(await fs.pathExists(pluginPath))) {
|
|
19
|
+
throw new Error(`Plugin directory not found: ${pluginPath}`);
|
|
20
|
+
}
|
|
21
|
+
// Load and parse plugin.json manifest
|
|
22
|
+
const manifest = await this.loadPluginManifest(pluginPath);
|
|
23
|
+
// Load plugin main file
|
|
24
|
+
const pluginModule = await this.loadPluginModule(pluginPath, manifest.main);
|
|
25
|
+
// Create plugin instance
|
|
26
|
+
const plugin = {
|
|
27
|
+
...manifest,
|
|
28
|
+
commands: [],
|
|
29
|
+
enabled: false,
|
|
30
|
+
installed: true,
|
|
31
|
+
};
|
|
32
|
+
// Initialize plugin commands
|
|
33
|
+
if (pluginModule.default) {
|
|
34
|
+
// Plugin exported as default (SDK style)
|
|
35
|
+
const pluginExport = pluginModule.default;
|
|
36
|
+
if (typeof pluginExport === 'object' && pluginExport.commands) {
|
|
37
|
+
plugin.commands = pluginExport.commands;
|
|
38
|
+
plugin.onLoad = pluginExport.onLoad;
|
|
39
|
+
plugin.onUnload = pluginExport.onUnload;
|
|
40
|
+
plugin.onEnable = pluginExport.onEnable;
|
|
41
|
+
plugin.onDisable = pluginExport.onDisable;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else if (pluginModule.commands) {
|
|
45
|
+
// Plugin exported commands directly
|
|
46
|
+
plugin.commands = pluginModule.commands;
|
|
47
|
+
}
|
|
48
|
+
logger.info(`Plugin loaded: ${plugin.name} v${plugin.version}`);
|
|
49
|
+
return plugin;
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
logger.error(`Failed to load plugin from ${pluginPath}:`, error);
|
|
53
|
+
throw new Error(`Failed to load plugin: ${error instanceof Error ? error.message : String(error)}`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Load and parse plugin.json manifest
|
|
58
|
+
*/
|
|
59
|
+
async loadPluginManifest(pluginPath) {
|
|
60
|
+
const manifestPath = path.join(pluginPath, 'plugin.json');
|
|
61
|
+
try {
|
|
62
|
+
if (!(await fs.pathExists(manifestPath))) {
|
|
63
|
+
throw new Error('plugin.json not found');
|
|
64
|
+
}
|
|
65
|
+
const manifestContent = await fs.readFile(manifestPath, 'utf-8');
|
|
66
|
+
const manifest = JSON.parse(manifestContent);
|
|
67
|
+
// Validate required fields
|
|
68
|
+
if (!manifest.name) {
|
|
69
|
+
throw new Error('Plugin manifest missing required field: name');
|
|
70
|
+
}
|
|
71
|
+
if (!manifest.version) {
|
|
72
|
+
throw new Error('Plugin manifest missing required field: version');
|
|
73
|
+
}
|
|
74
|
+
if (!manifest.main) {
|
|
75
|
+
throw new Error('Plugin manifest missing required field: main');
|
|
76
|
+
}
|
|
77
|
+
return manifest;
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
throw new Error(`Failed to load plugin manifest: ${error instanceof Error ? error.message : String(error)}`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Load plugin main module (ESM/CommonJS)
|
|
85
|
+
*/
|
|
86
|
+
async loadPluginModule(pluginPath, mainFile) {
|
|
87
|
+
const mainPath = path.join(pluginPath, mainFile);
|
|
88
|
+
try {
|
|
89
|
+
if (!(await fs.pathExists(mainPath))) {
|
|
90
|
+
throw new Error(`Plugin main file not found: ${mainFile}`);
|
|
91
|
+
}
|
|
92
|
+
// Convert to file URL for ESM import
|
|
93
|
+
const fileUrl = pathToFileURL(mainPath).href;
|
|
94
|
+
// Dynamic import (supports both ESM and CommonJS)
|
|
95
|
+
const module = await import(fileUrl);
|
|
96
|
+
return module;
|
|
97
|
+
}
|
|
98
|
+
catch (error) {
|
|
99
|
+
throw new Error(`Failed to load plugin module: ${error instanceof Error ? error.message : String(error)}`);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Initialize plugin lifecycle hooks
|
|
104
|
+
*/
|
|
105
|
+
async initializePlugin(plugin) {
|
|
106
|
+
try {
|
|
107
|
+
if (plugin.onLoad) {
|
|
108
|
+
logger.debug(`Calling onLoad hook for plugin: ${plugin.name}`);
|
|
109
|
+
await plugin.onLoad();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
logger.error(`Plugin ${plugin.name} onLoad hook failed:`, error);
|
|
114
|
+
throw new Error(`Plugin initialization failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Execute plugin lifecycle hook
|
|
119
|
+
*/
|
|
120
|
+
async executePluginHook(plugin, hook) {
|
|
121
|
+
try {
|
|
122
|
+
const hookFn = plugin[hook];
|
|
123
|
+
if (hookFn && typeof hookFn === 'function') {
|
|
124
|
+
logger.debug(`Executing ${hook} hook for plugin: ${plugin.name}`);
|
|
125
|
+
await hookFn();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
logger.error(`Plugin ${plugin.name} ${hook} hook failed:`, error);
|
|
130
|
+
throw new Error(`Plugin ${hook} hook failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Hot-reload plugin (for development)
|
|
135
|
+
*/
|
|
136
|
+
async reload(pluginPath) {
|
|
137
|
+
logger.debug(`Hot-reloading plugin from: ${pluginPath}`);
|
|
138
|
+
// Clear module cache for hot-reload
|
|
139
|
+
// Note: This is simplified; full hot-reload requires more sophisticated cache clearing
|
|
140
|
+
const manifest = await this.loadPluginManifest(pluginPath);
|
|
141
|
+
const mainPath = path.join(pluginPath, manifest.main);
|
|
142
|
+
const fileUrl = pathToFileURL(mainPath).href;
|
|
143
|
+
// Delete from import cache (if supported)
|
|
144
|
+
if (typeof require !== 'undefined' && require.cache) {
|
|
145
|
+
delete require.cache[require.resolve(mainPath)];
|
|
146
|
+
}
|
|
147
|
+
// Reload plugin
|
|
148
|
+
return this.load(pluginPath);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Singleton instance
|
|
153
|
+
*/
|
|
154
|
+
export const pluginLoader = new PluginLoader();
|
|
155
|
+
//# sourceMappingURL=plugin-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-loader.js","sourceRoot":"","sources":["../../src/plugins/plugin-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,OAAO,YAAY;IACvB;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,UAAkB;QAC3B,IAAI,CAAC;YACH,MAAM,CAAC,KAAK,CAAC,wBAAwB,UAAU,EAAE,CAAC,CAAC;YAEnD,iCAAiC;YACjC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;gBACvC,MAAM,IAAI,KAAK,CAAC,+BAA+B,UAAU,EAAE,CAAC,CAAC;YAC/D,CAAC;YAED,sCAAsC;YACtC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;YAE3D,wBAAwB;YACxB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;YAE5E,yBAAyB;YACzB,MAAM,MAAM,GAAW;gBACrB,GAAG,QAAQ;gBACX,QAAQ,EAAE,EAAE;gBACZ,O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
|
6
|
+
import type { Plugin, PluginRegistry } from '../types/plugin.js';
|
|
7
|
+
/**
|
|
8
|
+
* Plugin Manager Class
|
|
9
|
+
*/
|
|
10
|
+
export declare class PluginManager implements PluginRegistry {
|
|
11
|
+
private plugins;
|
|
12
|
+
private initialized;
|
|
13
|
+
/**
|
|
14
|
+
* Initialize plugin manager
|
|
15
|
+
*/
|
|
16
|
+
initialize(): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Discover plugins from ~/.nexus/plugins/
|
|
19
|
+
*/
|
|
20
|
+
discover(): Promise<Plugin[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Register plugin
|
|
23
|
+
*/
|
|
24
|
+
register(plugin: Plugin): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Unregister plugin
|
|
27
|
+
*/
|
|
28
|
+
unregister(name: string): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Get plugin by name
|
|
31
|
+
*/
|
|
32
|
+
get(name: string): Plugin | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* List all plugins
|
|
35
|
+
*/
|
|
36
|
+
list(): Plugin[];
|
|
37
|
+
/**
|
|
38
|
+
* Enable plugin
|
|
39
|
+
*/
|
|
40
|
+
enable(name: string): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Disable plugin
|
|
43
|
+
*/
|
|
44
|
+
disable(name: string): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Update plugin
|
|
47
|
+
*/
|
|
48
|
+
update(name: string): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Install plugin from path
|
|
51
|
+
*/
|
|
52
|
+
install(sourcePath: string): Promise<Plugin>;
|
|
53
|
+
/**
|
|
54
|
+
* Uninstall plugin
|
|
55
|
+
*/
|
|
56
|
+
uninstall(name: string): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Get enabled plugins
|
|
59
|
+
*/
|
|
60
|
+
getEnabledPlugins(): Plugin[];
|
|
61
|
+
/**
|
|
62
|
+
* Get disabled plugins
|
|
63
|
+
*/
|
|
64
|
+
getDisabledPlugins(): Plugin[];
|
|
65
|
+
/**
|
|
66
|
+
* Persist plugin state to disk
|
|
67
|
+
*/
|
|
68
|
+
private persistPluginState;
|
|
69
|
+
/**
|
|
70
|
+
* Load plugin state from disk
|
|
71
|
+
*/
|
|
72
|
+
private loadPluginState;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Singleton instance
|
|
76
|
+
*/
|
|
77
|
+
export declare const pluginManager: PluginManager;
|
|
78
|
+
//# sourceMappingURL=plugin-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manager.d.ts","sourceRoot":"","sources":["../../src/plugins/plugin-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMjE;;GAEG;AACH,qBAAa,aAAc,YAAW,cAAc;IAClD,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,WAAW,CAAS;IAE5B;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBjC;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IA8DnC;;OAEG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA6B7C;;OAEG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB7C;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIrC;;OAEG;IACH,IAAI,IAAI,MAAM,EAAE;IAIhB;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA6BzC;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;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