@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.mjs CHANGED
@@ -24532,7 +24532,10 @@ async function handleReadChat(h, args) {
24532
24532
  let selectedTranscriptAuthority = transcriptAuthority;
24533
24533
  let selectedCoverage = coverage;
24534
24534
  let selectedStatus = returnedStatus;
24535
- const sessionWorkspace = typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : typeof adapter.workingDir === "string" ? adapter.workingDir : void 0;
24535
+ const _targetSidForWs = typeof args?.targetSessionId === "string" ? args.targetSessionId.trim() : "";
24536
+ const _registryWs = _targetSidForWs ? h.ctx?.sessionRegistry?.get?.(_targetSidForWs)?.workspace : void 0;
24537
+ const _currentSessionWs = typeof h.currentSession?.workspace === "string" ? h.currentSession.workspace : typeof adapter.workingDir === "string" ? adapter.workingDir : void 0;
24538
+ const sessionWorkspace = _targetSidForWs ? typeof _registryWs === "string" ? _registryWs : (typeof args?.workspace === "string" ? args.workspace : void 0) ?? _currentSessionWs : _currentSessionWs;
24536
24539
  const intendedWorkspace = typeof args?.workspace === "string" ? args.workspace : void 0;
24537
24540
  const supportsNative = supportsCliNativeTranscript(providerType, provider) && isNativeSourceCanonicalHistory(provider?.nativeHistory);
24538
24541
  const agentStr = provider?.type || args?.agentType || getCurrentProviderType(h, adapter.cliType);
@@ -30505,7 +30508,8 @@ var CliProviderInstance = class {
30505
30508
  ...this.settings,
30506
30509
  meshNodeFor: assignment.meshId,
30507
30510
  ...assignment.nodeId ? { meshNodeId: assignment.nodeId } : {},
30508
- ...assignment.taskId ? { meshActiveTaskId: assignment.taskId } : {}
30511
+ ...assignment.taskId ? { meshActiveTaskId: assignment.taskId } : {},
30512
+ ...assignment.coordinatorDaemonId ? { meshCoordinatorDaemonId: assignment.coordinatorDaemonId } : {}
30509
30513
  };
30510
30514
  this.adapter.updateRuntimeSettings?.(this.settings);
30511
30515
  }
@@ -33980,7 +33984,8 @@ Run 'adhdev doctor' for detailed diagnostics.`
33980
33984
  this.deps.getInstanceManager()?.attachMeshAssignmentToInstance(targetInstanceId, {
33981
33985
  meshId: meshContext.meshId,
33982
33986
  ...typeof meshContext.nodeId === "string" && meshContext.nodeId ? { nodeId: meshContext.nodeId } : {},
33983
- ...typeof meshContext.taskId === "string" && meshContext.taskId ? { taskId: meshContext.taskId } : {}
33987
+ ...typeof meshContext.taskId === "string" && meshContext.taskId ? { taskId: meshContext.taskId } : {},
33988
+ ...typeof meshContext.coordinatorDaemonId === "string" && meshContext.coordinatorDaemonId ? { coordinatorDaemonId: meshContext.coordinatorDaemonId } : {}
33984
33989
  });
33985
33990
  } catch {
33986
33991
  }
@@ -46507,7 +46512,7 @@ var ProviderInstanceManager = class {
46507
46512
  inst.attachMeshAssignment(assignment);
46508
46513
  try {
46509
46514
  const { LOG: LOG2 } = (init_logger(), __toCommonJS(logger_exports));
46510
- LOG2.info?.("MeshDispatch", `stamped mesh assignment on ${instanceId}: mesh=${assignment.meshId} node=${assignment.nodeId || ""} task=${assignment.taskId || ""}`);
46515
+ LOG2.info?.("MeshDispatch", `stamped mesh assignment on ${instanceId}: mesh=${assignment.meshId} node=${assignment.nodeId || ""} task=${assignment.taskId || ""} coordinator=${assignment.coordinatorDaemonId || ""}`);
46511
46516
  } catch {
46512
46517
  }
46513
46518
  return true;