Skip to content

fix: resolve CI type-check and DTS build errors#782

Merged
hotlong merged 2 commits into
mainfrom
copilot/fix-ci-errors-again
Feb 22, 2026
Merged

fix: resolve CI type-check and DTS build errors#782
hotlong merged 2 commits into
mainfrom
copilot/fix-ci-errors-again

Conversation

Copilot AI commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

Four TypeScript errors breaking CI on main: duplicate exports in kernel/index.ts, unused imports, and a nonexistent type import.

  • Duplicate export conflict (TS2308): Both dependency-resolution.zod.ts and plugin-versioning.zod.ts export DependencyResolutionResultSchema / DependencyResolutionResult. Renamed the plugin-versioning variants to PluginDependencyResolutionResultSchema / PluginDependencyResolutionResult since they're structurally different schemas (plugin-scoped vs package-lifecycle).

  • Missing type export (TS2305): package-service.ts imported Manifest from manifest.zod.ts, which actually exports ObjectStackManifest. Fixed all references.

  • Unused imports (TS6133): Removed UpgradePackageResponseSchema and RollbackPackageResponseSchema from package-api.zod.ts.

  • Test updates: Updated plugin-versioning.test.ts to reference the renamed schema.

Original prompt

fix ci errors


✨ 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 Feb 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
objectstack-play Ready Ready Preview, Comment Feb 22, 2026 3:11am
spec Ready Ready Preview, Comment Feb 22, 2026 3:11am

Request Review

…ng type

- Remove unused imports UpgradePackageResponseSchema/RollbackPackageResponseSchema from package-api.zod.ts
- Fix Manifest -> ObjectStackManifest type import in package-service.ts
- Rename DependencyResolutionResultSchema in plugin-versioning.zod.ts to PluginDependencyResolutionResultSchema to resolve duplicate export conflict
- Update plugin-versioning.test.ts for renamed schema

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI errors in build process fix: resolve CI type-check and DTS build errors Feb 22, 2026
Copilot AI requested a review from hotlong February 22, 2026 03:07
@hotlong
hotlong marked this pull request as ready for review February 22, 2026 03:07
Copilot AI review requested due to automatic review settings February 22, 2026 03:07
@hotlong
hotlong merged commit fccc9d9 into main Feb 22, 2026
4 of 5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Resolves TypeScript CI failures in packages/spec by removing duplicate symbol exports and fixing incorrect/unused imports in protocol schemas and contracts.

Changes:

  • Renamed the plugin-scoped dependency resolution schema/type in plugin-versioning.zod.ts to avoid a duplicate export collision with dependency-resolution.zod.ts.
  • Fixed package-service.ts to import and use the correct manifest type (ObjectStackManifest).
  • Removed unused schema imports from package-api.zod.ts and updated the corresponding test to use the renamed schema.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/spec/src/kernel/plugin-versioning.zod.ts Renames dependency resolution result schema/type to prevent duplicate exports.
packages/spec/src/kernel/plugin-versioning.test.ts Updates tests to reference the renamed schema.
packages/spec/src/contracts/package-service.ts Replaces nonexistent Manifest type import with ObjectStackManifest.
packages/spec/src/api/package-api.zod.ts Removes unused imports from package-upgrade.zod to satisfy TS unused-import checks.

* Result of dependency resolution process
*/
export const DependencyResolutionResultSchema = z.object({
export const PluginDependencyResolutionResultSchema = z.object({

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

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

PluginDependencyResolutionResultSchema is missing a top-level .describe(...) annotation, which the repo generally uses to support JSON Schema/docs generation (e.g. packages/spec/src/kernel/dependency-resolution.zod.ts:106-127). Consider adding a .describe('Plugin dependency resolution result') (and optionally .describe(...) on the remaining fields) to keep documentation output consistent.

Copilot uses AI. Check for mistakes.
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.

3 participants