@getmonoceros/workbench 1.38.3 → 1.38.4
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 +7 -6
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2418,7 +2418,7 @@ var init_catalog = __esm({
|
|
|
2418
2418
|
override = process.env.MONOCEROS_BASE_IMAGE_OVERRIDE?.trim();
|
|
2419
2419
|
BASE_IMAGE = override && override.length > 0 ? override : DEFAULT_BASE_IMAGE;
|
|
2420
2420
|
RUNTIME_IMAGE_REPO = "ghcr.io/getmonoceros/monoceros-runtime";
|
|
2421
|
-
DEFAULT_RUNTIME_VERSION = true ? "1.6.
|
|
2421
|
+
DEFAULT_RUNTIME_VERSION = true ? "1.6.1" : readFileSync3(
|
|
2422
2422
|
fileURLToPath2(
|
|
2423
2423
|
new URL("../../../../images/runtime/VERSION", import.meta.url)
|
|
2424
2424
|
),
|
|
@@ -4626,7 +4626,7 @@ function generateAgentsMd(input) {
|
|
|
4626
4626
|
lines.push("");
|
|
4627
4627
|
lines.push("```json");
|
|
4628
4628
|
lines.push("{");
|
|
4629
|
-
lines.push(' "
|
|
4629
|
+
lines.push(' "targets": [');
|
|
4630
4630
|
lines.push(
|
|
4631
4631
|
` { "name": "web", "command": "<the project's start command>", "port": ${examplePort}, "default": true }`
|
|
4632
4632
|
);
|
|
@@ -8996,7 +8996,7 @@ var CLI_VERSION;
|
|
|
8996
8996
|
var init_version = __esm({
|
|
8997
8997
|
"src/version.ts"() {
|
|
8998
8998
|
"use strict";
|
|
8999
|
-
CLI_VERSION = true ? "1.38.
|
|
8999
|
+
CLI_VERSION = true ? "1.38.4" : "dev";
|
|
9000
9000
|
}
|
|
9001
9001
|
});
|
|
9002
9002
|
|
|
@@ -9246,11 +9246,12 @@ function validate(parsed, where) {
|
|
|
9246
9246
|
throw new Error(`${where}: expected a JSON object`);
|
|
9247
9247
|
}
|
|
9248
9248
|
const obj = parsed;
|
|
9249
|
-
|
|
9250
|
-
|
|
9249
|
+
const rawList = Array.isArray(obj.targets) ? obj.targets : Array.isArray(obj.configurations) ? obj.configurations : null;
|
|
9250
|
+
if (!rawList) {
|
|
9251
|
+
throw new Error(`${where}: missing "targets" array`);
|
|
9251
9252
|
}
|
|
9252
9253
|
const seen = /* @__PURE__ */ new Set();
|
|
9253
|
-
const configurations =
|
|
9254
|
+
const configurations = rawList.map((raw, i) => {
|
|
9254
9255
|
if (typeof raw !== "object" || raw === null) {
|
|
9255
9256
|
throw new Error(`${where}: configuration #${i} is not an object`);
|
|
9256
9257
|
}
|