alpic 0.0.0-dev.fe3e667 → 0.0.0-dev.fe55b2c
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/dist/__tests__/auth.e2e.test.js +11 -11
- package/dist/__tests__/auth.e2e.test.js.map +1 -1
- package/dist/__tests__/deploy-flags.e2e.test.d.ts +1 -0
- package/dist/__tests__/deploy-flags.e2e.test.js +111 -0
- package/dist/__tests__/deploy-flags.e2e.test.js.map +1 -0
- package/dist/__tests__/deploy.e2e.test.js +2 -51
- package/dist/__tests__/deploy.e2e.test.js.map +1 -1
- package/dist/__tests__/environment-variable/environment-variable-add.e2e.test.d.ts +1 -0
- package/dist/__tests__/environment-variable/environment-variable-add.e2e.test.js +250 -0
- package/dist/__tests__/environment-variable/environment-variable-add.e2e.test.js.map +1 -0
- package/dist/__tests__/environment-variable/environment-variable-list.e2e.test.d.ts +1 -0
- package/dist/__tests__/environment-variable/environment-variable-list.e2e.test.js +121 -0
- package/dist/__tests__/environment-variable/environment-variable-list.e2e.test.js.map +1 -0
- package/dist/__tests__/environment-variable/environment-variable-remove.e2e.test.d.ts +1 -0
- package/dist/__tests__/environment-variable/environment-variable-remove.e2e.test.js +139 -0
- package/dist/__tests__/environment-variable/environment-variable-remove.e2e.test.js.map +1 -0
- package/dist/__tests__/environment-variable/environment-variable-update.e2e.test.d.ts +1 -0
- package/dist/__tests__/environment-variable/environment-variable-update.e2e.test.js +319 -0
- package/dist/__tests__/environment-variable/environment-variable-update.e2e.test.js.map +1 -0
- package/dist/__tests__/environment-variable/environment-variable-validation.test.d.ts +1 -0
- package/dist/__tests__/environment-variable/environment-variable-validation.test.js +20 -0
- package/dist/__tests__/environment-variable/environment-variable-validation.test.js.map +1 -0
- package/dist/__tests__/fixtures/demo-project/index.js +1 -1
- package/dist/__tests__/fixtures/demo-project/index.js.map +1 -1
- package/dist/__tests__/git-flags.e2e.test.d.ts +1 -0
- package/dist/__tests__/git-flags.e2e.test.js +124 -0
- package/dist/__tests__/git-flags.e2e.test.js.map +1 -0
- package/dist/__tests__/git.e2e.test.js +15 -12
- package/dist/__tests__/git.e2e.test.js.map +1 -1
- package/dist/__tests__/mock-server.d.ts +1 -0
- package/dist/__tests__/mock-server.js +95 -4
- package/dist/__tests__/mock-server.js.map +1 -1
- package/dist/__tests__/utils.d.ts +10 -4
- package/dist/__tests__/utils.js +75 -17
- package/dist/__tests__/utils.js.map +1 -1
- package/dist/commands/deploy.d.ts +5 -2
- package/dist/commands/deploy.js +37 -19
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/environment-variable/add.d.ts +14 -0
- package/dist/commands/environment-variable/add.js +46 -0
- package/dist/commands/environment-variable/add.js.map +1 -0
- package/dist/commands/environment-variable/list.d.ts +9 -0
- package/dist/commands/environment-variable/list.js +44 -0
- package/dist/commands/environment-variable/list.js.map +1 -0
- package/dist/commands/environment-variable/remove.d.ts +11 -0
- package/dist/commands/environment-variable/remove.js +32 -0
- package/dist/commands/environment-variable/remove.js.map +1 -0
- package/dist/commands/environment-variable/update.d.ts +13 -0
- package/dist/commands/environment-variable/update.js +40 -0
- package/dist/commands/environment-variable/update.js.map +1 -0
- package/dist/commands/git/connect.d.ts +3 -2
- package/dist/commands/git/connect.js +26 -27
- package/dist/commands/git/connect.js.map +1 -1
- package/dist/commands/git/disconnect.d.ts +2 -2
- package/dist/commands/git/disconnect.js +16 -26
- package/dist/commands/git/disconnect.js.map +1 -1
- package/dist/commands/git.js +2 -2
- package/dist/commands/git.js.map +1 -1
- package/dist/commands/login.js +2 -9
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/whoami.js +2 -14
- package/dist/commands/whoami.js.map +1 -1
- package/dist/env.js +1 -1
- package/dist/env.js.map +1 -1
- package/dist/lib/alpic-command.d.ts +2 -0
- package/dist/lib/alpic-command.js +13 -3
- package/dist/lib/alpic-command.js.map +1 -1
- package/dist/lib/archive.d.ts +3 -3
- package/dist/lib/archive.js +11 -15
- package/dist/lib/archive.js.map +1 -1
- package/dist/lib/auth/whoami.d.ts +1 -28
- package/dist/lib/auth/whoami.js +24 -18
- package/dist/lib/auth/whoami.js.map +1 -1
- package/dist/lib/base-workflow.d.ts +10 -0
- package/dist/lib/base-workflow.js +22 -0
- package/dist/lib/base-workflow.js.map +1 -0
- package/dist/lib/config.d.ts +2 -2
- package/dist/lib/config.js +7 -7
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/deployment.js +0 -1
- package/dist/lib/deployment.js.map +1 -1
- package/dist/lib/environment-variable.d.ts +41 -0
- package/dist/lib/environment-variable.js +304 -0
- package/dist/lib/environment-variable.js.map +1 -0
- package/dist/lib/git.d.ts +12 -4
- package/dist/lib/git.js +51 -25
- package/dist/lib/git.js.map +1 -1
- package/dist/lib/global-store.d.ts +1 -1
- package/dist/lib/global-store.js +4 -3
- package/dist/lib/global-store.js.map +1 -1
- package/dist/lib/project.d.ts +65 -61
- package/dist/lib/project.js +264 -254
- package/dist/lib/project.js.map +1 -1
- package/dist/lib/table.d.ts +8 -0
- package/dist/lib/table.js +27 -0
- package/dist/lib/table.js.map +1 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.js +17 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/utils.test.d.ts +1 -0
- package/dist/lib/utils.test.js +14 -0
- package/dist/lib/utils.test.js.map +1 -0
- package/package.json +17 -15
package/dist/lib/project.d.ts
CHANGED
|
@@ -1,67 +1,71 @@
|
|
|
1
|
-
import type { RouterOutput } from "@alpic-ai/api";
|
|
1
|
+
import type { RouterOutput, Runtime } from "@alpic-ai/api";
|
|
2
2
|
import type { ProjectConfig } from "../types.js";
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
id: string;
|
|
14
|
-
status: "ongoing" | "deployed" | "failed" | "canceled";
|
|
15
|
-
sourceCommitId: string | null;
|
|
16
|
-
sourceCommitMessage: string | null;
|
|
17
|
-
completedAt: Date | null;
|
|
18
|
-
} | null;
|
|
19
|
-
} | null>;
|
|
20
|
-
export declare function confirmDeployDirectory(deployDir: string): Promise<boolean>;
|
|
21
|
-
export declare function confirmLinkExisting(): Promise<boolean>;
|
|
22
|
-
export declare function confirmLinkToAnotherProject(): Promise<boolean>;
|
|
23
|
-
export declare function selectProjectFromList(projects: RouterOutput["projects"]["list"]["v1"]): Promise<{
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
teamId: string;
|
|
27
|
-
sourceRepository: string | null;
|
|
28
|
-
runtime: "python3.13" | "python3.14" | "node22" | "node24";
|
|
29
|
-
transport: "stdio" | "sse" | "streamablehttp" | null;
|
|
30
|
-
rootDirectory: string | null;
|
|
31
|
-
buildCommand: string | null;
|
|
32
|
-
buildOutputDir: string | null;
|
|
33
|
-
installCommand: string | null;
|
|
34
|
-
startCommand: string | null;
|
|
35
|
-
createdAt: Date;
|
|
36
|
-
productionEnvironment: {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
mcpServerUrl: string;
|
|
40
|
-
latestDeployment: {
|
|
41
|
-
id: string;
|
|
42
|
-
status: "ongoing" | "deployed" | "failed" | "canceled";
|
|
43
|
-
sourceCommitId: string | null;
|
|
44
|
-
sourceCommitMessage: string | null;
|
|
45
|
-
completedAt: Date | null;
|
|
46
|
-
} | null;
|
|
47
|
-
} | null;
|
|
48
|
-
environments: {
|
|
3
|
+
import { BaseWorkflow } from "./base-workflow.js";
|
|
4
|
+
export type ProjectFlags = {
|
|
5
|
+
"non-interactive"?: boolean;
|
|
6
|
+
projectName?: string;
|
|
7
|
+
runtime?: Runtime;
|
|
8
|
+
rootDir?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class ProjectWorkflow extends BaseWorkflow<ProjectFlags> {
|
|
11
|
+
selectEnvironmentFromList(environments: RouterOutput["projects"]["get"]["v1"]["environments"]): Promise<(typeof environments)[number] | null>;
|
|
12
|
+
selectProjectFromList(projects: RouterOutput["projects"]["list"]["v1"]): Promise<{
|
|
49
13
|
id: string;
|
|
50
14
|
name: string;
|
|
51
|
-
|
|
52
|
-
|
|
15
|
+
teamId: string;
|
|
16
|
+
sourceRepository: string | null;
|
|
17
|
+
runtime: "python3.13" | "python3.14" | "node22" | "node24";
|
|
18
|
+
transport: "stdio" | "sse" | "streamablehttp" | null;
|
|
19
|
+
rootDirectory: string | null;
|
|
20
|
+
buildCommand: string | null;
|
|
21
|
+
buildOutputDir: string | null;
|
|
22
|
+
installCommand: string | null;
|
|
23
|
+
startCommand: string | null;
|
|
53
24
|
createdAt: Date;
|
|
54
|
-
|
|
55
|
-
latestDeployment: {
|
|
25
|
+
productionEnvironment: {
|
|
56
26
|
id: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
27
|
+
name: string;
|
|
28
|
+
mcpServerUrl: string;
|
|
29
|
+
domains: {
|
|
30
|
+
domain: string;
|
|
31
|
+
status: "ongoing" | "deployed" | "failed";
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
}[];
|
|
34
|
+
latestDeployment: {
|
|
35
|
+
id: string;
|
|
36
|
+
status: "ongoing" | "deployed" | "failed" | "canceled";
|
|
37
|
+
sourceCommitId: string | null;
|
|
38
|
+
sourceCommitMessage: string | null;
|
|
39
|
+
completedAt: Date | null;
|
|
40
|
+
} | null;
|
|
61
41
|
} | null;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
42
|
+
environments: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
sourceBranch: string | null;
|
|
46
|
+
mcpServerUrl: string;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
projectId: string;
|
|
49
|
+
latestDeployment: {
|
|
50
|
+
id: string;
|
|
51
|
+
status: "ongoing" | "deployed" | "failed" | "canceled";
|
|
52
|
+
sourceCommitId: string | null;
|
|
53
|
+
sourceCommitMessage: string | null;
|
|
54
|
+
completedAt: Date | null;
|
|
55
|
+
} | null;
|
|
56
|
+
}[];
|
|
57
|
+
} | null>;
|
|
58
|
+
promptRootDirectory(): Promise<string | null>;
|
|
59
|
+
private directoryExists;
|
|
60
|
+
private detectRuntime;
|
|
61
|
+
confirmDeployWithExistingConfig(existingConfig: ProjectConfig): Promise<boolean | null>;
|
|
62
|
+
confirmDeployDirectory(): Promise<boolean>;
|
|
63
|
+
confirmLinkExisting(): Promise<boolean>;
|
|
64
|
+
confirmLinkToAnotherProject(): Promise<boolean>;
|
|
65
|
+
resolveProjectForDeploy(): Promise<(ProjectConfig & {
|
|
66
|
+
environmentId: string;
|
|
67
|
+
}) | null>;
|
|
68
|
+
private resolveEnvironmentForProject;
|
|
69
|
+
private runCreateProjectFlow;
|
|
70
|
+
private runLinkingFlow;
|
|
71
|
+
}
|