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,12 @@
1
+ import type { SandboxApprovalPolicy } from "./types/policy.js";
2
+ /**
3
+ * Default approval rules per sandbox (wired into the approval gate by A-61):
4
+ *
5
+ * | operation | isolated (docker/remote) | not isolated (host) |
6
+ * |------------------------|--------------------------|---------------------|
7
+ * | fs.read / fs.search | auto | auto |
8
+ * | fs.write | auto | approval |
9
+ * | exec | auto | approval |
10
+ */
11
+ export declare const defaultSandboxApprovalPolicy: SandboxApprovalPolicy;
12
+ //# sourceMappingURL=approval-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-policy.d.ts","sourceRoot":"","sources":["../../../src/components/sandbox-hub/approval-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,EAAE,qBAC6B,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Default approval rules per sandbox (wired into the approval gate by A-61):
3
+ *
4
+ * | operation | isolated (docker/remote) | not isolated (host) |
5
+ * |------------------------|--------------------------|---------------------|
6
+ * | fs.read / fs.search | auto | auto |
7
+ * | fs.write | auto | approval |
8
+ * | exec | auto | approval |
9
+ */
10
+ export const defaultSandboxApprovalPolicy = (traits, operation) => !traits.isolated && (operation === "fs.write" || operation === "exec");
11
+ //# sourceMappingURL=approval-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-policy.js","sourceRoot":"","sources":["../../../src/components/sandbox-hub/approval-policy.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA0B,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CACvF,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,SAAS,KAAK,UAAU,IAAI,SAAS,KAAK,MAAM,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const AEC_SANDBOX_IMAGE = "aec-sandbox:latest";
2
+ export declare const AEC_SANDBOX_DOCKERFILE = "FROM node:22-bookworm-slim\n\nRUN apt-get update \\\n && apt-get install -y --no-install-recommends \\\n git ripgrep python3 python3-pip python3-venv ca-certificates procps \\\n && rm -rf /var/lib/apt/lists/*\n\nRUN mkdir -p /workspace && chown node:node /workspace\n\nENV HOME=/tmp/home \\\n PYTHONDONTWRITEBYTECODE=1 \\\n PIP_DISABLE_PIP_VERSION_CHECK=1 \\\n NPM_CONFIG_UPDATE_NOTIFIER=false\n\nUSER node\nWORKDIR /workspace\nCMD [\"sleep\", \"infinity\"]\n";
3
+ //# sourceMappingURL=aec-sandbox-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aec-sandbox-image.d.ts","sourceRoot":"","sources":["../../../../src/components/sandbox-hub/docker/aec-sandbox-image.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,8dAiBlC,CAAC"}
@@ -0,0 +1,31 @@
1
+ // ---------------------------------------------------------------------------
2
+ // aec-sandbox — the default image for Docker sandboxes (A-60).
3
+ //
4
+ // Debian slim + Node (required: the sandbox helper runs on it) + Python + git +
5
+ // ripgrep. Built from this Dockerfile (no build context) by DockerSandboxProvider
6
+ // the first time the image is missing, or by hand:
7
+ //
8
+ // docker build -t aec-sandbox:latest - < Dockerfile
9
+ //
10
+ // The `node` user (uid 1000) owns /workspace; containers run as it.
11
+ // ---------------------------------------------------------------------------
12
+ export const AEC_SANDBOX_IMAGE = "aec-sandbox:latest";
13
+ export const AEC_SANDBOX_DOCKERFILE = `FROM node:22-bookworm-slim
14
+
15
+ RUN apt-get update \\
16
+ && apt-get install -y --no-install-recommends \\
17
+ git ripgrep python3 python3-pip python3-venv ca-certificates procps \\
18
+ && rm -rf /var/lib/apt/lists/*
19
+
20
+ RUN mkdir -p /workspace && chown node:node /workspace
21
+
22
+ ENV HOME=/tmp/home \\
23
+ PYTHONDONTWRITEBYTECODE=1 \\
24
+ PIP_DISABLE_PIP_VERSION_CHECK=1 \\
25
+ NPM_CONFIG_UPDATE_NOTIFIER=false
26
+
27
+ USER node
28
+ WORKDIR /workspace
29
+ CMD ["sleep", "infinity"]
30
+ `;
31
+ //# sourceMappingURL=aec-sandbox-image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aec-sandbox-image.js","sourceRoot":"","sources":["../../../../src/components/sandbox-hub/docker/aec-sandbox-image.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,+DAA+D;AAC/D,EAAE;AACF,gFAAgF;AAChF,kFAAkF;AAClF,mDAAmD;AACnD,EAAE;AACF,sDAAsD;AACtD,EAAE;AACF,oEAAoE;AACpE,8EAA8E;AAE9E,MAAM,CAAC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAEtD,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;CAiBrC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { ChildProcessWithoutNullStreams } from "node:child_process";
2
+ import { SandboxError } from "../../../kernel/errors/sandbox-error.js";
3
+ export interface DockerRunResult {
4
+ code: number | null;
5
+ stdout: string;
6
+ stderr: string;
7
+ }
8
+ export interface DockerRunOptions {
9
+ /** Written to stdin, then stdin is closed. */
10
+ input?: string;
11
+ timeoutMs?: number;
12
+ signal?: AbortSignal;
13
+ /** Sandbox id for errors. */
14
+ sandboxId?: string;
15
+ }
16
+ /**
17
+ * Thin wrapper over the `docker` CLI. The CLI gets the server's environment (it may
18
+ * need DOCKER_HOST, PATH); containers never do — `docker exec` only passes what `-e`
19
+ * names, and the provider passes nothing from the server.
20
+ */
21
+ export declare class DockerCli {
22
+ readonly binary: string;
23
+ constructor(binary?: string);
24
+ /** Start a docker process with piped stdio. */
25
+ spawn(args: string[]): ChildProcessWithoutNullStreams;
26
+ /** Run to completion. Rejects only when docker cannot run at all, times out or is aborted. */
27
+ run(args: string[], opts?: DockerRunOptions): Promise<DockerRunResult>;
28
+ }
29
+ export declare function dockerSpawnError(error: NodeJS.ErrnoException, binary: string, sandboxId?: string): SandboxError;
30
+ /** docker's message for a container that is gone or stopped (recoverable by restarting it). */
31
+ export declare function isContainerDown(stderr: string): boolean;
32
+ //# sourceMappingURL=docker-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docker-cli.d.ts","sourceRoot":"","sources":["../../../../src/components/sandbox-hub/docker/docker-cli.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD;;;;GAIG;AACH,qBAAa,SAAS;IACR,QAAQ,CAAC,MAAM,EAAE,MAAM;IAAnC,YAAqB,MAAM,GAAE,MAAiB,EAAI;IAElD,+CAA+C;IAC/C,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,8BAA8B,CAEpD;IAED,8FAA8F;IAC9F,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,gBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC,CAwDzE;CACF;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAM/G;AAED,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEvD"}
@@ -0,0 +1,83 @@
1
+ import { spawn } from "node:child_process";
2
+ import { SandboxError } from "../../../kernel/errors/sandbox-error.js";
3
+ /** Output above this is dropped — docker's own output, never a command's (that is streamed). */
4
+ const MAX_CAPTURE_BYTES = 64 * 1024 * 1024;
5
+ /**
6
+ * Thin wrapper over the `docker` CLI. The CLI gets the server's environment (it may
7
+ * need DOCKER_HOST, PATH); containers never do — `docker exec` only passes what `-e`
8
+ * names, and the provider passes nothing from the server.
9
+ */
10
+ export class DockerCli {
11
+ binary;
12
+ constructor(binary = "docker") {
13
+ this.binary = binary;
14
+ }
15
+ /** Start a docker process with piped stdio. */
16
+ spawn(args) {
17
+ return spawn(this.binary, args, { stdio: ["pipe", "pipe", "pipe"], windowsHide: true });
18
+ }
19
+ /** Run to completion. Rejects only when docker cannot run at all, times out or is aborted. */
20
+ run(args, opts = {}) {
21
+ return new Promise((resolve, reject) => {
22
+ if (opts.signal?.aborted) {
23
+ reject(new SandboxError("Operation cancelled", "cancelled", opts.sandboxId));
24
+ return;
25
+ }
26
+ const proc = this.spawn(args);
27
+ const out = [];
28
+ const err = [];
29
+ let captured = 0;
30
+ let settled = false;
31
+ const capture = (into) => (chunk) => {
32
+ if (captured >= MAX_CAPTURE_BYTES)
33
+ return;
34
+ captured += chunk.length;
35
+ into.push(chunk);
36
+ };
37
+ proc.stdout.on("data", capture(out));
38
+ proc.stderr.on("data", capture(err));
39
+ const settle = (fn) => {
40
+ if (settled)
41
+ return;
42
+ settled = true;
43
+ clearTimeout(timer);
44
+ opts.signal?.removeEventListener("abort", onAbort);
45
+ fn();
46
+ };
47
+ const onAbort = () => {
48
+ proc.kill();
49
+ settle(() => reject(new SandboxError("Operation cancelled", "cancelled", opts.sandboxId)));
50
+ };
51
+ const timer = opts.timeoutMs
52
+ ? setTimeout(() => {
53
+ proc.kill();
54
+ settle(() => reject(new SandboxError(`docker ${args[0]} timed out after ${opts.timeoutMs} ms`, "timeout", opts.sandboxId)));
55
+ }, opts.timeoutMs)
56
+ : undefined;
57
+ opts.signal?.addEventListener("abort", onAbort, { once: true });
58
+ proc.on("error", (error) => {
59
+ settle(() => reject(dockerSpawnError(error, this.binary, opts.sandboxId)));
60
+ });
61
+ proc.on("close", (code) => {
62
+ settle(() => resolve({
63
+ code,
64
+ stdout: Buffer.concat(out).toString("utf8"),
65
+ stderr: Buffer.concat(err).toString("utf8"),
66
+ }));
67
+ });
68
+ proc.stdin.on("error", () => { });
69
+ proc.stdin.end(opts.input ?? "");
70
+ });
71
+ }
72
+ }
73
+ export function dockerSpawnError(error, binary, sandboxId) {
74
+ const message = error.code === "ENOENT"
75
+ ? `Docker CLI "${binary}" was not found — install Docker to use sandboxes`
76
+ : `Could not run the Docker CLI: ${error.message}`;
77
+ return new SandboxError(message, "environment_unavailable", sandboxId);
78
+ }
79
+ /** docker's message for a container that is gone or stopped (recoverable by restarting it). */
80
+ export function isContainerDown(stderr) {
81
+ return /No such container|is not running|is paused|is restarting/i.test(stderr);
82
+ }
83
+ //# sourceMappingURL=docker-cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docker-cli.js","sourceRoot":"","sources":["../../../../src/components/sandbox-hub/docker/docker-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAiBvE,gGAAgG;AAChG,MAAM,iBAAiB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C;;;;GAIG;AACH,MAAM,OAAO,SAAS;IACC,MAAM;IAA3B,YAAqB,MAAM,GAAW,QAAQ;sBAAzB,MAAM;IAAsB,CAAC;IAElD,+CAA+C;IAC/C,KAAK,CAAC,IAAc;QAClB,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED,8FAA8F;IAC9F,GAAG,CAAC,IAAc,EAAE,IAAI,GAAqB,EAAE;QAC7C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,IAAI,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;gBACzB,MAAM,CAAC,IAAI,YAAY,CAAC,qBAAqB,EAAE,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;gBAC7E,OAAO;YACT,CAAC;YACD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC9B,MAAM,GAAG,GAAa,EAAE,CAAC;YACzB,MAAM,GAAG,GAAa,EAAE,CAAC;YACzB,IAAI,QAAQ,GAAG,CAAC,CAAC;YACjB,IAAI,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YAAY,CAAC,OAAO,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;AACzE,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,OAAO,2DAA2D,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAClF,CAAC"}
@@ -0,0 +1,70 @@
1
+ import type { SandboxLimits, Sandbox } from "../types/sandbox.js";
2
+ import type { CreateSandboxContext, SandboxSpec, ResourceLimits, SandboxProvider } from "../types/provider.js";
3
+ import { DockerCli } from "./docker-cli.js";
4
+ import type { DockerSandboxProviderOptions } from "./types.js";
5
+ /** Per-operation ceilings of a Docker sandbox (overridable via options.limits). */
6
+ export declare const DOCKER_DEFAULT_LIMITS: SandboxLimits;
7
+ export interface DockerSandboxSettings {
8
+ defaultImage: string;
9
+ user: string;
10
+ defaultResources: ResourceLimits;
11
+ tmpfsSize: string;
12
+ limits: SandboxLimits;
13
+ buildDefaultImage: boolean;
14
+ pullImages: boolean;
15
+ operationTimeoutMs: number;
16
+ namePrefix: string;
17
+ }
18
+ /**
19
+ * Docker sandboxes (A-60): one long-lived container per sandbox on a named volume,
20
+ * driven through the `docker` CLI (no Docker SDK dependency, no Docker socket mounts).
21
+ *
22
+ * shared sandbox aec-sandbox-shared /workspace/agents/<id> + /workspace/shared
23
+ * own sandbox aec-sandbox-own-<agentId> the whole /workspace
24
+ * named env aec-sandbox-env-<name>
25
+ *
26
+ * Retention: files live on the volume — they survive sessions, container restarts and
27
+ * server restarts. /tmp is a tmpfs, wiped whenever the container restarts. Disposing
28
+ * stops and removes the container but keeps the volume; data is deleted only through
29
+ * `dispose({ removeData: true })` / `removeAgentData()` / `removeData()` — which the
30
+ * SandboxHub calls when an agent is deleted.
31
+ */
32
+ export declare class DockerSandboxProvider implements SandboxProvider {
33
+ readonly name = "sandbox:docker";
34
+ readonly version = "1.0.0";
35
+ readonly kind: "docker";
36
+ readonly cli: DockerCli;
37
+ readonly settings: DockerSandboxSettings;
38
+ private images;
39
+ constructor(options?: DockerSandboxProviderOptions);
40
+ create(spec: SandboxSpec, context: CreateSandboxContext): Promise<Sandbox>;
41
+ /**
42
+ * Delete the stored data of a sandbox that is not running in this process —
43
+ * its whole volume, or (with `agentId`, shared tenancy) one agent's folder in it.
44
+ */
45
+ removeData(spec: SandboxSpec, context: CreateSandboxContext, opts?: {
46
+ agentId?: string;
47
+ }): Promise<void>;
48
+ /** Is Docker reachable? For startup logs and health checks — never throws. */
49
+ checkAvailable(): Promise<{
50
+ ok: true;
51
+ version: string;
52
+ } | {
53
+ ok: false;
54
+ reason: string;
55
+ }>;
56
+ /** @internal Throws environment_unavailable (retryable) when Docker is not running. */
57
+ checkDocker(sandboxId: string): Promise<void>;
58
+ /**
59
+ * Make sure an image exists locally: build aec-sandbox from the bundled Dockerfile,
60
+ * pull anything else. Call at server startup to avoid a slow first tool call.
61
+ */
62
+ ensureImage(image: string, sandboxId?: string): Promise<void>;
63
+ /** @internal Container/volume names for a sandbox id ("docker:shared" → "aec-sandbox-shared"). */
64
+ namesFor(sandboxId: string): {
65
+ container: string;
66
+ volume: string;
67
+ };
68
+ private prepareImage;
69
+ }
70
+ //# sourceMappingURL=docker-sandbox-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docker-sandbox-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/sandbox-hub/docker/docker-sandbox-provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAE/D,mFAAmF;AACnF,eAAO,MAAM,qBAAqB,EAAE,aAOnC,CAAC;AAMF,MAAM,WAAW,qBAAqB;I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CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAU5D;IAED,kGAAkG;IAClG,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAKjE;YAEa,YAAY;CAsB3B"}
@@ -0,0 +1,166 @@
1
+ import { SandboxError } from "../../../kernel/errors/sandbox-error.js";
2
+ import { AGENTS_DIR, assertSafeAgentId, WORKSPACE_ROOT } from "../logical-path.js";
3
+ import { AEC_SANDBOX_DOCKERFILE, AEC_SANDBOX_IMAGE } from "./aec-sandbox-image.js";
4
+ import { DockerCli } from "./docker-cli.js";
5
+ import { DockerSandbox } from "./docker-sandbox.js";
6
+ /** Per-operation ceilings of a Docker sandbox (overridable via options.limits). */
7
+ export const DOCKER_DEFAULT_LIMITS = {
8
+ maxReadBytes: 2_000_000,
9
+ maxWriteBytes: 5_000_000,
10
+ maxListEntries: 5_000,
11
+ maxSearchMatches: 500,
12
+ maxExecTimeoutMs: 10 * 60_000,
13
+ maxExecOutputBytes: 2_000_000,
14
+ };
15
+ const DEFAULT_RESOURCES = { cpus: 2, memoryMb: 2048, pids: 256 };
16
+ const IMAGE_BUILD_TIMEOUT_MS = 30 * 60_000;
17
+ const IMAGE_PULL_TIMEOUT_MS = 20 * 60_000;
18
+ /**
19
+ * Docker sandboxes (A-60): one long-lived container per sandbox on a named volume,
20
+ * driven through the `docker` CLI (no Docker SDK dependency, no Docker socket mounts).
21
+ *
22
+ * shared sandbox aec-sandbox-shared /workspace/agents/<id> + /workspace/shared
23
+ * own sandbox aec-sandbox-own-<agentId> the whole /workspace
24
+ * named env aec-sandbox-env-<name>
25
+ *
26
+ * Retention: files live on the volume — they survive sessions, container restarts and
27
+ * server restarts. /tmp is a tmpfs, wiped whenever the container restarts. Disposing
28
+ * stops and removes the container but keeps the volume; data is deleted only through
29
+ * `dispose({ removeData: true })` / `removeAgentData()` / `removeData()` — which the
30
+ * SandboxHub calls when an agent is deleted.
31
+ */
32
+ export class DockerSandboxProvider {
33
+ name = "sandbox:docker";
34
+ version = "1.0.0";
35
+ kind = "docker";
36
+ cli;
37
+ settings;
38
+ images = new Map();
39
+ constructor(options = {}) {
40
+ this.cli = new DockerCli(options.dockerPath ?? "docker");
41
+ this.settings = {
42
+ defaultImage: options.defaultImage ?? AEC_SANDBOX_IMAGE,
43
+ user: options.user ?? "1000:1000",
44
+ defaultResources: { ...DEFAULT_RESOURCES, ...options.defaultResources },
45
+ tmpfsSize: options.tmpfsSize ?? "256m",
46
+ limits: { ...DOCKER_DEFAULT_LIMITS, ...options.limits },
47
+ buildDefaultImage: options.buildDefaultImage ?? true,
48
+ pullImages: options.pullImages ?? true,
49
+ operationTimeoutMs: options.operationTimeoutMs ?? 60_000,
50
+ namePrefix: options.namePrefix ?? "aec-sandbox",
51
+ };
52
+ if (!/^\d+(:\d+)?$/.test(this.settings.user)) {
53
+ throw new Error(`DockerSandboxProvider: user must be numeric "uid" or "uid:gid", got "${this.settings.user}"`);
54
+ }
55
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$/.test(this.settings.namePrefix)) {
56
+ throw new Error(`DockerSandboxProvider: invalid namePrefix "${this.settings.namePrefix}"`);
57
+ }
58
+ }
59
+ async create(spec, context) {
60
+ if (spec.kind !== "docker") {
61
+ throw new SandboxError(`DockerSandboxProvider cannot create "${spec.kind}" sandboxes`, "provider_unavailable", context.id);
62
+ }
63
+ const env = new DockerSandbox(this, spec, context);
64
+ await env.start();
65
+ return env;
66
+ }
67
+ /**
68
+ * Delete the stored data of a sandbox that is not running in this process —
69
+ * its whole volume, or (with `agentId`, shared tenancy) one agent's folder in it.
70
+ */
71
+ async removeData(spec, context, opts = {}) {
72
+ const { container, volume } = this.namesFor(context.id);
73
+ if (context.tenancy === "own" || !opts.agentId) {
74
+ await this.cli.run(["rm", "--force", container], { timeoutMs: 60_000, sandboxId: context.id });
75
+ await this.cli.run(["volume", "rm", "--force", volume], { timeoutMs: 60_000, sandboxId: context.id });
76
+ return;
77
+ }
78
+ assertSafeAgentId(opts.agentId);
79
+ const exists = await this.cli.run(["volume", "inspect", volume], { timeoutMs: 30_000, sandboxId: context.id });
80
+ if (exists.code !== 0)
81
+ return; // never created — nothing stored
82
+ const image = spec.image ?? this.settings.defaultImage;
83
+ const present = await this.cli.run(["image", "inspect", "--format", "{{.Id}}", image], { timeoutMs: 30_000 });
84
+ if (present.code !== 0)
85
+ return;
86
+ const r = await this.cli.run([
87
+ "run", "--rm",
88
+ "--network", "none",
89
+ "--user", this.settings.user,
90
+ "--cap-drop", "ALL",
91
+ "--security-opt", "no-new-privileges",
92
+ "--mount", `type=volume,source=${volume},target=${WORKSPACE_ROOT}`,
93
+ "--entrypoint", "sh",
94
+ image,
95
+ "-c", 'chmod -R u+rwX -- "$1" 2>/dev/null; rm -rf -- "$1"',
96
+ "sh", `${AGENTS_DIR}/${opts.agentId}`,
97
+ ], { timeoutMs: 120_000, sandboxId: context.id });
98
+ if (r.code !== 0) {
99
+ throw new SandboxError(`Could not remove the agent's sandbox files: ${r.stderr.trim().slice(0, 300)}`, "environment_unavailable", context.id);
100
+ }
101
+ }
102
+ /** Is Docker reachable? For startup logs and health checks — never throws. */
103
+ async checkAvailable() {
104
+ try {
105
+ const r = await this.cli.run(["version", "--format", "{{.Server.Version}}"], { timeoutMs: 20_000 });
106
+ if (r.code === 0 && r.stdout.trim())
107
+ return { ok: true, version: r.stdout.trim() };
108
+ return { ok: false, reason: r.stderr.trim().split("\n")[0] || `docker exited with ${r.code}` };
109
+ }
110
+ catch (error) {
111
+ return { ok: false, reason: error instanceof Error ? error.message : String(error) };
112
+ }
113
+ }
114
+ /** @internal Throws environment_unavailable (retryable) when Docker is not running. */
115
+ async checkDocker(sandboxId) {
116
+ const status = await this.checkAvailable();
117
+ if (!status.ok) {
118
+ throw new SandboxError(`Docker is not available (is Docker running?): ${status.reason}`, "environment_unavailable", sandboxId);
119
+ }
120
+ }
121
+ /**
122
+ * Make sure an image exists locally: build aec-sandbox from the bundled Dockerfile,
123
+ * pull anything else. Call at server startup to avoid a slow first tool call.
124
+ */
125
+ ensureImage(image, sandboxId) {
126
+ let pending = this.images.get(image);
127
+ if (!pending) {
128
+ pending = this.prepareImage(image, sandboxId).catch((error) => {
129
+ this.images.delete(image); // retried on the next call
130
+ throw error;
131
+ });
132
+ this.images.set(image, pending);
133
+ }
134
+ return pending;
135
+ }
136
+ /** @internal Container/volume names for a sandbox id ("docker:shared" → "aec-sandbox-shared"). */
137
+ namesFor(sandboxId) {
138
+ const bare = sandboxId.replace(/^docker:/, "");
139
+ const suffix = bare === "shared" ? "shared" : bare.startsWith("own:") ? `own-${bare.slice(4)}` : `env-${bare}`;
140
+ const name = `${this.settings.namePrefix}-${suffix.replace(/[^A-Za-z0-9_.-]/g, "-")}`;
141
+ return { container: name, volume: name };
142
+ }
143
+ async prepareImage(image, sandboxId) {
144
+ const present = await this.cli.run(["image", "inspect", "--format", "{{.Id}}", image], { timeoutMs: 30_000, sandboxId });
145
+ if (present.code === 0)
146
+ return;
147
+ if (image === AEC_SANDBOX_IMAGE && this.settings.buildDefaultImage) {
148
+ const r = await this.cli.run(["build", "--tag", image, "-"], {
149
+ input: AEC_SANDBOX_DOCKERFILE, timeoutMs: IMAGE_BUILD_TIMEOUT_MS, sandboxId,
150
+ });
151
+ if (r.code !== 0) {
152
+ throw new SandboxError(`Building ${image} failed: ${r.stderr.trim().slice(-500)}`, "environment_unavailable", sandboxId);
153
+ }
154
+ return;
155
+ }
156
+ if (this.settings.pullImages) {
157
+ const r = await this.cli.run(["pull", image], { timeoutMs: IMAGE_PULL_TIMEOUT_MS, sandboxId });
158
+ if (r.code !== 0) {
159
+ throw new SandboxError(`Pulling ${image} failed: ${r.stderr.trim().slice(-500)}`, "environment_unavailable", sandboxId);
160
+ }
161
+ return;
162
+ }
163
+ throw new SandboxError(`Image "${image}" is not available locally`, "environment_unavailable", sandboxId);
164
+ }
165
+ }
166
+ //# sourceMappingURL=docker-sandbox-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docker-sandbox-provider.js","sourceRoot":"","sources":["../../../../src/components/sandbox-hub/docker/docker-sandbox-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAQnF,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,mFAAmF;AACnF,MAAM,CAAC,MAAM,qBAAqB,GAAkB;IAClD,YAAY,EAAE,SAAS;IACvB,aAAa,EAAE,SAAS;IACxB,cAAc,EAAE,KAAK;IACrB,gBAAgB,EAAE,GAAG;IACrB,gBAAgB,EAAE,EAAE,GAAG,MAAM;IAC7B,kBAAkB,EAAE,SAAS;CAC9B,CAAC;AAEF,MAAM,iBAAiB,GAAmB,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;AACjF,MAAM,sBAAsB,GAAG,EAAE,GAAG,MAAM,CAAC;AAC3C,MAAM,qBAAqB,GAAG,EAAE,GAAG,MAAM,CAAC;AAc1C;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,qBAAqB;IACvB,IAAI,GAAG,gBAAgB,CAAC;IACxB,OAAO,GAAG,OAAO,CAAC;IAClB,IAAI,GAAG,QAAiB,CAAC;IACzB,GAAG,CAAY;IACf,QAAQ,CAAwB;IACjC,MAAM,GAAG,IAAI,GAAG,EAAyB,CAAC;IAElD,YAAY,OAAO,GAAiC,EAAE;QACpD,IAAI,CAAC,GAAG,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,UAAU,IAAI,QAA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IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;gBACjB,MAAM,IAAI,YAAY,CAAC,YAAY,KAAK,YAAY,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;YAC3H,CAAC;YACD,OAAO;QACT,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;YAC7B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,SAAS,EAAE,CAAC,CAAC;YAC/F,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;gBACjB,MAAM,IAAI,YAAY,CAAC,WAAW,KAAK,YAAY,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;YAC1H,CAAC;YACD,OAAO;QACT,CAAC;QACD,MAAM,IAAI,YAAY,CAAC,UAAU,KAAK,4BAA4B,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;IAC5G,CAAC;CACF"}
@@ -0,0 +1,51 @@
1
+ import type { SandboxCapability, SandboxLimits, SandboxTraits, SandboxView, OpOptions, Sandbox } from "../types/sandbox.js";
2
+ import type { CreateSandboxContext, SandboxSpec } from "../types/provider.js";
3
+ import type { DockerSandboxProvider } from "./docker-sandbox-provider.js";
4
+ export declare class DockerSandbox implements Sandbox {
5
+ private readonly provider;
6
+ readonly spec: SandboxSpec;
7
+ private readonly context;
8
+ readonly id: string;
9
+ readonly traits: SandboxTraits;
10
+ readonly image: string;
11
+ readonly containerName: string;
12
+ readonly volumeName: string;
13
+ private readonly resources;
14
+ private readonly fingerprint;
15
+ private disposed;
16
+ private recovering?;
17
+ /** Agent folders already created in this container run. */
18
+ private agentDirs;
19
+ constructor(provider: DockerSandboxProvider, spec: SandboxSpec, context: CreateSandboxContext);
20
+ get limits(): SandboxLimits;
21
+ get capabilities(): ReadonlySet<SandboxCapability>;
22
+ private get cli();
23
+ private get user();
24
+ /** Docker up → image present → container running + set up. */
25
+ start(): Promise<void>;
26
+ forAgent(agentId: string): Promise<SandboxView>;
27
+ health(): Promise<"ready" | "starting" | "unavailable">;
28
+ removeAgentData(agentId: string): Promise<void>;
29
+ /** Stops and removes the container. The volume (the files) stays unless `removeData`. */
30
+ dispose(opts?: {
31
+ removeData?: boolean;
32
+ }): Promise<void>;
33
+ /** @internal */
34
+ assertUsable(): void;
35
+ /** @internal Run one helper file operation; restarts the container once if it went down. */
36
+ helper<T>(op: string, payload: Record<string, unknown>, opts?: OpOptions): Promise<T>;
37
+ /** @internal Start the helper in exec mode (the caller drives stdin/stdout). */
38
+ spawnExec(): import("node:child_process").ChildProcessWithoutNullStreams;
39
+ /** @internal Bring a stopped/removed container back (files are on the volume). */
40
+ recover(): Promise<void>;
41
+ private inspect;
42
+ private ensureContainer;
43
+ private runArgs;
44
+ /**
45
+ * Install the helper (root-owned, so the sandbox user cannot replace it), give the
46
+ * sandbox user /workspace and a HOME, then create the layout folders as that user.
47
+ */
48
+ private setup;
49
+ private docker;
50
+ }
51
+ //# sourceMappingURL=docker-sandbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docker-sandbox.d.ts","sourceRoot":"","sources":["../../../../src/components/sandbox-hub/docker/docker-sandbox.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,aAAa,EAIb,WAAW,EAKX,SAAS,EAMT,OAAO,EACR,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAkB,MAAM,sBAAsB,CAAC;AAG9F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC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