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
@@ -0,0 +1,39 @@
1
+ import { ArtifactError } from "../../kernel/errors/artifact-error.js";
2
+ import { AgentArtifactView } from "./agent-artifact-view.js";
3
+ /**
4
+ * Global hub for artifacts (A-62) — like ToolHub / SandboxHub, AgentCore owns one.
5
+ *
6
+ * ArtifactHub (agent scoping)
7
+ * └─ PersistenceHub.artifacts the durable store (in-memory by default, Postgres on the server)
8
+ *
9
+ * The hub itself keeps no state: it hands out a per-agent ArtifactView, which is
10
+ * what enforces ownership on every call. The store is resolved lazily through the
11
+ * callback so a later `core.usePersistence(hub)` swap reaches views handed out earlier.
12
+ */
13
+ export class ArtifactHub {
14
+ getStore;
15
+ name = "artifact-hub";
16
+ version = "1.0.0";
17
+ constructor(getStore) {
18
+ this.getStore = getStore;
19
+ }
20
+ /** The view one agent works through. `sessionId` is stamped on versions written through it. */
21
+ forAgent(agentId, sessionId) {
22
+ if (typeof agentId !== "string" || !agentId.trim()) {
23
+ throw new ArtifactError("An agent id is required to reach artifacts", "invalid_argument");
24
+ }
25
+ return new AgentArtifactView(agentId, () => this.store(), sessionId);
26
+ }
27
+ /** Retention: an agent's artifacts live until the agent is deleted. */
28
+ async releaseAgentData(agentId) {
29
+ await this.store().deleteByAgent(agentId);
30
+ }
31
+ store() {
32
+ const store = this.getStore();
33
+ if (!store) {
34
+ throw new ArtifactError("No artifact store is configured on this server", "not_configured");
35
+ }
36
+ return store;
37
+ }
38
+ }
39
+ //# sourceMappingURL=artifact-hub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-hub.js","sourceRoot":"","sources":["../../../src/components/artifact-hub/artifact-hub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D;;;;;;;;;GASG;AACH,MAAM,OAAO,WAAW;IAIF,QAAQ;IAHnB,IAAI,GAAG,cAAc,CAAC;IACtB,OAAO,GAAG,OAAO,CAAC;IAE3B,YAAoB,QAAyC;wBAAzC,QAAQ;IAAoC,CAAC;IAEjE,+FAA+F;IAC/F,QAAQ,CAAC,OAAe,EAAE,SAAkB;QAC1C,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;YACnD,MAAM,IAAI,aAAa,CAAC,4CAA4C,EAAE,kBAAkB,CAAC,CAAC;QAC5F,CAAC;QACD,OAAO,IAAI,iBAAiB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,SAAS,CAAC,CAAC;IACvE,CAAC;IAED,uEAAuE;IACvE,KAAK,CAAC,gBAAgB,CAAC,OAAe;QACpC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAEO,KAAK;QACX,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,aAAa,CAAC,gDAAgD,EAAE,gBAAgB,CAAC,CAAC;QAC9F,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
@@ -0,0 +1,158 @@
1
+ import type { SandboxView } from "../../sandbox-hub/types/sandbox.js";
2
+ /** Where one version came from — agent, session, tool, and the sandbox file it tracked. */
3
+ export interface ArtifactOrigin {
4
+ agentId: string;
5
+ /** Session the version was written in, when it was written during a chat turn. */
6
+ sessionId?: string;
7
+ /** Tool that produced it, e.g. "save_artifact". Absent when written through the SDK directly. */
8
+ tool?: string;
9
+ /** Logical sandbox path of the file this version tracked. */
10
+ sandboxPath: string;
11
+ /** Id of the sandbox the file lived in, e.g. "docker:shared". */
12
+ sandboxId: string;
13
+ }
14
+ /**
15
+ * An artifact's head record — metadata plus the tracked file's last-known
16
+ * size and hash. The content lives only in the sandbox file at sandboxPath;
17
+ * nothing here, or in any version, is a copy of it.
18
+ */
19
+ export interface Artifact {
20
+ id: string;
21
+ /** Owning agent (AgentProfile.id). Every read path is filtered by it. */
22
+ agentId: string;
23
+ /** Stable name, unique per agent — what the agent refers to the artifact by. */
24
+ name: string;
25
+ /** MIME type ("text/markdown") or a domain type ("aec/takeoff"). */
26
+ type: string;
27
+ description?: string;
28
+ tags?: string[];
29
+ /** Session the artifact was first created in (provenance only — artifacts outlive sessions). */
30
+ sessionId?: string;
31
+ /** Head version number. Versions are 1-based and contiguous. */
32
+ version: number;
33
+ /** Canonical logical path of the tracked file. */
34
+ sandboxPath: string;
35
+ /** Id of the sandbox the tracked file lives in, e.g. "docker:shared". */
36
+ sandboxId: string;
37
+ /** Bytes of the tracked file as of the last save/update/re-track. */
38
+ bytes: number;
39
+ /** sha256 (hex) of the tracked file as of the last save/update/re-track. */
40
+ sha256: string;
41
+ createdAt: string;
42
+ updatedAt: string;
43
+ }
44
+ /** One entry of an artifact's content-less history log. */
45
+ export interface ArtifactVersion {
46
+ artifactId: string;
47
+ /** 1-based, contiguous. */
48
+ version: number;
49
+ bytes: number;
50
+ sha256: string;
51
+ createdAt: string;
52
+ /** The agent's own note on why this version exists ("added cost column"). */
53
+ note?: string;
54
+ origin: ArtifactOrigin;
55
+ }
56
+ export type ArtifactFileStatus = "current" | "changed" | "missing";
57
+ /** The tracked file's live state, read straight from the sandbox — never stored. */
58
+ export type ArtifactFile = {
59
+ status: "current" | "changed";
60
+ /** Canonical logical path the content was read from. */
61
+ path: string;
62
+ sandboxId: string;
63
+ content: string;
64
+ /** Size of the whole file in bytes (before any maxBytes truncation). */
65
+ size: number;
66
+ /** sha256 (hex) of the whole file. */
67
+ sha256: string;
68
+ /** true when maxBytes cut the content returned here — the file itself is untouched. */
69
+ truncated: boolean;
70
+ } | {
71
+ status: "missing";
72
+ path: string;
73
+ sandboxId: string;
74
+ /** Why the file could not be read (not found, wrong sandbox, no sandbox at all). */
75
+ reason: string;
76
+ };
77
+ /** An artifact plus its tracked file's live state — what read returns. */
78
+ export interface ArtifactRead {
79
+ artifact: Artifact;
80
+ file: ArtifactFile;
81
+ }
82
+ /** An artifact plus the version just written — what save/update return. */
83
+ export interface ArtifactWrite {
84
+ artifact: Artifact;
85
+ version: ArtifactVersion;
86
+ }
87
+ export interface ArtifactReadOptions {
88
+ /** Most bytes of the file's content to return. Omitted = the sandbox's own limits.maxReadBytes. */
89
+ maxBytes?: number;
90
+ }
91
+ /** How a caller points at an artifact: by id or by name. Old versions cannot be opened (D-02). */
92
+ export interface ArtifactRef {
93
+ id?: string;
94
+ name?: string;
95
+ }
96
+ export interface SaveArtifactInput {
97
+ name: string;
98
+ type: string;
99
+ /** Sandbox path to write (when content is given) or to track (when it is not). Default when writing: `artifacts/<name>`. */
100
+ path?: string;
101
+ /** Inline text: written to the sandbox first, then tracked. Omit to track the existing file at `path` instead. */
102
+ content?: string;
103
+ description?: string;
104
+ tags?: string[];
105
+ note?: string;
106
+ /** Tool that is saving, for ArtifactOrigin.tool. */
107
+ tool?: string;
108
+ }
109
+ export interface UpdateArtifactInput extends ArtifactRef {
110
+ path?: string;
111
+ content?: string;
112
+ /** Replaces the description when given; omitted leaves it as it is. */
113
+ description?: string;
114
+ /** Replaces the tag list when given; omitted leaves it as it is. */
115
+ tags?: string[];
116
+ note?: string;
117
+ /** Optimistic concurrency: fail with "conflict" unless the head is still this version. */
118
+ expectedVersion?: number;
119
+ tool?: string;
120
+ }
121
+ /** Filter for an agent's artifacts. The agent scope is applied by the view, not the caller. */
122
+ export interface ArtifactQuery {
123
+ /** Only artifacts first created in this session. */
124
+ sessionId?: string;
125
+ types?: string[];
126
+ /** Exact name match. */
127
+ name?: string;
128
+ /** Matches an artifact carrying any of these tags. */
129
+ tags?: string[];
130
+ /** ISO timestamps on updatedAt. */
131
+ since?: string;
132
+ before?: string;
133
+ limit?: number;
134
+ }
135
+ /**
136
+ * One agent's view of the artifact store — the only thing tools, routes and the
137
+ * SDK ever touch. Every call is scoped to `agentId`, so one agent can never read
138
+ * or overwrite another agent's artifacts. Fails closed with ArtifactError.
139
+ */
140
+ export interface ArtifactView {
141
+ readonly agentId: string;
142
+ /** Session stamped on versions written through this view (provenance). */
143
+ readonly sessionId?: string;
144
+ /** Create a new artifact at version 1. Throws "name_conflict" if the name is taken. */
145
+ save(input: SaveArtifactInput, sandbox: SandboxView): Promise<ArtifactWrite>;
146
+ /** Append a version to an existing artifact, re-tracking (or rewriting) its file. */
147
+ update(input: UpdateArtifactInput, sandbox: SandboxView): Promise<ArtifactWrite>;
148
+ /** Metadata only — no sandbox needed. */
149
+ get(ref: ArtifactRef): Promise<Artifact>;
150
+ /** Read the tracked file live through `sandbox`. Content is bounded only by opts.maxBytes. */
151
+ read(ref: ArtifactRef, sandbox: SandboxView, opts?: ArtifactReadOptions): Promise<ArtifactRead>;
152
+ list(query?: ArtifactQuery): Promise<Artifact[]>;
153
+ /** Every version of an artifact, newest first, content-less. */
154
+ versions(ref: ArtifactRef): Promise<ArtifactVersion[]>;
155
+ /** Delete the artifact record and its history. The sandbox file is left untouched. */
156
+ delete(ref: ArtifactRef): Promise<void>;
157
+ }
158
+ //# sourceMappingURL=artifact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../../../src/components/artifact-hub/types/artifact.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE,2FAA2F;AAC3F,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,2DAA2D;AAC3D,MAAM,WAAW,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AAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAC7E,qFAAqF;IACrF,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACjF,yCAAyC;IACzC,GAAG,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzC,8FAA8F;IAC9F,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAChG,IAAI,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IACjD,gEAAgE;IAChE,QAAQ,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IACvD,sFAAsF;IACtF,MAAM,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC"}
@@ -0,0 +1,14 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Artifacts (A-62) — a metadata tracker over one file in the owning agent's
3
+ // sandbox: a report, a spec section, a CSV takeoff, a clash report.
4
+ //
5
+ // An artifact stores no content of its own. It tracks a file that lives in
6
+ // the agent's SandboxView — the file IS the deliverable, with an id, a type,
7
+ // versions and provenance layered on top so later turns, other agents and the
8
+ // UI can refer to it by name instead of re-pasting its content into the
9
+ // prompt. Reading an artifact reads that file live: current when its sha256
10
+ // still matches the last tracked one, changed when it does not (a notice,
11
+ // not an error), missing when the file (or the sandbox itself) is gone.
12
+ // ---------------------------------------------------------------------------
13
+ export {};
14
+ //# sourceMappingURL=artifact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../../../src/components/artifact-hub/types/artifact.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,4EAA4E;AAC5E,oEAAoE;AACpE,EAAE;AACF,2EAA2E;AAC3E,6EAA6E;AAC7E,8EAA8E;AAC9E,wEAAwE;AACxE,4EAA4E;AAC5E,0EAA0E;AAC1E,wEAAwE;AACxE,8EAA8E"}
@@ -0,0 +1,17 @@
1
+ import type { Event } from "../../kernel/types.js";
2
+ import type { EventBus, EventHandler, Unsubscribe } from "./types.js";
3
+ /**
4
+ * Pub-sub event to decouple between services (like MediatR in .Net)
5
+ */
6
+ export declare class EventDispatcher implements EventBus {
7
+ readonly name = "event-dispatcher";
8
+ readonly version = "1.0.0";
9
+ private handlers;
10
+ private log;
11
+ constructor(backing?: Event[]);
12
+ initialize(): Promise<void>;
13
+ emit<T>(partial: Omit<Event<T>, "id" | "timestamp">): Event<T>;
14
+ on<T>(type: string, handler: EventHandler<T>): Unsubscribe;
15
+ replay(sessionId: string, fromTimestamp?: number): AsyncIterable<Event>;
16
+ }
17
+ //# sourceMappingURL=event-dispatcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-dispatcher.d.ts","sourceRoot":"","sources":["../../../src/components/event-handler/event-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEtE;;GAEG;AACH,qBAAa,eAAgB,YAAW,QAAQ;IAC9C,QAAQ,CAAC,IAAI,sBAAsB;IACnC,QAAQ,CAAC,OAAO,WAAW;IAE3B,OAAO,CAAC,QAAQ,CAAwC;IACxD,OAAO,CAAC,GAAG,CAAU;IAErB,YAAY,OAAO,CAAC,EAAE,KAAK,EAAE,EAE5B;IAEK,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAG;IAEpC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAe7D;IAED,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,WAAW,CAQzD;IAEM,MAAM,CACX,SAAS,EAAE,MAAM,EACjB,aAAa,CAAC,EAAE,MAAM,GACrB,aAAa,CAAC,KAAK,CAAC,CAMtB;CACF"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Pub-sub event to decouple between services (like MediatR in .Net)
3
+ */
4
+ export class EventDispatcher {
5
+ name = "event-dispatcher";
6
+ version = "1.0.0";
7
+ handlers = new Map();
8
+ log;
9
+ constructor(backing) {
10
+ this.log = backing ?? [];
11
+ }
12
+ async initialize() { }
13
+ emit(partial) {
14
+ const event = {
15
+ ...partial,
16
+ id: crypto.randomUUID(),
17
+ timestamp: Date.now(),
18
+ };
19
+ this.log.push(event);
20
+ const set = this.handlers.get(event.type);
21
+ if (set) {
22
+ for (const handler of set) {
23
+ handler(event);
24
+ }
25
+ }
26
+ return event;
27
+ }
28
+ on(type, handler) {
29
+ let set = this.handlers.get(type);
30
+ if (!set) {
31
+ set = new Set();
32
+ this.handlers.set(type, set);
33
+ }
34
+ set.add(handler);
35
+ return () => set.delete(handler);
36
+ }
37
+ async *replay(sessionId, fromTimestamp) {
38
+ for (const event of this.log) {
39
+ if (event.sessionId !== sessionId)
40
+ continue;
41
+ if (fromTimestamp && event.timestamp < fromTimestamp)
42
+ continue;
43
+ yield event;
44
+ }
45
+ }
46
+ }
47
+ //# sourceMappingURL=event-dispatcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-dispatcher.js","sourceRoot":"","sources":["../../../src/components/event-handler/event-dispatcher.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,OAAO,eAAe;IACjB,IAAI,GAAG,kBAAkB,CAAC;IAC1B,OAAO,GAAG,OAAO,CAAC;IAEnB,QAAQ,GAA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BAAE,SAAS;YAC5C,IAAI,aAAa,IAAI,KAAK,CAAC,SAAS,GAAG,aAAa;gBAAE,SAAS;YAC/D,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,154 @@
1
+ import type { TokenUsage } from "../../kernel/types.js";
2
+ export declare const SDKEventType: {
3
+ readonly UserMessage: "agent-loop:message";
4
+ readonly Iteration: "agent-loop:iteration";
5
+ readonly ModelRequested: "agent-loop:model-request";
6
+ readonly ModelResponded: "agent-loop:model-response";
7
+ readonly ToolDispatched: "agent-loop:tool-start";
8
+ readonly ToolCompleted: "agent-loop:tool-end";
9
+ readonly ToolRetry: "agent-loop:tool-retry";
10
+ readonly ToolFailed: "agent-loop:tool-error";
11
+ readonly ToolDenied: "agent-loop:tool-denied";
12
+ readonly ToolApprovalRequested: "agent-loop:tool-approval-request";
13
+ readonly ToolApprovalResolved: "agent-loop:tool-approval-result";
14
+ readonly SkillDispatched: "agent-loop:skill-start";
15
+ readonly SkillCompleted: "agent-loop:skill-end";
16
+ readonly SkillRetry: "agent-loop:skill-retry";
17
+ readonly SkillFailed: "agent-loop:skill-error";
18
+ readonly RunCompleted: "agent-loop:complete";
19
+ readonly MaxIterationsReached: "agent-loop:max-iterations";
20
+ readonly ArtifactSaved: "artifact:saved";
21
+ readonly ArtifactUpdated: "artifact:updated";
22
+ readonly ArtifactDeleted: "artifact:deleted";
23
+ readonly JobCompleted: "scheduled-job:completed";
24
+ readonly JobFailed: "scheduled-job:error";
25
+ };
26
+ export type SDKEventTypeValue = typeof SDKEventType[keyof typeof SDKEventType];
27
+ export interface UserMessagePayload {
28
+ agentId: string;
29
+ role: string;
30
+ content: string;
31
+ }
32
+ export interface IterationPayload {
33
+ agentId: string;
34
+ iteration: number;
35
+ maxIterations: number;
36
+ }
37
+ export interface ModelRequestedPayload {
38
+ agentId: string;
39
+ iteration: number;
40
+ toolCount: number;
41
+ }
42
+ export interface ModelRespondedPayload {
43
+ agentId: string;
44
+ stopReason: string;
45
+ usage?: TokenUsage;
46
+ hasToolCalls: boolean;
47
+ }
48
+ export interface DispatchStartPayload {
49
+ agentId: string;
50
+ name: string;
51
+ arguments: Record<string, unknown>;
52
+ }
53
+ export interface DispatchEndPayload {
54
+ agentId: string;
55
+ name: string;
56
+ isError: boolean;
57
+ attempt: number;
58
+ }
59
+ export interface DispatchRetryPayload {
60
+ agentId: string;
61
+ name: string;
62
+ attempt: number;
63
+ reason: string;
64
+ }
65
+ export interface DispatchFailedPayload {
66
+ agentId: string;
67
+ name: string;
68
+ error: string;
69
+ }
70
+ export interface ToolDeniedPayload {
71
+ agentId: string;
72
+ name: string;
73
+ reason?: string;
74
+ }
75
+ export interface ToolApprovalRequestedPayload {
76
+ agentId: string;
77
+ name: string;
78
+ toolCallId: string;
79
+ risk: string;
80
+ arguments: Record<string, unknown>;
81
+ }
82
+ export interface ToolApprovalResolvedPayload {
83
+ agentId: string;
84
+ name: string;
85
+ toolCallId: string;
86
+ approved: boolean;
87
+ reason?: string;
88
+ waitedMs: number;
89
+ }
90
+ export interface RunCompletedPayload {
91
+ agentId: string;
92
+ iterations: number;
93
+ totalUsage: TokenUsage;
94
+ /** True when the run was stopped through RunOptions.signal instead of ending naturally (A-65). */
95
+ aborted?: boolean;
96
+ }
97
+ export interface MaxIterationsPayload {
98
+ agentId: string;
99
+ iterations: number;
100
+ totalUsage: TokenUsage;
101
+ }
102
+ export interface JobCompletedPayload {
103
+ agentId: string;
104
+ jobName: string;
105
+ output: unknown;
106
+ }
107
+ export interface JobFailedPayload {
108
+ agentId: string;
109
+ jobName: string;
110
+ error: string;
111
+ }
112
+ /** An artifact version was written (A-62). Emitted for both the first version and later ones. */
113
+ export interface ArtifactWrittenPayload {
114
+ agentId: string;
115
+ artifactId: string;
116
+ name: string;
117
+ type: string;
118
+ version: number;
119
+ bytes: number;
120
+ /** Sandbox path of the file this version tracks. */
121
+ sandboxPath: string;
122
+ /** Id of the sandbox the tracked file lives in. */
123
+ sandboxId: string;
124
+ }
125
+ export interface ArtifactDeletedPayload {
126
+ agentId: string;
127
+ artifactId: string;
128
+ name: string;
129
+ }
130
+ export interface SDKEventPayloadMap {
131
+ [SDKEventType.UserMessage]: UserMessagePayload;
132
+ [SDKEventType.Iteration]: IterationPayload;
133
+ [SDKEventType.ModelRequested]: ModelRequestedPayload;
134
+ [SDKEventType.ModelResponded]: ModelRespondedPayload;
135
+ [SDKEventType.ToolDispatched]: DispatchStartPayload;
136
+ [SDKEventType.ToolCompleted]: DispatchEndPayload;
137
+ [SDKEventType.ToolRetry]: DispatchRetryPayload;
138
+ [SDKEventType.ToolFailed]: DispatchFailedPayload;
139
+ [SDKEventType.ToolDenied]: ToolDeniedPayload;
140
+ [SDKEventType.ToolApprovalRequested]: ToolApprovalRequestedPayload;
141
+ [SDKEventType.ToolApprovalResolved]: ToolApprovalResolvedPayload;
142
+ [SDKEventType.SkillDispatched]: DispatchStartPayload;
143
+ [SDKEventType.SkillCompleted]: DispatchEndPayload;
144
+ [SDKEventType.SkillRetry]: DispatchRetryPayload;
145
+ [SDKEventType.SkillFailed]: DispatchFailedPayload;
146
+ [SDKEventType.RunCompleted]: RunCompletedPayload;
147
+ [SDKEventType.MaxIterationsReached]: MaxIterationsPayload;
148
+ [SDKEventType.ArtifactSaved]: ArtifactWrittenPayload;
149
+ [SDKEventType.ArtifactUpdated]: ArtifactWrittenPayload;
150
+ [SDKEventType.ArtifactDeleted]: ArtifactDeletedPayload;
151
+ [SDKEventType.JobCompleted]: JobCompletedPayload;
152
+ [SDKEventType.JobFailed]: JobFailedPayload;
153
+ }
154
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/components/event-handler/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMxD,eAAO,MAAM,YAAY;aACvB,WAAW,EAAW,oBAAoB;aAC1C,SAAS,EAAa,sBAAs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AAC;IAC1D,CAAC,YAAY,CAAC,UAAU,CAAC,EAAY,qBAAqB,CAAC;IAC3D,CAAC,YAAY,CAAC,UAAU,CAAC,EAAY,iBAAiB,CAAC;IACvD,CAAC,YAAY,CAAC,qBAAqB,CAAC,EAAE,4BAA4B,CAAC;IACnE,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,2BAA2B,CAAC;IACjE,CAAC,YAAY,CAAC,eAAe,CAAC,EAAO,oBAAoB,CAAC;IAC1D,CAAC,YAAY,CAAC,cAAc,CAAC,EAAQ,kBAAkB,CAAC;IACxD,CAAC,YAAY,CAAC,UAAU,CAAC,EAAY,oBAAoB,CAAC;IAC1D,CAAC,YAAY,CAAC,WAAW,CAAC,EAAW,qBAAqB,CAAC;IAC3D,CAAC,YAAY,CAAC,YAAY,CAAC,EAAU,mBAAmB,CAAC;IACzD,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC1D,CAAC,YAAY,CAAC,aAAa,CAAC,EAAS,sBAAsB,CAAC;IAC5D,CAAC,YAAY,CAAC,eAAe,CAAC,EAAO,sBAAsB,CAAC;IAC5D,CAAC,YAAY,CAAC,eAAe,CAAC,EAAO,sBAAsB,CAAC;IAC5D,CAAC,YAAY,CAAC,YAAY,CAAC,EAAU,mBAAmB,CAAC;IACzD,CAAC,YAAY,CAAC,SAAS,CAAC,EAAa,gBAAgB,CAAC;CACvD"}
@@ -0,0 +1,28 @@
1
+ // ---------------------------------------------------------------------------
2
+ // SDK event type constants — single source of truth for all event type strings
3
+ // ---------------------------------------------------------------------------
4
+ export const SDKEventType = {
5
+ UserMessage: "agent-loop:message",
6
+ Iteration: "agent-loop:iteration",
7
+ ModelRequested: "agent-loop:model-request",
8
+ ModelResponded: "agent-loop:model-response",
9
+ ToolDispatched: "agent-loop:tool-start",
10
+ ToolCompleted: "agent-loop:tool-end",
11
+ ToolRetry: "agent-loop:tool-retry",
12
+ ToolFailed: "agent-loop:tool-error",
13
+ ToolDenied: "agent-loop:tool-denied",
14
+ ToolApprovalRequested: "agent-loop:tool-approval-request",
15
+ ToolApprovalResolved: "agent-loop:tool-approval-result",
16
+ SkillDispatched: "agent-loop:skill-start",
17
+ SkillCompleted: "agent-loop:skill-end",
18
+ SkillRetry: "agent-loop:skill-retry",
19
+ SkillFailed: "agent-loop:skill-error",
20
+ RunCompleted: "agent-loop:complete",
21
+ MaxIterationsReached: "agent-loop:max-iterations",
22
+ ArtifactSaved: "artifact:saved",
23
+ ArtifactUpdated: "artifact:updated",
24
+ ArtifactDeleted: "artifact:deleted",
25
+ JobCompleted: "scheduled-job:completed",
26
+ JobFailed: "scheduled-job:error",
27
+ };
28
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/components/event-handler/events.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAE9E,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAW,oBAAoB;IAC1C,SAAS,EAAa,sBAAsB;IAC5C,cAAc,EAAQ,0BAA0B;IAChD,cAAc,EAAQ,2BAA2B;IACjD,cAAc,EAAQ,uBAAuB;IAC7C,aAAa,EAAS,qBAAqB;IAC3C,SAAS,EAAa,uBAAuB;IAC7C,UAAU,EAAY,uBAAuB;IAC7C,UAAU,EAAY,wBAAwB;IAC9C,qBAAqB,EAAE,kCAAkC;IACzD,oBAAoB,EAAE,iCAAiC;IACvD,eAAe,EAAO,wBAAwB;IAC9C,cAAc,EAAQ,sBAAsB;IAC5C,UAAU,EAAY,wBAAwB;IAC9C,WAAW,EAAW,wBAAwB;IAC9C,YAAY,EAAU,qBAAqB;IAC3C,oBAAoB,EAAE,2BAA2B;IACjD,aAAa,EAAS,gBAAgB;IACtC,eAAe,EAAO,kBAAkB;IACxC,eAAe,EAAO,kBAAkB;IACxC,YAAY,EAAU,yBAAyB;IAC/C,SAAS,EAAa,qBAAqB;CACnC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Event } from "../../kernel/types.js";
2
+ import type { Plugin } from "../../kernel/interfaces/plugin.js";
3
+ export interface EventBus extends Plugin {
4
+ emit<T>(event: Omit<Event<T>, "id" | "timestamp">): Event<T>;
5
+ on<T>(type: string, handler: EventHandler<T>): Unsubscribe;
6
+ replay(sessionId: string, fromTimestamp?: number): AsyncIterable<Event>;
7
+ }
8
+ export type EventHandler<T = unknown> = (event: Event<T>) => void | Promise<void>;
9
+ export type Unsubscribe = () => void;
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/event-handler/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAMhE,MAAM,WAAW,QAAS,SAAQ,MAAM;IACtC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7D,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC;IAC3D,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;CACzE;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAClF,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/event-handler/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import type { LLMModelProvider } from "./types.js";
2
+ /**
3
+ * Global hub for LLM Provider, during using users can switch between models when they hit session's limit.
4
+ */
5
+ export declare class LLMProviderHub {
6
+ private adapters;
7
+ private primaryName;
8
+ register(adapter: LLMModelProvider): void;
9
+ get(name: string): LLMModelProvider | undefined;
10
+ getPrimary(): LLMModelProvider;
11
+ setPrimary(name: string): void;
12
+ list(): LLMModelProvider[];
13
+ }
14
+ //# sourceMappingURL=llm-provider-hub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-provider-hub.d.ts","sourceRoot":"","sources":["../../../src/components/llm-provider-hub/llm-provider-hub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD;;GAEG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAuC;IACvD,OAAO,CAAC,WAAW,CAAuB;IAE1C,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAKxC;IAED,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAE9C;IAED,UAAU,IAAI,gBAAgB,CAK7B;IAED,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAK7B;IAED,IAAI,IAAI,gBAAgB,EAAE,CAEzB;CACF"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Global hub for LLM Provider, during using users can switch between models when they hit session's limit.
3
+ */
4
+ export class LLMProviderHub {
5
+ adapters = new Map();
6
+ primaryName = null;
7
+ register(adapter) {
8
+ this.adapters.set(adapter.name, adapter);
9
+ if (!this.primaryName) {
10
+ this.primaryName = adapter.name;
11
+ }
12
+ }
13
+ get(name) {
14
+ return this.adapters.get(name);
15
+ }
16
+ getPrimary() {
17
+ if (!this.primaryName)
18
+ throw new Error("No LLMModelProvider registered");
19
+ const adapter = this.adapters.get(this.primaryName);
20
+ if (!adapter)
21
+ throw new Error("Primary LLMModelProvider not found");
22
+ return adapter;
23
+ }
24
+ setPrimary(name) {
25
+ if (!this.adapters.has(name)) {
26
+ throw new Error(`LLMModelProvider "${name}" not registered`);
27
+ }
28
+ this.primaryName = name;
29
+ }
30
+ list() {
31
+ return [...this.adapters.values()];
32
+ }
33
+ }
34
+ //# sourceMappingURL=llm-provider-hub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-provider-hub.js","sourceRoot":"","sources":["../../../src/components/llm-provider-hub/llm-provider-hub.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,MAAM,OAAO,cAAc;IACjB,QAAQ,GAAG,IAAI,GAAG,EAA4B,CAAC;IAC/C,WAAW,GAAkB,IAAI,CAAC;IAE1C,QAAQ,CAAC,OAAyB;QAChC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;QAClC,CAAC;IACH,CAAC;IAED,GAAG,CAAC,IAAY;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,UAAU;QACR,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACzE,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACpE,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,UAAU,CAAC,IAAY;QACrB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,kBAAkB,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;IAED,IAAI;QACF,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACrC,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ import type { Message, ModelResponse, StreamChunk } from "../../../kernel/types.js";
2
+ import type { LLMModelInfo, LLMModelProvider, ModelOptions } from "../types.js";
3
+ import type { ProviderConfig } from "./types.js";
4
+ export declare class AnthropicLLMModelProvider implements LLMModelProvider {
5
+ readonly name: string;
6
+ readonly version = "1.0.0";
7
+ private client;
8
+ private defaultModel;
9
+ constructor(config: ProviderConfig);
10
+ initialize(): Promise<void>;
11
+ dispose(): Promise<void>;
12
+ chat(messages: Message[], options?: ModelOptions): Promise<ModelResponse>;
13
+ stream(messages: Message[], options?: ModelOptions): AsyncIterable<StreamChunk>;
14
+ countTokens(messages: Message[]): Promise<number>;
15
+ listModels(): Promise<LLMModelInfo[]>;
16
+ private mapMessages;
17
+ private mapResponse;
18
+ private mapStopReason;
19
+ private mapTools;
20
+ private mapError;
21
+ }
22
+ //# sourceMappingURL=anthropic-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anthropic-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/llm-provider-hub/providers/anthropic-provider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,WAAW,EAEZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,qBAAa,yBAA0B,YAAW,gBAAgB;IAChE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,WAAW;IAE3B,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,YAAY,CAAS;IAE7B,YAAY,MAAM,EAAE,cAAc,EAIjC;IAEK,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAG;IAC9B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAG;IAE3B,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAqB9E;IAEM,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CA8ErF;IAEK,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAQtD;IAEK,UAAU,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAU1C;IAED,OAAO,CAAC,WAAW;IAmDnB,OAAO,CAAC,WAAW;IAkCnB,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,QAAQ;IAehB,OAAO,CAAC,QAAQ;CAWjB"}