@hermespilot/link 0.6.8 → 0.6.9

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
@@ -51,7 +51,7 @@ import {
51
51
  startLinkService,
52
52
  stopDaemonProcess,
53
53
  translate
54
- } from "../chunk-57ZJLOQA.js";
54
+ } from "../chunk-DOSXOXOS.js";
55
55
 
56
56
  // src/cli/index.ts
57
57
  import { Command } from "commander";
@@ -248,6 +248,9 @@ interface ConversationArchivePlan {
248
248
  interface LinkRun {
249
249
  id: string;
250
250
  kind?: 'agent' | 'command';
251
+ queue_mode?: 'guided_interrupt';
252
+ queue_promoted_at?: string;
253
+ guided_after_run_id?: string;
251
254
  hermes_run_id?: string;
252
255
  hermes_response_id?: string;
253
256
  previous_response_id?: string;
@@ -263,6 +266,8 @@ interface LinkRun {
263
266
  profile_uid?: string;
264
267
  profile_name_snapshot?: string;
265
268
  profile?: string;
269
+ owner_account_id?: string;
270
+ owner_app_instance_id?: string;
266
271
  model?: string;
267
272
  provider?: string;
268
273
  context_window?: number;
@@ -283,6 +288,8 @@ interface SendMessageInput {
283
288
  clientMessageId?: string;
284
289
  idempotencyKey?: string;
285
290
  profileName?: string;
291
+ accountId?: string;
292
+ appInstanceId?: string;
286
293
  }
287
294
  interface MessageAttachmentInput {
288
295
  blob_id?: string;
@@ -314,6 +321,11 @@ interface CancelRunResult {
314
321
  run: Pick<LinkRun, 'id' | 'status'>;
315
322
  last_event_seq: number;
316
323
  }
324
+ interface QueuedRunActionResult {
325
+ conversation_id: string;
326
+ queued_run: Pick<LinkRun, 'id' | 'status'>;
327
+ last_event_seq: number;
328
+ }
317
329
  type ConversationEventListener = (event: ConversationEvent) => void;
318
330
 
319
331
  interface LinkStatistics {
@@ -425,6 +437,7 @@ declare class ConversationService {
425
437
  private readonly queries;
426
438
  private readonly runLifecycle;
427
439
  private hermesSessionSyncPromise;
440
+ private cronDeliverySyncPromise;
428
441
  constructor(paths: RuntimePaths, logger: FileLogger);
429
442
  private withConversationLock;
430
443
  private restoreArchivedConversationForUserContinuationLocked;
@@ -452,20 +465,33 @@ declare class ConversationService {
452
465
  createConversation(input?: {
453
466
  title?: string;
454
467
  profileName?: string;
468
+ accountId?: string;
469
+ appInstanceId?: string;
455
470
  }): Promise<ConversationSummary>;
456
471
  ensureCronInboxConversation(input?: {
457
472
  profileName?: string;
458
473
  }): Promise<string>;
459
474
  appendCronDelivery(input: {
460
- conversationId: string;
475
+ conversationId?: string;
461
476
  profileName: string;
462
477
  jobId: string;
478
+ source: 'app' | 'natural_language';
463
479
  jobName?: string;
464
480
  outputPath: string;
465
481
  content: string;
482
+ failed?: boolean;
466
483
  runAt?: string;
467
- }): Promise<void>;
484
+ accountId?: string;
485
+ appInstanceId?: string;
486
+ }): Promise<boolean>;
487
+ private appendCronDeliveryToBoundConversation;
488
+ private findImportedCronConversation;
489
+ private reportCronNotification;
468
490
  syncCronDeliveries(): Promise<void>;
491
+ backfillCronOwnership(input: {
492
+ accountId?: string;
493
+ appInstanceId?: string;
494
+ }): Promise<void>;
469
495
  syncHermesSessions(): Promise<HermesSessionSyncResult>;
470
496
  deliverStagedFiles(stagingDir: string): Promise<ImportMediaReferencesResult>;
471
497
  getMessages(conversationId: string, options?: ConversationMessagesPageOptions): Promise<{
@@ -508,6 +534,8 @@ declare class ConversationService {
508
534
  sendMessage(input: SendMessageInput): Promise<SendMessageResult>;
509
535
  cancelRun(conversationId: string, runId: string): Promise<CancelRunResult>;
510
536
  cancelRunById(runId: string): Promise<CancelRunResult>;
537
+ guideQueuedRun(conversationId: string, runId: string): Promise<QueuedRunActionResult>;
538
+ cancelQueuedRun(conversationId: string, runId: string): Promise<QueuedRunActionResult>;
511
539
  resolveApproval(input: {
512
540
  conversationId: string;
513
541
  approvalId: string;
package/dist/http/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApp
3
- } from "../chunk-57ZJLOQA.js";
3
+ } from "../chunk-DOSXOXOS.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.6.8",
3
+ "version": "0.6.9",
4
4
  "private": false,
5
5
  "description": "Hermes Link companion service and CLI for connecting hermes-agent through HermesPilot",
6
6
  "license": "MIT",