@vellumai/plugin-api 0.10.0-dev.202606231741.ae57a80 → 0.10.0-dev.202606231949.01ab12d

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 (2) hide show
  1. package/index.d.ts +5 -13
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1250,21 +1250,13 @@ declare interface DocumentSaveResponse {
1250
1250
  declare type _DocumentsServerMessages = DocumentEditorShow | DocumentEditorUpdateEvent | DocumentSaveResponse | DocumentLoadResponse | DocumentListResponse;
1251
1251
 
1252
1252
  /**
1253
- * Whether a profile's resolved model can process image input.
1253
+ * Whether the given model or profile can process image input.
1254
1254
  *
1255
- * Resolution mirrors the host's call-site resolver:
1256
- * - The profile's `(provider, model)` fields are merged over `llm.default` so
1257
- * a profile that only sets `model` (or only `provider`) inherits the other
1258
- * from the workspace default.
1259
- * - When `provider` is still missing but `model` is a known catalog model,
1260
- * the provider is inferred via `getCatalogProviderForModel` (same logic as
1261
- * the resolver's `withImpliedProviderForKnownModel`).
1262
- * - For a mix profile, returns `true` if any constituent arm supports vision
1263
- * (the mix can route to it) and `false` only if every arm is text-only.
1264
- * - Unknown `(provider, model)` pairs default to `true` (fail-open), matching
1265
- * the config GET route's `enrichProfilesWithVisionFlag`.
1255
+ * `modelOrProfile` may be a concrete model id, a profile key, or a
1256
+ * {@link ModelProfileInfo}. A bare string is resolved as a model id first and,
1257
+ * failing that, as a profile key. Returns `false` when nothing resolves.
1266
1258
  */
1267
- export declare function doesSupportVision(profile: ModelProfileInfo): boolean;
1259
+ export declare function doesSupportVision(modelOrProfile: ModelProfileInfo | string): boolean;
1268
1260
 
1269
1261
  declare interface DynamicPagePreview {
1270
1262
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.0-dev.202606231741.ae57a80",
3
+ "version": "0.10.0-dev.202606231949.01ab12d",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",