@cratis/stage.runtime 4.188.5 → 4.189.0

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.
@@ -0,0 +1,14 @@
1
+ import type { ArcConfiguration } from '@cratis/arc.react';
2
+ import { ObservableQueryFor, QueryFor, type QueryResult } from '@cratis/arc/queries';
3
+ type StageQuery = QueryFor<unknown> | ObservableQueryFor<unknown>;
4
+ type StageQueryType = new () => StageQuery;
5
+ declare let routeResolver: ((route: string) => StageQueryType) | undefined;
6
+ /** Installs the live host's proxy factory; generated applications leave name resolution strict. */
7
+ export declare function registerQueryRouteResolver(resolver: typeof routeResolver): void;
8
+ /** Resolves modeled bindings first, then an attached route through the live host's factory. */
9
+ export declare function registeredQuery(name: string, route?: string): StageQueryType | undefined;
10
+ /** Performs a native Arc query, preserving its typed result. */
11
+ export declare function performQuery(queryType: StageQueryType, args: Record<string, unknown>, arc: ArcConfiguration): Promise<QueryResult<unknown>>;
12
+ /** Subscribes through Arc's configured transport and returns its native cleanup. */
13
+ export declare function subscribeQuery(queryType: StageQueryType, args: Record<string, unknown>, arc: ArcConfiguration, callback: (result: QueryResult<unknown>) => void): import("@cratis/arc/queries").ObservableQuerySubscription<unknown> | undefined;
14
+ export {};
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface StageRoutes {
5
5
  commands: Record<string, string>;
6
- queries: Record<string, string>;
6
+ queries?: Record<string, string>;
7
7
  /** Live-host metadata for route-synthesized proxies. Generated apps register their real proxies instead. */
8
8
  commandSchemas?: Record<string, string>;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/stage.runtime",
3
- "version": "4.188.5",
3
+ "version": "4.189.0",
4
4
  "description": "The Cratis Stage application runtime for Arc and Scene",
5
5
  "author": "Cratis",
6
6
  "type": "module",
@@ -40,6 +40,7 @@
40
40
  "@cratis/arc": "22.112.1",
41
41
  "@cratis/arc.react": "22.112.1",
42
42
  "@cratis/components": "4.29.0",
43
+ "@cratis/fundamentals": "7.25.1",
43
44
  "@cratis/scene.blueprint.default": "4.75.0",
44
45
  "@cratis/scene.components": "4.75.0",
45
46
  "@cratis/scene.engine": "4.75.0",