@alpic-ai/sdk 0.0.0-dev.gdaf51fc → 0.0.0-dev.gdc0ac27
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/deploy/archive.d.ts
CHANGED
package/dist/deploy/archive.js
CHANGED
|
@@ -4,6 +4,10 @@ import { tmpdir } from "node:os";
|
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { create as tarCreate } from "tar";
|
|
6
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
|
+
}
|
|
7
11
|
function isGitRepository() {
|
|
8
12
|
return existsSync(join(process.cwd(), ".git"));
|
|
9
13
|
}
|
|
@@ -20,7 +24,10 @@ export function getGitFiles() {
|
|
|
20
24
|
encoding: "utf8",
|
|
21
25
|
maxBuffer: GIT_FILES_MAX_BUFFER,
|
|
22
26
|
});
|
|
23
|
-
const files = output
|
|
27
|
+
const files = output
|
|
28
|
+
.split("\0")
|
|
29
|
+
.filter(Boolean)
|
|
30
|
+
.filter((file) => !isExcluded(file));
|
|
24
31
|
if (files.length === 0) {
|
|
25
32
|
throw new Error("No tracked or untracked files found. Ensure you are in a git repository with files to deploy.");
|
|
26
33
|
}
|
|
@@ -1 +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,CAA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C;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"}
|
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/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/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/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/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.
|
|
11307
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.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.
|
|
11309
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.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.
|
|
11373
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
|
|
11374
11374
|
var require_agent = __commonJS({
|
|
11375
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.
|
|
11375
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.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.
|
|
11533
|
+
// ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
|
|
11534
11534
|
var require_dist = __commonJS({
|
|
11535
|
-
"../../node_modules/.pnpm/https-proxy-agent@5.0.
|
|
11535
|
+
"../../node_modules/.pnpm/https-proxy-agent@5.0.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 };
|