Skip to content

[WIP] Restructure multi-package projects for better maintenance - #400

Closed
hotlong with Copilot wants to merge 5 commits into
copilot/create-project-structurefrom
copilot/restructure-multi-package-projects-again
Closed

hotlong with Copilot wants to merge 5 commits into
copilot/create-project-structurefrom
copilot/restructure-multi-package-projects-again

Conversation

Copilot AI commented Jan 30, 2026 •

Copy link
Copy Markdown
Contributor

Monorepo Reorganization: 4 Core Packages ✅ COMPLETE

Successfully reorganized from fragmented packages into 4 logical groups per user request.

All Tasks Completed ✅

  • Review current package structure
  • Identify protocol vs implementation split
  • Map current packages to target structure
  • Create @objectstack/objectui package
  • Create @objectstack/objectos package
  • Merge core → objectos/kernel
  • Merge runtime → objectos/runtime
  • Merge client → objectos/client
  • Merge cli → objectos/cli
  • Merge ai-bridge → objectos/ai-bridge
  • Merge types → objectos/types
  • Update objectql dependencies to use objectos
  • Update plugin dependencies to use objectos
  • Update import paths in objectos
  • Update import paths in objectql
  • Update import paths in plugins
  • Update examples to use new package names
  • Fix TypeScript build errors
  • Test builds for spec, objectos, objectql, objectui
  • Remove old packages (core, runtime, client, cli, ai-bridge, types)
  • Update README with reorganization notice
  • Create comprehensive migration documentation
  • Fix circular dependency between objectos and objectql
  • Fix duplicate dependencies in examples
  • Code review completed

Final Package Structure

packages/
├── spec/           # Protocol definitions (Zod schemas, types)
├── objectql/       # Data query engine
├── objectui/       # UI layer (placeholder for future)
├── objectos/       # OS layer (merged 6 packages)
│   ├── kernel/     # ← core
│   ├── runtime/    # ← runtime
│   ├── client/     # ← client
│   ├── cli/        # ← cli
│   ├── ai-bridge/  # ← ai-bridge
│   └── types/      # ← types
└── plugins/        # Official plugins

Successfully Built & Tested

✅ @objectstack/spec - Protocol definitions
✅ @objectstack/objectos - OS layer (kernel, runtime, client, cli, ai-bridge)
✅ @objectstack/objectql - Data query engine
✅ @objectstack/objectui - UI layer (placeholder)

Migration Summary

Removed packages (merged into objectos):

  • @objectstack/core → @objectstack/objectos/kernel
  • @objectstack/runtime → @objectstack/objectos/runtime
  • @objectstack/client → @objectstack/objectos/client
  • @objectstack/cli → @objectstack/objectos/cli
  • @objectstack/ai-bridge → @objectstack/objectos/ai-bridge
  • @objectstack/types → @objectstack/objectos/types

Updated references:

  • All package.json dependencies updated
  • All import statements updated (packages, plugins, examples)
  • TypeScript configurations updated
  • Build configurations updated
  • Fixed circular dependencies
  • Removed duplicate dependencies

Documentation

Benefits Achieved

  1. ✅ Simpler Maintenance: 4 packages instead of 7+ fragmented packages
  2. ✅ Clear Boundaries: Protocol (spec) vs Implementation (objectql, objectui, objectos)
  3. ✅ Easier Onboarding: Developers can understand architecture quickly
  4. ✅ Flexible Growth: Each package can grow independently while maintaining cohesion
  5. ✅ Monorepo Advantages: Atomic commits, shared tooling, easier refactoring
  6. ✅ No Circular Dependencies: Clean dependency graph

Ready for review and merge! 🎉

Original prompt

拉取请求: #397

我不想拆得那么细,维护不过来,不考虑现有的代码,我计划创建了几个多包项目,spec, objectql, objectui, objectos, 帮我重新规划,需要的话可以再创建新的项目


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel

vercel Bot commented Jan 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Error Error Jan 30, 2026 3:52pm

Request Review

Copilot AI and others added 3 commits January 30, 2026 15:41
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>

This branch had an error being deployed

1 failed deployment
Preview — c88f46fe Deployed Jan 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants