@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.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -3
- package/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/defaults.d.mts +1 -1
- package/node_modules/@adhdev/session-host-core/dist/defaults.d.ts +1 -1
- package/node_modules/@adhdev/session-host-core/dist/defaults.js +1 -1
- package/node_modules/@adhdev/session-host-core/dist/defaults.js.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/defaults.mjs +1 -1
- package/node_modules/@adhdev/session-host-core/dist/defaults.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/index.js +1 -1
- package/node_modules/@adhdev/session-host-core/dist/index.js.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/index.mjs +1 -1
- package/node_modules/@adhdev/session-host-core/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/chat/subscription-updates.ts +6 -2
- package/src/providers/cli-provider-instance.ts +8 -1
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
|
-
|
|
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
|
|
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
|
|
19063
|
+
status,
|
|
19054
19064
|
...input.title ? { title: input.title } : {},
|
|
19055
19065
|
...modalMessage ? { modalMessage } : {},
|
|
19056
19066
|
...modalButtons.length > 0 ? { modalButtons } : {},
|