Skip to content

Commit 762ad5e

Browse files
Copilothotlong
andcommitted
Refactor platform kernel code to use @objectstack/runtime@0.1.1 and @objectstack/spec@0.1.2
- Updated @objectstack/spec from 0.1.1 to 0.1.2 in packages/foundation/types - Updated @objectstack/spec from 0.1.1 to 0.1.2 in packages/foundation/core - Added @objectstack/runtime@0.1.1 as dependency - Added @objectstack/objectql@0.1.1 as dependency - Added type exports for ObjectStackKernel, ObjectStackRuntimeProtocol, ObjectQLEngine, and SchemaRegistry - Fixed searchable field requirement in util.ts for new spec version - All 236 tests pass successfully Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 425473b commit 762ad5e

5 files changed

Lines changed: 49 additions & 10 deletions

File tree

packages/foundation/core/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
"dependencies": {
2525
"@objectql/types": "workspace:*",
26-
"@objectstack/spec": "^0.1.1",
26+
"@objectstack/spec": "^0.1.2",
27+
"@objectstack/runtime": "^0.1.1",
28+
"@objectstack/objectql": "^0.1.1",
2729
"js-yaml": "^4.1.0",
2830
"openai": "^4.28.0"
2931
},

packages/foundation/core/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
// Re-export types from @objectstack packages for API compatibility
10+
// Note: Using type-only imports to avoid runtime issues with @objectstack/objectql package configuration
11+
export type { ObjectStackKernel, ObjectStackRuntimeProtocol } from '@objectstack/runtime';
12+
export type { ObjectQL as ObjectQLEngine, SchemaRegistry } from '@objectstack/objectql';
13+
14+
// Export our enhanced runtime components (actual implementations)
915
export * from './repository';
1016
export * from './app';
1117

packages/foundation/core/src/util.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ export function convertIntrospectedSchemaToObjects(
117117
type: 'lookup',
118118
reference_to: foreignKey.referencedTable,
119119
label: toTitleCase(column.name),
120-
required: !column.nullable
120+
required: !column.nullable,
121+
searchable: false
121122
};
122123
} else {
123124
// Regular field
@@ -129,7 +130,8 @@ export function convertIntrospectedSchemaToObjects(
129130
name: column.name,
130131
type: fieldType,
131132
label: toTitleCase(column.name),
132-
required: !column.nullable
133+
required: !column.nullable,
134+
searchable: false
133135
};
134136

135137
// Add unique constraint

packages/foundation/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"test": "jest --passWithNoTests"
2828
},
2929
"dependencies": {
30-
"@objectstack/spec": "^0.1.1"
30+
"@objectstack/spec": "^0.1.2"
3131
},
3232
"devDependencies": {
3333
"ts-json-schema-generator": "^2.4.0"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)