@builder.io/ai-utils 0.5.27 → 0.5.29

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.5.27",
3
+ "version": "0.5.29",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -221,7 +221,7 @@ export interface CodeGenInputOptions {
221
221
  /** @deprecated */
222
222
  vcpId?: string;
223
223
  }
224
- export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "prompt-too-long" | "context-too-long" | "unknown" | "failed-recover-state" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "assertion" | "rate-limit";
224
+ export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "git-update-error" | "prompt-too-long" | "context-too-long" | "unknown" | "failed-recover-state" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "assertion" | "rate-limit";
225
225
  export type Feature = "component-mapping";
226
226
  export interface CodegenUsage {
227
227
  total: number;
package/src/features.d.ts CHANGED
@@ -1,4 +1 @@
1
- export declare enum Feature {
2
- REPO_INDEXING = "repo-indexing",
3
- COMPONENT_MAPPING = "component-mapping"
4
- }
1
+ export type Feature = "repo-indexing" | "component-mapping";
package/src/features.js CHANGED
@@ -1,5 +1 @@
1
- export var Feature;
2
- (function (Feature) {
3
- Feature["REPO_INDEXING"] = "repo-indexing";
4
- Feature["COMPONENT_MAPPING"] = "component-mapping";
5
- })(Feature || (Feature = {}));
1
+ export {};
package/src/projects.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { LaunchServerStatus } from "./codegen";
1
+ import type { LaunchServerState, LaunchServerStatus } from "./codegen";
2
2
  export interface ConfigStatus {
3
3
  isReady: boolean;
4
4
  lastUpdated: string;
@@ -201,4 +201,12 @@ export interface CodegenSetLastCommit {
201
201
  lastCommitHash: string;
202
202
  clearSecondaryVolumeId: boolean;
203
203
  }
204
+ export interface CodegenRuntimeStatus {
205
+ projectId: string;
206
+ branchName: string;
207
+ lastCommitHash?: string;
208
+ clearSecondaryVolumeId?: boolean;
209
+ lastServerState?: LaunchServerState;
210
+ lastServerVersion?: string;
211
+ }
204
212
  export {};