Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

  • Investigate CI failure: pnpm lockfile incompatibility
  • Upgrade pnpm-lock.yaml from v6.0 to v9.0 format
  • Fix TypeScript build errors by adding plugin package references
  • Update CLI to import Validator from plugin-validator package
  • Run tests to verify all changes work correctly
Original prompt

引用: https://github.com/objectstack-ai/objectql/actions/runs/21485818988/job/61895327784#step:7:1


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link

vercel bot commented Jan 29, 2026

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

Project Deployment Review Updated (UTC)
objectql Ready Ready Preview, Comment Jan 29, 2026 4:39pm

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
- Add plugin-validator and plugin-formula to root tsconfig references
- Update core package tsconfig to reference plugin packages
- Fix CLI import to use plugin-validator directly
- Add plugin-validator dependency to CLI package

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
@github-actions
Copy link
Contributor

⚠️ No Changeset Found

This PR does not include a changeset file.
If this PR includes user-facing changes, please add a changeset by running:

pnpm changeset

@hotlong hotlong marked this pull request as ready for review January 29, 2026 16:42
Copilot AI review requested due to automatic review settings January 29, 2026 16:42
@hotlong hotlong merged commit 7b3a560 into copilot/discuss-splitting-plugins Jan 29, 2026
9 checks passed
@hotlong hotlong deleted the copilot/update-actions-run-references branch January 29, 2026 16:42
Copilot AI requested a review from hotlong January 29, 2026 16:43
Copilot stopped work on behalf of hotlong due to an error January 29, 2026 16:43
Copy link
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

Updates workspace/project references and package imports to address CI/TypeScript build issues after the lockfile upgrade, specifically around the validator/formula plugins being separate packages.

Changes:

  • Adds TypeScript project references for plugin-validator and plugin-formula at the repo root and within @objectql/core.
  • Updates the CLI AI command to import Validator from @objectql/plugin-validator instead of @objectql/core.
  • Adds @objectql/plugin-validator as a CLI dependency and TS project reference.

Reviewed changes

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

Show a summary per file
File Description
tsconfig.json Includes plugin packages in the solution build graph.
packages/tools/cli/tsconfig.json Ensures CLI builds against the validator plugin project.
packages/tools/cli/src/commands/ai.ts Switches Validator import to @objectql/plugin-validator.
packages/tools/cli/package.json Adds runtime dependency on @objectql/plugin-validator.
packages/foundation/core/tsconfig.json Ensures @objectql/core builds after the referenced plugin projects.
Comments suppressed due to low confidence (1)

packages/tools/cli/src/commands/ai.ts:395

  • Unused variable validator.
    const validator = new Validator({ language: 'en' });

import OpenAI from 'openai';
import { Validator, ObjectQLAgent } from '@objectql/core';
import { ObjectQLAgent } from '@objectql/core';
import { Validator } from '@objectql/plugin-validator';
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

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

This updates the CLI to import Validator from @objectql/plugin-validator, but there is still at least one repo import that uses Validator from @objectql/core (e.g. packages/foundation/platform-node/test/validation.test.ts). With the current @objectql/core exports, that import will fail and break the Jest project tests. Update the remaining import(s) to @objectql/plugin-validator and add the dependency in the consuming package as needed.

Suggested change
import { Validator } from '@objectql/plugin-validator';

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants