@vellumai/plugin-api 0.12.2-dev.202609182314.c515b72 → 0.12.2-dev.202609191222.757d196

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 +22 -2
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3631,6 +3631,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
3631
3631
  firecrawl: "firecrawl";
3632
3632
  fastcrw: "fastcrw";
3633
3633
  searxng: "searxng";
3634
+ tinyfish: "tinyfish";
3634
3635
  }>;
3635
3636
  resultCount: z.ZodNumber;
3636
3637
  durationMs: z.ZodNumber;
@@ -3653,6 +3654,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
3653
3654
  default: "default";
3654
3655
  firecrawl: "firecrawl";
3655
3656
  fastcrw: "fastcrw";
3657
+ tinyfish: "tinyfish";
3656
3658
  }>>;
3657
3659
  status: z.ZodNumber;
3658
3660
  contentType: z.ZodOptional<z.ZodString>;
@@ -5220,6 +5222,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5220
5222
  firecrawl: "firecrawl";
5221
5223
  fastcrw: "fastcrw";
5222
5224
  searxng: "searxng";
5225
+ tinyfish: "tinyfish";
5223
5226
  }>;
5224
5227
  resultCount: z.ZodNumber;
5225
5228
  durationMs: z.ZodNumber;
@@ -5242,6 +5245,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5242
5245
  default: "default";
5243
5246
  firecrawl: "firecrawl";
5244
5247
  fastcrw: "fastcrw";
5248
+ tinyfish: "tinyfish";
5245
5249
  }>>;
5246
5250
  status: z.ZodNumber;
5247
5251
  contentType: z.ZodOptional<z.ZodString>;
@@ -11254,6 +11258,14 @@ export declare function doesSupportVision(modelOrProfile: ModelProfileInfo | Res
11254
11258
 
11255
11259
  declare type DrizzleDb = ReturnType<typeof drizzle<typeof schema>>;
11256
11260
 
11261
+ export declare interface EffectiveContextWindowInfo {
11262
+ provider: string;
11263
+ model: string;
11264
+ maxInputTokens: number;
11265
+ }
11266
+
11267
+ export declare type EffectiveContextWindowOptions = Pick<ResolveCallSiteOpts, "overrideProfile" | "forceOverrideProfile" | "selectionSeed">;
11268
+
11257
11269
  /**
11258
11270
  * Embed an input and return the raw dense vector (provider, model, and
11259
11271
  * dimensions included), with no persistence.
@@ -11824,6 +11836,14 @@ export declare function getConversationToolSurface(conversationId: string): Prom
11824
11836
  /** Fetch one document from the calling plugin's index, or null. */
11825
11837
  export declare function getDocument(documentId: string): Promise<IndexedDocument | null>;
11826
11838
 
11839
+ /**
11840
+ * Resolve the provider, model, and effective input limit for one configured
11841
+ * call site. The result applies both the workspace override and the selected
11842
+ * model's catalog limit, using the same profile-selection options accepted by
11843
+ * {@link getConfiguredProvider}.
11844
+ */
11845
+ export declare function getEffectiveContextWindow(callSite: LLMCallSite, options?: EffectiveContextWindowOptions): EffectiveContextWindowInfo;
11846
+
11827
11847
  /** All messages of a conversation in insertion order. */
11828
11848
  export declare function getMessages(conversationId: string): Promise<MessageRow[]>;
11829
11849
 
@@ -25249,7 +25269,7 @@ declare interface WebFetchMetadata {
25249
25269
  }
25250
25270
 
25251
25271
  /** Provider that backed a `web_fetch` call. `default` is the built-in fetcher. */
25252
- declare type WebFetchProviderId = "default" | "firecrawl" | "fastcrw";
25272
+ declare type WebFetchProviderId = "default" | "firecrawl" | "fastcrw" | "tinyfish";
25253
25273
 
25254
25274
  /**
25255
25275
  * Public URL resolution for a plugin's own ingress route.
@@ -25306,7 +25326,7 @@ declare interface WebSearchMetadata {
25306
25326
  errorMessage?: string;
25307
25327
  }
25308
25328
 
25309
- declare type WebSearchProviderId = "anthropic-native" | "brave" | "perplexity" | "tavily" | "keenable" | "firecrawl" | "fastcrw" | "searxng";
25329
+ declare type WebSearchProviderId = "anthropic-native" | "brave" | "perplexity" | "tavily" | "keenable" | "firecrawl" | "fastcrw" | "searxng" | "tinyfish";
25310
25330
 
25311
25331
  declare interface WebSearchResultItem {
25312
25332
  rank: number;
package/index.js CHANGED
@@ -28,6 +28,7 @@ export const getConversationDirPath = api.getConversationDirPath;
28
28
  export const getConversationProcessingStartedAt = api.getConversationProcessingStartedAt;
29
29
  export const getConversationToolSurface = api.getConversationToolSurface;
30
30
  export const getDocument = api.getDocument;
31
+ export const getEffectiveContextWindow = api.getEffectiveContextWindow;
31
32
  export const getMessages = api.getMessages;
32
33
  export const getModelProfiles = api.getModelProfiles;
33
34
  export const getRecordedConversationToolSurface = api.getRecordedConversationToolSurface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.12.2-dev.202609182314.c515b72",
3
+ "version": "0.12.2-dev.202609191222.757d196",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",