@adhdev/daemon-core 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/dist/index.mjs +23 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +21 -0
- package/src/providers/cli-provider-instance.ts +25 -2
package/dist/index.mjs
CHANGED
|
@@ -30843,8 +30843,17 @@ var CliProviderInstance = class {
|
|
|
30843
30843
|
};
|
|
30844
30844
|
}
|
|
30845
30845
|
completionFinalSummary(parsedMessages) {
|
|
30846
|
-
const
|
|
30847
|
-
|
|
30846
|
+
const adapterOwnsMessagesElsewhere = this.adapter?.chatMessagesOwnedExternally === true;
|
|
30847
|
+
const parsedSummary = extractFinalSummaryFromMessages(
|
|
30848
|
+
this.completionHasFinalAssistantMessage(parsedMessages) ? Array.isArray(parsedMessages) ? parsedMessages : [] : []
|
|
30849
|
+
);
|
|
30850
|
+
if (adapterOwnsMessagesElsewhere) {
|
|
30851
|
+
const externalMessages = this.readExternalCompletionMessages();
|
|
30852
|
+
const externalSummary = externalMessages ? extractFinalSummaryFromMessages(externalMessages) : "";
|
|
30853
|
+
if (externalSummary) return externalSummary;
|
|
30854
|
+
return parsedSummary || void 0;
|
|
30855
|
+
}
|
|
30856
|
+
return parsedSummary || void 0;
|
|
30848
30857
|
}
|
|
30849
30858
|
buildCompletedFinalizationDiagnostic(args) {
|
|
30850
30859
|
let parsed = null;
|
|
@@ -42190,6 +42199,18 @@ ${tail}` : ""
|
|
|
42190
42199
|
return { success: true };
|
|
42191
42200
|
}
|
|
42192
42201
|
case "launch_cli": {
|
|
42202
|
+
{
|
|
42203
|
+
const launchSettings = args?.settings && typeof args.settings === "object" ? args.settings : void 0;
|
|
42204
|
+
const isMeshWorkerLaunch = !!launchSettings && (readStringValue(launchSettings.meshNodeFor) || launchSettings.launchedByCoordinator === true);
|
|
42205
|
+
const hasCoordinatorDaemonId = !!launchSettings && !!readStringValue(launchSettings.meshCoordinatorDaemonId);
|
|
42206
|
+
if (launchSettings && isMeshWorkerLaunch && !hasCoordinatorDaemonId) {
|
|
42207
|
+
try {
|
|
42208
|
+
const localDaemonId = readStringValue(loadConfig().machineId);
|
|
42209
|
+
if (localDaemonId) launchSettings.meshCoordinatorDaemonId = localDaemonId;
|
|
42210
|
+
} catch {
|
|
42211
|
+
}
|
|
42212
|
+
}
|
|
42213
|
+
}
|
|
42193
42214
|
const launchResult = await this.deps.cliManager.handleCliCommand(cmd, args);
|
|
42194
42215
|
const meshNodeId = readStringValue(args?.settings?.meshNodeId);
|
|
42195
42216
|
const meshId = readStringValue(args?.settings?.meshNodeFor);
|