@adhdev/daemon-core 0.8.99 → 0.8.100

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 CHANGED
@@ -13432,7 +13432,14 @@ ${effect.notification.body || ""}`.trim();
13432
13432
  return this.provider.name;
13433
13433
  }
13434
13434
  shouldAutoApprove() {
13435
- return this.settings.autoApprove !== false;
13435
+ if (typeof this.settings.autoApprove === "boolean") {
13436
+ return this.settings.autoApprove;
13437
+ }
13438
+ const providerDefault = this.provider.settings?.autoApprove?.default;
13439
+ if (typeof providerDefault === "boolean") {
13440
+ return providerDefault;
13441
+ }
13442
+ return false;
13436
13443
  }
13437
13444
  recordAutoApproval(modalMessage, buttonLabel, now = Date.now()) {
13438
13445
  this.appendRuntimeSystemMessage(
@@ -19174,9 +19181,12 @@ function prepareSessionChatTailUpdate(input) {
19174
19181
  }
19175
19182
  function prepareSessionModalUpdate(input) {
19176
19183
  const { modalMessage, modalButtons } = normalizeSessionModalFields(input.activeModal);
19184
+ const status = normalizeManagedStatus(input.status, {
19185
+ activeModal: modalButtons.length > 0 ? { buttons: modalButtons } : null
19186
+ });
19177
19187
  const deliverySignature = buildSessionModalDeliverySignature({
19178
19188
  sessionId: input.sessionId,
19179
- status: input.status,
19189
+ status,
19180
19190
  ...input.title ? { title: input.title } : {},
19181
19191
  ...modalMessage ? { modalMessage } : {},
19182
19192
  ...modalButtons.length > 0 ? { modalButtons } : {}
@@ -19196,7 +19206,7 @@ function prepareSessionModalUpdate(input) {
19196
19206
  topic: "session.modal",
19197
19207
  key: input.key,
19198
19208
  sessionId: input.sessionId,
19199
- status: input.status,
19209
+ status,
19200
19210
  ...input.title ? { title: input.title } : {},
19201
19211
  ...modalMessage ? { modalMessage } : {},
19202
19212
  ...modalButtons.length > 0 ? { modalButtons } : {},