@standardagents/builder 0.8.2 → 0.8.3

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/plugin.js CHANGED
@@ -2281,8 +2281,8 @@ async function serveUI(pathname, env) {
2281
2281
  // Transform HTML to use configured mount point
2282
2282
  if (response.status === 200) {
2283
2283
  const html = await response.text();
2284
- // Replace default /agentbuilder/ paths with configured mount point
2285
- const modifiedHtml = html.replace(/\\/agentbuilder\\//g, \`\${MOUNT_POINT}/\`);
2284
+ // Replace default /agents/ paths with configured mount point
2285
+ const modifiedHtml = html.replace(/\\/agents\\//g, \`\${MOUNT_POINT}/\`);
2286
2286
  return new Response(modifiedHtml, {
2287
2287
  headers: {
2288
2288
  "Content-Type": "text/html; charset=utf-8",
@@ -3077,7 +3077,7 @@ export class DurableAgentBuilder extends _BaseDurableAgentBuilder {
3077
3077
  const configScript = `<script>window.__AGENTBUILDER_CONFIG__ = { mountPoint: "${mountPoint}" };</script>`;
3078
3078
  let htmlContent = content.toString();
3079
3079
  const assetPrefix = mountPoint === "/" ? "/" : `${mountPoint}/`;
3080
- htmlContent = htmlContent.replace(/\/agentbuilder\//g, assetPrefix);
3080
+ htmlContent = htmlContent.replace(/\/agents\//g, assetPrefix);
3081
3081
  htmlContent = htmlContent.replace("</head>", `${configScript}</head>`);
3082
3082
  content = Buffer.from(htmlContent);
3083
3083
  }
@@ -3136,7 +3136,7 @@ export class DurableAgentBuilder extends _BaseDurableAgentBuilder {
3136
3136
  const configScript = `<script>window.__AGENTBUILDER_CONFIG__ = { mountPoint: "${mountPoint}" };</script>`;
3137
3137
  let htmlContent = content.toString();
3138
3138
  const assetPrefix = mountPoint === "/" ? "/" : `${mountPoint}/`;
3139
- htmlContent = htmlContent.replace(/\/agentbuilder\//g, assetPrefix);
3139
+ htmlContent = htmlContent.replace(/\/agents\//g, assetPrefix);
3140
3140
  htmlContent = htmlContent.replace("</head>", `${configScript}</head>`);
3141
3141
  content = Buffer.from(htmlContent);
3142
3142
  }