@hermespilot/link 0.3.4 → 0.3.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-FPMMWYXK.js → chunk-773L37RF.js} +2169 -643
- package/dist/cli/index.js +1 -1
- package/dist/http/app.d.ts +20 -1
- package/dist/http/app.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
package/dist/http/app.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ interface ConversationRuntimeMetadata {
|
|
|
118
118
|
used_tokens?: number;
|
|
119
119
|
window_tokens?: number;
|
|
120
120
|
usage_percent?: number;
|
|
121
|
-
source: 'explicit' | 'unknown';
|
|
121
|
+
source: 'explicit' | 'estimated' | 'unknown';
|
|
122
122
|
updated_at?: string;
|
|
123
123
|
};
|
|
124
124
|
}
|
|
@@ -279,6 +279,7 @@ interface LinkRun {
|
|
|
279
279
|
context_tokens?: number;
|
|
280
280
|
context_window?: number;
|
|
281
281
|
usage_percent?: number;
|
|
282
|
+
context_source?: 'explicit' | 'estimated';
|
|
282
283
|
};
|
|
283
284
|
}
|
|
284
285
|
interface SendMessageInput {
|
|
@@ -321,6 +322,22 @@ interface CancelRunResult {
|
|
|
321
322
|
}
|
|
322
323
|
type ConversationEventListener = (event: ConversationEvent) => void;
|
|
323
324
|
|
|
325
|
+
interface HermesSessionSyncResult {
|
|
326
|
+
scanned_profiles: number;
|
|
327
|
+
scanned_sessions: number;
|
|
328
|
+
eligible_sessions: number;
|
|
329
|
+
imported_count: number;
|
|
330
|
+
reprojected_count: number;
|
|
331
|
+
skipped_existing: number;
|
|
332
|
+
skipped_hidden: number;
|
|
333
|
+
skipped_deleted: number;
|
|
334
|
+
skipped_over_limit: number;
|
|
335
|
+
errors: Array<{
|
|
336
|
+
profile: string;
|
|
337
|
+
message: string;
|
|
338
|
+
}>;
|
|
339
|
+
}
|
|
340
|
+
|
|
324
341
|
interface ImportMediaReferencesResult {
|
|
325
342
|
conversation_id: string;
|
|
326
343
|
run_id: string;
|
|
@@ -346,6 +363,7 @@ declare class ConversationService {
|
|
|
346
363
|
private readonly orchestration;
|
|
347
364
|
private readonly queries;
|
|
348
365
|
private readonly runLifecycle;
|
|
366
|
+
private hermesSessionSyncPromise;
|
|
349
367
|
constructor(paths: RuntimePaths, logger: FileLogger);
|
|
350
368
|
private withConversationLock;
|
|
351
369
|
listConversations(): Promise<ConversationSummary[]>;
|
|
@@ -368,6 +386,7 @@ declare class ConversationService {
|
|
|
368
386
|
runAt?: string;
|
|
369
387
|
}): Promise<void>;
|
|
370
388
|
syncCronDeliveries(): Promise<void>;
|
|
389
|
+
syncHermesSessions(): Promise<HermesSessionSyncResult>;
|
|
371
390
|
deliverStagedFiles(stagingDir: string): Promise<ImportMediaReferencesResult>;
|
|
372
391
|
getMessages(conversationId: string, options?: ConversationMessagesPageOptions): Promise<{
|
|
373
392
|
messages: LinkMessage[];
|
package/dist/http/app.js
CHANGED