Skip to content

chore: align all package names to @trycompai scope#2309

Merged
claudfuen merged 4 commits intomainfrom
chore/align-package-names
Mar 15, 2026
Merged

chore: align all package names to @trycompai scope#2309
claudfuen merged 4 commits intomainfrom
chore/align-package-names

Conversation

@claudfuen
Copy link
Contributor

@claudfuen claudfuen commented Mar 15, 2026

Summary

The monorepo had an inconsistent mix of package scopes — some packages used @comp/* while others already used @trycompai/* (the scope published to npm, e.g. @trycompai/ui). This made bun run dev output confusing and created unnecessary cognitive overhead.

This PR aligns all packages to the @trycompai/* scope to match what's published to npm.

Before → After

Already @trycompai/ (unchanged):
@trycompai/analytics, @trycompai/db, @trycompai/email, @trycompai/integrations, @trycompai/kv, @trycompai/tsconfig, @trycompai/ui, @trycompai/utils

Renamed in this PR:

Before After
@comp/api @trycompai/api
@comp/app @trycompai/app
@comp/portal @trycompai/portal
@comp/auth @trycompai/auth
@comp/cli @trycompai/cli
@comp/company @trycompai/company
@comp/device-agent @trycompai/device-agent
@comp/integration-platform @trycompai/integration-platform
docs @trycompai/docs

All import statements, dependency references, tsconfig path aliases, and config files (turbo.json, .syncpackrc.json, buildspec.yml) updated accordingly. 552 files changed, 1296 equal insertions/deletions (clean find-and-replace, no logic changes).

Test plan

  • bun install resolves all workspace dependencies
  • bun run build succeeds
  • bun run typecheck passes
  • bun run dev shows aligned @trycompai/* names

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 15, 2026

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

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment Mar 15, 2026 5:55pm
portal Ready Ready Preview, Comment Mar 15, 2026 5:55pm

Request Review

@cursor
Copy link

cursor bot commented Mar 15, 2026

PR Summary

Medium Risk
Broad, repo-wide package renaming touches build/CI config and many runtime imports, so small mismatches could break builds or deployments despite being largely mechanical.

Overview
Standardizes internal package scope from @comp/* to @trycompai/* across the monorepo. This renames workspace package names (e.g., apps/api@trycompai/api, apps/app@trycompai/app) and updates dependent imports/references throughout API/app code and tests (including @trycompai/auth, @trycompai/company, and @trycompai/integration-platform).

Updates tooling/docs and build plumbing to match the new scope. This includes Turbo/typecheck command filters, Syncpack rules, Next.js transpilePackages, API buildspec workspace install/copy steps, and various repo rules/markdown docs; additionally, the maced-contract-canary GitHub Actions workflow triggers are commented out (temporarily disabled).

Written by Cursor Bugbot for commit 787017e. This will update automatically on new commits. Configure here.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4728169d1d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 60 to 62
// Resolve subpath imports like @trycompai/integration-platform/types
build.onResolve(
{ filter: /^@comp\/integration-platform\// },

Choose a reason for hiding this comment

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

P1 Badge Match new scope in Trigger resolver filters

After renaming the package to @trycompai/integration-platform, the esbuild resolver plugin in IntegrationPlatformExtension still uses @comp regex filters, so Trigger.dev builds won't intercept the new import path. In environments where the workspace package is not directly available in node_modules (the case this extension is meant to handle), imports like @trycompai/integration-platform (and subpaths) will fail to resolve during bundling.

Useful? React with 👍 / 👎.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 955ff57 — both onResolve regex filters updated to @trycompai/integration-platform.

@carhartlewis
Copy link
Contributor

Worth testing turbo dev continues to work after these changes

- Resolve 6 merge conflicts from main (take new code with @trycompai scope)
- Fix esbuild onResolve regex filters in integrationPlatformExtension.ts
  that still matched @comp/integration-platform instead of @trycompai/
- Fix remaining @comp/auth references in test files from main

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 955ff574cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,5 +1,5 @@
{
"name": "@comp/api",
"name": "@trycompai/api",

Choose a reason for hiding this comment

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

P1 Badge Regenerate bun lockfile after workspace scope rename

These package-name changes were committed without regenerating bun.lock (it still records workspaces as @comp/*), so installs that require a frozen lockfile can no longer accept the manifest state from this commit. I checked .github/workflows/release.yml (the Install dependencies step runs bun install --frozen-lockfile --ignore-scripts with no non-frozen fallback), so release/CI jobs can fail until the lockfile is updated to the new @trycompai/* workspace names.

Useful? React with 👍 / 👎.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 6a9a5b8bun.lock regenerated with the new @trycompai/* workspace names.

- Fix last @comp/ui reference in CLAUDE.md design system section
- Regenerate bun.lock to reflect @trycompai/* workspace names
  (CI with --frozen-lockfile would fail without this)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@claudfuen
Copy link
Contributor Author

Good call — added to the test plan. Vercel preview builds for both app and portal already passed, which covers the build path. turbo dev should be verified locally before merge.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@claudfuen claudfuen merged commit 6893cfa into main Mar 15, 2026
6 of 8 checks passed
@claudfuen claudfuen deleted the chore/align-package-names branch March 15, 2026 17:53
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

# - 'apps/api/package.json'
# - '.github/workflows/maced-contract-canary.yml'
# schedule:
# - cron: '0 * * * *'
Copy link

Choose a reason for hiding this comment

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

CI canary workflow disabled unrelated to package rename

Low Severity

The maced-contract-canary.yml workflow's pull_request and schedule triggers are commented out, disabling both PR-triggered and hourly scheduled canary checks. This is unrelated to the package scope rename described in the PR — the PR description explicitly states "no logic changes" and only lists package renames. Bundling a CI coverage reduction into a 552-file rename PR risks it being overlooked during review. If intentional, it belongs in a separate PR with its own tracking for re-enablement.

Fix in Cursor Fix in Web

"packages": ["@comp/**"],
"dependencies": ["@comp/**"],
"packages": ["@trycompai/**"],
"dependencies": ["@trycompai/**"],
Copy link

Choose a reason for hiding this comment

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

Syncpack rule now incorrectly covers external npm packages

Medium Severity

The semverGroups rule changed from @comp/** to @trycompai/** for both packages and dependencies, requiring matching deps use workspace:*. However, @trycompai/design-system is an external npm package (not a workspace package) pinned at semver ranges like ^1.0.32 in apps/app/package.json and ^1.0.43 in apps/portal/package.json. The old @comp/** pattern never matched it, but @trycompai/** does. Running syncpack lint will now incorrectly flag these as violations, and syncpack fix could corrupt them to workspace:*, which would fail resolution.

Fix in Cursor Fix in Web

@claudfuen
Copy link
Contributor Author

🎉 This PR is included in version 3.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants