@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.
Files changed (541) hide show
  1. package/ARCHITECTURE.md +1366 -0
  2. package/LICENSE +21 -0
  3. package/README.md +593 -0
  4. package/completions/_nexus +452 -0
  5. package/completions/nexus.bash +329 -0
  6. package/completions/nexus.fish +187 -0
  7. package/dist/cli.d.ts +35 -0
  8. package/dist/cli.d.ts.map +1 -0
  9. package/dist/cli.js +135 -0
  10. package/dist/cli.js.map +1 -0
  11. package/dist/commands/agent/index.d.ts +9 -0
  12. package/dist/commands/agent/index.d.ts.map +1 -0
  13. package/dist/commands/agent/index.js +20 -0
  14. package/dist/commands/agent/index.js.map +1 -0
  15. package/dist/commands/agent/list.d.ts +9 -0
  16. package/dist/commands/agent/list.d.ts.map +1 -0
  17. package/dist/commands/agent/list.js +122 -0
  18. package/dist/commands/agent/list.js.map +1 -0
  19. package/dist/commands/agent/run.d.ts +10 -0
  20. package/dist/commands/agent/run.d.ts.map +1 -0
  21. package/dist/commands/agent/run.js +167 -0
  22. package/dist/commands/agent/run.js.map +1 -0
  23. package/dist/commands/agent/status.d.ts +9 -0
  24. package/dist/commands/agent/status.d.ts.map +1 -0
  25. package/dist/commands/agent/status.js +157 -0
  26. package/dist/commands/agent/status.js.map +1 -0
  27. package/dist/commands/compute/agent.d.ts +21 -0
  28. package/dist/commands/compute/agent.d.ts.map +1 -0
  29. package/dist/commands/compute/agent.js +158 -0
  30. package/dist/commands/compute/agent.js.map +1 -0
  31. package/dist/commands/compute/index.d.ts +10 -0
  32. package/dist/commands/compute/index.d.ts.map +1 -0
  33. package/dist/commands/compute/index.js +27 -0
  34. package/dist/commands/compute/index.js.map +1 -0
  35. package/dist/commands/compute/lib/hardware-detection.d.ts +52 -0
  36. package/dist/commands/compute/lib/hardware-detection.d.ts.map +1 -0
  37. package/dist/commands/compute/lib/hardware-detection.js +432 -0
  38. package/dist/commands/compute/lib/hardware-detection.js.map +1 -0
  39. package/dist/commands/compute/lib/local-compute-agent.d.ts +143 -0
  40. package/dist/commands/compute/lib/local-compute-agent.d.ts.map +1 -0
  41. package/dist/commands/compute/lib/local-compute-agent.js +1162 -0
  42. package/dist/commands/compute/lib/local-compute-agent.js.map +1 -0
  43. package/dist/commands/compute/lib/local-compute-client.d.ts +89 -0
  44. package/dist/commands/compute/lib/local-compute-client.d.ts.map +1 -0
  45. package/dist/commands/compute/lib/local-compute-client.js +388 -0
  46. package/dist/commands/compute/lib/local-compute-client.js.map +1 -0
  47. package/dist/commands/compute/list.d.ts +14 -0
  48. package/dist/commands/compute/list.d.ts.map +1 -0
  49. package/dist/commands/compute/list.js +164 -0
  50. package/dist/commands/compute/list.js.map +1 -0
  51. package/dist/commands/compute/logs.d.ts +14 -0
  52. package/dist/commands/compute/logs.d.ts.map +1 -0
  53. package/dist/commands/compute/logs.js +105 -0
  54. package/dist/commands/compute/logs.js.map +1 -0
  55. package/dist/commands/compute/resources.d.ts +14 -0
  56. package/dist/commands/compute/resources.d.ts.map +1 -0
  57. package/dist/commands/compute/resources.js +163 -0
  58. package/dist/commands/compute/resources.js.map +1 -0
  59. package/dist/commands/compute/status.d.ts +13 -0
  60. package/dist/commands/compute/status.d.ts.map +1 -0
  61. package/dist/commands/compute/status.js +223 -0
  62. package/dist/commands/compute/status.js.map +1 -0
  63. package/dist/commands/compute/submit.d.ts +19 -0
  64. package/dist/commands/compute/submit.d.ts.map +1 -0
  65. package/dist/commands/compute/submit.js +99 -0
  66. package/dist/commands/compute/submit.js.map +1 -0
  67. package/dist/commands/deploy.d.ts +11 -0
  68. package/dist/commands/deploy.d.ts.map +1 -0
  69. package/dist/commands/deploy.js +117 -0
  70. package/dist/commands/deploy.js.map +1 -0
  71. package/dist/commands/dynamic/graphrag-commands.d.ts +16 -0
  72. package/dist/commands/dynamic/graphrag-commands.d.ts.map +1 -0
  73. package/dist/commands/dynamic/graphrag-commands.js +562 -0
  74. package/dist/commands/dynamic/graphrag-commands.js.map +1 -0
  75. package/dist/commands/dynamic/index.d.ts +10 -0
  76. package/dist/commands/dynamic/index.d.ts.map +1 -0
  77. package/dist/commands/dynamic/index.js +17 -0
  78. package/dist/commands/dynamic/index.js.map +1 -0
  79. package/dist/commands/dynamic/mageagent-commands.d.ts +8 -0
  80. package/dist/commands/dynamic/mageagent-commands.d.ts.map +1 -0
  81. package/dist/commands/dynamic/mageagent-commands.js +86 -0
  82. package/dist/commands/dynamic/mageagent-commands.js.map +1 -0
  83. package/dist/commands/dynamic/mcp-tool-mapper.d.ts +97 -0
  84. package/dist/commands/dynamic/mcp-tool-mapper.d.ts.map +1 -0
  85. package/dist/commands/dynamic/mcp-tool-mapper.js +328 -0
  86. package/dist/commands/dynamic/mcp-tool-mapper.js.map +1 -0
  87. package/dist/commands/dynamic/nexus-commands.d.ts +78 -0
  88. package/dist/commands/dynamic/nexus-commands.d.ts.map +1 -0
  89. package/dist/commands/dynamic/nexus-commands.js +426 -0
  90. package/dist/commands/dynamic/nexus-commands.js.map +1 -0
  91. package/dist/commands/dynamic/sandbox-commands.d.ts +8 -0
  92. package/dist/commands/dynamic/sandbox-commands.d.ts.map +1 -0
  93. package/dist/commands/dynamic/sandbox-commands.js +80 -0
  94. package/dist/commands/dynamic/sandbox-commands.js.map +1 -0
  95. package/dist/commands/init.d.ts +11 -0
  96. package/dist/commands/init.d.ts.map +1 -0
  97. package/dist/commands/init.js +128 -0
  98. package/dist/commands/init.js.map +1 -0
  99. package/dist/commands/list.d.ts +10 -0
  100. package/dist/commands/list.d.ts.map +1 -0
  101. package/dist/commands/list.js +81 -0
  102. package/dist/commands/list.js.map +1 -0
  103. package/dist/commands/login.d.ts +10 -0
  104. package/dist/commands/login.d.ts.map +1 -0
  105. package/dist/commands/login.js +83 -0
  106. package/dist/commands/login.js.map +1 -0
  107. package/dist/commands/logs.d.ts +11 -0
  108. package/dist/commands/logs.d.ts.map +1 -0
  109. package/dist/commands/logs.js +79 -0
  110. package/dist/commands/logs.js.map +1 -0
  111. package/dist/commands/nexus/index.d.ts +69 -0
  112. package/dist/commands/nexus/index.d.ts.map +1 -0
  113. package/dist/commands/nexus/index.js +336 -0
  114. package/dist/commands/nexus/index.js.map +1 -0
  115. package/dist/commands/plugin/disable.d.ts +8 -0
  116. package/dist/commands/plugin/disable.d.ts.map +1 -0
  117. package/dist/commands/plugin/disable.js +31 -0
  118. package/dist/commands/plugin/disable.js.map +1 -0
  119. package/dist/commands/plugin/enable.d.ts +8 -0
  120. package/dist/commands/plugin/enable.d.ts.map +1 -0
  121. package/dist/commands/plugin/enable.js +37 -0
  122. package/dist/commands/plugin/enable.js.map +1 -0
  123. package/dist/commands/plugin/index.d.ts +8 -0
  124. package/dist/commands/plugin/index.d.ts.map +1 -0
  125. package/dist/commands/plugin/index.js +23 -0
  126. package/dist/commands/plugin/index.js.map +1 -0
  127. package/dist/commands/plugin/info.d.ts +8 -0
  128. package/dist/commands/plugin/info.d.ts.map +1 -0
  129. package/dist/commands/plugin/info.js +129 -0
  130. package/dist/commands/plugin/info.js.map +1 -0
  131. package/dist/commands/plugin/init.d.ts +8 -0
  132. package/dist/commands/plugin/init.d.ts.map +1 -0
  133. package/dist/commands/plugin/init.js +83 -0
  134. package/dist/commands/plugin/init.js.map +1 -0
  135. package/dist/commands/plugin/install.d.ts +8 -0
  136. package/dist/commands/plugin/install.d.ts.map +1 -0
  137. package/dist/commands/plugin/install.js +56 -0
  138. package/dist/commands/plugin/install.js.map +1 -0
  139. package/dist/commands/plugin/list.d.ts +8 -0
  140. package/dist/commands/plugin/list.d.ts.map +1 -0
  141. package/dist/commands/plugin/list.js +72 -0
  142. package/dist/commands/plugin/list.js.map +1 -0
  143. package/dist/commands/plugin/uninstall.d.ts +8 -0
  144. package/dist/commands/plugin/uninstall.d.ts.map +1 -0
  145. package/dist/commands/plugin/uninstall.js +49 -0
  146. package/dist/commands/plugin/uninstall.js.map +1 -0
  147. package/dist/commands/register.d.ts +10 -0
  148. package/dist/commands/register.d.ts.map +1 -0
  149. package/dist/commands/register.js +85 -0
  150. package/dist/commands/register.js.map +1 -0
  151. package/dist/commands/services/health.d.ts +7 -0
  152. package/dist/commands/services/health.d.ts.map +1 -0
  153. package/dist/commands/services/health.js +73 -0
  154. package/dist/commands/services/health.js.map +1 -0
  155. package/dist/commands/services/index.d.ts +16 -0
  156. package/dist/commands/services/index.d.ts.map +1 -0
  157. package/dist/commands/services/index.js +26 -0
  158. package/dist/commands/services/index.js.map +1 -0
  159. package/dist/commands/services/info.d.ts +7 -0
  160. package/dist/commands/services/info.d.ts.map +1 -0
  161. package/dist/commands/services/info.js +68 -0
  162. package/dist/commands/services/info.js.map +1 -0
  163. package/dist/commands/services/list.d.ts +9 -0
  164. package/dist/commands/services/list.d.ts.map +1 -0
  165. package/dist/commands/services/list.js +43 -0
  166. package/dist/commands/services/list.js.map +1 -0
  167. package/dist/commands/services/logs.d.ts +7 -0
  168. package/dist/commands/services/logs.d.ts.map +1 -0
  169. package/dist/commands/services/logs.js +107 -0
  170. package/dist/commands/services/logs.js.map +1 -0
  171. package/dist/commands/services/ports.d.ts +7 -0
  172. package/dist/commands/services/ports.d.ts.map +1 -0
  173. package/dist/commands/services/ports.js +65 -0
  174. package/dist/commands/services/ports.js.map +1 -0
  175. package/dist/commands/services/restart.d.ts +7 -0
  176. package/dist/commands/services/restart.d.ts.map +1 -0
  177. package/dist/commands/services/restart.js +67 -0
  178. package/dist/commands/services/restart.js.map +1 -0
  179. package/dist/commands/services/start.d.ts +7 -0
  180. package/dist/commands/services/start.d.ts.map +1 -0
  181. package/dist/commands/services/start.js +67 -0
  182. package/dist/commands/services/start.js.map +1 -0
  183. package/dist/commands/services/status.d.ts +9 -0
  184. package/dist/commands/services/status.d.ts.map +1 -0
  185. package/dist/commands/services/status.js +119 -0
  186. package/dist/commands/services/status.js.map +1 -0
  187. package/dist/commands/services/stop.d.ts +7 -0
  188. package/dist/commands/services/stop.d.ts.map +1 -0
  189. package/dist/commands/services/stop.js +67 -0
  190. package/dist/commands/services/stop.js.map +1 -0
  191. package/dist/commands/session/delete.d.ts +9 -0
  192. package/dist/commands/session/delete.d.ts.map +1 -0
  193. package/dist/commands/session/delete.js +51 -0
  194. package/dist/commands/session/delete.js.map +1 -0
  195. package/dist/commands/session/export.d.ts +9 -0
  196. package/dist/commands/session/export.d.ts.map +1 -0
  197. package/dist/commands/session/export.js +36 -0
  198. package/dist/commands/session/export.js.map +1 -0
  199. package/dist/commands/session/import.d.ts +9 -0
  200. package/dist/commands/session/import.d.ts.map +1 -0
  201. package/dist/commands/session/import.js +54 -0
  202. package/dist/commands/session/import.js.map +1 -0
  203. package/dist/commands/session/index.d.ts +9 -0
  204. package/dist/commands/session/index.d.ts.map +1 -0
  205. package/dist/commands/session/index.js +28 -0
  206. package/dist/commands/session/index.js.map +1 -0
  207. package/dist/commands/session/list.d.ts +9 -0
  208. package/dist/commands/session/list.d.ts.map +1 -0
  209. package/dist/commands/session/list.js +88 -0
  210. package/dist/commands/session/list.js.map +1 -0
  211. package/dist/commands/session/load.d.ts +9 -0
  212. package/dist/commands/session/load.d.ts.map +1 -0
  213. package/dist/commands/session/load.js +71 -0
  214. package/dist/commands/session/load.js.map +1 -0
  215. package/dist/commands/session/resume.d.ts +9 -0
  216. package/dist/commands/session/resume.d.ts.map +1 -0
  217. package/dist/commands/session/resume.js +49 -0
  218. package/dist/commands/session/resume.js.map +1 -0
  219. package/dist/commands/session/save.d.ts +9 -0
  220. package/dist/commands/session/save.d.ts.map +1 -0
  221. package/dist/commands/session/save.js +69 -0
  222. package/dist/commands/session/save.js.map +1 -0
  223. package/dist/commands/workspace/git-commit.d.ts +9 -0
  224. package/dist/commands/workspace/git-commit.d.ts.map +1 -0
  225. package/dist/commands/workspace/git-commit.js +156 -0
  226. package/dist/commands/workspace/git-commit.js.map +1 -0
  227. package/dist/commands/workspace/git-status.d.ts +9 -0
  228. package/dist/commands/workspace/git-status.d.ts.map +1 -0
  229. package/dist/commands/workspace/git-status.js +192 -0
  230. package/dist/commands/workspace/git-status.js.map +1 -0
  231. package/dist/commands/workspace/index.d.ts +9 -0
  232. package/dist/commands/workspace/index.d.ts.map +1 -0
  233. package/dist/commands/workspace/index.js +24 -0
  234. package/dist/commands/workspace/index.js.map +1 -0
  235. package/dist/commands/workspace/info.d.ts +10 -0
  236. package/dist/commands/workspace/info.d.ts.map +1 -0
  237. package/dist/commands/workspace/info.js +191 -0
  238. package/dist/commands/workspace/info.js.map +1 -0
  239. package/dist/commands/workspace/init.d.ts +9 -0
  240. package/dist/commands/workspace/init.d.ts.map +1 -0
  241. package/dist/commands/workspace/init.js +193 -0
  242. package/dist/commands/workspace/init.js.map +1 -0
  243. package/dist/commands/workspace/validate.d.ts +9 -0
  244. package/dist/commands/workspace/validate.d.ts.map +1 -0
  245. package/dist/commands/workspace/validate.js +140 -0
  246. package/dist/commands/workspace/validate.js.map +1 -0
  247. package/dist/core/agent-client.d.ts +49 -0
  248. package/dist/core/agent-client.d.ts.map +1 -0
  249. package/dist/core/agent-client.js +289 -0
  250. package/dist/core/agent-client.js.map +1 -0
  251. package/dist/core/config/config-manager.d.ts +75 -0
  252. package/dist/core/config/config-manager.d.ts.map +1 -0
  253. package/dist/core/config/config-manager.js +379 -0
  254. package/dist/core/config/config-manager.js.map +1 -0
  255. package/dist/core/config/profile-manager.d.ts +76 -0
  256. package/dist/core/config/profile-manager.d.ts.map +1 -0
  257. package/dist/core/config/profile-manager.js +250 -0
  258. package/dist/core/config/profile-manager.js.map +1 -0
  259. package/dist/core/config/workspace-detector.d.ts +66 -0
  260. package/dist/core/config/workspace-detector.d.ts.map +1 -0
  261. package/dist/core/config/workspace-detector.js +291 -0
  262. package/dist/core/config/workspace-detector.js.map +1 -0
  263. package/dist/core/discovery/docker-parser.d.ts +27 -0
  264. package/dist/core/discovery/docker-parser.d.ts.map +1 -0
  265. package/dist/core/discovery/docker-parser.js +361 -0
  266. package/dist/core/discovery/docker-parser.js.map +1 -0
  267. package/dist/core/discovery/index.d.ts +11 -0
  268. package/dist/core/discovery/index.d.ts.map +1 -0
  269. package/dist/core/discovery/index.js +16 -0
  270. package/dist/core/discovery/index.js.map +1 -0
  271. package/dist/core/discovery/mcp-discovery.d.ts +41 -0
  272. package/dist/core/discovery/mcp-discovery.d.ts.map +1 -0
  273. package/dist/core/discovery/mcp-discovery.js +439 -0
  274. package/dist/core/discovery/mcp-discovery.js.map +1 -0
  275. package/dist/core/discovery/openapi-parser.d.ts +95 -0
  276. package/dist/core/discovery/openapi-parser.d.ts.map +1 -0
  277. package/dist/core/discovery/openapi-parser.js +353 -0
  278. package/dist/core/discovery/openapi-parser.js.map +1 -0
  279. package/dist/core/discovery/plugin-discovery.d.ts +63 -0
  280. package/dist/core/discovery/plugin-discovery.d.ts.map +1 -0
  281. package/dist/core/discovery/plugin-discovery.js +333 -0
  282. package/dist/core/discovery/plugin-discovery.js.map +1 -0
  283. package/dist/core/discovery/service-discovery.d.ts +107 -0
  284. package/dist/core/discovery/service-discovery.d.ts.map +1 -0
  285. package/dist/core/discovery/service-discovery.js +349 -0
  286. package/dist/core/discovery/service-discovery.js.map +1 -0
  287. package/dist/core/nexus-client.d.ts +119 -0
  288. package/dist/core/nexus-client.d.ts.map +1 -0
  289. package/dist/core/nexus-client.js +292 -0
  290. package/dist/core/nexus-client.js.map +1 -0
  291. package/dist/core/nexus-tool-executor.d.ts +102 -0
  292. package/dist/core/nexus-tool-executor.d.ts.map +1 -0
  293. package/dist/core/nexus-tool-executor.js +386 -0
  294. package/dist/core/nexus-tool-executor.js.map +1 -0
  295. package/dist/core/react-handler.d.ts +17 -0
  296. package/dist/core/react-handler.d.ts.map +1 -0
  297. package/dist/core/react-handler.js +296 -0
  298. package/dist/core/react-handler.js.map +1 -0
  299. package/dist/core/router/command-registry.d.ts +61 -0
  300. package/dist/core/router/command-registry.d.ts.map +1 -0
  301. package/dist/core/router/command-registry.js +138 -0
  302. package/dist/core/router/command-registry.js.map +1 -0
  303. package/dist/core/router/command-router.d.ts +33 -0
  304. package/dist/core/router/command-router.d.ts.map +1 -0
  305. package/dist/core/router/command-router.js +111 -0
  306. package/dist/core/router/command-router.js.map +1 -0
  307. package/dist/core/router/index.d.ts +9 -0
  308. package/dist/core/router/index.d.ts.map +1 -0
  309. package/dist/core/router/index.js +8 -0
  310. package/dist/core/router/index.js.map +1 -0
  311. package/dist/core/session/context-manager.d.ts +69 -0
  312. package/dist/core/session/context-manager.d.ts.map +1 -0
  313. package/dist/core/session/context-manager.js +109 -0
  314. package/dist/core/session/context-manager.js.map +1 -0
  315. package/dist/core/session/history-manager.d.ts +72 -0
  316. package/dist/core/session/history-manager.d.ts.map +1 -0
  317. package/dist/core/session/history-manager.js +175 -0
  318. package/dist/core/session/history-manager.js.map +1 -0
  319. package/dist/core/session/index.d.ts +9 -0
  320. package/dist/core/session/index.d.ts.map +1 -0
  321. package/dist/core/session/index.js +9 -0
  322. package/dist/core/session/index.js.map +1 -0
  323. package/dist/core/session/session-manager.d.ts +50 -0
  324. package/dist/core/session/session-manager.d.ts.map +1 -0
  325. package/dist/core/session/session-manager.js +200 -0
  326. package/dist/core/session/session-manager.js.map +1 -0
  327. package/dist/core/session/session-storage.d.ts +59 -0
  328. package/dist/core/session/session-storage.d.ts.map +1 -0
  329. package/dist/core/session/session-storage.js +226 -0
  330. package/dist/core/session/session-storage.js.map +1 -0
  331. package/dist/core/transport/http-client.d.ts +27 -0
  332. package/dist/core/transport/http-client.d.ts.map +1 -0
  333. package/dist/core/transport/http-client.js +182 -0
  334. package/dist/core/transport/http-client.js.map +1 -0
  335. package/dist/core/transport/index.d.ts +11 -0
  336. package/dist/core/transport/index.d.ts.map +1 -0
  337. package/dist/core/transport/index.js +10 -0
  338. package/dist/core/transport/index.js.map +1 -0
  339. package/dist/core/transport/mcp-client.d.ts +69 -0
  340. package/dist/core/transport/mcp-client.d.ts.map +1 -0
  341. package/dist/core/transport/mcp-client.js +252 -0
  342. package/dist/core/transport/mcp-client.js.map +1 -0
  343. package/dist/core/transport/stream-handler.d.ts +51 -0
  344. package/dist/core/transport/stream-handler.d.ts.map +1 -0
  345. package/dist/core/transport/stream-handler.js +264 -0
  346. package/dist/core/transport/stream-handler.js.map +1 -0
  347. package/dist/core/transport/websocket-client.d.ts +66 -0
  348. package/dist/core/transport/websocket-client.d.ts.map +1 -0
  349. package/dist/core/transport/websocket-client.js +232 -0
  350. package/dist/core/transport/websocket-client.js.map +1 -0
  351. package/dist/index.d.ts +9 -0
  352. package/dist/index.d.ts.map +1 -0
  353. package/dist/index.js +106 -0
  354. package/dist/index.js.map +1 -0
  355. package/dist/output/formatters/index.d.ts +9 -0
  356. package/dist/output/formatters/index.d.ts.map +1 -0
  357. package/dist/output/formatters/index.js +9 -0
  358. package/dist/output/formatters/index.js.map +1 -0
  359. package/dist/output/formatters/json-formatter.d.ts +71 -0
  360. package/dist/output/formatters/json-formatter.d.ts.map +1 -0
  361. package/dist/output/formatters/json-formatter.js +236 -0
  362. package/dist/output/formatters/json-formatter.js.map +1 -0
  363. package/dist/output/formatters/stream-formatter.d.ts +107 -0
  364. package/dist/output/formatters/stream-formatter.d.ts.map +1 -0
  365. package/dist/output/formatters/stream-formatter.js +247 -0
  366. package/dist/output/formatters/stream-formatter.js.map +1 -0
  367. package/dist/output/formatters/table-formatter.d.ts +63 -0
  368. package/dist/output/formatters/table-formatter.d.ts.map +1 -0
  369. package/dist/output/formatters/table-formatter.js +294 -0
  370. package/dist/output/formatters/table-formatter.js.map +1 -0
  371. package/dist/output/formatters/text-formatter.d.ts +63 -0
  372. package/dist/output/formatters/text-formatter.d.ts.map +1 -0
  373. package/dist/output/formatters/text-formatter.js +202 -0
  374. package/dist/output/formatters/text-formatter.js.map +1 -0
  375. package/dist/output/formatters/yaml-formatter.d.ts +71 -0
  376. package/dist/output/formatters/yaml-formatter.d.ts.map +1 -0
  377. package/dist/output/formatters/yaml-formatter.js +239 -0
  378. package/dist/output/formatters/yaml-formatter.js.map +1 -0
  379. package/dist/output/index.d.ts +7 -0
  380. package/dist/output/index.d.ts.map +1 -0
  381. package/dist/output/index.js +7 -0
  382. package/dist/output/index.js.map +1 -0
  383. package/dist/output/output-manager.d.ts +156 -0
  384. package/dist/output/output-manager.d.ts.map +1 -0
  385. package/dist/output/output-manager.js +339 -0
  386. package/dist/output/output-manager.js.map +1 -0
  387. package/dist/output/renderers/index.d.ts +6 -0
  388. package/dist/output/renderers/index.d.ts.map +1 -0
  389. package/dist/output/renderers/index.js +6 -0
  390. package/dist/output/renderers/index.js.map +1 -0
  391. package/dist/output/renderers/progress-renderer.d.ts +56 -0
  392. package/dist/output/renderers/progress-renderer.d.ts.map +1 -0
  393. package/dist/output/renderers/progress-renderer.js +306 -0
  394. package/dist/output/renderers/progress-renderer.js.map +1 -0
  395. package/dist/output/renderers/terminal-renderer.d.ts +117 -0
  396. package/dist/output/renderers/terminal-renderer.d.ts.map +1 -0
  397. package/dist/output/renderers/terminal-renderer.js +294 -0
  398. package/dist/output/renderers/terminal-renderer.js.map +1 -0
  399. package/dist/plugins/index.d.ts +12 -0
  400. package/dist/plugins/index.d.ts.map +1 -0
  401. package/dist/plugins/index.js +18 -0
  402. package/dist/plugins/index.js.map +1 -0
  403. package/dist/plugins/plugin-loader.d.ts +37 -0
  404. package/dist/plugins/plugin-loader.d.ts.map +1 -0
  405. package/dist/plugins/plugin-loader.js +155 -0
  406. package/dist/plugins/plugin-loader.js.map +1 -0
  407. package/dist/plugins/plugin-manager.d.ts +78 -0
  408. package/dist/plugins/plugin-manager.d.ts.map +1 -0
  409. package/dist/plugins/plugin-manager.js +310 -0
  410. package/dist/plugins/plugin-manager.js.map +1 -0
  411. package/dist/plugins/plugin-sdk.d.ts +136 -0
  412. package/dist/plugins/plugin-sdk.d.ts.map +1 -0
  413. package/dist/plugins/plugin-sdk.js +260 -0
  414. package/dist/plugins/plugin-sdk.js.map +1 -0
  415. package/dist/plugins/plugin-storage.d.ts +109 -0
  416. package/dist/plugins/plugin-storage.d.ts.map +1 -0
  417. package/dist/plugins/plugin-storage.js +207 -0
  418. package/dist/plugins/plugin-storage.js.map +1 -0
  419. package/dist/plugins/plugin-validator.d.ts +44 -0
  420. package/dist/plugins/plugin-validator.d.ts.map +1 -0
  421. package/dist/plugins/plugin-validator.js +272 -0
  422. package/dist/plugins/plugin-validator.js.map +1 -0
  423. package/dist/plugins/template-generator.d.ts +35 -0
  424. package/dist/plugins/template-generator.d.ts.map +1 -0
  425. package/dist/plugins/template-generator.js +438 -0
  426. package/dist/plugins/template-generator.js.map +1 -0
  427. package/dist/repl/completer.d.ts +58 -0
  428. package/dist/repl/completer.d.ts.map +1 -0
  429. package/dist/repl/completer.js +198 -0
  430. package/dist/repl/completer.js.map +1 -0
  431. package/dist/repl/evaluator.d.ts +55 -0
  432. package/dist/repl/evaluator.d.ts.map +1 -0
  433. package/dist/repl/evaluator.js +299 -0
  434. package/dist/repl/evaluator.js.map +1 -0
  435. package/dist/repl/index.d.ts +10 -0
  436. package/dist/repl/index.d.ts.map +1 -0
  437. package/dist/repl/index.js +10 -0
  438. package/dist/repl/index.js.map +1 -0
  439. package/dist/repl/renderer.d.ts +77 -0
  440. package/dist/repl/renderer.d.ts.map +1 -0
  441. package/dist/repl/renderer.js +291 -0
  442. package/dist/repl/renderer.js.map +1 -0
  443. package/dist/repl/repl.d.ts +89 -0
  444. package/dist/repl/repl.d.ts.map +1 -0
  445. package/dist/repl/repl.js +339 -0
  446. package/dist/repl/repl.js.map +1 -0
  447. package/dist/templates/python.d.ts +15 -0
  448. package/dist/templates/python.d.ts.map +1 -0
  449. package/dist/templates/python.js +375 -0
  450. package/dist/templates/python.js.map +1 -0
  451. package/dist/templates/typescript.d.ts +15 -0
  452. package/dist/templates/typescript.d.ts.map +1 -0
  453. package/dist/templates/typescript.js +274 -0
  454. package/dist/templates/typescript.js.map +1 -0
  455. package/dist/types/agent.d.ts +109 -0
  456. package/dist/types/agent.d.ts.map +1 -0
  457. package/dist/types/agent.js +7 -0
  458. package/dist/types/agent.js.map +1 -0
  459. package/dist/types/api.d.ts +125 -0
  460. package/dist/types/api.d.ts.map +1 -0
  461. package/dist/types/api.js +53 -0
  462. package/dist/types/api.js.map +1 -0
  463. package/dist/types/command.d.ts +101 -0
  464. package/dist/types/command.d.ts.map +1 -0
  465. package/dist/types/command.js +7 -0
  466. package/dist/types/command.js.map +1 -0
  467. package/dist/types/compute.d.ts +317 -0
  468. package/dist/types/compute.d.ts.map +1 -0
  469. package/dist/types/compute.js +19 -0
  470. package/dist/types/compute.js.map +1 -0
  471. package/dist/types/config.d.ts +71 -0
  472. package/dist/types/config.d.ts.map +1 -0
  473. package/dist/types/config.js +7 -0
  474. package/dist/types/config.js.map +1 -0
  475. package/dist/types/errors.d.ts +56 -0
  476. package/dist/types/errors.d.ts.map +1 -0
  477. package/dist/types/errors.js +64 -0
  478. package/dist/types/errors.js.map +1 -0
  479. package/dist/types/index.d.ts +16 -0
  480. package/dist/types/index.d.ts.map +1 -0
  481. package/dist/types/index.js +16 -0
  482. package/dist/types/index.js.map +1 -0
  483. package/dist/types/nexus.d.ts +254 -0
  484. package/dist/types/nexus.d.ts.map +1 -0
  485. package/dist/types/nexus.js +7 -0
  486. package/dist/types/nexus.js.map +1 -0
  487. package/dist/types/output.d.ts +107 -0
  488. package/dist/types/output.d.ts.map +1 -0
  489. package/dist/types/output.js +7 -0
  490. package/dist/types/output.js.map +1 -0
  491. package/dist/types/plugin.d.ts +118 -0
  492. package/dist/types/plugin.d.ts.map +1 -0
  493. package/dist/types/plugin.js +7 -0
  494. package/dist/types/plugin.js.map +1 -0
  495. package/dist/types/service.d.ts +94 -0
  496. package/dist/types/service.d.ts.map +1 -0
  497. package/dist/types/service.js +15 -0
  498. package/dist/types/service.js.map +1 -0
  499. package/dist/types/session.d.ts +80 -0
  500. package/dist/types/session.d.ts.map +1 -0
  501. package/dist/types/session.js +7 -0
  502. package/dist/types/session.js.map +1 -0
  503. package/dist/types/transport.d.ts +96 -0
  504. package/dist/types/transport.d.ts.map +1 -0
  505. package/dist/types/transport.js +7 -0
  506. package/dist/types/transport.js.map +1 -0
  507. package/dist/utils/config.d.ts +47 -0
  508. package/dist/utils/config.d.ts.map +1 -0
  509. package/dist/utils/config.js +166 -0
  510. package/dist/utils/config.js.map +1 -0
  511. package/dist/utils/error-handler.d.ts +82 -0
  512. package/dist/utils/error-handler.d.ts.map +1 -0
  513. package/dist/utils/error-handler.js +238 -0
  514. package/dist/utils/error-handler.js.map +1 -0
  515. package/dist/utils/index.d.ts +9 -0
  516. package/dist/utils/index.d.ts.map +1 -0
  517. package/dist/utils/index.js +9 -0
  518. package/dist/utils/index.js.map +1 -0
  519. package/dist/utils/logger.d.ts +61 -0
  520. package/dist/utils/logger.d.ts.map +1 -0
  521. package/dist/utils/logger.js +200 -0
  522. package/dist/utils/logger.js.map +1 -0
  523. package/dist/utils/prompt.d.ts +57 -0
  524. package/dist/utils/prompt.d.ts.map +1 -0
  525. package/dist/utils/prompt.js +141 -0
  526. package/dist/utils/prompt.js.map +1 -0
  527. package/dist/utils/spinner.d.ts +47 -0
  528. package/dist/utils/spinner.d.ts.map +1 -0
  529. package/dist/utils/spinner.js +123 -0
  530. package/dist/utils/spinner.js.map +1 -0
  531. package/dist/utils/validation.d.ts +97 -0
  532. package/dist/utils/validation.d.ts.map +1 -0
  533. package/dist/utils/validation.js +289 -0
  534. package/dist/utils/validation.js.map +1 -0
  535. package/docs/COMPLETIONS.md +528 -0
  536. package/docs/REPL.md +466 -0
  537. package/docs/graphrag-commands.md +387 -0
  538. package/package.json +154 -0
  539. package/scripts/install-completions.sh +356 -0
  540. package/scripts/prepublish.js +522 -0
  541. package/scripts/verify-package.js +505 -0
@@ -0,0 +1,329 @@
1
+ #!/usr/bin/env bash
2
+ # Bash completion script for Nexus CLI
3
+ # Install: source this file or copy to /etc/bash_completion.d/nexus
4
+
5
+ _nexus_completions() {
6
+ local cur prev words cword split
7
+ _init_completion -s || return
8
+
9
+ # Global options
10
+ local global_opts="
11
+ --config
12
+ --profile
13
+ --output-format -o
14
+ --verbose -v
15
+ --quiet -q
16
+ --no-color
17
+ --timeout
18
+ --retries
19
+ --help -h
20
+ --version -V
21
+ "
22
+
23
+ # Main commands
24
+ local commands="
25
+ version
26
+ config
27
+ workspace
28
+ services
29
+ brain
30
+ agent
31
+ repl
32
+ session
33
+ plugin
34
+ init
35
+ deploy
36
+ login
37
+ register
38
+ logs
39
+ list
40
+ help
41
+ "
42
+
43
+ # Service subcommands
44
+ local service_cmds="
45
+ list
46
+ status
47
+ health
48
+ info
49
+ logs
50
+ start
51
+ stop
52
+ restart
53
+ ports
54
+ "
55
+
56
+ # Brain subcommands (base commands, dynamic tools discovered at runtime)
57
+ local brain_cmds="
58
+ list
59
+ categories
60
+ refresh
61
+ health
62
+ store-memory
63
+ recall-memory
64
+ store-document
65
+ store-episode
66
+ store-pattern
67
+ retrieve
68
+ recall-episodes
69
+ enhanced-retrieve
70
+ store-entity
71
+ query-entities
72
+ create-entity-relationship
73
+ validate-code
74
+ validate-command
75
+ analyze-code
76
+ orchestrate
77
+ trigger-learning
78
+ recall-learned-knowledge
79
+ inject-context
80
+ get-suggestions
81
+ ingest-url
82
+ ingest-url-confirm
83
+ check-ingestion-job
84
+ validation-result
85
+ "
86
+
87
+ # Agent subcommands
88
+ local agent_cmds="
89
+ run
90
+ list
91
+ status
92
+ "
93
+
94
+ # Session subcommands
95
+ local session_cmds="
96
+ save
97
+ load
98
+ list
99
+ resume
100
+ import
101
+ export
102
+ delete
103
+ "
104
+
105
+ # Plugin subcommands
106
+ local plugin_cmds="
107
+ install
108
+ uninstall
109
+ list
110
+ init
111
+ enable
112
+ disable
113
+ info
114
+ "
115
+
116
+ # Workspace subcommands
117
+ local workspace_cmds="
118
+ init
119
+ info
120
+ validate
121
+ git-status
122
+ git-commit
123
+ "
124
+
125
+ # Get the command being completed
126
+ local command=""
127
+ local subcommand=""
128
+
129
+ # Find the main command
130
+ for ((i=1; i < cword; i++)); do
131
+ if [[ "${words[i]}" != -* ]]; then
132
+ if [[ -z "$command" ]]; then
133
+ command="${words[i]}"
134
+ elif [[ -z "$subcommand" ]]; then
135
+ subcommand="${words[i]}"
136
+ fi
137
+ fi
138
+ done
139
+
140
+ # Handle --output-format completions
141
+ if [[ "$prev" == "--output-format" || "$prev" == "-o" ]]; then
142
+ COMPREPLY=($(compgen -W "text json yaml table stream-json" -- "$cur"))
143
+ return 0
144
+ fi
145
+
146
+ # Handle --config completions (file paths)
147
+ if [[ "$prev" == "--config" ]]; then
148
+ _filedir
149
+ return 0
150
+ fi
151
+
152
+ # Handle --profile completions (could be enhanced to read from config)
153
+ if [[ "$prev" == "--profile" ]]; then
154
+ COMPREPLY=($(compgen -W "default production staging development" -- "$cur"))
155
+ return 0
156
+ fi
157
+
158
+ # Command-specific completions
159
+ case "$command" in
160
+ services)
161
+ case "$subcommand" in
162
+ "")
163
+ # Complete service subcommands
164
+ COMPREPLY=($(compgen -W "$service_cmds $global_opts" -- "$cur"))
165
+ ;;
166
+ start|stop|restart|info|logs|status)
167
+ # Complete service names (try to get from nexus services list)
168
+ if command -v nexus &> /dev/null; then
169
+ local services=$(nexus services list --output-format text 2>/dev/null | awk '{print $1}' | tail -n +2)
170
+ COMPREPLY=($(compgen -W "$services $global_opts" -- "$cur"))
171
+ else
172
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
173
+ fi
174
+ ;;
175
+ *)
176
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
177
+ ;;
178
+ esac
179
+ ;;
180
+
181
+ brain)
182
+ case "$subcommand" in
183
+ "")
184
+ # Complete brain subcommands
185
+ COMPREPLY=($(compgen -W "$brain_cmds $global_opts" -- "$cur"))
186
+ ;;
187
+ list)
188
+ # Brain list options
189
+ COMPREPLY=($(compgen -W "--category -c --verbose -v $global_opts" -- "$cur"))
190
+ ;;
191
+ store-document|ingest-url)
192
+ # File path completion
193
+ if [[ "$cur" != -* ]]; then
194
+ _filedir
195
+ else
196
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
197
+ fi
198
+ ;;
199
+ *)
200
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
201
+ ;;
202
+ esac
203
+ ;;
204
+
205
+ agent)
206
+ case "$subcommand" in
207
+ "")
208
+ # Complete agent subcommands
209
+ COMPREPLY=($(compgen -W "$agent_cmds $global_opts" -- "$cur"))
210
+ ;;
211
+ run)
212
+ # Agent run options
213
+ COMPREPLY=($(compgen -W "--task --timeout --max-iterations $global_opts" -- "$cur"))
214
+ ;;
215
+ *)
216
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
217
+ ;;
218
+ esac
219
+ ;;
220
+
221
+ session)
222
+ case "$subcommand" in
223
+ "")
224
+ # Complete session subcommands
225
+ COMPREPLY=($(compgen -W "$session_cmds $global_opts" -- "$cur"))
226
+ ;;
227
+ save)
228
+ COMPREPLY=($(compgen -W "--name --description $global_opts" -- "$cur"))
229
+ ;;
230
+ load|resume|delete)
231
+ # Try to get session names
232
+ if command -v nexus &> /dev/null; then
233
+ local sessions=$(nexus session list --output-format text 2>/dev/null | awk '{print $1}' | tail -n +2)
234
+ COMPREPLY=($(compgen -W "$sessions $global_opts" -- "$cur"))
235
+ else
236
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
237
+ fi
238
+ ;;
239
+ import|export)
240
+ if [[ "$cur" != -* ]]; then
241
+ _filedir
242
+ else
243
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
244
+ fi
245
+ ;;
246
+ *)
247
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
248
+ ;;
249
+ esac
250
+ ;;
251
+
252
+ plugin)
253
+ case "$subcommand" in
254
+ "")
255
+ # Complete plugin subcommands
256
+ COMPREPLY=($(compgen -W "$plugin_cmds $global_opts" -- "$cur"))
257
+ ;;
258
+ install)
259
+ COMPREPLY=($(compgen -W "--path --git --npm $global_opts" -- "$cur"))
260
+ ;;
261
+ uninstall|enable|disable|info)
262
+ # Try to get plugin names
263
+ if command -v nexus &> /dev/null; then
264
+ local plugins=$(nexus plugin list --output-format text 2>/dev/null | awk '{print $1}' | tail -n +2)
265
+ COMPREPLY=($(compgen -W "$plugins $global_opts" -- "$cur"))
266
+ else
267
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
268
+ fi
269
+ ;;
270
+ *)
271
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
272
+ ;;
273
+ esac
274
+ ;;
275
+
276
+ workspace)
277
+ case "$subcommand" in
278
+ "")
279
+ # Complete workspace subcommands
280
+ COMPREPLY=($(compgen -W "$workspace_cmds $global_opts" -- "$cur"))
281
+ ;;
282
+ init)
283
+ COMPREPLY=($(compgen -W "--name --template --path $global_opts" -- "$cur"))
284
+ ;;
285
+ git-commit)
286
+ COMPREPLY=($(compgen -W "--message -m --amend --no-verify $global_opts" -- "$cur"))
287
+ ;;
288
+ *)
289
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
290
+ ;;
291
+ esac
292
+ ;;
293
+
294
+ init)
295
+ # Init command options
296
+ COMPREPLY=($(compgen -W "--name --template --path --force $global_opts" -- "$cur"))
297
+ ;;
298
+
299
+ deploy)
300
+ # Deploy command options
301
+ COMPREPLY=($(compgen -W "--environment --service --all --dry-run $global_opts" -- "$cur"))
302
+ ;;
303
+
304
+ login)
305
+ # Login command options
306
+ COMPREPLY=($(compgen -W "--username --password --token --sso $global_opts" -- "$cur"))
307
+ ;;
308
+
309
+ logs)
310
+ # Logs command options
311
+ COMPREPLY=($(compgen -W "--service --follow -f --tail --since --until $global_opts" -- "$cur"))
312
+ ;;
313
+
314
+ "")
315
+ # No command yet, complete main commands and global options
316
+ COMPREPLY=($(compgen -W "$commands $global_opts" -- "$cur"))
317
+ ;;
318
+
319
+ *)
320
+ # Unknown command, just complete global options
321
+ COMPREPLY=($(compgen -W "$global_opts" -- "$cur"))
322
+ ;;
323
+ esac
324
+
325
+ return 0
326
+ }
327
+
328
+ # Register the completion function
329
+ complete -F _nexus_completions nexus
@@ -0,0 +1,187 @@
1
+ # Fish completion script for Nexus CLI
2
+ # Install: Copy to ~/.config/fish/completions/nexus.fish
3
+
4
+ # Remove any existing completions
5
+ complete -c nexus -e
6
+
7
+ # Global options
8
+ complete -c nexus -l config -d 'Use specific config file' -r -F
9
+ complete -c nexus -l profile -d 'Use specific profile' -x -a 'default production staging development'
10
+ complete -c nexus -s o -l output-format -d 'Output format' -x -a 'text json yaml table stream-json'
11
+ complete -c nexus -s v -l verbose -d 'Verbose output (debug level)'
12
+ complete -c nexus -s q -l quiet -d 'Minimal output (errors only)'
13
+ complete -c nexus -l no-color -d 'Disable colors'
14
+ complete -c nexus -l timeout -d 'Request timeout in milliseconds' -x
15
+ complete -c nexus -l retries -d 'Number of retries' -x
16
+ complete -c nexus -s h -l help -d 'Show help information'
17
+ complete -c nexus -s V -l version -d 'Show version information'
18
+
19
+ # Main commands
20
+ complete -c nexus -f -n __fish_use_subcommand -a version -d 'Show version information'
21
+ complete -c nexus -f -n __fish_use_subcommand -a config -d 'Configuration management'
22
+ complete -c nexus -f -n __fish_use_subcommand -a workspace -d 'Workspace management'
23
+ complete -c nexus -f -n __fish_use_subcommand -a services -d 'Service management'
24
+ complete -c nexus -f -n __fish_use_subcommand -a brain -d 'Brain MCP tools'
25
+ complete -c nexus -f -n __fish_use_subcommand -a agent -d 'Autonomous agent management'
26
+ complete -c nexus -f -n __fish_use_subcommand -a repl -d 'Start interactive REPL mode'
27
+ complete -c nexus -f -n __fish_use_subcommand -a session -d 'Session management'
28
+ complete -c nexus -f -n __fish_use_subcommand -a plugin -d 'Plugin management'
29
+ complete -c nexus -f -n __fish_use_subcommand -a init -d 'Initialize new workspace or project'
30
+ complete -c nexus -f -n __fish_use_subcommand -a deploy -d 'Deploy services to environment'
31
+ complete -c nexus -f -n __fish_use_subcommand -a login -d 'Authenticate with Nexus platform'
32
+ complete -c nexus -f -n __fish_use_subcommand -a register -d 'Register new account'
33
+ complete -c nexus -f -n __fish_use_subcommand -a logs -d 'View service logs'
34
+ complete -c nexus -f -n __fish_use_subcommand -a list -d 'List available resources'
35
+ complete -c nexus -f -n __fish_use_subcommand -a help -d 'Display help for command'
36
+
37
+ # Services subcommands
38
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a list -d 'List all available services'
39
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a status -d 'Show service status'
40
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a health -d 'Check service health'
41
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a info -d 'Display detailed service information'
42
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a logs -d 'View service logs'
43
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a start -d 'Start one or more services'
44
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a stop -d 'Stop one or more services'
45
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a restart -d 'Restart one or more services'
46
+ complete -c nexus -f -n '__fish_seen_subcommand_from services' -a ports -d 'Show service port mappings'
47
+
48
+ # Dynamic service name completion for services commands
49
+ complete -c nexus -f -n '__fish_seen_subcommand_from services; and __fish_seen_subcommand_from start stop restart info logs status' -a '(nexus services list --output-format text 2>/dev/null | tail -n +2 | awk \'{print $1}\')'
50
+
51
+ # Brain subcommands
52
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a list -d 'List all available Brain tools'
53
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a categories -d 'List Brain tool categories'
54
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a refresh -d 'Refresh Brain tools from MCP server'
55
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a health -d 'Check Brain system health'
56
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-memory -d 'Store a memory/fact in Brain'
57
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a recall-memory -d 'Recall memories from Brain'
58
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-document -d 'Store a document in Brain'
59
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-episode -d 'Store an episode/event'
60
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-pattern -d 'Store a learned pattern'
61
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a retrieve -d 'Advanced retrieval with multiple strategies'
62
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a recall-episodes -d 'Recall past episodes with temporal context'
63
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a enhanced-retrieve -d 'Unified retrieval across all memory types'
64
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a store-entity -d 'Store entity in knowledge graph'
65
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a query-entities -d 'Query knowledge graph entities'
66
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a create-entity-relationship -d 'Create relationship between entities'
67
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a validate-code -d 'Multi-model code validation'
68
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a validate-command -d 'Validate shell commands before execution'
69
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a analyze-code -d 'Fast single-model code analysis'
70
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a orchestrate -d 'Multi-agent orchestration for complex tasks'
71
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a trigger-learning -d 'Trigger progressive learning on topics'
72
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a recall-learned-knowledge -d 'Retrieve learned knowledge'
73
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a inject-context -d 'Manually inject context for operations'
74
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a get-suggestions -d 'Get AI suggestions for operations'
75
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a ingest-url -d 'Ingest files from URL'
76
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a ingest-url-confirm -d 'Confirm and start URL ingestion'
77
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a check-ingestion-job -d 'Check ingestion job status'
78
+ complete -c nexus -f -n '__fish_seen_subcommand_from brain' -a validation-result -d 'Get code validation results'
79
+
80
+ # Brain list options
81
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from list' -s c -l category -d 'Filter by category' -x
82
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from list' -s v -l verbose -d 'Show detailed information'
83
+
84
+ # Brain store-memory options
85
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from store-memory' -l content -d 'Memory content' -x
86
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from store-memory' -l tags -d 'Tags (comma-separated)' -x
87
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from store-memory' -l importance -d 'Importance (0-1)' -x
88
+
89
+ # Brain recall-memory/retrieve options
90
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from recall-memory retrieve' -l query -d 'Search query' -x
91
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from recall-memory retrieve' -l limit -d 'Maximum results' -x
92
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from recall-memory retrieve' -l threshold -d 'Score threshold' -x
93
+
94
+ # Brain code analysis options
95
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from validate-code analyze-code' -l code -d 'Code to analyze' -x
96
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from validate-code analyze-code' -l language -d 'Programming language' -x -a 'typescript javascript python go rust java'
97
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from validate-code analyze-code' -l risk-level -d 'Risk level' -x -a 'low medium high critical'
98
+
99
+ # Brain orchestrate options
100
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from orchestrate' -l task -d 'Task description' -x
101
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from orchestrate' -l max-agents -d 'Maximum agents' -x
102
+ complete -c nexus -n '__fish_seen_subcommand_from brain; and __fish_seen_subcommand_from orchestrate' -l timeout -d 'Timeout in ms' -x
103
+
104
+ # Agent subcommands
105
+ complete -c nexus -f -n '__fish_seen_subcommand_from agent' -a run -d 'Run an autonomous agent'
106
+ complete -c nexus -f -n '__fish_seen_subcommand_from agent' -a list -d 'List available agents'
107
+ complete -c nexus -f -n '__fish_seen_subcommand_from agent' -a status -d 'Show agent status'
108
+
109
+ # Agent run options
110
+ complete -c nexus -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from run' -l task -d 'Task description' -x
111
+ complete -c nexus -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from run' -l timeout -d 'Timeout in seconds' -x
112
+ complete -c nexus -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from run' -l max-iterations -d 'Maximum iterations' -x
113
+
114
+ # Session subcommands
115
+ complete -c nexus -f -n '__fish_seen_subcommand_from session' -a save -d 'Save current session'
116
+ complete -c nexus -f -n '__fish_seen_subcommand_from session' -a load -d 'Load a saved session'
117
+ complete -c nexus -f -n '__fish_seen_subcommand_from session' -a list -d 'List all saved sessions'
118
+ complete -c nexus -f -n '__fish_seen_subcommand_from session' -a resume -d 'Resume a session'
119
+ complete -c nexus -f -n '__fish_seen_subcommand_from session' -a import -d 'Import session from file'
120
+ complete -c nexus -f -n '__fish_seen_subcommand_from session' -a export -d 'Export session to file'
121
+ complete -c nexus -f -n '__fish_seen_subcommand_from session' -a delete -d 'Delete a saved session'
122
+
123
+ # Session save options
124
+ complete -c nexus -n '__fish_seen_subcommand_from session; and __fish_seen_subcommand_from save' -l name -d 'Session name' -x
125
+ complete -c nexus -n '__fish_seen_subcommand_from session; and __fish_seen_subcommand_from save' -l description -d 'Session description' -x
126
+
127
+ # Dynamic session name completion
128
+ complete -c nexus -f -n '__fish_seen_subcommand_from session; and __fish_seen_subcommand_from load resume delete' -a '(nexus session list --output-format text 2>/dev/null | tail -n +2 | awk \'{print $1}\')'
129
+
130
+ # Plugin subcommands
131
+ complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a install -d 'Install a plugin'
132
+ complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a uninstall -d 'Uninstall a plugin'
133
+ complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a list -d 'List installed plugins'
134
+ complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a init -d 'Initialize a new plugin'
135
+ complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a enable -d 'Enable a plugin'
136
+ complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a disable -d 'Disable a plugin'
137
+ complete -c nexus -f -n '__fish_seen_subcommand_from plugin' -a info -d 'Show plugin information'
138
+
139
+ # Plugin install options
140
+ complete -c nexus -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from install' -l path -d 'Install from path' -r -F
141
+ complete -c nexus -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from install' -l git -d 'Install from git repository' -x
142
+ complete -c nexus -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from install' -l npm -d 'Install from npm' -x
143
+
144
+ # Dynamic plugin name completion
145
+ complete -c nexus -f -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from uninstall enable disable info' -a '(nexus plugin list --output-format text 2>/dev/null | tail -n +2 | awk \'{print $1}\')'
146
+
147
+ # Workspace subcommands
148
+ complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a init -d 'Initialize workspace'
149
+ complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a info -d 'Show workspace information'
150
+ complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a validate -d 'Validate workspace configuration'
151
+ complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a git-status -d 'Show git status'
152
+ complete -c nexus -f -n '__fish_seen_subcommand_from workspace' -a git-commit -d 'Commit changes'
153
+
154
+ # Workspace init options
155
+ complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from init' -l name -d 'Workspace name' -x
156
+ complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from init' -l template -d 'Template to use' -x
157
+ complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from init' -l path -d 'Workspace path' -r -F
158
+
159
+ # Workspace git-commit options
160
+ complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from git-commit' -s m -l message -d 'Commit message' -x
161
+ complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from git-commit' -l amend -d 'Amend previous commit'
162
+ complete -c nexus -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from git-commit' -l no-verify -d 'Skip git hooks'
163
+
164
+ # Init command options
165
+ complete -c nexus -n '__fish_seen_subcommand_from init' -l name -d 'Project name' -x
166
+ complete -c nexus -n '__fish_seen_subcommand_from init' -l template -d 'Template to use' -x
167
+ complete -c nexus -n '__fish_seen_subcommand_from init' -l path -d 'Project path' -r -F
168
+ complete -c nexus -n '__fish_seen_subcommand_from init' -l force -d 'Force overwrite existing files'
169
+
170
+ # Deploy command options
171
+ complete -c nexus -n '__fish_seen_subcommand_from deploy' -l environment -d 'Target environment' -x -a 'development staging production'
172
+ complete -c nexus -n '__fish_seen_subcommand_from deploy' -l service -d 'Specific service to deploy' -x
173
+ complete -c nexus -n '__fish_seen_subcommand_from deploy' -l all -d 'Deploy all services'
174
+ complete -c nexus -n '__fish_seen_subcommand_from deploy' -l dry-run -d 'Perform dry run without actual deployment'
175
+
176
+ # Login command options
177
+ complete -c nexus -n '__fish_seen_subcommand_from login' -l username -d 'Username' -x
178
+ complete -c nexus -n '__fish_seen_subcommand_from login' -l password -d 'Password' -x
179
+ complete -c nexus -n '__fish_seen_subcommand_from login' -l token -d 'Authentication token' -x
180
+ complete -c nexus -n '__fish_seen_subcommand_from login' -l sso -d 'Use SSO authentication'
181
+
182
+ # Logs command options
183
+ complete -c nexus -n '__fish_seen_subcommand_from logs' -l service -d 'Service name' -x
184
+ complete -c nexus -n '__fish_seen_subcommand_from logs' -s f -l follow -d 'Follow log output'
185
+ complete -c nexus -n '__fish_seen_subcommand_from logs' -l tail -d 'Number of lines to show' -x
186
+ complete -c nexus -n '__fish_seen_subcommand_from logs' -l since -d 'Show logs since timestamp' -x
187
+ complete -c nexus -n '__fish_seen_subcommand_from logs' -l until -d 'Show logs until timestamp' -x
package/dist/cli.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ /**
2
+ * CLI Setup and Command Registration for Nexus CLI
3
+ *
4
+ * Sets up Commander.js with all commands, global options,
5
+ * and help system integration.
6
+ */
7
+ import { Command } from 'commander';
8
+ import type { OutputFormat } from './types/output.js';
9
+ export interface GlobalOptions {
10
+ config?: string;
11
+ profile?: string;
12
+ outputFormat?: OutputFormat;
13
+ verbose?: boolean;
14
+ quiet?: boolean;
15
+ noColor?: boolean;
16
+ timeout?: number;
17
+ retries?: number;
18
+ }
19
+ /**
20
+ * Create and configure the CLI program
21
+ */
22
+ export declare function createCLI(): Command;
23
+ /**
24
+ * Setup CLI with global configuration and error handling
25
+ */
26
+ export declare function setupCLI(): Promise<Command>;
27
+ /**
28
+ * Register all commands (called from index.ts)
29
+ */
30
+ export declare function registerCommands(program: Command): void;
31
+ /**
32
+ * Parse CLI arguments and execute
33
+ */
34
+ export declare function runCLI(argv?: string[]): Promise<void>;
35
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAqCnC;AAED;;GAEG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CA6BjD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsDvD;AAED;;GAEG;AACH,wBAAsB,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAM3D"}