Migration assessment: ObjectQL → @objectstack/runtime plugin architecture#154
Migration assessment: ObjectQL → @objectstack/runtime plugin architecture#154
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
|
第一步已安排迁移完成 根据迁移计划文档(特别是 IMPLEMENTATION_ROADMAP.md 和 MIGRATION_TO_OBJECTSTACK.zh-CN.md),@objectql/core 的迁移核心在于 Phase 3: Core Engine Refactoring (核心引擎重构)。 虽然 Phase 1 和 Phase 2 是前置准备(依赖更新和类型清理),但在架构层面,Phase 3 的第一部分(设计插件接口和重构 App 入口)才是真正的“内核迁移”起点。 以下是针对 Phase 3 核心引擎重构第一部分(即创建插件结构和兼容层)的完整提示词。你可以直接使用此提示词让 AI 助手执行代码修改。 针对内核包迁移第一部分的完整提示词 (Prompt) Role: Expert TypeScript Architect & Migration Specialist Task: Specific Actions: Create Plugin Interface (packages/foundation/core/src/plugin.ts): Define ObjectQLPluginConfig interface. Import ObjectStackKernel from @objectstack/runtime. // packages/foundation/core/src/plugin.ts export interface ObjectQLPluginConfig { export class ObjectQLPlugin implements Plugin { constructor(private config: ObjectQLPluginConfig = {}) {} async install(kernel: ObjectStackKernel): Promise { // Legacy API Wrapper constructor(config: any) { // Update type signature as needed async init() { // Proxy methods createContext(options: any) { Ensure all imports from @objectstack/runtime are correct. 确认依赖:在使用此提示词之前,请确保 Phase 1 (Dependency Alignment) 已经完成,即 package.json 中的依赖已更新为 @objectstack/* 的 0.2.0 版本,否则代码会报错。 |
Evaluates migration of ObjectQL from standalone ORM to plugin ecosystem for @objectstack/runtime. Repositions this codebase as query-related extensions (Repository pattern, Validators, Formula engine, 9 database drivers) on ObjectStack foundation.
Deliverables
9 comprehensive planning documents (89KB, 3,200+ lines)
Scope Analysis
Repository: 97 TypeScript files, 14 packages
Timeline: 11 weeks, 8 phases, 41 tasks, 77 person-days
Team: 3-4 developers recommended
Package Transformation
@objectstack/specDriverInterface@objectstack/runtimeextensionArchitectural Shift
Migration Phases
@objectstack/* 0.2.0@objectstack/specDriverInterfaceRisk Mitigation
Next Steps
Create GitHub Project → Generate 41 issues from WORK_BREAKDOWN.md → Team kickoff → Begin Phase 1
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.