@builder.io/ai-utils 0.4.38 → 0.4.40

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.4.38",
3
+ "version": "0.4.40",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -111,6 +111,7 @@ export interface RevertToolInput {
111
111
  export interface TodoReadToolInput {
112
112
  }
113
113
  export interface TodoWriteToolInput {
114
+ mode: "replace" | "patch";
114
115
  todos: {
115
116
  content: string;
116
117
  status: "pending" | "in_progress" | "completed";
@@ -134,6 +135,7 @@ export interface CodeGenToolMap {
134
135
  Read: ViewPathToolInput;
135
136
  Write: WriteFileInput;
136
137
  Edit: SearchReplaceInput;
138
+ ReadRule: GetRuleToolInput;
137
139
  GetStyleInspiration: GetStyleInspirationToolInput;
138
140
  MultiEdit: MultiSearchReplaceInput;
139
141
  FindMedia: FindMediaToolInput;
@@ -196,7 +198,7 @@ export interface CodeGenInputOptions {
196
198
  /** @deprecated */
197
199
  vcpId?: string;
198
200
  }
199
- export type CodeGenErrorCodes = "credits-limit-daily" | "credits-limit-monthly" | "credits-limit-other" | "cli-genetic-error" | "prompt-too-long" | "unknown" | "failed-recover-state" | "bad-initial-url" | "invalid-last-message" | "corrupted-session" | "assertion" | "rate-limit";
201
+ 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";
200
202
  export type Feature = "component-mapping";
201
203
  export interface CodegenUsage {
202
204
  total: number;
package/src/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from "./settings.js";
5
5
  export * from "./mapping.js";
6
6
  export * from "./codegen.js";
7
7
  export * from "./projects.js";
8
+ export * from "./repo-indexing.js";
package/src/index.js CHANGED
@@ -5,3 +5,4 @@ export * from "./settings.js";
5
5
  export * from "./mapping.js";
6
6
  export * from "./codegen.js";
7
7
  export * from "./projects.js";
8
+ export * from "./repo-indexing.js";
package/src/projects.d.ts CHANGED
@@ -132,7 +132,7 @@ export interface ReadyMessage extends BaseMessage {
132
132
  url: string;
133
133
  status?: LaunchServerStatus;
134
134
  }
135
- export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_VOLUME_CREATE_ERROR" | "FLY_VOLUME_FORK_ERROR" | "FLY_VOLUME_DELETE_RECENTLY_FORKED_ERROR" | "FLY_MACHINE_CREATE_ERROR" | "FLY_VOLUME_CHECK_ERROR" | "FLY_NON_MOUNTABLE_VOLUME_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-repo-full-name-not-found" | "project-org-not-found" | "no-available-regions" | "machine-status-polling-failed" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
135
+ export type EnsureContainerErrorCode = "FLY_APP_CHECK_ERROR" | "FLY_CAPACITY_ERROR" | "FLY_PERMISSIONS_TOKEN_ERROR" | "FLY_VOLUME_CREATE_ERROR" | "FLY_VOLUME_FORK_ERROR" | "FLY_VOLUME_DELETE_RECENTLY_FORKED_ERROR" | "FLY_MACHINE_CREATE_ERROR" | "FLY_VOLUME_CHECK_ERROR" | "FLY_NON_MOUNTABLE_VOLUME_ERROR" | "FLY_DEPRECATED_REGION_ERROR" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | "git-auth-failed" | "unknown" | "project-bad-state" | "project-not-found" | "project-branch-not-found" | "project-repo-full-name-not-found" | "project-org-not-found" | "no-available-regions" | "machine-status-polling-failed" | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`;
136
136
  export interface ErrorStateMessage extends BaseMessage {
137
137
  state: "error";
138
138
  message: string;
@@ -0,0 +1,9 @@
1
+ export interface StoreComponentDocsInput {
2
+ description: string;
3
+ name: string;
4
+ components: string[];
5
+ content: string;
6
+ sessionId: string;
7
+ designSystemPackage?: string;
8
+ designSystemVersion?: string;
9
+ }
@@ -0,0 +1 @@
1
+ export {};