@vellumai/plugin-api 0.11.1-dev.202608042001.feb8dd6 → 0.11.1-dev.202608042130.2b7da8d

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 +102 -15
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -76,6 +76,37 @@ export declare type AgentLoopExitReason =
76
76
  /** An unhandled error ended the turn. */
77
77
  | "error";
78
78
 
79
+ declare type AnsweredQuestion = z.infer<typeof AnsweredQuestionSchema>;
80
+
81
+ declare const AnsweredQuestionSchema: z.ZodObject<{
82
+ requestId: z.ZodString;
83
+ questions: z.ZodArray<z.ZodObject<{
84
+ id: z.ZodString;
85
+ question: z.ZodString;
86
+ description: z.ZodOptional<z.ZodString>;
87
+ options: z.ZodArray<z.ZodObject<{
88
+ id: z.ZodString;
89
+ label: z.ZodString;
90
+ description: z.ZodOptional<z.ZodString>;
91
+ }, z.core.$strip>>;
92
+ freeTextPlaceholder: z.ZodOptional<z.ZodString>;
93
+ }, z.core.$strip>>;
94
+ responses: z.ZodArray<z.ZodObject<{
95
+ questionId: z.ZodString;
96
+ decision: z.ZodEnum<{
97
+ option: "option";
98
+ free_text: "free_text";
99
+ skipped: "skipped";
100
+ }>;
101
+ optionId: z.ZodOptional<z.ZodString>;
102
+ text: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strip>>;
104
+ overall: z.ZodEnum<{
105
+ completed: "completed";
106
+ closed: "closed";
107
+ }>;
108
+ }, z.core.$strip>;
109
+
79
110
  /**
80
111
  * How {@link listConversations} (and friends) treats archived rows.
81
112
  *
@@ -767,12 +798,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
767
798
  disableCache: z.ZodOptional<z.ZodBoolean>;
768
799
  profile: z.ZodOptional<z.ZodString>;
769
800
  }, z.core.$strip>>>;
770
- defaultProfileOverrides: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
771
- balanced: "balanced";
772
- "quality-optimized": "quality-optimized";
773
- "cost-optimized": "cost-optimized";
774
- "latency-optimized": "latency-optimized";
775
- }> & z.core.$partial, z.ZodString>>;
776
801
  activeProfile: z.ZodOptional<z.ZodString>;
777
802
  advisorProfile: z.ZodOptional<z.ZodString>;
778
803
  defaultProvider: z.ZodCatch<z.ZodOptional<z.ZodObject<{
@@ -1312,8 +1337,8 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
1312
1337
  id: z.ZodString;
1313
1338
  conversationId: z.ZodString;
1314
1339
  status: z.ZodEnum<{
1315
- cancelled: "cancelled";
1316
1340
  completed: "completed";
1341
+ cancelled: "cancelled";
1317
1342
  failed: "failed";
1318
1343
  }>;
1319
1344
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2264,6 +2289,34 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
2264
2289
  mayRequireJavaScript: z.ZodOptional<z.ZodBoolean>;
2265
2290
  }, z.core.$strip>>;
2266
2291
  }, z.core.$strip>>;
2292
+ answeredQuestion: z.ZodOptional<z.ZodObject<{
2293
+ requestId: z.ZodString;
2294
+ questions: z.ZodArray<z.ZodObject<{
2295
+ id: z.ZodString;
2296
+ question: z.ZodString;
2297
+ description: z.ZodOptional<z.ZodString>;
2298
+ options: z.ZodArray<z.ZodObject<{
2299
+ id: z.ZodString;
2300
+ label: z.ZodString;
2301
+ description: z.ZodOptional<z.ZodString>;
2302
+ }, z.core.$strip>>;
2303
+ freeTextPlaceholder: z.ZodOptional<z.ZodString>;
2304
+ }, z.core.$strip>>;
2305
+ responses: z.ZodArray<z.ZodObject<{
2306
+ questionId: z.ZodString;
2307
+ decision: z.ZodEnum<{
2308
+ option: "option";
2309
+ free_text: "free_text";
2310
+ skipped: "skipped";
2311
+ }>;
2312
+ optionId: z.ZodOptional<z.ZodString>;
2313
+ text: z.ZodOptional<z.ZodString>;
2314
+ }, z.core.$strip>>;
2315
+ overall: z.ZodEnum<{
2316
+ completed: "completed";
2317
+ closed: "closed";
2318
+ }>;
2319
+ }, z.core.$strip>>;
2267
2320
  errorCode: z.ZodOptional<z.ZodString>;
2268
2321
  completedAt: z.ZodOptional<z.ZodNumber>;
2269
2322
  }, z.core.$strip>, z.ZodObject<{
@@ -2700,8 +2753,8 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2700
2753
  id: z.ZodString;
2701
2754
  conversationId: z.ZodString;
2702
2755
  status: z.ZodEnum<{
2703
- cancelled: "cancelled";
2704
2756
  completed: "completed";
2757
+ cancelled: "cancelled";
2705
2758
  failed: "failed";
2706
2759
  }>;
2707
2760
  exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3652,6 +3705,34 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3652
3705
  mayRequireJavaScript: z.ZodOptional<z.ZodBoolean>;
3653
3706
  }, z.core.$strip>>;
3654
3707
  }, z.core.$strip>>;
3708
+ answeredQuestion: z.ZodOptional<z.ZodObject<{
3709
+ requestId: z.ZodString;
3710
+ questions: z.ZodArray<z.ZodObject<{
3711
+ id: z.ZodString;
3712
+ question: z.ZodString;
3713
+ description: z.ZodOptional<z.ZodString>;
3714
+ options: z.ZodArray<z.ZodObject<{
3715
+ id: z.ZodString;
3716
+ label: z.ZodString;
3717
+ description: z.ZodOptional<z.ZodString>;
3718
+ }, z.core.$strip>>;
3719
+ freeTextPlaceholder: z.ZodOptional<z.ZodString>;
3720
+ }, z.core.$strip>>;
3721
+ responses: z.ZodArray<z.ZodObject<{
3722
+ questionId: z.ZodString;
3723
+ decision: z.ZodEnum<{
3724
+ option: "option";
3725
+ free_text: "free_text";
3726
+ skipped: "skipped";
3727
+ }>;
3728
+ optionId: z.ZodOptional<z.ZodString>;
3729
+ text: z.ZodOptional<z.ZodString>;
3730
+ }, z.core.$strip>>;
3731
+ overall: z.ZodEnum<{
3732
+ completed: "completed";
3733
+ closed: "closed";
3734
+ }>;
3735
+ }, z.core.$strip>>;
3655
3736
  errorCode: z.ZodOptional<z.ZodString>;
3656
3737
  completedAt: z.ZodOptional<z.ZodNumber>;
3657
3738
  }, z.core.$strip>, z.ZodObject<{
@@ -4939,8 +5020,8 @@ declare const messageMetadataSchema: z.ZodObject<{
4939
5020
  command: z.ZodString;
4940
5021
  startedAt: z.ZodNumber;
4941
5022
  status: z.ZodEnum<{
4942
- cancelled: "cancelled";
4943
5023
  completed: "completed";
5024
+ cancelled: "cancelled";
4944
5025
  failed: "failed";
4945
5026
  }>;
4946
5027
  exitCode: z.ZodNullable<z.ZodNumber>;
@@ -5628,12 +5709,10 @@ declare type ResolutionFallbackReason = "missing" | "disabled" | "incomplete";
5628
5709
  * 2. `llm.activeProfile` — `mainAgent` only, since it IS that call site's
5629
5710
  * user-facing chat-model selection
5630
5711
  * 3. `llm.callSites[callSite].profile` (the call site's named profile)
5631
- * 4. `CALL_SITE_DEFAULTS[callSite].profile` intent, remapped through
5632
- * `llm.defaultProfileOverrides[intent]` when set, otherwise resolved
5633
- * through `llm.defaultProvider`
5634
- * 5. balanced intent (same remap consult) through `llm.defaultProvider`:
5635
- * the code-owned anchor for profileless call sites, or when nothing
5636
- * above is usable
5712
+ * 4. `CALL_SITE_DEFAULTS[callSite].profile` intent resolved through
5713
+ * `llm.defaultProvider`
5714
+ * 5. balanced intent through `llm.defaultProvider`: the code-owned anchor
5715
+ * for profileless call sites, or when nothing above is usable
5637
5716
  *
5638
5717
  * A winner must carry its own `provider` AND `model`: the base layer's schema
5639
5718
  * default identity never stands in for a selected profile. The anchor is
@@ -6868,6 +6947,14 @@ export declare interface ToolExecutionResult {
6868
6947
  /** Structured activity metadata for client rendering (web search, web fetch, etc).
6869
6948
  * Populated by daemon-internal tools; plugins must not set this. */
6870
6949
  activityMetadata?: ToolActivityMetadata;
6950
+ /**
6951
+ * Typed side channel from the `ask_question` executor to the agent loop: the
6952
+ * questions asked and the answers the user gave. The loop forwards it on the
6953
+ * `tool_result` event and persists it on the tool_use block, so the answered
6954
+ * card renders live and survives a history reopen instead of the decision
6955
+ * disappearing with the interactive prompt. Set only by `ask_question`.
6956
+ */
6957
+ answeredQuestion?: AnsweredQuestion;
6871
6958
  }
6872
6959
 
6873
6960
  export declare interface ToolResultContent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.1-dev.202608042001.feb8dd6",
3
+ "version": "0.11.1-dev.202608042130.2b7da8d",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",