Skip to content

Commit e4cec8e

Browse files
authored
Merge pull request #777 from objectstack-ai/copilot/complete-protocol-and-tools
2 parents 9adf594 + 37c7cb1 commit e4cec8e

10 files changed

Lines changed: 2055 additions & 16 deletions

File tree

ROADMAP.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
## Current State Summary
3232

3333
ObjectStack v3.0 has achieved **comprehensive protocol specification** with 175 Zod schemas,
34-
25 service contracts, and 7,111 `.describe()` annotations providing machine-readable documentation.
34+
27 service contracts, and 7,111 `.describe()` annotations providing machine-readable documentation.
3535
The core kernel, data engine, metadata system, and developer tooling are production-ready.
3636
The primary focus now shifts to implementing the remaining 19 service contracts and hardening
3737
the ecosystem for enterprise workloads.
@@ -62,7 +62,7 @@ the ecosystem for enterprise workloads.
6262

6363
### What Needs Building
6464

65-
10 of 25 service contracts are specification-only (no runtime implementation).
65+
11 of 27 service contracts are specification-only (no runtime implementation).
6666
These are the backbone of ObjectStack's enterprise capabilities.
6767

6868
### Minimal Implementation Strategy
@@ -96,7 +96,7 @@ This strategy ensures rapid iteration while maintaining a clear path to producti
9696
| Zod Schema Files | 178 |
9797
| Exported Schemas | 1,100+ |
9898
| `.describe()` Annotations | 7,111+ |
99-
| Service Contracts | 25 |
99+
| Service Contracts | 27 |
100100
| Contracts Implemented | 13 (52%) |
101101
| Test Files | 210 |
102102
| Tests Passing | 5,953 / 5,953 |
@@ -297,7 +297,7 @@ business/custom objects, aligning with industry best practices (e.g., ServiceNow
297297
## Phase 1: Protocol Specification (✅ Complete)
298298

299299
> **Goal:** Define every schema, type, and contract as a Zod-first source of truth.
300-
> **Result:** 175 Zod schemas, 25 service contracts, 7,111+ `.describe()` annotations across 15 protocol domains.
300+
> **Result:** 175 Zod schemas, 27 service contracts, 7,111+ `.describe()` annotations across 15 protocol domains.
301301
302302
<details>
303303
<summary>Deliverables — All Completed (click to expand)</summary>
@@ -316,7 +316,7 @@ business/custom objects, aligning with industry best practices (e.g., ServiceNow
316316
- [x] **Integration Protocol** — Connector (Database, SaaS, File Storage, GitHub, Message Queue, Vercel)
317317
- [x] **QA Protocol** — Testing framework schemas
318318
- [x] **Studio Protocol** — Plugin extension schemas
319-
- [x] **Contracts**25 service interfaces with full method signatures
319+
- [x] **Contracts**27 service interfaces with full method signatures
320320
- [x] **Stack Definition**`defineStack()`, `defineView()`, `defineApp()`, `defineFlow()`, `defineAgent()` helpers
321321
- [x] **Stack Composition**`composeStacks()` for declarative multi-stack merging with conflict resolution (`error`/`override`/`merge`)
322322
- [x] **Error Map** — Custom Zod error messages with `objectStackErrorMap`
@@ -698,16 +698,16 @@ Final polish and advanced features.
698698
- [x] Upgrade migration context — version context for onUpgrade hooks, upgrade history
699699
- [x] Protocol `.describe()` completeness — all marketplace lifecycle schemas fully annotated
700700
- [ ] Plugin marketplace runtime — publish, discover, install community plugins
701-
- [ ] CLI: `os plugin build`generate `.tgz` per PackageArtifactSchema
702-
- [ ] CLI: `os plugin validate`verify artifact structure, checksums, signatures
703-
- [ ] CLI: `os plugin publish`upload artifact to marketplace REST API
704-
- [ ] Runtime: package dependency resolution & platform compatibility enforcement
705-
- [ ] Runtime: namespace conflict detection at install time
706-
- [ ] Runtime: package upgrade lifecycle — plan, snapshot, execute, validate, rollback
707-
- [ ] API: `/api/v1/packages/install` — install with dependency & namespace checks
708-
- [ ] API: `/api/v1/packages/upgrade` — upgrade with plan, rollback support
709-
- [ ] API: `/api/v1/packages/resolve-dependencies` — topological sort & conflict detection
710-
- [ ] API: `/api/v1/packages/upload` — artifact upload & validation
701+
- [x] CLI: `os plugin build`protocol schemas for build options & results (`cli-plugin-commands.zod.ts`)
702+
- [x] CLI: `os plugin validate`protocol schemas for validation options, findings & results
703+
- [x] CLI: `os plugin publish`protocol schemas for publish options & results
704+
- [x] Runtime: package dependency resolution & platform compatibility enforcement (`IPackageService` contract)
705+
- [x] Runtime: namespace conflict detection at install time (`IPackageService.checkNamespaces`)
706+
- [x] Runtime: package upgrade lifecycle — plan, snapshot, execute, validate, rollback (`IPackageService` contract)
707+
- [x] API: `/api/v1/packages/install` — install with dependency & namespace checks (`package-api.zod.ts`)
708+
- [x] API: `/api/v1/packages/upgrade` — upgrade with plan, rollback support
709+
- [x] API: `/api/v1/packages/resolve-dependencies` — topological sort & conflict detection
710+
- [x] API: `/api/v1/packages/upload` — artifact upload & validation
711711
- [ ] Studio: marketplace browse/search, install, upgrade, uninstall UI
712712
- [ ] Cloud: artifact storage, distribution, SHA256 verification, security scanning
713713
- [ ] App store — pre-built applications (CRM, HRM, Project Management)
@@ -756,8 +756,9 @@ Final polish and advanced features.
756756
| 24 | Schema Driver | `ISchemaDriver` ||| Spec only |
757757
| 25 | Startup Orchestrator | `IStartupOrchestrator` ||| Kernel handles basics |
758758
| 26 | Plugin Validator | `IPluginValidator` ||| Spec only |
759+
| 27 | Package Service | `IPackageService` || `@objectstack/service-package` (planned) | Install, upgrade, rollback, deps, namespaces |
759760

760-
**Summary:** 14 fully implemented · 2 partially implemented · 10 specification only
761+
**Summary:** 14 fully implemented · 2 partially implemented · 11 specification only
761762

762763
---
763764

packages/spec/src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ export * from './query-adapter.zod';
4545
export * from './feed-api.zod';
4646
export * from './export.zod';
4747
export * from './automation-api.zod';
48+
export * from './package-api.zod';

0 commit comments

Comments
 (0)