@builder.io/ai-utils 0.12.0 → 0.12.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.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -1210,6 +1210,21 @@ export interface CodegenApiFailure {
1210
1210
  message: string;
1211
1211
  error: Error;
1212
1212
  }
1213
+ export interface CodegenApiCreateTerminal {
1214
+ terminalId?: string;
1215
+ title?: string;
1216
+ cwd?: string;
1217
+ env?: Record<string, string | undefined>;
1218
+ cols?: number;
1219
+ rows?: number;
1220
+ shell?: string;
1221
+ createdBy?: string;
1222
+ initialCommand?: string;
1223
+ readonly?: boolean;
1224
+ inheritCredentials?: boolean;
1225
+ emitTerminals?: boolean;
1226
+ force?: boolean;
1227
+ }
1213
1228
  export interface CodegenApiTerminal {
1214
1229
  terminalId: string;
1215
1230
  title: string;
@@ -1219,6 +1234,9 @@ export interface CodegenApiTerminal {
1219
1234
  createdBy: string;
1220
1235
  readonly: boolean;
1221
1236
  builtIn: boolean;
1237
+ state: "starting" | "running" | "exited" | "error";
1238
+ exitCode: number | undefined;
1239
+ initialCommand?: string;
1222
1240
  }
1223
1241
  export interface SetupCommandResult {
1224
1242
  code: number | null;
@@ -49,6 +49,7 @@ interface RoleOptions {
49
49
  editContentPriority?: boolean;
50
50
  editFolders?: boolean;
51
51
  indexDesignSystems?: boolean;
52
+ modifyWorkflowIntegrations?: boolean;
52
53
  }
53
54
  interface RoleEnvironment {
54
55
  pushAllowedOrgIds?: string[];
@@ -67,6 +68,7 @@ export interface ProjectRole {
67
68
  createBranches?: boolean;
68
69
  modifyMcpServers?: boolean;
69
70
  modifyProjectSettings?: boolean;
71
+ modifyWorkflowIntegrations?: boolean;
70
72
  };
71
73
  }
72
74
  export interface Limits {
package/src/projects.d.ts CHANGED
@@ -327,6 +327,19 @@ export interface Branch {
327
327
  }
328
328
  export type CpuKind = "performance" | "shared";
329
329
  export type MachineAutoStop = "stop" | "off" | "suspend";
330
+ export interface ProjectRolePermissions {
331
+ view?: boolean;
332
+ editCode?: boolean;
333
+ sendPullRequests?: boolean;
334
+ createBranches?: boolean;
335
+ modifyMcpServers?: boolean;
336
+ modifyWorkflowIntegrations?: boolean;
337
+ modifyProjectSettings?: boolean;
338
+ }
339
+ export interface ProjectAccessControl {
340
+ roles: Record<string, ProjectRolePermissions | null>;
341
+ users: Record<string, ProjectRolePermissions>;
342
+ }
330
343
  export interface Project {
331
344
  id: string;
332
345
  name: string;
@@ -346,7 +359,10 @@ export interface Project {
346
359
  repoAddedBy?: string;
347
360
  pipelineCounts?: Record<string, number>;
348
361
  needSetup?: boolean;
362
+ projectType?: "app" | "repo-indexing";
349
363
  domains?: string[];
364
+ accessMode?: "public" | "private";
365
+ projectAccess?: ProjectAccessControl;
350
366
  settings: {
351
367
  isNativeApp?: boolean;
352
368
  autoDetectDevServer?: boolean;
@@ -1,5 +1,5 @@
1
1
  export type StoreComponentDocsInput = StoreComponentDocsInputV1 | StoreComponentDocsInputV2 | IndexDocumentV1;
2
- export type IndexDocumentV1 = ComponentDocument | TokenDocument | IconDocument | AgentDocument;
2
+ export type IndexDocumentV1 = ComponentDocument | TokenDocument | IconDocument | AgentDocument | InstallationDocument;
3
3
  export interface ComponentDocument extends DocumentBase {
4
4
  type: "component";
5
5
  relatedComponents: string[];
@@ -18,6 +18,10 @@ export interface IconDocument extends DocumentBase {
18
18
  export interface AgentDocument extends DocumentBase {
19
19
  type: "agent";
20
20
  }
21
+ export interface InstallationDocument extends DocumentBase {
22
+ type: "installation";
23
+ hash: string;
24
+ }
21
25
  export interface DocumentBase {
22
26
  id?: string;
23
27
  name: string;
@@ -33,6 +37,7 @@ export declare const isAgentDocument: (doc: IndexDocumentV1) => doc is AgentDocu
33
37
  export declare const isIconDocument: (doc: IndexDocumentV1) => doc is IconDocument;
34
38
  export declare const isTokenDocument: (doc: IndexDocumentV1) => doc is TokenDocument;
35
39
  export declare const isComponentDocument: (doc: IndexDocumentV1) => doc is ComponentDocument;
40
+ export declare const isInstallationDocument: (doc: IndexDocumentV1) => doc is InstallationDocument;
36
41
  /**
37
42
  * @deprecated
38
43
  * While some documents may still use this format, new documents should use the
@@ -10,3 +10,6 @@ export const isTokenDocument = (doc) => {
10
10
  export const isComponentDocument = (doc) => {
11
11
  return doc.type === "component";
12
12
  };
13
+ export const isInstallationDocument = (doc) => {
14
+ return doc.type === "installation";
15
+ };