aec-agent 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (574) hide show
  1. package/README.md +1 -0
  2. package/dist/agent-core.d.ts +81 -0
  3. package/dist/agent-core.d.ts.map +1 -0
  4. package/dist/agent-core.js +168 -0
  5. package/dist/agent-core.js.map +1 -0
  6. package/dist/components/artifact-hub/agent-artifact-view.d.ts +31 -0
  7. package/dist/components/artifact-hub/agent-artifact-view.d.ts.map +1 -0
  8. package/dist/components/artifact-hub/agent-artifact-view.js +264 -0
  9. package/dist/components/artifact-hub/agent-artifact-view.js.map +1 -0
  10. package/dist/components/artifact-hub/artifact-hub.d.ts +25 -0
  11. package/dist/components/artifact-hub/artifact-hub.d.ts.map +1 -0
  12. package/dist/components/artifact-hub/artifact-hub.js +39 -0
  13. package/dist/components/artifact-hub/artifact-hub.js.map +1 -0
  14. package/dist/components/artifact-hub/types/artifact.d.ts +158 -0
  15. package/dist/components/artifact-hub/types/artifact.d.ts.map +1 -0
  16. package/dist/components/artifact-hub/types/artifact.js +14 -0
  17. package/dist/components/artifact-hub/types/artifact.js.map +1 -0
  18. package/dist/components/event-handler/event-dispatcher.d.ts +17 -0
  19. package/dist/components/event-handler/event-dispatcher.d.ts.map +1 -0
  20. package/dist/components/event-handler/event-dispatcher.js +47 -0
  21. package/dist/components/event-handler/event-dispatcher.js.map +1 -0
  22. package/dist/components/event-handler/events.d.ts +154 -0
  23. package/dist/components/event-handler/events.d.ts.map +1 -0
  24. package/dist/components/event-handler/events.js +28 -0
  25. package/dist/components/event-handler/events.js.map +1 -0
  26. package/dist/components/event-handler/types.d.ts +10 -0
  27. package/dist/components/event-handler/types.d.ts.map +1 -0
  28. package/dist/components/event-handler/types.js +2 -0
  29. package/dist/components/event-handler/types.js.map +1 -0
  30. package/dist/components/llm-provider-hub/llm-provider-hub.d.ts +14 -0
  31. package/dist/components/llm-provider-hub/llm-provider-hub.d.ts.map +1 -0
  32. package/dist/components/llm-provider-hub/llm-provider-hub.js +34 -0
  33. package/dist/components/llm-provider-hub/llm-provider-hub.js.map +1 -0
  34. package/dist/components/llm-provider-hub/providers/anthropic-provider.d.ts +22 -0
  35. package/dist/components/llm-provider-hub/providers/anthropic-provider.d.ts.map +1 -0
  36. package/dist/components/llm-provider-hub/providers/anthropic-provider.js +249 -0
  37. package/dist/components/llm-provider-hub/providers/anthropic-provider.js.map +1 -0
  38. package/dist/components/llm-provider-hub/providers/bedrock-provider.d.ts +28 -0
  39. package/dist/components/llm-provider-hub/providers/bedrock-provider.d.ts.map +1 -0
  40. package/dist/components/llm-provider-hub/providers/bedrock-provider.js +345 -0
  41. package/dist/components/llm-provider-hub/providers/bedrock-provider.js.map +1 -0
  42. package/dist/components/llm-provider-hub/providers/model-info-mappers.d.ts +6 -0
  43. package/dist/components/llm-provider-hub/providers/model-info-mappers.d.ts.map +1 -0
  44. package/dist/components/llm-provider-hub/providers/model-info-mappers.js +267 -0
  45. package/dist/components/llm-provider-hub/providers/model-info-mappers.js.map +1 -0
  46. package/dist/components/llm-provider-hub/providers/openai-compatible-provider.d.ts +24 -0
  47. package/dist/components/llm-provider-hub/providers/openai-compatible-provider.d.ts.map +1 -0
  48. package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js +243 -0
  49. package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js.map +1 -0
  50. package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts +29 -0
  51. package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts.map +1 -0
  52. package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js +299 -0
  53. package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js.map +1 -0
  54. package/dist/components/llm-provider-hub/providers/registry.d.ts +6 -0
  55. package/dist/components/llm-provider-hub/providers/registry.d.ts.map +1 -0
  56. package/dist/components/llm-provider-hub/providers/registry.js +33 -0
  57. package/dist/components/llm-provider-hub/providers/registry.js.map +1 -0
  58. package/dist/components/llm-provider-hub/providers/types.d.ts +29 -0
  59. package/dist/components/llm-provider-hub/providers/types.d.ts.map +1 -0
  60. package/dist/components/llm-provider-hub/providers/types.js +2 -0
  61. package/dist/components/llm-provider-hub/providers/types.js.map +1 -0
  62. package/dist/components/llm-provider-hub/types.d.ts +84 -0
  63. package/dist/components/llm-provider-hub/types.d.ts.map +1 -0
  64. package/dist/components/llm-provider-hub/types.js +6 -0
  65. package/dist/components/llm-provider-hub/types.js.map +1 -0
  66. package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts +85 -0
  67. package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts.map +1 -0
  68. package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js +500 -0
  69. package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js.map +1 -0
  70. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.d.ts +29 -0
  71. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.d.ts.map +1 -0
  72. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.js +98 -0
  73. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.js.map +1 -0
  74. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts +16 -0
  75. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts.map +1 -0
  76. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js +116 -0
  77. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js.map +1 -0
  78. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.d.ts +41 -0
  79. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.d.ts.map +1 -0
  80. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.js +2 -0
  81. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.js.map +1 -0
  82. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts +69 -0
  83. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts.map +1 -0
  84. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js +147 -0
  85. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js.map +1 -0
  86. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts +55 -0
  87. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts.map +1 -0
  88. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js +406 -0
  89. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js.map +1 -0
  90. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts +19 -0
  91. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts.map +1 -0
  92. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js +28 -0
  93. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js.map +1 -0
  94. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts +17 -0
  95. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts.map +1 -0
  96. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js +55 -0
  97. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js.map +1 -0
  98. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts +3 -0
  99. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts.map +1 -0
  100. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.js +2 -0
  101. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.js.map +1 -0
  102. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.d.ts +20 -0
  103. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.d.ts.map +1 -0
  104. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.js +56 -0
  105. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.js.map +1 -0
  106. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.d.ts +23 -0
  107. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.d.ts.map +1 -0
  108. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.js +127 -0
  109. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.js.map +1 -0
  110. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts +9 -0
  111. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts.map +1 -0
  112. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js +40 -0
  113. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js.map +1 -0
  114. package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts +135 -0
  115. package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts.map +1 -0
  116. package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js +31 -0
  117. package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js.map +1 -0
  118. package/dist/components/multi-agent-orchestration/agent/agent.d.ts +93 -0
  119. package/dist/components/multi-agent-orchestration/agent/agent.d.ts.map +1 -0
  120. package/dist/components/multi-agent-orchestration/agent/agent.js +223 -0
  121. package/dist/components/multi-agent-orchestration/agent/agent.js.map +1 -0
  122. package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.d.ts +18 -0
  123. package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.d.ts.map +1 -0
  124. package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.js +20 -0
  125. package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.js.map +1 -0
  126. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts +6 -0
  127. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts.map +1 -0
  128. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js +6 -0
  129. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js.map +1 -0
  130. package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts +22 -0
  131. package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts.map +1 -0
  132. package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js +52 -0
  133. package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js.map +1 -0
  134. package/dist/components/multi-agent-orchestration/agent/context-manager/types.d.ts +13 -0
  135. package/dist/components/multi-agent-orchestration/agent/context-manager/types.d.ts.map +1 -0
  136. package/dist/components/multi-agent-orchestration/agent/context-manager/types.js +2 -0
  137. package/dist/components/multi-agent-orchestration/agent/context-manager/types.js.map +1 -0
  138. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts +25 -0
  139. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts.map +1 -0
  140. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js +74 -0
  141. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js.map +1 -0
  142. package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.d.ts +57 -0
  143. package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.d.ts.map +1 -0
  144. package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.js +185 -0
  145. package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.js.map +1 -0
  146. package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.d.ts +38 -0
  147. package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.d.ts.map +1 -0
  148. package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js +89 -0
  149. package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js.map +1 -0
  150. package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.d.ts +30 -0
  151. package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.d.ts.map +1 -0
  152. package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.js +91 -0
  153. package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.js.map +1 -0
  154. package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.d.ts +3 -0
  155. package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.d.ts.map +1 -0
  156. package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.js +3 -0
  157. package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.js.map +1 -0
  158. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts +22 -0
  159. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts.map +1 -0
  160. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js +196 -0
  161. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js.map +1 -0
  162. package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.d.ts +17 -0
  163. package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.d.ts.map +1 -0
  164. package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.js +114 -0
  165. package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.js.map +1 -0
  166. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts +89 -0
  167. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts.map +1 -0
  168. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js +178 -0
  169. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js.map +1 -0
  170. package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.d.ts +29 -0
  171. package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.d.ts.map +1 -0
  172. package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.js +2 -0
  173. package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.js.map +1 -0
  174. package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.d.ts +33 -0
  175. package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.d.ts.map +1 -0
  176. package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.js +2 -0
  177. package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.js.map +1 -0
  178. package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.d.ts +27 -0
  179. package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.d.ts.map +1 -0
  180. package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.js +5 -0
  181. package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.js.map +1 -0
  182. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts +39 -0
  183. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts.map +1 -0
  184. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js +70 -0
  185. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js.map +1 -0
  186. package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.d.ts +43 -0
  187. package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.d.ts.map +1 -0
  188. package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.js +126 -0
  189. package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.js.map +1 -0
  190. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts +38 -0
  191. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts.map +1 -0
  192. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js +155 -0
  193. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js.map +1 -0
  194. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts +27 -0
  195. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts.map +1 -0
  196. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js +2 -0
  197. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js.map +1 -0
  198. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.d.ts +6 -0
  199. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.d.ts.map +1 -0
  200. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.js +43 -0
  201. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.js.map +1 -0
  202. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts +56 -0
  203. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts.map +1 -0
  204. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js +107 -0
  205. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js.map +1 -0
  206. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts +20 -0
  207. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts.map +1 -0
  208. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js +28 -0
  209. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js.map +1 -0
  210. package/dist/components/multi-agent-orchestration/agent/types.d.ts +44 -0
  211. package/dist/components/multi-agent-orchestration/agent/types.d.ts.map +1 -0
  212. package/dist/components/multi-agent-orchestration/agent/types.js +2 -0
  213. package/dist/components/multi-agent-orchestration/agent/types.js.map +1 -0
  214. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts +23 -0
  215. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts.map +1 -0
  216. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js +42 -0
  217. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js.map +1 -0
  218. package/dist/components/persistence-hub/default-stores/memory-agent-store.d.ts +10 -0
  219. package/dist/components/persistence-hub/default-stores/memory-agent-store.d.ts.map +1 -0
  220. package/dist/components/persistence-hub/default-stores/memory-agent-store.js +16 -0
  221. package/dist/components/persistence-hub/default-stores/memory-agent-store.js.map +1 -0
  222. package/dist/components/persistence-hub/default-stores/memory-artifact-store.d.ts +16 -0
  223. package/dist/components/persistence-hub/default-stores/memory-artifact-store.d.ts.map +1 -0
  224. package/dist/components/persistence-hub/default-stores/memory-artifact-store.js +70 -0
  225. package/dist/components/persistence-hub/default-stores/memory-artifact-store.js.map +1 -0
  226. package/dist/components/persistence-hub/default-stores/memory-memory-store.d.ts +12 -0
  227. package/dist/components/persistence-hub/default-stores/memory-memory-store.d.ts.map +1 -0
  228. package/dist/components/persistence-hub/default-stores/memory-memory-store.js +51 -0
  229. package/dist/components/persistence-hub/default-stores/memory-memory-store.js.map +1 -0
  230. package/dist/components/persistence-hub/default-stores/memory-message-store.d.ts +12 -0
  231. package/dist/components/persistence-hub/default-stores/memory-message-store.d.ts.map +1 -0
  232. package/dist/components/persistence-hub/default-stores/memory-message-store.js +33 -0
  233. package/dist/components/persistence-hub/default-stores/memory-message-store.js.map +1 -0
  234. package/dist/components/persistence-hub/default-stores/memory-provider-store.d.ts +9 -0
  235. package/dist/components/persistence-hub/default-stores/memory-provider-store.d.ts.map +1 -0
  236. package/dist/components/persistence-hub/default-stores/memory-provider-store.js +16 -0
  237. package/dist/components/persistence-hub/default-stores/memory-provider-store.js.map +1 -0
  238. package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts +12 -0
  239. package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts.map +1 -0
  240. package/dist/components/persistence-hub/default-stores/memory-session-store.js +42 -0
  241. package/dist/components/persistence-hub/default-stores/memory-session-store.js.map +1 -0
  242. package/dist/components/persistence-hub/default-stores/memory-skill-store.d.ts +9 -0
  243. package/dist/components/persistence-hub/default-stores/memory-skill-store.d.ts.map +1 -0
  244. package/dist/components/persistence-hub/default-stores/memory-skill-store.js +20 -0
  245. package/dist/components/persistence-hub/default-stores/memory-skill-store.js.map +1 -0
  246. package/dist/components/persistence-hub/persistence-hub.d.ts +34 -0
  247. package/dist/components/persistence-hub/persistence-hub.d.ts.map +1 -0
  248. package/dist/components/persistence-hub/persistence-hub.js +37 -0
  249. package/dist/components/persistence-hub/persistence-hub.js.map +1 -0
  250. package/dist/components/persistence-hub/types/agent-store.d.ts +8 -0
  251. package/dist/components/persistence-hub/types/agent-store.d.ts.map +1 -0
  252. package/dist/components/persistence-hub/types/agent-store.js +2 -0
  253. package/dist/components/persistence-hub/types/agent-store.js.map +1 -0
  254. package/dist/components/persistence-hub/types/artifact-store.d.ts +33 -0
  255. package/dist/components/persistence-hub/types/artifact-store.d.ts.map +1 -0
  256. package/dist/components/persistence-hub/types/artifact-store.js +2 -0
  257. package/dist/components/persistence-hub/types/artifact-store.js.map +1 -0
  258. package/dist/components/persistence-hub/types/memory-store.d.ts +23 -0
  259. package/dist/components/persistence-hub/types/memory-store.d.ts.map +1 -0
  260. package/dist/components/persistence-hub/types/memory-store.js +2 -0
  261. package/dist/components/persistence-hub/types/memory-store.js.map +1 -0
  262. package/dist/components/persistence-hub/types/message-store.d.ts +27 -0
  263. package/dist/components/persistence-hub/types/message-store.d.ts.map +1 -0
  264. package/dist/components/persistence-hub/types/message-store.js +2 -0
  265. package/dist/components/persistence-hub/types/message-store.js.map +1 -0
  266. package/dist/components/persistence-hub/types/provider-store.d.ts +28 -0
  267. package/dist/components/persistence-hub/types/provider-store.d.ts.map +1 -0
  268. package/dist/components/persistence-hub/types/provider-store.js +5 -0
  269. package/dist/components/persistence-hub/types/provider-store.js.map +1 -0
  270. package/dist/components/persistence-hub/types/session-store.d.ts +15 -0
  271. package/dist/components/persistence-hub/types/session-store.d.ts.map +1 -0
  272. package/dist/components/persistence-hub/types/session-store.js +2 -0
  273. package/dist/components/persistence-hub/types/session-store.js.map +1 -0
  274. package/dist/components/persistence-hub/types/skill-store.d.ts +22 -0
  275. package/dist/components/persistence-hub/types/skill-store.d.ts.map +1 -0
  276. package/dist/components/persistence-hub/types/skill-store.js +2 -0
  277. package/dist/components/persistence-hub/types/skill-store.js.map +1 -0
  278. package/dist/components/sandbox-hub/approval-policy.d.ts +12 -0
  279. package/dist/components/sandbox-hub/approval-policy.d.ts.map +1 -0
  280. package/dist/components/sandbox-hub/approval-policy.js +11 -0
  281. package/dist/components/sandbox-hub/approval-policy.js.map +1 -0
  282. package/dist/components/sandbox-hub/docker/aec-sandbox-image.d.ts +3 -0
  283. package/dist/components/sandbox-hub/docker/aec-sandbox-image.d.ts.map +1 -0
  284. package/dist/components/sandbox-hub/docker/aec-sandbox-image.js +31 -0
  285. package/dist/components/sandbox-hub/docker/aec-sandbox-image.js.map +1 -0
  286. package/dist/components/sandbox-hub/docker/docker-cli.d.ts +32 -0
  287. package/dist/components/sandbox-hub/docker/docker-cli.d.ts.map +1 -0
  288. package/dist/components/sandbox-hub/docker/docker-cli.js +83 -0
  289. package/dist/components/sandbox-hub/docker/docker-cli.js.map +1 -0
  290. package/dist/components/sandbox-hub/docker/docker-sandbox-provider.d.ts +70 -0
  291. package/dist/components/sandbox-hub/docker/docker-sandbox-provider.d.ts.map +1 -0
  292. package/dist/components/sandbox-hub/docker/docker-sandbox-provider.js +166 -0
  293. package/dist/components/sandbox-hub/docker/docker-sandbox-provider.js.map +1 -0
  294. package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts +51 -0
  295. package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts.map +1 -0
  296. package/dist/components/sandbox-hub/docker/docker-sandbox.js +584 -0
  297. package/dist/components/sandbox-hub/docker/docker-sandbox.js.map +1 -0
  298. package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts +4 -0
  299. package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts.map +1 -0
  300. package/dist/components/sandbox-hub/docker/sandbox-helper.js +442 -0
  301. package/dist/components/sandbox-hub/docker/sandbox-helper.js.map +1 -0
  302. package/dist/components/sandbox-hub/docker/types.d.ts +26 -0
  303. package/dist/components/sandbox-hub/docker/types.d.ts.map +1 -0
  304. package/dist/components/sandbox-hub/docker/types.js +2 -0
  305. package/dist/components/sandbox-hub/docker/types.js.map +1 -0
  306. package/dist/components/sandbox-hub/host/host-sandbox-provider.d.ts +34 -0
  307. package/dist/components/sandbox-hub/host/host-sandbox-provider.d.ts.map +1 -0
  308. package/dist/components/sandbox-hub/host/host-sandbox-provider.js +81 -0
  309. package/dist/components/sandbox-hub/host/host-sandbox-provider.js.map +1 -0
  310. package/dist/components/sandbox-hub/host/host-sandbox.d.ts +22 -0
  311. package/dist/components/sandbox-hub/host/host-sandbox.d.ts.map +1 -0
  312. package/dist/components/sandbox-hub/host/host-sandbox.js +508 -0
  313. package/dist/components/sandbox-hub/host/host-sandbox.js.map +1 -0
  314. package/dist/components/sandbox-hub/logical-path.d.ts +28 -0
  315. package/dist/components/sandbox-hub/logical-path.d.ts.map +1 -0
  316. package/dist/components/sandbox-hub/logical-path.js +73 -0
  317. package/dist/components/sandbox-hub/logical-path.js.map +1 -0
  318. package/dist/components/sandbox-hub/sandbox-hub.d.ts +69 -0
  319. package/dist/components/sandbox-hub/sandbox-hub.d.ts.map +1 -0
  320. package/dist/components/sandbox-hub/sandbox-hub.js +216 -0
  321. package/dist/components/sandbox-hub/sandbox-hub.js.map +1 -0
  322. package/dist/components/sandbox-hub/traced-sandbox.d.ts +15 -0
  323. package/dist/components/sandbox-hub/traced-sandbox.d.ts.map +1 -0
  324. package/dist/components/sandbox-hub/traced-sandbox.js +69 -0
  325. package/dist/components/sandbox-hub/traced-sandbox.js.map +1 -0
  326. package/dist/components/sandbox-hub/types/policy.d.ts +40 -0
  327. package/dist/components/sandbox-hub/types/policy.d.ts.map +1 -0
  328. package/dist/components/sandbox-hub/types/policy.js +2 -0
  329. package/dist/components/sandbox-hub/types/policy.js.map +1 -0
  330. package/dist/components/sandbox-hub/types/provider.d.ts +40 -0
  331. package/dist/components/sandbox-hub/types/provider.d.ts.map +1 -0
  332. package/dist/components/sandbox-hub/types/provider.js +2 -0
  333. package/dist/components/sandbox-hub/types/provider.js.map +1 -0
  334. package/dist/components/sandbox-hub/types/sandbox.d.ts +185 -0
  335. package/dist/components/sandbox-hub/types/sandbox.d.ts.map +1 -0
  336. package/dist/components/sandbox-hub/types/sandbox.js +15 -0
  337. package/dist/components/sandbox-hub/types/sandbox.js.map +1 -0
  338. package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts +5 -0
  339. package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts.map +1 -0
  340. package/dist/components/skill-hub/built-in-skills/essential-skills.js +10 -0
  341. package/dist/components/skill-hub/built-in-skills/essential-skills.js.map +1 -0
  342. package/dist/components/skill-hub/built-in-skills/plan.d.ts +3 -0
  343. package/dist/components/skill-hub/built-in-skills/plan.d.ts.map +1 -0
  344. package/dist/components/skill-hub/built-in-skills/plan.js +33 -0
  345. package/dist/components/skill-hub/built-in-skills/plan.js.map +1 -0
  346. package/dist/components/skill-hub/built-in-skills/skill-creator.d.ts +3 -0
  347. package/dist/components/skill-hub/built-in-skills/skill-creator.d.ts.map +1 -0
  348. package/dist/components/skill-hub/built-in-skills/skill-creator.js +186 -0
  349. package/dist/components/skill-hub/built-in-skills/skill-creator.js.map +1 -0
  350. package/dist/components/skill-hub/built-in-skills/web-research.d.ts +3 -0
  351. package/dist/components/skill-hub/built-in-skills/web-research.d.ts.map +1 -0
  352. package/dist/components/skill-hub/built-in-skills/web-research.js +35 -0
  353. package/dist/components/skill-hub/built-in-skills/web-research.js.map +1 -0
  354. package/dist/components/skill-hub/skill-format.d.ts +40 -0
  355. package/dist/components/skill-hub/skill-format.d.ts.map +1 -0
  356. package/dist/components/skill-hub/skill-format.js +378 -0
  357. package/dist/components/skill-hub/skill-format.js.map +1 -0
  358. package/dist/components/skill-hub/skill-hub.d.ts +45 -0
  359. package/dist/components/skill-hub/skill-hub.d.ts.map +1 -0
  360. package/dist/components/skill-hub/skill-hub.js +173 -0
  361. package/dist/components/skill-hub/skill-hub.js.map +1 -0
  362. package/dist/components/skill-hub/types/agent-skills.d.ts +20 -0
  363. package/dist/components/skill-hub/types/agent-skills.d.ts.map +1 -0
  364. package/dist/components/skill-hub/types/agent-skills.js +2 -0
  365. package/dist/components/skill-hub/types/agent-skills.js.map +1 -0
  366. package/dist/components/skill-hub/types/skill.d.ts +55 -0
  367. package/dist/components/skill-hub/types/skill.d.ts.map +1 -0
  368. package/dist/components/skill-hub/types/skill.js +11 -0
  369. package/dist/components/skill-hub/types/skill.js.map +1 -0
  370. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts +52 -0
  371. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts.map +1 -0
  372. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js +143 -0
  373. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js.map +1 -0
  374. package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.d.ts +7 -0
  375. package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.d.ts.map +1 -0
  376. package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.js +18 -0
  377. package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.js.map +1 -0
  378. package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.d.ts +16 -0
  379. package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.d.ts.map +1 -0
  380. package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.js +69 -0
  381. package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.js.map +1 -0
  382. package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.d.ts +16 -0
  383. package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.d.ts.map +1 -0
  384. package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.js +79 -0
  385. package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.js.map +1 -0
  386. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts +16 -0
  387. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts.map +1 -0
  388. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js +105 -0
  389. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js.map +1 -0
  390. package/dist/components/tool-hub/built-in-tools/artifacts/types.d.ts +11 -0
  391. package/dist/components/tool-hub/built-in-tools/artifacts/types.d.ts.map +1 -0
  392. package/dist/components/tool-hub/built-in-tools/artifacts/types.js +8 -0
  393. package/dist/components/tool-hub/built-in-tools/artifacts/types.js.map +1 -0
  394. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts +17 -0
  395. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts.map +1 -0
  396. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js +100 -0
  397. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js.map +1 -0
  398. package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.d.ts +16 -0
  399. package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.d.ts.map +1 -0
  400. package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.js +94 -0
  401. package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.js.map +1 -0
  402. package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.d.ts +22 -0
  403. package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.d.ts.map +1 -0
  404. package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.js +226 -0
  405. package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.js.map +1 -0
  406. package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.d.ts +18 -0
  407. package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.d.ts.map +1 -0
  408. package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.js +86 -0
  409. package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.js.map +1 -0
  410. package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.d.ts +26 -0
  411. package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.d.ts.map +1 -0
  412. package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.js +93 -0
  413. package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.js.map +1 -0
  414. package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.d.ts +28 -0
  415. package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.d.ts.map +1 -0
  416. package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.js +116 -0
  417. package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.js.map +1 -0
  418. package/dist/components/tool-hub/built-in-tools/web/html-to-text.d.ts +14 -0
  419. package/dist/components/tool-hub/built-in-tools/web/html-to-text.d.ts.map +1 -0
  420. package/dist/components/tool-hub/built-in-tools/web/html-to-text.js +158 -0
  421. package/dist/components/tool-hub/built-in-tools/web/html-to-text.js.map +1 -0
  422. package/dist/components/tool-hub/built-in-tools/web/network-guard.d.ts +21 -0
  423. package/dist/components/tool-hub/built-in-tools/web/network-guard.d.ts.map +1 -0
  424. package/dist/components/tool-hub/built-in-tools/web/network-guard.js +106 -0
  425. package/dist/components/tool-hub/built-in-tools/web/network-guard.js.map +1 -0
  426. package/dist/components/tool-hub/built-in-tools/web/types.d.ts +23 -0
  427. package/dist/components/tool-hub/built-in-tools/web/types.d.ts.map +1 -0
  428. package/dist/components/tool-hub/built-in-tools/web/types.js +5 -0
  429. package/dist/components/tool-hub/built-in-tools/web/types.js.map +1 -0
  430. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts +37 -0
  431. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts.map +1 -0
  432. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js +206 -0
  433. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js.map +1 -0
  434. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts +25 -0
  435. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts.map +1 -0
  436. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js +82 -0
  437. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js.map +1 -0
  438. package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.d.ts +7 -0
  439. package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.d.ts.map +1 -0
  440. package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.js +24 -0
  441. package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.js.map +1 -0
  442. package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.d.ts +15 -0
  443. package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.d.ts.map +1 -0
  444. package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.js +103 -0
  445. package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.js.map +1 -0
  446. package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.d.ts +12 -0
  447. package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.d.ts.map +1 -0
  448. package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.js +53 -0
  449. package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.js.map +1 -0
  450. package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.d.ts +15 -0
  451. package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.d.ts.map +1 -0
  452. package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.js +71 -0
  453. package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.js.map +1 -0
  454. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts +16 -0
  455. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts.map +1 -0
  456. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js +72 -0
  457. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js.map +1 -0
  458. package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.d.ts +12 -0
  459. package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.d.ts.map +1 -0
  460. package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.js +64 -0
  461. package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.js.map +1 -0
  462. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts +19 -0
  463. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts.map +1 -0
  464. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js +111 -0
  465. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js.map +1 -0
  466. package/dist/components/tool-hub/built-in-tools/workspace/types.d.ts +16 -0
  467. package/dist/components/tool-hub/built-in-tools/workspace/types.d.ts.map +1 -0
  468. package/dist/components/tool-hub/built-in-tools/workspace/types.js +8 -0
  469. package/dist/components/tool-hub/built-in-tools/workspace/types.js.map +1 -0
  470. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts +29 -0
  471. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts.map +1 -0
  472. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js +128 -0
  473. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js.map +1 -0
  474. package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.d.ts +17 -0
  475. package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.d.ts.map +1 -0
  476. package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.js +61 -0
  477. package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.js.map +1 -0
  478. package/dist/components/tool-hub/policies/default-tool-policy.d.ts +17 -0
  479. package/dist/components/tool-hub/policies/default-tool-policy.d.ts.map +1 -0
  480. package/dist/components/tool-hub/policies/default-tool-policy.js +99 -0
  481. package/dist/components/tool-hub/policies/default-tool-policy.js.map +1 -0
  482. package/dist/components/tool-hub/tool-hub.d.ts +28 -0
  483. package/dist/components/tool-hub/tool-hub.d.ts.map +1 -0
  484. package/dist/components/tool-hub/tool-hub.js +49 -0
  485. package/dist/components/tool-hub/tool-hub.js.map +1 -0
  486. package/dist/components/tool-hub/types.d.ts +138 -0
  487. package/dist/components/tool-hub/types.d.ts.map +1 -0
  488. package/dist/components/tool-hub/types.js +2 -0
  489. package/dist/components/tool-hub/types.js.map +1 -0
  490. package/dist/components/trace-service/console-trace-sink.d.ts +9 -0
  491. package/dist/components/trace-service/console-trace-sink.d.ts.map +1 -0
  492. package/dist/components/trace-service/console-trace-sink.js +35 -0
  493. package/dist/components/trace-service/console-trace-sink.js.map +1 -0
  494. package/dist/components/trace-service/trace-service.d.ts +25 -0
  495. package/dist/components/trace-service/trace-service.d.ts.map +1 -0
  496. package/dist/components/trace-service/trace-service.js +288 -0
  497. package/dist/components/trace-service/trace-service.js.map +1 -0
  498. package/dist/components/trace-service/types/sink.d.ts +7 -0
  499. package/dist/components/trace-service/types/sink.d.ts.map +1 -0
  500. package/dist/components/trace-service/types/sink.js +5 -0
  501. package/dist/components/trace-service/types/sink.js.map +1 -0
  502. package/dist/components/trace-service/types/span.d.ts +31 -0
  503. package/dist/components/trace-service/types/span.d.ts.map +1 -0
  504. package/dist/components/trace-service/types/span.js +5 -0
  505. package/dist/components/trace-service/types/span.js.map +1 -0
  506. package/dist/create-agent.d.ts +5 -0
  507. package/dist/create-agent.d.ts.map +1 -0
  508. package/dist/create-agent.js +57 -0
  509. package/dist/create-agent.js.map +1 -0
  510. package/dist/index.d.ts +110 -0
  511. package/dist/index.d.ts.map +1 -0
  512. package/dist/index.js +73 -0
  513. package/dist/index.js.map +1 -0
  514. package/dist/kernel/errors/artifact-error.d.ts +23 -0
  515. package/dist/kernel/errors/artifact-error.d.ts.map +1 -0
  516. package/dist/kernel/errors/artifact-error.js +22 -0
  517. package/dist/kernel/errors/artifact-error.js.map +1 -0
  518. package/dist/kernel/errors/model-error.d.ts +7 -0
  519. package/dist/kernel/errors/model-error.d.ts.map +1 -0
  520. package/dist/kernel/errors/model-error.js +10 -0
  521. package/dist/kernel/errors/model-error.js.map +1 -0
  522. package/dist/kernel/errors/policy-error.d.ts +8 -0
  523. package/dist/kernel/errors/policy-error.d.ts.map +1 -0
  524. package/dist/kernel/errors/policy-error.js +12 -0
  525. package/dist/kernel/errors/policy-error.js.map +1 -0
  526. package/dist/kernel/errors/sandbox-error.d.ts +35 -0
  527. package/dist/kernel/errors/sandbox-error.d.ts.map +1 -0
  528. package/dist/kernel/errors/sandbox-error.js +26 -0
  529. package/dist/kernel/errors/sandbox-error.js.map +1 -0
  530. package/dist/kernel/errors/sdk-error.d.ts +9 -0
  531. package/dist/kernel/errors/sdk-error.d.ts.map +1 -0
  532. package/dist/kernel/errors/sdk-error.js +13 -0
  533. package/dist/kernel/errors/sdk-error.js.map +1 -0
  534. package/dist/kernel/errors/session-error.d.ts +7 -0
  535. package/dist/kernel/errors/session-error.d.ts.map +1 -0
  536. package/dist/kernel/errors/session-error.js +10 -0
  537. package/dist/kernel/errors/session-error.js.map +1 -0
  538. package/dist/kernel/errors/skill-error.d.ts +14 -0
  539. package/dist/kernel/errors/skill-error.d.ts.map +1 -0
  540. package/dist/kernel/errors/skill-error.js +12 -0
  541. package/dist/kernel/errors/skill-error.js.map +1 -0
  542. package/dist/kernel/errors/tool-error.d.ts +8 -0
  543. package/dist/kernel/errors/tool-error.d.ts.map +1 -0
  544. package/dist/kernel/errors/tool-error.js +12 -0
  545. package/dist/kernel/errors/tool-error.js.map +1 -0
  546. package/dist/kernel/interfaces/kernel.d.ts +23 -0
  547. package/dist/kernel/interfaces/kernel.d.ts.map +1 -0
  548. package/dist/kernel/interfaces/kernel.js +2 -0
  549. package/dist/kernel/interfaces/kernel.js.map +1 -0
  550. package/dist/kernel/interfaces/plugin.d.ts +7 -0
  551. package/dist/kernel/interfaces/plugin.d.ts.map +1 -0
  552. package/dist/kernel/interfaces/plugin.js +5 -0
  553. package/dist/kernel/interfaces/plugin.js.map +1 -0
  554. package/dist/kernel/types.d.ts +103 -0
  555. package/dist/kernel/types.d.ts.map +1 -0
  556. package/dist/kernel/types.js +2 -0
  557. package/dist/kernel/types.js.map +1 -0
  558. package/dist/testing/in-memory-sandbox.d.ts +66 -0
  559. package/dist/testing/in-memory-sandbox.d.ts.map +1 -0
  560. package/dist/testing/in-memory-sandbox.js +507 -0
  561. package/dist/testing/in-memory-sandbox.js.map +1 -0
  562. package/dist/testing/mock-llm-model-provider.d.ts +14 -0
  563. package/dist/testing/mock-llm-model-provider.d.ts.map +1 -0
  564. package/dist/testing/mock-llm-model-provider.js +30 -0
  565. package/dist/testing/mock-llm-model-provider.js.map +1 -0
  566. package/dist/testing/mock-session-store.d.ts +17 -0
  567. package/dist/testing/mock-session-store.d.ts.map +1 -0
  568. package/dist/testing/mock-session-store.js +49 -0
  569. package/dist/testing/mock-session-store.js.map +1 -0
  570. package/dist/testing/mock-tools.d.ts +38 -0
  571. package/dist/testing/mock-tools.d.ts.map +1 -0
  572. package/dist/testing/mock-tools.js +130 -0
  573. package/dist/testing/mock-tools.js.map +1 -0
  574. package/package.json +55 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ Heart of AEC Agent - a centralized service for all AI Agent
@@ -0,0 +1,81 @@
1
+ import type { AgentProfile } from "./components/multi-agent-orchestration/agent/types.js";
2
+ import type { Kernel } from "./kernel/interfaces/kernel.js";
3
+ import type { LLMModelProvider } from "./components/llm-provider-hub/types.js";
4
+ import type { SandboxProvider } from "./components/sandbox-hub/types/provider.js";
5
+ import type { Skill, SkillPackage } from "./components/skill-hub/types/skill.js";
6
+ import type { ToolHandler } from "./components/tool-hub/types.js";
7
+ import { EventDispatcher } from "./components/event-handler/event-dispatcher.js";
8
+ import { LLMProviderHub } from "./components/llm-provider-hub/llm-provider-hub.js";
9
+ import { MultiAgentOrchestration } from "./components/multi-agent-orchestration/multi-agent-orchestration.js";
10
+ import { SkillHub } from "./components/skill-hub/skill-hub.js";
11
+ import { ToolHub } from "./components/tool-hub/tool-hub.js";
12
+ import { PersistenceHub } from "./components/persistence-hub/persistence-hub.js";
13
+ import { TraceService } from "./components/trace-service/trace-service.js";
14
+ import { SandboxHub } from "./components/sandbox-hub/sandbox-hub.js";
15
+ import { ArtifactHub } from "./components/artifact-hub/artifact-hub.js";
16
+ import type { Agent } from "./components/multi-agent-orchestration/agent/agent.js";
17
+ /**
18
+ * Centralized AI Agent service, you can add more tool, more skill, more llm provider, choose specific session store (postgres, redis, ...)
19
+ * for example with project A use Bedrock for LLM Provider and postgres for session store, project B use BytePlus or Claude for LLM Provider and Redis for session store
20
+ * so this structure can adapt that scenario.
21
+ * AgentCore can be created by project and agents inside it are a collection of agents created by user in that project.
22
+ */
23
+ export declare class AgentCore implements Kernel {
24
+ /**
25
+ * Pub-sub event to decouple between services (like MediatR in .Net)
26
+ */
27
+ readonly eventBus: EventDispatcher;
28
+ /**
29
+ * Global hub for LLM Provider, during using users can switch between models when they hit session's limit.
30
+ */
31
+ readonly llmProviderHub: LLMProviderHub;
32
+ /**
33
+ * Global hub for tools, for example this hub has 50 tools but user want Devops Agent so user only enable 10 devop tools from 50 tools.
34
+ */
35
+ readonly toolHub: ToolHub;
36
+ /**
37
+ * Global hub for skills, for exampl this hub has 50 skills but user want Devops Agent so user only enable 10 devop skills from 50 skills.
38
+ */
39
+ readonly skillHub: SkillHub;
40
+ /**
41
+ * Orchestration for agents, for example 1 user want 2 agents: PM Agent and Designer Agent this class will help that purpose
42
+ */
43
+ readonly agents: MultiAgentOrchestration;
44
+ /**
45
+ * Centralized span-tree tracing — register TraceSink consumers to tap agent lifecycle spans
46
+ */
47
+ readonly traceService: TraceService;
48
+ /**
49
+ * Global hub for sandboxes — the shared sandbox, factory registry and policies.
50
+ * Own sandboxes are managed by each agent's SandboxManager.
51
+ */
52
+ readonly sandboxHub: SandboxHub;
53
+ /**
54
+ * Global hub for artifacts — the lasting, typed, versioned outputs agents make.
55
+ * Hands out a per-agent ArtifactView over PersistenceHub.artifacts.
56
+ */
57
+ readonly artifactHub: ArtifactHub;
58
+ /**
59
+ * Centralized persistence — agents, providers, and sessions in one hub
60
+ */
61
+ persistence: PersistenceHub;
62
+ constructor();
63
+ usePersistence(hub: PersistenceHub): void;
64
+ useLLMProvider(adapter: LLMModelProvider): void;
65
+ useTool(tool: ToolHandler): void;
66
+ /** Register an app skill (SKILL.md + files). Read-only at runtime; agents enable it via profile.skills. */
67
+ useSkill(skill: SkillPackage): void;
68
+ useSandboxProvider(provider: SandboxProvider): void;
69
+ getLLMModelProvider(name?: string): LLMModelProvider;
70
+ getLLMModelProviders(): LLMModelProvider[];
71
+ getTool(name: string): ToolHandler | undefined;
72
+ getTools(): ToolHandler[];
73
+ getSkill(name: string): Promise<Skill | undefined>;
74
+ getSkills(): Promise<Skill[]>;
75
+ private disableSkillForAllAgents;
76
+ spawnAgent(profile: AgentProfile): Agent;
77
+ removeAgent(profileId: string): Promise<void>;
78
+ initialize(): Promise<void>;
79
+ dispose(): Promise<void>;
80
+ }
81
+ //# sourceMappingURL=agent-core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-core.d.ts","sourceRoot":"","sources":["../src/agent-core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAEjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAA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;IAID,mBAAmB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAInD;IAED,oBAAoB,IAAI,gBAAgB,EAAE,CAEzC;IAED,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAE7C;IAED,QAAQ,IAAI,WAAW,EAAE,CAExB;IAED,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAEjD;IAED,SAAS,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAE5B;IAID,OAAO,CAAC,wBAAwB;IAUhC,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,KAAK,CAIvC;IAEK,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBlD;IAIK,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAQhC;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAO7B;CACF"}
@@ -0,0 +1,168 @@
1
+ import { ESSENTIAL_SKILLS } from "./components/skill-hub/built-in-skills/essential-skills.js";
2
+ import { EventDispatcher } from "./components/event-handler/event-dispatcher.js";
3
+ import { LLMProviderHub } from "./components/llm-provider-hub/llm-provider-hub.js";
4
+ import { MultiAgentOrchestration } from "./components/multi-agent-orchestration/multi-agent-orchestration.js";
5
+ import { SkillHub } from "./components/skill-hub/skill-hub.js";
6
+ import { ToolHub } from "./components/tool-hub/tool-hub.js";
7
+ import { PersistenceHub } from "./components/persistence-hub/persistence-hub.js";
8
+ import { TraceService } from "./components/trace-service/trace-service.js";
9
+ import { SandboxHub } from "./components/sandbox-hub/sandbox-hub.js";
10
+ import { ArtifactHub } from "./components/artifact-hub/artifact-hub.js";
11
+ /**
12
+ * Centralized AI Agent service, you can add more tool, more skill, more llm provider, choose specific session store (postgres, redis, ...)
13
+ * for example with project A use Bedrock for LLM Provider and postgres for session store, project B use BytePlus or Claude for LLM Provider and Redis for session store
14
+ * so this structure can adapt that scenario.
15
+ * AgentCore can be created by project and agents inside it are a collection of agents created by user in that project.
16
+ */
17
+ export class AgentCore {
18
+ /**
19
+ * Pub-sub event to decouple between services (like MediatR in .Net)
20
+ */
21
+ eventBus;
22
+ /**
23
+ * Global hub for LLM Provider, during using users can switch between models when they hit session's limit.
24
+ */
25
+ llmProviderHub;
26
+ /**
27
+ * Global hub for tools, for example this hub has 50 tools but user want Devops Agent so user only enable 10 devop tools from 50 tools.
28
+ */
29
+ toolHub;
30
+ /**
31
+ * Global hub for skills, for exampl this hub has 50 skills but user want Devops Agent so user only enable 10 devop skills from 50 skills.
32
+ */
33
+ skillHub;
34
+ /**
35
+ * Orchestration for agents, for example 1 user want 2 agents: PM Agent and Designer Agent this class will help that purpose
36
+ */
37
+ agents;
38
+ /**
39
+ * Centralized span-tree tracing — register TraceSink consumers to tap agent lifecycle spans
40
+ */
41
+ traceService;
42
+ /**
43
+ * Global hub for sandboxes — the shared sandbox, factory registry and policies.
44
+ * Own sandboxes are managed by each agent's SandboxManager.
45
+ */
46
+ sandboxHub;
47
+ /**
48
+ * Global hub for artifacts — the lasting, typed, versioned outputs agents make.
49
+ * Hands out a per-agent ArtifactView over PersistenceHub.artifacts.
50
+ */
51
+ artifactHub;
52
+ /**
53
+ * Centralized persistence — agents, providers, and sessions in one hub
54
+ */
55
+ persistence;
56
+ constructor() {
57
+ this.eventBus = new EventDispatcher();
58
+ this.llmProviderHub = new LLMProviderHub();
59
+ this.toolHub = new ToolHub();
60
+ this.skillHub = new SkillHub(() => this.persistence.skills);
61
+ this.agents = new MultiAgentOrchestration(this);
62
+ this.traceService = new TraceService();
63
+ this.sandboxHub = new SandboxHub();
64
+ this.persistence = new PersistenceHub();
65
+ // Resolved on every call, so usePersistence() after startup reaches views already handed out.
66
+ this.artifactHub = new ArtifactHub(() => this.persistence.artifacts);
67
+ // Essential skills (skill-creator, plan, web-research) ship with the SDK; an agent
68
+ // uses one when it is in its profile.skills and it has the tools the skill requires.
69
+ for (const skill of ESSENTIAL_SKILLS)
70
+ this.skillHub.register(skill, "built-in");
71
+ // A deleted skill is disabled for every agent that had it — whoever deleted it (an agent
72
+ // through skill_manage, or the host) — so no profile keeps pointing at a missing skill.
73
+ this.skillHub.onDeleted((name) => this.disableSkillForAllAgents(name));
74
+ }
75
+ // ── Registration ──
76
+ usePersistence(hub) {
77
+ this.persistence = hub;
78
+ // Custom skills live in the new hub's skill store.
79
+ this.skillHub.reload();
80
+ }
81
+ useLLMProvider(adapter) {
82
+ this.llmProviderHub.register(adapter);
83
+ }
84
+ useTool(tool) {
85
+ this.toolHub.register(tool);
86
+ }
87
+ /** Register an app skill (SKILL.md + files). Read-only at runtime; agents enable it via profile.skills. */
88
+ useSkill(skill) {
89
+ this.skillHub.register(skill, "app");
90
+ }
91
+ useSandboxProvider(provider) {
92
+ this.sandboxHub.register(provider);
93
+ }
94
+ // ── Getters ──
95
+ getLLMModelProvider(name) {
96
+ return name
97
+ ? (this.llmProviderHub.get(name) ?? this.llmProviderHub.getPrimary())
98
+ : this.llmProviderHub.getPrimary();
99
+ }
100
+ getLLMModelProviders() {
101
+ return this.llmProviderHub.list();
102
+ }
103
+ getTool(name) {
104
+ return this.toolHub.get(name);
105
+ }
106
+ getTools() {
107
+ return this.toolHub.list();
108
+ }
109
+ getSkill(name) {
110
+ return this.skillHub.get(name);
111
+ }
112
+ getSkills() {
113
+ return this.skillHub.list();
114
+ }
115
+ // ── Agent management ──
116
+ disableSkillForAllAgents(name) {
117
+ for (const agent of this.agents.list()) {
118
+ if (!agent.profile.skills.includes(name))
119
+ continue;
120
+ agent.updateSkills(agent.profile.skills.filter((s) => s !== name));
121
+ void this.persistence.agents.save(agent.profile).catch((err) => {
122
+ console.warn(`[skills] could not save agent ${agent.profile.id} after deleting skill "${name}":`, err);
123
+ });
124
+ }
125
+ }
126
+ spawnAgent(profile) {
127
+ const agent = this.agents.spawn(profile);
128
+ void this.persistence.agents.save(profile);
129
+ return agent;
130
+ }
131
+ async removeAgent(profileId) {
132
+ // Retention: an agent's sandbox files live until the agent is deleted. Best effort —
133
+ // Docker being down must not block deleting the agent (its folder is then left behind).
134
+ // The agent's own sandbox (running or cold) is deleted by its SandboxManager...
135
+ await this.agents.dispose(profileId, { removeData: true }).catch((err) => {
136
+ console.warn(`[agent] agent=${profileId} did not stop cleanly; its own sandbox files may be left behind:`, err);
137
+ });
138
+ await this.persistence.agents.delete(profileId);
139
+ // ...and its folder in the shared sandbox by the hub.
140
+ await this.sandboxHub.releaseAgentData(profileId).catch((err) => {
141
+ console.warn(`[sandbox] agent=${profileId} could not delete sandbox files:`, err);
142
+ });
143
+ // Same for its artifacts — they belong to the agent, so they go with it. Best effort:
144
+ // a store that is down must not leave the agent half-deleted.
145
+ await this.artifactHub.releaseAgentData(profileId).catch((err) => {
146
+ console.warn(`[artifacts] agent=${profileId} could not delete artifacts:`, err);
147
+ });
148
+ }
149
+ // ── Lifecycle ──
150
+ async initialize() {
151
+ await this.persistence.initialize?.();
152
+ const profiles = await this.persistence.agents.list();
153
+ for (const profile of profiles) {
154
+ if (!this.agents.get(profile.id)) {
155
+ this.agents.spawn(profile);
156
+ }
157
+ }
158
+ }
159
+ async dispose() {
160
+ for (const agent of this.agents.list()) {
161
+ await agent.dispose();
162
+ }
163
+ // Stops the shared sandbox; files are kept for the next start.
164
+ await this.sandboxHub.dispose();
165
+ await this.persistence.dispose?.();
166
+ }
167
+ }
168
+ //# sourceMappingURL=agent-core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-core.js","sourceRoot":"","sources":["../src/agent-core.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAE9F,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qEAAqE,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,qCA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AAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,OAAO;QACX,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;YACvC,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACxB,CAAC;QACD,+DAA+D;QAC/D,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC;IACrC,CAAC;CACF"}
@@ -0,0 +1,31 @@
1
+ import type { SandboxView } from "../sandbox-hub/types/sandbox.js";
2
+ import type { ArtifactStore } from "../persistence-hub/types/artifact-store.js";
3
+ import type { Artifact, ArtifactQuery, ArtifactRead, ArtifactReadOptions, ArtifactRef, ArtifactVersion, ArtifactView, ArtifactWrite, SaveArtifactInput, UpdateArtifactInput } from "./types/artifact.js";
4
+ export declare class AgentArtifactView implements ArtifactView {
5
+ readonly agentId: string;
6
+ private resolveStore;
7
+ readonly sessionId?: string | undefined;
8
+ constructor(agentId: string, resolveStore: () => ArtifactStore, sessionId?: string | undefined);
9
+ save(input: SaveArtifactInput, sandbox: SandboxView): Promise<ArtifactWrite>;
10
+ update(input: UpdateArtifactInput, sandbox: SandboxView): Promise<ArtifactWrite>;
11
+ get(ref: ArtifactRef): Promise<Artifact>;
12
+ read(ref: ArtifactRef, sandbox: SandboxView, opts?: ArtifactReadOptions): Promise<ArtifactRead>;
13
+ list(query?: ArtifactQuery): Promise<Artifact[]>;
14
+ versions(ref: ArtifactRef): Promise<ArtifactVersion[]>;
15
+ delete(ref: ArtifactRef): Promise<void>;
16
+ /** id or name -> the agent's own artifact. Another agent's artifact is "not_found". */
17
+ private resolveArtifact;
18
+ /** Writes inline content and tracks it, or tracks an existing file — the only two ways to create v1. */
19
+ private resolveNewFile;
20
+ /**
21
+ * Where an update writes/re-tracks: input.path wins; otherwise the artifact's own path when the
22
+ * caller is in the same sandbox it was tracked in; otherwise, with inline content, a fresh
23
+ * `artifacts/<name>`. Re-tracking (no content, no path) from a different sandbox has nothing to
24
+ * point at, so it fails clearly instead of guessing.
25
+ */
26
+ private resolveUpdateTarget;
27
+ private writeAndTrack;
28
+ private trackExisting;
29
+ private buildVersion;
30
+ }
31
+ //# sourceMappingURL=agent-artifact-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-artifact-view.d.ts","sourceRoot":"","sources":["../../../src/components/artifact-hub/agent-artifact-view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,EACV,QAAQ,EAER,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AA6B7B,qBAAa,iBAAkB,YAAW,YAAY;IAElD,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,OAAO,CAAC,YAAY;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM;IAH7B,YACW,OAAO,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,aAAa,EAChC,SAAS,CAAC,EAAE,MAAM,YAAA,EACzB;IAEE,IAAI,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAqCjF;IAEK,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAuCrF;IAEK,GAAG,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAE7C;IAEK,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,GAAE,mBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC,CAkCxG;IAEK,IAAI,CAAC,KAAK,GAAE,aAAkB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAYzD;IAEK,QAAQ,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAI3D;IAEK,MAAM,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAI5C;IAID,uFAAuF;YACzE,eAAe;IAmB7B,wGAAwG;YAC1F,cAAc;IAa5B;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;YAYb,aAAa;YAKb,aAAa;IAe3B,OAAO,CAAC,YAAY;CAyBrB"}
@@ -0,0 +1,264 @@
1
+ import { ArtifactError } from "../../kernel/errors/artifact-error.js";
2
+ import { SandboxError } from "../../kernel/errors/sandbox-error.js";
3
+ // ---------------------------------------------------------------------------
4
+ // AgentArtifactView — one agent's window on the artifact store. A sandbox
5
+ // backs every artifact: save/update write or track a file there, and read
6
+ // always goes back to it live rather than to a stored copy.
7
+ //
8
+ // Every read and every write is filtered by agentId: an artifact belonging to
9
+ // another agent behaves exactly like one that does not exist ("not_found"), so
10
+ // artifact ids cannot be used to probe or overwrite another agent's outputs.
11
+ // ---------------------------------------------------------------------------
12
+ /** Names may nest ("reports/q3.md") but must not look like paths that walk out of anywhere. */
13
+ const NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9 ._\-/]{0,199}$/;
14
+ const TYPE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._+\-/]{0,99}$/;
15
+ const MAX_NOTE_LENGTH = 500;
16
+ const MAX_DESCRIPTION_LENGTH = 1000;
17
+ const MAX_TAGS = 20;
18
+ const MAX_TAG_LENGTH = 50;
19
+ /** SandboxError codes that mean "the file just is not there" — mapped to a missing state instead of thrown/propagated as-is. */
20
+ const MISSING_FILE_CODES = new Set(["not_found", "invalid_path", "path_escape"]);
21
+ export class AgentArtifactView {
22
+ agentId;
23
+ resolveStore;
24
+ sessionId;
25
+ constructor(agentId, resolveStore, sessionId) {
26
+ this.agentId = agentId;
27
+ this.resolveStore = resolveStore;
28
+ this.sessionId = sessionId;
29
+ }
30
+ async save(input, sandbox) {
31
+ const store = this.resolveStore();
32
+ const name = checkName(input.name);
33
+ const type = checkType(input.type);
34
+ const existing = await store.findByName(this.agentId, name);
35
+ if (existing) {
36
+ throw new ArtifactError(`This agent already has an artifact named "${name}" (v${existing.version}) — use update_artifact to change it`, "name_conflict", existing.id);
37
+ }
38
+ const tracked = await this.resolveNewFile(input, sandbox, name);
39
+ const now = new Date().toISOString();
40
+ const artifact = {
41
+ id: crypto.randomUUID(),
42
+ agentId: this.agentId,
43
+ name,
44
+ type,
45
+ ...(checkDescription(input.description) ? { description: checkDescription(input.description) } : {}),
46
+ ...(checkTags(input.tags) ? { tags: checkTags(input.tags) } : {}),
47
+ ...(this.sessionId ? { sessionId: this.sessionId } : {}),
48
+ version: 1,
49
+ sandboxPath: tracked.path,
50
+ sandboxId: sandbox.id,
51
+ bytes: tracked.bytes,
52
+ sha256: tracked.sha256,
53
+ createdAt: now,
54
+ updatedAt: now,
55
+ };
56
+ const version = this.buildVersion(artifact.id, 1, tracked, now, input, sandbox);
57
+ await store.create(artifact, version);
58
+ return { artifact, version };
59
+ }
60
+ async update(input, sandbox) {
61
+ const store = this.resolveStore();
62
+ const current = await this.resolveArtifact(input);
63
+ if (input.expectedVersion !== undefined && input.expectedVersion !== current.version) {
64
+ throw new ArtifactError(`"${current.name}" is at v${current.version}, not v${input.expectedVersion} — read it again before updating`, "conflict", current.id);
65
+ }
66
+ const target = this.resolveUpdateTarget(input, current, sandbox);
67
+ const tracked = typeof input.content === "string"
68
+ ? await this.writeAndTrack(target, input.content, sandbox)
69
+ : await this.trackExisting(target, sandbox);
70
+ const description = input.description === undefined ? current.description : checkDescription(input.description);
71
+ const tags = input.tags === undefined ? current.tags : checkTags(input.tags);
72
+ const now = new Date().toISOString();
73
+ const next = {
74
+ ...current,
75
+ ...(description ? { description } : {}),
76
+ ...(tags ? { tags } : {}),
77
+ version: current.version + 1,
78
+ sandboxPath: tracked.path,
79
+ sandboxId: sandbox.id,
80
+ bytes: tracked.bytes,
81
+ sha256: tracked.sha256,
82
+ updatedAt: now,
83
+ };
84
+ // An emptied description/tag list must actually clear the field, not keep the old value.
85
+ if (!description)
86
+ delete next.description;
87
+ if (!tags)
88
+ delete next.tags;
89
+ const version = this.buildVersion(next.id, next.version, tracked, now, input, sandbox);
90
+ await store.addVersion(next, version);
91
+ return { artifact: next, version };
92
+ }
93
+ async get(ref) {
94
+ return this.resolveArtifact(ref);
95
+ }
96
+ async read(ref, sandbox, opts = {}) {
97
+ const artifact = await this.resolveArtifact(ref);
98
+ if (sandbox.id !== artifact.sandboxId) {
99
+ return {
100
+ artifact,
101
+ file: missingFile(artifact.sandboxPath, artifact.sandboxId, `"${artifact.name}" was tracked in sandbox "${artifact.sandboxId}", not "${sandbox.id}"`),
102
+ };
103
+ }
104
+ try {
105
+ const file = await sandbox.readFile(artifact.sandboxPath, { maxBytes: opts.maxBytes });
106
+ return {
107
+ artifact,
108
+ file: {
109
+ status: file.sha256 === artifact.sha256 ? "current" : "changed",
110
+ path: file.path,
111
+ sandboxId: sandbox.id,
112
+ content: file.content,
113
+ size: file.size,
114
+ sha256: file.sha256,
115
+ truncated: file.truncated,
116
+ },
117
+ };
118
+ }
119
+ catch (error) {
120
+ if (error instanceof SandboxError && MISSING_FILE_CODES.has(error.code)) {
121
+ return { artifact, file: missingFile(artifact.sandboxPath, sandbox.id, error.message) };
122
+ }
123
+ throw error;
124
+ }
125
+ }
126
+ async list(query = {}) {
127
+ const store = this.resolveStore();
128
+ return store.query({
129
+ agentId: this.agentId,
130
+ ...(query.sessionId ? { sessionId: query.sessionId } : {}),
131
+ ...(query.types?.length ? { types: query.types } : {}),
132
+ ...(query.name ? { name: query.name } : {}),
133
+ ...(query.tags?.length ? { tags: query.tags } : {}),
134
+ ...(query.since ? { since: query.since } : {}),
135
+ ...(query.before ? { before: query.before } : {}),
136
+ ...(query.limit ? { limit: query.limit } : {}),
137
+ });
138
+ }
139
+ async versions(ref) {
140
+ const store = this.resolveStore();
141
+ const artifact = await this.resolveArtifact(ref);
142
+ return store.listVersions(artifact.id);
143
+ }
144
+ async delete(ref) {
145
+ const store = this.resolveStore();
146
+ const artifact = await this.resolveArtifact(ref);
147
+ await store.delete(artifact.id);
148
+ }
149
+ // ── Internals ──
150
+ /** id or name -> the agent's own artifact. Another agent's artifact is "not_found". */
151
+ async resolveArtifact(ref) {
152
+ const store = this.resolveStore();
153
+ const id = typeof ref.id === "string" ? ref.id.trim() : "";
154
+ const name = typeof ref.name === "string" ? ref.name.trim() : "";
155
+ if (!id && !name) {
156
+ throw new ArtifactError('Give either "id" or "name" to identify the artifact', "invalid_argument");
157
+ }
158
+ const found = id ? await store.get(id) : await store.findByName(this.agentId, name);
159
+ if (!found || found.agentId !== this.agentId) {
160
+ throw new ArtifactError(`No artifact ${id ? `with id "${id}"` : `named "${name}"`} belongs to this agent`, "not_found", id || undefined);
161
+ }
162
+ return found;
163
+ }
164
+ /** Writes inline content and tracks it, or tracks an existing file — the only two ways to create v1. */
165
+ async resolveNewFile(input, sandbox, name) {
166
+ if (typeof input.content === "string") {
167
+ return this.writeAndTrack(input.path?.trim() || `artifacts/${name}`, input.content, sandbox);
168
+ }
169
+ if (input.path?.trim()) {
170
+ return this.trackExisting(input.path.trim(), sandbox);
171
+ }
172
+ throw new ArtifactError('Give either "content" (text to write and track) or "path" (an existing sandbox file to track)', "invalid_argument");
173
+ }
174
+ /**
175
+ * Where an update writes/re-tracks: input.path wins; otherwise the artifact's own path when the
176
+ * caller is in the same sandbox it was tracked in; otherwise, with inline content, a fresh
177
+ * `artifacts/<name>`. Re-tracking (no content, no path) from a different sandbox has nothing to
178
+ * point at, so it fails clearly instead of guessing.
179
+ */
180
+ resolveUpdateTarget(input, current, sandbox) {
181
+ const explicit = input.path?.trim();
182
+ if (explicit)
183
+ return explicit;
184
+ if (sandbox.id === current.sandboxId)
185
+ return current.sandboxPath;
186
+ if (typeof input.content === "string")
187
+ return `artifacts/${current.name}`;
188
+ throw new ArtifactError(`"${current.name}" was tracked in sandbox "${current.sandboxId}", not "${sandbox.id}" — pass "from_path" or "content" to track it here`, "file_missing", current.id);
189
+ }
190
+ async writeAndTrack(path, content, sandbox) {
191
+ const written = await sandbox.writeFile(path, content);
192
+ return { path: written.path, bytes: written.bytes, sha256: written.sha256 };
193
+ }
194
+ async trackExisting(path, sandbox) {
195
+ try {
196
+ const file = await sandbox.readFile(path, { maxBytes: 1 });
197
+ return { path: file.path, bytes: file.size, sha256: file.sha256 };
198
+ }
199
+ catch (error) {
200
+ if (error instanceof SandboxError && MISSING_FILE_CODES.has(error.code)) {
201
+ throw new ArtifactError(`"${path}" is not in sandbox "${sandbox.id}" (${error.code}) — write it first, or pass content`, "file_missing");
202
+ }
203
+ throw error;
204
+ }
205
+ }
206
+ buildVersion(artifactId, version, tracked, createdAt, input, sandbox) {
207
+ const note = typeof input.note === "string" ? input.note.trim().slice(0, MAX_NOTE_LENGTH) : "";
208
+ return {
209
+ artifactId,
210
+ version,
211
+ bytes: tracked.bytes,
212
+ sha256: tracked.sha256,
213
+ createdAt,
214
+ ...(note ? { note } : {}),
215
+ origin: {
216
+ agentId: this.agentId,
217
+ ...(this.sessionId ? { sessionId: this.sessionId } : {}),
218
+ ...(input.tool ? { tool: input.tool } : {}),
219
+ sandboxPath: tracked.path,
220
+ sandboxId: sandbox.id,
221
+ },
222
+ };
223
+ }
224
+ }
225
+ function missingFile(path, sandboxId, reason) {
226
+ return { status: "missing", path, sandboxId, reason };
227
+ }
228
+ function checkName(name) {
229
+ const value = typeof name === "string" ? name.trim() : "";
230
+ if (!NAME_PATTERN.test(value) || value.includes("..") || value.includes("//") || value.endsWith("/")) {
231
+ throw new ArtifactError('Artifact name must be 1-200 characters of letters, digits, spaces, ".", "_", "-" or "/" (e.g. "reports/clash-report.md")', "invalid_argument");
232
+ }
233
+ return value;
234
+ }
235
+ function checkType(type) {
236
+ const value = typeof type === "string" ? type.trim() : "";
237
+ if (!TYPE_PATTERN.test(value)) {
238
+ throw new ArtifactError('Artifact type must be a MIME type ("text/markdown") or a domain type ("aec/takeoff")', "invalid_argument");
239
+ }
240
+ return value;
241
+ }
242
+ function checkDescription(description) {
243
+ if (description === undefined || description === null)
244
+ return undefined;
245
+ if (typeof description !== "string") {
246
+ throw new ArtifactError("Artifact description must be a string", "invalid_argument");
247
+ }
248
+ const value = description.trim().slice(0, MAX_DESCRIPTION_LENGTH);
249
+ return value || undefined;
250
+ }
251
+ function checkTags(tags) {
252
+ if (tags === undefined || tags === null)
253
+ return undefined;
254
+ if (!Array.isArray(tags)) {
255
+ throw new ArtifactError("Artifact tags must be an array of strings", "invalid_argument");
256
+ }
257
+ const cleaned = tags
258
+ .filter((tag) => typeof tag === "string")
259
+ .map((tag) => tag.trim().slice(0, MAX_TAG_LENGTH))
260
+ .filter(Boolean)
261
+ .slice(0, MAX_TAGS);
262
+ return cleaned.length ? [...new Set(cleaned)] : undefined;
263
+ }
264
+ //# sourceMappingURL=agent-artifact-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-artifact-view.js","sourceRoot":"","sources":["../../../src/components/artifact-hub/agent-artifact-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAiBpE,8EAA8E;AAC9E,0EAA0E;AAC1E,0EAA0E;AAC1E,4DAA4D;AAC5D,EAAE;AACF,8EAA8E;AAC9E,+EAA+E;AAC/E,6EAA6E;AAC7E,8EAA8E;AAE9E,+FAA+F;AAC/F,MAAM,YAAY,GAAG,uCAAuC,CAAC;AAC7D,MAAM,YAAY,GAAG,sCAAsC,CAAC;AAC5D,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,MAAM,sBAAsB,GAAG,IAAI,CAAC;AACpC,MAAM,QAAQ,GAAG,EAAE,CAAC;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,CAAC;IAClE,OAAO,KAAK,IAAI,SAAS,CAAC;AAC5B,CAAC;AAED,SAAS,SAAS,CAAC,IAAa;IAC9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC1D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,aAAa,CAAC,2CAA2C,EAAE,kBAAkB,CAAC,CAAC;IAC3F,CAAC;IACD,MAAM,OAAO,GAAG,IAAI;SACjB,MAAM,CAAC,CAAC,GAAG,EAAiB,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC;SACvD,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;SACjD,MAAM,CAAC,OAAO,CAAC;SACf,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IACtB,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { Plugin } from "../../kernel/interfaces/plugin.js";
2
+ import type { ArtifactStore } from "../persistence-hub/types/artifact-store.js";
3
+ import type { ArtifactView } from "./types/artifact.js";
4
+ /**
5
+ * Global hub for artifacts (A-62) — like ToolHub / SandboxHub, AgentCore owns one.
6
+ *
7
+ * ArtifactHub (agent scoping)
8
+ * └─ PersistenceHub.artifacts the durable store (in-memory by default, Postgres on the server)
9
+ *
10
+ * The hub itself keeps no state: it hands out a per-agent ArtifactView, which is
11
+ * what enforces ownership on every call. The store is resolved lazily through the
12
+ * callback so a later `core.usePersistence(hub)` swap reaches views handed out earlier.
13
+ */
14
+ export declare class ArtifactHub implements Plugin {
15
+ private getStore;
16
+ readonly name = "artifact-hub";
17
+ readonly version = "1.0.0";
18
+ constructor(getStore: () => ArtifactStore | undefined);
19
+ /** The view one agent works through. `sessionId` is stamped on versions written through it. */
20
+ forAgent(agentId: string, sessionId?: string): ArtifactView;
21
+ /** Retention: an agent's artifacts live until the agent is deleted. */
22
+ releaseAgentData(agentId: string): Promise<void>;
23
+ private store;
24
+ }
25
+ //# sourceMappingURL=artifact-hub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-hub.d.ts","sourceRoot":"","sources":["../../../src/components/artifact-hub/artifact-hub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;;;;;GASG;AACH,qBAAa,WAAY,YAAW,MAAM;IAI5B,OAAO,CAAC,QAAQ;IAH5B,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,OAAO,WAAW;IAE3B,YAAoB,QAAQ,EAAE,MAAM,aAAa,GAAG,SAAS,EAAI;IAEjE,+FAA+F;IAC/F,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAK1D;IAED,uEAAuE;IACjE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErD;IAED,OAAO,CAAC,KAAK;CAOd"}