@elizaos/plugin-starter 1.0.0-alpha.0
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +188 -0
- package/dist/index.js.map +1 -0
- package/package.json +40 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Shaw Walters, aka Moon aka @lalalune
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Plugin, Service, IAgentRuntime } from '@elizaos/core';
|
|
2
|
+
|
|
3
|
+
declare class StarterService extends Service {
|
|
4
|
+
protected runtime: IAgentRuntime;
|
|
5
|
+
static serviceType: string;
|
|
6
|
+
capabilityDescription: string;
|
|
7
|
+
constructor(runtime: IAgentRuntime);
|
|
8
|
+
static start(runtime: IAgentRuntime): Promise<StarterService>;
|
|
9
|
+
static stop(runtime: IAgentRuntime): Promise<void>;
|
|
10
|
+
stop(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
declare const starterPlugin: Plugin;
|
|
13
|
+
|
|
14
|
+
export { StarterService, starterPlugin as default, starterPlugin };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import {
|
|
3
|
+
ModelTypes,
|
|
4
|
+
Service,
|
|
5
|
+
logger
|
|
6
|
+
} from "@elizaos/core";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
var configSchema = z.object({
|
|
9
|
+
PLUGIN_NAME: z.string().min(1, "Plugin name is not provided").optional().transform((val) => {
|
|
10
|
+
if (!val) {
|
|
11
|
+
console.warn("Warning: Plugin name not provided");
|
|
12
|
+
}
|
|
13
|
+
return val;
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
var helloWorldAction = {
|
|
17
|
+
name: "HELLO_WORLD",
|
|
18
|
+
similes: ["GREET", "SAY_HELLO"],
|
|
19
|
+
description: "Responds with a simple hello world message",
|
|
20
|
+
validate: async (_runtime, _message, _state) => {
|
|
21
|
+
return true;
|
|
22
|
+
},
|
|
23
|
+
handler: async (_runtime, message, _state, _options, callback, _responses) => {
|
|
24
|
+
try {
|
|
25
|
+
logger.info("Handling HELLO_WORLD action");
|
|
26
|
+
const responseContent = {
|
|
27
|
+
text: "hello world!",
|
|
28
|
+
actions: ["HELLO_WORLD"],
|
|
29
|
+
source: message.content.source
|
|
30
|
+
};
|
|
31
|
+
await callback(responseContent);
|
|
32
|
+
return responseContent;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
logger.error("Error in HELLO_WORLD action:", error);
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
examples: [
|
|
39
|
+
[
|
|
40
|
+
{
|
|
41
|
+
name: "{{name1}}",
|
|
42
|
+
content: {
|
|
43
|
+
text: "Can you say hello?"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "{{name2}}",
|
|
48
|
+
content: {
|
|
49
|
+
text: "hello world!",
|
|
50
|
+
actions: ["HELLO_WORLD"]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
]
|
|
55
|
+
};
|
|
56
|
+
var helloWorldProvider = {
|
|
57
|
+
name: "HELLO_WORLD_PROVIDER",
|
|
58
|
+
description: "A simple example provider",
|
|
59
|
+
get: async (_runtime, _message, _state) => {
|
|
60
|
+
return {
|
|
61
|
+
text: "I am a provider",
|
|
62
|
+
values: {},
|
|
63
|
+
data: {}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
var StarterService = class _StarterService extends Service {
|
|
68
|
+
constructor(runtime) {
|
|
69
|
+
super(runtime);
|
|
70
|
+
this.runtime = runtime;
|
|
71
|
+
}
|
|
72
|
+
static serviceType = "starter";
|
|
73
|
+
capabilityDescription = "This is a starter service which is attached to the agent through the starter plugin.";
|
|
74
|
+
static async start(runtime) {
|
|
75
|
+
logger.info("*** Starting starter service ***");
|
|
76
|
+
const service = new _StarterService(runtime);
|
|
77
|
+
return service;
|
|
78
|
+
}
|
|
79
|
+
static async stop(runtime) {
|
|
80
|
+
logger.info("*** Stopping starter service ***");
|
|
81
|
+
const service = runtime.getService(_StarterService.serviceType);
|
|
82
|
+
if (!service) {
|
|
83
|
+
throw new Error("Starter service not found");
|
|
84
|
+
}
|
|
85
|
+
service.stop();
|
|
86
|
+
}
|
|
87
|
+
async stop() {
|
|
88
|
+
logger.info("*** Stopping starter service instance ***");
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
var starterPlugin = {
|
|
92
|
+
name: "plugin-starter",
|
|
93
|
+
description: "Plugin starter for elizaOS",
|
|
94
|
+
config: {
|
|
95
|
+
PLUGIN_NAME: process.env.PLUGIN_NAME
|
|
96
|
+
},
|
|
97
|
+
async init(config) {
|
|
98
|
+
logger.info("*** Initializing starter plugin ***");
|
|
99
|
+
try {
|
|
100
|
+
const validatedConfig = await configSchema.parseAsync(config);
|
|
101
|
+
for (const [key, value] of Object.entries(validatedConfig)) {
|
|
102
|
+
if (value) process.env[key] = value;
|
|
103
|
+
}
|
|
104
|
+
} catch (error) {
|
|
105
|
+
if (error instanceof z.ZodError) {
|
|
106
|
+
throw new Error(
|
|
107
|
+
`Invalid plugin configuration: ${error.errors.map((e) => e.message).join(", ")}`
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
throw error;
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
models: {
|
|
114
|
+
[ModelTypes.TEXT_SMALL]: async (_runtime, { prompt, stopSequences = [] }) => {
|
|
115
|
+
return "Never gonna give you up, never gonna let you down, never gonna run around and desert you...";
|
|
116
|
+
},
|
|
117
|
+
[ModelTypes.TEXT_LARGE]: async (_runtime, {
|
|
118
|
+
prompt,
|
|
119
|
+
stopSequences = [],
|
|
120
|
+
maxTokens = 8192,
|
|
121
|
+
temperature = 0.7,
|
|
122
|
+
frequencyPenalty = 0.7,
|
|
123
|
+
presencePenalty = 0.7
|
|
124
|
+
}) => {
|
|
125
|
+
return "Never gonna make you cry, never gonna say goodbye, never gonna tell a lie and hurt you...";
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
tests: [
|
|
129
|
+
{
|
|
130
|
+
name: "plugin_starter_test_suite",
|
|
131
|
+
tests: [
|
|
132
|
+
{
|
|
133
|
+
name: "example_test",
|
|
134
|
+
fn: async (runtime) => {
|
|
135
|
+
console.log("example_test run by ", runtime.character.name);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
routes: [
|
|
142
|
+
{
|
|
143
|
+
path: "/helloworld",
|
|
144
|
+
type: "GET",
|
|
145
|
+
handler: async (_req, res) => {
|
|
146
|
+
res.json({
|
|
147
|
+
message: "Hello World!"
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
events: {
|
|
153
|
+
MESSAGE_RECEIVED: [
|
|
154
|
+
async (params) => {
|
|
155
|
+
console.log("MESSAGE_RECEIVED event received");
|
|
156
|
+
console.log(Object.keys(params));
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
VOICE_MESSAGE_RECEIVED: [
|
|
160
|
+
async (params) => {
|
|
161
|
+
console.log("VOICE_MESSAGE_RECEIVED event received");
|
|
162
|
+
console.log(Object.keys(params));
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
SERVER_CONNECTED: [
|
|
166
|
+
async (params) => {
|
|
167
|
+
console.log("SERVER_CONNECTED event received");
|
|
168
|
+
console.log(Object.keys(params));
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
SERVER_JOINED: [
|
|
172
|
+
async (params) => {
|
|
173
|
+
console.log("SERVER_JOINED event received");
|
|
174
|
+
console.log(Object.keys(params));
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
services: [StarterService],
|
|
179
|
+
actions: [helloWorldAction],
|
|
180
|
+
providers: [helloWorldProvider]
|
|
181
|
+
};
|
|
182
|
+
var index_default = starterPlugin;
|
|
183
|
+
export {
|
|
184
|
+
StarterService,
|
|
185
|
+
index_default as default,
|
|
186
|
+
starterPlugin
|
|
187
|
+
};
|
|
188
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { Plugin } from \"@elizaos/core\";\nimport {\n\ttype Action,\n\ttype Content,\n\ttype GenerateTextParams,\n\ttype HandlerCallback,\n\ttype IAgentRuntime,\n\ttype Memory,\n\tModelTypes,\n\tService,\n\ttype State,\n\ttype Provider,\n\ttype ProviderResult,\n\tlogger,\n} from \"@elizaos/core\";\nimport { z } from \"zod\";\n\nconst configSchema = z.object({\n\tPLUGIN_NAME: z\n\t\t.string()\n\t\t.min(1, \"Plugin name is not provided\")\n\t\t.optional()\n\t\t.transform((val) => {\n\t\t\tif (!val) {\n\t\t\t\tconsole.warn(\"Warning: Plugin name not provided\");\n\t\t\t}\n\t\t\treturn val;\n\t\t}),\n});\n\n/**\n * Example HelloWorld action\n * This demonstrates the simplest possible action structure\n */\nconst helloWorldAction: Action = {\n\tname: \"HELLO_WORLD\",\n\tsimiles: [\"GREET\", \"SAY_HELLO\"],\n\tdescription: \"Responds with a simple hello world message\",\n\n\tvalidate: async (\n\t\t_runtime: IAgentRuntime,\n\t\t_message: Memory,\n\t\t_state: State,\n\t): Promise<boolean> => {\n\t\t// Always valid\n\t\treturn true;\n\t},\n\n\thandler: async (\n\t\t_runtime: IAgentRuntime,\n\t\tmessage: Memory,\n\t\t_state: State,\n\t\t_options: any,\n\t\tcallback: HandlerCallback,\n\t\t_responses: Memory[],\n\t) => {\n\t\ttry {\n\t\t\tlogger.info(\"Handling HELLO_WORLD action\");\n\n\t\t\t// Simple response content\n\t\t\tconst responseContent: Content = {\n\t\t\t\ttext: \"hello world!\",\n\t\t\t\tactions: [\"HELLO_WORLD\"],\n\t\t\t\tsource: message.content.source,\n\t\t\t};\n\n\t\t\t// Call back with the hello world message\n\t\t\tawait callback(responseContent);\n\n\t\t\treturn responseContent;\n\t\t} catch (error) {\n\t\t\tlogger.error(\"Error in HELLO_WORLD action:\", error);\n\t\t\tthrow error;\n\t\t}\n\t},\n\n\texamples: [\n\t\t[\n\t\t\t{\n\t\t\t\tname: \"{{name1}}\",\n\t\t\t\tcontent: {\n\t\t\t\t\ttext: \"Can you say hello?\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"{{name2}}\",\n\t\t\t\tcontent: {\n\t\t\t\t\ttext: \"hello world!\",\n\t\t\t\t\tactions: [\"HELLO_WORLD\"],\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t],\n};\n\n/**\n * Example Hello World Provider\n * This demonstrates the simplest possible provider implementation\n */\nconst helloWorldProvider: Provider = {\n\tname: \"HELLO_WORLD_PROVIDER\",\n\tdescription: \"A simple example provider\",\n\n\tget: async (\n\t\t_runtime: IAgentRuntime,\n\t\t_message: Memory,\n\t\t_state: State,\n\t): Promise<ProviderResult> => {\n\t\treturn {\n\t\t\ttext: \"I am a provider\",\n\t\t\tvalues: {},\n\t\t\tdata: {},\n\t\t};\n\t},\n};\n\nexport class StarterService extends Service {\n\tstatic serviceType = \"starter\";\n\tcapabilityDescription =\n\t\t\"This is a starter service which is attached to the agent through the starter plugin.\";\n\tconstructor(protected runtime: IAgentRuntime) {\n\t\tsuper(runtime);\n\t}\n\n\tstatic async start(runtime: IAgentRuntime) {\n\t\tlogger.info(\"*** Starting starter service ***\");\n\t\tconst service = new StarterService(runtime);\n\t\treturn service;\n\t}\n\n\tstatic async stop(runtime: IAgentRuntime) {\n\t\tlogger.info(\"*** Stopping starter service ***\");\n\t\t// get the service from the runtime\n\t\tconst service = runtime.getService(StarterService.serviceType);\n\t\tif (!service) {\n\t\t\tthrow new Error(\"Starter service not found\");\n\t\t}\n\t\tservice.stop();\n\t}\n\n\tasync stop() {\n\t\tlogger.info(\"*** Stopping starter service instance ***\");\n\t}\n}\n\nexport const starterPlugin: Plugin = {\n\tname: \"plugin-starter\",\n\tdescription: \"Plugin starter for elizaOS\",\n\tconfig: {\n\t\tPLUGIN_NAME: process.env.PLUGIN_NAME,\n\t},\n\tasync init(config: Record<string, string>) {\n\t\tlogger.info(\"*** Initializing starter plugin ***\");\n\t\ttry {\n\t\t\tconst validatedConfig = await configSchema.parseAsync(config);\n\n\t\t\t// Set all environment variables at once\n\t\t\tfor (const [key, value] of Object.entries(validatedConfig)) {\n\t\t\t\tif (value) process.env[key] = value;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (error instanceof z.ZodError) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Invalid plugin configuration: ${error.errors\n\t\t\t\t\t\t.map((e) => e.message)\n\t\t\t\t\t\t.join(\", \")}`,\n\t\t\t\t);\n\t\t\t}\n\t\t\tthrow error;\n\t\t}\n\t},\n\tmodels: {\n\t\t[ModelTypes.TEXT_SMALL]: async (\n\t\t\t_runtime,\n\t\t\t{ prompt, stopSequences = [] }: GenerateTextParams,\n\t\t) => {\n\t\t\treturn \"Never gonna give you up, never gonna let you down, never gonna run around and desert you...\";\n\t\t},\n\t\t[ModelTypes.TEXT_LARGE]: async (\n\t\t\t_runtime,\n\t\t\t{\n\t\t\t\tprompt,\n\t\t\t\tstopSequences = [],\n\t\t\t\tmaxTokens = 8192,\n\t\t\t\ttemperature = 0.7,\n\t\t\t\tfrequencyPenalty = 0.7,\n\t\t\t\tpresencePenalty = 0.7,\n\t\t\t}: GenerateTextParams,\n\t\t) => {\n\t\t\treturn \"Never gonna make you cry, never gonna say goodbye, never gonna tell a lie and hurt you...\";\n\t\t},\n\t},\n\ttests: [\n\t\t{\n\t\t\tname: \"plugin_starter_test_suite\",\n\t\t\ttests: [\n\t\t\t\t{\n\t\t\t\t\tname: \"example_test\",\n\t\t\t\t\tfn: async (runtime) => {\n\t\t\t\t\t\tconsole.log(\"example_test run by \", runtime.character.name);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n\troutes: [\n\t\t{\n\t\t\tpath: \"/helloworld\",\n\t\t\ttype: \"GET\",\n\t\t\thandler: async (_req: any, res: any) => {\n\t\t\t\t// send a response\n\t\t\t\tres.json({\n\t\t\t\t\tmessage: \"Hello World!\",\n\t\t\t\t});\n\t\t\t},\n\t\t},\n\t],\n\tevents: {\n\t\tMESSAGE_RECEIVED: [\n\t\t\tasync (params) => {\n\t\t\t\tconsole.log(\"MESSAGE_RECEIVED event received\");\n\t\t\t\t// print the keys\n\t\t\t\tconsole.log(Object.keys(params));\n\t\t\t},\n\t\t],\n\t\tVOICE_MESSAGE_RECEIVED: [\n\t\t\tasync (params) => {\n\t\t\t\tconsole.log(\"VOICE_MESSAGE_RECEIVED event received\");\n\t\t\t\t// print the keys\n\t\t\t\tconsole.log(Object.keys(params));\n\t\t\t},\n\t\t],\n\t\tSERVER_CONNECTED: [\n\t\t\tasync (params) => {\n\t\t\t\tconsole.log(\"SERVER_CONNECTED event received\");\n\t\t\t\t// print the keys\n\t\t\t\tconsole.log(Object.keys(params));\n\t\t\t},\n\t\t],\n\t\tSERVER_JOINED: [\n\t\t\tasync (params) => {\n\t\t\t\tconsole.log(\"SERVER_JOINED event received\");\n\t\t\t\t// print the keys\n\t\t\t\tconsole.log(Object.keys(params));\n\t\t\t},\n\t\t],\n\t},\n\tservices: [StarterService],\n\tactions: [helloWorldAction],\n\tproviders: [helloWorldProvider],\n};\nexport default starterPlugin;\n"],"mappings":";AACA;AAAA,EAOC;AAAA,EACA;AAAA,EAIA;AAAA,OACM;AACP,SAAS,SAAS;AAElB,IAAM,eAAe,EAAE,OAAO;AAAA,EAC7B,aAAa,EACX,OAAO,EACP,IAAI,GAAG,6BAA6B,EACpC,SAAS,EACT,UAAU,CAAC,QAAQ;AACnB,QAAI,CAAC,KAAK;AACT,cAAQ,KAAK,mCAAmC;AAAA,IACjD;AACA,WAAO;AAAA,EACR,CAAC;AACH,CAAC;AAMD,IAAM,mBAA2B;AAAA,EAChC,MAAM;AAAA,EACN,SAAS,CAAC,SAAS,WAAW;AAAA,EAC9B,aAAa;AAAA,EAEb,UAAU,OACT,UACA,UACA,WACsB;AAEtB,WAAO;AAAA,EACR;AAAA,EAEA,SAAS,OACR,UACA,SACA,QACA,UACA,UACA,eACI;AACJ,QAAI;AACH,aAAO,KAAK,6BAA6B;AAGzC,YAAM,kBAA2B;AAAA,QAChC,MAAM;AAAA,QACN,SAAS,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;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,kBAAkB;AAAA,MACjB,OAAO,WAAW;AACjB,gBAAQ,IAAI,iCAAiC;AAE7C,gBAAQ,IAAI,OAAO,KAAK,MAAM,CAAC;AAAA,MAChC;AAAA,IACD;AAAA,IACA,wBAAwB;AAAA,MACvB,OAAO,WAAW;AACjB,gBAAQ,IAAI,uCAAuC;AAEnD,gBAAQ,IAAI,OAAO,KAAK,MAAM,CAAC;AAAA,MAChC;AAAA,IACD;AAAA,IACA,kBAAkB;AAAA,MACjB,OAAO,WAAW;AACjB,gBAAQ,IAAI,iCAAiC;AAE7C,gBAAQ,IAAI,OAAO,KAAK,MAAM,CAAC;AAAA,MAChC;AAAA,IACD;AAAA,IACA,eAAe;AAAA,MACd,OAAO,WAAW;AACjB,gBAAQ,IAAI,8BAA8B;AAE1C,gBAAQ,IAAI,OAAO,KAAK,MAAM,CAAC;AAAA,MAChC;AAAA,IACD;AAAA,EACD;AAAA,EACA,UAAU,CAAC,cAAc;AAAA,EACzB,SAAS,CAAC,gBAAgB;AAAA,EAC1B,WAAW,CAAC,kBAAkB;AAC/B;AACA,IAAO,gBAAQ;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elizaos/plugin-starter",
|
|
3
|
+
"description": "Plugin starter for elizaOS",
|
|
4
|
+
"version": "1.0.0-alpha.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
"./package.json": "./package.json",
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@elizaos/core": "1.0.0-alpha.0",
|
|
23
|
+
"zod": "3.21.4"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"tsup": "8.4.0"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup --format esm --dts",
|
|
30
|
+
"dev": "tsup --format esm --dts --watch",
|
|
31
|
+
"test": "vitest run"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"resolutions": {
|
|
37
|
+
"zod": "3.24.1"
|
|
38
|
+
},
|
|
39
|
+
"gitHead": "084c3b06c279b85528a81d42fc93ef68ff9f7364"
|
|
40
|
+
}
|