@elizaos/core 1.5.13-alpha.5 → 1.5.13
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/browser/index.browser.js +116 -138
- package/dist/browser/index.browser.js.map +10 -67
- package/dist/schemas/character.d.ts +180 -22
- package/dist/schemas/character.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -6,42 +6,200 @@ export declare const characterSchema: z.ZodObject<{
|
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
username: z.ZodOptional<z.ZodString>;
|
|
8
8
|
system: z.ZodOptional<z.ZodString>;
|
|
9
|
-
templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<
|
|
10
|
-
bio: z.ZodUnion<
|
|
9
|
+
templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>]>>>;
|
|
10
|
+
bio: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
11
11
|
messageExamples: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
12
12
|
name: z.ZodString;
|
|
13
13
|
content: z.ZodObject<{
|
|
14
14
|
text: z.ZodOptional<z.ZodString>;
|
|
15
15
|
thought: z.ZodOptional<z.ZodString>;
|
|
16
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
-
providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
18
|
source: z.ZodOptional<z.ZodString>;
|
|
19
19
|
target: z.ZodOptional<z.ZodString>;
|
|
20
20
|
url: z.ZodOptional<z.ZodString>;
|
|
21
21
|
inReplyTo: z.ZodOptional<z.ZodString>;
|
|
22
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
23
|
-
channelType: z.ZodOptional<z.
|
|
24
|
-
}, z.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
23
|
+
channelType: z.ZodOptional<z.ZodNativeEnum<typeof ChannelType>>;
|
|
24
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
25
|
+
text: z.ZodOptional<z.ZodString>;
|
|
26
|
+
thought: z.ZodOptional<z.ZodString>;
|
|
27
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
29
|
+
source: z.ZodOptional<z.ZodString>;
|
|
30
|
+
target: z.ZodOptional<z.ZodString>;
|
|
31
|
+
url: z.ZodOptional<z.ZodString>;
|
|
32
|
+
inReplyTo: z.ZodOptional<z.ZodString>;
|
|
33
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
34
|
+
channelType: z.ZodOptional<z.ZodNativeEnum<typeof ChannelType>>;
|
|
35
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
36
|
+
text: z.ZodOptional<z.ZodString>;
|
|
37
|
+
thought: z.ZodOptional<z.ZodString>;
|
|
38
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40
|
+
source: z.ZodOptional<z.ZodString>;
|
|
41
|
+
target: z.ZodOptional<z.ZodString>;
|
|
42
|
+
url: z.ZodOptional<z.ZodString>;
|
|
43
|
+
inReplyTo: z.ZodOptional<z.ZodString>;
|
|
44
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
45
|
+
channelType: z.ZodOptional<z.ZodNativeEnum<typeof ChannelType>>;
|
|
46
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
name: string;
|
|
49
|
+
content: {
|
|
50
|
+
thought?: string | undefined;
|
|
51
|
+
text?: string | undefined;
|
|
52
|
+
actions?: string[] | undefined;
|
|
53
|
+
providers?: string[] | undefined;
|
|
54
|
+
source?: string | undefined;
|
|
55
|
+
target?: string | undefined;
|
|
56
|
+
url?: string | undefined;
|
|
57
|
+
inReplyTo?: string | undefined;
|
|
58
|
+
attachments?: any[] | undefined;
|
|
59
|
+
channelType?: ChannelType | undefined;
|
|
60
|
+
} & {
|
|
61
|
+
[k: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
name: string;
|
|
65
|
+
content: {
|
|
66
|
+
thought?: string | undefined;
|
|
67
|
+
text?: string | undefined;
|
|
68
|
+
actions?: string[] | undefined;
|
|
69
|
+
providers?: string[] | undefined;
|
|
70
|
+
source?: string | undefined;
|
|
71
|
+
target?: string | undefined;
|
|
72
|
+
url?: string | undefined;
|
|
73
|
+
inReplyTo?: string | undefined;
|
|
74
|
+
attachments?: any[] | undefined;
|
|
75
|
+
channelType?: ChannelType | undefined;
|
|
76
|
+
} & {
|
|
77
|
+
[k: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
}>, "many">, "many">>;
|
|
80
|
+
postExamples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
81
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
82
|
+
adjectives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
83
|
+
knowledge: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
30
84
|
path: z.ZodString;
|
|
31
85
|
shared: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
},
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
path: string;
|
|
88
|
+
shared?: boolean | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
path: string;
|
|
91
|
+
shared?: boolean | undefined;
|
|
92
|
+
}>, z.ZodObject<{
|
|
33
93
|
directory: z.ZodString;
|
|
34
94
|
shared: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
}, z.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
directory: string;
|
|
97
|
+
shared?: boolean | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
directory: string;
|
|
100
|
+
shared?: boolean | undefined;
|
|
101
|
+
}>]>, "many">>;
|
|
102
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
103
|
+
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodAny]>>>;
|
|
104
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber]>>>;
|
|
39
105
|
style: z.ZodOptional<z.ZodObject<{
|
|
40
|
-
all: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
-
chat: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
-
post: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
-
}, z.
|
|
44
|
-
|
|
106
|
+
all: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
107
|
+
chat: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
108
|
+
post: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
post?: string[] | undefined;
|
|
111
|
+
all?: string[] | undefined;
|
|
112
|
+
chat?: string[] | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
post?: string[] | undefined;
|
|
115
|
+
all?: string[] | undefined;
|
|
116
|
+
chat?: string[] | undefined;
|
|
117
|
+
}>>;
|
|
118
|
+
}, "strict", z.ZodTypeAny, {
|
|
119
|
+
name: string;
|
|
120
|
+
bio: string | string[];
|
|
121
|
+
username?: string | undefined;
|
|
122
|
+
id?: string | undefined;
|
|
123
|
+
system?: string | undefined;
|
|
124
|
+
templates?: Record<string, string | ((...args: unknown[]) => unknown) | undefined> | undefined;
|
|
125
|
+
messageExamples?: {
|
|
126
|
+
name: string;
|
|
127
|
+
content: {
|
|
128
|
+
thought?: string | undefined;
|
|
129
|
+
text?: string | undefined;
|
|
130
|
+
actions?: string[] | undefined;
|
|
131
|
+
providers?: string[] | undefined;
|
|
132
|
+
source?: string | undefined;
|
|
133
|
+
target?: string | undefined;
|
|
134
|
+
url?: string | undefined;
|
|
135
|
+
inReplyTo?: string | undefined;
|
|
136
|
+
attachments?: any[] | undefined;
|
|
137
|
+
channelType?: ChannelType | undefined;
|
|
138
|
+
} & {
|
|
139
|
+
[k: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
}[][] | undefined;
|
|
142
|
+
postExamples?: string[] | undefined;
|
|
143
|
+
topics?: string[] | undefined;
|
|
144
|
+
adjectives?: string[] | undefined;
|
|
145
|
+
knowledge?: (string | {
|
|
146
|
+
directory: string;
|
|
147
|
+
shared?: boolean | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
path: string;
|
|
150
|
+
shared?: boolean | undefined;
|
|
151
|
+
})[] | undefined;
|
|
152
|
+
plugins?: string[] | undefined;
|
|
153
|
+
settings?: Record<string, any> | undefined;
|
|
154
|
+
secrets?: Record<string, string | number | boolean> | undefined;
|
|
155
|
+
style?: {
|
|
156
|
+
post?: string[] | undefined;
|
|
157
|
+
all?: string[] | undefined;
|
|
158
|
+
chat?: string[] | undefined;
|
|
159
|
+
} | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
name: string;
|
|
162
|
+
bio: string | string[];
|
|
163
|
+
username?: string | undefined;
|
|
164
|
+
id?: string | undefined;
|
|
165
|
+
system?: string | undefined;
|
|
166
|
+
templates?: Record<string, string | ((...args: unknown[]) => unknown) | undefined> | undefined;
|
|
167
|
+
messageExamples?: {
|
|
168
|
+
name: string;
|
|
169
|
+
content: {
|
|
170
|
+
thought?: string | undefined;
|
|
171
|
+
text?: string | undefined;
|
|
172
|
+
actions?: string[] | undefined;
|
|
173
|
+
providers?: string[] | undefined;
|
|
174
|
+
source?: string | undefined;
|
|
175
|
+
target?: string | undefined;
|
|
176
|
+
url?: string | undefined;
|
|
177
|
+
inReplyTo?: string | undefined;
|
|
178
|
+
attachments?: any[] | undefined;
|
|
179
|
+
channelType?: ChannelType | undefined;
|
|
180
|
+
} & {
|
|
181
|
+
[k: string]: unknown;
|
|
182
|
+
};
|
|
183
|
+
}[][] | undefined;
|
|
184
|
+
postExamples?: string[] | undefined;
|
|
185
|
+
topics?: string[] | undefined;
|
|
186
|
+
adjectives?: string[] | undefined;
|
|
187
|
+
knowledge?: (string | {
|
|
188
|
+
directory: string;
|
|
189
|
+
shared?: boolean | undefined;
|
|
190
|
+
} | {
|
|
191
|
+
path: string;
|
|
192
|
+
shared?: boolean | undefined;
|
|
193
|
+
})[] | undefined;
|
|
194
|
+
plugins?: string[] | undefined;
|
|
195
|
+
settings?: Record<string, any> | undefined;
|
|
196
|
+
secrets?: Record<string, string | number | boolean> | undefined;
|
|
197
|
+
style?: {
|
|
198
|
+
post?: string[] | undefined;
|
|
199
|
+
all?: string[] | undefined;
|
|
200
|
+
chat?: string[] | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
}>;
|
|
45
203
|
export interface CharacterValidationResult {
|
|
46
204
|
success: boolean;
|
|
47
205
|
data?: Character;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"character.d.ts","sourceRoot":"","sources":["../../src/schemas/character.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAuEnD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"character.d.ts","sourceRoot":"","sources":["../../src/schemas/character.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAuEnD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBjB,CAAC;AAGZ,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;KACvB,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,yBAAyB,CAiB1E;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,yBAAyB,CAYvF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,SAAS,CAEjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/core",
|
|
3
|
-
"version": "1.5.13
|
|
3
|
+
"version": "1.5.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"pdfjs-dist": "^5.2.133",
|
|
76
76
|
"unique-names-generator": "4.7.1",
|
|
77
77
|
"uuid": "11.1.0",
|
|
78
|
-
"zod": "
|
|
78
|
+
"zod": "^3.24.4"
|
|
79
79
|
},
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "c5063da6064e39637cf92bc7f15b206e60bf1f35"
|
|
84
84
|
}
|