@elizaos/plugin-sql 1.6.0-alpha.0 → 1.6.0-alpha.4
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 +3254 -0
- package/dist/browser/index.browser.js.map +36 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/tsconfig.build.tsbuildinfo +1 -0
- package/dist/index.d.ts +2 -33
- package/dist/node/index.d.ts +2 -0
- package/dist/{index.js → node/index.node.js} +55 -4791
- package/dist/node/index.node.js.map +123 -0
- package/dist/node/tsconfig.build.node.tsbuildinfo +1 -0
- package/package.json +38 -13
- package/types/index.d.ts +19 -0
- package/dist/base.d.ts +0 -894
- package/dist/base.d.ts.map +0 -1
- package/dist/custom-migrator.d.ts +0 -75
- package/dist/custom-migrator.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -164
- package/dist/migration-service.d.ts +0 -12
- package/dist/migration-service.d.ts.map +0 -1
- package/dist/pg/adapter.d.ts +0 -76
- package/dist/pg/adapter.d.ts.map +0 -1
- package/dist/pg/manager.d.ts +0 -18
- package/dist/pg/manager.d.ts.map +0 -1
- package/dist/pglite/adapter.d.ts +0 -75
- package/dist/pglite/adapter.d.ts.map +0 -1
- package/dist/pglite/manager.d.ts +0 -22
- package/dist/pglite/manager.d.ts.map +0 -1
- package/dist/schema/agent.d.ts +0 -328
- package/dist/schema/agent.d.ts.map +0 -1
- package/dist/schema/cache.d.ts +0 -98
- package/dist/schema/cache.d.ts.map +0 -1
- package/dist/schema/channel.d.ts +0 -178
- package/dist/schema/channel.d.ts.map +0 -1
- package/dist/schema/channelParticipant.d.ts +0 -42
- package/dist/schema/channelParticipant.d.ts.map +0 -1
- package/dist/schema/component.d.ts +0 -164
- package/dist/schema/component.d.ts.map +0 -1
- package/dist/schema/embedding.d.ts +0 -194
- package/dist/schema/embedding.d.ts.map +0 -1
- package/dist/schema/entity.d.ts +0 -123
- package/dist/schema/entity.d.ts.map +0 -1
- package/dist/schema/factory.d.ts +0 -60
- package/dist/schema/factory.d.ts.map +0 -1
- package/dist/schema/index.d.ts +0 -18
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/log.d.ts +0 -115
- package/dist/schema/log.d.ts.map +0 -1
- package/dist/schema/memory.d.ts +0 -189
- package/dist/schema/memory.d.ts.map +0 -1
- package/dist/schema/message.d.ts +0 -2
- package/dist/schema/message.d.ts.map +0 -1
- package/dist/schema/messageServer.d.ts +0 -127
- package/dist/schema/messageServer.d.ts.map +0 -1
- package/dist/schema/participant.d.ts +0 -115
- package/dist/schema/participant.d.ts.map +0 -1
- package/dist/schema/relationship.d.ts +0 -157
- package/dist/schema/relationship.d.ts.map +0 -1
- package/dist/schema/room.d.ts +0 -193
- package/dist/schema/room.d.ts.map +0 -1
- package/dist/schema/serverAgent.d.ts +0 -42
- package/dist/schema/serverAgent.d.ts.map +0 -1
- package/dist/schema/tasks.d.ts +0 -226
- package/dist/schema/tasks.d.ts.map +0 -1
- package/dist/schema/types.d.ts +0 -69
- package/dist/schema/types.d.ts.map +0 -1
- package/dist/schema/world.d.ts +0 -115
- package/dist/schema/world.d.ts.map +0 -1
- package/dist/types.d.ts +0 -16
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -33
- package/dist/utils.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as schema from './schema';
|
|
4
|
-
/**
|
|
5
|
-
* Creates a database adapter based on the provided configuration.
|
|
6
|
-
* If a postgresUrl is provided in the config, a PgDatabaseAdapter is initialized using the PostgresConnectionManager.
|
|
7
|
-
* If no postgresUrl is provided, a PgliteDatabaseAdapter is initialized using PGliteClientManager with the dataDir from the config.
|
|
8
|
-
*
|
|
9
|
-
* @param {object} config - The configuration object.
|
|
10
|
-
* @param {string} [config.dataDir] - The directory where data is stored. Defaults to "./.eliza/.elizadb".
|
|
11
|
-
* @param {string} [config.postgresUrl] - The URL for the PostgreSQL database.
|
|
12
|
-
* @param {UUID} agentId - The unique identifier for the agent.
|
|
13
|
-
* @returns {IDatabaseAdapter} The created database adapter.
|
|
14
|
-
*/
|
|
15
|
-
export declare function createDatabaseAdapter(config: {
|
|
16
|
-
dataDir?: string;
|
|
17
|
-
postgresUrl?: string;
|
|
18
|
-
}, agentId: UUID): IDatabaseAdapter;
|
|
19
|
-
/**
|
|
20
|
-
* SQL plugin for database adapter using Drizzle ORM with dynamic plugin schema migrations
|
|
21
|
-
*
|
|
22
|
-
* @typedef {Object} Plugin
|
|
23
|
-
* @property {string} name - The name of the plugin
|
|
24
|
-
* @property {string} description - The description of the plugin
|
|
25
|
-
* @property {Function} init - The initialization function for the plugin
|
|
26
|
-
* @param {any} _ - Input parameter
|
|
27
|
-
* @param {IAgentRuntime} runtime - The runtime environment for the agent
|
|
28
|
-
*/
|
|
29
|
-
export declare const plugin: Plugin;
|
|
30
|
-
export default plugin;
|
|
31
|
-
export { DatabaseMigrationService } from './migration-service';
|
|
32
|
-
export { schema };
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from "./node/index";
|
|
2
|
+
export { default } from "./node/index";
|