@alneas/eaos-server 0.0.0-stage → 0.1.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 (350) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE +21 -0
  3. package/README.ja.md +39 -0
  4. package/README.md +40 -2
  5. package/dist/agentic/agent-jobs.d.ts +329 -0
  6. package/dist/agentic/agent-jobs.js +15 -0
  7. package/dist/agentic/agent-jobs.js.map +1 -0
  8. package/dist/agentic/agent-node.d.ts +40 -0
  9. package/dist/agentic/agent-node.js +7 -0
  10. package/dist/agentic/agent-node.js.map +1 -0
  11. package/dist/agentic/agent-runner.d.ts +33 -0
  12. package/dist/agentic/agent-runner.js +7 -0
  13. package/dist/agentic/agent-runner.js.map +1 -0
  14. package/dist/agentic/ai-broker.d.ts +169 -0
  15. package/dist/agentic/ai-broker.js +8 -0
  16. package/dist/agentic/ai-broker.js.map +1 -0
  17. package/dist/agentic/atomic-checkpointer.d.ts +137 -0
  18. package/dist/agentic/atomic-checkpointer.js +9 -0
  19. package/dist/agentic/atomic-checkpointer.js.map +1 -0
  20. package/dist/agentic/autonomous-worker.d.ts +95 -0
  21. package/dist/agentic/autonomous-worker.js +9 -0
  22. package/dist/agentic/autonomous-worker.js.map +1 -0
  23. package/dist/agentic/event-bridge.d.ts +344 -0
  24. package/dist/agentic/event-bridge.js +9 -0
  25. package/dist/agentic/event-bridge.js.map +1 -0
  26. package/dist/agentic/executor.d.ts +91 -0
  27. package/dist/agentic/executor.js +12 -0
  28. package/dist/agentic/executor.js.map +1 -0
  29. package/dist/agentic/graph-projection.d.ts +119 -0
  30. package/dist/agentic/graph-projection.js +7 -0
  31. package/dist/agentic/graph-projection.js.map +1 -0
  32. package/dist/agentic/graph.d.ts +524 -0
  33. package/dist/agentic/graph.js +7 -0
  34. package/dist/agentic/graph.js.map +1 -0
  35. package/dist/agentic/index.d.ts +24 -0
  36. package/dist/agentic/index.js +86 -0
  37. package/dist/agentic/index.js.map +1 -0
  38. package/dist/agentic/local-runner.d.ts +102 -0
  39. package/dist/agentic/local-runner.js +7 -0
  40. package/dist/agentic/local-runner.js.map +1 -0
  41. package/dist/agentic/remote-executor.d.ts +67 -0
  42. package/dist/agentic/remote-executor.js +8 -0
  43. package/dist/agentic/remote-executor.js.map +1 -0
  44. package/dist/agentic/types.d.ts +157 -0
  45. package/dist/agentic/types.js +7 -0
  46. package/dist/agentic/types.js.map +1 -0
  47. package/dist/agentic/workflow-catalog.d.ts +152 -0
  48. package/dist/agentic/workflow-catalog.js +7 -0
  49. package/dist/agentic/workflow-catalog.js.map +1 -0
  50. package/dist/agentic/workflow-compiler.d.ts +44 -0
  51. package/dist/agentic/workflow-compiler.js +8 -0
  52. package/dist/agentic/workflow-compiler.js.map +1 -0
  53. package/dist/agentic/workflow-coordinator.d.ts +170 -0
  54. package/dist/agentic/workflow-coordinator.js +8 -0
  55. package/dist/agentic/workflow-coordinator.js.map +1 -0
  56. package/dist/agentic/workflow-manager.d.ts +91 -0
  57. package/dist/agentic/workflow-manager.js +7 -0
  58. package/dist/agentic/workflow-manager.js.map +1 -0
  59. package/dist/agentic/workflow-registry.d.ts +334 -0
  60. package/dist/agentic/workflow-registry.js +7 -0
  61. package/dist/agentic/workflow-registry.js.map +1 -0
  62. package/dist/artifacts-CteHmCMI.d.ts +614 -0
  63. package/dist/auth-hooks/api-key.d.ts +75 -0
  64. package/dist/auth-hooks/api-key.js +7 -0
  65. package/dist/auth-hooks/api-key.js.map +1 -0
  66. package/dist/auth-hooks/index.d.ts +80 -0
  67. package/dist/auth-hooks/index.js +28 -0
  68. package/dist/auth-hooks/index.js.map +1 -0
  69. package/dist/browser-auth/account-memberships.d.ts +213 -0
  70. package/dist/browser-auth/account-memberships.js +13 -0
  71. package/dist/browser-auth/account-memberships.js.map +1 -0
  72. package/dist/browser-auth/index.d.ts +8 -0
  73. package/dist/browser-auth/index.js +59 -0
  74. package/dist/browser-auth/index.js.map +1 -0
  75. package/dist/browser-auth/kratos-session.d.ts +37 -0
  76. package/dist/browser-auth/kratos-session.js +7 -0
  77. package/dist/browser-auth/kratos-session.js.map +1 -0
  78. package/dist/browser-auth/platform-session.d.ts +120 -0
  79. package/dist/browser-auth/platform-session.js +7 -0
  80. package/dist/browser-auth/platform-session.js.map +1 -0
  81. package/dist/browser-auth/public-memberships.d.ts +22 -0
  82. package/dist/browser-auth/public-memberships.js +7 -0
  83. package/dist/browser-auth/public-memberships.js.map +1 -0
  84. package/dist/cache/index.d.ts +181 -0
  85. package/dist/cache/index.js +197 -0
  86. package/dist/cache/index.js.map +1 -0
  87. package/dist/chunk-32746UQZ.js +131 -0
  88. package/dist/chunk-32746UQZ.js.map +1 -0
  89. package/dist/chunk-3NLSWP2Y.js +223 -0
  90. package/dist/chunk-3NLSWP2Y.js.map +1 -0
  91. package/dist/chunk-3P4XTTQH.js +346 -0
  92. package/dist/chunk-3P4XTTQH.js.map +1 -0
  93. package/dist/chunk-3VITSHN3.js +15 -0
  94. package/dist/chunk-3VITSHN3.js.map +1 -0
  95. package/dist/chunk-46UWPEW2.js +226 -0
  96. package/dist/chunk-46UWPEW2.js.map +1 -0
  97. package/dist/chunk-4VORUFKR.js +45 -0
  98. package/dist/chunk-4VORUFKR.js.map +1 -0
  99. package/dist/chunk-55D4ERWO.js +1 -0
  100. package/dist/chunk-55D4ERWO.js.map +1 -0
  101. package/dist/chunk-5TBBZIND.js +18 -0
  102. package/dist/chunk-5TBBZIND.js.map +1 -0
  103. package/dist/chunk-5WOZWPZA.js +211 -0
  104. package/dist/chunk-5WOZWPZA.js.map +1 -0
  105. package/dist/chunk-6CBVZ6CT.js +168 -0
  106. package/dist/chunk-6CBVZ6CT.js.map +1 -0
  107. package/dist/chunk-6KV5CJBW.js +221 -0
  108. package/dist/chunk-6KV5CJBW.js.map +1 -0
  109. package/dist/chunk-6XZXYNJR.js +74 -0
  110. package/dist/chunk-6XZXYNJR.js.map +1 -0
  111. package/dist/chunk-753HWDSC.js +222 -0
  112. package/dist/chunk-753HWDSC.js.map +1 -0
  113. package/dist/chunk-7AHSS7SO.js +81 -0
  114. package/dist/chunk-7AHSS7SO.js.map +1 -0
  115. package/dist/chunk-7FTJN4SA.js +1 -0
  116. package/dist/chunk-7FTJN4SA.js.map +1 -0
  117. package/dist/chunk-AVDMLTPF.js +24 -0
  118. package/dist/chunk-AVDMLTPF.js.map +1 -0
  119. package/dist/chunk-BKAHUEIT.js +95 -0
  120. package/dist/chunk-BKAHUEIT.js.map +1 -0
  121. package/dist/chunk-CJ7OFEF7.js +134 -0
  122. package/dist/chunk-CJ7OFEF7.js.map +1 -0
  123. package/dist/chunk-DHQGNP4T.js +770 -0
  124. package/dist/chunk-DHQGNP4T.js.map +1 -0
  125. package/dist/chunk-EJKWDZIU.js +111 -0
  126. package/dist/chunk-EJKWDZIU.js.map +1 -0
  127. package/dist/chunk-F3O7CELI.js +23 -0
  128. package/dist/chunk-F3O7CELI.js.map +1 -0
  129. package/dist/chunk-FD6VC2NA.js +66 -0
  130. package/dist/chunk-FD6VC2NA.js.map +1 -0
  131. package/dist/chunk-FRRRWAHO.js +14 -0
  132. package/dist/chunk-FRRRWAHO.js.map +1 -0
  133. package/dist/chunk-HCKAGLLB.js +17 -0
  134. package/dist/chunk-HCKAGLLB.js.map +1 -0
  135. package/dist/chunk-HVC7FG6B.js +191 -0
  136. package/dist/chunk-HVC7FG6B.js.map +1 -0
  137. package/dist/chunk-HXFVOR7Z.js +496 -0
  138. package/dist/chunk-HXFVOR7Z.js.map +1 -0
  139. package/dist/chunk-IJWYS2PF.js +122 -0
  140. package/dist/chunk-IJWYS2PF.js.map +1 -0
  141. package/dist/chunk-INCHXAFK.js +1395 -0
  142. package/dist/chunk-INCHXAFK.js.map +1 -0
  143. package/dist/chunk-JT6BRGQM.js +1 -0
  144. package/dist/chunk-JT6BRGQM.js.map +1 -0
  145. package/dist/chunk-L6PMAEMB.js +115 -0
  146. package/dist/chunk-L6PMAEMB.js.map +1 -0
  147. package/dist/chunk-LOUGW6MU.js +126 -0
  148. package/dist/chunk-LOUGW6MU.js.map +1 -0
  149. package/dist/chunk-LYPZPE53.js +129 -0
  150. package/dist/chunk-LYPZPE53.js.map +1 -0
  151. package/dist/chunk-NNCCN7JP.js +186 -0
  152. package/dist/chunk-NNCCN7JP.js.map +1 -0
  153. package/dist/chunk-PBC3MZUL.js +212 -0
  154. package/dist/chunk-PBC3MZUL.js.map +1 -0
  155. package/dist/chunk-R4ADP2DC.js +20 -0
  156. package/dist/chunk-R4ADP2DC.js.map +1 -0
  157. package/dist/chunk-RHN4Y6VS.js +44 -0
  158. package/dist/chunk-RHN4Y6VS.js.map +1 -0
  159. package/dist/chunk-THYUY5ZZ.js +204 -0
  160. package/dist/chunk-THYUY5ZZ.js.map +1 -0
  161. package/dist/chunk-UGNTCOVR.js +28 -0
  162. package/dist/chunk-UGNTCOVR.js.map +1 -0
  163. package/dist/chunk-VC2PCK2S.js +31 -0
  164. package/dist/chunk-VC2PCK2S.js.map +1 -0
  165. package/dist/chunk-VF5YDZJC.js +305 -0
  166. package/dist/chunk-VF5YDZJC.js.map +1 -0
  167. package/dist/chunk-VISRDVTK.js +675 -0
  168. package/dist/chunk-VISRDVTK.js.map +1 -0
  169. package/dist/chunk-W6O3LVBY.js +102 -0
  170. package/dist/chunk-W6O3LVBY.js.map +1 -0
  171. package/dist/chunk-WFEAKJLR.js +47 -0
  172. package/dist/chunk-WFEAKJLR.js.map +1 -0
  173. package/dist/chunk-XIEY2OF4.js +67 -0
  174. package/dist/chunk-XIEY2OF4.js.map +1 -0
  175. package/dist/chunk-XITLHDG3.js +37 -0
  176. package/dist/chunk-XITLHDG3.js.map +1 -0
  177. package/dist/chunk-XMWPYZWZ.js +61 -0
  178. package/dist/chunk-XMWPYZWZ.js.map +1 -0
  179. package/dist/chunk-XUP6CNOM.js +34 -0
  180. package/dist/chunk-XUP6CNOM.js.map +1 -0
  181. package/dist/chunk-YABTQZDJ.js +25 -0
  182. package/dist/chunk-YABTQZDJ.js.map +1 -0
  183. package/dist/chunk-YMJ7BRKU.js +510 -0
  184. package/dist/chunk-YMJ7BRKU.js.map +1 -0
  185. package/dist/chunk-ZC3XWU7B.js +28 -0
  186. package/dist/chunk-ZC3XWU7B.js.map +1 -0
  187. package/dist/chunk-ZHMTD5KV.js +90 -0
  188. package/dist/chunk-ZHMTD5KV.js.map +1 -0
  189. package/dist/chunk-ZWZDLOE7.js +160 -0
  190. package/dist/chunk-ZWZDLOE7.js.map +1 -0
  191. package/dist/db-package/db/local-first-sqlite-adapter.d.ts +432 -0
  192. package/dist/db-package/db/local-first-sqlite-adapter.js +7 -0
  193. package/dist/db-package/db/local-first-sqlite-adapter.js.map +1 -0
  194. package/dist/db-package/index.d.ts +7 -0
  195. package/dist/db-package/index.js +16 -0
  196. package/dist/db-package/index.js.map +1 -0
  197. package/dist/db-package/migration/aggregator.d.ts +86 -0
  198. package/dist/db-package/migration/aggregator.js +7 -0
  199. package/dist/db-package/migration/aggregator.js.map +1 -0
  200. package/dist/db-package/migration/index.d.ts +3 -0
  201. package/dist/db-package/migration/index.js +8 -0
  202. package/dist/db-package/migration/index.js.map +1 -0
  203. package/dist/engine.d.ts +205 -0
  204. package/dist/engine.js +20 -0
  205. package/dist/engine.js.map +1 -0
  206. package/dist/entitlements/index.d.ts +313 -0
  207. package/dist/entitlements/index.js +23 -0
  208. package/dist/entitlements/index.js.map +1 -0
  209. package/dist/execution/index.d.ts +50 -0
  210. package/dist/execution/index.js +57 -0
  211. package/dist/execution/index.js.map +1 -0
  212. package/dist/extensions/index.d.ts +172 -0
  213. package/dist/extensions/index.js +95 -0
  214. package/dist/extensions/index.js.map +1 -0
  215. package/dist/health/index.d.ts +35 -0
  216. package/dist/health/index.js +7 -0
  217. package/dist/health/index.js.map +1 -0
  218. package/dist/index.d.ts +39 -0
  219. package/dist/index.js +160 -0
  220. package/dist/index.js.map +1 -0
  221. package/dist/lifecycle/index.d.ts +133 -0
  222. package/dist/lifecycle/index.js +13 -0
  223. package/dist/lifecycle/index.js.map +1 -0
  224. package/dist/lifecycle-engine/backend-migration.d.ts +2 -0
  225. package/dist/lifecycle-engine/backend-migration.js +11 -0
  226. package/dist/lifecycle-engine/backend-migration.js.map +1 -0
  227. package/dist/lifecycle-engine/baseline.d.ts +2 -0
  228. package/dist/lifecycle-engine/baseline.js +9 -0
  229. package/dist/lifecycle-engine/baseline.js.map +1 -0
  230. package/dist/lifecycle-engine/index.d.ts +1497 -0
  231. package/dist/lifecycle-engine/index.js +41 -0
  232. package/dist/lifecycle-engine/index.js.map +1 -0
  233. package/dist/lifecycle-engine/platform/artifacts.d.ts +4 -0
  234. package/dist/lifecycle-engine/platform/artifacts.js +7 -0
  235. package/dist/lifecycle-engine/platform/artifacts.js.map +1 -0
  236. package/dist/lifecycle-engine/platform/control-plane.d.ts +12 -0
  237. package/dist/lifecycle-engine/platform/control-plane.js +2 -0
  238. package/dist/lifecycle-engine/platform/control-plane.js.map +1 -0
  239. package/dist/lifecycle-engine/platform/database-router.d.ts +118 -0
  240. package/dist/lifecycle-engine/platform/database-router.js +7 -0
  241. package/dist/lifecycle-engine/platform/database-router.js.map +1 -0
  242. package/dist/lifecycle-engine/platform/deployment-placements.d.ts +464 -0
  243. package/dist/lifecycle-engine/platform/deployment-placements.js +16 -0
  244. package/dist/lifecycle-engine/platform/deployment-placements.js.map +1 -0
  245. package/dist/lifecycle-engine/platform/deployment.d.ts +4 -0
  246. package/dist/lifecycle-engine/platform/deployment.js +17 -0
  247. package/dist/lifecycle-engine/platform/deployment.js.map +1 -0
  248. package/dist/lifecycle-engine/platform/index.d.ts +737 -0
  249. package/dist/lifecycle-engine/platform/index.js +60 -0
  250. package/dist/lifecycle-engine/platform/index.js.map +1 -0
  251. package/dist/lifecycle-engine/platform/runtime.d.ts +80 -0
  252. package/dist/lifecycle-engine/platform/runtime.js +11 -0
  253. package/dist/lifecycle-engine/platform/runtime.js.map +1 -0
  254. package/dist/lifecycle-engine/platform/site-publication.d.ts +102 -0
  255. package/dist/lifecycle-engine/platform/site-publication.js +7 -0
  256. package/dist/lifecycle-engine/platform/site-publication.js.map +1 -0
  257. package/dist/lifecycle-engine/platform/user-directory.d.ts +139 -0
  258. package/dist/lifecycle-engine/platform/user-directory.js +13 -0
  259. package/dist/lifecycle-engine/platform/user-directory.js.map +1 -0
  260. package/dist/mcp.d.ts +92 -0
  261. package/dist/mcp.js +10 -0
  262. package/dist/mcp.js.map +1 -0
  263. package/dist/middleware/auth.d.ts +118 -0
  264. package/dist/middleware/auth.js +7 -0
  265. package/dist/middleware/auth.js.map +1 -0
  266. package/dist/middleware/error-handler.d.ts +35 -0
  267. package/dist/middleware/error-handler.js +7 -0
  268. package/dist/middleware/error-handler.js.map +1 -0
  269. package/dist/middleware/module-guard.d.ts +33 -0
  270. package/dist/middleware/module-guard.js +7 -0
  271. package/dist/middleware/module-guard.js.map +1 -0
  272. package/dist/platform-admin/index.d.ts +37 -0
  273. package/dist/platform-admin/index.js +11 -0
  274. package/dist/platform-admin/index.js.map +1 -0
  275. package/dist/platform-admin/store.d.ts +346 -0
  276. package/dist/platform-admin/store.js +7 -0
  277. package/dist/platform-admin/store.js.map +1 -0
  278. package/dist/plugin-data/annotations.d.ts +6 -0
  279. package/dist/plugin-data/annotations.js +12 -0
  280. package/dist/plugin-data/annotations.js.map +1 -0
  281. package/dist/plugin-data/atomic-context.d.ts +41 -0
  282. package/dist/plugin-data/atomic-context.js +9 -0
  283. package/dist/plugin-data/atomic-context.js.map +1 -0
  284. package/dist/plugin-data/atomic.d.ts +6 -0
  285. package/dist/plugin-data/atomic.js +26 -0
  286. package/dist/plugin-data/atomic.js.map +1 -0
  287. package/dist/plugin-data/audit.d.ts +6 -0
  288. package/dist/plugin-data/audit.js +12 -0
  289. package/dist/plugin-data/audit.js.map +1 -0
  290. package/dist/plugin-data/commands.d.ts +6 -0
  291. package/dist/plugin-data/commands.js +8 -0
  292. package/dist/plugin-data/commands.js.map +1 -0
  293. package/dist/plugin-data/composite.d.ts +6 -0
  294. package/dist/plugin-data/composite.js +8 -0
  295. package/dist/plugin-data/composite.js.map +1 -0
  296. package/dist/plugin-data/delivery.d.ts +6 -0
  297. package/dist/plugin-data/delivery.js +16 -0
  298. package/dist/plugin-data/delivery.js.map +1 -0
  299. package/dist/plugin-data/index.d.ts +2798 -0
  300. package/dist/plugin-data/index.js +102 -0
  301. package/dist/plugin-data/index.js.map +1 -0
  302. package/dist/plugin-data/json-documents.d.ts +6 -0
  303. package/dist/plugin-data/json-documents.js +16 -0
  304. package/dist/plugin-data/json-documents.js.map +1 -0
  305. package/dist/plugin-data/outbox.d.ts +6 -0
  306. package/dist/plugin-data/outbox.js +16 -0
  307. package/dist/plugin-data/outbox.js.map +1 -0
  308. package/dist/plugin-data/scoped-records.d.ts +6 -0
  309. package/dist/plugin-data/scoped-records.js +10 -0
  310. package/dist/plugin-data/scoped-records.js.map +1 -0
  311. package/dist/plugin-sdk.d.ts +41 -0
  312. package/dist/plugin-sdk.js +10 -0
  313. package/dist/plugin-sdk.js.map +1 -0
  314. package/dist/sql-lifecycle/index.d.ts +138 -0
  315. package/dist/sql-lifecycle/index.js +167 -0
  316. package/dist/sql-lifecycle/index.js.map +1 -0
  317. package/dist/storage/index.d.ts +2 -0
  318. package/dist/storage/index.js +13 -0
  319. package/dist/storage/index.js.map +1 -0
  320. package/dist/storage/s3-compatible.d.ts +139 -0
  321. package/dist/storage/s3-compatible.js +11 -0
  322. package/dist/storage/s3-compatible.js.map +1 -0
  323. package/dist/tenant.d.ts +108 -0
  324. package/dist/tenant.js +9 -0
  325. package/dist/tenant.js.map +1 -0
  326. package/dist/workspace-context.d.ts +119 -0
  327. package/dist/workspace-context.js +9 -0
  328. package/dist/workspace-context.js.map +1 -0
  329. package/docs/api.md +29753 -0
  330. package/docs/db/README.md +49 -0
  331. package/docs/db/docs/api.md +1613 -0
  332. package/docs/db/docs/guide.md +47 -0
  333. package/docs/entitlements.md +60 -0
  334. package/docs/guide.md +48 -0
  335. package/docs/index.md +53 -0
  336. package/docs/ja/db/README.md +46 -0
  337. package/docs/ja/db/docs/guide.md +53 -0
  338. package/docs/ja/guide.md +46 -0
  339. package/docs/ja/lifecycle/README.md +46 -0
  340. package/docs/ja/lifecycle/docs/guide.md +45 -0
  341. package/docs/ja/storage/README.md +46 -0
  342. package/docs/ja/storage/docs/guide.md +43 -0
  343. package/docs/lifecycle/README.md +49 -0
  344. package/docs/lifecycle/docs/api.md +3770 -0
  345. package/docs/lifecycle/docs/baseline.md +50 -0
  346. package/docs/lifecycle/docs/guide.md +47 -0
  347. package/docs/storage/README.md +49 -0
  348. package/docs/storage/docs/api.md +470 -0
  349. package/docs/storage/docs/guide.md +47 -0
  350. package/package.json +345 -4
@@ -0,0 +1,524 @@
1
+ import { BaseCheckpointSaver, RetryPolicy } from '@langchain/langgraph';
2
+ import { ApprovalLevel, ApprovalBinding, WorkflowGraphNodeInput, WorkflowGraphEdgeInput, WorkflowGraphDescription, WorkflowGraphRuntimeSnapshot, WorkflowGraphVisualization } from '@alneas/eaos-core';
3
+
4
+ /**
5
+ * Serializable workflow identity, history, context, and approval state persisted by the graph checkpointer.
6
+ * @see AgentGraphEngine.runStep for a complete usage example.
7
+ */
8
+ interface AgentGraphState {
9
+ /** Host-authorized checkpoint thread ID. */
10
+ sessionId: string;
11
+ /** Verified tenant that owns this workflow. */
12
+ tenantId: string;
13
+ /** Verified requesting user, bound into generated approvals. */
14
+ userId: string;
15
+ /** Current node identifier used for display and approval continuation. */
16
+ currentStep: string;
17
+ /** Ordered conversation/history entries; returned history replaces rather than appends automatically. */
18
+ history: Array<{
19
+ /** Speaker/category label supplied by the host or runtime. */
20
+ role: string;
21
+ /** Human-readable history text. */
22
+ content: string;
23
+ /** ISO timestamp for runtime-generated entries; host entries are not validated here. */
24
+ timestamp: string;
25
+ }>;
26
+ /** Optional domain state merged by key; reserved __eaos keys belong to runtime internals. */
27
+ context?: Record<string, unknown>;
28
+ /** Optional supporting source metadata carried through state. */
29
+ citations?: Array<{
30
+ /** Display title supplied by the citing node. */
31
+ title: string;
32
+ /** Source identifier or URL supplied by the node. */
33
+ source: string;
34
+ /** Host/model relevance score; this engine imposes no numeric range. */
35
+ score: number;
36
+ }>;
37
+ /** Optional pending human decision, bound to tenant/user/operation before checkpointing. */
38
+ pendingApproval?: {
39
+ /** Optional ticket ID; generated when absent during binding. */
40
+ approvalId?: string;
41
+ /** Operation name bound to the approval and requested permission by default. */
42
+ toolName: string;
43
+ /** Required human-approval level for the operation. */
44
+ approvalLevel: ApprovalLevel;
45
+ /** Risk label; generated binding normalizes unknown labels to high. */
46
+ riskLevel: string;
47
+ /** Human-readable approval justification, visible in runtime overlays. */
48
+ reason: string;
49
+ /** Operation input used to construct the approval binding. */
50
+ args: Record<string, unknown>;
51
+ /** Optional prebuilt binding validated against workflow tenant/user/operation. */
52
+ binding?: ApprovalBinding;
53
+ /** Optional resource identity and revision included in generated binding. */
54
+ target?: {
55
+ /** Resource category included in the approval binding. */
56
+ type: string;
57
+ /** Resource identifier included in the approval binding. */
58
+ id: string;
59
+ /** Optional expected resource revision for host approval/admission. */
60
+ revision?: number;
61
+ };
62
+ /** Optional generated binding contract version; defaults to 1.0.0. */
63
+ contractVersion?: string;
64
+ /** Optional generated binding permission; defaults to toolName. */
65
+ permission?: string;
66
+ };
67
+ /** Optional host checkpoint revision metadata; this engine does not increment it itself. */
68
+ checkpointRevision?: number;
69
+ /** Optional last decision plus approval ID, binding hash, and ISO decision timestamp. */
70
+ lastApproval?: GraphApprovalDecision & {
71
+ /**
72
+ * Identity of the pending review ticket consumed by this completed approval decision.
73
+ */
74
+ approvalId: string;
75
+ /**
76
+ * Exact approved request/contract binding hash copied from the consumed pending approval.
77
+ */
78
+ bindingHash: string;
79
+ /**
80
+ * ISO timestamp generated when the graph processes the resumed review decision.
81
+ */
82
+ decidedAt: string;
83
+ };
84
+ /** True when execution has completed or a decision rejected the workflow. */
85
+ isComplete: boolean;
86
+ /** Optional domain/runtime failure description included in runtime display overlays. */
87
+ error?: string;
88
+ }
89
+ /**
90
+ * Async node operation receiving an isolated graph-state clone and returning partial state updates.
91
+ * @param state - Current graph state; mutating it alone does not persist changes unless returned.
92
+ * @returns Partial update; context is merged, while supplied history replaces the existing history.
93
+ * @throws Handler failures propagate through LangGraph retry policy and graph execution.
94
+ * @see AgentGraphEngine.addNode for a complete example.
95
+ */
96
+ type GraphNodeHandler = (state: AgentGraphState) => Promise<Partial<AgentGraphState>>;
97
+ /**
98
+ * Synchronous conditional route selector over a cloned graph state.
99
+ * @param state - Current state after the source node has run.
100
+ * @returns One exact declared destination name; undeclared destinations fail execution.
101
+ * @see AgentGraphEngine.addConditionalEdges for a complete example.
102
+ */
103
+ type GraphRouter = (state: AgentGraphState) => string;
104
+ /** Minimal boundary for a compiled LangGraph subgraph. The plugin owns its state schema.
105
+ * @see AgentGraphEngine.addSubgraph for setup and usage.
106
+ */
107
+ interface GraphSubgraph {
108
+ /**
109
+ * Invokes the compiled child graph.
110
+ * @param input - Host-mapped child input.
111
+ * @param config - Parent-supplied checkpoint thread/namespace configuration.
112
+ * @returns Child output, interpreted by the parent mapOutput callback.
113
+ * @throws Child execution/checkpoint failures propagate or can be mapped for recognized interrupts.
114
+
115
+ * @example
116
+ * ```typescript
117
+ * import type { GraphSubgraph } from "@alneas/eaos-server";
118
+ * export async function invokeHostSubgraph(
119
+ * subgraph: GraphSubgraph,
120
+ * input: Parameters<GraphSubgraph["invoke"]>[0],
121
+ * config: Parameters<GraphSubgraph["invoke"]>[1],
122
+ * ) {
123
+ * // Supply the host's admitted input and checkpoint/thread configuration.
124
+ * return await subgraph.invoke(input, config);
125
+ * }
126
+ * ```
127
+ */
128
+ invoke(input: unknown, config?: unknown): Promise<unknown>;
129
+ /**
130
+ * Inspects child state when a recognized interrupt needs mapping.
131
+ * @param config - Child checkpoint thread/namespace configuration.
132
+ * @returns Host-specific child checkpoint state.
133
+ * @throws Inspection failures propagate to parent execution.
134
+
135
+ * @example
136
+ * ```typescript
137
+ * import type { GraphSubgraph } from "@alneas/eaos-server";
138
+ * export async function inspectHostSubgraph(
139
+ * subgraph: GraphSubgraph, config: Parameters<NonNullable<GraphSubgraph["getState"]>>[0],
140
+ * ) {
141
+ * if (!subgraph.getState) throw new Error("Subgraph state inspection is unavailable");
142
+ * return await subgraph.getState(config);
143
+ * }
144
+ * ```
145
+ */
146
+ getState?(config?: unknown): Promise<unknown>;
147
+ /**
148
+ * Continues a child after a verified parent approval.
149
+ * @param input - Host-mapped child input.
150
+ * @param decision - Parent-approved human decision.
151
+ * @param config - Child checkpoint thread/namespace configuration.
152
+ * @returns Resumed child output.
153
+ * @throws Child execution/checkpoint failures propagate.
154
+
155
+ * @example
156
+ * ```typescript
157
+ * import type { GraphSubgraph } from "@alneas/eaos-server";
158
+ * export async function resumeHostSubgraph(
159
+ * subgraph: GraphSubgraph,
160
+ * input: Parameters<NonNullable<GraphSubgraph["resume"]>>[0],
161
+ * verifiedDecision: Parameters<NonNullable<GraphSubgraph["resume"]>>[1],
162
+ * config: Parameters<NonNullable<GraphSubgraph["resume"]>>[2],
163
+ * ) {
164
+ * if (!subgraph.resume) throw new Error("Subgraph resumption is unavailable");
165
+ * // The host authenticates/authorizes this decision before entering the subgraph.
166
+ * return await subgraph.resume(input, verifiedDecision, config);
167
+ * }
168
+ * ```
169
+ */
170
+ resume?(input: unknown, decision: GraphApprovalDecision, config?: unknown): Promise<unknown>;
171
+ }
172
+ /**
173
+ * Host-verified human decision supplied to a pending graph approval.
174
+ * @see AgentGraphEngine.resumeAfterApproval.
175
+ */
176
+ interface GraphApprovalDecision {
177
+ /** True to continue; false to finish with a rejection error. */
178
+ approved: boolean;
179
+ /** Authenticated human approver identifier. */
180
+ approverId: string;
181
+ /** Verified role associated with the decision. */
182
+ approverRole: string;
183
+ /** Optional human note; rejection uses a default description when blank. */
184
+ comment?: string;
185
+ }
186
+ /**
187
+ * Explicit state mapping, child-thread identity, and interrupt translation for {@link AgentGraphEngine.addSubgraph}.
188
+ */
189
+ interface GraphSubgraphOptions {
190
+ /** Optional synchronous parent-state to child-input mapping; defaults to passing parent state. */
191
+ mapInput?: (state: AgentGraphState) => unknown;
192
+ /** Optional synchronous child-output/parent-state to update mapping; absent treats output as a partial parent state. */
193
+ mapOutput?: (output: unknown, state: AgentGraphState) => Partial<AgentGraphState>;
194
+ /** Optional synchronous child thread ID builder; defaults to sessionId:name and must be nonblank. */
195
+ threadId?: (state: AgentGraphState) => string;
196
+ /** Called for a recognized nested LangGraph interrupt with error, parent state, and optional child checkpoint; resolves a parent update, normally pendingApproval. Errors propagate. */
197
+ mapInterrupted?: (error: unknown, state: AgentGraphState, subgraphState: unknown) => Partial<AgentGraphState> | Promise<Partial<AgentGraphState>>;
198
+ /** Serializable metadata used by workflow viewers; never executed. */
199
+ visual?: WorkflowGraphNodeInput;
200
+ }
201
+ /**
202
+ * Checkpoint persistence, live approval authority, and workflow metadata for {@link AgentGraphEngine}.
203
+ */
204
+ interface AgentGraphEngineOptions {
205
+ /** Host-owned live membership/lifecycle/resource re-check at resume time. */
206
+ authorizeResume?: (state: AgentGraphState, input: {
207
+ /**
208
+ * Nonblank authenticated approver identifier supplied by the host.
209
+ */
210
+ approverId: string;
211
+ /**
212
+ * Nonblank verified role associated with this human decision.
213
+ */
214
+ approverRole: string;
215
+ /**
216
+ * True requests continuation and requires a current authorizer; false rejects the workflow but is also checked when an authorizer exists.
217
+ */
218
+ approved: boolean;
219
+ }) => Promise<boolean>;
220
+ /** Official LangGraph checkpointer. MemorySaver is local/test-only when omitted. */
221
+ checkpointer?: BaseCheckpointSaver;
222
+ /** Stable identity shown by workflow viewers and exported graph documents. */
223
+ workflowId?: string;
224
+ /** Optional workflow version included in graph descriptions. */
225
+ workflowVersion?: string;
226
+ }
227
+ /**
228
+ * Execution retry and display settings for {@link AgentGraphEngine.addNode}.
229
+ */
230
+ interface GraphNodeOptions {
231
+ /** Optional LangGraph retry settings; retries can repeat handler side effects and must be safe by host design. */
232
+ retryPolicy?: RetryPolicy;
233
+ /** Serializable metadata used by workflow viewers; never executed. */
234
+ visual?: WorkflowGraphNodeInput;
235
+ }
236
+ /**
237
+ * Serializable display metadata for {@link AgentGraphEngine.addEdge}.
238
+ */
239
+ interface GraphEdgeOptions {
240
+ /** Serializable metadata used by workflow viewers; never executed. */
241
+ visual?: WorkflowGraphEdgeInput;
242
+ }
243
+ /**
244
+ * Display metadata for declared branches in {@link AgentGraphEngine.addConditionalEdges}.
245
+ */
246
+ interface GraphConditionalEdgeOptions extends GraphEdgeOptions {
247
+ /** Per-destination labels such as `approved` or `needs_correction`. */
248
+ labels?: Readonly<Record<string, string>>;
249
+ }
250
+ /**
251
+ * EAOS workflow runtime backed by the official LangGraph StateGraph.
252
+ * EAOS remains responsible for authorization, approval bindings and side effects.
253
+ * @remarks The default MemorySaver is process-local/test storage. Production hosts must supply durable, tenant-scoped checkpoint persistence, verified initial identity, live resume authorization, and writer serialization. This class does not serialize concurrent calls for the same session or implement transactional side effects. Mutating topology invalidates the compiled graph; configure it before starting workflow sessions.
254
+ * @example
255
+ * ```typescript
256
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
257
+ * const graph = new AgentGraphEngine();
258
+ * graph.addNode("start", async () => ({ isComplete: true }));
259
+ * console.log(graph.describe().entryNode); // "start"
260
+ * ```
261
+ */
262
+ declare class AgentGraphEngine {
263
+ private readonly nodes;
264
+ private readonly edges;
265
+ private readonly edgeVisuals;
266
+ private readonly nodeOptions;
267
+ private readonly conditionalRoutes;
268
+ private readonly checkpointer;
269
+ private readonly authorizeResume?;
270
+ private readonly workflowId?;
271
+ private readonly workflowVersion?;
272
+ private entryNode;
273
+ private compiled?;
274
+ private graphVersion;
275
+ private compiledVersion;
276
+ /**
277
+ * Creates a graph builder with a host saver or options; compilation is deferred until execution/checkpoint reads.
278
+ * @param checkpointerOrOptions - LangGraph saver or options; omission uses an independent MemorySaver.
279
+ * @param options - Additional options used only when the first argument is a saver; otherwise ignored.
280
+ */
281
+ constructor(checkpointerOrOptions?: BaseCheckpointSaver | AgentGraphEngineOptions, options?: AgentGraphEngineOptions);
282
+ /**
283
+ * Registers or replaces a named handler and invalidates compiled topology.
284
+ * @param name - Nonblank node name; __eaos_approval__ is reserved. Names are retained without trimming.
285
+ * @param handler - Async callback receiving a cloned state and resolving partial state updates.
286
+ * @param options - Optional LangGraph retry policy and serializable display metadata.
287
+ * @returns This builder for chaining.
288
+ * @throws For blank/reserved names; handler failures occur later during execution.
289
+ * @example
290
+ * ```typescript
291
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
292
+ * const graph = new AgentGraphEngine();
293
+ * graph.addNode("start", async () => ({ isComplete: true }));
294
+ * graph.addNode("finish", async () => ({ isComplete: true }));
295
+ * ```
296
+ */
297
+ addNode(name: string, handler: GraphNodeHandler, options?: GraphNodeOptions): this;
298
+ /**
299
+ * Mount a plugin-owned compiled LangGraph as one parent-graph node.
300
+ * Input/output mapping is explicit so plugin state does not silently leak into
301
+ * the EAOS state, while the nested graph still gets its own checkpoint thread.
302
+ * @param name - Parent node identifier, subject to addNode validation.
303
+ * @param subgraph - Compiled graph with invoke and optional state/resume capabilities.
304
+ * @param options - Input/output mapping and child-thread identity; defaults pass state/output through and use sessionId:name as thread ID.
305
+ * @returns This graph builder.
306
+ * @throws If subgraph lacks invoke or the name is invalid. Execution propagates mapping/subgraph errors except recognized interrupts handled by mapInterrupted.
307
+ * @remarks Child config uses checkpoint_ns=name. A mapped interrupt stores resume metadata in context; host mappings must preserve tenant boundaries and avoid leaking child state.
308
+ * @example
309
+ * ```typescript
310
+ * import { AgentGraphEngine, type GraphSubgraph } from "@alneas/eaos-server/agentic/graph";
311
+ * export function nested(subgraph: GraphSubgraph) {
312
+ * return new AgentGraphEngine().addSubgraph("start", subgraph, { mapOutput: output => ({ context: { child: output } }) });
313
+ * }
314
+ * ```
315
+ */
316
+ addSubgraph(name: string, subgraph: GraphSubgraph, options?: GraphSubgraphOptions): this;
317
+ /**
318
+ * Adds a declared edge and its display metadata.
319
+ * @param from - Nonblank source node name.
320
+ * @param to - Nonblank destination node name.
321
+ * @param options - Optional serializable display metadata, cloned on insertion.
322
+ * @returns This graph builder.
323
+ * @throws For blank endpoints or uncloneable display metadata. Missing node references can fail compilation later.
324
+ * @remarks Without conditional routing, execution follows only the first declared outgoing edge; describe may list additional declared edges.
325
+ * @example
326
+ * ```typescript
327
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
328
+ * const graph = new AgentGraphEngine();
329
+ * graph.addNode("start", async () => ({ isComplete: true }));
330
+ * graph.addNode("finish", async () => ({}));
331
+ * graph.addEdge("start", "finish");
332
+ * ```
333
+ */
334
+ addEdge(from: string, to: string, options?: GraphEdgeOptions): this;
335
+ /**
336
+ * Sets a source node's conditional router and complete allowed destination set.
337
+ * @param from - Nonblank source node name.
338
+ * @param router - Called synchronously after the node with a state clone; must return one declared destination.
339
+ * @param destinations - Nonempty list of nonblank destination names; duplicates are collapsed.
340
+ * @param options - Cloned optional edge metadata and destination labels.
341
+ * @returns This graph builder.
342
+ * @throws For invalid source/destinations or uncloneable options; runtime routing rejects undeclared destinations and callback errors.
343
+ * @remarks A pending approval overrides conditional routing and enters the approval node. This replaces an existing conditional route for from.
344
+ * @example
345
+ * ```typescript
346
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
347
+ * const graph = new AgentGraphEngine();
348
+ * graph.addNode("start", async () => ({ isComplete: true }));
349
+ * graph.addNode("finish", async () => ({}));
350
+ * graph.addConditionalEdges("start", () => "finish", ["finish"]);
351
+ * ```
352
+ */
353
+ addConditionalEdges(from: string, router: GraphRouter, destinations: string[], options?: GraphConditionalEdgeOptions): this;
354
+ /**
355
+ * Selects the registered node where future graph execution starts.
356
+ * @param nodeName - Nonblank node name; existence is checked on deferred compilation.
357
+ * @returns This builder after invalidating compiled topology.
358
+ * @throws For a blank name; missing entry registration fails later on compilation.
359
+ * @example
360
+ * ```typescript
361
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
362
+ * const graph = new AgentGraphEngine();
363
+ * graph.addNode("start", async () => ({ isComplete: true }));
364
+ * graph.setEntryPoint("start");
365
+ * ```
366
+ */
367
+ setEntryPoint(nodeName: string): this;
368
+ /**
369
+ * Reads the first statically declared outgoing edge without evaluating conditional routing.
370
+ * @param fromNode - Exact source node identifier.
371
+ * @returns First declared destination, or undefined when no static edge exists.
372
+ * @example
373
+ * ```typescript
374
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
375
+ * const graph = new AgentGraphEngine();
376
+ * graph.addNode("start", async () => ({ isComplete: true }));
377
+ * console.log(graph.getNextNode("start")); // undefined
378
+ * ```
379
+ */
380
+ getNextNode(fromNode: string): string | undefined;
381
+ /**
382
+ * Return a serializable graph description for UI/API/diagram consumers.
383
+ * Handlers and router functions are intentionally omitted: this is metadata,
384
+ * not a remotely executable workflow definition.
385
+ * @returns A structured clone of versioned node/edge display metadata in insertion order; may describe an incomplete graph before compilation.
386
+ * @throws If retained metadata has become uncloneable.
387
+ * @example
388
+ * ```typescript
389
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
390
+ * const graph = new AgentGraphEngine();
391
+ * graph.addNode("start", async () => ({ isComplete: true }));
392
+ * console.log(graph.describe().nodes.length); // 1
393
+ * ```
394
+ */
395
+ describe(): WorkflowGraphDescription;
396
+ /**
397
+ * Extracts runtime status and approval display metadata without history, context, or approval args.
398
+ * @param state - Authorized checkpoint state to summarize.
399
+ * @returns Status prioritized as waiting_approval, failed, completed, running, then idle, plus current node/revision and optional error/approval display details.
400
+ * @remarks Reasons and errors remain visible; the host must control their content and authorize access to this overlay.
401
+ * @example
402
+ * ```typescript
403
+ * import { AgentGraphEngine, type AgentGraphState } from "@alneas/eaos-server/agentic/graph";
404
+ * export function overlay(state: AgentGraphState) {
405
+ * return new AgentGraphEngine().describeRuntime(state);
406
+ * }
407
+ * ```
408
+ */
409
+ describeRuntime(state: AgentGraphState): WorkflowGraphRuntimeSnapshot;
410
+ /**
411
+ * Reads a session checkpoint and combines its display overlay with the current static graph.
412
+ * @param sessionId - Authorized host session/thread identifier.
413
+ * @returns Graph description and runtime overlay when a checkpoint exists, or only graph metadata otherwise.
414
+ * @throws Rejects compilation, saver, or description failures.
415
+ * @remarks This method does not authenticate the caller or authorize session access.
416
+ * @example
417
+ * ```typescript
418
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
419
+ * const graph = new AgentGraphEngine();
420
+ * graph.addNode("start", async () => ({ isComplete: true }));
421
+ * const visualization = await graph.getVisualization("example-session");
422
+ * console.log(visualization.graph.nodes.length);
423
+ * ```
424
+ */
425
+ getVisualization(sessionId: string): Promise<WorkflowGraphVisualization>;
426
+ /**
427
+ * Reads the current saved state for one graph session.
428
+ * @param sessionId - Authorized LangGraph thread ID.
429
+ * @returns A structured clone of persisted state, or null when no session state exists.
430
+ * @throws Rejects deferred compilation, saver, or clone failures.
431
+ * @remarks The host authorizes tenant/session access; sessionId alone is not an authentication claim.
432
+ * @example
433
+ * ```typescript
434
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
435
+ * const graph = new AgentGraphEngine();
436
+ * graph.addNode("start", async () => ({ isComplete: true }));
437
+ * console.log(await graph.getCheckpoint("example-session")); // null
438
+ * ```
439
+ */
440
+ getCheckpoint(sessionId: string): Promise<AgentGraphState | null>;
441
+ /**
442
+ * Runs the graph until completion or a LangGraph approval interrupt.
443
+ * @param initialState - Verified host session/tenant/user state; a nonblank sessionId is required. Existing pendingApproval returns an immediate clone without invoking the graph.
444
+ * @returns Latest checkpoint state after execution, interrupted approval state, or the supplied initial state when no checkpoint is available.
445
+ * @throws Rejects invalid sessionId, compilation, handler/retry, saver, binding, or clone errors except recognized approval interrupts.
446
+ * @remarks This method runs multiple nodes, despite its name. The host must serialize writers and make retried handlers safe for side effects. It installs no timeout or cancellation itself.
447
+ * @example
448
+ * ```typescript
449
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
450
+ * const graph = new AgentGraphEngine();
451
+ * graph.addNode("start", async () => ({ isComplete: true }));
452
+ * const state = await graph.runStep({ sessionId: "example-session", tenantId: "example", userId: "example-user", currentStep: "start", history: [], isComplete: false });
453
+ * console.log(state.isComplete); // true
454
+ * ```
455
+ */
456
+ runStep(initialState: AgentGraphState): Promise<AgentGraphState>;
457
+ /**
458
+ * Validates a pending approval binding and host authority before resuming its LangGraph thread.
459
+ * @param input - Session ID, verified approver ID/role, boolean decision, optional comment, optional expected approvalId/bindingHash, and optional live authorizer overriding constructor settings.
460
+ * @returns Resumed state on success, or resumed:false with an error for absent/mismatched approval, denied authorization, or normalized invocation failure. A denial decision completes the graph as rejected.
461
+ * @throws Can reject saver/compilation errors, live authorizer rejection, or post-resume checkpoint failures.
462
+ * @remarks An approved decision requires a live authorizer returning exactly true; a supplied authorizer also checks rejection decisions. Host writer serialization is required: this method does not acquire an independent lock or compare-and-swap checkpoint revisions. Missing optional expected IDs skip those comparisons. Resume failures can follow side effects; no rollback or automatic retry occurs.
463
+ * @example
464
+ * ```typescript
465
+ * import { AgentGraphEngine } from "@alneas/eaos-server/agentic/graph";
466
+ * export async function decide(graph: AgentGraphEngine, input: Parameters<AgentGraphEngine["resumeAfterApproval"]>[0]) {
467
+ * // Authenticate the approver and supply live authorization before approving.
468
+ * return graph.resumeAfterApproval(input);
469
+ * }
470
+ * ```
471
+ */
472
+ resumeAfterApproval(input: {
473
+ /**
474
+ * LangGraph thread/session identity whose saved pending approval is loaded and resumed.
475
+ */
476
+ sessionId: string;
477
+ /**
478
+ * Optional expected ticket identity; when truthy it must equal the saved pending ticket, while omission skips this comparison.
479
+ */
480
+ approvalId?: string;
481
+ /**
482
+ * Optional expected request/contract binding hash; when truthy it must match the saved binding, while omission skips this comparison.
483
+ */
484
+ bindingHash?: string;
485
+ /**
486
+ * Verified review decision; true requires live authorization returning exactly true, while false resumes the graph as rejected.
487
+ */
488
+ approved: boolean;
489
+ /**
490
+ * Nonblank host-verified reviewer identity supplied to the live authorizer and recorded in lastApproval.
491
+ */
492
+ approverId: string;
493
+ /**
494
+ * Nonblank host-verified reviewer role supplied to the live authorizer and recorded in lastApproval.
495
+ */
496
+ approverRole: string;
497
+ /**
498
+ * Optional reviewer comment retained in the graph decision; the host owns content/privacy policy.
499
+ */
500
+ comment?: string;
501
+ /**
502
+ * Optional live reviewer-authority callback overriding the constructor authorizer for this resume attempt.
503
+ * @remarks Uses AgentGraphEngineOptions.authorizeResume: receives a cloned checkpoint and reviewer/decision metadata, resolves exactly true to permit resumption, and may reject. Required from either source for approved=true; when supplied it also checks rejected decisions. Omission uses the constructor callback.
504
+ * @see {@link AgentGraphEngineOptions.authorizeResume}
505
+ */
506
+ authorizeResume?: AgentGraphEngineOptions['authorizeResume'];
507
+ }): Promise<{
508
+ /** True when verification/resumption reaches a readable checkpoint, including a resumed rejection decision; false on normalized failures and not proof that no side effect occurred. */
509
+ resumed: boolean;
510
+ /** Graph state loaded after resumption when available; may represent completion, rejection or another pending interrupt rather than final workflow success. */
511
+ state?: AgentGraphState;
512
+ /** Optional explanation for a missing/mismatched approval, denied authority, invocation failure or disappeared checkpoint; some saver/authorizer errors reject instead. */
513
+ error?: string;
514
+ }>;
515
+ private invalidate;
516
+ private config;
517
+ private ensureCompiled;
518
+ private runNode;
519
+ private runApprovalNode;
520
+ private bindApproval;
521
+ }
522
+
523
+ export { AgentGraphEngine };
524
+ export type { AgentGraphEngineOptions, AgentGraphState, GraphApprovalDecision, GraphConditionalEdgeOptions, GraphEdgeOptions, GraphNodeHandler, GraphNodeOptions, GraphRouter, GraphSubgraph, GraphSubgraphOptions };
@@ -0,0 +1,7 @@
1
+ import {
2
+ AgentGraphEngine
3
+ } from "../chunk-HXFVOR7Z.js";
4
+ export {
5
+ AgentGraphEngine
6
+ };
7
+ //# sourceMappingURL=graph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,24 @@
1
+ export { ServerAgentDispatchMode, ServerAgentExecutionContext, ServerAgentExecutionError, ServerAgentExecutor, ServerAgentTaskRequest, ServerAgentTaskResult, ServerAgentWorkerType, ServerApprovalCallbackPayload } from './types.js';
2
+ export { ServerAutonomousWorker, ServerRuntimeRole, ServerWorkerOptions } from './autonomous-worker.js';
3
+ export { CommandAgentExecutorOptions, CommandAgentSandboxMode, CommandAgentSandboxOptions, buildSystemdRunArgs, createCommandAgentExecutor, validateAgentRuntimePolicy } from './executor.js';
4
+ export { ServerWorkflowAgentRunnerOptions, createWorkflowAgentRunner } from './agent-runner.js';
5
+ export { WorkflowAgentNodeOptions, createWorkflowAgentNode } from './agent-node.js';
6
+ export { ServerWorkflowManager, ServerWorkflowOptions } from './workflow-manager.js';
7
+ export { AgentGraphEngine, AgentGraphEngineOptions, AgentGraphState, GraphApprovalDecision, GraphConditionalEdgeOptions, GraphEdgeOptions, GraphNodeHandler, GraphNodeOptions, GraphRouter, GraphSubgraph, GraphSubgraphOptions } from './graph.js';
8
+ export { AgentJobClaimFilter, AgentJobDispatchResult, AgentJobDispatcherOptions, AgentJobStore, AtomicAgentJobStoreOptions, DurableAgentJobDispatcher, cancelAgentJob, createAgentJob, createAtomicAgentJobStore, enqueueAgentJob } from './agent-jobs.js';
9
+ export { LocalRunnerIdentity, LocalRunnerJobKind, LocalRunnerPullCoordinator, LocalRunnerPullCoordinatorOptions } from './local-runner.js';
10
+ export { AIJobPlan, AIJobSubmission, AIJobTaskInput, DurableAIExecutionBroker, ServerAIExecutionRoute } from './ai-broker.js';
11
+ export { GraphProjectionCoordinator, GraphProjectionCoordinatorOptions, ProjectionCursorStore } from './graph-projection.js';
12
+ export { DurableWorkflowCoordinator, DurableWorkflowCoordinatorOptions, StoredWorkflowInstance, WorkflowInstanceStore } from './workflow-coordinator.js';
13
+ export { EventAgentBridge, EventAgentBridgeError, EventAgentBridgeOptions, EventAgentPendingApproval, EventAgentRule, EventAgentTaskStore, InMemoryEventAgentTaskStore, QueuedEventTask } from './event-bridge.js';
14
+ export { HttpAgentExecutorOptions, HttpAgentRuntimeRequest, HttpAgentRuntimeResponse, createHttpAgentExecutor } from './remote-executor.js';
15
+ export { WorkflowNodeCatalog, WorkflowNodeDescriptor, WorkflowNodeRegistration, WorkflowNodeResolverInput } from './workflow-catalog.js';
16
+ export { CompiledWorkflow, WorkflowCompilerOptions, compileWorkflowDefinition } from './workflow-compiler.js';
17
+ export { InMemoryWorkflowDefinitionRegistry, WorkflowDefinitionRecord, WorkflowDefinitionRegistry } from './workflow-registry.js';
18
+ import '@alneas/eaos-core';
19
+ import '@langchain/langgraph';
20
+ import '../plugin-data/index.js';
21
+ import 'hono/types';
22
+ import '@alneas/eaos-core/plugin-sdk';
23
+ import 'hono';
24
+ import '@alneas/eaos-server/lifecycle-engine';
@@ -0,0 +1,86 @@
1
+ import "../chunk-7FTJN4SA.js";
2
+ import {
3
+ InMemoryWorkflowDefinitionRegistry
4
+ } from "../chunk-HVC7FG6B.js";
5
+ import {
6
+ LocalRunnerPullCoordinator
7
+ } from "../chunk-ZHMTD5KV.js";
8
+ import {
9
+ createHttpAgentExecutor
10
+ } from "../chunk-IJWYS2PF.js";
11
+ import {
12
+ WorkflowNodeCatalog
13
+ } from "../chunk-7AHSS7SO.js";
14
+ import {
15
+ compileWorkflowDefinition
16
+ } from "../chunk-CJ7OFEF7.js";
17
+ import {
18
+ DurableWorkflowCoordinator
19
+ } from "../chunk-EJKWDZIU.js";
20
+ import {
21
+ ServerWorkflowManager
22
+ } from "../chunk-FD6VC2NA.js";
23
+ import {
24
+ createWorkflowAgentRunner
25
+ } from "../chunk-6XZXYNJR.js";
26
+ import {
27
+ DurableAIExecutionBroker
28
+ } from "../chunk-LYPZPE53.js";
29
+ import {
30
+ ServerAutonomousWorker
31
+ } from "../chunk-THYUY5ZZ.js";
32
+ import {
33
+ EventAgentBridge,
34
+ InMemoryEventAgentTaskStore
35
+ } from "../chunk-3P4XTTQH.js";
36
+ import {
37
+ buildSystemdRunArgs,
38
+ createCommandAgentExecutor,
39
+ validateAgentRuntimePolicy
40
+ } from "../chunk-32746UQZ.js";
41
+ import {
42
+ ServerAgentExecutionError
43
+ } from "../chunk-YABTQZDJ.js";
44
+ import {
45
+ GraphProjectionCoordinator
46
+ } from "../chunk-W6O3LVBY.js";
47
+ import {
48
+ AgentGraphEngine
49
+ } from "../chunk-HXFVOR7Z.js";
50
+ import {
51
+ DurableAgentJobDispatcher,
52
+ cancelAgentJob,
53
+ createAgentJob,
54
+ createAtomicAgentJobStore,
55
+ enqueueAgentJob
56
+ } from "../chunk-PBC3MZUL.js";
57
+ import {
58
+ createWorkflowAgentNode
59
+ } from "../chunk-UGNTCOVR.js";
60
+ export {
61
+ AgentGraphEngine,
62
+ DurableAIExecutionBroker,
63
+ DurableAgentJobDispatcher,
64
+ DurableWorkflowCoordinator,
65
+ EventAgentBridge,
66
+ GraphProjectionCoordinator,
67
+ InMemoryEventAgentTaskStore,
68
+ InMemoryWorkflowDefinitionRegistry,
69
+ LocalRunnerPullCoordinator,
70
+ ServerAgentExecutionError,
71
+ ServerAutonomousWorker,
72
+ ServerWorkflowManager,
73
+ WorkflowNodeCatalog,
74
+ buildSystemdRunArgs,
75
+ cancelAgentJob,
76
+ compileWorkflowDefinition,
77
+ createAgentJob,
78
+ createAtomicAgentJobStore,
79
+ createCommandAgentExecutor,
80
+ createHttpAgentExecutor,
81
+ createWorkflowAgentNode,
82
+ createWorkflowAgentRunner,
83
+ enqueueAgentJob,
84
+ validateAgentRuntimePolicy
85
+ };
86
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}