@builder.io/ai-utils 0.16.1 → 0.17.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.16.1",
3
+ "version": "0.17.1",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -1159,6 +1159,10 @@ export interface FusionConfig {
1159
1159
  browserAutomationInstructions?: string;
1160
1160
  featureBranch?: string;
1161
1161
  aiBranch?: string;
1162
+ /** Whether this is a fork PR - affects git operations (read-only, can't push) */
1163
+ isFork?: boolean;
1164
+ /** PR number for fork PRs - used for fetching refs/pulls/x/head */
1165
+ prNumber?: number;
1162
1166
  refreshPreview?: boolean;
1163
1167
  workingDirectory?: string;
1164
1168
  bashWorkingDirectory?: string;
package/src/projects.d.ts CHANGED
@@ -283,6 +283,8 @@ export interface PartialBranchData {
283
283
  commitMode?: CommitMode;
284
284
  useHomeDir?: boolean;
285
285
  checkoutBranch?: string | null;
286
+ /** Whether this branch is for a fork PR - affects git operations (read-only, can't push) */
287
+ isFork?: boolean | null;
286
288
  cloneFrom?: {
287
289
  projectId: string;
288
290
  branchName: string;
@@ -312,10 +314,12 @@ export interface BranchMetadata {
312
314
  slackThreadTs?: string;
313
315
  [key: string]: unknown;
314
316
  }
317
+ export type PRStatus = "open" | "closed" | "merged" | "draft";
315
318
  interface BranchSharedData {
316
319
  appName?: string | null;
317
320
  prNumber?: number | null;
318
321
  prUrl?: string | null;
322
+ prStatus?: PRStatus;
319
323
  machineId?: string | null;
320
324
  lastMachineIdRemovedAt?: number | null;
321
325
  volumeId?: string | null;
@@ -355,6 +359,8 @@ interface BranchSharedData {
355
359
  kubePvcName?: string | null;
356
360
  kubeHostname?: string | null;
357
361
  checkoutBranch?: string | null;
362
+ /** Whether this branch is for a fork PR - affects git operations (read-only, can't push) */
363
+ isFork?: boolean | null;
358
364
  vscodeTunnelUrl?: string | null;
359
365
  vscodeTunnelName?: string | null;
360
366
  vscodeTunnelExpiresAt?: string | null;