Skip to content

Commit b2c00f3

Browse files
author
Shaw
committed
updates
1 parent db3ce55 commit b2c00f3

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

packages/agent/src/runtime/eliza.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,7 @@ export function applyDatabaseConfigToEnv(config: ElizaConfig): void {
17181718
const db = config.database;
17191719
const provider = db?.provider ?? "pglite";
17201720
const databaseUrl = process.env.DATABASE_URL?.trim();
1721+
const postgresUrl = process.env.POSTGRES_URL?.trim();
17211722

17221723
if (provider === "postgres" && db?.postgres) {
17231724
const pg = db.postgres;
@@ -1735,8 +1736,8 @@ export function applyDatabaseConfigToEnv(config: ElizaConfig): void {
17351736
process.env.POSTGRES_URL = url;
17361737
// Clear PGLite dir so plugin-sql does not fall back to PGLite
17371738
delete process.env.PGLITE_DATA_DIR;
1738-
} else if (!db?.provider && databaseUrl && !process.env.POSTGRES_URL) {
1739-
process.env.POSTGRES_URL = databaseUrl;
1739+
} else if (!db?.provider && databaseUrl && (!postgresUrl || postgresUrl === databaseUrl)) {
1740+
process.env.POSTGRES_URL = postgresUrl || databaseUrl;
17401741
delete process.env.PGLITE_DATA_DIR;
17411742
logger.info("[eliza] DATABASE_URL detected: using Postgres database");
17421743
} else {

packages/os/linux/desktop-shell/src/index.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,26 @@ export type { MockSystemProviderProps } from "./providers/MockSystemProvider";
1313
export { LinuxSystemProvider } from "./providers/LinuxSystemProvider";
1414
export type { LinuxSystemProviderProps } from "./providers/LinuxSystemProvider";
1515
export { useSystemProvider, SystemProviderContext } from "./providers/context";
16+
export {
17+
LINUX_BRIDGE_CHANNELS,
18+
getBridgeTransport,
19+
createLinuxBridgeClient,
20+
} from "./bridge";
21+
export type {
22+
BridgeTransport,
23+
LinuxBridgeClient,
24+
LinuxBridgeChannelMap,
25+
LinuxBridgeStateChannel,
26+
LinuxBridgeCommandChannel,
27+
LinuxBridgeCommandPayloadMap,
28+
LinuxBridgeCommandResponseMap,
29+
LinuxBridgeStatePayloadMap,
30+
WifiRequestPayload,
31+
AudioSetLevelPayload,
32+
AudioSetMutedPayload,
33+
EmptyPayload,
34+
CommandAck,
35+
} from "./bridge";
1636
export type {
1737
AudioState,
1838
BatteryState,

0 commit comments

Comments
 (0)