@vellumai/plugin-api 0.12.1-dev.202609161315.599e403 → 0.12.1-dev.202609161515.bfbda86

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 +23 -0
  2. package/index.js +2 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4767,6 +4767,12 @@ export declare function getConversationDirPath(id: string, createdAtMs: number):
4767
4767
  */
4768
4768
  export declare function getConversationProcessingStartedAt(id: string): Promise<number | null>;
4769
4769
 
4770
+ /**
4771
+ * The tool definitions the conversation's most recent live turn sent to the
4772
+ * provider, or `null` when none has been recorded.
4773
+ */
4774
+ export declare function getConversationToolSurface(conversationId: string): Promise<ToolDefinition_2[] | null>;
4775
+
4770
4776
  /** Fetch one document from the calling plugin's index, or null. */
4771
4777
  export declare function getDocument(documentId: string): Promise<IndexedDocument | null>;
4772
4778
 
@@ -6780,6 +6786,23 @@ export declare interface RunConversationTurnResult {
6780
6786
  queued?: boolean;
6781
6787
  }
6782
6788
 
6789
+ /**
6790
+ * Slice a string like `String.prototype.slice`, but never cut a UTF-16
6791
+ * surrogate pair in half.
6792
+ *
6793
+ * If the character at `end - 1` is a high surrogate *and* there is more of
6794
+ * the string beyond `end` (so cutting would actually orphan it), `end` is
6795
+ * decremented by one.
6796
+ *
6797
+ * If the character at `start` is a low surrogate *and* `start > 0` (so we
6798
+ * would be starting mid-pair), `start` is incremented by one.
6799
+ *
6800
+ * When `end === str.length` we do not touch a trailing high surrogate: if it
6801
+ * was already orphaned upstream, repairing it here would silently mutate
6802
+ * content. That is the sanitizer's job, not this function's.
6803
+ */
6804
+ export declare function safeStringSlice(str: string, start?: number, end?: number): string;
6805
+
6783
6806
  /** Sparse lexical search over stored message text; ranked message-id hits. */
6784
6807
  export declare function searchMessageIdsLexical(query: string, limit: number, opts?: {
6785
6808
  conversationId?: string;
package/index.js CHANGED
@@ -25,6 +25,7 @@ export const getConfiguredProvider = api.getConfiguredProvider;
25
25
  export const getConversation = api.getConversation;
26
26
  export const getConversationDirPath = api.getConversationDirPath;
27
27
  export const getConversationProcessingStartedAt = api.getConversationProcessingStartedAt;
28
+ export const getConversationToolSurface = api.getConversationToolSurface;
28
29
  export const getDocument = api.getDocument;
29
30
  export const getMessages = api.getMessages;
30
31
  export const getModelProfiles = api.getModelProfiles;
@@ -54,6 +55,7 @@ export const resolveOauthCallbackUrl = api.resolveOauthCallbackUrl;
54
55
  export const resolveUserName = api.resolveUserName;
55
56
  export const resolveWebhookUrl = api.resolveWebhookUrl;
56
57
  export const runConversationTurn = api.runConversationTurn;
58
+ export const safeStringSlice = api.safeStringSlice;
57
59
  export const searchMessageIdsLexical = api.searchMessageIdsLexical;
58
60
  export const selectedBackendSupportsMultimodal = api.selectedBackendSupportsMultimodal;
59
61
  export const storeCredential = api.storeCredential;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.12.1-dev.202609161315.599e403",
3
+ "version": "0.12.1-dev.202609161515.bfbda86",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",