@elizaos/plugin-sql 1.5.9-alpha.1 → 1.5.9-alpha.3
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 +25928 -0
- package/dist/browser/index.browser.js.map +137 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/{base.d.ts → browser/src/base.d.ts} +0 -1
- package/dist/browser/src/index.browser.d.ts +11 -0
- package/dist/{pglite → browser/src/pglite}/adapter.d.ts +0 -1
- package/dist/{pglite → browser/src/pglite}/manager.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/agent.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/cache.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/channel.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/channelParticipant.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/component.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/embedding.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/entity.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/factory.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/index.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/log.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/memory.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/message.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/messageServer.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/participant.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/relationship.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/room.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/serverAgent.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/tasks.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/types.d.ts +0 -1
- package/dist/{schema → browser/src/schema}/world.d.ts +0 -1
- package/dist/{types.d.ts → browser/src/types.d.ts} +0 -1
- package/dist/browser/src/utils.browser.d.ts +21 -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} +18 -18
- package/dist/{index.js.map → node/index.node.js.map} +5 -5
- package/dist/node/src/base.d.ts +893 -0
- package/dist/{custom-migrator.d.ts → node/src/custom-migrator.d.ts} +0 -1
- package/dist/node/src/index.d.ts +32 -0
- package/dist/node/src/index.node.d.ts +9 -0
- package/dist/{migration-service.d.ts → node/src/migration-service.d.ts} +0 -1
- package/dist/{pg → node/src/pg}/adapter.d.ts +0 -1
- package/dist/{pg → node/src/pg}/manager.d.ts +0 -1
- package/dist/node/src/pglite/adapter.d.ts +74 -0
- package/dist/node/src/pglite/manager.d.ts +21 -0
- package/dist/node/src/schema/agent.d.ts +327 -0
- package/dist/node/src/schema/cache.d.ts +97 -0
- package/dist/node/src/schema/channel.d.ts +177 -0
- package/dist/node/src/schema/channelParticipant.d.ts +41 -0
- package/dist/node/src/schema/component.d.ts +163 -0
- package/dist/node/src/schema/embedding.d.ts +193 -0
- package/dist/node/src/schema/entity.d.ts +122 -0
- package/dist/node/src/schema/factory.d.ts +59 -0
- package/dist/node/src/schema/index.d.ts +17 -0
- package/dist/node/src/schema/log.d.ts +114 -0
- package/dist/node/src/schema/memory.d.ts +188 -0
- package/dist/node/src/schema/message.d.ts +1 -0
- package/dist/node/src/schema/messageServer.d.ts +126 -0
- package/dist/node/src/schema/participant.d.ts +114 -0
- package/dist/node/src/schema/relationship.d.ts +156 -0
- package/dist/node/src/schema/room.d.ts +192 -0
- package/dist/node/src/schema/serverAgent.d.ts +41 -0
- package/dist/node/src/schema/tasks.d.ts +225 -0
- package/dist/node/src/schema/types.d.ts +68 -0
- package/dist/node/src/schema/world.d.ts +114 -0
- package/dist/node/src/types.d.ts +15 -0
- package/dist/{utils.d.ts → node/src/utils.d.ts} +0 -1
- package/dist/node/src/utils.node.d.ts +6 -0
- package/dist/node/tsconfig.build.node.tsbuildinfo +1 -0
- package/package.json +21 -14
- package/types/index.d.ts +21 -0
- package/dist/base.d.ts.map +0 -1
- package/dist/custom-migrator.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/migration-service.d.ts.map +0 -1
- package/dist/pg/adapter.d.ts.map +0 -1
- package/dist/pg/manager.d.ts.map +0 -1
- package/dist/pglite/adapter.d.ts.map +0 -1
- package/dist/pglite/manager.d.ts.map +0 -1
- package/dist/schema/agent.d.ts.map +0 -1
- package/dist/schema/cache.d.ts.map +0 -1
- package/dist/schema/channel.d.ts.map +0 -1
- package/dist/schema/channelParticipant.d.ts.map +0 -1
- package/dist/schema/component.d.ts.map +0 -1
- package/dist/schema/embedding.d.ts.map +0 -1
- package/dist/schema/entity.d.ts.map +0 -1
- package/dist/schema/factory.d.ts.map +0 -1
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/log.d.ts.map +0 -1
- package/dist/schema/memory.d.ts.map +0 -1
- package/dist/schema/message.d.ts.map +0 -1
- package/dist/schema/messageServer.d.ts.map +0 -1
- package/dist/schema/participant.d.ts.map +0 -1
- package/dist/schema/relationship.d.ts.map +0 -1
- package/dist/schema/room.d.ts.map +0 -1
- package/dist/schema/serverAgent.d.ts.map +0 -1
- package/dist/schema/tasks.d.ts.map +0 -1
- package/dist/schema/types.d.ts.map +0 -1
- package/dist/schema/world.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IDatabaseAdapter, UUID } from '@elizaos/core';
|
|
2
|
+
import { type Plugin } from '@elizaos/core';
|
|
3
|
+
/**
|
|
4
|
+
* Create a PGlite adapter for the browser (in-memory by default).
|
|
5
|
+
* No Postgres fallback in browser builds.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createDatabaseAdapter(_config: {
|
|
8
|
+
dataDir?: string;
|
|
9
|
+
}, agentId: UUID): IDatabaseAdapter;
|
|
10
|
+
export declare const plugin: Plugin;
|
|
11
|
+
export default plugin;
|
|
@@ -191,4 +191,3 @@ export type EmbeddingDimensionColumn = 'dim384' | 'dim512' | 'dim768' | 'dim1024
|
|
|
191
191
|
* Retrieve the type of a specific column in the EmbeddingTable based on the EmbeddingDimensionColumn key.
|
|
192
192
|
*/
|
|
193
193
|
export type EmbeddingTableColumn = (typeof embeddingTable._.columns)[EmbeddingDimensionColumn];
|
|
194
|
-
//# sourceMappingURL=embedding.d.ts.map
|
|
@@ -186,4 +186,3 @@ export declare const memoryTable: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
186
186
|
export declare const memoryRelations: import("drizzle-orm").Relations<"memories", {
|
|
187
187
|
embedding: import("drizzle-orm").One<"embeddings", false>;
|
|
188
188
|
}>;
|
|
189
|
-
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-safe utils for plugin-sql
|
|
3
|
+
*
|
|
4
|
+
* These versions avoid Node-specific modules (fs/path/dotenv) and simply
|
|
5
|
+
* provide minimal fallbacks appropriate for browser builds.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Expand a tilde-prefixed path.
|
|
9
|
+
* In the browser, paths are not used for storage; just return input.
|
|
10
|
+
*/
|
|
11
|
+
export declare function expandTildePath(filepath: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Resolve an env file path.
|
|
14
|
+
* No-op in browser; returns a placeholder string.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveEnvFile(_startDir?: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Resolve PGlite data directory.
|
|
19
|
+
* In browser builds we default to in-memory PGlite; return a stable placeholder.
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolvePgliteDir(_dir?: string, _fallbackDir?: string): string;
|