@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.
Files changed (71) hide show
  1. package/dist/browser/index.browser.js +3254 -0
  2. package/dist/browser/index.browser.js.map +36 -0
  3. package/dist/browser/index.d.ts +2 -0
  4. package/dist/browser/tsconfig.build.tsbuildinfo +1 -0
  5. package/dist/index.d.ts +2 -33
  6. package/dist/node/index.d.ts +2 -0
  7. package/dist/{index.js → node/index.node.js} +55 -4791
  8. package/dist/node/index.node.js.map +123 -0
  9. package/dist/node/tsconfig.build.node.tsbuildinfo +1 -0
  10. package/package.json +38 -13
  11. package/types/index.d.ts +19 -0
  12. package/dist/base.d.ts +0 -894
  13. package/dist/base.d.ts.map +0 -1
  14. package/dist/custom-migrator.d.ts +0 -75
  15. package/dist/custom-migrator.d.ts.map +0 -1
  16. package/dist/index.d.ts.map +0 -1
  17. package/dist/index.js.map +0 -164
  18. package/dist/migration-service.d.ts +0 -12
  19. package/dist/migration-service.d.ts.map +0 -1
  20. package/dist/pg/adapter.d.ts +0 -76
  21. package/dist/pg/adapter.d.ts.map +0 -1
  22. package/dist/pg/manager.d.ts +0 -18
  23. package/dist/pg/manager.d.ts.map +0 -1
  24. package/dist/pglite/adapter.d.ts +0 -75
  25. package/dist/pglite/adapter.d.ts.map +0 -1
  26. package/dist/pglite/manager.d.ts +0 -22
  27. package/dist/pglite/manager.d.ts.map +0 -1
  28. package/dist/schema/agent.d.ts +0 -328
  29. package/dist/schema/agent.d.ts.map +0 -1
  30. package/dist/schema/cache.d.ts +0 -98
  31. package/dist/schema/cache.d.ts.map +0 -1
  32. package/dist/schema/channel.d.ts +0 -178
  33. package/dist/schema/channel.d.ts.map +0 -1
  34. package/dist/schema/channelParticipant.d.ts +0 -42
  35. package/dist/schema/channelParticipant.d.ts.map +0 -1
  36. package/dist/schema/component.d.ts +0 -164
  37. package/dist/schema/component.d.ts.map +0 -1
  38. package/dist/schema/embedding.d.ts +0 -194
  39. package/dist/schema/embedding.d.ts.map +0 -1
  40. package/dist/schema/entity.d.ts +0 -123
  41. package/dist/schema/entity.d.ts.map +0 -1
  42. package/dist/schema/factory.d.ts +0 -60
  43. package/dist/schema/factory.d.ts.map +0 -1
  44. package/dist/schema/index.d.ts +0 -18
  45. package/dist/schema/index.d.ts.map +0 -1
  46. package/dist/schema/log.d.ts +0 -115
  47. package/dist/schema/log.d.ts.map +0 -1
  48. package/dist/schema/memory.d.ts +0 -189
  49. package/dist/schema/memory.d.ts.map +0 -1
  50. package/dist/schema/message.d.ts +0 -2
  51. package/dist/schema/message.d.ts.map +0 -1
  52. package/dist/schema/messageServer.d.ts +0 -127
  53. package/dist/schema/messageServer.d.ts.map +0 -1
  54. package/dist/schema/participant.d.ts +0 -115
  55. package/dist/schema/participant.d.ts.map +0 -1
  56. package/dist/schema/relationship.d.ts +0 -157
  57. package/dist/schema/relationship.d.ts.map +0 -1
  58. package/dist/schema/room.d.ts +0 -193
  59. package/dist/schema/room.d.ts.map +0 -1
  60. package/dist/schema/serverAgent.d.ts +0 -42
  61. package/dist/schema/serverAgent.d.ts.map +0 -1
  62. package/dist/schema/tasks.d.ts +0 -226
  63. package/dist/schema/tasks.d.ts.map +0 -1
  64. package/dist/schema/types.d.ts +0 -69
  65. package/dist/schema/types.d.ts.map +0 -1
  66. package/dist/schema/world.d.ts +0 -115
  67. package/dist/schema/world.d.ts.map +0 -1
  68. package/dist/types.d.ts +0 -16
  69. package/dist/types.d.ts.map +0 -1
  70. package/dist/utils.d.ts +0 -33
  71. package/dist/utils.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,33 +1,2 @@
1
- import type { IDatabaseAdapter, UUID } from '@elizaos/core';
2
- import { type Plugin } from '@elizaos/core';
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";
@@ -0,0 +1,2 @@
1
+ export * from "./index.node";
2
+ export { default } from "./index.node";