@dxos/assistant 0.8.3 → 0.8.4-main.1c7ec43d41

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 (198) hide show
  1. package/README.md +1 -0
  2. package/dist/lib/neutral/extraction/index.mjs +202 -0
  3. package/dist/lib/neutral/extraction/index.mjs.map +7 -0
  4. package/dist/lib/neutral/index.mjs +1736 -0
  5. package/dist/lib/neutral/index.mjs.map +7 -0
  6. package/dist/lib/neutral/meta.json +1 -0
  7. package/dist/types/src/conversation/context.d.ts +156 -0
  8. package/dist/types/src/conversation/context.d.ts.map +1 -0
  9. package/dist/types/src/conversation/context.test.d.ts +2 -0
  10. package/dist/types/src/conversation/context.test.d.ts.map +1 -0
  11. package/dist/types/src/conversation/index.d.ts +3 -0
  12. package/dist/types/src/conversation/index.d.ts.map +1 -0
  13. package/dist/types/src/conversation/session.d.ts +73 -0
  14. package/dist/types/src/conversation/session.d.ts.map +1 -0
  15. package/dist/types/src/diff.d.ts +17 -0
  16. package/dist/types/src/diff.d.ts.map +1 -0
  17. package/dist/types/src/diff.test.d.ts +2 -0
  18. package/dist/types/src/diff.test.d.ts.map +1 -0
  19. package/dist/types/src/errors.d.ts +67 -0
  20. package/dist/types/src/errors.d.ts.map +1 -0
  21. package/dist/types/src/execution-graph.d.ts +85 -0
  22. package/dist/types/src/execution-graph.d.ts.map +1 -0
  23. package/dist/types/src/execution-graph.test.d.ts +2 -0
  24. package/dist/types/src/execution-graph.test.d.ts.map +1 -0
  25. package/dist/types/src/extraction/extraction-ner-function/index.d.ts +0 -1
  26. package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -1
  27. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +1 -1
  28. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
  29. package/dist/types/src/extraction/extraction.d.ts +1066 -215
  30. package/dist/types/src/extraction/extraction.d.ts.map +1 -1
  31. package/dist/types/src/extraction/index.d.ts +0 -1
  32. package/dist/types/src/extraction/index.d.ts.map +1 -1
  33. package/dist/types/src/extraction/quotes.d.ts +3 -3
  34. package/dist/types/src/extraction/quotes.d.ts.map +1 -1
  35. package/dist/types/src/functions/index.d.ts +2 -0
  36. package/dist/types/src/functions/index.d.ts.map +1 -0
  37. package/dist/types/src/functions/services.d.ts +17 -0
  38. package/dist/types/src/functions/services.d.ts.map +1 -0
  39. package/dist/types/src/index.d.ts +7 -3
  40. package/dist/types/src/index.d.ts.map +1 -1
  41. package/dist/types/src/session/artifact-diff.d.ts +27 -0
  42. package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
  43. package/dist/types/src/session/error-handling.d.ts +4 -0
  44. package/dist/types/src/session/error-handling.d.ts.map +1 -0
  45. package/dist/types/src/session/format.d.ts +15 -0
  46. package/dist/types/src/session/format.d.ts.map +1 -0
  47. package/dist/types/src/session/index.d.ts +5 -1
  48. package/dist/types/src/session/index.d.ts.map +1 -1
  49. package/dist/types/src/session/observer.d.ts +23 -0
  50. package/dist/types/src/session/observer.d.ts.map +1 -0
  51. package/dist/types/src/session/request.d.ts +104 -0
  52. package/dist/types/src/session/request.d.ts.map +1 -0
  53. package/dist/types/src/session/toolkit.d.ts +16 -0
  54. package/dist/types/src/session/toolkit.d.ts.map +1 -0
  55. package/dist/types/src/session/version-pin.d.ts +5 -5
  56. package/dist/types/src/session/version-pin.d.ts.map +1 -1
  57. package/dist/types/src/templates/index.d.ts +2 -0
  58. package/dist/types/src/templates/index.d.ts.map +1 -0
  59. package/dist/types/src/templates/system.d.ts +17 -0
  60. package/dist/types/src/templates/system.d.ts.map +1 -0
  61. package/dist/types/src/tracing.d.ts +233 -0
  62. package/dist/types/src/tracing.d.ts.map +1 -0
  63. package/dist/types/src/types/artifact.d.ts +28 -0
  64. package/dist/types/src/types/artifact.d.ts.map +1 -0
  65. package/dist/types/src/types/index.d.ts +2 -0
  66. package/dist/types/src/types/index.d.ts.map +1 -0
  67. package/dist/types/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +43 -38
  69. package/src/conversation/context.test.ts +52 -0
  70. package/src/conversation/context.ts +403 -0
  71. package/src/conversation/index.ts +6 -0
  72. package/src/conversation/session.ts +323 -0
  73. package/src/diff.test.ts +74 -0
  74. package/src/diff.ts +93 -0
  75. package/src/errors.ts +15 -0
  76. package/src/execution-graph.test.ts +740 -0
  77. package/src/execution-graph.ts +519 -0
  78. package/src/extraction/extraction-ner-function/index.ts +0 -1
  79. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
  80. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
  81. package/src/extraction/extraction.ts +44 -15
  82. package/src/extraction/index.ts +0 -1
  83. package/src/extraction/quotes.test.ts +3 -3
  84. package/src/extraction/quotes.ts +6 -7
  85. package/src/functions/index.ts +5 -0
  86. package/src/functions/services.ts +214 -0
  87. package/src/index.ts +7 -3
  88. package/src/session/artifact-diff.ts +41 -0
  89. package/src/session/error-handling.ts +41 -0
  90. package/src/session/format.ts +147 -0
  91. package/src/session/index.ts +5 -1
  92. package/src/session/observer.ts +62 -0
  93. package/src/session/request.ts +347 -0
  94. package/src/session/toolkit.ts +47 -0
  95. package/src/session/version-pin.ts +12 -12
  96. package/src/templates/index.ts +5 -0
  97. package/src/templates/instructions/format.tpl +57 -0
  98. package/src/templates/instructions/system.tpl +96 -0
  99. package/src/templates/system.ts +42 -0
  100. package/src/tracing.ts +57 -0
  101. package/src/types/artifact.ts +89 -0
  102. package/src/types/index.ts +5 -0
  103. package/src/typings.d.ts +5 -0
  104. package/dist/lib/browser/index.mjs +0 -2158
  105. package/dist/lib/browser/index.mjs.map +0 -7
  106. package/dist/lib/browser/meta.json +0 -1
  107. package/dist/lib/node/index.cjs +0 -2178
  108. package/dist/lib/node/index.cjs.map +0 -7
  109. package/dist/lib/node/meta.json +0 -1
  110. package/dist/lib/node-esm/index.mjs +0 -2160
  111. package/dist/lib/node-esm/index.mjs.map +0 -7
  112. package/dist/lib/node-esm/meta.json +0 -1
  113. package/dist/types/bin/chat.d.ts +0 -2
  114. package/dist/types/bin/chat.d.ts.map +0 -1
  115. package/dist/types/src/blueprint/ai.test.d.ts +0 -2
  116. package/dist/types/src/blueprint/ai.test.d.ts.map +0 -1
  117. package/dist/types/src/blueprint/blueprint.d.ts +0 -55
  118. package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
  119. package/dist/types/src/blueprint/blueprint.test.d.ts +0 -2
  120. package/dist/types/src/blueprint/blueprint.test.d.ts.map +0 -1
  121. package/dist/types/src/blueprint/index.d.ts +0 -4
  122. package/dist/types/src/blueprint/index.d.ts.map +0 -1
  123. package/dist/types/src/blueprint/logger.d.ts +0 -25
  124. package/dist/types/src/blueprint/logger.d.ts.map +0 -1
  125. package/dist/types/src/blueprint/machine.d.ts +0 -143
  126. package/dist/types/src/blueprint/machine.d.ts.map +0 -1
  127. package/dist/types/src/blueprint/test-data.d.ts +0 -3
  128. package/dist/types/src/blueprint/test-data.d.ts.map +0 -1
  129. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +0 -4
  130. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +0 -1
  131. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +0 -2
  132. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +0 -1
  133. package/dist/types/src/extraction/extraction-llm-function/index.d.ts +0 -2
  134. package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +0 -1
  135. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +0 -208
  136. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +0 -1
  137. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +0 -2
  138. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +0 -1
  139. package/dist/types/src/research/exa.d.ts +0 -7
  140. package/dist/types/src/research/exa.d.ts.map +0 -1
  141. package/dist/types/src/research/graph.d.ts +0 -41
  142. package/dist/types/src/research/graph.d.ts.map +0 -1
  143. package/dist/types/src/research/graph.test.d.ts +0 -2
  144. package/dist/types/src/research/graph.test.d.ts.map +0 -1
  145. package/dist/types/src/research/index.d.ts +0 -4
  146. package/dist/types/src/research/index.d.ts.map +0 -1
  147. package/dist/types/src/research/research.d.ts +0 -10
  148. package/dist/types/src/research/research.d.ts.map +0 -1
  149. package/dist/types/src/research/research.test.d.ts +0 -2
  150. package/dist/types/src/research/research.test.d.ts.map +0 -1
  151. package/dist/types/src/session/session.d.ts +0 -261
  152. package/dist/types/src/session/session.d.ts.map +0 -1
  153. package/dist/types/src/session/session.test.d.ts +0 -2
  154. package/dist/types/src/session/session.test.d.ts.map +0 -1
  155. package/dist/types/src/session/version-pin.test.d.ts +0 -2
  156. package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
  157. package/dist/types/src/summarization/summarization.test.d.ts +0 -2
  158. package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
  159. package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
  160. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
  161. package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
  162. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
  163. package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
  164. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
  165. package/dist/types/src/testing/index.d.ts +0 -3
  166. package/dist/types/src/testing/index.d.ts.map +0 -1
  167. package/dist/types/src/types.d.ts +0 -3
  168. package/dist/types/src/types.d.ts.map +0 -1
  169. package/src/blueprint/ai.test.ts +0 -156
  170. package/src/blueprint/blueprint.test.ts +0 -151
  171. package/src/blueprint/blueprint.ts +0 -75
  172. package/src/blueprint/index.ts +0 -7
  173. package/src/blueprint/logger.ts +0 -155
  174. package/src/blueprint/machine.ts +0 -251
  175. package/src/blueprint/test-data.ts +0 -55
  176. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +0 -95
  177. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +0 -65
  178. package/src/extraction/extraction-llm-function/index.ts +0 -5
  179. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +0 -115
  180. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +0 -54
  181. package/src/research/exa.ts +0 -100
  182. package/src/research/graph.test.ts +0 -15
  183. package/src/research/graph.ts +0 -337
  184. package/src/research/index.ts +0 -7
  185. package/src/research/instructions-research.tpl +0 -97
  186. package/src/research/research.test.ts +0 -190
  187. package/src/research/research.ts +0 -89
  188. package/src/session/session.test.ts +0 -229
  189. package/src/session/session.ts +0 -549
  190. package/src/session/version-pin.test.ts +0 -26
  191. package/src/summarization/summarization.test.ts +0 -221
  192. package/src/testing/exa-search-1748337321991.ts +0 -131
  193. package/src/testing/exa-search-1748337331526.ts +0 -144
  194. package/src/testing/exa-search-1748337344119.ts +0 -133
  195. package/src/testing/index.ts +0 -11
  196. package/src/typedefs.d.ts +0 -8
  197. package/src/types.ts +0 -8
  198. /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
@@ -1 +0,0 @@
1
- {"inputs":{"packages/core/assistant/src/extraction/extraction.ts":{"bytes":6835,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"raw-loader:./instructions.tpl?raw":{"bytes":1318,"imports":[]},"packages/core/assistant/src/session/version-pin.ts":{"bytes":4222,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/core/assistant/src/session/session.ts":{"bytes":59501,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/core/assistant/src/session/version-pin.ts","kind":"import-statement","original":"./version-pin"}],"format":"esm"},"packages/core/assistant/src/session/index.ts":{"bytes":569,"imports":[{"path":"packages/core/assistant/src/session/session.ts","kind":"import-statement","original":"./session"},{"path":"packages/core/assistant/src/session/version-pin.ts","kind":"import-statement","original":"./version-pin"}],"format":"esm"},"packages/core/assistant/src/extraction/quotes.ts":{"bytes":7123,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"packages/core/assistant/src/extraction/extraction-llm-function/extraction-llm-function.ts":{"bytes":7821,"imports":[{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"raw-loader:./instructions.tpl?raw","kind":"import-statement","original":"./instructions.tpl?raw"},{"path":"packages/core/assistant/src/session/index.ts","kind":"import-statement","original":"../../session"},{"path":"packages/core/assistant/src/extraction/extraction.ts","kind":"import-statement","original":"../extraction"},{"path":"packages/core/assistant/src/extraction/quotes.ts","kind":"import-statement","original":"../quotes"}],"format":"esm"},"packages/core/assistant/src/extraction/extraction-llm-function/index.ts":{"bytes":537,"imports":[{"path":"packages/core/assistant/src/extraction/extraction-llm-function/extraction-llm-function.ts","kind":"import-statement","original":"./extraction-llm-function"}],"format":"esm"},"packages/core/assistant/src/extraction/extraction-ner-function/named-entity-recognition.ts":{"bytes":10072,"imports":[{"path":"@xenova/transformers","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"packages/core/assistant/src/extraction/extraction-ner-function/extraction-ner-function.ts":{"bytes":8910,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/core/assistant/src/extraction/extraction-ner-function/named-entity-recognition.ts","kind":"import-statement","original":"./named-entity-recognition"},{"path":"packages/core/assistant/src/extraction/extraction.ts","kind":"import-statement","original":"../extraction"},{"path":"packages/core/assistant/src/extraction/quotes.ts","kind":"import-statement","original":"../quotes"}],"format":"esm"},"packages/core/assistant/src/extraction/extraction-ner-function/index.ts":{"bytes":665,"imports":[{"path":"packages/core/assistant/src/extraction/extraction-ner-function/extraction-ner-function.ts","kind":"import-statement","original":"./extraction-ner-function"},{"path":"packages/core/assistant/src/extraction/extraction-ner-function/named-entity-recognition.ts","kind":"import-statement","original":"./named-entity-recognition"}],"format":"esm"},"packages/core/assistant/src/extraction/index.ts":{"bytes":816,"imports":[{"path":"packages/core/assistant/src/extraction/extraction.ts","kind":"import-statement","original":"./extraction"},{"path":"packages/core/assistant/src/extraction/extraction-llm-function/index.ts","kind":"import-statement","original":"./extraction-llm-function"},{"path":"packages/core/assistant/src/extraction/extraction-ner-function/index.ts","kind":"import-statement","original":"./extraction-ner-function"},{"path":"packages/core/assistant/src/extraction/quotes.ts","kind":"import-statement","original":"./quotes"}],"format":"esm"},"packages/core/assistant/src/testing/exa-search-1748337321991.ts":{"bytes":75521,"imports":[],"format":"esm"},"packages/core/assistant/src/testing/exa-search-1748337331526.ts":{"bytes":90591,"imports":[],"format":"esm"},"packages/core/assistant/src/testing/exa-search-1748337344119.ts":{"bytes":69963,"imports":[],"format":"esm"},"packages/core/assistant/src/testing/index.ts":{"bytes":1218,"imports":[{"path":"packages/core/assistant/src/testing/exa-search-1748337321991.ts","kind":"import-statement","original":"./exa-search-1748337321991"},{"path":"packages/core/assistant/src/testing/exa-search-1748337331526.ts","kind":"import-statement","original":"./exa-search-1748337331526"},{"path":"packages/core/assistant/src/testing/exa-search-1748337344119.ts","kind":"import-statement","original":"./exa-search-1748337344119"}],"format":"esm"},"packages/core/assistant/src/research/exa.ts":{"bytes":10703,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"exa-js","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/core/assistant/src/testing/index.ts","kind":"import-statement","original":"../testing"}],"format":"esm"},"packages/core/assistant/src/research/graph.ts":{"bytes":34603,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"raw-loader:./instructions-research.tpl?raw":{"bytes":5065,"imports":[]},"packages/core/assistant/src/research/research.ts":{"bytes":12315,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/core/assistant/src/research/exa.ts","kind":"import-statement","original":"./exa"},{"path":"packages/core/assistant/src/research/graph.ts","kind":"import-statement","original":"./graph"},{"path":"raw-loader:./instructions-research.tpl?raw","kind":"import-statement","original":"./instructions-research.tpl?raw"},{"path":"packages/core/assistant/src/session/index.ts","kind":"import-statement","original":"../session"}],"format":"esm"},"packages/core/assistant/src/research/index.ts":{"bytes":632,"imports":[{"path":"packages/core/assistant/src/research/exa.ts","kind":"import-statement","original":"./exa"},{"path":"packages/core/assistant/src/research/research.ts","kind":"import-statement","original":"./research"},{"path":"packages/core/assistant/src/research/graph.ts","kind":"import-statement","original":"./graph"}],"format":"esm"},"packages/core/assistant/src/types.ts":{"bytes":858,"imports":[],"format":"esm"},"packages/core/assistant/src/blueprint/blueprint.ts":{"bytes":6426,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/core/assistant/src/blueprint/machine.ts":{"bytes":25722,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/assistant/src/session/index.ts","kind":"import-statement","original":"../session"}],"format":"esm"},"packages/core/assistant/src/blueprint/logger.ts":{"bytes":16321,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"packages/core/assistant/src/blueprint/index.ts":{"bytes":647,"imports":[{"path":"packages/core/assistant/src/blueprint/blueprint.ts","kind":"import-statement","original":"./blueprint"},{"path":"packages/core/assistant/src/blueprint/machine.ts","kind":"import-statement","original":"./machine"},{"path":"packages/core/assistant/src/blueprint/logger.ts","kind":"import-statement","original":"./logger"}],"format":"esm"},"packages/core/assistant/src/index.ts":{"bytes":814,"imports":[{"path":"packages/core/assistant/src/extraction/index.ts","kind":"import-statement","original":"./extraction"},{"path":"packages/core/assistant/src/research/index.ts","kind":"import-statement","original":"./research"},{"path":"packages/core/assistant/src/session/index.ts","kind":"import-statement","original":"./session"},{"path":"packages/core/assistant/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/core/assistant/src/blueprint/index.ts","kind":"import-statement","original":"./blueprint"}],"format":"esm"}},"outputs":{"packages/core/assistant/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":215523},"packages/core/assistant/dist/lib/node-esm/index.mjs":{"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@xenova/transformers","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"exa-js","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["AIServiecOverloadedError","AISession","Blueprint","BlueprintBuilder","BlueprintDefinition","BlueprintLoggerAdapter","BlueprintMachine","BlueprintParser","BlueprintStep","BufferedLogger","ExtractionInput","ExtractionOutput","ReferencedQuotes","Subgraph","VersionPin","combineNerTokens","createArtifactElement","createExaTool","createExtractionSchema","createGraphWriterTool","createLocalSearchTool","createMockExaTool","createTokenGroups","extractFullEntities","extractionAnthropicFn","extractionNerFn","findQuotes","findRelatedSchema","getNer","getSanitizedSchemaName","insertReferences","processTranscriptMessage","researchFn","sanitizeObjects","setConsolePrinter","setLogger"],"entryPoint":"packages/core/assistant/src/index.ts","inputs":{"packages/core/assistant/src/extraction/extraction.ts":{"bytesInOutput":1383},"packages/core/assistant/src/extraction/index.ts":{"bytesInOutput":0},"packages/core/assistant/src/extraction/extraction-llm-function/extraction-llm-function.ts":{"bytesInOutput":1693},"raw-loader:./instructions.tpl?raw":{"bytesInOutput":1376},"packages/core/assistant/src/session/session.ts":{"bytesInOutput":15806},"packages/core/assistant/src/session/version-pin.ts":{"bytesInOutput":758},"packages/core/assistant/src/session/index.ts":{"bytesInOutput":0},"packages/core/assistant/src/extraction/quotes.ts":{"bytesInOutput":1700},"packages/core/assistant/src/extraction/extraction-llm-function/index.ts":{"bytesInOutput":0},"packages/core/assistant/src/extraction/extraction-ner-function/extraction-ner-function.ts":{"bytesInOutput":2653},"packages/core/assistant/src/extraction/extraction-ner-function/named-entity-recognition.ts":{"bytesInOutput":2289},"packages/core/assistant/src/extraction/extraction-ner-function/index.ts":{"bytesInOutput":0},"packages/core/assistant/src/index.ts":{"bytesInOutput":0},"packages/core/assistant/src/research/exa.ts":{"bytesInOutput":2550},"packages/core/assistant/src/testing/exa-search-1748337321991.ts":{"bytesInOutput":31265},"packages/core/assistant/src/testing/exa-search-1748337331526.ts":{"bytesInOutput":43952},"packages/core/assistant/src/testing/exa-search-1748337344119.ts":{"bytesInOutput":28760},"packages/core/assistant/src/testing/index.ts":{"bytesInOutput":133},"packages/core/assistant/src/research/index.ts":{"bytesInOutput":0},"packages/core/assistant/src/research/research.ts":{"bytesInOutput":2910},"packages/core/assistant/src/research/graph.ts":{"bytesInOutput":8246},"raw-loader:./instructions-research.tpl?raw":{"bytesInOutput":5201},"packages/core/assistant/src/types.ts":{"bytesInOutput":61},"packages/core/assistant/src/blueprint/blueprint.ts":{"bytesInOutput":1461},"packages/core/assistant/src/blueprint/index.ts":{"bytesInOutput":0},"packages/core/assistant/src/blueprint/machine.ts":{"bytesInOutput":6264},"packages/core/assistant/src/blueprint/logger.ts":{"bytesInOutput":3703}},"bytes":164546}}}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=chat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../bin/chat.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ai.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai.test.d.ts","sourceRoot":"","sources":["../../../../src/blueprint/ai.test.ts"],"names":[],"mappings":""}
@@ -1,55 +0,0 @@
1
- import { Schema } from 'effect';
2
- import { Type } from '@dxos/echo';
3
- export declare const BlueprintStep: Schema.Struct<{
4
- id: import("@dxos/keys").ObjectIdClass;
5
- instructions: typeof Schema.String;
6
- tools: Schema.optional<Schema.Array$<typeof Schema.String>>;
7
- }>;
8
- export interface BlueprintStep extends Schema.Schema.Type<typeof BlueprintStep> {
9
- }
10
- export declare const BlueprintDefinition: Schema.Struct<{
11
- steps: Schema.Array$<Schema.SchemaClass<{
12
- readonly instructions: string;
13
- readonly tools?: readonly string[] | undefined;
14
- }, {
15
- readonly instructions: string;
16
- readonly tools?: readonly string[] | undefined;
17
- }, never>>;
18
- }>;
19
- export interface BlueprintDefinition extends Schema.Schema.Type<typeof BlueprintDefinition> {
20
- }
21
- export declare const Blueprint: Type.obj<Schema.Struct<{
22
- name: Schema.optional<typeof Schema.String>;
23
- steps: Schema.Array$<Schema.Struct<{
24
- id: import("@dxos/keys").ObjectIdClass;
25
- instructions: typeof Schema.String;
26
- tools: Schema.optional<Schema.Array$<typeof Schema.String>>;
27
- }>>;
28
- }>>;
29
- export interface Blueprint extends Schema.Schema.Type<typeof Blueprint> {
30
- }
31
- /**
32
- * Blueprint builder API.
33
- */
34
- export declare namespace BlueprintBuilder {
35
- export const create: () => Builder;
36
- class Builder {
37
- private readonly _steps;
38
- step(instructions: string, options?: {
39
- tools?: string[];
40
- }): Builder;
41
- build(): Blueprint;
42
- }
43
- export {};
44
- }
45
- /**
46
- * Blueprint parser API.
47
- */
48
- export declare namespace BlueprintParser {
49
- export const create: () => Parser;
50
- class Parser {
51
- parse({ steps }: BlueprintDefinition): Blueprint;
52
- }
53
- export {};
54
- }
55
- //# sourceMappingURL=blueprint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprint/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAY,IAAI,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,aAAa;;;;EAIxB,CAAC;AACH,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC;CAAG;AAElF,eAAO,MAAM,mBAAmB;;;;;;;;EAE9B,CAAC;AACH,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAE9F,eAAO,MAAM,SAAS;;;;;;;GAQrB,CAAC;AACF,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC;CAAG;AAE1E;;GAEG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,MAAM,CAAC,MAAM,MAAM,eAAsB,CAAC;IAE1C,MAAM,OAAO;QACX,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;QAE9C,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;SAAE,GAAG,OAAO;QAUnE,KAAK,IAAI,SAAS;KAGnB;;CACF;AAED;;GAEG;AACH,yBAAiB,eAAe,CAAC;IAC/B,MAAM,CAAC,MAAM,MAAM,cAAqB,CAAC;IAEzC,MAAM,MAAM;QACV,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,mBAAmB,GAAG,SAAS;KAUjD;;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=blueprint.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blueprint.test.d.ts","sourceRoot":"","sources":["../../../../src/blueprint/blueprint.test.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export * from './blueprint';
2
- export * from './machine';
3
- export * from './logger';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprint/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -1,25 +0,0 @@
1
- import { type ReadonlySignal } from '@preact/signals-core';
2
- import { type CleanupFn } from '@dxos/async';
3
- import { type BlueprintEvent, type BlueprintLogger, type BlueprintMachine } from './machine';
4
- type ConsoleLogSignature = (message: string, arg?: any) => void;
5
- interface Logger {
6
- log: ConsoleLogSignature;
7
- }
8
- /**
9
- * Reactive bufferedlogger.
10
- */
11
- export declare class BufferedLogger implements Logger {
12
- private _messages;
13
- get messages(): ReadonlySignal<string[]>;
14
- clear(): void;
15
- log(message: string): void;
16
- }
17
- export declare class BlueprintLoggerAdapter implements BlueprintLogger {
18
- private readonly logger;
19
- constructor(logger?: Logger);
20
- log(event: BlueprintEvent): void;
21
- }
22
- export declare const setLogger: (machine: BlueprintMachine, logger: BufferedLogger) => CleanupFn;
23
- export declare const setConsolePrinter: (machine: BlueprintMachine, verbose?: boolean) => CleanupFn;
24
- export {};
25
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/blueprint/logger.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAU,MAAM,sBAAsB,CAAC;AAInE,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,aAAa,CAAC;AAItD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAEtB,MAAM,WAAW,CAAC;AAQnB,KAAK,mBAAmB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;AAEhE,UAAU,MAAM;IACd,GAAG,EAAE,mBAAmB,CAAC;CAC1B;AAID;;GAEG;AACH,qBAAa,cAAe,YAAW,MAAM;IAC3C,OAAO,CAAC,SAAS,CAAwB;IAEzC,IAAI,QAAQ,IAAI,cAAc,CAAC,MAAM,EAAE,CAAC,CAEvC;IAED,KAAK;IAIL,GAAG,CAAC,OAAO,EAAE,MAAM;CAGpB;AAGD,qBAAa,sBAAuB,YAAW,eAAe;IAChD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,GAAE,MAAuB;IAE5D,GAAG,CAAC,KAAK,EAAE,cAAc;CAsB1B;AAED,eAAO,MAAM,SAAS,GAAI,SAAS,gBAAgB,EAAE,QAAQ,cAAc,KAAG,SAkB7E,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,gBAAgB,EAAE,iBAAe,KAAG,SAkB9E,CAAC"}
@@ -1,143 +0,0 @@
1
- import { type AiServiceClient, Message, type MessageContentBlock, type ToolRegistry } from '@dxos/ai';
2
- import { Event } from '@dxos/async';
3
- import { type ObjectId } from '@dxos/keys';
4
- import type { Blueprint, BlueprintStep } from './blueprint';
5
- export type BlueprintTraceStep = {
6
- status: 'done' | 'bailed' | 'skipped';
7
- stepId: ObjectId;
8
- comment: string;
9
- };
10
- export type BlueprintMachineState = {
11
- history: Message[];
12
- trace: BlueprintTraceStep[];
13
- state: 'working' | 'bail' | 'done';
14
- };
15
- type ExecutionOptions = {
16
- aiClient: AiServiceClient;
17
- /**
18
- * Input to the blueprint.
19
- */
20
- input?: unknown;
21
- };
22
- export type BlueprintEvent = {
23
- type: 'begin';
24
- invocationId: string;
25
- } | {
26
- type: 'end';
27
- invocationId: string;
28
- } | {
29
- type: 'step-start';
30
- invocationId: string;
31
- step: BlueprintStep;
32
- } | {
33
- type: 'step-complete';
34
- invocationId: string;
35
- step: BlueprintStep;
36
- } | {
37
- type: 'message';
38
- invocationId: string;
39
- message: Message;
40
- } | {
41
- type: 'block';
42
- invocationId: string;
43
- block: MessageContentBlock;
44
- };
45
- export interface BlueprintLogger {
46
- log(event: BlueprintEvent): void;
47
- }
48
- /**
49
- * Blueprint state machine.
50
- */
51
- export declare class BlueprintMachine {
52
- readonly registry: ToolRegistry;
53
- readonly blueprint: Blueprint;
54
- readonly begin: Event<void>;
55
- readonly end: Event<void>;
56
- readonly stepStart: Event<BlueprintStep>;
57
- readonly stepComplete: Event<BlueprintStep>;
58
- readonly message: Event<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
59
- id: string;
60
- role: "user" | "assistant";
61
- content: ({
62
- pending?: boolean | undefined;
63
- type: "text";
64
- disposition?: string | undefined;
65
- text: string;
66
- } | {
67
- pending?: boolean | undefined;
68
- type: "json";
69
- disposition?: string | undefined;
70
- json: string;
71
- } | {
72
- pending?: boolean | undefined;
73
- id?: string | undefined;
74
- type: "image";
75
- source?: {
76
- type: "base64";
77
- mediaType: string;
78
- data: string;
79
- } | undefined;
80
- } | {
81
- pending?: boolean | undefined;
82
- id: string;
83
- name: string;
84
- type: "tool_use";
85
- input: unknown;
86
- currentStatus?: {
87
- readonly id: string;
88
- message: string;
89
- } | undefined;
90
- } | {
91
- pending?: boolean | undefined;
92
- type: "tool_result";
93
- content: string;
94
- toolUseId: string;
95
- isError?: boolean | undefined;
96
- })[];
97
- }>;
98
- readonly block: Event<{
99
- pending?: boolean | undefined;
100
- type: "text";
101
- disposition?: string | undefined;
102
- text: string;
103
- } | {
104
- pending?: boolean | undefined;
105
- type: "json";
106
- disposition?: string | undefined;
107
- json: string;
108
- } | {
109
- pending?: boolean | undefined;
110
- id?: string | undefined;
111
- type: "image";
112
- source?: {
113
- type: "base64";
114
- mediaType: string;
115
- data: string;
116
- } | undefined;
117
- } | {
118
- pending?: boolean | undefined;
119
- id: string;
120
- name: string;
121
- type: "tool_use";
122
- input: unknown;
123
- currentStatus?: {
124
- readonly id: string;
125
- message: string;
126
- } | undefined;
127
- } | {
128
- pending?: boolean | undefined;
129
- type: "tool_result";
130
- content: string;
131
- toolUseId: string;
132
- isError?: boolean | undefined;
133
- }>;
134
- private logger?;
135
- private _state;
136
- constructor(registry: ToolRegistry, blueprint: Blueprint);
137
- get state(): BlueprintMachineState;
138
- setLogger(logger: BlueprintLogger): this;
139
- runToCompletion(options: ExecutionOptions): Promise<void>;
140
- private _execStep;
141
- }
142
- export {};
143
- //# sourceMappingURL=machine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../../src/blueprint/machine.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,eAAe,EACpB,OAAO,EACP,KAAK,mBAAmB,EAGxB,KAAK,YAAY,EAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAc5D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;CACpC,CAAC;AAQF,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,eAAe,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,aAAa,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,aAAa,CAAA;CAAE,GACpE;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAExE,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAClC;AAED;;GAEG;AACH,qBAAa,gBAAgB;IAczB,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAC/B,QAAQ,CAAC,SAAS,EAAE,SAAS;IAd/B,SAAgB,KAAK,cAAqB;IAC1C,SAAgB,GAAG,cAAqB;IACxC,SAAgB,SAAS,uBAA8B;IACvD,SAAgB,YAAY,uBAA8B;IAC1D,SAAgB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAwB;IAC/C,SAAgB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoC;IAGzD,OAAO,CAAC,MAAM,CAAC,CAAkB;IAEjC,OAAO,CAAC,MAAM,CAAyD;gBAG5D,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,SAAS;IAG/B,IAAI,KAAK,IAAI,qBAAqB,CAEjC;IAED,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;IAKlC,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;YA2BjD,SAAS;CA4FxB"}
@@ -1,3 +0,0 @@
1
- import { DataType } from '@dxos/schema';
2
- export declare const TEST_EMAILS: DataType.Message[];
3
- //# sourceMappingURL=test-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-data.d.ts","sourceRoot":"","sources":["../../../../src/blueprint/test-data.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,OAAO,EA8CzC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { type FunctionDefinition } from '@dxos/functions';
2
- import { ExtractionInput, ExtractionOutput } from '../extraction';
3
- export declare const extractionAnthropicFn: FunctionDefinition<ExtractionInput, ExtractionOutput>;
4
- //# sourceMappingURL=extraction-llm-function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-llm-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-llm-function/extraction-llm-function.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6B,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAKrF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGlE,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAiDtF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=extraction-llm-function.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-llm-function.test.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-llm-function/extraction-llm-function.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './extraction-llm-function';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-llm-function/index.ts"],"names":[],"mappings":"AAIA,cAAc,2BAA2B,CAAC"}
@@ -1,208 +0,0 @@
1
- export declare const extractionNerFn: import("@dxos/functions").FunctionDefinition<{
2
- readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
3
- id: string;
4
- created: string;
5
- sender: {
6
- name?: string | undefined;
7
- email?: string | undefined;
8
- role?: "user" | "assistant" | undefined;
9
- contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
10
- image?: string | undefined;
11
- fullName?: string | undefined;
12
- preferredName?: string | undefined;
13
- nickname?: string | undefined;
14
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
15
- description?: string | undefined;
16
- id: string;
17
- name?: string | undefined;
18
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
19
- image?: string | undefined;
20
- website?: string | undefined;
21
- }> | undefined;
22
- jobTitle?: string | undefined;
23
- department?: string | undefined;
24
- notes?: string | undefined;
25
- emails?: {
26
- readonly value: string;
27
- readonly label?: string | undefined;
28
- }[] | undefined;
29
- identities?: {
30
- readonly value: string;
31
- readonly label?: string | undefined;
32
- }[] | undefined;
33
- phoneNumbers?: {
34
- readonly value: string;
35
- readonly label?: string | undefined;
36
- }[] | undefined;
37
- addresses?: {
38
- readonly value: {
39
- readonly street?: string | undefined;
40
- readonly extended?: string | undefined;
41
- readonly locality?: string | undefined;
42
- readonly region?: string | undefined;
43
- readonly postalCode?: string | undefined;
44
- readonly postOfficeBoxNumber?: string | undefined;
45
- readonly country?: string | undefined;
46
- };
47
- readonly label?: string | undefined;
48
- }[] | undefined;
49
- urls?: {
50
- readonly value: string;
51
- readonly label?: string | undefined;
52
- }[] | undefined;
53
- birthday?: string | undefined;
54
- fields?: {
55
- readonly value: string;
56
- readonly label: string;
57
- readonly category?: string | undefined;
58
- }[] | undefined;
59
- }> | undefined;
60
- identityDid?: string | undefined;
61
- identityKey?: string | undefined;
62
- };
63
- blocks: ({
64
- pending?: boolean | undefined;
65
- type: "text";
66
- disposition?: string | undefined;
67
- text: string;
68
- } | {
69
- pending?: boolean | undefined;
70
- type: "json";
71
- disposition?: string | undefined;
72
- data: string;
73
- } | {
74
- pending?: boolean | undefined;
75
- id?: string | undefined;
76
- type: "image";
77
- source?: {
78
- type: "base64";
79
- mediaType: string;
80
- data: string;
81
- } | {
82
- type: "http";
83
- url: string;
84
- } | undefined;
85
- } | {
86
- pending?: boolean | undefined;
87
- type: "reference";
88
- reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
89
- } | {
90
- pending?: boolean | undefined;
91
- type: "transcription";
92
- text: string;
93
- started: string;
94
- })[];
95
- properties?: {
96
- [x: string]: any;
97
- } | undefined;
98
- };
99
- readonly options?: {
100
- readonly timeout?: number | undefined;
101
- readonly fallbackToRaw?: boolean | undefined;
102
- } | undefined;
103
- readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
104
- }, {
105
- message: Omit<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
106
- id: string;
107
- created: string;
108
- sender: {
109
- name?: string | undefined;
110
- email?: string | undefined;
111
- role?: "user" | "assistant" | undefined;
112
- contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
113
- image?: string | undefined;
114
- fullName?: string | undefined;
115
- preferredName?: string | undefined;
116
- nickname?: string | undefined;
117
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
118
- description?: string | undefined;
119
- id: string;
120
- name?: string | undefined;
121
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
122
- image?: string | undefined;
123
- website?: string | undefined;
124
- }> | undefined;
125
- jobTitle?: string | undefined;
126
- department?: string | undefined;
127
- notes?: string | undefined;
128
- emails?: {
129
- readonly value: string;
130
- readonly label?: string | undefined;
131
- }[] | undefined;
132
- identities?: {
133
- readonly value: string;
134
- readonly label?: string | undefined;
135
- }[] | undefined;
136
- phoneNumbers?: {
137
- readonly value: string;
138
- readonly label?: string | undefined;
139
- }[] | undefined;
140
- addresses?: {
141
- readonly value: {
142
- readonly street?: string | undefined;
143
- readonly extended?: string | undefined;
144
- readonly locality?: string | undefined;
145
- readonly region?: string | undefined;
146
- readonly postalCode?: string | undefined;
147
- readonly postOfficeBoxNumber?: string | undefined;
148
- readonly country?: string | undefined;
149
- };
150
- readonly label?: string | undefined;
151
- }[] | undefined;
152
- urls?: {
153
- readonly value: string;
154
- readonly label?: string | undefined;
155
- }[] | undefined;
156
- birthday?: string | undefined;
157
- fields?: {
158
- readonly value: string;
159
- readonly label: string;
160
- readonly category?: string | undefined;
161
- }[] | undefined;
162
- }> | undefined;
163
- identityDid?: string | undefined;
164
- identityKey?: string | undefined;
165
- };
166
- blocks: ({
167
- pending?: boolean | undefined;
168
- type: "text";
169
- disposition?: string | undefined;
170
- text: string;
171
- } | {
172
- pending?: boolean | undefined;
173
- type: "json";
174
- disposition?: string | undefined;
175
- data: string;
176
- } | {
177
- pending?: boolean | undefined;
178
- id?: string | undefined;
179
- type: "image";
180
- source?: {
181
- type: "base64";
182
- mediaType: string;
183
- data: string;
184
- } | {
185
- type: "http";
186
- url: string;
187
- } | undefined;
188
- } | {
189
- pending?: boolean | undefined;
190
- type: "reference";
191
- reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
192
- } | {
193
- pending?: boolean | undefined;
194
- type: "transcription";
195
- text: string;
196
- started: string;
197
- })[];
198
- properties?: {
199
- [x: string]: any;
200
- } | undefined;
201
- }, "id" | typeof import("@dxos/echo-schema").EntityKindId> & {
202
- id?: string;
203
- } & {
204
- id: string;
205
- };
206
- timeElapsed: number;
207
- }>;
208
- //# sourceMappingURL=extraction-ner-function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC1B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=extraction-ner-function.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-ner-function.test.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.test.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- type CreateExaToolOptions = {
2
- apiKey: string;
3
- };
4
- export declare const createExaTool: ({ apiKey }: CreateExaToolOptions) => import("@dxos/ai").ExecutableTool;
5
- export declare const createMockExaTool: () => import("@dxos/ai").ExecutableTool;
6
- export {};
7
- //# sourceMappingURL=exa.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exa.d.ts","sourceRoot":"","sources":["../../../../src/research/exa.ts"],"names":[],"mappings":"AAYA,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,oBAAoB,sCAuB7D,CAAC;AAEF,eAAO,MAAM,iBAAiB,yCAkC7B,CAAC"}