vanilla-agent 1.11.0 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-agent",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Themeable, plugable streaming agent widget for websites, in plain JS with support for voice input and reasoning / tool output.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/index.ts CHANGED
@@ -59,6 +59,8 @@ export {
59
59
  createRegexJsonParser,
60
60
  createXmlParser
61
61
  } from "./utils/formatting";
62
+ export { generateCodeSnippet } from "./utils/code-generators";
63
+ export type { CodeFormat } from "./utils/code-generators";
62
64
  export type { AgentWidgetInitHandle };
63
65
 
64
66
  // Plugin system exports
@@ -104,7 +104,7 @@ export const initAgentWidget = (
104
104
 
105
105
  target.appendChild(host);
106
106
 
107
- const useShadow = options.useShadowDom !== false;
107
+ const useShadow = options.useShadowDom === true;
108
108
  let mount: HTMLElement;
109
109
  let root: ShadowRoot | HTMLElement;
110
110