Skip to content

Commit 99e052d

Browse files
hotlongCopilot
andcommitted
fix: wire ObjectOS runtime bootstrap and lock package versions
- replace non-existent createBootStack import with createObjectOSStack from @objectstack/runtime - default to file-backed mode when OS_CLOUD_URL is absent - map cloud/file env vars into runtime stack config - pin @objectstack/* dependencies to ^5.2.0 instead of wildcard - remove deprecated ignoreDeprecations tsconfig option in docs app Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 246e1c8 commit 99e052d

5 files changed

Lines changed: 7597 additions & 27 deletions

File tree

apps/docs/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"compilerOptions": {
33
"baseUrl": ".",
4-
"ignoreDeprecations": "6.0",
54
"target": "ESNext",
65
"lib": [
76
"dom",

apps/objectos/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ boots an `@objectstack/runtime` kernel from either:
88

99
This package intentionally contains **no protocol code**. All schemas,
1010
the kernel, drivers and official plugins come from `@objectstack/*`
11-
packages on npm. Enterprise plugins maintained in this monorepo live
12-
under `../../packages/` and are composed into the manifest in
13-
[`objectstack.config.ts`](./objectstack.config.ts).
11+
packages on npm. Enterprise plugins maintained in this monorepo live under `../../packages/`
12+
and are composed into the runtime stack returned by
13+
[`createObjectOSStack`](https://www.npmjs.com/package/@objectstack/runtime)
14+
in [`objectstack.config.ts`](./objectstack.config.ts).
1415

1516
See the repository [README](../../README.md) for positioning and the
1617
[ObjectStack North Star](https://docs.objectstack.ai/concepts/north-star)

apps/objectos/objectstack.config.ts

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,24 @@
1414
* OS_BUSINESS_DB_URL — Per-project business database
1515
* OS_CACHE_DIR — Local artifact cache (default: /var/cache/objectos)
1616
*
17+
* If OS_CLOUD_URL is absent, ObjectOS defaults to local file-backed mode.
1718
* Enterprise plugins live in ../../packages/* and can be appended to the
1819
* default plugin manifest below.
1920
*/
2021

21-
import { createBootStack } from '@objectstack/runtime';
22+
import { createObjectOSStack } from '@objectstack/runtime';
2223

2324
const cloudUrl = process.env.OS_CLOUD_URL;
2425
const artifactFile = process.env.OS_ARTIFACT_FILE;
2526

26-
if (!cloudUrl && !artifactFile) {
27-
throw new Error(
28-
'ObjectOS: must set OS_CLOUD_URL (cloud mode) or OS_ARTIFACT_FILE (offline mode).',
29-
);
30-
}
31-
32-
export default createBootStack({
33-
runtime: {
34-
cloudUrl,
35-
artifactFile,
36-
projectId: process.env.OS_PROJECT_ID,
37-
cacheDir: process.env.OS_CACHE_DIR ?? '/var/cache/objectos',
38-
},
39-
// Default plugin manifest is provided by @objectstack/runtime.
40-
// To add enterprise plugins, import them from ../../packages/* and
41-
// pass `{ plugins: [...] }` here.
27+
export default await createObjectOSStack({
28+
controlPlaneUrl: cloudUrl ?? 'file',
29+
controlPlaneApiKey: process.env.OS_CLOUD_API_KEY,
30+
fileConfig: artifactFile
31+
? {
32+
artifactPath: artifactFile,
33+
projectId: process.env.OS_PROJECT_ID,
34+
watch: process.env.OS_WATCH_ARTIFACT === '1',
35+
}
36+
: undefined,
4237
});

apps/objectos/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"type-check": "tsc --noEmit"
1313
},
1414
"dependencies": {
15-
"@objectstack/runtime": "*",
16-
"@objectstack/core": "*",
17-
"@objectstack/spec": "*",
18-
"@objectstack/metadata": "*",
19-
"@objectstack/objectql": "*",
20-
"@objectstack/cli": "*"
15+
"@objectstack/runtime": "^5.2.0",
16+
"@objectstack/core": "^5.2.0",
17+
"@objectstack/spec": "^5.2.0",
18+
"@objectstack/metadata": "^5.2.0",
19+
"@objectstack/objectql": "^5.2.0",
20+
"@objectstack/cli": "^5.2.0"
2121
},
2222
"devDependencies": {
2323
"typescript": "^5.7.0"

0 commit comments

Comments
 (0)