@openape/apes 0.10.1 → 0.11.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/dist/cli.js CHANGED
@@ -136,6 +136,11 @@ async function resolveLoginInputs(flags) {
136
136
  consola.info(`Using email from ${keyPath}.pub comment: ${email}`);
137
137
  }
138
138
  }
139
+ if (process.env.APES_IDP && process.env.GRAPES_IDP) {
140
+ consola.warn(
141
+ "Both APES_IDP and GRAPES_IDP are set \u2014 using APES_IDP. GRAPES_IDP is deprecated and will be removed in a future release."
142
+ );
143
+ }
139
144
  let idp;
140
145
  if (flags.idp) {
141
146
  idp = flags.idp;
@@ -143,6 +148,9 @@ async function resolveLoginInputs(flags) {
143
148
  idp = process.env.APES_IDP;
144
149
  } else if (process.env.GRAPES_IDP) {
145
150
  idp = process.env.GRAPES_IDP;
151
+ consola.warn(
152
+ "GRAPES_IDP is deprecated, use APES_IDP instead. GRAPES_IDP support will be removed in a future release."
153
+ );
146
154
  } else if (config.defaults?.idp) {
147
155
  idp = config.defaults.idp;
148
156
  } else if (email && email.includes("@")) {
@@ -161,7 +169,7 @@ async function resolveLoginInputs(flags) {
161
169
 
162
170
  // src/commands/auth/login.ts
163
171
  var CALLBACK_PORT = 9876;
164
- var CLIENT_ID = "grapes-cli";
172
+ var CLIENT_ID = "apes-cli";
165
173
  var loginCommand = defineCommand({
166
174
  meta: {
167
175
  name: "login",
@@ -2680,7 +2688,7 @@ var mcpCommand = defineCommand26({
2680
2688
  if (transport !== "stdio" && transport !== "sse") {
2681
2689
  throw new Error('Transport must be "stdio" or "sse"');
2682
2690
  }
2683
- const { startMcpServer } = await import("./server-GTATJDYX.js");
2691
+ const { startMcpServer } = await import("./server-YNJ5SURM.js");
2684
2692
  await startMcpServer(transport, port);
2685
2693
  }
2686
2694
  });
@@ -3172,7 +3180,7 @@ async function bestEffortGrantCount(idp) {
3172
3180
  }
3173
3181
  }
3174
3182
  async function runHealth(args) {
3175
- const version = true ? "0.10.1" : "0.0.0";
3183
+ const version = true ? "0.11.0" : "0.0.0";
3176
3184
  const auth = loadAuth();
3177
3185
  if (!auth) {
3178
3186
  throw new CliError("Not logged in. Run `apes login` first.", 1);
@@ -3374,10 +3382,10 @@ if (shellRewrite) {
3374
3382
  if (shellRewrite.action === "rewrite") {
3375
3383
  process.argv = shellRewrite.argv;
3376
3384
  } else if (shellRewrite.action === "version") {
3377
- console.log(`ape-shell ${"0.10.1"} (OpenApe DDISA shell wrapper)`);
3385
+ console.log(`ape-shell ${"0.11.0"} (OpenApe DDISA shell wrapper)`);
3378
3386
  process.exit(0);
3379
3387
  } else if (shellRewrite.action === "help") {
3380
- console.log(`ape-shell ${"0.10.1"} \u2014 OpenApe DDISA shell wrapper`);
3388
+ console.log(`ape-shell ${"0.11.0"} \u2014 OpenApe DDISA shell wrapper`);
3381
3389
  console.log("");
3382
3390
  console.log("Usage:");
3383
3391
  console.log(" ape-shell Start interactive grant-mediated REPL");
@@ -3392,7 +3400,7 @@ if (shellRewrite) {
3392
3400
  console.log(" --help, -h Show this help message");
3393
3401
  process.exit(0);
3394
3402
  } else if (shellRewrite.action === "interactive") {
3395
- const { runInteractiveShell } = await import("./orchestrator-QL3AT67U.js");
3403
+ const { runInteractiveShell } = await import("./orchestrator-U5TZ2KXF.js");
3396
3404
  await runInteractiveShell();
3397
3405
  process.exit(0);
3398
3406
  } else {
@@ -3435,7 +3443,7 @@ var configCommand = defineCommand33({
3435
3443
  var main = defineCommand33({
3436
3444
  meta: {
3437
3445
  name: "apes",
3438
- version: "0.10.1",
3446
+ version: "0.11.0",
3439
3447
  description: "Unified CLI for OpenApe"
3440
3448
  },
3441
3449
  subCommands: {