@builder.io/ai-utils 0.90.0 → 0.91.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/builder-config.d.ts +7 -2
- package/src/builder-config.js +7 -2
- package/src/design-systems.d.ts +23 -0
- package/src/design-systems.js +26 -0
- package/src/events.d.ts +2 -0
- package/src/organization.d.ts +1 -1
- package/src/repo-indexing.d.ts +10 -1
package/package.json
CHANGED
package/src/builder-config.d.ts
CHANGED
|
@@ -36,9 +36,14 @@ export declare const BuilderConfigHostingSchema: z.ZodObject<{
|
|
|
36
36
|
export type BuilderConfigHosting = z.infer<typeof BuilderConfigHostingSchema>;
|
|
37
37
|
/**
|
|
38
38
|
* `realtime` block in `builder.config.json` — selects the change-notification
|
|
39
|
-
* delivery transport. `"local"`
|
|
39
|
+
* delivery transport. `"local"` keeps sync on the app's own
|
|
40
40
|
* `/_agent-native/poll` + `/_agent-native/events`; `"hosted"` routes clients to
|
|
41
|
-
* the Builder Realtime Gateway.
|
|
41
|
+
* the Builder Realtime Gateway.
|
|
42
|
+
*
|
|
43
|
+
* The block is optional and rarely present: rollout is driven by the
|
|
44
|
+
* `agent-native-realtime-enabled` LD flag, and a project with no block follows
|
|
45
|
+
* the flag. Setting `"local"` is how a project opts out of that. Read by the
|
|
46
|
+
* backend provisioning path only —
|
|
42
47
|
* it is never shipped to the browser (the client learns transport via the
|
|
43
48
|
* impersonal `window.__AGENT_NATIVE_CONFIG__` script). See the Agent-Native
|
|
44
49
|
* Realtime Sync spec.
|
package/src/builder-config.js
CHANGED
|
@@ -59,9 +59,14 @@ export const BuilderConfigHostingSchema = z.object({
|
|
|
59
59
|
});
|
|
60
60
|
/**
|
|
61
61
|
* `realtime` block in `builder.config.json` — selects the change-notification
|
|
62
|
-
* delivery transport. `"local"`
|
|
62
|
+
* delivery transport. `"local"` keeps sync on the app's own
|
|
63
63
|
* `/_agent-native/poll` + `/_agent-native/events`; `"hosted"` routes clients to
|
|
64
|
-
* the Builder Realtime Gateway.
|
|
64
|
+
* the Builder Realtime Gateway.
|
|
65
|
+
*
|
|
66
|
+
* The block is optional and rarely present: rollout is driven by the
|
|
67
|
+
* `agent-native-realtime-enabled` LD flag, and a project with no block follows
|
|
68
|
+
* the flag. Setting `"local"` is how a project opts out of that. Read by the
|
|
69
|
+
* backend provisioning path only —
|
|
65
70
|
* it is never shipped to the browser (the client learns transport via the
|
|
66
71
|
* impersonal `window.__AGENT_NATIVE_CONFIG__` script). See the Agent-Native
|
|
67
72
|
* Realtime Sync spec.
|
package/src/design-systems.d.ts
CHANGED
|
@@ -86,6 +86,29 @@ export interface UploadStartResponse {
|
|
|
86
86
|
jobId: string;
|
|
87
87
|
uploads: UploadStartResponseItem[];
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* The UI framework a design system's components are authored for. This value is
|
|
91
|
+
* set when generating the installation document.
|
|
92
|
+
*/
|
|
93
|
+
export declare const designSystemFrameworkSchema: z.ZodEnum<{
|
|
94
|
+
angular: "angular";
|
|
95
|
+
flutter: "flutter";
|
|
96
|
+
html: "html";
|
|
97
|
+
"jetpack-compose": "jetpack-compose";
|
|
98
|
+
lit: "lit";
|
|
99
|
+
preact: "preact";
|
|
100
|
+
qwik: "qwik";
|
|
101
|
+
react: "react";
|
|
102
|
+
"react-native": "react-native";
|
|
103
|
+
solid: "solid";
|
|
104
|
+
stencil: "stencil";
|
|
105
|
+
svelte: "svelte";
|
|
106
|
+
swiftui: "swiftui";
|
|
107
|
+
vue: "vue";
|
|
108
|
+
"web-components": "web-components";
|
|
109
|
+
}>;
|
|
110
|
+
export type DesignSystemFramework = z.infer<typeof designSystemFrameworkSchema>;
|
|
111
|
+
export declare function normalizeDesignSystemFramework(value: unknown): DesignSystemFramework | undefined;
|
|
89
112
|
export declare const indexDesignSystemScopeSchema: z.ZodEnum<{
|
|
90
113
|
global: "global";
|
|
91
114
|
organization: "organization";
|
package/src/design-systems.js
CHANGED
|
@@ -50,6 +50,32 @@ export const uploadTokenPayloadSchema = z.object({
|
|
|
50
50
|
idx: z.number().int().nonnegative(),
|
|
51
51
|
declaredSize: z.number().int().nonnegative().optional(),
|
|
52
52
|
});
|
|
53
|
+
/**
|
|
54
|
+
* The UI framework a design system's components are authored for. This value is
|
|
55
|
+
* set when generating the installation document.
|
|
56
|
+
*/
|
|
57
|
+
export const designSystemFrameworkSchema = z.enum([
|
|
58
|
+
"react",
|
|
59
|
+
"react-native",
|
|
60
|
+
"vue",
|
|
61
|
+
"angular",
|
|
62
|
+
"svelte",
|
|
63
|
+
"solid",
|
|
64
|
+
"preact",
|
|
65
|
+
"qwik",
|
|
66
|
+
"lit",
|
|
67
|
+
"stencil",
|
|
68
|
+
"web-components",
|
|
69
|
+
"swiftui",
|
|
70
|
+
"jetpack-compose",
|
|
71
|
+
"flutter",
|
|
72
|
+
"html",
|
|
73
|
+
]);
|
|
74
|
+
export function normalizeDesignSystemFramework(value) {
|
|
75
|
+
if (typeof value !== "string")
|
|
76
|
+
return undefined;
|
|
77
|
+
return designSystemFrameworkSchema.safeParse(value.trim().toLowerCase()).data;
|
|
78
|
+
}
|
|
53
79
|
export const indexDesignSystemScopeSchema = z.enum([
|
|
54
80
|
"space",
|
|
55
81
|
"organization",
|
package/src/events.d.ts
CHANGED
|
@@ -1181,6 +1181,8 @@ export type PrReviewRequestedV1 = FusionEventVariant<"pr.review.requested", {
|
|
|
1181
1181
|
prAuthorGithubUsername?: string;
|
|
1182
1182
|
prAuthorIsBot?: boolean;
|
|
1183
1183
|
forceBrowserTesting?: boolean;
|
|
1184
|
+
/** Grants this single review round an exemption from the per-PR cost cap. */
|
|
1185
|
+
costCapOverride?: boolean;
|
|
1184
1186
|
}, {}, 1>;
|
|
1185
1187
|
export declare const PrReviewRequestedV1: {
|
|
1186
1188
|
eventName: "pr.review.requested";
|
package/src/organization.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ interface OrganizationSettings {
|
|
|
78
78
|
enableModelValidationHooks?: boolean;
|
|
79
79
|
enableOrgInsights?: boolean;
|
|
80
80
|
enableBuilderHosting?: boolean;
|
|
81
|
-
|
|
81
|
+
disableFusionHosting?: boolean;
|
|
82
82
|
netlifyAXPartnerAccountId?: string;
|
|
83
83
|
netlifyAXPartnerAccountSlug?: string;
|
|
84
84
|
allowLegacyPlanSubscriptions?: boolean;
|
package/src/repo-indexing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FullLibrarySourceInput } from "./design-systems.js";
|
|
1
|
+
import type { DesignSystemFramework, FullLibrarySourceInput } from "./design-systems.js";
|
|
2
2
|
export type StoreComponentDocsInput = StoreComponentDocsInputV1 | StoreComponentDocsInputV2 | IndexDocumentV1;
|
|
3
3
|
export type ComponentDocSource = "full" | "approximation";
|
|
4
4
|
export interface ManualDocumentV1 {
|
|
@@ -117,6 +117,8 @@ export interface UpdateDesignSystemInput {
|
|
|
117
117
|
scope?: DesignSystemScope;
|
|
118
118
|
designSystemPackage?: string;
|
|
119
119
|
designSystemVersion?: string;
|
|
120
|
+
/** UI framework the library targets, as reported during indexing. */
|
|
121
|
+
framework?: DesignSystemFramework;
|
|
120
122
|
status?: "in-progress" | "completed" | "failed";
|
|
121
123
|
source?: "auto" | "custom";
|
|
122
124
|
}
|
|
@@ -138,6 +140,13 @@ export interface DesignSystem {
|
|
|
138
140
|
designSystemName: string;
|
|
139
141
|
designSystemVersion?: string;
|
|
140
142
|
designSystemPackage?: string;
|
|
143
|
+
/**
|
|
144
|
+
* UI framework the indexed library targets, as reported by the
|
|
145
|
+
* installation-discovery agent. Absent on design systems indexed before
|
|
146
|
+
* framework detection shipped, on designs-only (Figma) design systems, which
|
|
147
|
+
* have no code to detect from, and whenever the agent couldn't tell.
|
|
148
|
+
*/
|
|
149
|
+
framework?: DesignSystemFramework;
|
|
141
150
|
status: "in-progress" | "completed" | "failed";
|
|
142
151
|
scope: DesignSystemScope;
|
|
143
152
|
deprecated: boolean;
|