Skip to content

Conversation

geclos
Copy link
Collaborator

@geclos geclos commented Sep 29, 2025

  • Deprecates APIs v1 and v2
  • Improves type checking performance through several optimizations
  • Removes compiler packages
  • Removes static type generation

@geclos geclos added the DO NOT MERGE Not safe to merge label Sep 29, 2025
andresgutgon

This comment was marked as resolved.

@geclos geclos force-pushed the feat/remove_barrel_files branch from 8397f2e to a9e5067 Compare September 30, 2025 10:28
Copy link
Contributor

@andresgutgon andresgutgon left a comment

Choose a reason for hiding this comment

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

What about packages/compiler? Now is removed 🔥

@@ -475,7 +469,7 @@ export type PromptSource = EvaluationV2 | DocumentRunPromptSource
export type LatitudeToolDefinition = {
name: LatitudeTool
internalName: LatitudeToolInternalName
definition: (context?: TelemetryContext) => Tool
definition: (context?: any) => Tool
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this necessary? We still need to import telemetry in core no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

better to limit telemetry import as much as possible so that next can tree shake

@andresgutgon
Copy link
Contributor

andresgutgon commented Oct 1, 2025

In packages/telemetry/package.json you removed this:

- "@google-cloud/aiplatform": "^3.35.0",
- "llamaindex": "^0.8.37",

It's ok? I comment here because files section on Github do not load

I guess is because we don't care about the types for this instrumentations no?

@andresgutgon
Copy link
Contributor

andresgutgon commented Oct 1, 2025

index 8104bb2c7..253c55c24 100644
--- a/packages/core/tsconfig.json
+++ b/packages/core/tsconfig.json
@@ -5,5 +5,16 @@
     "jsx": "preserve"
   },
   "include": ["src", "drizzle.config.ts"],
-  "exclude": ["node_modules", "dist"]
+  "exclude": [
+    "**/*.js",
+    "**/*.spec.*",
+    "**/*.test.*",
+    "dist",
+    "node_modules",
+    "src/**/__tests__/**",
+    "src/**/testHelper.ts",
+    "src/**/testHelpers/**",
+    "src/schema/schema.ts",
+    "src/tests/**"
+  ]
 }

We lost typescript in tests this way no?

@geclos
Copy link
Collaborator Author

geclos commented Oct 1, 2025

It's ok? I comment here because files section on Github do not load

it's ok yes these 2 were big culprits of performance issues in telemetry package

@geclos
Copy link
Collaborator Author

geclos commented Oct 1, 2025

We lost typescript in tests this way no?

Yes, tradeoff between performance and type checking scope

@andresgutgon andresgutgon force-pushed the feat/remove_barrel_files branch from a9e5067 to 210b770 Compare October 1, 2025 14:38
@andresgutgon andresgutgon self-requested a review October 1, 2025 14:39
@andresgutgon andresgutgon dismissed their stale review October 1, 2025 14:40

We want to merge this before my PR

@andresgutgon andresgutgon removed the DO NOT MERGE Not safe to merge label Oct 1, 2025
@andresgutgon andresgutgon force-pushed the feat/remove_barrel_files branch 2 times, most recently from b0d9e9f to b7c2831 Compare October 2, 2025 11:08
geclos added 2 commits October 2, 2025 14:08
- Deprecates APIs v1 and v2
- Improves type checking performance through several optimizations
- Removes compiler packages
- Removes static type generation
@geclos geclos force-pushed the feat/remove_barrel_files branch from 669146d to 6ea5fb8 Compare October 2, 2025 12:08
@geclos geclos force-pushed the feat/remove_barrel_files branch from 6ea5fb8 to 2ed878b Compare October 2, 2025 12:11
@geclos geclos merged commit 5417033 into main Oct 2, 2025
7 checks passed
@geclos geclos deleted the feat/remove_barrel_files branch October 2, 2025 12:21
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants