@yeaft/webchat-agent 1.0.542 → 1.0.544
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/connection/message-router.js +14 -1
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +155 -103
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/workbench/file-reference-resolver.js +14 -4
|
@@ -108,7 +108,14 @@ export async function applyWorkCenterFeatureUpdate(msg, dependencies = {}) {
|
|
|
108
108
|
// Read inside the transition queue so the previous request is observable.
|
|
109
109
|
const previous = getSettings(yeaftDir);
|
|
110
110
|
const persisted = update(msg.settings || {}, yeaftDir);
|
|
111
|
-
if (persisted.error)
|
|
111
|
+
if (persisted.error) {
|
|
112
|
+
return {
|
|
113
|
+
...previous,
|
|
114
|
+
error: persisted.error,
|
|
115
|
+
persisted: false,
|
|
116
|
+
effective: dependencies.runtimeEnabled ?? ctx.CONFIG?.workCenterEnabled === true,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
112
119
|
|
|
113
120
|
bridge.setWorkCenterFeatureEnabled(persisted.enabled);
|
|
114
121
|
try {
|
|
@@ -140,7 +147,13 @@ export async function applyWorkCenterFeatureUpdate(msg, dependencies = {}) {
|
|
|
140
147
|
try { await refreshCapabilities?.(); } catch { /* original transition error remains authoritative */ }
|
|
141
148
|
} else {
|
|
142
149
|
bridge.setWorkCenterFeatureEnabled(false);
|
|
150
|
+
try {
|
|
151
|
+
await bridge.shutdownWorkCenter();
|
|
152
|
+
} catch (shutdownError) {
|
|
153
|
+
rollbackRuntimeError = shutdownError?.message || String(shutdownError);
|
|
154
|
+
}
|
|
143
155
|
if (ctx.CONFIG) ctx.CONFIG.workCenterEnabled = false;
|
|
156
|
+
try { await refreshCapabilities?.(); } catch { /* original transition error remains authoritative */ }
|
|
144
157
|
}
|
|
145
158
|
const effective = restored && !rollbackRuntimeError ? previous.enabled === true : false;
|
|
146
159
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.544"}
|