builder.io 1.11.40 → 1.11.42
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/cli/index.cjs +440 -481
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +2 -3
- package/server/index.cjs +115 -169
- package/server/index.mjs +125 -179
- package/types/cli/credentials.d.ts +1 -1
- package/types/cli/launch/dev-server-orchestrator.d.ts +2 -2
- package/types/cli/launch/proxy.d.ts +2 -2
- package/types/cli/repo-indexing/component-indexing.d.ts +1 -2
- package/types/cli/repo-indexing/repo-indexing.d.ts +2 -2
- package/types/cli/repo-indexing/types.d.ts +0 -5
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types/codegen-server.d.ts +14 -0
- package/types/types/connection-tracker.d.ts +24 -0
- package/types/types/proxy-middleware.d.ts +31 -0
- package/types/types/websocket-types.d.ts +17 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../types";
|
|
2
2
|
import type { CLIArgs } from "./index";
|
|
3
|
+
import type { Feature } from "$/ai-utils";
|
|
3
4
|
export interface CredentialsOptions {
|
|
4
5
|
forceSpaceId?: string;
|
|
5
6
|
builderPublicKey?: boolean;
|
|
@@ -11,7 +12,6 @@ export interface FigmaAuth {
|
|
|
11
12
|
access_token: string;
|
|
12
13
|
oauth: boolean;
|
|
13
14
|
}
|
|
14
|
-
export type Feature = "component-mapping";
|
|
15
15
|
export interface BuilderCodegenUsage {
|
|
16
16
|
total: number | undefined;
|
|
17
17
|
fast: number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
-
import
|
|
2
|
+
import type { ProxyMiddleware } from "../../types/proxy-middleware";
|
|
3
3
|
import type { DevCommandState, EnvironmentVariable, HttpServerState } from "$/ai-utils";
|
|
4
4
|
import EventEmitter from "events";
|
|
5
5
|
import { ChildProcess } from "node:child_process";
|
|
@@ -22,7 +22,7 @@ export interface DevServerOrchestrator {
|
|
|
22
22
|
proxyPort: number;
|
|
23
23
|
environmentVariables: EnvironmentVariable[];
|
|
24
24
|
envVars: Record<string, string>;
|
|
25
|
-
proxyMiddleware:
|
|
25
|
+
proxyMiddleware: ProxyMiddleware | undefined;
|
|
26
26
|
pid: number | undefined;
|
|
27
27
|
autoDetectedUrl: string | undefined;
|
|
28
28
|
abortSetupCommand: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type RequestHandler } from "http-proxy-middleware";
|
|
2
1
|
import type { DevToolsSys } from "types";
|
|
3
|
-
|
|
2
|
+
import type { ProxyMiddleware } from "../../types/proxy-middleware";
|
|
3
|
+
export declare const createProxy: (serverUrl: string, sys: DevToolsSys) => ProxyMiddleware;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../types";
|
|
2
2
|
import type { Credentials } from "../credentials";
|
|
3
|
-
import type { Component
|
|
3
|
+
import type { Component } from "./types";
|
|
4
4
|
import type { WorkspaceConfiguration } from "$/ai-utils";
|
|
5
5
|
export declare const processComponent: (sys: DevToolsSys, credentials: Credentials, sessionId: string, component: Component, opts?: {
|
|
6
6
|
designSystemId?: string | null;
|
|
@@ -9,7 +9,6 @@ export declare const processComponent: (sys: DevToolsSys, credentials: Credentia
|
|
|
9
9
|
retriesAllowed?: number;
|
|
10
10
|
workspaceConfig?: WorkspaceConfiguration;
|
|
11
11
|
debug?: boolean;
|
|
12
|
-
onIssue?: (issue: ComponentIssue) => void;
|
|
13
12
|
}) => Promise<void>;
|
|
14
13
|
export declare const processAgent: (sys: DevToolsSys, credentials: Credentials, discoveredComponents: Component[], opts?: {
|
|
15
14
|
designSystemId?: string | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../types";
|
|
2
2
|
import type { CLIArgs } from "../index";
|
|
3
3
|
import { type Credentials } from "../credentials";
|
|
4
|
-
import type { Component
|
|
5
|
-
export declare const displayComponentLibrarySummary: (components: Component[], indexedComponents: Component[], startTime: number,
|
|
4
|
+
import type { Component } from "./types";
|
|
5
|
+
export declare const displayComponentLibrarySummary: (components: Component[], indexedComponents: Component[], startTime: number, failedComponents: string[] | undefined, isForce: boolean | undefined, designSystemName: string, designSystemId?: string) => void;
|
|
6
6
|
export interface RepoIndexingDoc {
|
|
7
7
|
name: string;
|
|
8
8
|
content: string | {
|