@objectstack/runtime 6.6.0 → 6.7.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.d.cts CHANGED
@@ -1897,10 +1897,9 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
1897
1897
  *
1898
1898
  * Forwards `GET /api/v1/marketplace/*` from a tenant ObjectOS runtime to
1899
1899
  * the configured ObjectStack Cloud control-plane URL. The cloud endpoint
1900
- * (`packages/service-cloud/src/routes/marketplace.ts`) is unauthenticated
1901
- * and only exposes packages whose owner has opted in to the public catalog
1902
- * (`sys_package.marketplace_listed = true`) so the proxy passes through
1903
- * without any credentials.
1900
+ * is unauthenticated and only exposes packages whose owner has opted in
1901
+ * to the public catalog (`sys_package.marketplace_listed = true`) so the
1902
+ * proxy passes through without any credentials.
1904
1903
  *
1905
1904
  * Why proxy instead of direct browser → cloud:
1906
1905
  * - The Console SPA stays on the tenant origin, so no CORS configuration
@@ -2107,9 +2106,9 @@ declare function resolveCloudUrl(explicit?: string | null): string;
2107
2106
  * - a local file artifact (see {@link FileArtifactApiClient} +
2108
2107
  * {@link ArtifactEnvironmentRegistry})
2109
2108
  *
2110
- * The contract was extracted from `@objectstack/service-cloud` in Phase R
2111
- * so the runtime can express "fetch artifact + boot per-project kernel"
2112
- * without taking a dependency on the cloud control plane.
2109
+ * The contract lives in `@objectstack/runtime` so the runtime can
2110
+ * express "fetch artifact + boot per-project kernel" without taking a
2111
+ * dependency on the cloud control plane.
2113
2112
  */
2114
2113
 
2115
2114
  type IDataDriver$1 = Contracts.IDataDriver;
package/dist/index.d.ts CHANGED
@@ -1897,10 +1897,9 @@ declare function createObjectOSStack(config: ObjectOSStackConfig): Promise<Objec
1897
1897
  *
1898
1898
  * Forwards `GET /api/v1/marketplace/*` from a tenant ObjectOS runtime to
1899
1899
  * the configured ObjectStack Cloud control-plane URL. The cloud endpoint
1900
- * (`packages/service-cloud/src/routes/marketplace.ts`) is unauthenticated
1901
- * and only exposes packages whose owner has opted in to the public catalog
1902
- * (`sys_package.marketplace_listed = true`) so the proxy passes through
1903
- * without any credentials.
1900
+ * is unauthenticated and only exposes packages whose owner has opted in
1901
+ * to the public catalog (`sys_package.marketplace_listed = true`) so the
1902
+ * proxy passes through without any credentials.
1904
1903
  *
1905
1904
  * Why proxy instead of direct browser → cloud:
1906
1905
  * - The Console SPA stays on the tenant origin, so no CORS configuration
@@ -2107,9 +2106,9 @@ declare function resolveCloudUrl(explicit?: string | null): string;
2107
2106
  * - a local file artifact (see {@link FileArtifactApiClient} +
2108
2107
  * {@link ArtifactEnvironmentRegistry})
2109
2108
  *
2110
- * The contract was extracted from `@objectstack/service-cloud` in Phase R
2111
- * so the runtime can express "fetch artifact + boot per-project kernel"
2112
- * without taking a dependency on the cloud control plane.
2109
+ * The contract lives in `@objectstack/runtime` so the runtime can
2110
+ * express "fetch artifact + boot per-project kernel" without taking a
2111
+ * dependency on the cloud control plane.
2113
2112
  */
2114
2113
 
2115
2114
  type IDataDriver$1 = Contracts.IDataDriver;
package/dist/index.js CHANGED
@@ -2156,7 +2156,14 @@ async function createStandaloneStack(config) {
2156
2156
  const { InMemoryDriver } = await import("@objectstack/driver-memory");
2157
2157
  driverPlugin = new DriverPlugin2(new InMemoryDriver());
2158
2158
  } else if (dbDriver === "turso") {
2159
- const { TursoDriver } = await import("@objectstack/driver-turso");
2159
+ let TursoDriver;
2160
+ try {
2161
+ ({ TursoDriver } = await import("@objectstack/driver-turso"));
2162
+ } catch (err) {
2163
+ throw new Error(
2164
+ `[StandaloneStack] libsql/turso URL detected ("${dbUrl}") but @objectstack/driver-turso is not installed. Install it with: npm install @objectstack/driver-turso (or use a file: URL to default to better-sqlite3). (${err?.message ?? err})`
2165
+ );
2166
+ }
2160
2167
  driverPlugin = new DriverPlugin2(
2161
2168
  new TursoDriver({ url: dbUrl, authToken: dbAuthToken })
2162
2169
  );
@@ -7321,7 +7328,14 @@ async function createDriver(driverType, databaseUrl, authToken) {
7321
7328
  }
7322
7329
  case "libsql":
7323
7330
  case "turso": {
7324
- const { TursoDriver } = await import("@objectstack/driver-turso");
7331
+ let TursoDriver;
7332
+ try {
7333
+ ({ TursoDriver } = await import("@objectstack/driver-turso"));
7334
+ } catch (err) {
7335
+ throw new Error(
7336
+ `[ArtifactEnvironmentRegistry] libsql/turso driver requested but @objectstack/driver-turso is not installed. Install it with: npm install @objectstack/driver-turso. (${err?.message ?? err})`
7337
+ );
7338
+ }
7325
7339
  return new TursoDriver({ url: databaseUrl, authToken });
7326
7340
  }
7327
7341
  case "postgres":