Skip to content

Commit 6c53159

Browse files
committed
Remove test interfaces for IHttpServer and IDataEngine from the runtime package
1 parent 1ab5716 commit 6c53159

File tree

6 files changed

+17
-187
lines changed

6 files changed

+17
-187
lines changed

examples/host/debug-registry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { ObjectKernel, ObjectQLPlugin, DriverPlugin, AppManifestPlugin } from '@objectstack/runtime';
2+
import { ObjectKernel, ObjectQLPlugin, DriverPlugin, AppPlugin } from '@objectstack/runtime';
33
import { SchemaRegistry, ObjectQL } from '@objectstack/objectql';
44
import { InMemoryDriver } from '@objectstack/driver-memory';
55

@@ -15,7 +15,7 @@ import TodoApp from '@objectstack/example-todo/objectstack.config';
1515
kernel
1616
.use(new ObjectQLPlugin())
1717
.use(new DriverPlugin(new InMemoryDriver(), 'memory'))
18-
.use(new AppManifestPlugin(TodoApp));
18+
.use(new AppPlugin(TodoApp));
1919

2020
await kernel.bootstrap();
2121

examples/host/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ObjectKernel, DriverPlugin, AppManifestPlugin } from '@objectstack/runtime';
1+
import { ObjectKernel, DriverPlugin, AppPlugin } from '@objectstack/runtime';
22
import { InMemoryDriver } from '@objectstack/driver-memory';
33
import { ObjectQLPlugin } from '@objectstack/objectql';
44
import { HonoServerPlugin } from '@objectstack/plugin-hono-server';
@@ -21,9 +21,9 @@ import BiPluginManifest from '@objectstack/plugin-bi/objectstack.config';
2121
.use(new DriverPlugin(new InMemoryDriver(), 'memory'))
2222

2323
// App manifests
24-
.use(new AppManifestPlugin(CrmApp))
25-
.use(new AppManifestPlugin(TodoApp))
26-
.use(new AppManifestPlugin(BiPluginManifest))
24+
.use(new AppPlugin(CrmApp))
25+
.use(new AppPlugin(TodoApp))
26+
.use(new AppPlugin(BiPluginManifest))
2727

2828
// Load the Hono Server Plugin
2929
.use(new HonoServerPlugin({

examples/msw-react-crud/QUICKSTART.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Now just **3 lines** with auto-mocking:
7373
```typescript
7474
// src/mocks/browser.ts - NEW WAY
7575
const kernel = new ObjectKernel();
76-
kernel.use(new AppManifestPlugin(appConfig));
76+
kernel.use(new AppPlugin(appConfig));
7777
kernel.use(new MSWPlugin({ baseUrl: '/api/v1' }));
7878
await kernel.bootstrap(); // Auto-mocks ALL endpoints!
7979
```
@@ -142,7 +142,7 @@ const customHandlers = [
142142
];
143143

144144
const kernel = new ObjectKernel();
145-
kernel.use(new AppManifestPlugin(appConfig));
145+
kernel.use(new AppPlugin(appConfig));
146146
kernel.use(new MSWPlugin({
147147
customHandlers, // Add your custom handlers
148148
baseUrl: '/api/v1'

examples/msw-react-crud/src/mocks/browser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* and the MSW Plugin which automatically exposes the API.
66
*/
77

8-
import { ObjectKernel, ObjectQLPlugin, DriverPlugin, AppManifestPlugin } from '@objectstack/runtime';
8+
import { ObjectKernel, ObjectQLPlugin, DriverPlugin, AppPlugin } from '@objectstack/runtime';
99
import { InMemoryDriver } from '@objectstack/driver-memory';
1010
import { MSWPlugin } from '@objectstack/plugin-msw';
1111
// import appConfig from '../../objectstack.config';
@@ -31,7 +31,7 @@ export async function startMockServer() {
3131
.use(new DriverPlugin(driver, 'memory'))
3232

3333
// Load todo app config as a plugin
34-
.use(new AppManifestPlugin(todoConfig))
34+
.use(new AppPlugin(todoConfig))
3535

3636
// MSW Plugin (intercepts network requests)
3737
.use(new MSWPlugin({

packages/runtime/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The runtime package provides the **Standard Library** for the ObjectStack Operat
88

99
### Architecture Highlights
1010

11-
- **Standard Library**: Contains essential plugins (`AppManifestPlugin`, `DriverPlugin`)
11+
- **Standard Library**: Contains essential plugins (`AppPlugin`, `DriverPlugin`)
1212
- **Core Integration**: Re-exports `ObjectKernel` for convenience
1313
- **Capability Contracts**: Abstract interfaces for HTTP server and data persistence
1414

@@ -24,7 +24,7 @@ npm install @objectstack/runtime
2424

2525
```typescript
2626
import { ObjectKernel } from '@objectstack/core';
27-
import { ObjectQLPlugin, DriverPlugin, AppManifestPlugin } from '@objectstack/runtime';
27+
import { ObjectQLPlugin, DriverPlugin, AppPlugin } from '@objectstack/runtime';
2828
import { InMemoryDriver } from '@objectstack/driver-memory';
2929

3030
const kernel = new ObjectKernel();
@@ -37,7 +37,7 @@ kernel
3737
.use(new DriverPlugin(new InMemoryDriver(), 'memory'))
3838

3939
// Add your app configurations
40-
// .use(new AppManifestPlugin(appConfig));
40+
// .use(new AppPlugin(appConfig));
4141

4242
await kernel.bootstrap();
4343
```
@@ -107,14 +107,14 @@ new DriverPlugin(driver, 'driver-name')
107107

108108
**Dependencies**: `['com.objectstack.engine.objectql']`
109109

110-
#### AppManifestPlugin
110+
#### AppPlugin
111111
Wraps ObjectStack app manifests (objectstack.config.ts) as plugins.
112112

113113
```typescript
114-
new AppManifestPlugin(appConfig)
114+
new AppPlugin(appConfig)
115115
```
116116

117-
**Dependencies**: `['com.objectstack.engine.objectql']`
117+
**Services**: `'app.{id}'`
118118

119119
## API Reference
120120

@@ -246,7 +246,7 @@ See the `examples/` directory for complete examples:
246246
- `examples/host/` - Full server setup with Hono
247247
- `examples/msw-react-crud/` - Browser-based setup with MSW
248248
- `test-mini-kernel.ts` - Comprehensive kernel test suite
249-
- `packages/runtime/src/test-interfaces.ts` - Capability contract interface examples
249+
- `packages/runtime/src/
250250

251251
## Benefits of MiniKernel
252252

packages/runtime/src/test-interfaces.ts

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)