camstack 1.2.41 → 1.2.42
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-QDB4422W.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-QDB4422W.js");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/commands/setup.ts
|
|
@@ -108636,9 +108636,9 @@ var require_dist2 = __commonJS({
|
|
|
108636
108636
|
}
|
|
108637
108637
|
});
|
|
108638
108638
|
|
|
108639
|
-
// ../system/dist/manifest-python-deps-
|
|
108640
|
-
var
|
|
108641
|
-
"../system/dist/manifest-python-deps-
|
|
108639
|
+
// ../system/dist/manifest-python-deps-BTkFwAk_.js
|
|
108640
|
+
var require_manifest_python_deps_BTkFwAk = __commonJS({
|
|
108641
|
+
"../system/dist/manifest-python-deps-BTkFwAk_.js"(exports) {
|
|
108642
108642
|
"use strict";
|
|
108643
108643
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
108644
108644
|
var node_crypto = __require("crypto");
|
|
@@ -108837,7 +108837,7 @@ var require_manifest_python_deps_DB_4H3tR = __commonJS({
|
|
|
108837
108837
|
const reclaimer = createV8Reclaimer();
|
|
108838
108838
|
reclaimOptions = reclaimer === void 0 ? void 0 : { reclaim: reclaimer };
|
|
108839
108839
|
}
|
|
108840
|
-
return startHeapWatch(options.label, options.sink, intervalMs, reclaimOptions, void 0, void 0,
|
|
108840
|
+
return startHeapWatch(options.label, options.sink, intervalMs, reclaimOptions, void 0, void 0, true);
|
|
108841
108841
|
}
|
|
108842
108842
|
function trimSlashes(s) {
|
|
108843
108843
|
return s.replace(/^\/+/, "").replace(/\/+$/, "");
|
|
@@ -120273,7 +120273,7 @@ var require_dist3 = __commonJS({
|
|
|
120273
120273
|
require_system_config();
|
|
120274
120274
|
var require_builtins_winston_logging_index = require_winston_logging();
|
|
120275
120275
|
var require_file_data_plane = require_file_data_plane_DO8KbxCe();
|
|
120276
|
-
var require_manifest_python_deps =
|
|
120276
|
+
var require_manifest_python_deps = require_manifest_python_deps_BTkFwAk();
|
|
120277
120277
|
var require_resource_monitor = require_resource_monitor_CdnzxBLP();
|
|
120278
120278
|
var require_lan_http_bind = require_lan_http_bind_DmgpFP6();
|
|
120279
120279
|
var require_custom_action_registry = require_custom_action_registry_jY0NOZK8();
|
|
@@ -199585,6 +199585,18 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
199585
199585
|
this.crashes.delete(runnerId);
|
|
199586
199586
|
}
|
|
199587
199587
|
};
|
|
199588
|
+
function runnerNativeAllocatorEnv(parentEnv) {
|
|
199589
|
+
if (parentEnv["CAMSTACK_RUNNER_NATIVE_ALLOCATOR"] === "off") return {};
|
|
199590
|
+
return {
|
|
199591
|
+
MALLOC_ARENA_MAX: parentEnv["MALLOC_ARENA_MAX"] ?? String(positiveInt(parentEnv["CAMSTACK_RUNNER_MALLOC_ARENA_MAX"], 2)),
|
|
199592
|
+
VIPS_CONCURRENCY: parentEnv["VIPS_CONCURRENCY"] ?? String(1)
|
|
199593
|
+
};
|
|
199594
|
+
}
|
|
199595
|
+
function positiveInt(raw, fallback) {
|
|
199596
|
+
if (raw === void 0) return fallback;
|
|
199597
|
+
const n = Number.parseInt(raw, 10);
|
|
199598
|
+
return Number.isFinite(n) && n > 0 ? n : fallback;
|
|
199599
|
+
}
|
|
199588
199600
|
function forceMoleculerDisconnect(broker, nodeId) {
|
|
199589
199601
|
if (broker.nodeID === nodeId) return;
|
|
199590
199602
|
const nodes = Reflect.get(broker, "registry")?.nodes;
|
|
@@ -199753,10 +199765,11 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
199753
199765
|
CAMSTACK_LOG_LEVEL: process.env["CAMSTACK_LOG_LEVEL"] ?? "info",
|
|
199754
199766
|
...parentTcpPort !== void 0 ? { CAMSTACK_PARENT_TCP_PORT: String(parentTcpPort) } : {},
|
|
199755
199767
|
...parentUdsPath !== void 0 ? { CAMSTACK_PARENT_UDS_PATH: parentUdsPath } : {},
|
|
199768
|
+
...runnerNativeAllocatorEnv(process.env),
|
|
199756
199769
|
...env
|
|
199757
199770
|
};
|
|
199758
199771
|
const heapFlags = runnerHeapFlags(addons);
|
|
199759
|
-
capturedBroker?.logger.info(`[${runnerId}] heap profile: ${heavy ? "heavy" : "light"} flags=[${heapFlags.join(" ")}]`);
|
|
199772
|
+
capturedBroker?.logger.info(`[${runnerId}] heap profile: ${heavy ? "heavy" : "light"} flags=[${heapFlags.join(" ")}] arenas=${childEnv["MALLOC_ARENA_MAX"] ?? "glibc-default"} vips=${childEnv["VIPS_CONCURRENCY"] ?? "sharp-default"}`);
|
|
199760
199773
|
const child = spawnFn(process.execPath, [...heapFlags, runnerPath], {
|
|
199761
199774
|
env: childEnv,
|
|
199762
199775
|
stdio: [
|