@dxos/assistant-toolkit 0.8.4-main.3eb6e50203 → 0.8.4-main.3fbcb4aa9b

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 (611) hide show
  1. package/dist/lib/neutral/add-artifact-ZUJ5DMSY.mjs +30 -0
  2. package/dist/lib/neutral/add-artifact-ZUJ5DMSY.mjs.map +7 -0
  3. package/dist/lib/neutral/agent-5NIKAYUK.mjs +65 -0
  4. package/dist/lib/neutral/agent-5NIKAYUK.mjs.map +7 -0
  5. package/dist/lib/neutral/chunk-246ACKSH.mjs +100 -0
  6. package/dist/lib/neutral/chunk-246ACKSH.mjs.map +7 -0
  7. package/dist/lib/neutral/chunk-EJAQUAKM.mjs +73 -0
  8. package/dist/lib/neutral/chunk-EJAQUAKM.mjs.map +7 -0
  9. package/dist/lib/neutral/chunk-FIGO6CA6.mjs +140 -0
  10. package/dist/lib/neutral/chunk-FIGO6CA6.mjs.map +7 -0
  11. package/dist/lib/neutral/chunk-GV66MKAQ.mjs +60 -0
  12. package/dist/lib/neutral/chunk-GV66MKAQ.mjs.map +7 -0
  13. package/dist/lib/neutral/chunk-IKBIORQX.mjs +332 -0
  14. package/dist/lib/neutral/chunk-IKBIORQX.mjs.map +7 -0
  15. package/dist/lib/neutral/chunk-KGU725LW.mjs +29 -0
  16. package/dist/lib/neutral/chunk-KGU725LW.mjs.map +7 -0
  17. package/dist/lib/neutral/chunk-NR3GTWRC.mjs +53 -0
  18. package/dist/lib/neutral/chunk-NR3GTWRC.mjs.map +7 -0
  19. package/dist/lib/neutral/chunk-P4ZMYO4K.mjs +294 -0
  20. package/dist/lib/neutral/chunk-P4ZMYO4K.mjs.map +7 -0
  21. package/dist/lib/neutral/chunk-QO5SU37C.mjs +70 -0
  22. package/dist/lib/neutral/chunk-QO5SU37C.mjs.map +7 -0
  23. package/dist/lib/neutral/chunk-ROMZO4CB.mjs +108 -0
  24. package/dist/lib/neutral/chunk-ROMZO4CB.mjs.map +7 -0
  25. package/dist/lib/neutral/chunk-TO5IX24K.mjs +67 -0
  26. package/dist/lib/neutral/chunk-TO5IX24K.mjs.map +7 -0
  27. package/dist/lib/neutral/chunk-WLR3BGO4.mjs +25 -0
  28. package/dist/lib/neutral/chunk-WLR3BGO4.mjs.map +7 -0
  29. package/dist/lib/neutral/chunk-XUF53B6B.mjs +75 -0
  30. package/dist/lib/neutral/chunk-XUF53B6B.mjs.map +7 -0
  31. package/dist/lib/neutral/chunk-ZFXLTBZG.mjs +73 -0
  32. package/dist/lib/neutral/chunk-ZFXLTBZG.mjs.map +7 -0
  33. package/dist/lib/neutral/context-add-VB7AOY3G.mjs +22 -0
  34. package/dist/lib/neutral/context-add-VB7AOY3G.mjs.map +7 -0
  35. package/dist/lib/neutral/context-remove-VCM3VPSO.mjs +22 -0
  36. package/dist/lib/neutral/context-remove-VCM3VPSO.mjs.map +7 -0
  37. package/dist/lib/neutral/create-project-EIF4OJMY.mjs +35 -0
  38. package/dist/lib/neutral/create-project-EIF4OJMY.mjs.map +7 -0
  39. package/dist/lib/neutral/delete-J3PMWP7Z.mjs +19 -0
  40. package/dist/lib/neutral/delete-J3PMWP7Z.mjs.map +7 -0
  41. package/dist/lib/neutral/enable-blueprints-LBDZH2CY.mjs +47 -0
  42. package/dist/lib/neutral/enable-blueprints-LBDZH2CY.mjs.map +7 -0
  43. package/dist/lib/neutral/fetch-KHMHV7JR.mjs +16 -0
  44. package/dist/lib/neutral/fetch-KHMHV7JR.mjs.map +7 -0
  45. package/dist/lib/neutral/fetch-messages-QOBBCTGC.mjs +139 -0
  46. package/dist/lib/neutral/fetch-messages-QOBBCTGC.mjs.map +7 -0
  47. package/dist/lib/neutral/get-context-TN7X7U2H.mjs +35 -0
  48. package/dist/lib/neutral/get-context-TN7X7U2H.mjs.map +7 -0
  49. package/dist/lib/neutral/index.mjs +645 -3437
  50. package/dist/lib/neutral/index.mjs.map +4 -4
  51. package/dist/lib/neutral/load-ALP3TK2E.mjs +17 -0
  52. package/dist/lib/neutral/load-ALP3TK2E.mjs.map +7 -0
  53. package/dist/lib/neutral/meta.json +1 -1
  54. package/dist/lib/neutral/object-create-Z57Y3X6Y.mjs +35 -0
  55. package/dist/lib/neutral/object-create-Z57Y3X6Y.mjs.map +7 -0
  56. package/dist/lib/neutral/object-delete-X53LS37B.mjs +18 -0
  57. package/dist/lib/neutral/object-delete-X53LS37B.mjs.map +7 -0
  58. package/dist/lib/neutral/object-update-GVKSBR7T.mjs +28 -0
  59. package/dist/lib/neutral/object-update-GVKSBR7T.mjs.map +7 -0
  60. package/dist/lib/neutral/project-HPHTZ2CI.mjs +23 -0
  61. package/dist/lib/neutral/project-HPHTZ2CI.mjs.map +7 -0
  62. package/dist/lib/neutral/project-rules-IVDHKSKI.mjs +78 -0
  63. package/dist/lib/neutral/project-rules-IVDHKSKI.mjs.map +7 -0
  64. package/dist/lib/neutral/prompt-Y7NN7M5D.mjs +170 -0
  65. package/dist/lib/neutral/prompt-Y7NN7M5D.mjs.map +7 -0
  66. package/dist/lib/neutral/qualifier-VDOY5CWU.mjs +88 -0
  67. package/dist/lib/neutral/qualifier-VDOY5CWU.mjs.map +7 -0
  68. package/dist/lib/neutral/query-PPJU5622.mjs +70 -0
  69. package/dist/lib/neutral/query-PPJU5622.mjs.map +7 -0
  70. package/dist/lib/neutral/query-U56GNEV6.mjs +32 -0
  71. package/dist/lib/neutral/query-U56GNEV6.mjs.map +7 -0
  72. package/dist/lib/neutral/query-blueprints-KXADGHSA.mjs +16 -0
  73. package/dist/lib/neutral/query-blueprints-KXADGHSA.mjs.map +7 -0
  74. package/dist/lib/neutral/relation-create-XJ2IX6X3.mjs +34 -0
  75. package/dist/lib/neutral/relation-create-XJ2IX6X3.mjs.map +7 -0
  76. package/dist/lib/neutral/relation-delete-EP4KXAFL.mjs +18 -0
  77. package/dist/lib/neutral/relation-delete-EP4KXAFL.mjs.map +7 -0
  78. package/dist/lib/neutral/save-GWAPLT3Z.mjs +23 -0
  79. package/dist/lib/neutral/save-GWAPLT3Z.mjs.map +7 -0
  80. package/dist/lib/neutral/schema-add-Z5CY6P24.mjs +24 -0
  81. package/dist/lib/neutral/schema-add-Z5CY6P24.mjs.map +7 -0
  82. package/dist/lib/neutral/schema-list-W326VPVX.mjs +38 -0
  83. package/dist/lib/neutral/schema-list-W326VPVX.mjs.map +7 -0
  84. package/dist/lib/neutral/sync-issues-4YE5XAK5.mjs +167 -0
  85. package/dist/lib/neutral/sync-issues-4YE5XAK5.mjs.map +7 -0
  86. package/dist/lib/neutral/sync-triggers-CDMJVW6E.mjs +136 -0
  87. package/dist/lib/neutral/sync-triggers-CDMJVW6E.mjs.map +7 -0
  88. package/dist/lib/neutral/tag-add-VNIIOVJA.mjs +19 -0
  89. package/dist/lib/neutral/tag-add-VNIIOVJA.mjs.map +7 -0
  90. package/dist/lib/neutral/tag-remove-6R2R27W3.mjs +19 -0
  91. package/dist/lib/neutral/tag-remove-6R2R27W3.mjs.map +7 -0
  92. package/dist/lib/neutral/testing/index.mjs +44 -12
  93. package/dist/lib/neutral/testing/index.mjs.map +4 -4
  94. package/dist/lib/neutral/update-blueprints-N2AK2VUR.mjs +16 -0
  95. package/dist/lib/neutral/update-blueprints-N2AK2VUR.mjs.map +7 -0
  96. package/dist/lib/neutral/update-tasks-H7SWIFQL.mjs +46 -0
  97. package/dist/lib/neutral/update-tasks-H7SWIFQL.mjs.map +7 -0
  98. package/dist/types/src/blueprints/automation/blueprint.d.ts +4 -0
  99. package/dist/types/src/blueprints/automation/blueprint.d.ts.map +1 -0
  100. package/dist/types/src/blueprints/automation/index.d.ts +2 -0
  101. package/dist/types/src/blueprints/automation/index.d.ts.map +1 -0
  102. package/dist/types/src/blueprints/blueprint-manager/blueprint.d.ts +4 -0
  103. package/dist/types/src/blueprints/blueprint-manager/blueprint.d.ts.map +1 -0
  104. package/dist/types/src/blueprints/blueprint-manager/blueprint.test.d.ts +2 -0
  105. package/dist/types/src/blueprints/blueprint-manager/blueprint.test.d.ts.map +1 -0
  106. package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +63 -0
  107. package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts.map +1 -0
  108. package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts +37 -0
  109. package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts.map +1 -0
  110. package/dist/types/src/blueprints/blueprint-manager/functions/index.d.ts +4 -0
  111. package/dist/types/src/blueprints/blueprint-manager/functions/index.d.ts.map +1 -0
  112. package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts +28 -0
  113. package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts.map +1 -0
  114. package/dist/types/src/blueprints/blueprint-manager/functions/update-blueprints.d.ts +4 -0
  115. package/dist/types/src/blueprints/blueprint-manager/functions/update-blueprints.d.ts.map +1 -0
  116. package/dist/types/src/blueprints/blueprint-manager/index.d.ts +3 -0
  117. package/dist/types/src/blueprints/blueprint-manager/index.d.ts.map +1 -0
  118. package/dist/types/src/blueprints/browser/blueprint.d.ts +4 -0
  119. package/dist/types/src/blueprints/browser/blueprint.d.ts.map +1 -0
  120. package/dist/types/src/blueprints/browser/blueprint.test.d.ts +2 -0
  121. package/dist/types/src/blueprints/browser/blueprint.test.d.ts.map +1 -0
  122. package/dist/types/src/blueprints/browser/index.d.ts +2 -0
  123. package/dist/types/src/blueprints/browser/index.d.ts.map +1 -0
  124. package/dist/types/src/blueprints/database/blueprint.d.ts +4 -0
  125. package/dist/types/src/blueprints/database/blueprint.d.ts.map +1 -0
  126. package/dist/types/src/blueprints/database/blueprint.test.d.ts +2 -0
  127. package/dist/types/src/blueprints/database/blueprint.test.d.ts.map +1 -0
  128. package/dist/types/src/blueprints/database/functions/context-add.d.ts +7 -0
  129. package/dist/types/src/blueprints/database/functions/context-add.d.ts.map +1 -0
  130. package/dist/types/src/blueprints/database/functions/context-remove.d.ts +7 -0
  131. package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -0
  132. package/dist/types/src/blueprints/database/functions/definitions.d.ts +59 -0
  133. package/dist/types/src/blueprints/database/functions/definitions.d.ts.map +1 -0
  134. package/dist/types/src/blueprints/database/functions/index.d.ts +4 -0
  135. package/dist/types/src/blueprints/database/functions/index.d.ts.map +1 -0
  136. package/dist/types/src/blueprints/database/functions/load.d.ts +7 -0
  137. package/dist/types/src/blueprints/database/functions/load.d.ts.map +1 -0
  138. package/dist/types/src/blueprints/database/functions/object-create.d.ts +8 -0
  139. package/dist/types/src/blueprints/database/functions/object-create.d.ts.map +1 -0
  140. package/dist/types/src/blueprints/database/functions/object-delete.d.ts +7 -0
  141. package/dist/types/src/blueprints/database/functions/object-delete.d.ts.map +1 -0
  142. package/dist/types/src/blueprints/database/functions/object-update.d.ts +10 -0
  143. package/dist/types/src/blueprints/database/functions/object-update.d.ts.map +1 -0
  144. package/dist/types/src/blueprints/database/functions/query.d.ts +13 -0
  145. package/dist/types/src/blueprints/database/functions/query.d.ts.map +1 -0
  146. package/dist/types/src/blueprints/database/functions/relation-create.d.ts +10 -0
  147. package/dist/types/src/blueprints/database/functions/relation-create.d.ts.map +1 -0
  148. package/dist/types/src/blueprints/database/functions/relation-delete.d.ts +7 -0
  149. package/dist/types/src/blueprints/database/functions/relation-delete.d.ts.map +1 -0
  150. package/dist/types/src/blueprints/database/functions/schema-add.d.ts +9 -0
  151. package/dist/types/src/blueprints/database/functions/schema-add.d.ts.map +1 -0
  152. package/dist/types/src/blueprints/database/functions/schema-list.d.ts +7 -0
  153. package/dist/types/src/blueprints/database/functions/schema-list.d.ts.map +1 -0
  154. package/dist/types/src/blueprints/database/functions/tag-add.d.ts +8 -0
  155. package/dist/types/src/blueprints/database/functions/tag-add.d.ts.map +1 -0
  156. package/dist/types/src/blueprints/database/functions/tag-remove.d.ts +8 -0
  157. package/dist/types/src/blueprints/database/functions/tag-remove.d.ts.map +1 -0
  158. package/dist/types/src/blueprints/database/index.d.ts +3 -0
  159. package/dist/types/src/blueprints/database/index.d.ts.map +1 -0
  160. package/dist/types/src/blueprints/discord/blueprint.d.ts +4 -0
  161. package/dist/types/src/blueprints/discord/blueprint.d.ts.map +1 -0
  162. package/dist/types/src/blueprints/discord/functions/definitions.d.ts +15 -0
  163. package/dist/types/src/blueprints/discord/functions/definitions.d.ts.map +1 -0
  164. package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.d.ts +3 -2
  165. package/dist/types/src/blueprints/discord/functions/fetch-messages.d.ts.map +1 -0
  166. package/dist/types/src/blueprints/discord/functions/fetch-messages.test.d.ts.map +1 -0
  167. package/dist/types/src/blueprints/discord/functions/index.d.ts +4 -0
  168. package/dist/types/src/blueprints/discord/functions/index.d.ts.map +1 -0
  169. package/dist/types/src/blueprints/discord/index.d.ts +2 -2
  170. package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
  171. package/dist/types/src/blueprints/github/functions/definitions.d.ts +7 -0
  172. package/dist/types/src/blueprints/github/functions/definitions.d.ts.map +1 -0
  173. package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts +8 -0
  174. package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts.map +1 -0
  175. package/dist/types/src/blueprints/github/functions/index.d.ts +4 -0
  176. package/dist/types/src/blueprints/github/functions/index.d.ts.map +1 -0
  177. package/dist/types/src/blueprints/github/index.d.ts +2 -0
  178. package/dist/types/src/blueprints/github/index.d.ts.map +1 -0
  179. package/dist/types/src/blueprints/index.d.ts +11 -7
  180. package/dist/types/src/blueprints/index.d.ts.map +1 -1
  181. package/dist/types/src/blueprints/linear/blueprint.d.ts +4 -0
  182. package/dist/types/src/blueprints/linear/blueprint.d.ts.map +1 -0
  183. package/dist/types/src/blueprints/linear/functions/definitions.d.ts +6 -0
  184. package/dist/types/src/blueprints/linear/functions/definitions.d.ts.map +1 -0
  185. package/dist/types/src/blueprints/linear/functions/index.d.ts +4 -0
  186. package/dist/types/src/blueprints/linear/functions/index.d.ts.map +1 -0
  187. package/dist/types/src/blueprints/linear/functions/linear.test.d.ts.map +1 -0
  188. package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts +10 -0
  189. package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -0
  190. package/dist/types/src/blueprints/linear/index.d.ts +2 -2
  191. package/dist/types/src/blueprints/linear/index.d.ts.map +1 -1
  192. package/dist/types/src/blueprints/memory/blueprint.d.ts +4 -0
  193. package/dist/types/src/blueprints/memory/blueprint.d.ts.map +1 -0
  194. package/dist/types/src/blueprints/memory/blueprint.test.d.ts +2 -0
  195. package/dist/types/src/blueprints/memory/blueprint.test.d.ts.map +1 -0
  196. package/dist/types/src/blueprints/memory/functions/definitions.d.ts +17 -0
  197. package/dist/types/src/blueprints/memory/functions/definitions.d.ts.map +1 -0
  198. package/dist/types/src/blueprints/memory/functions/delete.d.ts +10 -0
  199. package/dist/types/src/blueprints/memory/functions/delete.d.ts.map +1 -0
  200. package/dist/types/src/blueprints/memory/functions/index.d.ts +4 -0
  201. package/dist/types/src/blueprints/memory/functions/index.d.ts.map +1 -0
  202. package/dist/types/src/blueprints/memory/functions/query.d.ts +8 -0
  203. package/dist/types/src/blueprints/memory/functions/query.d.ts.map +1 -0
  204. package/dist/types/src/blueprints/memory/functions/save.d.ts +8 -0
  205. package/dist/types/src/blueprints/memory/functions/save.d.ts.map +1 -0
  206. package/dist/types/src/blueprints/memory/index.d.ts +3 -0
  207. package/dist/types/src/blueprints/memory/index.d.ts.map +1 -0
  208. package/dist/types/src/blueprints/planning/blueprint.d.ts +4 -0
  209. package/dist/types/src/blueprints/planning/blueprint.d.ts.map +1 -0
  210. package/dist/types/src/blueprints/planning/functions/definitions.d.ts +11 -0
  211. package/dist/types/src/blueprints/planning/functions/definitions.d.ts.map +1 -0
  212. package/dist/types/src/blueprints/planning/functions/index.d.ts +4 -0
  213. package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -0
  214. package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +11 -0
  215. package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -0
  216. package/dist/types/src/blueprints/planning/index.d.ts +2 -2
  217. package/dist/types/src/blueprints/planning/index.d.ts.map +1 -1
  218. package/dist/types/src/blueprints/project/blueprint.d.ts +4 -0
  219. package/dist/types/src/blueprints/project/blueprint.d.ts.map +1 -0
  220. package/dist/types/src/blueprints/project/blueprint.test.d.ts +2 -0
  221. package/dist/types/src/blueprints/project/blueprint.test.d.ts.map +1 -0
  222. package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +8 -0
  223. package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -0
  224. package/dist/types/src/blueprints/project/functions/agent.d.ts +4 -0
  225. package/dist/types/src/blueprints/project/functions/agent.d.ts.map +1 -0
  226. package/dist/types/src/blueprints/project/functions/definitions.d.ts +158 -0
  227. package/dist/types/src/blueprints/project/functions/definitions.d.ts.map +1 -0
  228. package/dist/types/src/blueprints/project/functions/get-context.d.ts +15 -0
  229. package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -0
  230. package/dist/types/src/blueprints/project/functions/index.d.ts +4 -0
  231. package/dist/types/src/blueprints/project/functions/index.d.ts.map +1 -0
  232. package/dist/types/src/blueprints/project/functions/qualifier.d.ts +73 -0
  233. package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -0
  234. package/dist/types/src/blueprints/project/index.d.ts +3 -0
  235. package/dist/types/src/blueprints/project/index.d.ts.map +1 -0
  236. package/dist/types/src/blueprints/project-wizard/blueprint.d.ts +4 -0
  237. package/dist/types/src/blueprints/project-wizard/blueprint.d.ts.map +1 -0
  238. package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts +51 -0
  239. package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts.map +1 -0
  240. package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts +96 -0
  241. package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts.map +1 -0
  242. package/dist/types/src/blueprints/project-wizard/functions/index.d.ts +4 -0
  243. package/dist/types/src/blueprints/project-wizard/functions/index.d.ts.map +1 -0
  244. package/dist/types/src/blueprints/project-wizard/functions/project-rules.d.ts +4 -0
  245. package/dist/types/src/blueprints/project-wizard/functions/project-rules.d.ts.map +1 -0
  246. package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts +48 -0
  247. package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts.map +1 -0
  248. package/dist/types/src/blueprints/project-wizard/index.d.ts +3 -0
  249. package/dist/types/src/blueprints/project-wizard/index.d.ts.map +1 -0
  250. package/dist/types/src/blueprints/testing.d.ts +9 -3
  251. package/dist/types/src/blueprints/testing.d.ts.map +1 -1
  252. package/dist/types/src/blueprints/websearch/blueprint.d.ts +4 -0
  253. package/dist/types/src/blueprints/websearch/blueprint.d.ts.map +1 -0
  254. package/dist/types/src/blueprints/websearch/blueprint.test.d.ts +2 -0
  255. package/dist/types/src/blueprints/websearch/blueprint.test.d.ts.map +1 -0
  256. package/dist/types/src/blueprints/websearch/functions/definitions.d.ts +5 -0
  257. package/dist/types/src/blueprints/websearch/functions/definitions.d.ts.map +1 -0
  258. package/dist/types/src/blueprints/websearch/functions/fetch.d.ts +6 -0
  259. package/dist/types/src/blueprints/websearch/functions/fetch.d.ts.map +1 -0
  260. package/dist/types/src/blueprints/websearch/functions/index.d.ts +4 -0
  261. package/dist/types/src/blueprints/websearch/functions/index.d.ts.map +1 -0
  262. package/dist/types/src/blueprints/websearch/index.d.ts +3 -3
  263. package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
  264. package/dist/types/src/blueprints/websearch/{websearch-toolkit.d.ts → toolkit.d.ts} +3 -1
  265. package/dist/types/src/blueprints/websearch/toolkit.d.ts.map +1 -0
  266. package/dist/types/src/crud/graph.d.ts +7 -7
  267. package/dist/types/src/crud/graph.d.ts.map +1 -1
  268. package/dist/types/src/errors.d.ts +41 -0
  269. package/dist/types/src/errors.d.ts.map +1 -0
  270. package/dist/types/src/functions/agent/definitions.d.ts +62 -0
  271. package/dist/types/src/functions/agent/definitions.d.ts.map +1 -0
  272. package/dist/types/src/functions/agent/index.d.ts +3 -4
  273. package/dist/types/src/functions/agent/index.d.ts.map +1 -1
  274. package/dist/types/src/functions/agent/prompt.d.ts +2 -74
  275. package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
  276. package/dist/types/src/functions/agent/prompt.test.d.ts +2 -0
  277. package/dist/types/src/functions/agent/prompt.test.d.ts.map +1 -0
  278. package/dist/types/src/functions/index.d.ts +0 -6
  279. package/dist/types/src/functions/index.d.ts.map +1 -1
  280. package/dist/types/src/index.d.ts +1 -3
  281. package/dist/types/src/index.d.ts.map +1 -1
  282. package/dist/types/src/sync/sync.d.ts.map +1 -1
  283. package/dist/types/src/testing/index.d.ts +1 -0
  284. package/dist/types/src/testing/index.d.ts.map +1 -1
  285. package/dist/types/src/testing/plugins.d.ts.map +1 -1
  286. package/dist/types/src/toolkits/WebToolkit.d.ts.map +1 -1
  287. package/dist/types/src/toolkits/index.d.ts +0 -2
  288. package/dist/types/src/toolkits/index.d.ts.map +1 -1
  289. package/dist/types/src/types/Agent.d.ts +77 -0
  290. package/dist/types/src/types/Agent.d.ts.map +1 -0
  291. package/dist/types/src/types/Chat.d.ts +56 -0
  292. package/dist/types/src/types/Chat.d.ts.map +1 -0
  293. package/dist/types/src/types/McpServer.d.ts +21 -0
  294. package/dist/types/src/types/McpServer.d.ts.map +1 -0
  295. package/dist/types/src/types/Memory.d.ts +12 -0
  296. package/dist/types/src/types/Memory.d.ts.map +1 -0
  297. package/dist/types/src/{initiative/plan.d.ts → types/Plan.d.ts} +28 -16
  298. package/dist/types/src/types/Plan.d.ts.map +1 -0
  299. package/dist/types/src/types/index.d.ts +6 -0
  300. package/dist/types/src/types/index.d.ts.map +1 -0
  301. package/dist/types/src/util/graphql.d.ts.map +1 -1
  302. package/dist/types/tsconfig.tsbuildinfo +1 -1
  303. package/package.json +29 -29
  304. package/src/blueprints/automation/blueprint.ts +105 -0
  305. package/src/blueprints/automation/index.ts +5 -0
  306. package/src/blueprints/blueprint-manager/blueprint.conversations.json +1 -0
  307. package/src/blueprints/blueprint-manager/blueprint.test.ts +198 -0
  308. package/src/blueprints/blueprint-manager/blueprint.ts +49 -0
  309. package/src/blueprints/blueprint-manager/functions/definitions.ts +57 -0
  310. package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +43 -0
  311. package/src/blueprints/blueprint-manager/functions/index.ts +13 -0
  312. package/src/blueprints/blueprint-manager/functions/query-blueprints.ts +18 -0
  313. package/src/blueprints/blueprint-manager/functions/update-blueprints.ts +18 -0
  314. package/src/blueprints/blueprint-manager/index.ts +6 -0
  315. package/src/blueprints/browser/blueprint.test.ts +61 -0
  316. package/src/blueprints/browser/blueprint.ts +40 -0
  317. package/src/blueprints/browser/index.ts +5 -0
  318. package/src/blueprints/database/blueprint.conversations.json +1 -0
  319. package/src/blueprints/database/blueprint.test.ts +531 -0
  320. package/src/blueprints/database/blueprint.ts +66 -0
  321. package/src/blueprints/database/functions/context-add.ts +24 -0
  322. package/src/blueprints/database/functions/context-remove.ts +24 -0
  323. package/src/blueprints/database/functions/definitions.ts +318 -0
  324. package/src/blueprints/database/functions/index.ts +23 -0
  325. package/src/blueprints/database/functions/load.ts +19 -0
  326. package/src/blueprints/database/functions/object-create.ts +38 -0
  327. package/src/blueprints/database/functions/object-delete.ts +20 -0
  328. package/src/blueprints/database/functions/object-update.ts +30 -0
  329. package/src/blueprints/database/functions/query.ts +64 -0
  330. package/src/blueprints/database/functions/relation-create.ts +34 -0
  331. package/src/blueprints/database/functions/relation-delete.ts +21 -0
  332. package/src/blueprints/database/functions/schema-add.ts +28 -0
  333. package/src/blueprints/database/functions/schema-list.ts +33 -0
  334. package/src/blueprints/database/functions/tag-add.ts +21 -0
  335. package/src/blueprints/database/functions/tag-remove.ts +21 -0
  336. package/src/blueprints/database/index.ts +21 -0
  337. package/src/blueprints/discord/blueprint.ts +41 -0
  338. package/src/blueprints/discord/functions/definitions.ts +70 -0
  339. package/src/blueprints/discord/functions/fetch-messages.test.ts +45 -0
  340. package/src/blueprints/discord/functions/fetch-messages.ts +198 -0
  341. package/src/blueprints/discord/functions/index.ts +9 -0
  342. package/src/blueprints/discord/index.ts +2 -3
  343. package/src/blueprints/github/functions/definitions.ts +26 -0
  344. package/src/blueprints/github/functions/fetch-prs.ts +24 -0
  345. package/src/blueprints/github/functions/index.ts +9 -0
  346. package/src/blueprints/github/index.ts +5 -0
  347. package/src/blueprints/index.ts +11 -7
  348. package/src/blueprints/linear/blueprint.ts +42 -0
  349. package/src/blueprints/linear/functions/definitions.ts +23 -0
  350. package/src/blueprints/linear/functions/index.ts +9 -0
  351. package/src/{functions/linear → blueprints/linear/functions}/linear.test.ts +7 -7
  352. package/src/{functions/linear → blueprints/linear/functions}/sync-issues.ts +34 -42
  353. package/src/blueprints/linear/index.ts +2 -3
  354. package/src/blueprints/memory/blueprint.conversations.json +1 -0
  355. package/src/blueprints/memory/blueprint.test.ts +139 -0
  356. package/src/blueprints/memory/blueprint.ts +41 -0
  357. package/src/blueprints/memory/functions/definitions.ts +68 -0
  358. package/src/blueprints/memory/functions/delete.ts +20 -0
  359. package/src/blueprints/memory/functions/index.ts +13 -0
  360. package/src/blueprints/memory/functions/query.ts +32 -0
  361. package/src/blueprints/memory/functions/save.ts +20 -0
  362. package/src/blueprints/memory/index.ts +6 -0
  363. package/src/blueprints/planning/blueprint.ts +24 -0
  364. package/src/{planning/functions/update-tasks.ts → blueprints/planning/functions/definitions.ts} +13 -44
  365. package/src/blueprints/planning/functions/index.ts +9 -0
  366. package/src/blueprints/planning/functions/update-tasks.ts +45 -0
  367. package/src/blueprints/planning/index.ts +3 -4
  368. package/src/blueprints/project/blueprint.conversations.json +1 -0
  369. package/src/{initiative/initiative.test.ts → blueprints/project/blueprint.test.ts} +249 -119
  370. package/src/blueprints/project/blueprint.ts +64 -0
  371. package/src/blueprints/project/functions/add-artifact.ts +30 -0
  372. package/src/blueprints/project/functions/agent.ts +69 -0
  373. package/src/blueprints/project/functions/definitions.ts +92 -0
  374. package/src/blueprints/project/functions/get-context.ts +46 -0
  375. package/src/blueprints/project/functions/index.ts +14 -0
  376. package/src/blueprints/project/functions/qualifier.ts +90 -0
  377. package/src/blueprints/project/index.ts +6 -0
  378. package/src/blueprints/project-wizard/blueprint.ts +52 -0
  379. package/src/blueprints/project-wizard/functions/create-project.ts +32 -0
  380. package/src/blueprints/project-wizard/functions/definitions.ts +63 -0
  381. package/src/blueprints/project-wizard/functions/index.ts +13 -0
  382. package/src/blueprints/project-wizard/functions/project-rules.ts +77 -0
  383. package/src/blueprints/project-wizard/functions/sync-triggers.ts +158 -0
  384. package/src/blueprints/project-wizard/index.ts +6 -0
  385. package/src/blueprints/testing.ts +24 -5
  386. package/src/blueprints/websearch/blueprint.conversations.json +1 -0
  387. package/src/blueprints/websearch/blueprint.test.ts +39 -0
  388. package/src/blueprints/websearch/blueprint.ts +30 -0
  389. package/src/blueprints/websearch/functions/definitions.ts +25 -0
  390. package/src/blueprints/websearch/functions/fetch.ts +18 -0
  391. package/src/blueprints/websearch/functions/index.ts +9 -0
  392. package/src/blueprints/websearch/index.ts +3 -5
  393. package/src/blueprints/websearch/{websearch-toolkit.ts → toolkit.ts} +6 -1
  394. package/src/crud/graph.test.ts +10 -12
  395. package/src/crud/graph.ts +10 -10
  396. package/src/errors.ts +25 -0
  397. package/src/functions/READ_THIS.md +5 -0
  398. package/src/functions/agent/definitions.ts +56 -0
  399. package/src/functions/agent/index.ts +3 -5
  400. package/src/functions/agent/prompt.conversations.json +1 -0
  401. package/src/functions/agent/prompt.test.ts +81 -0
  402. package/src/functions/agent/prompt.ts +212 -104
  403. package/src/functions/index.ts +0 -6
  404. package/src/index.ts +1 -3
  405. package/src/sync/sync.ts +23 -12
  406. package/src/testing/index.ts +1 -0
  407. package/src/testing/plugins.tsx +24 -14
  408. package/src/toolkits/WebToolkit.ts +3 -4
  409. package/src/toolkits/index.ts +0 -2
  410. package/src/types/Agent.ts +240 -0
  411. package/src/types/Chat.ts +63 -0
  412. package/src/types/McpServer.ts +37 -0
  413. package/src/types/Memory.ts +24 -0
  414. package/src/{initiative/plan.ts → types/Plan.ts} +9 -6
  415. package/src/types/index.ts +9 -0
  416. package/dist/types/src/blueprints/design/design-blueprint.d.ts +0 -18
  417. package/dist/types/src/blueprints/design/design-blueprint.d.ts.map +0 -1
  418. package/dist/types/src/blueprints/design/design-blueprint.test.d.ts +0 -2
  419. package/dist/types/src/blueprints/design/design-blueprint.test.d.ts.map +0 -1
  420. package/dist/types/src/blueprints/design/index.d.ts +0 -3
  421. package/dist/types/src/blueprints/design/index.d.ts.map +0 -1
  422. package/dist/types/src/blueprints/discord/discord-blueprint.d.ts +0 -18
  423. package/dist/types/src/blueprints/discord/discord-blueprint.d.ts.map +0 -1
  424. package/dist/types/src/blueprints/linear/linear-blueprint.d.ts +0 -18
  425. package/dist/types/src/blueprints/linear/linear-blueprint.d.ts.map +0 -1
  426. package/dist/types/src/blueprints/markdown/index.d.ts +0 -3
  427. package/dist/types/src/blueprints/markdown/index.d.ts.map +0 -1
  428. package/dist/types/src/blueprints/markdown/markdown-blueprint.d.ts +0 -18
  429. package/dist/types/src/blueprints/markdown/markdown-blueprint.d.ts.map +0 -1
  430. package/dist/types/src/blueprints/planning/planning-blueprint.d.ts +0 -18
  431. package/dist/types/src/blueprints/planning/planning-blueprint.d.ts.map +0 -1
  432. package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts +0 -2
  433. package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts.map +0 -1
  434. package/dist/types/src/blueprints/research/index.d.ts +0 -3
  435. package/dist/types/src/blueprints/research/index.d.ts.map +0 -1
  436. package/dist/types/src/blueprints/research/research-blueprint.d.ts +0 -18
  437. package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +0 -1
  438. package/dist/types/src/blueprints/research/research-blueprint.test.d.ts +0 -2
  439. package/dist/types/src/blueprints/research/research-blueprint.test.d.ts.map +0 -1
  440. package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts +0 -18
  441. package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts.map +0 -1
  442. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +0 -1
  443. package/dist/types/src/chat/Chat.d.ts +0 -31
  444. package/dist/types/src/chat/Chat.d.ts.map +0 -1
  445. package/dist/types/src/chat/index.d.ts +0 -2
  446. package/dist/types/src/chat/index.d.ts.map +0 -1
  447. package/dist/types/src/experimental/feed.test.d.ts +0 -2
  448. package/dist/types/src/experimental/feed.test.d.ts.map +0 -1
  449. package/dist/types/src/functions/discord/fetch-messages.d.ts.map +0 -1
  450. package/dist/types/src/functions/discord/fetch-messages.test.d.ts.map +0 -1
  451. package/dist/types/src/functions/discord/index.d.ts +0 -12
  452. package/dist/types/src/functions/discord/index.d.ts.map +0 -1
  453. package/dist/types/src/functions/document/create.d.ts +0 -6
  454. package/dist/types/src/functions/document/create.d.ts.map +0 -1
  455. package/dist/types/src/functions/document/index.d.ts +0 -30
  456. package/dist/types/src/functions/document/index.d.ts.map +0 -1
  457. package/dist/types/src/functions/document/read.d.ts +0 -14
  458. package/dist/types/src/functions/document/read.d.ts.map +0 -1
  459. package/dist/types/src/functions/document/update.d.ts +0 -13
  460. package/dist/types/src/functions/document/update.d.ts.map +0 -1
  461. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +0 -174
  462. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +0 -1
  463. package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts +0 -2
  464. package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts.map +0 -1
  465. package/dist/types/src/functions/entity-extraction/index.d.ts +0 -175
  466. package/dist/types/src/functions/entity-extraction/index.d.ts.map +0 -1
  467. package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts +0 -38
  468. package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts.map +0 -1
  469. package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts +0 -37
  470. package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts.map +0 -1
  471. package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts +0 -58
  472. package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts.map +0 -1
  473. package/dist/types/src/functions/exa/data/index.d.ts +0 -3
  474. package/dist/types/src/functions/exa/data/index.d.ts.map +0 -1
  475. package/dist/types/src/functions/exa/exa.d.ts +0 -5
  476. package/dist/types/src/functions/exa/exa.d.ts.map +0 -1
  477. package/dist/types/src/functions/exa/index.d.ts +0 -3
  478. package/dist/types/src/functions/exa/index.d.ts.map +0 -1
  479. package/dist/types/src/functions/exa/mock.d.ts +0 -5
  480. package/dist/types/src/functions/exa/mock.d.ts.map +0 -1
  481. package/dist/types/src/functions/github/fetch-prs.d.ts +0 -6
  482. package/dist/types/src/functions/github/fetch-prs.d.ts.map +0 -1
  483. package/dist/types/src/functions/linear/index.d.ts +0 -9
  484. package/dist/types/src/functions/linear/index.d.ts.map +0 -1
  485. package/dist/types/src/functions/linear/linear.test.d.ts.map +0 -1
  486. package/dist/types/src/functions/linear/sync-issues.d.ts +0 -12
  487. package/dist/types/src/functions/linear/sync-issues.d.ts.map +0 -1
  488. package/dist/types/src/functions/research/document-create.d.ts +0 -9
  489. package/dist/types/src/functions/research/document-create.d.ts.map +0 -1
  490. package/dist/types/src/functions/research/index.d.ts +0 -21
  491. package/dist/types/src/functions/research/index.d.ts.map +0 -1
  492. package/dist/types/src/functions/research/research-graph.d.ts +0 -19
  493. package/dist/types/src/functions/research/research-graph.d.ts.map +0 -1
  494. package/dist/types/src/functions/research/research.d.ts +0 -14
  495. package/dist/types/src/functions/research/research.d.ts.map +0 -1
  496. package/dist/types/src/functions/research/research.test.d.ts +0 -2
  497. package/dist/types/src/functions/research/research.test.d.ts.map +0 -1
  498. package/dist/types/src/functions/research/types.d.ts +0 -6
  499. package/dist/types/src/functions/research/types.d.ts.map +0 -1
  500. package/dist/types/src/functions/tasks/index.d.ts +0 -29
  501. package/dist/types/src/functions/tasks/index.d.ts.map +0 -1
  502. package/dist/types/src/functions/tasks/read.d.ts +0 -14
  503. package/dist/types/src/functions/tasks/read.d.ts.map +0 -1
  504. package/dist/types/src/functions/tasks/task-list.d.ts +0 -74
  505. package/dist/types/src/functions/tasks/task-list.d.ts.map +0 -1
  506. package/dist/types/src/functions/tasks/task-list.test.d.ts +0 -2
  507. package/dist/types/src/functions/tasks/task-list.test.d.ts.map +0 -1
  508. package/dist/types/src/functions/tasks/update.d.ts +0 -16
  509. package/dist/types/src/functions/tasks/update.d.ts.map +0 -1
  510. package/dist/types/src/initiative/Initiative.d.ts +0 -41
  511. package/dist/types/src/initiative/Initiative.d.ts.map +0 -1
  512. package/dist/types/src/initiative/blueprint.d.ts +0 -153
  513. package/dist/types/src/initiative/blueprint.d.ts.map +0 -1
  514. package/dist/types/src/initiative/functions/addArtifact.d.ts +0 -6
  515. package/dist/types/src/initiative/functions/addArtifact.d.ts.map +0 -1
  516. package/dist/types/src/initiative/functions/agent.d.ts +0 -62
  517. package/dist/types/src/initiative/functions/agent.d.ts.map +0 -1
  518. package/dist/types/src/initiative/functions/getContext.d.ts +0 -13
  519. package/dist/types/src/initiative/functions/getContext.d.ts.map +0 -1
  520. package/dist/types/src/initiative/functions/index.d.ts +0 -5
  521. package/dist/types/src/initiative/functions/index.d.ts.map +0 -1
  522. package/dist/types/src/initiative/functions/qualifier.d.ts +0 -60
  523. package/dist/types/src/initiative/functions/qualifier.d.ts.map +0 -1
  524. package/dist/types/src/initiative/index.d.ts +0 -6
  525. package/dist/types/src/initiative/index.d.ts.map +0 -1
  526. package/dist/types/src/initiative/initiative.test.d.ts +0 -2
  527. package/dist/types/src/initiative/initiative.test.d.ts.map +0 -1
  528. package/dist/types/src/initiative/plan.d.ts.map +0 -1
  529. package/dist/types/src/initiative/util.d.ts +0 -29
  530. package/dist/types/src/initiative/util.d.ts.map +0 -1
  531. package/dist/types/src/planning/blueprint.d.ts +0 -18
  532. package/dist/types/src/planning/blueprint.d.ts.map +0 -1
  533. package/dist/types/src/planning/functions/index.d.ts +0 -2
  534. package/dist/types/src/planning/functions/index.d.ts.map +0 -1
  535. package/dist/types/src/planning/functions/update-tasks.d.ts +0 -9
  536. package/dist/types/src/planning/functions/update-tasks.d.ts.map +0 -1
  537. package/dist/types/src/planning/index.d.ts +0 -3
  538. package/dist/types/src/planning/index.d.ts.map +0 -1
  539. package/dist/types/src/toolkits/AssistantToolkit.d.ts +0 -43
  540. package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +0 -1
  541. package/dist/types/src/toolkits/AssistantToolkit.test.d.ts +0 -2
  542. package/dist/types/src/toolkits/AssistantToolkit.test.d.ts.map +0 -1
  543. package/dist/types/src/toolkits/SystemToolkit.d.ts +0 -99
  544. package/dist/types/src/toolkits/SystemToolkit.d.ts.map +0 -1
  545. package/src/blueprints/design/design-blueprint.test.ts +0 -100
  546. package/src/blueprints/design/design-blueprint.ts +0 -31
  547. package/src/blueprints/design/index.ts +0 -7
  548. package/src/blueprints/discord/discord-blueprint.ts +0 -32
  549. package/src/blueprints/linear/linear-blueprint.ts +0 -33
  550. package/src/blueprints/markdown/index.ts +0 -7
  551. package/src/blueprints/markdown/markdown-blueprint.ts +0 -24
  552. package/src/blueprints/planning/planning-blueprint.test.ts +0 -120
  553. package/src/blueprints/planning/planning-blueprint.ts +0 -96
  554. package/src/blueprints/research/index.ts +0 -7
  555. package/src/blueprints/research/research-blueprint.test.ts +0 -7
  556. package/src/blueprints/research/research-blueprint.ts +0 -51
  557. package/src/blueprints/websearch/websearch-blueprint.ts +0 -18
  558. package/src/chat/Chat.ts +0 -45
  559. package/src/chat/index.ts +0 -5
  560. package/src/experimental/feed.test.ts +0 -106
  561. package/src/functions/discord/fetch-messages.test.ts +0 -54
  562. package/src/functions/discord/fetch-messages.ts +0 -252
  563. package/src/functions/discord/index.ts +0 -9
  564. package/src/functions/document/create.ts +0 -29
  565. package/src/functions/document/index.ts +0 -13
  566. package/src/functions/document/read.ts +0 -32
  567. package/src/functions/document/update.ts +0 -32
  568. package/src/functions/entity-extraction/entity-extraction.conversations.json +0 -1
  569. package/src/functions/entity-extraction/entity-extraction.test.ts +0 -74
  570. package/src/functions/entity-extraction/entity-extraction.ts +0 -181
  571. package/src/functions/entity-extraction/index.ts +0 -9
  572. package/src/functions/exa/data/exa-search-1748337321991.ts +0 -131
  573. package/src/functions/exa/data/exa-search-1748337331526.ts +0 -144
  574. package/src/functions/exa/data/exa-search-1748337344119.ts +0 -133
  575. package/src/functions/exa/data/index.ts +0 -11
  576. package/src/functions/exa/exa.ts +0 -37
  577. package/src/functions/exa/index.ts +0 -6
  578. package/src/functions/exa/mock.ts +0 -71
  579. package/src/functions/github/fetch-prs.ts +0 -31
  580. package/src/functions/linear/index.ts +0 -9
  581. package/src/functions/research/document-create.ts +0 -73
  582. package/src/functions/research/index.ts +0 -14
  583. package/src/functions/research/research-graph.ts +0 -49
  584. package/src/functions/research/research-instructions.tpl +0 -106
  585. package/src/functions/research/research.conversations.json +0 -1
  586. package/src/functions/research/research.test.ts +0 -144
  587. package/src/functions/research/research.ts +0 -182
  588. package/src/functions/research/types.ts +0 -26
  589. package/src/functions/tasks/index.ts +0 -11
  590. package/src/functions/tasks/read.ts +0 -34
  591. package/src/functions/tasks/task-list.test.ts +0 -99
  592. package/src/functions/tasks/task-list.ts +0 -165
  593. package/src/functions/tasks/update.ts +0 -52
  594. package/src/initiative/Initiative.ts +0 -61
  595. package/src/initiative/blueprint.ts +0 -60
  596. package/src/initiative/functions/addArtifact.ts +0 -41
  597. package/src/initiative/functions/agent.ts +0 -77
  598. package/src/initiative/functions/getContext.ts +0 -62
  599. package/src/initiative/functions/index.ts +0 -8
  600. package/src/initiative/functions/qualifier.ts +0 -98
  601. package/src/initiative/index.ts +0 -9
  602. package/src/initiative/util.ts +0 -137
  603. package/src/planning/blueprint.ts +0 -14
  604. package/src/planning/functions/index.ts +0 -5
  605. package/src/planning/index.ts +0 -6
  606. package/src/toolkits/AssistantToolkit.conversations.json +0 -1
  607. package/src/toolkits/AssistantToolkit.test.ts +0 -72
  608. package/src/toolkits/AssistantToolkit.ts +0 -70
  609. package/src/toolkits/SystemToolkit.ts +0 -299
  610. /package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.test.d.ts +0 -0
  611. /package/dist/types/src/{functions/linear → blueprints/linear/functions}/linear.test.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"addArtifact.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/addArtifact.ts"],"names":[],"mappings":";;;;AAaA,wBA2BG"}
@@ -1,62 +0,0 @@
1
- import { type Queue } from '@dxos/echo-db';
2
- declare const _default: import("@dxos/functions").FunctionDefinition<{
3
- readonly prompt?: string | undefined;
4
- readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
5
- readonly name: string;
6
- readonly queue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
7
- readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
8
- readonly name?: string | undefined;
9
- readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
10
- readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
11
- }> | undefined;
12
- readonly spec: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
13
- readonly content: string;
14
- }>;
15
- readonly plan: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
16
- readonly tasks: readonly {
17
- readonly title: string;
18
- readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
19
- readonly status: "done" | "todo" | "in-progress";
20
- readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
21
- readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
22
- readonly name?: string | undefined;
23
- readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
24
- readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
25
- }> | undefined;
26
- }[];
27
- }>;
28
- readonly artifacts: readonly {
29
- readonly name: string;
30
- readonly data: import("@dxos/echo/internal").Ref<any>;
31
- }[];
32
- readonly subscriptions: readonly import("@dxos/echo/internal").Ref<any>[];
33
- readonly useQualifyingAgent?: boolean | undefined;
34
- readonly newChatOnEveryEvent?: boolean | undefined;
35
- }>;
36
- readonly event?: {
37
- readonly from: string;
38
- readonly to: string;
39
- readonly body: string;
40
- readonly created: string;
41
- readonly subject: string;
42
- } | {
43
- readonly queue: string;
44
- readonly item: any;
45
- readonly cursor: string;
46
- } | {
47
- readonly type: string;
48
- readonly subject: import("@dxos/echo/internal").Ref<any>;
49
- readonly changedObjectId?: string | undefined;
50
- } | {
51
- readonly tick: number;
52
- } | {
53
- readonly url: string;
54
- readonly method: "GET" | "POST";
55
- readonly headers: {
56
- readonly [x: string]: string;
57
- };
58
- readonly bodyText: string;
59
- } | undefined;
60
- }, void, import("@dxos/functions").FunctionServices>;
61
- export default _default;
62
- //# sourceMappingURL=agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/agent.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS3C,wBAyDG"}
@@ -1,13 +0,0 @@
1
- declare const _default: import("@dxos/functions").FunctionDefinition<{}, {
2
- readonly name: string;
3
- readonly id: string;
4
- readonly spec: string;
5
- readonly plan: string;
6
- readonly artifacts: readonly {
7
- readonly name: string;
8
- readonly type?: string | undefined;
9
- readonly dxn?: string | undefined;
10
- }[];
11
- }, import("@dxos/functions").FunctionServices>;
12
- export default _default;
13
- //# sourceMappingURL=getContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getContext.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/getContext.ts"],"names":[],"mappings":";;;;;;;;;;;AAcA,wBA+CG"}
@@ -1,5 +0,0 @@
1
- export { default as getContext } from './getContext';
2
- export { default as addArtifact } from './addArtifact';
3
- export { default as agent } from './agent';
4
- export { default as qualifier } from './qualifier';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1,60 +0,0 @@
1
- declare const _default: import("@dxos/functions").FunctionDefinition<{
2
- readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
3
- readonly name: string;
4
- readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
5
- readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
6
- readonly name?: string | undefined;
7
- readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
8
- readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
9
- }> | undefined;
10
- readonly spec: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
11
- readonly content: string;
12
- }>;
13
- readonly plan: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
14
- readonly tasks: readonly {
15
- readonly title: string;
16
- readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
17
- readonly status: "done" | "todo" | "in-progress";
18
- readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
19
- readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
20
- readonly name?: string | undefined;
21
- readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
22
- readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
23
- }> | undefined;
24
- }[];
25
- }>;
26
- readonly artifacts: readonly {
27
- readonly name: string;
28
- readonly data: import("@dxos/echo/internal").Ref<any>;
29
- }[];
30
- readonly subscriptions: readonly import("@dxos/echo/internal").Ref<any>[];
31
- readonly useQualifyingAgent?: boolean | undefined;
32
- readonly newChatOnEveryEvent?: boolean | undefined;
33
- }>;
34
- readonly event: {
35
- readonly from: string;
36
- readonly to: string;
37
- readonly body: string;
38
- readonly created: string;
39
- readonly subject: string;
40
- } | {
41
- readonly queue: string;
42
- readonly item: any;
43
- readonly cursor: string;
44
- } | {
45
- readonly type: string;
46
- readonly subject: import("@dxos/echo/internal").Ref<any>;
47
- readonly changedObjectId?: string | undefined;
48
- } | {
49
- readonly tick: number;
50
- } | {
51
- readonly url: string;
52
- readonly method: "GET" | "POST";
53
- readonly headers: {
54
- readonly [x: string]: string;
55
- };
56
- readonly bodyText: string;
57
- };
58
- }, void, import("@dxos/functions").FunctionServices>;
59
- export default _default;
60
- //# sourceMappingURL=qualifier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"qualifier.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,wBA+EG"}
@@ -1,6 +0,0 @@
1
- export { Initiative } from './Initiative';
2
- export { makeInitialized, resetChatHistory, getFromChatContext } from './util';
3
- export { getFunctions, makeBlueprint } from './blueprint';
4
- export * from './functions';
5
- export * from './plan';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/initiative/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC1D,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=initiative.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initiative.test.d.ts","sourceRoot":"","sources":["../../../../src/initiative/initiative.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../src/initiative/plan.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,eAAO,MAAM,MAAM,sEAAqE,CAAC;AACzF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC;AAEvD,eAAO,MAAM,IAAI;IACf;;OAEG;;;;IASH;;OAEG;;IAKH;;OAEG;;;;;;EAEH,CAAC;AACH,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;wBAOhB,CAAC;AACF,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE,eAAO,MAAM,cAAc,GAAI,MAAM,IAAI,KAAG,MAe3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GACnB,MAAM,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,EACvB,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;;;;;CAOnF,CAAC;AAEF,UAAU,aAAa;IACrB,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM,CAAC;KAC1C,EAAE,CAAC;CACL;AAED,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,KAAG,IAM/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,KAAG,MAIvC,CAAC"}
@@ -1,29 +0,0 @@
1
- import * as Effect from 'effect/Effect';
2
- import { AiContextService } from '@dxos/assistant';
3
- import { type Blueprint } from '@dxos/blueprints';
4
- import { Database, Obj, Ref } from '@dxos/echo';
5
- import { type ObjectNotFoundError } from '@dxos/echo/Err';
6
- import { QueueService } from '@dxos/functions';
7
- import { Initiative } from './Initiative';
8
- /**
9
- * Creates a fully initialized Initiative with chat, queue, and context bindings.
10
- *
11
- * @param props - Initiative properties including spec, plan, blueprints, and context objects.
12
- * @param blueprint - The blueprint to use for the initiative context.
13
- * @returns An Effect that yields the initialized Initiative.
14
- */
15
- export declare const makeInitialized: (props: Omit<Obj.MakeProps<typeof Initiative>, "spec" | "plan" | "artifacts" | "subscriptions" | "chat"> & Partial<Pick<Obj.MakeProps<typeof Initiative>, "artifacts" | "subscriptions">> & {
16
- spec: string;
17
- blueprints?: Ref.Ref<Blueprint.Blueprint>[];
18
- contextObjects?: Ref.Ref<Obj.Any>[];
19
- }, blueprint: Blueprint.Blueprint) => Effect.Effect<Initiative, never, QueueService | Database.Service>;
20
- /**
21
- * Resets the initiative chat history by rebuilding the chat context.
22
- * Preserves the existing blueprints and objects from the current chat context.
23
- *
24
- * @param initiative - The initiative whose chat history should be reset. Must have an existing chat.
25
- * @returns An Effect that resets the chat history.
26
- */
27
- export declare const resetChatHistory: (initiative: Initiative) => Effect.Effect<void, ObjectNotFoundError, QueueService | Database.Service>;
28
- export declare const getFromChatContext: Effect.Effect<Initiative, never, AiContextService>;
29
- //# sourceMappingURL=util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/initiative/util.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAmB,gBAAgB,EAAuB,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAY,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAO/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,MAAM,CAAC,GACrG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,UAAU,CAAC,EAAE,WAAW,GAAG,eAAe,CAAC,CAAC,GAAG;IAC/E,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;IAC5C,cAAc,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;CACrC,EACH,WAAW,SAAS,CAAC,SAAS,KAC7B,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,GAAG,QAAQ,CAAC,OAAO,CAwC/D,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,YAAY,UAAU,KACrB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,YAAY,GAAG,QAAQ,CAAC,OAAO,CAuCnD,CAAC;AAEzB,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,gBAAgB,CAOhF,CAAC"}
@@ -1,18 +0,0 @@
1
- export declare const PlanningBlueprint: import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2
- readonly description?: string | undefined;
3
- readonly name: string;
4
- readonly key: string;
5
- readonly instructions: {
6
- readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
7
- readonly content: string;
8
- }>;
9
- readonly inputs?: readonly {
10
- readonly function?: string | undefined;
11
- readonly name: string;
12
- readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
13
- readonly default?: any;
14
- }[] | undefined;
15
- };
16
- readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
17
- }>;
18
- //# sourceMappingURL=blueprint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../src/planning/blueprint.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;;;;;uBAM0gD,CAAC;6BAA0C,CAAC;;yBAAkF,CAAC;4BAA6I,CAAC;;;;EADnzD,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default as updateTasks } from './update-tasks';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/planning/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,9 +0,0 @@
1
- declare const _default: import("@dxos/functions").FunctionDefinition<{
2
- readonly tasks: readonly {
3
- readonly title: string;
4
- readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
5
- readonly status: "done" | "todo" | "in-progress";
6
- }[];
7
- }, string, import("@dxos/functions").FunctionServices>;
8
- export default _default;
9
- //# sourceMappingURL=update-tasks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../../../../src/planning/functions/update-tasks.ts"],"names":[],"mappings":";;;;;;;AA8HA,wBAyCG"}
@@ -1,3 +0,0 @@
1
- export { PlanningBlueprint } from './blueprint';
2
- export * as PlanningFunctions from './functions';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/planning/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAC"}
@@ -1,43 +0,0 @@
1
- import * as Tool from '@effect/ai/Tool';
2
- import * as Toolkit from '@effect/ai/Toolkit';
3
- import * as Schema from 'effect/Schema';
4
- import { AiContextService } from '@dxos/assistant';
5
- import { Database } from '@dxos/echo';
6
- export declare const AssistantToolkit: Toolkit.Toolkit<{
7
- readonly "context-add": Tool.Tool<"context-add", {
8
- readonly parameters: Schema.Struct<{
9
- id: Schema.Schema<string, string, never>;
10
- }>;
11
- readonly success: typeof Schema.Void;
12
- readonly failure: typeof Schema.Never;
13
- readonly failureMode: "error";
14
- }, Database.Service | AiContextService>;
15
- readonly "context-remove": Tool.Tool<"context-remove", {
16
- readonly parameters: Schema.Struct<{
17
- id: Schema.Schema<string, string, never>;
18
- }>;
19
- readonly success: typeof Schema.Void;
20
- readonly failure: typeof Schema.Never;
21
- readonly failureMode: "error";
22
- }, Database.Service | AiContextService>;
23
- }>;
24
- export declare const tools: ("context-add" | "context-remove")[];
25
- export declare const layer: () => import("effect/Layer").Layer<Tool.HandlersFor<{
26
- readonly "context-add": Tool.Tool<"context-add", {
27
- readonly parameters: Schema.Struct<{
28
- id: Schema.Schema<string, string, never>;
29
- }>;
30
- readonly success: typeof Schema.Void;
31
- readonly failure: typeof Schema.Never;
32
- readonly failureMode: "error";
33
- }, Database.Service | AiContextService>;
34
- readonly "context-remove": Tool.Tool<"context-remove", {
35
- readonly parameters: Schema.Struct<{
36
- id: Schema.Schema<string, string, never>;
37
- }>;
38
- readonly success: typeof Schema.Void;
39
- readonly failure: typeof Schema.Never;
40
- readonly failureMode: "error";
41
- }, Database.Service | AiContextService>;
42
- }>, never, never>;
43
- //# sourceMappingURL=AssistantToolkit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssistantToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAc,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAY,MAAM,YAAY,CAAC;AAGhD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EA2B5B,CAAC;AAEF,eAAO,MAAM,KAAK,sCAAsC,CAAC;AAEzD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;iBAwBd,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=AssistantToolkit.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssistantToolkit.test.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.test.ts"],"names":[],"mappings":""}
@@ -1,99 +0,0 @@
1
- import * as Tool from '@effect/ai/Tool';
2
- import * as Toolkit from '@effect/ai/Toolkit';
3
- import type * as Layer from 'effect/Layer';
4
- import * as Schema from 'effect/Schema';
5
- import { Database } from '@dxos/echo';
6
- export declare const SystemToolkit: Toolkit.Toolkit<{
7
- readonly "schema-list": Tool.Tool<"schema-list", {
8
- readonly parameters: Schema.Struct<{
9
- limit: typeof Schema.Number;
10
- }>;
11
- readonly success: typeof Schema.Any;
12
- readonly failure: typeof Schema.Never;
13
- readonly failureMode: "error";
14
- }, Database.Service>;
15
- readonly "schema-add": Tool.Tool<"schema-add", {
16
- readonly parameters: Schema.Struct<{
17
- name: typeof Schema.String;
18
- typename: typeof Schema.String;
19
- jsonSchema: typeof Schema.Any;
20
- }>;
21
- readonly success: typeof Schema.Any;
22
- readonly failure: typeof Schema.Never;
23
- readonly failureMode: "error";
24
- }, Database.Service>;
25
- readonly query: Tool.Tool<"query", {
26
- readonly parameters: Schema.Struct<{
27
- typename: typeof Schema.String;
28
- }>;
29
- readonly success: typeof Schema.Any;
30
- readonly failure: typeof Schema.Never;
31
- readonly failureMode: "error";
32
- }, Database.Service>;
33
- readonly "object-create": Tool.Tool<"object-create", {
34
- readonly parameters: Schema.Struct<{
35
- typename: typeof Schema.String;
36
- data: typeof Schema.Any;
37
- }>;
38
- readonly success: typeof Schema.Any;
39
- readonly failure: typeof Schema.Never;
40
- readonly failureMode: "error";
41
- }, Database.Service>;
42
- readonly "object-delete": Tool.Tool<"object-delete", {
43
- readonly parameters: Schema.Struct<{
44
- id: Schema.Schema<string, string, never>;
45
- }>;
46
- readonly success: typeof Schema.Any;
47
- readonly failure: typeof Schema.Never;
48
- readonly failureMode: "error";
49
- }, Database.Service>;
50
- readonly "object-update": Tool.Tool<"object-update", {
51
- readonly parameters: Schema.Struct<{
52
- id: Schema.Schema<string, string, never>;
53
- properties: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
54
- }>;
55
- readonly success: typeof Schema.Any;
56
- readonly failure: typeof Schema.Never;
57
- readonly failureMode: "error";
58
- }, Database.Service>;
59
- readonly "relation-create": Tool.Tool<"relation-create", {
60
- readonly parameters: Schema.Struct<{
61
- typename: typeof Schema.String;
62
- source: Schema.Schema<string, string, never>;
63
- target: Schema.Schema<string, string, never>;
64
- data: Schema.SchemaClass<any, any, never>;
65
- }>;
66
- readonly success: typeof Schema.Any;
67
- readonly failure: typeof Schema.Never;
68
- readonly failureMode: "error";
69
- }, Database.Service>;
70
- readonly "relation-delete": Tool.Tool<"relation-delete", {
71
- readonly parameters: Schema.Struct<{
72
- id: Schema.Schema<string, string, never>;
73
- }>;
74
- readonly success: typeof Schema.Any;
75
- readonly failure: typeof Schema.Never;
76
- readonly failureMode: "error";
77
- }, Database.Service>;
78
- readonly "tag-add": Tool.Tool<"tag-add", {
79
- readonly parameters: Schema.Struct<{
80
- tagId: Schema.Schema<string, string, never>;
81
- objectId: Schema.Schema<string, string, never>;
82
- }>;
83
- readonly success: typeof Schema.Any;
84
- readonly failure: typeof Schema.Never;
85
- readonly failureMode: "error";
86
- }, Database.Service>;
87
- readonly "tag-remove": Tool.Tool<"tag-remove", {
88
- readonly parameters: Schema.Struct<{
89
- tagId: Schema.Schema<string, string, never>;
90
- objectId: Schema.Schema<string, string, never>;
91
- }>;
92
- readonly success: typeof Schema.Any;
93
- readonly failure: typeof Schema.Never;
94
- readonly failureMode: "error";
95
- }, Database.Service>;
96
- }>;
97
- export declare const tools: ("query" | "schema-list" | "schema-add" | "object-create" | "object-delete" | "object-update" | "relation-create" | "relation-delete" | "tag-add" | "tag-remove")[];
98
- export declare const layer: () => Layer.Layer<Tool.Handler<any>, never, never>;
99
- //# sourceMappingURL=SystemToolkit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SystemToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/SystemToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAO,QAAQ,EAA4C,MAAM,YAAY,CAAC;AAIrF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkLzB,CAAC;AAEF,eAAO,MAAM,KAAK,qKAAmC,CAAC;AAEtD,eAAO,MAAM,KAAK,QAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,CAoGhE,CAAC"}
@@ -1,100 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { describe, it } from '@effect/vitest';
6
- import * as Effect from 'effect/Effect';
7
- import * as Layer from 'effect/Layer';
8
-
9
- import { AiService, ConsolePrinter } from '@dxos/ai';
10
- import { AiServiceTestingPreset } from '@dxos/ai/testing';
11
- import {
12
- AiConversation,
13
- type ContextBinding,
14
- GenerationObserver,
15
- GenericToolkit,
16
- ToolExecutionServices,
17
- } from '@dxos/assistant';
18
- import { Blueprint } from '@dxos/blueprints';
19
- import { Obj, Ref } from '@dxos/echo';
20
- import { Database } from '@dxos/echo';
21
- import { acquireReleaseResource } from '@dxos/effect';
22
- import { TestHelpers } from '@dxos/effect/testing';
23
- import { QueueService, TracingService } from '@dxos/functions';
24
- import { FunctionInvocationServiceLayerTestMocked, TestDatabaseLayer } from '@dxos/functions-runtime/testing';
25
- import { log } from '@dxos/log';
26
- import { Markdown } from '@dxos/plugin-markdown/types';
27
- import { Text } from '@dxos/schema';
28
- import { type Message } from '@dxos/types';
29
- import { trim } from '@dxos/util';
30
-
31
- import { Document } from '../../functions';
32
-
33
- import { blueprint } from './design-blueprint';
34
-
35
- describe('Design Blueprint', { timeout: 120_000 }, () => {
36
- it.scoped(
37
- 'design blueprint',
38
- Effect.fn(
39
- function* ({ expect }) {
40
- const observer = GenerationObserver.fromPrinter(new ConsolePrinter());
41
- const queue = yield* QueueService.createQueue<Message.Message | ContextBinding>();
42
- const conversation = yield* acquireReleaseResource(() => new AiConversation({ queue }));
43
-
44
- yield* Database.add(blueprint);
45
- yield* Effect.promise(() =>
46
- conversation.context.bind({
47
- blueprints: [Ref.make(blueprint)],
48
- }),
49
- );
50
-
51
- const artifact = yield* Database.add(Markdown.make({ content: 'Hello, world!' }));
52
- let prevContent = artifact.content;
53
-
54
- {
55
- const prompt = trim`
56
- I want to design a new feature for our product.
57
-
58
- We need to add a user profile system with the following requirements:
59
- 1. Users should be able to create and edit their profiles
60
- 2. Profile should include basic info like name, bio, avatar
61
- 3. Users can control privacy settings for their profile
62
- 4. Profile should show user's activity history
63
- 5. Need to consider data storage and security implications
64
-
65
- Let's capture the key design decisions in our spec in ${Obj.getDXN(artifact)}
66
- `;
67
-
68
- yield* conversation.createRequest({ prompt, observer });
69
- log.info('spec', { doc: artifact });
70
- expect(artifact.content).not.toBe(prevContent);
71
- prevContent = artifact.content;
72
- }
73
-
74
- {
75
- const prompt = trim`
76
- I want this to be built on top of Durable Objects and SQLite database.
77
- Adjust the spec to reflect this.
78
- `;
79
-
80
- yield* conversation.createRequest({ observer, prompt });
81
- expect(artifact.content).not.toBe(prevContent);
82
- prevContent = artifact.content;
83
- }
84
- },
85
- Effect.provide(
86
- Layer.mergeAll(ToolExecutionServices, AiService.model('@anthropic/claude-3-5-sonnet-20241022')).pipe(
87
- Layer.provideMerge(TestDatabaseLayer({ types: [Text.Text, Markdown.Document, Blueprint.Blueprint] })),
88
- Layer.provideMerge(Layer.mergeAll(GenericToolkit.providerEmpty, AiServiceTestingPreset('direct'))),
89
- Layer.provideMerge(
90
- FunctionInvocationServiceLayerTestMocked({ functions: [Document.read, Document.update] }).pipe(
91
- Layer.provideMerge(TracingService.layerNoop),
92
- ),
93
- ),
94
- ),
95
- ),
96
- TestHelpers.provideTestContext,
97
- TestHelpers.taggedTest('llm'),
98
- ),
99
- );
100
- });
@@ -1,31 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { ToolId } from '@dxos/ai';
6
- import { Blueprint } from '@dxos/blueprints';
7
- import { Ref } from '@dxos/echo';
8
- import { Text } from '@dxos/schema';
9
- import { trim } from '@dxos/util';
10
-
11
- import { Document } from '../../functions';
12
-
13
- const instructions = trim`
14
- You manage a design spec based on the conversation.
15
- The design spec is a markdown document that is used to record the tasks.
16
- The design spec document follows a hierarchical structure, with nested markdown bulleted sections.
17
- Use the appropriate tools to read and write the design spec document.
18
- Maintain the document so that it can convey all relevant points from the conversation.
19
- When replying to the user, be terse with your comments about design doc handling.
20
- Do not announce when you read or write the design spec document.
21
- `;
22
-
23
- export const blueprint = Blueprint.make({
24
- key: 'dxos.org/blueprint/design',
25
- name: 'Design Spec',
26
- description: 'Preserve the conversation in the design spec.',
27
- instructions: {
28
- source: Ref.make(Text.make(instructions)),
29
- },
30
- tools: [Document.read, Document.update].map((fn) => ToolId.make(fn.key)),
31
- });
@@ -1,7 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { blueprint } from './design-blueprint';
6
-
7
- export default blueprint;
@@ -1,32 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { ToolId } from '@dxos/ai';
6
- import { Blueprint } from '@dxos/blueprints';
7
- import { Ref } from '@dxos/echo';
8
- import { Text } from '@dxos/schema';
9
- import { trim } from '@dxos/util';
10
-
11
- import { Discord } from '../../functions';
12
-
13
- /**
14
- * Agent prompt instructions for managing hierarchical task lists.
15
- */
16
- const instructions = trim`
17
- You are able to fetch messages from Discord servers.
18
-
19
- Known servers:
20
-
21
- DXOS serverId: 837138313172353095
22
- `;
23
-
24
- export const blueprint = Blueprint.make({
25
- key: 'dxos.org/blueprint/discord',
26
- name: 'Discord',
27
- description: 'Discord integration.',
28
- instructions: {
29
- source: Ref.make(Text.make(instructions)),
30
- },
31
- tools: [ToolId.make(Discord.fetch.key)],
32
- });