@dxos/assistant 0.8.1 → 0.8.2-main.10c050d

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 (277) hide show
  1. package/dist/lib/browser/index.mjs +1830 -228
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node/index.cjs +1825 -229
  5. package/dist/lib/node/index.cjs.map +4 -4
  6. package/dist/lib/node/meta.json +1 -1
  7. package/dist/lib/node-esm/index.mjs +1831 -228
  8. package/dist/lib/node-esm/index.mjs.map +4 -4
  9. package/dist/lib/node-esm/meta.json +1 -1
  10. package/dist/types/{src/bin → bin}/chat.d.ts.map +1 -1
  11. package/dist/types/src/blueprint/blueprint.d.ts +79 -0
  12. package/dist/types/src/blueprint/blueprint.d.ts.map +1 -0
  13. package/dist/types/src/blueprint/blueprint.test.d.ts +2 -0
  14. package/dist/types/src/blueprint/blueprint.test.d.ts.map +1 -0
  15. package/dist/types/src/blueprint/index.d.ts +4 -0
  16. package/dist/types/src/blueprint/index.d.ts.map +1 -0
  17. package/dist/types/src/blueprint/logger.d.ts +3 -0
  18. package/dist/types/src/blueprint/logger.d.ts.map +1 -0
  19. package/dist/types/src/blueprint/machine.d.ts +113 -0
  20. package/dist/types/src/blueprint/machine.d.ts.map +1 -0
  21. package/dist/types/src/blueprint/test-data.d.ts +3 -0
  22. package/dist/types/src/blueprint/test-data.d.ts.map +1 -0
  23. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +4 -0
  24. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -0
  25. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts +2 -0
  26. package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.test.d.ts.map +1 -0
  27. package/dist/types/src/extraction/extraction-llm-function/index.d.ts +2 -0
  28. package/dist/types/src/extraction/extraction-llm-function/index.d.ts.map +1 -0
  29. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +210 -0
  30. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -0
  31. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts +2 -0
  32. package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.test.d.ts.map +1 -0
  33. package/dist/types/src/extraction/extraction-ner-function/index.d.ts +3 -0
  34. package/dist/types/src/extraction/extraction-ner-function/index.d.ts.map +1 -0
  35. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +14 -0
  36. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -0
  37. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.test.d.ts +2 -0
  38. package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.test.d.ts.map +1 -0
  39. package/dist/types/src/extraction/extraction.d.ts +242 -0
  40. package/dist/types/src/extraction/extraction.d.ts.map +1 -0
  41. package/dist/types/src/extraction/index.d.ts +5 -0
  42. package/dist/types/src/extraction/index.d.ts.map +1 -0
  43. package/dist/types/src/extraction/quotes.d.ts +15 -0
  44. package/dist/types/src/extraction/quotes.d.ts.map +1 -0
  45. package/dist/types/src/extraction/quotes.test.d.ts +2 -0
  46. package/dist/types/src/extraction/quotes.test.d.ts.map +1 -0
  47. package/dist/types/src/index.d.ts +4 -3
  48. package/dist/types/src/index.d.ts.map +1 -1
  49. package/dist/types/src/research/exa.d.ts +7 -0
  50. package/dist/types/src/research/exa.d.ts.map +1 -0
  51. package/dist/types/src/research/graph.d.ts +39 -0
  52. package/dist/types/src/research/graph.d.ts.map +1 -0
  53. package/dist/types/src/research/graph.test.d.ts +2 -0
  54. package/dist/types/src/research/graph.test.d.ts.map +1 -0
  55. package/dist/types/src/research/index.d.ts +4 -0
  56. package/dist/types/src/research/index.d.ts.map +1 -0
  57. package/dist/types/src/research/research.d.ts +10 -0
  58. package/dist/types/src/research/research.d.ts.map +1 -0
  59. package/dist/types/src/research/research.test.d.ts +2 -0
  60. package/dist/types/src/research/research.test.d.ts.map +1 -0
  61. package/dist/types/src/session/index.d.ts +1 -0
  62. package/dist/types/src/session/index.d.ts.map +1 -1
  63. package/dist/types/src/session/session.d.ts +80 -35
  64. package/dist/types/src/session/session.d.ts.map +1 -1
  65. package/dist/types/src/session/version-pin.d.ts +21 -0
  66. package/dist/types/src/session/version-pin.d.ts.map +1 -0
  67. package/dist/types/src/session/version-pin.test.d.ts +2 -0
  68. package/dist/types/src/session/version-pin.test.d.ts.map +1 -0
  69. package/dist/types/src/summarization/summarization.test.d.ts +2 -0
  70. package/dist/types/src/summarization/summarization.test.d.ts.map +1 -0
  71. package/dist/types/src/testing/exa-search-1748337321991.d.ts +38 -0
  72. package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +1 -0
  73. package/dist/types/src/testing/exa-search-1748337331526.d.ts +37 -0
  74. package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +1 -0
  75. package/dist/types/src/testing/exa-search-1748337344119.d.ts +58 -0
  76. package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +1 -0
  77. package/dist/types/src/testing/index.d.ts +2 -6
  78. package/dist/types/src/testing/index.d.ts.map +1 -1
  79. package/dist/types/src/types.d.ts +3 -0
  80. package/dist/types/src/types.d.ts.map +1 -0
  81. package/dist/types/tsconfig.tsbuildinfo +1 -1
  82. package/package.json +25 -35
  83. package/src/blueprint/blueprint.test.ts +142 -0
  84. package/src/blueprint/blueprint.ts +95 -0
  85. package/src/blueprint/index.ts +7 -0
  86. package/src/blueprint/logger.ts +66 -0
  87. package/src/blueprint/machine.ts +208 -0
  88. package/src/blueprint/test-data.ts +55 -0
  89. package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +95 -0
  90. package/src/extraction/extraction-llm-function/extraction-llm-function.ts +64 -0
  91. package/src/extraction/extraction-llm-function/index.ts +5 -0
  92. package/src/extraction/extraction-llm-function/instructions.tpl +28 -0
  93. package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +115 -0
  94. package/src/extraction/extraction-ner-function/extraction-ner-function.ts +54 -0
  95. package/src/extraction/extraction-ner-function/index.ts +6 -0
  96. package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +94 -0
  97. package/src/extraction/extraction-ner-function/named-entity-recognition.ts +97 -0
  98. package/src/extraction/extraction.ts +75 -0
  99. package/src/extraction/index.ts +8 -0
  100. package/src/extraction/quotes.test.ts +27 -0
  101. package/src/extraction/quotes.ts +57 -0
  102. package/src/index.ts +4 -3
  103. package/src/research/exa.ts +100 -0
  104. package/src/research/graph.test.ts +15 -0
  105. package/src/research/graph.ts +291 -0
  106. package/src/research/index.ts +7 -0
  107. package/src/research/instructions-research.tpl +97 -0
  108. package/src/research/research.test.ts +189 -0
  109. package/src/research/research.ts +89 -0
  110. package/src/session/index.ts +1 -0
  111. package/src/session/session.test.ts +39 -67
  112. package/src/session/session.ts +328 -155
  113. package/src/session/version-pin.test.ts +26 -0
  114. package/src/session/version-pin.ts +48 -0
  115. package/src/summarization/summarization.test.ts +216 -0
  116. package/src/testing/exa-search-1748337321991.ts +131 -0
  117. package/src/testing/exa-search-1748337331526.ts +144 -0
  118. package/src/testing/exa-search-1748337344119.ts +133 -0
  119. package/src/testing/index.ts +8 -7
  120. package/src/typedefs.d.ts +8 -0
  121. package/src/types.ts +8 -0
  122. package/src/typings.d.ts +8 -0
  123. package/dist/lib/browser/chunk-PND5VR6D.mjs +0 -2315
  124. package/dist/lib/browser/chunk-PND5VR6D.mjs.map +0 -7
  125. package/dist/lib/browser/testing/index.mjs +0 -621
  126. package/dist/lib/browser/testing/index.mjs.map +0 -7
  127. package/dist/lib/node/chunk-IBOBRBDF.cjs +0 -2326
  128. package/dist/lib/node/chunk-IBOBRBDF.cjs.map +0 -7
  129. package/dist/lib/node/testing/index.cjs +0 -637
  130. package/dist/lib/node/testing/index.cjs.map +0 -7
  131. package/dist/lib/node-esm/chunk-DCQJOLSR.mjs +0 -2317
  132. package/dist/lib/node-esm/chunk-DCQJOLSR.mjs.map +0 -7
  133. package/dist/lib/node-esm/testing/index.mjs +0 -622
  134. package/dist/lib/node-esm/testing/index.mjs.map +0 -7
  135. package/dist/types/src/ai-service/client.test.d.ts +0 -2
  136. package/dist/types/src/ai-service/client.test.d.ts.map +0 -1
  137. package/dist/types/src/ai-service/defs.d.ts +0 -9
  138. package/dist/types/src/ai-service/defs.d.ts.map +0 -1
  139. package/dist/types/src/ai-service/edge-client.d.ts +0 -19
  140. package/dist/types/src/ai-service/edge-client.d.ts.map +0 -1
  141. package/dist/types/src/ai-service/index.d.ts +0 -10
  142. package/dist/types/src/ai-service/index.d.ts.map +0 -1
  143. package/dist/types/src/ai-service/message-collector.d.ts +0 -88
  144. package/dist/types/src/ai-service/message-collector.d.ts.map +0 -1
  145. package/dist/types/src/ai-service/ollama-client.d.ts +0 -39
  146. package/dist/types/src/ai-service/ollama-client.d.ts.map +0 -1
  147. package/dist/types/src/ai-service/parser.d.ts +0 -138
  148. package/dist/types/src/ai-service/parser.d.ts.map +0 -1
  149. package/dist/types/src/ai-service/service.d.ts +0 -9
  150. package/dist/types/src/ai-service/service.d.ts.map +0 -1
  151. package/dist/types/src/ai-service/stream.d.ts +0 -40
  152. package/dist/types/src/ai-service/stream.d.ts.map +0 -1
  153. package/dist/types/src/ai-service/stream.test.d.ts +0 -2
  154. package/dist/types/src/ai-service/stream.test.d.ts.map +0 -1
  155. package/dist/types/src/ai-service/testing/index.d.ts +0 -3
  156. package/dist/types/src/ai-service/testing/index.d.ts.map +0 -1
  157. package/dist/types/src/ai-service/testing/mock.d.ts +0 -7
  158. package/dist/types/src/ai-service/testing/mock.d.ts.map +0 -1
  159. package/dist/types/src/ai-service/testing/test-stream.d.ts +0 -7
  160. package/dist/types/src/ai-service/testing/test-stream.d.ts.map +0 -1
  161. package/dist/types/src/ai-service/transform.d.ts +0 -27
  162. package/dist/types/src/ai-service/transform.d.ts.map +0 -1
  163. package/dist/types/src/ai-service/types.d.ts +0 -167
  164. package/dist/types/src/ai-service/types.d.ts.map +0 -1
  165. package/dist/types/src/ai-service/util/index.d.ts +0 -2
  166. package/dist/types/src/ai-service/util/index.d.ts.map +0 -1
  167. package/dist/types/src/ai-service/util/sse.d.ts +0 -39
  168. package/dist/types/src/ai-service/util/sse.d.ts.map +0 -1
  169. package/dist/types/src/conversation/conversation.d.ts +0 -80
  170. package/dist/types/src/conversation/conversation.d.ts.map +0 -1
  171. package/dist/types/src/conversation/conversation.test.d.ts +0 -2
  172. package/dist/types/src/conversation/conversation.test.d.ts.map +0 -1
  173. package/dist/types/src/conversation/index.d.ts +0 -2
  174. package/dist/types/src/conversation/index.d.ts.map +0 -1
  175. package/dist/types/src/conversation/types.d.ts +0 -79
  176. package/dist/types/src/conversation/types.d.ts.map +0 -1
  177. package/dist/types/src/cypher/ast.d.ts +0 -56
  178. package/dist/types/src/cypher/ast.d.ts.map +0 -1
  179. package/dist/types/src/cypher/combinators.d.ts +0 -14
  180. package/dist/types/src/cypher/combinators.d.ts.map +0 -1
  181. package/dist/types/src/cypher/combinators.test.d.ts +0 -2
  182. package/dist/types/src/cypher/combinators.test.d.ts.map +0 -1
  183. package/dist/types/src/cypher/echo-data-source.d.ts +0 -16
  184. package/dist/types/src/cypher/echo-data-source.d.ts.map +0 -1
  185. package/dist/types/src/cypher/execution-plan.d.ts +0 -49
  186. package/dist/types/src/cypher/execution-plan.d.ts.map +0 -1
  187. package/dist/types/src/cypher/execution-plan.test.d.ts +0 -2
  188. package/dist/types/src/cypher/execution-plan.test.d.ts.map +0 -1
  189. package/dist/types/src/cypher/index.d.ts +0 -5
  190. package/dist/types/src/cypher/index.d.ts.map +0 -1
  191. package/dist/types/src/cypher/parjs.d.ts +0 -4
  192. package/dist/types/src/cypher/parjs.d.ts.map +0 -1
  193. package/dist/types/src/cypher/parser.d.ts +0 -6
  194. package/dist/types/src/cypher/parser.d.ts.map +0 -1
  195. package/dist/types/src/cypher/query-executor.d.ts +0 -26
  196. package/dist/types/src/cypher/query-executor.d.ts.map +0 -1
  197. package/dist/types/src/cypher/query-executor.test.d.ts +0 -2
  198. package/dist/types/src/cypher/query-executor.test.d.ts.map +0 -1
  199. package/dist/types/src/cypher/schema.d.ts +0 -12
  200. package/dist/types/src/cypher/schema.d.ts.map +0 -1
  201. package/dist/types/src/cypher/schema.test.d.ts +0 -2
  202. package/dist/types/src/cypher/schema.test.d.ts.map +0 -1
  203. package/dist/types/src/testing/artifacts.test.d.ts +0 -1
  204. package/dist/types/src/testing/artifacts.test.d.ts.map +0 -1
  205. package/dist/types/src/testing/data.d.ts +0 -2
  206. package/dist/types/src/testing/data.d.ts.map +0 -1
  207. package/dist/types/src/testing/defs.d.ts +0 -5
  208. package/dist/types/src/testing/defs.d.ts.map +0 -1
  209. package/dist/types/src/testing/logger.d.ts +0 -12
  210. package/dist/types/src/testing/logger.d.ts.map +0 -1
  211. package/dist/types/src/testing/object-extraction.test.d.ts +0 -1
  212. package/dist/types/src/testing/object-extraction.test.d.ts.map +0 -1
  213. package/dist/types/src/testing/ollama.d.ts +0 -6
  214. package/dist/types/src/testing/ollama.d.ts.map +0 -1
  215. package/dist/types/src/testing/query-promts.d.ts +0 -5
  216. package/dist/types/src/testing/query-promts.d.ts.map +0 -1
  217. package/dist/types/src/testing/query.test.d.ts +0 -2
  218. package/dist/types/src/testing/query.test.d.ts.map +0 -1
  219. package/dist/types/src/testing/test-data.d.ts +0 -29
  220. package/dist/types/src/testing/test-data.d.ts.map +0 -1
  221. package/dist/types/src/testing/test-schema.d.ts +0 -50
  222. package/dist/types/src/testing/test-schema.d.ts.map +0 -1
  223. package/dist/types/src/util/index.d.ts +0 -2
  224. package/dist/types/src/util/index.d.ts.map +0 -1
  225. package/dist/types/src/util/trim.d.ts +0 -5
  226. package/dist/types/src/util/trim.d.ts.map +0 -1
  227. package/src/ai-service/client.test.ts +0 -265
  228. package/src/ai-service/defs.ts +0 -39
  229. package/src/ai-service/edge-client.ts +0 -67
  230. package/src/ai-service/index.ts +0 -13
  231. package/src/ai-service/message-collector.ts +0 -84
  232. package/src/ai-service/ollama-client.ts +0 -499
  233. package/src/ai-service/parser.ts +0 -358
  234. package/src/ai-service/service.ts +0 -15
  235. package/src/ai-service/stream.test.ts +0 -125
  236. package/src/ai-service/stream.ts +0 -118
  237. package/src/ai-service/testing/index.ts +0 -6
  238. package/src/ai-service/testing/mock.ts +0 -22
  239. package/src/ai-service/testing/test-stream.ts +0 -93
  240. package/src/ai-service/transform.ts +0 -121
  241. package/src/ai-service/types.ts +0 -103
  242. package/src/ai-service/util/index.ts +0 -5
  243. package/src/ai-service/util/sse.ts +0 -341
  244. package/src/bin/chat.ts +0 -79
  245. package/src/conversation/conversation.test.ts +0 -73
  246. package/src/conversation/conversation.ts +0 -257
  247. package/src/conversation/index.ts +0 -5
  248. package/src/conversation/types.ts +0 -129
  249. package/src/cypher/ast.ts +0 -75
  250. package/src/cypher/combinators.test.ts +0 -137
  251. package/src/cypher/combinators.ts +0 -148
  252. package/src/cypher/echo-data-source.ts +0 -105
  253. package/src/cypher/execution-plan.test.ts +0 -44
  254. package/src/cypher/execution-plan.ts +0 -208
  255. package/src/cypher/index.ts +0 -8
  256. package/src/cypher/parjs-shims.d.ts +0 -10
  257. package/src/cypher/parjs.ts +0 -10
  258. package/src/cypher/parser.ts +0 -19
  259. package/src/cypher/query-executor.test.ts +0 -47
  260. package/src/cypher/query-executor.ts +0 -145
  261. package/src/cypher/schema.test.ts +0 -17
  262. package/src/cypher/schema.ts +0 -86
  263. package/src/testing/artifacts.test.ts +0 -182
  264. package/src/testing/data.ts +0 -13
  265. package/src/testing/defs.ts +0 -9
  266. package/src/testing/logger.ts +0 -129
  267. package/src/testing/object-extraction.test.ts +0 -71
  268. package/src/testing/ollama.ts +0 -15
  269. package/src/testing/query-promts.ts +0 -75
  270. package/src/testing/query.test.ts +0 -91
  271. package/src/testing/test-data.ts +0 -372
  272. package/src/testing/test-schema.ts +0 -80
  273. package/src/util/index.ts +0 -5
  274. package/src/util/trim.ts +0 -15
  275. package/vendor/parjs-browser.mjs +0 -4
  276. package/vendor/parjs-default.mjs +0 -8
  277. /package/dist/types/{src/bin → bin}/chat.d.ts +0 -0
@@ -1,7 +1,9 @@
1
- import { Schema as S } from 'effect';
2
- import { Message, type ArtifactDefinition, type Tool } from '@dxos/artifact';
1
+ import { Schema } from 'effect';
2
+ import { type AgentStatus, type AIServiceClient, type GenerateRequest, Message, type ExecutableTool } from '@dxos/ai';
3
+ import { type ArtifactDefinition } from '@dxos/artifact';
3
4
  import { Event } from '@dxos/async';
4
- import { type AIServiceClient, type GenerateRequest } from '../ai-service';
5
+ import { ObjectVersion } from '@dxos/echo-db';
6
+ import { type ObjectId } from '@dxos/echo-schema';
5
7
  /**
6
8
  * Contains message history, tools, current context.
7
9
  * Current context means the state of the app, time of day, and other contextual information.
@@ -12,13 +14,26 @@ import { type AIServiceClient, type GenerateRequest } from '../ai-service';
12
14
  * Could be run locally in the app or remotely.
13
15
  * Could be personal or shared.
14
16
  */
17
+ /**
18
+ * Resolves artifact ids to their versions.
19
+ * Used to give the model a sense of the changes to the artifacts made by users during the conversation.
20
+ * The artifacts versions are pinned in the history, and whenever the artifact changes in-between assistant's steps,
21
+ * a diff is inserted into the conversation.
22
+ */
23
+ export type ArtifactDiffResolver = (artifacts: {
24
+ id: ObjectId;
25
+ lastVersion: ObjectVersion;
26
+ }[]) => Promise<Map<ObjectId, {
27
+ version: ObjectVersion;
28
+ diff?: string;
29
+ }>>;
15
30
  export type SessionRunOptions = {
16
31
  client: AIServiceClient;
17
32
  artifacts: ArtifactDefinition[];
18
33
  /**
19
34
  * Non-artifact specific tools.
20
35
  */
21
- tools: Tool[];
36
+ tools: ExecutableTool[];
22
37
  history: Message[];
23
38
  prompt: string;
24
39
  generationOptions?: Pick<GenerateRequest, 'model'>;
@@ -28,13 +43,19 @@ export type SessionRunOptions = {
28
43
  * Pre-require artifacts.
29
44
  */
30
45
  requiredArtifactIds?: string[];
46
+ /**
47
+ * @see ArtifactDiffResolver
48
+ */
49
+ artifactDiffResolver?: ArtifactDiffResolver;
31
50
  };
32
- type OperationModel = 'planning' | 'immediate';
51
+ type OperationModel = 'planning' | 'importing' | 'configured';
33
52
  export type AiSessionOptions = {
34
53
  /**
35
- * In planning mode, the model will create a plan before executing the user's request.
36
- * The plan will determine the artifacts that will be used to perform the actions.
37
- * In require mode, the model will select the artifacts that will be used to perform the actions.
54
+ * Determines the agent's handling of the artifacts definitions:
55
+ *
56
+ * - `planning`: The model will create a plan with required artifacts for each step.
57
+ * - `importing`: The model can query registry and only pull in the artifacts that are required to complete the task.
58
+ * - `configured`: The available artifacts are pre-selected and the model cannot select additional artifacts.
38
59
  */
39
60
  operationModel: OperationModel;
40
61
  };
@@ -53,15 +74,11 @@ export declare class AISession {
53
74
  */
54
75
  readonly message: Event<{
55
76
  readonly id: string;
56
- spaceId?: import("@dxos/keys").SpaceId | undefined;
57
- threadId?: string | undefined;
58
- foreignId?: string | undefined;
59
- role: "user" | "assistant";
60
77
  content: ({
61
78
  pending?: boolean | undefined;
62
79
  type: "text";
63
- disposition?: string | undefined;
64
80
  text: string;
81
+ disposition?: string | undefined;
65
82
  } | {
66
83
  pending?: boolean | undefined;
67
84
  type: "json";
@@ -69,8 +86,8 @@ export declare class AISession {
69
86
  json: string;
70
87
  } | {
71
88
  pending?: boolean | undefined;
72
- type: "image";
73
89
  id?: string | undefined;
90
+ type: "image";
74
91
  source?: {
75
92
  type: "base64";
76
93
  mediaType: string;
@@ -78,17 +95,22 @@ export declare class AISession {
78
95
  } | undefined;
79
96
  } | {
80
97
  pending?: boolean | undefined;
81
- name: string;
82
- type: "tool_use";
83
98
  id: string;
99
+ type: "tool_use";
100
+ name: string;
84
101
  input: unknown;
102
+ currentStatus?: {
103
+ readonly id: string;
104
+ message: string;
105
+ } | undefined;
85
106
  } | {
86
107
  pending?: boolean | undefined;
87
108
  type: "tool_result";
88
- content: string;
89
109
  toolUseId: string;
110
+ content: string;
90
111
  isError?: boolean | undefined;
91
112
  })[];
113
+ role: "user" | "assistant";
92
114
  }>;
93
115
  /**
94
116
  * Complete block added to Message.
@@ -96,8 +118,8 @@ export declare class AISession {
96
118
  readonly block: Event<{
97
119
  pending?: boolean | undefined;
98
120
  type: "text";
99
- disposition?: string | undefined;
100
121
  text: string;
122
+ disposition?: string | undefined;
101
123
  } | {
102
124
  pending?: boolean | undefined;
103
125
  type: "json";
@@ -105,8 +127,8 @@ export declare class AISession {
105
127
  json: string;
106
128
  } | {
107
129
  pending?: boolean | undefined;
108
- type: "image";
109
130
  id?: string | undefined;
131
+ type: "image";
110
132
  source?: {
111
133
  type: "base64";
112
134
  mediaType: string;
@@ -114,15 +136,19 @@ export declare class AISession {
114
136
  } | undefined;
115
137
  } | {
116
138
  pending?: boolean | undefined;
117
- name: string;
118
- type: "tool_use";
119
139
  id: string;
140
+ type: "tool_use";
141
+ name: string;
120
142
  input: unknown;
143
+ currentStatus?: {
144
+ readonly id: string;
145
+ message: string;
146
+ } | undefined;
121
147
  } | {
122
148
  pending?: boolean | undefined;
123
149
  type: "tool_result";
124
- content: string;
125
150
  toolUseId: string;
151
+ content: string;
126
152
  isError?: boolean | undefined;
127
153
  }>;
128
154
  /**
@@ -131,8 +157,8 @@ export declare class AISession {
131
157
  readonly update: Event<{
132
158
  pending?: boolean | undefined;
133
159
  type: "text";
134
- disposition?: string | undefined;
135
160
  text: string;
161
+ disposition?: string | undefined;
136
162
  } | {
137
163
  pending?: boolean | undefined;
138
164
  type: "json";
@@ -140,8 +166,8 @@ export declare class AISession {
140
166
  json: string;
141
167
  } | {
142
168
  pending?: boolean | undefined;
143
- type: "image";
144
169
  id?: string | undefined;
170
+ type: "image";
145
171
  source?: {
146
172
  type: "base64";
147
173
  mediaType: string;
@@ -149,26 +175,27 @@ export declare class AISession {
149
175
  } | undefined;
150
176
  } | {
151
177
  pending?: boolean | undefined;
152
- name: string;
153
- type: "tool_use";
154
178
  id: string;
179
+ type: "tool_use";
180
+ name: string;
155
181
  input: unknown;
182
+ currentStatus?: {
183
+ readonly id: string;
184
+ message: string;
185
+ } | undefined;
156
186
  } | {
157
187
  pending?: boolean | undefined;
158
188
  type: "tool_result";
159
- content: string;
160
189
  toolUseId: string;
190
+ content: string;
161
191
  isError?: boolean | undefined;
162
192
  }>;
163
- readonly streamEvent: Event<import("..").GenerationStreamEvent>;
193
+ readonly streamEvent: Event<import("@dxos/ai").GenerationStreamEvent>;
164
194
  /**
165
195
  * User prompt or tool result.
166
196
  */
167
197
  readonly userMessage: Event<{
168
198
  readonly id: string;
169
- spaceId?: import("@dxos/keys").SpaceId | undefined;
170
- threadId?: string | undefined;
171
- foreignId?: string | undefined;
172
199
  role: "user" | "assistant";
173
200
  content: ({
174
201
  pending?: boolean | undefined;
@@ -182,8 +209,8 @@ export declare class AISession {
182
209
  json: string;
183
210
  } | {
184
211
  pending?: boolean | undefined;
185
- type: "image";
186
212
  id?: string | undefined;
213
+ type: "image";
187
214
  source?: {
188
215
  type: "base64";
189
216
  mediaType: string;
@@ -191,10 +218,14 @@ export declare class AISession {
191
218
  } | undefined;
192
219
  } | {
193
220
  pending?: boolean | undefined;
221
+ id: string;
194
222
  name: string;
195
223
  type: "tool_use";
196
- id: string;
197
224
  input: unknown;
225
+ currentStatus?: {
226
+ readonly id: string;
227
+ message: string;
228
+ } | undefined;
198
229
  } | {
199
230
  pending?: boolean | undefined;
200
231
  type: "tool_result";
@@ -203,12 +234,26 @@ export declare class AISession {
203
234
  isError?: boolean | undefined;
204
235
  })[];
205
236
  }>;
237
+ /**
238
+ * Agent self-reporting its status.
239
+ */
240
+ readonly statusReport: Event<AgentStatus>;
241
+ readonly toolStatusReport: Event<{
242
+ message: Message;
243
+ status: AgentStatus;
244
+ }>;
206
245
  constructor(_options: AiSessionOptions);
207
246
  run(options: SessionRunOptions): Promise<Message[]>;
247
+ runStructured<S extends Schema.Schema.AnyNoContext>(schema: S, options: SessionRunOptions): Promise<Schema.Schema.Type<S>>;
248
+ private _formatUserPrompt;
249
+ private _createQueryArtifactsTool;
250
+ private _createRequireTool;
251
+ private _createPlanningTool;
252
+ private _onToolStatusReport;
208
253
  abort(): void;
209
254
  }
210
- declare const AIServiecOverloadedError_base: S.TaggedErrorClass<AIServiecOverloadedError, "AIServiecOverloadedError", {
211
- readonly _tag: S.tag<"AIServiecOverloadedError">;
255
+ declare const AIServiecOverloadedError_base: Schema.TaggedErrorClass<AIServiecOverloadedError, "AIServiecOverloadedError", {
256
+ readonly _tag: Schema.tag<"AIServiecOverloadedError">;
212
257
  }>;
213
258
  export declare class AIServiecOverloadedError extends AIServiecOverloadedError_base {
214
259
  }
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../src/session/session.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;AAErC,OAAO,EAAc,OAAO,EAAc,KAAK,kBAAkB,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACrG,OAAO,EAAE,KAAK,EAAgB,MAAM,aAAa,CAAC;AAKlD,OAAO,EAAqB,KAAK,eAAe,EAAE,KAAK,eAAe,EAAyB,MAAM,eAAe,CAAC;AAErH;;;;;;;;;GASG;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,eAAe,CAAC;IAExB,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAEhC;;OAEG;IACH,KAAK,EAAE,IAAI,EAAE,CAAC;IAEd,OAAO,EAAE,OAAO,EAAE,CAAC;IAEnB,MAAM,EAAE,MAAM,CAAC;IAEf,iBAAiB,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IAEnD,UAAU,CAAC,EAAE,qBAAqB,CAAC;IAEnC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC,CAAC;AAEF,KAAK,cAAc,GAAG,UAAU,GAAG,WAAW,CAAC;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xos/ai';
3
+ import { type ObjectVersion } from '@dxos/echo-db';
4
+ import { type BaseEchoObject } from '@dxos/echo-schema';
5
+ declare const VersionPinSchema: Schema.Struct<{
6
+ objectId: import("@dxos/keys").ObjectIdClass;
7
+ version: Schema.Schema<ObjectVersion, ObjectVersion, never>;
8
+ }>;
9
+ /**
10
+ * Used to pin a specific version of an object during the course of a conversation.
11
+ * This allows us to detect when the object changes during the course of the conversation.
12
+ */
13
+ export interface VersionPin extends Schema.Schema.Type<typeof VersionPinSchema> {
14
+ }
15
+ export declare const VersionPin: typeof VersionPinSchema & {
16
+ DISPOSITION: 'version-pin';
17
+ fromObject: (object: BaseEchoObject) => VersionPin;
18
+ createBlock: (pin: VersionPin) => MessageContentBlock;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=version-pin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-pin.d.ts","sourceRoot":"","sources":["../../../../src/session/version-pin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKlE,QAAA,MAAM,gBAAgB;;;EAKpB,CAAC;AAEH;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAElF,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,WAAW,EAAE,aAAa,CAAC;IAC3B,UAAU,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,UAAU,CAAC;IACnD,WAAW,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,mBAAmB,CAAC;CAiBvD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=version-pin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-pin.test.d.ts","sourceRoot":"","sources":["../../../../src/session/version-pin.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=summarization.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summarization.test.d.ts","sourceRoot":"","sources":["../../../../src/summarization/summarization.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ declare const _default: {
2
+ requestId: string;
3
+ autopromptString: string;
4
+ autoDate: string;
5
+ resolvedSearchType: string;
6
+ results: ({
7
+ id: string;
8
+ title: string;
9
+ url: string;
10
+ publishedDate: string;
11
+ author: string;
12
+ score: number;
13
+ text: string;
14
+ image?: undefined;
15
+ favicon?: undefined;
16
+ } | {
17
+ id: string;
18
+ title: string;
19
+ url: string;
20
+ publishedDate: string;
21
+ author: string;
22
+ score: number;
23
+ text: string;
24
+ image: string;
25
+ favicon: string;
26
+ })[];
27
+ costDollars: {
28
+ total: number;
29
+ search: {
30
+ neural: number;
31
+ };
32
+ contents: {
33
+ text: number;
34
+ };
35
+ };
36
+ };
37
+ export default _default;
38
+ //# sourceMappingURL=exa-search-1748337321991.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exa-search-1748337321991.d.ts","sourceRoot":"","sources":["../../../../src/testing/exa-search-1748337321991.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA8HE"}
@@ -0,0 +1,37 @@
1
+ declare const _default: {
2
+ requestId: string;
3
+ autopromptString: string;
4
+ resolvedSearchType: string;
5
+ results: ({
6
+ id: string;
7
+ title: string;
8
+ url: string;
9
+ publishedDate: string;
10
+ author: string;
11
+ score: number;
12
+ text: string;
13
+ image: string;
14
+ favicon: string;
15
+ } | {
16
+ id: string;
17
+ title: string;
18
+ url: string;
19
+ publishedDate: string;
20
+ author: string;
21
+ text: string;
22
+ image: string;
23
+ favicon: string;
24
+ score?: undefined;
25
+ })[];
26
+ costDollars: {
27
+ total: number;
28
+ search: {
29
+ neural: number;
30
+ };
31
+ contents: {
32
+ text: number;
33
+ };
34
+ };
35
+ };
36
+ export default _default;
37
+ //# sourceMappingURL=exa-search-1748337331526.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exa-search-1748337331526.d.ts","sourceRoot":"","sources":["../../../../src/testing/exa-search-1748337331526.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA2IE"}
@@ -0,0 +1,58 @@
1
+ declare const _default: {
2
+ requestId: string;
3
+ autopromptString: string;
4
+ autoDate: string;
5
+ resolvedSearchType: string;
6
+ results: ({
7
+ id: string;
8
+ title: string;
9
+ url: string;
10
+ publishedDate: string;
11
+ author: string;
12
+ score: number;
13
+ text: string;
14
+ favicon: string;
15
+ image?: undefined;
16
+ } | {
17
+ id: string;
18
+ title: string;
19
+ url: string;
20
+ publishedDate: string;
21
+ author: string;
22
+ score: number;
23
+ text: string;
24
+ favicon?: undefined;
25
+ image?: undefined;
26
+ } | {
27
+ id: string;
28
+ title: string;
29
+ url: string;
30
+ publishedDate: string;
31
+ author: string;
32
+ score: number;
33
+ text: string;
34
+ image: string;
35
+ favicon: string;
36
+ } | {
37
+ id: string;
38
+ title: string;
39
+ url: string;
40
+ author: string;
41
+ text: string;
42
+ image: string;
43
+ favicon: string;
44
+ publishedDate?: undefined;
45
+ score?: undefined;
46
+ })[];
47
+ costDollars: {
48
+ total: number;
49
+ search: {
50
+ neural: number;
51
+ };
52
+ contents: {
53
+ text: number;
54
+ };
55
+ };
56
+ };
57
+ export default _default;
58
+ //# sourceMappingURL=exa-search-1748337344119.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exa-search-1748337344119.d.ts","sourceRoot":"","sources":["../../../../src/testing/exa-search-1748337344119.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAgIE"}
@@ -1,7 +1,3 @@
1
- export * from './defs';
2
- export * from './logger';
3
- export * from './ollama';
4
- export * from './query-promts';
5
- export * from './test-data';
6
- export * from './test-schema';
1
+ import type { SearchResponse } from 'exa-js';
2
+ export declare const SEARCH_RESULTS: SearchResponse<any>[];
7
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAM7C,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,GAAG,CAAC,EAAgC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ObjectId } from '@dxos/echo-schema';
2
+ export declare const createArtifactElement: (id: ObjectId) => string;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,eAAO,MAAM,qBAAqB,GAAI,IAAI,QAAQ,WAA4B,CAAC"}
@@ -1 +1 @@
1
- {"version":"5.7.3"}
1
+ {"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/assistant",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-main.10c050d",
4
4
  "description": "Natural language interface to DXOS",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -8,54 +8,44 @@
8
8
  "author": "info@dxos.org",
9
9
  "sideEffects": true,
10
10
  "type": "module",
11
- "imports": {
12
- "#parjs": {
13
- "browser": "./vendor/parjs-browser.mjs",
14
- "default": "./vendor/parjs-default.mjs"
15
- },
16
- "#parjs/combinators": {
17
- "browser": "./vendor/parjs-combinators-browser.mjs",
18
- "default": "./vendor/parjs-combinators-default.mjs"
19
- }
20
- },
21
11
  "exports": {
22
12
  ".": {
23
13
  "types": "./dist/types/src/index.d.ts",
24
14
  "browser": "./dist/lib/browser/index.mjs",
25
15
  "node": "./dist/lib/node-esm/index.mjs"
26
- },
27
- "./testing": {
28
- "types": "./dist/types/src/testing/index.d.ts",
29
- "browser": "./dist/lib/browser/testing/index.mjs",
30
- "node": "./dist/lib/node-esm/testing/index.mjs"
31
16
  }
32
17
  },
33
18
  "types": "dist/types/src/index.d.ts",
34
19
  "files": [
35
20
  "dist",
36
- "vendor",
37
21
  "src"
38
22
  ],
39
23
  "dependencies": {
40
- "parjs": "^1.3.9",
41
- "parsimmon": "^1.18.1",
42
- "ulidx": "^2.3.0",
43
- "@dxos/artifact": "0.8.1",
44
- "@dxos/async": "0.8.1",
45
- "@dxos/context": "0.8.1",
46
- "@dxos/echo-db": "0.8.1",
47
- "@dxos/echo-schema": "0.8.1",
48
- "@dxos/debug": "0.8.1",
49
- "@dxos/invariant": "0.8.1",
50
- "@dxos/keys": "0.8.1",
51
- "@dxos/live-object": "0.8.1",
52
- "@dxos/node-std": "0.8.1",
53
- "@dxos/util": "0.8.1",
54
- "@dxos/log": "0.8.1"
24
+ "@xenova/transformers": "^2.17.2",
25
+ "chalk": "^4.1.0",
26
+ "exa-js": "^1.5.12",
27
+ "@dxos/ai": "0.8.2-main.10c050d",
28
+ "@dxos/artifact": "0.8.2-main.10c050d",
29
+ "@dxos/async": "0.8.2-main.10c050d",
30
+ "@dxos/context": "0.8.2-main.10c050d",
31
+ "@dxos/debug": "0.8.2-main.10c050d",
32
+ "@dxos/echo": "0.8.2-main.10c050d",
33
+ "@dxos/echo-protocol": "0.8.2-main.10c050d",
34
+ "@dxos/echo-db": "0.8.2-main.10c050d",
35
+ "@dxos/effect": "0.8.2-main.10c050d",
36
+ "@dxos/functions": "0.8.2-main.10c050d",
37
+ "@dxos/graph": "0.8.2-main.10c050d",
38
+ "@dxos/echo-schema": "0.8.2-main.10c050d",
39
+ "@dxos/invariant": "0.8.2-main.10c050d",
40
+ "@dxos/keys": "0.8.2-main.10c050d",
41
+ "@dxos/live-object": "0.8.2-main.10c050d",
42
+ "@dxos/log": "0.8.2-main.10c050d",
43
+ "@dxos/node-std": "0.8.2-main.10c050d",
44
+ "@dxos/schema": "0.8.2-main.10c050d",
45
+ "@dxos/util": "0.8.2-main.10c050d"
55
46
  },
56
47
  "devDependencies": {
57
- "@types/parsimmon": "^1.10.9",
58
- "effect": "3.13.3",
48
+ "effect": "3.14.21",
59
49
  "inquirer": "^12.0.0"
60
50
  },
61
51
  "peerDependencies": {
@@ -66,6 +56,6 @@
66
56
  },
67
57
  "beast": {},
68
58
  "scripts": {
69
- "run:chat": "tsx src/bin/chat.ts"
59
+ "run:chat": "tsx ./bin/chat.ts"
70
60
  }
71
61
  }