@builder.io/ai-utils 0.0.35 → 0.0.37

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.
Files changed (2) hide show
  1. package/dist/events.d.ts +12 -1
  2. package/package.json +1 -1
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 | ContentSetStorePatch | ContentSetMountPatch;
100
+ export type ContentUpdatePatch = ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch | ContentDeletePatch | ContentSetStorePatch | ContentSetMountPatch | ContentMovePatch | ContentMoveAfterPatch | ContentMoveBeforePatch;
101
101
  export interface NodeData {
102
102
  /**
103
103
  * When dealing with column nodes we need to store the column index so
@@ -144,6 +144,15 @@ export interface ContentSetStorePatch extends ContentPatchBase {
144
144
  export interface ContentSetMountPatch extends ContentPatchBase {
145
145
  type: "mount";
146
146
  }
147
+ export interface ContentMovePatch extends ContentPatchBase {
148
+ type: "move";
149
+ }
150
+ export interface ContentMoveAfterPatch extends ContentPatchBase {
151
+ type: "move_after";
152
+ }
153
+ export interface ContentMoveBeforePatch extends ContentPatchBase {
154
+ type: "move_before";
155
+ }
147
156
  export interface AssistantStatsEvent {
148
157
  type: "assistant.stats";
149
158
  data: AssistantStats;
@@ -249,6 +258,7 @@ export interface ThreadMessageFeedback {
249
258
  */
250
259
  messageId: string;
251
260
  userId: string;
261
+ commitId?: string;
252
262
  feedbackText: string;
253
263
  thread: Thread;
254
264
  platformId: string;
@@ -279,6 +289,7 @@ export interface ThreadMessageCompletedEvent {
279
289
  export interface ThreadMessageCompleted {
280
290
  platformId: string;
281
291
  threadId: string;
292
+ commitId?: string;
282
293
  message: AssistantMessage;
283
294
  }
284
295
  export interface ThreadRunRequiresActionEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",