@openape/apes 1.8.1 → 1.9.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
|
@@ -5154,6 +5154,19 @@ function installAdapter2() {
|
|
|
5154
5154
|
consola29.success(`Wrote shapes adapter ${target}`);
|
|
5155
5155
|
return true;
|
|
5156
5156
|
}
|
|
5157
|
+
function writeBridgeModelDefault(model) {
|
|
5158
|
+
const envDir = join10(homedir11(), "litellm");
|
|
5159
|
+
const envFile = join10(envDir, ".env");
|
|
5160
|
+
mkdirSync5(envDir, { recursive: true });
|
|
5161
|
+
let lines = [];
|
|
5162
|
+
if (existsSync12(envFile)) {
|
|
5163
|
+
lines = readFileSync11(envFile, "utf8").split("\n").filter((l) => !l.startsWith("APE_CHAT_BRIDGE_MODEL="));
|
|
5164
|
+
}
|
|
5165
|
+
lines.push(`APE_CHAT_BRIDGE_MODEL=${model}`);
|
|
5166
|
+
while (lines.length > 0 && lines.at(-1).trim() === "") lines.pop();
|
|
5167
|
+
writeFileSync7(envFile, `${lines.join("\n")}
|
|
5168
|
+
`, { mode: 384 });
|
|
5169
|
+
}
|
|
5157
5170
|
function findBinary(name) {
|
|
5158
5171
|
for (const dir of [
|
|
5159
5172
|
join10(homedir11(), ".bun", "bin"),
|
|
@@ -5175,6 +5188,10 @@ var installNestCommand = defineCommand32({
|
|
|
5175
5188
|
port: {
|
|
5176
5189
|
type: "string",
|
|
5177
5190
|
description: "Port for the nest HTTP API (default: 9091)"
|
|
5191
|
+
},
|
|
5192
|
+
"bridge-model": {
|
|
5193
|
+
type: "string",
|
|
5194
|
+
description: "Default model for chat-bridge spawns. Persisted as APE_CHAT_BRIDGE_MODEL in ~/litellm/.env so every `apes [nest|agents] spawn --bridge` picks it up automatically. Common values: `gpt-5.4` (ChatGPT-only LiteLLM proxy), `claude-haiku-4-5` (Anthropic-only). Re-run install with a new value to overwrite."
|
|
5178
5195
|
}
|
|
5179
5196
|
},
|
|
5180
5197
|
async run({ args }) {
|
|
@@ -5189,6 +5206,10 @@ var installNestCommand = defineCommand32({
|
|
|
5189
5206
|
consola29.info(` nest binary: ${nestBin}`);
|
|
5190
5207
|
consola29.info(` apes binary: ${apesBin}`);
|
|
5191
5208
|
consola29.info(` HTTP port: ${port}`);
|
|
5209
|
+
if (typeof args["bridge-model"] === "string" && args["bridge-model"]) {
|
|
5210
|
+
writeBridgeModelDefault(args["bridge-model"]);
|
|
5211
|
+
consola29.success(`Default bridge model set to ${args["bridge-model"]} (in ~/litellm/.env)`);
|
|
5212
|
+
}
|
|
5192
5213
|
installAdapter2();
|
|
5193
5214
|
mkdirSync5(join10(homeDir, "Library", "LaunchAgents"), { recursive: true });
|
|
5194
5215
|
mkdirSync5(NEST_DATA_DIR, { recursive: true });
|
|
@@ -6875,7 +6896,7 @@ var mcpCommand = defineCommand49({
|
|
|
6875
6896
|
if (transport !== "stdio" && transport !== "sse") {
|
|
6876
6897
|
throw new Error('Transport must be "stdio" or "sse"');
|
|
6877
6898
|
}
|
|
6878
|
-
const { startMcpServer } = await import("./server-
|
|
6899
|
+
const { startMcpServer } = await import("./server-6WQYPDVO.js");
|
|
6879
6900
|
await startMcpServer(transport, port);
|
|
6880
6901
|
}
|
|
6881
6902
|
});
|
|
@@ -7513,7 +7534,7 @@ async function bestEffortGrantCount(idp) {
|
|
|
7513
7534
|
}
|
|
7514
7535
|
}
|
|
7515
7536
|
async function runHealth(args) {
|
|
7516
|
-
const version = true ? "1.
|
|
7537
|
+
const version = true ? "1.9.0" : "0.0.0";
|
|
7517
7538
|
const auth = loadAuth();
|
|
7518
7539
|
if (!auth) {
|
|
7519
7540
|
throw new CliError("Not logged in. Run `apes login` first.", 1);
|
|
@@ -7786,10 +7807,10 @@ if (shellRewrite) {
|
|
|
7786
7807
|
if (shellRewrite.action === "rewrite") {
|
|
7787
7808
|
process.argv = shellRewrite.argv;
|
|
7788
7809
|
} else if (shellRewrite.action === "version") {
|
|
7789
|
-
console.log(`ape-shell ${"1.
|
|
7810
|
+
console.log(`ape-shell ${"1.9.0"} (OpenApe DDISA shell wrapper)`);
|
|
7790
7811
|
process.exit(0);
|
|
7791
7812
|
} else if (shellRewrite.action === "help") {
|
|
7792
|
-
console.log(`ape-shell ${"1.
|
|
7813
|
+
console.log(`ape-shell ${"1.9.0"} \u2014 OpenApe DDISA shell wrapper`);
|
|
7793
7814
|
console.log("");
|
|
7794
7815
|
console.log("Usage:");
|
|
7795
7816
|
console.log(" ape-shell Start interactive grant-mediated REPL");
|
|
@@ -7847,7 +7868,7 @@ var configCommand = defineCommand61({
|
|
|
7847
7868
|
var main = defineCommand61({
|
|
7848
7869
|
meta: {
|
|
7849
7870
|
name: "apes",
|
|
7850
|
-
version: "1.
|
|
7871
|
+
version: "1.9.0",
|
|
7851
7872
|
description: "Unified CLI for OpenApe"
|
|
7852
7873
|
},
|
|
7853
7874
|
subCommands: {
|
|
@@ -7904,7 +7925,7 @@ async function maybeRefreshAuth() {
|
|
|
7904
7925
|
}
|
|
7905
7926
|
}
|
|
7906
7927
|
await maybeRefreshAuth();
|
|
7907
|
-
await maybeWarnStaleVersion("1.
|
|
7928
|
+
await maybeWarnStaleVersion("1.9.0").catch(() => {
|
|
7908
7929
|
});
|
|
7909
7930
|
runMain(main).catch((err) => {
|
|
7910
7931
|
if (err instanceof CliExit) {
|