@objectstack/runtime 7.2.0 → 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 +469 -259
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -4
- package/dist/index.d.ts +25 -4
- package/dist/index.js +457 -249
- package/dist/index.js.map +1 -1
- package/package.json +18 -18
package/dist/index.d.cts
CHANGED
|
@@ -12,6 +12,7 @@ export { CapturedError, ErrorReporter, InMemoryErrorReporter, InMemoryMetricsReg
|
|
|
12
12
|
import { MiddlewareConfig, MiddlewareType } from '@objectstack/spec/system';
|
|
13
13
|
import { EnvironmentArtifact } from '@objectstack/spec/cloud';
|
|
14
14
|
export { RestApiPluginConfig, RestServer, RouteEntry, RouteGroupBuilder, RouteManager, createRestApiPlugin } from '@objectstack/rest';
|
|
15
|
+
export { _resetEnvDeprecationWarnings, readEnvWithDeprecation } from '@objectstack/types';
|
|
15
16
|
|
|
16
17
|
interface RuntimeConfig {
|
|
17
18
|
/**
|
|
@@ -1367,6 +1368,26 @@ declare class HttpDispatcher {
|
|
|
1367
1368
|
* Uses ObjectQL SchemaRegistry directly (via the 'objectql' service).
|
|
1368
1369
|
*/
|
|
1369
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;
|
|
1370
1391
|
/**
|
|
1371
1392
|
* Cloud / Environment Control-Plane routes.
|
|
1372
1393
|
*
|
|
@@ -1907,7 +1928,7 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
|
|
|
1907
1928
|
* - The Console SPA stays on the tenant origin, so no CORS configuration
|
|
1908
1929
|
* is required on the cloud side.
|
|
1909
1930
|
* - Local-dev `os serve` works regardless of whether the developer's
|
|
1910
|
-
* browser has cookies for cloud.objectos.
|
|
1931
|
+
* browser has cookies for cloud.objectos.ai.
|
|
1911
1932
|
* - Adds a single, easily auditable network seam between tenant and
|
|
1912
1933
|
* control plane.
|
|
1913
1934
|
*
|
|
@@ -1921,7 +1942,7 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
|
|
|
1921
1942
|
|
|
1922
1943
|
interface MarketplaceProxyPluginConfig {
|
|
1923
1944
|
/**
|
|
1924
|
-
* Control-plane base URL (e.g. https://cloud.objectos.
|
|
1945
|
+
* Control-plane base URL (e.g. https://cloud.objectos.ai). When the
|
|
1925
1946
|
* caller passes nothing AND the runtime has no OS_CLOUD_URL set, the
|
|
1926
1947
|
* plugin falls back to the public ObjectStack-operated cloud so that
|
|
1927
1948
|
* `objectstack dev` can browse the marketplace out of the box. Set
|
|
@@ -2143,7 +2164,7 @@ declare class RuntimeConfigPlugin implements Plugin {
|
|
|
2143
2164
|
* ObjectStack-operated control plane so a vanilla `objectstack dev` can
|
|
2144
2165
|
* browse the marketplace out of the box.
|
|
2145
2166
|
*/
|
|
2146
|
-
declare const DEFAULT_CLOUD_URL = "https://cloud.objectos.
|
|
2167
|
+
declare const DEFAULT_CLOUD_URL = "https://cloud.objectos.ai";
|
|
2147
2168
|
/**
|
|
2148
2169
|
* Resolve the effective control-plane URL from an explicit constructor
|
|
2149
2170
|
* value, the OS_CLOUD_URL env var, or the default. Returns an empty
|
|
@@ -2349,7 +2370,7 @@ interface SeedPlatformSsoClientOptions {
|
|
|
2349
2370
|
/** Project id (also used to derive client_id + client_secret). */
|
|
2350
2371
|
environmentId: string;
|
|
2351
2372
|
/**
|
|
2352
|
-
* Project hostname (e.g. `acme-crm.objectos.
|
|
2373
|
+
* Project hostname (e.g. `acme-crm.objectos.ai`). Optional — projects
|
|
2353
2374
|
* may be created before a hostname is assigned, in which case no
|
|
2354
2375
|
* redirect_uri is registered yet and the row is upserted with an
|
|
2355
2376
|
* empty `redirect_uris` array. Calling this function again once the
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { CapturedError, ErrorReporter, InMemoryErrorReporter, InMemoryMetricsReg
|
|
|
12
12
|
import { MiddlewareConfig, MiddlewareType } from '@objectstack/spec/system';
|
|
13
13
|
import { EnvironmentArtifact } from '@objectstack/spec/cloud';
|
|
14
14
|
export { RestApiPluginConfig, RestServer, RouteEntry, RouteGroupBuilder, RouteManager, createRestApiPlugin } from '@objectstack/rest';
|
|
15
|
+
export { _resetEnvDeprecationWarnings, readEnvWithDeprecation } from '@objectstack/types';
|
|
15
16
|
|
|
16
17
|
interface RuntimeConfig {
|
|
17
18
|
/**
|
|
@@ -1367,6 +1368,26 @@ declare class HttpDispatcher {
|
|
|
1367
1368
|
* Uses ObjectQL SchemaRegistry directly (via the 'objectql' service).
|
|
1368
1369
|
*/
|
|
1369
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;
|
|
1370
1391
|
/**
|
|
1371
1392
|
* Cloud / Environment Control-Plane routes.
|
|
1372
1393
|
*
|
|
@@ -1907,7 +1928,7 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
|
|
|
1907
1928
|
* - The Console SPA stays on the tenant origin, so no CORS configuration
|
|
1908
1929
|
* is required on the cloud side.
|
|
1909
1930
|
* - Local-dev `os serve` works regardless of whether the developer's
|
|
1910
|
-
* browser has cookies for cloud.objectos.
|
|
1931
|
+
* browser has cookies for cloud.objectos.ai.
|
|
1911
1932
|
* - Adds a single, easily auditable network seam between tenant and
|
|
1912
1933
|
* control plane.
|
|
1913
1934
|
*
|
|
@@ -1921,7 +1942,7 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
|
|
|
1921
1942
|
|
|
1922
1943
|
interface MarketplaceProxyPluginConfig {
|
|
1923
1944
|
/**
|
|
1924
|
-
* Control-plane base URL (e.g. https://cloud.objectos.
|
|
1945
|
+
* Control-plane base URL (e.g. https://cloud.objectos.ai). When the
|
|
1925
1946
|
* caller passes nothing AND the runtime has no OS_CLOUD_URL set, the
|
|
1926
1947
|
* plugin falls back to the public ObjectStack-operated cloud so that
|
|
1927
1948
|
* `objectstack dev` can browse the marketplace out of the box. Set
|
|
@@ -2143,7 +2164,7 @@ declare class RuntimeConfigPlugin implements Plugin {
|
|
|
2143
2164
|
* ObjectStack-operated control plane so a vanilla `objectstack dev` can
|
|
2144
2165
|
* browse the marketplace out of the box.
|
|
2145
2166
|
*/
|
|
2146
|
-
declare const DEFAULT_CLOUD_URL = "https://cloud.objectos.
|
|
2167
|
+
declare const DEFAULT_CLOUD_URL = "https://cloud.objectos.ai";
|
|
2147
2168
|
/**
|
|
2148
2169
|
* Resolve the effective control-plane URL from an explicit constructor
|
|
2149
2170
|
* value, the OS_CLOUD_URL env var, or the default. Returns an empty
|
|
@@ -2349,7 +2370,7 @@ interface SeedPlatformSsoClientOptions {
|
|
|
2349
2370
|
/** Project id (also used to derive client_id + client_secret). */
|
|
2350
2371
|
environmentId: string;
|
|
2351
2372
|
/**
|
|
2352
|
-
* Project hostname (e.g. `acme-crm.objectos.
|
|
2373
|
+
* Project hostname (e.g. `acme-crm.objectos.ai`). Optional — projects
|
|
2353
2374
|
* may be created before a hostname is assigned, in which case no
|
|
2354
2375
|
* redirect_uri is registered yet and the row is upserted with an
|
|
2355
2376
|
* empty `redirect_uris` array. Calling this function again once the
|