@ossy/platform 1.26.0 → 1.26.1

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/server.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/platform",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "description": "Ossy application server runtime",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,8 +24,8 @@
24
24
  "author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@ossy/router": "^1.27.0",
28
- "@ossy/sdk": "^1.27.0",
27
+ "@ossy/router": "^1.27.1",
28
+ "@ossy/sdk": "^1.27.1",
29
29
  "cookie-parser": "^1.4.7",
30
30
  "dotenv": ">=16.0.0 <18.0.0",
31
31
  "express": ">=5.0.0 <6.0.0",
@@ -36,5 +36,5 @@
36
36
  "src",
37
37
  "Dockerfile"
38
38
  ],
39
- "gitHead": "ed72d972761405ecc4e12804aefa77f763aa4646"
39
+ "gitHead": "8769681a3a9ad9e930bd88b29b34a6ec7aaeac7c"
40
40
  }
package/src/server.js CHANGED
@@ -9,6 +9,7 @@ import { ProxyInternal } from './proxy-internal.js'
9
9
  import { SDK } from '@ossy/sdk'
10
10
  import { TaskService } from './tasks/task-service.js'
11
11
  import { ChangeStream } from './tasks/change-stream.js'
12
+ import { registerResourceTemplate } from './resources/resource-template.registry.js'
12
13
 
13
14
  const DEFAULT_PORT = 3000
14
15
  const MANIFEST_FILE = 'manifest.json'
@@ -101,6 +102,10 @@ export async function startServer (options = {}) {
101
102
  }
102
103
  }
103
104
 
105
+ for (const template of manifest.resourceTemplates ?? []) {
106
+ registerResourceTemplate(template)
107
+ }
108
+
104
109
  // Register the SDK so all tasks receive it as `sdk`.
105
110
  // Priority: explicit options.sdk → SDK.of() from env vars → null (direct-DB fallback in tasks).
106
111
  const botSdk = (process.env.API_URL && process.env.OSSY_API_KEY)