@adhdev/daemon-core 0.9.77-rc.42 → 0.9.77-rc.43
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/config/mesh-config.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/dist/repo-mesh-types.d.ts +2 -0
- package/package.json +1 -1
- package/src/commands/router.ts +2 -0
- package/src/config/mesh-config.ts +2 -0
- package/src/repo-mesh-types.ts +2 -0
|
@@ -179,6 +179,8 @@ export interface LocalMeshNodeEntry {
|
|
|
179
179
|
workspace: string;
|
|
180
180
|
repoRoot?: string;
|
|
181
181
|
daemonId?: string;
|
|
182
|
+
/** Machine registry ID that owns this workspace, when known. */
|
|
183
|
+
machineId?: string;
|
|
182
184
|
userOverrides: Partial<RepoMeshNodeCapabilities>;
|
|
183
185
|
policy: RepoMeshNodePolicy;
|
|
184
186
|
/** For single-machine mesh: same daemon, different worktree */
|
package/package.json
CHANGED
package/src/commands/router.ts
CHANGED
|
@@ -1746,6 +1746,7 @@ export class DaemonCommandRouter {
|
|
|
1746
1746
|
workspace: result.worktreePath,
|
|
1747
1747
|
repoRoot: result.worktreePath,
|
|
1748
1748
|
daemonId: sourceNode.daemonId,
|
|
1749
|
+
machineId: sourceNode.machineId ?? (sourceNode as any).machine_id,
|
|
1749
1750
|
userOverrides: { ...(sourceNode.userOverrides || {}) },
|
|
1750
1751
|
policy: { ...(sourceNode.policy || {}) },
|
|
1751
1752
|
isLocalWorktree: true,
|
|
@@ -1759,6 +1760,7 @@ export class DaemonCommandRouter {
|
|
|
1759
1760
|
workspace: result.worktreePath,
|
|
1760
1761
|
repoRoot: result.worktreePath,
|
|
1761
1762
|
daemonId: sourceNode.daemonId,
|
|
1763
|
+
machineId: sourceNode.machineId ?? (sourceNode as any).machine_id,
|
|
1762
1764
|
userOverrides: { ...(sourceNode.userOverrides || {}) },
|
|
1763
1765
|
isLocalWorktree: true,
|
|
1764
1766
|
worktreeBranch: result.branch,
|
|
@@ -180,6 +180,7 @@ export interface AddNodeOptions {
|
|
|
180
180
|
workspace: string;
|
|
181
181
|
repoRoot?: string;
|
|
182
182
|
daemonId?: string;
|
|
183
|
+
machineId?: string;
|
|
183
184
|
userOverrides?: Partial<RepoMeshNodeCapabilities>;
|
|
184
185
|
policy?: RepoMeshNodePolicy;
|
|
185
186
|
isLocalWorktree?: boolean;
|
|
@@ -206,6 +207,7 @@ export function addNode(meshId: string, opts: AddNodeOptions): LocalMeshNodeEntr
|
|
|
206
207
|
workspace: opts.workspace.trim(),
|
|
207
208
|
repoRoot: opts.repoRoot,
|
|
208
209
|
daemonId: opts.daemonId,
|
|
210
|
+
machineId: opts.machineId,
|
|
209
211
|
userOverrides: opts.userOverrides || {},
|
|
210
212
|
policy: opts.policy || {},
|
|
211
213
|
isLocalWorktree: opts.isLocalWorktree,
|
package/src/repo-mesh-types.ts
CHANGED
|
@@ -224,6 +224,8 @@ export interface LocalMeshNodeEntry {
|
|
|
224
224
|
workspace: string;
|
|
225
225
|
repoRoot?: string;
|
|
226
226
|
daemonId?: string;
|
|
227
|
+
/** Machine registry ID that owns this workspace, when known. */
|
|
228
|
+
machineId?: string;
|
|
227
229
|
userOverrides: Partial<RepoMeshNodeCapabilities>;
|
|
228
230
|
policy: RepoMeshNodePolicy;
|
|
229
231
|
/** For single-machine mesh: same daemon, different worktree */
|