@vertesia/common 1.5.0-dev.20260806.125520Z → 1.5.0-dev.20260826.064249Z

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 (458) hide show
  1. package/lib/access-control.d.ts +0 -14
  2. package/lib/access-control.d.ts.map +1 -1
  3. package/lib/access-control.js +0 -23
  4. package/lib/access-control.js.map +1 -1
  5. package/lib/account-values.d.ts +0 -10
  6. package/lib/account-values.d.ts.map +1 -1
  7. package/lib/account-values.js +0 -44
  8. package/lib/account-values.js.map +1 -1
  9. package/lib/api-contract/components.generated.json +40303 -0
  10. package/lib/api-contract/index.d.ts +186 -0
  11. package/lib/api-contract/index.d.ts.map +1 -0
  12. package/lib/api-contract/index.js +554 -0
  13. package/lib/api-contract/index.js.map +1 -0
  14. package/lib/api-schemas/adapter.d.ts +1 -0
  15. package/lib/api-schemas/adapter.d.ts.map +1 -1
  16. package/lib/api-schemas/adapter.js +1 -1
  17. package/lib/api-schemas/adapter.js.map +1 -1
  18. package/lib/api-schemas/agent-communication.d.ts +199 -0
  19. package/lib/api-schemas/agent-communication.d.ts.map +1 -0
  20. package/lib/api-schemas/agent-communication.js +150 -0
  21. package/lib/api-schemas/agent-communication.js.map +1 -0
  22. package/lib/api-schemas/agent-runs.d.ts +723 -0
  23. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  24. package/lib/api-schemas/agent-runs.js +44 -2
  25. package/lib/api-schemas/agent-runs.js.map +1 -1
  26. package/lib/api-schemas/app-lifecycle.d.ts +19 -0
  27. package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
  28. package/lib/api-schemas/app-lifecycle.js +34 -4
  29. package/lib/api-schemas/app-lifecycle.js.map +1 -1
  30. package/lib/api-schemas/app-runtime.d.ts +9946 -8884
  31. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  32. package/lib/api-schemas/app-runtime.js +7 -0
  33. package/lib/api-schemas/app-runtime.js.map +1 -1
  34. package/lib/api-schemas/apps.d.ts +1 -0
  35. package/lib/api-schemas/apps.d.ts.map +1 -1
  36. package/lib/api-schemas/apps.js +4 -3
  37. package/lib/api-schemas/apps.js.map +1 -1
  38. package/lib/api-schemas/content-query.d.ts +39 -0
  39. package/lib/api-schemas/content-query.d.ts.map +1 -0
  40. package/lib/api-schemas/content-query.js +30 -0
  41. package/lib/api-schemas/content-query.js.map +1 -0
  42. package/lib/api-schemas/content.d.ts +966 -30
  43. package/lib/api-schemas/content.d.ts.map +1 -1
  44. package/lib/api-schemas/content.js +82 -15
  45. package/lib/api-schemas/content.js.map +1 -1
  46. package/lib/api-schemas/dashboard.d.ts +4 -0
  47. package/lib/api-schemas/dashboard.d.ts.map +1 -1
  48. package/lib/api-schemas/dashboard.js +3 -0
  49. package/lib/api-schemas/dashboard.js.map +1 -1
  50. package/lib/api-schemas/document-processing.d.ts +411 -0
  51. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  52. package/lib/api-schemas/environment.d.ts +2 -0
  53. package/lib/api-schemas/environment.d.ts.map +1 -1
  54. package/lib/api-schemas/events.d.ts +1245 -8
  55. package/lib/api-schemas/events.d.ts.map +1 -1
  56. package/lib/api-schemas/events.js +4 -1
  57. package/lib/api-schemas/events.js.map +1 -1
  58. package/lib/api-schemas/files.d.ts +17 -0
  59. package/lib/api-schemas/files.d.ts.map +1 -1
  60. package/lib/api-schemas/files.js +23 -0
  61. package/lib/api-schemas/files.js.map +1 -1
  62. package/lib/api-schemas/group.d.ts +7 -0
  63. package/lib/api-schemas/group.d.ts.map +1 -1
  64. package/lib/api-schemas/group.js +9 -0
  65. package/lib/api-schemas/group.js.map +1 -1
  66. package/lib/api-schemas/index.d.ts +4 -0
  67. package/lib/api-schemas/index.d.ts.map +1 -1
  68. package/lib/api-schemas/index.js +4 -0
  69. package/lib/api-schemas/index.js.map +1 -1
  70. package/lib/api-schemas/integrations.d.ts +5 -5
  71. package/lib/api-schemas/integrations.d.ts.map +1 -1
  72. package/lib/api-schemas/integrations.js +15 -2
  73. package/lib/api-schemas/integrations.js.map +1 -1
  74. package/lib/api-schemas/interaction.d.ts +9469 -1092
  75. package/lib/api-schemas/interaction.d.ts.map +1 -1
  76. package/lib/api-schemas/interaction.js +161 -9
  77. package/lib/api-schemas/interaction.js.map +1 -1
  78. package/lib/api-schemas/oauth-server.d.ts +131 -3
  79. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  80. package/lib/api-schemas/oauth-server.js +137 -3
  81. package/lib/api-schemas/oauth-server.js.map +1 -1
  82. package/lib/api-schemas/process.d.ts +1295 -0
  83. package/lib/api-schemas/process.d.ts.map +1 -1
  84. package/lib/api-schemas/process.js +309 -1
  85. package/lib/api-schemas/process.js.map +1 -1
  86. package/lib/api-schemas/project-configuration.d.ts +1388 -11
  87. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  88. package/lib/api-schemas/project-configuration.js +6 -2
  89. package/lib/api-schemas/project-configuration.js.map +1 -1
  90. package/lib/api-schemas/project.d.ts +2094 -30
  91. package/lib/api-schemas/project.d.ts.map +1 -1
  92. package/lib/api-schemas/registry.d.ts +88965 -66382
  93. package/lib/api-schemas/registry.d.ts.map +1 -1
  94. package/lib/api-schemas/registry.js +234 -281
  95. package/lib/api-schemas/registry.js.map +1 -1
  96. package/lib/api-schemas/schema-primitives.d.ts +4 -0
  97. package/lib/api-schemas/schema-primitives.d.ts.map +1 -1
  98. package/lib/api-schemas/schema-primitives.js +10 -0
  99. package/lib/api-schemas/schema-primitives.js.map +1 -1
  100. package/lib/api-schemas/store.d.ts +6899 -40
  101. package/lib/api-schemas/store.d.ts.map +1 -1
  102. package/lib/api-schemas/store.js +53 -8
  103. package/lib/api-schemas/store.js.map +1 -1
  104. package/lib/api-schemas/tools.d.ts +115 -0
  105. package/lib/api-schemas/tools.d.ts.map +1 -1
  106. package/lib/api-schemas/tools.js +55 -0
  107. package/lib/api-schemas/tools.js.map +1 -1
  108. package/lib/api-schemas/view-execution.d.ts +330 -798
  109. package/lib/api-schemas/view-execution.d.ts.map +1 -1
  110. package/lib/api-schemas/view-execution.js +26 -2
  111. package/lib/api-schemas/view-execution.js.map +1 -1
  112. package/lib/api-schemas/views.d.ts +452 -2394
  113. package/lib/api-schemas/views.d.ts.map +1 -1
  114. package/lib/api-schemas/views.js +119 -3
  115. package/lib/api-schemas/views.js.map +1 -1
  116. package/lib/api-schemas/workflow-runs.d.ts +396 -5
  117. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  118. package/lib/api-schemas/workflow-runs.js +9 -7
  119. package/lib/api-schemas/workflow-runs.js.map +1 -1
  120. package/lib/apps.d.ts +8 -145
  121. package/lib/apps.d.ts.map +1 -1
  122. package/lib/apps.js +1 -54
  123. package/lib/apps.js.map +1 -1
  124. package/lib/ask-user.d.ts +2 -1
  125. package/lib/ask-user.d.ts.map +1 -1
  126. package/lib/audit-trail.d.ts +2 -2
  127. package/lib/audit-trail.d.ts.map +1 -1
  128. package/lib/audit-trail.js +2 -2
  129. package/lib/audit-trail.js.map +1 -1
  130. package/lib/browser-credentials.d.ts +2 -7
  131. package/lib/browser-credentials.d.ts.map +1 -1
  132. package/lib/common.d.ts +4 -1
  133. package/lib/common.d.ts.map +1 -1
  134. package/lib/content-query.d.ts +5 -0
  135. package/lib/content-query.d.ts.map +1 -0
  136. package/lib/content-query.js +2 -0
  137. package/lib/content-query.js.map +1 -0
  138. package/lib/data-platform.d.ts +4 -46
  139. package/lib/data-platform.d.ts.map +1 -1
  140. package/lib/data-platform.js.map +1 -1
  141. package/lib/email.d.ts +12 -18
  142. package/lib/email.d.ts.map +1 -1
  143. package/lib/email.js.map +1 -1
  144. package/lib/environment.d.ts +0 -10
  145. package/lib/environment.d.ts.map +1 -1
  146. package/lib/environment.js +1 -12
  147. package/lib/environment.js.map +1 -1
  148. package/lib/facets.d.ts +0 -4
  149. package/lib/facets.d.ts.map +1 -1
  150. package/lib/group.d.ts +2 -12
  151. package/lib/group.d.ts.map +1 -1
  152. package/lib/group.js.map +1 -1
  153. package/lib/index.d.ts +3 -10
  154. package/lib/index.d.ts.map +1 -1
  155. package/lib/index.js +2 -10
  156. package/lib/index.js.map +1 -1
  157. package/lib/integrations.d.ts +0 -26
  158. package/lib/integrations.d.ts.map +1 -1
  159. package/lib/integrations.js +0 -6
  160. package/lib/integrations.js.map +1 -1
  161. package/lib/interaction.d.ts +10 -222
  162. package/lib/interaction.d.ts.map +1 -1
  163. package/lib/interaction.js +0 -31
  164. package/lib/interaction.js.map +1 -1
  165. package/lib/meters.d.ts +5 -10
  166. package/lib/meters.d.ts.map +1 -1
  167. package/lib/meters.js +1 -9
  168. package/lib/meters.js.map +1 -1
  169. package/lib/oauth-scopes.d.ts +2 -16
  170. package/lib/oauth-scopes.d.ts.map +1 -1
  171. package/lib/oauth-scopes.js +9 -49
  172. package/lib/oauth-scopes.js.map +1 -1
  173. package/lib/oauth-server.d.ts +16 -195
  174. package/lib/oauth-server.d.ts.map +1 -1
  175. package/lib/payload.d.ts +2 -5
  176. package/lib/payload.d.ts.map +1 -1
  177. package/lib/pending-asks.d.ts +9 -41
  178. package/lib/pending-asks.d.ts.map +1 -1
  179. package/lib/platform-event.d.ts +4 -142
  180. package/lib/platform-event.d.ts.map +1 -1
  181. package/lib/platform-event.js.map +1 -1
  182. package/lib/project.d.ts +7 -46
  183. package/lib/project.d.ts.map +1 -1
  184. package/lib/project.js +2 -132
  185. package/lib/project.js.map +1 -1
  186. package/lib/prompt.d.ts +4 -7
  187. package/lib/prompt.d.ts.map +1 -1
  188. package/lib/prompt.js.map +1 -1
  189. package/lib/query.d.ts +0 -8
  190. package/lib/query.d.ts.map +1 -1
  191. package/lib/rate-limiter.d.ts +4 -3
  192. package/lib/rate-limiter.d.ts.map +1 -1
  193. package/lib/runs.d.ts +5 -1
  194. package/lib/runs.d.ts.map +1 -1
  195. package/lib/schema-for-extraction.d.ts +0 -1
  196. package/lib/schema-for-extraction.d.ts.map +1 -1
  197. package/lib/schema-for-extraction.js +1 -1
  198. package/lib/schema-for-extraction.js.map +1 -1
  199. package/lib/secrets.d.ts +2 -1
  200. package/lib/secrets.d.ts.map +1 -1
  201. package/lib/skill.d.ts +0 -13
  202. package/lib/skill.d.ts.map +1 -1
  203. package/lib/store/activity-catalog.d.ts +2 -0
  204. package/lib/store/activity-catalog.d.ts.map +1 -1
  205. package/lib/store/agent-approval.d.ts +0 -1
  206. package/lib/store/agent-approval.d.ts.map +1 -1
  207. package/lib/store/agent-approval.js +0 -3
  208. package/lib/store/agent-approval.js.map +1 -1
  209. package/lib/store/agent-run.d.ts +32 -69
  210. package/lib/store/agent-run.d.ts.map +1 -1
  211. package/lib/store/collections.d.ts +2 -6
  212. package/lib/store/collections.d.ts.map +1 -1
  213. package/lib/store/collections.js.map +1 -1
  214. package/lib/store/conversation-state.d.ts +11 -12
  215. package/lib/store/conversation-state.d.ts.map +1 -1
  216. package/lib/store/conversation-state.js +0 -18
  217. package/lib/store/conversation-state.js.map +1 -1
  218. package/lib/store/doc-analyzer.d.ts +0 -22
  219. package/lib/store/doc-analyzer.d.ts.map +1 -1
  220. package/lib/store/dsl-workflow.d.ts +18 -5
  221. package/lib/store/dsl-workflow.d.ts.map +1 -1
  222. package/lib/store/dsl-workflow.js.map +1 -1
  223. package/lib/store/grounded-extraction.d.ts +0 -14
  224. package/lib/store/grounded-extraction.d.ts.map +1 -1
  225. package/lib/store/grounded-extraction.js +1 -7
  226. package/lib/store/grounded-extraction.js.map +1 -1
  227. package/lib/store/index.d.ts +0 -5
  228. package/lib/store/index.d.ts.map +1 -1
  229. package/lib/store/index.js +0 -6
  230. package/lib/store/index.js.map +1 -1
  231. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  232. package/lib/store/intake-policy-schema.generated.js +305 -1
  233. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  234. package/lib/store/process.d.ts +43 -1
  235. package/lib/store/process.d.ts.map +1 -1
  236. package/lib/store/process.js.map +1 -1
  237. package/lib/store/rendering.d.ts +3 -5
  238. package/lib/store/rendering.d.ts.map +1 -1
  239. package/lib/store/rendering.js +0 -4
  240. package/lib/store/rendering.js.map +1 -1
  241. package/lib/store/schedule.d.ts +0 -16
  242. package/lib/store/schedule.d.ts.map +1 -1
  243. package/lib/store/schedule.js.map +1 -1
  244. package/lib/store/signals.d.ts +12 -0
  245. package/lib/store/signals.d.ts.map +1 -1
  246. package/lib/store/store.d.ts +80 -94
  247. package/lib/store/store.d.ts.map +1 -1
  248. package/lib/store/store.js +5 -25
  249. package/lib/store/store.js.map +1 -1
  250. package/lib/store/workflow.d.ts +35 -86
  251. package/lib/store/workflow.d.ts.map +1 -1
  252. package/lib/store/workflow.js +0 -47
  253. package/lib/store/workflow.js.map +1 -1
  254. package/lib/sts-errors.d.ts +0 -1
  255. package/lib/sts-errors.d.ts.map +1 -1
  256. package/lib/sts-token-types.d.ts +2 -8
  257. package/lib/sts-token-types.d.ts.map +1 -1
  258. package/lib/sts-token-types.js +1 -19
  259. package/lib/sts-token-types.js.map +1 -1
  260. package/lib/tools.d.ts +6 -1
  261. package/lib/tools.d.ts.map +1 -1
  262. package/lib/transient-tokens.d.ts +0 -2
  263. package/lib/transient-tokens.d.ts.map +1 -1
  264. package/lib/user.d.ts +0 -17
  265. package/lib/user.d.ts.map +1 -1
  266. package/lib/user.js.map +1 -1
  267. package/lib/utils/schemas.d.ts +2 -24
  268. package/lib/utils/schemas.d.ts.map +1 -1
  269. package/lib/utils/schemas.js +0 -151
  270. package/lib/utils/schemas.js.map +1 -1
  271. package/lib/vertesia-common.js +3 -4
  272. package/lib/vertesia-common.js.map +1 -1
  273. package/lib/views.d.ts +23 -27
  274. package/lib/views.d.ts.map +1 -1
  275. package/lib/views.js +5 -26
  276. package/lib/views.js.map +1 -1
  277. package/lib/workflow-analytics.d.ts +12 -34
  278. package/lib/workflow-analytics.d.ts.map +1 -1
  279. package/package.json +12 -6
  280. package/src/access-control.ts +0 -26
  281. package/src/account-values.ts +0 -49
  282. package/src/agent-resources.test.ts +1 -12
  283. package/src/api-contract/components.contract.test.ts +99 -0
  284. package/src/api-contract/components.generated.json +40303 -0
  285. package/src/api-contract/index.ts +664 -0
  286. package/src/api-schemas/adapter.ts +1 -1
  287. package/src/api-schemas/agent-communication.contract.test.ts +90 -0
  288. package/src/api-schemas/agent-communication.ts +169 -0
  289. package/src/api-schemas/agent-runs.ts +46 -1
  290. package/src/api-schemas/api-discriminators.test.ts +185 -0
  291. package/src/api-schemas/app-lifecycle.ts +39 -4
  292. package/src/api-schemas/app-runtime.ts +8 -0
  293. package/src/api-schemas/apps.ts +4 -3
  294. package/src/api-schemas/content-query.ts +31 -0
  295. package/src/api-schemas/content.ts +88 -15
  296. package/src/api-schemas/dashboard.contract.test.ts +16 -5
  297. package/src/api-schemas/dashboard.ts +3 -0
  298. package/src/api-schemas/events.ts +9 -1
  299. package/src/api-schemas/files.ts +27 -0
  300. package/src/api-schemas/group.ts +10 -0
  301. package/src/api-schemas/index.ts +4 -0
  302. package/src/api-schemas/integrations.ts +15 -2
  303. package/src/api-schemas/interaction.contract.test.ts +204 -1
  304. package/src/api-schemas/interaction.ts +176 -8
  305. package/src/api-schemas/llumiverse.contract.test.ts +18 -2
  306. package/src/api-schemas/oauth-server.ts +152 -3
  307. package/src/api-schemas/oauth.contract.test.ts +64 -1
  308. package/src/api-schemas/process.ts +343 -1
  309. package/src/api-schemas/project-configuration.ts +11 -7
  310. package/src/api-schemas/project.contract.test.ts +64 -6
  311. package/src/api-schemas/registry.ts +290 -300
  312. package/src/api-schemas/schema-primitives.ts +13 -0
  313. package/src/api-schemas/store.contract.test.ts +30 -1
  314. package/src/api-schemas/store.ts +58 -11
  315. package/src/api-schemas/tools.ts +62 -0
  316. package/src/api-schemas/view-execution.ts +28 -2
  317. package/src/api-schemas/views.contract.test.ts +119 -0
  318. package/src/api-schemas/views.ts +142 -3
  319. package/src/api-schemas/workflow-runs.ts +9 -7
  320. package/src/api-schemas/zeno-response-contracts.test.ts +320 -0
  321. package/src/apps.test.ts +2 -40
  322. package/src/apps.ts +14 -181
  323. package/src/ask-user.ts +1 -1
  324. package/src/audit-trail.ts +3 -3
  325. package/src/browser-credentials.ts +3 -7
  326. package/src/common.ts +13 -1
  327. package/src/content-query.ts +5 -0
  328. package/src/data-platform.ts +4 -51
  329. package/src/email.ts +24 -18
  330. package/src/environment.ts +1 -14
  331. package/src/facets.ts +0 -6
  332. package/src/group.ts +2 -12
  333. package/src/index.ts +3 -15
  334. package/src/integrations.ts +0 -51
  335. package/src/interaction.ts +12 -271
  336. package/src/meters.ts +10 -11
  337. package/src/oauth-scopes.test.ts +15 -0
  338. package/src/oauth-scopes.ts +10 -64
  339. package/src/oauth-server.ts +28 -215
  340. package/src/payload.ts +1 -6
  341. package/src/pending-asks.ts +17 -42
  342. package/src/platform-event.ts +3 -156
  343. package/src/project.ts +12 -160
  344. package/src/prompt.ts +9 -8
  345. package/src/query.ts +0 -9
  346. package/src/rate-limiter.ts +3 -3
  347. package/src/runs.ts +8 -0
  348. package/src/schema-for-extraction.ts +1 -1
  349. package/src/secrets.ts +3 -0
  350. package/src/skill.ts +0 -15
  351. package/src/store/activity-catalog.ts +3 -0
  352. package/src/store/agent-approval.ts +0 -4
  353. package/src/store/agent-run.ts +39 -93
  354. package/src/store/collections.ts +3 -6
  355. package/src/store/conversation-state.ts +12 -25
  356. package/src/store/doc-analyzer.ts +0 -26
  357. package/src/store/dsl-workflow.ts +24 -5
  358. package/src/store/grounded-extraction.ts +0 -18
  359. package/src/store/index.ts +0 -6
  360. package/src/store/intake-policy-schema.generated.ts +319 -1
  361. package/src/store/process.ts +84 -0
  362. package/src/store/rendering.ts +3 -8
  363. package/src/store/schedule.ts +0 -19
  364. package/src/store/signals.ts +14 -0
  365. package/src/store/store.ts +118 -127
  366. package/src/store/workflow.ts +32 -120
  367. package/src/sts-errors.ts +0 -2
  368. package/src/sts-token-types.ts +3 -28
  369. package/src/tools.ts +15 -0
  370. package/src/transient-tokens.ts +0 -2
  371. package/src/user.ts +0 -20
  372. package/src/utils/schemas.ts +2 -159
  373. package/src/views.ts +50 -47
  374. package/src/workflow-analytics.ts +12 -40
  375. package/tsconfig.dist.json +4 -1
  376. package/lib/Progress.d.ts +0 -22
  377. package/lib/Progress.d.ts.map +0 -1
  378. package/lib/Progress.js +0 -57
  379. package/lib/Progress.js.map +0 -1
  380. package/lib/agent-request-template.d.ts +0 -4
  381. package/lib/agent-request-template.d.ts.map +0 -1
  382. package/lib/agent-request-template.js +0 -46
  383. package/lib/agent-request-template.js.map +0 -1
  384. package/lib/channels.d.ts +0 -22
  385. package/lib/channels.d.ts.map +0 -1
  386. package/lib/channels.js +0 -57
  387. package/lib/channels.js.map +0 -1
  388. package/lib/host-utils.d.ts +0 -8
  389. package/lib/host-utils.d.ts.map +0 -1
  390. package/lib/host-utils.js +0 -84
  391. package/lib/host-utils.js.map +0 -1
  392. package/lib/platform-event-validation.d.ts +0 -45
  393. package/lib/platform-event-validation.d.ts.map +0 -1
  394. package/lib/platform-event-validation.js +0 -336
  395. package/lib/platform-event-validation.js.map +0 -1
  396. package/lib/store/hive-memory.d.ts +0 -117
  397. package/lib/store/hive-memory.d.ts.map +0 -1
  398. package/lib/store/hive-memory.js +0 -2
  399. package/lib/store/hive-memory.js.map +0 -1
  400. package/lib/store/object-types.d.ts +0 -24
  401. package/lib/store/object-types.d.ts.map +0 -1
  402. package/lib/store/object-types.js +0 -95
  403. package/lib/store/object-types.js.map +0 -1
  404. package/lib/store/process-schema.d.ts +0 -561
  405. package/lib/store/process-schema.d.ts.map +0 -1
  406. package/lib/store/process-schema.js +0 -561
  407. package/lib/store/process-schema.js.map +0 -1
  408. package/lib/store/process-validation.d.ts +0 -17
  409. package/lib/store/process-validation.d.ts.map +0 -1
  410. package/lib/store/process-validation.js +0 -515
  411. package/lib/store/process-validation.js.map +0 -1
  412. package/lib/store/temporalio.d.ts +0 -17
  413. package/lib/store/temporalio.d.ts.map +0 -1
  414. package/lib/store/temporalio.js +0 -41
  415. package/lib/store/temporalio.js.map +0 -1
  416. package/lib/view-configuration-validation.d.ts +0 -15
  417. package/lib/view-configuration-validation.d.ts.map +0 -1
  418. package/lib/view-configuration-validation.js +0 -63
  419. package/lib/view-configuration-validation.js.map +0 -1
  420. package/lib/view-query-validation.d.ts +0 -13
  421. package/lib/view-query-validation.d.ts.map +0 -1
  422. package/lib/view-query-validation.js +0 -266
  423. package/lib/view-query-validation.js.map +0 -1
  424. package/lib/view-validation-helpers.d.ts +0 -15
  425. package/lib/view-validation-helpers.d.ts.map +0 -1
  426. package/lib/view-validation-helpers.js +0 -25
  427. package/lib/view-validation-helpers.js.map +0 -1
  428. package/lib/views-schema.d.ts +0 -1992
  429. package/lib/views-schema.d.ts.map +0 -1
  430. package/lib/views-schema.js +0 -674
  431. package/lib/views-schema.js.map +0 -1
  432. package/lib/views-validation.d.ts +0 -21
  433. package/lib/views-validation.d.ts.map +0 -1
  434. package/lib/views-validation.js +0 -164
  435. package/lib/views-validation.js.map +0 -1
  436. package/src/Progress.ts +0 -59
  437. package/src/agent-request-template.test.ts +0 -40
  438. package/src/agent-request-template.ts +0 -45
  439. package/src/channels.ts +0 -70
  440. package/src/host-utils.test.ts +0 -61
  441. package/src/host-utils.ts +0 -93
  442. package/src/platform-event-validation.test.ts +0 -251
  443. package/src/platform-event-validation.ts +0 -372
  444. package/src/project.test.ts +0 -44
  445. package/src/store/hive-memory.ts +0 -167
  446. package/src/store/object-types.ts +0 -123
  447. package/src/store/process-schema.test.ts +0 -149
  448. package/src/store/process-schema.ts +0 -564
  449. package/src/store/process-validation.test.ts +0 -635
  450. package/src/store/process-validation.ts +0 -646
  451. package/src/store/temporalio.ts +0 -54
  452. package/src/view-configuration-validation.ts +0 -74
  453. package/src/view-query-validation.test.ts +0 -21
  454. package/src/view-query-validation.ts +0 -319
  455. package/src/view-validation-helpers.ts +0 -28
  456. package/src/views-schema.test.ts +0 -372
  457. package/src/views-schema.ts +0 -689
  458. package/src/views-validation.ts +0 -234
@@ -1,167 +0,0 @@
1
- import type { BaseObject } from './common.js';
2
-
3
- /**
4
- * Tool recommendation within a hive memory unit
5
- */
6
- export interface HiveMemoryToolRecommendation {
7
- tool_name: string;
8
- guidance: string;
9
- }
10
-
11
- /**
12
- * Memory unit scope - project-scoped by default, can be elevated to account
13
- */
14
- export type HiveMemoryScope = 'project' | 'account';
15
-
16
- /**
17
- * Base interface for hive memory items (list/summary view)
18
- */
19
- export interface HiveMemoryItem extends BaseObject {
20
- // Classification
21
- task_category: string; // "document-analysis", "data-extraction", etc.
22
- domain?: string; // "financial", "legal", etc.
23
-
24
- // Summary
25
- summary: string;
26
-
27
- // Tools involved in the learnings
28
- tools_involved: string[];
29
-
30
- // Quality metrics
31
- confidence_score: number; // 0-1
32
- usage_count: number;
33
- success_correlation: number; // correlation with successful runs
34
- contribution_count: number; // number of runs that contributed
35
-
36
- // Scoping
37
- scope: HiveMemoryScope;
38
- }
39
-
40
- /**
41
- * Full hive memory unit with all learnings and patterns
42
- */
43
- export interface HiveMemory extends HiveMemoryItem {
44
- // Objective patterns this memory applies to
45
- objective_patterns: string[];
46
-
47
- // Learnings
48
- general_learnings: string[];
49
- best_practices: string[];
50
- pitfalls_to_avoid: string[];
51
- tool_recommendations: HiveMemoryToolRecommendation[];
52
-
53
- // Vector search
54
- embedding?: number[];
55
-
56
- // Security field for granular permissions
57
- security?: Record<string, string[]>;
58
- }
59
-
60
- /**
61
- * Payload for creating a new hive memory unit
62
- */
63
- export interface CreateHiveMemoryPayload {
64
- // Classification
65
- task_category: string;
66
- domain?: string;
67
-
68
- // Content
69
- summary: string;
70
- objective_patterns: string[];
71
-
72
- // Learnings
73
- general_learnings: string[];
74
- best_practices?: string[];
75
- pitfalls_to_avoid?: string[];
76
- tool_recommendations?: HiveMemoryToolRecommendation[];
77
-
78
- // Metadata
79
- tools_involved?: string[];
80
-
81
- // Quality (optional, defaults applied)
82
- confidence_score?: number;
83
-
84
- // Scoping
85
- scope?: HiveMemoryScope;
86
-
87
- // Standard fields
88
- name?: string;
89
- description?: string;
90
- tags?: string[];
91
- }
92
-
93
- /**
94
- * Payload for updating an existing hive memory unit
95
- */
96
- export interface UpdateHiveMemoryPayload {
97
- // Classification updates
98
- task_category?: string;
99
- domain?: string;
100
-
101
- // Content updates
102
- summary?: string;
103
-
104
- // Array additions (merged with existing)
105
- add_objective_patterns?: string[];
106
- add_general_learnings?: string[];
107
- add_best_practices?: string[];
108
- add_pitfalls_to_avoid?: string[];
109
- add_tool_recommendations?: HiveMemoryToolRecommendation[];
110
- add_tools_involved?: string[];
111
-
112
- // Quality updates
113
- confidence_score?: number;
114
- increment_usage_count?: boolean;
115
- increment_contribution_count?: boolean;
116
- success_correlation?: number;
117
-
118
- // Scoping
119
- scope?: HiveMemoryScope;
120
-
121
- // Standard fields
122
- name?: string;
123
- description?: string;
124
- tags?: string[];
125
- }
126
-
127
- /**
128
- * Search parameters for finding relevant memories
129
- */
130
- export interface HiveMemorySearchParams {
131
- // Semantic search
132
- query?: string; // Natural language query
133
- embedding?: number[]; // Pre-computed embedding for vector search
134
-
135
- // Filters
136
- task_category?: string;
137
- domain?: string;
138
- tools_involved?: string[];
139
- scope?: HiveMemoryScope;
140
- min_confidence?: number; // Minimum confidence score (0-1)
141
-
142
- // Pagination
143
- limit?: number; // Default: 5
144
- offset?: number;
145
- }
146
-
147
- /**
148
- * Response from memory search
149
- */
150
- export interface HiveMemorySearchResult {
151
- memories: HiveMemory[];
152
- total: number;
153
- }
154
-
155
- /**
156
- * Formatted memory for agent consumption
157
- */
158
- export interface FormattedMemoryForAgent {
159
- category: string;
160
- domain?: string;
161
- summary: string;
162
- learnings: string[];
163
- best_practices: string[];
164
- pitfalls_to_avoid: string[];
165
- tool_guidance: { tool: string; guidance: string }[];
166
- confidence: number;
167
- }
@@ -1,123 +0,0 @@
1
- import type { JSONSchemaType } from 'ajv';
2
-
3
- /*Default JSON Schema type for rendition*/
4
-
5
- export interface RenditionProperties {
6
- mime_type: string;
7
- source_etag?: string;
8
- height?: number;
9
- width?: number;
10
- multipart?: boolean;
11
- total_parts?: number;
12
- }
13
-
14
- export const RenditionSchema: JSONSchemaType<RenditionProperties> = {
15
- type: 'object',
16
- description:
17
- 'Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.',
18
- properties: {
19
- mime_type: {
20
- type: 'string',
21
- description: 'The format of the rendition. This is a MIME type.',
22
- },
23
- source_etag: {
24
- type: 'string',
25
- description: 'The ETag of the file used for the rendition.',
26
- nullable: true,
27
- },
28
- height: {
29
- type: 'integer',
30
- description: 'The height of the rendition',
31
- nullable: true,
32
- },
33
- width: {
34
- type: 'integer',
35
- description: 'The width of the rendition',
36
- nullable: true,
37
- },
38
- multipart: {
39
- type: 'boolean',
40
- description: 'If the rendition is a multi-part rendition',
41
- nullable: true,
42
- default: false,
43
- },
44
- total_parts: {
45
- type: 'integer',
46
- description: 'The total number of parts in the rendition',
47
- nullable: true,
48
- },
49
- },
50
- required: ['mime_type'],
51
- };
52
-
53
- export interface DocumentPartProperties {
54
- source_etag?: string;
55
- part_number: number;
56
- title?: string;
57
- source_line_start?: number;
58
- source_line_end?: number;
59
- type?: 'text' | 'image' | 'table' | 'chart' | 'diagram' | 'code' | 'other';
60
- page_number?: number;
61
- description?: string;
62
- height?: number;
63
- width?: number;
64
- }
65
-
66
- export const DocumentPartSchema: JSONSchemaType<DocumentPartProperties> = {
67
- type: 'object',
68
- description: 'Represent a semantic chunk of a document',
69
- properties: {
70
- source_etag: {
71
- type: 'string',
72
- description: 'The ETag of the file used for the rendition.',
73
- nullable: true,
74
- },
75
- part_number: {
76
- type: 'integer',
77
- description: 'The part number of the chunk',
78
- },
79
- title: {
80
- type: 'string',
81
- description: 'The title of the chunk',
82
- nullable: true,
83
- },
84
- source_line_start: {
85
- type: 'integer',
86
- description: 'The line number where the chunk starts',
87
- nullable: true,
88
- },
89
- source_line_end: {
90
- type: 'integer',
91
- description: 'The line number where the chunk ends',
92
- nullable: true,
93
- },
94
- type: {
95
- type: 'string',
96
- description: 'The type of the chunk',
97
- enum: ['text', 'image', 'table', 'chart', 'diagram', 'code', 'other'],
98
- nullable: true,
99
- },
100
- page_number: {
101
- type: 'integer',
102
- description: 'The page number of the document part',
103
- nullable: true,
104
- },
105
- description: {
106
- type: 'string',
107
- description:
108
- "The description of the document part, if it's an image, the exhaustive description of the image",
109
- nullable: true,
110
- },
111
- height: {
112
- type: 'integer',
113
- description: 'The height of the rendition',
114
- nullable: true,
115
- },
116
- width: {
117
- type: 'integer',
118
- description: 'The width of the rendition',
119
- nullable: true,
120
- },
121
- },
122
- required: ['part_number'],
123
- };
@@ -1,149 +0,0 @@
1
- import Ajv from 'ajv';
2
- import { describe, expect, it } from 'vitest';
3
- import { PROCESS_DEFINITION_FORMAT_VERSION, type ProcessDefinitionBody } from './process.js';
4
- import { ProcessDefinitionBodyJsonSchema } from './process-schema.js';
5
-
6
- function validDefinition(): ProcessDefinitionBody {
7
- return {
8
- format_version: PROCESS_DEFINITION_FORMAT_VERSION,
9
- process: 'invoice_review',
10
- initial: 'fanout',
11
- metadata: {
12
- provenance: {
13
- bpmn: {
14
- process_id: 'InvoiceReview',
15
- },
16
- },
17
- },
18
- context: {
19
- schema: {
20
- type: 'object',
21
- additionalProperties: true,
22
- properties: {
23
- invoices: { type: 'array' },
24
- results: { type: 'array' },
25
- },
26
- },
27
- initial: {
28
- invoices: [],
29
- },
30
- },
31
- nodes: {
32
- fanout: {
33
- type: 'foreach',
34
- foreach: 'invoices',
35
- as: 'invoice',
36
- item_id: '{{invoice.id}}',
37
- max_concurrency: 10,
38
- failure_policy: 'collect_errors',
39
- collect: {
40
- into: 'results',
41
- include: ['status', 'index', 'item_id', 'output', 'child_run_id'],
42
- },
43
- metadata: {
44
- editor: {
45
- render: 'foreach',
46
- },
47
- },
48
- node: {
49
- type: 'process',
50
- process: 'invoice_child_review',
51
- run_type: 'programmatic',
52
- returns: {
53
- from: 'context.review',
54
- },
55
- },
56
- transitions: [{ to: 'done', metadata: { edge_kind: 'default' } }],
57
- },
58
- done: {
59
- type: 'final',
60
- },
61
- },
62
- };
63
- }
64
-
65
- describe('process definition JSON schema', () => {
66
- it('accepts current process engine definition features', () => {
67
- const validate = new Ajv.default({ allErrors: true, strict: false }).compile(ProcessDefinitionBodyJsonSchema);
68
-
69
- expect(validate(validDefinition())).toBe(true);
70
- });
71
-
72
- it('accepts inline script sources and script nodes', () => {
73
- const validate = new Ajv.default({ allErrors: true, strict: false }).compile(ProcessDefinitionBodyJsonSchema);
74
- const definition = validDefinition();
75
- definition.resources = {
76
- scripts: {
77
- normalize: {
78
- language: 'typescript',
79
- entrypoint: 'main.ts',
80
- source: {
81
- type: 'inline',
82
- files: {
83
- 'main.ts': 'console.log("ok");',
84
- },
85
- },
86
- packages: ['zod@4.0.0'],
87
- },
88
- },
89
- };
90
- definition.nodes.fanout.node = {
91
- type: 'script',
92
- script: 'normalize',
93
- timeout: 120,
94
- };
95
-
96
- expect(validate(definition)).toBe(true);
97
- });
98
-
99
- it('rejects legacy script resources without a source discriminator', () => {
100
- const validate = new Ajv.default({ allErrors: true, strict: false }).compile(ProcessDefinitionBodyJsonSchema);
101
- const definition = validDefinition() as unknown as Record<string, unknown>;
102
- definition.resources = {
103
- scripts: {
104
- normalize: {
105
- language: 'typescript',
106
- entrypoint: 'main.ts',
107
- files: { 'main.ts': 'console.log("ok");' },
108
- },
109
- },
110
- };
111
-
112
- expect(validate(definition)).toBe(false);
113
- });
114
-
115
- it('rejects malformed process definition shape for editor diagnostics', () => {
116
- const validate = new Ajv.default({ allErrors: true, strict: false }).compile(ProcessDefinitionBodyJsonSchema);
117
- const invalidDefinition = {
118
- format_version: PROCESS_DEFINITION_FORMAT_VERSION,
119
- process: 'invoice_review',
120
- initial: 'fanout',
121
- context: {
122
- schema: {
123
- type: 'object',
124
- },
125
- initial: {},
126
- },
127
- nodes: {
128
- fanout: {
129
- type: 'foreach',
130
- collect: {
131
- into: 'results',
132
- include: ['bogus'],
133
- },
134
- node: {
135
- type: 'human_task',
136
- },
137
- transitions: [{ to: 'done', trigger: 'manual' }],
138
- },
139
- done: {
140
- type: 'final',
141
- },
142
- },
143
- };
144
-
145
- expect(validate(invalidDefinition)).toBe(false);
146
- const messages = validate.errors?.map((error) => error.message ?? '') ?? [];
147
- expect(messages).toContain('must be equal to one of the allowed values');
148
- });
149
- });