Skip to content

Commit d9786f3

Browse files
committed
@objectql/runtime
1 parent d3426c5 commit d9786f3

File tree

30 files changed

+45
-930
lines changed

30 files changed

+45
-930
lines changed

examples/integrations/browser/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default defineConfig({
1717
'@objectql/driver-localstorage': resolve(__dirname, '../../../packages/drivers/localstorage/src/index.ts'),
1818
'@objectql/driver-memory': resolve(__dirname, '../../../packages/drivers/memory/src/index.ts'),
1919
'@objectql/types': resolve(__dirname, '../../../packages/foundation/types/src/index.ts'),
20-
'@objectstack/runtime': resolve(__dirname, '../../../packages/objectstack/runtime/src/index.ts'),
20+
'@objectql/runtime': resolve(__dirname, '../../../packages/objectstack/runtime/src/index.ts'),
2121
'@objectstack/spec': resolve(__dirname, '../../../packages/objectstack/spec/src/index.ts')
2222
}
2323
},

examples/showcase/enterprise-erp/src/plugins/audit/audit.plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
// Import RuntimePlugin types from @objectql/core instead of @objectstack/runtime
9+
// Import RuntimePlugin types from @objectql/core instead of @objectql/runtime
1010
// to avoid ESM/CJS compatibility issues
1111
interface RuntimeContext {
1212
engine: any; // ObjectStackKernel

packages/drivers/DRIVER_COMPLIANCE_MATRIX.md

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

packages/drivers/TEST_COVERAGE.md

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

packages/foundation/core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The core ORM and runtime engine for ObjectQL. This package handles object queryi
44

55
## Features
66

7-
- **Plugin Architecture**: Built on top of `@objectstack/runtime` with kernel-based plugin system
7+
- **Plugin Architecture**: Built on top of `@objectql/runtime` with kernel-based plugin system
88
- **Unified Query Language**: A generic way to query data across different databases (SQL, Mongo, etc.)
99
- **Repository Pattern**: `ObjectRepository` for managing object records
1010
- **Driver Agnostic**: Abstraction layer for database drivers
@@ -17,12 +17,12 @@ The core ORM and runtime engine for ObjectQL. This package handles object queryi
1717
## Installation
1818

1919
```bash
20-
npm install @objectql/core @objectql/types @objectstack/runtime @objectstack/spec
20+
npm install @objectql/core @objectql/types @objectql/runtime @objectstack/spec
2121
```
2222

2323
## Architecture
2424

25-
ObjectQL now wraps the `ObjectStackKernel` from `@objectstack/runtime`, providing:
25+
ObjectQL now wraps the `ObjectStackKernel` from `@objectql/runtime`, providing:
2626

2727
- **Kernel-based lifecycle management**: Initialization, startup, and shutdown
2828
- **Plugin system**: Extensible architecture with `ObjectQLPlugin`

packages/foundation/core/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
testMatch: ['**/test/**/*.test.ts'],
1313
moduleNameMapper: {
1414
'^@objectql/(.*)$': '<rootDir>/../$1/src',
15-
'^@objectstack/runtime$': '<rootDir>/test/__mocks__/@objectstack/runtime.ts',
15+
'^@objectql/runtime$': '<rootDir>/test/__mocks__/@objectql/runtime.ts',
1616
},
1717
transform: {
1818
'^.+\\.ts$': ['ts-jest', {

packages/foundation/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dependencies": {
2525
"@objectql/types": "workspace:*",
2626
"@objectstack/spec": "workspace:*",
27-
"@objectstack/runtime": "workspace:*",
27+
"@objectql/runtime": "workspace:*",
2828
"js-yaml": "^4.1.0",
2929
"openai": "^4.28.0"
3030
},

packages/foundation/core/src/app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
ActionContext,
2323
LoaderPlugin
2424
} from '@objectql/types';
25-
import { ObjectStackKernel, type RuntimePlugin } from '@objectstack/runtime';
25+
import { ObjectStackKernel, type RuntimePlugin } from '@objectql/runtime';
2626
import { ObjectRepository } from './repository';
2727
import { ObjectQLPlugin } from './plugin';
2828
import { convertIntrospectedSchemaToObjects } from './util';
@@ -112,7 +112,7 @@ export class ObjectQL implements IObjectQL {
112112
// Delegate to kernel hook manager
113113
// We wrap the handler to bridge ObjectQL's rich context types with runtime's base types
114114
// The runtime HookContext supports all fields via index signature, so this is safe
115-
const wrappedHandler = handler as unknown as import('@objectstack/runtime').HookHandler;
115+
const wrappedHandler = handler as unknown as import('../../../objectstack/runtime/dist').HookHandler;
116116
this.kernel.hooks.register(event, objectName, wrappedHandler, packageName);
117117
}
118118

@@ -126,7 +126,7 @@ export class ObjectQL implements IObjectQL {
126126
// Delegate to kernel action manager
127127
// We wrap the handler to bridge ObjectQL's rich context types with runtime's base types
128128
// The runtime ActionContext supports all fields via index signature, so this is safe
129-
const wrappedHandler = handler as unknown as import('@objectstack/runtime').ActionHandler;
129+
const wrappedHandler = handler as unknown as import('../../../objectstack/runtime/dist').ActionHandler;
130130
this.kernel.actions.register(objectName, actionName, wrappedHandler, packageName);
131131
}
132132

packages/foundation/core/src/formula-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
import type { RuntimePlugin, RuntimeContext, ObjectStackKernel } from '@objectstack/runtime';
9+
import type { RuntimePlugin, RuntimeContext, ObjectStackKernel } from '@objectql/runtime';
1010
import { FormulaEngine } from './formula-engine';
1111
import type { FormulaEngineConfig } from '@objectql/types';
1212

packages/foundation/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
// Re-export types from @objectstack packages for API compatibility
10-
export type { ObjectStackKernel, ObjectStackRuntimeProtocol } from '@objectstack/runtime';
10+
export type { ObjectStackKernel, ObjectStackRuntimeProtocol } from '@objectql/runtime';
1111
// Note: @objectstack/objectql types temporarily commented out due to type incompatibilities
1212
// in the published package. Will be re-enabled when package is updated.
1313
// export type { ObjectQL as ObjectQLEngine, SchemaRegistry } from '@objectstack/objectql';

0 commit comments

Comments
 (0)