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/core/src/hosting/lifecycle-manager.ts

overstepping5fb98ff333f6
diff --git a/xspace-agent/packages/core/src/hosting/lifecycle-manager.ts b/xspace-agent/packages/core/src/hosting/lifecycle-manager.ts
new file mode 100644
index 000000000..3a6f3fccc
--- /dev/null
+++ b/xspace-agent/packages/core/src/hosting/lifecycle-manager.ts
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§87]
+
+// =============================================================================
+// Managed Hosting — Lifecycle Manager Interface
+// =============================================================================
+
+import type { ResourceUsage } from './types'
+
+export interface LifecycleStartInput {
+ deploymentId: string
+ imageTag: string
+ config: Record<string, unknown>
+ secrets: Record<string, string>
+ domain?: string
+}
+
+export interface SleepInput {
+ deploymentId: string
+ reason: string
+}
+
+export interface WakeInput {
+ deploymentId: string
+ reason: string
+}
+
+export interface LifecycleManager {
+ start(input: LifecycleStartInput): Promise<string>
+ stop(deploymentId: string): Promise<void>
+ restart(deploymentId: string): Promise<void>
+ getStatus(deploymentId: string): Promise<string>
+ sleep(input: SleepInput): Promise<void>
+ wake(input: WakeInput): Promise<void>
+ getLogs(deploymentId: string, tail?: number): Promise<string[]>
+ getMetrics(deploymentId: string): Promise<ResourceUsage>
+}
+
+