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,105 @@
1
+ import { SDKEventType } from "../../../event-handler/events.js";
2
+ import { argError, formatBytes, ignoredFromPathNote, sandboxFor, sourceFrom, stringArg, stringListArg, withArtifacts } from "./artifact-helpers.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 class SaveArtifactTool {
10
+ name = "tool:save-artifact";
11
+ version = "1.0.0";
12
+ definition;
13
+ constructor(_options = {}) {
14
+ this.definition = {
15
+ name: "save_artifact",
16
+ description: "Save a lasting output — a report, a spec section, a takeoff, an estimate — as an artifact the user keeps " +
17
+ "and can hand to another agent. Artifacts track a file in your workspace, versioned by name, so later turns " +
18
+ "refer to them by name instead of re-pasting their content. Pass \"from_path\" to track a file you already " +
19
+ "wrote (write_file first), or \"content\" to have it written to artifacts/<name> in your workspace and " +
20
+ "tracked. Use one or the other, not both.",
21
+ parameters: {
22
+ type: "object",
23
+ properties: {
24
+ name: {
25
+ type: "string",
26
+ description: 'Stable name, unique for this agent (e.g. "clash-report.md" or "reports/q3-takeoff.csv")',
27
+ },
28
+ type: {
29
+ type: "string",
30
+ description: 'MIME type ("text/markdown", "text/csv", "text/html", "application/json") or a domain type ' +
31
+ '("aec/takeoff", "aec/clash-report"). A real MIME type lets the user\'s Artifacts panel render it ' +
32
+ "(formatted markdown, a table, a rendered page) instead of plain text.",
33
+ },
34
+ content: { type: "string", description: "Text to write to your workspace and track. Leave it out when you use from_path." },
35
+ from_path: {
36
+ type: "string",
37
+ description: "Instead of content: a workspace file to track (its bytes are not copied). " +
38
+ "Leave it out when you pass content — content wins if both are given.",
39
+ },
40
+ description: { type: "string", description: "One line on what this artifact is, for the user's list" },
41
+ tags: { type: "array", items: { type: "string" }, description: "Optional labels for filtering" },
42
+ note: { type: "string", description: "Why this version exists — shown in the version history" },
43
+ },
44
+ required: ["name", "type"],
45
+ },
46
+ risk: "draft",
47
+ sandboxOperation: "fs.write",
48
+ };
49
+ }
50
+ async execute(args, context) {
51
+ const name = stringArg(args, "name")?.trim();
52
+ const type = stringArg(args, "type")?.trim();
53
+ if (!name)
54
+ return argError("save_artifact", '"name" must be a non-empty string');
55
+ if (!type)
56
+ return argError("save_artifact", '"type" must be a non-empty string');
57
+ return withArtifacts("save_artifact", context, async (artifacts) => {
58
+ const resolved = await sandboxFor("save_artifact", context);
59
+ if (!resolved.ok)
60
+ return resolved.output;
61
+ const { sandbox } = resolved;
62
+ const source = sourceFrom(args);
63
+ const saved = await artifacts.save({
64
+ name,
65
+ type,
66
+ ...(source.content !== undefined ? { content: source.content } : {}),
67
+ ...(source.path !== undefined ? { path: source.path } : {}),
68
+ ...(stringArg(args, "description") ? { description: stringArg(args, "description") } : {}),
69
+ ...(stringListArg(args, "tags") ? { tags: stringListArg(args, "tags") } : {}),
70
+ ...(stringArg(args, "note") ? { note: stringArg(args, "note") } : {}),
71
+ tool: "save_artifact",
72
+ }, sandbox);
73
+ context.emit({
74
+ type: SDKEventType.ArtifactSaved,
75
+ sessionId: context.sessionId,
76
+ payload: {
77
+ agentId: saved.artifact.agentId,
78
+ artifactId: saved.artifact.id,
79
+ name: saved.artifact.name,
80
+ type: saved.artifact.type,
81
+ version: saved.artifact.version,
82
+ bytes: saved.artifact.bytes,
83
+ sandboxPath: saved.artifact.sandboxPath,
84
+ sandboxId: saved.artifact.sandboxId,
85
+ },
86
+ });
87
+ return {
88
+ content: `Saved artifact "${saved.artifact.name}" (${saved.artifact.type}) as v1 — tracks ${saved.artifact.sandboxPath} ` +
89
+ `(${formatBytes(saved.artifact.bytes)}), id ${saved.artifact.id}. Refer to it by name from now on; use update_artifact to change it.` +
90
+ ignoredFromPathNote(source.ignoredFromPath),
91
+ metadata: {
92
+ artifactId: saved.artifact.id,
93
+ name: saved.artifact.name,
94
+ type: saved.artifact.type,
95
+ version: saved.artifact.version,
96
+ bytes: saved.artifact.bytes,
97
+ sha256: saved.artifact.sha256,
98
+ sandboxPath: saved.artifact.sandboxPath,
99
+ ...(source.ignoredFromPath ? { ignoredFromPath: source.ignoredFromPath } : {}),
100
+ },
101
+ };
102
+ });
103
+ }
104
+ }
105
+ //# sourceMappingURL=save-artifact-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save-artifact-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGpJ;;;;;GAKG;AACH,MAAM,OAA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,CAAC,QAAQ,CAAC,IAAI;oBACzB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;oBACzB,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO;oBAC/B,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK;oBAC3B,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM;oBAC7B,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,WAAW;oBACvC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC/E;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,11 @@
1
+ export interface ArtifactToolOptions {
2
+ /** Most bytes of a tracked file's content read_artifact returns to the model. Default 100 000 — not a hub limit, just a tool-level ceiling; the sandbox clamps further to its own limits.maxReadBytes. */
3
+ maxReadBytes?: number;
4
+ /** Most artifacts list_artifacts returns. Default 50. */
5
+ maxListEntries?: number;
6
+ }
7
+ export type ResolvedArtifactToolOptions = {
8
+ maxReadBytes: number;
9
+ maxListEntries: number;
10
+ };
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/types.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,mBAAmB;IAClC,0MAA0M;IAC1M,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,2BAA2B,GAAG;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Artifact tools (A-62) — save / update / read / list the agent's lasting
3
+ // outputs. They work ONLY through ToolContext.getArtifacts() (the agent-scoped
4
+ // ArtifactView) and ToolContext.getSandbox() (the file every artifact tracks),
5
+ // never the store directly, so ownership stays enforced in one place.
6
+ // ---------------------------------------------------------------------------
7
+ export {};
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/types.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0EAA0E;AAC1E,+EAA+E;AAC/E,+EAA+E;AAC/E,sEAAsE;AACtE,8EAA8E"}
@@ -0,0 +1,17 @@
1
+ import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
2
+ import type { ArtifactToolOptions } from "./types.js";
3
+ /**
4
+ * update_artifact — append a version to an existing artifact: rewrite the tracked file
5
+ * with new content, track a different file with `from_path`, or, with neither, re-track
6
+ * the same file's current state after you edited it with edit_file/write_file. The
7
+ * history is a content-less log — `expected_version` gives the model optimistic
8
+ * concurrency when a person may have changed it in between.
9
+ */
10
+ export declare class UpdateArtifactTool implements ToolHandler {
11
+ readonly name = "tool:update-artifact";
12
+ readonly version = "1.0.0";
13
+ readonly definition: ToolDefinition;
14
+ constructor(_options?: ArtifactToolOptions);
15
+ execute(args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
16
+ }
17
+ //# sourceMappingURL=update-artifact-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-artifact-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAa3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;GAMG;AACH,qBAAa,kBAAmB,YAAW,WAAW;IACpD,QAAQ,CAAC,IAAI,0BAA0B;IACvC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IAEpC,YAAY,QAAQ,GAAE,mBAAwB,EAiC7C;IAEK,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA0DtF;CACF"}
@@ -0,0 +1,100 @@
1
+ import { SDKEventType } from "../../../event-handler/events.js";
2
+ import { argError, formatBytes, ignoredFromPathNote, numberArg, refArg, sandboxFor, sourceFrom, stringArg, stringListArg, withArtifacts, } from "./artifact-helpers.js";
3
+ /**
4
+ * update_artifact — append a version to an existing artifact: rewrite the tracked file
5
+ * with new content, track a different file with `from_path`, or, with neither, re-track
6
+ * the same file's current state after you edited it with edit_file/write_file. The
7
+ * history is a content-less log — `expected_version` gives the model optimistic
8
+ * concurrency when a person may have changed it in between.
9
+ */
10
+ export class UpdateArtifactTool {
11
+ name = "tool:update-artifact";
12
+ version = "1.0.0";
13
+ definition;
14
+ constructor(_options = {}) {
15
+ this.definition = {
16
+ name: "update_artifact",
17
+ description: "Record a new version of a tracked artifact. Identify it by \"name\" or \"id\", then give either the " +
18
+ "complete new content (not a patch) in \"content\" (rewrites the tracked file), or a different workspace " +
19
+ "file to track with \"from_path\" — one or the other, not both. Give neither to record the tracked file's " +
20
+ "current state after you edited it yourself with edit_file/write_file.",
21
+ parameters: {
22
+ type: "object",
23
+ properties: {
24
+ name: { type: "string", description: "Name of the artifact to update (or use id)" },
25
+ id: { type: "string", description: "Id of the artifact to update (or use name)" },
26
+ content: { type: "string", description: "The complete new content, written to the tracked file. Leave it out to track without rewriting." },
27
+ from_path: {
28
+ type: "string",
29
+ description: "Instead of content: a different workspace file to track from now on. " +
30
+ "Leave it out when you pass content — content wins if both are given.",
31
+ },
32
+ note: { type: "string", description: "What changed in this version — shown in the version history" },
33
+ description: { type: "string", description: "Replace the artifact's description" },
34
+ tags: { type: "array", items: { type: "string" }, description: "Replace the artifact's tags" },
35
+ expected_version: {
36
+ type: "number",
37
+ description: "Only update if this is still the current version number; otherwise the call fails",
38
+ },
39
+ },
40
+ required: [],
41
+ },
42
+ risk: "draft",
43
+ sandboxOperation: "fs.write",
44
+ };
45
+ }
46
+ async execute(args, context) {
47
+ const ref = refArg(args);
48
+ if (!ref.id && !ref.name)
49
+ return argError("update_artifact", 'give "name" or "id" to say which artifact to update');
50
+ return withArtifacts("update_artifact", context, async (artifacts) => {
51
+ const resolved = await sandboxFor("update_artifact", context);
52
+ if (!resolved.ok)
53
+ return resolved.output;
54
+ const { sandbox } = resolved;
55
+ const source = sourceFrom(args);
56
+ const expectedVersion = numberArg(args, "expected_version");
57
+ const updated = await artifacts.update({
58
+ ...(ref.id ? { id: ref.id } : {}),
59
+ ...(ref.name ? { name: ref.name } : {}),
60
+ ...(source.content !== undefined ? { content: source.content } : {}),
61
+ ...(source.path !== undefined ? { path: source.path } : {}),
62
+ ...(stringArg(args, "note") ? { note: stringArg(args, "note") } : {}),
63
+ ...(stringArg(args, "description") !== undefined ? { description: stringArg(args, "description") } : {}),
64
+ ...(stringListArg(args, "tags") ? { tags: stringListArg(args, "tags") } : {}),
65
+ ...(expectedVersion !== undefined ? { expectedVersion } : {}),
66
+ tool: "update_artifact",
67
+ }, sandbox);
68
+ context.emit({
69
+ type: SDKEventType.ArtifactUpdated,
70
+ sessionId: context.sessionId,
71
+ payload: {
72
+ agentId: updated.artifact.agentId,
73
+ artifactId: updated.artifact.id,
74
+ name: updated.artifact.name,
75
+ type: updated.artifact.type,
76
+ version: updated.artifact.version,
77
+ bytes: updated.artifact.bytes,
78
+ sandboxPath: updated.artifact.sandboxPath,
79
+ sandboxId: updated.artifact.sandboxId,
80
+ },
81
+ });
82
+ return {
83
+ content: `Updated "${updated.artifact.name}" to v${updated.artifact.version} — tracks ${updated.artifact.sandboxPath} ` +
84
+ `(${formatBytes(updated.artifact.bytes)}).` +
85
+ ignoredFromPathNote(source.ignoredFromPath),
86
+ metadata: {
87
+ artifactId: updated.artifact.id,
88
+ name: updated.artifact.name,
89
+ version: updated.artifact.version,
90
+ previousVersion: updated.artifact.version - 1,
91
+ bytes: updated.artifact.bytes,
92
+ sha256: updated.artifact.sha256,
93
+ sandboxPath: updated.artifact.sandboxPath,
94
+ ...(source.ignoredFromPath ? { ignoredFromPath: source.ignoredFromPath } : {}),
95
+ },
96
+ };
97
+ });
98
+ }
99
+ }
100
+ //# sourceMappingURL=update-artifact-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-artifact-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EACL,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,MAAM,EACN,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,aAAa,GACd,MAAM,uBAAuB,CAAC;AAG/B;;;;;;GAMG;AACH,MAAM,OAAO,kBAAkB;IACpB,IAAI,GAAG,sBAAsB,CAAC;IAC9B,OAAO,GAAG,OAAO,CAAC;IAClB,UAAU,CAAiB;IAEpC,YAAY,QAAQ,GAAwB,EAAE;QAC5C,IAAI,CAAC,UAAU,GAAG;YAChB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EACT,sGAAsG;gBACtG,0GAA0G;gBAC1G,2GAA2G;gBAC3G,uEAAuE;YACzE,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4CAA4C,EAAE;oBACnF,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4CAA4C,EAAE;oBACjF,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iGAAiG,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AAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC/E;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,16 @@
1
+ import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
2
+ /**
3
+ * clarify — asks the human user a question mid-turn and waits for the answer, through
4
+ * the host's InteractionHandler. For genuine ambiguity only (which project, which option,
5
+ * missing required detail) — not for confirmations of consequential actions, which the
6
+ * harness gates itself via tool risk "consequential".
7
+ *
8
+ * Errors are never retried by the harness: re-asking would show the user the question twice.
9
+ */
10
+ export declare class ClarifyTool implements ToolHandler {
11
+ readonly name = "tool:clarify";
12
+ readonly version = "1.0.0";
13
+ readonly definition: ToolDefinition;
14
+ execute(args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
15
+ }
16
+ //# sourceMappingURL=clarify-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clarify-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/interaction/clarify-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM3F;;;;;;;GAOG;AACH,qBAAa,WAAY,YAAW,WAAW;IAC7C,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAoBjC;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAgEtF;CACF"}
@@ -0,0 +1,94 @@
1
+ const MAX_CHOICES = 4;
2
+ const MAX_QUESTION_CHARS = 1_000;
3
+ const MAX_CHOICE_CHARS = 200;
4
+ /**
5
+ * clarify — asks the human user a question mid-turn and waits for the answer, through
6
+ * the host's InteractionHandler. For genuine ambiguity only (which project, which option,
7
+ * missing required detail) — not for confirmations of consequential actions, which the
8
+ * harness gates itself via tool risk "consequential".
9
+ *
10
+ * Errors are never retried by the harness: re-asking would show the user the question twice.
11
+ */
12
+ export class ClarifyTool {
13
+ name = "tool:clarify";
14
+ version = "1.0.0";
15
+ definition = {
16
+ name: "clarify",
17
+ description: "Ask the user a clarifying question and wait for their answer. Use only when the request is " +
18
+ "genuinely ambiguous or missing information you cannot find with other tools, and a wrong guess " +
19
+ `would waste work. Ask one focused question; optionally offer up to ${MAX_CHOICES} short choices ` +
20
+ "(the user may still answer in their own words).",
21
+ parameters: {
22
+ type: "object",
23
+ properties: {
24
+ question: { type: "string", description: "The question to ask the user" },
25
+ choices: {
26
+ type: "array",
27
+ items: { type: "string" },
28
+ description: `Optional answer options (max ${MAX_CHOICES})`,
29
+ },
30
+ },
31
+ required: ["question"],
32
+ },
33
+ risk: "read-only",
34
+ };
35
+ async execute(args, context) {
36
+ const question = typeof args["question"] === "string" ? args["question"].trim() : "";
37
+ if (!question) {
38
+ return { content: 'clarify: "question" must be a non-empty string', isError: true, retryable: false };
39
+ }
40
+ if (question.length > MAX_QUESTION_CHARS) {
41
+ return {
42
+ content: `clarify: question is too long (max ${MAX_QUESTION_CHARS} characters)`,
43
+ isError: true,
44
+ retryable: false,
45
+ };
46
+ }
47
+ const rawChoices = Array.isArray(args["choices"]) ? args["choices"] : [];
48
+ const choices = [
49
+ ...new Set(rawChoices
50
+ .filter((c) => typeof c === "string")
51
+ .map((c) => c.trim().slice(0, MAX_CHOICE_CHARS))
52
+ .filter(Boolean)),
53
+ ].slice(0, MAX_CHOICES);
54
+ const handler = context.interaction;
55
+ if (!handler) {
56
+ return {
57
+ content: "clarify is unavailable: no interactive user is connected to this session. " +
58
+ "Proceed with the most reasonable assumption and state it explicitly in your answer, " +
59
+ "or end your turn by asking the question in your reply.",
60
+ isError: true,
61
+ retryable: false,
62
+ };
63
+ }
64
+ let answer;
65
+ try {
66
+ const response = await handler.askUser({
67
+ sessionId: context.sessionId,
68
+ agentId: context.agentId,
69
+ question,
70
+ choices: choices.length ? choices : undefined,
71
+ });
72
+ answer = typeof response?.answer === "string" ? response.answer.trim() : "";
73
+ }
74
+ catch (error) {
75
+ return {
76
+ content: `clarify failed: ${error instanceof Error ? error.message : String(error)}. ` +
77
+ "Do not ask again in this turn; proceed with a stated assumption or ask in your reply.",
78
+ isError: true,
79
+ retryable: false,
80
+ };
81
+ }
82
+ if (!answer) {
83
+ return {
84
+ content: "The user did not answer. Proceed with the most reasonable assumption and state it explicitly.",
85
+ metadata: { question, choices, answered: false },
86
+ };
87
+ }
88
+ return {
89
+ content: `User's answer: ${answer}`,
90
+ metadata: { question, choices, answered: true, answer },
91
+ };
92
+ }
93
+ }
94
+ //# sourceMappingURL=clarify-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clarify-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/interaction/clarify-tool.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,kBAAkB,GAAG,KAAK,CAAC;AACjC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,OAAO,WAAW;IACb,IAAI,GAAG,cAAc,CAAC;IACtB,OAAO,GAAG,OAAO,CAAC;IAClB,UAAU,GAAmB;QACpC,IAAI,EAAE,SAAS;QACf,WAAW,EACT,6FAA6F;YAC7F,iGAAiG;YACjG,sEAAsE,WAAW,iBAAiB;YAClG,iDAAiD;QACnD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE;gBACzE,OAAO,EAAE;oBACP,IAAI,EAAE,OAAO;oBACb,KAAK,EA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,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
2
+ /**
3
+ * skill_manage — lets an agent create and maintain skills in the shared skill library
4
+ * (used by the built-in skill-creator skill). A created skill is enabled for the agent
5
+ * right away; other agents can enable it too. Only custom skills can be changed, and an
6
+ * agent can only change skills that are enabled for it.
7
+ *
8
+ * Risk "consequential": a skill changes how agents behave from then on, so every call
9
+ * waits for the user's approval, which shows the full content being saved.
10
+ *
11
+ * After each change the skill's `.skills/<name>/` folder in an isolated workspace is
12
+ * brought in line with the library (rewritten, or removed on delete), so the agent never
13
+ * works from a stale copy. A failed sync is reported but does not fail the call — the
14
+ * skill is saved either way.
15
+ */
16
+ export declare class SkillManageTool implements ToolHandler {
17
+ readonly name = "tool:skill-manage";
18
+ readonly version = "1.0.0";
19
+ readonly definition: ToolDefinition;
20
+ execute(args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
21
+ }
22
+ //# sourceMappingURL=skill-manage-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-manage-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/skills/skill-manage-tool.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM3F;;;;;;;;;;;;;GAaG;AACH,qBAAa,eAAgB,YAAW,WAAW;IACjD,QAAQ,CAAC,IAAI,uBAAuB;IACpC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAiCjC;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA+GtF;CACF"}