Skip to content

Commit 86a07b7

Browse files
Copilothotlong
andcommitted
fix: update meta.getObject to meta.getItem for @objectstack/client v3.0.0 API change
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 05ae4d6 commit 86a07b7

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

DEVELOPMENT_PLAN.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> **Version**: 6.0.0
44
> **Date**: February 11, 2026
55
> **Status**: Phase H — @object-ui Driven Development
6-
> **Spec SDK**: `@objectstack/spec@2.0.7`
6+
> **Spec SDK**: `@objectstack/spec@3.0.0`
77
> **ObjectUI**: `@object-ui/*@2.0.0`
88
>
99
> **Roadmap**: See [ROADMAP.md](./ROADMAP.md) for the consolidated roadmap reassessed around @object-ui integration.
@@ -40,7 +40,7 @@
4040
|--------|-------|
4141
| **Plugin Packages** | 13/13 (100%) — All implemented with lifecycle compliance |
4242
| **Spec Compliance** | ✅ 100% — All packages pass `@objectstack/spec` audit |
43-
| **ObjectStack SDK** | `v2.0.7` |
43+
| **ObjectStack SDK** | `v3.0.0` |
4444
| **ObjectUI Packages** | 6 packages at `v2.0.0` |
4545
| **Spec Protocol Namespaces** | 14 |
4646
| **Spec Service Contracts** | 25 |
@@ -70,7 +70,7 @@
7070
-`@objectstack/spec` protocol compliance audit passed
7171
- ✅ Vercel serverless deployment configured and operational
7272
- ✅ 10/14 plugins adopt `@objectstack/spec/contracts` interfaces
73-
-@objectstack/* packages upgraded to v2.0.7
73+
-@objectstack/* packages upgraded to v3.0.0
7474
-@object-ui v2.0.0 packages integrated (6 packages: core, react, components, layout, fields, data-objectstack)
7575
- ✅ ObjectStack data adapter for @object-ui configured
7676
- ✅ Business App Shell pages created (app, object-list, object-record)
@@ -312,13 +312,13 @@ All packages are at version `0.1.0`, licensed under `AGPL-3.0`, and output ESM v
312312

313313
| Dependency | Version | Role | Consumers |
314314
|-----------|---------|------|-----------|
315-
| `@objectstack/runtime` | 2.0.7 | Microkernel — plugin lifecycle, service registry, event bus | All 13 plugins |
316-
| `@objectstack/spec` | 2.0.7 | Protocol contracts — Zod schemas, TypeScript interfaces, Contracts module | audit, automation, auth, jobs, permissions, workflow, browser |
317-
| `@objectstack/cli` | 2.0.7 | Server bootstrap — `objectstack serve` command | Root devDependency |
318-
| `@objectstack/objectql` | 2.0.7 | ObjectQL plugin for metadata loading | Root dependency |
319-
| `@objectstack/driver-memory` | 2.0.7 | In-memory data driver for development/serverless | Root dependency |
320-
| `@objectstack/plugin-hono-server` | 2.0.7 | Hono HTTP server plugin | Root dependency |
321-
| `@objectstack/client` | 2.0.7 | Frontend SDK for API integration | apps/web |
315+
| `@objectstack/runtime` | 3.0.0 | Microkernel — plugin lifecycle, service registry, event bus | All 13 plugins |
316+
| `@objectstack/spec` | 3.0.0 | Protocol contracts — Zod schemas, TypeScript interfaces, Contracts module | audit, automation, auth, jobs, permissions, workflow, browser |
317+
| `@objectstack/cli` | 3.0.0 | Server bootstrap — `objectstack serve` command | Root devDependency |
318+
| `@objectstack/objectql` | 3.0.0 | ObjectQL plugin for metadata loading | Root dependency |
319+
| `@objectstack/driver-memory` | 3.0.0 | In-memory data driver for development/serverless | Root dependency |
320+
| `@objectstack/plugin-hono-server` | 3.0.0 | Hono HTTP server plugin | Root dependency |
321+
| `@objectstack/client` | 3.0.0 | Frontend SDK for API integration | apps/web |
322322
| `@objectql/core` | 4.2.0 | Data engine — metadata registry, query compiler | Root dependency |
323323
| `@objectql/driver-sql` | 4.2.0 | SQL database driver (PostgreSQL, MySQL, SQLite) | Root dependency |
324324
| `@objectql/driver-mongo` | 4.2.0 | MongoDB database driver | Root dependency |
@@ -546,7 +546,7 @@ The microkernel architecture (`@objectstack/runtime`) provides:
546546
| Build optimization (Vite code splitting) || Vendor, router, query manual chunks + lazy routes |
547547
| Docker build pipeline || Multi-stage Dockerfile + docker-compose.yml (ObjectOS + PostgreSQL + Redis) |
548548
| E2E smoke tests (Playwright) || Auth, Admin, and App Shell smoke tests (`e2e/*.spec.ts`) with Playwright config |
549-
| @objectstack/* packages upgrade to v2.0.7 || All packages updated |
549+
| @objectstack/* packages upgrade to v3.0.0 || All packages updated |
550550
| @object-ui v2.0.0 integration || 6 packages installed, adapter configured, demo page functional |
551551
| Spec Contracts adoption (10/14 plugins) || ICacheService, II18nService, INotificationService, IJobService, IAuthService, IAutomationService, IWorkflowService, IRealtimeService, IUIService, IStorageService |
552552
| Business App Shell pages || app.tsx, object-list.tsx, object-record.tsx with TanStack Query hooks |
@@ -585,10 +585,10 @@ The microkernel architecture (`@objectstack/runtime`) provides:
585585
| Plugin Interface | All plugins implement `Plugin` from `@objectstack/runtime` ||
586586
| Runtime Dependency | All plugins declare `@objectstack/runtime` as dependency ||
587587
| Spec Dependency | Packages importing from `@objectstack/spec` declare it ||
588-
| Version Consistency | `@objectstack/spec: 2.0.7`, `@objectstack/runtime: ^2.0.7` ||
588+
| Version Consistency | `@objectstack/spec: 3.0.0`, `@objectstack/runtime: ^3.0.0` ||
589589
| Lifecycle Methods | All plugins implement `init()`, `start()`, `destroy()` ||
590590

591-
### Spec v2.0.7 — Capabilities
591+
### Spec v3.0.0 — Capabilities
592592

593593
**Contracts Module** — 25 service interfaces (`@objectstack/spec/contracts`):
594594
- Typed service contracts for all `CoreServiceNames` (metadata, data, auth, cache, etc.)
@@ -920,7 +920,7 @@ states:
920920
| G.2 | Adopt Contracts interfaces for core plugins | 🔴 | ✅ (10/14) |
921921
| G.3 | @object-ui v2.0.0 package integration | 🔴 | ✅ |
922922
| G.4 | Business App Shell pages (app, object-list, object-record) | 🔴 | ✅ |
923-
| G.5 | @objectstack/* packages upgrade to v2.0.7 | 🔴 | ✅ |
923+
| G.5 | @objectstack/* packages upgrade to v3.0.0 | 🔴 | ✅ |
924924
| G.6 | Consolidate development plan documents | 🟡 | ✅ |
925925
926926
### 12.3 Phase H — @object-ui Driven Development (Complete — February 2026)
@@ -983,7 +983,7 @@ states:
983983
| 2.0.4 | Sync Protocol | Client-server delta sync with conflict resolution |
984984
| 2.0.5 | AI Agent Framework | LLM-powered automation actions and data extraction |
985985
| 2.0.6 | Module Federation | Dynamic CDN loading of plugin UIs |
986-
| 2.0.7 | Offline Admin Console | Service Worker + @objectos/browser for offline access |
986+
| 3.0.0 | Offline Admin Console | Service Worker + @objectos/browser for offline access |
987987
| 2.0.8 | GraphQL plugin | Full GraphQL resolver layer with schema stitching |
988988
| 2.0.9 | Analytics plugin | Business analytics and reporting engine |
989989
| 2.0.10 | AI plugin | AI-powered data extraction, classification, suggestions |
@@ -1170,5 +1170,5 @@ Keep Next.js only for `apps/site` (Fumadocs documentation framework dependency).
11701170
---
11711171

11721172
<div align="center">
1173-
<sub>ObjectOS v6.0.0 — The Enterprise Operating System | Built with @objectstack/spec@2.0.7 + @object-ui@2.0.0</sub>
1173+
<sub>ObjectOS v6.0.0 — The Enterprise Operating System | Built with @objectstack/spec@3.0.0 + @object-ui@2.0.0</sub>
11741174
</div>

apps/web/src/hooks/use-metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function useObjectDefinition(objectName: string | undefined) {
5858
queryFn: async () => {
5959
if (!objectName) return undefined;
6060
try {
61-
const result = await objectStackClient.meta.getObject(objectName);
61+
const result = await objectStackClient.meta.getItem('object', objectName);
6262
if (result) return result as ObjectDefinition;
6363
} catch {
6464
if (!USE_MOCK_FALLBACK) throw new Error(`Failed to fetch object: ${objectName}`);
@@ -83,7 +83,7 @@ export function useAppObjects(appId: string | undefined) {
8383
const objectNames = appQuery.data?.objects ?? [];
8484
const settled = await Promise.allSettled(
8585
objectNames.map((name) =>
86-
objectStackClient.meta.getObject(name).then((r) =>
86+
objectStackClient.meta.getItem('object', name).then((r) =>
8787
r ? (r as ObjectDefinition) : getMockObjectDefinition(name),
8888
).catch(() => getMockObjectDefinition(name)),
8989
),

apps/web/src/hooks/use-prefetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function usePrefetch() {
1818
(objectName: string) => {
1919
void queryClient.prefetchQuery({
2020
queryKey: ['objectDefinition', objectName],
21-
queryFn: () => objectStackClient.meta.getObject(objectName),
21+
queryFn: () => objectStackClient.meta.getItem('object', objectName),
2222
staleTime: 60_000, // 1 minute
2323
});
2424
},

docs/OBJECTUI_INTEGRATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ ObjectUI supports multiple view types:
170170

171171
## Upgrade Notes
172172

173-
### ObjectStack 2.0.6 → 2.0.7
173+
### ObjectStack 2.0.6 → 3.0.0
174174

175-
All @objectstack packages have been upgraded to version 2.0.7:
175+
All @objectstack packages have been upgraded to version 3.0.0:
176176
- @objectstack/cli
177177
- @objectstack/runtime
178178
- @objectstack/spec

docs/guide/development-plan.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ObjectOS Development Plan
22

33
> **Last Updated**: February 2026
4-
> **ObjectStack SDK**: v2.0.7
4+
> **ObjectStack SDK**: v3.0.0
55
> **ObjectUI**: @object-ui/*@2.0.0
66
> **Status**: Phase H — @object-ui Driven Development — 14/14 Plugins Implemented, Admin Console Active, @object-ui Integrated
77
>
@@ -13,10 +13,10 @@
1313

1414
### 1.1 Completed Core Features
1515

16-
**Microkernel Architecture** (`@objectstack/runtime` 2.0.7)
16+
**Microkernel Architecture** (`@objectstack/runtime` 3.0.0)
1717
- Plugin lifecycle, service registry, event bus
1818
- 14/14 plugin packages implemented with lifecycle compliance
19-
- 100% `@objectstack/spec` 2.0.7 protocol compliance
19+
- 100% `@objectstack/spec` 3.0.0 protocol compliance
2020
- 10/14 plugins adopt spec contract interfaces
2121

2222
**Identity & Access Management**
@@ -63,7 +63,7 @@
6363
| Test Files | 49 test files across 13 packages |
6464
| Frontend Source Code | 9,570 lines across 65 files |
6565
| Frontend Pages | 29 pages + 15 UI components |
66-
| ObjectStack SDK | `@objectstack/*` v2.0.7 |
66+
| ObjectStack SDK | `@objectstack/*` v3.0.0 |
6767
| ObjectUI Packages | `@object-ui/*` v2.0.0 (6 packages) |
6868
| Spec Protocol Namespaces | 14 |
6969
| Spec Service Contracts | 25 |
@@ -168,14 +168,14 @@
168168

169169
| Dependency | Version | Role |
170170
|-----------|---------|------|
171-
| `@objectstack/runtime` | 2.0.7 | Microkernel — plugin lifecycle, service registry, event bus |
172-
| `@objectstack/spec` | 2.0.7 | Protocol contracts — Zod schemas, TypeScript interfaces |
173-
| `@objectstack/cli` | 2.0.7 | Server bootstrap — `objectstack serve` command |
174-
| `@objectstack/objectql` | 2.0.7 | ObjectQL plugin for metadata loading |
175-
| `@objectstack/client` | 2.0.7 | Frontend SDK for API integration |
176-
| `@objectstack/driver-memory` | 2.0.7 | In-memory data driver for development/serverless |
177-
| `@objectstack/plugin-hono-server` | 2.0.7 | Hono HTTP server plugin |
178-
| `@objectstack/plugin-auth` | 2.0.7 | Authentication plugin |
171+
| `@objectstack/runtime` | 3.0.0 | Microkernel — plugin lifecycle, service registry, event bus |
172+
| `@objectstack/spec` | 3.0.0 | Protocol contracts — Zod schemas, TypeScript interfaces |
173+
| `@objectstack/cli` | 3.0.0 | Server bootstrap — `objectstack serve` command |
174+
| `@objectstack/objectql` | 3.0.0 | ObjectQL plugin for metadata loading |
175+
| `@objectstack/client` | 3.0.0 | Frontend SDK for API integration |
176+
| `@objectstack/driver-memory` | 3.0.0 | In-memory data driver for development/serverless |
177+
| `@objectstack/plugin-hono-server` | 3.0.0 | Hono HTTP server plugin |
178+
| `@objectstack/plugin-auth` | 3.0.0 | Authentication plugin |
179179
| `@object-ui/core` | 2.0.0 | UI core logic, types, validation |
180180
| `@object-ui/react` | 2.0.0 | React bindings, SchemaRenderer |
181181
| `@object-ui/components` | 2.0.0 | Standard UI controls |

0 commit comments

Comments
 (0)