@cryptiklemur/lattice 1.46.6 → 1.47.0

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.
@@ -425,11 +425,6 @@ export interface ProjectSettingsErrorMessage {
425
425
  message: string;
426
426
  }
427
427
 
428
- export interface SessionStopExternalMessage {
429
- type: "session:stop_external";
430
- sessionId: string;
431
- }
432
-
433
428
  export interface BudgetOverrideMessage {
434
429
  type: "budget:override";
435
430
  }
@@ -533,13 +528,43 @@ export interface UpdateApplyMessage {
533
528
  type: "update:apply";
534
529
  }
535
530
 
531
+ export interface ChatElicitationRequestMessage {
532
+ type: "chat:elicitation_request";
533
+ requestId: string;
534
+ serverName: string;
535
+ message: string;
536
+ mode: "form" | "url";
537
+ url?: string | null;
538
+ requestedSchema?: Record<string, unknown> | null;
539
+ }
540
+
541
+ export interface ChatElicitationResponseMessage {
542
+ type: "chat:elicitation_response";
543
+ requestId: string;
544
+ action: "accept" | "decline";
545
+ content?: Record<string, unknown>;
546
+ }
547
+
548
+ export interface WarmupModelsMessage {
549
+ type: "warmup:models";
550
+ models: Array<{ value: string; displayName: string }>;
551
+ }
552
+
553
+ export interface WarmupAccountMessage {
554
+ type: "warmup:account";
555
+ email?: string;
556
+ organization?: string;
557
+ subscriptionType?: string;
558
+ apiKeySource?: string;
559
+ apiProvider?: string;
560
+ }
561
+
536
562
  export type ClientMessage =
537
563
  | SessionCreateMessage
538
564
  | SessionActivateMessage
539
565
  | SessionRenameMessage
540
566
  | SessionDeleteMessage
541
567
  | SessionListRequestMessage
542
- | SessionStopExternalMessage
543
568
  | ChatSendMessage
544
569
  | ChatPermissionResponseMessage
545
570
  | ChatRewindMessage
@@ -608,7 +633,8 @@ export type ClientMessage =
608
633
  | PluginDiscoverMessage
609
634
  | PluginErrorsMessage
610
635
  | UpdateCheckMessage
611
- | UpdateApplyMessage;
636
+ | UpdateApplyMessage
637
+ | ChatElicitationResponseMessage;
612
638
 
613
639
  export interface SessionListMessage {
614
640
  type: "session:list";
@@ -636,8 +662,6 @@ export interface SessionHistoryMessage {
636
662
  messages: HistoryMessage[];
637
663
  title?: string;
638
664
  interrupted?: boolean;
639
- busy?: boolean;
640
- busyOwner?: "cli" | "lattice";
641
665
  totalMessages?: number;
642
666
  hasMore?: boolean;
643
667
  }
@@ -646,7 +670,6 @@ export interface SessionBusyMessage {
646
670
  type: "session:busy";
647
671
  sessionId: string;
648
672
  busy: boolean;
649
- busyOwner?: "cli" | "lattice";
650
673
  }
651
674
 
652
675
  export interface ChatUserMessage {
@@ -1107,7 +1130,22 @@ export type ServerMessage =
1107
1130
  | PluginDiscoverResultMessage
1108
1131
  | PluginErrorsResultMessage
1109
1132
  | UpdateStatusMessage
1110
- | UpdateApplyResultMessage;
1133
+ | UpdateApplyResultMessage
1134
+ | ChatElicitationRequestMessage
1135
+ | WarmupModelsMessage
1136
+ | WarmupAccountMessage
1137
+ | ChatRateLimitMessage;
1138
+
1139
+ export interface ChatRateLimitMessage {
1140
+ type: "chat:rate_limit";
1141
+ status: "allowed" | "allowed_warning" | "rejected";
1142
+ utilization?: number;
1143
+ resetsAt?: number;
1144
+ rateLimitType?: string;
1145
+ overageStatus?: string;
1146
+ overageResetsAt?: number;
1147
+ isUsingOverage?: boolean;
1148
+ }
1111
1149
 
1112
1150
  export interface BudgetStatusMessage {
1113
1151
  type: "budget:status";
@@ -61,7 +61,7 @@ export interface Attachment {
61
61
  lineCount?: number;
62
62
  }
63
63
 
64
- export type HistoryMessageType = "user" | "assistant" | "tool_start" | "tool_result" | "permission_request" | "prompt_question" | "todo_update";
64
+ export type HistoryMessageType = "user" | "assistant" | "tool_start" | "tool_result" | "permission_request" | "prompt_question" | "todo_update" | "elicitation";
65
65
 
66
66
  export interface HistoryMessage {
67
67
  type: HistoryMessageType;
@@ -95,6 +95,12 @@ export interface HistoryMessage {
95
95
  status: "pending" | "in_progress" | "completed";
96
96
  priority: "high" | "medium" | "low";
97
97
  }>;
98
+ elicitationMode?: "form" | "url";
99
+ elicitationServerName?: string;
100
+ elicitationMessage?: string;
101
+ elicitationUrl?: string | null;
102
+ elicitationSchema?: Record<string, unknown> | null;
103
+ elicitationStatus?: "pending" | "accepted" | "declined";
98
104
  }
99
105
 
100
106
  export interface PeerInfo {