@builder.io/ai-utils 0.15.0 → 0.16.1
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 +9 -0
- package/src/organization.d.ts +1 -39
- package/src/projects.d.ts +29 -9
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface CustomInstruction {
|
|
|
29
29
|
glob?: string;
|
|
30
30
|
description?: string;
|
|
31
31
|
allowedTools?: string[];
|
|
32
|
+
hideUI?: boolean;
|
|
32
33
|
}
|
|
33
34
|
export interface CustomAgentInfo {
|
|
34
35
|
name: string;
|
|
@@ -308,6 +309,7 @@ export interface CodeGenInputOptions {
|
|
|
308
309
|
recommendedRoot?: string;
|
|
309
310
|
enabledTools?: CodeGenTools[];
|
|
310
311
|
enabledMCPs?: string[];
|
|
312
|
+
skipFileDiff?: boolean;
|
|
311
313
|
/**
|
|
312
314
|
* Local MCP tool definitions from stdio servers (CLI-side only)
|
|
313
315
|
* These tools will be executed on the client side and passed through from the server
|
|
@@ -682,6 +684,12 @@ export interface GenerateCompletionStepBatch {
|
|
|
682
684
|
type: "batch";
|
|
683
685
|
steps: GenerateCompletionStep[];
|
|
684
686
|
}
|
|
687
|
+
export interface CustomInstructionDefinition {
|
|
688
|
+
name: string;
|
|
689
|
+
description: string;
|
|
690
|
+
type: "agent-mode" | "always";
|
|
691
|
+
glob?: string;
|
|
692
|
+
}
|
|
685
693
|
export interface GenerateCompletionStepSession {
|
|
686
694
|
type: "session";
|
|
687
695
|
title: string | undefined;
|
|
@@ -694,6 +702,7 @@ export interface GenerateCompletionStepSession {
|
|
|
694
702
|
sessionMode: SessionMode;
|
|
695
703
|
fusionConfig: FusionConfig | undefined;
|
|
696
704
|
hasBrowserAutomation: boolean;
|
|
705
|
+
customInstructions: CustomInstructionDefinition[];
|
|
697
706
|
}
|
|
698
707
|
export interface GenerateCompletionStepMetadata {
|
|
699
708
|
type: "metadata";
|
package/src/organization.d.ts
CHANGED
|
@@ -19,47 +19,11 @@ export interface GitlabEnterprisePATValue {
|
|
|
19
19
|
botUsername: string;
|
|
20
20
|
secondaryHost?: string;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Public metadata for GitLab fallback token (stored in organizations collection).
|
|
24
|
-
*/
|
|
25
22
|
export interface GitlabCloudFallbackToken {
|
|
26
|
-
|
|
27
|
-
createdBy: string;
|
|
28
|
-
createdAt: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Public metadata for Azure fallback token (stored in organizations collection).
|
|
32
|
-
*/
|
|
33
|
-
export interface AzureCloudFallbackToken {
|
|
34
|
-
configured: boolean;
|
|
35
|
-
organization: string;
|
|
36
|
-
createdBy: string;
|
|
37
|
-
createdAt: number;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Public metadata for Bitbucket fallback token (stored in organizations collection).
|
|
41
|
-
*/
|
|
42
|
-
export interface BitbucketCloudFallbackToken {
|
|
43
|
-
configured: boolean;
|
|
44
|
-
username: string;
|
|
45
|
-
email: string;
|
|
23
|
+
token: string;
|
|
46
24
|
createdBy: string;
|
|
47
25
|
createdAt: number;
|
|
48
26
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Private fallback tokens stored in organizations_private collection.
|
|
51
|
-
*/
|
|
52
|
-
export interface FallbackTokensPrivate {
|
|
53
|
-
gitlab?: {
|
|
54
|
-
token: string;
|
|
55
|
-
};
|
|
56
|
-
azure?: {
|
|
57
|
-
token: string;
|
|
58
|
-
};
|
|
59
|
-
bitbucket?: {
|
|
60
|
-
token: string;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
27
|
interface OrganizationSettings {
|
|
64
28
|
attribution?: string[];
|
|
65
29
|
visualEditorAiStyleInspirationURL?: string;
|
|
@@ -75,8 +39,6 @@ interface OrganizationSettings {
|
|
|
75
39
|
githubEnterpriseSetupValue?: GithubEnterpriseSetupValue;
|
|
76
40
|
gitlabEnterprisePAT?: GitlabEnterprisePATValue;
|
|
77
41
|
gitlabCloudFallbackToken?: GitlabCloudFallbackToken;
|
|
78
|
-
azureCloudFallbackToken?: AzureCloudFallbackToken;
|
|
79
|
-
bitbucketCloudFallbackToken?: BitbucketCloudFallbackToken;
|
|
80
42
|
bitbucketEnterprisePAT?: BitbucketEnterprisePAT;
|
|
81
43
|
useProxy?: boolean;
|
|
82
44
|
fusionShareableUrlSuffix?: string;
|
package/src/projects.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { FileOverride, EnvironmentVariable, LaunchServerState, LaunchServerStatus, BranchBackup, CommitMode } from "./codegen";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Temporary type for date fields during migration.
|
|
4
|
+
* Handles both old (string) and new (number) formats.
|
|
5
|
+
* DELETE AFTER MIGRATION COMPLETES.
|
|
6
|
+
*/
|
|
7
|
+
export type InMigrationDate = string | number;
|
|
8
|
+
/**
|
|
9
|
+
* Temporary type for nullable date fields during migration.
|
|
10
|
+
* DELETE AFTER MIGRATION COMPLETES.
|
|
11
|
+
*/
|
|
12
|
+
export type InMigrationDateNullable = InMigrationDate | null | undefined;
|
|
3
13
|
export interface ConfigStatus {
|
|
4
14
|
isReady: boolean;
|
|
5
15
|
lastUpdated: string;
|
|
@@ -337,7 +347,8 @@ interface BranchSharedData {
|
|
|
337
347
|
needsCleanup?: boolean;
|
|
338
348
|
/** @deprecated Use `state` field instead. Kept for backwards compatibility. */
|
|
339
349
|
deleted?: boolean;
|
|
340
|
-
|
|
350
|
+
/** MIGRATION: accepts both string and number during migration period */
|
|
351
|
+
deletedAt?: InMigrationDateNullable;
|
|
341
352
|
deletedBy?: string;
|
|
342
353
|
kubePodName?: string | null;
|
|
343
354
|
kubeNamespace?: string | null;
|
|
@@ -347,6 +358,11 @@ interface BranchSharedData {
|
|
|
347
358
|
vscodeTunnelUrl?: string | null;
|
|
348
359
|
vscodeTunnelName?: string | null;
|
|
349
360
|
vscodeTunnelExpiresAt?: string | null;
|
|
361
|
+
commitMode?: CommitMode;
|
|
362
|
+
/** Timestamp when an AI agent started activity on this branch, null when inactive (in milliseconds since epoch) */
|
|
363
|
+
lastAgentActivityAt?: number | null;
|
|
364
|
+
/** Timestamp of last activity on this branch - includes both agent and user activity (in milliseconds since epoch) */
|
|
365
|
+
lastActivityAt?: number;
|
|
350
366
|
}
|
|
351
367
|
/**
|
|
352
368
|
* fields that are required in the new branch format, but optional in the legacy branch format.
|
|
@@ -357,9 +373,11 @@ interface RequiredBranchSharedData {
|
|
|
357
373
|
lockedFusionEnvironment: FusionExecutionEnvironment;
|
|
358
374
|
id: string;
|
|
359
375
|
sessionId: string;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
376
|
+
/** MIGRATION: accepts both string and number during migration period */
|
|
377
|
+
createdAt: InMigrationDate;
|
|
378
|
+
/** MIGRATION: accepts both string and number during migration period */
|
|
379
|
+
updatedAt: InMigrationDate;
|
|
380
|
+
lastUpdatedAt: number;
|
|
363
381
|
}
|
|
364
382
|
/**
|
|
365
383
|
* LegacyBranch represents branch data as stored in the nested project.branches field.
|
|
@@ -412,8 +430,10 @@ export interface Project {
|
|
|
412
430
|
repoDescription?: string;
|
|
413
431
|
repoPrivate: boolean;
|
|
414
432
|
repoUrl: string | undefined;
|
|
415
|
-
|
|
416
|
-
|
|
433
|
+
/** MIGRATION: accepts both string and number during migration period */
|
|
434
|
+
createdDate: InMigrationDate;
|
|
435
|
+
/** MIGRATION: accepts both string and number during migration period */
|
|
436
|
+
updatedAt: InMigrationDate;
|
|
417
437
|
pinned?: boolean;
|
|
418
438
|
archived?: boolean;
|
|
419
439
|
createdBy: string;
|
|
@@ -511,7 +531,8 @@ export interface Project {
|
|
|
511
531
|
localPath?: string | null;
|
|
512
532
|
/** The state of the project. Use `isProjectDeleted()` helper for backwards-compatible checks. */
|
|
513
533
|
state?: EntityState;
|
|
514
|
-
|
|
534
|
+
/** MIGRATION: accepts both string and number during migration period */
|
|
535
|
+
deletedAt?: InMigrationDateNullable;
|
|
515
536
|
deletedBy?: string;
|
|
516
537
|
/**
|
|
517
538
|
* When true, branches are stored in the standalone `branches` collection
|
|
@@ -546,7 +567,6 @@ export interface OrganizationPrivate {
|
|
|
546
567
|
ids: number[];
|
|
547
568
|
host: string;
|
|
548
569
|
}[];
|
|
549
|
-
fallbackTokens?: FallbackTokensPrivate;
|
|
550
570
|
createdAt: number;
|
|
551
571
|
updatedAt: number;
|
|
552
572
|
}
|