@builder.io/ai-utils 0.18.3 → 0.18.5
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 +1 -1
- package/src/codegen.d.ts +37 -6
- package/src/organization.d.ts +4 -0
- package/src/projects.d.ts +4 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -134,9 +134,22 @@ export interface MediaToolInput {
|
|
|
134
134
|
input_image_urls?: string[] | null;
|
|
135
135
|
}
|
|
136
136
|
export interface MemoryToolInput {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
content: string;
|
|
138
|
+
when: string;
|
|
139
|
+
/** Glob pattern for file-based memory retrieval. Should be specific (e.g., "src/components/Button.tsx") rather than broad (e.g., "*.tsx"). */
|
|
140
|
+
category: string;
|
|
141
|
+
glob?: string;
|
|
142
|
+
importance?: number;
|
|
143
|
+
glob_auto_include?: boolean;
|
|
144
|
+
}
|
|
145
|
+
export interface SearchMemoriesToolInput {
|
|
146
|
+
query: string;
|
|
147
|
+
limit?: number;
|
|
148
|
+
minSimilarity?: number;
|
|
149
|
+
}
|
|
150
|
+
export interface ScoreMemoriesToolInput {
|
|
151
|
+
outcome: "worked" | "failed" | "partial" | "unknown";
|
|
152
|
+
memory_scores: Record<string, "worked" | "failed" | "partial" | "unknown">;
|
|
140
153
|
}
|
|
141
154
|
export interface AskUserQuestionToolInput {
|
|
142
155
|
questions: {
|
|
@@ -214,15 +227,21 @@ export interface RecordFrameToolInput {
|
|
|
214
227
|
export interface AddQAReviewComment {
|
|
215
228
|
file_path: string;
|
|
216
229
|
line: number;
|
|
230
|
+
start_line?: number;
|
|
217
231
|
title: string;
|
|
218
232
|
body: string;
|
|
219
|
-
severity: "
|
|
233
|
+
severity: "high" | "medium" | "low";
|
|
220
234
|
debugInfo?: string;
|
|
235
|
+
gif_id?: string;
|
|
221
236
|
}
|
|
222
237
|
export interface AddQAReviewToolInput {
|
|
223
238
|
summary: string;
|
|
224
239
|
comments?: AddQAReviewComment[];
|
|
225
240
|
gif_id: string;
|
|
241
|
+
recording_caption?: string;
|
|
242
|
+
}
|
|
243
|
+
export interface ResolveQACommentsToolInput {
|
|
244
|
+
thread_node_ids: string[];
|
|
226
245
|
}
|
|
227
246
|
export interface ReportUIIssueToolInput {
|
|
228
247
|
title: string;
|
|
@@ -252,7 +271,9 @@ export interface CodeGenToolMap {
|
|
|
252
271
|
MultiEdit: MultiSearchReplaceInput;
|
|
253
272
|
FindMedia: FindMediaToolInput;
|
|
254
273
|
Media: MediaToolInput;
|
|
255
|
-
|
|
274
|
+
AddMemory: MemoryToolInput;
|
|
275
|
+
SearchMemories: SearchMemoriesToolInput;
|
|
276
|
+
ScoreMemories: ScoreMemoriesToolInput;
|
|
256
277
|
Bash: BashToolInput;
|
|
257
278
|
PowerShell: PowerShellToolInput;
|
|
258
279
|
WebSearch: WebSearchToolInput;
|
|
@@ -273,6 +294,7 @@ export interface CodeGenToolMap {
|
|
|
273
294
|
ReadMcpResource: ReadMcpResourceToolInput;
|
|
274
295
|
RecordFrame: RecordFrameToolInput;
|
|
275
296
|
AddQAReview: AddQAReviewToolInput;
|
|
297
|
+
ResolveQAComments: ResolveQACommentsToolInput;
|
|
276
298
|
ReportUIIssue: ReportUIIssueToolInput;
|
|
277
299
|
}
|
|
278
300
|
export type CodeGenTools = keyof CodeGenToolMap;
|
|
@@ -317,6 +339,8 @@ export interface CodeGenInputOptions {
|
|
|
317
339
|
includeRelevantMemories?: boolean;
|
|
318
340
|
encryptKey?: string;
|
|
319
341
|
modelOverride?: string;
|
|
342
|
+
errorIfHadCompaction?: boolean;
|
|
343
|
+
reasoning?: "low" | "medium" | "high" | "minimal";
|
|
320
344
|
redactUserMessages?: boolean;
|
|
321
345
|
redactLLMMessages?: boolean;
|
|
322
346
|
environmentVariables?: EnvironmentVariable[];
|
|
@@ -361,6 +385,7 @@ export interface CodeGenInputOptions {
|
|
|
361
385
|
user?: UserSource;
|
|
362
386
|
projectId?: string;
|
|
363
387
|
branchName?: string;
|
|
388
|
+
repoHash?: string;
|
|
364
389
|
/** @deprecated */
|
|
365
390
|
prevId?: string;
|
|
366
391
|
/** @deprecated */
|
|
@@ -1437,6 +1462,8 @@ export interface FusionStatus {
|
|
|
1437
1462
|
httpClients: number;
|
|
1438
1463
|
/** VS Code Tunnel status for remote editor connections */
|
|
1439
1464
|
tunnel?: TunnelStatusInfo;
|
|
1465
|
+
/** Event loop delays collected every 5 seconds (in milliseconds) for percentile calculation */
|
|
1466
|
+
eventLoopDelays?: number[];
|
|
1440
1467
|
}
|
|
1441
1468
|
export interface FusionMetrics {
|
|
1442
1469
|
counters: {
|
|
@@ -1612,11 +1639,15 @@ export interface DevCommandResultFailure {
|
|
|
1612
1639
|
code: number | null;
|
|
1613
1640
|
output: string;
|
|
1614
1641
|
}
|
|
1615
|
-
export type ValidateCommandResult = ValidateCommandResultSuccess | ValidateCommandResultFailure;
|
|
1642
|
+
export type ValidateCommandResult = ValidateCommandResultSuccess | ValidateCommandResultAborted | ValidateCommandResultFailure;
|
|
1616
1643
|
export interface ValidateCommandResultSuccess {
|
|
1617
1644
|
status: "success";
|
|
1618
1645
|
command: string | undefined;
|
|
1619
1646
|
}
|
|
1647
|
+
export interface ValidateCommandResultAborted {
|
|
1648
|
+
status: "aborted";
|
|
1649
|
+
command: string | undefined;
|
|
1650
|
+
}
|
|
1620
1651
|
export interface ValidateCommandResultFailure {
|
|
1621
1652
|
status: "failure";
|
|
1622
1653
|
command: string;
|
package/src/organization.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ interface OrganizationSettings {
|
|
|
83
83
|
enabled?: boolean;
|
|
84
84
|
};
|
|
85
85
|
disableFigmaImageUpload?: boolean;
|
|
86
|
+
enableTicketAssessment?: boolean;
|
|
87
|
+
ticketAssessmentPrompt?: string;
|
|
88
|
+
ticketAssessmentModel?: string;
|
|
89
|
+
ticketAssessmentDailyLimit?: number;
|
|
86
90
|
}
|
|
87
91
|
interface RoleOptions {
|
|
88
92
|
read?: boolean;
|
package/src/projects.d.ts
CHANGED
|
@@ -358,6 +358,7 @@ interface BranchSharedData {
|
|
|
358
358
|
} | null;
|
|
359
359
|
backup?: BranchBackup;
|
|
360
360
|
metadata?: BranchMetadata;
|
|
361
|
+
memoriesExtracted?: boolean;
|
|
361
362
|
needsCleanup?: boolean;
|
|
362
363
|
/** @deprecated Use `state` field instead. Kept for backwards compatibility. */
|
|
363
364
|
deleted?: boolean;
|
|
@@ -446,6 +447,8 @@ export interface Project {
|
|
|
446
447
|
repoDescription?: string;
|
|
447
448
|
repoPrivate: boolean;
|
|
448
449
|
repoUrl: string | undefined;
|
|
450
|
+
/** 8-character SHA-256 hash of normalized repoUrl for cross-project matching */
|
|
451
|
+
repoHash?: string;
|
|
449
452
|
/** MIGRATION: accepts both string and number during migration period */
|
|
450
453
|
createdDate: InMigrationDate;
|
|
451
454
|
/** MIGRATION: accepts both string and number during migration period */
|
|
@@ -522,6 +525,7 @@ export interface Project {
|
|
|
522
525
|
authPassword?: string;
|
|
523
526
|
};
|
|
524
527
|
qaBot?: boolean;
|
|
528
|
+
postMergeMemories?: boolean;
|
|
525
529
|
httpsServerKeyPath?: string;
|
|
526
530
|
httpsServerCertPath?: string;
|
|
527
531
|
httpsServerCaPath?: string;
|