Skip to content

Commit bf275a2

Browse files
committed
fix(os): polish elizaOS live demo
1 parent 2e9bad8 commit bf275a2

55 files changed

Lines changed: 1241 additions & 885 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/agent/src/api/index.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@ export {
99
handleAppsRoutes,
1010
} from "@elizaos/plugin-app-manager";
1111
// === Phase 4D: wallet routes extracted to @elizaos/plugin-wallet ===
12-
// Re-export `handleWalletRoutes` (and supporting types) from the plugin so
13-
// downstream callers that imported from `@elizaos/agent` keep working
14-
// during the transition. New callers should import from
15-
// `@elizaos/plugin-wallet` directly.
16-
export {
17-
handleWalletRoutes,
18-
type WalletAddressesSnapshot,
19-
type WalletRouteContext,
20-
type WalletRouteDependencies,
21-
type WalletRpcReadinessSnapshot,
12+
// Keep the compatibility surface, but lazy-load the wallet implementation.
13+
// The agent API barrel is loaded during local-server startup, and a static
14+
// re-export would make every runtime require the full wallet/trading stack
15+
// before any wallet route is used.
16+
export type {
17+
WalletAddressesSnapshot,
18+
WalletRouteContext,
19+
WalletRouteDependencies,
20+
WalletRpcReadinessSnapshot,
2221
} from "@elizaos/plugin-wallet";
22+
export const handleWalletRoutes: typeof import("@elizaos/plugin-wallet").handleWalletRoutes =
23+
async (context) => {
24+
const walletApi = await import("@elizaos/plugin-wallet");
25+
return walletApi.handleWalletRoutes(context);
26+
};
2327
export * from "./accounts-routes.ts";
2428
export * from "./agent-admin-routes.ts";
2529
export * from "./agent-lifecycle-routes.ts";

packages/agent/src/api/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3416,6 +3416,7 @@ export async function startApiServer(opts?: {
34163416
});
34173417
} catch (err) {
34183418
const msg = err instanceof Error ? err.message : "internal error";
3419+
logger.error({ err }, `[eliza-api] Request handler failed: ${msg}`);
34193420
addLog("error", msg, "api", ["server", "api"]);
34203421
error(res, msg, 500);
34213422
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"appName": "Milady",
3-
"appId": "ai.milady.milady",
4-
"namespace": "milady",
5-
"urlScheme": "milady",
6-
"configDirName": "Milady",
7-
"appDescription": "Open framework for autonomous agents",
8-
"buildVariant": "direct"
2+
"appName": "Milady",
3+
"appId": "ai.milady.milady",
4+
"namespace": "milady",
5+
"urlScheme": "milady",
6+
"configDirName": "Milady",
7+
"appDescription": "Open framework for autonomous agents",
8+
"buildVariant": "direct"
99
}

0 commit comments

Comments
 (0)