openship 0.6.5 → 0.6.7
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/bare-7QD623QV.js +29 -0
- package/dist/chunk-2ANV5ZQ5.js +88 -0
- package/dist/{chunk-LEYSL46B.js → chunk-2VSW6Q6C.js} +3911 -898
- package/dist/{chunk-5OUWIPOB.js → chunk-5T4UVOM3.js} +16 -86
- package/dist/{chunk-EZPPTWJQ.js → chunk-BLEXTYRK.js} +1 -1
- package/dist/{chunk-3ZAGC5NT.js → chunk-CIJV43LH.js} +83 -33
- package/dist/{chunk-7S4USQYF.js → chunk-DDFUESPJ.js} +67 -124
- package/dist/{chunk-6FH4AXVY.js → chunk-E2X26PXR.js} +1 -1
- package/dist/{chunk-XVOBL7BC.js → chunk-FYPFEDPZ.js} +1 -1
- package/dist/{chunk-WFRXYWK2.js → chunk-FZ6QCF6B.js} +8 -6
- package/dist/{chunk-VHMOQL5Y.js → chunk-GGIAIGUL.js} +125 -80
- package/dist/{chunk-WE7BXW6L.js → chunk-GIPJNNI5.js} +38 -44
- package/dist/{chunk-ZFJXPCQP.js → chunk-H3WT3A6R.js} +4 -3
- package/dist/chunk-H4FS5BED.js +936 -0
- package/dist/{chunk-HPXP6LXZ.js → chunk-J2XM3QSP.js} +8 -5
- package/dist/{chunk-6JELW75A.js → chunk-J3K6XABC.js} +5 -5
- package/dist/{chunk-VDESJSG6.js → chunk-LHFXSC36.js} +558 -109
- package/dist/{chunk-MSZUCNPV.js → chunk-MEE6OZFP.js} +3 -3
- package/dist/chunk-N5YZMO33.js +111 -0
- package/dist/{chunk-VLQ3UIVO.js → chunk-NRTJRNAE.js} +105 -37
- package/dist/chunk-PPEBIY5F.js +2331 -0
- package/dist/{chunk-RFWJE7ZN.js → chunk-PVP4RGWT.js} +3 -3
- package/dist/{chunk-PZRRL5PC.js → chunk-QHMDCYZ3.js} +15 -4
- package/dist/chunk-R4VDPFLS.js +106 -0
- package/dist/chunk-RDXT4BQB.js +310 -0
- package/dist/{chunk-GRTXMUHA.js → chunk-S6B2Z3OO.js} +145 -60
- package/dist/chunk-UWEV6XTS.js +249 -0
- package/dist/{chunk-QLX7NBEA.js → chunk-VQM6JHJB.js} +1004 -2046
- package/dist/{chunk-A7EWM2KA.js → chunk-VSTFHUCV.js} +44 -50
- package/dist/chunk-WU54BXFE.js +70 -0
- package/dist/{chunk-LFCSC4IU.js → chunk-XWHWTHEL.js} +313 -469
- package/dist/{chunk-7334NSJL.js → chunk-ZPJ74LXE.js} +76 -38
- package/dist/cloud-KNNABE3O.js +40 -0
- package/dist/{detect-P4CIQBRH.js → detect-G4DR3U2N.js} +9 -6
- package/dist/{docker-3K2NEBD6.js → docker-YOVPCIB4.js} +11 -7
- package/dist/{docker-edge-executor-YZZ6P7IC.js → docker-edge-executor-QFXD3337.js} +8 -6
- package/dist/edge-import-CRFVSR6P.js +56 -0
- package/dist/{edge-preflight-ES6FH4JK.js → edge-preflight-MXERVAMG.js} +15 -12
- package/dist/{ensure-container-edge-YPITNH45.js → ensure-container-edge-F4JUNQIK.js} +13 -10
- package/dist/{executor-DZGX55K2.js → executor-CVPAYYHR.js} +10 -5
- package/dist/host-channel-preflight-QTDNGLCK.js +54 -0
- package/dist/index.js +139 -92
- package/dist/{local-executor-WOFZD72X.js → local-executor-ODC6RANU.js} +3 -2
- package/dist/{nginx-NSAHWGJV.js → nginx-KLFF43TC.js} +13 -8
- package/dist/{openresty-lua-DR4D3EZ6.js → openresty-lua-VKWUV4GB.js} +8 -5
- package/dist/{privilege-YTVI4SKF.js → privilege-7D3SSOL3.js} +6 -5
- package/dist/server/engine/samples/amavisd/amavisd.conf +25 -0
- package/dist/server/engine/samples/postfix/master.cf +14 -0
- package/dist/server/index.js +44526 -33476
- package/dist/server/migrations/0105_mail_inbound_rules.sql +80 -0
- package/dist/server/migrations/0106_mcp_call_tracking.sql +23 -0
- package/dist/server/migrations/0107_build_minute_metering_indexes.sql +20 -0
- package/dist/server/migrations/0108_credential.sql +68 -0
- package/dist/server/migrations/meta/_journal.json +28 -0
- package/dist/setup-I5AJC6NJ.js +25 -0
- package/dist/ssh-client-625VWGKP.js +29 -0
- package/dist/up-QXTOOVXC.js +61 -0
- package/package.json +1 -1
- package/dist/bare-XQIPDO4R.js +0 -24
- package/dist/chunk-6HOA5JT7.js +0 -124
- package/dist/chunk-TM2IQPYU.js +0 -434
- package/dist/chunk-XRNRT37W.js +0 -316
- package/dist/cloud-3DODOWTR.js +0 -36
- package/dist/edge-import-MCJNVTZ2.js +0 -51
- package/dist/host-channel-preflight-MUXE3KZU.js +0 -49
- package/dist/setup-WUUZURHS.js +0 -22
- package/dist/up-XEO3SR6Z.js +0 -58
- /package/dist/{dist-es-ZP5QDSJ3.js → dist-es-AXFRS7PS.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
":" //# ; exec "$(command -v node || command -v bun)" "$0" "$@"
|
|
3
|
+
import { createRequire as __ospCreateRequire } from "node:module";
|
|
4
|
+
const require = __ospCreateRequire(import.meta.url);
|
|
5
|
+
import {
|
|
6
|
+
BareRuntime,
|
|
7
|
+
STATIC_RELEASE_BASE
|
|
8
|
+
} from "./chunk-S6B2Z3OO.js";
|
|
9
|
+
import "./chunk-MEE6OZFP.js";
|
|
10
|
+
import "./chunk-WU54BXFE.js";
|
|
11
|
+
import "./chunk-H4FS5BED.js";
|
|
12
|
+
import "./chunk-GGIAIGUL.js";
|
|
13
|
+
import "./chunk-R4VDPFLS.js";
|
|
14
|
+
import "./chunk-2ANV5ZQ5.js";
|
|
15
|
+
import "./chunk-5T4UVOM3.js";
|
|
16
|
+
import "./chunk-E2X26PXR.js";
|
|
17
|
+
import "./chunk-PVP4RGWT.js";
|
|
18
|
+
import "./chunk-BLEXTYRK.js";
|
|
19
|
+
import "./chunk-FZ6QCF6B.js";
|
|
20
|
+
import "./chunk-H3WT3A6R.js";
|
|
21
|
+
import "./chunk-VSTFHUCV.js";
|
|
22
|
+
import "./chunk-UWEV6XTS.js";
|
|
23
|
+
import "./chunk-N5YZMO33.js";
|
|
24
|
+
import "./chunk-2VSW6Q6C.js";
|
|
25
|
+
import "./chunk-PXKCZB2I.js";
|
|
26
|
+
export {
|
|
27
|
+
BareRuntime,
|
|
28
|
+
STATIC_RELEASE_BASE
|
|
29
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
":" //# ; exec "$(command -v node || command -v bun)" "$0" "$@"
|
|
3
|
+
import { createRequire as __ospCreateRequire } from "node:module";
|
|
4
|
+
const require = __ospCreateRequire(import.meta.url);
|
|
5
|
+
import {
|
|
6
|
+
PACKAGE_ROOT_ONLY_EXCLUDES
|
|
7
|
+
} from "./chunk-2VSW6Q6C.js";
|
|
8
|
+
|
|
9
|
+
// ../../packages/adapters/src/archive.ts
|
|
10
|
+
import { execFile } from "child_process";
|
|
11
|
+
import { mkdtemp, rm, stat, writeFile } from "fs/promises";
|
|
12
|
+
import { tmpdir } from "os";
|
|
13
|
+
import { join } from "path";
|
|
14
|
+
import { promisify } from "util";
|
|
15
|
+
var execFileAsync = promisify(execFile);
|
|
16
|
+
var ROOT_ONLY_EXCLUDES = new Set(PACKAGE_ROOT_ONLY_EXCLUDES);
|
|
17
|
+
var NOOP_CLEANUP = async () => {
|
|
18
|
+
};
|
|
19
|
+
function getTarCreateEnv() {
|
|
20
|
+
return {
|
|
21
|
+
...process.env,
|
|
22
|
+
COPYFILE_DISABLE: "1",
|
|
23
|
+
COPY_EXTENDED_ATTRIBUTES_DISABLE: "1"
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function tarCreateBaseArgs(localPath) {
|
|
27
|
+
const darwinFlags = process.platform === "darwin" ? ["--no-mac-metadata", "--no-xattrs", "--no-acls", "--no-fflags"] : [];
|
|
28
|
+
return [...darwinFlags, "-czf", "-", "-C", localPath];
|
|
29
|
+
}
|
|
30
|
+
async function gitTrackedFiles(localPath) {
|
|
31
|
+
try {
|
|
32
|
+
const { stdout } = await execFileAsync(
|
|
33
|
+
"git",
|
|
34
|
+
["-C", localPath, "ls-files", "-z", "--cached", "--others", "--exclude-standard"],
|
|
35
|
+
{ maxBuffer: 256 * 1024 * 1024 }
|
|
36
|
+
);
|
|
37
|
+
const files = stdout.split("\0").filter(Boolean);
|
|
38
|
+
return files.length > 0 ? files : null;
|
|
39
|
+
} catch {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
async function existingRelativePaths(root, paths) {
|
|
44
|
+
if (!paths?.length) return [];
|
|
45
|
+
const found = [];
|
|
46
|
+
for (const p of paths) {
|
|
47
|
+
try {
|
|
48
|
+
await stat(join(root, p));
|
|
49
|
+
found.push(p);
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return found;
|
|
54
|
+
}
|
|
55
|
+
async function prepareSourceTarArgs(localPath, options) {
|
|
56
|
+
if (options?.includes?.length) {
|
|
57
|
+
return { args: getTarCreateArgs(localPath, options), cleanup: NOOP_CLEANUP };
|
|
58
|
+
}
|
|
59
|
+
const files = await gitTrackedFiles(localPath);
|
|
60
|
+
if (files) {
|
|
61
|
+
const extra = await existingRelativePaths(localPath, options?.alsoInclude);
|
|
62
|
+
const entries = extra.length ? [...files, ...extra] : files;
|
|
63
|
+
const tmpDir = await mkdtemp(join(tmpdir(), "openship-tarlist-"));
|
|
64
|
+
const listFile = join(tmpDir, "files.null");
|
|
65
|
+
await writeFile(listFile, entries.join("\0"));
|
|
66
|
+
const args = [...tarCreateBaseArgs(localPath), "--null", "-T", listFile];
|
|
67
|
+
return { args, cleanup: () => rm(tmpDir, { recursive: true, force: true }) };
|
|
68
|
+
}
|
|
69
|
+
return { args: getTarCreateArgs(localPath, options), cleanup: NOOP_CLEANUP };
|
|
70
|
+
}
|
|
71
|
+
function getTarCreateArgs(localPath, options) {
|
|
72
|
+
const args = tarCreateBaseArgs(localPath);
|
|
73
|
+
if (options?.includes?.length) {
|
|
74
|
+
args.push(...options.includes);
|
|
75
|
+
return args;
|
|
76
|
+
}
|
|
77
|
+
for (const exclude of options?.excludes ?? []) {
|
|
78
|
+
const pattern = ROOT_ONLY_EXCLUDES.has(exclude) ? `./${exclude}` : exclude;
|
|
79
|
+
args.push(`--exclude=${pattern}`);
|
|
80
|
+
}
|
|
81
|
+
args.push(".");
|
|
82
|
+
return args;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
getTarCreateEnv,
|
|
87
|
+
prepareSourceTarArgs
|
|
88
|
+
};
|