@openape/apes 1.28.4 → 1.28.5
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/dist/cli.js
CHANGED
|
@@ -6005,7 +6005,7 @@ async function runAdapterMode(command, rawArgs, args) {
|
|
|
6005
6005
|
if (!idp)
|
|
6006
6006
|
throw new Error("No IdP URL configured. Run `apes login` first or pass --idp.");
|
|
6007
6007
|
if (args.as) {
|
|
6008
|
-
await runAudienceMode("escapes", command.join(" "), args);
|
|
6008
|
+
await runAudienceMode("escapes", command.join(" "), args, command);
|
|
6009
6009
|
return;
|
|
6010
6010
|
}
|
|
6011
6011
|
const adapterOpt = extractOption(rawArgs, "adapter");
|
|
@@ -6063,14 +6063,14 @@ async function runAdapterMode(command, rawArgs, args) {
|
|
|
6063
6063
|
printPendingGrantInfo(grant, idp);
|
|
6064
6064
|
throw new CliExit(getAsyncExitCode());
|
|
6065
6065
|
}
|
|
6066
|
-
async function runAudienceMode(audience, action, args) {
|
|
6066
|
+
async function runAudienceMode(audience, action, args, commandArgv) {
|
|
6067
6067
|
const auth = loadAuth();
|
|
6068
6068
|
if (!auth) {
|
|
6069
6069
|
throw new CliError("Not logged in. Run `apes login` first.");
|
|
6070
6070
|
}
|
|
6071
6071
|
const idp = getIdpUrl(args.idp);
|
|
6072
6072
|
const grantsUrl = await getGrantsEndpoint(idp);
|
|
6073
|
-
const command = action.split(" ");
|
|
6073
|
+
const command = commandArgv ?? action.split(" ");
|
|
6074
6074
|
const targetHost = args.host || hostname5();
|
|
6075
6075
|
const runAs = resolveRunAsTarget(args.as ?? void 0);
|
|
6076
6076
|
const reusableId = await findReusableAudienceGrant({
|
|
@@ -6738,7 +6738,7 @@ var mcpCommand = defineCommand52({
|
|
|
6738
6738
|
if (transport !== "stdio" && transport !== "sse") {
|
|
6739
6739
|
throw new Error('Transport must be "stdio" or "sse"');
|
|
6740
6740
|
}
|
|
6741
|
-
const { startMcpServer } = await import("./server-
|
|
6741
|
+
const { startMcpServer } = await import("./server-QQ6WQ244.js");
|
|
6742
6742
|
await startMcpServer(transport, port);
|
|
6743
6743
|
}
|
|
6744
6744
|
});
|
|
@@ -7376,7 +7376,7 @@ async function bestEffortGrantCount(idp) {
|
|
|
7376
7376
|
}
|
|
7377
7377
|
}
|
|
7378
7378
|
async function runHealth(args) {
|
|
7379
|
-
const version = true ? "1.28.
|
|
7379
|
+
const version = true ? "1.28.5" : "0.0.0";
|
|
7380
7380
|
const auth = loadAuth();
|
|
7381
7381
|
if (!auth) {
|
|
7382
7382
|
throw new CliError("Not logged in. Run `apes login` first.", 1);
|
|
@@ -7649,10 +7649,10 @@ if (shellRewrite) {
|
|
|
7649
7649
|
if (shellRewrite.action === "rewrite") {
|
|
7650
7650
|
process.argv = shellRewrite.argv;
|
|
7651
7651
|
} else if (shellRewrite.action === "version") {
|
|
7652
|
-
console.log(`ape-shell ${"1.28.
|
|
7652
|
+
console.log(`ape-shell ${"1.28.5"} (OpenApe DDISA shell wrapper)`);
|
|
7653
7653
|
process.exit(0);
|
|
7654
7654
|
} else if (shellRewrite.action === "help") {
|
|
7655
|
-
console.log(`ape-shell ${"1.28.
|
|
7655
|
+
console.log(`ape-shell ${"1.28.5"} \u2014 OpenApe DDISA shell wrapper`);
|
|
7656
7656
|
console.log("");
|
|
7657
7657
|
console.log("Usage:");
|
|
7658
7658
|
console.log(" ape-shell Start interactive grant-mediated REPL");
|
|
@@ -7710,7 +7710,7 @@ var configCommand = defineCommand64({
|
|
|
7710
7710
|
var main = defineCommand64({
|
|
7711
7711
|
meta: {
|
|
7712
7712
|
name: "apes",
|
|
7713
|
-
version: "1.28.
|
|
7713
|
+
version: "1.28.5",
|
|
7714
7714
|
description: "Unified CLI for OpenApe"
|
|
7715
7715
|
},
|
|
7716
7716
|
subCommands: {
|
|
@@ -7768,7 +7768,7 @@ async function maybeRefreshAuth() {
|
|
|
7768
7768
|
}
|
|
7769
7769
|
}
|
|
7770
7770
|
await maybeRefreshAuth();
|
|
7771
|
-
await maybeWarnStaleVersion("1.28.
|
|
7771
|
+
await maybeWarnStaleVersion("1.28.5").catch(() => {
|
|
7772
7772
|
});
|
|
7773
7773
|
runMain(main).catch((err) => {
|
|
7774
7774
|
if (err instanceof CliExit) {
|