@nuvin/nuvin-core 2.1.0-rc.4 → 2.1.0-rc.6

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/dist/VERSION CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "2.1.0-rc.4",
3
- "commit": "5019177"
2
+ "version": "2.1.0-rc.6",
3
+ "commit": "26cfce3"
4
4
  }
package/dist/index.d.ts CHANGED
@@ -679,6 +679,7 @@ type SendMessageOptions = {
679
679
  stream?: boolean;
680
680
  signal?: AbortSignal;
681
681
  skipAutoSummaryCheck?: boolean;
682
+ userMessageId?: string;
682
683
  };
683
684
  type UserAttachment = ImageContentPart & {
684
685
  token?: string;
@@ -1083,6 +1084,7 @@ type AgentEvent = {
1083
1084
  type: typeof AgentEventTypes.MessageStarted;
1084
1085
  conversationId: string;
1085
1086
  messageId: string;
1087
+ userMessageId?: string;
1086
1088
  userContent: string;
1087
1089
  enhanced: string[];
1088
1090
  toolNames: string[];
@@ -1819,6 +1821,7 @@ declare class ConversationStore {
1819
1821
  getConversation(conversationId: string): Promise<Conversation>;
1820
1822
  setConversation(conversationId: string, conversation: Conversation): Promise<void>;
1821
1823
  appendMessages(conversationId: string, messages: Message[]): Promise<void>;
1824
+ deleteMessages(conversationId: string, messageIds: string[]): Promise<void>;
1822
1825
  updateMetadata(conversationId: string, updates: Partial<ConversationMetadata>): Promise<void>;
1823
1826
  incrementTokens(conversationId: string, tokenUsage: TokenUsage): Promise<void>;
1824
1827
  recordRequestMetrics(conversationId: string, metrics: {
@@ -3901,6 +3904,10 @@ declare abstract class BaseLLM implements LLMPort {
3901
3904
  protected enablePromptCaching: boolean;
3902
3905
  protected retryConfig?: Partial<RetryConfig>;
3903
3906
  constructor(apiUrl: string, options?: BaseLLMOptions);
3907
+ protected buildTokenLimit(_model: string, value: number): {
3908
+ max_tokens?: number;
3909
+ max_completion_tokens?: number;
3910
+ };
3904
3911
  protected abstract createTransport(): HttpTransport;
3905
3912
  protected transformUsage(rawUsage: unknown): UsageData | undefined;
3906
3913
  protected getTransport(): HttpTransport;
@@ -3945,6 +3952,10 @@ type GithubOptions = {
3945
3952
  declare class GithubLLM extends BaseLLM implements LLMPort {
3946
3953
  private readonly opts;
3947
3954
  private modelEndpointCache;
3955
+ protected buildTokenLimit(model: string, value: number): {
3956
+ max_tokens?: number;
3957
+ max_completion_tokens?: number;
3958
+ };
3948
3959
  constructor(opts?: GithubOptions);
3949
3960
  protected createTransport(): LLMErrorTransport;
3950
3961
  protected transformUsage(rawUsage: unknown): UsageData | undefined;