@senticor/hive 1.56.2 → 1.56.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.
Files changed (3) hide show
  1. package/chive.cjs +20 -12
  2. package/hive.cjs +5 -5
  3. package/package.json +1 -1
package/chive.cjs CHANGED
@@ -32,8 +32,8 @@ var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${_
32
32
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
33
33
 
34
34
  // src/chive.mts
35
- var import_node_fs = __toESM(require("fs"), 1);
36
- var import_node_path = __toESM(require("path"), 1);
35
+ var import_node_fs2 = __toESM(require("fs"), 1);
36
+ var import_node_path2 = __toESM(require("path"), 1);
37
37
 
38
38
  // ../hive-kernel-code-context/src/index.ts
39
39
  var src_exports = {};
@@ -362,7 +362,7 @@ __export(graph_builder_exports, {
362
362
  var path4 = __toESM(require("path"), 1);
363
363
 
364
364
  // ../hive-utils/dist/index.js
365
- var import_node_crypto2 = require("crypto");
365
+ var import_node_crypto3 = require("crypto");
366
366
 
367
367
  // ../hive-utils/dist/pagination.js
368
368
  var import_node_crypto = require("crypto");
@@ -424,9 +424,17 @@ var INGEST_LIMIT_SPEC = {
424
424
  maxKafkaTlsCaPemBytes: { env: "HIVE_MAX_KAFKA_TLS_CA_PEM_BYTES", default: 64 * 1024, ceiling: 64 * 1024 }
425
425
  };
426
426
 
427
+ // ../hive-utils/dist/metrics-auth.js
428
+ var import_node_fs = require("fs");
429
+ var import_node_crypto2 = require("crypto");
430
+
431
+ // ../hive-utils/dist/cgroup-metrics.js
432
+ var import_promises = require("fs/promises");
433
+ var import_node_path = require("path");
434
+
427
435
  // ../hive-utils/dist/index.js
428
436
  function sha256Hex(input) {
429
- const h = (0, import_node_crypto2.createHash)("sha256");
437
+ const h = (0, import_node_crypto3.createHash)("sha256");
430
438
  h.update(input);
431
439
  return h.digest("hex");
432
440
  }
@@ -1142,9 +1150,9 @@ function stringListFlag(name) {
1142
1150
  return splitList(stringFlag(name));
1143
1151
  }
1144
1152
  function readJsonFile(p, label) {
1145
- if (!import_node_fs.default.existsSync(p)) dieUsage(`${label} not found at ${p}`);
1153
+ if (!import_node_fs2.default.existsSync(p)) dieUsage(`${label} not found at ${p}`);
1146
1154
  try {
1147
- return JSON.parse(import_node_fs.default.readFileSync(p, "utf8"));
1155
+ return JSON.parse(import_node_fs2.default.readFileSync(p, "utf8"));
1148
1156
  } catch (error) {
1149
1157
  dieRuntime(new Error(`${label} is not valid JSON: ${errorMessage2(error)}`));
1150
1158
  }
@@ -1153,8 +1161,8 @@ function writeResult(obj) {
1153
1161
  const json = JSON.stringify(obj, null, 2);
1154
1162
  const out = stringFlag("out");
1155
1163
  if (out) {
1156
- import_node_fs.default.writeFileSync(out, json + "\n");
1157
- console.error(`chive: wrote ${import_node_path.default.resolve(out)}`);
1164
+ import_node_fs2.default.writeFileSync(out, json + "\n");
1165
+ console.error(`chive: wrote ${import_node_path2.default.resolve(out)}`);
1158
1166
  } else {
1159
1167
  process.stdout.write(json + "\n");
1160
1168
  }
@@ -1198,9 +1206,9 @@ async function patchRecord(recordId, patch) {
1198
1206
  function readPacketIfSet() {
1199
1207
  const packetPath = stringFlag("packet");
1200
1208
  if (!packetPath) return null;
1201
- if (!import_node_fs.default.existsSync(packetPath)) dieUsage(`packet file not found at ${packetPath}`);
1209
+ if (!import_node_fs2.default.existsSync(packetPath)) dieUsage(`packet file not found at ${packetPath}`);
1202
1210
  try {
1203
- return JSON.parse(import_node_fs.default.readFileSync(packetPath, "utf8"));
1211
+ return JSON.parse(import_node_fs2.default.readFileSync(packetPath, "utf8"));
1204
1212
  } catch (error) {
1205
1213
  dieRuntime(new Error(`packet is not valid JSON: ${errorMessage2(error)}`));
1206
1214
  }
@@ -1210,8 +1218,8 @@ function readBodyIfSet() {
1210
1218
  if (body) return body;
1211
1219
  const bodyFile = stringFlag("body-file");
1212
1220
  if (bodyFile) {
1213
- if (!import_node_fs.default.existsSync(bodyFile)) dieUsage(`body-file not found at ${bodyFile}`);
1214
- return import_node_fs.default.readFileSync(bodyFile, "utf8");
1221
+ if (!import_node_fs2.default.existsSync(bodyFile)) dieUsage(`body-file not found at ${bodyFile}`);
1222
+ return import_node_fs2.default.readFileSync(bodyFile, "utf8");
1215
1223
  }
1216
1224
  return null;
1217
1225
  }
package/hive.cjs CHANGED
@@ -10376,22 +10376,22 @@ var artifactName = injectedString(
10376
10376
  true ? "hive-cli" : void 0
10377
10377
  ) || String(process.env.HIVE_CLI_ARTIFACT_NAME || "hive-cli").trim() || "hive-cli";
10378
10378
  var packageVersion = injectedString(
10379
- true ? "1.56.2" : void 0
10379
+ true ? "1.56.4" : void 0
10380
10380
  ) || String(process.env.HIVE_CLI_PACKAGE_VERSION || "").trim() || readPackageVersion();
10381
10381
  var releaseVersion = injectedString(
10382
- true ? "1.56.2" : void 0
10382
+ true ? "1.56.4" : void 0
10383
10383
  ) || String(process.env.HIVE_CLI_RELEASE_VERSION || "").trim() || packageVersion || "dev";
10384
10384
  var releaseChannel = injectedString(
10385
10385
  true ? "final" : void 0
10386
10386
  ) || String(process.env.HIVE_CLI_RELEASE_CHANNEL || "").trim() || (releaseVersion.includes("-rc.") ? "rc" : releaseVersion === "dev" ? "dev" : "final");
10387
10387
  var buildCommit = injectedString(
10388
- true ? "407c8e75d7df35ee0507938070ba9e60e415fd14" : void 0
10388
+ true ? "35bf880b5e0f12ae5c544f40d60665026228e617" : void 0
10389
10389
  ) || String(process.env.HIVE_CLI_BUILD_COMMIT || "").trim() || "unknown";
10390
10390
  var buildTimestamp = injectedString(
10391
- true ? "2026-10-08T13:48:26Z" : void 0
10391
+ true ? "2026-10-08T20:23:26Z" : void 0
10392
10392
  ) || String(process.env.HIVE_CLI_BUILD_TIMESTAMP || "").trim() || "unknown";
10393
10393
  var ociRef = injectedString(
10394
- true ? "registry.onstackit.cloud/senticor/hive-cli:1.56.2" : void 0
10394
+ true ? "registry.onstackit.cloud/senticor/hive-cli:1.56.4" : void 0
10395
10395
  ) || String(process.env.HIVE_CLI_OCI_REF || "").trim() || `registry.onstackit.cloud/senticor/${artifactName}:${releaseVersion}`;
10396
10396
  var RELEASE_INFO = Object.freeze({
10397
10397
  packageVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senticor/hive",
3
- "version": "1.56.2",
3
+ "version": "1.56.4",
4
4
  "description": "Cognitive Hive OS — unified CLI",
5
5
  "type": "commonjs",
6
6
  "bin": {