Skip to content

Commit c8ea288

Browse files
authored
Merge pull request #128 from objectstack-ai/copilot/upgrade-objectstack-kernel
2 parents 5465082 + dddb4ad commit c8ea288

File tree

5 files changed

+87
-25
lines changed

5 files changed

+87
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@objectql/platform-node": "^3.0.1",
4646
"@objectql/starter-basic": "^1.8.4",
4747
"@objectql/starter-enterprise": "^1.8.4",
48-
"@objectstack/spec": "0.4.1",
48+
"@objectstack/spec": "0.6.0",
4949
"build": "^0.1.4"
5050
}
5151
}

packages/kernel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@objectql/core": "^3.0.1",
1313
"@objectql/types": "^3.0.1",
14-
"@objectstack/spec": "0.4.1",
14+
"@objectstack/spec": "0.6.0",
1515
"fast-glob": "^3.3.2",
1616
"js-yaml": "^4.1.0"
1717
},

packages/kernel/src/plugins/example-spec-plugin.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const ExampleCRMManifest: ObjectStackManifest = {
2424
'system.user.read',
2525
'system.data.write',
2626
],
27-
// In v0.4.1, objects are defined via glob patterns pointing to object definition files
27+
// In v0.6.0, objects are defined via glob patterns pointing to object definition files
2828
// Object files should be YAML or TypeScript files following the object schema
2929
objects: ['./objects/*.object.yml'],
3030

@@ -115,8 +115,10 @@ export const ExampleCRMPlugin: PluginDefinition = {
115115
});
116116

117117
// Register scheduled jobs (if scheduler is available)
118-
if (context.app.scheduler) {
119-
context.app.scheduler.schedule(
118+
// Note: Scheduler is not part of the @objectstack/spec yet, but can be added by implementations
119+
const appWithScheduler = context.app as any;
120+
if (appWithScheduler.scheduler) {
121+
appWithScheduler.scheduler.schedule(
120122
'clean-old-leads',
121123
'0 0 * * 0', // Every Sunday at midnight
122124
async () => {
@@ -183,9 +185,9 @@ export const ExampleCRMPlugin: PluginDefinition = {
183185
* await os.init();
184186
* ```
185187
*
186-
* ## Plugin Architecture Notes (v0.4.1)
188+
* ## Plugin Architecture Notes (v0.6.0)
187189
*
188-
* In the ObjectStack spec v0.4.1, plugins are separated into two parts:
190+
* In the ObjectStack spec v0.6.0, plugins are separated into two parts:
189191
*
190192
* 1. **Manifest** (@objectstack/spec/system/ManifestSchema)
191193
* - Static configuration (id, version, name, permissions)

packages/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@objectql/driver-sql": "^3.0.1",
2626
"@objectql/driver-mongo": "^3.0.1",
2727
"@objectql/server": "^3.0.1",
28-
"@objectstack/spec": "0.3.3",
28+
"@objectstack/spec": "0.6.0",
2929
"better-auth": "^1.4.10",
3030
"better-sqlite3": "^12.6.0",
3131
"mongodb": "^7.0.0",

0 commit comments

Comments
 (0)