Skip to content

Conversation

@miguelg719
Copy link
Collaborator

@miguelg719 miguelg719 commented Dec 3, 2025

why

These dev dependencies don't belong here. Some are no longer used, some should go into their respective packages

what changed

Moved dev dependencies to respective packages and removed unused ones

test plan


Summary by cubic

Moved dev dependencies from the workspace root into the packages that use them and removed unused ones. This reduces install bloat and clarifies ownership of tools.

Why:

  • Root had dev deps only used by specific packages.
  • Some were unused.
  • Smaller installs and cleaner separation per package.

What:

  • Removed unused devDependencies from the root package.json.
  • Added to packages/core: @types/adm-zip, @types/node, @types/ws, adm-zip, chalk, esbuild.
  • Added to packages/evals: braintrust, chalk, string-comparison.
  • Cleaned pnpm-lock.yaml (large reduction in entries).

Test Plan:

  • pnpm install at repo root.
  • pnpm -F core build; pnpm -F core test; pnpm -F core lint.
  • Run any core Playwright tests to ensure tooling works.
  • Verify evals scripts using braintrust and string-comparison run without missing deps.
  • Confirm no root scripts rely on removed dev deps.

Written for commit c0b94c0. Summary will update automatically on new commits.

@changeset-bot
Copy link

changeset-bot bot commented Dec 3, 2025

⚠️ No Changeset found

Latest commit: c0b94c0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@miguelg719 miguelg719 marked this pull request as ready for review December 3, 2025 05:40
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 3, 2025

Greptile Overview

Greptile Summary

Cleaned up root workspace devDependencies by moving 7 dependencies to their appropriate packages (packages/core and packages/evals) and removing 19 unused dependencies.

  • Moved @types/adm-zip, @types/node, adm-zip, chalk, and esbuild to packages/core
  • Moved braintrust and string-comparison to packages/evals
  • Removed unused dependencies including @langchain/community, @langchain/langgraph, autoevals, cheerio, express, multer, chromium-bidi, and various type definitions

Confidence Score: 5/5

  • This PR is safe to merge - it only reorganizes dev dependencies without changing runtime behavior
  • The changes are straightforward dependency housekeeping that properly moves dev dependencies to their appropriate packages and removes unused ones. The lock file confirms all dependencies are correctly resolved.
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
package.json 5/5 Removed 26 dev dependencies from root workspace that were either unused or belonged in specific packages
packages/core/package.json 5/5 Added 5 dev dependencies moved from root: @types/adm-zip, @types/node, adm-zip, chalk, and esbuild
packages/evals/package.json 5/5 Added 2 dev dependencies moved from root: braintrust and string-comparison
pnpm-lock.yaml 5/5 Lock file regenerated to reflect dependency reorganization across packages

Sequence Diagram

sequenceDiagram
    participant Root as Root Workspace
    participant Core as packages/core
    participant Evals as packages/evals

    Note over Root: Before: 26 devDependencies
    
    Root->>Core: Move @types/adm-zip, @types/node, adm-zip, chalk, esbuild
    Root->>Evals: Move braintrust, string-comparison
    
    Note over Root: Remove 19 unused deps<br/>(langchain, cheerio, express, etc.)
    
    Note over Root: After: 9 devDependencies
    Note over Core: +5 devDependencies
    Note over Evals: +2 devDependencies
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

3 issues found across 4 files

Prompt for AI agents (all 3 issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="packages/evals/package.json">

<violation number="1" location="packages/evals/package.json:24">
P1: `braintrust` is required at runtime (imported by the eval runner and AISDK wrapper) but was added as a devDependency, so consumers will miss it and the CLI will fail to start.</violation>

<violation number="2" location="packages/evals/package.json:25">
P1: `chalk` is used by the runtime CLI but was added under devDependencies, so running the CLI outside the workspace will fail due to the missing module.</violation>

<violation number="3" location="packages/evals/package.json:26">
P1: `string-comparison` powers runtime scoring utilities but is declared as a devDependency, so downstream installs will miss it and runtime imports will throw.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR

"devDependencies": {
"braintrust": "^0.4.7",
"chalk": "^5.4.1",
"string-comparison": "^1.3.0",
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 3, 2025

Choose a reason for hiding this comment

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

P1: string-comparison powers runtime scoring utilities but is declared as a devDependency, so downstream installs will miss it and runtime imports will throw.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/evals/package.json, line 26:

<comment>`string-comparison` powers runtime scoring utilities but is declared as a devDependency, so downstream installs will miss it and runtime imports will throw.</comment>

<file context>
@@ -21,6 +21,9 @@
   &quot;devDependencies&quot;: {
+    &quot;braintrust&quot;: &quot;^0.4.7&quot;,
+    &quot;chalk&quot;: &quot;^5.4.1&quot;,
+    &quot;string-comparison&quot;: &quot;^1.3.0&quot;,
     &quot;tsx&quot;: &quot;^4.10.5&quot;
   }
</file context>
Fix with Cubic

},
"devDependencies": {
"braintrust": "^0.4.7",
"chalk": "^5.4.1",
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 3, 2025

Choose a reason for hiding this comment

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

P1: chalk is used by the runtime CLI but was added under devDependencies, so running the CLI outside the workspace will fail due to the missing module.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/evals/package.json, line 25:

<comment>`chalk` is used by the runtime CLI but was added under devDependencies, so running the CLI outside the workspace will fail due to the missing module.</comment>

<file context>
@@ -21,6 +21,9 @@
   },
   &quot;devDependencies&quot;: {
+    &quot;braintrust&quot;: &quot;^0.4.7&quot;,
+    &quot;chalk&quot;: &quot;^5.4.1&quot;,
+    &quot;string-comparison&quot;: &quot;^1.3.0&quot;,
     &quot;tsx&quot;: &quot;^4.10.5&quot;
</file context>
Fix with Cubic

"zod": "^4.1.8"
},
"devDependencies": {
"braintrust": "^0.4.7",
Copy link

@cubic-dev-ai cubic-dev-ai bot Dec 3, 2025

Choose a reason for hiding this comment

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

P1: braintrust is required at runtime (imported by the eval runner and AISDK wrapper) but was added as a devDependency, so consumers will miss it and the CLI will fail to start.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/evals/package.json, line 24:

<comment>`braintrust` is required at runtime (imported by the eval runner and AISDK wrapper) but was added as a devDependency, so consumers will miss it and the CLI will fail to start.</comment>

<file context>
@@ -21,6 +21,9 @@
     &quot;zod&quot;: &quot;^4.1.8&quot;
   },
   &quot;devDependencies&quot;: {
+    &quot;braintrust&quot;: &quot;^0.4.7&quot;,
+    &quot;chalk&quot;: &quot;^5.4.1&quot;,
+    &quot;string-comparison&quot;: &quot;^1.3.0&quot;,
</file context>
Fix with Cubic

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