@sentio/runtime 2.62.0-rc.5 → 2.62.0-rc.6

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.
@@ -24435,6 +24435,12 @@ var Contexts2 = class {
24435
24435
  import("node:process").then((p) => p.stdout.write(""));
24436
24436
 
24437
24437
  // src/processor-runner.ts
24438
+ import { readFileSync } from "fs";
24439
+ import { fileURLToPath } from "url";
24440
+ import { dirname, join } from "path";
24441
+ var __filename = fileURLToPath(import.meta.url);
24442
+ var __dirname = dirname(__filename);
24443
+ var packageJson = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf8"));
24438
24444
  var workerNum = 1;
24439
24445
  try {
24440
24446
  workerNum = parseInt(process.env["PROCESSOR_WORKER"]?.trim() ?? "1");
@@ -24449,7 +24455,7 @@ function myParseInt(value, dummyPrevious) {
24449
24455
  return parsedValue;
24450
24456
  }
24451
24457
  var program2 = new Command();
24452
- program2.name("processor-runner").description("Sentio Processor Runtime").version("2.0.0-development").option("--target <path>", "Path to the processor module to load").option("-p, --port <port>", "Port to listen on", "4000").option("--concurrency <number>", "Number of concurrent workers", myParseInt, 4).option("--batch-count <number>", "Batch count for processing", myParseInt, 1).option("-c, --chains-config <path>", "Path to chains configuration file", "chains-config.json").option("--chainquery-server <url>", "Chain query server URL", "").option("--pricefeed-server <url>", "Price feed server URL", "").option("--log-format <format>", "Log format (console|json)", "console").option("--debug", "Enable debug mode", false).option("--otlp-debug", "Enable OTLP debug mode", false).option("--start-action-server", "Start action server instead of processor server", false).option("--worker <number>", "Number of worker threads", myParseInt, workerNum).option("--process-timeout <seconds>", "Process timeout in seconds", myParseInt, 60).option(
24458
+ program2.allowUnknownOption().allowExcessArguments().name("processor-runner").description("Sentio Processor Runtime").version(packageJson.version).option("--target <path>", "Path to the processor module to load").option("-p, --port <port>", "Port to listen on", "4000").option("--concurrency <number>", "Number of concurrent workers", myParseInt, 4).option("--batch-count <number>", "Batch count for processing", myParseInt, 1).option("-c, --chains-config <path>", "Path to chains configuration file", "chains-config.json").option("--chainquery-server <url>", "Chain query server URL", "").option("--pricefeed-server <url>", "Price feed server URL", "").option("--log-format <format>", "Log format (console|json)", "console").option("--debug", "Enable debug mode", false).option("--otlp-debug", "Enable OTLP debug mode", false).option("--start-action-server", "Start action server instead of processor server", false).option("--worker <number>", "Number of worker threads", myParseInt, workerNum).option("--process-timeout <seconds>", "Process timeout in seconds", myParseInt, 60).option(
24453
24459
  "--worker-timeout <seconds>",
24454
24460
  "Worker timeout in seconds",
24455
24461
  myParseInt,