builder.io 1.11.39 → 1.11.41
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 +415 -451
- 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/backup.d.ts +3 -1
- package/types/cli/credentials.d.ts +1 -1
- package/types/cli/launch/InitStateMachine.d.ts +1 -0
- package/types/cli/launch/dev-server-orchestrator.d.ts +2 -2
- package/types/cli/launch/proxy.d.ts +2 -2
- package/types/cli/utils/git.d.ts +11 -0
- 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
package/types/cli/backup.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ type InitialCommitHashResult = {
|
|
|
53
53
|
* For partial backups, we fetch the latest state of the chosen upstream branch from origin
|
|
54
54
|
* to ensure the backup has the correct commit range reference.
|
|
55
55
|
*/
|
|
56
|
-
export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, forcedFullBackup, }: {
|
|
56
|
+
export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, forcedFullBackup, credentials, projectId, }: {
|
|
57
57
|
sys: DevToolsSys;
|
|
58
58
|
repoPath: string;
|
|
59
59
|
featureBranch: string;
|
|
@@ -61,6 +61,8 @@ export declare function getInitialCommitHash({ sys, repoPath, featureBranch, deb
|
|
|
61
61
|
workspace: WorkspaceConfiguration | undefined;
|
|
62
62
|
isConnectedToProvider: boolean;
|
|
63
63
|
forcedFullBackup: boolean;
|
|
64
|
+
credentials: Credentials;
|
|
65
|
+
projectId: string;
|
|
64
66
|
}): Promise<InitialCommitHashResult>;
|
|
65
67
|
/**
|
|
66
68
|
* Requests a signed upload URL for git backup
|
|
@@ -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;
|
package/types/cli/utils/git.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { DevToolsSys } from "types";
|
|
2
|
+
import type { Credentials } from "../credentials";
|
|
3
|
+
import type { GitConfigs } from "$/ai-utils";
|
|
2
4
|
export interface RunCommandOptions {
|
|
3
5
|
cwd?: string;
|
|
4
6
|
debug?: boolean;
|
|
@@ -7,5 +9,14 @@ export interface RunCommandOptions {
|
|
|
7
9
|
stdin?: string;
|
|
8
10
|
retry?: number;
|
|
9
11
|
}
|
|
12
|
+
type FetchGitConfigsResult = {
|
|
13
|
+
success: true;
|
|
14
|
+
gitConfigs: GitConfigs;
|
|
15
|
+
} | {
|
|
16
|
+
success: false;
|
|
17
|
+
error: Error;
|
|
18
|
+
};
|
|
10
19
|
export declare function runCommand(cmd: string, args: string[], opts: RunCommandOptions): Promise<string>;
|
|
11
20
|
export declare const isGitRepoCorrupted: (stdout: string, stderr: string) => boolean;
|
|
21
|
+
export declare function fetchGitConfigs(credentials: Credentials, projectId: string): Promise<FetchGitConfigsResult>;
|
|
22
|
+
export {};
|