@adhdev/daemon-standalone 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
@@ -9250,7 +9250,7 @@ var require_dist = __commonJS({
9250
9250
  };
9251
9251
  var import_crypto3 = require("crypto");
9252
9252
  var DEFAULT_SESSION_HOST_COLS = 80;
9253
- var DEFAULT_SESSION_HOST_ROWS = 48;
9253
+ var DEFAULT_SESSION_HOST_ROWS = 32;
9254
9254
  function normalizeSessionHostDimension(value, fallback) {
9255
9255
  if (typeof value !== "number" || !Number.isFinite(value)) return fallback;
9256
9256
  const rounded = Math.floor(value);
@@ -41190,7 +41190,14 @@ ${effect.notification.body || ""}`.trim();
41190
41190
  return this.provider.name;
41191
41191
  }
41192
41192
  shouldAutoApprove() {
41193
- return this.settings.autoApprove !== false;
41193
+ if (typeof this.settings.autoApprove === "boolean") {
41194
+ return this.settings.autoApprove;
41195
+ }
41196
+ const providerDefault = this.provider.settings?.autoApprove?.default;
41197
+ if (typeof providerDefault === "boolean") {
41198
+ return providerDefault;
41199
+ }
41200
+ return false;
41194
41201
  }
41195
41202
  recordAutoApproval(modalMessage, buttonLabel, now = Date.now()) {
41196
41203
  this.appendRuntimeSystemMessage(
@@ -46894,9 +46901,12 @@ Run 'adhdev doctor' for detailed diagnostics.`
46894
46901
  }
46895
46902
  function prepareSessionModalUpdate2(input) {
46896
46903
  const { modalMessage, modalButtons } = normalizeSessionModalFields(input.activeModal);
46904
+ const status = normalizeManagedStatus(input.status, {
46905
+ activeModal: modalButtons.length > 0 ? { buttons: modalButtons } : null
46906
+ });
46897
46907
  const deliverySignature = buildSessionModalDeliverySignature({
46898
46908
  sessionId: input.sessionId,
46899
- status: input.status,
46909
+ status,
46900
46910
  ...input.title ? { title: input.title } : {},
46901
46911
  ...modalMessage ? { modalMessage } : {},
46902
46912
  ...modalButtons.length > 0 ? { modalButtons } : {}
@@ -46916,7 +46926,7 @@ Run 'adhdev doctor' for detailed diagnostics.`
46916
46926
  topic: "session.modal",
46917
46927
  key: input.key,
46918
46928
  sessionId: input.sessionId,
46919
- status: input.status,
46929
+ status,
46920
46930
  ...input.title ? { title: input.title } : {},
46921
46931
  ...modalMessage ? { modalMessage } : {},
46922
46932
  ...modalButtons.length > 0 ? { modalButtons } : {},