@hermespilot/link 0.6.4 → 0.6.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/{chunk-FCCY3M5Z.js → chunk-4OXUJNO6.js} +633 -58
- package/dist/cli/index.js +56 -508
- package/dist/http/app.d.ts +17 -0
- package/dist/http/app.js +1 -1
- package/package.json +1 -1
package/dist/http/app.d.ts
CHANGED
|
@@ -62,6 +62,22 @@ interface ConversationMessagesPageInfo {
|
|
|
62
62
|
oldest_message_id: string | null;
|
|
63
63
|
newest_message_id: string | null;
|
|
64
64
|
}
|
|
65
|
+
type ConversationEventStreamReason = 'terminal' | 'active_run' | 'queued_run' | 'recovering' | 'requires_user_action' | 'unknown';
|
|
66
|
+
interface ConversationEventStreamRunSummary {
|
|
67
|
+
id: string;
|
|
68
|
+
status: LinkRun['status'];
|
|
69
|
+
assistant_message_id: string;
|
|
70
|
+
requires_user_action: boolean;
|
|
71
|
+
updated_at: string;
|
|
72
|
+
}
|
|
73
|
+
interface ConversationEventStreamState {
|
|
74
|
+
should_subscribe: boolean;
|
|
75
|
+
reason: ConversationEventStreamReason;
|
|
76
|
+
has_active_runs: boolean;
|
|
77
|
+
requires_user_action: boolean;
|
|
78
|
+
active_runs: ConversationEventStreamRunSummary[];
|
|
79
|
+
latest_runs: ConversationEventStreamRunSummary[];
|
|
80
|
+
}
|
|
65
81
|
interface LinkMessagePart {
|
|
66
82
|
type: 'text' | 'image' | 'file' | 'audio' | 'video' | 'unsupported';
|
|
67
83
|
text?: string;
|
|
@@ -455,6 +471,7 @@ declare class ConversationService {
|
|
|
455
471
|
last_event_seq: number;
|
|
456
472
|
runtime: ConversationRuntimeMetadata;
|
|
457
473
|
page: ConversationMessagesPageInfo;
|
|
474
|
+
event_stream: ConversationEventStreamState;
|
|
458
475
|
}>;
|
|
459
476
|
setConversationModel(conversationId: string, modelId: string): Promise<{
|
|
460
477
|
conversation_id: string;
|
package/dist/http/app.js
CHANGED