@openape/apes 1.22.0 → 1.22.1

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
@@ -4757,17 +4757,18 @@ function installAdapter2() {
4757
4757
  return true;
4758
4758
  }
4759
4759
  function writeBridgeModelDefault(model) {
4760
- const envDir = join11(homedir11(), "litellm");
4761
- const envFile = join11(envDir, ".env");
4762
- mkdirSync5(envDir, { recursive: true });
4763
- let lines = [];
4764
- if (existsSync13(envFile)) {
4765
- lines = readFileSync11(envFile, "utf8").split("\n").filter((l) => !l.startsWith("APE_CHAT_BRIDGE_MODEL="));
4766
- }
4767
- lines.push(`APE_CHAT_BRIDGE_MODEL=${model}`);
4768
- while (lines.length > 0 && lines.at(-1).trim() === "") lines.pop();
4769
- writeFileSync7(envFile, `${lines.join("\n")}
4760
+ for (const envDir of [join11(homedir11(), "litellm"), join11(NEST_DATA_DIR, "litellm")]) {
4761
+ const envFile = join11(envDir, ".env");
4762
+ mkdirSync5(envDir, { recursive: true });
4763
+ let lines = [];
4764
+ if (existsSync13(envFile)) {
4765
+ lines = readFileSync11(envFile, "utf8").split("\n").filter((l) => !l.startsWith("APE_CHAT_BRIDGE_MODEL="));
4766
+ }
4767
+ lines.push(`APE_CHAT_BRIDGE_MODEL=${model}`);
4768
+ while (lines.length > 0 && lines.at(-1).trim() === "") lines.pop();
4769
+ writeFileSync7(envFile, `${lines.join("\n")}
4770
4770
  `, { mode: 384 });
4771
+ }
4771
4772
  }
4772
4773
  function findBinary(name) {
4773
4774
  for (const dir of [
@@ -6457,7 +6458,7 @@ var mcpCommand = defineCommand48({
6457
6458
  if (transport !== "stdio" && transport !== "sse") {
6458
6459
  throw new Error('Transport must be "stdio" or "sse"');
6459
6460
  }
6460
- const { startMcpServer } = await import("./server-SBQ77UGP.js");
6461
+ const { startMcpServer } = await import("./server-KCZQXFGH.js");
6461
6462
  await startMcpServer(transport, port);
6462
6463
  }
6463
6464
  });
@@ -7095,7 +7096,7 @@ async function bestEffortGrantCount(idp) {
7095
7096
  }
7096
7097
  }
7097
7098
  async function runHealth(args) {
7098
- const version = true ? "1.22.0" : "0.0.0";
7099
+ const version = true ? "1.22.1" : "0.0.0";
7099
7100
  const auth = loadAuth();
7100
7101
  if (!auth) {
7101
7102
  throw new CliError("Not logged in. Run `apes login` first.", 1);
@@ -7368,10 +7369,10 @@ if (shellRewrite) {
7368
7369
  if (shellRewrite.action === "rewrite") {
7369
7370
  process.argv = shellRewrite.argv;
7370
7371
  } else if (shellRewrite.action === "version") {
7371
- console.log(`ape-shell ${"1.22.0"} (OpenApe DDISA shell wrapper)`);
7372
+ console.log(`ape-shell ${"1.22.1"} (OpenApe DDISA shell wrapper)`);
7372
7373
  process.exit(0);
7373
7374
  } else if (shellRewrite.action === "help") {
7374
- console.log(`ape-shell ${"1.22.0"} \u2014 OpenApe DDISA shell wrapper`);
7375
+ console.log(`ape-shell ${"1.22.1"} \u2014 OpenApe DDISA shell wrapper`);
7375
7376
  console.log("");
7376
7377
  console.log("Usage:");
7377
7378
  console.log(" ape-shell Start interactive grant-mediated REPL");
@@ -7429,7 +7430,7 @@ var configCommand = defineCommand60({
7429
7430
  var main = defineCommand60({
7430
7431
  meta: {
7431
7432
  name: "apes",
7432
- version: "1.22.0",
7433
+ version: "1.22.1",
7433
7434
  description: "Unified CLI for OpenApe"
7434
7435
  },
7435
7436
  subCommands: {
@@ -7486,7 +7487,7 @@ async function maybeRefreshAuth() {
7486
7487
  }
7487
7488
  }
7488
7489
  await maybeRefreshAuth();
7489
- await maybeWarnStaleVersion("1.22.0").catch(() => {
7490
+ await maybeWarnStaleVersion("1.22.1").catch(() => {
7490
7491
  });
7491
7492
  runMain(main).catch((err) => {
7492
7493
  if (err instanceof CliExit) {