@adhdev/daemon-standalone 0.9.82-rc.254 → 0.9.82-rc.256
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 +23 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60772,8 +60772,17 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
60772
60772
|
};
|
|
60773
60773
|
}
|
|
60774
60774
|
completionFinalSummary(parsedMessages) {
|
|
60775
|
-
const
|
|
60776
|
-
|
|
60775
|
+
const adapterOwnsMessagesElsewhere = this.adapter?.chatMessagesOwnedExternally === true;
|
|
60776
|
+
const parsedSummary = extractFinalSummaryFromMessages(
|
|
60777
|
+
this.completionHasFinalAssistantMessage(parsedMessages) ? Array.isArray(parsedMessages) ? parsedMessages : [] : []
|
|
60778
|
+
);
|
|
60779
|
+
if (adapterOwnsMessagesElsewhere) {
|
|
60780
|
+
const externalMessages = this.readExternalCompletionMessages();
|
|
60781
|
+
const externalSummary = externalMessages ? extractFinalSummaryFromMessages(externalMessages) : "";
|
|
60782
|
+
if (externalSummary) return externalSummary;
|
|
60783
|
+
return parsedSummary || void 0;
|
|
60784
|
+
}
|
|
60785
|
+
return parsedSummary || void 0;
|
|
60777
60786
|
}
|
|
60778
60787
|
buildCompletedFinalizationDiagnostic(args) {
|
|
60779
60788
|
let parsed = null;
|
|
@@ -72064,6 +72073,18 @@ ${tail}` : ""
|
|
|
72064
72073
|
return { success: true };
|
|
72065
72074
|
}
|
|
72066
72075
|
case "launch_cli": {
|
|
72076
|
+
{
|
|
72077
|
+
const launchSettings = args?.settings && typeof args.settings === "object" ? args.settings : void 0;
|
|
72078
|
+
const isMeshWorkerLaunch = !!launchSettings && (readStringValue(launchSettings.meshNodeFor) || launchSettings.launchedByCoordinator === true);
|
|
72079
|
+
const hasCoordinatorDaemonId = !!launchSettings && !!readStringValue(launchSettings.meshCoordinatorDaemonId);
|
|
72080
|
+
if (launchSettings && isMeshWorkerLaunch && !hasCoordinatorDaemonId) {
|
|
72081
|
+
try {
|
|
72082
|
+
const localDaemonId = readStringValue(loadConfig2().machineId);
|
|
72083
|
+
if (localDaemonId) launchSettings.meshCoordinatorDaemonId = localDaemonId;
|
|
72084
|
+
} catch {
|
|
72085
|
+
}
|
|
72086
|
+
}
|
|
72087
|
+
}
|
|
72067
72088
|
const launchResult = await this.deps.cliManager.handleCliCommand(cmd, args);
|
|
72068
72089
|
const meshNodeId = readStringValue(args?.settings?.meshNodeId);
|
|
72069
72090
|
const meshId = readStringValue(args?.settings?.meshNodeFor);
|