Skip to content

Upgrade @objectstack/spec to v0.4.1 and migrate to System protocol namespace#126

Merged
hotlong merged 7 commits intomainfrom
copilot/update-kernel-protocol-version
Jan 27, 2026
Merged

Upgrade @objectstack/spec to v0.4.1 and migrate to System protocol namespace#126
hotlong merged 7 commits intomainfrom
copilot/update-kernel-protocol-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

Upgrades protocol dependency from v0.3.3 to v0.4.1. The Kernel protocol namespace was merged into System protocol, requiring import path and manifest schema updates.

Changes

  • Protocol upgrade: @objectstack/spec 0.3.3 → 0.4.1
  • Import paths: @objectstack/spec/kernel@objectstack/spec/system across all kernel source files
  • Manifest schema: Removed inline definitions.objects, now uses file glob patterns and contributes extension points

Migration

Before:

import { ObjectStackManifest } from '@objectstack/spec/kernel';

const manifest: ObjectStackManifest = {
  definitions: {
    objects: { my_object: { /* inline */ } }
  }
};

After:

import { ObjectStackManifest } from '@objectstack/spec/system';

const manifest: ObjectStackManifest = {
  objects: ['./objects/*.object.yml'],
  contributes: {
    actions: [{ name: 'myAction', label: 'My Action' }],
    events: ['my_object.created']
  }
};

Updated examples and documentation to reflect new structure. All 218 tests passing.

Original prompt

内核协议升级到最新版,并按照协议要求调整代码


✨ 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
Copy link
Copy Markdown

vercel bot commented Jan 27, 2026

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

Project Deployment Review Updated (UTC)
objectos-site Ready Ready Preview, Comment Jan 27, 2026 0:31am

Request Review

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>
@github-actions github-actions bot added size/m documentation Improvements or additions to documentation dependencies kernel tests and removed size/m labels Jan 27, 2026
Copilot AI changed the title [WIP] Upgrade kernel protocol to latest version and adjust code Upgrade @objectstack/spec to v0.4.1 and migrate to System protocol namespace Jan 27, 2026
Copilot AI requested a review from hotlong January 27, 2026 10:21
@hotlong hotlong marked this pull request as ready for review January 27, 2026 10:22
Copilot AI review requested due to automatic review settings January 27, 2026 10:22
Copilot AI and others added 2 commits January 27, 2026 10:25
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the ObjectStack protocol specification from v0.3.3 to v0.4.1, implementing a major namespace reorganization where the Kernel Protocol has been merged into the System Protocol, and updating the plugin manifest schema to use file glob patterns with contribution points instead of inline object definitions.

Changes:

  • Protocol dependency upgraded from @objectstack/spec 0.3.3 to 0.4.1 across both root and kernel package
  • All import paths migrated from @objectstack/spec/kernel to @objectstack/spec/system throughout the codebase
  • Plugin manifest schema updated to use objects glob patterns and contributes extension points, removing the deprecated inline definitions.objects structure
  • Comprehensive documentation updates including CHANGELOG, README, and migration guides

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/kernel/package.json Updated @objectstack/spec dependency to v0.4.1
package.json Updated @objectstack/spec dependency to v0.4.1 in root package
package-lock.json Updated dependency resolution for @objectstack/spec v0.4.1 with new integrity hashes
packages/kernel/src/types.ts Updated import from kernel to system namespace, updated comment to reflect former kernel protocol
packages/kernel/src/scoped-storage.ts Updated comment reference from kernel to system namespace
packages/kernel/src/plugins/example-spec-plugin.ts Migrated example from inline object definitions to glob patterns with contributes section, updated all import paths and documentation
packages/kernel/src/plugin-manager.ts Updated imports from kernel to system namespace, updated header comment
packages/kernel/src/plugin-context.ts Updated imports and comments from kernel to system namespace
packages/kernel/src/objectos.ts Updated imports from kernel to system namespace
packages/kernel/src/logger.ts Updated comment reference from kernel to system namespace
packages/kernel/src/kernel-context.ts Updated imports and comments from kernel to system namespace
packages/kernel/src/examples/crm-plugin-example.ts Migrated manifest example to new schema with objects glob and contributes
packages/kernel/test/plugin-manager.test.ts Updated test imports from kernel to system namespace
packages/kernel/CHANGELOG.md Added comprehensive v0.2.1 entry documenting protocol upgrade, breaking changes, and migration guide
packages/kernel/README.md Updated protocol references to v0.4.1, renamed Kernel Protocol to System Protocol, updated API Protocol description
docs/SPEC_REFACTORING.md Updated version references, reorganized protocol namespace documentation to reflect Kernel-to-System merge

@hotlong hotlong merged commit 5465082 into main Jan 27, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies documentation Improvements or additions to documentation kernel size/m tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants