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,288 @@
1
+ // ---------------------------------------------------------------------------
2
+ // TraceService — the "control room" that records everything the AI agent does
3
+ //
4
+ // ANALOGY: Think of this like a security camera system in a building.
5
+ // - The TraceService is the central recording system
6
+ // - "Spans" are individual camera clips (e.g. "door opened at 2:00, closed at 2:05")
7
+ // - "Sinks" are where the footage goes (TV monitor, hard drive, cloud backup)
8
+ // - "Context" tracks which room the camera is currently watching
9
+ //
10
+ // WHY IT EXISTS: When an AI agent processes a user message, many things happen
11
+ // internally — it reads context, calls the LLM, executes tools, loops back.
12
+ // Without tracing, this is a black box. TraceService makes it transparent
13
+ // by recording each step (a "span") with timing, and sending that data
14
+ // to any number of outputs ("sinks") — a console log, an SSE stream to
15
+ // a web dashboard, a file, etc.
16
+ //
17
+ // THE 80/20: The two things that matter most are:
18
+ // 1. startSpan() — call this when a step BEGINS, get back a handle
19
+ // 2. handle.end() — call this when the step FINISHES, it records duration
20
+ // Everything else supports these two operations.
21
+ // ---------------------------------------------------------------------------
22
+ export class TraceService {
23
+ // List of outputs that want to receive trace data.
24
+ // Example: a ConsoleTraceSink that prints to terminal,
25
+ // or an SseTraceSink that streams to a web browser.
26
+ // When this list is EMPTY, tracing is essentially free (no-op).
27
+ sinks = [];
28
+ // Active "recording sessions" — one per agent run.
29
+ // Each context tracks which span is currently "open" so that
30
+ // new spans automatically become children of the current one.
31
+ // Key = traceId (a unique ID for this entire agent run).
32
+ activeContexts = new Map();
33
+ // --- Sink management: add/remove outputs that receive trace data ---
34
+ // Register a new output destination for trace data.
35
+ // Call this BEFORE the agent starts processing to capture everything.
36
+ addSink(sink) {
37
+ this.sinks.push(sink);
38
+ }
39
+ // Unregister an output destination.
40
+ // Call this when the output is no longer needed (e.g. browser disconnected).
41
+ removeSink(sink) {
42
+ const idx = this.sinks.indexOf(sink);
43
+ if (idx !== -1)
44
+ this.sinks.splice(idx, 1);
45
+ }
46
+ // Read-only view of all registered sinks (for inspection/testing).
47
+ getSinks() {
48
+ return this.sinks;
49
+ }
50
+ // ── Trace context management ──
51
+ // A "context" represents one complete agent run (user sends message → agent replies).
52
+ // It carries a unique traceId and knows which span is currently "open"
53
+ // so child spans can automatically nest under their parent.
54
+ // Start a new recording session for an agent run.
55
+ // Returns a context object that you pass to startSpan() calls.
56
+ // The optional traceId parameter lets you provide your own ID
57
+ // (useful for correlating with external systems); otherwise a random one is generated.
58
+ createContext(traceId) {
59
+ const id = traceId ?? crypto.randomUUID();
60
+ const ctx = new MutableTraceContext(id);
61
+ this.activeContexts.set(id, ctx);
62
+ return ctx;
63
+ }
64
+ // Look up an existing recording session by its traceId.
65
+ getContext(traceId) {
66
+ return this.activeContexts.get(traceId);
67
+ }
68
+ // Clean up a recording session when the agent run is complete.
69
+ // Prevents memory from growing indefinitely as more runs happen.
70
+ removeContext(traceId) {
71
+ this.activeContexts.delete(traceId);
72
+ }
73
+ // ── Span lifecycle ──
74
+ // A "span" is a single timed step: "model call started at X, ended at Y, took 2000ms".
75
+ // Spans form a TREE: the root span is the entire run, iteration spans are children
76
+ // of the run, model-call spans are children of iterations, tool calls are children
77
+ // of iterations too. This tree structure lets a UI render a collapsible timeline.
78
+ // Begin recording a new step. Returns a "handle" — a remote control for this span.
79
+ // When the step finishes, call handle.end() to record the end time and duration.
80
+ //
81
+ // Parameters:
82
+ // ctx — the recording session (from createContext)
83
+ // name — human-readable label like "model-call" or "schedule-lookup"
84
+ // kind — category: "run", "iteration", "model-call", "tool-dispatch", etc.
85
+ // attributes — extra data to attach (e.g. { model: "claude-sonnet", iteration: 3 })
86
+ //
87
+ // THE KEY OPTIMIZATION: when no sinks are registered, this returns a NoOpSpanHandle
88
+ // that does absolutely nothing — no object allocation, no timing, no overhead.
89
+ // This means tracing is free to leave wired up in production with no sinks.
90
+ startSpan(ctx, name, kind, attributes) {
91
+ // Fast path: if nobody is listening, don't do any work
92
+ if (this.sinks.length === 0) {
93
+ return new NoOpSpanHandle(ctx, name, kind);
94
+ }
95
+ // Build the span data object — this is the "recording" for this step
96
+ const span = {
97
+ traceId: ctx.traceId, // which agent run this belongs to
98
+ spanId: crypto.randomUUID(), // unique ID for THIS specific step
99
+ parentSpanId: ctx.currentSpanId, // which step "contains" this one (the parent)
100
+ name, // human label: "model-call", "context-assembly"
101
+ kind, // category: "run" | "iteration" | "model-call" | ...
102
+ startTime: Date.now(), // when this step began (milliseconds since epoch)
103
+ status: "in-progress", // will change to "ok" or "error" when end() is called
104
+ attributes: attributes ? { ...attributes } : {}, // extra key-value data
105
+ events: [], // notable moments during the span (rarely used)
106
+ };
107
+ // PARENT-CHILD NESTING: push this span onto the context stack.
108
+ // Any span started AFTER this one (but before it ends) will
109
+ // automatically have this span as its parent.
110
+ // Think of it like nested folders: Run > Iteration > Model Call > ...
111
+ const mutableCtx = this.activeContexts.get(ctx.traceId);
112
+ if (mutableCtx) {
113
+ mutableCtx.pushSpan(span.spanId);
114
+ }
115
+ // Tell all sinks "a new step just started" (they can show a spinner, log it, etc.)
116
+ this.notifyStart(span);
117
+ // Return a handle so the caller can later call handle.end() when this step is done
118
+ return new LiveSpanHandle(span, this, mutableCtx ?? null);
119
+ }
120
+ // ── Sink notifications (internal) ──
121
+ // These methods broadcast span events to ALL registered sinks.
122
+ // Called internally by startSpan() and by LiveSpanHandle.end().
123
+ // Tell all sinks: "a step just started"
124
+ notifyStart(span) {
125
+ for (const sink of this.sinks) {
126
+ sink.onSpanStart(span);
127
+ }
128
+ }
129
+ // Tell all sinks: "a step just finished" (with duration, status, final attributes)
130
+ notifyEnd(span) {
131
+ for (const sink of this.sinks) {
132
+ sink.onSpanEnd(span);
133
+ }
134
+ }
135
+ // Force all sinks to push out any buffered data.
136
+ // Useful at the end of a request to make sure everything is sent.
137
+ async flush() {
138
+ for (const sink of this.sinks) {
139
+ await sink.flush();
140
+ }
141
+ }
142
+ }
143
+ // ---------------------------------------------------------------------------
144
+ // MutableTraceContext — the "breadcrumb trail" that tracks nesting
145
+ //
146
+ // ANALOGY: Imagine you're exploring nested folders on your computer.
147
+ // The spanStack is like your address bar showing the path:
148
+ // Run > Iteration-1 > Model-Call
149
+ // When you open a deeper folder (start a child span), it gets pushed on.
150
+ // When you close it (end the span), it gets popped off.
151
+ // This way, the next span you open automatically knows its parent.
152
+ // ---------------------------------------------------------------------------
153
+ export class MutableTraceContext {
154
+ // The unique ID for this entire agent run.
155
+ // All spans in this run share the same traceId.
156
+ traceId;
157
+ // Stack of currently-open span IDs, from outermost to innermost.
158
+ // Example mid-run: ["run-span-id", "iteration-1-span-id", "model-call-span-id"]
159
+ // The LAST item is always the "current" span — new spans become its children.
160
+ spanStack = [];
161
+ constructor(traceId) {
162
+ this.traceId = traceId;
163
+ }
164
+ // Returns the span ID at the top of the stack (the innermost open span).
165
+ // Returns undefined when no spans are open (happens at the very start/end).
166
+ // New spans will have this value as their parentSpanId.
167
+ get currentSpanId() {
168
+ return this.spanStack.length > 0
169
+ ? this.spanStack[this.spanStack.length - 1]
170
+ : undefined;
171
+ }
172
+ // Called when a new span starts — pushes it onto the stack
173
+ // so it becomes the new "current" parent for any deeper spans.
174
+ pushSpan(spanId) {
175
+ this.spanStack.push(spanId);
176
+ }
177
+ // Called when a span ends — removes it from the stack
178
+ // so its parent becomes "current" again.
179
+ popSpan() {
180
+ this.spanStack.pop();
181
+ }
182
+ }
183
+ // ---------------------------------------------------------------------------
184
+ // LiveSpanHandle — the "remote control" for an active span
185
+ //
186
+ // When you call traceService.startSpan(), you get back one of these.
187
+ // It holds a reference to the span data and lets you:
188
+ // 1. Add events (notable moments during the span)
189
+ // 2. Set extra attributes (data you learn after the span started)
190
+ // 3. End the span (records end time, calculates duration, notifies sinks)
191
+ //
192
+ // IMPORTANT: end() can only be called ONCE. Calling it again is a no-op.
193
+ // This prevents double-counting or corrupted timing.
194
+ // ---------------------------------------------------------------------------
195
+ class LiveSpanHandle {
196
+ span;
197
+ service;
198
+ ctx;
199
+ constructor(
200
+ // The actual span data object that gets sent to sinks
201
+ span,
202
+ // Reference back to the TraceService so we can notify sinks when ending
203
+ service,
204
+ // Reference to the context so we can pop this span off the stack when ending
205
+ ctx) {
206
+ this.span = span;
207
+ this.service = service;
208
+ this.ctx = ctx;
209
+ }
210
+ // Record a notable moment DURING the span (rarely needed).
211
+ // Example: addEvent("retry", { attempt: 2, reason: "timeout" })
212
+ addEvent(name, attributes) {
213
+ this.span.events.push({
214
+ name,
215
+ timestamp: Date.now(),
216
+ attributes,
217
+ });
218
+ }
219
+ // Attach additional data to the span after it was started.
220
+ // Example: setAttributes({ model: "claude-opus", temperature: 0.7 })
221
+ // Merges with any attributes already set — doesn't replace them.
222
+ setAttributes(attributes) {
223
+ Object.assign(this.span.attributes, attributes);
224
+ }
225
+ // FINISH the span — this is the most important method.
226
+ // Records the end time, calculates how long the step took,
227
+ // determines success/error status, pops the context stack,
228
+ // and tells all sinks "this step is done, here's the final data."
229
+ //
230
+ // The optional attributes parameter lets you add final data
231
+ // that's only known when the step completes:
232
+ // handle.end({ inputTokens: 1500, outputTokens: 300, stopReason: "end_turn" })
233
+ end(attributes) {
234
+ // Guard: if already ended, do nothing (prevents double-end bugs)
235
+ if (this.span.endTime !== undefined)
236
+ return;
237
+ // Merge any final attributes
238
+ if (attributes) {
239
+ Object.assign(this.span.attributes, attributes);
240
+ }
241
+ // Record timing: when it ended and how long it took
242
+ this.span.endTime = Date.now();
243
+ this.span.durationMs = this.span.endTime - this.span.startTime;
244
+ // Determine status: if there's an "error" attribute, mark as error
245
+ this.span.status = this.span.attributes["error"] ? "error" : "ok";
246
+ // Pop this span off the nesting stack so the parent becomes "current" again
247
+ if (this.ctx) {
248
+ this.ctx.popSpan();
249
+ }
250
+ // Broadcast to all sinks: "this step finished, here's the complete data"
251
+ this.service.notifyEnd(this.span);
252
+ }
253
+ }
254
+ // ---------------------------------------------------------------------------
255
+ // NoOpSpanHandle — the "do nothing" handle for zero overhead
256
+ //
257
+ // WHY THIS EXISTS: When no sinks are registered (nobody is listening),
258
+ // there's no point recording timing data, allocating UUIDs, or managing
259
+ // the context stack. This class has empty method bodies that do nothing,
260
+ // so the agent loop runs at full speed with no tracing overhead.
261
+ //
262
+ // The calling code doesn't need to check "is tracing enabled?" before
263
+ // every span — it always gets back a SpanHandle. When sinks are present,
264
+ // it's a LiveSpanHandle that records everything. When no sinks exist,
265
+ // it's this NoOpSpanHandle that silently ignores all calls.
266
+ // ---------------------------------------------------------------------------
267
+ class NoOpSpanHandle {
268
+ span;
269
+ constructor(ctx, name, kind) {
270
+ // Minimal span object with dummy values — only exists to satisfy the type
271
+ this.span = {
272
+ traceId: ctx.traceId,
273
+ spanId: "",
274
+ parentSpanId: ctx.currentSpanId,
275
+ name,
276
+ kind,
277
+ startTime: 0,
278
+ status: "ok",
279
+ attributes: {},
280
+ events: [],
281
+ };
282
+ }
283
+ // All methods are intentionally empty — no work to do when nobody is listening
284
+ addEvent(_name, _attributes) { }
285
+ setAttributes(_attributes) { }
286
+ end(_attributes) { }
287
+ }
288
+ //# sourceMappingURL=trace-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace-service.js","sourceRoot":"","sources":["../../../src/components/trace-service/trace-service.ts"],"names":[],"mappings":"AAQA,8EAA8E;AAC9E,8EAA8E;AAC9E,EAAE;AACF,sEAAsE;AACtE,qDAAqD;AACrD,qFAAqF;AACrF,8EAA8E;AAC9E,iEAAiE;AACjE,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,0EAA0E;AAC1E,uEAAuE;AACvE,uEAAuE;AACvE,gCAAgC;AAChC,EAAE;AACF,kDAAkD;AAClD,mEAAmE;AACnE,0EAA0E;AAC1E,iDAAiD;AACjD,8EAA8E;AAE9E,MAAM,OAAO,YAAY;IACvB,mDAAmD;IACnD,uDAAuD;IACvD,oDAAoD;IACpD,gEAAgE;IACxD,KAAK,GAAgB,EAAE,CAAC;IAEhC,mDAAmD;IACnD,6DAA6D;IAC7D,8DAA8D;IAC9D,yDAAyD;IACjD,cAAc,GAAG,IAAI,GAAG,EAA+B,CAAC;IAEhE,sEAAsE;IAEtE,oDAAoD;IACpD,sEAAsE;IACtE,OAAO,CAAC,IAAe;QACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,oCAAoC;IACpC,6EAA6E;IAC7E,UAAU,CAAC,IAAe;QACxB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,GAAG,KAAK,CAAC,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,mEAAmE;IACnE,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,iCAAiC;IACjC,sFAAsF;IACtF,uEAAuE;IACvE,4DAA4D;IAE5D,kDAAkD;IAClD,+DAA+D;IAC/D,8DAA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AAC;QAED,yEAAyE;QACzE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AAED,8EAA8E;AAC9E,6DAA6D;AAC7D,EAAE;AACF,uEAAuE;AACvE,wEAAwE;AACxE,yEAAyE;AACzE,iEAAiE;AACjE,EAAE;AACF,sEAAsE;AACtE,yEAAyE;AACzE,sEAAsE;AACtE,4DAA4D;AAC5D,8EAA8E;AAE9E,MAAM,cAAc;IACT,IAAI,CAAY;IAEzB,YAAY,GAAiB,EAAE,IAAY,EAAE,IAAc;QACzD,0EAA0E;QAC1E,IAAI,CAAC,IAAI,GAAG;YACV,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,MAAM,EAAE,EAAE;YACV,YAAY,EAAE,GAAG,CAAC,aAAa;YAC/B,IAAI;YACJ,IAAI;YACJ,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,EAAE;SACX,CAAC;IACJ,CAAC;IAED,+EAA+E;IAC/E,QAAQ,CAAC,KAAa,EAAE,WAAqC,IAAS,CAAC;IACvE,aAAa,CAAC,WAAoC,IAAS,CAAC;IAC5D,GAAG,CAAC,WAAqC,IAAS,CAAC;CACpD"}
@@ -0,0 +1,7 @@
1
+ import type { TraceSpan } from "./span.js";
2
+ export interface TraceSink {
3
+ onSpanStart(span: TraceSpan): void;
4
+ onSpanEnd(span: TraceSpan): void;
5
+ flush(): void | Promise<void>;
6
+ }
7
+ //# sourceMappingURL=sink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sink.d.ts","sourceRoot":"","sources":["../../../../src/components/trace-service/types/sink.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,KAAK,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,5 @@
1
+ // ---------------------------------------------------------------------------
2
+ // TraceSink — pluggable output interface for trace consumers
3
+ // ---------------------------------------------------------------------------
4
+ export {};
5
+ //# sourceMappingURL=sink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sink.js","sourceRoot":"","sources":["../../../../src/components/trace-service/types/sink.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,6DAA6D;AAC7D,8EAA8E"}
@@ -0,0 +1,31 @@
1
+ export type SpanKind = "run" | "iteration" | "context-assembly" | "compaction" | "memory-recall" | "model-call" | "tool-dispatch" | "skill-dispatch" | "sandbox-op";
2
+ export type SpanStatus = "ok" | "error" | "in-progress";
3
+ export interface TraceSpan {
4
+ traceId: string;
5
+ spanId: string;
6
+ parentSpanId?: string;
7
+ name: string;
8
+ kind: SpanKind;
9
+ startTime: number;
10
+ endTime?: number;
11
+ durationMs?: number;
12
+ status: SpanStatus;
13
+ attributes: Record<string, unknown>;
14
+ events: SpanEvent[];
15
+ }
16
+ export interface SpanEvent {
17
+ name: string;
18
+ timestamp: number;
19
+ attributes?: Record<string, unknown>;
20
+ }
21
+ export interface SpanHandle {
22
+ readonly span: TraceSpan;
23
+ addEvent(name: string, attributes?: Record<string, unknown>): void;
24
+ setAttributes(attributes: Record<string, unknown>): void;
25
+ end(attributes?: Record<string, unknown>): void;
26
+ }
27
+ export interface TraceContext {
28
+ readonly traceId: string;
29
+ readonly currentSpanId: string | undefined;
30
+ }
31
+ //# sourceMappingURL=span.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"span.d.ts","sourceRoot":"","sources":["../../../../src/components/trace-service/types/span.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAChB,KAAK,GACL,WAAW,GACX,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,YA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— structured span-tree observability for the agent loop
3
+ // ---------------------------------------------------------------------------
4
+ export {};
5
+ //# sourceMappingURL=span.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"span.js","sourceRoot":"","sources":["../../../../src/components/trace-service/types/span.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,sEAAsE;AACtE,8EAA8E"}
@@ -0,0 +1,5 @@
1
+ import type { AgentConfig } from "./components/llm-provider-hub/providers/types.js";
2
+ import { AgentCore } from "./agent-core.js";
3
+ import type { Agent } from "./components/multi-agent-orchestration/agent/agent.js";
4
+ export declare function createAgent(config?: AgentConfig, core?: AgentCore): Agent;
5
+ //# sourceMappingURL=create-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-agent.d.ts","sourceRoot":"","sources":["../src/create-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AAEpF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uDAAuD,CAAC;AAGnF,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAuDzE"}
@@ -0,0 +1,57 @@
1
+ import { resolveProvider } from "./components/llm-provider-hub/providers/registry.js";
2
+ import { AgentCore } from "./agent-core.js";
3
+ import { ESSENTIAL_SKILL_NAMES } from "./components/skill-hub/built-in-skills/essential-skills.js";
4
+ export function createAgent(config, core) {
5
+ const agentCore = core ?? new AgentCore();
6
+ if (config?.persistence) {
7
+ agentCore.usePersistence(config.persistence);
8
+ }
9
+ if (config?.provider && config.apiKey && config.model) {
10
+ const adapter = resolveProvider(config.provider, {
11
+ apiKey: config.apiKey,
12
+ model: config.model,
13
+ baseUrl: config.baseUrl,
14
+ });
15
+ agentCore.useLLMProvider(adapter);
16
+ }
17
+ if (config?.tools) {
18
+ for (const tool of config.tools)
19
+ agentCore.useTool(tool);
20
+ }
21
+ const appSkillNames = [];
22
+ if (config?.skills) {
23
+ for (const skill of config.skills)
24
+ appSkillNames.push(agentCore.skillHub.register(skill, "app").name);
25
+ }
26
+ const toolNames = config?.tools?.map((t) => t.definition.name) ?? [];
27
+ // The essential skills plus the app's; each is used only when the agent has the tools it requires.
28
+ const skillNames = [...new Set([...ESSENTIAL_SKILL_NAMES, ...appSkillNames])];
29
+ return agentCore.spawnAgent({
30
+ id: crypto.randomUUID(),
31
+ name: config?.provider ? `${config.provider}-agent` : "agent",
32
+ systemPrompt: config?.systemPrompt ?? "You are a helpful assistant.",
33
+ provider: config?.provider,
34
+ tools: toolNames,
35
+ skills: skillNames,
36
+ compactor: {
37
+ contextWindowTokens: 200_000,
38
+ threshold: 0.8,
39
+ minTailUserMessages: 4,
40
+ protectFirstN: 2,
41
+ proactivePruneTokens: 50_000,
42
+ oldToolResultMinTokens: 2_000,
43
+ tailTargetRatio: 0.2,
44
+ protectLastN: 10,
45
+ summarizeMaxOutputTokens: 4_096,
46
+ },
47
+ memory: {
48
+ enabled: true,
49
+ updateSoul: false,
50
+ updateUser: true,
51
+ consolidation: {
52
+ intervalMinutes: 30,
53
+ },
54
+ },
55
+ });
56
+ }
57
+ //# sourceMappingURL=create-agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-agent.js","sourceRoot":"","sources":["../src/create-agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAEnG,MAAM,UAAU,WAAW,CAAC,MAAoB,EAAE,IAAgB;IAChE,MAAM,SAAS,GAAG,IAAI,IAAI,IAAI,SAAS,EAAE,CAAC;IAE1C,IAAI,MAAM,EAAE,WAAW,EAAE,CAAC;QACxB,SAAS,CAAC,cAAc,CAAC,MAAM,CA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CAAC,OAAO;QAC7D,YAAY,EAAE,MAAM,EAAE,YAAY,IAAI,8BAA8B;QACpE,QAAQ,EAAE,MAAM,EAAE,QAAQ;QAC1B,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE;YACT,mBAAmB,EAAE,OAAO;YAC5B,SAAS,EAAE,GAAG;YACd,mBAAmB,EAAE,CAAC;YACtB,aAAa,EAAE,CAAC;YAChB,oBAAoB,EAAE,MAAM;YAC5B,sBAAsB,EAAE,KAAK;YAC7B,eAAe,EAAE,GAAG;YACpB,YAAY,EAAE,EAAE;YAChB,wBAAwB,EAAE,KAAK;SAChC;QACD,MAAM,EAAE;YACN,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,IAAI;YAChB,aAAa,EAAE;gBACb,eAAe,EAAE,EAAE;aACpB;SACF;KACF,CAAU,CAAC;AACd,CAAC"}
@@ -0,0 +1,110 @@
1
+ export { createAgent } from "./create-agent.js";
2
+ export { AgentCore } from "./agent-core.js";
3
+ export { registerProvider, listProviders, } from "./components/llm-provider-hub/providers/registry.js";
4
+ export { AnthropicLLMModelProvider, } from "./components/llm-provider-hub/providers/anthropic-provider.js";
5
+ export { OpenAICompatibleLLMModelProvider, } from "./components/llm-provider-hub/providers/openai-compatible-provider.js";
6
+ export type { AgentConfig, ProviderConfig, ProviderFactory, } from "./components/llm-provider-hub/providers/types.js";
7
+ export type { Agent } from "./components/multi-agent-orchestration/agent/agent.js";
8
+ export type { RunOptions, RunResult } from "./components/multi-agent-orchestration/agent/agent-loop/types.js";
9
+ export { PersistenceHub } from "./components/persistence-hub/persistence-hub.js";
10
+ export { TraceService } from "./components/trace-service/trace-service.js";
11
+ export { ConsoleTraceSink } from "./components/trace-service/console-trace-sink.js";
12
+ export { WebSearchTool } from "./components/tool-hub/built-in-tools/web/web-search-tool.js";
13
+ export type { WebSearchToolOptions } from "./components/tool-hub/built-in-tools/web/web-search-tool.js";
14
+ export { WebExtractTool } from "./components/tool-hub/built-in-tools/web/web-extract-tool.js";
15
+ export type { WebExtractToolOptions } from "./components/tool-hub/built-in-tools/web/web-extract-tool.js";
16
+ export { DuckDuckGoSearchProvider } from "./components/tool-hub/built-in-tools/web/duckduckgo-search-provider.js";
17
+ export type { DuckDuckGoSearchProviderOptions } from "./components/tool-hub/built-in-tools/web/duckduckgo-search-provider.js";
18
+ export type { WebSearchProvider, WebSearchQuery, WebSearchResult, } from "./components/tool-hub/built-in-tools/web/types.js";
19
+ export { ClarifyTool } from "./components/tool-hub/built-in-tools/interaction/clarify-tool.js";
20
+ export { DefaultToolPolicy } from "./components/tool-hub/policies/default-tool-policy.js";
21
+ export type { DefaultToolPolicyOptions } from "./components/tool-hub/policies/default-tool-policy.js";
22
+ export { createWorkspaceTools, WORKSPACE_TOOL_NAMES } from "./components/tool-hub/built-in-tools/workspace/create-workspace-tools.js";
23
+ export { ReadFileTool } from "./components/tool-hub/built-in-tools/workspace/read-file-tool.js";
24
+ export { WriteFileTool } from "./components/tool-hub/built-in-tools/workspace/write-file-tool.js";
25
+ export { EditFileTool } from "./components/tool-hub/built-in-tools/workspace/edit-file-tool.js";
26
+ export { ListFilesTool } from "./components/tool-hub/built-in-tools/workspace/list-files-tool.js";
27
+ export { SearchFilesTool } from "./components/tool-hub/built-in-tools/workspace/search-files-tool.js";
28
+ export { TerminalTool } from "./components/tool-hub/built-in-tools/workspace/terminal-tool.js";
29
+ export { RunCodeTool } from "./components/tool-hub/built-in-tools/workspace/run-code-tool.js";
30
+ export type { WorkspaceToolOptions } from "./components/tool-hub/built-in-tools/workspace/types.js";
31
+ export { SkillManageTool } from "./components/tool-hub/built-in-tools/skills/skill-manage-tool.js";
32
+ export { SkillViewTool } from "./components/tool-hub/built-in-tools/skills/skill-view-tool.js";
33
+ export { SKILL_WORKSPACE_DIR } from "./components/tool-hub/built-in-tools/skills/skill-workspace.js";
34
+ export { SkillHub } from "./components/skill-hub/skill-hub.js";
35
+ export { ESSENTIAL_SKILLS, ESSENTIAL_SKILL_NAMES } from "./components/skill-hub/built-in-skills/essential-skills.js";
36
+ export { parseSkillPackage, normalizeSkillPath, SKILL_LIMITS, SKILL_NAME_PATTERN } from "./components/skill-hub/skill-format.js";
37
+ export type { ParsedSkill } from "./components/skill-hub/skill-format.js";
38
+ export type { Skill, SkillFile, SkillFrontmatter, SkillPackage, SkillSource, } from "./components/skill-hub/types/skill.js";
39
+ export type { AgentSkills } from "./components/skill-hub/types/agent-skills.js";
40
+ export { createArtifactTools, ARTIFACT_TOOL_NAMES } from "./components/tool-hub/built-in-tools/artifacts/create-artifact-tools.js";
41
+ export { SaveArtifactTool } from "./components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js";
42
+ export { UpdateArtifactTool } from "./components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js";
43
+ export { ReadArtifactTool } from "./components/tool-hub/built-in-tools/artifacts/read-artifact-tool.js";
44
+ export { ListArtifactsTool } from "./components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.js";
45
+ export type { ArtifactToolOptions } from "./components/tool-hub/built-in-tools/artifacts/types.js";
46
+ export { ArtifactHub } from "./components/artifact-hub/artifact-hub.js";
47
+ export type { Artifact, ArtifactFile, ArtifactFileStatus, ArtifactOrigin, ArtifactQuery, ArtifactRead, ArtifactReadOptions, ArtifactRef, ArtifactVersion, ArtifactView, ArtifactWrite, SaveArtifactInput, UpdateArtifactInput, } from "./components/artifact-hub/types/artifact.js";
48
+ export type { ArtifactFilter, ArtifactStore } from "./components/persistence-hub/types/artifact-store.js";
49
+ export { MemoryArtifactStore } from "./components/persistence-hub/default-stores/memory-artifact-store.js";
50
+ export { SandboxHub } from "./components/sandbox-hub/sandbox-hub.js";
51
+ export { defaultSandboxApprovalPolicy } from "./components/sandbox-hub/approval-policy.js";
52
+ export { WORKSPACE_ROOT, AGENTS_DIR, agentLayout, isWithinRoots, resolveLogicalPath, } from "./components/sandbox-hub/logical-path.js";
53
+ export type { DirEntry, EntryType, SandboxCapability, SandboxKind, SandboxLimits, SandboxTraits, ExecOptions, ExecRequest, ExecResult, SandboxView, FileContent, FileStat, ListOptions, ListResult, OpOptions, ReadOptions, SearchMatch, SearchQuery, SearchResult, WriteOptions, WriteResult, Sandbox, } from "./components/sandbox-hub/types/sandbox.js";
54
+ export type { CreateSandboxContext, SandboxSpec, ResourceLimits, SandboxProvider, } from "./components/sandbox-hub/types/provider.js";
55
+ export type { OwnSandboxConfig, SandboxApprovalPolicy, SandboxHubPolicy, SandboxOperation, SandboxSelection, } from "./components/sandbox-hub/types/policy.js";
56
+ export { DockerSandboxProvider, DOCKER_DEFAULT_LIMITS } from "./components/sandbox-hub/docker/docker-sandbox-provider.js";
57
+ export type { DockerSandboxSettings } from "./components/sandbox-hub/docker/docker-sandbox-provider.js";
58
+ export type { DockerSandbox } from "./components/sandbox-hub/docker/docker-sandbox.js";
59
+ export type { DockerSandboxProviderOptions } from "./components/sandbox-hub/docker/types.js";
60
+ export { AEC_SANDBOX_IMAGE, AEC_SANDBOX_DOCKERFILE } from "./components/sandbox-hub/docker/aec-sandbox-image.js";
61
+ export { HostSandboxProvider, HOST_DEFAULT_LIMITS } from "./components/sandbox-hub/host/host-sandbox-provider.js";
62
+ export type { HostSandboxProviderOptions } from "./components/sandbox-hub/host/host-sandbox-provider.js";
63
+ export type { HostSandbox } from "./components/sandbox-hub/host/host-sandbox.js";
64
+ export { LLMProviderHub } from "./components/llm-provider-hub/llm-provider-hub.js";
65
+ export { BedrockLLMModelProvider, } from "./components/llm-provider-hub/providers/bedrock-provider.js";
66
+ export { OpenAISubscriptionProvider, } from "./components/llm-provider-hub/providers/openai-subscription-provider.js";
67
+ export { resolveProvider } from "./components/llm-provider-hub/providers/registry.js";
68
+ export type { Plugin } from "./kernel/interfaces/plugin.js";
69
+ export type { Kernel } from "./kernel/interfaces/kernel.js";
70
+ export type { LLMModelProvider, ModelOptions, LLMModelInfo, LLMModelCapabilities, LLMModelPricing, LLMModelRecord, } from "./components/llm-provider-hub/types.js";
71
+ export { toLLMModelRecord } from "./components/llm-provider-hub/types.js";
72
+ export type { ApprovalDecision, ApprovalRequest, AuthorizationHook, ClarifyRequest, ClarifyResponse, InteractionHandler, JsonSchema, ToolContext, ToolDefinition, ToolHandler, ToolOutput, ToolPolicy, ToolPolicyDecision, ToolRisk, } from "./components/tool-hub/types.js";
73
+ export type { EventBus, EventHandler, Unsubscribe } from "./components/event-handler/types.js";
74
+ export type { AgentStore } from "./components/persistence-hub/types/agent-store.js";
75
+ export type { ProviderRecord, ProviderStore, } from "./components/persistence-hub/types/provider-store.js";
76
+ export type { SessionStore } from "./components/persistence-hub/types/session-store.js";
77
+ export type { MessageStore, MessageStoreSlice, } from "./components/persistence-hub/types/message-store.js";
78
+ export type { MemoryStore, MemoryFilter } from "./components/persistence-hub/types/memory-store.js";
79
+ export type { SkillRecord, SkillStore } from "./components/persistence-hub/types/skill-store.js";
80
+ export type { Middleware, MiddlewareContext, } from "./components/multi-agent-orchestration/agent/context-manager/types.js";
81
+ export type { ScheduledJobContext, ScheduledJobDefinition, ScheduledJobHandler, ScheduledJobOutput, } from "./components/multi-agent-orchestration/agent/scheduled-job-manager/types.js";
82
+ export type { AgentProfile, } from "./components/multi-agent-orchestration/agent/types.js";
83
+ export type { CompactorConfig, CompactorResult, } from "./components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.js";
84
+ export type { ConsolidationTrigger, MemoryConfig, MemoryRecallConfig, } from "./components/multi-agent-orchestration/agent/memory-system/types/config.js";
85
+ export type { TraceSink } from "./components/trace-service/types/sink.js";
86
+ export type { Event, Message, ModelResponse, Session, SessionFilter, StreamChunk, TokenUsage, ToolCall, ToolCallProgress, ToolResult, } from "./kernel/types.js";
87
+ export { SDKEventType } from "./components/event-handler/events.js";
88
+ export type { ArtifactDeletedPayload, ArtifactWrittenPayload, SDKEventTypeValue, SDKEventPayloadMap, UserMessagePayload, IterationPayload, ModelRequestedPayload, ModelRespondedPayload, DispatchStartPayload, DispatchEndPayload, DispatchRetryPayload, DispatchFailedPayload, ToolDeniedPayload, ToolApprovalRequestedPayload, ToolApprovalResolvedPayload, RunCompletedPayload, MaxIterationsPayload, JobCompletedPayload, JobFailedPayload, } from "./components/event-handler/events.js";
89
+ export { SDKError } from "./kernel/errors/sdk-error.js";
90
+ export { ModelError } from "./kernel/errors/model-error.js";
91
+ export type { ModelErrorCode } from "./kernel/errors/model-error.js";
92
+ export { ToolError } from "./kernel/errors/tool-error.js";
93
+ export type { ToolErrorCode } from "./kernel/errors/tool-error.js";
94
+ export { PolicyError } from "./kernel/errors/policy-error.js";
95
+ export type { PolicyErrorCode } from "./kernel/errors/policy-error.js";
96
+ export { SessionError } from "./kernel/errors/session-error.js";
97
+ export type { SessionErrorCode } from "./kernel/errors/session-error.js";
98
+ export { SkillError } from "./kernel/errors/skill-error.js";
99
+ export { SandboxError } from "./kernel/errors/sandbox-error.js";
100
+ export { ArtifactError } from "./kernel/errors/artifact-error.js";
101
+ export type { ArtifactErrorCode } from "./kernel/errors/artifact-error.js";
102
+ export type { SandboxErrorCode } from "./kernel/errors/sandbox-error.js";
103
+ export type { SkillErrorCode } from "./kernel/errors/skill-error.js";
104
+ export type { TraceSpan, SpanKind, SpanStatus, SpanEvent, SpanHandle, TraceContext, } from "./components/trace-service/types/span.js";
105
+ export { MockLLMModelProvider } from "./testing/mock-llm-model-provider.js";
106
+ export { InMemorySessionStore } from "./testing/mock-session-store.js";
107
+ export { ScheduleLookupTool, BudgetQueryTool, DocumentSearchTool, SendRfiTool } from "./testing/mock-tools.js";
108
+ export { InMemorySandboxProvider } from "./testing/in-memory-sandbox.js";
109
+ export type { InMemorySandboxProviderOptions } from "./testing/in-memory-sandbox.js";
110
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAA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