@vellumai/plugin-api 0.12.2-staging.7 → 0.12.2-staging.8
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 +0 -32
- package/index.js +0 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1661,8 +1661,6 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
1661
1661
|
type: z.ZodLiteral<"conversation_title_updated">;
|
|
1662
1662
|
conversationId: z.ZodString;
|
|
1663
1663
|
title: z.ZodString;
|
|
1664
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1665
|
-
type: z.ZodLiteral<"desktop_activity_changed">;
|
|
1666
1664
|
}, z.core.$strip>, z.ZodObject<{
|
|
1667
1665
|
type: z.ZodLiteral<"disk_pressure_status_changed">;
|
|
1668
1666
|
status: z.ZodObject<{
|
|
@@ -3206,8 +3204,6 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3206
3204
|
type: z.ZodLiteral<"conversation_title_updated">;
|
|
3207
3205
|
conversationId: z.ZodString;
|
|
3208
3206
|
title: z.ZodString;
|
|
3209
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3210
|
-
type: z.ZodLiteral<"desktop_activity_changed">;
|
|
3211
3207
|
}, z.core.$strip>, z.ZodObject<{
|
|
3212
3208
|
type: z.ZodLiteral<"disk_pressure_status_changed">;
|
|
3213
3209
|
status: z.ZodObject<{
|
|
@@ -4771,12 +4767,6 @@ export declare function getConversationDirPath(id: string, createdAtMs: number):
|
|
|
4771
4767
|
*/
|
|
4772
4768
|
export declare function getConversationProcessingStartedAt(id: string): Promise<number | null>;
|
|
4773
4769
|
|
|
4774
|
-
/**
|
|
4775
|
-
* The tool definitions the conversation's most recent live turn sent to the
|
|
4776
|
-
* provider, or `null` when none has been recorded.
|
|
4777
|
-
*/
|
|
4778
|
-
export declare function getConversationToolSurface(conversationId: string): Promise<ToolDefinition_2[] | null>;
|
|
4779
|
-
|
|
4780
4770
|
/** Fetch one document from the calling plugin's index, or null. */
|
|
4781
4771
|
export declare function getDocument(documentId: string): Promise<IndexedDocument | null>;
|
|
4782
4772
|
|
|
@@ -5906,11 +5896,6 @@ export declare interface PluginLogger {
|
|
|
5906
5896
|
debug(obj: Record<string, unknown>, msg?: string): void;
|
|
5907
5897
|
}
|
|
5908
5898
|
|
|
5909
|
-
export declare class PluginTurnNotAdmittedError extends Error {
|
|
5910
|
-
readonly reason: string;
|
|
5911
|
-
constructor(reason: string);
|
|
5912
|
-
}
|
|
5913
|
-
|
|
5914
5899
|
/**
|
|
5915
5900
|
* The full `post-compact` context a hook receives — the dispatching call
|
|
5916
5901
|
* site's {@link PostCompactInputContext} plus the pipeline-stamped
|
|
@@ -6795,23 +6780,6 @@ export declare interface RunConversationTurnResult {
|
|
|
6795
6780
|
queued?: boolean;
|
|
6796
6781
|
}
|
|
6797
6782
|
|
|
6798
|
-
/**
|
|
6799
|
-
* Slice a string like `String.prototype.slice`, but never cut a UTF-16
|
|
6800
|
-
* surrogate pair in half.
|
|
6801
|
-
*
|
|
6802
|
-
* If the character at `end - 1` is a high surrogate *and* there is more of
|
|
6803
|
-
* the string beyond `end` (so cutting would actually orphan it), `end` is
|
|
6804
|
-
* decremented by one.
|
|
6805
|
-
*
|
|
6806
|
-
* If the character at `start` is a low surrogate *and* `start > 0` (so we
|
|
6807
|
-
* would be starting mid-pair), `start` is incremented by one.
|
|
6808
|
-
*
|
|
6809
|
-
* When `end === str.length` we do not touch a trailing high surrogate: if it
|
|
6810
|
-
* was already orphaned upstream, repairing it here would silently mutate
|
|
6811
|
-
* content. That is the sanitizer's job, not this function's.
|
|
6812
|
-
*/
|
|
6813
|
-
export declare function safeStringSlice(str: string, start?: number, end?: number): string;
|
|
6814
|
-
|
|
6815
6783
|
/** Sparse lexical search over stored message text; ranked message-id hits. */
|
|
6816
6784
|
export declare function searchMessageIdsLexical(query: string, limit: number, opts?: {
|
|
6817
6785
|
conversationId?: string;
|
package/index.js
CHANGED
|
@@ -5,7 +5,6 @@ export const CredentialResolutionError = api.CredentialResolutionError;
|
|
|
5
5
|
export const CredentialStoreError = api.CredentialStoreError;
|
|
6
6
|
export const HOOKS = api.HOOKS;
|
|
7
7
|
export const INTERNAL_NUDGE_OUTPUT_SUPPRESSION = api.INTERNAL_NUDGE_OUTPUT_SUPPRESSION;
|
|
8
|
-
export const PluginTurnNotAdmittedError = api.PluginTurnNotAdmittedError;
|
|
9
8
|
export const REFUSAL_FALLBACK_TEXT = api.REFUSAL_FALLBACK_TEXT;
|
|
10
9
|
export const RiskLevel = api.RiskLevel;
|
|
11
10
|
export const TtsSynthesisError = api.TtsSynthesisError;
|
|
@@ -26,7 +25,6 @@ export const getConfiguredProvider = api.getConfiguredProvider;
|
|
|
26
25
|
export const getConversation = api.getConversation;
|
|
27
26
|
export const getConversationDirPath = api.getConversationDirPath;
|
|
28
27
|
export const getConversationProcessingStartedAt = api.getConversationProcessingStartedAt;
|
|
29
|
-
export const getConversationToolSurface = api.getConversationToolSurface;
|
|
30
28
|
export const getDocument = api.getDocument;
|
|
31
29
|
export const getMessages = api.getMessages;
|
|
32
30
|
export const getModelProfiles = api.getModelProfiles;
|
|
@@ -56,7 +54,6 @@ export const resolveOauthCallbackUrl = api.resolveOauthCallbackUrl;
|
|
|
56
54
|
export const resolveUserName = api.resolveUserName;
|
|
57
55
|
export const resolveWebhookUrl = api.resolveWebhookUrl;
|
|
58
56
|
export const runConversationTurn = api.runConversationTurn;
|
|
59
|
-
export const safeStringSlice = api.safeStringSlice;
|
|
60
57
|
export const searchMessageIdsLexical = api.searchMessageIdsLexical;
|
|
61
58
|
export const selectedBackendSupportsMultimodal = api.selectedBackendSupportsMultimodal;
|
|
62
59
|
export const storeCredential = api.storeCredential;
|