@hermespilot/link 0.7.7-beta.0 → 0.7.8-beta.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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { R as RuntimePaths } from '../paths-CmAiZsna.js';
2
+ import { R as RuntimePaths } from '../paths-BSeH8pip.js';
3
3
 
4
4
  declare function waitForPairingOrShutdown(sessionId: string, expiresAt: string, paths: RuntimePaths): Promise<'claimed' | 'expired' | 'shutdown'>;
5
5
  declare function isCliEntrypoint(entry?: string, moduleUrl?: string): boolean;
package/dist/cli/index.js CHANGED
@@ -54,7 +54,7 @@ import {
54
54
  stopDaemonProcess,
55
55
  summarizeUsageProbeEnsure,
56
56
  translate
57
- } from "../chunk-RFZ4SQV4.js";
57
+ } from "../chunk-A3USRRZU.js";
58
58
 
59
59
  // src/cli/index.ts
60
60
  import { Command } from "commander";
@@ -1,5 +1,5 @@
1
1
  import Koa from 'koa';
2
- import { R as RuntimePaths } from '../paths-CmAiZsna.js';
2
+ import { R as RuntimePaths } from '../paths-BSeH8pip.js';
3
3
 
4
4
  interface ConversationProfileSummary {
5
5
  uid?: string;
@@ -12,6 +12,7 @@ interface ConversationSummary {
12
12
  title: string;
13
13
  display_title?: string;
14
14
  title_source?: ConversationTitleSource;
15
+ workspace_id?: string | null;
15
16
  created_at: string;
16
17
  updated_at: string;
17
18
  last_event_seq: number;
@@ -337,6 +338,14 @@ interface QueuedRunActionResult {
337
338
  }
338
339
  type ConversationEventListener = (event: ConversationEvent) => void;
339
340
 
341
+ type ConversationWorkspaceFilter = {
342
+ kind: 'all';
343
+ } | {
344
+ kind: 'default';
345
+ } | {
346
+ kind: 'workspace';
347
+ workspaceId: string;
348
+ };
340
349
  interface LinkStatistics {
341
350
  conversations: {
342
351
  total: number;
@@ -404,6 +413,14 @@ declare class FileLogger {
404
413
 
405
414
  type SupportedLanguage = 'zh-CN' | 'en';
406
415
 
416
+ interface ConversationWorkspace {
417
+ id: string;
418
+ name: string;
419
+ icon: string;
420
+ created_at: string;
421
+ updated_at: string;
422
+ }
423
+
407
424
  interface HermesSessionSyncResult {
408
425
  scanned_profiles: number;
409
426
  scanned_sessions: number;
@@ -455,6 +472,7 @@ declare class ConversationService {
455
472
  listConversationPage(input?: {
456
473
  limit?: number;
457
474
  cursor?: string;
475
+ workspace?: ConversationWorkspaceFilter;
458
476
  }): Promise<ConversationListPage>;
459
477
  searchConversationPage(input?: {
460
478
  limit?: number;
@@ -477,6 +495,7 @@ declare class ConversationService {
477
495
  profileName?: string;
478
496
  accountId?: string;
479
497
  appInstanceId?: string;
498
+ workspaceId?: string | null;
480
499
  }): Promise<ConversationSummary>;
481
500
  ensureCronInboxConversation(input?: {
482
501
  profileName?: string;
@@ -579,6 +598,28 @@ declare class ConversationService {
579
598
  deleteConversation(conversationId: string): Promise<DeleteConversationResult>;
580
599
  archiveConversation(conversationId: string): Promise<ArchiveConversationResult>;
581
600
  unarchiveConversation(conversationId: string): Promise<UnarchiveConversationResult>;
601
+ listWorkspaces(): Promise<ConversationWorkspace[]>;
602
+ createWorkspace(input: {
603
+ name: string;
604
+ icon?: string;
605
+ }): Promise<ConversationWorkspace>;
606
+ renameWorkspace(workspaceId: string, input: {
607
+ name: string;
608
+ icon?: string;
609
+ }): Promise<ConversationWorkspace>;
610
+ deleteWorkspace(workspaceId: string): Promise<{
611
+ workspace: ConversationWorkspace;
612
+ movedConversationCount: number;
613
+ }>;
614
+ setConversationWorkspace(conversationId: string, workspaceId: string | null | undefined): Promise<{
615
+ conversation_id: string;
616
+ workspace_id: string | null;
617
+ conversation: ConversationSummary;
618
+ }>;
619
+ private clearWorkspaceFromConversations;
620
+ private syncHermesArchiveStatesBestEffort;
621
+ private setHermesSessionsArchived;
622
+ private hermesArchiveStateSyncMarkerPath;
582
623
  prepareClearAllConversationPlan(targetStatus?: ConversationClearPlanTargetStatus): Promise<ConversationClearPlan>;
583
624
  readClearAllConversationPlan(planId: string): Promise<ConversationClearPlan>;
584
625
  executeClearAllConversationPlan(planId: string): Promise<ConversationClearPlan>;
@@ -623,6 +664,7 @@ declare class ConversationService {
623
664
  }>;
624
665
  private refreshTitleFromHermes;
625
666
  private persistConversationStats;
667
+ private persistConversationStatsWithoutManifestRewrite;
626
668
  private appendEvent;
627
669
  private abortActiveRunsForConversation;
628
670
  private hasActiveRunControllerForConversation;
package/dist/http/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApp
3
- } from "../chunk-RFZ4SQV4.js";
3
+ } from "../chunk-A3USRRZU.js";
4
4
  export {
5
5
  createApp
6
6
  };
@@ -6,6 +6,7 @@ interface RuntimePaths {
6
6
  credentialsFile: string;
7
7
  databaseFile: string;
8
8
  conversationsDir: string;
9
+ workspacesFile: string;
9
10
  blobsDir: string;
10
11
  indexesDir: string;
11
12
  logsDir: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hermespilot/link",
3
- "version": "0.7.7-beta.0",
3
+ "version": "0.7.8-beta.0",
4
4
  "private": false,
5
5
  "description": "Hermes Link companion service and CLI for connecting hermes-agent through HermesPilot",
6
6
  "license": "MIT",