Skip to content

Commit dfd3705

Browse files
os-zhuangclaude
andauthored
feat(types)!: drop the ObjectStack/ObjectOS/ObjectQL/ObjectUI Capabilities re-exports (#2860)
Companion to the framework capabilities-descriptor prune: upstream @objectstack/spec removed the dead static capability-descriptor cluster (never-wired fixed-boolean self-portrait whose defaults contradicted the live platform). Drop the @object-ui/types re-exports + the two test assertions. Runtime capability discovery is dynamic: GET /api/v1/discovery + the /.well-known WellKnownCapabilitiesSchema contract. Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent fa8753b commit dfd3705

3 files changed

Lines changed: 18 additions & 13 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
"@object-ui/types": minor
3+
---
4+
5+
feat(types)!: drop the `ObjectStack/ObjectOS/ObjectQL/ObjectUI Capabilities` re-exports (framework capabilities-descriptor prune)
6+
7+
Upstream `@objectstack/spec` removed the dead static capability-descriptor
8+
cluster (`ObjectStackCapabilitiesSchema` / `ObjectOSCapabilitiesSchema` /
9+
`ObjectQLCapabilitiesSchema` / `ObjectUICapabilitiesSchema` + their types) —
10+
a never-wired fixed-boolean self-portrait whose defaults contradicted the
11+
live platform (FLS/RLS/audit all `default(false)` while actually enforced).
12+
This drops the `@object-ui/types` re-exports of those symbols.
13+
14+
**Migration**: discover real runtime capabilities at runtime, not from a
15+
static schema — `GET /api/v1/discovery` (dynamic `capabilities` record with
16+
declared === enforced discipline) and the `/.well-known` contract
17+
(`WellKnownCapabilitiesSchema` from `@objectstack/spec/api`). No replacement
18+
re-export.

packages/types/src/__tests__/namespace-exports.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@ describe('ObjectStack Spec v3.0.0 Namespace Exports', () => {
1919

2020
it('should export ObjectStack schemas', async () => {
2121
const types = await import('../index');
22-
// ObjectStack capability schemas should be exported
2322
expect(types.ObjectStackSchema).toBeDefined();
2423
expect(types.ObjectStackDefinitionSchema).toBeDefined();
25-
expect(types.ObjectStackCapabilitiesSchema).toBeDefined();
26-
expect(types.ObjectOSCapabilitiesSchema).toBeDefined();
27-
expect(types.ObjectQLCapabilitiesSchema).toBeDefined();
28-
expect(types.ObjectUICapabilitiesSchema).toBeDefined();
2924
});
3025

3126
it('should export VERSION constant', async () => {

packages/types/src/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -943,20 +943,12 @@ export {
943943
defineStack,
944944
ObjectStackSchema,
945945
ObjectStackDefinitionSchema,
946-
ObjectStackCapabilitiesSchema,
947-
ObjectOSCapabilitiesSchema,
948-
ObjectQLCapabilitiesSchema,
949-
ObjectUICapabilitiesSchema,
950946
} from '@objectstack/spec';
951947

952948
export type {
953949
PluginContext,
954950
ObjectStack,
955951
ObjectStackDefinition,
956-
ObjectStackCapabilities,
957-
ObjectOSCapabilities,
958-
ObjectQLCapabilities,
959-
ObjectUICapabilities,
960952
} from '@objectstack/spec';
961953

962954
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)