nexus-ai-pro 2.1.0 → 2.3.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 (300) hide show
  1. package/API_STABILITY.md +77 -0
  2. package/CHANGELOG.md +286 -1
  3. package/README.md +19 -9
  4. package/dist/agent/capabilities.d.ts +39 -0
  5. package/dist/agent/capabilities.js +36 -0
  6. package/dist/agent/create-agent.d.ts +61 -11
  7. package/dist/agent/create-agent.js +136 -22
  8. package/dist/agent/index.d.ts +3 -2
  9. package/dist/agent/index.js +1 -1
  10. package/dist/agent/middleware/approval.d.ts +26 -0
  11. package/dist/agent/middleware/approval.js +23 -0
  12. package/dist/agent/{middleware.d.ts → middleware/basic.d.ts} +5 -4
  13. package/dist/agent/{middleware.js → middleware/basic.js} +3 -5
  14. package/dist/agent/middleware/context-editor.d.ts +52 -0
  15. package/dist/agent/middleware/context-editor.js +66 -0
  16. package/dist/agent/middleware/filesystem.d.ts +44 -0
  17. package/dist/agent/middleware/filesystem.js +83 -0
  18. package/dist/agent/middleware/index.d.ts +19 -0
  19. package/dist/agent/middleware/index.js +9 -0
  20. package/dist/agent/middleware/limits.d.ts +42 -0
  21. package/dist/agent/middleware/limits.js +52 -0
  22. package/dist/agent/middleware/models.d.ts +48 -0
  23. package/dist/agent/middleware/models.js +44 -0
  24. package/dist/agent/middleware/pii.d.ts +67 -0
  25. package/dist/agent/middleware/pii.js +173 -0
  26. package/dist/agent/middleware/retry.d.ts +66 -0
  27. package/dist/agent/middleware/retry.js +59 -0
  28. package/dist/agent/middleware/shared.d.ts +41 -0
  29. package/dist/agent/middleware/shared.js +73 -0
  30. package/dist/agent/middleware/tool-selector.d.ts +64 -0
  31. package/dist/agent/middleware/tool-selector.js +106 -0
  32. package/dist/agent/permissions.d.ts +113 -0
  33. package/dist/agent/permissions.js +180 -0
  34. package/dist/agent/sandbox.d.ts +151 -0
  35. package/dist/agent/sandbox.js +257 -0
  36. package/dist/agent/tool.d.ts +8 -3
  37. package/dist/agent/tool.js +14 -3
  38. package/dist/cache/memory-cache.d.ts +8 -0
  39. package/dist/cache/memory-cache.js +9 -0
  40. package/dist/cache/semantic-cache.d.ts +6 -3
  41. package/dist/cache/semantic-cache.js +5 -2
  42. package/dist/cli/args.js +3 -0
  43. package/dist/cli/db.d.ts +16 -4
  44. package/dist/cli/db.js +169 -22
  45. package/dist/cli/doctor.d.ts +17 -0
  46. package/dist/cli/doctor.js +53 -0
  47. package/dist/cli.js +12 -1
  48. package/dist/core/lifecycle.js +11 -6
  49. package/dist/core/nexus.d.ts +6 -0
  50. package/dist/core/nexus.js +103 -22
  51. package/dist/deep-agent/index.d.ts +109 -0
  52. package/dist/deep-agent/index.js +216 -0
  53. package/dist/doctor/index.d.ts +90 -0
  54. package/dist/doctor/index.js +237 -0
  55. package/dist/graph/functional.d.ts +89 -7
  56. package/dist/graph/functional.js +156 -36
  57. package/dist/graph/graph.d.ts +15 -5
  58. package/dist/graph/graph.js +95 -22
  59. package/dist/graph/lint.d.ts +4 -1
  60. package/dist/graph/lint.js +35 -0
  61. package/dist/images/evals.js +4 -2
  62. package/dist/operations/adapters.d.ts +52 -4
  63. package/dist/operations/adapters.js +194 -7
  64. package/dist/operations/runner.js +1 -0
  65. package/dist/operations/stats.js +8 -1
  66. package/dist/operations/store.d.ts +5 -1
  67. package/dist/operations/store.js +7 -0
  68. package/dist/ops/circuit-breaker.d.ts +52 -0
  69. package/dist/ops/circuit-breaker.js +4 -0
  70. package/dist/ops/circuit-store.d.ts +13 -2
  71. package/dist/ops/circuit-store.js +68 -0
  72. package/dist/ops/circuit-sync.d.ts +17 -0
  73. package/dist/ops/circuit-sync.js +86 -0
  74. package/dist/ops/rate-limiter.d.ts +2 -0
  75. package/dist/ops/rate-limiter.js +2 -0
  76. package/dist/postgres/circuits.d.ts +21 -4
  77. package/dist/postgres/circuits.js +65 -4
  78. package/dist/postgres/client.d.ts +0 -2
  79. package/dist/postgres/client.js +0 -4
  80. package/dist/postgres/evaluate.d.ts +16 -4
  81. package/dist/postgres/evaluate.js +17 -5
  82. package/dist/postgres/fulltext.d.ts +67 -0
  83. package/dist/postgres/fulltext.js +91 -0
  84. package/dist/postgres/index.d.ts +32 -11
  85. package/dist/postgres/index.js +65 -31
  86. package/dist/postgres/migrations.d.ts +60 -0
  87. package/dist/postgres/migrations.js +121 -0
  88. package/dist/postgres/operations.d.ts +14 -3
  89. package/dist/postgres/operations.js +45 -15
  90. package/dist/postgres/prompts.d.ts +11 -2
  91. package/dist/postgres/prompts.js +14 -3
  92. package/dist/postgres/rollups.d.ts +35 -0
  93. package/dist/postgres/rollups.js +129 -0
  94. package/dist/postgres/store.d.ts +11 -2
  95. package/dist/postgres/store.js +14 -3
  96. package/dist/postgres/traces.d.ts +13 -3
  97. package/dist/postgres/traces.js +25 -3
  98. package/dist/postgres/vectors.d.ts +11 -2
  99. package/dist/postgres/vectors.js +14 -3
  100. package/dist/rag/elasticsearch.d.ts +71 -0
  101. package/dist/rag/elasticsearch.js +130 -0
  102. package/dist/rag/pipeline.d.ts +140 -0
  103. package/dist/rag/pipeline.js +187 -0
  104. package/dist/rag/rerankers.d.ts +92 -0
  105. package/dist/rag/rerankers.js +97 -0
  106. package/dist/rag/retrievers.d.ts +12 -1
  107. package/dist/router/auto-router.d.ts +34 -7
  108. package/dist/router/auto-router.js +201 -68
  109. package/dist/server/assistant.d.ts +9 -1
  110. package/dist/server/assistant.js +10 -0
  111. package/dist/server/auth.d.ts +250 -0
  112. package/dist/server/auth.js +392 -0
  113. package/dist/server/errors.d.ts +12 -0
  114. package/dist/server/errors.js +7 -0
  115. package/dist/server/index.d.ts +1 -1
  116. package/dist/server/index.js +1 -1
  117. package/dist/server/runs.d.ts +24 -1
  118. package/dist/server/runs.js +90 -14
  119. package/dist/sqlite/index.d.ts +16 -3
  120. package/dist/sqlite/index.js +16 -3
  121. package/dist/sqlite/migrations.d.ts +26 -0
  122. package/dist/sqlite/migrations.js +63 -0
  123. package/dist/sqlite/operations.d.ts +14 -3
  124. package/dist/sqlite/operations.js +42 -15
  125. package/dist/sqlite/store.d.ts +9 -2
  126. package/dist/sqlite/store.js +13 -3
  127. package/dist/sqlite/vectors.d.ts +11 -2
  128. package/dist/sqlite/vectors.js +13 -2
  129. package/dist/store/memory.d.ts +10 -0
  130. package/dist/store/memory.js +10 -0
  131. package/dist/store/tenant.d.ts +12 -0
  132. package/dist/store/tenant.js +29 -0
  133. package/dist/tenancy/index.d.ts +113 -0
  134. package/dist/tenancy/index.js +233 -0
  135. package/dist/tracing/instrument.js +2 -0
  136. package/dist/types/config.d.ts +24 -2
  137. package/dist/types/graph.d.ts +49 -1
  138. package/dist/types/messages.d.ts +41 -2
  139. package/dist/types/operations.d.ts +6 -0
  140. package/dist/types/principal.d.ts +21 -0
  141. package/dist/types/principal.js +1 -0
  142. package/dist/types/response.d.ts +20 -0
  143. package/dist/types/server.d.ts +12 -10
  144. package/dist/utils/schema-migrations.d.ts +97 -0
  145. package/dist/utils/schema-migrations.js +91 -0
  146. package/dist/utils/signals.d.ts +17 -0
  147. package/dist/utils/signals.js +26 -0
  148. package/dist/utils/tenant.d.ts +25 -0
  149. package/dist/utils/tenant.js +30 -0
  150. package/dist/version.d.ts +1 -1
  151. package/dist/version.js +1 -1
  152. package/dist-cjs/agent/capabilities.d.ts +39 -0
  153. package/dist-cjs/agent/capabilities.js +41 -0
  154. package/dist-cjs/agent/create-agent.d.ts +61 -11
  155. package/dist-cjs/agent/create-agent.js +136 -22
  156. package/dist-cjs/agent/index.d.ts +3 -2
  157. package/dist-cjs/agent/index.js +4 -4
  158. package/dist-cjs/agent/middleware/approval.d.ts +26 -0
  159. package/dist-cjs/agent/middleware/approval.js +26 -0
  160. package/dist-cjs/agent/{middleware.d.ts → middleware/basic.d.ts} +5 -4
  161. package/dist-cjs/agent/{middleware.js → middleware/basic.js} +3 -5
  162. package/dist-cjs/agent/middleware/context-editor.d.ts +52 -0
  163. package/dist-cjs/agent/middleware/context-editor.js +70 -0
  164. package/dist-cjs/agent/middleware/filesystem.d.ts +44 -0
  165. package/dist-cjs/agent/middleware/filesystem.js +86 -0
  166. package/dist-cjs/agent/middleware/index.d.ts +19 -0
  167. package/dist-cjs/agent/middleware/index.js +28 -0
  168. package/dist-cjs/agent/middleware/limits.d.ts +42 -0
  169. package/dist-cjs/agent/middleware/limits.js +57 -0
  170. package/dist-cjs/agent/middleware/models.d.ts +48 -0
  171. package/dist-cjs/agent/middleware/models.js +48 -0
  172. package/dist-cjs/agent/middleware/pii.d.ts +67 -0
  173. package/dist-cjs/agent/middleware/pii.js +178 -0
  174. package/dist-cjs/agent/middleware/retry.d.ts +66 -0
  175. package/dist-cjs/agent/middleware/retry.js +63 -0
  176. package/dist-cjs/agent/middleware/shared.d.ts +41 -0
  177. package/dist-cjs/agent/middleware/shared.js +83 -0
  178. package/dist-cjs/agent/middleware/tool-selector.d.ts +64 -0
  179. package/dist-cjs/agent/middleware/tool-selector.js +109 -0
  180. package/dist-cjs/agent/permissions.d.ts +113 -0
  181. package/dist-cjs/agent/permissions.js +189 -0
  182. package/dist-cjs/agent/sandbox.d.ts +151 -0
  183. package/dist-cjs/agent/sandbox.js +297 -0
  184. package/dist-cjs/agent/tool.d.ts +8 -3
  185. package/dist-cjs/agent/tool.js +14 -3
  186. package/dist-cjs/cache/memory-cache.d.ts +8 -0
  187. package/dist-cjs/cache/memory-cache.js +9 -0
  188. package/dist-cjs/cache/semantic-cache.d.ts +6 -3
  189. package/dist-cjs/cache/semantic-cache.js +5 -2
  190. package/dist-cjs/cli/args.js +3 -0
  191. package/dist-cjs/cli/db.d.ts +16 -4
  192. package/dist-cjs/cli/db.js +200 -20
  193. package/dist-cjs/cli/doctor.d.ts +17 -0
  194. package/dist-cjs/cli/doctor.js +56 -0
  195. package/dist-cjs/core/lifecycle.js +11 -6
  196. package/dist-cjs/core/nexus.d.ts +6 -0
  197. package/dist-cjs/core/nexus.js +103 -22
  198. package/dist-cjs/deep-agent/index.d.ts +109 -0
  199. package/dist-cjs/deep-agent/index.js +219 -0
  200. package/dist-cjs/doctor/index.d.ts +90 -0
  201. package/dist-cjs/doctor/index.js +276 -0
  202. package/dist-cjs/graph/functional.d.ts +89 -7
  203. package/dist-cjs/graph/functional.js +155 -35
  204. package/dist-cjs/graph/graph.d.ts +15 -5
  205. package/dist-cjs/graph/graph.js +95 -22
  206. package/dist-cjs/graph/lint.d.ts +4 -1
  207. package/dist-cjs/graph/lint.js +35 -0
  208. package/dist-cjs/images/evals.js +4 -2
  209. package/dist-cjs/operations/adapters.d.ts +52 -4
  210. package/dist-cjs/operations/adapters.js +193 -6
  211. package/dist-cjs/operations/runner.js +1 -0
  212. package/dist-cjs/operations/stats.js +8 -1
  213. package/dist-cjs/operations/store.d.ts +5 -1
  214. package/dist-cjs/operations/store.js +7 -0
  215. package/dist-cjs/ops/circuit-breaker.d.ts +52 -0
  216. package/dist-cjs/ops/circuit-breaker.js +4 -0
  217. package/dist-cjs/ops/circuit-store.d.ts +13 -2
  218. package/dist-cjs/ops/circuit-store.js +68 -0
  219. package/dist-cjs/ops/circuit-sync.d.ts +17 -0
  220. package/dist-cjs/ops/circuit-sync.js +87 -0
  221. package/dist-cjs/ops/rate-limiter.d.ts +2 -0
  222. package/dist-cjs/ops/rate-limiter.js +2 -0
  223. package/dist-cjs/postgres/circuits.d.ts +21 -4
  224. package/dist-cjs/postgres/circuits.js +98 -3
  225. package/dist-cjs/postgres/client.d.ts +0 -2
  226. package/dist-cjs/postgres/client.js +0 -5
  227. package/dist-cjs/postgres/evaluate.d.ts +16 -4
  228. package/dist-cjs/postgres/evaluate.js +50 -4
  229. package/dist-cjs/postgres/fulltext.d.ts +67 -0
  230. package/dist-cjs/postgres/fulltext.js +129 -0
  231. package/dist-cjs/postgres/index.d.ts +32 -11
  232. package/dist-cjs/postgres/index.js +69 -20
  233. package/dist-cjs/postgres/migrations.d.ts +60 -0
  234. package/dist-cjs/postgres/migrations.js +129 -0
  235. package/dist-cjs/postgres/operations.d.ts +14 -3
  236. package/dist-cjs/postgres/operations.js +78 -14
  237. package/dist-cjs/postgres/prompts.d.ts +11 -2
  238. package/dist-cjs/postgres/prompts.js +47 -2
  239. package/dist-cjs/postgres/rollups.d.ts +35 -0
  240. package/dist-cjs/postgres/rollups.js +168 -0
  241. package/dist-cjs/postgres/store.d.ts +11 -2
  242. package/dist-cjs/postgres/store.js +47 -2
  243. package/dist-cjs/postgres/traces.d.ts +13 -3
  244. package/dist-cjs/postgres/traces.js +58 -2
  245. package/dist-cjs/postgres/vectors.d.ts +11 -2
  246. package/dist-cjs/postgres/vectors.js +47 -2
  247. package/dist-cjs/rag/elasticsearch.d.ts +71 -0
  248. package/dist-cjs/rag/elasticsearch.js +135 -0
  249. package/dist-cjs/rag/pipeline.d.ts +140 -0
  250. package/dist-cjs/rag/pipeline.js +191 -0
  251. package/dist-cjs/rag/rerankers.d.ts +92 -0
  252. package/dist-cjs/rag/rerankers.js +107 -0
  253. package/dist-cjs/rag/retrievers.d.ts +12 -1
  254. package/dist-cjs/router/auto-router.d.ts +34 -7
  255. package/dist-cjs/router/auto-router.js +201 -68
  256. package/dist-cjs/server/assistant.d.ts +9 -1
  257. package/dist-cjs/server/assistant.js +10 -0
  258. package/dist-cjs/server/auth.d.ts +250 -0
  259. package/dist-cjs/server/auth.js +402 -0
  260. package/dist-cjs/server/errors.d.ts +12 -0
  261. package/dist-cjs/server/errors.js +9 -1
  262. package/dist-cjs/server/index.d.ts +1 -1
  263. package/dist-cjs/server/index.js +2 -1
  264. package/dist-cjs/server/runs.d.ts +24 -1
  265. package/dist-cjs/server/runs.js +89 -13
  266. package/dist-cjs/sqlite/index.d.ts +16 -3
  267. package/dist-cjs/sqlite/index.js +31 -10
  268. package/dist-cjs/sqlite/migrations.d.ts +26 -0
  269. package/dist-cjs/sqlite/migrations.js +71 -0
  270. package/dist-cjs/sqlite/operations.d.ts +14 -3
  271. package/dist-cjs/sqlite/operations.js +76 -15
  272. package/dist-cjs/sqlite/store.d.ts +9 -2
  273. package/dist-cjs/sqlite/store.js +47 -3
  274. package/dist-cjs/sqlite/vectors.d.ts +11 -2
  275. package/dist-cjs/sqlite/vectors.js +47 -2
  276. package/dist-cjs/store/memory.d.ts +10 -0
  277. package/dist-cjs/store/memory.js +10 -0
  278. package/dist-cjs/store/tenant.d.ts +12 -0
  279. package/dist-cjs/store/tenant.js +33 -0
  280. package/dist-cjs/tenancy/index.d.ts +113 -0
  281. package/dist-cjs/tenancy/index.js +250 -0
  282. package/dist-cjs/tracing/instrument.js +2 -0
  283. package/dist-cjs/types/config.d.ts +24 -2
  284. package/dist-cjs/types/graph.d.ts +49 -1
  285. package/dist-cjs/types/messages.d.ts +41 -2
  286. package/dist-cjs/types/operations.d.ts +6 -0
  287. package/dist-cjs/types/principal.d.ts +21 -0
  288. package/dist-cjs/types/principal.js +2 -0
  289. package/dist-cjs/types/response.d.ts +20 -0
  290. package/dist-cjs/types/server.d.ts +12 -10
  291. package/dist-cjs/utils/schema-migrations.d.ts +97 -0
  292. package/dist-cjs/utils/schema-migrations.js +102 -0
  293. package/dist-cjs/utils/signals.d.ts +17 -0
  294. package/dist-cjs/utils/signals.js +29 -0
  295. package/dist-cjs/utils/tenant.d.ts +25 -0
  296. package/dist-cjs/utils/tenant.js +37 -0
  297. package/dist-cjs/version.d.ts +1 -1
  298. package/dist-cjs/version.js +1 -1
  299. package/llms.txt +6 -4
  300. package/package.json +188 -2
package/llms.txt CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  > The typed AI framework for TypeScript. One API for provider routing and failover, agent graphs and workflows that run branches in parallel and survive a restart, retrieval over any vector store, MCP, durable background operations, guardrails, cost control, images, voice, and evals — with a studio a team can share.
4
4
 
5
- Import only what you use. The root import is the client and nothing else, and every other capability has its own entry point with a size budget CI enforces; [the packaging guide](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/packaging.md) publishes what each one costs. The package has no required dependencies: a graph-only application loads 73 KB, and installs nothing but this package.
5
+ Import only what you use. The root import is the client and nothing else, and every other capability has its own entry point with a size budget CI enforces; [the packaging guide](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/packaging.md) publishes what each one costs. The package has no required dependencies: a graph-only application loads 80 KB, and installs nothing but this package.
6
6
 
7
7
  - Install with `npm install nexus-ai-pro`. It needs Node.js 22 or newer, and ships ESM and CommonJS builds with shared types. License: MIT.
8
- - It has 138 entry points. `nexus-ai-pro` itself is the client, and every other capability has its own subpath, such as `nexus-ai-pro/graph`.
8
+ - It has 152 entry points. `nexus-ai-pro` itself is the client, and every other capability has its own subpath, such as `nexus-ai-pro/graph`.
9
9
  - Nothing is a required dependency. Install only the optional peers you use: `@anthropic-ai/sdk`, `@types/node`, `ajv`, `ajv-formats`, `ollama`, `openai`, `zod`.
10
10
  - Each guide explains every export of its entry points, then lists them in a reference generated from the doc comments.
11
11
 
@@ -16,7 +16,8 @@ Import only what you use. The root import is the client and nothing else, and ev
16
16
  - [Providers and routing](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/providers.md): The twelve completion providers, routing and failover, the model registry
17
17
  - [Guardrails](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/security.md): Injection, PII, secrets, schema validation, output redaction
18
18
  - [Graphs](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/graphs.md): Parallel branches, interrupts, checkpoints, time travel, subgraphs, caching, diagrams
19
- - [Agents and tools](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/agents.md): Graph-based agents with approvals and middleware, and the simple tool loop
19
+ - [Agents and tools](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/agents.md): Graph-based agents with approvals, capabilities and permission policies, a sandbox contract, the middleware catalog, and the simple tool loop
20
+ - [The deep-agent preset](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/deep-agents.md): Long, multi-step agents: a plan, a sandboxed workspace, helpers, skills, and a context that stays small
20
21
  - [Long-term memory](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/memory.md): Namespaced memory with semantic search, in memory or Redis
21
22
  - [MCP](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/mcp.md): Borrowing tools from MCP servers, a registry of many, and serving your own
22
23
  - [Traces](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/tracing.md): Run trees, queries, feedback, comparison, and alerts
@@ -42,6 +43,7 @@ Import only what you use. The root import is the client and nothing else, and ev
42
43
  - [Studio](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/studio.md): A shared UI for traces, threads, approvals, experiments, prompts, deployments, costs, and health, as a separate package
43
44
  - [Agent server](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/server.md): Self-hosted HTTP server for assistants: threads, durable runs, resumable streams, cron, a worker queue, and metrics
44
45
  - [Deployments](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/deployments.md): Revisions and canaries with automatic rollback, autoscaling on Kubernetes and Helm, and per-tenant limits
46
+ - [Tenancy](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/tenancy.md): One tenant model: a tenant's view of every store, tenant graph runs, and the isolation suite
45
47
  - [Workflows](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/workflows.md): Ready-made chains and domain workflows
46
48
  - [Command line](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/cli.md): The `nexus` command
47
49
  - [Packaging and install weight](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/packaging.md): Every entry point and what it costs
@@ -57,5 +59,5 @@ Import only what you use. The root import is the client and nothing else, and ev
57
59
  ## Optional
58
60
 
59
61
  - [Full documentation](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/llms-full.txt): The README and every guide in one file, for a tool that takes one document
60
- - [Roadmap](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/ROADMAP.md): Delivered work and what is planned next
62
+ - [Roadmap](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/ROADMAP.md): The releases planned next, and the gaps each one closes
61
63
  - [Contributing](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/CONTRIBUTING.md): Testing and the release procedure
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-ai-pro",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "Typed AI framework for TypeScript: provider routing and failover, durable agent graphs and workflows, retrieval over any vector store, MCP, evals, guardrails, and cost control",
5
5
  "type": "module",
6
6
  "main": "dist-cjs/index.js",
@@ -500,6 +500,16 @@
500
500
  "default": "./dist-cjs/sqlite/vectors.js"
501
501
  }
502
502
  },
503
+ "./sqlite/migrations": {
504
+ "import": {
505
+ "types": "./dist/sqlite/migrations.d.ts",
506
+ "default": "./dist/sqlite/migrations.js"
507
+ },
508
+ "require": {
509
+ "types": "./dist-cjs/sqlite/migrations.d.ts",
510
+ "default": "./dist-cjs/sqlite/migrations.js"
511
+ }
512
+ },
503
513
  "./graph/visualize": {
504
514
  "import": {
505
515
  "types": "./dist/graph/visualize.d.ts",
@@ -530,6 +540,46 @@
530
540
  "default": "./dist-cjs/agent/index.js"
531
541
  }
532
542
  },
543
+ "./agent/permissions": {
544
+ "import": {
545
+ "types": "./dist/agent/permissions.d.ts",
546
+ "default": "./dist/agent/permissions.js"
547
+ },
548
+ "require": {
549
+ "types": "./dist-cjs/agent/permissions.d.ts",
550
+ "default": "./dist-cjs/agent/permissions.js"
551
+ }
552
+ },
553
+ "./agent/sandbox": {
554
+ "import": {
555
+ "types": "./dist/agent/sandbox.d.ts",
556
+ "default": "./dist/agent/sandbox.js"
557
+ },
558
+ "require": {
559
+ "types": "./dist-cjs/agent/sandbox.d.ts",
560
+ "default": "./dist-cjs/agent/sandbox.js"
561
+ }
562
+ },
563
+ "./agent/middleware": {
564
+ "import": {
565
+ "types": "./dist/agent/middleware/index.d.ts",
566
+ "default": "./dist/agent/middleware/index.js"
567
+ },
568
+ "require": {
569
+ "types": "./dist-cjs/agent/middleware/index.d.ts",
570
+ "default": "./dist-cjs/agent/middleware/index.js"
571
+ }
572
+ },
573
+ "./deep-agent": {
574
+ "import": {
575
+ "types": "./dist/deep-agent/index.d.ts",
576
+ "default": "./dist/deep-agent/index.js"
577
+ },
578
+ "require": {
579
+ "types": "./dist-cjs/deep-agent/index.d.ts",
580
+ "default": "./dist-cjs/deep-agent/index.js"
581
+ }
582
+ },
533
583
  "./store": {
534
584
  "import": {
535
585
  "types": "./dist/store/index.d.ts",
@@ -660,6 +710,16 @@
660
710
  "default": "./dist-cjs/postgres/vectors.js"
661
711
  }
662
712
  },
713
+ "./postgres/fulltext": {
714
+ "import": {
715
+ "types": "./dist/postgres/fulltext.d.ts",
716
+ "default": "./dist/postgres/fulltext.js"
717
+ },
718
+ "require": {
719
+ "types": "./dist-cjs/postgres/fulltext.d.ts",
720
+ "default": "./dist-cjs/postgres/fulltext.js"
721
+ }
722
+ },
663
723
  "./postgres/traces": {
664
724
  "import": {
665
725
  "types": "./dist/postgres/traces.d.ts",
@@ -680,6 +740,26 @@
680
740
  "default": "./dist-cjs/postgres/evaluate.js"
681
741
  }
682
742
  },
743
+ "./postgres/migrations": {
744
+ "import": {
745
+ "types": "./dist/postgres/migrations.d.ts",
746
+ "default": "./dist/postgres/migrations.js"
747
+ },
748
+ "require": {
749
+ "types": "./dist-cjs/postgres/migrations.d.ts",
750
+ "default": "./dist-cjs/postgres/migrations.js"
751
+ }
752
+ },
753
+ "./postgres/rollups": {
754
+ "import": {
755
+ "types": "./dist/postgres/rollups.d.ts",
756
+ "default": "./dist/postgres/rollups.js"
757
+ },
758
+ "require": {
759
+ "types": "./dist-cjs/postgres/rollups.d.ts",
760
+ "default": "./dist-cjs/postgres/rollups.js"
761
+ }
762
+ },
683
763
  "./optimizer/cost": {
684
764
  "import": {
685
765
  "types": "./dist/optimizer/cost.d.ts",
@@ -810,6 +890,36 @@
810
890
  "default": "./dist-cjs/server/tenancy.js"
811
891
  }
812
892
  },
893
+ "./server/auth": {
894
+ "import": {
895
+ "types": "./dist/server/auth.d.ts",
896
+ "default": "./dist/server/auth.js"
897
+ },
898
+ "require": {
899
+ "types": "./dist-cjs/server/auth.d.ts",
900
+ "default": "./dist-cjs/server/auth.js"
901
+ }
902
+ },
903
+ "./tenancy": {
904
+ "import": {
905
+ "types": "./dist/tenancy/index.d.ts",
906
+ "default": "./dist/tenancy/index.js"
907
+ },
908
+ "require": {
909
+ "types": "./dist-cjs/tenancy/index.d.ts",
910
+ "default": "./dist-cjs/tenancy/index.js"
911
+ }
912
+ },
913
+ "./doctor": {
914
+ "import": {
915
+ "types": "./dist/doctor/index.d.ts",
916
+ "default": "./dist/doctor/index.js"
917
+ },
918
+ "require": {
919
+ "types": "./dist-cjs/doctor/index.d.ts",
920
+ "default": "./dist-cjs/doctor/index.js"
921
+ }
922
+ },
813
923
  "./prompts": {
814
924
  "import": {
815
925
  "types": "./dist/prompts/index.d.ts",
@@ -1300,6 +1410,16 @@
1300
1410
  "default": "./dist-cjs/rag/chroma.js"
1301
1411
  }
1302
1412
  },
1413
+ "./rag/elasticsearch": {
1414
+ "import": {
1415
+ "types": "./dist/rag/elasticsearch.d.ts",
1416
+ "default": "./dist/rag/elasticsearch.js"
1417
+ },
1418
+ "require": {
1419
+ "types": "./dist-cjs/rag/elasticsearch.d.ts",
1420
+ "default": "./dist-cjs/rag/elasticsearch.js"
1421
+ }
1422
+ },
1303
1423
  "./rag/retrievers": {
1304
1424
  "import": {
1305
1425
  "types": "./dist/rag/retrievers.d.ts",
@@ -1310,6 +1430,26 @@
1310
1430
  "default": "./dist-cjs/rag/retrievers.js"
1311
1431
  }
1312
1432
  },
1433
+ "./rag/rerankers": {
1434
+ "import": {
1435
+ "types": "./dist/rag/rerankers.d.ts",
1436
+ "default": "./dist/rag/rerankers.js"
1437
+ },
1438
+ "require": {
1439
+ "types": "./dist-cjs/rag/rerankers.d.ts",
1440
+ "default": "./dist-cjs/rag/rerankers.js"
1441
+ }
1442
+ },
1443
+ "./rag/pipeline": {
1444
+ "import": {
1445
+ "types": "./dist/rag/pipeline.d.ts",
1446
+ "default": "./dist/rag/pipeline.js"
1447
+ },
1448
+ "require": {
1449
+ "types": "./dist-cjs/rag/pipeline.d.ts",
1450
+ "default": "./dist-cjs/rag/pipeline.js"
1451
+ }
1452
+ },
1313
1453
  "./evals": {
1314
1454
  "import": {
1315
1455
  "types": "./dist/evals/index.d.ts",
@@ -1438,9 +1578,10 @@
1438
1578
  "test:conformance:real": "tsx tests/conformance.real.ts",
1439
1579
  "test:vectors:live": "tsx tests/vector-stores.live.ts",
1440
1580
  "bench:graph": "node scripts/bench-graph.mjs",
1581
+ "bench:runtime": "node --expose-gc scripts/bench-runtime.mjs",
1441
1582
  "pack:dry-run": "npm pack --dry-run --cache .tmp-nexus-ai-tests/npm-cache",
1442
1583
  "check": "npm run format:check && npm run registry:check && npm run llms:check && npm run lint && npm test && npm run typecheck:tests && npm run studio:typecheck && npm run typecheck:examples && npm run typecheck:examples:browser && npm run test:coverage",
1443
- "check:release": "npm run check && npm run bench:graph && npm run pack:dry-run && npm run test:clean-install && npm run test:studio-install",
1584
+ "check:release": "npm run check && npm run bench:graph && npm run bench:runtime && npm run pack:dry-run && npm run test:clean-install && npm run test:studio-install",
1444
1585
  "prepack": "npm run build",
1445
1586
  "prepublishOnly": "npm run check:release",
1446
1587
  "build:esm": "tsc --removeComments --declaration false && tsc --emitDeclarationOnly",
@@ -1568,10 +1709,13 @@
1568
1709
  "ajv-formats": "^3.0.1",
1569
1710
  "bullmq": "^5.63.0",
1570
1711
  "express": "^5.1.0",
1712
+ "nexus-ai-pro-2-0": "npm:nexus-ai-pro@^2.0.0",
1713
+ "nexus-ai-pro-2-1": "npm:nexus-ai-pro@^2.1.0",
1571
1714
  "ollama": "^0.5.6",
1572
1715
  "openai": "^4.52.0",
1573
1716
  "tsx": "^4.16.0",
1574
1717
  "typescript": "^5.5.0",
1718
+ "wasmoon": "^1.16.0",
1575
1719
  "yaml": "^2.9.1",
1576
1720
  "zod": "^3.23.0"
1577
1721
  },
@@ -1758,6 +1902,18 @@
1758
1902
  "agent": [
1759
1903
  "dist-cjs/agent/index.d.ts"
1760
1904
  ],
1905
+ "agent/permissions": [
1906
+ "dist-cjs/agent/permissions.d.ts"
1907
+ ],
1908
+ "agent/sandbox": [
1909
+ "dist-cjs/agent/sandbox.d.ts"
1910
+ ],
1911
+ "agent/middleware": [
1912
+ "dist-cjs/agent/middleware/index.d.ts"
1913
+ ],
1914
+ "deep-agent": [
1915
+ "dist-cjs/deep-agent/index.d.ts"
1916
+ ],
1761
1917
  "store": [
1762
1918
  "dist-cjs/store/index.d.ts"
1763
1919
  ],
@@ -1791,12 +1947,21 @@
1791
1947
  "postgres/vectors": [
1792
1948
  "dist-cjs/postgres/vectors.d.ts"
1793
1949
  ],
1950
+ "postgres/fulltext": [
1951
+ "dist-cjs/postgres/fulltext.d.ts"
1952
+ ],
1794
1953
  "postgres/traces": [
1795
1954
  "dist-cjs/postgres/traces.d.ts"
1796
1955
  ],
1797
1956
  "postgres/evaluate": [
1798
1957
  "dist-cjs/postgres/evaluate.d.ts"
1799
1958
  ],
1959
+ "postgres/migrations": [
1960
+ "dist-cjs/postgres/migrations.d.ts"
1961
+ ],
1962
+ "postgres/rollups": [
1963
+ "dist-cjs/postgres/rollups.d.ts"
1964
+ ],
1800
1965
  "server": [
1801
1966
  "dist-cjs/server/index.d.ts"
1802
1967
  ],
@@ -1836,6 +2001,15 @@
1836
2001
  "server/tenancy": [
1837
2002
  "dist-cjs/server/tenancy.d.ts"
1838
2003
  ],
2004
+ "server/auth": [
2005
+ "dist-cjs/server/auth.d.ts"
2006
+ ],
2007
+ "tenancy": [
2008
+ "dist-cjs/tenancy/index.d.ts"
2009
+ ],
2010
+ "doctor": [
2011
+ "dist-cjs/doctor/index.d.ts"
2012
+ ],
1839
2013
  "prompts": [
1840
2014
  "dist-cjs/prompts/index.d.ts"
1841
2015
  ],
@@ -2004,12 +2178,24 @@
2004
2178
  "rag/chroma": [
2005
2179
  "dist-cjs/rag/chroma.d.ts"
2006
2180
  ],
2181
+ "rag/elasticsearch": [
2182
+ "dist-cjs/rag/elasticsearch.d.ts"
2183
+ ],
2007
2184
  "rag/retrievers": [
2008
2185
  "dist-cjs/rag/retrievers.d.ts"
2009
2186
  ],
2187
+ "rag/rerankers": [
2188
+ "dist-cjs/rag/rerankers.d.ts"
2189
+ ],
2190
+ "rag/pipeline": [
2191
+ "dist-cjs/rag/pipeline.d.ts"
2192
+ ],
2010
2193
  "sqlite/vectors": [
2011
2194
  "dist-cjs/sqlite/vectors.d.ts"
2012
2195
  ],
2196
+ "sqlite/migrations": [
2197
+ "dist-cjs/sqlite/migrations.d.ts"
2198
+ ],
2013
2199
  "mcp/registry": [
2014
2200
  "dist-cjs/mcp/registry.d.ts"
2015
2201
  ],