@senticor/hive 1.37.1 → 1.38.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.
- package/hive.cjs +30 -8
- package/package.json +1 -1
package/hive.cjs
CHANGED
|
@@ -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.
|
|
9124
|
+
true ? "1.38.0" : void 0
|
|
9125
9125
|
) || String(process.env.HIVE_CLI_PACKAGE_VERSION || "").trim() || readPackageVersion();
|
|
9126
9126
|
var releaseVersion = injectedString(
|
|
9127
|
-
true ? "1.
|
|
9127
|
+
true ? "1.38.0" : 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 ? "
|
|
9133
|
+
true ? "6345031562d27ba38f0b89ac8ba5680b05d751d2" : void 0
|
|
9134
9134
|
) || String(process.env.HIVE_CLI_BUILD_COMMIT || "").trim() || "unknown";
|
|
9135
9135
|
var buildTimestamp = injectedString(
|
|
9136
|
-
true ? "2026-09-
|
|
9136
|
+
true ? "2026-09-14T10:51:33Z" : 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.
|
|
9139
|
+
true ? "registry.onstackit.cloud/senticor/hive-cli:1.38.0" : 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: "
|
|
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
|
|