nexus-ai-pro 2.2.0 → 2.4.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 (298) hide show
  1. package/API_STABILITY.md +225 -0
  2. package/CHANGELOG.md +325 -1
  3. package/README.md +20 -6
  4. package/SECURITY.md +140 -0
  5. package/dist/adapter-kit/contracts.d.ts +87 -0
  6. package/dist/adapter-kit/contracts.js +237 -0
  7. package/dist/adapter-kit/errors.d.ts +39 -0
  8. package/dist/adapter-kit/errors.js +52 -0
  9. package/dist/adapter-kit/index.d.ts +144 -0
  10. package/dist/adapter-kit/index.js +178 -0
  11. package/dist/adapter-kit/semver.d.ts +12 -0
  12. package/dist/adapter-kit/semver.js +55 -0
  13. package/dist/agent/capabilities.d.ts +39 -0
  14. package/dist/agent/capabilities.js +36 -0
  15. package/dist/agent/create-agent.d.ts +61 -11
  16. package/dist/agent/create-agent.js +136 -22
  17. package/dist/agent/index.d.ts +3 -2
  18. package/dist/agent/index.js +1 -1
  19. package/dist/agent/middleware/approval.d.ts +26 -0
  20. package/dist/agent/middleware/approval.js +23 -0
  21. package/dist/agent/{middleware.d.ts → middleware/basic.d.ts} +5 -4
  22. package/dist/agent/{middleware.js → middleware/basic.js} +3 -5
  23. package/dist/agent/middleware/context-editor.d.ts +52 -0
  24. package/dist/agent/middleware/context-editor.js +66 -0
  25. package/dist/agent/middleware/filesystem.d.ts +44 -0
  26. package/dist/agent/middleware/filesystem.js +83 -0
  27. package/dist/agent/middleware/index.d.ts +19 -0
  28. package/dist/agent/middleware/index.js +9 -0
  29. package/dist/agent/middleware/limits.d.ts +42 -0
  30. package/dist/agent/middleware/limits.js +52 -0
  31. package/dist/agent/middleware/models.d.ts +48 -0
  32. package/dist/agent/middleware/models.js +44 -0
  33. package/dist/agent/middleware/pii.d.ts +67 -0
  34. package/dist/agent/middleware/pii.js +142 -0
  35. package/dist/agent/middleware/retry.d.ts +66 -0
  36. package/dist/agent/middleware/retry.js +59 -0
  37. package/dist/agent/middleware/shared.d.ts +41 -0
  38. package/dist/agent/middleware/shared.js +73 -0
  39. package/dist/agent/middleware/tool-selector.d.ts +64 -0
  40. package/dist/agent/middleware/tool-selector.js +106 -0
  41. package/dist/agent/permissions.d.ts +113 -0
  42. package/dist/agent/permissions.js +180 -0
  43. package/dist/agent/sandbox.d.ts +151 -0
  44. package/dist/agent/sandbox.js +257 -0
  45. package/dist/agent/tool.d.ts +8 -3
  46. package/dist/agent/tool.js +14 -3
  47. package/dist/core/secure-stream.js +4 -3
  48. package/dist/deep-agent/index.d.ts +109 -0
  49. package/dist/deep-agent/index.js +216 -0
  50. package/dist/embeddings/adapters.js +2 -1
  51. package/dist/evals/judge.js +2 -5
  52. package/dist/evaluate/cache.d.ts +0 -14
  53. package/dist/evaluate/cache.js +0 -30
  54. package/dist/evaluate/file-cache.d.ts +15 -0
  55. package/dist/evaluate/file-cache.js +30 -0
  56. package/dist/evaluate/index.d.ts +2 -1
  57. package/dist/evaluate/index.js +2 -1
  58. package/dist/evaluate/review.js +2 -2
  59. package/dist/evaluate/run.js +2 -2
  60. package/dist/evaluate/version.js +3 -3
  61. package/dist/graph/functional.d.ts +9 -0
  62. package/dist/graph/functional.js +20 -3
  63. package/dist/graph/graph.js +27 -6
  64. package/dist/graph/lint.d.ts +4 -1
  65. package/dist/graph/lint.js +35 -0
  66. package/dist/graph/node-cache.js +3 -3
  67. package/dist/hallucination/rag.d.ts +4 -1
  68. package/dist/hallucination/rag.js +6 -1
  69. package/dist/images/asset-stores.js +2 -3
  70. package/dist/images/asset-support.js +2 -2
  71. package/dist/images/assets.js +1 -2
  72. package/dist/images/evals.js +4 -4
  73. package/dist/insights/proposals.js +1 -2
  74. package/dist/insights/regressions.d.ts +26 -2
  75. package/dist/insights/regressions.js +129 -3
  76. package/dist/loaders/git.js +8 -1
  77. package/dist/loaders/web.js +7 -1
  78. package/dist/mcp/client.d.ts +14 -0
  79. package/dist/mcp/client.js +59 -1
  80. package/dist/mcp/registry.d.ts +6 -0
  81. package/dist/mcp/registry.js +7 -0
  82. package/dist/postgres/fulltext.d.ts +67 -0
  83. package/dist/postgres/fulltext.js +91 -0
  84. package/dist/prompts/file.js +28 -11
  85. package/dist/protocols/a2a.d.ts +235 -0
  86. package/dist/protocols/a2a.js +386 -0
  87. package/dist/protocols/acp.d.ts +87 -0
  88. package/dist/protocols/acp.js +322 -0
  89. package/dist/protocols/ag-ui.d.ts +120 -0
  90. package/dist/protocols/ag-ui.js +180 -0
  91. package/dist/protocols/shared.d.ts +80 -0
  92. package/dist/protocols/shared.js +49 -0
  93. package/dist/providers/anthropic.js +1 -0
  94. package/dist/providers/cohere.js +2 -2
  95. package/dist/providers/google.js +2 -11
  96. package/dist/providers/openai.js +1 -0
  97. package/dist/rag/elasticsearch.d.ts +71 -0
  98. package/dist/rag/elasticsearch.js +130 -0
  99. package/dist/rag/file-ingestion.js +15 -9
  100. package/dist/rag/pipeline.d.ts +140 -0
  101. package/dist/rag/pipeline.js +187 -0
  102. package/dist/rag/rerankers.d.ts +92 -0
  103. package/dist/rag/rerankers.js +97 -0
  104. package/dist/rag/retrievers.d.ts +12 -1
  105. package/dist/runtime/detect.d.ts +17 -0
  106. package/dist/runtime/detect.js +16 -0
  107. package/dist/runtime/index.d.ts +19 -0
  108. package/dist/runtime/index.js +7 -0
  109. package/dist/security/injection-detector.d.ts +2 -0
  110. package/dist/security/injection-detector.js +7 -1
  111. package/dist/security/input-guard.js +5 -2
  112. package/dist/security/output-guard.js +8 -4
  113. package/dist/security/pii-detector.js +22 -6
  114. package/dist/security/prompt-hardening.js +6 -2
  115. package/dist/security/semantic-injection-classifier.d.ts +2 -1
  116. package/dist/security/semantic-injection-classifier.js +31 -35
  117. package/dist/security/upload-scanner.d.ts +8 -0
  118. package/dist/security/upload-scanner.js +51 -9
  119. package/dist/server/assistant.d.ts +5 -1
  120. package/dist/server/assistant.js +4 -2
  121. package/dist/server/auth.d.ts +250 -0
  122. package/dist/server/auth.js +392 -0
  123. package/dist/server/deployments.d.ts +63 -1
  124. package/dist/server/deployments.js +75 -2
  125. package/dist/server/runs.d.ts +9 -0
  126. package/dist/server/runs.js +20 -0
  127. package/dist/server/server.js +5 -0
  128. package/dist/store/memory.d.ts +10 -0
  129. package/dist/store/memory.js +10 -0
  130. package/dist/testing/record.js +2 -2
  131. package/dist/tracing/stores.js +2 -1
  132. package/dist/tracing/tracer.js +2 -2
  133. package/dist/types/config.d.ts +20 -0
  134. package/dist/types/graph.d.ts +38 -0
  135. package/dist/types/messages.d.ts +36 -2
  136. package/dist/types/principal.d.ts +21 -0
  137. package/dist/types/principal.js +1 -0
  138. package/dist/types/server.d.ts +8 -9
  139. package/dist/utils/base64.d.ts +4 -0
  140. package/dist/utils/base64.js +21 -0
  141. package/dist/utils/checksums.d.ts +22 -0
  142. package/dist/utils/checksums.js +39 -0
  143. package/dist/utils/ids.d.ts +8 -0
  144. package/dist/utils/ids.js +26 -2
  145. package/dist/utils/sha256.d.ts +22 -0
  146. package/dist/utils/sha256.js +120 -0
  147. package/dist/utils/tenant.d.ts +11 -0
  148. package/dist/utils/tenant.js +14 -0
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/dist-cjs/adapter-kit/contracts.d.ts +87 -0
  152. package/dist-cjs/adapter-kit/contracts.js +243 -0
  153. package/dist-cjs/adapter-kit/errors.d.ts +39 -0
  154. package/dist-cjs/adapter-kit/errors.js +57 -0
  155. package/dist-cjs/adapter-kit/index.d.ts +144 -0
  156. package/dist-cjs/adapter-kit/index.js +194 -0
  157. package/dist-cjs/adapter-kit/semver.d.ts +12 -0
  158. package/dist-cjs/adapter-kit/semver.js +59 -0
  159. package/dist-cjs/agent/capabilities.d.ts +39 -0
  160. package/dist-cjs/agent/capabilities.js +41 -0
  161. package/dist-cjs/agent/create-agent.d.ts +61 -11
  162. package/dist-cjs/agent/create-agent.js +136 -22
  163. package/dist-cjs/agent/index.d.ts +3 -2
  164. package/dist-cjs/agent/index.js +4 -4
  165. package/dist-cjs/agent/middleware/approval.d.ts +26 -0
  166. package/dist-cjs/agent/middleware/approval.js +26 -0
  167. package/dist-cjs/agent/{middleware.d.ts → middleware/basic.d.ts} +5 -4
  168. package/dist-cjs/agent/{middleware.js → middleware/basic.js} +3 -5
  169. package/dist-cjs/agent/middleware/context-editor.d.ts +52 -0
  170. package/dist-cjs/agent/middleware/context-editor.js +70 -0
  171. package/dist-cjs/agent/middleware/filesystem.d.ts +44 -0
  172. package/dist-cjs/agent/middleware/filesystem.js +86 -0
  173. package/dist-cjs/agent/middleware/index.d.ts +19 -0
  174. package/dist-cjs/agent/middleware/index.js +28 -0
  175. package/dist-cjs/agent/middleware/limits.d.ts +42 -0
  176. package/dist-cjs/agent/middleware/limits.js +57 -0
  177. package/dist-cjs/agent/middleware/models.d.ts +48 -0
  178. package/dist-cjs/agent/middleware/models.js +48 -0
  179. package/dist-cjs/agent/middleware/pii.d.ts +67 -0
  180. package/dist-cjs/agent/middleware/pii.js +147 -0
  181. package/dist-cjs/agent/middleware/retry.d.ts +66 -0
  182. package/dist-cjs/agent/middleware/retry.js +63 -0
  183. package/dist-cjs/agent/middleware/shared.d.ts +41 -0
  184. package/dist-cjs/agent/middleware/shared.js +83 -0
  185. package/dist-cjs/agent/middleware/tool-selector.d.ts +64 -0
  186. package/dist-cjs/agent/middleware/tool-selector.js +109 -0
  187. package/dist-cjs/agent/permissions.d.ts +113 -0
  188. package/dist-cjs/agent/permissions.js +189 -0
  189. package/dist-cjs/agent/sandbox.d.ts +151 -0
  190. package/dist-cjs/agent/sandbox.js +297 -0
  191. package/dist-cjs/agent/tool.d.ts +8 -3
  192. package/dist-cjs/agent/tool.js +14 -3
  193. package/dist-cjs/core/secure-stream.js +4 -3
  194. package/dist-cjs/deep-agent/index.d.ts +109 -0
  195. package/dist-cjs/deep-agent/index.js +219 -0
  196. package/dist-cjs/embeddings/adapters.js +2 -1
  197. package/dist-cjs/evals/judge.js +2 -5
  198. package/dist-cjs/evaluate/cache.d.ts +0 -14
  199. package/dist-cjs/evaluate/cache.js +1 -65
  200. package/dist-cjs/evaluate/file-cache.d.ts +15 -0
  201. package/dist-cjs/evaluate/file-cache.js +67 -0
  202. package/dist-cjs/evaluate/index.d.ts +2 -1
  203. package/dist-cjs/evaluate/index.js +3 -2
  204. package/dist-cjs/evaluate/review.js +2 -2
  205. package/dist-cjs/evaluate/run.js +2 -2
  206. package/dist-cjs/evaluate/version.js +3 -3
  207. package/dist-cjs/graph/functional.d.ts +9 -0
  208. package/dist-cjs/graph/functional.js +20 -3
  209. package/dist-cjs/graph/graph.js +27 -6
  210. package/dist-cjs/graph/lint.d.ts +4 -1
  211. package/dist-cjs/graph/lint.js +35 -0
  212. package/dist-cjs/graph/node-cache.js +3 -3
  213. package/dist-cjs/hallucination/rag.d.ts +4 -1
  214. package/dist-cjs/hallucination/rag.js +6 -1
  215. package/dist-cjs/images/asset-stores.js +2 -3
  216. package/dist-cjs/images/asset-support.js +2 -2
  217. package/dist-cjs/images/assets.js +1 -2
  218. package/dist-cjs/images/evals.js +4 -4
  219. package/dist-cjs/insights/proposals.js +1 -2
  220. package/dist-cjs/insights/regressions.d.ts +26 -2
  221. package/dist-cjs/insights/regressions.js +129 -3
  222. package/dist-cjs/loaders/git.js +8 -1
  223. package/dist-cjs/loaders/web.js +7 -1
  224. package/dist-cjs/mcp/client.d.ts +14 -0
  225. package/dist-cjs/mcp/client.js +60 -1
  226. package/dist-cjs/mcp/registry.d.ts +6 -0
  227. package/dist-cjs/mcp/registry.js +7 -0
  228. package/dist-cjs/postgres/fulltext.d.ts +67 -0
  229. package/dist-cjs/postgres/fulltext.js +129 -0
  230. package/dist-cjs/prompts/file.js +28 -11
  231. package/dist-cjs/protocols/a2a.d.ts +235 -0
  232. package/dist-cjs/protocols/a2a.js +393 -0
  233. package/dist-cjs/protocols/acp.d.ts +87 -0
  234. package/dist-cjs/protocols/acp.js +326 -0
  235. package/dist-cjs/protocols/ag-ui.d.ts +120 -0
  236. package/dist-cjs/protocols/ag-ui.js +186 -0
  237. package/dist-cjs/protocols/shared.d.ts +80 -0
  238. package/dist-cjs/protocols/shared.js +59 -0
  239. package/dist-cjs/providers/anthropic.js +1 -0
  240. package/dist-cjs/providers/cohere.js +2 -2
  241. package/dist-cjs/providers/google.js +3 -12
  242. package/dist-cjs/providers/openai.js +1 -0
  243. package/dist-cjs/rag/elasticsearch.d.ts +71 -0
  244. package/dist-cjs/rag/elasticsearch.js +135 -0
  245. package/dist-cjs/rag/file-ingestion.js +14 -8
  246. package/dist-cjs/rag/pipeline.d.ts +140 -0
  247. package/dist-cjs/rag/pipeline.js +191 -0
  248. package/dist-cjs/rag/rerankers.d.ts +92 -0
  249. package/dist-cjs/rag/rerankers.js +107 -0
  250. package/dist-cjs/rag/retrievers.d.ts +12 -1
  251. package/dist-cjs/runtime/detect.d.ts +17 -0
  252. package/dist-cjs/runtime/detect.js +19 -0
  253. package/dist-cjs/runtime/index.d.ts +19 -0
  254. package/dist-cjs/runtime/index.js +31 -0
  255. package/dist-cjs/security/injection-detector.d.ts +2 -0
  256. package/dist-cjs/security/injection-detector.js +7 -1
  257. package/dist-cjs/security/input-guard.js +5 -2
  258. package/dist-cjs/security/output-guard.js +8 -4
  259. package/dist-cjs/security/pii-detector.js +22 -6
  260. package/dist-cjs/security/prompt-hardening.js +6 -2
  261. package/dist-cjs/security/semantic-injection-classifier.d.ts +2 -1
  262. package/dist-cjs/security/semantic-injection-classifier.js +31 -35
  263. package/dist-cjs/security/upload-scanner.d.ts +8 -0
  264. package/dist-cjs/security/upload-scanner.js +53 -9
  265. package/dist-cjs/server/assistant.d.ts +5 -1
  266. package/dist-cjs/server/assistant.js +4 -2
  267. package/dist-cjs/server/auth.d.ts +250 -0
  268. package/dist-cjs/server/auth.js +402 -0
  269. package/dist-cjs/server/deployments.d.ts +63 -1
  270. package/dist-cjs/server/deployments.js +75 -2
  271. package/dist-cjs/server/runs.d.ts +9 -0
  272. package/dist-cjs/server/runs.js +20 -0
  273. package/dist-cjs/server/server.js +5 -0
  274. package/dist-cjs/store/memory.d.ts +10 -0
  275. package/dist-cjs/store/memory.js +10 -0
  276. package/dist-cjs/testing/record.js +2 -2
  277. package/dist-cjs/tracing/stores.js +2 -1
  278. package/dist-cjs/tracing/tracer.js +2 -2
  279. package/dist-cjs/types/config.d.ts +20 -0
  280. package/dist-cjs/types/graph.d.ts +38 -0
  281. package/dist-cjs/types/messages.d.ts +36 -2
  282. package/dist-cjs/types/principal.d.ts +21 -0
  283. package/dist-cjs/types/principal.js +2 -0
  284. package/dist-cjs/types/server.d.ts +8 -9
  285. package/dist-cjs/utils/base64.d.ts +4 -0
  286. package/dist-cjs/utils/base64.js +25 -0
  287. package/dist-cjs/utils/checksums.d.ts +22 -0
  288. package/dist-cjs/utils/checksums.js +46 -0
  289. package/dist-cjs/utils/ids.d.ts +8 -0
  290. package/dist-cjs/utils/ids.js +28 -2
  291. package/dist-cjs/utils/sha256.d.ts +22 -0
  292. package/dist-cjs/utils/sha256.js +125 -0
  293. package/dist-cjs/utils/tenant.d.ts +11 -0
  294. package/dist-cjs/utils/tenant.js +15 -0
  295. package/dist-cjs/version.d.ts +1 -1
  296. package/dist-cjs/version.js +1 -1
  297. package/llms.txt +7 -3
  298. package/package.json +193 -6
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Sha256 = void 0;
4
+ exports.sha256Hex = sha256Hex;
5
+ const K = new Uint32Array([
6
+ 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98,
7
+ 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786,
8
+ 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8,
9
+ 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
10
+ 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819,
11
+ 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a,
12
+ 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7,
13
+ 0xc67178f2,
14
+ ]);
15
+ const encoder = new TextEncoder();
16
+ class Sha256 {
17
+ state = new Uint32Array([
18
+ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
19
+ ]);
20
+ block = new Uint8Array(64);
21
+ words = new Uint32Array(64);
22
+ filled = 0;
23
+ total = 0;
24
+ update(data) {
25
+ const bytes = typeof data === 'string' ? encoder.encode(data) : data;
26
+ this.total += bytes.length;
27
+ let offset = 0;
28
+ if (this.filled > 0) {
29
+ const take = Math.min(64 - this.filled, bytes.length);
30
+ this.block.set(bytes.subarray(0, take), this.filled);
31
+ this.filled += take;
32
+ offset = take;
33
+ if (this.filled < 64)
34
+ return this;
35
+ this.compress(this.block, 0);
36
+ this.filled = 0;
37
+ }
38
+ for (; offset + 64 <= bytes.length; offset += 64)
39
+ this.compress(bytes, offset);
40
+ if (offset < bytes.length) {
41
+ this.block.set(bytes.subarray(offset), 0);
42
+ this.filled = bytes.length - offset;
43
+ }
44
+ return this;
45
+ }
46
+ digest() {
47
+ const bits = this.total * 8;
48
+ const padding = new Uint8Array(this.filled < 56 ? 64 - this.filled : 128 - this.filled);
49
+ padding[0] = 0x80;
50
+ const view = new DataView(padding.buffer);
51
+ view.setUint32(padding.length - 8, Math.floor(bits / 0x100000000));
52
+ view.setUint32(padding.length - 4, bits >>> 0);
53
+ const total = this.total;
54
+ this.update(padding);
55
+ this.total = total;
56
+ let hex = '';
57
+ for (const word of this.state)
58
+ hex += word.toString(16).padStart(8, '0');
59
+ return hex;
60
+ }
61
+ compress(bytes, offset) {
62
+ const w = this.words;
63
+ for (let index = 0; index < 16; index += 1) {
64
+ const at = offset + index * 4;
65
+ w[index] =
66
+ (bytes[at] << 24) |
67
+ (bytes[at + 1] << 16) |
68
+ (bytes[at + 2] << 8) |
69
+ bytes[at + 3];
70
+ }
71
+ for (let index = 16; index < 64; index += 1) {
72
+ const a = w[index - 15];
73
+ const b = w[index - 2];
74
+ const s0 = ((a >>> 7) | (a << 25)) ^ ((a >>> 18) | (a << 14)) ^ (a >>> 3);
75
+ const s1 = ((b >>> 17) | (b << 15)) ^ ((b >>> 19) | (b << 13)) ^ (b >>> 10);
76
+ w[index] = (w[index - 16] + s0 + w[index - 7] + s1) | 0;
77
+ }
78
+ const h = this.state;
79
+ let a = h[0];
80
+ let b = h[1];
81
+ let c = h[2];
82
+ let d = h[3];
83
+ let e = h[4];
84
+ let f = h[5];
85
+ let g = h[6];
86
+ let k = h[7];
87
+ for (let index = 0; index < 64; index += 1) {
88
+ const s1 = ((e >>> 6) | (e << 26)) ^ ((e >>> 11) | (e << 21)) ^ ((e >>> 25) | (e << 7));
89
+ const choose = (e & f) ^ (~e & g);
90
+ const t1 = (k + s1 + choose + K[index] + w[index]) | 0;
91
+ const s0 = ((a >>> 2) | (a << 30)) ^ ((a >>> 13) | (a << 19)) ^ ((a >>> 22) | (a << 10));
92
+ const majority = (a & b) ^ (a & c) ^ (b & c);
93
+ const t2 = (s0 + majority) | 0;
94
+ k = g;
95
+ g = f;
96
+ f = e;
97
+ e = (d + t1) | 0;
98
+ d = c;
99
+ c = b;
100
+ b = a;
101
+ a = (t1 + t2) | 0;
102
+ }
103
+ h[0] = h[0] + a;
104
+ h[1] = h[1] + b;
105
+ h[2] = h[2] + c;
106
+ h[3] = h[3] + d;
107
+ h[4] = h[4] + e;
108
+ h[5] = h[5] + f;
109
+ h[6] = h[6] + g;
110
+ h[7] = h[7] + k;
111
+ }
112
+ }
113
+ exports.Sha256 = Sha256;
114
+ const nativeHash = (() => {
115
+ try {
116
+ const host = globalThis.process;
117
+ return host?.getBuiltinModule?.('crypto')?.createHash;
118
+ }
119
+ catch {
120
+ return undefined;
121
+ }
122
+ })();
123
+ function sha256Hex(data) {
124
+ return nativeHash ? nativeHash('sha256').update(data).digest('hex') : new Sha256().update(data).digest();
125
+ }
@@ -1,3 +1,4 @@
1
+ import type { Principal } from '../types/principal.js';
1
2
  /**
2
3
  * The tenant id rule every scope shares. An id is letters, digits, `_`, and `-`, so it can never hold
3
4
  * the `/` a scoped name or key is built with: no tenant's prefix is a prefix of another's.
@@ -12,3 +13,13 @@ export declare class TenantIdError extends RangeError {
12
13
  export declare function assertTenantId(tenantId: string): string;
13
14
  /** @internal The prefix a tenant's names and keys carry in a shared store. */
14
15
  export declare function tenantPrefix(tenantId: string): string;
16
+ /**
17
+ * Run options with the principal's tenant applied: the principal's `tenantId` becomes the run's when
18
+ * it has none, a run whose two tenants differ is refused, and the principal's `userId` is recorded
19
+ * in the run's metadata.
20
+ */
21
+ export declare function withPrincipal<O extends {
22
+ tenantId?: string;
23
+ principal?: Principal;
24
+ metadata?: Record<string, unknown>;
25
+ }>(runOptions: O): O;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TenantIdError = void 0;
4
4
  exports.assertTenantId = assertTenantId;
5
5
  exports.tenantPrefix = tenantPrefix;
6
+ exports.withPrincipal = withPrincipal;
6
7
  class TenantIdError extends RangeError {
7
8
  code = 'TENANT_ID_INVALID';
8
9
  constructor(tenantId) {
@@ -20,3 +21,17 @@ function assertTenantId(tenantId) {
20
21
  function tenantPrefix(tenantId) {
21
22
  return `tenant/${assertTenantId(tenantId)}/`;
22
23
  }
24
+ function withPrincipal(runOptions) {
25
+ const principal = runOptions.principal;
26
+ if (!principal)
27
+ return runOptions;
28
+ const tenantId = principal.tenantId;
29
+ if (tenantId !== undefined && runOptions.tenantId !== undefined && tenantId !== runOptions.tenantId) {
30
+ throw new TypeError("The run's tenantId and its principal's tenant differ");
31
+ }
32
+ return {
33
+ ...runOptions,
34
+ ...(tenantId !== undefined && runOptions.tenantId === undefined ? { tenantId } : {}),
35
+ ...(principal.userId !== undefined ? { metadata: { ...runOptions.metadata, userId: principal.userId } } : {}),
36
+ };
37
+ }
@@ -2,4 +2,4 @@
2
2
  * This package's version, recorded where provenance matters, such as on every experiment. A test
3
3
  * keeps it equal to `package.json`.
4
4
  */
5
- export declare const NEXUS_VERSION = "2.2.0";
5
+ export declare const NEXUS_VERSION = "2.4.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NEXUS_VERSION = void 0;
4
- exports.NEXUS_VERSION = '2.2.0';
4
+ exports.NEXUS_VERSION = '2.4.0';
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 78 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 81 KB, and installs nothing but this package. The client, the provider adapters, graphs, agents, and the agent protocols run on Node.js, Deno, Bun, edge runtimes, and browsers; [the runtimes guide](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/runtimes.md) lists the entry points that need Node.js, and why.
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 143 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 157 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,9 +16,11 @@ 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
23
+ - [Agent protocols](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/protocols.md): Serving an agent to user interfaces over AG-UI, to other agents over A2A, and to code editors over ACP, and calling remote agents as tools
22
24
  - [Traces](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/tracing.md): Run trees, queries, feedback, comparison, and alerts
23
25
  - [Evaluation](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/evaluation.md): Datasets, evaluators, experiments, comparisons with a verdict, review queues, LLM judges
24
26
  - [Context hub](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/context-hub.md): Prompts, instructions, tools, and skills versioned together, promoted through gates, and moved between projects
@@ -39,6 +41,7 @@ Import only what you use. The root import is the client and nothing else, and ev
39
41
  - [Realtime voice](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/realtime.md): Browser and server realtime sessions with barge-in, tools, and exports
40
42
  - [Telephony](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/telephony.md): Calls, webhooks, phone numbers, and phone agents on realtime sessions
41
43
  - [Testing](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/testing.md): Recording and replaying provider traffic, and conformance suites
44
+ - [Adapter kit](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/adapter-kit.md): Building a provider, store, or retriever outside this repository, and verifying it against the same contracts
42
45
  - [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
46
  - [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
47
  - [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,6 +49,7 @@ Import only what you use. The root import is the client and nothing else, and ev
46
49
  - [Workflows](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/workflows.md): Ready-made chains and domain workflows
47
50
  - [Command line](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/cli.md): The `nexus` command
48
51
  - [Packaging and install weight](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/packaging.md): Every entry point and what it costs
52
+ - [Runtimes](https://raw.githubusercontent.com/mkhitar-abrahamyan/nexus-ai/main/docs/runtimes.md): The portable kernel, and running the client, providers, graphs, and agents on Deno, Bun, edge runtimes, and browsers
49
53
 
50
54
  ## Project
51
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-ai-pro",
3
- "version": "2.2.0",
3
+ "version": "2.4.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",
@@ -40,6 +40,16 @@
40
40
  "default": "./dist-cjs/core/streaming.js"
41
41
  }
42
42
  },
43
+ "./runtime": {
44
+ "import": {
45
+ "types": "./dist/runtime/index.d.ts",
46
+ "default": "./dist/runtime/index.js"
47
+ },
48
+ "require": {
49
+ "types": "./dist-cjs/runtime/index.d.ts",
50
+ "default": "./dist-cjs/runtime/index.js"
51
+ }
52
+ },
43
53
  "./config": {
44
54
  "import": {
45
55
  "types": "./dist/core/config-builder.d.ts",
@@ -540,6 +550,46 @@
540
550
  "default": "./dist-cjs/agent/index.js"
541
551
  }
542
552
  },
553
+ "./agent/permissions": {
554
+ "import": {
555
+ "types": "./dist/agent/permissions.d.ts",
556
+ "default": "./dist/agent/permissions.js"
557
+ },
558
+ "require": {
559
+ "types": "./dist-cjs/agent/permissions.d.ts",
560
+ "default": "./dist-cjs/agent/permissions.js"
561
+ }
562
+ },
563
+ "./agent/sandbox": {
564
+ "import": {
565
+ "types": "./dist/agent/sandbox.d.ts",
566
+ "default": "./dist/agent/sandbox.js"
567
+ },
568
+ "require": {
569
+ "types": "./dist-cjs/agent/sandbox.d.ts",
570
+ "default": "./dist-cjs/agent/sandbox.js"
571
+ }
572
+ },
573
+ "./agent/middleware": {
574
+ "import": {
575
+ "types": "./dist/agent/middleware/index.d.ts",
576
+ "default": "./dist/agent/middleware/index.js"
577
+ },
578
+ "require": {
579
+ "types": "./dist-cjs/agent/middleware/index.d.ts",
580
+ "default": "./dist-cjs/agent/middleware/index.js"
581
+ }
582
+ },
583
+ "./deep-agent": {
584
+ "import": {
585
+ "types": "./dist/deep-agent/index.d.ts",
586
+ "default": "./dist/deep-agent/index.js"
587
+ },
588
+ "require": {
589
+ "types": "./dist-cjs/deep-agent/index.d.ts",
590
+ "default": "./dist-cjs/deep-agent/index.js"
591
+ }
592
+ },
543
593
  "./store": {
544
594
  "import": {
545
595
  "types": "./dist/store/index.d.ts",
@@ -580,6 +630,36 @@
580
630
  "default": "./dist-cjs/mcp/registry.js"
581
631
  }
582
632
  },
633
+ "./protocols/ag-ui": {
634
+ "import": {
635
+ "types": "./dist/protocols/ag-ui.d.ts",
636
+ "default": "./dist/protocols/ag-ui.js"
637
+ },
638
+ "require": {
639
+ "types": "./dist-cjs/protocols/ag-ui.d.ts",
640
+ "default": "./dist-cjs/protocols/ag-ui.js"
641
+ }
642
+ },
643
+ "./protocols/a2a": {
644
+ "import": {
645
+ "types": "./dist/protocols/a2a.d.ts",
646
+ "default": "./dist/protocols/a2a.js"
647
+ },
648
+ "require": {
649
+ "types": "./dist-cjs/protocols/a2a.d.ts",
650
+ "default": "./dist-cjs/protocols/a2a.js"
651
+ }
652
+ },
653
+ "./protocols/acp": {
654
+ "import": {
655
+ "types": "./dist/protocols/acp.d.ts",
656
+ "default": "./dist/protocols/acp.js"
657
+ },
658
+ "require": {
659
+ "types": "./dist-cjs/protocols/acp.d.ts",
660
+ "default": "./dist-cjs/protocols/acp.js"
661
+ }
662
+ },
583
663
  "./tracing": {
584
664
  "import": {
585
665
  "types": "./dist/tracing/index.d.ts",
@@ -670,6 +750,16 @@
670
750
  "default": "./dist-cjs/postgres/vectors.js"
671
751
  }
672
752
  },
753
+ "./postgres/fulltext": {
754
+ "import": {
755
+ "types": "./dist/postgres/fulltext.d.ts",
756
+ "default": "./dist/postgres/fulltext.js"
757
+ },
758
+ "require": {
759
+ "types": "./dist-cjs/postgres/fulltext.d.ts",
760
+ "default": "./dist-cjs/postgres/fulltext.js"
761
+ }
762
+ },
673
763
  "./postgres/traces": {
674
764
  "import": {
675
765
  "types": "./dist/postgres/traces.d.ts",
@@ -780,6 +870,16 @@
780
870
  "default": "./dist-cjs/testing/index.js"
781
871
  }
782
872
  },
873
+ "./adapter-kit": {
874
+ "import": {
875
+ "types": "./dist/adapter-kit/index.d.ts",
876
+ "default": "./dist/adapter-kit/index.js"
877
+ },
878
+ "require": {
879
+ "types": "./dist-cjs/adapter-kit/index.d.ts",
880
+ "default": "./dist-cjs/adapter-kit/index.js"
881
+ }
882
+ },
783
883
  "./next": {
784
884
  "import": {
785
885
  "types": "./dist/next/route-handler.d.ts",
@@ -840,6 +940,16 @@
840
940
  "default": "./dist-cjs/server/tenancy.js"
841
941
  }
842
942
  },
943
+ "./server/auth": {
944
+ "import": {
945
+ "types": "./dist/server/auth.d.ts",
946
+ "default": "./dist/server/auth.js"
947
+ },
948
+ "require": {
949
+ "types": "./dist-cjs/server/auth.d.ts",
950
+ "default": "./dist-cjs/server/auth.js"
951
+ }
952
+ },
843
953
  "./tenancy": {
844
954
  "import": {
845
955
  "types": "./dist/tenancy/index.d.ts",
@@ -1350,6 +1460,16 @@
1350
1460
  "default": "./dist-cjs/rag/chroma.js"
1351
1461
  }
1352
1462
  },
1463
+ "./rag/elasticsearch": {
1464
+ "import": {
1465
+ "types": "./dist/rag/elasticsearch.d.ts",
1466
+ "default": "./dist/rag/elasticsearch.js"
1467
+ },
1468
+ "require": {
1469
+ "types": "./dist-cjs/rag/elasticsearch.d.ts",
1470
+ "default": "./dist-cjs/rag/elasticsearch.js"
1471
+ }
1472
+ },
1353
1473
  "./rag/retrievers": {
1354
1474
  "import": {
1355
1475
  "types": "./dist/rag/retrievers.d.ts",
@@ -1360,6 +1480,26 @@
1360
1480
  "default": "./dist-cjs/rag/retrievers.js"
1361
1481
  }
1362
1482
  },
1483
+ "./rag/rerankers": {
1484
+ "import": {
1485
+ "types": "./dist/rag/rerankers.d.ts",
1486
+ "default": "./dist/rag/rerankers.js"
1487
+ },
1488
+ "require": {
1489
+ "types": "./dist-cjs/rag/rerankers.d.ts",
1490
+ "default": "./dist-cjs/rag/rerankers.js"
1491
+ }
1492
+ },
1493
+ "./rag/pipeline": {
1494
+ "import": {
1495
+ "types": "./dist/rag/pipeline.d.ts",
1496
+ "default": "./dist/rag/pipeline.js"
1497
+ },
1498
+ "require": {
1499
+ "types": "./dist-cjs/rag/pipeline.d.ts",
1500
+ "default": "./dist-cjs/rag/pipeline.js"
1501
+ }
1502
+ },
1363
1503
  "./evals": {
1364
1504
  "import": {
1365
1505
  "types": "./dist/evals/index.d.ts",
@@ -1465,7 +1605,7 @@
1465
1605
  "test:studio-install": "node studio/scripts/install-smoke.mjs",
1466
1606
  "docs:guides": "node scripts/check-guide-coverage.mjs && node scripts/check-doc-imports.mjs && node scripts/root-migration.mjs --check",
1467
1607
  "docs:update": "node scripts/check-guide-coverage.mjs --update && node scripts/generate-llms-txt.mjs",
1468
- "size:update": "node scripts/check-subpath-sizes.mjs --update",
1608
+ "size:update": "node scripts/check-subpath-sizes.mjs --update && node scripts/check-portability.mjs --update",
1469
1609
  "registry:generate": "node scripts/generate-model-registry.mjs",
1470
1610
  "registry:check": "node scripts/generate-model-registry.mjs --check",
1471
1611
  "llms:generate": "node scripts/generate-llms-txt.mjs",
@@ -1477,7 +1617,7 @@
1477
1617
  "typecheck:tests": "tsc -p tsconfig.tests.json --noEmit",
1478
1618
  "typecheck:examples": "tsc -p tsconfig.examples.json --noEmit && tsc -p tsconfig.deploy.json",
1479
1619
  "typecheck:examples:browser": "tsc -p tsconfig.examples.browser.json --noEmit",
1480
- "test": "npm run build && npm run test:unit && npm run test:conformance:mock && npm run test:conformance:images && npm run size:check && npm run docs:check && npm run docs:guides && npm run test:studio && npm run test:smoke && npm run test:api && npm run test:types",
1620
+ "test": "npm run build && npm run test:unit && npm run test:conformance:mock && npm run test:conformance:images && npm run size:check && npm run test:portable && npm run docs:check && npm run docs:guides && npm run test:studio && npm run test:smoke && npm run test:api && npm run test:types",
1481
1621
  "test:unit": "node --import tsx --test tests/unit.ts tests/*.test.ts",
1482
1622
  "test:coverage": "node --import tsx --test --experimental-test-coverage --test-coverage-include=src/**/*.ts --test-coverage-lines=82 --test-coverage-branches=67 --test-coverage-functions=73 tests/unit.ts tests/*.test.ts",
1483
1623
  "test:smoke": "node tests/package-smoke.mjs",
@@ -1491,13 +1631,15 @@
1491
1631
  "bench:runtime": "node --expose-gc scripts/bench-runtime.mjs",
1492
1632
  "pack:dry-run": "npm pack --dry-run --cache .tmp-nexus-ai-tests/npm-cache",
1493
1633
  "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",
1494
- "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",
1634
+ "check:release": "npm run check && npm run bench:graph && npm run bench:runtime && npm run bench:surfaces && npm run pack:dry-run && npm run test:clean-install && npm run test:studio-install",
1495
1635
  "prepack": "npm run build",
1496
1636
  "prepublishOnly": "npm run check:release",
1497
1637
  "build:esm": "tsc --removeComments --declaration false && tsc --emitDeclarationOnly",
1498
1638
  "build:cjs": "tsc -p tsconfig.cjs.json --removeComments --declaration false && tsc -p tsconfig.cjs.json --emitDeclarationOnly && node scripts/finalize-cjs.mjs",
1499
1639
  "test:conformance:images": "tsx tests/conformance.images.ts",
1500
- "conformance:images:record": "tsx tests/conformance.images.ts --record"
1640
+ "conformance:images:record": "tsx tests/conformance.images.ts --record",
1641
+ "test:portable": "node scripts/check-portability.mjs && node tests/portable/run.mjs node && node tests/portable/edge.mjs",
1642
+ "bench:surfaces": "node --expose-gc --no-warnings scripts/bench-surfaces.mjs"
1501
1643
  },
1502
1644
  "keywords": [
1503
1645
  "ai",
@@ -1607,6 +1749,7 @@
1607
1749
  "devDependencies": {
1608
1750
  "@anthropic-ai/sdk": "^0.30.0",
1609
1751
  "@biomejs/biome": "^2.3.0",
1752
+ "@edge-runtime/vm": "^5.0.0",
1610
1753
  "@electric-sql/pglite": "^0.5.8",
1611
1754
  "@electric-sql/pglite-pgvector": "^0.0.9",
1612
1755
  "@opentelemetry/api": "^1.9.1",
@@ -1618,9 +1761,11 @@
1618
1761
  "ajv": "^8.17.1",
1619
1762
  "ajv-formats": "^3.0.1",
1620
1763
  "bullmq": "^5.63.0",
1764
+ "esbuild": "^0.28.2",
1621
1765
  "express": "^5.1.0",
1622
1766
  "nexus-ai-pro-2-0": "npm:nexus-ai-pro@^2.0.0",
1623
1767
  "nexus-ai-pro-2-1": "npm:nexus-ai-pro@^2.1.0",
1768
+ "nexus-ai-pro-2-3": "npm:nexus-ai-pro@^2.3.0",
1624
1769
  "ollama": "^0.5.6",
1625
1770
  "openai": "^4.52.0",
1626
1771
  "tsx": "^4.16.0",
@@ -1657,7 +1802,7 @@
1657
1802
  "provenance": true
1658
1803
  },
1659
1804
  "overrides": {
1660
- "esbuild": "^0.28.1"
1805
+ "esbuild": "$esbuild"
1661
1806
  },
1662
1807
  "module": "dist/index.js",
1663
1808
  "typesVersions": {
@@ -1668,6 +1813,9 @@
1668
1813
  "streaming": [
1669
1814
  "dist-cjs/core/streaming.d.ts"
1670
1815
  ],
1816
+ "runtime": [
1817
+ "dist-cjs/runtime/index.d.ts"
1818
+ ],
1671
1819
  "config": [
1672
1820
  "dist-cjs/core/config-builder.d.ts"
1673
1821
  ],
@@ -1812,6 +1960,18 @@
1812
1960
  "agent": [
1813
1961
  "dist-cjs/agent/index.d.ts"
1814
1962
  ],
1963
+ "agent/permissions": [
1964
+ "dist-cjs/agent/permissions.d.ts"
1965
+ ],
1966
+ "agent/sandbox": [
1967
+ "dist-cjs/agent/sandbox.d.ts"
1968
+ ],
1969
+ "agent/middleware": [
1970
+ "dist-cjs/agent/middleware/index.d.ts"
1971
+ ],
1972
+ "deep-agent": [
1973
+ "dist-cjs/deep-agent/index.d.ts"
1974
+ ],
1815
1975
  "store": [
1816
1976
  "dist-cjs/store/index.d.ts"
1817
1977
  ],
@@ -1845,6 +2005,9 @@
1845
2005
  "postgres/vectors": [
1846
2006
  "dist-cjs/postgres/vectors.d.ts"
1847
2007
  ],
2008
+ "postgres/fulltext": [
2009
+ "dist-cjs/postgres/fulltext.d.ts"
2010
+ ],
1848
2011
  "postgres/traces": [
1849
2012
  "dist-cjs/postgres/traces.d.ts"
1850
2013
  ],
@@ -1881,6 +2044,9 @@
1881
2044
  "testing": [
1882
2045
  "dist-cjs/testing/index.d.ts"
1883
2046
  ],
2047
+ "adapter-kit": [
2048
+ "dist-cjs/adapter-kit/index.d.ts"
2049
+ ],
1884
2050
  "next": [
1885
2051
  "dist-cjs/next/route-handler.d.ts"
1886
2052
  ],
@@ -1896,6 +2062,9 @@
1896
2062
  "server/tenancy": [
1897
2063
  "dist-cjs/server/tenancy.d.ts"
1898
2064
  ],
2065
+ "server/auth": [
2066
+ "dist-cjs/server/auth.d.ts"
2067
+ ],
1899
2068
  "tenancy": [
1900
2069
  "dist-cjs/tenancy/index.d.ts"
1901
2070
  ],
@@ -2070,9 +2239,18 @@
2070
2239
  "rag/chroma": [
2071
2240
  "dist-cjs/rag/chroma.d.ts"
2072
2241
  ],
2242
+ "rag/elasticsearch": [
2243
+ "dist-cjs/rag/elasticsearch.d.ts"
2244
+ ],
2073
2245
  "rag/retrievers": [
2074
2246
  "dist-cjs/rag/retrievers.d.ts"
2075
2247
  ],
2248
+ "rag/rerankers": [
2249
+ "dist-cjs/rag/rerankers.d.ts"
2250
+ ],
2251
+ "rag/pipeline": [
2252
+ "dist-cjs/rag/pipeline.d.ts"
2253
+ ],
2076
2254
  "sqlite/vectors": [
2077
2255
  "dist-cjs/sqlite/vectors.d.ts"
2078
2256
  ],
@@ -2082,6 +2260,15 @@
2082
2260
  "mcp/registry": [
2083
2261
  "dist-cjs/mcp/registry.d.ts"
2084
2262
  ],
2263
+ "protocols/ag-ui": [
2264
+ "dist-cjs/protocols/ag-ui.d.ts"
2265
+ ],
2266
+ "protocols/a2a": [
2267
+ "dist-cjs/protocols/a2a.d.ts"
2268
+ ],
2269
+ "protocols/acp": [
2270
+ "dist-cjs/protocols/acp.d.ts"
2271
+ ],
2085
2272
  "context-hub": [
2086
2273
  "dist-cjs/context-hub/index.d.ts"
2087
2274
  ],