@adhdev/daemon-core 0.9.82-rc.258 → 0.9.82-rc.259

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.82-rc.258",
3
+ "version": "0.9.82-rc.259",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -3514,7 +3514,8 @@ export class DaemonCommandRouter {
3514
3514
  private async executeMeshRefineNodeSynchronously(meshId: string, nodeId: string, args: any): Promise<CommandRouterResult> {
3515
3515
  const refineStages: Array<Record<string, unknown>> = [];
3516
3516
  try {
3517
- const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh);
3517
+ // preferInline: same as startMeshRefineJob — inline-cache-only clone nodes must resolve.
3518
+ const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
3518
3519
  const mesh = meshRecord?.mesh;
3519
3520
  const node = mesh?.nodes?.find((n: any) => n.id === nodeId || n.nodeId === nodeId);
3520
3521
  if (!node) return { success: false, error: `Node '${nodeId}' not found in mesh`, refineStages };
@@ -4247,7 +4248,10 @@ export class DaemonCommandRouter {
4247
4248
  if (running) return { ...running, duplicate: true };
4248
4249
  const terminal = this.terminalRefineJobs.get(key);
4249
4250
 
4250
- const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh);
4251
+ // preferInline so inline-cache-only clone worktree nodes resolve — same
4252
+ // membership authority as clone_mesh_node / get_mesh. Without it refine reads
4253
+ // config-first and misses nodes that only live in the inline cache.
4254
+ const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
4251
4255
  const mesh = meshRecord?.mesh;
4252
4256
  const node = mesh?.nodes?.find((n: any) => n.id === nodeId || n.nodeId === nodeId);
4253
4257
  if (!node) return { success: false, error: `Node '${nodeId}' not found in mesh` };
@@ -5803,7 +5807,8 @@ export class DaemonCommandRouter {
5803
5807
  const ownerFailure = await this.requireMeshHostMutationOwner(meshId, args?.inlineMesh, 'node removal');
5804
5808
  if (ownerFailure) return ownerFailure;
5805
5809
  try {
5806
- const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh);
5810
+ // preferInline so inline-cache-only clone nodes resolve (matches owner check above).
5811
+ const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
5807
5812
  const mesh = meshRecord?.mesh;
5808
5813
  if (!mesh) return { success: false, error: 'Mesh not found' };
5809
5814
  const node = mesh?.nodes?.find((n: any) => n.id === nodeId || n.nodeId === nodeId);
@@ -5869,7 +5874,8 @@ export class DaemonCommandRouter {
5869
5874
  const meshId = typeof args?.meshId === 'string' ? args.meshId.trim() : '';
5870
5875
  const nodeId = typeof args?.nodeId === 'string' ? args.nodeId.trim() : '';
5871
5876
  if (!meshId || !nodeId) return { success: false, error: 'meshId and nodeId required' };
5872
- const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh);
5877
+ // preferInline: plan is the dry-run sibling of refine — clone nodes must resolve.
5878
+ const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
5873
5879
  const mesh = meshRecord?.mesh;
5874
5880
  const node = mesh?.nodes?.find((n: any) => n.id === nodeId || n.nodeId === nodeId);
5875
5881
  if (!node?.workspace) return { success: false, error: `Node '${nodeId}' workspace not found` };
@@ -5893,7 +5899,8 @@ export class DaemonCommandRouter {
5893
5899
  : undefined;
5894
5900
  let nodeDaemonId: string | undefined;
5895
5901
  if (meshId && nodeId) {
5896
- const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh);
5902
+ // preferInline so fast-forward can resolve inline-cache-only clone worktree nodes.
5903
+ const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
5897
5904
  const mesh = meshRecord?.mesh;
5898
5905
  const node = mesh?.nodes?.find((n: any) => n.id === nodeId || n.nodeId === nodeId);
5899
5906
  if (!workspace) {
@@ -5942,7 +5949,8 @@ export class DaemonCommandRouter {
5942
5949
  const nodeId = typeof args?.nodeId === 'string' ? args.nodeId.trim() : '';
5943
5950
  if (!meshId || !nodeId) return { success: false, error: 'meshId and nodeId required' };
5944
5951
  try {
5945
- const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh);
5952
+ // preferInline so removal can resolve inline-cache-only clone worktree nodes.
5953
+ const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
5946
5954
  const mesh = meshRecord?.mesh;
5947
5955
  const node = mesh?.nodes?.find((n: any) => n.id === nodeId || n.nodeId === nodeId);
5948
5956
 
@@ -6327,7 +6335,8 @@ export class DaemonCommandRouter {
6327
6335
  if (ownerFailure) return ownerFailure;
6328
6336
 
6329
6337
  try {
6330
- const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh);
6338
+ // preferInline so bootstrap-retry can resolve inline-cache-only clone worktree nodes.
6339
+ const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
6331
6340
  const mesh = meshRecord?.mesh;
6332
6341
  if (!mesh) return { success: false, error: 'Mesh not found' };
6333
6342