@senticor/hive 1.160.5 → 1.161.0

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 +33 -7
  2. package/package.json +1 -1
package/hive.cjs CHANGED
@@ -10511,22 +10511,22 @@ var artifactName = injectedString(
10511
10511
  true ? "hive-cli" : void 0
10512
10512
  ) || String(process.env.HIVE_CLI_ARTIFACT_NAME || "hive-cli").trim() || "hive-cli";
10513
10513
  var packageVersion = injectedString(
10514
- true ? "1.160.5" : void 0
10514
+ true ? "1.161.0" : void 0
10515
10515
  ) || String(process.env.HIVE_CLI_PACKAGE_VERSION || "").trim() || readPackageVersion();
10516
10516
  var releaseVersion = injectedString(
10517
- true ? "1.160.5" : void 0
10517
+ true ? "1.161.0" : void 0
10518
10518
  ) || String(process.env.HIVE_CLI_RELEASE_VERSION || "").trim() || packageVersion || "dev";
10519
10519
  var releaseChannel = injectedString(
10520
10520
  true ? "final" : void 0
10521
10521
  ) || String(process.env.HIVE_CLI_RELEASE_CHANNEL || "").trim() || (releaseVersion.includes("-rc.") ? "rc" : releaseVersion === "dev" ? "dev" : "final");
10522
10522
  var buildCommit = injectedString(
10523
- true ? "d3cae4a754b76db8a3906605e0b4e5c1c9515bd9" : void 0
10523
+ true ? "4dbbce7e233af4ccd9f4e41c1c016b28aeaccd75" : void 0
10524
10524
  ) || String(process.env.HIVE_CLI_BUILD_COMMIT || "").trim() || "unknown";
10525
10525
  var buildTimestamp = injectedString(
10526
- true ? "2026-11-17T11:08:08Z" : void 0
10526
+ true ? "2026-11-17T12:32:07Z" : void 0
10527
10527
  ) || String(process.env.HIVE_CLI_BUILD_TIMESTAMP || "").trim() || "unknown";
10528
10528
  var ociRef = injectedString(
10529
- true ? "registry.onstackit.cloud/senticor/hive-cli:1.160.5" : void 0
10529
+ true ? "registry.onstackit.cloud/senticor/hive-cli:1.161.0" : void 0
10530
10530
  ) || String(process.env.HIVE_CLI_OCI_REF || "").trim() || `registry.onstackit.cloud/senticor/${artifactName}:${releaseVersion}`;
10531
10531
  var RELEASE_INFO = Object.freeze({
10532
10532
  packageVersion,
@@ -32610,7 +32610,12 @@ var adminArgs = {
32610
32610
  envelope: { type: "string", description: "Envelope path (inject)" },
32611
32611
  missionId: { type: "string", description: "Mission id (inject/run)" },
32612
32612
  key: { type: "string", description: "Partition key (inject)" },
32613
- email: { type: "string", description: "Platform administrator email (grant/revoke)" }
32613
+ email: { type: "string", description: "Platform administrator email (grant/revoke)" },
32614
+ principalId: { type: "string", description: "Principal UUID (relink)" },
32615
+ issuer: { type: "string", description: "New identity provider issuer URL, https (relink)" },
32616
+ subject: { type: "string", description: "New subject (`sub`) at that issuer (relink)" },
32617
+ reason: { type: "string", description: "Why the person is relinked, kept in the audit entry (relink)" },
32618
+ allowNonHuman: { type: "boolean", description: "Relink a machine principal too (relink; people only by default)" }
32614
32619
  };
32615
32620
  registerValueFlags(adminArgs);
32616
32621
  function adminFlags(args) {
@@ -32665,6 +32670,26 @@ function platformAdminLeaf(name, description) {
32665
32670
  }
32666
32671
  });
32667
32672
  }
32673
+ var relinkLeaf = defineCommand({
32674
+ meta: { name: "relink", description: "Point a principal at a new identity provider subject (platform admin; --dry-run previews)" },
32675
+ args: adminArgs,
32676
+ async run({ args }) {
32677
+ req(args, "principalId");
32678
+ req(args, "issuer");
32679
+ req(args, "subject");
32680
+ const dryRun = adminFlagsFromArgv(args)["dry-run"] === true;
32681
+ if (!dryRun) req(args, "reason");
32682
+ const { client, fmt } = ctx(args, { adminScope: true });
32683
+ const body = {
32684
+ issuer: String(args.issuer).trim(),
32685
+ subject: String(args.subject).trim(),
32686
+ ...args.reason ? { reason: String(args.reason) } : {},
32687
+ ...dryRun ? { dryRun: true } : {},
32688
+ ...args.allowNonHuman === true ? { allowNonHuman: true } : {}
32689
+ };
32690
+ return output((await client.post(`/api/admin/principals/${encodeURIComponent(String(args.principalId).trim())}/identity-relink`, body)).data, fmt);
32691
+ }
32692
+ });
32668
32693
  var admin = defineCommand({
32669
32694
  meta: { name: "admin", description: "Platform administrator lifecycle and headless provisioning" },
32670
32695
  args: adminArgs,
@@ -32675,7 +32700,8 @@ var admin = defineCommand({
32675
32700
  run: adminLeaf("run", "One-off connector run for a mission"),
32676
32701
  list: platformAdminLeaf("list", "List active platform administrators and pending grants"),
32677
32702
  grant: platformAdminLeaf("grant", "Grant platform administration by email"),
32678
- revoke: platformAdminLeaf("revoke", "Revoke platform administration or cancel a pending grant")
32703
+ revoke: platformAdminLeaf("revoke", "Revoke platform administration or cancel a pending grant"),
32704
+ relink: relinkLeaf
32679
32705
  }
32680
32706
  });
32681
32707
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@senticor/hive",
3
- "version": "1.160.5",
3
+ "version": "1.161.0",
4
4
  "description": "Cognitive Hive OS — unified CLI",
5
5
  "type": "commonjs",
6
6
  "bin": {