@openape/apes 1.0.0 → 1.0.2
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
|
@@ -1884,7 +1884,7 @@ if [ -f "$HOME_DIR/.config/openape/claude-token.env" ]; then
|
|
|
1884
1884
|
fi
|
|
1885
1885
|
|
|
1886
1886
|
echo "OK $NAME uid=$NEXT_UID home=$HOME_DIR"
|
|
1887
|
-
${buildBridgeBootstrapBlock(input.bridge)}${buildTroopBootstrapBlock(input.troop)}`;
|
|
1887
|
+
${buildBridgeBootstrapBlock(input.bridge, name)}${buildTroopBootstrapBlock(input.troop, name)}`;
|
|
1888
1888
|
}
|
|
1889
1889
|
function buildBridgeBlock(bridge) {
|
|
1890
1890
|
if (!bridge) return "";
|
|
@@ -1903,11 +1903,11 @@ chown root:wheel ${shQuote(bridge.plistPath)}
|
|
|
1903
1903
|
chmod 644 ${shQuote(bridge.plistPath)}
|
|
1904
1904
|
`;
|
|
1905
1905
|
}
|
|
1906
|
-
function buildBridgeBootstrapBlock(bridge) {
|
|
1906
|
+
function buildBridgeBootstrapBlock(bridge, name) {
|
|
1907
1907
|
if (!bridge) return "";
|
|
1908
1908
|
return `
|
|
1909
|
-
echo "==> Installing bridge stack as $
|
|
1910
|
-
su -
|
|
1909
|
+
echo "==> Installing bridge stack as ${name} via bun (one-time)\u2026"
|
|
1910
|
+
su - ${shQuote(name)} -c '
|
|
1911
1911
|
set -euo pipefail
|
|
1912
1912
|
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:$HOME/.bun/install/global/bin"
|
|
1913
1913
|
bun add -g @openape/chat-bridge @openape/apes
|
|
@@ -1929,21 +1929,18 @@ cat > ${shQuote(troop.plistPath)} ${shHeredoc(troop.plistContent)}
|
|
|
1929
1929
|
chmod 644 ${shQuote(troop.plistPath)}
|
|
1930
1930
|
`;
|
|
1931
1931
|
}
|
|
1932
|
-
function buildTroopBootstrapBlock(troop) {
|
|
1932
|
+
function buildTroopBootstrapBlock(troop, name) {
|
|
1933
1933
|
if (!troop) return "";
|
|
1934
1934
|
return `
|
|
1935
|
-
# Bootstrap the troop sync launchd into the agent's
|
|
1936
|
-
# starts firing every 5 minutes. RunAtLoad in the plist also kicks
|
|
1937
|
-
#
|
|
1938
|
-
#
|
|
1939
|
-
echo "==> Installing troop sync launchd as $
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
NAME_UID
|
|
1943
|
-
|
|
1944
|
-
launchctl bootstrap "gui/$NAME_UID" ${shQuote(troop.plistPath)} || \\
|
|
1945
|
-
echo "warn: troop sync bootstrap failed; run \\\`apes agents sync\\\` manually as $NAME to register at troop.openape.ai"
|
|
1946
|
-
'
|
|
1935
|
+
# Bootstrap the troop sync launchd into the agent's user domain so it
|
|
1936
|
+
# starts firing every 5 minutes. RunAtLoad in the plist also kicks off
|
|
1937
|
+
# an immediate first sync so the agent registers + appears in the troop
|
|
1938
|
+
# SP within seconds of spawn finishing.
|
|
1939
|
+
echo "==> Installing troop sync launchd as ${name}\u2026"
|
|
1940
|
+
NAME_UID="$(id -u ${shQuote(name)})"
|
|
1941
|
+
launchctl asuser "$NAME_UID" launchctl bootout "gui/$NAME_UID/${troop.plistLabel}" 2>/dev/null || true
|
|
1942
|
+
launchctl asuser "$NAME_UID" launchctl bootstrap "gui/$NAME_UID" ${shQuote(troop.plistPath)} || \\
|
|
1943
|
+
echo "warn: troop sync bootstrap failed; run \\\`apes agents sync\\\` manually as ${name} to register at troop.openape.ai"
|
|
1947
1944
|
`;
|
|
1948
1945
|
}
|
|
1949
1946
|
function buildDestroyTeardownScript(input) {
|
|
@@ -5263,7 +5260,7 @@ var mcpCommand = defineCommand36({
|
|
|
5263
5260
|
if (transport !== "stdio" && transport !== "sse") {
|
|
5264
5261
|
throw new Error('Transport must be "stdio" or "sse"');
|
|
5265
5262
|
}
|
|
5266
|
-
const { startMcpServer } = await import("./server-
|
|
5263
|
+
const { startMcpServer } = await import("./server-467VCCVV.js");
|
|
5267
5264
|
await startMcpServer(transport, port);
|
|
5268
5265
|
}
|
|
5269
5266
|
});
|
|
@@ -5901,7 +5898,7 @@ async function bestEffortGrantCount(idp) {
|
|
|
5901
5898
|
}
|
|
5902
5899
|
}
|
|
5903
5900
|
async function runHealth(args) {
|
|
5904
|
-
const version = true ? "1.0.
|
|
5901
|
+
const version = true ? "1.0.2" : "0.0.0";
|
|
5905
5902
|
const auth = loadAuth();
|
|
5906
5903
|
if (!auth) {
|
|
5907
5904
|
throw new CliError("Not logged in. Run `apes login` first.", 1);
|
|
@@ -6174,10 +6171,10 @@ if (shellRewrite) {
|
|
|
6174
6171
|
if (shellRewrite.action === "rewrite") {
|
|
6175
6172
|
process.argv = shellRewrite.argv;
|
|
6176
6173
|
} else if (shellRewrite.action === "version") {
|
|
6177
|
-
console.log(`ape-shell ${"1.0.
|
|
6174
|
+
console.log(`ape-shell ${"1.0.2"} (OpenApe DDISA shell wrapper)`);
|
|
6178
6175
|
process.exit(0);
|
|
6179
6176
|
} else if (shellRewrite.action === "help") {
|
|
6180
|
-
console.log(`ape-shell ${"1.0.
|
|
6177
|
+
console.log(`ape-shell ${"1.0.2"} \u2014 OpenApe DDISA shell wrapper`);
|
|
6181
6178
|
console.log("");
|
|
6182
6179
|
console.log("Usage:");
|
|
6183
6180
|
console.log(" ape-shell Start interactive grant-mediated REPL");
|
|
@@ -6235,7 +6232,7 @@ var configCommand = defineCommand48({
|
|
|
6235
6232
|
var main = defineCommand48({
|
|
6236
6233
|
meta: {
|
|
6237
6234
|
name: "apes",
|
|
6238
|
-
version: "1.0.
|
|
6235
|
+
version: "1.0.2",
|
|
6239
6236
|
description: "Unified CLI for OpenApe"
|
|
6240
6237
|
},
|
|
6241
6238
|
subCommands: {
|
|
@@ -6290,7 +6287,7 @@ async function maybeRefreshAuth() {
|
|
|
6290
6287
|
}
|
|
6291
6288
|
}
|
|
6292
6289
|
await maybeRefreshAuth();
|
|
6293
|
-
await maybeWarnStaleVersion("1.0.
|
|
6290
|
+
await maybeWarnStaleVersion("1.0.2").catch(() => {
|
|
6294
6291
|
});
|
|
6295
6292
|
runMain(main).catch((err) => {
|
|
6296
6293
|
if (err instanceof CliExit) {
|