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,20 @@
1
+ import type { Skill, SkillPackage } from "./skill.js";
2
+ export interface AgentSkills {
3
+ /** Skills the agent can use now: enabled for it and every required tool available. */
4
+ list(): Promise<Skill[]>;
5
+ /** A skill enabled for this agent (even if a required tool is missing), or undefined. */
6
+ get(name: string): Promise<Skill | undefined>;
7
+ /**
8
+ * Add a custom skill to the library and enable it for this agent. Other agents can enable
9
+ * it later. Throws SkillError ("invalid", "already_exists").
10
+ */
11
+ create(skill: SkillPackage): Promise<Skill>;
12
+ /**
13
+ * Replace a custom skill enabled for this agent (SKILL.md and all its files). The name
14
+ * cannot change. Throws SkillError ("not_found", "not_allowed", "read_only", "invalid").
15
+ */
16
+ update(name: string, skill: SkillPackage): Promise<Skill>;
17
+ /** Delete a custom skill enabled for this agent, and disable it. Throws SkillError. */
18
+ delete(name: string): Promise<void>;
19
+ }
20
+ //# sourceMappingURL=agent-skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-skills.d.ts","sourceRoot":"","sources":["../../../../src/components/skill-hub/types/agent-skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAOtD,MAAM,WAAW,WAAW;IAC1B,sFAAsF;IACtF,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IACzB,yFAAyF;IACzF,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAC9C;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5C;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC1D,uFAAuF;IACvF,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=agent-skills.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-skills.js","sourceRoot":"","sources":["../../../../src/components/skill-hub/types/agent-skills.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
1
+ /** One extra file of a skill, e.g. "scripts/extract.py" or "references/format.md". Text only. */
2
+ export interface SkillFile {
3
+ /** Relative POSIX path inside the skill folder. */
4
+ path: string;
5
+ content: string;
6
+ }
7
+ /** What you register or create: the SKILL.md text and the skill's other files. */
8
+ export interface SkillPackage {
9
+ /** The full SKILL.md: `---` frontmatter (name, description, …) `---` then the instructions. */
10
+ content: string;
11
+ files?: SkillFile[];
12
+ }
13
+ /**
14
+ * Where a skill comes from:
15
+ * - "built-in": shipped with the SDK (the essential skills) — read-only.
16
+ * - "app": registered by the host app with `Kernel.useSkill()` — read-only.
17
+ * - "custom": created at runtime (by an agent through skill_manage, or by a user) and
18
+ * kept in the SkillStore — the only kind that can be edited or deleted.
19
+ */
20
+ export type SkillSource = "built-in" | "app" | "custom";
21
+ /** The SKILL.md frontmatter fields (Agent Skills specification). */
22
+ export interface SkillFrontmatter {
23
+ /** 1–64 chars of a-z, 0-9 and single hyphens; unique in the library. */
24
+ name: string;
25
+ /** What the skill does and when to use it (1–1024 chars) — this is what the model sees. */
26
+ description: string;
27
+ license?: string;
28
+ /** Environment requirements, free text (max 500 chars). */
29
+ compatibility?: string;
30
+ /** `allowed-tools` — a hint, never a permission boundary. */
31
+ allowedTools?: string[];
32
+ /** Extra string key/values. Nested maps are flattened to dotted keys ("hermes.tags"). */
33
+ metadata: Record<string, string>;
34
+ }
35
+ /** A skill in the library — parsed, validated and ready to show to an agent. */
36
+ export interface Skill extends SkillFrontmatter {
37
+ /** The SKILL.md instructions without the frontmatter. */
38
+ body: string;
39
+ /** The SKILL.md text as written — the source of truth. */
40
+ content: string;
41
+ files: SkillFile[];
42
+ source: SkillSource;
43
+ /**
44
+ * Tools the skill needs (metadata `requires-tools`, space or comma separated). An agent
45
+ * that lacks any of them does not see the skill in its index.
46
+ */
47
+ requiresTools: string[];
48
+ /** Agent that created it (custom skills made through skill_manage). */
49
+ createdBy?: string;
50
+ /** Increments on every update of a custom skill; 1 for built-in and app skills. */
51
+ version: number;
52
+ createdAt?: string;
53
+ updatedAt?: string;
54
+ }
55
+ //# sourceMappingURL=skill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../../src/components/skill-hub/types/skill.ts"],"names":[],"mappings":"AAUA,iGAAiG;AACjG,MAAM,WAAW,SAAS;IACxB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kFAAkF;AAClF,MAAM,WAAW,YAAY;IAC3B,+FAA+F;IAC/F,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAC;AAExD,oEAAoE;AACpE,MAAM,WAAW,gBAAgB;IAC/B,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,2FAA2F;IAC3F,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,yFAAyF;IACzF,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,gFAAgF;AAChF,MAAM,WAAW,KAAM,SAAQ,gBAAgB;IAC7C,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB;;;OAGG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,11 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Skill — learned or predefined procedures the agent can execute
3
+ //
4
+ // A skill is a SKILL.md file (YAML frontmatter + Markdown instructions) plus optional
5
+ // files — scripts/, references/, assets/ — in the Agent Skills format (agentskills.io),
6
+ // the same format Claude, Hermes Agent and OpenClaw use. A skill is NOT a tool: it adds
7
+ // no new abilities, it tells the model how to use the tools it already has. Only the
8
+ // name + description are in the prompt; the body is loaded on demand (skill_view).
9
+ // ---------------------------------------------------------------------------
10
+ export {};
11
+ //# sourceMappingURL=skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill.js","sourceRoot":"","sources":["../../../../src/components/skill-hub/types/skill.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,iEAAiE;AACjE,EAAE;AACF,sFAAsF;AACtF,wFAAwF;AACxF,wFAAwF;AACxF,qFAAqF;AACrF,mFAAmF;AACnF,8EAA8E"}
@@ -0,0 +1,52 @@
1
+ import type { SandboxView } from "../../../sandbox-hub/types/sandbox.js";
2
+ import type { ArtifactRef, ArtifactView } from "../../../artifact-hub/types/artifact.js";
3
+ import type { ToolContext, ToolOutput } from "../../types.js";
4
+ import type { ArtifactToolOptions, ResolvedArtifactToolOptions } from "./types.js";
5
+ export declare function resolveOptions(options?: ArtifactToolOptions): ResolvedArtifactToolOptions;
6
+ /**
7
+ * Run `fn` against the agent's artifacts. Every ArtifactError becomes an error
8
+ * result the model can act on; deterministic failures (name conflict, not found,
9
+ * a missing tracked file, …) are marked non-retryable so the harness does not
10
+ * repeat them. SandboxError is mapped too, since every artifact read or write
11
+ * touches the agent's sandbox.
12
+ */
13
+ export declare function withArtifacts(toolName: string, context: ToolContext, fn: (artifacts: ArtifactView) => Promise<ToolOutput>): Promise<ToolOutput>;
14
+ export declare function argError(toolName: string, message: string): ToolOutput;
15
+ export declare function stringArg(args: Record<string, unknown>, key: string): string | undefined;
16
+ export declare function numberArg(args: Record<string, unknown>, key: string): number | undefined;
17
+ export declare function stringListArg(args: Record<string, unknown>, key: string): string[] | undefined;
18
+ /** `id` / `name` from tool arguments — the model may use either to point at an artifact. */
19
+ export declare function refArg(args: Record<string, unknown>): ArtifactRef;
20
+ /**
21
+ * Resolves the agent's sandbox for an artifact tool call. Every artifact tracks a
22
+ * file, so a tool with no sandbox has nothing to track or read — a clear, non-retryable
23
+ * argument error rather than a deeper failure once the call proceeds.
24
+ */
25
+ export declare function sandboxFor(toolName: string, context: ToolContext): Promise<{
26
+ ok: true;
27
+ sandbox: SandboxView;
28
+ } | {
29
+ ok: false;
30
+ output: ToolOutput;
31
+ }>;
32
+ /**
33
+ * Content/path for a save/update: either inline `content` (written to the sandbox
34
+ * and then tracked), or a sandbox file named by `from_path` (tracked as-is). Models
35
+ * routinely fill every property a schema offers, so passing both is handled rather
36
+ * than refused: inline `content` wins and the ignored `from_path` is reported back
37
+ * in the result. A blank `content` next to a `from_path` means the model meant to
38
+ * track that file. This does not read or write anything — the view does.
39
+ */
40
+ export declare function sourceFrom(args: Record<string, unknown>): {
41
+ content?: string;
42
+ path?: string;
43
+ ignoredFromPath?: string;
44
+ };
45
+ /**
46
+ * Told to the model when it passed both `content` and `from_path`: the call went
47
+ * through on the inline content, and this says which argument was dropped so the
48
+ * next call is unambiguous (and so a track it actually wanted is not silent).
49
+ */
50
+ export declare function ignoredFromPathNote(ignoredFromPath: string | undefined): string;
51
+ export declare function formatBytes(bytes: number): string;
52
+ //# sourceMappingURL=artifact-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/artifact-helpers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAKnF,wBAAgB,cAAc,CAAC,OAAO,GAAE,mBAAwB,GAAG,2BAA2B,CAO7F;AAUD;;;;;;GAMG;AACH,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,WAAW,EACpB,EAAE,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAC,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AK,EAAE,MAAM,GAAG,MAAM,CAIjD"}
@@ -0,0 +1,143 @@
1
+ import { ArtifactError } from "../../../../kernel/errors/artifact-error.js";
2
+ import { SandboxError } from "../../../../kernel/errors/sandbox-error.js";
3
+ // Shared plumbing for the artifact tools: view + sandbox access, argument
4
+ // parsing, ArtifactError/SandboxError -> ToolOutput mapping and output formatting.
5
+ export function resolveOptions(options = {}) {
6
+ const positive = (value, fallback) => typeof value === "number" && Number.isFinite(value) && value > 0 ? Math.floor(value) : fallback;
7
+ return {
8
+ maxReadBytes: positive(options.maxReadBytes, 100_000),
9
+ maxListEntries: positive(options.maxListEntries, 50),
10
+ };
11
+ }
12
+ const HINTS = {
13
+ name_conflict: "Use update_artifact to add a new version, or save under a different name.",
14
+ not_found: "Check the exact name or id with list_artifacts.",
15
+ conflict: "Read the artifact again to get the current version, then update it.",
16
+ not_configured: "No artifact store is configured on this server; tell the user.",
17
+ file_missing: "write the file first (write_file) or pass content, then try again",
18
+ };
19
+ /**
20
+ * Run `fn` against the agent's artifacts. Every ArtifactError becomes an error
21
+ * result the model can act on; deterministic failures (name conflict, not found,
22
+ * a missing tracked file, …) are marked non-retryable so the harness does not
23
+ * repeat them. SandboxError is mapped too, since every artifact read or write
24
+ * touches the agent's sandbox.
25
+ */
26
+ export async function withArtifacts(toolName, context, fn) {
27
+ if (!context.getArtifacts) {
28
+ return {
29
+ content: `${toolName}: this agent has no artifact store — lasting outputs are not available`,
30
+ isError: true,
31
+ retryable: false,
32
+ };
33
+ }
34
+ try {
35
+ return await fn(context.getArtifacts());
36
+ }
37
+ catch (error) {
38
+ if (error instanceof ArtifactError) {
39
+ const hint = HINTS[error.code];
40
+ return {
41
+ content: `${toolName} failed (${error.code}): ${error.message}${hint ? `\n${hint}` : ""}`,
42
+ isError: true,
43
+ retryable: error.retryable,
44
+ metadata: { code: error.code },
45
+ };
46
+ }
47
+ if (error instanceof SandboxError) {
48
+ const hint = error.code === "disabled" ? "this agent has no sandbox, so it cannot have artifacts" : undefined;
49
+ return {
50
+ content: `${toolName} failed: sandbox error (${error.code}): ${error.message}${hint ? `\n${hint}` : ""}`,
51
+ isError: true,
52
+ retryable: error.retryable,
53
+ metadata: { code: error.code },
54
+ };
55
+ }
56
+ return {
57
+ content: `${toolName} failed: ${error instanceof Error ? error.message : String(error)}`,
58
+ isError: true,
59
+ };
60
+ }
61
+ }
62
+ export function argError(toolName, message) {
63
+ return { content: `${toolName}: ${message}`, isError: true, retryable: false };
64
+ }
65
+ export function stringArg(args, key) {
66
+ const value = args[key];
67
+ return typeof value === "string" ? value : undefined;
68
+ }
69
+ export function numberArg(args, key) {
70
+ const value = args[key];
71
+ return typeof value === "number" && Number.isFinite(value) ? value : undefined;
72
+ }
73
+ export function stringListArg(args, key) {
74
+ const value = args[key];
75
+ if (!Array.isArray(value))
76
+ return undefined;
77
+ const list = value.filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
78
+ return list.length ? list : undefined;
79
+ }
80
+ /** `id` / `name` from tool arguments — the model may use either to point at an artifact. */
81
+ export function refArg(args) {
82
+ const id = stringArg(args, "id")?.trim();
83
+ const name = stringArg(args, "name")?.trim();
84
+ return {
85
+ ...(id ? { id } : {}),
86
+ ...(name ? { name } : {}),
87
+ };
88
+ }
89
+ /**
90
+ * Resolves the agent's sandbox for an artifact tool call. Every artifact tracks a
91
+ * file, so a tool with no sandbox has nothing to track or read — a clear, non-retryable
92
+ * argument error rather than a deeper failure once the call proceeds.
93
+ */
94
+ export async function sandboxFor(toolName, context) {
95
+ if (!context.getSandbox) {
96
+ return {
97
+ ok: false,
98
+ output: argError(toolName, "this agent has no sandbox, so it cannot have artifacts — artifacts track files in the agent's workspace"),
99
+ };
100
+ }
101
+ return { ok: true, sandbox: await context.getSandbox() };
102
+ }
103
+ /**
104
+ * Content/path for a save/update: either inline `content` (written to the sandbox
105
+ * and then tracked), or a sandbox file named by `from_path` (tracked as-is). Models
106
+ * routinely fill every property a schema offers, so passing both is handled rather
107
+ * than refused: inline `content` wins and the ignored `from_path` is reported back
108
+ * in the result. A blank `content` next to a `from_path` means the model meant to
109
+ * track that file. This does not read or write anything — the view does.
110
+ */
111
+ export function sourceFrom(args) {
112
+ const inline = stringArg(args, "content");
113
+ const fromPath = stringArg(args, "from_path")?.trim();
114
+ // An empty/whitespace `content` next to a from_path means the model meant to track
115
+ // the file (some providers send "" for the property they did not fill).
116
+ const hasInline = inline !== undefined && (!fromPath || inline.trim() !== "");
117
+ if (hasInline) {
118
+ return { content: inline, ...(fromPath ? { ignoredFromPath: fromPath } : {}) };
119
+ }
120
+ if (fromPath) {
121
+ return { path: fromPath };
122
+ }
123
+ return {};
124
+ }
125
+ /**
126
+ * Told to the model when it passed both `content` and `from_path`: the call went
127
+ * through on the inline content, and this says which argument was dropped so the
128
+ * next call is unambiguous (and so a track it actually wanted is not silent).
129
+ */
130
+ export function ignoredFromPathNote(ignoredFromPath) {
131
+ if (!ignoredFromPath)
132
+ return "";
133
+ return (`\nNote: you passed both "content" and "from_path" — the inline content was saved and "${ignoredFromPath}" was ignored. ` +
134
+ `Pass only one. To track that file instead, call update_artifact with just "from_path".`);
135
+ }
136
+ export function formatBytes(bytes) {
137
+ if (bytes < 1024)
138
+ return `${bytes} B`;
139
+ if (bytes < 1024 * 1024)
140
+ return `${(bytes / 1024).toFixed(1)} KB`;
141
+ return `${(bytes / 1024 / 1024).toFixed(1)} MB`;
142
+ }
143
+ //# sourceMappingURL=artifact-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-helpers.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/artifact-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAM1E,0EAA0E;AAC1E,mFAAmF;AAEnF,MAAM,UAAU,cAAc,CAAC,OAAO,GAAwB,EAAE;IAC9D,MAAM,QAAQ,GAAG,C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AO,GAAG,KAAK,IAAI,CAAC;IACtC,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;AAClD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ToolHandler } from "../../types.js";
2
+ import type { ArtifactToolOptions } from "./types.js";
3
+ /** Tool names of the artifact tools, for agent allowlists. */
4
+ export declare const ARTIFACT_TOOL_NAMES: readonly ["save_artifact", "update_artifact", "read_artifact", "list_artifacts"];
5
+ /** All artifact tools with the same options — register them with `core.useTool()`. */
6
+ export declare function createArtifactTools(options?: ArtifactToolOptions): ToolHandler[];
7
+ //# sourceMappingURL=create-artifact-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-artifact-tools.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD,8DAA8D;AAC9D,eAAO,MAAM,mBAAmB,YAC9B,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,CAC7D,CAAC;AAEX,sFAAsF;AACtF,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,mBAAwB,GAAG,WAAW,EAAE,CAOpF"}
@@ -0,0 +1,18 @@
1
+ import { ListArtifactsTool } from "./list-artifacts-tool.js";
2
+ import { ReadArtifactTool } from "./read-artifact-tool.js";
3
+ import { SaveArtifactTool } from "./save-artifact-tool.js";
4
+ import { UpdateArtifactTool } from "./update-artifact-tool.js";
5
+ /** Tool names of the artifact tools, for agent allowlists. */
6
+ export const ARTIFACT_TOOL_NAMES = [
7
+ "save_artifact", "update_artifact", "read_artifact", "list_artifacts",
8
+ ];
9
+ /** All artifact tools with the same options — register them with `core.useTool()`. */
10
+ export function createArtifactTools(options = {}) {
11
+ return [
12
+ new SaveArtifactTool(options),
13
+ new UpdateArtifactTool(options),
14
+ new ReadArtifactTool(options),
15
+ new ListArtifactsTool(options),
16
+ ];
17
+ }
18
+ //# sourceMappingURL=create-artifact-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-artifact-tools.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,8DAA8D;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB;CAC7D,CAAC;AAEX,sFAAsF;AACtF,MAAM,UAAU,mBAAmB,CAAC,OAAO,GAAwB,EAAE;IACnE,OAAO;QACL,IAAI,gBAAgB,CAAC,OAAO,CAAC;QAC7B,IAAI,kBAAkB,CAAC,OAAO,CAAC;QAC/B,IAAI,gBAAgB,CAAC,OAAO,CAAC;QAC7B,IAAI,iBAAiB,CAAC,OAAO,CAAC;KAC/B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
2
+ import type { ArtifactToolOptions } from "./types.js";
3
+ /**
4
+ * list_artifacts — what this agent has already made, most recently updated first.
5
+ * Metadata only (no content), so the model can decide what to read or update without
6
+ * pulling whole deliverables into context.
7
+ */
8
+ export declare class ListArtifactsTool implements ToolHandler {
9
+ readonly name = "tool:list-artifacts";
10
+ readonly version = "1.0.0";
11
+ readonly definition: ToolDefinition;
12
+ private options;
13
+ constructor(options?: ArtifactToolOptions);
14
+ execute(args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
15
+ }
16
+ //# sourceMappingURL=list-artifacts-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-artifacts-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE3F,OAAO,KAAK,EAAE,mBAAmB,EAA+B,MAAM,YAAY,CAAC;AAEnF;;;;GAIG;AACH,qBAAa,iBAAkB,YAAW,WAAW;IACnD,QAAQ,CAAC,IAAI,yBAAyB;IACtC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,OAAO,CAAC,OAAO,CAA8B;IAE7C,YAAY,OAAO,GAAE,mBAAwB,EAmB5C;IAEK,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA6CtF;CACF"}
@@ -0,0 +1,69 @@
1
+ import { formatBytes, numberArg, resolveOptions, stringArg, stringListArg, withArtifacts } from "./artifact-helpers.js";
2
+ /**
3
+ * list_artifacts — what this agent has already made, most recently updated first.
4
+ * Metadata only (no content), so the model can decide what to read or update without
5
+ * pulling whole deliverables into context.
6
+ */
7
+ export class ListArtifactsTool {
8
+ name = "tool:list-artifacts";
9
+ version = "1.0.0";
10
+ definition;
11
+ options;
12
+ constructor(options = {}) {
13
+ this.options = resolveOptions(options);
14
+ this.definition = {
15
+ name: "list_artifacts",
16
+ description: "List the artifacts you have made — name, type, version, size and description, newest first. " +
17
+ "Check this before saving, so you update an existing deliverable instead of creating a near-duplicate.",
18
+ parameters: {
19
+ type: "object",
20
+ properties: {
21
+ type: { type: "string", description: 'Only artifacts of this type (e.g. "text/markdown")' },
22
+ tags: { type: "array", items: { type: "string" }, description: "Only artifacts carrying any of these tags" },
23
+ this_session_only: { type: "boolean", description: "Only artifacts first created in this conversation" },
24
+ limit: { type: "number", description: "Most artifacts to return" },
25
+ },
26
+ required: [],
27
+ },
28
+ risk: "read-only",
29
+ };
30
+ }
31
+ async execute(args, context) {
32
+ return withArtifacts("list_artifacts", context, async (artifacts) => {
33
+ const requested = numberArg(args, "limit");
34
+ const limit = Math.max(1, Math.floor(Math.min(requested && requested > 0 ? requested : this.options.maxListEntries, this.options.maxListEntries)));
35
+ const type = stringArg(args, "type")?.trim();
36
+ const tags = stringListArg(args, "tags");
37
+ const thisSessionOnly = args["this_session_only"] === true;
38
+ const found = await artifacts.list({
39
+ ...(type ? { types: [type] } : {}),
40
+ ...(tags ? { tags } : {}),
41
+ ...(thisSessionOnly && artifacts.sessionId ? { sessionId: artifacts.sessionId } : {}),
42
+ limit,
43
+ });
44
+ if (found.length === 0) {
45
+ return {
46
+ content: "No artifacts yet. Use save_artifact when you produce a deliverable worth keeping.",
47
+ metadata: { count: 0 },
48
+ };
49
+ }
50
+ const lines = found.map((artifact) => [
51
+ `${artifact.name} (${artifact.type}) v${artifact.version}`,
52
+ formatBytes(artifact.bytes),
53
+ `tracks ${artifact.sandboxPath}`,
54
+ `updated ${artifact.updatedAt}`,
55
+ ...(artifact.tags?.length ? [`tags: ${artifact.tags.join(", ")}`] : []),
56
+ ...(artifact.description ? [artifact.description] : []),
57
+ `id ${artifact.id}`,
58
+ ].join(" · "));
59
+ return {
60
+ content: `${found.length} artifact${found.length === 1 ? "" : "s"}:\n${lines.join("\n")}`,
61
+ metadata: {
62
+ count: found.length,
63
+ artifacts: found.map((a) => ({ id: a.id, name: a.name, type: a.type, version: a.version, bytes: a.bytes, sandboxPath: a.sandboxPath })),
64
+ },
65
+ };
66
+ });
67
+ }
68
+ }
69
+ //# sourceMappingURL=list-artifacts-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-artifacts-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGxH;;;;GAIG;AACH,MAAM,OAAO,iBAAiB;IACnB,IAAI,GAAG,qBAAqB,CAAC;IAC7B,OAAO,GAAG,OAAO,CAAC;IAClB,UAAU,CAAiB;IAC5B,OAAO,CAA8B;IAE7C,YAAY,OAAO,GAAwB,EAAE;QAC3C,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG;YAChB,IAAI,EAAE,gBAAgB;YACtB,WAAW,EACT,8FAA8F;gBAC9F,uGAAuG;YACzG,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,oDAAoD,EAAE;oBAC3F,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,2CAA2C,EAAE;oBAC5G,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,mDAAmD,EAAE;oBACxG,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0BAA0B,EAAE;iBACnE;gBACD,QAAQ,EAAE,EAAE;aACb;YACD,IAAI,EAAE,WAAW;SAClB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,IAA6B,EAAE,OAAoB;QAC/D,OAAO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CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,16 @@
1
+ import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
2
+ import type { ArtifactToolOptions } from "./types.js";
3
+ /**
4
+ * read_artifact — read a tracked artifact's file, live from the agent's sandbox. Bounded
5
+ * for the model's context by max_bytes; the file itself is never truncated, and the
6
+ * user's Artifacts panel always shows it whole.
7
+ */
8
+ export declare class ReadArtifactTool implements ToolHandler {
9
+ readonly name = "tool:read-artifact";
10
+ readonly version = "1.0.0";
11
+ readonly definition: ToolDefinition;
12
+ private options;
13
+ constructor(options?: ArtifactToolOptions);
14
+ execute(args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
15
+ }
16
+ //# sourceMappingURL=read-artifact-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-artifact-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE3F,OAAO,KAAK,EAAE,mBAAmB,EAA+B,MAAM,YAAY,CAAC;AAEnF;;;;GAIG;AACH,qBAAa,gBAAiB,YAAW,WAAW;IAClD,QAAQ,CAAC,IAAI,wBAAwB;IACrC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,OAAO,CAAC,OAAO,CAA8B;IAE7C,YAAY,OAAO,GAAE,mBAAwB,EAmB5C;IAEK,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAmDtF;CACF"}
@@ -0,0 +1,79 @@
1
+ import { argError, formatBytes, numberArg, refArg, resolveOptions, sandboxFor, withArtifacts } from "./artifact-helpers.js";
2
+ /**
3
+ * read_artifact — read a tracked artifact's file, live from the agent's sandbox. Bounded
4
+ * for the model's context by max_bytes; the file itself is never truncated, and the
5
+ * user's Artifacts panel always shows it whole.
6
+ */
7
+ export class ReadArtifactTool {
8
+ name = "tool:read-artifact";
9
+ version = "1.0.0";
10
+ definition;
11
+ options;
12
+ constructor(options = {}) {
13
+ this.options = resolveOptions(options);
14
+ this.definition = {
15
+ name: "read_artifact",
16
+ description: "Read an artifact's tracked file, live from your workspace. Use this instead of keeping a long deliverable " +
17
+ "in the conversation: refer to the artifact by name and read it when you need it.",
18
+ parameters: {
19
+ type: "object",
20
+ properties: {
21
+ name: { type: "string", description: "Name of the artifact (or use id)" },
22
+ id: { type: "string", description: "Id of the artifact (or use name)" },
23
+ max_bytes: { type: "number", description: "Most bytes of content to return" },
24
+ },
25
+ required: [],
26
+ },
27
+ risk: "read-only",
28
+ sandboxOperation: "fs.read",
29
+ };
30
+ }
31
+ async execute(args, context) {
32
+ const ref = refArg(args);
33
+ if (!ref.id && !ref.name)
34
+ return argError("read_artifact", 'give "name" or "id" to say which artifact to read');
35
+ return withArtifacts("read_artifact", context, async (artifacts) => {
36
+ const resolved = await sandboxFor("read_artifact", context);
37
+ if (!resolved.ok)
38
+ return resolved.output;
39
+ const { sandbox } = resolved;
40
+ const requested = numberArg(args, "max_bytes");
41
+ const maxBytes = Math.max(1, Math.floor(Math.min(requested && requested > 0 ? requested : this.options.maxReadBytes, this.options.maxReadBytes)));
42
+ const { artifact, file } = await artifacts.read(ref, sandbox, { maxBytes });
43
+ if (file.status === "missing") {
44
+ return {
45
+ content: `read_artifact: "${artifact.name}" (tracks ${file.path}) is missing — ${file.reason}`,
46
+ isError: true,
47
+ retryable: false,
48
+ metadata: { code: "file_missing", artifactId: artifact.id, name: artifact.name, sandboxPath: file.path },
49
+ };
50
+ }
51
+ const header = [
52
+ `${artifact.name} (${artifact.type}) v${artifact.version}`,
53
+ formatBytes(file.size),
54
+ `tracks ${file.path}`,
55
+ ].join(" · ");
56
+ const notice = file.status === "changed"
57
+ ? `Note: this file changed since v${artifact.version} was tracked — call update_artifact with just the name to record it.\n\n`
58
+ : "";
59
+ const truncationNote = file.truncated
60
+ ? `\n\n… [showing ${formatBytes(Buffer.byteLength(file.content, "utf8"))} of ${formatBytes(file.size)} — raise max_bytes to see more]`
61
+ : "";
62
+ return {
63
+ content: `${notice}${header}\n\n${file.content}${truncationNote}`,
64
+ metadata: {
65
+ artifactId: artifact.id,
66
+ name: artifact.name,
67
+ type: artifact.type,
68
+ version: artifact.version,
69
+ status: file.status,
70
+ bytes: file.size,
71
+ sha256: file.sha256,
72
+ truncated: file.truncated,
73
+ sandboxPath: file.path,
74
+ },
75
+ };
76
+ });
77
+ }
78
+ }
79
+ //# sourceMappingURL=read-artifact-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-artifact-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG5H;;;;GAIG;AACH,MAAM,OAAO,gBAAgB;IAClB,IAAI,GAAG,oBAAoB,CAAC;IAC5B,OAAO,GAAG,OAAO,CAAC;IAClB,UAAU,CAAiB;IAC5B,OAAO,CAA8B;IAE7C,YAAY,OAAO,GAAwB,EAAE;QAC3C,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG;YAChB,IAAI,EAAE,eAAe;YACrB,WAAW,EACT,4GAA4G;gBAC5G,kFAAkF;YACpF,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kCAAkC,EAAE;oBACzE,E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E,QAAQ,CAAC,IAAI;oBACnB,OAAO,EAAE,QAAQ,CAAC,OAAO;oBACzB,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,KAAK,EAAE,IAAI,CAAC,IAAI;oBAChB,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,SAAS,EAAE,IAAI,CAAC,SAAS;oBACzB,WAAW,EAAE,IAAI,CAAC,IAAI;iBACvB;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,16 @@
1
+ import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
2
+ import type { ArtifactToolOptions } from "./types.js";
3
+ /**
4
+ * save_artifact — start tracking a lasting output at version 1: either text written to
5
+ * the agent's workspace first (inline `content`), or an existing workspace file
6
+ * (`from_path`). A name the agent already used is refused: changing an existing
7
+ * artifact is update_artifact's job, so its file is never clobbered.
8
+ */
9
+ export declare class SaveArtifactTool implements ToolHandler {
10
+ readonly name = "tool:save-artifact";
11
+ readonly version = "1.0.0";
12
+ readonly definition: ToolDefinition;
13
+ constructor(_options?: ArtifactToolOptions);
14
+ execute(args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
15
+ }
16
+ //# sourceMappingURL=save-artifact-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save-artifact-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;GAKG;AACH,qBAAa,gBAAiB,YAAW,WAAW;IAClD,QAAQ,CAAC,IAAI,wBAAwB;IACrC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IAEpC,YAAY,QAAQ,GAAE,mBAAwB,EAuC7C;IAEK,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA0DtF;CACF"}