@openape/apes 1.6.0 → 1.6.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
|
@@ -4009,12 +4009,19 @@ var enrollNestCommand = defineCommand29({
|
|
|
4009
4009
|
|
|
4010
4010
|
// src/commands/nest/authorize.ts
|
|
4011
4011
|
var DEFAULT_ALLOW_PATTERNS = [
|
|
4012
|
-
//
|
|
4012
|
+
// Outer spawn-grant — what the nest's HTTP handler invokes.
|
|
4013
4013
|
"apes agents spawn *",
|
|
4014
4014
|
"apes agents destroy *",
|
|
4015
4015
|
"apes agents sync",
|
|
4016
|
-
//
|
|
4017
|
-
//
|
|
4016
|
+
// Inner setup.sh-grant — `apes agents spawn` itself shells out to
|
|
4017
|
+
// `apes run --as root --wait -- bash <tempdir>/setup.sh` to do the
|
|
4018
|
+
// dscl/launchctl/heredoc-write work. Path looks like
|
|
4019
|
+
// `bash /var/folders/.../apes-spawn-<name>-XXXX/setup.sh`. The narrow
|
|
4020
|
+
// glob below limits the auto-approval to that exact lifecycle path
|
|
4021
|
+
// — `bash *` would be unsafe.
|
|
4022
|
+
"bash *apes-spawn-*setup.sh",
|
|
4023
|
+
// Bridge invocation the nest's process supervisor uses (Stage 1
|
|
4024
|
+
// supervisor work). Intentionally precise — not a generic
|
|
4018
4025
|
// `apes run --as *` wildcard — so a compromised nest can't pivot
|
|
4019
4026
|
// to running arbitrary commands as arbitrary users.
|
|
4020
4027
|
"apes run --as * -- openape-chat-bridge"
|
|
@@ -5644,7 +5651,7 @@ var mcpCommand = defineCommand42({
|
|
|
5644
5651
|
if (transport !== "stdio" && transport !== "sse") {
|
|
5645
5652
|
throw new Error('Transport must be "stdio" or "sse"');
|
|
5646
5653
|
}
|
|
5647
|
-
const { startMcpServer } = await import("./server-
|
|
5654
|
+
const { startMcpServer } = await import("./server-UKQ5QFOZ.js");
|
|
5648
5655
|
await startMcpServer(transport, port);
|
|
5649
5656
|
}
|
|
5650
5657
|
});
|
|
@@ -6282,7 +6289,7 @@ async function bestEffortGrantCount(idp) {
|
|
|
6282
6289
|
}
|
|
6283
6290
|
}
|
|
6284
6291
|
async function runHealth(args) {
|
|
6285
|
-
const version = true ? "1.6.
|
|
6292
|
+
const version = true ? "1.6.1" : "0.0.0";
|
|
6286
6293
|
const auth = loadAuth();
|
|
6287
6294
|
if (!auth) {
|
|
6288
6295
|
throw new CliError("Not logged in. Run `apes login` first.", 1);
|
|
@@ -6555,10 +6562,10 @@ if (shellRewrite) {
|
|
|
6555
6562
|
if (shellRewrite.action === "rewrite") {
|
|
6556
6563
|
process.argv = shellRewrite.argv;
|
|
6557
6564
|
} else if (shellRewrite.action === "version") {
|
|
6558
|
-
console.log(`ape-shell ${"1.6.
|
|
6565
|
+
console.log(`ape-shell ${"1.6.1"} (OpenApe DDISA shell wrapper)`);
|
|
6559
6566
|
process.exit(0);
|
|
6560
6567
|
} else if (shellRewrite.action === "help") {
|
|
6561
|
-
console.log(`ape-shell ${"1.6.
|
|
6568
|
+
console.log(`ape-shell ${"1.6.1"} \u2014 OpenApe DDISA shell wrapper`);
|
|
6562
6569
|
console.log("");
|
|
6563
6570
|
console.log("Usage:");
|
|
6564
6571
|
console.log(" ape-shell Start interactive grant-mediated REPL");
|
|
@@ -6616,7 +6623,7 @@ var configCommand = defineCommand54({
|
|
|
6616
6623
|
var main = defineCommand54({
|
|
6617
6624
|
meta: {
|
|
6618
6625
|
name: "apes",
|
|
6619
|
-
version: "1.6.
|
|
6626
|
+
version: "1.6.1",
|
|
6620
6627
|
description: "Unified CLI for OpenApe"
|
|
6621
6628
|
},
|
|
6622
6629
|
subCommands: {
|
|
@@ -6672,7 +6679,7 @@ async function maybeRefreshAuth() {
|
|
|
6672
6679
|
}
|
|
6673
6680
|
}
|
|
6674
6681
|
await maybeRefreshAuth();
|
|
6675
|
-
await maybeWarnStaleVersion("1.6.
|
|
6682
|
+
await maybeWarnStaleVersion("1.6.1").catch(() => {
|
|
6676
6683
|
});
|
|
6677
6684
|
runMain(main).catch((err) => {
|
|
6678
6685
|
if (err instanceof CliExit) {
|