@elizaos/plugin-sql 1.6.5-alpha.13 → 1.6.5-alpha.15
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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/node/index.d.ts +2 -2
- package/dist/node/tsconfig.build.node.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/dist/browser/base.d.ts +0 -965
- package/dist/browser/index.browser.d.ts +0 -11
- package/dist/browser/migration-service.d.ts +0 -43
- package/dist/browser/migrations.d.ts +0 -15
- package/dist/browser/pglite/adapter.d.ts +0 -76
- package/dist/browser/pglite/manager.d.ts +0 -21
- package/dist/browser/rls.d.ts +0 -156
- package/dist/browser/runtime-migrator/drizzle-adapters/database-introspector.d.ts +0 -62
- package/dist/browser/runtime-migrator/drizzle-adapters/diff-calculator.d.ts +0 -59
- package/dist/browser/runtime-migrator/drizzle-adapters/snapshot-generator.d.ts +0 -18
- package/dist/browser/runtime-migrator/drizzle-adapters/sql-generator.d.ts +0 -38
- package/dist/browser/runtime-migrator/extension-manager.d.ts +0 -6
- package/dist/browser/runtime-migrator/index.d.ts +0 -8
- package/dist/browser/runtime-migrator/runtime-migrator.d.ts +0 -96
- package/dist/browser/runtime-migrator/schema-transformer.d.ts +0 -16
- package/dist/browser/runtime-migrator/storage/journal-storage.d.ts +0 -10
- package/dist/browser/runtime-migrator/storage/migration-tracker.d.ts +0 -13
- package/dist/browser/runtime-migrator/storage/snapshot-storage.d.ts +0 -9
- package/dist/browser/runtime-migrator/types.d.ts +0 -48
- package/dist/browser/schema/agent.d.ts +0 -344
- package/dist/browser/schema/cache.d.ts +0 -97
- package/dist/browser/schema/channel.d.ts +0 -177
- package/dist/browser/schema/channelParticipant.d.ts +0 -41
- package/dist/browser/schema/component.d.ts +0 -163
- package/dist/browser/schema/embedding.d.ts +0 -193
- package/dist/browser/schema/entity.d.ts +0 -122
- package/dist/browser/schema/index.d.ts +0 -18
- package/dist/browser/schema/log.d.ts +0 -114
- package/dist/browser/schema/memory.d.ts +0 -188
- package/dist/browser/schema/message.d.ts +0 -1
- package/dist/browser/schema/messageServer.d.ts +0 -126
- package/dist/browser/schema/messageServerAgent.d.ts +0 -41
- package/dist/browser/schema/participant.d.ts +0 -114
- package/dist/browser/schema/relationship.d.ts +0 -156
- package/dist/browser/schema/room.d.ts +0 -192
- package/dist/browser/schema/server.d.ts +0 -64
- package/dist/browser/schema/tasks.d.ts +0 -225
- package/dist/browser/schema/types.d.ts +0 -68
- package/dist/browser/schema/world.d.ts +0 -114
- package/dist/browser/src/base.d.ts +0 -965
- package/dist/browser/src/index.browser.d.ts +0 -11
- package/dist/browser/src/migration-service.d.ts +0 -43
- package/dist/browser/src/migrations.d.ts +0 -15
- package/dist/browser/src/pglite/adapter.d.ts +0 -76
- package/dist/browser/src/pglite/manager.d.ts +0 -21
- package/dist/browser/src/rls.d.ts +0 -156
- package/dist/browser/src/runtime-migrator/drizzle-adapters/database-introspector.d.ts +0 -62
- package/dist/browser/src/runtime-migrator/drizzle-adapters/diff-calculator.d.ts +0 -59
- package/dist/browser/src/runtime-migrator/drizzle-adapters/snapshot-generator.d.ts +0 -18
- package/dist/browser/src/runtime-migrator/drizzle-adapters/sql-generator.d.ts +0 -38
- package/dist/browser/src/runtime-migrator/extension-manager.d.ts +0 -6
- package/dist/browser/src/runtime-migrator/index.d.ts +0 -8
- package/dist/browser/src/runtime-migrator/runtime-migrator.d.ts +0 -96
- package/dist/browser/src/runtime-migrator/schema-transformer.d.ts +0 -16
- package/dist/browser/src/runtime-migrator/storage/journal-storage.d.ts +0 -10
- package/dist/browser/src/runtime-migrator/storage/migration-tracker.d.ts +0 -13
- package/dist/browser/src/runtime-migrator/storage/snapshot-storage.d.ts +0 -9
- package/dist/browser/src/runtime-migrator/types.d.ts +0 -48
- package/dist/browser/src/schema/agent.d.ts +0 -344
- package/dist/browser/src/schema/cache.d.ts +0 -97
- package/dist/browser/src/schema/channel.d.ts +0 -177
- package/dist/browser/src/schema/channelParticipant.d.ts +0 -41
- package/dist/browser/src/schema/component.d.ts +0 -163
- package/dist/browser/src/schema/embedding.d.ts +0 -193
- package/dist/browser/src/schema/entity.d.ts +0 -122
- package/dist/browser/src/schema/index.d.ts +0 -18
- package/dist/browser/src/schema/log.d.ts +0 -114
- package/dist/browser/src/schema/memory.d.ts +0 -188
- package/dist/browser/src/schema/message.d.ts +0 -1
- package/dist/browser/src/schema/messageServer.d.ts +0 -126
- package/dist/browser/src/schema/messageServerAgent.d.ts +0 -41
- package/dist/browser/src/schema/participant.d.ts +0 -114
- package/dist/browser/src/schema/relationship.d.ts +0 -156
- package/dist/browser/src/schema/room.d.ts +0 -192
- package/dist/browser/src/schema/server.d.ts +0 -64
- package/dist/browser/src/schema/tasks.d.ts +0 -225
- package/dist/browser/src/schema/types.d.ts +0 -68
- package/dist/browser/src/schema/world.d.ts +0 -114
- package/dist/browser/src/types.d.ts +0 -15
- package/dist/browser/src/utils.browser.d.ts +0 -21
- package/dist/browser/types.d.ts +0 -15
- package/dist/browser/utils.browser.d.ts +0 -21
- package/dist/node/src/base.d.ts +0 -965
- package/dist/node/src/index.d.ts +0 -33
- package/dist/node/src/index.node.d.ts +0 -10
- package/dist/node/src/migration-service.d.ts +0 -43
- package/dist/node/src/migrations.d.ts +0 -15
- package/dist/node/src/pg/adapter.d.ts +0 -78
- package/dist/node/src/pg/manager.d.ts +0 -33
- package/dist/node/src/pglite/adapter.d.ts +0 -76
- package/dist/node/src/pglite/manager.d.ts +0 -21
- package/dist/node/src/rls.d.ts +0 -156
- package/dist/node/src/runtime-migrator/drizzle-adapters/database-introspector.d.ts +0 -62
- package/dist/node/src/runtime-migrator/drizzle-adapters/diff-calculator.d.ts +0 -59
- package/dist/node/src/runtime-migrator/drizzle-adapters/snapshot-generator.d.ts +0 -18
- package/dist/node/src/runtime-migrator/drizzle-adapters/sql-generator.d.ts +0 -38
- package/dist/node/src/runtime-migrator/extension-manager.d.ts +0 -6
- package/dist/node/src/runtime-migrator/index.d.ts +0 -8
- package/dist/node/src/runtime-migrator/runtime-migrator.d.ts +0 -96
- package/dist/node/src/runtime-migrator/schema-transformer.d.ts +0 -16
- package/dist/node/src/runtime-migrator/storage/journal-storage.d.ts +0 -10
- package/dist/node/src/runtime-migrator/storage/migration-tracker.d.ts +0 -13
- package/dist/node/src/runtime-migrator/storage/snapshot-storage.d.ts +0 -9
- package/dist/node/src/runtime-migrator/types.d.ts +0 -48
- package/dist/node/src/schema/agent.d.ts +0 -344
- package/dist/node/src/schema/cache.d.ts +0 -97
- package/dist/node/src/schema/channel.d.ts +0 -177
- package/dist/node/src/schema/channelParticipant.d.ts +0 -41
- package/dist/node/src/schema/component.d.ts +0 -163
- package/dist/node/src/schema/embedding.d.ts +0 -193
- package/dist/node/src/schema/entity.d.ts +0 -122
- package/dist/node/src/schema/index.d.ts +0 -18
- package/dist/node/src/schema/log.d.ts +0 -114
- package/dist/node/src/schema/memory.d.ts +0 -188
- package/dist/node/src/schema/message.d.ts +0 -1
- package/dist/node/src/schema/messageServer.d.ts +0 -126
- package/dist/node/src/schema/messageServerAgent.d.ts +0 -41
- package/dist/node/src/schema/participant.d.ts +0 -114
- package/dist/node/src/schema/relationship.d.ts +0 -156
- package/dist/node/src/schema/room.d.ts +0 -192
- package/dist/node/src/schema/server.d.ts +0 -64
- package/dist/node/src/schema/tasks.d.ts +0 -225
- package/dist/node/src/schema/types.d.ts +0 -68
- package/dist/node/src/schema/world.d.ts +0 -114
- package/dist/node/src/types.d.ts +0 -15
- package/dist/node/src/utils.d.ts +0 -32
- package/dist/node/src/utils.node.d.ts +0 -6
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { DrizzleDB, RuntimeMigrationOptions } from './types';
|
|
2
|
-
import { type DataLossCheck } from './drizzle-adapters/sql-generator';
|
|
3
|
-
export declare class RuntimeMigrator {
|
|
4
|
-
private db;
|
|
5
|
-
private migrationTracker;
|
|
6
|
-
private journalStorage;
|
|
7
|
-
private snapshotStorage;
|
|
8
|
-
private extensionManager;
|
|
9
|
-
private introspector;
|
|
10
|
-
constructor(db: DrizzleDB);
|
|
11
|
-
/**
|
|
12
|
-
* Get expected schema name for a plugin
|
|
13
|
-
* @elizaos/plugin-sql uses 'public' schema (core application)
|
|
14
|
-
* All other plugins should use namespaced schemas
|
|
15
|
-
*/
|
|
16
|
-
private getExpectedSchemaName;
|
|
17
|
-
/**
|
|
18
|
-
* Ensure all schemas used in the snapshot exist
|
|
19
|
-
*/
|
|
20
|
-
private ensureSchemasExist;
|
|
21
|
-
/**
|
|
22
|
-
* Validate schema usage and provide warnings
|
|
23
|
-
*/
|
|
24
|
-
private validateSchemaUsage;
|
|
25
|
-
/**
|
|
26
|
-
* Generate a stable advisory lock ID from plugin name
|
|
27
|
-
* PostgreSQL advisory locks use bigint, so we need to hash the plugin name
|
|
28
|
-
* and convert to a stable bigint value
|
|
29
|
-
*/
|
|
30
|
-
private getAdvisoryLockId;
|
|
31
|
-
/**
|
|
32
|
-
* Validate that a value is a valid PostgreSQL bigint
|
|
33
|
-
* PostgreSQL bigint range: -9223372036854775808 to 9223372036854775807
|
|
34
|
-
*/
|
|
35
|
-
private validateBigInt;
|
|
36
|
-
/**
|
|
37
|
-
* Detect if a connection string represents a real PostgreSQL database
|
|
38
|
-
* (not PGLite, in-memory, or other non-PostgreSQL databases)
|
|
39
|
-
*
|
|
40
|
-
* This method handles various connection string formats including:
|
|
41
|
-
* - Standard postgres:// and postgresql:// URLs
|
|
42
|
-
* - Cloud provider URLs (AWS, Azure, GCP, Supabase, Neon, etc.)
|
|
43
|
-
* - Connection strings with query parameters
|
|
44
|
-
* - Non-standard schemes (pgbouncer://, etc.)
|
|
45
|
-
* - IP addresses with ports
|
|
46
|
-
*
|
|
47
|
-
* @param connectionUrl - Database connection string to check
|
|
48
|
-
* @returns true if this is a real PostgreSQL database connection
|
|
49
|
-
*/
|
|
50
|
-
private isRealPostgresDatabase;
|
|
51
|
-
/**
|
|
52
|
-
* Initialize migration system - create necessary tables
|
|
53
|
-
* @throws Error if table creation fails
|
|
54
|
-
*/
|
|
55
|
-
initialize(): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* Run migrations for a plugin/schema
|
|
58
|
-
* @param pluginName - Plugin identifier
|
|
59
|
-
* @param schema - Drizzle schema object
|
|
60
|
-
* @param options - Migration options (verbose, force, dryRun, allowDataLoss)
|
|
61
|
-
* @throws Error if destructive migrations blocked or migration fails
|
|
62
|
-
*/
|
|
63
|
-
migrate(pluginName: string, schema: any, options?: RuntimeMigrationOptions): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* Execute migration in a transaction
|
|
66
|
-
*/
|
|
67
|
-
private executeMigration;
|
|
68
|
-
/**
|
|
69
|
-
* Generate migration tag (like 0000_jazzy_shard)
|
|
70
|
-
*/
|
|
71
|
-
private generateMigrationTag;
|
|
72
|
-
/**
|
|
73
|
-
* Get migration status for a plugin
|
|
74
|
-
* @param pluginName - Plugin identifier
|
|
75
|
-
* @returns Migration history and current state
|
|
76
|
-
*/
|
|
77
|
-
getStatus(pluginName: string): Promise<{
|
|
78
|
-
hasRun: boolean;
|
|
79
|
-
lastMigration: any;
|
|
80
|
-
journal: any;
|
|
81
|
-
snapshots: number;
|
|
82
|
-
}>;
|
|
83
|
-
/**
|
|
84
|
-
* Reset migrations for a plugin (dangerous - for development only)
|
|
85
|
-
* @param pluginName - Plugin identifier
|
|
86
|
-
* @warning Deletes all migration history - use only in development
|
|
87
|
-
*/
|
|
88
|
-
reset(pluginName: string): Promise<void>;
|
|
89
|
-
/**
|
|
90
|
-
* Check if a migration would cause data loss without executing it
|
|
91
|
-
* @param pluginName - Plugin identifier
|
|
92
|
-
* @param schema - Drizzle schema to check
|
|
93
|
-
* @returns Data loss analysis or null if no changes
|
|
94
|
-
*/
|
|
95
|
-
checkMigration(pluginName: string, schema: any): Promise<DataLossCheck | null>;
|
|
96
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transform a plugin's schema to use the appropriate namespace
|
|
3
|
-
*
|
|
4
|
-
* @elizaos/plugin-sql uses 'public' schema (no transformation)
|
|
5
|
-
* Other plugins get their tables wrapped in a namespaced schema
|
|
6
|
-
*/
|
|
7
|
-
export declare function transformPluginSchema(pluginName: string, schema: any): any;
|
|
8
|
-
/**
|
|
9
|
-
* Derive a valid PostgreSQL schema name from a plugin name
|
|
10
|
-
*/
|
|
11
|
-
export declare function deriveSchemaName(pluginName: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Create a namespaced schema helper for plugins
|
|
14
|
-
* This is what plugins should ideally use to define their tables
|
|
15
|
-
*/
|
|
16
|
-
export declare function createPluginSchema(pluginName: string): import("drizzle-orm/pg-core").PgSchema<string>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DrizzleDB, Journal, JournalEntry } from '../types';
|
|
2
|
-
export declare class JournalStorage {
|
|
3
|
-
private db;
|
|
4
|
-
constructor(db: DrizzleDB);
|
|
5
|
-
loadJournal(pluginName: string): Promise<Journal | null>;
|
|
6
|
-
saveJournal(pluginName: string, journal: Journal): Promise<void>;
|
|
7
|
-
addEntry(pluginName: string, entry: JournalEntry): Promise<void>;
|
|
8
|
-
getNextIdx(pluginName: string): Promise<number>;
|
|
9
|
-
updateJournal(pluginName: string, idx: number, tag: string, breakpoints?: boolean): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DrizzleDB } from '../types';
|
|
2
|
-
export declare class MigrationTracker {
|
|
3
|
-
private db;
|
|
4
|
-
constructor(db: DrizzleDB);
|
|
5
|
-
ensureSchema(): Promise<void>;
|
|
6
|
-
ensureTables(): Promise<void>;
|
|
7
|
-
getLastMigration(pluginName: string): Promise<{
|
|
8
|
-
id: number;
|
|
9
|
-
hash: string;
|
|
10
|
-
created_at: string;
|
|
11
|
-
} | null>;
|
|
12
|
-
recordMigration(pluginName: string, hash: string, createdAt: number): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DrizzleDB, SchemaSnapshot } from '../types';
|
|
2
|
-
export declare class SnapshotStorage {
|
|
3
|
-
private db;
|
|
4
|
-
constructor(db: DrizzleDB);
|
|
5
|
-
saveSnapshot(pluginName: string, idx: number, snapshot: SchemaSnapshot): Promise<void>;
|
|
6
|
-
loadSnapshot(pluginName: string, idx: number): Promise<SchemaSnapshot | null>;
|
|
7
|
-
getLatestSnapshot(pluginName: string): Promise<SchemaSnapshot | null>;
|
|
8
|
-
getAllSnapshots(pluginName: string): Promise<SchemaSnapshot[]>;
|
|
9
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
2
|
-
import type { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
3
|
-
export type DrizzleDB = NodePgDatabase | PgliteDatabase;
|
|
4
|
-
export interface Journal {
|
|
5
|
-
version: string;
|
|
6
|
-
dialect: string;
|
|
7
|
-
entries: JournalEntry[];
|
|
8
|
-
}
|
|
9
|
-
export interface JournalEntry {
|
|
10
|
-
idx: number;
|
|
11
|
-
version: string;
|
|
12
|
-
when: number;
|
|
13
|
-
tag: string;
|
|
14
|
-
breakpoints: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface MigrationMeta {
|
|
17
|
-
sql: string[];
|
|
18
|
-
folderMillis: number;
|
|
19
|
-
hash: string;
|
|
20
|
-
bps: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface SchemaSnapshot {
|
|
23
|
-
version: string;
|
|
24
|
-
dialect: string;
|
|
25
|
-
tables: any;
|
|
26
|
-
schemas: any;
|
|
27
|
-
enums?: any;
|
|
28
|
-
_meta: {
|
|
29
|
-
schemas: any;
|
|
30
|
-
tables: any;
|
|
31
|
-
columns: any;
|
|
32
|
-
};
|
|
33
|
-
internal?: any;
|
|
34
|
-
}
|
|
35
|
-
export interface MigrationOptions {
|
|
36
|
-
migrationsTable?: string;
|
|
37
|
-
migrationsSchema?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface RuntimeMigrationOptions {
|
|
40
|
-
/** Run without executing SQL statements */
|
|
41
|
-
dryRun?: boolean;
|
|
42
|
-
/** Log detailed information about the migration */
|
|
43
|
-
verbose?: boolean;
|
|
44
|
-
/** Force migration even in production with destructive changes */
|
|
45
|
-
force?: boolean;
|
|
46
|
-
/** Allow operations that will cause data loss (tables/columns being dropped) */
|
|
47
|
-
allowDataLoss?: boolean;
|
|
48
|
-
}
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
import type { MessageExample } from '@elizaos/core';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a table for storing agent data.
|
|
4
|
-
*
|
|
5
|
-
* @type {Table}
|
|
6
|
-
*/
|
|
7
|
-
export declare const agentTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
8
|
-
name: "agents";
|
|
9
|
-
schema: undefined;
|
|
10
|
-
columns: {
|
|
11
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
12
|
-
name: "id";
|
|
13
|
-
tableName: "agents";
|
|
14
|
-
dataType: "string";
|
|
15
|
-
columnType: "PgUUID";
|
|
16
|
-
data: string;
|
|
17
|
-
driverParam: string;
|
|
18
|
-
notNull: true;
|
|
19
|
-
hasDefault: true;
|
|
20
|
-
isPrimaryKey: true;
|
|
21
|
-
isAutoincrement: false;
|
|
22
|
-
hasRuntimeDefault: false;
|
|
23
|
-
enumValues: undefined;
|
|
24
|
-
baseColumn: never;
|
|
25
|
-
identity: undefined;
|
|
26
|
-
generated: undefined;
|
|
27
|
-
}, {}, {}>;
|
|
28
|
-
enabled: import("drizzle-orm/pg-core").PgColumn<{
|
|
29
|
-
name: "enabled";
|
|
30
|
-
tableName: "agents";
|
|
31
|
-
dataType: "boolean";
|
|
32
|
-
columnType: "PgBoolean";
|
|
33
|
-
data: boolean;
|
|
34
|
-
driverParam: boolean;
|
|
35
|
-
notNull: true;
|
|
36
|
-
hasDefault: true;
|
|
37
|
-
isPrimaryKey: false;
|
|
38
|
-
isAutoincrement: false;
|
|
39
|
-
hasRuntimeDefault: false;
|
|
40
|
-
enumValues: undefined;
|
|
41
|
-
baseColumn: never;
|
|
42
|
-
identity: undefined;
|
|
43
|
-
generated: undefined;
|
|
44
|
-
}, {}, {}>;
|
|
45
|
-
server_id: import("drizzle-orm/pg-core").PgColumn<{
|
|
46
|
-
name: "server_id";
|
|
47
|
-
tableName: "agents";
|
|
48
|
-
dataType: "string";
|
|
49
|
-
columnType: "PgUUID";
|
|
50
|
-
data: string;
|
|
51
|
-
driverParam: string;
|
|
52
|
-
notNull: false;
|
|
53
|
-
hasDefault: false;
|
|
54
|
-
isPrimaryKey: false;
|
|
55
|
-
isAutoincrement: false;
|
|
56
|
-
hasRuntimeDefault: false;
|
|
57
|
-
enumValues: undefined;
|
|
58
|
-
baseColumn: never;
|
|
59
|
-
identity: undefined;
|
|
60
|
-
generated: undefined;
|
|
61
|
-
}, {}, {}>;
|
|
62
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
63
|
-
name: "created_at";
|
|
64
|
-
tableName: "agents";
|
|
65
|
-
dataType: "date";
|
|
66
|
-
columnType: "PgTimestamp";
|
|
67
|
-
data: Date;
|
|
68
|
-
driverParam: string;
|
|
69
|
-
notNull: true;
|
|
70
|
-
hasDefault: true;
|
|
71
|
-
isPrimaryKey: false;
|
|
72
|
-
isAutoincrement: false;
|
|
73
|
-
hasRuntimeDefault: false;
|
|
74
|
-
enumValues: undefined;
|
|
75
|
-
baseColumn: never;
|
|
76
|
-
identity: undefined;
|
|
77
|
-
generated: undefined;
|
|
78
|
-
}, {}, {}>;
|
|
79
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
80
|
-
name: "updated_at";
|
|
81
|
-
tableName: "agents";
|
|
82
|
-
dataType: "date";
|
|
83
|
-
columnType: "PgTimestamp";
|
|
84
|
-
data: Date;
|
|
85
|
-
driverParam: string;
|
|
86
|
-
notNull: true;
|
|
87
|
-
hasDefault: true;
|
|
88
|
-
isPrimaryKey: false;
|
|
89
|
-
isAutoincrement: false;
|
|
90
|
-
hasRuntimeDefault: false;
|
|
91
|
-
enumValues: undefined;
|
|
92
|
-
baseColumn: never;
|
|
93
|
-
identity: undefined;
|
|
94
|
-
generated: undefined;
|
|
95
|
-
}, {}, {}>;
|
|
96
|
-
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
97
|
-
name: "name";
|
|
98
|
-
tableName: "agents";
|
|
99
|
-
dataType: "string";
|
|
100
|
-
columnType: "PgText";
|
|
101
|
-
data: string;
|
|
102
|
-
driverParam: string;
|
|
103
|
-
notNull: true;
|
|
104
|
-
hasDefault: false;
|
|
105
|
-
isPrimaryKey: false;
|
|
106
|
-
isAutoincrement: false;
|
|
107
|
-
hasRuntimeDefault: false;
|
|
108
|
-
enumValues: [string, ...string[]];
|
|
109
|
-
baseColumn: never;
|
|
110
|
-
identity: undefined;
|
|
111
|
-
generated: undefined;
|
|
112
|
-
}, {}, {}>;
|
|
113
|
-
username: import("drizzle-orm/pg-core").PgColumn<{
|
|
114
|
-
name: "username";
|
|
115
|
-
tableName: "agents";
|
|
116
|
-
dataType: "string";
|
|
117
|
-
columnType: "PgText";
|
|
118
|
-
data: string;
|
|
119
|
-
driverParam: string;
|
|
120
|
-
notNull: false;
|
|
121
|
-
hasDefault: false;
|
|
122
|
-
isPrimaryKey: false;
|
|
123
|
-
isAutoincrement: false;
|
|
124
|
-
hasRuntimeDefault: false;
|
|
125
|
-
enumValues: [string, ...string[]];
|
|
126
|
-
baseColumn: never;
|
|
127
|
-
identity: undefined;
|
|
128
|
-
generated: undefined;
|
|
129
|
-
}, {}, {}>;
|
|
130
|
-
system: import("drizzle-orm/pg-core").PgColumn<{
|
|
131
|
-
name: "system";
|
|
132
|
-
tableName: "agents";
|
|
133
|
-
dataType: "string";
|
|
134
|
-
columnType: "PgText";
|
|
135
|
-
data: string;
|
|
136
|
-
driverParam: string;
|
|
137
|
-
notNull: false;
|
|
138
|
-
hasDefault: true;
|
|
139
|
-
isPrimaryKey: false;
|
|
140
|
-
isAutoincrement: false;
|
|
141
|
-
hasRuntimeDefault: false;
|
|
142
|
-
enumValues: [string, ...string[]];
|
|
143
|
-
baseColumn: never;
|
|
144
|
-
identity: undefined;
|
|
145
|
-
generated: undefined;
|
|
146
|
-
}, {}, {}>;
|
|
147
|
-
bio: import("drizzle-orm/pg-core").PgColumn<{
|
|
148
|
-
name: "bio";
|
|
149
|
-
tableName: "agents";
|
|
150
|
-
dataType: "json";
|
|
151
|
-
columnType: "PgJsonb";
|
|
152
|
-
data: string | string[];
|
|
153
|
-
driverParam: unknown;
|
|
154
|
-
notNull: false;
|
|
155
|
-
hasDefault: true;
|
|
156
|
-
isPrimaryKey: false;
|
|
157
|
-
isAutoincrement: false;
|
|
158
|
-
hasRuntimeDefault: false;
|
|
159
|
-
enumValues: undefined;
|
|
160
|
-
baseColumn: never;
|
|
161
|
-
identity: undefined;
|
|
162
|
-
generated: undefined;
|
|
163
|
-
}, {}, {
|
|
164
|
-
$type: string | string[];
|
|
165
|
-
}>;
|
|
166
|
-
messageExamples: import("drizzle-orm/pg-core").PgColumn<{
|
|
167
|
-
name: "message_examples";
|
|
168
|
-
tableName: "agents";
|
|
169
|
-
dataType: "json";
|
|
170
|
-
columnType: "PgJsonb";
|
|
171
|
-
data: MessageExample[][];
|
|
172
|
-
driverParam: unknown;
|
|
173
|
-
notNull: true;
|
|
174
|
-
hasDefault: true;
|
|
175
|
-
isPrimaryKey: false;
|
|
176
|
-
isAutoincrement: false;
|
|
177
|
-
hasRuntimeDefault: false;
|
|
178
|
-
enumValues: undefined;
|
|
179
|
-
baseColumn: never;
|
|
180
|
-
identity: undefined;
|
|
181
|
-
generated: undefined;
|
|
182
|
-
}, {}, {
|
|
183
|
-
$type: MessageExample[][];
|
|
184
|
-
}>;
|
|
185
|
-
postExamples: import("drizzle-orm/pg-core").PgColumn<{
|
|
186
|
-
name: "post_examples";
|
|
187
|
-
tableName: "agents";
|
|
188
|
-
dataType: "json";
|
|
189
|
-
columnType: "PgJsonb";
|
|
190
|
-
data: string[];
|
|
191
|
-
driverParam: unknown;
|
|
192
|
-
notNull: true;
|
|
193
|
-
hasDefault: true;
|
|
194
|
-
isPrimaryKey: false;
|
|
195
|
-
isAutoincrement: false;
|
|
196
|
-
hasRuntimeDefault: false;
|
|
197
|
-
enumValues: undefined;
|
|
198
|
-
baseColumn: never;
|
|
199
|
-
identity: undefined;
|
|
200
|
-
generated: undefined;
|
|
201
|
-
}, {}, {
|
|
202
|
-
$type: string[];
|
|
203
|
-
}>;
|
|
204
|
-
topics: import("drizzle-orm/pg-core").PgColumn<{
|
|
205
|
-
name: "topics";
|
|
206
|
-
tableName: "agents";
|
|
207
|
-
dataType: "json";
|
|
208
|
-
columnType: "PgJsonb";
|
|
209
|
-
data: string[];
|
|
210
|
-
driverParam: unknown;
|
|
211
|
-
notNull: true;
|
|
212
|
-
hasDefault: true;
|
|
213
|
-
isPrimaryKey: false;
|
|
214
|
-
isAutoincrement: false;
|
|
215
|
-
hasRuntimeDefault: false;
|
|
216
|
-
enumValues: undefined;
|
|
217
|
-
baseColumn: never;
|
|
218
|
-
identity: undefined;
|
|
219
|
-
generated: undefined;
|
|
220
|
-
}, {}, {
|
|
221
|
-
$type: string[];
|
|
222
|
-
}>;
|
|
223
|
-
adjectives: import("drizzle-orm/pg-core").PgColumn<{
|
|
224
|
-
name: "adjectives";
|
|
225
|
-
tableName: "agents";
|
|
226
|
-
dataType: "json";
|
|
227
|
-
columnType: "PgJsonb";
|
|
228
|
-
data: string[];
|
|
229
|
-
driverParam: unknown;
|
|
230
|
-
notNull: true;
|
|
231
|
-
hasDefault: true;
|
|
232
|
-
isPrimaryKey: false;
|
|
233
|
-
isAutoincrement: false;
|
|
234
|
-
hasRuntimeDefault: false;
|
|
235
|
-
enumValues: undefined;
|
|
236
|
-
baseColumn: never;
|
|
237
|
-
identity: undefined;
|
|
238
|
-
generated: undefined;
|
|
239
|
-
}, {}, {
|
|
240
|
-
$type: string[];
|
|
241
|
-
}>;
|
|
242
|
-
knowledge: import("drizzle-orm/pg-core").PgColumn<{
|
|
243
|
-
name: "knowledge";
|
|
244
|
-
tableName: "agents";
|
|
245
|
-
dataType: "json";
|
|
246
|
-
columnType: "PgJsonb";
|
|
247
|
-
data: (string | {
|
|
248
|
-
path: string;
|
|
249
|
-
shared?: boolean;
|
|
250
|
-
})[];
|
|
251
|
-
driverParam: unknown;
|
|
252
|
-
notNull: true;
|
|
253
|
-
hasDefault: true;
|
|
254
|
-
isPrimaryKey: false;
|
|
255
|
-
isAutoincrement: false;
|
|
256
|
-
hasRuntimeDefault: false;
|
|
257
|
-
enumValues: undefined;
|
|
258
|
-
baseColumn: never;
|
|
259
|
-
identity: undefined;
|
|
260
|
-
generated: undefined;
|
|
261
|
-
}, {}, {
|
|
262
|
-
$type: (string | {
|
|
263
|
-
path: string;
|
|
264
|
-
shared?: boolean;
|
|
265
|
-
})[];
|
|
266
|
-
}>;
|
|
267
|
-
plugins: import("drizzle-orm/pg-core").PgColumn<{
|
|
268
|
-
name: "plugins";
|
|
269
|
-
tableName: "agents";
|
|
270
|
-
dataType: "json";
|
|
271
|
-
columnType: "PgJsonb";
|
|
272
|
-
data: string[];
|
|
273
|
-
driverParam: unknown;
|
|
274
|
-
notNull: true;
|
|
275
|
-
hasDefault: true;
|
|
276
|
-
isPrimaryKey: false;
|
|
277
|
-
isAutoincrement: false;
|
|
278
|
-
hasRuntimeDefault: false;
|
|
279
|
-
enumValues: undefined;
|
|
280
|
-
baseColumn: never;
|
|
281
|
-
identity: undefined;
|
|
282
|
-
generated: undefined;
|
|
283
|
-
}, {}, {
|
|
284
|
-
$type: string[];
|
|
285
|
-
}>;
|
|
286
|
-
settings: import("drizzle-orm/pg-core").PgColumn<{
|
|
287
|
-
name: "settings";
|
|
288
|
-
tableName: "agents";
|
|
289
|
-
dataType: "json";
|
|
290
|
-
columnType: "PgJsonb";
|
|
291
|
-
data: {
|
|
292
|
-
[key: string]: unknown;
|
|
293
|
-
secrets?: {
|
|
294
|
-
[key: string]: string | boolean | number;
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
driverParam: unknown;
|
|
298
|
-
notNull: true;
|
|
299
|
-
hasDefault: true;
|
|
300
|
-
isPrimaryKey: false;
|
|
301
|
-
isAutoincrement: false;
|
|
302
|
-
hasRuntimeDefault: false;
|
|
303
|
-
enumValues: undefined;
|
|
304
|
-
baseColumn: never;
|
|
305
|
-
identity: undefined;
|
|
306
|
-
generated: undefined;
|
|
307
|
-
}, {}, {
|
|
308
|
-
$type: {
|
|
309
|
-
[key: string]: unknown;
|
|
310
|
-
secrets?: {
|
|
311
|
-
[key: string]: string | boolean | number;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
}>;
|
|
315
|
-
style: import("drizzle-orm/pg-core").PgColumn<{
|
|
316
|
-
name: "style";
|
|
317
|
-
tableName: "agents";
|
|
318
|
-
dataType: "json";
|
|
319
|
-
columnType: "PgJsonb";
|
|
320
|
-
data: {
|
|
321
|
-
all?: string[];
|
|
322
|
-
chat?: string[];
|
|
323
|
-
post?: string[];
|
|
324
|
-
};
|
|
325
|
-
driverParam: unknown;
|
|
326
|
-
notNull: true;
|
|
327
|
-
hasDefault: true;
|
|
328
|
-
isPrimaryKey: false;
|
|
329
|
-
isAutoincrement: false;
|
|
330
|
-
hasRuntimeDefault: false;
|
|
331
|
-
enumValues: undefined;
|
|
332
|
-
baseColumn: never;
|
|
333
|
-
identity: undefined;
|
|
334
|
-
generated: undefined;
|
|
335
|
-
}, {}, {
|
|
336
|
-
$type: {
|
|
337
|
-
all?: string[];
|
|
338
|
-
chat?: string[];
|
|
339
|
-
post?: string[];
|
|
340
|
-
};
|
|
341
|
-
}>;
|
|
342
|
-
};
|
|
343
|
-
dialect: "pg";
|
|
344
|
-
}>;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a PostgreSQL table for caching data.
|
|
3
|
-
*
|
|
4
|
-
* @type {pgTable}
|
|
5
|
-
*/
|
|
6
|
-
export declare const cacheTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
7
|
-
name: "cache";
|
|
8
|
-
schema: undefined;
|
|
9
|
-
columns: {
|
|
10
|
-
key: import("drizzle-orm/pg-core").PgColumn<{
|
|
11
|
-
name: "key";
|
|
12
|
-
tableName: "cache";
|
|
13
|
-
dataType: "string";
|
|
14
|
-
columnType: "PgText";
|
|
15
|
-
data: string;
|
|
16
|
-
driverParam: string;
|
|
17
|
-
notNull: true;
|
|
18
|
-
hasDefault: false;
|
|
19
|
-
isPrimaryKey: false;
|
|
20
|
-
isAutoincrement: false;
|
|
21
|
-
hasRuntimeDefault: false;
|
|
22
|
-
enumValues: [string, ...string[]];
|
|
23
|
-
baseColumn: never;
|
|
24
|
-
identity: undefined;
|
|
25
|
-
generated: undefined;
|
|
26
|
-
}, {}, {}>;
|
|
27
|
-
agentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
28
|
-
name: "agent_id";
|
|
29
|
-
tableName: "cache";
|
|
30
|
-
dataType: "string";
|
|
31
|
-
columnType: "PgUUID";
|
|
32
|
-
data: string;
|
|
33
|
-
driverParam: string;
|
|
34
|
-
notNull: true;
|
|
35
|
-
hasDefault: false;
|
|
36
|
-
isPrimaryKey: false;
|
|
37
|
-
isAutoincrement: false;
|
|
38
|
-
hasRuntimeDefault: false;
|
|
39
|
-
enumValues: undefined;
|
|
40
|
-
baseColumn: never;
|
|
41
|
-
identity: undefined;
|
|
42
|
-
generated: undefined;
|
|
43
|
-
}, {}, {}>;
|
|
44
|
-
value: import("drizzle-orm/pg-core").PgColumn<{
|
|
45
|
-
name: "value";
|
|
46
|
-
tableName: "cache";
|
|
47
|
-
dataType: "json";
|
|
48
|
-
columnType: "PgJsonb";
|
|
49
|
-
data: unknown;
|
|
50
|
-
driverParam: unknown;
|
|
51
|
-
notNull: true;
|
|
52
|
-
hasDefault: false;
|
|
53
|
-
isPrimaryKey: false;
|
|
54
|
-
isAutoincrement: false;
|
|
55
|
-
hasRuntimeDefault: false;
|
|
56
|
-
enumValues: undefined;
|
|
57
|
-
baseColumn: never;
|
|
58
|
-
identity: undefined;
|
|
59
|
-
generated: undefined;
|
|
60
|
-
}, {}, {}>;
|
|
61
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
62
|
-
name: "created_at";
|
|
63
|
-
tableName: "cache";
|
|
64
|
-
dataType: "date";
|
|
65
|
-
columnType: "PgTimestamp";
|
|
66
|
-
data: Date;
|
|
67
|
-
driverParam: string;
|
|
68
|
-
notNull: true;
|
|
69
|
-
hasDefault: true;
|
|
70
|
-
isPrimaryKey: false;
|
|
71
|
-
isAutoincrement: false;
|
|
72
|
-
hasRuntimeDefault: false;
|
|
73
|
-
enumValues: undefined;
|
|
74
|
-
baseColumn: never;
|
|
75
|
-
identity: undefined;
|
|
76
|
-
generated: undefined;
|
|
77
|
-
}, {}, {}>;
|
|
78
|
-
expiresAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
79
|
-
name: "expires_at";
|
|
80
|
-
tableName: "cache";
|
|
81
|
-
dataType: "date";
|
|
82
|
-
columnType: "PgTimestamp";
|
|
83
|
-
data: Date;
|
|
84
|
-
driverParam: string;
|
|
85
|
-
notNull: false;
|
|
86
|
-
hasDefault: false;
|
|
87
|
-
isPrimaryKey: false;
|
|
88
|
-
isAutoincrement: false;
|
|
89
|
-
hasRuntimeDefault: false;
|
|
90
|
-
enumValues: undefined;
|
|
91
|
-
baseColumn: never;
|
|
92
|
-
identity: undefined;
|
|
93
|
-
generated: undefined;
|
|
94
|
-
}, {}, {}>;
|
|
95
|
-
};
|
|
96
|
-
dialect: "pg";
|
|
97
|
-
}>;
|