@openape/apes 1.0.4 → 1.0.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
|
@@ -3910,17 +3910,20 @@ function readAuthJson() {
|
|
|
3910
3910
|
}
|
|
3911
3911
|
if (!parsed.access_token) throw new CliError(`${AUTH_PATH3} is missing access_token`);
|
|
3912
3912
|
if (!parsed.email) throw new CliError(`${AUTH_PATH3} is missing email`);
|
|
3913
|
-
if (!parsed.email.
|
|
3913
|
+
if (!parsed.email.includes("+")) {
|
|
3914
3914
|
throw new CliError(
|
|
3915
|
-
`${AUTH_PATH3} email is "${parsed.email}" \u2014 expected an agent+
|
|
3915
|
+
`${AUTH_PATH3} email is "${parsed.email}" \u2014 expected an agent address (with embedded +owner+domain). Run \`apes agents spawn\` rather than calling sync from a human user.`
|
|
3916
3916
|
);
|
|
3917
3917
|
}
|
|
3918
3918
|
return parsed;
|
|
3919
3919
|
}
|
|
3920
3920
|
function agentNameFromEmail(email) {
|
|
3921
|
-
const
|
|
3922
|
-
|
|
3923
|
-
|
|
3921
|
+
const before = email.split("+")[0];
|
|
3922
|
+
const dashIdx = before.lastIndexOf("-");
|
|
3923
|
+
if (dashIdx <= 0) {
|
|
3924
|
+
return before;
|
|
3925
|
+
}
|
|
3926
|
+
return before.slice(0, dashIdx);
|
|
3924
3927
|
}
|
|
3925
3928
|
function findApesBin() {
|
|
3926
3929
|
const argv1 = process.argv[1];
|
|
@@ -5263,7 +5266,7 @@ var mcpCommand = defineCommand36({
|
|
|
5263
5266
|
if (transport !== "stdio" && transport !== "sse") {
|
|
5264
5267
|
throw new Error('Transport must be "stdio" or "sse"');
|
|
5265
5268
|
}
|
|
5266
|
-
const { startMcpServer } = await import("./server-
|
|
5269
|
+
const { startMcpServer } = await import("./server-4R4OC66Z.js");
|
|
5267
5270
|
await startMcpServer(transport, port);
|
|
5268
5271
|
}
|
|
5269
5272
|
});
|
|
@@ -5901,7 +5904,7 @@ async function bestEffortGrantCount(idp) {
|
|
|
5901
5904
|
}
|
|
5902
5905
|
}
|
|
5903
5906
|
async function runHealth(args) {
|
|
5904
|
-
const version = true ? "1.0.
|
|
5907
|
+
const version = true ? "1.0.5" : "0.0.0";
|
|
5905
5908
|
const auth = loadAuth();
|
|
5906
5909
|
if (!auth) {
|
|
5907
5910
|
throw new CliError("Not logged in. Run `apes login` first.", 1);
|
|
@@ -6174,10 +6177,10 @@ if (shellRewrite) {
|
|
|
6174
6177
|
if (shellRewrite.action === "rewrite") {
|
|
6175
6178
|
process.argv = shellRewrite.argv;
|
|
6176
6179
|
} else if (shellRewrite.action === "version") {
|
|
6177
|
-
console.log(`ape-shell ${"1.0.
|
|
6180
|
+
console.log(`ape-shell ${"1.0.5"} (OpenApe DDISA shell wrapper)`);
|
|
6178
6181
|
process.exit(0);
|
|
6179
6182
|
} else if (shellRewrite.action === "help") {
|
|
6180
|
-
console.log(`ape-shell ${"1.0.
|
|
6183
|
+
console.log(`ape-shell ${"1.0.5"} \u2014 OpenApe DDISA shell wrapper`);
|
|
6181
6184
|
console.log("");
|
|
6182
6185
|
console.log("Usage:");
|
|
6183
6186
|
console.log(" ape-shell Start interactive grant-mediated REPL");
|
|
@@ -6235,7 +6238,7 @@ var configCommand = defineCommand48({
|
|
|
6235
6238
|
var main = defineCommand48({
|
|
6236
6239
|
meta: {
|
|
6237
6240
|
name: "apes",
|
|
6238
|
-
version: "1.0.
|
|
6241
|
+
version: "1.0.5",
|
|
6239
6242
|
description: "Unified CLI for OpenApe"
|
|
6240
6243
|
},
|
|
6241
6244
|
subCommands: {
|
|
@@ -6290,7 +6293,7 @@ async function maybeRefreshAuth() {
|
|
|
6290
6293
|
}
|
|
6291
6294
|
}
|
|
6292
6295
|
await maybeRefreshAuth();
|
|
6293
|
-
await maybeWarnStaleVersion("1.0.
|
|
6296
|
+
await maybeWarnStaleVersion("1.0.5").catch(() => {
|
|
6294
6297
|
});
|
|
6295
6298
|
runMain(main).catch((err) => {
|
|
6296
6299
|
if (err instanceof CliExit) {
|