@vellumai/plugin-api 0.11.4-staging.2 → 0.11.4-staging.4

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 +16 -4
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1798,8 +1798,8 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1798
1798
  targetClientId: z.ZodOptional<z.ZodString>;
1799
1799
  operation: z.ZodLiteral<"read">;
1800
1800
  path: z.ZodString;
1801
- offset: z.ZodOptional<z.ZodNumber>;
1802
- limit: z.ZodOptional<z.ZodNumber>;
1801
+ startIndex: z.ZodOptional<z.ZodNumber>;
1802
+ maxChars: z.ZodOptional<z.ZodNumber>;
1803
1803
  }, z.core.$strip>, z.ZodObject<{
1804
1804
  type: z.ZodLiteral<"host_file_request">;
1805
1805
  requestId: z.ZodString;
@@ -3256,8 +3256,8 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3256
3256
  targetClientId: z.ZodOptional<z.ZodString>;
3257
3257
  operation: z.ZodLiteral<"read">;
3258
3258
  path: z.ZodString;
3259
- offset: z.ZodOptional<z.ZodNumber>;
3260
- limit: z.ZodOptional<z.ZodNumber>;
3259
+ startIndex: z.ZodOptional<z.ZodNumber>;
3260
+ maxChars: z.ZodOptional<z.ZodNumber>;
3261
3261
  }, z.core.$strip>, z.ZodObject<{
3262
3262
  type: z.ZodLiteral<"host_file_request">;
3263
3263
  requestId: z.ZodString;
@@ -7512,6 +7512,11 @@ declare interface UserPromptSubmitInputContext {
7512
7512
  * user speech (e.g. title generation) should skip these turns.
7513
7513
  */
7514
7514
  readonly isHiddenPrompt?: boolean;
7515
+ /**
7516
+ * Daemon-authored kind from the triggering row's `metadata.messageKind`,
7517
+ * when the turn needs a more specific identity than role or visibility.
7518
+ */
7519
+ readonly messageKind?: string;
7515
7520
  /**
7516
7521
  * The user's original message list, immutable for the hook. Plugins
7517
7522
  * may snapshot or compare against this but MUST NOT mutate it.
@@ -7530,6 +7535,13 @@ export declare interface VideoEmbeddingInput {
7530
7535
  mimeType: string;
7531
7536
  }
7532
7537
 
7538
+ /**
7539
+ * Message kind for the hidden user row that starts a voice escalation leg.
7540
+ * Hooks use this marker to distinguish the continuation instruction from
7541
+ * other transcript-suppressed prompts without depending on host voice code.
7542
+ */
7543
+ export declare const VOICE_ESCALATION_CONTINUATION_MESSAGE_KIND = "voice_escalation_continuation";
7544
+
7533
7545
  declare interface WebFetchMetadata {
7534
7546
  url: string;
7535
7547
  finalUrl: string;
package/index.js CHANGED
@@ -7,6 +7,7 @@ export const INTERNAL_NUDGE_OUTPUT_SUPPRESSION = api.INTERNAL_NUDGE_OUTPUT_SUPPR
7
7
  export const REFUSAL_FALLBACK_TEXT = api.REFUSAL_FALLBACK_TEXT;
8
8
  export const RiskLevel = api.RiskLevel;
9
9
  export const TtsSynthesisError = api.TtsSynthesisError;
10
+ export const VOICE_ESCALATION_CONTINUATION_MESSAGE_KIND = api.VOICE_ESCALATION_CONTINUATION_MESSAGE_KIND;
10
11
  export const addMessage = api.addMessage;
11
12
  export const assistantEventHub = api.assistantEventHub;
12
13
  export const buildMessageExcerpt = api.buildMessageExcerpt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.4-staging.2",
3
+ "version": "0.11.4-staging.4",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",