@builder.io/ai-utils 0.79.3 → 0.80.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": "@builder.io/ai-utils",
3
- "version": "0.79.3",
3
+ "version": "0.80.0",
4
4
  "description": "Builder.io AI utils",
5
5
  "files": [
6
6
  "src"
package/src/codegen.d.ts CHANGED
@@ -4651,6 +4651,7 @@ export interface BuildCommandResultFailure {
4651
4651
  status: "failure";
4652
4652
  command: string;
4653
4653
  code?: number;
4654
+ signal?: string;
4654
4655
  output: string;
4655
4656
  }
4656
4657
  export interface ConfigureDevOrchestratorUpdates {
@@ -99,6 +99,7 @@ export declare const uploadTokenPayloadSchema: z.ZodObject<{
99
99
  mimetype: z.ZodString;
100
100
  originalName: z.ZodString;
101
101
  idx: z.ZodNumber;
102
+ declaredSize: z.ZodOptional<z.ZodNumber>;
102
103
  }, z.core.$strip>;
103
104
  export type UploadTokenPayload = z.infer<typeof uploadTokenPayloadSchema>;
104
105
  export interface UploadStartResponseItem {
@@ -71,6 +71,7 @@ export const uploadTokenPayloadSchema = z.object({
71
71
  mimetype: z.string().min(1),
72
72
  originalName: z.string().min(1),
73
73
  idx: z.number().int().nonnegative(),
74
+ declaredSize: z.number().int().nonnegative().optional(),
74
75
  });
75
76
  /**
76
77
  * Request body for the signed-URL variant of `POST /design-systems/v1/generate`.
package/src/events.d.ts CHANGED
@@ -397,6 +397,8 @@ export interface ThreadMessageCompleted extends AssistantMessage {
397
397
  commitId?: string;
398
398
  creditsUsed?: number;
399
399
  model?: string;
400
+ /** Pass to `/codegen/sessions/set-last-completion` to revert the session to this turn. */
401
+ codegenId?: string;
400
402
  }
401
403
  export interface ThreadRunStepDeltaEvent {
402
404
  type: "assistant.thread.run.step.delta";
@@ -1104,6 +1106,14 @@ export interface FigmaFrameManifestEntry {
1104
1106
  htmlSizeBytes: number;
1105
1107
  /** True if this frame's HTML upload failed after retry; HTML may be missing. */
1106
1108
  uploadError?: boolean;
1109
+ /**
1110
+ * Deterministically extracted component names from `data-component-name`
1111
+ * attributes in this frame's HTML. Populated during the decode job while the
1112
+ * HTML is already in memory. Used by the discovery agent as a guaranteed
1113
+ * floor — additional components may exist in the codebase that are not
1114
+ * represented in the Figma file.
1115
+ */
1116
+ componentNames?: string[];
1107
1117
  }
1108
1118
  export interface FigmaFrameAsset {
1109
1119
  /** Bucket-relative GCS path. */
@@ -147,6 +147,7 @@ export interface ProjectRole {
147
147
  modifyMcpServers?: boolean;
148
148
  modifyProjectSettings?: boolean;
149
149
  modifyWorkflowIntegrations?: boolean;
150
+ fusionHostingPublish?: boolean;
150
151
  };
151
152
  }
152
153
  export interface Limits {
package/src/projects.d.ts CHANGED
@@ -635,6 +635,7 @@ export interface ProjectRolePermissions {
635
635
  modifyMcpServers?: boolean;
636
636
  modifyWorkflowIntegrations?: boolean;
637
637
  modifyProjectSettings?: boolean;
638
+ fusionHostingPublish?: boolean;
638
639
  }
639
640
  export interface ProjectAccessControl {
640
641
  roles: Record<string, ProjectRolePermissions | null>;