From 217aa2d265322b0428fabed17eec84d09369d77b Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Tue, 12 Aug 2025 20:50:15 -0700 Subject: [PATCH] fix: add missing modelProvider and modelName to nextEditWithHistory event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds missing modelProvider and modelName fields to make the schema consistent with other dev data events. Fixes CON-3402 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../config-yaml/src/schemas/data/nextEditWithHistory/index.ts | 2 ++ .../config-yaml/src/schemas/data/nextEditWithHistory/v0.2.0.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/config-yaml/src/schemas/data/nextEditWithHistory/index.ts b/packages/config-yaml/src/schemas/data/nextEditWithHistory/index.ts index 16f4a1746..b74f873f5 100644 --- a/packages/config-yaml/src/schemas/data/nextEditWithHistory/index.ts +++ b/packages/config-yaml/src/schemas/data/nextEditWithHistory/index.ts @@ -15,4 +15,6 @@ export const nextEditEventAllSchema = baseDevDataAllSchema.extend({ beforeCursorPos: z.object({ line: z.number(), character: z.number() }), afterCursorPos: z.object({ line: z.number(), character: z.number() }), context: z.string(), + modelProvider: z.string(), + modelName: z.string(), }); diff --git a/packages/config-yaml/src/schemas/data/nextEditWithHistory/v0.2.0.ts b/packages/config-yaml/src/schemas/data/nextEditWithHistory/v0.2.0.ts index ec2e6bb80..4267abd88 100644 --- a/packages/config-yaml/src/schemas/data/nextEditWithHistory/v0.2.0.ts +++ b/packages/config-yaml/src/schemas/data/nextEditWithHistory/v0.2.0.ts @@ -18,6 +18,8 @@ export const nextEditEventSchema_0_2_0 = nextEditEventAllSchema.pick({ beforeCursorPos: true, afterCursorPos: true, context: true, + modelProvider: true, + modelName: true, }); export const nextEditEventSchema_0_2_0_noCode = nextEditEventSchema_0_2_0.omit({