@senticor/hive 1.37.2 → 1.38.1

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 (2) hide show
  1. package/hive.cjs +32 -10
  2. package/package.json +1 -1
package/hive.cjs CHANGED
@@ -42,10 +42,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
42
42
  mod
43
43
  ));
44
44
 
45
- // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.43_@swc+helpers@0.5.23__jiti@2.7.0_postcss@8.5.28_supports-co_31848a8bdea0b88552e4f5c38089fb48/node_modules/tsup/assets/cjs_shims.js
45
+ // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.43_@swc+helpers@0.5.23__jiti@2.7.0_postcss@8.5.28_supports-co_ebdccb821406f648b54993c6aadaa9c1/node_modules/tsup/assets/cjs_shims.js
46
46
  var getImportMetaUrl, importMetaUrl;
47
47
  var init_cjs_shims = __esm({
48
- "../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.43_@swc+helpers@0.5.23__jiti@2.7.0_postcss@8.5.28_supports-co_31848a8bdea0b88552e4f5c38089fb48/node_modules/tsup/assets/cjs_shims.js"() {
48
+ "../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.43_@swc+helpers@0.5.23__jiti@2.7.0_postcss@8.5.28_supports-co_ebdccb821406f648b54993c6aadaa9c1/node_modules/tsup/assets/cjs_shims.js"() {
49
49
  "use strict";
50
50
  getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
51
51
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -9121,22 +9121,22 @@ var artifactName = injectedString(
9121
9121
  true ? "hive-cli" : void 0
9122
9122
  ) || String(process.env.HIVE_CLI_ARTIFACT_NAME || "hive-cli").trim() || "hive-cli";
9123
9123
  var packageVersion = injectedString(
9124
- true ? "1.37.2" : void 0
9124
+ true ? "1.38.1" : void 0
9125
9125
  ) || String(process.env.HIVE_CLI_PACKAGE_VERSION || "").trim() || readPackageVersion();
9126
9126
  var releaseVersion = injectedString(
9127
- true ? "1.37.2" : void 0
9127
+ true ? "1.38.1" : void 0
9128
9128
  ) || String(process.env.HIVE_CLI_RELEASE_VERSION || "").trim() || packageVersion || "dev";
9129
9129
  var releaseChannel = injectedString(
9130
9130
  true ? "final" : void 0
9131
9131
  ) || String(process.env.HIVE_CLI_RELEASE_CHANNEL || "").trim() || (releaseVersion.includes("-rc.") ? "rc" : releaseVersion === "dev" ? "dev" : "final");
9132
9132
  var buildCommit = injectedString(
9133
- true ? "45736e9ffc10a3a10e0c2a63af5c995d8940ba59" : void 0
9133
+ true ? "362ea8af711e37a405db3c0a652f78d9c08c7586" : void 0
9134
9134
  ) || String(process.env.HIVE_CLI_BUILD_COMMIT || "").trim() || "unknown";
9135
9135
  var buildTimestamp = injectedString(
9136
- true ? "2026-09-14T07:30:12Z" : void 0
9136
+ true ? "2026-09-15T17:24:59Z" : void 0
9137
9137
  ) || String(process.env.HIVE_CLI_BUILD_TIMESTAMP || "").trim() || "unknown";
9138
9138
  var ociRef = injectedString(
9139
- true ? "registry.onstackit.cloud/senticor/hive-cli:1.37.2" : void 0
9139
+ true ? "registry.onstackit.cloud/senticor/hive-cli:1.38.1" : void 0
9140
9140
  ) || String(process.env.HIVE_CLI_OCI_REF || "").trim() || `registry.onstackit.cloud/senticor/${artifactName}:${releaseVersion}`;
9141
9141
  var RELEASE_INFO = Object.freeze({
9142
9142
  packageVersion,
@@ -25847,7 +25847,8 @@ var adminArgs = {
25847
25847
  probe: { type: "boolean", default: true, description: "Run the post-bootstrap probe (--no-probe to skip when the broker is unreachable)" },
25848
25848
  envelope: { type: "string", description: "Envelope path (inject)" },
25849
25849
  missionId: { type: "string", description: "Mission id (inject/run)" },
25850
- key: { type: "string", description: "Partition key (inject)" }
25850
+ key: { type: "string", description: "Partition key (inject)" },
25851
+ email: { type: "string", description: "Platform administrator email (grant/revoke)" }
25851
25852
  };
25852
25853
  registerValueFlags(adminArgs);
25853
25854
  function adminFlags(args) {
@@ -25884,14 +25885,35 @@ function adminLeaf(name, description) {
25884
25885
  }
25885
25886
  });
25886
25887
  }
25888
+ function platformAdminLeaf(name, description) {
25889
+ return defineCommand({
25890
+ meta: { name, description },
25891
+ args: adminArgs,
25892
+ async run({ args }) {
25893
+ const { client, fmt } = ctx(args);
25894
+ if (name === "list") {
25895
+ return output((await client.get("/api/admin/platform-admins")).data, fmt);
25896
+ }
25897
+ req(args, "email");
25898
+ const email3 = String(args.email).trim().toLowerCase();
25899
+ if (name === "grant") {
25900
+ return output((await client.post("/api/admin/platform-admins", { email: email3 })).data, fmt);
25901
+ }
25902
+ return output((await client.del(`/api/admin/platform-admins/${encodeURIComponent(email3)}`)).data, fmt);
25903
+ }
25904
+ });
25905
+ }
25887
25906
  var admin = defineCommand({
25888
- meta: { name: "admin", description: "Headless tenant + mission + Kafka provisioning (no workbench)" },
25907
+ meta: { name: "admin", description: "Platform administrator lifecycle and headless provisioning" },
25889
25908
  args: adminArgs,
25890
25909
  default: "bootstrap",
25891
25910
  subCommands: {
25892
25911
  bootstrap: adminLeaf("bootstrap", "Provision tenant + mission + Kafka binding from a config"),
25893
25912
  inject: adminLeaf("inject", "Inject one envelope into a mission (no broker)"),
25894
- run: adminLeaf("run", "One-off connector run for a mission")
25913
+ run: adminLeaf("run", "One-off connector run for a mission"),
25914
+ list: platformAdminLeaf("list", "List active platform administrators and pending grants"),
25915
+ grant: platformAdminLeaf("grant", "Grant platform administration by email"),
25916
+ revoke: platformAdminLeaf("revoke", "Revoke platform administration or cancel a pending grant")
25895
25917
  }
25896
25918
  });
25897
25919
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senticor/hive",
3
- "version": "1.37.2",
3
+ "version": "1.38.1",
4
4
  "description": "Cognitive Hive OS — unified CLI",
5
5
  "type": "commonjs",
6
6
  "bin": {