@standardagents/builder 0.9.3 → 0.9.4
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/built-in-routes.js +1 -1
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/assets/index.css +1 -1
- package/dist/client/assets/{json.worker-C21G4-GD.js → json.worker-B3O9ZXir.js} +1 -6
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +19 -19
- package/dist/client/monaco.js +52 -504
- package/dist/client/vendor.js +12 -1
- package/dist/client/vue.js +1 -143
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +18 -0
- package/dist/plugin.js.map +1 -1
- package/dist/rou3.js +1 -1
- package/dist/rou3.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -6854,6 +6854,24 @@ export class DurableAgentBuilder extends _BaseDurableAgentBuilder {
|
|
|
6854
6854
|
next();
|
|
6855
6855
|
return;
|
|
6856
6856
|
}
|
|
6857
|
+
const uiDevServer = process.env.UI_DEV_SERVER;
|
|
6858
|
+
if (uiDevServer && !pathWithoutMount.startsWith("/api/")) {
|
|
6859
|
+
const targetUrl = `${uiDevServer}${pathWithoutMount}`;
|
|
6860
|
+
try {
|
|
6861
|
+
const proxyRes = await fetch(targetUrl);
|
|
6862
|
+
res.statusCode = proxyRes.status;
|
|
6863
|
+
proxyRes.headers.forEach((value, key) => {
|
|
6864
|
+
if (!["content-encoding", "transfer-encoding"].includes(key.toLowerCase())) {
|
|
6865
|
+
res.setHeader(key, value);
|
|
6866
|
+
}
|
|
6867
|
+
});
|
|
6868
|
+
const body = await proxyRes.arrayBuffer();
|
|
6869
|
+
res.end(Buffer.from(body));
|
|
6870
|
+
return;
|
|
6871
|
+
} catch (error) {
|
|
6872
|
+
console.error("[agentbuilder] Failed to proxy to UI dev server:", error);
|
|
6873
|
+
}
|
|
6874
|
+
}
|
|
6857
6875
|
const isStaticAsset = pathWithoutMount.startsWith("/assets/") || pathWithoutMount.startsWith("/vendor.js") || pathWithoutMount.startsWith("/vue.js") || pathWithoutMount.startsWith("/monaco.js") || pathWithoutMount.startsWith("/index.js") || pathWithoutMount.startsWith("/index.css") || pathWithoutMount.match(/\.(js|css|png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot|ico)$/);
|
|
6858
6876
|
{
|
|
6859
6877
|
const currentDir = path3.dirname(fileURLToPath(import.meta.url));
|