@adhdev/daemon-core 0.8.99 → 0.8.101

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
@@ -13281,7 +13281,14 @@ ${effect.notification.body || ""}`.trim();
13281
13281
  return this.provider.name;
13282
13282
  }
13283
13283
  shouldAutoApprove() {
13284
- return this.settings.autoApprove !== false;
13284
+ if (typeof this.settings.autoApprove === "boolean") {
13285
+ return this.settings.autoApprove;
13286
+ }
13287
+ const providerDefault = this.provider.settings?.autoApprove?.default;
13288
+ if (typeof providerDefault === "boolean") {
13289
+ return providerDefault;
13290
+ }
13291
+ return false;
13285
13292
  }
13286
13293
  recordAutoApproval(modalMessage, buttonLabel, now = Date.now()) {
13287
13294
  this.appendRuntimeSystemMessage(
@@ -19028,9 +19035,12 @@ function prepareSessionChatTailUpdate(input) {
19028
19035
  }
19029
19036
  function prepareSessionModalUpdate(input) {
19030
19037
  const { modalMessage, modalButtons } = normalizeSessionModalFields(input.activeModal);
19038
+ const status = normalizeManagedStatus(input.status, {
19039
+ activeModal: modalButtons.length > 0 ? { buttons: modalButtons } : null
19040
+ });
19031
19041
  const deliverySignature = buildSessionModalDeliverySignature({
19032
19042
  sessionId: input.sessionId,
19033
- status: input.status,
19043
+ status,
19034
19044
  ...input.title ? { title: input.title } : {},
19035
19045
  ...modalMessage ? { modalMessage } : {},
19036
19046
  ...modalButtons.length > 0 ? { modalButtons } : {}
@@ -19050,7 +19060,7 @@ function prepareSessionModalUpdate(input) {
19050
19060
  topic: "session.modal",
19051
19061
  key: input.key,
19052
19062
  sessionId: input.sessionId,
19053
- status: input.status,
19063
+ status,
19054
19064
  ...input.title ? { title: input.title } : {},
19055
19065
  ...modalMessage ? { modalMessage } : {},
19056
19066
  ...modalButtons.length > 0 ? { modalButtons } : {},