@adhdev/daemon-core 0.9.82-rc.446 → 0.9.82-rc.448

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.
@@ -110,6 +110,11 @@ export interface AddNodeOptions {
110
110
  clonedFromNodeId?: string;
111
111
  worktreeBootstrap?: LocalMeshNodeEntry['worktreeBootstrap'];
112
112
  role?: RepoMeshDaemonRole;
113
+ /** Owning daemon's machine nickname. Defaults to this daemon's local
114
+ * config.machineNickname when omitted — a node is always added by (and on)
115
+ * the daemon that owns its workspace (self/base node or a local worktree
116
+ * clone), so the local config is the correct source. */
117
+ machineNickname?: string;
113
118
  }
114
119
  export declare function addNode(meshId: string, opts: AddNodeOptions): LocalMeshNodeEntry | undefined;
115
120
  export declare function removeNode(meshId: string, nodeId: string): boolean;
@@ -125,6 +130,10 @@ export declare function updateNode(meshId: string, nodeId: string, opts: {
125
130
  * operator intent) so capability-tag os=/arch= self-heals across loads. */
126
131
  reportedPlatform?: string;
127
132
  reportedArch?: string;
133
+ /** Owning daemon's self-reported machine nickname, carried on the
134
+ * git_status envelope. Persisted so the friendly label survives across
135
+ * coordinator restarts (mirrors reportedPlatform/reportedArch). */
136
+ reportedMachineNickname?: string;
128
137
  }): LocalMeshNodeEntry | undefined;
129
138
  /**
130
139
  * Validate + normalize a panel config before persisting. Mirrors the node-config
@@ -123,6 +123,7 @@ type GitCommandSuccess = {
123
123
  status: GitRepoStatus;
124
124
  reporterPlatform?: string;
125
125
  reporterArch?: string;
126
+ reporterMachineNickname?: string;
126
127
  } | {
127
128
  success: true;
128
129
  diffSummary: GitDiffSummary;
package/dist/index.d.ts CHANGED
@@ -151,6 +151,8 @@ export type { HostedCliRuntimeDescriptor, CliTransportFactoryParams } from './co
151
151
  export { DEFAULT_SESSION_HOST_APP_NAME, DEFAULT_STANDALONE_SESSION_HOST_APP_NAME, resolveSessionHostAppName, resolveSessionHostAppNameResolution, } from './session-host/app-name.js';
152
152
  export type { SessionHostAppNameResolution } from './session-host/app-name.js';
153
153
  export { ensureSessionHostReady, listHostedCliRuntimes } from './session-host/runtime-support.js';
154
+ export { createManagedSessionHost } from './session-host/managed-host.js';
155
+ export type { ManagedSessionHost, ManagedSessionHostOptions } from './session-host/managed-host.js';
154
156
  export { getSessionHostRecoveryLabel, getSessionHostSurfaceKind, isSessionHostLiveRuntime, isSessionHostRecoverySnapshot, partitionSessionHostDiagnosticsSessions, partitionSessionHostRecords, } from './session-host/runtime-surface.js';
155
157
  export type { SessionHostSurfaceKind, SessionHostSurfaceRecordLike } from './session-host/runtime-surface.js';
156
158
  export { shouldAutoRestoreHostedSessionsOnStartup } from './session-host/startup-restore-policy.js';