Skip to content

Commit a06e184

Browse files
authored
Merge pull request #1063 from objectstack-ai/claude/evaluate-plugins-and-services
2 parents 772dcd4 + bf5c6ef commit a06e184

5 files changed

Lines changed: 34 additions & 0 deletions

File tree

apps/studio/mocks/node-polyfills.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ export const watch = () => new EventEmitter();
9898
export const readFile = async () => '';
9999
export const writeFile = async () => {};
100100
export const rename = async () => {};
101+
export const renameSync = () => {};
101102
export const createHash = () => ({ update: () => ({ digest: () => '' }) });
103+
export const randomUUID = () => '00000000-0000-0000-0000-000000000000';

apps/studio/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@
3030
"@objectstack/plugin-auth": "workspace:*",
3131
"@objectstack/plugin-msw": "workspace:*",
3232
"@objectstack/plugin-security": "workspace:*",
33+
"@objectstack/plugin-setup": "workspace:*",
3334
"@objectstack/runtime": "workspace:*",
3435
"@objectstack/service-ai": "workspace:*",
36+
"@objectstack/service-analytics": "workspace:*",
37+
"@objectstack/service-automation": "workspace:*",
3538
"@objectstack/service-feed": "workspace:*",
3639
"@objectstack/spec": "workspace:*",
3740
"@radix-ui/react-avatar": "^1.1.11",

apps/studio/server/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ import { createHonoApp } from '@objectstack/hono';
3131
import { AuthPlugin } from '@objectstack/plugin-auth';
3232
import { SecurityPlugin } from '@objectstack/plugin-security';
3333
import { AuditPlugin } from '@objectstack/plugin-audit';
34+
import { SetupPlugin } from '@objectstack/plugin-setup';
3435
import { FeedServicePlugin } from '@objectstack/service-feed';
3536
import { MetadataPlugin } from '@objectstack/metadata';
3637
import { AIServicePlugin } from '@objectstack/service-ai';
38+
import { AutomationServicePlugin } from '@objectstack/service-automation';
39+
import { AnalyticsServicePlugin } from '@objectstack/service-analytics';
3740
import { handle } from '@hono/node-server/vercel';
3841
import { Hono } from 'hono';
3942
import { cors } from 'hono/cors';
@@ -127,6 +130,9 @@ async function ensureKernel(): Promise<ObjectKernel> {
127130
await kernel.use(new FeedServicePlugin());
128131
await kernel.use(new MetadataPlugin({ watch: false }));
129132
await kernel.use(new AIServicePlugin());
133+
await kernel.use(new AutomationServicePlugin());
134+
await kernel.use(new AnalyticsServicePlugin());
135+
await kernel.use(new SetupPlugin());
130136

131137
// Broker shim — bridges HttpDispatcher → ObjectQL engine
132138
(kernel as any).broker = createBrokerShim(kernel);

apps/studio/src/mocks/createKernel.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import { ObjectKernel, DriverPlugin, AppPlugin } from '@objectstack/runtime';
44
import { ObjectQLPlugin } from '@objectstack/objectql';
55
import { InMemoryDriver } from '@objectstack/driver-memory';
66
import { MSWPlugin } from '@objectstack/plugin-msw';
7+
import { SetupPlugin } from '@objectstack/plugin-setup';
8+
import { AutomationServicePlugin } from '@objectstack/service-automation';
9+
import { AnalyticsServicePlugin } from '@objectstack/service-analytics';
10+
import { MetadataPlugin } from '@objectstack/metadata';
11+
import { AIServicePlugin } from '@objectstack/service-ai';
12+
import { FeedServicePlugin } from '@objectstack/service-feed';
713
import { createBrokerShim } from '../lib/create-broker-shim';
814

915
// System object definitions — resolved via Vite aliases to plugin source (no runtime deps)
@@ -75,6 +81,14 @@ export async function createKernel(options: KernelOptions) {
7581
await kernel.use(new AppPlugin(appConfig));
7682
}
7783

84+
// Register services and plugins
85+
await kernel.use(new FeedServicePlugin());
86+
await kernel.use(new MetadataPlugin({ watch: false }));
87+
await kernel.use(new AIServicePlugin());
88+
await kernel.use(new AutomationServicePlugin());
89+
await kernel.use(new AnalyticsServicePlugin());
90+
await kernel.use(new SetupPlugin());
91+
7892
// Protocol service is registered automatically by ObjectQLPlugin.init()
7993
// via ObjectStackProtocolImplementation (which uses SchemaRegistry internally).
8094
// Do NOT manually set 'protocol' on kernel.services — it would conflict with

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)