@hermespilot/link 0.5.0 → 0.5.1

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/cli/index.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  startDaemonProcess,
37
37
  startLinkService,
38
38
  stopDaemonProcess
39
- } from "../chunk-VIBGAYU2.js";
39
+ } from "../chunk-PULX22HX.js";
40
40
 
41
41
  // src/cli/index.ts
42
42
  import { Command } from "commander";
@@ -173,6 +173,14 @@ interface DeleteConversationResult {
173
173
  hermes_session_ids?: string[];
174
174
  deleted_at: string;
175
175
  }
176
+ interface ArchiveConversationResult {
177
+ conversation_id: string;
178
+ archived_at: string;
179
+ }
180
+ interface UnarchiveConversationResult {
181
+ conversation_id: string;
182
+ unarchived_at: string;
183
+ }
176
184
  interface BulkDeleteConversationResult {
177
185
  conversation_id: string;
178
186
  status: 'deleted' | 'failed';
@@ -184,10 +192,21 @@ interface BulkDeleteConversationResult {
184
192
  message: string;
185
193
  };
186
194
  }
195
+ interface BulkArchiveConversationResult {
196
+ conversation_id: string;
197
+ status: 'archived' | 'failed';
198
+ archived_at?: string;
199
+ error?: {
200
+ code: string;
201
+ message: string;
202
+ };
203
+ }
187
204
  type ConversationClearPlanStatus = 'prepared' | 'executing' | 'completed' | 'failed';
205
+ type ConversationClearPlanTargetStatus = 'active' | 'archived';
188
206
  interface ConversationClearPlan {
189
207
  id: string;
190
208
  status: ConversationClearPlanStatus;
209
+ target_status?: ConversationClearPlanTargetStatus;
191
210
  created_at: string;
192
211
  updated_at: string;
193
212
  total_count: number;
@@ -197,6 +216,19 @@ interface ConversationClearPlan {
197
216
  conversations: BulkDeleteConversationResult[];
198
217
  completed_at?: string;
199
218
  }
219
+ type ConversationArchivePlanStatus = ConversationClearPlanStatus;
220
+ interface ConversationArchivePlan {
221
+ id: string;
222
+ status: ConversationArchivePlanStatus;
223
+ created_at: string;
224
+ updated_at: string;
225
+ total_count: number;
226
+ archived_count: number;
227
+ failed_count: number;
228
+ conversation_ids: string[];
229
+ conversations: BulkArchiveConversationResult[];
230
+ completed_at?: string;
231
+ }
200
232
  interface LinkRun {
201
233
  id: string;
202
234
  kind?: 'agent' | 'command';
@@ -272,6 +304,7 @@ interface LinkStatistics {
272
304
  conversations: {
273
305
  total: number;
274
306
  active: number;
307
+ archived: number;
275
308
  deleted: number;
276
309
  };
277
310
  tokens: {
@@ -376,6 +409,7 @@ declare class ConversationService {
376
409
  private hermesSessionSyncPromise;
377
410
  constructor(paths: RuntimePaths, logger: FileLogger);
378
411
  private withConversationLock;
412
+ private restoreArchivedConversationForUserContinuationLocked;
379
413
  listConversations(): Promise<ConversationSummary[]>;
380
414
  listConversationPage(input?: {
381
415
  limit?: number;
@@ -386,6 +420,15 @@ declare class ConversationService {
386
420
  cursor?: string;
387
421
  query?: string;
388
422
  }): Promise<ConversationListPage>;
423
+ listArchivedConversationPage(input?: {
424
+ limit?: number;
425
+ cursor?: string;
426
+ }): Promise<ConversationListPage>;
427
+ searchArchivedConversationPage(input?: {
428
+ limit?: number;
429
+ cursor?: string;
430
+ query?: string;
431
+ }): Promise<ConversationListPage>;
389
432
  getStatistics(filter?: LinkStatisticsFilter): Promise<LinkStatistics>;
390
433
  rebuildStatisticsIndex(): Promise<void>;
391
434
  createConversation(input?: {
@@ -442,6 +485,7 @@ declare class ConversationService {
442
485
  listEvents(conversationId: string, after?: number): Promise<ConversationEvent[]>;
443
486
  subscribe(conversationId: string, listener: ConversationEventListener): () => void;
444
487
  subscribeAll(listener: ConversationEventListener): () => void;
488
+ shouldPublishNotificationEvent(event: Pick<ConversationEvent, 'type' | 'conversation_id' | 'payload'>): Promise<boolean>;
445
489
  sendMessage(input: SendMessageInput): Promise<SendMessageResult>;
446
490
  cancelRun(conversationId: string, runId: string): Promise<CancelRunResult>;
447
491
  cancelRunById(runId: string): Promise<CancelRunResult>;
@@ -463,10 +507,18 @@ declare class ConversationService {
463
507
  last_event_seq: number;
464
508
  }>;
465
509
  deleteConversation(conversationId: string): Promise<DeleteConversationResult>;
466
- prepareClearAllConversationPlan(): Promise<ConversationClearPlan>;
510
+ archiveConversation(conversationId: string): Promise<ArchiveConversationResult>;
511
+ unarchiveConversation(conversationId: string): Promise<UnarchiveConversationResult>;
512
+ prepareClearAllConversationPlan(targetStatus?: ConversationClearPlanTargetStatus): Promise<ConversationClearPlan>;
467
513
  readClearAllConversationPlan(planId: string): Promise<ConversationClearPlan>;
468
514
  executeClearAllConversationPlan(planId: string): Promise<ConversationClearPlan>;
469
515
  startClearAllConversationPlan(planId: string): Promise<ConversationClearPlan>;
516
+ prepareArchiveAllConversationPlan(input?: {
517
+ excludeConversationIds?: string[];
518
+ }): Promise<ConversationArchivePlan>;
519
+ readArchiveAllConversationPlan(planId: string): Promise<ConversationArchivePlan>;
520
+ executeArchiveAllConversationPlan(planId: string): Promise<ConversationArchivePlan>;
521
+ startArchiveAllConversationPlan(planId: string): Promise<ConversationArchivePlan>;
470
522
  deleteConversations(conversationIds: string[]): Promise<{
471
523
  deleted_count: number;
472
524
  failed_count: number;
package/dist/http/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApp
3
- } from "../chunk-VIBGAYU2.js";
3
+ } from "../chunk-PULX22HX.js";
4
4
  export {
5
5
  createApp
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hermespilot/link",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "description": "Hermes Link companion service and CLI for connecting hermes-agent through HermesPilot",
6
6
  "license": "MIT",