fix(shared): drop .js extensions in model-routing imports for Next.js
Webpack resolves workspace packages without Node ESM .js suffixes; extensionless paths match the rest of packages/shared and fix middleware build failures. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
dfe73b3647
commit
a6898617b5
3 changed files with 9 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
export {
|
export {
|
||||||
LEGACY_CURSOR_MODEL_ALIASES,
|
LEGACY_CURSOR_MODEL_ALIASES,
|
||||||
PIPELINE_DEFAULT_ROLE_ROUTES,
|
PIPELINE_DEFAULT_ROLE_ROUTES,
|
||||||
} from "./constants.js";
|
} from "./constants";
|
||||||
export {
|
export {
|
||||||
convoyModelPolicySchema,
|
convoyModelPolicySchema,
|
||||||
modelProviderSchema,
|
modelProviderSchema,
|
||||||
|
|
@ -15,7 +15,7 @@ export {
|
||||||
type ProviderType,
|
type ProviderType,
|
||||||
type ResolvedModel,
|
type ResolvedModel,
|
||||||
type RoleModelRoute,
|
type RoleModelRoute,
|
||||||
} from "./schemas.js";
|
} from "./schemas";
|
||||||
export {
|
export {
|
||||||
resolveModel,
|
resolveModel,
|
||||||
resolveModelErrorCodeSchema,
|
resolveModelErrorCodeSchema,
|
||||||
|
|
@ -25,4 +25,4 @@ export {
|
||||||
type ResolveModelInput,
|
type ResolveModelInput,
|
||||||
type ResolveModelResult,
|
type ResolveModelResult,
|
||||||
type ResolveModelSuccess,
|
type ResolveModelSuccess,
|
||||||
} from "./resolve-model.js";
|
} from "./resolve-model";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
|
|
||||||
import { LEGACY_CURSOR_MODEL_ALIASES } from "./constants.js";
|
import { LEGACY_CURSOR_MODEL_ALIASES } from "./constants";
|
||||||
import type { ModelProvider, RoleModelRoute } from "./schemas.js";
|
import type { ModelProvider, RoleModelRoute } from "./schemas";
|
||||||
import { resolveModel } from "./resolve-model.js";
|
import { resolveModel } from "./resolve-model";
|
||||||
|
|
||||||
const WORKSPACE_ID = "379ecb2f-6db9-4c53-93ad-72c594eb44a5";
|
const WORKSPACE_ID = "379ecb2f-6db9-4c53-93ad-72c594eb44a5";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
import {
|
import {
|
||||||
LEGACY_CURSOR_MODEL_ALIASES,
|
LEGACY_CURSOR_MODEL_ALIASES,
|
||||||
PIPELINE_DEFAULT_ROLE_ROUTES,
|
PIPELINE_DEFAULT_ROLE_ROUTES,
|
||||||
} from "./constants.js";
|
} from "./constants";
|
||||||
import type {
|
import type {
|
||||||
ConvoyModelPolicy,
|
ConvoyModelPolicy,
|
||||||
ModelProvider,
|
ModelProvider,
|
||||||
ModelTier,
|
ModelTier,
|
||||||
ResolvedModel,
|
ResolvedModel,
|
||||||
RoleModelRoute,
|
RoleModelRoute,
|
||||||
} from "./schemas.js";
|
} from "./schemas";
|
||||||
import { resolvedModelSchema } from "./schemas.js";
|
import { resolvedModelSchema } from "./schemas";
|
||||||
|
|
||||||
export const resolveModelErrorCodeSchema = [
|
export const resolveModelErrorCodeSchema = [
|
||||||
"ALIAS_NOT_RESOLVED",
|
"ALIAS_NOT_RESOLVED",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue