openship 0.7.0 → 0.7.2
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-AB4SMTNJ.js +29 -0
- package/dist/{chunk-J2NDOB7D.js → chunk-2BAKEGGF.js} +1 -1
- package/dist/{chunk-JAKVPLHT.js → chunk-2YAY5XHK.js} +1 -1
- package/dist/{chunk-YGA52DHX.js → chunk-37XZTLBJ.js} +3 -3
- package/dist/{chunk-GYDROM4W.js → chunk-3K65MMYV.js} +1 -1
- package/dist/{chunk-XQC6KYZD.js → chunk-3WBKLDGC.js} +3 -3
- package/dist/{chunk-5CFUYMPE.js → chunk-3YSSXSC2.js} +12 -12
- package/dist/{chunk-CMGRMPRQ.js → chunk-7TQP6723.js} +2 -2
- package/dist/{chunk-MZYD3LFP.js → chunk-AMADTKC6.js} +1 -1
- package/dist/{chunk-JWW5YAFL.js → chunk-B2BQX6JX.js} +3 -3
- package/dist/{chunk-DZBXOF5Q.js → chunk-BBPKAQ54.js} +6 -6
- package/dist/{chunk-IVRTIKNZ.js → chunk-COI4VFRW.js} +34 -2
- package/dist/{chunk-ZFA3MZ5N.js → chunk-CQ2JOXEQ.js} +3 -3
- package/dist/{chunk-BOD2IQ3P.js → chunk-DQR5TPFB.js} +5 -5
- package/dist/{chunk-AUBB5DLY.js → chunk-ETK6IBCH.js} +6 -6
- package/dist/{chunk-TPGBT5UR.js → chunk-EXXKRORU.js} +637 -97
- package/dist/{chunk-RHHCAWW3.js → chunk-FNWNUYS3.js} +3 -3
- package/dist/{chunk-3KUW2UC6.js → chunk-GPTBEPUE.js} +21 -14
- package/dist/{chunk-SYQ3FOLE.js → chunk-IVMPA6RC.js} +2 -2
- package/dist/{chunk-SPR7N2EK.js → chunk-JJD4YD2O.js} +9 -9
- package/dist/{chunk-3LWGDMJU.js → chunk-KATXZ5AB.js} +1 -1
- package/dist/{chunk-J4SYG2LC.js → chunk-KCMEWNP7.js} +1 -1
- package/dist/{chunk-LL7M7GL4.js → chunk-KQPFPKL4.js} +4 -4
- package/dist/{chunk-N5YZMO33.js → chunk-L4DRH6ZA.js} +12 -1
- package/dist/{chunk-GEHV7JBS.js → chunk-NF7NQOAP.js} +2 -2
- package/dist/{chunk-QNQFS37A.js → chunk-S5GU345P.js} +3 -3
- package/dist/{chunk-HBQWOJRP.js → chunk-TKK5NPDQ.js} +2 -2
- package/dist/{chunk-KYTTPWRP.js → chunk-V7JLX2QD.js} +9 -9
- package/dist/{chunk-7MKZP4TW.js → chunk-XJSLJLNY.js} +14 -14
- package/dist/{chunk-TT7P5ZZ3.js → chunk-XKLY2GH5.js} +8 -8
- package/dist/{chunk-5D27WZBW.js → chunk-XWZVDLGF.js} +5 -5
- package/dist/{cloud-RFZSO6P5.js → cloud-T2JOFEQL.js} +20 -20
- package/dist/{detect-NXD3PYBM.js → detect-SWLZURYX.js} +5 -5
- package/dist/{docker-U5APUZBI.js → docker-N3OVJUSM.js} +11 -11
- package/dist/{docker-edge-executor-HUQOWFQU.js → docker-edge-executor-BSSQQS76.js} +8 -8
- package/dist/{edge-import-UXD52WQR.js → edge-import-YU5YKFXT.js} +27 -27
- package/dist/{edge-preflight-3PMJ5BWM.js → edge-preflight-RCXSCKM3.js} +14 -14
- package/dist/{ensure-container-edge-GDPY7UJD.js → ensure-container-edge-U7FTLFVJ.js} +12 -12
- package/dist/{executor-XOVSO6QZ.js → executor-GYRZ7RIU.js} +7 -7
- package/dist/host-channel-preflight-U4NF425M.js +54 -0
- package/dist/index.js +45 -45
- package/dist/{local-executor-KR7BFCJP.js → local-executor-JCR46VAP.js} +3 -3
- package/dist/{nginx-JMLAS7YS.js → nginx-YA6IRPJT.js} +10 -10
- package/dist/{openresty-lua-FJH3KEC4.js → openresty-lua-DUOB64TP.js} +8 -8
- package/dist/{privilege-H2QTJ5TE.js → privilege-4B2TMVW2.js} +6 -6
- package/dist/server/index.js +3734 -1005
- package/dist/server/migrations/0122_data_transfer_staging.sql +45 -0
- package/dist/server/migrations/meta/_journal.json +7 -0
- package/dist/setup-T3WN3HRS.js +25 -0
- package/dist/{ssh-client-WVLLOAYK.js → ssh-client-FZDWP5PQ.js} +3 -3
- package/dist/up-Z2CMXZED.js +61 -0
- package/package.json +1 -1
- package/dist/bare-3POKLHTW.js +0 -29
- package/dist/host-channel-preflight-T2QUDQXU.js +0 -54
- package/dist/setup-ERGE5XNW.js +0 -25
- package/dist/up-EFCE6KA6.js +0 -61
|
@@ -4,15 +4,15 @@ import { createRequire as __ospCreateRequire } from "node:module";
|
|
|
4
4
|
const require = __ospCreateRequire(import.meta.url);
|
|
5
5
|
import {
|
|
6
6
|
hostRefusal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KATXZ5AB.js";
|
|
8
8
|
import {
|
|
9
9
|
elevatedExecutor,
|
|
10
10
|
resolveEnvironment
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B2BQX6JX.js";
|
|
12
12
|
import {
|
|
13
13
|
answered,
|
|
14
14
|
refused
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-COI4VFRW.js";
|
|
16
16
|
|
|
17
17
|
// ../../packages/adapters/src/system/privilege.ts
|
|
18
18
|
function rootChecked(executor, why) {
|
|
@@ -8,30 +8,32 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
getTarCreateEnv,
|
|
10
10
|
prepareSourceTarArgs
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2YAY5XHK.js";
|
|
12
12
|
import {
|
|
13
13
|
connectSshClient,
|
|
14
14
|
openDockerDialStdioChannel,
|
|
15
15
|
openSftp,
|
|
16
16
|
openSshUnixSocket,
|
|
17
17
|
reconcileKnownHosts
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TKK5NPDQ.js";
|
|
19
19
|
import {
|
|
20
20
|
LocalExecutor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KCMEWNP7.js";
|
|
22
22
|
import {
|
|
23
23
|
emitBufferedLines,
|
|
24
24
|
flushBufferedLines,
|
|
25
25
|
hasLocalCommand,
|
|
26
26
|
logEntry,
|
|
27
27
|
sq
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2BAKEGGF.js";
|
|
29
29
|
import {
|
|
30
30
|
HostChannelUnavailableError,
|
|
31
31
|
SshDisconnectedError,
|
|
32
|
+
SshExecRequestError,
|
|
32
33
|
commandForError,
|
|
33
|
-
isSshAuthError
|
|
34
|
-
|
|
34
|
+
isSshAuthError,
|
|
35
|
+
isSshExecRequestError
|
|
36
|
+
} from "./chunk-L4DRH6ZA.js";
|
|
35
37
|
import {
|
|
36
38
|
HOST_CHANNEL_AUTH_REJECTED,
|
|
37
39
|
HOST_CHANNEL_NOT_PROVISIONED,
|
|
@@ -42,7 +44,7 @@ import {
|
|
|
42
44
|
hostChannelAccount,
|
|
43
45
|
hostFirewallRule,
|
|
44
46
|
safeErrorMessage
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-COI4VFRW.js";
|
|
46
48
|
|
|
47
49
|
// ../../packages/adapters/src/system/executor.ts
|
|
48
50
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -254,6 +256,9 @@ var remoteDirname = posix.dirname;
|
|
|
254
256
|
var SFTP_OPERATION_TIMEOUT_MS = 3e4;
|
|
255
257
|
var CHANNEL_CLOSE_GRACE_MS = 750;
|
|
256
258
|
var TRANSPORT_CLOSE_GRACE_MS = 250;
|
|
259
|
+
function tagExecRequestError(error) {
|
|
260
|
+
return error.message === "Unable to exec" ? new SshExecRequestError(error) : error;
|
|
261
|
+
}
|
|
257
262
|
function abortError(operation, signal) {
|
|
258
263
|
const reason = signal.reason;
|
|
259
264
|
const suffix = reason instanceof Error && reason.message ? `: ${reason.message}` : "";
|
|
@@ -619,18 +624,20 @@ var SshExecutor = class _SshExecutor {
|
|
|
619
624
|
if (this.inflight.size > 0) this.dropSftp();
|
|
620
625
|
else this.resetConnection();
|
|
621
626
|
}
|
|
622
|
-
/** Returns true if the error is an SSH channel-open failure. */
|
|
627
|
+
/** Returns true if the error is an SSH channel-open or channel-exec failure. */
|
|
623
628
|
static isChannelError(err) {
|
|
624
629
|
if (!(err instanceof Error)) return false;
|
|
630
|
+
if (isSshExecRequestError(err)) return true;
|
|
625
631
|
const msg = err.message.toLowerCase();
|
|
626
632
|
return msg.includes("channel open failure") || msg.includes("open failed");
|
|
627
633
|
}
|
|
628
634
|
/**
|
|
629
635
|
* Run an operation, and if it fails opening an SSH channel on a half-dead
|
|
630
636
|
* cached connection ("Channel open failure: open failed" — common after the
|
|
631
|
-
* idle timeout drops the socket),
|
|
632
|
-
*
|
|
633
|
-
*
|
|
637
|
+
* idle timeout drops the socket), recover channel capacity and retry ONCE.
|
|
638
|
+
* An idle connection is replaced; a busy one stays alive so its other command
|
|
639
|
+
* is not aborted (see recoverFromChannelError). The SFTP-based ops
|
|
640
|
+
* (writeFile/readFile/exists) must go through this too, or a deploy's route
|
|
634
641
|
* write fails spuriously and only succeeds on a manual redeploy.
|
|
635
642
|
*/
|
|
636
643
|
async withChannelRetry(fn) {
|
|
@@ -703,7 +710,7 @@ var SshExecutor = class _SshExecutor {
|
|
|
703
710
|
);
|
|
704
711
|
timer.unref?.();
|
|
705
712
|
client.exec(_SshExecutor.ENV_PREFIX + command, (err, stream) => {
|
|
706
|
-
if (err) return finish(() => reject(err));
|
|
713
|
+
if (err) return finish(() => reject(tagExecRequestError(err)));
|
|
707
714
|
channel = stream;
|
|
708
715
|
if (terminating) {
|
|
709
716
|
try {
|
|
@@ -788,7 +795,7 @@ var SshExecutor = class _SshExecutor {
|
|
|
788
795
|
return;
|
|
789
796
|
}
|
|
790
797
|
client.exec(_SshExecutor.ENV_PREFIX + command, (err, stream) => {
|
|
791
|
-
if (err) return finish(() => reject(err));
|
|
798
|
+
if (err) return finish(() => reject(tagExecRequestError(err)));
|
|
792
799
|
channel = stream;
|
|
793
800
|
if (terminating || signal?.aborted) {
|
|
794
801
|
try {
|
|
@@ -2102,7 +2109,7 @@ async function verifyHostChannelAuth(config) {
|
|
|
2102
2109
|
let hint = null;
|
|
2103
2110
|
let forwarding = "unknown";
|
|
2104
2111
|
try {
|
|
2105
|
-
const { connectSshClient: connectSshClient2 } = await import("./ssh-client-
|
|
2112
|
+
const { connectSshClient: connectSshClient2 } = await import("./ssh-client-FZDWP5PQ.js");
|
|
2106
2113
|
const client = await connectSshClient2({
|
|
2107
2114
|
host: config.host,
|
|
2108
2115
|
port: config.port,
|
|
@@ -5,7 +5,7 @@ const require = __ospCreateRequire(import.meta.url);
|
|
|
5
5
|
import {
|
|
6
6
|
getTarCreateEnv,
|
|
7
7
|
prepareSourceTarArgs
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2YAY5XHK.js";
|
|
9
9
|
import {
|
|
10
10
|
TRANSFER_EXCLUDES,
|
|
11
11
|
nodeBinDirs,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
packageManagerEnsureCommand,
|
|
14
14
|
safeErrorMessage,
|
|
15
15
|
shellQuote
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-COI4VFRW.js";
|
|
17
17
|
|
|
18
18
|
// ../../packages/adapters/src/runtime/git-clone.ts
|
|
19
19
|
var sq = shellQuote;
|
|
@@ -134,10 +134,10 @@ import {
|
|
|
134
134
|
} from "./chunk-ZWLDLTJP.js";
|
|
135
135
|
import {
|
|
136
136
|
CloudRuntime
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-BBPKAQ54.js";
|
|
138
138
|
import {
|
|
139
139
|
OPENRESTY_DEFAULT_PATHS
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-DQR5TPFB.js";
|
|
141
141
|
import {
|
|
142
142
|
DockerRuntime,
|
|
143
143
|
daemonConnectionFrom,
|
|
@@ -146,26 +146,26 @@ import {
|
|
|
146
146
|
resolveExecExitCode,
|
|
147
147
|
startAttachStream,
|
|
148
148
|
startExecStream
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-EXXKRORU.js";
|
|
150
150
|
import {
|
|
151
151
|
BareRuntime
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-3YSSXSC2.js";
|
|
153
153
|
import {
|
|
154
154
|
createExecutor
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-GPTBEPUE.js";
|
|
156
156
|
import {
|
|
157
157
|
envOps
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-KATXZ5AB.js";
|
|
159
159
|
import {
|
|
160
160
|
ENVIRONMENT_PROBE_SCRIPT,
|
|
161
161
|
ENVIRONMENT_PROBE_TIMEOUT_MS,
|
|
162
162
|
cacheEnvironment,
|
|
163
163
|
parseEnvironmentProbe,
|
|
164
164
|
profileIsFresh
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-B2BQX6JX.js";
|
|
166
166
|
import {
|
|
167
167
|
MAIL_HOST_STATE_DIR
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-7TQP6723.js";
|
|
169
169
|
import {
|
|
170
170
|
FAMILY_BY_DISTRO,
|
|
171
171
|
isAwsS3Endpoint,
|
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
validateBackupPath,
|
|
178
178
|
validateClearPath,
|
|
179
179
|
withTimeout
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-COI4VFRW.js";
|
|
181
181
|
|
|
182
182
|
// ../../packages/adapters/src/runtime/image-transfer.ts
|
|
183
183
|
import { Transform } from "stream";
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
composeInstallExists,
|
|
8
8
|
readComposeEnvFile,
|
|
9
9
|
startUnitHint
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JJD4YD2O.js";
|
|
11
11
|
import {
|
|
12
12
|
INTERNAL_TOKEN_FILE,
|
|
13
13
|
OS_DIR
|
|
14
14
|
} from "./chunk-ELGRMZOW.js";
|
|
15
15
|
import {
|
|
16
16
|
LocalExecutor
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KCMEWNP7.js";
|
|
18
18
|
import {
|
|
19
19
|
edgeCrashReason
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-37XZTLBJ.js";
|
|
21
21
|
import {
|
|
22
22
|
EDGE_CONTAINER_NAME
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7TQP6723.js";
|
|
24
24
|
|
|
25
25
|
// src/lib/edge-import.ts
|
|
26
26
|
import chalk from "chalk";
|
|
@@ -44,6 +44,15 @@ var SshDisconnectedError = class extends Error {
|
|
|
44
44
|
this.name = "SshDisconnectedError";
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
+
var SshExecRequestError = class extends Error {
|
|
48
|
+
constructor(cause) {
|
|
49
|
+
super(cause.message, { cause });
|
|
50
|
+
this.name = "SshExecRequestError";
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
function isSshExecRequestError(err) {
|
|
54
|
+
return err instanceof SshExecRequestError || err instanceof Error && err.name === "SshExecRequestError";
|
|
55
|
+
}
|
|
47
56
|
function isSshDisconnectedError(err) {
|
|
48
57
|
return err instanceof SshDisconnectedError || err instanceof Error && err.name === "SshDisconnectedError";
|
|
49
58
|
}
|
|
@@ -67,7 +76,7 @@ function isRetryableRemoteConnectionError(err) {
|
|
|
67
76
|
);
|
|
68
77
|
}
|
|
69
78
|
function isRemoteConnectionError(err) {
|
|
70
|
-
return isSshAuthError(err) || isRetryableRemoteConnectionError(err);
|
|
79
|
+
return isSshAuthError(err) || isRetryableRemoteConnectionError(err) || isSshExecRequestError(err);
|
|
71
80
|
}
|
|
72
81
|
var MAX_COMMAND_CHARS = 120;
|
|
73
82
|
function commandForError(command) {
|
|
@@ -100,6 +109,8 @@ function formatDuration(startMs) {
|
|
|
100
109
|
|
|
101
110
|
export {
|
|
102
111
|
SshDisconnectedError,
|
|
112
|
+
SshExecRequestError,
|
|
113
|
+
isSshExecRequestError,
|
|
103
114
|
isSshAuthError,
|
|
104
115
|
HostChannelUnavailableError,
|
|
105
116
|
isRetryableRemoteConnectionError,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
isContainerPortForwarder,
|
|
8
8
|
managedDeploymentIdFromUnit,
|
|
9
9
|
tryExec
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7TQP6723.js";
|
|
11
11
|
import {
|
|
12
12
|
shellQuote
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-COI4VFRW.js";
|
|
14
14
|
|
|
15
15
|
// ../../packages/adapters/src/system/port-listen.ts
|
|
16
16
|
var PROC_NET_TCP_FILES = ["/proc/net/tcp", "/proc/net/tcp6"];
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
resolveDockerRootDirectory,
|
|
14
14
|
resolveDockerfileCandidates,
|
|
15
15
|
resolveWithinDirectory
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IVMPA6RC.js";
|
|
17
17
|
import {
|
|
18
18
|
getTarCreateEnv,
|
|
19
19
|
prepareSourceTarArgs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2YAY5XHK.js";
|
|
21
21
|
import {
|
|
22
22
|
isValidEnvKey
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-COI4VFRW.js";
|
|
24
24
|
import {
|
|
25
25
|
__commonJS,
|
|
26
26
|
__toESM
|
|
@@ -5,14 +5,14 @@ const require = __ospCreateRequire(import.meta.url);
|
|
|
5
5
|
import {
|
|
6
6
|
isSshAuthError,
|
|
7
7
|
systemDebug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L4DRH6ZA.js";
|
|
9
9
|
import {
|
|
10
10
|
HOST_CHANNEL_AUTH_REJECTED,
|
|
11
11
|
HOST_CHANNEL_NOT_PROVISIONED,
|
|
12
12
|
HOST_CHANNEL_ROW_CREDENTIALS_UNUSED,
|
|
13
13
|
hostFirewallRule,
|
|
14
14
|
safeErrorMessage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-COI4VFRW.js";
|
|
16
16
|
|
|
17
17
|
// ../../packages/adapters/src/system/ssh-client.ts
|
|
18
18
|
import { Client } from "ssh2";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolvePorts,
|
|
29
29
|
sourceBuildDir,
|
|
30
30
|
verifyHostChannel
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XKLY2GH5.js";
|
|
32
32
|
import {
|
|
33
33
|
bootstrapAdmin,
|
|
34
34
|
importMigratedSites,
|
|
@@ -36,18 +36,18 @@ import {
|
|
|
36
36
|
internalPost,
|
|
37
37
|
mintBareInternalToken,
|
|
38
38
|
waitHealthy
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KQPFPKL4.js";
|
|
40
40
|
import {
|
|
41
41
|
startUnitHint,
|
|
42
42
|
thisHost
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-JJD4YD2O.js";
|
|
44
44
|
import {
|
|
45
45
|
completeHostEdge,
|
|
46
46
|
markStoppedProxyImported,
|
|
47
47
|
planAndApplyHostEdge,
|
|
48
48
|
previewHostEdge,
|
|
49
49
|
rollbackHostEdge
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-XWZVDLGF.js";
|
|
51
51
|
import {
|
|
52
52
|
AUTH_SECRET_FILE,
|
|
53
53
|
DATA_DIR,
|
|
@@ -58,17 +58,17 @@ import {
|
|
|
58
58
|
} from "./chunk-ELGRMZOW.js";
|
|
59
59
|
import {
|
|
60
60
|
LocalExecutor
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KCMEWNP7.js";
|
|
62
62
|
import {
|
|
63
63
|
edgeCrashReason,
|
|
64
64
|
edgeIsBroken
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-37XZTLBJ.js";
|
|
66
66
|
import {
|
|
67
67
|
EDGE_CONTAINER_NAME
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-7TQP6723.js";
|
|
69
69
|
import {
|
|
70
70
|
isValidEmail
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-COI4VFRW.js";
|
|
72
72
|
|
|
73
73
|
// src/commands/up.ts
|
|
74
74
|
import { Command } from "commander";
|
|
@@ -1564,7 +1564,7 @@ async function runForeground(opts, source) {
|
|
|
1564
1564
|
const uiSpinner = ora("Preparing the dashboard\u2026").start();
|
|
1565
1565
|
try {
|
|
1566
1566
|
const bundle = await ensureDashboard({
|
|
1567
|
-
tag: source ? "local" : opts.uiVersion || `v${"0.7.
|
|
1567
|
+
tag: source ? "local" : opts.uiVersion || `v${"0.7.2"}`,
|
|
1568
1568
|
onProgress: (received, total) => {
|
|
1569
1569
|
if (total) {
|
|
1570
1570
|
uiSpinner.text = `Downloading dashboard\u2026 ${Math.round(received / total * 100)}%`;
|
|
@@ -9,28 +9,28 @@ import {
|
|
|
9
9
|
readDeclaredPair,
|
|
10
10
|
readMaybeInContainer,
|
|
11
11
|
validateCertFor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ETK6IBCH.js";
|
|
13
13
|
import {
|
|
14
14
|
EDGE_CHALLENGE_HOST_DIR,
|
|
15
15
|
EDGE_CONTAINER_MOUNTS,
|
|
16
16
|
EDGE_HOST_PATHS,
|
|
17
17
|
OPENRESTY_DEFAULT_PATHS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DQR5TPFB.js";
|
|
19
19
|
import {
|
|
20
20
|
privilegedExecutor,
|
|
21
21
|
rootChecked,
|
|
22
22
|
rootOrDegrade
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FNWNUYS3.js";
|
|
24
24
|
import {
|
|
25
25
|
envOps,
|
|
26
26
|
opScript
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KATXZ5AB.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveEnvironment
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-B2BQX6JX.js";
|
|
31
31
|
import {
|
|
32
32
|
sq
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2BAKEGGF.js";
|
|
34
34
|
import {
|
|
35
35
|
EdgeConflictError,
|
|
36
36
|
EdgeMigrateRequested,
|
|
@@ -45,20 +45,20 @@ import {
|
|
|
45
45
|
sanitizeEdgeVhosts,
|
|
46
46
|
sq as sq2,
|
|
47
47
|
stopTargetsForStatus
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-37XZTLBJ.js";
|
|
49
49
|
import {
|
|
50
50
|
waitForPortListening
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-NF7NQOAP.js";
|
|
52
52
|
import {
|
|
53
53
|
EDGE_CONTAINER_NAME,
|
|
54
54
|
probeExec,
|
|
55
55
|
tryExec,
|
|
56
56
|
withReason
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-7TQP6723.js";
|
|
58
58
|
import {
|
|
59
59
|
formatDuration,
|
|
60
60
|
systemDebug
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-L4DRH6ZA.js";
|
|
62
62
|
import {
|
|
63
63
|
AppError,
|
|
64
64
|
PROXY_DIRECTIVES,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
safeErrorMessage,
|
|
71
71
|
sanitizeProxySettings,
|
|
72
72
|
shellQuote
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-COI4VFRW.js";
|
|
74
74
|
|
|
75
75
|
// ../../packages/adapters/src/system/managed-image.ts
|
|
76
76
|
import { posix } from "path";
|
|
@@ -2439,7 +2439,7 @@ function edgeHostExecutor(executor) {
|
|
|
2439
2439
|
});
|
|
2440
2440
|
}
|
|
2441
2441
|
async function containerEdgeProvider(executor, container, opts) {
|
|
2442
|
-
const { NginxProvider: Provider } = await import("./nginx-
|
|
2442
|
+
const { NginxProvider: Provider } = await import("./nginx-YA6IRPJT.js");
|
|
2443
2443
|
return new Provider({
|
|
2444
2444
|
...opts,
|
|
2445
2445
|
// Vhosts go to the BIND-MOUNTED HOST dir (so every host-side reader — the
|
|
@@ -2463,8 +2463,8 @@ async function containerEdgeProvider(executor, container, opts) {
|
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
2465
|
async function localContainerEdgeProvider(container, opts) {
|
|
2466
|
-
const { DockerEdgeExecutor } = await import("./docker-edge-executor-
|
|
2467
|
-
const { NginxProvider: Provider } = await import("./nginx-
|
|
2466
|
+
const { DockerEdgeExecutor } = await import("./docker-edge-executor-BSSQQS76.js");
|
|
2467
|
+
const { NginxProvider: Provider } = await import("./nginx-YA6IRPJT.js");
|
|
2468
2468
|
return new Provider({
|
|
2469
2469
|
...opts,
|
|
2470
2470
|
paths: OPENRESTY_DEFAULT_PATHS,
|
|
@@ -10,28 +10,28 @@ import {
|
|
|
10
10
|
readComposeEnvFile,
|
|
11
11
|
resolveLocalEnvironmentSync,
|
|
12
12
|
thisHost
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JJD4YD2O.js";
|
|
14
14
|
import {
|
|
15
15
|
OS_DIR
|
|
16
16
|
} from "./chunk-ELGRMZOW.js";
|
|
17
17
|
import {
|
|
18
18
|
systemCatalog
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XJSLJLNY.js";
|
|
20
20
|
import {
|
|
21
21
|
EDGE_CONTAINER_MOUNTS,
|
|
22
22
|
EDGE_HOST_STATE_DIR
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DQR5TPFB.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_DOCKER_SOCKET_PATH,
|
|
26
26
|
resolveLocalDockerSocketPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EXXKRORU.js";
|
|
28
28
|
import {
|
|
29
29
|
LocalExecutor
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KCMEWNP7.js";
|
|
31
31
|
import {
|
|
32
32
|
invalidateEdgeContainer,
|
|
33
33
|
sanitizeEdgeVhosts
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-37XZTLBJ.js";
|
|
35
35
|
import {
|
|
36
36
|
DEFAULT_IMAGE_REGISTRY,
|
|
37
37
|
HOST_CHANNEL_BLOCKED,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
hostFirewallRule,
|
|
52
52
|
hostFirewallRuleRemoval,
|
|
53
53
|
wrapText
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-COI4VFRW.js";
|
|
55
55
|
|
|
56
56
|
// src/lib/host-channel-preflight.ts
|
|
57
57
|
import { spawnSync as spawnSync4 } from "child_process";
|
|
@@ -1627,7 +1627,7 @@ function operatorEnvPassthrough(managed, prev) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
var PRESERVED_ENV_HEADER = "# Preserved from your existing .env \u2014 set by you, not by `openship up` (#485).";
|
|
1629
1629
|
function resolveImageVersion(opts) {
|
|
1630
|
-
return opts.version?.trim() || process.env.OPENSHIP_VERSION?.trim() || (true ? "0.7.
|
|
1630
|
+
return opts.version?.trim() || process.env.OPENSHIP_VERSION?.trim() || (true ? "0.7.2" : "latest");
|
|
1631
1631
|
}
|
|
1632
1632
|
function managedEnvLines(opts, host, cfg, prev) {
|
|
1633
1633
|
const lines = [
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
rollbackEdgeTakeover,
|
|
20
20
|
scanImportableSites,
|
|
21
21
|
unreachableStaticRoots
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XJSLJLNY.js";
|
|
23
23
|
import {
|
|
24
24
|
LocalExecutor
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KCMEWNP7.js";
|
|
26
26
|
import {
|
|
27
27
|
ourEdgeContainerRunning
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-37XZTLBJ.js";
|
|
29
29
|
import {
|
|
30
30
|
isOurEdgeContainer
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7TQP6723.js";
|
|
32
32
|
|
|
33
33
|
// src/lib/edge-preflight.ts
|
|
34
34
|
import { spawnSync } from "child_process";
|
|
@@ -243,7 +243,7 @@ async function repairEdgeConflict(mode, apiPort, onLog) {
|
|
|
243
243
|
}
|
|
244
244
|
spawnSync("docker", ["restart", "openship-edge"], { stdio: "ignore" });
|
|
245
245
|
if (mode === "migrate" && scan.sites.length > 0) {
|
|
246
|
-
const { importMigratedSites } = await import("./edge-import-
|
|
246
|
+
const { importMigratedSites } = await import("./edge-import-YU5YKFXT.js");
|
|
247
247
|
const outcome = await importMigratedSites(apiPort, scan.sites, certPems);
|
|
248
248
|
if (outcome.registered.length === 0) {
|
|
249
249
|
return {
|
|
@@ -9,28 +9,28 @@ import {
|
|
|
9
9
|
compileCloudDockerfilePlan,
|
|
10
10
|
isHostBuildForbiddenError,
|
|
11
11
|
provisionCloudWorkspace
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-BBPKAQ54.js";
|
|
13
|
+
import "./chunk-XJSLJLNY.js";
|
|
14
|
+
import "./chunk-ETK6IBCH.js";
|
|
15
|
+
import "./chunk-DQR5TPFB.js";
|
|
16
16
|
import "./chunk-I3DPMTSF.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-S5GU345P.js";
|
|
18
|
+
import "./chunk-CQ2JOXEQ.js";
|
|
19
|
+
import "./chunk-IVMPA6RC.js";
|
|
20
|
+
import "./chunk-GPTBEPUE.js";
|
|
21
21
|
import "./chunk-R4VDPFLS.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-2YAY5XHK.js";
|
|
23
|
+
import "./chunk-TKK5NPDQ.js";
|
|
24
|
+
import "./chunk-KCMEWNP7.js";
|
|
25
|
+
import "./chunk-FNWNUYS3.js";
|
|
26
|
+
import "./chunk-KATXZ5AB.js";
|
|
27
|
+
import "./chunk-B2BQX6JX.js";
|
|
28
|
+
import "./chunk-2BAKEGGF.js";
|
|
29
|
+
import "./chunk-37XZTLBJ.js";
|
|
30
|
+
import "./chunk-NF7NQOAP.js";
|
|
31
|
+
import "./chunk-7TQP6723.js";
|
|
32
|
+
import "./chunk-L4DRH6ZA.js";
|
|
33
|
+
import "./chunk-COI4VFRW.js";
|
|
34
34
|
import "./chunk-PXKCZB2I.js";
|
|
35
35
|
export {
|
|
36
36
|
CloudRuntime,
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
sanitizeEdgeVhosts,
|
|
18
18
|
sq,
|
|
19
19
|
stopTargetsForStatus
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-37XZTLBJ.js";
|
|
21
|
+
import "./chunk-NF7NQOAP.js";
|
|
22
22
|
import {
|
|
23
23
|
EDGE_CONTAINER_NAME,
|
|
24
24
|
classifyProxy,
|
|
25
25
|
isOurEdgeContainer
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-7TQP6723.js";
|
|
27
|
+
import "./chunk-L4DRH6ZA.js";
|
|
28
|
+
import "./chunk-COI4VFRW.js";
|
|
29
29
|
import "./chunk-PXKCZB2I.js";
|
|
30
30
|
export {
|
|
31
31
|
EDGE_CONTAINER_NAME,
|
|
@@ -15,17 +15,17 @@ import {
|
|
|
15
15
|
splitDockerFrames,
|
|
16
16
|
toDockerHealthcheck,
|
|
17
17
|
toStopConfig
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-EXXKRORU.js";
|
|
19
|
+
import "./chunk-S5GU345P.js";
|
|
20
|
+
import "./chunk-AMADTKC6.js";
|
|
21
|
+
import "./chunk-IVMPA6RC.js";
|
|
22
|
+
import "./chunk-2YAY5XHK.js";
|
|
23
|
+
import "./chunk-TKK5NPDQ.js";
|
|
24
|
+
import "./chunk-B2BQX6JX.js";
|
|
25
|
+
import "./chunk-2BAKEGGF.js";
|
|
26
|
+
import "./chunk-7TQP6723.js";
|
|
27
|
+
import "./chunk-L4DRH6ZA.js";
|
|
28
|
+
import "./chunk-COI4VFRW.js";
|
|
29
29
|
import "./chunk-PXKCZB2I.js";
|
|
30
30
|
export {
|
|
31
31
|
DockerRuntime,
|