feat: show node PATH and bootstrap node host env

This commit is contained in:
Peter Steinberger
2026-01-21 11:06:14 +00:00
parent dc06b225cd
commit 9bd6b3fd54
8 changed files with 47 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ export type NodeSession = {
caps: string[];
commands: string[];
permissions?: Record<string, boolean>;
pathEnv?: string;
connectedAtMs: number;
};
@@ -51,6 +52,10 @@ export class NodeRegistry {
typeof (connect as { permissions?: Record<string, boolean> }).permissions === "object"
? ((connect as { permissions?: Record<string, boolean> }).permissions ?? undefined)
: undefined;
const pathEnv =
typeof (connect as { pathEnv?: string }).pathEnv === "string"
? (connect as { pathEnv?: string }).pathEnv
: undefined;
const session: NodeSession = {
nodeId,
connId: client.connId,
@@ -66,6 +71,7 @@ export class NodeRegistry {
caps,
commands,
permissions,
pathEnv,
connectedAtMs: Date.now(),
};
this.nodesById.set(nodeId, session);