@vellumai/plugin-api 0.12.2-dev.202609170517.642c61f → 0.12.2-dev.202609171017.61d51c8
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.
- package/index.d.ts +43 -1
- package/index.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -602,6 +602,9 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
602
602
|
bm25NormK: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
603
603
|
bypassForCore: z.ZodDefault<z.ZodBoolean>;
|
|
604
604
|
}, z.core.$strip>>;
|
|
605
|
+
poolLog: z.ZodDefault<z.ZodObject<{
|
|
606
|
+
captureInput: z.ZodDefault<z.ZodBoolean>;
|
|
607
|
+
}, z.core.$strip>>;
|
|
605
608
|
}, z.core.$strip>>;
|
|
606
609
|
retrospective: z.ZodDefault<z.ZodObject<{
|
|
607
610
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -4573,6 +4576,34 @@ export declare interface ConversationRow {
|
|
|
4573
4576
|
*/
|
|
4574
4577
|
export declare type ConversationsClearedContext = BaseHookContext;
|
|
4575
4578
|
|
|
4579
|
+
/**
|
|
4580
|
+
* Per-conversation record of what the most recent live turn sent to the
|
|
4581
|
+
* provider that a fork wake cannot re-derive (`conversation_tool_surfaces`).
|
|
4582
|
+
*
|
|
4583
|
+
* The provider prompt cache is a byte-exact prefix match over
|
|
4584
|
+
* `tools -> system -> messages`, so a background wake that forks a
|
|
4585
|
+
* conversation can only reuse the source's cached prefix by sending the SAME
|
|
4586
|
+
* tools array under the SAME system prompt. Re-deriving either on the fork
|
|
4587
|
+
* cannot guarantee that: the fork may run in another process (a different
|
|
4588
|
+
* tool registry), with no connected clients (different host-tool gates),
|
|
4589
|
+
* under a presence the persisted message stamps do not encode, or under a
|
|
4590
|
+
* wake scope that cannot spawn subagents where the source could (the system
|
|
4591
|
+
* prompt's delegation section). Recording the resolved values and replaying
|
|
4592
|
+
* them verbatim can.
|
|
4593
|
+
*/
|
|
4594
|
+
/** What a live turn sent that a replaying fork reproduces verbatim. */
|
|
4595
|
+
export declare interface ConversationToolSurface {
|
|
4596
|
+
/** The tool definitions the turn sent, exactly as resolved. */
|
|
4597
|
+
tools: ToolDefinition_2[];
|
|
4598
|
+
/**
|
|
4599
|
+
* Whether the turn's system prompt rendered the parallel-delegation
|
|
4600
|
+
* section (`01-parallel-tasks`), which the prompt derives from the same
|
|
4601
|
+
* resolved tool surface plus the turn's channel. `null` when unknown: the
|
|
4602
|
+
* turn ran on a system-prompt override, or the row predates the column.
|
|
4603
|
+
*/
|
|
4604
|
+
delegateIndependentTasks: boolean | null;
|
|
4605
|
+
}
|
|
4606
|
+
|
|
4576
4607
|
/** Read-side alias of {@link ConversationCreateType}. */
|
|
4577
4608
|
declare type ConversationType = ConversationCreateType;
|
|
4578
4609
|
|
|
@@ -4782,7 +4813,10 @@ export declare function getConversationProcessingStartedAt(id: string): Promise<
|
|
|
4782
4813
|
|
|
4783
4814
|
/**
|
|
4784
4815
|
* The tool definitions the conversation's most recent live turn sent to the
|
|
4785
|
-
* provider, or `null` when none has been recorded.
|
|
4816
|
+
* provider, or `null` when none has been recorded. A projection of
|
|
4817
|
+
* {@link getRecordedConversationToolSurface}: a fork replaying the source's
|
|
4818
|
+
* request needs the whole record, whose delegation-section state the system
|
|
4819
|
+
* prompt tier of the provider cache prefix depends on.
|
|
4786
4820
|
*/
|
|
4787
4821
|
export declare function getConversationToolSurface(conversationId: string): Promise<ToolDefinition_2[] | null>;
|
|
4788
4822
|
|
|
@@ -4807,6 +4841,14 @@ export declare function getMessages(conversationId: string): Promise<MessageRow[
|
|
|
4807
4841
|
*/
|
|
4808
4842
|
export declare function getModelProfiles(): ModelProfileInfo[];
|
|
4809
4843
|
|
|
4844
|
+
/**
|
|
4845
|
+
* What the conversation's most recent live turn sent to the provider that a
|
|
4846
|
+
* replaying fork reproduces verbatim (its tool definitions and the
|
|
4847
|
+
* delegation-section state of its system prompt), or `null` when none has
|
|
4848
|
+
* been recorded.
|
|
4849
|
+
*/
|
|
4850
|
+
export declare function getRecordedConversationToolSurface(conversationId: string): Promise<ConversationToolSurface | null>;
|
|
4851
|
+
|
|
4810
4852
|
/**
|
|
4811
4853
|
* Returns the workspace root for user-facing state.
|
|
4812
4854
|
*
|
package/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export const getConversationToolSurface = api.getConversationToolSurface;
|
|
|
30
30
|
export const getDocument = api.getDocument;
|
|
31
31
|
export const getMessages = api.getMessages;
|
|
32
32
|
export const getModelProfiles = api.getModelProfiles;
|
|
33
|
+
export const getRecordedConversationToolSurface = api.getRecordedConversationToolSurface;
|
|
33
34
|
export const getWorkspaceDir = api.getWorkspaceDir;
|
|
34
35
|
export const hasLexicalTokens = api.hasLexicalTokens;
|
|
35
36
|
export const indexDocument = api.indexDocument;
|
package/package.json
CHANGED