@elizaos/shared 2.0.0-alpha.383 → 2.0.0-alpha.385
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/contracts/index.d.ts +1 -0
- package/contracts/index.d.ts.map +1 -1
- package/contracts/index.js +1 -0
- package/contracts/index.js.map +1 -1
- package/contracts/scratchpad.d.ts +136 -0
- package/contracts/scratchpad.d.ts.map +1 -0
- package/contracts/scratchpad.js +91 -0
- package/contracts/scratchpad.js.map +1 -0
- package/index.d.ts +13 -13
- package/index.d.ts.map +1 -1
- package/index.js +19 -19
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/spoken-text.js +1 -1
- package/spoken-text.js.map +1 -1
package/contracts/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./inbox.js";
|
|
|
8
8
|
export * from "./lifeops.js";
|
|
9
9
|
export * from "./onboarding.js";
|
|
10
10
|
export * from "./permissions.js";
|
|
11
|
+
export * from "./scratchpad.js";
|
|
11
12
|
export * from "./service-routing.js";
|
|
12
13
|
export * from "./verification.js";
|
|
13
14
|
export * from "./wallet.js";
|
package/contracts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
|
package/contracts/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./inbox.js";
|
|
|
8
8
|
export * from "./lifeops.js";
|
|
9
9
|
export * from "./onboarding.js";
|
|
10
10
|
export * from "./permissions.js";
|
|
11
|
+
export * from "./scratchpad.js";
|
|
11
12
|
export * from "./service-routing.js";
|
|
12
13
|
export * from "./verification.js";
|
|
13
14
|
export * from "./wallet.js";
|
package/contracts/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SCRATCHPAD_MAX_TOPICS = 10;
|
|
3
|
+
export declare const SCRATCHPAD_TOPIC_TOKEN_LIMIT = 8000;
|
|
4
|
+
export declare const SCRATCHPAD_APPROX_CHARS_PER_TOKEN = 4;
|
|
5
|
+
export declare const SCRATCHPAD_TOPIC_TITLE_MAX_LENGTH = 120;
|
|
6
|
+
export declare const SCRATCHPAD_TOPIC_SUMMARY_MAX_LENGTH = 240;
|
|
7
|
+
export declare const SCRATCHPAD_SEARCH_QUERY_MAX_LENGTH = 500;
|
|
8
|
+
export declare function estimateScratchpadTokenCount(text: string): number;
|
|
9
|
+
export declare const scratchpadTopicTitleSchema: z.ZodString;
|
|
10
|
+
export declare const scratchpadTopicTextSchema: z.ZodString;
|
|
11
|
+
export declare const scratchpadTopicSummarySchema: z.ZodString;
|
|
12
|
+
export declare const scratchpadTopicDtoSchema: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
text: z.ZodString;
|
|
16
|
+
tokenCount: z.ZodNumber;
|
|
17
|
+
summary: z.ZodString;
|
|
18
|
+
createdAt: z.ZodNumber;
|
|
19
|
+
updatedAt: z.ZodNumber;
|
|
20
|
+
fragmentCount: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const scratchpadCreateTopicRequestSchema: z.ZodObject<{
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
text: z.ZodString;
|
|
25
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const scratchpadReplaceTopicRequestSchema: z.ZodObject<{
|
|
28
|
+
title: z.ZodString;
|
|
29
|
+
text: z.ZodString;
|
|
30
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const scratchpadSearchQuerySchema: z.ZodObject<{
|
|
33
|
+
q: z.ZodString;
|
|
34
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const scratchpadTopicMatchDtoSchema: z.ZodObject<{
|
|
37
|
+
fragmentId: z.ZodString;
|
|
38
|
+
text: z.ZodString;
|
|
39
|
+
score: z.ZodNumber;
|
|
40
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const scratchpadTopicSearchResultDtoSchema: z.ZodObject<{
|
|
43
|
+
topic: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
title: z.ZodString;
|
|
46
|
+
text: z.ZodString;
|
|
47
|
+
tokenCount: z.ZodNumber;
|
|
48
|
+
summary: z.ZodString;
|
|
49
|
+
createdAt: z.ZodNumber;
|
|
50
|
+
updatedAt: z.ZodNumber;
|
|
51
|
+
fragmentCount: z.ZodNumber;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
score: z.ZodNumber;
|
|
54
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
55
|
+
fragmentId: z.ZodString;
|
|
56
|
+
text: z.ZodString;
|
|
57
|
+
score: z.ZodNumber;
|
|
58
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export declare const scratchpadTopicsListResponseSchema: z.ZodObject<{
|
|
62
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
title: z.ZodString;
|
|
65
|
+
text: z.ZodString;
|
|
66
|
+
tokenCount: z.ZodNumber;
|
|
67
|
+
summary: z.ZodString;
|
|
68
|
+
createdAt: z.ZodNumber;
|
|
69
|
+
updatedAt: z.ZodNumber;
|
|
70
|
+
fragmentCount: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
count: z.ZodNumber;
|
|
73
|
+
maxTopics: z.ZodLiteral<10>;
|
|
74
|
+
maxTokensPerTopic: z.ZodLiteral<8000>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const scratchpadTopicResponseSchema: z.ZodObject<{
|
|
77
|
+
topic: z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
text: z.ZodString;
|
|
81
|
+
tokenCount: z.ZodNumber;
|
|
82
|
+
summary: z.ZodString;
|
|
83
|
+
createdAt: z.ZodNumber;
|
|
84
|
+
updatedAt: z.ZodNumber;
|
|
85
|
+
fragmentCount: z.ZodNumber;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export declare const scratchpadDeleteTopicResponseSchema: z.ZodObject<{
|
|
89
|
+
ok: z.ZodLiteral<true>;
|
|
90
|
+
topicId: z.ZodString;
|
|
91
|
+
deletedFragments: z.ZodNumber;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export declare const scratchpadSearchResponseSchema: z.ZodObject<{
|
|
94
|
+
query: z.ZodString;
|
|
95
|
+
results: z.ZodArray<z.ZodObject<{
|
|
96
|
+
topic: z.ZodObject<{
|
|
97
|
+
id: z.ZodString;
|
|
98
|
+
title: z.ZodString;
|
|
99
|
+
text: z.ZodString;
|
|
100
|
+
tokenCount: z.ZodNumber;
|
|
101
|
+
summary: z.ZodString;
|
|
102
|
+
createdAt: z.ZodNumber;
|
|
103
|
+
updatedAt: z.ZodNumber;
|
|
104
|
+
fragmentCount: z.ZodNumber;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
score: z.ZodNumber;
|
|
107
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
108
|
+
fragmentId: z.ZodString;
|
|
109
|
+
text: z.ZodString;
|
|
110
|
+
score: z.ZodNumber;
|
|
111
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
count: z.ZodNumber;
|
|
115
|
+
limit: z.ZodNumber;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const scratchpadSummaryPreviewRequestSchema: z.ZodObject<{
|
|
118
|
+
text: z.ZodString;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export declare const scratchpadSummaryPreviewResponseSchema: z.ZodObject<{
|
|
121
|
+
summary: z.ZodString;
|
|
122
|
+
tokenCount: z.ZodNumber;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export type ScratchpadTopicDto = z.infer<typeof scratchpadTopicDtoSchema>;
|
|
125
|
+
export type ScratchpadCreateTopicRequest = z.infer<typeof scratchpadCreateTopicRequestSchema>;
|
|
126
|
+
export type ScratchpadReplaceTopicRequest = z.infer<typeof scratchpadReplaceTopicRequestSchema>;
|
|
127
|
+
export type ScratchpadSearchQuery = z.infer<typeof scratchpadSearchQuerySchema>;
|
|
128
|
+
export type ScratchpadTopicMatchDto = z.infer<typeof scratchpadTopicMatchDtoSchema>;
|
|
129
|
+
export type ScratchpadTopicSearchResultDto = z.infer<typeof scratchpadTopicSearchResultDtoSchema>;
|
|
130
|
+
export type ScratchpadTopicsListResponse = z.infer<typeof scratchpadTopicsListResponseSchema>;
|
|
131
|
+
export type ScratchpadTopicResponse = z.infer<typeof scratchpadTopicResponseSchema>;
|
|
132
|
+
export type ScratchpadDeleteTopicResponse = z.infer<typeof scratchpadDeleteTopicResponseSchema>;
|
|
133
|
+
export type ScratchpadSearchResponse = z.infer<typeof scratchpadSearchResponseSchema>;
|
|
134
|
+
export type ScratchpadSummaryPreviewRequest = z.infer<typeof scratchpadSummaryPreviewRequestSchema>;
|
|
135
|
+
export type ScratchpadSummaryPreviewResponse = z.infer<typeof scratchpadSummaryPreviewResponseSchema>;
|
|
136
|
+
//# sourceMappingURL=scratchpad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scratchpad.d.ts","sourceRoot":"","sources":["../../src/contracts/scratchpad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,4BAA4B,OAAQ,CAAC;AAClD,eAAO,MAAM,iCAAiC,IAAI,CAAC;AACnD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AACrD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAEtD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKjE;AAED,eAAO,MAAM,0BAA0B,aAIE,CAAC;AAE1C,eAAO,MAAM,yBAAyB,aAQnC,CAAC;AAEJ,eAAO,MAAM,4BAA4B,aAIE,CAAC;AAE5C,eAAO,MAAM,wBAAwB;;;;;;;;;iBASnC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;iBACZ,CAAC;AAErC,eAAO,MAAM,2BAA2B;;;iBAOtC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;iBAKxC,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;iBAI/C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;iBAK7C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;iBAExC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;iBAI9C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HPAD_MAX_TOPICS = 10;
|
|
3
|
+
export const SCRATCHPAD_TOPIC_TOKEN_LIMIT = 8_000;
|
|
4
|
+
export const SCRATCHPAD_APPROX_CHARS_PER_TOKEN = 4;
|
|
5
|
+
export const SCRATCHPAD_TOPIC_TITLE_MAX_LENGTH = 120;
|
|
6
|
+
export const SCRATCHPAD_TOPIC_SUMMARY_MAX_LENGTH = 240;
|
|
7
|
+
export const SCRATCHPAD_SEARCH_QUERY_MAX_LENGTH = 500;
|
|
8
|
+
export function estimateScratchpadTokenCount(text) {
|
|
9
|
+
const trimmed = text.trim();
|
|
10
|
+
return trimmed.length === 0
|
|
11
|
+
? 0
|
|
12
|
+
: Math.ceil(trimmed.length / SCRATCHPAD_APPROX_CHARS_PER_TOKEN);
|
|
13
|
+
}
|
|
14
|
+
export const scratchpadTopicTitleSchema = z
|
|
15
|
+
.string()
|
|
16
|
+
.trim()
|
|
17
|
+
.min(1, "title is required")
|
|
18
|
+
.max(SCRATCHPAD_TOPIC_TITLE_MAX_LENGTH);
|
|
19
|
+
export const scratchpadTopicTextSchema = z
|
|
20
|
+
.string()
|
|
21
|
+
.trim()
|
|
22
|
+
.min(1, "text is required")
|
|
23
|
+
.refine((text) => estimateScratchpadTokenCount(text) <= SCRATCHPAD_TOPIC_TOKEN_LIMIT, `text exceeds ${SCRATCHPAD_TOPIC_TOKEN_LIMIT} approximate tokens`);
|
|
24
|
+
export const scratchpadTopicSummarySchema = z
|
|
25
|
+
.string()
|
|
26
|
+
.trim()
|
|
27
|
+
.min(1)
|
|
28
|
+
.max(SCRATCHPAD_TOPIC_SUMMARY_MAX_LENGTH);
|
|
29
|
+
export const scratchpadTopicDtoSchema = z.object({
|
|
30
|
+
id: z.string().min(1),
|
|
31
|
+
title: scratchpadTopicTitleSchema,
|
|
32
|
+
text: z.string().min(1),
|
|
33
|
+
tokenCount: z.number().int().min(1).max(SCRATCHPAD_TOPIC_TOKEN_LIMIT),
|
|
34
|
+
summary: scratchpadTopicSummarySchema,
|
|
35
|
+
createdAt: z.number().int().nonnegative(),
|
|
36
|
+
updatedAt: z.number().int().nonnegative(),
|
|
37
|
+
fragmentCount: z.number().int().nonnegative(),
|
|
38
|
+
});
|
|
39
|
+
export const scratchpadCreateTopicRequestSchema = z.object({
|
|
40
|
+
title: scratchpadTopicTitleSchema,
|
|
41
|
+
text: scratchpadTopicTextSchema,
|
|
42
|
+
summary: scratchpadTopicSummarySchema.optional(),
|
|
43
|
+
});
|
|
44
|
+
export const scratchpadReplaceTopicRequestSchema = scratchpadCreateTopicRequestSchema;
|
|
45
|
+
export const scratchpadSearchQuerySchema = z.object({
|
|
46
|
+
q: z
|
|
47
|
+
.string()
|
|
48
|
+
.trim()
|
|
49
|
+
.min(1, "q is required")
|
|
50
|
+
.max(SCRATCHPAD_SEARCH_QUERY_MAX_LENGTH),
|
|
51
|
+
limit: z.coerce.number().int().min(1).max(SCRATCHPAD_MAX_TOPICS).optional(),
|
|
52
|
+
});
|
|
53
|
+
export const scratchpadTopicMatchDtoSchema = z.object({
|
|
54
|
+
fragmentId: z.string().min(1),
|
|
55
|
+
text: z.string(),
|
|
56
|
+
score: z.number().min(0),
|
|
57
|
+
position: z.number().int().nonnegative().optional(),
|
|
58
|
+
});
|
|
59
|
+
export const scratchpadTopicSearchResultDtoSchema = z.object({
|
|
60
|
+
topic: scratchpadTopicDtoSchema,
|
|
61
|
+
score: z.number().min(0),
|
|
62
|
+
matches: z.array(scratchpadTopicMatchDtoSchema),
|
|
63
|
+
});
|
|
64
|
+
export const scratchpadTopicsListResponseSchema = z.object({
|
|
65
|
+
topics: z.array(scratchpadTopicDtoSchema),
|
|
66
|
+
count: z.number().int().nonnegative(),
|
|
67
|
+
maxTopics: z.literal(SCRATCHPAD_MAX_TOPICS),
|
|
68
|
+
maxTokensPerTopic: z.literal(SCRATCHPAD_TOPIC_TOKEN_LIMIT),
|
|
69
|
+
});
|
|
70
|
+
export const scratchpadTopicResponseSchema = z.object({
|
|
71
|
+
topic: scratchpadTopicDtoSchema,
|
|
72
|
+
});
|
|
73
|
+
export const scratchpadDeleteTopicResponseSchema = z.object({
|
|
74
|
+
ok: z.literal(true),
|
|
75
|
+
topicId: z.string().min(1),
|
|
76
|
+
deletedFragments: z.number().int().nonnegative(),
|
|
77
|
+
});
|
|
78
|
+
export const scratchpadSearchResponseSchema = z.object({
|
|
79
|
+
query: z.string().min(1),
|
|
80
|
+
results: z.array(scratchpadTopicSearchResultDtoSchema),
|
|
81
|
+
count: z.number().int().nonnegative(),
|
|
82
|
+
limit: z.number().int().min(1).max(SCRATCHPAD_MAX_TOPICS),
|
|
83
|
+
});
|
|
84
|
+
export const scratchpadSummaryPreviewRequestSchema = z.object({
|
|
85
|
+
text: scratchpadTopicTextSchema,
|
|
86
|
+
});
|
|
87
|
+
export const scratchpadSummaryPreviewResponseSchema = z.object({
|
|
88
|
+
summary: scratchpadTopicSummarySchema,
|
|
89
|
+
tokenCount: z.number().int().min(1).max(SCRATCHPAD_TOPIC_TOKEN_LIMIT),
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=scratchpad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scratchpad.js","sourceRoot":"","sources":["../../src/contracts/scratchpad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACxC,MAAM,CAAC,MAAM,4BAA4B,GAAG,KAAK,CAAC;AAClD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC;AACnD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AACrD,MAAM,CAAC,MAAM,mCAAmC,GAAG,GAAG,CAAC;AACvD,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAG,CAAC;AAEtD,MAAM,UAAU,4BAA4B,CAAC,IAAY;IACvD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC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AC1D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,IAAI,EAAE,yBAAyB;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,OAAO,EAAE,4BAA4B;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,4BAA4B,CAAC;CACtE,CAAC,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -5,23 +5,23 @@
|
|
|
5
5
|
* excluding modules that pull in node-only dependencies (figlet heading).
|
|
6
6
|
*/
|
|
7
7
|
export * from "./app-hero-art";
|
|
8
|
+
export * from "./awareness";
|
|
9
|
+
export type { AgentBinding, AgentCompactionConfig, AgentCompactionMemoryFlushConfig, AgentCompactionMode, AgentConfig, AgentContextPruningConfig, AgentDefaultsConfig, AgentModelConfig, AgentModelEntryConfig, AgentModelListConfig, AgentsConfig, ApprovalsConfig, AudioConfig, AuthConfig, AuthProfileConfig, BedrockDiscoveryConfig, BroadcastConfig, BroadcastStrategy, BrowserConfig, BrowserProfileConfig, BrowserSnapshotDefaults, CliBackendConfig, CloudBackupConfig, CloudBridgeConfig, CloudConfig, CloudContainerDefaults, CloudInferenceMode, CloudServiceToggles, CommandsConfig, ConfigFileSnapshot, ConfigValidationIssue, ConnectorConfig, ConnectorFieldValue, CronConfig, CuaConfig, DatabaseConfig, DiagnosticsCacheTraceConfig, DiagnosticsConfig, DiagnosticsOtelConfig, DiscoveryConfig, ElizaConfig, EmbeddingConfig, EscalationConfig, ExecApprovalForwardingConfig, ExecApprovalForwardingMode, ExecApprovalForwardTarget, ExecToolConfig, GatewayAuthConfig, GatewayAuthMode, GatewayBindMode, GatewayConfig, GatewayControlUiConfig, GatewayHttpChatCompletionsConfig, GatewayHttpConfig, GatewayHttpEndpointsConfig, GatewayHttpResponsesConfig, GatewayHttpResponsesFilesConfig, GatewayHttpResponsesImagesConfig, GatewayHttpResponsesPdfConfig, GatewayNodesConfig, GatewayReloadConfig, GatewayReloadMode, GatewayRemoteConfig, GatewayTailscaleConfig, GatewayTailscaleMode, GatewayTlsConfig, HookConfig, HookInstallRecord, HookMappingConfig, HookMappingMatch, HookMappingTransform, HooksConfig, HooksGmailConfig, HooksGmailTailscaleMode, InboundDebounceByProvider, InboundDebounceConfig, InboxAutoReplyConfig as AgentDefaultsInboxAutoReplyConfig, InboxTriageRules as AgentDefaultsInboxTriageRules, InternalHookHandlerConfig, InternalHooksConfig, KnowledgeConfig, LinkModelConfig, LinkToolsConfig, LoggingConfig, MdnsDiscoveryConfig, MdnsDiscoveryMode, MediaToolsConfig, MediaUnderstandingAttachmentsConfig, MediaUnderstandingCapability, MediaUnderstandingConfig, MediaUnderstandingModelConfig, MediaUnderstandingScopeConfig, MediaUnderstandingScopeMatch, MediaUnderstandingScopeRule, MemoryBackend, MemoryCitationsMode, MemoryConfig, MemoryQmdConfig, MemoryQmdIndexPath, MemoryQmdLimitsConfig, MemoryQmdSessionConfig, MemoryQmdUpdateConfig, MemorySearchConfig, MessagesConfig, ModelApi, ModelCompatConfig, ModelDefinitionConfig, ModelProviderAuthMode, ModelProviderConfig, ModelsConfig, N8nConfig, NodeHostBrowserProxyConfig, NodeHostConfig, OwnerContactEntry, OwnerContactsConfig, PgliteConfig, PluginEntryConfig, PluginInstallRecord, PluginSlotsConfig, PluginsConfig, PluginsLoadConfig, PostgresCredentials, QueueConfig, QueueDropPolicy, QueueMode, QueueModeByProvider, RegistryEndpoint, RolesConfig, SandboxBrowserSettings, SandboxDockerSettings, SandboxPruneSettings, SkillConfig, SkillsConfig, SkillsInstallConfig, SkillsLoadConfig, ToolsConfig, TtsAutoMode, TtsConfig, TtsMode, TtsModelOverrideConfig, TtsProvider, UpdateConfig, WebConfig, WebReconnectConfig, X402Config, } from "./config/types";
|
|
8
10
|
export * from "./connectors";
|
|
11
|
+
export * from "./contracts";
|
|
12
|
+
export * from "./dev-settings-banner-style";
|
|
13
|
+
export * from "./dev-settings-table";
|
|
14
|
+
export type { ConnectorAdminWhitelist, RoleCheckResult, RoleGrantSource, RoleName, RolesConfig as ElizaCoreRolesConfig, RolesWorldMetadata, ServerOwnershipState, } from "./eliza-core-roles";
|
|
15
|
+
export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, findWorldsForOwner, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, getLiveEntityMetadataFromMessage, getUserServerRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, ROLE_RANK, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./eliza-core-roles";
|
|
9
16
|
export * from "./env-utils";
|
|
10
|
-
export * from "./
|
|
17
|
+
export * from "./onboarding-presets";
|
|
18
|
+
export * from "./onboarding-presets.characters";
|
|
19
|
+
export * from "./recent-messages-state";
|
|
11
20
|
export * from "./restart";
|
|
21
|
+
export * from "./runtime-env";
|
|
22
|
+
export { isElizaSettingsDebugEnabled, sanitizeForSettingsDebug, settingsDebugCloudSummary, } from "./settings-debug";
|
|
12
23
|
export * from "./spoken-text";
|
|
24
|
+
export * from "./themes";
|
|
13
25
|
export * from "./type-guards";
|
|
14
|
-
export * from "./recent-messages-state";
|
|
15
26
|
export * from "./validation-keywords";
|
|
16
|
-
export * from "./dev-settings-table";
|
|
17
|
-
export * from "./dev-settings-banner-style";
|
|
18
|
-
export * from "./onboarding-presets";
|
|
19
|
-
export * from "./onboarding-presets.characters";
|
|
20
|
-
export * from "./awareness";
|
|
21
|
-
export * from "./themes";
|
|
22
|
-
export { ROLE_RANK, canModifyRole, checkSenderPrivateAccess, checkSenderRole, findWorldsForOwner, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, getLiveEntityMetadataFromMessage, getUserServerRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./eliza-core-roles";
|
|
23
|
-
export type { ConnectorAdminWhitelist, RoleCheckResult, RoleGrantSource, RoleName, RolesConfig as ElizaCoreRolesConfig, RolesWorldMetadata, ServerOwnershipState, } from "./eliza-core-roles";
|
|
24
|
-
export { isElizaSettingsDebugEnabled, sanitizeForSettingsDebug, settingsDebugCloudSummary, } from "./settings-debug";
|
|
25
|
-
export * from "./contracts";
|
|
26
|
-
export type { AgentBinding, AgentCompactionConfig, AgentCompactionMemoryFlushConfig, AgentCompactionMode, AgentConfig, AgentContextPruningConfig, AgentDefaultsConfig, AgentModelConfig, AgentModelEntryConfig, AgentModelListConfig, AgentsConfig, ApprovalsConfig, AudioConfig, AuthConfig, AuthProfileConfig, BedrockDiscoveryConfig, BroadcastConfig, BroadcastStrategy, BrowserConfig, BrowserProfileConfig, BrowserSnapshotDefaults, CliBackendConfig, CloudBackupConfig, CloudBridgeConfig, CloudConfig, CloudContainerDefaults, CloudInferenceMode, CloudServiceToggles, CommandsConfig, ConfigFileSnapshot, ConfigValidationIssue, ConnectorConfig, ConnectorFieldValue, CronConfig, CuaConfig, DatabaseConfig, DiagnosticsCacheTraceConfig, DiagnosticsConfig, DiagnosticsOtelConfig, DiscoveryConfig, ElizaConfig, EmbeddingConfig, EscalationConfig, ExecApprovalForwardingConfig, ExecApprovalForwardingMode, ExecApprovalForwardTarget, ExecToolConfig, GatewayAuthConfig, GatewayAuthMode, GatewayBindMode, GatewayConfig, GatewayControlUiConfig, GatewayHttpChatCompletionsConfig, GatewayHttpConfig, GatewayHttpEndpointsConfig, GatewayHttpResponsesConfig, GatewayHttpResponsesFilesConfig, GatewayHttpResponsesImagesConfig, GatewayHttpResponsesPdfConfig, GatewayNodesConfig, GatewayReloadConfig, GatewayReloadMode, GatewayRemoteConfig, GatewayTailscaleConfig, GatewayTailscaleMode, GatewayTlsConfig, HookConfig, HookInstallRecord, HookMappingConfig, HookMappingMatch, HookMappingTransform, HooksConfig, HooksGmailConfig, HooksGmailTailscaleMode, InboxAutoReplyConfig as AgentDefaultsInboxAutoReplyConfig, InboxTriageRules as AgentDefaultsInboxTriageRules, InboundDebounceByProvider, InboundDebounceConfig, InternalHookHandlerConfig, InternalHooksConfig, KnowledgeConfig, LinkModelConfig, LinkToolsConfig, LoggingConfig, MdnsDiscoveryConfig, MdnsDiscoveryMode, MediaToolsConfig, MediaUnderstandingAttachmentsConfig, MediaUnderstandingCapability, MediaUnderstandingConfig, MediaUnderstandingModelConfig, MediaUnderstandingScopeConfig, MediaUnderstandingScopeMatch, MediaUnderstandingScopeRule, MemoryBackend, MemoryCitationsMode, MemoryConfig, MemoryQmdConfig, MemoryQmdIndexPath, MemoryQmdLimitsConfig, MemoryQmdSessionConfig, MemoryQmdUpdateConfig, MemorySearchConfig, MessagesConfig, ModelApi, ModelCompatConfig, ModelDefinitionConfig, ModelProviderAuthMode, ModelProviderConfig, ModelsConfig, N8nConfig, NodeHostBrowserProxyConfig, NodeHostConfig, OwnerContactEntry, OwnerContactsConfig, PgliteConfig, PluginEntryConfig, PluginInstallRecord, PluginsConfig, PluginsLoadConfig, PluginSlotsConfig, PostgresCredentials, QueueConfig, QueueDropPolicy, QueueMode, QueueModeByProvider, RegistryEndpoint, RolesConfig, SandboxBrowserSettings, SandboxDockerSettings, SandboxPruneSettings, SkillConfig, SkillsConfig, SkillsInstallConfig, SkillsLoadConfig, ToolsConfig, TtsAutoMode, TtsConfig, TtsMode, TtsModelOverrideConfig, TtsProvider, UpdateConfig, WebConfig, WebReconnectConfig, X402Config, } from "./config/types";
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,gBAAgB,CAAC;AAE/B,cAAc,aAAa,CAAC;AAI5B,YAAY,EACV,YAAY,EACZ,qBAAqB,EACrB,gCAAgC,EAChC,mBAAmB,EACnB,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,cAAc,EACd,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,4BAA4B,EAC5B,0BAA0B,EAC1B,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,gCAAgC,EAChC,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EAErB,oBA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AAwB,EACxB,eAAe,EACf,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,EAC1B,aAAa,EACb,gCAAgC,EAChC,iBAAiB,EACjB,2BAA2B,EAC3B,oCAAoC,EACpC,aAAa,EACb,SAAS,EACT,uBAAuB,EACvB,iCAAiC,EACjC,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAE9B,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
|
package/index.js
CHANGED
|
@@ -6,31 +6,31 @@
|
|
|
6
6
|
*/
|
|
7
7
|
// Leaf modules (no internal collisions)
|
|
8
8
|
export * from "./app-hero-art";
|
|
9
|
-
export * from "./connectors";
|
|
10
|
-
export * from "./env-utils";
|
|
11
|
-
export * from "./runtime-env";
|
|
12
|
-
export * from "./restart";
|
|
13
|
-
export * from "./spoken-text";
|
|
14
|
-
export * from "./type-guards";
|
|
15
|
-
export * from "./recent-messages-state";
|
|
16
|
-
export * from "./validation-keywords";
|
|
17
|
-
export * from "./dev-settings-table";
|
|
18
|
-
export * from "./dev-settings-banner-style";
|
|
19
|
-
export * from "./onboarding-presets";
|
|
20
|
-
export * from "./onboarding-presets.characters";
|
|
21
9
|
// Awareness + themes barrels
|
|
22
10
|
export * from "./awareness";
|
|
23
|
-
export * from "./
|
|
11
|
+
export * from "./connectors";
|
|
12
|
+
// Contracts barrel — exposes apps/awareness/cloud-topology/config/content-pack/
|
|
13
|
+
// drop/inbox/onboarding/permissions/service-routing/verification/wallet.
|
|
14
|
+
// `contracts/theme` is intentionally NOT pulled in here; it reaches the public
|
|
15
|
+
// surface through `./themes`, which already re-exports the same identifiers.
|
|
16
|
+
export * from "./contracts";
|
|
17
|
+
export * from "./dev-settings-banner-style";
|
|
18
|
+
export * from "./dev-settings-table";
|
|
24
19
|
// `eliza-core-roles` defines its own `RolesConfig` that overlaps with the
|
|
25
20
|
// `RolesConfig` re-exported from `@elizaos/core` via `./config`. Skip the
|
|
26
21
|
// duplicate name here — callers needing the vendored role helpers should use
|
|
27
22
|
// the named exports below.
|
|
28
|
-
export {
|
|
23
|
+
export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, findWorldsForOwner, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, getLiveEntityMetadataFromMessage, getUserServerRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, ROLE_RANK, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./eliza-core-roles";
|
|
24
|
+
export * from "./env-utils";
|
|
25
|
+
export * from "./onboarding-presets";
|
|
26
|
+
export * from "./onboarding-presets.characters";
|
|
27
|
+
export * from "./recent-messages-state";
|
|
28
|
+
export * from "./restart";
|
|
29
|
+
export * from "./runtime-env";
|
|
29
30
|
// Settings debug helpers
|
|
30
31
|
export { isElizaSettingsDebugEnabled, sanitizeForSettingsDebug, settingsDebugCloudSummary, } from "./settings-debug";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export * from "./contracts";
|
|
32
|
+
export * from "./spoken-text";
|
|
33
|
+
export * from "./themes";
|
|
34
|
+
export * from "./type-guards";
|
|
35
|
+
export * from "./validation-keywords";
|
|
36
36
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wCAAwC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wCAAwC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,6BAA6B;AAC7B,cAAc,aAAa,CAAC;AAwJ5B,cAAc,cAAc,CAAC;AAC7B,gFAAgF;AAChF,yEAAyE;AACzE,+EAA+E;AAC/E,6EAA6E;AAC7E,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AAUrC,0EAA0E;AAC1E,0EAA0E;AAC1E,6EAA6E;AAC7E,2BAA2B;AAC3B,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,EAC1B,aAAa,EACb,gCAAgC,EAChC,iBAAiB,EACjB,2BAA2B,EAC3B,oCAAoC,EACpC,aAAa,EACb,SAAS,EACT,uBAAuB,EACvB,iCAAiC,EACjC,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,yBAAyB;AACzB,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/shared",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.385",
|
|
4
4
|
"description": "Shared code for Eliza agent and app-core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"directory": "dist"
|
|
184
184
|
},
|
|
185
185
|
"dependencies": {
|
|
186
|
-
"@elizaos/core": "^2.0.0-alpha.
|
|
186
|
+
"@elizaos/core": "^2.0.0-alpha.385",
|
|
187
187
|
"zod": "^4.3.6"
|
|
188
188
|
},
|
|
189
189
|
"optionalDependencies": {
|
package/spoken-text.js
CHANGED
|
@@ -43,7 +43,7 @@ function sanitizeSpeechPunctuation(input) {
|
|
|
43
43
|
text = text.replace(/[–—]/g, ", ");
|
|
44
44
|
text = text.replace(/\s*([,;:,;:])\s*/g, "$1 ");
|
|
45
45
|
text = text.replace(/\s*([.!?。!?])\s*/g, "$1 ");
|
|
46
|
-
text = text.replace(/[^\p{L}\p{N}\s.,!?'"
|
|
46
|
+
text = text.replace(/[^\p{L}\p{N}\s.,!?'"%/$:+,。!?;:-]/gu, " ");
|
|
47
47
|
text = text.replace(/([,.!?,。!?])\1+/g, "$1");
|
|
48
48
|
text = text.replace(/^[,;:.!?,。!?;:]+/g, " ");
|
|
49
49
|
return text;
|
package/spoken-text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spoken-text.js","sourceRoot":"","sources":["../src/spoken-text.ts"],"names":[],"mappings":"AAAA,SAAS,kBAAkB,CAAC,KAAa;IACvC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,sBAAsB,CAAC,KAAa;IAC3C,IAAI,IAAI,GAAG,KAA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