@builder.io/ai-utils 0.18.4 → 0.18.6
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 +24 -4
- package/src/projects.d.ts +6 -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: {
|
|
@@ -258,7 +271,9 @@ export interface CodeGenToolMap {
|
|
|
258
271
|
MultiEdit: MultiSearchReplaceInput;
|
|
259
272
|
FindMedia: FindMediaToolInput;
|
|
260
273
|
Media: MediaToolInput;
|
|
261
|
-
|
|
274
|
+
AddMemory: MemoryToolInput;
|
|
275
|
+
SearchMemories: SearchMemoriesToolInput;
|
|
276
|
+
ScoreMemories: ScoreMemoriesToolInput;
|
|
262
277
|
Bash: BashToolInput;
|
|
263
278
|
PowerShell: PowerShellToolInput;
|
|
264
279
|
WebSearch: WebSearchToolInput;
|
|
@@ -324,6 +339,8 @@ export interface CodeGenInputOptions {
|
|
|
324
339
|
includeRelevantMemories?: boolean;
|
|
325
340
|
encryptKey?: string;
|
|
326
341
|
modelOverride?: string;
|
|
342
|
+
errorIfHadCompaction?: boolean;
|
|
343
|
+
reasoning?: "low" | "medium" | "high" | "minimal";
|
|
327
344
|
redactUserMessages?: boolean;
|
|
328
345
|
redactLLMMessages?: boolean;
|
|
329
346
|
environmentVariables?: EnvironmentVariable[];
|
|
@@ -368,6 +385,7 @@ export interface CodeGenInputOptions {
|
|
|
368
385
|
user?: UserSource;
|
|
369
386
|
projectId?: string;
|
|
370
387
|
branchName?: string;
|
|
388
|
+
repoHash?: string;
|
|
371
389
|
/** @deprecated */
|
|
372
390
|
prevId?: string;
|
|
373
391
|
/** @deprecated */
|
|
@@ -1446,6 +1464,8 @@ export interface FusionStatus {
|
|
|
1446
1464
|
tunnel?: TunnelStatusInfo;
|
|
1447
1465
|
/** Event loop delays collected every 5 seconds (in milliseconds) for percentile calculation */
|
|
1448
1466
|
eventLoopDelays?: number[];
|
|
1467
|
+
/** Max memory pressure observed in the reporting period (0-1, where 1 is near OOM) */
|
|
1468
|
+
memoryPressure?: number;
|
|
1449
1469
|
}
|
|
1450
1470
|
export interface FusionMetrics {
|
|
1451
1471
|
counters: {
|
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;
|
|
@@ -379,6 +380,8 @@ interface BranchSharedData {
|
|
|
379
380
|
lastAgentActivityAt?: number | null;
|
|
380
381
|
/** Timestamp of last activity on this branch - includes both agent and user activity (in milliseconds since epoch) */
|
|
381
382
|
lastActivityAt?: number;
|
|
383
|
+
/** Whether the branch has unpushed changes (ahead > 0 or dirty working directory) */
|
|
384
|
+
hasUnpushedChanges?: boolean;
|
|
382
385
|
}
|
|
383
386
|
/**
|
|
384
387
|
* fields that are required in the new branch format, but optional in the legacy branch format.
|
|
@@ -446,6 +449,8 @@ export interface Project {
|
|
|
446
449
|
repoDescription?: string;
|
|
447
450
|
repoPrivate: boolean;
|
|
448
451
|
repoUrl: string | undefined;
|
|
452
|
+
/** 8-character SHA-256 hash of normalized repoUrl for cross-project matching */
|
|
453
|
+
repoHash?: string;
|
|
449
454
|
/** MIGRATION: accepts both string and number during migration period */
|
|
450
455
|
createdDate: InMigrationDate;
|
|
451
456
|
/** MIGRATION: accepts both string and number during migration period */
|
|
@@ -522,6 +527,7 @@ export interface Project {
|
|
|
522
527
|
authPassword?: string;
|
|
523
528
|
};
|
|
524
529
|
qaBot?: boolean;
|
|
530
|
+
postMergeMemories?: boolean;
|
|
525
531
|
httpsServerKeyPath?: string;
|
|
526
532
|
httpsServerCertPath?: string;
|
|
527
533
|
httpsServerCaPath?: string;
|