@builder.io/ai-utils 0.0.4 → 0.0.5

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.
@@ -1,7 +1,7 @@
1
- import type { BuilderElement, Component } from "@builder.io/sdk";
1
+ import type { BuilderContent, BuilderElement, Component } from "@builder.io/sdk";
2
2
  import type { MessageParam } from "./messages";
3
3
  import type { BuilderModel } from "./events";
4
- export type { BuilderElement, Component };
4
+ export type { BuilderContent, BuilderElement, Component };
5
5
  export interface CompletionOptions {
6
6
  /**
7
7
  * How this assistant is being used. For example, "content-editor"
@@ -42,8 +42,13 @@ export interface CompletionOptions {
42
42
  builderDesignTokens?: Record<string, string>;
43
43
  /**
44
44
  * Builder element.
45
+ * @deprecated Use builderContent instead
45
46
  */
46
47
  builderElement?: BuilderElement;
48
+ /**
49
+ * Top level Builder content. The data.blocks array contains the BuilderElement.
50
+ */
51
+ builderContent?: BuilderContent;
47
52
  /**
48
53
  * Builder model.
49
54
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",