camstack 1.2.166 → 1.2.167
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/cli.js
CHANGED
|
@@ -38,7 +38,7 @@ async function runServe(args) {
|
|
|
38
38
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
39
39
|
};
|
|
40
40
|
Object.assign(process.env, buildServeEnv(opts));
|
|
41
|
-
await import("./launcher-
|
|
41
|
+
await import("./launcher-AYZZUJZ6.js");
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// src/commands/agent.ts
|
|
@@ -83,7 +83,7 @@ async function runAgent(args) {
|
|
|
83
83
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
84
84
|
};
|
|
85
85
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
86
|
-
await import("./launcher-
|
|
86
|
+
await import("./launcher-AYZZUJZ6.js");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/commands/setup.ts
|
|
@@ -6434,6 +6434,9 @@ var require_first_boot_addon_plan = __commonJS({
|
|
|
6434
6434
|
const target = d.action === "install-npm" ? "@latest" : "";
|
|
6435
6435
|
lines.push(` ${d.pkg}${target} \u2014 ${d.action}: ${d.reason}`);
|
|
6436
6436
|
}
|
|
6437
|
+
if (plan.decisions.length > 0 && plan.decisions.every((d) => d.closureVersion === null)) {
|
|
6438
|
+
lines.push(` the closure carries NO version for any of the ${plan.decisions.length} package(s) \u2014 either this is a dev layout, or the closure path does not resolve (it is <root>/node_modules, NOT <server>/node_modules; see closure-node-modules.ts)`);
|
|
6439
|
+
}
|
|
6437
6440
|
if (plan.twoVersions.length > 0) {
|
|
6438
6441
|
lines.push(` two versions on this node (installed vs this closure's own copy): ${plan.twoVersions.join(", ")} \u2014 INFO: the installed copy is the one that runs`);
|
|
6439
6442
|
}
|
|
@@ -6501,6 +6504,56 @@ var require_addon_realign_plan = __commonJS({
|
|
|
6501
6504
|
}
|
|
6502
6505
|
});
|
|
6503
6506
|
|
|
6507
|
+
// ../../server/backend/dist/closure-node-modules.js
|
|
6508
|
+
var require_closure_node_modules = __commonJS({
|
|
6509
|
+
"../../server/backend/dist/closure-node-modules.js"(exports) {
|
|
6510
|
+
"use strict";
|
|
6511
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6512
|
+
if (k2 === void 0) k2 = k;
|
|
6513
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6514
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6515
|
+
desc = { enumerable: true, get: function() {
|
|
6516
|
+
return m[k];
|
|
6517
|
+
} };
|
|
6518
|
+
}
|
|
6519
|
+
Object.defineProperty(o, k2, desc);
|
|
6520
|
+
}) : (function(o, m, k, k2) {
|
|
6521
|
+
if (k2 === void 0) k2 = k;
|
|
6522
|
+
o[k2] = m[k];
|
|
6523
|
+
}));
|
|
6524
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
6525
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
6526
|
+
}) : function(o, v) {
|
|
6527
|
+
o["default"] = v;
|
|
6528
|
+
});
|
|
6529
|
+
var __importStar = exports && exports.__importStar || /* @__PURE__ */ (function() {
|
|
6530
|
+
var ownKeys = function(o) {
|
|
6531
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
6532
|
+
var ar = [];
|
|
6533
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
6534
|
+
return ar;
|
|
6535
|
+
};
|
|
6536
|
+
return ownKeys(o);
|
|
6537
|
+
};
|
|
6538
|
+
return function(mod) {
|
|
6539
|
+
if (mod && mod.__esModule) return mod;
|
|
6540
|
+
var result = {};
|
|
6541
|
+
if (mod != null) {
|
|
6542
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
6543
|
+
}
|
|
6544
|
+
__setModuleDefault(result, mod);
|
|
6545
|
+
return result;
|
|
6546
|
+
};
|
|
6547
|
+
})();
|
|
6548
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6549
|
+
exports.resolveClosureNodeModules = resolveClosureNodeModules;
|
|
6550
|
+
var path = __importStar(__require("path"));
|
|
6551
|
+
function resolveClosureNodeModules(serverDistDir) {
|
|
6552
|
+
return path.resolve(serverDistDir, "..", "..", "..");
|
|
6553
|
+
}
|
|
6554
|
+
}
|
|
6555
|
+
});
|
|
6556
|
+
|
|
6504
6557
|
// ../../server/backend/dist/framework-nodepath.js
|
|
6505
6558
|
var require_framework_nodepath = __commonJS({
|
|
6506
6559
|
"../../server/backend/dist/framework-nodepath.js"(exports) {
|
|
@@ -439978,6 +440031,7 @@ var require_launcher = __commonJS({
|
|
|
439978
440031
|
var bootstrap_packages_js_1 = require_bootstrap_packages();
|
|
439979
440032
|
var first_boot_addon_plan_js_1 = require_first_boot_addon_plan();
|
|
439980
440033
|
var addon_realign_plan_js_1 = require_addon_realign_plan();
|
|
440034
|
+
var closure_node_modules_js_1 = require_closure_node_modules();
|
|
439981
440035
|
var framework_nodepath_js_1 = require_framework_nodepath();
|
|
439982
440036
|
var package_inventory_js_1 = require_package_inventory();
|
|
439983
440037
|
var ARCHIVE_MANIFEST_NAME = ".camstack-backup-manifest.json";
|
|
@@ -440159,7 +440213,7 @@ var require_launcher = __commonJS({
|
|
|
440159
440213
|
const bootstrapRequired = readBootstrapRequiredAddons(dataDir, bootstrapSchema) ?? roleDefaultBootstrap;
|
|
440160
440214
|
console.log(`[launcher] bootstrap (${role}): ${bootstrapRequired.length} required package(s)`);
|
|
440161
440215
|
try {
|
|
440162
|
-
const closureNodeModules =
|
|
440216
|
+
const closureNodeModules = (0, closure_node_modules_js_1.resolveClosureNodeModules)(__dirname);
|
|
440163
440217
|
const plan = (0, first_boot_addon_plan_js_1.planFirstBootAddons)({
|
|
440164
440218
|
required: bootstrapRequired,
|
|
440165
440219
|
installed: readInstalledAddonVersions(addonsDir, bootstrapRequired),
|
|
@@ -440183,7 +440237,7 @@ var require_launcher = __commonJS({
|
|
|
440183
440237
|
}
|
|
440184
440238
|
await installer.ensureRequiredPackages(bootstrapRequired);
|
|
440185
440239
|
try {
|
|
440186
|
-
const closureNodeModules =
|
|
440240
|
+
const closureNodeModules = (0, closure_node_modules_js_1.resolveClosureNodeModules)(__dirname);
|
|
440187
440241
|
const decisions = (0, addon_realign_plan_js_1.planAddonRealignment)(bootstrapRequired.flatMap((pkg) => {
|
|
440188
440242
|
const installedVersion = readInstalledAddonVersions(addonsDir, [pkg])[pkg];
|
|
440189
440243
|
if (typeof installedVersion !== "string")
|