@dxos/assistant-toolkit 0.8.4-main.ae835ea → 0.8.4-main.bc674ce

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 (204) hide show
  1. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  2. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +1091 -692
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/testing/index.mjs +43 -0
  7. package/dist/lib/browser/testing/index.mjs.map +7 -0
  8. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  9. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +1090 -692
  11. package/dist/lib/node-esm/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/testing/index.mjs +44 -0
  14. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  15. package/dist/types/src/blueprints/design/design-blueprint.d.ts +17 -3
  16. package/dist/types/src/blueprints/design/design-blueprint.d.ts.map +1 -1
  17. package/dist/types/src/blueprints/design/index.d.ts +1 -1
  18. package/dist/types/src/blueprints/design/index.d.ts.map +1 -1
  19. package/dist/types/src/blueprints/discord/discord-blueprint.d.ts +13 -13
  20. package/dist/types/src/blueprints/discord/discord-blueprint.d.ts.map +1 -1
  21. package/dist/types/src/blueprints/discord/index.d.ts +1 -1
  22. package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
  23. package/dist/types/src/blueprints/linear/index.d.ts +1 -1
  24. package/dist/types/src/blueprints/linear/index.d.ts.map +1 -1
  25. package/dist/types/src/blueprints/linear/linear-blueprint.d.ts +13 -13
  26. package/dist/types/src/blueprints/linear/linear-blueprint.d.ts.map +1 -1
  27. package/dist/types/src/blueprints/planning/index.d.ts +1 -1
  28. package/dist/types/src/blueprints/planning/index.d.ts.map +1 -1
  29. package/dist/types/src/blueprints/planning/planning-blueprint.d.ts +17 -3
  30. package/dist/types/src/blueprints/planning/planning-blueprint.d.ts.map +1 -1
  31. package/dist/types/src/blueprints/research/index.d.ts +1 -1
  32. package/dist/types/src/blueprints/research/index.d.ts.map +1 -1
  33. package/dist/types/src/blueprints/research/research-blueprint.d.ts +17 -3
  34. package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +1 -1
  35. package/dist/types/src/blueprints/testing.d.ts +2 -2
  36. package/dist/types/src/blueprints/testing.d.ts.map +1 -1
  37. package/dist/types/src/blueprints/websearch/index.d.ts +1 -1
  38. package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
  39. package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts +17 -3
  40. package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts.map +1 -1
  41. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts +1 -0
  42. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +1 -1
  43. package/dist/types/src/{functions/research → crud}/graph.d.ts +14 -11
  44. package/dist/types/src/crud/graph.d.ts.map +1 -0
  45. package/dist/types/src/crud/graph.test.d.ts.map +1 -0
  46. package/dist/types/src/crud/index.d.ts +2 -0
  47. package/dist/types/src/crud/index.d.ts.map +1 -0
  48. package/dist/types/src/functions/agent/prompt.d.ts +73 -8
  49. package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
  50. package/dist/types/src/functions/discord/fetch-messages.d.ts +1 -1
  51. package/dist/types/src/functions/discord/index.d.ts +1 -1
  52. package/dist/types/src/functions/discord/index.d.ts.map +1 -1
  53. package/dist/types/src/functions/document/index.d.ts +3 -2
  54. package/dist/types/src/functions/document/index.d.ts.map +1 -1
  55. package/dist/types/src/functions/document/read.d.ts +1 -1
  56. package/dist/types/src/functions/document/read.d.ts.map +1 -1
  57. package/dist/types/src/functions/document/update.d.ts +1 -1
  58. package/dist/types/src/functions/document/update.d.ts.map +1 -1
  59. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +126 -125
  60. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -1
  61. package/dist/types/src/functions/entity-extraction/index.d.ts +126 -125
  62. package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -1
  63. package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts.map +1 -0
  64. package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts.map +1 -0
  65. package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts.map +1 -0
  66. package/dist/types/src/functions/exa/data/index.d.ts.map +1 -0
  67. package/dist/types/src/functions/exa/exa.d.ts +1 -1
  68. package/dist/types/src/functions/exa/mock.d.ts +1 -1
  69. package/dist/types/src/functions/github/fetch-prs.d.ts +1 -1
  70. package/dist/types/src/functions/github/fetch-prs.d.ts.map +1 -1
  71. package/dist/types/src/functions/linear/index.d.ts +2 -2
  72. package/dist/types/src/functions/linear/index.d.ts.map +1 -1
  73. package/dist/types/src/functions/linear/sync-issues.d.ts +2 -2
  74. package/dist/types/src/functions/linear/sync-issues.d.ts.map +1 -1
  75. package/dist/types/src/functions/research/document-create.d.ts +9 -0
  76. package/dist/types/src/functions/research/document-create.d.ts.map +1 -0
  77. package/dist/types/src/functions/research/index.d.ts +8 -6
  78. package/dist/types/src/functions/research/index.d.ts.map +1 -1
  79. package/dist/types/src/functions/research/research-graph.d.ts +9 -8
  80. package/dist/types/src/functions/research/research-graph.d.ts.map +1 -1
  81. package/dist/types/src/functions/research/research.d.ts +4 -3
  82. package/dist/types/src/functions/research/research.d.ts.map +1 -1
  83. package/dist/types/src/functions/research/types.d.ts +2 -380
  84. package/dist/types/src/functions/research/types.d.ts.map +1 -1
  85. package/dist/types/src/functions/tasks/index.d.ts +2 -2
  86. package/dist/types/src/functions/tasks/index.d.ts.map +1 -1
  87. package/dist/types/src/functions/tasks/read.d.ts +1 -1
  88. package/dist/types/src/functions/tasks/read.d.ts.map +1 -1
  89. package/dist/types/src/functions/tasks/update.d.ts +1 -1
  90. package/dist/types/src/functions/tasks/update.d.ts.map +1 -1
  91. package/dist/types/src/index.d.ts +2 -1
  92. package/dist/types/src/index.d.ts.map +1 -1
  93. package/dist/types/src/initiative/Initiative.d.ts +84 -0
  94. package/dist/types/src/initiative/Initiative.d.ts.map +1 -0
  95. package/dist/types/src/initiative/InitiativeSchema.d.ts +19 -0
  96. package/dist/types/src/initiative/InitiativeSchema.d.ts.map +1 -0
  97. package/dist/types/src/initiative/functions/agent.d.ts +37 -0
  98. package/dist/types/src/initiative/functions/agent.d.ts.map +1 -0
  99. package/dist/types/src/initiative/functions/getContext.d.ts +17 -0
  100. package/dist/types/src/initiative/functions/getContext.d.ts.map +1 -0
  101. package/dist/types/src/initiative/functions/index.d.ts +4 -0
  102. package/dist/types/src/initiative/functions/index.d.ts.map +1 -0
  103. package/dist/types/src/{functions/research/create-document.d.ts → initiative/functions/update.d.ts} +3 -3
  104. package/dist/types/src/initiative/functions/update.d.ts.map +1 -0
  105. package/dist/types/src/initiative/index.d.ts +1 -0
  106. package/dist/types/src/initiative/index.d.ts.map +1 -0
  107. package/dist/types/src/initiative/initiative.test.d.ts +2 -0
  108. package/dist/types/src/initiative/initiative.test.d.ts.map +1 -0
  109. package/dist/types/src/sync/sync.d.ts +3 -3
  110. package/dist/types/src/sync/sync.d.ts.map +1 -1
  111. package/dist/types/src/testing/index.d.ts +1 -1
  112. package/dist/types/src/testing/index.d.ts.map +1 -1
  113. package/dist/types/src/testing/plugins.d.ts +19 -0
  114. package/dist/types/src/testing/plugins.d.ts.map +1 -0
  115. package/dist/types/src/toolkits/AssistantToolkit.d.ts +43 -0
  116. package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +1 -0
  117. package/dist/types/src/toolkits/AssistantToolkit.test.d.ts +2 -0
  118. package/dist/types/src/toolkits/AssistantToolkit.test.d.ts.map +1 -0
  119. package/dist/types/src/toolkits/SystemToolkit.d.ts +99 -0
  120. package/dist/types/src/toolkits/SystemToolkit.d.ts.map +1 -0
  121. package/dist/types/src/toolkits/index.d.ts +3 -0
  122. package/dist/types/src/toolkits/index.d.ts.map +1 -0
  123. package/dist/types/tsconfig.tsbuildinfo +1 -1
  124. package/package.json +49 -33
  125. package/src/blueprints/design/design-blueprint.test.ts +17 -20
  126. package/src/blueprints/design/design-blueprint.ts +4 -6
  127. package/src/blueprints/design/index.ts +1 -1
  128. package/src/blueprints/discord/discord-blueprint.ts +4 -6
  129. package/src/blueprints/discord/index.ts +1 -1
  130. package/src/blueprints/linear/index.ts +1 -1
  131. package/src/blueprints/linear/linear-blueprint.ts +4 -6
  132. package/src/blueprints/planning/index.ts +1 -1
  133. package/src/blueprints/planning/planning-blueprint.test.ts +17 -20
  134. package/src/blueprints/planning/planning-blueprint.ts +4 -6
  135. package/src/blueprints/research/index.ts +1 -1
  136. package/src/blueprints/research/research-blueprint.ts +25 -19
  137. package/src/blueprints/testing.ts +2 -2
  138. package/src/blueprints/websearch/index.ts +2 -1
  139. package/src/blueprints/websearch/websearch-blueprint.ts +4 -6
  140. package/src/crud/graph.test.ts +46 -0
  141. package/src/{functions/research → crud}/graph.ts +32 -40
  142. package/src/crud/index.ts +5 -0
  143. package/src/experimental/feed.test.ts +12 -9
  144. package/src/functions/agent/prompt.ts +39 -22
  145. package/src/functions/discord/fetch-messages.test.ts +6 -7
  146. package/src/functions/discord/fetch-messages.ts +11 -10
  147. package/src/functions/document/index.ts +1 -0
  148. package/src/functions/document/read.ts +4 -3
  149. package/src/functions/document/update.ts +7 -4
  150. package/src/functions/entity-extraction/entity-extraction.conversations.json +6597 -1
  151. package/src/functions/entity-extraction/entity-extraction.test.ts +16 -23
  152. package/src/functions/entity-extraction/entity-extraction.ts +51 -31
  153. package/src/functions/exa/mock.ts +1 -1
  154. package/src/functions/github/fetch-prs.ts +3 -2
  155. package/src/functions/linear/linear.test.ts +18 -20
  156. package/src/functions/linear/sync-issues.ts +14 -12
  157. package/src/functions/research/document-create.ts +76 -0
  158. package/src/functions/research/index.ts +1 -2
  159. package/src/functions/research/research-graph.ts +13 -11
  160. package/src/functions/research/{instructions-research.tpl → research-instructions.tpl} +14 -6
  161. package/src/functions/research/research.conversations.json +1 -10714
  162. package/src/functions/research/research.test.ts +92 -161
  163. package/src/functions/research/research.ts +88 -54
  164. package/src/functions/research/types.ts +14 -12
  165. package/src/functions/tasks/read.ts +4 -3
  166. package/src/functions/tasks/update.ts +4 -3
  167. package/src/index.ts +2 -1
  168. package/src/initiative/Initiative.ts +99 -0
  169. package/src/initiative/InitiativeSchema.ts +37 -0
  170. package/src/initiative/functions/agent.ts +57 -0
  171. package/src/initiative/functions/getContext.ts +74 -0
  172. package/src/initiative/functions/index.ts +7 -0
  173. package/src/initiative/functions/update.ts +63 -0
  174. package/src/initiative/index.ts +3 -0
  175. package/src/initiative/initiative.conversations.json +1 -0
  176. package/src/initiative/initiative.test.ts +485 -0
  177. package/src/sync/sync.ts +38 -30
  178. package/src/testing/index.ts +1 -1
  179. package/src/{plugins.tsx → testing/plugins.tsx} +15 -15
  180. package/src/toolkits/AssistantToolkit.conversations.json +1 -0
  181. package/src/toolkits/AssistantToolkit.test.ts +94 -0
  182. package/src/toolkits/AssistantToolkit.ts +70 -0
  183. package/src/toolkits/SystemToolkit.ts +299 -0
  184. package/src/toolkits/index.ts +6 -0
  185. package/dist/types/src/functions/research/create-document.d.ts.map +0 -1
  186. package/dist/types/src/functions/research/graph.d.ts.map +0 -1
  187. package/dist/types/src/functions/research/graph.test.d.ts.map +0 -1
  188. package/dist/types/src/plugins.d.ts +0 -19
  189. package/dist/types/src/plugins.d.ts.map +0 -1
  190. package/dist/types/src/testing/data/exa-search-1748337321991.d.ts.map +0 -1
  191. package/dist/types/src/testing/data/exa-search-1748337331526.d.ts.map +0 -1
  192. package/dist/types/src/testing/data/exa-search-1748337344119.d.ts.map +0 -1
  193. package/dist/types/src/testing/data/index.d.ts.map +0 -1
  194. package/src/functions/research/create-document.ts +0 -69
  195. package/src/functions/research/graph.test.ts +0 -69
  196. /package/dist/types/src/{functions/research → crud}/graph.test.d.ts +0 -0
  197. /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337321991.d.ts +0 -0
  198. /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337331526.d.ts +0 -0
  199. /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337344119.d.ts +0 -0
  200. /package/dist/types/src/{testing → functions/exa}/data/index.d.ts +0 -0
  201. /package/src/{testing → functions/exa}/data/exa-search-1748337321991.ts +0 -0
  202. /package/src/{testing → functions/exa}/data/exa-search-1748337331526.ts +0 -0
  203. /package/src/{testing → functions/exa}/data/exa-search-1748337344119.ts +0 -0
  204. /package/src/{testing → functions/exa}/data/index.ts +0 -0
@@ -1,49 +1,47 @@
1
1
  declare const _default: import("@dxos/functions").FunctionDefinition<{
2
2
  readonly instructions?: string | undefined;
3
- readonly source: import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
4
- properties?: {
5
- [x: string]: any;
6
- } | undefined;
7
- id: string;
8
- parentMessage?: string | undefined;
9
- created: string;
10
- sender: {
11
- name?: string | undefined;
12
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
13
- fields?: {
14
- readonly value: string;
15
- readonly category?: string | undefined;
16
- readonly label: string;
17
- }[] | undefined;
18
- fullName?: string | undefined;
19
- preferredName?: string | undefined;
20
- nickname?: string | undefined;
21
- image?: string | undefined;
22
- organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
23
- id: string;
24
- description?: string | undefined;
25
- name?: string | undefined;
26
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
27
- image?: string | undefined;
28
- website?: string | undefined;
29
- location?: readonly [number, number, (number | undefined)?] | undefined;
3
+ readonly source: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
4
+ readonly id: string;
5
+ readonly parentMessage?: string | undefined;
6
+ readonly created: string;
7
+ readonly sender: {
8
+ readonly name?: string | undefined;
9
+ readonly role?: "user" | "assistant" | "tool" | undefined;
10
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
11
+ readonly image?: string | undefined;
12
+ readonly fullName?: string | undefined;
13
+ readonly preferredName?: string | undefined;
14
+ readonly nickname?: string | undefined;
15
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
16
+ readonly description?: string | undefined;
17
+ readonly name?: string | undefined;
18
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
19
+ readonly image?: string | undefined;
20
+ readonly website?: string | undefined;
21
+ } & {
22
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
30
23
  }> | undefined;
31
- jobTitle?: string | undefined;
32
- department?: string | undefined;
33
- notes?: string | undefined;
34
- emails?: {
24
+ readonly jobTitle?: string | undefined;
25
+ readonly department?: string | undefined;
26
+ readonly notes?: string | undefined;
27
+ readonly emails?: readonly {
35
28
  readonly value: string;
36
29
  readonly label?: string | undefined;
37
30
  }[] | undefined;
38
- identities?: {
31
+ readonly identities?: readonly {
39
32
  readonly value: string;
40
33
  readonly label?: string | undefined;
41
34
  }[] | undefined;
42
- phoneNumbers?: {
35
+ readonly phoneNumbers?: readonly {
43
36
  readonly value: string;
44
37
  readonly label?: string | undefined;
45
38
  }[] | undefined;
46
- addresses?: {
39
+ readonly fields?: readonly {
40
+ readonly value: string;
41
+ readonly label: string;
42
+ readonly category?: string | undefined;
43
+ }[] | undefined;
44
+ readonly addresses?: readonly {
47
45
  readonly value: {
48
46
  readonly street?: string | undefined;
49
47
  readonly extended?: string | undefined;
@@ -55,119 +53,122 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
55
53
  };
56
54
  readonly label?: string | undefined;
57
55
  }[] | undefined;
58
- urls?: {
56
+ readonly urls?: readonly {
59
57
  readonly value: string;
60
58
  readonly label?: string | undefined;
61
59
  }[] | undefined;
62
- birthday?: string | undefined;
63
- location?: readonly [number, number, (number | undefined)?] | undefined;
60
+ readonly birthday?: string | undefined;
61
+ } & {
62
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
64
63
  }> | undefined;
65
- identityDid?: string | undefined;
66
- identityKey?: string | undefined;
67
- email?: string | undefined;
68
- role?: "user" | "assistant" | "tool" | undefined;
64
+ readonly identityDid?: string | undefined;
65
+ readonly identityKey?: string | undefined;
66
+ readonly email?: string | undefined;
69
67
  };
70
- blocks: ({
71
- version: unknown;
72
- _tag: "anchor";
73
- pending?: boolean | undefined;
74
- objectId: string;
68
+ readonly blocks: readonly ({
69
+ readonly pending?: boolean | undefined;
70
+ readonly text: string;
71
+ readonly mimeType?: string | undefined;
72
+ readonly disposition?: string | undefined;
73
+ readonly _tag: "text";
75
74
  } | {
76
- name?: string | undefined;
77
- _tag: "file";
78
- url: string;
79
- pending?: boolean | undefined;
80
- mediaType?: string | undefined;
75
+ readonly pending?: boolean | undefined;
76
+ readonly _tag: "reasoning";
77
+ readonly reasoningText?: string | undefined;
78
+ readonly redactedText?: string | undefined;
79
+ readonly signature?: string | undefined;
81
80
  } | {
82
- source?: {
83
- type: "base64";
84
- data: string;
85
- mediaType: string;
86
- } | {
87
- type: "http";
88
- url: string;
89
- } | undefined;
90
- id?: string | undefined;
91
- _tag: "image";
92
- pending?: boolean | undefined;
81
+ readonly name: string;
82
+ readonly pending?: boolean | undefined;
83
+ readonly _tag: "toolCall";
84
+ readonly toolCallId: string;
85
+ readonly input: string;
86
+ readonly providerExecuted: boolean;
93
87
  } | {
94
- data: string;
95
- _tag: "json";
96
- pending?: boolean | undefined;
97
- disposition?: string | undefined;
88
+ readonly name: string;
89
+ readonly pending?: boolean | undefined;
90
+ readonly _tag: "toolResult";
91
+ readonly toolCallId: string;
92
+ readonly providerExecuted: boolean;
93
+ readonly result?: string | undefined;
94
+ readonly error?: string | undefined;
98
95
  } | {
99
- _tag: "proposal";
100
- text: string;
101
- pending?: boolean | undefined;
96
+ readonly pending?: boolean | undefined;
97
+ readonly mimeType?: string | undefined;
98
+ readonly _tag: "summary";
99
+ readonly message?: string | undefined;
100
+ readonly model?: string | undefined;
101
+ readonly usage?: {
102
+ readonly inputTokens?: number | undefined;
103
+ readonly outputTokens?: number | undefined;
104
+ readonly totalTokens?: number | undefined;
105
+ } | undefined;
106
+ readonly toolCalls?: number | undefined;
107
+ readonly errors?: number | undefined;
108
+ readonly duration?: number | undefined;
102
109
  } | {
103
- _tag: "reasoning";
104
- pending?: boolean | undefined;
105
- reasoningText?: string | undefined;
106
- redactedText?: string | undefined;
107
- signature?: string | undefined;
110
+ readonly source?: {
111
+ readonly type: "base64";
112
+ readonly mediaType: string;
113
+ readonly data: string;
114
+ } | {
115
+ readonly type: "http";
116
+ readonly url: string;
117
+ } | undefined;
118
+ readonly id?: string | undefined;
119
+ readonly pending?: boolean | undefined;
120
+ readonly _tag: "image";
108
121
  } | {
109
- reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>;
110
- _tag: "reference";
111
- pending?: boolean | undefined;
122
+ readonly name?: string | undefined;
123
+ readonly pending?: boolean | undefined;
124
+ readonly _tag: "file";
125
+ readonly mediaType?: string | undefined;
126
+ readonly url: string;
112
127
  } | {
113
- _tag: "select";
114
- pending?: boolean | undefined;
115
- options: readonly string[];
128
+ readonly pending?: boolean | undefined;
129
+ readonly _tag: "reference";
130
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
116
131
  } | {
117
- _tag: "status";
118
- pending?: boolean | undefined;
119
- statusText: string;
132
+ readonly pending?: boolean | undefined;
133
+ readonly text: string;
134
+ readonly _tag: "transcript";
135
+ readonly started: string;
120
136
  } | {
121
- _tag: "suggestion";
122
- text: string;
123
- pending?: boolean | undefined;
137
+ readonly pending?: boolean | undefined;
138
+ readonly _tag: "status";
139
+ readonly statusText: string;
124
140
  } | {
125
- model?: string | undefined;
126
- _tag: "summary";
127
- pending?: boolean | undefined;
128
- mimeType?: string | undefined;
129
- message?: string | undefined;
130
- usage?: {
131
- readonly inputTokens?: number | undefined;
132
- readonly outputTokens?: number | undefined;
133
- readonly totalTokens?: number | undefined;
134
- } | undefined;
135
- toolCalls?: number | undefined;
136
- errors?: number | undefined;
137
- duration?: number | undefined;
141
+ readonly pending?: boolean | undefined;
142
+ readonly text: string;
143
+ readonly _tag: "suggestion";
138
144
  } | {
139
- _tag: "text";
140
- text: string;
141
- pending?: boolean | undefined;
142
- disposition?: string | undefined;
143
- mimeType?: string | undefined;
145
+ readonly pending?: boolean | undefined;
146
+ readonly _tag: "select";
147
+ readonly options: string[];
144
148
  } | {
145
- _tag: "toolkit";
146
- pending?: boolean | undefined;
149
+ readonly version: unknown;
150
+ readonly pending?: boolean | undefined;
151
+ readonly _tag: "anchor";
152
+ readonly objectId: string;
147
153
  } | {
148
- name: string;
149
- input: string;
150
- _tag: "toolCall";
151
- pending?: boolean | undefined;
152
- toolCallId: string;
153
- providerExecuted: boolean;
154
+ readonly pending?: boolean | undefined;
155
+ readonly text: string;
156
+ readonly _tag: "proposal";
154
157
  } | {
155
- name: string;
156
- _tag: "toolResult";
157
- pending?: boolean | undefined;
158
- toolCallId: string;
159
- providerExecuted: boolean;
160
- result?: string | undefined;
161
- error?: string | undefined;
158
+ readonly pending?: boolean | undefined;
159
+ readonly _tag: "toolkit";
162
160
  } | {
163
- _tag: "transcript";
164
- text: string;
165
- pending?: boolean | undefined;
166
- started: string;
161
+ readonly pending?: boolean | undefined;
162
+ readonly disposition?: string | undefined;
163
+ readonly _tag: "json";
164
+ readonly data: string;
167
165
  })[];
166
+ readonly properties?: {
167
+ readonly [x: string]: any;
168
+ } | undefined;
168
169
  };
169
170
  }, {
170
- readonly entities?: readonly (import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {})[] | undefined;
171
- }>;
171
+ readonly entities?: readonly any[] | undefined;
172
+ }, import("@dxos/functions").FunctionServices>;
172
173
  export default _default;
173
174
  //# sourceMappingURL=entity-extraction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/functions/entity-extraction/entity-extraction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,wBAqEG"}
1
+ {"version":3,"file":"entity-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/functions/entity-extraction/entity-extraction.ts"],"names":[],"mappings":";;;;;;;yBAW2F,CAAC;yBACxE,CAAC;4BACgB,CAAC;8BAGxB,CAAA;iCACY,CAAC;sCACuB,CAAC;iCAC1C,CAAC;qCAEmB,CAAC;wCAIhB,CAAC;iCACI,CAAC;mCACwB,CAAC;kCAGnC,CAAC;oCAAsD,CAAC;;qCAGJ,CAAC;;iCAEnB,CAAA;mCAGhB,CAAC;8BAEf,CAAC;+BACM,CAAC;;kCAKd,CAAC;;mCACoB,CAAC;;kCAExB,CAAN;;qCAEkB,CAAC;;kCAEE,CAAC;;+BAEd,CAAP;;;qCAE2B,CAAC;;kCAEgB,CAAC;;uCAC0B,CAAC;yCAGtD,CAAA;yCAEF,CAAC;uCAAyD,CAAC;2CACjC,CAAA;oDACX,CAAC;wCAA0D,CAAC;;kCAEtC,CAAC;;6BAK7C,CAAR;;kCACsB,CAAC;;iCACqC,CAAC;;iCAChC,CAAC;;gCAGH,CAAC;gCAET,CAAC;0BACK,CAAC;;;4BAMhB,CAAC;;6BAGT,CAAF;gCAEQ,CAAC;;;4BACA,CAAC;;kCAC8B,CAAC;iCACrC,CAAD;8BAEW,CAAC;;;4BACgB,CAAC;;;;;;;4BAU/B,CAAC;;;;2BAKoD,CAAC;0BAE9C,CAAC;;4BACwB,CAAC;6BAAgD,CAAC;;4BAC/C,CAAC;0BACjB,CAAC;0BAA4C,CAAC;oCAIjE,CAAH;qCAAuD,CAAC;oCAI/C,CAAC;;8BACwB,CAAC;2BACb,CAAC;6BAES,CAAC;;2BAGH,CAAC;;;;;;;;uBAWb,CAAC;4BAEV,CAAC;;;yBAAsF,CAAC;4BAC5D,CAAC;;8BAGd,CAAA;;;4BAEb,CAAT;;;;4BAKO,CAAH;;;;;4BAID,CAAA;;;;4BAKE,CAAN;;;;4BAO4C,CAAA;;;;;4BAQnC,CAAC;;;;4BAA6H,CAAC;;;;4BAA2H,CAAC;;;4BAA2F,CAAC;gCAAmD,CAAC;;;;;;;;;;;AA/JtZ,wBAiFG"}
@@ -1,50 +1,48 @@
1
1
  export declare namespace EntityExtraction {
2
2
  const extract: import("@dxos/functions").FunctionDefinition<{
3
3
  readonly instructions?: string | undefined;
4
- readonly source: import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
5
- properties?: {
6
- [x: string]: any;
7
- } | undefined;
8
- id: string;
9
- parentMessage?: string | undefined;
10
- created: string;
11
- sender: {
12
- name?: string | undefined;
13
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
14
- fields?: {
15
- readonly value: string;
16
- readonly category?: string | undefined;
17
- readonly label: string;
18
- }[] | undefined;
19
- fullName?: string | undefined;
20
- preferredName?: string | undefined;
21
- nickname?: string | undefined;
22
- image?: string | undefined;
23
- organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
24
- id: string;
25
- description?: string | undefined;
26
- name?: string | undefined;
27
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
28
- image?: string | undefined;
29
- website?: string | undefined;
30
- location?: readonly [number, number, (number | undefined)?] | undefined;
4
+ readonly source: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
5
+ readonly id: string;
6
+ readonly parentMessage?: string | undefined;
7
+ readonly created: string;
8
+ readonly sender: {
9
+ readonly name?: string | undefined;
10
+ readonly role?: "user" | "assistant" | "tool" | undefined;
11
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
12
+ readonly image?: string | undefined;
13
+ readonly fullName?: string | undefined;
14
+ readonly preferredName?: string | undefined;
15
+ readonly nickname?: string | undefined;
16
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
17
+ readonly description?: string | undefined;
18
+ readonly name?: string | undefined;
19
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
20
+ readonly image?: string | undefined;
21
+ readonly website?: string | undefined;
22
+ } & {
23
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
31
24
  }> | undefined;
32
- jobTitle?: string | undefined;
33
- department?: string | undefined;
34
- notes?: string | undefined;
35
- emails?: {
25
+ readonly jobTitle?: string | undefined;
26
+ readonly department?: string | undefined;
27
+ readonly notes?: string | undefined;
28
+ readonly emails?: readonly {
36
29
  readonly value: string;
37
30
  readonly label?: string | undefined;
38
31
  }[] | undefined;
39
- identities?: {
32
+ readonly identities?: readonly {
40
33
  readonly value: string;
41
34
  readonly label?: string | undefined;
42
35
  }[] | undefined;
43
- phoneNumbers?: {
36
+ readonly phoneNumbers?: readonly {
44
37
  readonly value: string;
45
38
  readonly label?: string | undefined;
46
39
  }[] | undefined;
47
- addresses?: {
40
+ readonly fields?: readonly {
41
+ readonly value: string;
42
+ readonly label: string;
43
+ readonly category?: string | undefined;
44
+ }[] | undefined;
45
+ readonly addresses?: readonly {
48
46
  readonly value: {
49
47
  readonly street?: string | undefined;
50
48
  readonly extended?: string | undefined;
@@ -56,119 +54,122 @@ export declare namespace EntityExtraction {
56
54
  };
57
55
  readonly label?: string | undefined;
58
56
  }[] | undefined;
59
- urls?: {
57
+ readonly urls?: readonly {
60
58
  readonly value: string;
61
59
  readonly label?: string | undefined;
62
60
  }[] | undefined;
63
- birthday?: string | undefined;
64
- location?: readonly [number, number, (number | undefined)?] | undefined;
61
+ readonly birthday?: string | undefined;
62
+ } & {
63
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
65
64
  }> | undefined;
66
- identityDid?: string | undefined;
67
- identityKey?: string | undefined;
68
- email?: string | undefined;
69
- role?: "user" | "assistant" | "tool" | undefined;
65
+ readonly identityDid?: string | undefined;
66
+ readonly identityKey?: string | undefined;
67
+ readonly email?: string | undefined;
70
68
  };
71
- blocks: ({
72
- version: unknown;
73
- _tag: "anchor";
74
- pending?: boolean | undefined;
75
- objectId: string;
69
+ readonly blocks: readonly ({
70
+ readonly pending?: boolean | undefined;
71
+ readonly text: string;
72
+ readonly mimeType?: string | undefined;
73
+ readonly disposition?: string | undefined;
74
+ readonly _tag: "text";
76
75
  } | {
77
- name?: string | undefined;
78
- _tag: "file";
79
- url: string;
80
- pending?: boolean | undefined;
81
- mediaType?: string | undefined;
76
+ readonly pending?: boolean | undefined;
77
+ readonly _tag: "reasoning";
78
+ readonly reasoningText?: string | undefined;
79
+ readonly redactedText?: string | undefined;
80
+ readonly signature?: string | undefined;
82
81
  } | {
83
- source?: {
84
- type: "base64";
85
- data: string;
86
- mediaType: string;
87
- } | {
88
- type: "http";
89
- url: string;
90
- } | undefined;
91
- id?: string | undefined;
92
- _tag: "image";
93
- pending?: boolean | undefined;
82
+ readonly name: string;
83
+ readonly pending?: boolean | undefined;
84
+ readonly _tag: "toolCall";
85
+ readonly toolCallId: string;
86
+ readonly input: string;
87
+ readonly providerExecuted: boolean;
94
88
  } | {
95
- data: string;
96
- _tag: "json";
97
- pending?: boolean | undefined;
98
- disposition?: string | undefined;
89
+ readonly name: string;
90
+ readonly pending?: boolean | undefined;
91
+ readonly _tag: "toolResult";
92
+ readonly toolCallId: string;
93
+ readonly providerExecuted: boolean;
94
+ readonly result?: string | undefined;
95
+ readonly error?: string | undefined;
99
96
  } | {
100
- _tag: "proposal";
101
- text: string;
102
- pending?: boolean | undefined;
97
+ readonly pending?: boolean | undefined;
98
+ readonly mimeType?: string | undefined;
99
+ readonly _tag: "summary";
100
+ readonly message?: string | undefined;
101
+ readonly model?: string | undefined;
102
+ readonly usage?: {
103
+ readonly inputTokens?: number | undefined;
104
+ readonly outputTokens?: number | undefined;
105
+ readonly totalTokens?: number | undefined;
106
+ } | undefined;
107
+ readonly toolCalls?: number | undefined;
108
+ readonly errors?: number | undefined;
109
+ readonly duration?: number | undefined;
103
110
  } | {
104
- _tag: "reasoning";
105
- pending?: boolean | undefined;
106
- reasoningText?: string | undefined;
107
- redactedText?: string | undefined;
108
- signature?: string | undefined;
111
+ readonly source?: {
112
+ readonly type: "base64";
113
+ readonly mediaType: string;
114
+ readonly data: string;
115
+ } | {
116
+ readonly type: "http";
117
+ readonly url: string;
118
+ } | undefined;
119
+ readonly id?: string | undefined;
120
+ readonly pending?: boolean | undefined;
121
+ readonly _tag: "image";
109
122
  } | {
110
- reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>;
111
- _tag: "reference";
112
- pending?: boolean | undefined;
123
+ readonly name?: string | undefined;
124
+ readonly pending?: boolean | undefined;
125
+ readonly _tag: "file";
126
+ readonly mediaType?: string | undefined;
127
+ readonly url: string;
113
128
  } | {
114
- _tag: "select";
115
- pending?: boolean | undefined;
116
- options: readonly string[];
129
+ readonly pending?: boolean | undefined;
130
+ readonly _tag: "reference";
131
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
117
132
  } | {
118
- _tag: "status";
119
- pending?: boolean | undefined;
120
- statusText: string;
133
+ readonly pending?: boolean | undefined;
134
+ readonly text: string;
135
+ readonly _tag: "transcript";
136
+ readonly started: string;
121
137
  } | {
122
- _tag: "suggestion";
123
- text: string;
124
- pending?: boolean | undefined;
138
+ readonly pending?: boolean | undefined;
139
+ readonly _tag: "status";
140
+ readonly statusText: string;
125
141
  } | {
126
- model?: string | undefined;
127
- _tag: "summary";
128
- pending?: boolean | undefined;
129
- mimeType?: string | undefined;
130
- message?: string | undefined;
131
- usage?: {
132
- readonly inputTokens?: number | undefined;
133
- readonly outputTokens?: number | undefined;
134
- readonly totalTokens?: number | undefined;
135
- } | undefined;
136
- toolCalls?: number | undefined;
137
- errors?: number | undefined;
138
- duration?: number | undefined;
142
+ readonly pending?: boolean | undefined;
143
+ readonly text: string;
144
+ readonly _tag: "suggestion";
139
145
  } | {
140
- _tag: "text";
141
- text: string;
142
- pending?: boolean | undefined;
143
- disposition?: string | undefined;
144
- mimeType?: string | undefined;
146
+ readonly pending?: boolean | undefined;
147
+ readonly _tag: "select";
148
+ readonly options: string[];
145
149
  } | {
146
- _tag: "toolkit";
147
- pending?: boolean | undefined;
150
+ readonly version: unknown;
151
+ readonly pending?: boolean | undefined;
152
+ readonly _tag: "anchor";
153
+ readonly objectId: string;
148
154
  } | {
149
- name: string;
150
- input: string;
151
- _tag: "toolCall";
152
- pending?: boolean | undefined;
153
- toolCallId: string;
154
- providerExecuted: boolean;
155
+ readonly pending?: boolean | undefined;
156
+ readonly text: string;
157
+ readonly _tag: "proposal";
155
158
  } | {
156
- name: string;
157
- _tag: "toolResult";
158
- pending?: boolean | undefined;
159
- toolCallId: string;
160
- providerExecuted: boolean;
161
- result?: string | undefined;
162
- error?: string | undefined;
159
+ readonly pending?: boolean | undefined;
160
+ readonly _tag: "toolkit";
163
161
  } | {
164
- _tag: "transcript";
165
- text: string;
166
- pending?: boolean | undefined;
167
- started: string;
162
+ readonly pending?: boolean | undefined;
163
+ readonly disposition?: string | undefined;
164
+ readonly _tag: "json";
165
+ readonly data: string;
168
166
  })[];
167
+ readonly properties?: {
168
+ readonly [x: string]: any;
169
+ } | undefined;
169
170
  };
170
171
  }, {
171
- readonly entities?: readonly (import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {})[] | undefined;
172
- }>;
172
+ readonly entities?: readonly any[] | undefined;
173
+ }, import("@dxos/functions").FunctionServices>;
173
174
  }
174
175
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/entity-extraction/index.ts"],"names":[],"mappings":"AAMA,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAW,CAAC;CACjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/entity-extraction/index.ts"],"names":[],"mappings":"AAMA,yBAAiB,gBAAgB,CAAC;IACzB,MAAM,OAAO;;;;;;;6BAE8L,CAAC;6BAA2C,CAAC;gCAAqE,CAAC;kCAAsJ,CAAC;qCAAmD,CAAC;0CAAwD,CAAC;qCAAmD,CAAC;yCAAuD,CAAC;4CAAgK,CAAC;qCAAmD,CAAC;uCAAqD,CAAC;sCAAuG,CAAC;wCAAsD,CAAC;;yCAAyE,CAAC;;qCAAyH,CAAC;uCAAqD,CAAC;kCAAgD,CAAC;mCAAiD,CAAC;;sCAAmF,CAAC;;uCAAkF,CAAC;;sCAAmF,CAAC;;yCAAoF,CAAC;;sCAAmF,CAAC;;mCAA8E,CAAC;;;yCAA8H,CAAC;;sCAAiF,CAAC;;2CAAkF,CAAC;6CAA2D,CAAC;6CAA2D,CAAC;2CAAyD,CAAC;+CAA6D,CAAC;wDAAsE,CAAC;4CAA0D,CAAC;;sCAAuE,CAAC;;iCAA4E,CAAC;;sCAAmF,CAAC;;qCAAgF,CAAC;;qCAAiE,CAAC;;oCAAoH,CAAC;oCAAkD,CAAC;8BAA4C,CAAC;;;gCAAsF,CAAC;;iCAA+E,CAAC;oCAAkD,CAAC;;;gCAAuF,CAAC;;sCAAyF,CAAC;qCAAmD,CAAC;kCAAgD,CAAC;;;gCAAuF,CAAC;;;;;;;gCAA4O,CAAC;;;;+BAAoK,CAAC;8BAA4C,CAAC;;gCAAwD,CAAC;iCAAgD,CAAC;;gCAAgF,CAAC;8BAA4C,CAAC;8BAA4C,CAAC;wCAAoC,CAAC;yCAAuD,CAAC;wCAAsD,CAAC;;kCAAuE,CAAC;+BAA6C,CAAC;iCAA+C,CAAC;;+BAAuD,CAAC;;;;;;;;2BAAiP,CAAC;gCAA8C,CAAC;;;6BAAsF,CAAC;gCAA8C,CAAC;;kCAAgF,CAAC;;;gCAAsF,CAAC;;;;gCAAiK,CAAC;;;;;gCAA+J,CAAC;;;;gCAA+H,CAAC;;;;gCAA6H,CAAC;;;;;gCAAiK,CAAC;;;;gCAA6H,CAAC;;;;gCAA2H,CAAC;;;gCAA2F,CAAC;oCAAmD,CAAC;;;;;;;;;;kDAFj8M,CAAC;CACjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exa-search-1748337321991.d.ts","sourceRoot":"","sources":["../../../../../../src/functions/exa/data/exa-search-1748337321991.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA8HE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exa-search-1748337331526.d.ts","sourceRoot":"","sources":["../../../../../../src/functions/exa/data/exa-search-1748337331526.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA2IE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exa-search-1748337344119.d.ts","sourceRoot":"","sources":["../../../../../../src/functions/exa/data/exa-search-1748337344119.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAgIE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/functions/exa/data/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAM7C,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,GAAG,CAAC,EAAgC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  declare const _default: import("@dxos/functions").FunctionDefinition<{
2
2
  readonly query: string;
3
- }, unknown>;
3
+ }, unknown, import("@dxos/functions").FunctionServices>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=exa.d.ts.map