lumiverse-spindle-types 0.5.25 → 0.5.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dom.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.5.25",
3
+ "version": "0.5.26",
4
4
  "types": "./src/index.ts",
5
5
  "keywords": [
6
6
  "lumiverse",
package/src/dom.ts CHANGED
@@ -810,6 +810,17 @@ export interface SpindleFrontendContext {
810
810
  * ```
811
811
  */
812
812
  getActiveChat(): { chatId: string | null; characterId: string | null };
813
+ /**
814
+ * Signal that the frontend is ready to receive any startup messages that
815
+ * were queued while the bundle was loading.
816
+ */
817
+ ready(): void;
818
+ /**
819
+ * Opt out of legacy auto-ready behavior. Call during setup() before it
820
+ * returns if initialization continues asynchronously and startup messages
821
+ * should remain queued until a later `ready()` call.
822
+ */
823
+ deferReady(): void;
813
824
  sendToBackend(payload: unknown): void;
814
825
  onBackendMessage(handler: (payload: unknown) => void): () => void;
815
826
  /** Structured lifecycle hooks for backend-spawned frontend processes. */