@dxos/assistant 0.8.4-main.5acf9ea → 0.8.4-main.5ea62a8
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.
- package/dist/lib/browser/chunk-6WRGDEMH.mjs +89 -0
- package/dist/lib/browser/chunk-6WRGDEMH.mjs.map +7 -0
- package/dist/lib/browser/chunk-N4O3C3T5.mjs +396 -0
- package/dist/lib/browser/chunk-N4O3C3T5.mjs.map +7 -0
- package/dist/lib/browser/extraction/index.mjs +268 -0
- package/dist/lib/browser/extraction/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +284 -1609
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/named-entity-recognition-O46UTCLR.mjs +13 -0
- package/dist/lib/browser/named-entity-recognition-O46UTCLR.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-3UU5V4FS.mjs +91 -0
- package/dist/lib/node-esm/chunk-3UU5V4FS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-QVJ7EAM2.mjs +398 -0
- package/dist/lib/node-esm/chunk-QVJ7EAM2.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +269 -0
- package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +283 -1609
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs +14 -0
- package/dist/lib/node-esm/named-entity-recognition-W4VMRCH6.mjs.map +7 -0
- package/dist/types/src/{context/binding.d.ts → conversation/context.d.ts} +45 -3
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +25 -21
- package/dist/types/src/conversation/conversation.d.ts.map +1 -1
- package/dist/types/src/conversation/index.d.ts +1 -0
- package/dist/types/src/conversation/index.d.ts.map +1 -1
- package/dist/types/src/diff.d.ts +15 -0
- package/dist/types/src/diff.d.ts.map +1 -0
- package/dist/types/src/diff.test.d.ts +2 -0
- package/dist/types/src/diff.test.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +41 -4
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +59 -27
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +244 -214
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/functions/services.d.ts +4 -3
- package/dist/types/src/functions/services.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/session/artifact-diff.d.ts +27 -0
- package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
- package/dist/types/src/session/error-handling.d.ts +4 -0
- package/dist/types/src/session/error-handling.d.ts.map +1 -0
- package/dist/types/src/session/format.d.ts +182 -0
- package/dist/types/src/session/format.d.ts.map +1 -0
- package/dist/types/src/session/format.test.d.ts +2 -0
- package/dist/types/src/session/format.test.d.ts.map +1 -0
- package/dist/types/src/session/index.d.ts +3 -0
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/observer.d.ts +22 -0
- package/dist/types/src/session/observer.d.ts.map +1 -0
- package/dist/types/src/session/session.d.ts +23 -236
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +14 -0
- package/dist/types/src/session/toolkit.d.ts.map +1 -0
- package/dist/types/src/session/version-pin.d.ts +2 -2
- package/dist/types/src/session/version-pin.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +1 -1
- package/dist/types/src/templates/system.d.ts +18 -0
- package/dist/types/src/templates/system.d.ts.map +1 -0
- package/dist/types/src/types.d.ts +3 -0
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +45 -29
- package/src/conversation/context.ts +154 -0
- package/src/conversation/conversation.ts +80 -53
- package/src/conversation/index.ts +1 -0
- package/src/diff.test.ts +43 -0
- package/src/diff.ts +77 -0
- package/src/errors.ts +5 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +1 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +7 -7
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +4 -3
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +2 -2
- package/src/extraction/quotes.test.ts +1 -1
- package/src/extraction/quotes.ts +1 -1
- package/src/functions/services.ts +37 -17
- package/src/index.ts +2 -3
- package/src/session/artifact-diff.ts +41 -0
- package/src/session/error-handling.ts +36 -0
- package/src/session/format.test.ts +60 -0
- package/src/session/format.ts +139 -0
- package/src/session/index.ts +3 -0
- package/src/session/observer.ts +58 -0
- package/src/session/session.test.ts +36 -38
- package/src/session/session.ts +114 -249
- package/src/session/toolkit.ts +42 -0
- package/src/session/version-pin.ts +4 -4
- package/src/summarization/summarization.test.ts +5 -7
- package/src/templates/format.tpl +59 -0
- package/src/templates/index.ts +1 -1
- package/src/templates/system.tpl +50 -0
- package/src/templates/system.ts +41 -0
- package/src/types.ts +10 -5
- package/src/typings.d.ts +5 -0
- package/dist/types/bin/chat.d.ts +0 -2
- package/dist/types/bin/chat.d.ts.map +0 -1
- package/dist/types/src/context/binder.d.ts +0 -34
- package/dist/types/src/context/binder.d.ts.map +0 -1
- package/dist/types/src/context/binding.d.ts.map +0 -1
- package/dist/types/src/context/index.d.ts +0 -3
- package/dist/types/src/context/index.d.ts.map +0 -1
- package/dist/types/src/research/exa.d.ts +0 -12
- package/dist/types/src/research/exa.d.ts.map +0 -1
- package/dist/types/src/research/graph.d.ts +0 -51
- package/dist/types/src/research/graph.d.ts.map +0 -1
- package/dist/types/src/research/graph.test.d.ts +0 -2
- package/dist/types/src/research/graph.test.d.ts.map +0 -1
- package/dist/types/src/research/index.d.ts +0 -4
- package/dist/types/src/research/index.d.ts.map +0 -1
- package/dist/types/src/research/research.d.ts +0 -10
- package/dist/types/src/research/research.d.ts.map +0 -1
- package/dist/types/src/research/research.test.d.ts +0 -2
- package/dist/types/src/research/research.test.d.ts.map +0 -1
- package/dist/types/src/templates/prompt.d.ts +0 -30
- package/dist/types/src/templates/prompt.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
- package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
- package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
- package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/testing/index.d.ts +0 -3
- package/dist/types/src/testing/index.d.ts.map +0 -1
- package/src/context/binder.ts +0 -103
- package/src/context/binding.ts +0 -32
- package/src/context/index.ts +0 -6
- package/src/research/exa.ts +0 -97
- package/src/research/graph.test.ts +0 -64
- package/src/research/graph.ts +0 -369
- package/src/research/index.ts +0 -7
- package/src/research/instructions-research.tpl +0 -98
- package/src/research/research.test.ts +0 -190
- package/src/research/research.ts +0 -87
- package/src/templates/assistant.tpl +0 -111
- package/src/templates/prompt.ts +0 -45
- package/src/testing/exa-search-1748337321991.ts +0 -131
- package/src/testing/exa-search-1748337331526.ts +0 -144
- package/src/testing/exa-search-1748337344119.ts +0 -133
- package/src/testing/index.ts +0 -11
- package/src/typedefs.d.ts +0 -8
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export declare const extractionNerFn: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
3
|
+
readonly options?: {
|
|
4
|
+
readonly timeout?: number | undefined;
|
|
5
|
+
readonly fallbackToRaw?: boolean | undefined;
|
|
6
|
+
} | undefined;
|
|
2
7
|
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
3
8
|
id: string;
|
|
9
|
+
parentMessage?: string | undefined;
|
|
4
10
|
created: string;
|
|
5
11
|
sender: {
|
|
6
12
|
name?: string | undefined;
|
|
7
|
-
email?: string | undefined;
|
|
8
13
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
9
14
|
fields?: {
|
|
10
15
|
readonly value: string;
|
|
@@ -58,6 +63,7 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
58
63
|
}> | undefined;
|
|
59
64
|
identityDid?: string | undefined;
|
|
60
65
|
identityKey?: string | undefined;
|
|
66
|
+
email?: string | undefined;
|
|
61
67
|
role?: "user" | "assistant" | undefined;
|
|
62
68
|
};
|
|
63
69
|
blocks: ({
|
|
@@ -68,8 +74,8 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
68
74
|
} | {
|
|
69
75
|
name?: string | undefined;
|
|
70
76
|
_tag: "file";
|
|
71
|
-
pending?: boolean | undefined;
|
|
72
77
|
url: string;
|
|
78
|
+
pending?: boolean | undefined;
|
|
73
79
|
mediaType?: string | undefined;
|
|
74
80
|
} | {
|
|
75
81
|
id?: string | undefined;
|
|
@@ -94,13 +100,13 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
94
100
|
pending?: boolean | undefined;
|
|
95
101
|
} | {
|
|
96
102
|
_tag: "reasoning";
|
|
97
|
-
pending?: boolean | undefined;
|
|
98
103
|
reasoningText?: string | undefined;
|
|
99
|
-
redactedText?: string | undefined;
|
|
100
104
|
signature?: string | undefined;
|
|
105
|
+
redactedText?: string | undefined;
|
|
106
|
+
pending?: boolean | undefined;
|
|
101
107
|
} | {
|
|
102
|
-
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
103
108
|
_tag: "reference";
|
|
109
|
+
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
104
110
|
pending?: boolean | undefined;
|
|
105
111
|
} | {
|
|
106
112
|
_tag: "select";
|
|
@@ -112,29 +118,44 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
112
118
|
statusText: string;
|
|
113
119
|
} | {
|
|
114
120
|
text: string;
|
|
115
|
-
_tag: "
|
|
121
|
+
_tag: "suggestion";
|
|
116
122
|
pending?: boolean | undefined;
|
|
123
|
+
} | {
|
|
124
|
+
_tag: "summary";
|
|
125
|
+
model?: string | undefined;
|
|
126
|
+
usage?: {
|
|
127
|
+
readonly inputTokens?: number | undefined;
|
|
128
|
+
readonly outputTokens?: number | undefined;
|
|
129
|
+
readonly totalTokens?: number | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
pending?: boolean | undefined;
|
|
132
|
+
mimeType?: string | undefined;
|
|
133
|
+
message?: string | undefined;
|
|
134
|
+
toolCalls?: number | undefined;
|
|
135
|
+
errors?: number | undefined;
|
|
136
|
+
duration?: number | undefined;
|
|
117
137
|
} | {
|
|
118
138
|
text: string;
|
|
119
139
|
_tag: "text";
|
|
120
140
|
pending?: boolean | undefined;
|
|
121
141
|
disposition?: string | undefined;
|
|
122
142
|
mimeType?: string | undefined;
|
|
143
|
+
} | {
|
|
144
|
+
_tag: "toolkit";
|
|
145
|
+
pending?: boolean | undefined;
|
|
123
146
|
} | {
|
|
124
147
|
name: string;
|
|
125
|
-
input: unknown;
|
|
126
148
|
_tag: "toolCall";
|
|
127
149
|
pending?: boolean | undefined;
|
|
128
150
|
toolCallId: string;
|
|
129
|
-
|
|
130
|
-
_tag: "toolList";
|
|
131
|
-
pending?: boolean | undefined;
|
|
151
|
+
input: string;
|
|
132
152
|
} | {
|
|
133
153
|
name: string;
|
|
134
154
|
_tag: "toolResult";
|
|
155
|
+
error?: string | undefined;
|
|
135
156
|
pending?: boolean | undefined;
|
|
136
157
|
toolCallId: string;
|
|
137
|
-
result
|
|
158
|
+
result?: string | undefined;
|
|
138
159
|
} | {
|
|
139
160
|
text: string;
|
|
140
161
|
_tag: "transcript";
|
|
@@ -145,18 +166,13 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
145
166
|
[x: string]: any;
|
|
146
167
|
} | undefined;
|
|
147
168
|
};
|
|
148
|
-
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
149
|
-
readonly options?: {
|
|
150
|
-
readonly timeout?: number | undefined;
|
|
151
|
-
readonly fallbackToRaw?: boolean | undefined;
|
|
152
|
-
} | undefined;
|
|
153
169
|
}, {
|
|
154
170
|
readonly message: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
155
171
|
id: string;
|
|
172
|
+
parentMessage?: string | undefined;
|
|
156
173
|
created: string;
|
|
157
174
|
sender: {
|
|
158
175
|
name?: string | undefined;
|
|
159
|
-
email?: string | undefined;
|
|
160
176
|
contact?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
161
177
|
fields?: {
|
|
162
178
|
readonly value: string;
|
|
@@ -210,6 +226,7 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
210
226
|
}> | undefined;
|
|
211
227
|
identityDid?: string | undefined;
|
|
212
228
|
identityKey?: string | undefined;
|
|
229
|
+
email?: string | undefined;
|
|
213
230
|
role?: "user" | "assistant" | undefined;
|
|
214
231
|
};
|
|
215
232
|
blocks: ({
|
|
@@ -220,8 +237,8 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
220
237
|
} | {
|
|
221
238
|
name?: string | undefined;
|
|
222
239
|
_tag: "file";
|
|
223
|
-
pending?: boolean | undefined;
|
|
224
240
|
url: string;
|
|
241
|
+
pending?: boolean | undefined;
|
|
225
242
|
mediaType?: string | undefined;
|
|
226
243
|
} | {
|
|
227
244
|
id?: string | undefined;
|
|
@@ -246,13 +263,13 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
246
263
|
pending?: boolean | undefined;
|
|
247
264
|
} | {
|
|
248
265
|
_tag: "reasoning";
|
|
249
|
-
pending?: boolean | undefined;
|
|
250
266
|
reasoningText?: string | undefined;
|
|
251
|
-
redactedText?: string | undefined;
|
|
252
267
|
signature?: string | undefined;
|
|
268
|
+
redactedText?: string | undefined;
|
|
269
|
+
pending?: boolean | undefined;
|
|
253
270
|
} | {
|
|
254
|
-
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
255
271
|
_tag: "reference";
|
|
272
|
+
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
256
273
|
pending?: boolean | undefined;
|
|
257
274
|
} | {
|
|
258
275
|
_tag: "select";
|
|
@@ -264,29 +281,44 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
264
281
|
statusText: string;
|
|
265
282
|
} | {
|
|
266
283
|
text: string;
|
|
267
|
-
_tag: "
|
|
284
|
+
_tag: "suggestion";
|
|
268
285
|
pending?: boolean | undefined;
|
|
286
|
+
} | {
|
|
287
|
+
_tag: "summary";
|
|
288
|
+
model?: string | undefined;
|
|
289
|
+
usage?: {
|
|
290
|
+
readonly inputTokens?: number | undefined;
|
|
291
|
+
readonly outputTokens?: number | undefined;
|
|
292
|
+
readonly totalTokens?: number | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
pending?: boolean | undefined;
|
|
295
|
+
mimeType?: string | undefined;
|
|
296
|
+
message?: string | undefined;
|
|
297
|
+
toolCalls?: number | undefined;
|
|
298
|
+
errors?: number | undefined;
|
|
299
|
+
duration?: number | undefined;
|
|
269
300
|
} | {
|
|
270
301
|
text: string;
|
|
271
302
|
_tag: "text";
|
|
272
303
|
pending?: boolean | undefined;
|
|
273
304
|
disposition?: string | undefined;
|
|
274
305
|
mimeType?: string | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
_tag: "toolkit";
|
|
308
|
+
pending?: boolean | undefined;
|
|
275
309
|
} | {
|
|
276
310
|
name: string;
|
|
277
|
-
input: unknown;
|
|
278
311
|
_tag: "toolCall";
|
|
279
312
|
pending?: boolean | undefined;
|
|
280
313
|
toolCallId: string;
|
|
281
|
-
|
|
282
|
-
_tag: "toolList";
|
|
283
|
-
pending?: boolean | undefined;
|
|
314
|
+
input: string;
|
|
284
315
|
} | {
|
|
285
316
|
name: string;
|
|
286
317
|
_tag: "toolResult";
|
|
318
|
+
error?: string | undefined;
|
|
287
319
|
pending?: boolean | undefined;
|
|
288
320
|
toolCallId: string;
|
|
289
|
-
result
|
|
321
|
+
result?: string | undefined;
|
|
290
322
|
} | {
|
|
291
323
|
text: string;
|
|
292
324
|
_tag: "transcript";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsC1B,CAAC"}
|