@adhdev/daemon-core 0.8.49 → 0.8.51

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.
@@ -0,0 +1,15 @@
1
+ export const DEFAULT_SESSION_HOST_APP_NAME = 'adhdev'
2
+ export const DEFAULT_STANDALONE_SESSION_HOST_APP_NAME = 'adhdev-standalone'
3
+
4
+ export function resolveSessionHostAppName(options: {
5
+ standalone?: boolean
6
+ env?: NodeJS.ProcessEnv
7
+ } = {}): string {
8
+ const env = options.env || process.env
9
+ const explicit = typeof env.ADHDEV_SESSION_HOST_NAME === 'string'
10
+ ? env.ADHDEV_SESSION_HOST_NAME.trim()
11
+ : ''
12
+
13
+ if (explicit) return explicit
14
+ return options.standalone ? DEFAULT_STANDALONE_SESSION_HOST_APP_NAME : DEFAULT_SESSION_HOST_APP_NAME
15
+ }
@@ -65,6 +65,7 @@ export async function listHostedCliRuntimes(endpoint: SessionHostEndpoint): Prom
65
65
  workspace: record.workspace,
66
66
  cliArgs: Array.isArray(record.meta?.cliArgs) ? (record.meta.cliArgs as string[]) : [],
67
67
  providerSessionId: typeof record.meta?.providerSessionId === 'string' ? String(record.meta.providerSessionId) : undefined,
68
+ managedBy: typeof record.meta?.managedBy === 'string' ? String(record.meta.managedBy) : undefined,
68
69
  }));
69
70
  } finally {
70
71
  await client.close().catch(() => {});
@@ -187,6 +187,7 @@ export interface SessionChatTailUpdate extends ReadChatSyncResult {
187
187
  key: string;
188
188
  sessionId: string;
189
189
  historySessionId?: string;
190
+ interactionId?: string;
190
191
  seq: number;
191
192
  timestamp: number;
192
193
  }
@@ -215,6 +216,7 @@ export interface SessionModalUpdate {
215
216
  title?: string;
216
217
  modalMessage?: string;
217
218
  modalButtons?: string[];
219
+ interactionId?: string;
218
220
  seq: number;
219
221
  timestamp: number;
220
222
  }