@getmonoceros/workbench 1.38.14 → 1.38.16

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/bin.js CHANGED
@@ -1977,17 +1977,19 @@ async function ensureProxy(opts = {}) {
1977
1977
  async function maybeStopProxy(opts = {}) {
1978
1978
  const docker = opts.docker ?? realDocker;
1979
1979
  const logger = opts.logger;
1980
- const inspect = await docker([
1981
- "network",
1982
- "inspect",
1983
- PROXY_NETWORK_NAME,
1984
- "--format",
1985
- "{{range $k, $v := .Containers}}{{$v.Name}}\n{{end}}"
1986
- ]);
1980
+ const inspect = await docker(["network", "inspect", PROXY_NETWORK_NAME]);
1987
1981
  if (inspect.exitCode !== 0) {
1988
1982
  return;
1989
1983
  }
1990
- const others = inspect.stdout.split("\n").map((n) => n.trim()).filter((n) => n.length > 0 && n !== PROXY_CONTAINER_NAME);
1984
+ const attached = await docker([
1985
+ "ps",
1986
+ "-a",
1987
+ "--filter",
1988
+ `network=${PROXY_NETWORK_NAME}`,
1989
+ "--format",
1990
+ "{{.Names}}"
1991
+ ]);
1992
+ const others = attached.stdout.split("\n").map((n) => n.trim()).filter((n) => n.length > 0 && n !== PROXY_CONTAINER_NAME);
1991
1993
  if (others.length > 0) return;
1992
1994
  await docker(["rm", "-f", PROXY_CONTAINER_NAME]);
1993
1995
  const netRm = await docker(["network", "rm", PROXY_NETWORK_NAME]);
@@ -7240,6 +7242,7 @@ function buildSpawnOptions(opts) {
7240
7242
  if (opts.logSink) out.logSink = opts.logSink;
7241
7243
  if (opts.progressSink) out.progressSink = opts.progressSink;
7242
7244
  if (opts.silent) out.silent = true;
7245
+ if (opts.quiet) out.quiet = true;
7243
7246
  return Object.keys(out).length > 0 ? out : void 0;
7244
7247
  }
7245
7248
  async function runUpWithBindRetry(attempt, baseSink, logger, opts = {}) {
@@ -9052,7 +9055,7 @@ var CLI_VERSION;
9052
9055
  var init_version = __esm({
9053
9056
  "src/version.ts"() {
9054
9057
  "use strict";
9055
- CLI_VERSION = true ? "1.38.14" : "dev";
9058
+ CLI_VERSION = true ? "1.38.16" : "dev";
9056
9059
  }
9057
9060
  });
9058
9061
 
@@ -12960,7 +12963,7 @@ async function bringContainerUp(name, openTool) {
12960
12963
  }
12961
12964
  const exitCode = await runStart({
12962
12965
  root: containerDir(args.name),
12963
- silent: true,
12966
+ quiet: true,
12964
12967
  logger: { info: () => {
12965
12968
  } }
12966
12969
  });
@@ -12987,6 +12990,10 @@ async function bringContainerUp(name, openTool) {
12987
12990
  }
12988
12991
  if (exitCode === 0) {
12989
12992
  consola38.success(`Container '${args.name}' is up.`);
12993
+ } else {
12994
+ consola38.error(
12995
+ `Container '${args.name}' failed to start (devcontainer up exited ${exitCode}).`
12996
+ );
12990
12997
  }
12991
12998
  if (args.open && exitCode === 0) {
12992
12999
  try {