Skip to content

Add repository reorganization plan: 8 packages → 4 packages - #398

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

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

Conversation

Copilot AI commented Jan 30, 2026 •

Copy link
Copy Markdown
Contributor

Current monorepo has 8 packages with fragmented responsibilities causing maintenance overhead. Most packages are trivially small (<10 files), and the intended objectui and objectos packages exist only as documentation.

Added

REORGANIZATION_PLAN.md - Comprehensive consolidation strategy with bilingual documentation (CN/EN)

Proposed Structure

Consolidate from 8 packages to 4 aligned with intended architecture:

  • @objectstack/spec (keep) - Protocol definitions only, remove UI/System schemas
  • @objectstack/objectql (expand) - Data engine + contracts from core
  • @objectstack/objectui (new) - Extract UI schemas from spec + add runtime
  • @objectstack/objectos (new) - Merge core + runtime + types + client + cli + ai-bridge + system schemas

Reduction: 8 packages → 4 packages (50% decrease)

Migration Impact

Breaking changes to import paths:

// Before
import { AppSchema } from '@objectstack/spec/ui';
import { ObjectKernel } from '@objectstack/core';

// After  
import { AppSchema } from '@objectstack/objectui';
import { ObjectKernel } from '@objectstack/objectos';

Decision Points

  1. Approve 4-package structure vs alternatives
  2. Version strategy (recommend v0.7.0 for breaking change)
  3. Migration tooling (codemod provision)
  4. Deprecated package handling strategy

See REORGANIZATION_PLAN.md for complete implementation roadmap, file-level mappings, and phased execution plan.

Original prompt

我不想拆得那么细,维护不过来,目前我已经创建了几个多包项目,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 Ready Ready Preview, Comment Jan 30, 2026 3:32pm

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor multi-package project structure for better maintainability Add repository reorganization plan: 8 packages → 4 packages Jan 30, 2026
Copilot AI requested a review from hotlong January 30, 2026 15:32
@hotlong hotlong closed this Jan 30, 2026
This was referenced Oct 26, 2026

This branch was successfully deployed

1 active deployment
Preview — fbe0ec7e 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