@getmonoceros/workbench 1.16.0 → 1.16.1
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 +29 -12
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1831,6 +1831,8 @@ var init_port_check = __esm({
|
|
|
1831
1831
|
});
|
|
1832
1832
|
|
|
1833
1833
|
// src/create/catalog.ts
|
|
1834
|
+
import "fs";
|
|
1835
|
+
import "url";
|
|
1834
1836
|
function resolveRuntimeImage(version) {
|
|
1835
1837
|
const ov = process.env.MONOCEROS_BASE_IMAGE_OVERRIDE?.trim();
|
|
1836
1838
|
if (ov && ov.length > 0) return ov;
|
|
@@ -1914,7 +1916,12 @@ var init_catalog = __esm({
|
|
|
1914
1916
|
override = process.env.MONOCEROS_BASE_IMAGE_OVERRIDE?.trim();
|
|
1915
1917
|
BASE_IMAGE = override && override.length > 0 ? override : DEFAULT_BASE_IMAGE;
|
|
1916
1918
|
RUNTIME_IMAGE_REPO = "ghcr.io/getmonoceros/monoceros-runtime";
|
|
1917
|
-
DEFAULT_RUNTIME_VERSION = "1.1.0"
|
|
1919
|
+
DEFAULT_RUNTIME_VERSION = true ? "1.1.0" : readFileSync3(
|
|
1920
|
+
fileURLToPath2(
|
|
1921
|
+
new URL("../../../../images/runtime/VERSION", import.meta.url)
|
|
1922
|
+
),
|
|
1923
|
+
"utf8"
|
|
1924
|
+
).trim();
|
|
1918
1925
|
MIN_RUNTIME_FOR_IDE_VOLUMES = "1.1.0";
|
|
1919
1926
|
BUILTIN_LANGUAGES = /* @__PURE__ */ new Set(["node"]);
|
|
1920
1927
|
LANGUAGE_CATALOG = {
|
|
@@ -2057,7 +2064,7 @@ var init_service_doc = __esm({
|
|
|
2057
2064
|
});
|
|
2058
2065
|
|
|
2059
2066
|
// src/create/scaffold.ts
|
|
2060
|
-
import { existsSync as existsSync5, readFileSync as
|
|
2067
|
+
import { existsSync as existsSync5, readFileSync as readFileSync4, promises as fs7 } from "fs";
|
|
2061
2068
|
import path8 from "path";
|
|
2062
2069
|
function deriveRepoName(url) {
|
|
2063
2070
|
const lastSep = Math.max(url.lastIndexOf("/"), url.lastIndexOf(":"));
|
|
@@ -2244,7 +2251,7 @@ function resolveFeatures(opts) {
|
|
|
2244
2251
|
function readPersistentHomeEntries(localSourceDir) {
|
|
2245
2252
|
const manifestPath = path8.join(localSourceDir, "devcontainer-feature.json");
|
|
2246
2253
|
try {
|
|
2247
|
-
const text =
|
|
2254
|
+
const text = readFileSync4(manifestPath, "utf8");
|
|
2248
2255
|
const parsed = JSON.parse(text);
|
|
2249
2256
|
return {
|
|
2250
2257
|
paths: filterSubpaths(parsed["x-monoceros"]?.persistentHomePaths),
|
|
@@ -4598,12 +4605,22 @@ var init_apply_progress = __esm({
|
|
|
4598
4605
|
FRAME_INTERVAL_MS = 80;
|
|
4599
4606
|
TAIL_LINES = 15;
|
|
4600
4607
|
PHASE_TRIGGERS = [
|
|
4601
|
-
//
|
|
4602
|
-
//
|
|
4603
|
-
|
|
4604
|
-
//
|
|
4605
|
-
//
|
|
4606
|
-
|
|
4608
|
+
// Feature/layer build — distinct phase, often the longest single
|
|
4609
|
+
// step. Image mode runs `docker build`; compose mode runs
|
|
4610
|
+
// `docker compose … build <services>`. We match the build *subcommand*
|
|
4611
|
+
// (a space-delimited ` build`), NOT the substring — the compose `up`
|
|
4612
|
+
// line below carries `-f …devcontainer.build-<n>.yml` and would
|
|
4613
|
+
// otherwise false-match here and swallow the "starting" phase.
|
|
4614
|
+
{
|
|
4615
|
+
pattern: /Start: Run: docker (?:build\b|compose\b.* build\b)/i,
|
|
4616
|
+
label: "building feature layers\u2026"
|
|
4617
|
+
},
|
|
4618
|
+
// Container create/start. Image mode: `docker run` (pulls if needed,
|
|
4619
|
+
// creates, starts). Compose mode: `docker compose … up -d <services>`.
|
|
4620
|
+
{
|
|
4621
|
+
pattern: /Start: Run: docker (?:run\b|compose\b.* up\b)/i,
|
|
4622
|
+
label: "starting container\u2026"
|
|
4623
|
+
},
|
|
4607
4624
|
{ pattern: /Running the postCreateCommand/i, label: "running postCreate\u2026" }
|
|
4608
4625
|
];
|
|
4609
4626
|
}
|
|
@@ -5311,13 +5328,13 @@ var init_runtime_pull_hint = __esm({
|
|
|
5311
5328
|
|
|
5312
5329
|
// src/devcontainer/cli.ts
|
|
5313
5330
|
import { spawn as spawn4 } from "child_process";
|
|
5314
|
-
import { readFileSync as
|
|
5331
|
+
import { readFileSync as readFileSync5 } from "fs";
|
|
5315
5332
|
import { createRequire } from "module";
|
|
5316
5333
|
import path13 from "path";
|
|
5317
5334
|
function devcontainerCliPath() {
|
|
5318
5335
|
if (cachedBinaryPath) return cachedBinaryPath;
|
|
5319
5336
|
const pkgJsonPath = require_.resolve("@devcontainers/cli/package.json");
|
|
5320
|
-
const pkg = JSON.parse(
|
|
5337
|
+
const pkg = JSON.parse(readFileSync5(pkgJsonPath, "utf8"));
|
|
5321
5338
|
const binEntry = typeof pkg.bin === "string" ? pkg.bin : pkg.bin?.devcontainer ?? "";
|
|
5322
5339
|
if (!binEntry) {
|
|
5323
5340
|
throw new Error("Could not resolve @devcontainers/cli bin entry.");
|
|
@@ -6255,7 +6272,7 @@ var CLI_VERSION;
|
|
|
6255
6272
|
var init_version = __esm({
|
|
6256
6273
|
"src/version.ts"() {
|
|
6257
6274
|
"use strict";
|
|
6258
|
-
CLI_VERSION = true ? "1.16.
|
|
6275
|
+
CLI_VERSION = true ? "1.16.1" : "dev";
|
|
6259
6276
|
}
|
|
6260
6277
|
});
|
|
6261
6278
|
|