Skip to content

Commit f3fc857

Browse files
committed
feat: add Security, Audit, FeedService, and Metadata plugins for enhanced functionality
1 parent ba525a5 commit f3fc857

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

apps/studio/api/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ import { ObjectQLPlugin } from '@objectstack/objectql';
3030
import { InMemoryDriver } from '@objectstack/driver-memory';
3131
import { createHonoApp } from '@objectstack/hono';
3232
import { AuthPlugin } from '@objectstack/plugin-auth';
33+
import { SecurityPlugin } from '@objectstack/plugin-security';
34+
import { AuditPlugin } from '@objectstack/plugin-audit';
35+
import { FeedServicePlugin } from '@objectstack/service-feed';
36+
import { MetadataPlugin } from '@objectstack/metadata';
3337
import { getRequestListener } from '@hono/node-server';
3438
import type { Hono } from 'hono';
3539
import { createBrokerShim } from '../src/lib/create-broker-shim.js';
@@ -96,6 +100,11 @@ async function ensureKernel(): Promise<ObjectKernel> {
96100
...(trustedOrigins.length > 0 ? { trustedOrigins } : {}),
97101
}));
98102

103+
await kernel.use(new SecurityPlugin());
104+
await kernel.use(new AuditPlugin());
105+
await kernel.use(new FeedServicePlugin());
106+
await kernel.use(new MetadataPlugin({ watch: false }));
107+
99108
// Broker shim — bridges HttpDispatcher → ObjectQL engine
100109
(kernel as any).broker = createBrokerShim(kernel);
101110

apps/studio/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
"@objectstack/metadata": "workspace:*",
2525
"@objectstack/objectql": "workspace:*",
2626
"@objectstack/plugin-auth": "workspace:*",
27+
"@objectstack/plugin-audit": "workspace:*",
2728
"@objectstack/plugin-msw": "workspace:*",
29+
"@objectstack/plugin-security": "workspace:*",
2830
"@objectstack/runtime": "workspace:*",
31+
"@objectstack/service-feed": "workspace:*",
2932
"@objectstack/spec": "workspace:*",
3033
"hono": "^4.12.8",
3134
"@hono/node-server": "^1.19.11",

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)