@dxos/assistant-toolkit 0.8.4-main.dfabb4ec29 → 0.8.4-main.effb148878

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 (258) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/neutral/{add-artifact-ZUJ5DMSY.mjs → add-artifact-ZKSSMPLY.mjs} +6 -6
  3. package/dist/lib/neutral/{add-artifact-ZUJ5DMSY.mjs.map → add-artifact-ZKSSMPLY.mjs.map} +3 -3
  4. package/dist/lib/neutral/{agent-5NIKAYUK.mjs → agent-UIASE5LZ.mjs} +7 -7
  5. package/dist/lib/neutral/{agent-5NIKAYUK.mjs.map → agent-UIASE5LZ.mjs.map} +2 -2
  6. package/dist/lib/neutral/chunk-AF5TWFLV.mjs +66 -0
  7. package/dist/lib/neutral/chunk-AF5TWFLV.mjs.map +7 -0
  8. package/dist/lib/neutral/{chunk-P4ZMYO4K.mjs → chunk-CMHECL6N.mjs} +21 -33
  9. package/dist/lib/neutral/chunk-CMHECL6N.mjs.map +7 -0
  10. package/dist/lib/neutral/{chunk-ZFXLTBZG.mjs → chunk-DC5KITJP.mjs} +3 -2
  11. package/dist/lib/neutral/chunk-DC5KITJP.mjs.map +7 -0
  12. package/dist/lib/neutral/{chunk-WLR3BGO4.mjs → chunk-EUHZLWCG.mjs} +2 -1
  13. package/dist/lib/neutral/chunk-EUHZLWCG.mjs.map +7 -0
  14. package/dist/lib/neutral/{chunk-IKBIORQX.mjs → chunk-EUTROPCP.mjs} +22 -9
  15. package/dist/lib/neutral/chunk-EUTROPCP.mjs.map +7 -0
  16. package/dist/lib/neutral/{chunk-GV66MKAQ.mjs → chunk-FNN6ERC6.mjs} +4 -3
  17. package/dist/lib/neutral/chunk-FNN6ERC6.mjs.map +7 -0
  18. package/dist/lib/neutral/{chunk-246ACKSH.mjs → chunk-GEMRKH7J.mjs} +15 -12
  19. package/dist/lib/neutral/chunk-GEMRKH7J.mjs.map +7 -0
  20. package/dist/lib/neutral/{chunk-EJAQUAKM.mjs → chunk-GHGJCH73.mjs} +8 -5
  21. package/dist/lib/neutral/chunk-GHGJCH73.mjs.map +7 -0
  22. package/dist/lib/neutral/{chunk-KGU725LW.mjs → chunk-LO2S3ICN.mjs} +4 -7
  23. package/dist/lib/neutral/chunk-LO2S3ICN.mjs.map +7 -0
  24. package/dist/lib/neutral/{chunk-TO5IX24K.mjs → chunk-MMIERIDT.mjs} +12 -9
  25. package/dist/lib/neutral/chunk-MMIERIDT.mjs.map +7 -0
  26. package/dist/lib/neutral/{chunk-NR3GTWRC.mjs → chunk-OC77MYT5.mjs} +8 -13
  27. package/dist/lib/neutral/chunk-OC77MYT5.mjs.map +7 -0
  28. package/dist/lib/neutral/{chunk-ROMZO4CB.mjs → chunk-ONQXVECY.mjs} +11 -9
  29. package/dist/lib/neutral/chunk-ONQXVECY.mjs.map +7 -0
  30. package/dist/lib/neutral/{chunk-QO5SU37C.mjs → chunk-PAEPER4S.mjs} +3 -3
  31. package/dist/lib/neutral/{chunk-XUF53B6B.mjs → chunk-RIF2TKJJ.mjs} +10 -9
  32. package/dist/lib/neutral/chunk-RIF2TKJJ.mjs.map +7 -0
  33. package/dist/lib/neutral/{context-add-VB7AOY3G.mjs → context-add-VNJUVPSY.mjs} +4 -4
  34. package/dist/lib/neutral/context-add-VNJUVPSY.mjs.map +7 -0
  35. package/dist/lib/neutral/{context-remove-VCM3VPSO.mjs → context-remove-ZASL7ABZ.mjs} +4 -4
  36. package/dist/lib/neutral/context-remove-ZASL7ABZ.mjs.map +7 -0
  37. package/dist/lib/neutral/{create-project-EIF4OJMY.mjs → create-project-VNC2KKBG.mjs} +7 -7
  38. package/dist/lib/neutral/{delete-J3PMWP7Z.mjs → delete-NLBJMMBJ.mjs} +3 -3
  39. package/dist/lib/neutral/{enable-blueprints-LBDZH2CY.mjs → enable-blueprints-SMGQ2WCU.mjs} +4 -4
  40. package/dist/lib/neutral/enable-blueprints-SMGQ2WCU.mjs.map +7 -0
  41. package/dist/lib/neutral/{fetch-KHMHV7JR.mjs → fetch-VV3DU75K.mjs} +2 -2
  42. package/dist/lib/neutral/{fetch-messages-QOBBCTGC.mjs → fetch-messages-YXH77S3S.mjs} +2 -2
  43. package/dist/lib/neutral/{get-context-TN7X7U2H.mjs → get-context-LG2CNVII.mjs} +7 -7
  44. package/dist/lib/neutral/{get-context-TN7X7U2H.mjs.map → get-context-LG2CNVII.mjs.map} +3 -3
  45. package/dist/lib/neutral/index.mjs +84 -85
  46. package/dist/lib/neutral/index.mjs.map +3 -3
  47. package/dist/lib/neutral/{load-ALP3TK2E.mjs → load-K7HEJA54.mjs} +2 -2
  48. package/dist/lib/neutral/meta.json +1 -1
  49. package/dist/lib/neutral/{object-create-Z57Y3X6Y.mjs → object-create-EN6PJN3L.mjs} +4 -4
  50. package/dist/lib/neutral/{object-create-Z57Y3X6Y.mjs.map → object-create-EN6PJN3L.mjs.map} +2 -2
  51. package/dist/lib/neutral/{object-delete-X53LS37B.mjs → object-delete-RMA5ZKGY.mjs} +2 -2
  52. package/dist/lib/neutral/{object-update-GVKSBR7T.mjs → object-update-JW5PLR2T.mjs} +3 -3
  53. package/dist/lib/neutral/{object-update-GVKSBR7T.mjs.map → object-update-JW5PLR2T.mjs.map} +2 -2
  54. package/dist/lib/neutral/{project-HPHTZ2CI.mjs → project-OGO5ABSZ.mjs} +6 -6
  55. package/dist/lib/neutral/{project-rules-IVDHKSKI.mjs → project-rules-IVA3DSOW.mjs} +5 -5
  56. package/dist/lib/neutral/{prompt-Y7NN7M5D.mjs → prompt-YVFNLD7U.mjs} +5 -5
  57. package/dist/lib/neutral/{prompt-Y7NN7M5D.mjs.map → prompt-YVFNLD7U.mjs.map} +3 -3
  58. package/dist/lib/neutral/{qualifier-VDOY5CWU.mjs → qualifier-UTPO5E3S.mjs} +15 -14
  59. package/dist/lib/neutral/qualifier-UTPO5E3S.mjs.map +7 -0
  60. package/dist/lib/neutral/{query-PPJU5622.mjs → query-3FK3ED6L.mjs} +4 -5
  61. package/dist/lib/neutral/query-3FK3ED6L.mjs.map +7 -0
  62. package/dist/lib/neutral/{query-U56GNEV6.mjs → query-GXZT4KUX.mjs} +3 -3
  63. package/dist/lib/neutral/{query-blueprints-KXADGHSA.mjs → query-blueprints-GA2JM54N.mjs} +2 -2
  64. package/dist/lib/neutral/{relation-create-XJ2IX6X3.mjs → relation-create-XOFKYPL2.mjs} +3 -3
  65. package/dist/lib/neutral/{relation-create-XJ2IX6X3.mjs.map → relation-create-XOFKYPL2.mjs.map} +3 -3
  66. package/dist/lib/neutral/{relation-delete-EP4KXAFL.mjs → relation-delete-MVJKKVEQ.mjs} +2 -2
  67. package/dist/lib/neutral/{save-GWAPLT3Z.mjs → save-TFQMJKG7.mjs} +3 -3
  68. package/dist/lib/neutral/{schema-add-Z5CY6P24.mjs → schema-add-I7BFBU55.mjs} +2 -2
  69. package/dist/lib/neutral/schema-list-TYGGAO2P.mjs +49 -0
  70. package/dist/lib/neutral/schema-list-TYGGAO2P.mjs.map +7 -0
  71. package/dist/lib/neutral/{sync-issues-4YE5XAK5.mjs → sync-issues-3U3EL6KO.mjs} +5 -6
  72. package/dist/lib/neutral/sync-issues-3U3EL6KO.mjs.map +7 -0
  73. package/dist/lib/neutral/{sync-triggers-CDMJVW6E.mjs → sync-triggers-M6U6RAKN.mjs} +39 -37
  74. package/dist/lib/neutral/sync-triggers-M6U6RAKN.mjs.map +7 -0
  75. package/dist/lib/neutral/{tag-add-VNIIOVJA.mjs → tag-add-RCE2QULJ.mjs} +3 -3
  76. package/dist/lib/neutral/{tag-add-VNIIOVJA.mjs.map → tag-add-RCE2QULJ.mjs.map} +3 -3
  77. package/dist/lib/neutral/{tag-remove-6R2R27W3.mjs → tag-remove-EPKB5CDE.mjs} +3 -3
  78. package/dist/lib/neutral/{tag-remove-6R2R27W3.mjs.map → tag-remove-EPKB5CDE.mjs.map} +3 -3
  79. package/dist/lib/neutral/testing/index.mjs +7 -10
  80. package/dist/lib/neutral/testing/index.mjs.map +3 -3
  81. package/dist/lib/neutral/{update-blueprints-N2AK2VUR.mjs → update-blueprints-VOGJKSMQ.mjs} +2 -2
  82. package/dist/lib/neutral/update-tasks-PNNNCPWH.mjs +13 -0
  83. package/dist/lib/neutral/update-tasks-PNNNCPWH.mjs.map +7 -0
  84. package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +10 -12
  85. package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts.map +1 -1
  86. package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts +6 -7
  87. package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts.map +1 -1
  88. package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts +4 -5
  89. package/dist/types/src/blueprints/database/functions/context-add.d.ts +3 -3
  90. package/dist/types/src/blueprints/database/functions/context-add.d.ts.map +1 -1
  91. package/dist/types/src/blueprints/database/functions/context-remove.d.ts +3 -3
  92. package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -1
  93. package/dist/types/src/blueprints/database/functions/definitions.d.ts +17 -17
  94. package/dist/types/src/blueprints/database/functions/definitions.d.ts.map +1 -1
  95. package/dist/types/src/blueprints/database/functions/load.d.ts +2 -2
  96. package/dist/types/src/blueprints/database/functions/load.d.ts.map +1 -1
  97. package/dist/types/src/blueprints/database/functions/object-delete.d.ts +1 -1
  98. package/dist/types/src/blueprints/database/functions/object-update.d.ts +2 -2
  99. package/dist/types/src/blueprints/database/functions/object-update.d.ts.map +1 -1
  100. package/dist/types/src/blueprints/database/functions/query.d.ts +2 -3
  101. package/dist/types/src/blueprints/database/functions/query.d.ts.map +1 -1
  102. package/dist/types/src/blueprints/database/functions/relation-create.d.ts +3 -3
  103. package/dist/types/src/blueprints/database/functions/relation-create.d.ts.map +1 -1
  104. package/dist/types/src/blueprints/database/functions/relation-delete.d.ts +1 -1
  105. package/dist/types/src/blueprints/database/functions/schema-list.d.ts.map +1 -1
  106. package/dist/types/src/blueprints/database/functions/tag-add.d.ts +3 -3
  107. package/dist/types/src/blueprints/database/functions/tag-add.d.ts.map +1 -1
  108. package/dist/types/src/blueprints/database/functions/tag-remove.d.ts +3 -3
  109. package/dist/types/src/blueprints/database/functions/tag-remove.d.ts.map +1 -1
  110. package/dist/types/src/blueprints/discord/functions/definitions.d.ts.map +1 -1
  111. package/dist/types/src/blueprints/github/functions/definitions.d.ts.map +1 -1
  112. package/dist/types/src/blueprints/linear/functions/definitions.d.ts.map +1 -1
  113. package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -1
  114. package/dist/types/src/blueprints/memory/functions/definitions.d.ts +2 -2
  115. package/dist/types/src/blueprints/memory/functions/definitions.d.ts.map +1 -1
  116. package/dist/types/src/blueprints/memory/functions/delete.d.ts +2 -2
  117. package/dist/types/src/blueprints/planning/functions/index.d.ts +1 -1
  118. package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -1
  119. package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +14 -1
  120. package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -1
  121. package/dist/types/src/blueprints/planning/functions/update-tasks.test.d.ts +2 -0
  122. package/dist/types/src/blueprints/planning/functions/update-tasks.test.d.ts.map +1 -0
  123. package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +1 -5
  124. package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -1
  125. package/dist/types/src/blueprints/project/functions/definitions.d.ts +60 -45
  126. package/dist/types/src/blueprints/project/functions/definitions.d.ts.map +1 -1
  127. package/dist/types/src/blueprints/project/functions/get-context.d.ts +1 -12
  128. package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -1
  129. package/dist/types/src/blueprints/project/functions/qualifier.d.ts +3 -71
  130. package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -1
  131. package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts +22 -18
  132. package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts +43 -36
  133. package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts.map +1 -1
  134. package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts +21 -17
  135. package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts.map +1 -1
  136. package/dist/types/src/blueprints/testing.d.ts +4 -4
  137. package/dist/types/src/blueprints/testing.d.ts.map +1 -1
  138. package/dist/types/src/blueprints/websearch/functions/definitions.d.ts.map +1 -1
  139. package/dist/types/src/crud/graph.d.ts +8 -11
  140. package/dist/types/src/crud/graph.d.ts.map +1 -1
  141. package/dist/types/src/errors.d.ts +3 -3
  142. package/dist/types/src/errors.d.ts.map +1 -1
  143. package/dist/types/src/functions/agent/definitions.d.ts +12 -13
  144. package/dist/types/src/functions/agent/definitions.d.ts.map +1 -1
  145. package/dist/types/src/sync/sync.d.ts +1 -2
  146. package/dist/types/src/sync/sync.d.ts.map +1 -1
  147. package/dist/types/src/testing/plugins.d.ts +1 -1
  148. package/dist/types/src/testing/plugins.d.ts.map +1 -1
  149. package/dist/types/src/types/Agent.d.ts +23 -22
  150. package/dist/types/src/types/Agent.d.ts.map +1 -1
  151. package/dist/types/src/types/Chat.d.ts +17 -20
  152. package/dist/types/src/types/Chat.d.ts.map +1 -1
  153. package/dist/types/src/types/McpServer.d.ts +1 -2
  154. package/dist/types/src/types/McpServer.d.ts.map +1 -1
  155. package/dist/types/src/types/Memory.d.ts +1 -2
  156. package/dist/types/src/types/Memory.d.ts.map +1 -1
  157. package/dist/types/src/types/Plan.d.ts +14 -16
  158. package/dist/types/src/types/Plan.d.ts.map +1 -1
  159. package/dist/types/tsconfig.tsbuildinfo +1 -1
  160. package/package.json +26 -26
  161. package/src/blueprints/automation/blueprint.ts +3 -3
  162. package/src/blueprints/blueprint-manager/blueprint.conversations.json +1 -1
  163. package/src/blueprints/blueprint-manager/blueprint.test.ts +23 -19
  164. package/src/blueprints/blueprint-manager/functions/definitions.ts +8 -5
  165. package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +2 -2
  166. package/src/blueprints/database/blueprint.conversations.json +1 -1
  167. package/src/blueprints/database/blueprint.test.ts +15 -15
  168. package/src/blueprints/database/functions/context-add.ts +2 -2
  169. package/src/blueprints/database/functions/context-remove.ts +2 -2
  170. package/src/blueprints/database/functions/definitions.ts +19 -6
  171. package/src/blueprints/database/functions/object-create.ts +2 -2
  172. package/src/blueprints/database/functions/object-update.ts +1 -1
  173. package/src/blueprints/database/functions/query.ts +3 -4
  174. package/src/blueprints/database/functions/relation-create.ts +1 -1
  175. package/src/blueprints/database/functions/schema-list.ts +17 -10
  176. package/src/blueprints/database/functions/tag-add.ts +1 -1
  177. package/src/blueprints/database/functions/tag-remove.ts +1 -1
  178. package/src/blueprints/discord/functions/definitions.ts +1 -0
  179. package/src/blueprints/discord/functions/fetch-messages.test.ts +7 -2
  180. package/src/blueprints/github/functions/definitions.ts +1 -0
  181. package/src/blueprints/linear/functions/definitions.ts +1 -0
  182. package/src/blueprints/linear/functions/linear.test.ts +1 -2
  183. package/src/blueprints/linear/functions/sync-issues.ts +1 -2
  184. package/src/blueprints/memory/blueprint.conversations.json +1 -1
  185. package/src/blueprints/memory/functions/definitions.ts +3 -0
  186. package/src/blueprints/planning/blueprint.ts +1 -1
  187. package/src/blueprints/planning/functions/index.ts +1 -1
  188. package/src/blueprints/planning/functions/{definitions.ts → update-tasks.md} +29 -50
  189. package/src/blueprints/planning/functions/update-tasks.test.ts +55 -0
  190. package/src/blueprints/planning/functions/update-tasks.ts +26 -3
  191. package/src/blueprints/project/blueprint.conversations.json +1 -1
  192. package/src/blueprints/project/blueprint.test.ts +12 -14
  193. package/src/blueprints/project/functions/add-artifact.ts +1 -0
  194. package/src/blueprints/project/functions/agent.ts +2 -2
  195. package/src/blueprints/project/functions/definitions.ts +8 -6
  196. package/src/blueprints/project/functions/get-context.ts +2 -1
  197. package/src/blueprints/project/functions/qualifier.ts +8 -7
  198. package/src/blueprints/project-wizard/functions/definitions.ts +6 -4
  199. package/src/blueprints/project-wizard/functions/sync-triggers.ts +32 -34
  200. package/src/blueprints/testing.ts +10 -4
  201. package/src/blueprints/websearch/blueprint.conversations.json +1 -1
  202. package/src/blueprints/websearch/functions/definitions.ts +1 -0
  203. package/src/crud/graph.test.ts +1 -1
  204. package/src/crud/graph.ts +142 -151
  205. package/src/errors.ts +3 -3
  206. package/src/functions/agent/definitions.ts +2 -1
  207. package/src/functions/agent/prompt.conversations.json +1 -1
  208. package/src/functions/agent/prompt.test.ts +8 -11
  209. package/src/functions/agent/prompt.ts +2 -2
  210. package/src/sync/sync.ts +7 -6
  211. package/src/testing/plugins.tsx +8 -13
  212. package/src/types/Agent.ts +24 -29
  213. package/src/types/Chat.ts +9 -16
  214. package/src/types/McpServer.ts +3 -6
  215. package/src/types/Memory.ts +3 -3
  216. package/src/types/Plan.ts +4 -11
  217. package/dist/lib/neutral/chunk-246ACKSH.mjs.map +0 -7
  218. package/dist/lib/neutral/chunk-EJAQUAKM.mjs.map +0 -7
  219. package/dist/lib/neutral/chunk-FIGO6CA6.mjs +0 -140
  220. package/dist/lib/neutral/chunk-FIGO6CA6.mjs.map +0 -7
  221. package/dist/lib/neutral/chunk-GV66MKAQ.mjs.map +0 -7
  222. package/dist/lib/neutral/chunk-IKBIORQX.mjs.map +0 -7
  223. package/dist/lib/neutral/chunk-KGU725LW.mjs.map +0 -7
  224. package/dist/lib/neutral/chunk-NR3GTWRC.mjs.map +0 -7
  225. package/dist/lib/neutral/chunk-P4ZMYO4K.mjs.map +0 -7
  226. package/dist/lib/neutral/chunk-ROMZO4CB.mjs.map +0 -7
  227. package/dist/lib/neutral/chunk-TO5IX24K.mjs.map +0 -7
  228. package/dist/lib/neutral/chunk-WLR3BGO4.mjs.map +0 -7
  229. package/dist/lib/neutral/chunk-XUF53B6B.mjs.map +0 -7
  230. package/dist/lib/neutral/chunk-ZFXLTBZG.mjs.map +0 -7
  231. package/dist/lib/neutral/context-add-VB7AOY3G.mjs.map +0 -7
  232. package/dist/lib/neutral/context-remove-VCM3VPSO.mjs.map +0 -7
  233. package/dist/lib/neutral/enable-blueprints-LBDZH2CY.mjs.map +0 -7
  234. package/dist/lib/neutral/qualifier-VDOY5CWU.mjs.map +0 -7
  235. package/dist/lib/neutral/query-PPJU5622.mjs.map +0 -7
  236. package/dist/lib/neutral/schema-list-W326VPVX.mjs +0 -38
  237. package/dist/lib/neutral/schema-list-W326VPVX.mjs.map +0 -7
  238. package/dist/lib/neutral/sync-issues-4YE5XAK5.mjs.map +0 -7
  239. package/dist/lib/neutral/sync-triggers-CDMJVW6E.mjs.map +0 -7
  240. package/dist/lib/neutral/update-tasks-H7SWIFQL.mjs +0 -46
  241. package/dist/lib/neutral/update-tasks-H7SWIFQL.mjs.map +0 -7
  242. package/dist/types/src/blueprints/planning/functions/definitions.d.ts +0 -11
  243. package/dist/types/src/blueprints/planning/functions/definitions.d.ts.map +0 -1
  244. /package/dist/lib/neutral/{chunk-QO5SU37C.mjs.map → chunk-PAEPER4S.mjs.map} +0 -0
  245. /package/dist/lib/neutral/{create-project-EIF4OJMY.mjs.map → create-project-VNC2KKBG.mjs.map} +0 -0
  246. /package/dist/lib/neutral/{delete-J3PMWP7Z.mjs.map → delete-NLBJMMBJ.mjs.map} +0 -0
  247. /package/dist/lib/neutral/{fetch-KHMHV7JR.mjs.map → fetch-VV3DU75K.mjs.map} +0 -0
  248. /package/dist/lib/neutral/{fetch-messages-QOBBCTGC.mjs.map → fetch-messages-YXH77S3S.mjs.map} +0 -0
  249. /package/dist/lib/neutral/{load-ALP3TK2E.mjs.map → load-K7HEJA54.mjs.map} +0 -0
  250. /package/dist/lib/neutral/{object-delete-X53LS37B.mjs.map → object-delete-RMA5ZKGY.mjs.map} +0 -0
  251. /package/dist/lib/neutral/{project-HPHTZ2CI.mjs.map → project-OGO5ABSZ.mjs.map} +0 -0
  252. /package/dist/lib/neutral/{project-rules-IVDHKSKI.mjs.map → project-rules-IVA3DSOW.mjs.map} +0 -0
  253. /package/dist/lib/neutral/{query-U56GNEV6.mjs.map → query-GXZT4KUX.mjs.map} +0 -0
  254. /package/dist/lib/neutral/{query-blueprints-KXADGHSA.mjs.map → query-blueprints-GA2JM54N.mjs.map} +0 -0
  255. /package/dist/lib/neutral/{relation-delete-EP4KXAFL.mjs.map → relation-delete-MVJKKVEQ.mjs.map} +0 -0
  256. /package/dist/lib/neutral/{save-GWAPLT3Z.mjs.map → save-TFQMJKG7.mjs.map} +0 -0
  257. /package/dist/lib/neutral/{schema-add-Z5CY6P24.mjs.map → schema-add-I7BFBU55.mjs.map} +0 -0
  258. /package/dist/lib/neutral/{update-blueprints-N2AK2VUR.mjs.map → update-blueprints-VOGJKSMQ.mjs.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/assistant-toolkit",
3
- "version": "0.8.4-main.dfabb4ec29",
3
+ "version": "0.8.4-main.effb148878",
4
4
  "description": "Assistant toolkit, definitions, and utilities.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/dxos/dxos"
10
10
  },
11
- "license": "MIT",
11
+ "license": "FSL-1.1-Apache-2.0",
12
12
  "author": "DXOS.org",
13
13
  "type": "module",
14
14
  "exports": {
@@ -33,40 +33,40 @@
33
33
  "@effect/platform": "0.94.4",
34
34
  "dfx": "^0.127.0",
35
35
  "exa-js": "^1.5.12",
36
- "@dxos/assistant": "0.8.4-main.dfabb4ec29",
37
- "@dxos/client-protocol": "0.8.4-main.dfabb4ec29",
38
- "@dxos/compute": "0.8.4-main.dfabb4ec29",
39
- "@dxos/ai": "0.8.4-main.dfabb4ec29",
40
- "@dxos/echo": "0.8.4-main.dfabb4ec29",
41
- "@dxos/echo-db": "0.8.4-main.dfabb4ec29",
42
- "@dxos/effect": "0.8.4-main.dfabb4ec29",
43
- "@dxos/echo-protocol": "0.8.4-main.dfabb4ec29",
44
- "@dxos/errors": "0.8.4-main.dfabb4ec29",
45
- "@dxos/functions-runtime": "0.8.4-main.dfabb4ec29",
46
- "@dxos/invariant": "0.8.4-main.dfabb4ec29",
47
- "@dxos/app-framework": "0.8.4-main.dfabb4ec29",
48
- "@dxos/functions": "0.8.4-main.dfabb4ec29",
49
- "@dxos/log": "0.8.4-main.dfabb4ec29",
50
- "@dxos/keys": "0.8.4-main.dfabb4ec29",
51
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.dfabb4ec29",
52
- "@dxos/schema": "0.8.4-main.dfabb4ec29",
53
- "@dxos/react-ui": "0.8.4-main.dfabb4ec29",
54
- "@dxos/types": "0.8.4-main.dfabb4ec29",
55
- "@dxos/util": "0.8.4-main.dfabb4ec29"
36
+ "@dxos/ai": "0.8.4-main.effb148878",
37
+ "@dxos/app-framework": "0.8.4-main.effb148878",
38
+ "@dxos/assistant": "0.8.4-main.effb148878",
39
+ "@dxos/compute": "0.8.4-main.effb148878",
40
+ "@dxos/client-protocol": "0.8.4-main.effb148878",
41
+ "@dxos/echo-db": "0.8.4-main.effb148878",
42
+ "@dxos/echo-protocol": "0.8.4-main.effb148878",
43
+ "@dxos/echo": "0.8.4-main.effb148878",
44
+ "@dxos/errors": "0.8.4-main.effb148878",
45
+ "@dxos/effect": "0.8.4-main.effb148878",
46
+ "@dxos/functions": "0.8.4-main.effb148878",
47
+ "@dxos/invariant": "0.8.4-main.effb148878",
48
+ "@dxos/functions-runtime": "0.8.4-main.effb148878",
49
+ "@dxos/keys": "0.8.4-main.effb148878",
50
+ "@dxos/log": "0.8.4-main.effb148878",
51
+ "@dxos/react-ui": "0.8.4-main.effb148878",
52
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.effb148878",
53
+ "@dxos/util": "0.8.4-main.effb148878",
54
+ "@dxos/schema": "0.8.4-main.effb148878",
55
+ "@dxos/types": "0.8.4-main.effb148878"
56
56
  },
57
57
  "devDependencies": {
58
58
  "effect": "3.20.0",
59
59
  "react": "~19.2.3",
60
60
  "react-dom": "~19.2.3",
61
- "@dxos/client-protocol": "0.8.4-main.dfabb4ec29",
62
- "@dxos/plugin-markdown": "0.8.4-main.dfabb4ec29",
63
- "@dxos/ui-theme": "0.8.4-main.dfabb4ec29"
61
+ "@dxos/client-protocol": "0.8.4-main.effb148878",
62
+ "@dxos/plugin-markdown": "0.8.4-main.effb148878",
63
+ "@dxos/ui-theme": "0.8.4-main.effb148878"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "effect": "3.20.0",
67
67
  "react": "~19.2.3",
68
68
  "react-dom": "~19.2.3",
69
- "@dxos/ui-theme": "0.8.4-main.dfabb4ec29"
69
+ "@dxos/ui-theme": "0.8.4-main.effb148878"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { Blueprint, Trigger, Operation } from '@dxos/compute';
6
- import { Ref } from '@dxos/echo';
6
+ import { Ref, Type } from '@dxos/echo';
7
7
  import { Text } from '@dxos/schema';
8
8
  import { trim } from '@dxos/util';
9
9
 
@@ -19,7 +19,7 @@ const instructions = trim`
19
19
  Triggers are configured by the properties of the Trigger object.
20
20
  - enabled: Must be true for trigger to run.
21
21
  - spec: Events that the trigger matches.
22
- - function: Ref to a ${Operation.PersistentOperation.typename} object that will be invoked. Query the functions present in the space first, and reference them in the trigger.
22
+ - function: Ref to a ${Type.getTypename(Operation.PersistentOperation)} object that will be invoked. Query the functions present in the space first, and reference them in the trigger.
23
23
  - input: The spec of the input data that will be passed to the function.
24
24
 
25
25
  ## Input patterns
@@ -46,7 +46,7 @@ const instructions = trim`
46
46
 
47
47
  ## Editing triggers
48
48
 
49
- Triggers are represented as objects of type ${Trigger.Trigger.typename}.
49
+ Triggers are represented as objects of type ${Type.getTypename(Trigger.Trigger)}.
50
50
  You need access to the Database blueprint to manipulate triggers.
51
51
  Read trigger schema before manipulating triggers.
52
52
  Having a Trigger object in the database is enough to setup an automation.
@@ -1 +1 @@
1
- {"conversations":[{"parameters":{"model":"@anthropic/claude-opus-4-6","stream":true,"tools":[{"name":"query-blueprints","description":"Queries available blueprints.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"enable-blueprints","description":"Enables blueprints in the current conversation by their keys. Only blueprints with agentCanEnable=true can be enabled. Always call [query-blueprints] first to discover available blueprint keys.","inputSchema":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"string"},"description":"The keys of the blueprints to enable.","examples":[["org.dxos.blueprint.memory","org.dxos.blueprint.database"]]}},"additionalProperties":false}},{"name":"refresh-blueprints","description":"Updates the blueprints saved to the database with the latest version from the registry. Sometimes blueprints in the database can become outdated. Use this function to pull in the latest versions.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You can call blueprint manager tools. When asked to refresh or sync blueprints from the registry,\ncall the refresh blueprints tool once and then stop.\n\n## Blueprints Definitions\n\n<blueprint>\n You can query available blueprints and enable them in the current conversation.\n Use [query-blueprints] to refresh the list of available blueprints.\n Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.\n Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.\n Only blueprints with agentCanEnable=true can be enabled by the agent.\n \n <available_blueprints>\n - org.dxos.blueprint.database \"Database\" -- Query and manipulate objects in the ECHO database. [agent-can-enable]\n - org.dxos.blueprint.discord \"Discord\" -- Discord integration.\n - org.dxos.blueprint.memory \"Memory\" -- Persistent memory storage and retrieval. [agent-can-enable]\n </available_blueprints>\n \n NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.\n</blueprint>","options":{}},{"role":"user","content":"Refresh blueprints from the registry so database copies match the built-in definitions.","options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01F1hTKvaRr7oqBJuPmYiwp7","modelId":"claude-opus-4-6","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"reasoning-start","id":"0","metadata":{}},{"type":"reasoning-delta","id":"0","delta":"The","metadata":{}},{"type":"reasoning-delta","id":"0","delta":" user wants to refresh blueprints from the registry.","metadata":{}},{"type":"reasoning-delta","id":"0","delta":"","metadata":{"anthropic":{"type":"thinking","signature":"EvIBClkIDRgCKkB80YOcko364VSaulfRzM8X76fyNXMnETkUUFoQcYpg3o7JCxnTb9ja4DC5rFEIzSicbmTYjXBq1JLzZZkSAcy9Mg9jbGF1ZGUtb3B1cy00LTY4ABIMPgirIyjFttZ9kEKSGgxThLWHTPUSS6roYs0iMETWNucMpdovP0USU5ydIBPXFtARY3p3dfCFFfn807ArBFxfFGUMTxBuMjKX7wwbkSpHJXH/zpbFDb9WtUkgRHbhUXRu8c5Y8STLJ/G0PZ4pAQggujiJOn4rueQH9VXQYrL2KjsPaMVtbsIq5sZmbsTB1KmH9nLnIrUYAQ=="}}},{"type":"reasoning-end","id":"0","metadata":{}},{"type":"text-start","id":"1","metadata":{}},{"type":"text-delta","id":"1","delta":"I'll refresh the blueprints now to sync the database copies","metadata":{}},{"type":"text-delta","id":"1","delta":" with the latest built-in registry definitions.","metadata":{}},{"type":"text-end","id":"1","metadata":{}},{"type":"tool-params-start","id":"toolu_01FWSMwqrVJKXhSnEuR2Y2Jb","name":"refresh-blueprints","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01FWSMwqrVJKXhSnEuR2Y2Jb","delta":"","metadata":{}},{"type":"tool-params-end","id":"toolu_01FWSMwqrVJKXhSnEuR2Y2Jb","metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":1110,"outputTokens":89,"totalTokens":1199},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1110,"output_tokens":9,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-opus-4-6","stream":true,"tools":[{"name":"query-blueprints","description":"Queries available blueprints.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"enable-blueprints","description":"Enables blueprints in the current conversation by their keys. Only blueprints with agentCanEnable=true can be enabled. Always call [query-blueprints] first to discover available blueprint keys.","inputSchema":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"string"},"description":"The keys of the blueprints to enable.","examples":[["org.dxos.blueprint.memory","org.dxos.blueprint.database"]]}},"additionalProperties":false}},{"name":"refresh-blueprints","description":"Updates the blueprints saved to the database with the latest version from the registry. Sometimes blueprints in the database can become outdated. Use this function to pull in the latest versions.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You can call blueprint manager tools. When asked to refresh or sync blueprints from the registry,\ncall the refresh blueprints tool once and then stop.\n\n## Blueprints Definitions\n\n<blueprint>\n You can query available blueprints and enable them in the current conversation.\n Use [query-blueprints] to refresh the list of available blueprints.\n Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.\n Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.\n Only blueprints with agentCanEnable=true can be enabled by the agent.\n \n <available_blueprints>\n - org.dxos.blueprint.database \"Database\" -- Query and manipulate objects in the ECHO database. [agent-can-enable]\n - org.dxos.blueprint.discord \"Discord\" -- Discord integration.\n - org.dxos.blueprint.memory \"Memory\" -- Persistent memory storage and retrieval. [agent-can-enable]\n </available_blueprints>\n \n NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.\n</blueprint>","options":{}},{"role":"user","content":"Refresh blueprints from the registry so database copies match the built-in definitions.","options":{}},{"role":"assistant","content":[{"type":"reasoning","text":"The user wants to refresh blueprints from the registry.","options":{}},{"type":"text","text":"I'll refresh the blueprints now to sync the database copies with the latest built-in registry definitions.","options":{}},{"type":"tool-call","id":"toolu_01FWSMwqrVJKXhSnEuR2Y2Jb","name":"refresh-blueprints","params":{},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01FWSMwqrVJKXhSnEuR2Y2Jb","name":"refresh-blueprints","isFailure":false,"result":{},"providerExecuted":false,"options":{}}],"options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01WCx3BGYXkH1XeqwfW467eb","modelId":"claude-opus-4-6","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"The","metadata":{}},{"type":"text-delta","id":"0","delta":" blueprints have been refreshed. The database copies should now match the latest built-in registry definitions.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1183,"outputTokens":26,"totalTokens":1209},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1183,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]}]}
1
+ {"conversations":[{"parameters":{"model":"@anthropic/claude-opus-4-6","stream":true,"tools":[{"name":"query-blueprints","description":"Queries available blueprints.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"enable-blueprints","description":"Enables blueprints in the current conversation by their keys. Only blueprints with agentCanEnable=true can be enabled. Always call [query-blueprints] first to discover available blueprint keys.","inputSchema":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"string"},"description":"The keys of the blueprints to enable.","examples":[["org.dxos.blueprint.memory","org.dxos.blueprint.database"]]}},"additionalProperties":false}},{"name":"refresh-blueprints","description":"Updates the blueprints saved to the database with the latest version from the registry. Sometimes blueprints in the database can become outdated. Use this function to pull in the latest versions.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You can call blueprint manager tools. When asked to refresh or sync blueprints from the registry,\ncall the refresh blueprints tool once and then stop.\n\n## Blueprints Definitions\n\n<blueprint>\n You can query available blueprints and enable them in the current conversation.\n Use [query-blueprints] to refresh the list of available blueprints.\n Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.\n Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.\n Only blueprints with agentCanEnable=true can be enabled by the agent.\n \n <available_blueprints>\n - \"Database\" -- Query and manipulate objects in the ECHO database. [agent-can-enable]\n - \"Discord\" -- Discord integration.\n - \"Memory\" -- Persistent memory storage and retrieval. [agent-can-enable]\n </available_blueprints>\n \n NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.\n</blueprint>","options":{}},{"role":"user","content":"Refresh blueprints from the registry so database copies match the built-in definitions.","options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_017jmvmoLyoJdF1mSZ6hw5tP","modelId":"claude-opus-4-6","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"reasoning-start","id":"0","metadata":{}},{"type":"reasoning-delta","id":"0","delta":"The","metadata":{}},{"type":"reasoning-delta","id":"0","delta":" user wants to refresh blueprints from the registry.","metadata":{}},{"type":"reasoning-delta","id":"0","delta":"","metadata":{"anthropic":{"type":"thinking","signature":"EvwBCmMIDhgCKkB80YOcko364VSaulfRzM8X76fyNXMnETkUUFoQcYpg3o7JCxnTb9ja4DC5rFEIzSicbmTYjXBq1JLzZZkSAcy9Mg9jbGF1ZGUtb3B1cy00LTY4AEIIdGhpbmtpbmcSDKaNFblhl/ED5HKsDBoMB0q6EsJMkjBcRb/aIjAb6dPUQx/hT7t8SWewyAjhTqCGQ/jGeXdTXu64PEcEZbTZzUplpjImdGVJB7YMCjwqR/EY78n1XhOXwe6TjWGknI2LBQ+qTryEOJnksg/+YUlrckKDiTd38RPbHUfldf59byI8KLV/EGql7y1s6cJKIpFaOkcnvhXnGAE="}}},{"type":"reasoning-end","id":"0","metadata":{}},{"type":"text-start","id":"1","metadata":{}},{"type":"text-delta","id":"1","delta":"I'll refresh the blueprints now to sync the","metadata":{}},{"type":"text-delta","id":"1","delta":" database copies with the latest built-in registry definitions.","metadata":{}},{"type":"text-end","id":"1","metadata":{}},{"type":"tool-params-start","id":"toolu_01G527YURu4thZk5ak5TaUQB","name":"refresh-blueprints","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01G527YURu4thZk5ak5TaUQB","delta":"","metadata":{}},{"type":"tool-params-end","id":"toolu_01G527YURu4thZk5ak5TaUQB","metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":1086,"outputTokens":89,"totalTokens":1175},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1086,"output_tokens":9,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-opus-4-6","stream":true,"tools":[{"name":"query-blueprints","description":"Queries available blueprints.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"enable-blueprints","description":"Enables blueprints in the current conversation by their keys. Only blueprints with agentCanEnable=true can be enabled. Always call [query-blueprints] first to discover available blueprint keys.","inputSchema":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"string"},"description":"The keys of the blueprints to enable.","examples":[["org.dxos.blueprint.memory","org.dxos.blueprint.database"]]}},"additionalProperties":false}},{"name":"refresh-blueprints","description":"Updates the blueprints saved to the database with the latest version from the registry. Sometimes blueprints in the database can become outdated. Use this function to pull in the latest versions.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You can call blueprint manager tools. When asked to refresh or sync blueprints from the registry,\ncall the refresh blueprints tool once and then stop.\n\n## Blueprints Definitions\n\n<blueprint>\n You can query available blueprints and enable them in the current conversation.\n Use [query-blueprints] to refresh the list of available blueprints.\n Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.\n Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.\n Only blueprints with agentCanEnable=true can be enabled by the agent.\n \n <available_blueprints>\n - \"Database\" -- Query and manipulate objects in the ECHO database. [agent-can-enable]\n - \"Discord\" -- Discord integration.\n - \"Memory\" -- Persistent memory storage and retrieval. [agent-can-enable]\n </available_blueprints>\n \n NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.\n</blueprint>","options":{}},{"role":"user","content":"Refresh blueprints from the registry so database copies match the built-in definitions.","options":{}},{"role":"assistant","content":[{"type":"reasoning","text":"The user wants to refresh blueprints from the registry.","options":{}},{"type":"text","text":"I'll refresh the blueprints now to sync the database copies with the latest built-in registry definitions.","options":{}},{"type":"tool-call","id":"toolu_01G527YURu4thZk5ak5TaUQB","name":"refresh-blueprints","params":{},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01G527YURu4thZk5ak5TaUQB","name":"refresh-blueprints","isFailure":false,"result":{},"providerExecuted":false,"options":{}}],"options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01VmTeRL9KhRqXxHVxzFUYh8","modelId":"claude-opus-4-6","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"The","metadata":{}},{"type":"text-delta","id":"0","delta":" blueprints in the database have been updated to match the latest versions from the built-in registry. Everything should now be in","metadata":{}},{"type":"text-delta","id":"0","delta":" sync!","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1159,"outputTokens":32,"totalTokens":1191},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1159,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]}]}
@@ -7,9 +7,9 @@ import * as Effect from 'effect/Effect';
7
7
  import * as Layer from 'effect/Layer';
8
8
 
9
9
  import { MemoizedAiService } from '@dxos/ai/testing';
10
- import { AiContextService, AiSessionService } from '@dxos/assistant';
10
+ import { AiContext, AiSession } from '@dxos/assistant';
11
11
  import { Blueprint, Operation } from '@dxos/compute';
12
- import { Database, DXN, Obj, Ref } from '@dxos/echo';
12
+ import { Database, Obj, Ref } from '@dxos/echo';
13
13
  import { TestHelpers } from '@dxos/effect/testing';
14
14
  import { AssistantTestLayer } from '@dxos/functions-runtime/testing';
15
15
  import { ObjectId } from '@dxos/keys';
@@ -29,14 +29,14 @@ const TestLayer = AssistantTestLayer({
29
29
  tracing: 'pretty',
30
30
  });
31
31
 
32
- const provideTestLayers = Effect.provide(AiSessionService.layerNewFeed().pipe(Layer.provideMerge(TestLayer)));
32
+ const provideTestLayers = Effect.provide(AiSession.Service.layerNewFeed().pipe(Layer.provideMerge(TestLayer)));
33
33
 
34
34
  /**
35
35
  * Gets the conversation DXN for passing to Operation.invoke options.
36
36
  */
37
- const getConversationDxn = Effect.gen(function* () {
38
- const session = yield* AiSessionService;
39
- return Obj.getDXN(session.feed).toString() as DXN.String;
37
+ const getConversationDXN = Effect.gen(function* () {
38
+ const session = yield* AiSession.Service;
39
+ return Obj.getURI(session.feed);
40
40
  });
41
41
 
42
42
  describe('Blueprint Manager', () => {
@@ -44,10 +44,10 @@ describe('Blueprint Manager', () => {
44
44
  'query-blueprints: returns all registered blueprints',
45
45
  Effect.fnUntraced(
46
46
  function* (_) {
47
- const conversation = yield* getConversationDxn;
47
+ const conversation = yield* getConversationDXN;
48
48
  const result = yield* Operation.invoke(QueryBlueprints, {}, { conversation });
49
49
  expect(result).toHaveLength(3);
50
- const keys = result.map((blueprint: Blueprint.Blueprint) => blueprint.key);
50
+ const keys = result.map((blueprint: Blueprint.Blueprint) => Obj.getMeta(blueprint).key);
51
51
  expect(keys).toContain('org.dxos.blueprint.database');
52
52
  expect(keys).toContain('org.dxos.blueprint.memory');
53
53
  expect(keys).toContain('org.dxos.blueprint.discord');
@@ -62,19 +62,21 @@ describe('Blueprint Manager', () => {
62
62
  'enable-blueprints: enables blueprints with agentCanEnable=true',
63
63
  Effect.fnUntraced(
64
64
  function* (_) {
65
- const conversation = yield* getConversationDxn;
65
+ const conversation = yield* getConversationDXN;
66
66
  const { enabled, rejected } = yield* Operation.invoke(
67
67
  EnableBlueprints,
68
68
  { keys: ['org.dxos.blueprint.database'] },
69
69
  { conversation },
70
70
  );
71
71
  expect(enabled).toHaveLength(1);
72
- expect(enabled[0].key).toBe('org.dxos.blueprint.database');
72
+ expect(Obj.getMeta(enabled[0]).key).toBe('org.dxos.blueprint.database');
73
73
  expect(rejected).toHaveLength(0);
74
74
 
75
- const { binder } = yield* AiContextService;
75
+ const { binder } = yield* AiContext.Service;
76
76
  const bound = binder.getBlueprints();
77
- expect(bound.some((bp: Blueprint.Blueprint) => bp.key === 'org.dxos.blueprint.database')).toBe(true);
77
+ expect(bound.some((bp: Blueprint.Blueprint) => Obj.getMeta(bp).key === 'org.dxos.blueprint.database')).toBe(
78
+ true,
79
+ );
78
80
  },
79
81
  provideTestLayers,
80
82
  TestHelpers.provideTestContext,
@@ -86,7 +88,7 @@ describe('Blueprint Manager', () => {
86
88
  'enable-blueprints: rejects blueprints without agentCanEnable',
87
89
  Effect.fnUntraced(
88
90
  function* (_) {
89
- const conversation = yield* getConversationDxn;
91
+ const conversation = yield* getConversationDXN;
90
92
  const { enabled, rejected } = yield* Operation.invoke(
91
93
  EnableBlueprints,
92
94
  { keys: ['org.dxos.blueprint.discord'] },
@@ -96,9 +98,11 @@ describe('Blueprint Manager', () => {
96
98
  expect(rejected).toHaveLength(1);
97
99
  expect(rejected[0].key).toBe('org.dxos.blueprint.discord');
98
100
 
99
- const { binder } = yield* AiContextService;
101
+ const { binder } = yield* AiContext.Service;
100
102
  const bound = binder.getBlueprints();
101
- expect(bound.some((bp: Blueprint.Blueprint) => bp.key === 'org.dxos.blueprint.discord')).toBe(false);
103
+ expect(bound.some((bp: Blueprint.Blueprint) => Obj.getMeta(bp).key === 'org.dxos.blueprint.discord')).toBe(
104
+ false,
105
+ );
102
106
  },
103
107
  provideTestLayers,
104
108
  TestHelpers.provideTestContext,
@@ -110,7 +114,7 @@ describe('Blueprint Manager', () => {
110
114
  'enable-blueprints: mixed keys enables only allowed ones',
111
115
  Effect.fnUntraced(
112
116
  function* (_) {
113
- const conversation = yield* getConversationDxn;
117
+ const conversation = yield* getConversationDXN;
114
118
  const { enabled, rejected } = yield* Operation.invoke(
115
119
  EnableBlueprints,
116
120
  {
@@ -119,7 +123,7 @@ describe('Blueprint Manager', () => {
119
123
  { conversation },
120
124
  );
121
125
  expect(enabled).toHaveLength(2);
122
- const enabledKeys = enabled.map((bp: Blueprint.Blueprint) => bp.key);
126
+ const enabledKeys = enabled.map((bp: Blueprint.Blueprint) => Obj.getMeta(bp).key);
123
127
  expect(enabledKeys).toContain('org.dxos.blueprint.database');
124
128
  expect(enabledKeys).toContain('org.dxos.blueprint.memory');
125
129
  expect(rejected).toHaveLength(1);
@@ -135,7 +139,7 @@ describe('Blueprint Manager', () => {
135
139
  'enable-blueprints: unknown keys are rejected with reason',
136
140
  Effect.fnUntraced(
137
141
  function* (_) {
138
- const conversation = yield* getConversationDxn;
142
+ const conversation = yield* getConversationDXN;
139
143
  const { enabled, rejected } = yield* Operation.invoke(
140
144
  EnableBlueprints,
141
145
  { keys: ['org.dxos.blueprint.nonexistent'] },
@@ -168,7 +172,7 @@ describe('Blueprint Manager', () => {
168
172
  yield* Database.flush();
169
173
  expect(stored.name).toBe('___TEST_MUTATED_BLUEPRINT_NAME___');
170
174
 
171
- const session = yield* AiSessionService;
175
+ const session = yield* AiSession.Service;
172
176
  yield* Effect.promise(() => session.context.open());
173
177
  yield* Effect.promise(() =>
174
178
  session.context.bind({
@@ -4,18 +4,19 @@
4
4
 
5
5
  import * as Schema from 'effect/Schema';
6
6
 
7
- import { AiContextService } from '@dxos/assistant';
7
+ import { AiContext } from '@dxos/assistant';
8
8
  import { Blueprint, Operation } from '@dxos/compute';
9
- import { Database } from '@dxos/echo';
9
+ import { Database, Type } from '@dxos/echo';
10
10
 
11
11
  export const QueryBlueprints = Operation.make({
12
12
  meta: {
13
13
  key: 'org.dxos.function.blueprint-manager.query-blueprints',
14
14
  name: 'Query blueprints',
15
15
  description: 'Queries available blueprints.',
16
+ icon: 'ph--blueprint--regular',
16
17
  },
17
18
  input: Schema.Struct({}),
18
- output: Schema.Array(Blueprint.Blueprint),
19
+ output: Schema.Array(Type.getSchema(Blueprint.Blueprint)),
19
20
  services: [Blueprint.RegistryService],
20
21
  });
21
22
 
@@ -25,6 +26,7 @@ export const EnableBlueprints = Operation.make({
25
26
  name: 'Enable blueprints',
26
27
  description:
27
28
  'Enables blueprints in the current conversation by their keys. Only blueprints with agentCanEnable=true can be enabled. Always call [query-blueprints] first to discover available blueprint keys.',
29
+ icon: 'ph--plugs-connected--regular',
28
30
  },
29
31
  input: Schema.Struct({
30
32
  keys: Schema.Array(Schema.String).annotations({
@@ -33,7 +35,7 @@ export const EnableBlueprints = Operation.make({
33
35
  }),
34
36
  }),
35
37
  output: Schema.Struct({
36
- enabled: Schema.Array(Blueprint.Blueprint),
38
+ enabled: Schema.Array(Type.getSchema(Blueprint.Blueprint)),
37
39
  rejected: Schema.Array(
38
40
  Schema.Struct({
39
41
  key: Schema.String,
@@ -41,7 +43,7 @@ export const EnableBlueprints = Operation.make({
41
43
  }),
42
44
  ),
43
45
  }),
44
- services: [Blueprint.RegistryService, Database.Service, AiContextService],
46
+ services: [Blueprint.RegistryService, Database.Service, AiContext.Service],
45
47
  });
46
48
 
47
49
  export const UpdateBlueprints = Operation.make({
@@ -50,6 +52,7 @@ export const UpdateBlueprints = Operation.make({
50
52
  name: 'Refresh blueprints',
51
53
  description:
52
54
  'Updates the blueprints saved to the database with the latest version from the registry. Sometimes blueprints in the database can become outdated. Use this function to pull in the latest versions.',
55
+ icon: 'ph--arrows-clockwise--regular',
53
56
  },
54
57
  input: Schema.Struct({}),
55
58
  output: Schema.Void,
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
- import { AiContextService } from '@dxos/assistant';
7
+ import { AiContext } from '@dxos/assistant';
8
8
  import { Blueprint, Operation } from '@dxos/compute';
9
9
  import { Ref } from '@dxos/echo';
10
10
 
@@ -32,7 +32,7 @@ export default EnableBlueprints.pipe(
32
32
  }
33
33
 
34
34
  if (enabled.length > 0) {
35
- yield* AiContextService.bindContext({
35
+ yield* AiContext.Service.bindContext({
36
36
  blueprints: enabled.map(Ref.make),
37
37
  });
38
38
  }