@builder.io/ai-utils
Advanced tools
Comparing version
{ | ||
"name": "@builder.io/ai-utils", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Builder.io AI utils", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -103,2 +103,3 @@ import type { Attachment, ContentMessageItemToolResult } from "./messages"; | ||
export interface AgentToolInput { | ||
description: string; | ||
prompt: string; | ||
@@ -124,2 +125,8 @@ } | ||
} | ||
export interface GetScreenshotToolInput { | ||
url: string; | ||
selector?: string; | ||
width?: number; | ||
height?: number; | ||
} | ||
export interface CodeGenToolMap { | ||
@@ -131,2 +138,3 @@ view_path: ViewPathToolInput; | ||
get_style_inspiration: GetStyleInspirationToolInput; | ||
get_screenshot: GetScreenshotToolInput; | ||
dev_server_control: DevServerControlInput; | ||
@@ -144,2 +152,3 @@ bash: BashToolInput; | ||
GetStyleInspiration: GetStyleInspirationToolInput; | ||
GetScreenshot: GetScreenshotToolInput; | ||
MultiEdit: MultiSearchReplaceInput; | ||
@@ -715,2 +724,3 @@ FindMedia: FindMediaToolInput; | ||
autoBackupGit?: boolean; | ||
autoShutdown?: boolean; | ||
commitMode?: CommitMode; | ||
@@ -779,2 +789,4 @@ serverUrl?: string; | ||
devToolsVersion: string; | ||
lastRequestTime: number; | ||
startTime: number; | ||
} |
@@ -137,4 +137,4 @@ import type { LaunchServerStatus } from "./codegen"; | ||
export type FlyVolumeState = "unknown" | "creating" | "created" | "extending" | "restoring" | "enabling_remote_export" | "hydrating" | "recovering" | "scheduling_destroy" | "pending_destroy" | "failed"; | ||
export type GitAuthErrorCode = "git-auth-failed" | "git-auth-failed-root-repo" | "git-auth-failed-folder-added-by" | "git-auth-failed-folder-created-by" | "git-auth-failed-folder-server-token"; | ||
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" | GitAuthErrorCode | "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-${MachineState}` | `volume-not-found-${FlyVolumeState}` | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`; | ||
export type GitAuthErrorCode = "git-auth-failed" | "git-auth-failed-root-repo" | "git-auth-failed-folder-added-by" | "git-auth-failed-folder-created-by" | "git-auth-failed-folder-server-token" | "git-auth-failed-root-repo-server-token"; | ||
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" | "FLY_VOLUME_NOT_FOUND" | "ensure-checking-existing-machines" | "found-multiple-failed-machine" | "maximun-retries-machine-creation" | GitAuthErrorCode | "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-${MachineState}` | `volume-not-found-${FlyVolumeState}` | "timeout" | "fatal:zod-validation-error" | `fatal:${string}`; | ||
export interface ErrorStateMessage extends BaseMessage { | ||
@@ -170,3 +170,28 @@ state: "error"; | ||
size: number; | ||
initialCommitHash: string; | ||
lastCommitHash: string; | ||
partial: boolean; | ||
} | ||
export interface GitBackupDownloadUrlResult { | ||
signedUrl: string; | ||
filePath: string; | ||
expiresAt: string; | ||
exists: boolean; | ||
} | ||
export interface GitBackupDownloadUrlOptions { | ||
projectId: string; | ||
branchName: string; | ||
} | ||
export interface GitBackupRecordOptions { | ||
projectId: string; | ||
branchName: string; | ||
size: number; | ||
gitBranchName: string; | ||
initialCommitHash?: string; | ||
lastCommitHash?: string; | ||
partial?: boolean; | ||
} | ||
export interface GitBackupRecordResult { | ||
success: boolean; | ||
} | ||
export {}; |
62983
4.95%23
21.05%2076
5.76%