@builder.io/ai-utils 0.0.31 → 0.0.33

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/events.d.ts CHANGED
@@ -97,7 +97,7 @@ export interface ContentUpdateEvent {
97
97
  type: "assistant.content.update";
98
98
  data: ContentUpdatePatch[];
99
99
  }
100
- export type ContentUpdatePatch = ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch | ContentDeletePatch;
100
+ export type ContentUpdatePatch = ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch | ContentDeletePatch | ContentSetStorePatch;
101
101
  export interface NodeData {
102
102
  /**
103
103
  * When dealing with column nodes we need to store the column index so
@@ -138,6 +138,9 @@ export interface ContentSetChildrenPatch extends ContentPatchBase {
138
138
  export interface ContentDeletePatch extends ContentPatchBase {
139
139
  type: "delete";
140
140
  }
141
+ export interface ContentSetStorePatch extends ContentPatchBase {
142
+ type: "store";
143
+ }
141
144
  export interface ContentCompleteEvent {
142
145
  type: "assistant.content.complete";
143
146
  data: ContentComplete;
@@ -60,6 +60,15 @@ export interface AssistantMessageParam {
60
60
  arguments: any;
61
61
  };
62
62
  id?: string;
63
+ /**
64
+ * A summary of the patches which the assistant has made.
65
+ * Useful for genai.
66
+ */
67
+ patches?: AssistantPatch[];
68
+ }
69
+ export interface AssistantPatch {
70
+ id: string;
71
+ type: string;
63
72
  }
64
73
  export interface SystemMessage extends SystemMessageParam {
65
74
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",