@objectstack/runtime 7.2.1 → 7.3.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.
- package/dist/index.cjs +453 -253
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +444 -244
- package/dist/index.js.map +1 -1
- package/package.json +18 -18
package/dist/index.d.cts
CHANGED
|
@@ -1368,6 +1368,26 @@ declare class HttpDispatcher {
|
|
|
1368
1368
|
* Uses ObjectQL SchemaRegistry directly (via the 'objectql' service).
|
|
1369
1369
|
*/
|
|
1370
1370
|
handlePackages(path: string, method: string, body: any, query: any, _context: HttpProtocolContext): Promise<HttpDispatcherResult>;
|
|
1371
|
+
/**
|
|
1372
|
+
* Assemble a portable, offline-installable package manifest from the
|
|
1373
|
+
* `sys_metadata` overlay rows bound to `packageId`.
|
|
1374
|
+
*
|
|
1375
|
+
* The resulting shape mirrors what `marketplace-install-local` →
|
|
1376
|
+
* `manifestService.register()` → `engine.registerApp()` consumes:
|
|
1377
|
+
* `{ id, name, version, objects:[…], views:[…], flows:[…], … }`
|
|
1378
|
+
* where each category key is the PLURAL manifest name and its value is
|
|
1379
|
+
* an array of clean metadata bodies (provenance decorations stripped).
|
|
1380
|
+
*
|
|
1381
|
+
* Only the metadata categories that `registerApp` can actually consume
|
|
1382
|
+
* are exported. `datasources` and `emailTemplates` are intentionally
|
|
1383
|
+
* excluded (not registered by the import path). `tools` / `skills` ARE
|
|
1384
|
+
* round-tripped: they are registered by `registerApp` on import and
|
|
1385
|
+
* surfaced by `getMetaItems('tool' | 'skill')` on export.
|
|
1386
|
+
*
|
|
1387
|
+
* @returns the manifest object, or `null` if the package id is unknown
|
|
1388
|
+
* AND has no overlay-authored metadata.
|
|
1389
|
+
*/
|
|
1390
|
+
private assemblePackageManifest;
|
|
1371
1391
|
/**
|
|
1372
1392
|
* Cloud / Environment Control-Plane routes.
|
|
1373
1393
|
*
|
|
@@ -1908,7 +1928,7 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
|
|
|
1908
1928
|
* - The Console SPA stays on the tenant origin, so no CORS configuration
|
|
1909
1929
|
* is required on the cloud side.
|
|
1910
1930
|
* - Local-dev `os serve` works regardless of whether the developer's
|
|
1911
|
-
* browser has cookies for cloud.objectos.
|
|
1931
|
+
* browser has cookies for cloud.objectos.ai.
|
|
1912
1932
|
* - Adds a single, easily auditable network seam between tenant and
|
|
1913
1933
|
* control plane.
|
|
1914
1934
|
*
|
|
@@ -1922,7 +1942,7 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
|
|
|
1922
1942
|
|
|
1923
1943
|
interface MarketplaceProxyPluginConfig {
|
|
1924
1944
|
/**
|
|
1925
|
-
* Control-plane base URL (e.g. https://cloud.objectos.
|
|
1945
|
+
* Control-plane base URL (e.g. https://cloud.objectos.ai). When the
|
|
1926
1946
|
* caller passes nothing AND the runtime has no OS_CLOUD_URL set, the
|
|
1927
1947
|
* plugin falls back to the public ObjectStack-operated cloud so that
|
|
1928
1948
|
* `objectstack dev` can browse the marketplace out of the box. Set
|
|
@@ -2144,7 +2164,7 @@ declare class RuntimeConfigPlugin implements Plugin {
|
|
|
2144
2164
|
* ObjectStack-operated control plane so a vanilla `objectstack dev` can
|
|
2145
2165
|
* browse the marketplace out of the box.
|
|
2146
2166
|
*/
|
|
2147
|
-
declare const DEFAULT_CLOUD_URL = "https://cloud.objectos.
|
|
2167
|
+
declare const DEFAULT_CLOUD_URL = "https://cloud.objectos.ai";
|
|
2148
2168
|
/**
|
|
2149
2169
|
* Resolve the effective control-plane URL from an explicit constructor
|
|
2150
2170
|
* value, the OS_CLOUD_URL env var, or the default. Returns an empty
|
|
@@ -2350,7 +2370,7 @@ interface SeedPlatformSsoClientOptions {
|
|
|
2350
2370
|
/** Project id (also used to derive client_id + client_secret). */
|
|
2351
2371
|
environmentId: string;
|
|
2352
2372
|
/**
|
|
2353
|
-
* Project hostname (e.g. `acme-crm.objectos.
|
|
2373
|
+
* Project hostname (e.g. `acme-crm.objectos.ai`). Optional — projects
|
|
2354
2374
|
* may be created before a hostname is assigned, in which case no
|
|
2355
2375
|
* redirect_uri is registered yet and the row is upserted with an
|
|
2356
2376
|
* empty `redirect_uris` array. Calling this function again once the
|
package/dist/index.d.ts
CHANGED
|
@@ -1368,6 +1368,26 @@ declare class HttpDispatcher {
|
|
|
1368
1368
|
* Uses ObjectQL SchemaRegistry directly (via the 'objectql' service).
|
|
1369
1369
|
*/
|
|
1370
1370
|
handlePackages(path: string, method: string, body: any, query: any, _context: HttpProtocolContext): Promise<HttpDispatcherResult>;
|
|
1371
|
+
/**
|
|
1372
|
+
* Assemble a portable, offline-installable package manifest from the
|
|
1373
|
+
* `sys_metadata` overlay rows bound to `packageId`.
|
|
1374
|
+
*
|
|
1375
|
+
* The resulting shape mirrors what `marketplace-install-local` →
|
|
1376
|
+
* `manifestService.register()` → `engine.registerApp()` consumes:
|
|
1377
|
+
* `{ id, name, version, objects:[…], views:[…], flows:[…], … }`
|
|
1378
|
+
* where each category key is the PLURAL manifest name and its value is
|
|
1379
|
+
* an array of clean metadata bodies (provenance decorations stripped).
|
|
1380
|
+
*
|
|
1381
|
+
* Only the metadata categories that `registerApp` can actually consume
|
|
1382
|
+
* are exported. `datasources` and `emailTemplates` are intentionally
|
|
1383
|
+
* excluded (not registered by the import path). `tools` / `skills` ARE
|
|
1384
|
+
* round-tripped: they are registered by `registerApp` on import and
|
|
1385
|
+
* surfaced by `getMetaItems('tool' | 'skill')` on export.
|
|
1386
|
+
*
|
|
1387
|
+
* @returns the manifest object, or `null` if the package id is unknown
|
|
1388
|
+
* AND has no overlay-authored metadata.
|
|
1389
|
+
*/
|
|
1390
|
+
private assemblePackageManifest;
|
|
1371
1391
|
/**
|
|
1372
1392
|
* Cloud / Environment Control-Plane routes.
|
|
1373
1393
|
*
|
|
@@ -1908,7 +1928,7 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
|
|
|
1908
1928
|
* - The Console SPA stays on the tenant origin, so no CORS configuration
|
|
1909
1929
|
* is required on the cloud side.
|
|
1910
1930
|
* - Local-dev `os serve` works regardless of whether the developer's
|
|
1911
|
-
* browser has cookies for cloud.objectos.
|
|
1931
|
+
* browser has cookies for cloud.objectos.ai.
|
|
1912
1932
|
* - Adds a single, easily auditable network seam between tenant and
|
|
1913
1933
|
* control plane.
|
|
1914
1934
|
*
|
|
@@ -1922,7 +1942,7 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
|
|
|
1922
1942
|
|
|
1923
1943
|
interface MarketplaceProxyPluginConfig {
|
|
1924
1944
|
/**
|
|
1925
|
-
* Control-plane base URL (e.g. https://cloud.objectos.
|
|
1945
|
+
* Control-plane base URL (e.g. https://cloud.objectos.ai). When the
|
|
1926
1946
|
* caller passes nothing AND the runtime has no OS_CLOUD_URL set, the
|
|
1927
1947
|
* plugin falls back to the public ObjectStack-operated cloud so that
|
|
1928
1948
|
* `objectstack dev` can browse the marketplace out of the box. Set
|
|
@@ -2144,7 +2164,7 @@ declare class RuntimeConfigPlugin implements Plugin {
|
|
|
2144
2164
|
* ObjectStack-operated control plane so a vanilla `objectstack dev` can
|
|
2145
2165
|
* browse the marketplace out of the box.
|
|
2146
2166
|
*/
|
|
2147
|
-
declare const DEFAULT_CLOUD_URL = "https://cloud.objectos.
|
|
2167
|
+
declare const DEFAULT_CLOUD_URL = "https://cloud.objectos.ai";
|
|
2148
2168
|
/**
|
|
2149
2169
|
* Resolve the effective control-plane URL from an explicit constructor
|
|
2150
2170
|
* value, the OS_CLOUD_URL env var, or the default. Returns an empty
|
|
@@ -2350,7 +2370,7 @@ interface SeedPlatformSsoClientOptions {
|
|
|
2350
2370
|
/** Project id (also used to derive client_id + client_secret). */
|
|
2351
2371
|
environmentId: string;
|
|
2352
2372
|
/**
|
|
2353
|
-
* Project hostname (e.g. `acme-crm.objectos.
|
|
2373
|
+
* Project hostname (e.g. `acme-crm.objectos.ai`). Optional — projects
|
|
2354
2374
|
* may be created before a hostname is assigned, in which case no
|
|
2355
2375
|
* redirect_uri is registered yet and the row is upserted with an
|
|
2356
2376
|
* empty `redirect_uris` array. Calling this function again once the
|