Skip to content

release: v0.1.0#2

Merged
anurag629 merged 3 commits intoproductionfrom
dev
Mar 7, 2026
Merged

release: v0.1.0#2
anurag629 merged 3 commits intoproductionfrom
dev

Conversation

@anurag629
Copy link
Member

Summary

First release of ChatCops packages.

  • @chatcops/core@0.1.0 — AI provider abstraction (Claude, OpenAI, Gemini), tools, knowledge base, i18n
  • @chatcops/server@0.1.0 — Server handlers with Express, Vercel, and Cloudflare adapters
  • @chatcops/widget@0.1.0 — Embeddable chat widget with Shadow DOM isolation

Included fixes

  • Input validation (Zod) for lead capture tool
  • ConversationManager maxMessages calculation fix
  • Empty message validation in Gemini provider
  • JSON parsing error handling in Vercel/Cloudflare adapters
  • Memory leak fix (setInterval cleanup in handler)
  • CORS now required (no implicit wildcard)
  • Rate limiter and webhook config validation
  • Widget: event handler cleanup on destroy, markdown link fix, hex color validation, focus accessibility, reasonable z-index values
  • Package files field to exclude tests/source from npm

Infrastructure

  • dev/production branching with CI and release workflows
  • Changeset config for versioning
  • Branch protection on dev and production

Test plan

  • 102 tests passing
  • All packages typecheck
  • All packages build
  • npm pack --dry-run verified for all 3 packages

* fix: add files field to core and server packages to exclude tests and source from npm

* fix: remove explicit pnpm version from workflows to avoid conflict with packageManager

* fix: build core before typecheck to resolve workspace dependency in CI
@vercel
Copy link

vercel bot commented Mar 7, 2026

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

Project Deployment Actions Updated (UTC)
chatcops-website Ready Ready Preview, Comment Mar 7, 2026 4:28pm

Request Review

Copy link

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

First release PR for the ChatCops packages, focusing on publishable package contents and ensuring CI/release workflows build prerequisites in the correct order for monorepo dependencies.

Changes:

  • Limit published contents for @chatcops/core and @chatcops/server to dist/ via the files field.
  • Update CI and release workflows to rely on the repo’s pinned packageManager pnpm version (remove explicit version: 9).
  • Add a “Build core” step before typechecking to satisfy @chatcops/server’s dependency on @chatcops/core build artifacts.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

File Description
packages/core/package.json Adds files: ["dist"] to ensure only built artifacts are published.
packages/server/package.json Adds files: ["dist"] to ensure only built artifacts are published.
.github/workflows/ci.yml Removes explicit pnpm version pin and builds core before typecheck.
.github/workflows/release.yml Removes explicit pnpm version pin and builds core before typecheck/publish.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +24 to +26
- name: Build core (required by server)
run: pnpm --filter @chatcops/core build

Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

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

@chatcops/core is built explicitly here and then built again during the later pnpm -r build step, which makes CI/release slower and duplicates work. Consider either moving the full build (pnpm -r build) before typecheck/tests (and dropping this step), or adjusting the later build to exclude core so it only runs once.

Copilot uses AI. Check for mistakes.
Comment on lines +29 to +31
- name: Build core (required by server)
run: pnpm --filter @chatcops/core build

Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

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

@chatcops/core is built explicitly here and then built again during the later pnpm -r build step, which duplicates work in the release workflow. Consider building everything once before typecheck/tests, or excluding core from the later recursive build so this package isn’t rebuilt.

Copilot uses AI. Check for mistakes.
@anurag629 anurag629 merged commit 802905b into production Mar 7, 2026
2 checks passed
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