@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.js
CHANGED
|
@@ -31175,8 +31175,17 @@ var CliProviderInstance = class {
|
|
|
31175
31175
|
};
|
|
31176
31176
|
}
|
|
31177
31177
|
completionFinalSummary(parsedMessages) {
|
|
31178
|
-
const
|
|
31179
|
-
|
|
31178
|
+
const adapterOwnsMessagesElsewhere = this.adapter?.chatMessagesOwnedExternally === true;
|
|
31179
|
+
const parsedSummary = extractFinalSummaryFromMessages(
|
|
31180
|
+
this.completionHasFinalAssistantMessage(parsedMessages) ? Array.isArray(parsedMessages) ? parsedMessages : [] : []
|
|
31181
|
+
);
|
|
31182
|
+
if (adapterOwnsMessagesElsewhere) {
|
|
31183
|
+
const externalMessages = this.readExternalCompletionMessages();
|
|
31184
|
+
const externalSummary = externalMessages ? extractFinalSummaryFromMessages(externalMessages) : "";
|
|
31185
|
+
if (externalSummary) return externalSummary;
|
|
31186
|
+
return parsedSummary || void 0;
|
|
31187
|
+
}
|
|
31188
|
+
return parsedSummary || void 0;
|
|
31180
31189
|
}
|
|
31181
31190
|
buildCompletedFinalizationDiagnostic(args) {
|
|
31182
31191
|
let parsed = null;
|
|
@@ -42517,6 +42526,18 @@ ${tail}` : ""
|
|
|
42517
42526
|
return { success: true };
|
|
42518
42527
|
}
|
|
42519
42528
|
case "launch_cli": {
|
|
42529
|
+
{
|
|
42530
|
+
const launchSettings = args?.settings && typeof args.settings === "object" ? args.settings : void 0;
|
|
42531
|
+
const isMeshWorkerLaunch = !!launchSettings && (readStringValue(launchSettings.meshNodeFor) || launchSettings.launchedByCoordinator === true);
|
|
42532
|
+
const hasCoordinatorDaemonId = !!launchSettings && !!readStringValue(launchSettings.meshCoordinatorDaemonId);
|
|
42533
|
+
if (launchSettings && isMeshWorkerLaunch && !hasCoordinatorDaemonId) {
|
|
42534
|
+
try {
|
|
42535
|
+
const localDaemonId = readStringValue(loadConfig().machineId);
|
|
42536
|
+
if (localDaemonId) launchSettings.meshCoordinatorDaemonId = localDaemonId;
|
|
42537
|
+
} catch {
|
|
42538
|
+
}
|
|
42539
|
+
}
|
|
42540
|
+
}
|
|
42520
42541
|
const launchResult = await this.deps.cliManager.handleCliCommand(cmd, args);
|
|
42521
42542
|
const meshNodeId = readStringValue(args?.settings?.meshNodeId);
|
|
42522
42543
|
const meshId = readStringValue(args?.settings?.meshNodeFor);
|