@electric-ax/agents-server 0.4.1 → 0.4.2
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/entrypoint.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/db/index.ts +1 -1
- package/src/routing/entities-router.ts +1 -1
package/dist/entrypoint.js
CHANGED
|
@@ -302,7 +302,7 @@ function createDb(postgresUrl) {
|
|
|
302
302
|
const poolMax = Number(process.env.ELECTRIC_AGENTS_PG_POOL_MAX ?? `100`);
|
|
303
303
|
const client = postgres(postgresUrl, {
|
|
304
304
|
max: poolMax,
|
|
305
|
-
fetch_types:
|
|
305
|
+
fetch_types: true
|
|
306
306
|
});
|
|
307
307
|
const db = drizzle(client, { schema: schema_exports });
|
|
308
308
|
return {
|
|
@@ -4378,11 +4378,11 @@ async function spawnEntity(request, ctx) {
|
|
|
4378
4378
|
wake: parsed.wake,
|
|
4379
4379
|
created_by: principal.url
|
|
4380
4380
|
});
|
|
4381
|
-
await linkEntityDispatchSubscription(ctx, entity);
|
|
4382
4381
|
if (parsed.initialMessage !== void 0) await ctx.entityManager.send(entity.url, {
|
|
4383
4382
|
from: principal.url,
|
|
4384
4383
|
payload: parsed.initialMessage
|
|
4385
4384
|
});
|
|
4385
|
+
await linkEntityDispatchSubscription(ctx, entity);
|
|
4386
4386
|
return json({
|
|
4387
4387
|
...toPublicEntity(entity),
|
|
4388
4388
|
txid: entity.txid
|
package/dist/index.cjs
CHANGED
|
@@ -316,7 +316,7 @@ function createDb(postgresUrl) {
|
|
|
316
316
|
const poolMax = Number(process.env.ELECTRIC_AGENTS_PG_POOL_MAX ?? `100`);
|
|
317
317
|
const client = (0, postgres.default)(postgresUrl, {
|
|
318
318
|
max: poolMax,
|
|
319
|
-
fetch_types:
|
|
319
|
+
fetch_types: true
|
|
320
320
|
});
|
|
321
321
|
const db = (0, drizzle_orm_postgres_js.drizzle)(client, { schema: schema_exports });
|
|
322
322
|
return {
|
|
@@ -6606,11 +6606,11 @@ async function spawnEntity(request, ctx) {
|
|
|
6606
6606
|
wake: parsed.wake,
|
|
6607
6607
|
created_by: principal.url
|
|
6608
6608
|
});
|
|
6609
|
-
await linkEntityDispatchSubscription(ctx, entity);
|
|
6610
6609
|
if (parsed.initialMessage !== void 0) await ctx.entityManager.send(entity.url, {
|
|
6611
6610
|
from: principal.url,
|
|
6612
6611
|
payload: parsed.initialMessage
|
|
6613
6612
|
});
|
|
6613
|
+
await linkEntityDispatchSubscription(ctx, entity);
|
|
6614
6614
|
return (0, itty_router.json)({
|
|
6615
6615
|
...toPublicEntity(entity),
|
|
6616
6616
|
txid: entity.txid
|
package/dist/index.js
CHANGED
|
@@ -287,7 +287,7 @@ function createDb(postgresUrl) {
|
|
|
287
287
|
const poolMax = Number(process.env.ELECTRIC_AGENTS_PG_POOL_MAX ?? `100`);
|
|
288
288
|
const client = postgres(postgresUrl, {
|
|
289
289
|
max: poolMax,
|
|
290
|
-
fetch_types:
|
|
290
|
+
fetch_types: true
|
|
291
291
|
});
|
|
292
292
|
const db = drizzle(client, { schema: schema_exports });
|
|
293
293
|
return {
|
|
@@ -6577,11 +6577,11 @@ async function spawnEntity(request, ctx) {
|
|
|
6577
6577
|
wake: parsed.wake,
|
|
6578
6578
|
created_by: principal.url
|
|
6579
6579
|
});
|
|
6580
|
-
await linkEntityDispatchSubscription(ctx, entity);
|
|
6581
6580
|
if (parsed.initialMessage !== void 0) await ctx.entityManager.send(entity.url, {
|
|
6582
6581
|
from: principal.url,
|
|
6583
6582
|
payload: parsed.initialMessage
|
|
6584
6583
|
});
|
|
6584
|
+
await linkEntityDispatchSubscription(ctx, entity);
|
|
6585
6585
|
return json({
|
|
6586
6586
|
...toPublicEntity(entity),
|
|
6587
6587
|
txid: entity.txid
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@electric-ax/agents-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Electric Agents entity runtime server",
|
|
5
5
|
"author": "Durable Stream contributors",
|
|
6
6
|
"bin": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"vitest": "^4.1.0",
|
|
68
68
|
"@electric-ax/agents": "0.4.1",
|
|
69
69
|
"@electric-ax/agents-server-conformance-tests": "0.1.4",
|
|
70
|
-
"@electric-ax/agents-server-ui": "0.4.
|
|
70
|
+
"@electric-ax/agents-server-ui": "0.4.2"
|
|
71
71
|
},
|
|
72
72
|
"files": [
|
|
73
73
|
"dist",
|
package/src/db/index.ts
CHANGED
|
@@ -16,7 +16,7 @@ export function createDb(postgresUrl: string): {
|
|
|
16
16
|
const poolMax = Number(process.env.ELECTRIC_AGENTS_PG_POOL_MAX ?? `100`)
|
|
17
17
|
const client = postgres(postgresUrl, {
|
|
18
18
|
max: poolMax,
|
|
19
|
-
fetch_types:
|
|
19
|
+
fetch_types: true,
|
|
20
20
|
})
|
|
21
21
|
const db = drizzle(client, { schema })
|
|
22
22
|
return { db, client }
|
|
@@ -614,13 +614,13 @@ async function spawnEntity(
|
|
|
614
614
|
wake: parsed.wake,
|
|
615
615
|
created_by: principal.url,
|
|
616
616
|
})
|
|
617
|
-
await linkEntityDispatchSubscription(ctx, entity)
|
|
618
617
|
if (parsed.initialMessage !== undefined) {
|
|
619
618
|
await ctx.entityManager.send(entity.url, {
|
|
620
619
|
from: principal.url,
|
|
621
620
|
payload: parsed.initialMessage,
|
|
622
621
|
})
|
|
623
622
|
}
|
|
623
|
+
await linkEntityDispatchSubscription(ctx, entity)
|
|
624
624
|
|
|
625
625
|
return json(
|
|
626
626
|
{ ...toPublicEntity(entity), txid: entity.txid },
|