@runtypelabs/persona 4.11.0 → 4.12.0

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.d.cts CHANGED
@@ -4806,6 +4806,8 @@ type AgentWidgetToolCallConfig = {
4806
4806
  }) => HTMLElement | string | null;
4807
4807
  /**
4808
4808
  * Override the summary content for grouped consecutive tool-call containers.
4809
+ * In `groupedMode: "summary"`, the summary owns the visible row starting
4810
+ * with the first tool so its DOM stays stable as more calls arrive.
4809
4811
  * Return `null` to fall back to the built-in `Called [x] tools` summary.
4810
4812
  */
4811
4813
  renderGroupedSummary?: (context: {
@@ -10270,6 +10272,15 @@ type CodeGeneratorOptions = {
10270
10272
  * @default "body"
10271
10273
  */
10272
10274
  target?: string;
10275
+ /**
10276
+ * Base URL of the directory holding the widget assets (install.global.js,
10277
+ * index.global.js, widget.css) for the script formats (script-installer,
10278
+ * script-manual, script-advanced). Pass a first-party base such as
10279
+ * "https://cdn.runtype.com/persona/latest" when the embedding page's CSP
10280
+ * does not allow third-party CDNs. A trailing slash is tolerated.
10281
+ * @default the jsDelivr dist directory pinned to this package version
10282
+ */
10283
+ cdnBase?: string;
10273
10284
  };
10274
10285
  declare function generateCodeSnippet(config: any, format?: CodeFormat, options?: CodeGeneratorOptions): string;
10275
10286
 
package/dist/index.d.ts CHANGED
@@ -4806,6 +4806,8 @@ type AgentWidgetToolCallConfig = {
4806
4806
  }) => HTMLElement | string | null;
4807
4807
  /**
4808
4808
  * Override the summary content for grouped consecutive tool-call containers.
4809
+ * In `groupedMode: "summary"`, the summary owns the visible row starting
4810
+ * with the first tool so its DOM stays stable as more calls arrive.
4809
4811
  * Return `null` to fall back to the built-in `Called [x] tools` summary.
4810
4812
  */
4811
4813
  renderGroupedSummary?: (context: {
@@ -10270,6 +10272,15 @@ type CodeGeneratorOptions = {
10270
10272
  * @default "body"
10271
10273
  */
10272
10274
  target?: string;
10275
+ /**
10276
+ * Base URL of the directory holding the widget assets (install.global.js,
10277
+ * index.global.js, widget.css) for the script formats (script-installer,
10278
+ * script-manual, script-advanced). Pass a first-party base such as
10279
+ * "https://cdn.runtype.com/persona/latest" when the embedding page's CSP
10280
+ * does not allow third-party CDNs. A trailing slash is tolerated.
10281
+ * @default the jsDelivr dist directory pinned to this package version
10282
+ */
10283
+ cdnBase?: string;
10273
10284
  };
10274
10285
  declare function generateCodeSnippet(config: any, format?: CodeFormat, options?: CodeGeneratorOptions): string;
10275
10286