@dxos/assistant 0.8.4-main.72ec0f3 → 0.8.4-main.7ace549
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/extraction/index.mjs +3 -3
- package/dist/lib/browser/extraction/index.mjs.map +3 -3
- package/dist/lib/browser/index.mjs +6 -7
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/extraction/index.mjs +3 -3
- package/dist/lib/node-esm/extraction/index.mjs.map +3 -3
- package/dist/lib/node-esm/index.mjs +6 -7
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/conversation/context.d.ts +36 -42
- package/dist/types/src/conversation/context.d.ts.map +1 -1
- package/dist/types/src/execution-graph.d.ts +2 -2
- package/dist/types/src/execution-graph.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +24 -23
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +100 -110
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/session/artifact-diff.d.ts +1 -1
- package/dist/types/src/session/artifact-diff.d.ts.map +1 -1
- 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/types/artifact.d.ts +2 -3
- package/dist/types/src/types/artifact.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +22 -22
- package/src/conversation/context.ts +7 -8
- package/src/execution-graph.test.ts +1 -1
- package/src/execution-graph.ts +2 -2
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +3 -3
- package/src/extraction/extraction.ts +2 -2
- package/src/extraction/quotes.ts +1 -1
- package/src/session/artifact-diff.ts +1 -1
- package/src/session/format.ts +1 -1
- package/src/session/version-pin.ts +4 -3
- package/src/types/artifact.ts +3 -4
|
@@ -1,72 +1,70 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import {
|
|
2
|
+
import { Type } from '@dxos/echo';
|
|
3
3
|
import { type FunctionDefinition } from '@dxos/functions';
|
|
4
4
|
import { type FunctionExecutor } from '@dxos/functions-runtime';
|
|
5
5
|
export declare const ExtractionInput: Schema.Struct<{
|
|
6
|
-
message:
|
|
6
|
+
message: Type.obj<Schema.Struct<{
|
|
7
7
|
id: import("@dxos/keys").ObjectIdClass;
|
|
8
8
|
parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
|
|
9
9
|
created: Schema.SchemaClass<string, string, never>;
|
|
10
10
|
sender: Schema.mutable<Schema.Struct<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
12
|
+
contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
13
|
+
image?: string | undefined;
|
|
14
|
+
fullName?: string | undefined;
|
|
15
|
+
preferredName?: string | undefined;
|
|
16
|
+
nickname?: string | undefined;
|
|
17
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
17
18
|
description?: string | undefined;
|
|
18
|
-
id: string;
|
|
19
19
|
name?: string | undefined;
|
|
20
20
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
21
21
|
image?: string | undefined;
|
|
22
22
|
website?: string | undefined;
|
|
23
23
|
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
24
|
-
}
|
|
25
|
-
jobTitle
|
|
26
|
-
department
|
|
27
|
-
notes
|
|
28
|
-
emails
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
identities
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
phoneNumbers
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
label
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}>>>>>;
|
|
24
|
+
}> | undefined;
|
|
25
|
+
jobTitle?: string | undefined;
|
|
26
|
+
department?: string | undefined;
|
|
27
|
+
notes?: string | undefined;
|
|
28
|
+
emails?: {
|
|
29
|
+
readonly value: string;
|
|
30
|
+
readonly label?: string | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
identities?: {
|
|
33
|
+
readonly value: string;
|
|
34
|
+
readonly label?: string | undefined;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
phoneNumbers?: {
|
|
37
|
+
readonly value: string;
|
|
38
|
+
readonly label?: string | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
fields?: {
|
|
41
|
+
readonly value: string;
|
|
42
|
+
readonly label: string;
|
|
43
|
+
readonly category?: string | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
addresses?: {
|
|
46
|
+
readonly value: {
|
|
47
|
+
readonly street?: string | undefined;
|
|
48
|
+
readonly extended?: string | undefined;
|
|
49
|
+
readonly locality?: string | undefined;
|
|
50
|
+
readonly region?: string | undefined;
|
|
51
|
+
readonly postalCode?: string | undefined;
|
|
52
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
53
|
+
readonly country?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
readonly label?: string | undefined;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
urls?: {
|
|
58
|
+
readonly value: string;
|
|
59
|
+
readonly label?: string | undefined;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
birthday?: string | undefined;
|
|
62
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
63
|
+
}>>;
|
|
65
64
|
identityDid: Schema.optional<typeof Schema.String>;
|
|
66
65
|
identityKey: Schema.optional<typeof Schema.String>;
|
|
67
66
|
email: Schema.optional<typeof Schema.String>;
|
|
68
67
|
name: Schema.optional<typeof Schema.String>;
|
|
69
|
-
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
70
68
|
}>>;
|
|
71
69
|
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
72
70
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
@@ -102,10 +100,7 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
102
100
|
signature: Schema.optional<typeof Schema.String>;
|
|
103
101
|
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
104
102
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
105
|
-
reference: import("@dxos/echo/
|
|
106
|
-
[x: string]: any;
|
|
107
|
-
id: string;
|
|
108
|
-
}, never>>;
|
|
103
|
+
reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
|
|
109
104
|
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
110
105
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
111
106
|
options: Schema.Array$<typeof Schema.String>;
|
|
@@ -155,7 +150,7 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
155
150
|
}>>]>>>;
|
|
156
151
|
properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
157
152
|
}>>;
|
|
158
|
-
objects: Schema.optional<Schema.Array$<Schema.Schema<Expando,
|
|
153
|
+
objects: Schema.optional<Schema.Array$<Type.obj<Schema.Schema<import("@dxos/echo/internal").Expando, import("@dxos/echo/internal").ExpandoEncoded, never>>>>;
|
|
159
154
|
options: Schema.optional<Schema.Struct<{
|
|
160
155
|
timeout: Schema.optional<typeof Schema.Number>;
|
|
161
156
|
fallbackToRaw: Schema.optional<typeof Schema.Boolean>;
|
|
@@ -164,70 +159,68 @@ export declare const ExtractionInput: Schema.Struct<{
|
|
|
164
159
|
export interface ExtractionInput extends Schema.Schema.Type<typeof ExtractionInput> {
|
|
165
160
|
}
|
|
166
161
|
export declare const ExtractionOutput: Schema.Struct<{
|
|
167
|
-
message:
|
|
162
|
+
message: Type.obj<Schema.Struct<{
|
|
168
163
|
id: import("@dxos/keys").ObjectIdClass;
|
|
169
164
|
parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
|
|
170
165
|
created: Schema.SchemaClass<string, string, never>;
|
|
171
166
|
sender: Schema.mutable<Schema.Struct<{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
167
|
+
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
168
|
+
contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
169
|
+
image?: string | undefined;
|
|
170
|
+
fullName?: string | undefined;
|
|
171
|
+
preferredName?: string | undefined;
|
|
172
|
+
nickname?: string | undefined;
|
|
173
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
178
174
|
description?: string | undefined;
|
|
179
|
-
id: string;
|
|
180
175
|
name?: string | undefined;
|
|
181
176
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
182
177
|
image?: string | undefined;
|
|
183
178
|
website?: string | undefined;
|
|
184
179
|
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
185
|
-
}
|
|
186
|
-
jobTitle
|
|
187
|
-
department
|
|
188
|
-
notes
|
|
189
|
-
emails
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
identities
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
phoneNumbers
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
label
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}>>>>>;
|
|
180
|
+
}> | undefined;
|
|
181
|
+
jobTitle?: string | undefined;
|
|
182
|
+
department?: string | undefined;
|
|
183
|
+
notes?: string | undefined;
|
|
184
|
+
emails?: {
|
|
185
|
+
readonly value: string;
|
|
186
|
+
readonly label?: string | undefined;
|
|
187
|
+
}[] | undefined;
|
|
188
|
+
identities?: {
|
|
189
|
+
readonly value: string;
|
|
190
|
+
readonly label?: string | undefined;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
phoneNumbers?: {
|
|
193
|
+
readonly value: string;
|
|
194
|
+
readonly label?: string | undefined;
|
|
195
|
+
}[] | undefined;
|
|
196
|
+
fields?: {
|
|
197
|
+
readonly value: string;
|
|
198
|
+
readonly label: string;
|
|
199
|
+
readonly category?: string | undefined;
|
|
200
|
+
}[] | undefined;
|
|
201
|
+
addresses?: {
|
|
202
|
+
readonly value: {
|
|
203
|
+
readonly street?: string | undefined;
|
|
204
|
+
readonly extended?: string | undefined;
|
|
205
|
+
readonly locality?: string | undefined;
|
|
206
|
+
readonly region?: string | undefined;
|
|
207
|
+
readonly postalCode?: string | undefined;
|
|
208
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
209
|
+
readonly country?: string | undefined;
|
|
210
|
+
};
|
|
211
|
+
readonly label?: string | undefined;
|
|
212
|
+
}[] | undefined;
|
|
213
|
+
urls?: {
|
|
214
|
+
readonly value: string;
|
|
215
|
+
readonly label?: string | undefined;
|
|
216
|
+
}[] | undefined;
|
|
217
|
+
birthday?: string | undefined;
|
|
218
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
219
|
+
}>>;
|
|
226
220
|
identityDid: Schema.optional<typeof Schema.String>;
|
|
227
221
|
identityKey: Schema.optional<typeof Schema.String>;
|
|
228
222
|
email: Schema.optional<typeof Schema.String>;
|
|
229
223
|
name: Schema.optional<typeof Schema.String>;
|
|
230
|
-
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
231
224
|
}>>;
|
|
232
225
|
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
233
226
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
@@ -263,10 +256,7 @@ export declare const ExtractionOutput: Schema.Struct<{
|
|
|
263
256
|
signature: Schema.optional<typeof Schema.String>;
|
|
264
257
|
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
265
258
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
266
|
-
reference: import("@dxos/echo/
|
|
267
|
-
[x: string]: any;
|
|
268
|
-
id: string;
|
|
269
|
-
}, never>>;
|
|
259
|
+
reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
|
|
270
260
|
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
271
261
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
272
262
|
options: Schema.Array$<typeof Schema.String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../../../src/extraction/extraction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../../../src/extraction/extraction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIhE,eAAO,MAAM,eAAe;;;;;;;;qBAUuC,CAAC;wBAE9C,CAAC;6BACD,CAAC;wBAGpB,CAAC;4BAA8C,CAAC;+BAIZ,CAAC;wBACzB,CAAC;0BAIT,CAAC;yBAKa,CAAC;2BACf,CAAC;4BACH,CAAD;;wBAM4C,CAAC;0BAGhD,CAAA;qBAAuC,CAAC;sBAGzC,CADC;;kCACc,CAAC;;0BAAyE,CAAC;;kCAErD,CAAC;;4BACU,CAAC;;kCACtC,CAAC;;sBACwD,CAAC;;;qCAIxB,CAAC;;yBAEzB,CAAC;;uCAIZ,CAAC;yCAI2B,CAAC;yCAA2D,CAAC;uCAAyD,CAAC;2CAA6D,CAAC;oDAAsE,CAAC;wCAA0D,CAAC;;kCAAuE,CAAC;;oBAAmE,CAAC;;kCAA0E,CAAC;;wBAAuE,CAAC;wBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAtDrqB,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC;CAAG;AAEtF,eAAO,MAAM,gBAAgB;;;;;;;;qBAFsC,CAAC;wBAE9C,CAAC;6BACD,CAAC;wBAGpB,CAAC;4BAA8C,CAAC;+BAIZ,CAAC;wBACzB,CAAC;0BAIT,CAAC;yBAKa,CAAC;2BACf,CAAC;4BACH,CAAD;;wBAM4C,CAAC;0BAGhD,CAAA;qBAAuC,CAAC;sBAGzC,CADC;;kCACc,CAAC;;0BAAyE,CAAC;;kCAErD,CAAC;;4BACU,CAAC;;kCACtC,CAAC;;sBACwD,CAAC;;;qCAIxB,CAAC;;yBAEzB,CAAC;;uCAIZ,CAAC;yCAI2B,CAAC;yCAA2D,CAAC;uCAAyD,CAAC;2CAA6D,CAAC;oDAAsE,CAAC;wCAA0D,CAAC;;kCAAuE,CAAC;;oBAAmE,CAAC;;kCAA0E,CAAC;;wBAAuE,CAAC;wBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAhDrqB,CAAC;AACH,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAExF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;IAChE,QAAQ,EAAE,gBAAgB,CAAC;IAE3B,OAAO,CAAC,EAAE;QACR;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;AAEvF;;GAEG;AAEH,eAAO,MAAM,wBAAwB,GAAU,QAAQ,8BAA8B,KAAG,OAAO,CAAC,gBAAgB,CAkB/G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../../../src/extraction/quotes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../../../src/extraction/quotes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAKlD,eAAO,MAAM,gBAAgB;;;;;EAe3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E,eAAO,MAAM,UAAU,GAAU,QAAQ,MAAM,EAAE,EAAE,IAAI,YAAY,KAAG,OAAO,CAAC,gBAAgB,CAS7F,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,QAAQ,gBAAgB,WAYtE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Context from 'effect/Context';
|
|
2
|
-
import { type ObjectId } from '@dxos/echo/internal';
|
|
3
2
|
import { type ObjectVersion } from '@dxos/echo-db';
|
|
3
|
+
import { type ObjectId } from '@dxos/keys';
|
|
4
4
|
declare const ArtifactDiffResolver_base: Context.TagClass<ArtifactDiffResolver, "@dxos/assistant/ArtifactDiffResolver", ArtifactDiffResolver.Service>;
|
|
5
5
|
/**
|
|
6
6
|
* Resolves artifact ids to their versions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-diff.d.ts","sourceRoot":"","sources":["../../../../src/session/artifact-diff.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"artifact-diff.d.ts","sourceRoot":"","sources":["../../../../src/session/artifact-diff.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;;AAE3C;;;;;;;GAOG;AAEH,qBAAa,oBAAqB,SAAQ,yBAGvC;CAAG;AAEN,yBAAiB,oBAAoB,CAAC;IACpC,KAAY,OAAO,GAAG;QACpB,OAAO,EAAE,CACP,SAAS,EAAE;YACT,EAAE,EAAE,QAAQ,CAAC;YACb,WAAW,EAAE,aAAa,CAAC;SAC5B,EAAE,KACA,OAAO,CACV,GAAG,CACD,QAAQ,EACR;YACE,OAAO,EAAE,aAAa,CAAC;YACvB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CACF,CACF,CAAC;KACH,CAAC;CACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Obj } from '@dxos/echo';
|
|
3
3
|
import { type ObjectVersion } from '@dxos/echo-db';
|
|
4
4
|
import { type ContentBlock } from '@dxos/types';
|
|
5
5
|
declare const VersionPinSchema: Schema.Struct<{
|
|
@@ -14,7 +14,7 @@ export interface VersionPin extends Schema.Schema.Type<typeof VersionPinSchema>
|
|
|
14
14
|
}
|
|
15
15
|
export declare const VersionPin: typeof VersionPinSchema & {
|
|
16
16
|
DISPOSITION: 'version-pin';
|
|
17
|
-
fromObject: (object:
|
|
17
|
+
fromObject: (object: Obj.Any) => VersionPin;
|
|
18
18
|
createBlock: (pin: VersionPin) => ContentBlock.Any;
|
|
19
19
|
};
|
|
20
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-pin.d.ts","sourceRoot":"","sources":["../../../../src/session/version-pin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"version-pin.d.ts","sourceRoot":"","sources":["../../../../src/session/version-pin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,aAAa,EAAc,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAKhD,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,GAAG,CAAC,GAAG,KAAK,UAAU,CAAC;IAC5C,WAAW,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,YAAY,CAAC,GAAG,CAAC;CAiBpD,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type * as Effect from 'effect/Effect';
|
|
2
2
|
import * as Schema from 'effect/Schema';
|
|
3
3
|
import { type ObjectNotFoundError, type Type } from '@dxos/echo';
|
|
4
|
-
import { type ObjectId } from '@dxos/echo/internal';
|
|
5
4
|
import { DatabaseService } from '@dxos/echo-db';
|
|
6
|
-
import { DXN, type SpaceId } from '@dxos/keys';
|
|
5
|
+
import { DXN, type ObjectId, type SpaceId } from '@dxos/keys';
|
|
7
6
|
/**
|
|
8
7
|
* @deprecated
|
|
9
8
|
*/
|
|
@@ -14,7 +13,7 @@ export declare const createArtifactElement: (id: ObjectId) => string;
|
|
|
14
13
|
*/
|
|
15
14
|
export declare const ArtifactId: Schema.Schema<string> & {
|
|
16
15
|
toDXN: (reference: ArtifactId, owningSpaceId?: SpaceId) => DXN;
|
|
17
|
-
resolve: <S extends Type.
|
|
16
|
+
resolve: <S extends Type.Entity.Any>(schema: S, ref: ArtifactId) => Effect.Effect<Schema.Schema.Type<S>, ObjectNotFoundError, DatabaseService>;
|
|
18
17
|
};
|
|
19
18
|
export type ArtifactId = Schema.Schema.Type<typeof ArtifactId>;
|
|
20
19
|
//# sourceMappingURL=artifact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../../../src/types/artifact.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../../../src/types/artifact.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,GAAG,EAAmB,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAG/E;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,IAAI,QAAQ,WAA4B,CAAC;AAE/E;;;GAGG;AAEH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG;IAC/C,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,GAAG,CAAC;IAC/D,OAAO,EAAE,CAAC,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,GAAG,EACjC,MAAM,EAAE,CAAC,EACT,GAAG,EAAE,UAAU,KACZ,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,eAAe,CAAC,CAAC;CAwCjF,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC"}
|