File tree Expand file tree Collapse file tree
os/linux/desktop-shell/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -13,6 +13,26 @@ export type { MockSystemProviderProps } from "./providers/MockSystemProvider";
1313export { LinuxSystemProvider } from "./providers/LinuxSystemProvider" ;
1414export type { LinuxSystemProviderProps } from "./providers/LinuxSystemProvider" ;
1515export { 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" ;
1636export type {
1737 AudioState ,
1838 BatteryState ,
You can’t perform that action at this time.
0 commit comments