@getmonoceros/workbench 1.7.3 → 1.7.5
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 +12 -11
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -365,7 +365,7 @@ var GitUserSchema = z.object({
|
|
|
365
365
|
var RepoEntrySchema = z.object({
|
|
366
366
|
url: z.string().regex(
|
|
367
367
|
REPO_URL_RE,
|
|
368
|
-
"Invalid repo URL. Only HTTPS URLs are supported (https://...). SSH-style URLs (git@host:..., ssh://...) are not
|
|
368
|
+
"Invalid repo URL. Only HTTPS URLs are supported (https://...). SSH-style URLs (git@host:..., ssh://...) are not supported."
|
|
369
369
|
),
|
|
370
370
|
path: z.string().regex(
|
|
371
371
|
REPO_PATH_RE,
|
|
@@ -1266,7 +1266,10 @@ function buildDevcontainerJson(opts, dockerMode = "rootful") {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
const mounts = [...homeMounts];
|
|
1268
1268
|
const mountsField = mounts.length > 0 ? { mounts } : {};
|
|
1269
|
-
const workspaceMountField = {
|
|
1269
|
+
const workspaceMountField = {
|
|
1270
|
+
workspaceMount: `source=\${localWorkspaceFolder},target=/workspaces/${opts.name},type=bind,consistency=cached`,
|
|
1271
|
+
workspaceFolder: `/workspaces/${opts.name}`
|
|
1272
|
+
};
|
|
1270
1273
|
const runArgs = ["--cap-add=NET_ADMIN"];
|
|
1271
1274
|
if (ports.length > 0) {
|
|
1272
1275
|
runArgs.push("--network=monoceros-proxy");
|
|
@@ -3323,8 +3326,7 @@ function formatRootlessNotSupportedError() {
|
|
|
3323
3326
|
`shell. Otherwise new terminals keep pointing at the rootless`,
|
|
3324
3327
|
`socket and Monoceros's auto-recovery has nothing to fall back to.`,
|
|
3325
3328
|
``,
|
|
3326
|
-
`Then re-run
|
|
3327
|
-
`the workbench repo.`
|
|
3329
|
+
`Then re-run.`
|
|
3328
3330
|
].join("\n");
|
|
3329
3331
|
}
|
|
3330
3332
|
|
|
@@ -3631,7 +3633,7 @@ function warnOnDeprecatedFeatureRefs(containerFeatures, globalConfig, logger) {
|
|
|
3631
3633
|
}
|
|
3632
3634
|
|
|
3633
3635
|
// src/version.ts
|
|
3634
|
-
var CLI_VERSION = true ? "1.7.
|
|
3636
|
+
var CLI_VERSION = true ? "1.7.5" : "dev";
|
|
3635
3637
|
|
|
3636
3638
|
// src/commands/_dispatch.ts
|
|
3637
3639
|
import { consola as consola12 } from "consola";
|
|
@@ -4061,10 +4063,9 @@ var SCHEMA_HEADER = [
|
|
|
4061
4063
|
"# Monoceros solution-config. Edit freely, then run",
|
|
4062
4064
|
"# `monoceros apply <name>` to materialize a dev-container.",
|
|
4063
4065
|
"#",
|
|
4064
|
-
"#
|
|
4065
|
-
"#
|
|
4066
|
-
"# under `
|
|
4067
|
-
"# the feature's `devcontainer-feature.json` for the full list."
|
|
4066
|
+
"# Each section below carries inline comments for the options it",
|
|
4067
|
+
"# accepts. Features expose additional knobs as commented hints",
|
|
4068
|
+
"# under their `options:` block \u2014 un-comment what you need."
|
|
4068
4069
|
];
|
|
4069
4070
|
function generateComposedYml(name, components, lookupManifest, repoUrls = [], ports = []) {
|
|
4070
4071
|
const merged = mergeComponents(components);
|
|
@@ -4279,7 +4280,7 @@ function emitHint(out, hint, description, linePrefix) {
|
|
|
4279
4280
|
}
|
|
4280
4281
|
function renderReposBlock(out, urls, commented) {
|
|
4281
4282
|
out.push("# Repos \u2014 git repositories cloned into projects/ during");
|
|
4282
|
-
out.push("# post-create. HTTPS
|
|
4283
|
+
out.push("# post-create. HTTPS URLs only. Provider auto-detected");
|
|
4283
4284
|
out.push("# for github.com, gitlab.com, bitbucket.org; for any other host");
|
|
4284
4285
|
out.push("# (self-hosted GitLab, Bitbucket Data Center, Gitea/Forgejo,");
|
|
4285
4286
|
out.push("# GitHub Enterprise, \u2026) declare provider explicitly.");
|
|
@@ -4350,7 +4351,7 @@ function renderRoutingHintBlock(out) {
|
|
|
4350
4351
|
function renderActiveRoutingBlock(out, name, ports) {
|
|
4351
4352
|
out.push("# Routing \u2014 expose these container ports to the host through");
|
|
4352
4353
|
out.push("# the shared Traefik singleton. First entry doubles as");
|
|
4353
|
-
out.push(`# http://${name}.localhost (the default route)
|
|
4354
|
+
out.push(`# http://${name}.localhost (the default route).`);
|
|
4354
4355
|
out.push("routing:");
|
|
4355
4356
|
out.push(" ports:");
|
|
4356
4357
|
ports.forEach((port, idx) => {
|