@builder.io/ai-utils 0.11.35 → 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 +1 -1
- package/src/codegen.d.ts +18 -0
- package/src/organization.d.ts +2 -0
- package/src/projects.d.ts +16 -0
- package/src/repo-indexing.d.ts +43 -1
- package/src/repo-indexing.js +15 -1
package/package.json
CHANGED
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;
|
package/src/organization.d.ts
CHANGED
|
@@ -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;
|
package/src/repo-indexing.d.ts
CHANGED
|
@@ -1,4 +1,43 @@
|
|
|
1
|
-
export type StoreComponentDocsInput = StoreComponentDocsInputV1 | StoreComponentDocsInputV2;
|
|
1
|
+
export type StoreComponentDocsInput = StoreComponentDocsInputV1 | StoreComponentDocsInputV2 | IndexDocumentV1;
|
|
2
|
+
export type IndexDocumentV1 = ComponentDocument | TokenDocument | IconDocument | AgentDocument | InstallationDocument;
|
|
3
|
+
export interface ComponentDocument extends DocumentBase {
|
|
4
|
+
type: "component";
|
|
5
|
+
relatedComponents: string[];
|
|
6
|
+
relevantFiles: string[];
|
|
7
|
+
hash: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TokenDocument extends DocumentBase {
|
|
10
|
+
type: "token";
|
|
11
|
+
hash: string;
|
|
12
|
+
relevantFiles: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface IconDocument extends DocumentBase {
|
|
15
|
+
type: "icon";
|
|
16
|
+
hash: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AgentDocument extends DocumentBase {
|
|
19
|
+
type: "agent";
|
|
20
|
+
}
|
|
21
|
+
export interface InstallationDocument extends DocumentBase {
|
|
22
|
+
type: "installation";
|
|
23
|
+
hash: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DocumentBase {
|
|
26
|
+
id?: string;
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
content: string;
|
|
30
|
+
designSystemId: string;
|
|
31
|
+
designSystemPackage?: string;
|
|
32
|
+
designSystemVersion?: string;
|
|
33
|
+
tokens?: number;
|
|
34
|
+
sessionId?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const isAgentDocument: (doc: IndexDocumentV1) => doc is AgentDocument;
|
|
37
|
+
export declare const isIconDocument: (doc: IndexDocumentV1) => doc is IconDocument;
|
|
38
|
+
export declare const isTokenDocument: (doc: IndexDocumentV1) => doc is TokenDocument;
|
|
39
|
+
export declare const isComponentDocument: (doc: IndexDocumentV1) => doc is ComponentDocument;
|
|
40
|
+
export declare const isInstallationDocument: (doc: IndexDocumentV1) => doc is InstallationDocument;
|
|
2
41
|
/**
|
|
3
42
|
* @deprecated
|
|
4
43
|
* While some documents may still use this format, new documents should use the
|
|
@@ -21,6 +60,9 @@ interface StoreComponentDocsInputV1 {
|
|
|
21
60
|
hash?: string;
|
|
22
61
|
designSystemId?: string;
|
|
23
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated
|
|
65
|
+
*/
|
|
24
66
|
interface StoreComponentDocsInputV2 {
|
|
25
67
|
id?: string;
|
|
26
68
|
ownerId?: string;
|
package/src/repo-indexing.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export const isAgentDocument = (doc) => {
|
|
2
|
+
return doc.type === "agent";
|
|
3
|
+
};
|
|
4
|
+
export const isIconDocument = (doc) => {
|
|
5
|
+
return doc.type === "icon";
|
|
6
|
+
};
|
|
7
|
+
export const isTokenDocument = (doc) => {
|
|
8
|
+
return doc.type === "token";
|
|
9
|
+
};
|
|
10
|
+
export const isComponentDocument = (doc) => {
|
|
11
|
+
return doc.type === "component";
|
|
12
|
+
};
|
|
13
|
+
export const isInstallationDocument = (doc) => {
|
|
14
|
+
return doc.type === "installation";
|
|
15
|
+
};
|