agentgui 1.0.731 → 1.0.732
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/package.json +1 -1
- package/scripts/copy-vendor.js +1 -1
- package/static/js/conversations.js +1 -1
- package/static/lib/webjsx.js +26 -0
package/package.json
CHANGED
package/scripts/copy-vendor.js
CHANGED
|
@@ -22,7 +22,7 @@ for (const [src, dest] of copies) {
|
|
|
22
22
|
// Build webjsx IIFE bundle from ESM dist files
|
|
23
23
|
const webjsxDist = path.join(root, 'node_modules/webjsx/dist');
|
|
24
24
|
if (fs.existsSync(webjsxDist)) {
|
|
25
|
-
const ORDER = ['constants', 'elementTags', 'utils', 'attributes', 'createDOMElement', 'createElement', 'applyDiff', 'types'];
|
|
25
|
+
const ORDER = ['constants', 'elementTags', 'utils', 'renderSuspension', 'attributes', 'createDOMElement', 'createElement', 'applyDiff', 'types'];
|
|
26
26
|
|
|
27
27
|
function stripModule(src) {
|
|
28
28
|
return src
|
|
@@ -156,7 +156,7 @@ class ConversationManager {
|
|
|
156
156
|
|
|
157
157
|
async fetchHomePath() {
|
|
158
158
|
try {
|
|
159
|
-
const res = await fetch(`${window.
|
|
159
|
+
const res = await fetch(`${window.__BASE_URL || '/gm'}/api/home`);
|
|
160
160
|
const data = await res.json();
|
|
161
161
|
this.folderBrowser.homePath = data.home || '~';
|
|
162
162
|
this.folderBrowser.cwdPath = data.cwd || null;
|
package/static/lib/webjsx.js
CHANGED
|
@@ -206,6 +206,32 @@ function getWebJSXChildNodeCache(element) {
|
|
|
206
206
|
return element.__webjsx_childNodes;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
// === renderSuspension.js ===
|
|
210
|
+
function definesRenderSuspension(el) {
|
|
211
|
+
return !!el.__webjsx_suspendRendering;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Executes a callback with render suspension handling.
|
|
215
|
+
* @param el Element that may have render suspension
|
|
216
|
+
* @param callback Function to execute during suspension
|
|
217
|
+
* @returns Result of the callback
|
|
218
|
+
*/
|
|
219
|
+
function withRenderSuspension(el, callback) {
|
|
220
|
+
const isRenderingSuspended = !!el
|
|
221
|
+
.__webjsx_suspendRendering;
|
|
222
|
+
if (isRenderingSuspended) {
|
|
223
|
+
el.__webjsx_suspendRendering();
|
|
224
|
+
}
|
|
225
|
+
try {
|
|
226
|
+
return callback();
|
|
227
|
+
}
|
|
228
|
+
finally {
|
|
229
|
+
if (isRenderingSuspended) {
|
|
230
|
+
el.__webjsx_resumeRendering();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
209
235
|
// === attributes.js ===
|
|
210
236
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
211
237
|
|