@builder.io/ai-utils 0.18.4 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.18.4",
3
+ "version": "0.18.5",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
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
- memory: string;
138
- memory_id?: string | null;
139
- when?: string;
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
- Memory: MemoryToolInput;
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 */
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;