@elizaos/plugin-sql 2.0.0-alpha.7 → 2.0.0-beta.1

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 (91) hide show
  1. package/README.md +359 -0
  2. package/package.json +77 -68
  3. package/src/dist/base.d.ts +1152 -0
  4. package/src/dist/browser/index.browser.d.ts +2 -0
  5. package/src/dist/browser/index.browser.js +26781 -0
  6. package/src/dist/browser/index.browser.js.map +72 -0
  7. package/src/dist/browser/index.d.ts +2 -0
  8. package/src/dist/cjs/index.d.ts +2 -0
  9. package/src/dist/cjs/index.node.cjs +9154 -0
  10. package/src/dist/cjs/index.node.cjs.map +70 -0
  11. package/src/dist/cjs/index.node.d.cts +2 -0
  12. package/src/dist/connector-credential-store.d.ts +48 -0
  13. package/src/dist/drizzle/index.d.ts +1 -0
  14. package/src/dist/drizzle/index.js +1 -0
  15. package/src/dist/index.d.ts +4 -0
  16. package/src/dist/index.js +2 -0
  17. package/src/dist/index.node.d.ts +20 -0
  18. package/src/dist/migration-service.d.ts +17 -0
  19. package/src/dist/migrations.d.ts +15 -0
  20. package/src/dist/node/index.d.ts +2 -0
  21. package/src/dist/node/index.node.d.ts +2 -0
  22. package/{dist/browser/index.browser.js → src/dist/node/index.node.js} +7858 -4638
  23. package/src/dist/node/index.node.js.map +70 -0
  24. package/src/dist/pg/adapter.d.ts +42 -0
  25. package/src/dist/pg/manager.d.ts +17 -0
  26. package/src/dist/pglite/adapter.d.ts +24 -0
  27. package/src/dist/pglite/errors.d.ts +20 -0
  28. package/src/dist/pglite/manager.d.ts +32 -0
  29. package/src/dist/rls.d.ts +13 -0
  30. package/src/dist/runtime-migrator/crypto-utils.d.ts +25 -0
  31. package/src/dist/runtime-migrator/drizzle-adapters/database-introspector.d.ts +58 -0
  32. package/src/dist/runtime-migrator/drizzle-adapters/diff-calculator.d.ts +77 -0
  33. package/src/dist/runtime-migrator/drizzle-adapters/snapshot-generator.d.ts +21 -0
  34. package/src/dist/runtime-migrator/drizzle-adapters/sql-generator.d.ts +38 -0
  35. package/src/dist/runtime-migrator/extension-manager.d.ts +6 -0
  36. package/src/dist/runtime-migrator/index.d.ts +8 -0
  37. package/src/dist/runtime-migrator/runtime-migrator.d.ts +95 -0
  38. package/src/dist/runtime-migrator/schema-transformer.d.ts +18 -0
  39. package/src/dist/runtime-migrator/storage/journal-storage.d.ts +10 -0
  40. package/src/dist/runtime-migrator/storage/migration-tracker.d.ts +13 -0
  41. package/src/dist/runtime-migrator/storage/snapshot-storage.d.ts +9 -0
  42. package/src/dist/runtime-migrator/types.d.ts +157 -0
  43. package/src/dist/schema/agent.d.ts +344 -0
  44. package/src/dist/schema/approvalRequests.d.ts +277 -0
  45. package/src/dist/schema/authAuditEvent.d.ts +153 -0
  46. package/src/dist/schema/authBootstrapJti.d.ts +49 -0
  47. package/src/dist/schema/authIdentity.d.ts +121 -0
  48. package/src/dist/schema/authOwnerBinding.d.ts +168 -0
  49. package/src/dist/schema/authOwnerLoginToken.d.ts +122 -0
  50. package/src/dist/schema/authSession.d.ts +225 -0
  51. package/src/dist/schema/cache.d.ts +97 -0
  52. package/src/dist/schema/channel.d.ts +177 -0
  53. package/src/dist/schema/channelParticipant.d.ts +41 -0
  54. package/src/dist/schema/component.d.ts +163 -0
  55. package/src/dist/schema/connectorAccounts.d.ts +981 -0
  56. package/src/dist/schema/embedding.d.ts +204 -0
  57. package/src/dist/schema/entity.d.ts +125 -0
  58. package/src/dist/schema/entityIdentity.d.ts +577 -0
  59. package/src/dist/schema/index.d.ts +35 -0
  60. package/src/dist/schema/index.js +1 -0
  61. package/src/dist/schema/log.d.ts +114 -0
  62. package/src/dist/schema/longTermMemories.d.ts +254 -0
  63. package/src/dist/schema/memory.d.ts +185 -0
  64. package/src/dist/schema/memoryAccessLogs.d.ts +109 -0
  65. package/src/dist/schema/message.d.ts +194 -0
  66. package/src/dist/schema/messageServer.d.ts +126 -0
  67. package/src/dist/schema/messageServerAgent.d.ts +41 -0
  68. package/src/dist/schema/pairingAllowlist.d.ts +113 -0
  69. package/src/dist/schema/pairingRequest.d.ts +147 -0
  70. package/src/dist/schema/participant.d.ts +114 -0
  71. package/src/dist/schema/relationship.d.ts +156 -0
  72. package/src/dist/schema/room.d.ts +195 -0
  73. package/src/dist/schema/server.d.ts +64 -0
  74. package/src/dist/schema/sessionSummaries.d.ts +273 -0
  75. package/src/dist/schema/tasks.d.ts +225 -0
  76. package/src/dist/schema/types.d.ts +68 -0
  77. package/src/dist/schema/world.d.ts +114 -0
  78. package/src/dist/services/advanced-memory-storage.d.ts +36 -0
  79. package/src/dist/stores/connectorAccount.store.d.ts +64 -0
  80. package/src/dist/stores/types.d.ts +25 -0
  81. package/src/dist/types.d.ts +13 -0
  82. package/src/dist/utils/string-to-uuid.d.ts +2 -0
  83. package/src/dist/utils.d.ts +4 -0
  84. package/src/dist/utils.node.d.ts +4 -0
  85. package/LICENSE +0 -21
  86. package/dist/browser/index.browser.js.map +0 -54
  87. package/dist/browser/index.d.ts +0 -2
  88. package/dist/index.d.ts +0 -2
  89. package/dist/node/index.d.ts +0 -2
  90. package/dist/node/index.node.js +0 -12524
  91. package/dist/node/index.node.js.map +0 -152
package/README.md ADDED
@@ -0,0 +1,359 @@
1
+ # DrizzleDatabaseAdapter
2
+
3
+ A PostgreSQL database adapter built with Drizzle ORM for the elizaOS ecosystem.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Using bun
9
+ bun add @elizaos/plugin-sql
10
+ ```
11
+
12
+ ## Vector Dimensions
13
+
14
+ The adapter supports the following vector dimensions:
15
+
16
+ ```typescript
17
+ VECTOR_DIMS = {
18
+ SMALL: 384,
19
+ MEDIUM: 512,
20
+ LARGE: 768,
21
+ XL: 1024,
22
+ XXL: 1536,
23
+ XXXL: 3072,
24
+ };
25
+ ```
26
+
27
+ Important Note: Once an agent is initialized with a specific embedding dimension, it cannot be changed. Attempting to change the dimension will result in an error: "Cannot change embedding dimension for agent"
28
+
29
+ ## Features
30
+
31
+ - Circuit breaker pattern for database failures
32
+ - Automatic retries with exponential backoff
33
+ - Connection pooling
34
+ - Vector search capabilities
35
+ - Memory management
36
+ - Caching system
37
+ - Room and participant management
38
+ - Goal tracking system
39
+
40
+ ## Database Schema
41
+
42
+ The plugin uses a structured schema with the following main tables:
43
+
44
+ ### Core Tables
45
+
46
+ - **Agent**: Stores agent information and configurations
47
+ - **Room**: Manages conversation rooms and their settings
48
+ - **Participant**: Tracks participants in rooms
49
+ - **Memory**: Stores agent memories with vector embeddings for semantic search
50
+ - **Embedding**: Manages vector embeddings for various entities
51
+ - **Entity**: Represents entities that agents can interact with
52
+ - **Relationship**: Tracks relationships between entities
53
+ - **Component**: Stores agent components and their configurations
54
+ - **Tasks**: Manages tasks and goals for agents
55
+ - **Log**: Stores system logs
56
+ - **Cache**: Provides a caching mechanism for frequently accessed data
57
+ - **World**: Manages world settings and configurations
58
+
59
+ Each table is defined using Drizzle ORM schema definitions in the `src/schema` directory. The schema is designed to support the elizaOS ecosystem's requirements for agent-based systems.
60
+
61
+ ## Usage
62
+
63
+ The adapter is typically used as part of the elizaOS runtime:
64
+
65
+ ```typescript
66
+ async function findDatabaseAdapter(runtime: IAgentRuntime) {
67
+ let adapter = runtime;
68
+
69
+ if (!adapter) {
70
+ const drizzleAdapterPlugin = await import("@elizaos/plugin-sql");
71
+ const drizzleAdapterPluginDefault = drizzleAdapterPlugin.default;
72
+ adapter = drizzleAdapterPluginDefault.adapter;
73
+ if (!adapter) {
74
+ throw new Error(
75
+ "Internal error: No database adapter found for default plugin-sql",
76
+ );
77
+ }
78
+ } else if (!adapter) {
79
+ throw new Error(
80
+ "Multiple database adapters found. You must have no more than one. Adjust your plugins configuration.",
81
+ );
82
+ }
83
+
84
+ const adapterInterface = await adapter?.init(runtime);
85
+ return adapterInterface;
86
+ }
87
+ ```
88
+
89
+ ## Error Handling Configuration
90
+
91
+ The adapter implements the following error handling configurations:
92
+
93
+ ```typescript
94
+ {
95
+ failureThreshold: 5,
96
+ resetTimeout: 60000,
97
+ halfOpenMaxAttempts: 3,
98
+ maxRetries: 3,
99
+ baseDelay: 1000, // 1 second
100
+ maxDelay: 10000, // 10 seconds
101
+ jitterMax: 1000, // 1 second
102
+ connectionTimeout: 5000 // 5 seconds
103
+ }
104
+ ```
105
+
106
+ ## Requirements
107
+
108
+ - PostgreSQL with vector extension installed
109
+ - Node.js or Bun (≥1.2.2)
110
+
111
+ ## Environment Variables
112
+
113
+ The plugin uses the following environment variables:
114
+
115
+ - `POSTGRES_URL`: Connection string for PostgreSQL database (e.g., `postgresql://user:password@localhost:5432/dbname`)
116
+ - If not provided, the plugin will use PGlite as a fallback
117
+ - `PGLITE_DATA_DIR`: (Optional) Directory for PGlite data storage (default: `./pglite`)
118
+
119
+ These variables should be defined in a `.env` file at the root of your project.
120
+
121
+ ## Database Pool Configuration
122
+
123
+ Default pool configuration:
124
+
125
+ ```typescript
126
+ {
127
+ max: 20,
128
+ idleTimeoutMillis: 30000,
129
+ connectionTimeoutMillis: 5000
130
+ }
131
+ ```
132
+
133
+ ## Migration Support
134
+
135
+ elizaOS v1.0.0 introduces **dynamic runtime migrations** - automatic schema management that runs at startup without manual intervention. Plugins can define their schemas and the system handles all migrations automatically.
136
+
137
+ ### TLDR: What Changed?
138
+
139
+ **Before (v0.x):** Manual migrations with `drizzle-kit generate` → `drizzle-kit push` → restart
140
+ **Now (v1.0.0):** Define schema in plugin → Start agent → Migrations run automatically ✨
141
+
142
+ ### Key Features
143
+
144
+ - **Zero-Config Migrations**: No more manual migration commands
145
+ - **Plugin Isolation**: Each plugin gets its own schema namespace
146
+ - **Safety First**: Destructive changes blocked by default in production
147
+ - **Concurrent Safety**: Built-in locks prevent race conditions
148
+ - **Rollback Protection**: All migrations run in transactions
149
+
150
+ ### How It Works
151
+
152
+ 1. **Plugin defines schema** using Drizzle ORM:
153
+
154
+ ```typescript
155
+ // In your plugin's schema.ts
156
+ import { pgTable, text, uuid } from "drizzle-orm/pg-core";
157
+
158
+ export const myTable = pgTable("my_table", {
159
+ id: uuid("id").primaryKey(),
160
+ name: text("name").notNull(),
161
+ });
162
+
163
+ // Export schema in your plugin
164
+ export const plugin = {
165
+ name: "@your-org/plugin-name",
166
+ schema: schema, // Your Drizzle schema object
167
+ // ... rest of plugin
168
+ };
169
+ ```
170
+
171
+ 2. **Runtime detects changes** at startup:
172
+
173
+ ```bash
174
+ [RuntimeMigrator] Starting migration for plugin: @your-org/plugin-name
175
+ [RuntimeMigrator] Executing 2 SQL statements...
176
+ [RuntimeMigrator] Migration completed successfully
177
+ ```
178
+
179
+ 3. **Automatic safety checks**:
180
+
181
+ ```bash
182
+ # Destructive changes are blocked
183
+ [RuntimeMigrator] Destructive migration blocked
184
+ [RuntimeMigrator] Destructive operations detected:
185
+ [RuntimeMigrator] - Column "email" will be dropped from table "users"
186
+ [RuntimeMigrator] To proceed:
187
+ [RuntimeMigrator] 1. Set ELIZA_ALLOW_DESTRUCTIVE_MIGRATIONS=true
188
+ [RuntimeMigrator] 2. Or use { force: true } option
189
+ ```
190
+
191
+ ### Migration Controls
192
+
193
+ Control migration behavior via environment variables:
194
+
195
+ ```bash
196
+ # Allow destructive migrations (drops, type changes)
197
+ ELIZA_ALLOW_DESTRUCTIVE_MIGRATIONS=true
198
+
199
+ # Development vs Production
200
+ NODE_ENV=production # Stricter checks, verbose off by default
201
+ NODE_ENV=development # More permissive, verbose on
202
+ ```
203
+
204
+ Or programmatically:
205
+
206
+ ```typescript
207
+ await databaseAdapter.runPluginMigrations(plugins, {
208
+ verbose: true, // Show SQL statements
209
+ force: true, // Allow destructive changes
210
+ dryRun: true, // Preview without applying
211
+ });
212
+ ```
213
+
214
+ ### Transitioning from Manual Migrations
215
+
216
+ If you have existing manual Drizzle migrations:
217
+
218
+ 1. **Keep existing migrations** - They remain compatible
219
+ 2. **Add schema to plugin** - Export your Drizzle schema
220
+ 3. **First run** - Runtime migrator detects current state
221
+ 4. **Future changes** - Just update schema and restart
222
+
223
+ Example transition:
224
+
225
+ ```typescript
226
+ // Before: Manual migrations
227
+ // 1. Edit schema
228
+ // 2. Run: bunx drizzle-kit generate
229
+ // 3. Run: bunx drizzle-kit push
230
+ // 4. Restart agent
231
+
232
+ // After: Runtime migrations
233
+ // 1. Edit schema in plugin
234
+ // 2. Restart agent (migrations run automatically)
235
+ ```
236
+
237
+ ### Schema Namespacing
238
+
239
+ Plugins automatically get namespaced schemas for isolation:
240
+
241
+ - `@elizaos/plugin-sql` → Uses `public` schema (core tables)
242
+ - `@your-org/plugin-name` → Uses `your_org_plugin_name` schema
243
+ - Prevents table name conflicts between plugins
244
+ - Clean separation of concerns
245
+
246
+ To use a custom schema:
247
+
248
+ ```typescript
249
+ import { pgSchema } from "drizzle-orm/pg-core";
250
+
251
+ const mySchema = pgSchema("my_custom_schema");
252
+ export const myTable = mySchema.table("my_table", {
253
+ // ... columns
254
+ });
255
+ ```
256
+
257
+ ### Debugging Migrations
258
+
259
+ Check migration status:
260
+
261
+ ```typescript
262
+ const migrator = migrationService.getMigrator();
263
+ const status = await migrator.getStatus("@your-org/plugin-name");
264
+ console.log(status);
265
+ // {
266
+ // hasRun: true,
267
+ // lastMigration: { hash: "...", timestamp: ... },
268
+ // journal: [...],
269
+ // snapshots: 3
270
+ // }
271
+ ```
272
+
273
+ Preview changes without applying:
274
+
275
+ ```typescript
276
+ const check = await migrator.checkMigration("@your-org/plugin-name", schema);
277
+ if (check?.hasDataLoss) {
278
+ console.log("Warning: Destructive changes:", check.warnings);
279
+ }
280
+ ```
281
+
282
+ ### Database Support
283
+
284
+ The plugin supports two database backends with automatic migration support:
285
+
286
+ 1. **PostgreSQL**: Production-ready with full feature support
287
+ 2. **PGlite**: Embedded database for development/testing
288
+
289
+ Both use identical migration systems - develop locally with PGlite, deploy to PostgreSQL.
290
+
291
+ ### Troubleshooting
292
+
293
+ **"Destructive migration blocked"**
294
+
295
+ - Set `ELIZA_ALLOW_DESTRUCTIVE_MIGRATIONS=true` for development
296
+ - For production, review changes carefully before enabling
297
+
298
+ **"Migration already in progress"**
299
+
300
+ - Another instance is running migrations
301
+ - System will wait for lock automatically
302
+
303
+ **"No changes detected"**
304
+
305
+ - Schema matches database state
306
+ - No migration needed
307
+
308
+ **Manual migration needed?**
309
+
310
+ - Use standard Drizzle Kit for complex scenarios:
311
+ ```bash
312
+ bunx drizzle-kit generate
313
+ bunx drizzle-kit migrate
314
+ ```
315
+
316
+ ## Clean Shutdown
317
+
318
+ The adapter implements cleanup handlers for:
319
+
320
+ - SIGINT
321
+ - SIGTERM
322
+ - beforeExit
323
+
324
+ These ensure proper closing of database connections when the application shuts down.
325
+
326
+ ## Implementation Details
327
+
328
+ ### Connection Management
329
+
330
+ The plugin uses a global singleton pattern to manage database connections. This approach ensures that:
331
+
332
+ 1. **Single Connection Per Process**: Only one connection manager instance exists per Node.js process, regardless of how many times the package is imported or initialized.
333
+
334
+ 2. **Resource Efficiency**: Prevents multiple connection pools to the same database, which could lead to resource exhaustion.
335
+
336
+ 3. **Consistent State**: Ensures all parts of the application share the same database connection state.
337
+
338
+ 4. **Proper Cleanup**: Facilitates proper cleanup of database connections during application shutdown, preventing connection leaks.
339
+
340
+ This pattern is particularly important in monorepo setups or when the package is used by multiple modules within the same process. The implementation uses JavaScript Symbols to create a global registry that persists across module boundaries.
341
+
342
+ ```typescript
343
+ // Example of the singleton pattern implementation
344
+ const GLOBAL_SINGLETONS = Symbol.for("@elizaos/plugin-sql/global-singletons");
345
+
346
+ // Store managers in a global symbol registry
347
+ if (!globalSymbols[GLOBAL_SINGLETONS]) {
348
+ globalSymbols[GLOBAL_SINGLETONS] = {};
349
+ }
350
+
351
+ // Reuse existing managers or create new ones when needed
352
+ if (!globalSingletons.postgresConnectionManager) {
353
+ globalSingletons.postgresConnectionManager = new PostgresConnectionManager(
354
+ config.postgresUrl,
355
+ );
356
+ }
357
+ ```
358
+
359
+ This approach is especially critical for PGlite connections, which require careful management to ensure proper shutdown and prevent resource leaks.
package/package.json CHANGED
@@ -1,93 +1,102 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-sql",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.0-beta.1",
4
+ "description": "",
4
5
  "type": "module",
5
- "main": "dist/node/index.node.js",
6
- "module": "dist/node/index.node.js",
7
- "types": "dist/index.d.ts",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/elizaos-plugins/plugin-sql"
11
- },
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "browser": "dist/browser/index.browser.js",
6
+ "main": "src/dist/index.js",
7
+ "types": "src/dist/index.d.ts",
16
8
  "exports": {
17
9
  "./package.json": "./package.json",
18
10
  ".": {
19
- "types": "./dist/index.d.ts",
11
+ "types": "./src/dist/index.node.d.ts",
12
+ "bun": {
13
+ "types": "./src/index.ts",
14
+ "import": "./src/index.ts",
15
+ "default": "./src/index.ts"
16
+ },
20
17
  "browser": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/browser/index.browser.js",
23
- "default": "./dist/browser/index.browser.js"
18
+ "types": "./src/dist/index.d.ts",
19
+ "import": "./src/dist/browser/index.browser.js",
20
+ "default": "./src/dist/browser/index.browser.js"
24
21
  },
25
22
  "node": {
26
- "types": "./dist/index.d.ts",
27
- "import": "./dist/node/index.node.js",
28
- "default": "./dist/node/index.node.js"
23
+ "types": "./src/dist/index.d.ts",
24
+ "import": "./src/dist/node/index.node.js",
25
+ "default": "./src/dist/node/index.node.js"
26
+ },
27
+ "import": "./src/dist/index.js",
28
+ "default": "./src/dist/index.js"
29
+ },
30
+ "./drizzle": {
31
+ "types": "./src/dist/drizzle/index.d.ts",
32
+ "bun": {
33
+ "types": "./src/drizzle/index.ts",
34
+ "import": "./src/drizzle/index.ts",
35
+ "default": "./src/drizzle/index.ts"
29
36
  },
37
+ "import": "./src/dist/drizzle/index.js",
38
+ "default": "./src/dist/drizzle/index.js"
39
+ },
40
+ "./schema": {
41
+ "types": "./src/dist/schema/index.d.ts",
30
42
  "bun": {
31
- "types": "./dist/index.d.ts",
32
- "default": "./dist/node/index.node.js"
43
+ "types": "./src/schema/index.ts",
44
+ "import": "./src/schema/index.ts",
45
+ "default": "./src/schema/index.ts"
33
46
  },
34
- "default": "./dist/node/index.node.js"
47
+ "import": "./src/dist/schema/index.js",
48
+ "default": "./src/dist/schema/index.js"
35
49
  }
36
50
  },
37
- "sideEffects": false,
38
51
  "files": [
39
- "dist",
40
- "drizzle",
41
- "types"
52
+ "src/dist",
53
+ "README.md",
54
+ "dist"
42
55
  ],
56
+ "keywords": [],
57
+ "author": "elizaOS",
58
+ "license": "MIT",
59
+ "repository": {
60
+ "type": "git",
61
+ "url": "https://github.com/elizaos-plugins/plugin-sql"
62
+ },
63
+ "scripts": {
64
+ "build": "cd src && bun run build.ts",
65
+ "dev": "cd src && bun --hot build.ts",
66
+ "test": "cd src && vitest run",
67
+ "typecheck": "tsc --noEmit -p src/tsconfig.json",
68
+ "lint": "cd src && bun run lint",
69
+ "lint:check": "cd src && bun run lint:check",
70
+ "clean": "rm -rf src/dist .turbo",
71
+ "format": "cd src && bun run format",
72
+ "format:check": "cd src && bun run format:check",
73
+ "test:e2e": "node ../../packages/app-core/scripts/run-local-plugin-live-smoke.mjs",
74
+ "test:live": "bun run test:e2e"
75
+ },
43
76
  "dependencies": {
44
- "@electric-sql/pglite": "^0.3.3",
45
- "@elizaos/core": "2.0.0-alpha.3",
46
- "dotenv": "^17.2.3",
47
- "drizzle-kit": "^0.31.8",
48
- "drizzle-orm": "^0.45.1",
77
+ "@electric-sql/pglite": "^0.4.0",
78
+ "@neondatabase/serverless": "^1.1.0",
79
+ "drizzle-orm": "0.45.2",
49
80
  "pg": "^8.16.3",
50
- "uuid": "^13.0.0"
81
+ "uuid": "^14.0.0",
82
+ "ws": "^8.18.3"
51
83
  },
52
84
  "devDependencies": {
53
- "@biomejs/biome": "^2.3.11",
85
+ "@biomejs/biome": "^2.4.14",
86
+ "@types/bun": "^1.3.5",
54
87
  "@types/node": "^25.0.3",
55
- "@types/pg": "^8.15.6",
56
- "typescript": "^5.9.3"
88
+ "@types/pg": "^8.15.2",
89
+ "@types/ws": "^8.18.1",
90
+ "dotenv": "^17.2.3",
91
+ "drizzle-kit": "^0.31.8",
92
+ "typescript": "^6.0.3",
93
+ "vitest": "^4.0.0"
57
94
  },
58
- "scripts": {
59
- "dev": "bun run build.ts --watch",
60
- "migrate:generate": "drizzle-kit generate",
61
- "migrate": "drizzle-kit migrate",
62
- "typecheck": "tsc --noEmit -p tsconfig.json || true",
63
- "clean": "rm -rf dist .turbo node_modules .turbo-tsconfig.json *.tsbuildinfo",
64
- "format": "bunx @biomejs/biome format --write .",
65
- "format:check": "bunx @biomejs/biome format .",
66
- "lint": "bunx @biomejs/biome check --write --unsafe .",
67
- "lint:check": "bunx @biomejs/biome check .",
68
- "test": "vitest run __tests__/unit/",
69
- "test:unit": "vitest run __tests__/unit/",
70
- "test:integration": "echo 'Integration tests require scripts/run-integration-tests.sh - skipping'",
71
- "test:integration:postgres": "bash scripts/run-integration-tests.sh --postgres",
72
- "test:migration": "vitest run __tests__/migration/",
73
- "test:migration:postgres": "vitest run __tests__/migration/",
74
- "test:e2e:upgrade": "bash __tests__/migration/e2e/run-upgrade-test.sh",
75
- "test:watch": "vitest",
76
- "test:coverage": "vitest run --coverage",
77
- "build:clean": "rm -rf dist",
78
- "build": "bun run build.ts",
79
- "build:ts": "bun run build.ts"
95
+ "peerDependencies": {
96
+ "@elizaos/core": "2.0.0-beta.1"
80
97
  },
81
- "gitHead": "255e37c0e4a76da0b776219db5ebb9dadf20e89f",
82
- "milaidy": {
83
- "platforms": [
84
- "browser",
85
- "node"
86
- ],
87
- "runtime": "both",
88
- "platformDetails": {
89
- "browser": "Browser-compatible build available via exports.browser",
90
- "node": "Node.js build available via exports.node"
91
- }
98
+ "gitHead": "05d4ca11d769db8c7f54a722ee24b2ce2b951543",
99
+ "publishConfig": {
100
+ "access": "public"
92
101
  }
93
102
  }