@vellumai/plugin-api 0.10.0-dev.202606200539.c052d10 → 0.10.0-dev.202606201539.0cebd50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +17 -0
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1244,6 +1244,23 @@ declare interface DocumentSaveResponse {
1244
1244
 
1245
1245
  declare type _DocumentsServerMessages = DocumentEditorShow | DocumentEditorUpdateEvent | DocumentSaveResponse | DocumentLoadResponse | DocumentListResponse;
1246
1246
 
1247
+ /**
1248
+ * Whether a profile's resolved model can process image input.
1249
+ *
1250
+ * Resolution mirrors the host's call-site resolver:
1251
+ * - The profile's `(provider, model)` fields are merged over `llm.default` so
1252
+ * a profile that only sets `model` (or only `provider`) inherits the other
1253
+ * from the workspace default.
1254
+ * - When `provider` is still missing but `model` is a known catalog model,
1255
+ * the provider is inferred via `getCatalogProviderForModel` (same logic as
1256
+ * the resolver's `withImpliedProviderForKnownModel`).
1257
+ * - For a mix profile, returns `true` if any constituent arm supports vision
1258
+ * (the mix can route to it) and `false` only if every arm is text-only.
1259
+ * - Unknown `(provider, model)` pairs default to `true` (fail-open), matching
1260
+ * the config GET route's `enrichProfilesWithVisionFlag`.
1261
+ */
1262
+ export declare function doesSupportVision(profile: ModelProfileInfo): boolean;
1263
+
1247
1264
  declare interface DynamicPagePreview {
1248
1265
  title: string;
1249
1266
  subtitle?: string;
package/index.js CHANGED
@@ -3,6 +3,7 @@ const api = globalThis[Symbol.for("vellum.plugin-api")] ?? {};
3
3
  export const HOOKS = api.HOOKS;
4
4
  export const RiskLevel = api.RiskLevel;
5
5
  export const assistantEventHub = api.assistantEventHub;
6
+ export const doesSupportVision = api.doesSupportVision;
6
7
  export const getConfiguredProvider = api.getConfiguredProvider;
7
8
  export const getModelProfiles = api.getModelProfiles;
8
9
  export const getSecureKeyAsync = api.getSecureKeyAsync;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.0-dev.202606200539.c052d10",
3
+ "version": "0.10.0-dev.202606201539.0cebd50",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",