@alpic-ai/sdk 0.0.0-dev.gf521008 → 0.0.0-dev.gfa6fd7c
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/auth/index.d.ts +4 -0
- package/dist/auth/index.js +11 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.js +7 -0
- package/dist/client.js.map +1 -1
- package/dist/deploy/archive.d.ts +8 -0
- package/dist/deploy/archive.js +61 -0
- package/dist/deploy/archive.js.map +1 -0
- package/dist/deploy/deployments.d.ts +43 -0
- package/dist/deploy/deployments.js +89 -0
- package/dist/deploy/deployments.js.map +1 -0
- package/dist/deploy/poll.d.ts +2 -0
- package/dist/deploy/poll.js +10 -0
- package/dist/deploy/poll.js.map +1 -0
- package/dist/deploy/upload.d.ts +1 -0
- package/dist/deploy/upload.js +13 -0
- package/dist/deploy/upload.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/vendor/pipenet.js +10 -10
- package/dist/vendor/pipenet.js.map +1 -1
- package/dist/whoami.d.ts +15 -0
- package/dist/whoami.js +12 -0
- package/dist/whoami.js.map +1 -0
- package/package.json +3 -2
package/dist/auth/index.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export declare class AlpicAuth {
|
|
|
14
14
|
isAuthenticated(): Promise<boolean>;
|
|
15
15
|
getToken(): Promise<string | undefined>;
|
|
16
16
|
getUserAccessToken(): Promise<string | undefined>;
|
|
17
|
+
getUserInfo(): Promise<{
|
|
18
|
+
email: string | undefined;
|
|
19
|
+
name: string | undefined;
|
|
20
|
+
} | null>;
|
|
17
21
|
login(opts?: LoginOptions): Promise<{
|
|
18
22
|
sub: string;
|
|
19
23
|
}>;
|
package/dist/auth/index.js
CHANGED
|
@@ -22,6 +22,17 @@ export class AlpicAuth {
|
|
|
22
22
|
async getUserAccessToken() {
|
|
23
23
|
return (await getOAuthClient().getValidAccessToken())?.access_token;
|
|
24
24
|
}
|
|
25
|
+
async getUserInfo() {
|
|
26
|
+
const credentials = await getOAuthClient().getValidAccessToken();
|
|
27
|
+
if (!credentials) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
const userInfo = await getOAuthClient().fetchUserInfo(credentials);
|
|
31
|
+
if (!userInfo) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return { email: userInfo.email, name: userInfo.name };
|
|
35
|
+
}
|
|
25
36
|
async login(opts) {
|
|
26
37
|
const result = await oauthLogin(opts);
|
|
27
38
|
this.events.emit("authenticated", { sub: result.sub });
|
package/dist/auth/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAqB,UAAU,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAoB,WAAW,EAAE,MAAM,YAAY,CAAC;AAQ3D,MAAM,OAAO,SAAS;IACH,MAAM,GAAG,IAAI,iBAAiB,EAAc,CAAC;IAE9D,EAAE,CAA6B,KAAQ,EAAE,QAA0C;QACjF,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,GAAG,CAA6B,KAAQ,EAAE,QAA0C;QAClF,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,mBAAmB;QACvB,OAAO,cAAc,EAAE,CAAC,mBAAmB,EAAE,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,SAAS,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,OAA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lpicAuth } from "./auth/index.js";
|
|
3
|
+
import { Deployments } from "./deploy/deployments.js";
|
|
3
4
|
import { Tunnel } from "./tunnel/tunnel.js";
|
|
5
|
+
import { type WhoamiInfo } from "./whoami.js";
|
|
4
6
|
export declare class Alpic {
|
|
5
7
|
readonly auth: AlpicAuth;
|
|
6
8
|
readonly api: AlpicApi;
|
|
7
9
|
readonly tunnel: Tunnel;
|
|
10
|
+
readonly deployments: Deployments;
|
|
8
11
|
constructor();
|
|
12
|
+
whoami(): Promise<WhoamiInfo>;
|
|
9
13
|
}
|
package/dist/client.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { createApiClient } from "./api/client.js";
|
|
2
2
|
import { AlpicAuth } from "./auth/index.js";
|
|
3
|
+
import { Deployments } from "./deploy/deployments.js";
|
|
3
4
|
import { env } from "./env.js";
|
|
4
5
|
import { Tunnel } from "./tunnel/tunnel.js";
|
|
6
|
+
import { whoami } from "./whoami.js";
|
|
5
7
|
export class Alpic {
|
|
6
8
|
auth;
|
|
7
9
|
api;
|
|
8
10
|
tunnel;
|
|
11
|
+
deployments;
|
|
9
12
|
constructor() {
|
|
10
13
|
this.auth = new AlpicAuth();
|
|
11
14
|
this.api = createApiClient({
|
|
@@ -13,6 +16,10 @@ export class Alpic {
|
|
|
13
16
|
auth: this.auth,
|
|
14
17
|
});
|
|
15
18
|
this.tunnel = new Tunnel({ api: this.api });
|
|
19
|
+
this.deployments = new Deployments({ api: this.api });
|
|
20
|
+
}
|
|
21
|
+
whoami() {
|
|
22
|
+
return whoami(this.auth, this.api);
|
|
16
23
|
}
|
|
17
24
|
}
|
|
18
25
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAmB,MAAM,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,OAAO,KAAK;IACP,IAAI,CAAY;IAChB,GAAG,CAAW;IACd,MAAM,CAAS;IACf,WAAW,CAAc;IAElC;QACE,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,GAAG,GAAG,eAAe,CAAC;YACzB,UAAU,EAAE,GAAG,CAAC,kBAAkB;YAClC,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,MAAM;QACJ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function isExcluded(file: string): boolean;
|
|
2
|
+
export declare function ensureGitAvailable(): void;
|
|
3
|
+
export declare function getGitFiles(): string[];
|
|
4
|
+
export declare function getFilesToPack(): string[];
|
|
5
|
+
export declare function createTarArchive(files: string[]): Promise<{
|
|
6
|
+
tmpDir: string;
|
|
7
|
+
archivePath: string;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { execSync } from "node:child_process";
|
|
2
|
+
import { existsSync, mkdtempSync, rmSync } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { create as tarCreate } from "tar";
|
|
6
|
+
const GIT_FILES_MAX_BUFFER = 10 * 1024 * 1024;
|
|
7
|
+
const EXCLUDED_DIRS = new Set(["node_modules", ".venv", "venv", "__pycache__", ".git", "dist"]);
|
|
8
|
+
export function isExcluded(file) {
|
|
9
|
+
return file.split("/").some((segment) => EXCLUDED_DIRS.has(segment));
|
|
10
|
+
}
|
|
11
|
+
function isGitRepository() {
|
|
12
|
+
return existsSync(join(process.cwd(), ".git"));
|
|
13
|
+
}
|
|
14
|
+
export function ensureGitAvailable() {
|
|
15
|
+
try {
|
|
16
|
+
execSync("git --version", { stdio: "ignore" });
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
throw new Error("Git is required to deploy. Please install git and ensure it is available in your PATH.");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export function getGitFiles() {
|
|
23
|
+
const output = execSync("git ls-files -z --cached --others --exclude-standard -- .", {
|
|
24
|
+
encoding: "utf8",
|
|
25
|
+
maxBuffer: GIT_FILES_MAX_BUFFER,
|
|
26
|
+
});
|
|
27
|
+
const files = output
|
|
28
|
+
.split("\0")
|
|
29
|
+
.filter(Boolean)
|
|
30
|
+
.filter((file) => !isExcluded(file));
|
|
31
|
+
if (files.length === 0) {
|
|
32
|
+
throw new Error("No tracked or untracked files found. Ensure you are in a git repository with files to deploy.");
|
|
33
|
+
}
|
|
34
|
+
return files;
|
|
35
|
+
}
|
|
36
|
+
export function getFilesToPack() {
|
|
37
|
+
if (isGitRepository()) {
|
|
38
|
+
return getGitFiles();
|
|
39
|
+
}
|
|
40
|
+
ensureGitAvailable();
|
|
41
|
+
execSync("git init", { stdio: "ignore" });
|
|
42
|
+
try {
|
|
43
|
+
return getGitFiles();
|
|
44
|
+
}
|
|
45
|
+
finally {
|
|
46
|
+
rmSync(join(process.cwd(), ".git"), { recursive: true, force: true });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export async function createTarArchive(files) {
|
|
50
|
+
const tmpDir = mkdtempSync(join(tmpdir(), "alpic-deploy-"));
|
|
51
|
+
const archivePath = join(tmpDir, "source.tar.gz");
|
|
52
|
+
try {
|
|
53
|
+
await tarCreate({ gzip: true, file: archivePath }, files);
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
rmSync(tmpDir, { recursive: true, force: true });
|
|
57
|
+
throw error;
|
|
58
|
+
}
|
|
59
|
+
return { tmpDir, archivePath };
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=archive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive.js","sourceRoot":"","sources":["../../src/deploy/archive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,KAAK,CAAC;AAE1C,MAAM,oBAAoB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhG,MAAM,UAAU,UAAU,CA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,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,KAAe;IACpD,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAClD,IAAI,CAAC;QACH,MAAM,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,MAAM,KAAK,CAAC;IACd,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { RouterOutput } from "@alpic-ai/api";
|
|
2
|
+
import type { AlpicApi } from "../api/client.js";
|
|
3
|
+
export type Deployment = RouterOutput["deployments"]["get"]["v1"];
|
|
4
|
+
export type DeploymentStatus = Deployment["status"];
|
|
5
|
+
export type DeployOptions = {
|
|
6
|
+
environmentId: string;
|
|
7
|
+
teamId: string;
|
|
8
|
+
onProgress?: (event: DeployEvent) => void;
|
|
9
|
+
};
|
|
10
|
+
export type DeployResult = {
|
|
11
|
+
deploymentId: string;
|
|
12
|
+
status: DeploymentStatus;
|
|
13
|
+
mcpServerUrl: string;
|
|
14
|
+
domains: string[];
|
|
15
|
+
deploymentPageUrl: string | null;
|
|
16
|
+
elapsedMs: number;
|
|
17
|
+
};
|
|
18
|
+
export type DeployEvent = {
|
|
19
|
+
type: "collecting";
|
|
20
|
+
} | {
|
|
21
|
+
type: "collected";
|
|
22
|
+
fileCount: number;
|
|
23
|
+
} | {
|
|
24
|
+
type: "uploading";
|
|
25
|
+
} | {
|
|
26
|
+
type: "triggering";
|
|
27
|
+
} | {
|
|
28
|
+
type: "deploying";
|
|
29
|
+
status: DeploymentStatus;
|
|
30
|
+
elapsedMs: number;
|
|
31
|
+
deploymentPageUrl: string | null;
|
|
32
|
+
};
|
|
33
|
+
export type DeploymentsDeps = {
|
|
34
|
+
api: AlpicApi;
|
|
35
|
+
};
|
|
36
|
+
export declare class Deployments {
|
|
37
|
+
private readonly api;
|
|
38
|
+
constructor(deps: DeploymentsDeps);
|
|
39
|
+
getLatestForEnvironment(environmentId: string): Promise<Deployment>;
|
|
40
|
+
watch(deploymentId: string): Promise<Deployment>;
|
|
41
|
+
private pollUntilFinal;
|
|
42
|
+
deploy({ environmentId, teamId, onProgress }: DeployOptions): Promise<DeployResult>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { readFileSync, rmSync } from "node:fs";
|
|
2
|
+
import { createTarArchive, getFilesToPack } from "./archive.js";
|
|
3
|
+
import { pollIntervalMs, sleep } from "./poll.js";
|
|
4
|
+
import { uploadToPresignedUrl } from "./upload.js";
|
|
5
|
+
const FINAL_STATUSES = new Set(["deployed", "failed", "canceled"]);
|
|
6
|
+
const TIMEOUT_MS = 15 * 60 * 1000;
|
|
7
|
+
const DEPLOY_POLL_MS = 10_000;
|
|
8
|
+
const WATCH_POLL_MS = 3_000;
|
|
9
|
+
export class Deployments {
|
|
10
|
+
api;
|
|
11
|
+
constructor(deps) {
|
|
12
|
+
this.api = deps.api;
|
|
13
|
+
}
|
|
14
|
+
async getLatestForEnvironment(environmentId) {
|
|
15
|
+
const environment = await this.api.environments.get.v1({ environmentId });
|
|
16
|
+
const deployments = await this.api.deployments.list.v1({
|
|
17
|
+
projectId: environment.projectId,
|
|
18
|
+
environmentId,
|
|
19
|
+
});
|
|
20
|
+
const latest = deployments[0];
|
|
21
|
+
if (!latest) {
|
|
22
|
+
throw new Error(`No deployments found for environment ${environmentId}.`);
|
|
23
|
+
}
|
|
24
|
+
return latest;
|
|
25
|
+
}
|
|
26
|
+
watch(deploymentId) {
|
|
27
|
+
return this.pollUntilFinal(deploymentId, WATCH_POLL_MS);
|
|
28
|
+
}
|
|
29
|
+
async pollUntilFinal(deploymentId, intervalMs) {
|
|
30
|
+
const startedAt = Date.now();
|
|
31
|
+
let current = await this.api.deployments.get.v1({ deploymentId });
|
|
32
|
+
while (!FINAL_STATUSES.has(current.status)) {
|
|
33
|
+
if (Date.now() - startedAt >= TIMEOUT_MS) {
|
|
34
|
+
throw new Error("Deployment did not reach a final state within 15 minutes.");
|
|
35
|
+
}
|
|
36
|
+
await sleep(pollIntervalMs(intervalMs));
|
|
37
|
+
current = await this.api.deployments.get.v1({ deploymentId });
|
|
38
|
+
}
|
|
39
|
+
return current;
|
|
40
|
+
}
|
|
41
|
+
async deploy({ environmentId, teamId, onProgress }) {
|
|
42
|
+
const emit = onProgress ?? (() => { });
|
|
43
|
+
let tmpDir;
|
|
44
|
+
const startedAt = Date.now();
|
|
45
|
+
try {
|
|
46
|
+
emit({ type: "collecting" });
|
|
47
|
+
const files = getFilesToPack();
|
|
48
|
+
emit({ type: "collected", fileCount: files.length });
|
|
49
|
+
const archive = await createTarArchive(files);
|
|
50
|
+
tmpDir = archive.tmpDir;
|
|
51
|
+
const { uploadUrl, token } = await this.api.deployments.uploadArtifact.v1({ teamId });
|
|
52
|
+
emit({ type: "uploading" });
|
|
53
|
+
await uploadToPresignedUrl(uploadUrl, readFileSync(archive.archivePath));
|
|
54
|
+
emit({ type: "triggering" });
|
|
55
|
+
const initial = await this.api.environments.deploy.v1({ environmentId, token });
|
|
56
|
+
let deployment = initial;
|
|
57
|
+
const deploymentPageUrl = deployment.deploymentPageUrl ?? null;
|
|
58
|
+
const emitDeploying = () => emit({ type: "deploying", status: deployment.status, elapsedMs: Date.now() - startedAt, deploymentPageUrl });
|
|
59
|
+
emitDeploying();
|
|
60
|
+
while (deployment.status === "ongoing") {
|
|
61
|
+
if (Date.now() - startedAt >= TIMEOUT_MS) {
|
|
62
|
+
throw new Error(deploymentPageUrl
|
|
63
|
+
? `Deployment aborted after 15 minutes. View status: ${deploymentPageUrl}`
|
|
64
|
+
: "Deployment aborted after 15 minutes.");
|
|
65
|
+
}
|
|
66
|
+
deployment = await this.api.deployments.get.v1({ deploymentId: deployment.id });
|
|
67
|
+
emitDeploying();
|
|
68
|
+
if (deployment.status === "ongoing") {
|
|
69
|
+
await sleep(pollIntervalMs(DEPLOY_POLL_MS));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const environment = await this.api.environments.get.v1({ environmentId });
|
|
73
|
+
return {
|
|
74
|
+
deploymentId: deployment.id,
|
|
75
|
+
status: deployment.status,
|
|
76
|
+
mcpServerUrl: environment.mcpServerUrl,
|
|
77
|
+
domains: environment.domains,
|
|
78
|
+
deploymentPageUrl: deployment.deploymentPageUrl ?? null,
|
|
79
|
+
elapsedMs: Date.now() - startedAt,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
finally {
|
|
83
|
+
if (tmpDir) {
|
|
84
|
+
rmSync(tmpDir, { recursive: true, force: true });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=deployments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../src/deploy/deployments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAG/C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,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AG,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC;YAC1E,OAAO;gBACL,YAAY,EAAE,UAAU,CAAC,EAAE;gBAC3B,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,YAAY,EAAE,WAAW,CAAC,YAAY;gBACtC,OAAO,EAAE,WAAW,CAAC,OAAO;gBAC5B,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,IAAI,IAAI;gBACvD,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;aAClC,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function pollIntervalMs(defaultMs) {
|
|
2
|
+
const override = process.env.ALPIC_POLL_INTERVAL_MS;
|
|
3
|
+
if (override !== undefined) {
|
|
4
|
+
const parsed = Number.parseInt(override, 10);
|
|
5
|
+
return Number.isNaN(parsed) ? defaultMs : parsed;
|
|
6
|
+
}
|
|
7
|
+
return defaultMs;
|
|
8
|
+
}
|
|
9
|
+
export const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
10
|
+
//# sourceMappingURL=poll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poll.js","sourceRoot":"","sources":["../../src/deploy/poll.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAC,SAAiB;IAC9C,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;IACpD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC7C,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;IACnD,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function uploadToPresignedUrl(uploadUrl: string, buffer: Buffer): Promise<void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export async function uploadToPresignedUrl(uploadUrl, buffer) {
|
|
2
|
+
const res = await fetch(uploadUrl, {
|
|
3
|
+
method: "PUT",
|
|
4
|
+
headers: {
|
|
5
|
+
"Content-Type": "application/gzip",
|
|
6
|
+
},
|
|
7
|
+
body: new Uint8Array(buffer),
|
|
8
|
+
});
|
|
9
|
+
if (!res.ok) {
|
|
10
|
+
throw new Error(`Upload failed: ${res.status} ${res.statusText}`);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../src/deploy/upload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,SAAiB,EAAE,MAAc;IAC1E,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,SAAS,EAAE;QACjC,MAAM,EAAE,KAAK;QACb,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,UAAU,CAAC,MAAM,CAAC;KAC7B,CAAC,CAAC;IACH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,kBAAkB,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;IACpE,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ export { AlpicAuth } from "./auth/index.js";
|
|
|
4
4
|
export { getOAuthClient } from "./auth/oauth-client.js";
|
|
5
5
|
export { GlobalStore, globalStore } from "./auth/store.js";
|
|
6
6
|
export { Alpic } from "./client.js";
|
|
7
|
+
export type { DeployEvent, Deployment, DeploymentStatus, DeployOptions, DeployResult } from "./deploy/deployments.js";
|
|
7
8
|
export type { OpenTunnelOptions, TunnelCloseInfo, TunnelHandle, TunnelRequest } from "./tunnel/tunnel.js";
|
|
9
|
+
export type { Team, WhoamiInfo } from "./whoami.js";
|
package/dist/vendor/pipenet.js
CHANGED
|
@@ -11099,9 +11099,9 @@ var require_src = __commonJS({
|
|
|
11099
11099
|
}
|
|
11100
11100
|
});
|
|
11101
11101
|
|
|
11102
|
-
// ../../node_modules/.pnpm/agent-base@6.0.
|
|
11102
|
+
// ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js
|
|
11103
11103
|
var require_promisify = __commonJS({
|
|
11104
|
-
"../../node_modules/.pnpm/agent-base@6.0.
|
|
11104
|
+
"../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js"(exports) {
|
|
11105
11105
|
"use strict";
|
|
11106
11106
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11107
11107
|
function promisify(fn) {
|
|
@@ -11121,9 +11121,9 @@ var require_promisify = __commonJS({
|
|
|
11121
11121
|
}
|
|
11122
11122
|
});
|
|
11123
11123
|
|
|
11124
|
-
// ../../node_modules/.pnpm/agent-base@6.0.
|
|
11124
|
+
// ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js
|
|
11125
11125
|
var require_src2 = __commonJS({
|
|
11126
|
-
"../../node_modules/.pnpm/agent-base@6.0.
|
|
11126
|
+
"../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js"(exports, module) {
|
|
11127
11127
|
"use strict";
|
|
11128
11128
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11129
11129
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11304,9 +11304,9 @@ var require_src2 = __commonJS({
|
|
|
11304
11304
|
}
|
|
11305
11305
|
});
|
|
11306
11306
|
|
|
11307
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
11307
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
11308
11308
|
var require_parse_proxy_response = __commonJS({
|
|
11309
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
11309
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
11310
11310
|
"use strict";
|
|
11311
11311
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11312
11312
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -11370,9 +11370,9 @@ var require_parse_proxy_response = __commonJS({
|
|
|
11370
11370
|
}
|
|
11371
11371
|
});
|
|
11372
11372
|
|
|
11373
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
|
|
11373
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js
|
|
11374
11374
|
var require_agent = __commonJS({
|
|
11375
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
11375
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
11376
11376
|
"use strict";
|
|
11377
11377
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
11378
11378
|
function adopt(value) {
|
|
@@ -11530,9 +11530,9 @@ var require_agent = __commonJS({
|
|
|
11530
11530
|
}
|
|
11531
11531
|
});
|
|
11532
11532
|
|
|
11533
|
-
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
|
|
11533
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js
|
|
11534
11534
|
var require_dist = __commonJS({
|
|
11535
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
|
|
11535
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
|
|
11536
11536
|
"use strict";
|
|
11537
11537
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
11538
11538
|
return mod && mod.__esModule ? mod : { "default": mod };
|