@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.
- package/dist/boot/daemon-lifecycle.d.ts +1 -0
- package/dist/commands/cli-manager.d.ts +2 -0
- package/dist/commands/hosted-runtime-restore.d.ts +3 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +303 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +289 -23
- package/dist/index.mjs.map +1 -1
- package/dist/logging/command-log.d.ts +1 -0
- package/dist/logging/debug-config.d.ts +21 -0
- package/dist/logging/debug-trace.d.ts +35 -0
- package/dist/session-host/app-name.d.ts +6 -0
- package/dist/shared-types.d.ts +2 -0
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/boot/daemon-lifecycle.ts +1 -0
- package/src/commands/chat-commands.ts +76 -13
- package/src/commands/cli-manager.ts +11 -0
- package/src/commands/hosted-runtime-restore.ts +9 -0
- package/src/commands/router.ts +55 -5
- package/src/index.ts +22 -0
- package/src/logging/command-log.ts +3 -0
- package/src/logging/debug-config.ts +75 -0
- package/src/logging/debug-trace.ts +130 -0
- package/src/session-host/app-name.ts +15 -0
- package/src/session-host/runtime-support.ts +1 -0
- package/src/shared-types.ts +2 -0
|
@@ -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(() => {});
|
package/src/shared-types.ts
CHANGED
|
@@ -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
|
}
|