@openape/apes 1.31.3 → 1.31.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.
package/dist/cli.js
CHANGED
|
@@ -148,11 +148,6 @@ async function resolveLoginInputs(flags) {
|
|
|
148
148
|
consola.info(`Using email from ${keyPath}.pub comment: ${email}`);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
if (process.env.APES_IDP && process.env.GRAPES_IDP) {
|
|
152
|
-
consola.warn(
|
|
153
|
-
"Both APES_IDP and GRAPES_IDP are set \u2014 using APES_IDP. GRAPES_IDP is deprecated and will be removed in a future release."
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
151
|
let idp;
|
|
157
152
|
let idpSource;
|
|
158
153
|
if (flags.idp) {
|
|
@@ -161,12 +156,6 @@ async function resolveLoginInputs(flags) {
|
|
|
161
156
|
} else if (process.env.APES_IDP) {
|
|
162
157
|
idp = process.env.APES_IDP;
|
|
163
158
|
idpSource = "env";
|
|
164
|
-
} else if (process.env.GRAPES_IDP) {
|
|
165
|
-
idp = process.env.GRAPES_IDP;
|
|
166
|
-
idpSource = "env";
|
|
167
|
-
consola.warn(
|
|
168
|
-
"GRAPES_IDP is deprecated, use APES_IDP instead. GRAPES_IDP support will be removed in a future release."
|
|
169
|
-
);
|
|
170
159
|
} else if (config.defaults?.idp) {
|
|
171
160
|
idp = config.defaults.idp;
|
|
172
161
|
idpSource = "config";
|
|
@@ -4804,6 +4793,7 @@ function resolveRunAsTarget(runAs) {
|
|
|
4804
4793
|
if (!runAs) return runAs;
|
|
4805
4794
|
if (!AGENT_NAME_REGEX.test(runAs)) return runAs;
|
|
4806
4795
|
if (runAs.startsWith("openape-agent-")) return runAs;
|
|
4796
|
+
if (!isLinux()) return runAs;
|
|
4807
4797
|
const platform = getHostPlatform();
|
|
4808
4798
|
const prefixed = platform.agentUsername(runAs);
|
|
4809
4799
|
if (platform.readAgentUser(prefixed)) return prefixed;
|
|
@@ -5863,7 +5853,7 @@ var mcpCommand = defineCommand53({
|
|
|
5863
5853
|
if (transport !== "stdio" && transport !== "sse") {
|
|
5864
5854
|
throw new Error('Transport must be "stdio" or "sse"');
|
|
5865
5855
|
}
|
|
5866
|
-
const { startMcpServer } = await import("./server-
|
|
5856
|
+
const { startMcpServer } = await import("./server-MTGGI6UE.js");
|
|
5867
5857
|
await startMcpServer(transport, port);
|
|
5868
5858
|
}
|
|
5869
5859
|
});
|
|
@@ -6501,7 +6491,7 @@ async function bestEffortGrantCount(idp) {
|
|
|
6501
6491
|
}
|
|
6502
6492
|
}
|
|
6503
6493
|
async function runHealth(args) {
|
|
6504
|
-
const version = true ? "1.31.
|
|
6494
|
+
const version = true ? "1.31.4" : "0.0.0";
|
|
6505
6495
|
const auth = loadAuth();
|
|
6506
6496
|
if (!auth) {
|
|
6507
6497
|
throw new CliError("Not logged in. Run `apes login` first.", 1);
|
|
@@ -6774,10 +6764,10 @@ if (shellRewrite) {
|
|
|
6774
6764
|
if (shellRewrite.action === "rewrite") {
|
|
6775
6765
|
process.argv = shellRewrite.argv;
|
|
6776
6766
|
} else if (shellRewrite.action === "version") {
|
|
6777
|
-
console.log(`ape-shell ${"1.31.
|
|
6767
|
+
console.log(`ape-shell ${"1.31.4"} (OpenApe DDISA shell wrapper)`);
|
|
6778
6768
|
process.exit(0);
|
|
6779
6769
|
} else if (shellRewrite.action === "help") {
|
|
6780
|
-
console.log(`ape-shell ${"1.31.
|
|
6770
|
+
console.log(`ape-shell ${"1.31.4"} \u2014 OpenApe DDISA shell wrapper`);
|
|
6781
6771
|
console.log("");
|
|
6782
6772
|
console.log("Usage:");
|
|
6783
6773
|
console.log(" ape-shell Start interactive grant-mediated REPL");
|
|
@@ -6836,7 +6826,7 @@ var configCommand = defineCommand65({
|
|
|
6836
6826
|
var main = defineCommand65({
|
|
6837
6827
|
meta: {
|
|
6838
6828
|
name: "apes",
|
|
6839
|
-
version: "1.31.
|
|
6829
|
+
version: "1.31.4",
|
|
6840
6830
|
description: "Unified CLI for OpenApe"
|
|
6841
6831
|
},
|
|
6842
6832
|
subCommands: {
|
|
@@ -6894,7 +6884,7 @@ async function maybeRefreshAuth() {
|
|
|
6894
6884
|
}
|
|
6895
6885
|
}
|
|
6896
6886
|
await maybeRefreshAuth();
|
|
6897
|
-
await maybeWarnStaleVersion("1.31.
|
|
6887
|
+
await maybeWarnStaleVersion("1.31.4").catch(() => {
|
|
6898
6888
|
});
|
|
6899
6889
|
runMain(main).catch((err) => {
|
|
6900
6890
|
if (err instanceof CliExit) {
|