@builder.io/ai-utils 0.51.0 → 0.52.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 +1 -1
- package/src/projects.d.ts +20 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -448,7 +448,7 @@ export interface UpdateSetupValueToolInput {
|
|
|
448
448
|
};
|
|
449
449
|
reason: string;
|
|
450
450
|
}
|
|
451
|
-
export type ExitState = "verified" | "no-frontend" | "empty-project" | "mobile-project" | "user-question" | "code-change-required" | "other" | "started";
|
|
451
|
+
export type ExitState = "verified" | "no-frontend" | "empty-project" | "mobile-project" | "user-question" | "code-change-required" | "other" | "started" | "failed";
|
|
452
452
|
export interface ExitToolInput {
|
|
453
453
|
state: ExitState;
|
|
454
454
|
summary: string;
|
package/src/projects.d.ts
CHANGED
|
@@ -371,6 +371,13 @@ export interface PartialBranchData {
|
|
|
371
371
|
projectId: string;
|
|
372
372
|
branchName: string;
|
|
373
373
|
};
|
|
374
|
+
/**
|
|
375
|
+
* Pre-generated sessionId. internal use only. When provided, the branch will use this sessionId
|
|
376
|
+
* instead of generating a new one. Allows callers (e.g. setup-agent spawner)
|
|
377
|
+
* to bootstrap a ProposedConfig doc keyed by sessionId before the branch
|
|
378
|
+
* record is fully created.
|
|
379
|
+
*/
|
|
380
|
+
sessionId?: string;
|
|
374
381
|
}
|
|
375
382
|
export type EntityState = "active" | "deleted" | "archived";
|
|
376
383
|
/**
|
|
@@ -724,6 +731,8 @@ export interface Project {
|
|
|
724
731
|
useBranchesCollection?: boolean;
|
|
725
732
|
/** When true, the project is in code-only mode */
|
|
726
733
|
codeOnlyMode?: boolean;
|
|
734
|
+
/** When true, analysis detected a mobile-only app (no usable web dev server path) */
|
|
735
|
+
mobileOnlyDetected?: boolean;
|
|
727
736
|
/** When true, this project is an org-level Claw agent */
|
|
728
737
|
isOrgAgent?: boolean;
|
|
729
738
|
/** Configuration for the org agent */
|
|
@@ -854,6 +863,17 @@ export interface CreateBranchOptions {
|
|
|
854
863
|
branchName: string;
|
|
855
864
|
url: string;
|
|
856
865
|
}) => Promise<void> | void;
|
|
866
|
+
/**
|
|
867
|
+
* INTERNAL ONLY. Pre-generated sessionId used by trusted callers
|
|
868
|
+
* (e.g. setup-agent spawner) to bootstrap a ProposedConfig doc keyed by
|
|
869
|
+
* sessionId before the branch record exists.
|
|
870
|
+
*
|
|
871
|
+
* SECURITY: Must be stripped from any user-facing HTTP request body — this
|
|
872
|
+
* value becomes a Firestore document ID and accepting it from untrusted
|
|
873
|
+
* input enables cross-user ProposedConfig corruption via
|
|
874
|
+
* `.set(..., { merge: true })`.
|
|
875
|
+
*/
|
|
876
|
+
sessionId?: string;
|
|
857
877
|
}
|
|
858
878
|
interface BaseCreateBranchMessage {
|
|
859
879
|
}
|