@builder.io/ai-utils 0.57.0 → 0.58.0
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 +3 -2
- package/src/codegen.js +1 -0
- package/src/projects.d.ts +13 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -742,6 +742,7 @@ export interface SpawnBranchToolInput {
|
|
|
742
742
|
model?: "auto" | "opus" | "sonnet" | "haiku";
|
|
743
743
|
attachment_urls?: string[];
|
|
744
744
|
git_base_branch?: string;
|
|
745
|
+
auto_archive_on_idle?: boolean;
|
|
745
746
|
}
|
|
746
747
|
export interface CreateProjectToolInput {
|
|
747
748
|
repo_url: string;
|
|
@@ -960,7 +961,7 @@ export declare const DEFAULT_QUEUE_BEHAVIOR: QueueBehavior;
|
|
|
960
961
|
/** True for any schedule that aborts the in-flight run on enqueue. */
|
|
961
962
|
export declare function isInterruptSchedule(schedule: QueueSchedule): boolean;
|
|
962
963
|
export declare function normalizeQueueMode(mode: QueueMode | undefined): QueueBehavior;
|
|
963
|
-
export declare const BASE_CODEGEN_POSITIONS: readonly ["fusion", "editor-ai", "repo-indexing", "cli", "create-app-firebase", "create-app-lovable", "builder-code-panel", "setup-project", "code-review-orchestrator", "project-configuration", "org-agent", "browser-testing", "projects-scheduler-memory-extraction", "builder-code", "unknown", "dsi-mcp"];
|
|
964
|
+
export declare const BASE_CODEGEN_POSITIONS: readonly ["fusion", "editor-ai", "repo-indexing", "cli", "create-app-firebase", "create-app-lovable", "builder-code-panel", "setup-project", "code-review-orchestrator", "project-configuration", "org-agent", "org-worker", "browser-testing", "projects-scheduler-memory-extraction", "builder-code", "unknown", "dsi-mcp"];
|
|
964
965
|
export type BaseCodeGenPosition = (typeof BASE_CODEGEN_POSITIONS)[number];
|
|
965
966
|
export type CodeGenPosition = BaseCodeGenPosition | `${BaseCodeGenPosition}-agent`;
|
|
966
967
|
export interface RepoIndexingConfig {
|
|
@@ -1006,7 +1007,7 @@ export interface CodeGenInputOptions {
|
|
|
1006
1007
|
redactUserMessages?: boolean;
|
|
1007
1008
|
redactLLMMessages?: boolean;
|
|
1008
1009
|
environmentVariables?: EnvironmentVariable[];
|
|
1009
|
-
|
|
1010
|
+
skipCommandSecurity?: boolean;
|
|
1010
1011
|
builderContent?: BuilderContent;
|
|
1011
1012
|
framework?: CodeGenFramework;
|
|
1012
1013
|
styleLibrary?: CodeGenStyleLibrary;
|
package/src/codegen.js
CHANGED
package/src/projects.d.ts
CHANGED
|
@@ -385,6 +385,8 @@ export interface PartialBranchData {
|
|
|
385
385
|
* record is fully created.
|
|
386
386
|
*/
|
|
387
387
|
sessionId?: string;
|
|
388
|
+
/** When true, the branch will be automatically archived the first time it goes idle. */
|
|
389
|
+
autoArchiveOnIdle?: boolean;
|
|
388
390
|
}
|
|
389
391
|
export type EntityState = "active" | "deleted" | "archived";
|
|
390
392
|
/**
|
|
@@ -491,6 +493,12 @@ export interface BranchSharedData {
|
|
|
491
493
|
needsCleanup?: boolean;
|
|
492
494
|
/** Reason provided when archiving the branch (optional, max 500 chars) */
|
|
493
495
|
archiveReason?: string;
|
|
496
|
+
/** MIGRATION: accepts both string and number during migration period */
|
|
497
|
+
archivedAt?: InMigrationDateNullable;
|
|
498
|
+
/** User ID or "system" that archived the branch */
|
|
499
|
+
archivedBy?: string;
|
|
500
|
+
/** When true, the branch will be automatically archived the first time it goes idle. */
|
|
501
|
+
autoArchiveOnIdle?: boolean;
|
|
494
502
|
/** @deprecated Use `state` field instead. Kept for backwards compatibility. */
|
|
495
503
|
deleted?: boolean;
|
|
496
504
|
/** MIGRATION: accepts both string and number during migration period */
|
|
@@ -870,6 +878,11 @@ export interface CreateBranchOptions {
|
|
|
870
878
|
branchName: string;
|
|
871
879
|
url: string;
|
|
872
880
|
}) => Promise<void> | void;
|
|
881
|
+
/**
|
|
882
|
+
* When true, the branch will be automatically archived the first time it goes idle.
|
|
883
|
+
* Useful for cleanup branches that should be disposed after completing their task.
|
|
884
|
+
*/
|
|
885
|
+
autoArchiveOnIdle?: boolean;
|
|
873
886
|
/**
|
|
874
887
|
* INTERNAL ONLY. Pre-generated sessionId used by trusted callers
|
|
875
888
|
* (e.g. setup-agent spawner) to bootstrap a ProposedConfig doc keyed by
|