Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/packages/cli/tests/__mocks__/xspace-agent.ts

overstepping321415a6169f
diff --git a/xspace-agent/packages/cli/tests/__mocks__/xspace-agent.ts b/xspace-agent/packages/cli/tests/__mocks__/xspace-agent.ts
new file mode 100644
index 000000000..65988f77a
--- /dev/null
+++ b/xspace-agent/packages/cli/tests/__mocks__/xspace-agent.ts
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§73]
+
+// Stub module for xspace-agent so vitest can resolve the import.
+// Tests override this with vi.mock().
+export class XSpaceAgent {
+ constructor(_opts: any) {}
+ async join(_url: string) {}
+ async leave() {}
+ on(_event: string, _handler: Function) {}
+}
+
+