Skip to content

Commit 3d469fd

Browse files
committed
Add kernel package and update dependencies
Introduced a new 'kernel' package with initial implementation, configuration, and TypeScript setup. Updated references from '@objectql/core' to '@objectos/core' in changelogs. Modified server controllers and modules to integrate the new kernel and objectql provider.
1 parent 6a5aaf6 commit 3d469fd

File tree

19 files changed

+7836
-8297
lines changed

19 files changed

+7836
-8297
lines changed

examples/project-management/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
### Patch Changes
1010

1111
- Updated dependencies
12-
- @objectql/core@1.1.0
12+
- @objectos/core@1.1.0
1313

1414
## 1.0.0
1515

1616
### Patch Changes
1717

1818
- Updated dependencies
19-
- @objectql/core@1.0.0
19+
- @objectos/core@1.0.0

objectos.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
// 使用 defineConfig 获得类型提示
3+
export default {
4+
// 1. 基础信息
5+
name: "My Enterprise App",
6+
7+
datasource: {
8+
default: {
9+
type: 'postgres',
10+
url: process.env.DATABASE_URL || 'postgres://postgres:postgres@localhost:5432/objectos',
11+
}
12+
},
13+
// 2. 预设 (Presets) - 这里定义你要加载哪些现成的业务包
14+
// 逻辑:Kernel 会去 node_modules 里找这些包,并加载其中的 objects 目录
15+
presets: [
16+
'@objectos/preset-base', // 基础包 (User, Role)
17+
],
18+
19+
// 3. 插件 (Plugins) - 这里定义你要启用的逻辑能力
20+
plugins: [
21+
['@objectos/plugin-storage', { driver: 's3' }]
22+
],
23+
24+
// 4. 本地对象目录 (Local Objects)
25+
// 除了预设,你本地定义的 .object.yml 放在哪里
26+
// directories: [
27+
// './objects',
28+
// ]
29+
};

0 commit comments

Comments
 (0)