@vellumai/plugin-api 0.10.7-dev.202607091507.bac9bfe → 0.10.7-dev.202607091656.6914014

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 +10 -0
  2. package/index.js +2 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1586,6 +1586,9 @@ declare const GenerationHandoffEventSchema: z.ZodObject<{
1586
1586
  attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
1587
1587
  }, z.core.$strip>;
1588
1588
 
1589
+ /** Read the assistant's name from IDENTITY.md for personalized responses. */
1590
+ export declare function getAssistantName(): string | null;
1591
+
1589
1592
  /**
1590
1593
  * Resolve the configured provider through the registry.
1591
1594
  * Thin wrapper around `resolveConfiguredProvider()` for callsites
@@ -3345,6 +3348,13 @@ export declare function resolveMediaSourceData(source: MediaSource_2): {
3345
3348
  media_type: string;
3346
3349
  } | null;
3347
3350
 
3351
+ /**
3352
+ * Read the guardian's display name from `users/default.md`. We look for the
3353
+ * markdown-bold "Name" label (matching the IDENTITY.md convention) and fall
3354
+ * back to `null` on any miss; callers substitute a generic label.
3355
+ */
3356
+ export declare function resolveUserName(workspaceDir: string): string | null;
3357
+
3348
3358
  export declare enum RiskLevel {
3349
3359
  Low = "low",
3350
3360
  Medium = "medium",
package/index.js CHANGED
@@ -4,7 +4,9 @@ export const HOOKS = api.HOOKS;
4
4
  export const RiskLevel = api.RiskLevel;
5
5
  export const assistantEventHub = api.assistantEventHub;
6
6
  export const doesSupportVision = api.doesSupportVision;
7
+ export const getAssistantName = api.getAssistantName;
7
8
  export const getConfiguredProvider = api.getConfiguredProvider;
8
9
  export const getModelProfiles = api.getModelProfiles;
9
10
  export const isMaxTokensStopReason = api.isMaxTokensStopReason;
10
11
  export const resolveMediaSourceData = api.resolveMediaSourceData;
12
+ export const resolveUserName = api.resolveUserName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.7-dev.202607091507.bac9bfe",
3
+ "version": "0.10.7-dev.202607091656.6914014",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",