builder.io 1.7.29 → 1.7.31

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.
@@ -4,7 +4,7 @@ import type { GitBackupUploadUrlResult, GitBackupUploadUrlOptions, GitBackupReco
4
4
  /**
5
5
  * Requests a signed upload URL for git backup
6
6
  */
7
- export declare function requestSignedUploadUrl(credentials: Credentials, body: GitBackupUploadUrlOptions): Promise<GitBackupUploadUrlResult>;
7
+ export declare function requestSignedUploadUrl(credentials: Credentials, body: GitBackupUploadUrlOptions): Promise<GitBackupUploadUrlResult | null>;
8
8
  /**
9
9
  * Records a successful git backup in Firebase
10
10
  */
@@ -101,6 +101,17 @@ export declare class CodeGenSession {
101
101
  bundleSize?: undefined;
102
102
  contentMd5?: undefined;
103
103
  error?: undefined;
104
+ } | {
105
+ success: boolean;
106
+ skipped: boolean;
107
+ reason: string;
108
+ lastCommitHash?: undefined;
109
+ empty?: undefined;
110
+ filePath?: undefined;
111
+ expiresAt?: undefined;
112
+ bundleSize?: undefined;
113
+ contentMd5?: undefined;
114
+ error?: undefined;
104
115
  } | {
105
116
  success: boolean;
106
117
  filePath: string;
@@ -171,6 +182,7 @@ export declare class CodeGenSession {
171
182
  * Get the current commit hash
172
183
  */
173
184
  getCurrentCommitHash(branchName?: string): Promise<string | undefined>;
185
+ getCurrentBranch(): Promise<string>;
174
186
  /**
175
187
  * Get the feature branch name
176
188
  */
@@ -76,4 +76,6 @@ export interface CLIArgs {
76
76
  enabledTools?: string;
77
77
  /** If true run brief indexing before running code generation */
78
78
  index?: boolean;
79
+ /** If true list indexed repositories */
80
+ listIndexedRepos?: boolean;
79
81
  }
@@ -11,7 +11,8 @@ export declare const storeComponentDocs: (credentials: Credentials, body: StoreC
11
11
  export declare const runCodeGen: (sys: DevToolsSys, credentials: Credentials, sessionId: string, message: GenerateUserMessage, debug?: boolean, designSystemPackage?: string, workspaceConfig?: WorkspaceConfiguration, opts?: {
12
12
  tags?: object;
13
13
  }) => Promise<string>;
14
- export declare const getDesignSystem: (credentials: Credentials) => Promise<DesignSystem | null>;
14
+ export declare const getAllDesignSystems: (credentials: Credentials) => Promise<DesignSystem[]>;
15
+ export declare const getDesignSystemByName: (credentials: Credentials, designSystemName: string) => Promise<DesignSystem | null>;
15
16
  export declare const addDesignSystem: (credentials: Credentials, body: {
16
17
  designSystemName: string;
17
18
  status: string;
@@ -2,7 +2,7 @@ import type { DevToolsSys } from "../../types";
2
2
  import type { CLIArgs } from "../index";
3
3
  import { type Credentials } from "../credentials";
4
4
  import type { Component } from "./types";
5
- export declare const displayComponentLibrarySummary: (components: Component[], indexedComponents: Component[], startTime: number, numFailed?: number, isForce?: boolean) => void;
5
+ export declare const displayComponentLibrarySummary: (components: Component[], indexedComponents: Component[], startTime: number, numFailed?: number, isForce?: boolean, designSystemName?: string) => void;
6
6
  export interface RepoIndexingDoc {
7
7
  name: string;
8
8
  content: string | {
@@ -18,4 +18,7 @@ export interface RepoIndexingDoc {
18
18
  userId: string;
19
19
  }
20
20
  export declare const runRepoIndexing: (sys: DevToolsSys, args: CLIArgs) => Promise<void>;
21
- export declare const isFeatureAllowed: (credentials: Credentials, debug?: boolean) => Promise<boolean>;
21
+ export declare const isFeatureAllowed: (credentials: Credentials, debug?: boolean) => Promise<{
22
+ isAllowed: boolean;
23
+ reason?: string;
24
+ }>;