@adhdev/daemon-core 0.9.82-rc.229 → 0.9.82-rc.230

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/index.js CHANGED
@@ -24864,7 +24864,10 @@ async function handleReadChat(h, args) {
24864
24864
  let selectedTranscriptAuthority = transcriptAuthority;
24865
24865
  let selectedCoverage = coverage;
24866
24866
  let selectedStatus = returnedStatus;
24867
- const sessionWorkspace = typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : typeof adapter.workingDir === "string" ? adapter.workingDir : void 0;
24867
+ const _targetSidForWs = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
24868
+ const _registryWs = _targetSidForWs ? h.ctx?.sessionRegistry?.get?.(_targetSidForWs)?.workspace : void 0;
24869
+ const _currentSessionWs = typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : typeof adapter.workingDir === "string" ? adapter.workingDir : void 0;
24870
+ const sessionWorkspace = _targetSidForWs ? typeof _registryWs === "string" ? _registryWs : (typeof args?.workspace === "string" ? args.workspace : void 0) ?? _currentSessionWs : _currentSessionWs;
24868
24871
  const intendedWorkspace = typeof args?.workspace === "string" ? args.workspace : void 0;
24869
24872
  const supportsNative = supportsCliNativeTranscript(providerType, provider) && isNativeSourceCanonicalHistory(provider?.nativeHistory);
24870
24873
  const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h, adapter.cliType);
@@ -30837,7 +30840,8 @@ var CliProviderInstance = class {
30837
30840
  ...this.settings,
30838
30841
  meshNodeFor: assignment.meshId,
30839
30842
  ...assignment.nodeId ? { meshNodeId: assignment.nodeId } : {},
30840
- ...assignment.taskId ? { meshActiveTaskId: assignment.taskId } : {}
30843
+ ...assignment.taskId ? { meshActiveTaskId: assignment.taskId } : {},
30844
+ ...assignment.coordinatorDaemonId ? { meshCoordinatorDaemonId: assignment.coordinatorDaemonId } : {}
30841
30845
  };
30842
30846
  this.adapter.updateRuntimeSettings?.(this.settings);
30843
30847
  }
@@ -34307,7 +34311,8 @@ Run 'adhdev doctor' for detailed diagnostics.`
34307
34311
  this.deps.getInstanceManager()?.attachMeshAssignmentToInstance(targetInstanceId, {
34308
34312
  meshId: meshContext.meshId,
34309
34313
  ...typeof meshContext.nodeId === "string" && meshContext.nodeId ? { nodeId: meshContext.nodeId } : {},
34310
- ...typeof meshContext.taskId === "string" && meshContext.taskId ? { taskId: meshContext.taskId } : {}
34314
+ ...typeof meshContext.taskId === "string" && meshContext.taskId ? { taskId: meshContext.taskId } : {},
34315
+ ...typeof meshContext.coordinatorDaemonId === "string" && meshContext.coordinatorDaemonId ? { coordinatorDaemonId: meshContext.coordinatorDaemonId } : {}
34311
34316
  });
34312
34317
  } catch {
34313
34318
  }
@@ -46834,7 +46839,7 @@ var ProviderInstanceManager = class {
46834
46839
  inst.attachMeshAssignment(assignment);
46835
46840
  try {
46836
46841
  const { LOG: LOG2 } = (init_logger(), __toCommonJS(logger_exports));
46837
- LOG2.info?.("MeshDispatch", `stamped mesh assignment on ${instanceId}: mesh=${assignment.meshId} node=${assignment.nodeId || ""} task=${assignment.taskId || ""}`);
46842
+ LOG2.info?.("MeshDispatch", `stamped mesh assignment on ${instanceId}: mesh=${assignment.meshId} node=${assignment.nodeId || ""} task=${assignment.taskId || ""} coordinator=${assignment.coordinatorDaemonId || ""}`);
46838
46843
  } catch {
46839
46844
  }
46840
46845
  return true;