@ossy/platform 3.0.2 → 3.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/platform",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Ossy application server runtime",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,17 +44,17 @@
44
44
  "@aws-sdk/util-create-request": "^3.972.26",
45
45
  "@aws-sdk/util-format-url": "^3.972.17",
46
46
  "@modelcontextprotocol/sdk": "^1.12.1",
47
- "@ossy/config": "^3.0.2",
48
- "@ossy/event-store": "^3.0.2",
49
- "@ossy/locale": "^3.0.2",
50
- "@ossy/manifest": "^3.0.2",
51
- "@ossy/observability": "^3.0.2",
52
- "@ossy/policies": "^3.0.2",
53
- "@ossy/schema": "^3.0.2",
54
- "@ossy/sdk": "^3.0.2",
55
- "@ossy/tokens": "^3.0.2",
56
- "@ossy/users": "^3.0.2",
57
- "@ossy/workspaces": "^3.0.2",
47
+ "@ossy/config": "^3.0.3",
48
+ "@ossy/event-store": "^3.0.3",
49
+ "@ossy/locale": "^3.0.3",
50
+ "@ossy/manifest": "^3.0.3",
51
+ "@ossy/observability": "^3.0.3",
52
+ "@ossy/policies": "^3.0.3",
53
+ "@ossy/schema": "^3.0.3",
54
+ "@ossy/sdk": "^3.0.3",
55
+ "@ossy/tokens": "^3.0.3",
56
+ "@ossy/users": "^3.0.3",
57
+ "@ossy/workspaces": "^3.0.3",
58
58
  "cookie-parser": "^1.4.7",
59
59
  "dotenv": ">=16.0.0 <18.0.0",
60
60
  "express": ">=5.0.0 <6.0.0",
@@ -74,5 +74,5 @@
74
74
  "src",
75
75
  "Dockerfile"
76
76
  ],
77
- "gitHead": "f0a8af3c370bbaffe4f7388c14f9345a5c6c56e5"
77
+ "gitHead": "8d098a04b595b2d1f54788c5c7ed7f310e9cd7e1"
78
78
  }
@@ -12,6 +12,6 @@ export async function run ({ payload, req }) {
12
12
  throw Object.assign(new Error('workspaceId required'), { status: 400 })
13
13
  }
14
14
 
15
- const projection = await getProjection(TaskRunListProjection.ProjectionId, workspaceId)
16
- return projection?.state ?? TaskRunListProjection.initialState(workspaceId)
15
+ const projection = await getProjection(workspaceId, TaskRunListProjection.ProjectionId)
16
+ return projection ?? TaskRunListProjection.initialState(workspaceId)
17
17
  }
@@ -42,7 +42,7 @@ async function resolveWorkspaceId (domain) {
42
42
 
43
43
  /**
44
44
  * BFS walk of CMS resources under `location`, collecting all file resources recursively.
45
- * Directories have `type === 'directory'`; files have `content.src`.
45
+ * Directories have `type === 'directory'` or `@ossy/platform/schema/directory`; files have `content.src`.
46
46
  *
47
47
  * @param {ReturnType<typeof SDK.of>} sdk
48
48
  * @param {string} location e.g. `/@ossy/apps/ossy.se`
@@ -62,7 +62,7 @@ async function collectFiles (sdk, location) {
62
62
 
63
63
  for (const r of resources) {
64
64
  const relPath = prefix ? `${prefix}/${r.name}` : r.name
65
- if (r.type === 'directory') {
65
+ if (r.type === '@ossy/platform/schema/directory' || r.type === 'directory') {
66
66
  queue.push({ location: `${loc}/${r.name}`, prefix: relPath })
67
67
  } else if (r.content?.src) {
68
68
  results.push({ resource: r, relPath })