@openape/apes 0.14.2 → 0.15.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.
@@ -301,7 +301,7 @@ function registerAdapterTools(server) {
301
301
  async function startMcpServer(transport, port) {
302
302
  const server = new McpServer({
303
303
  name: "apes",
304
- version: true ? "0.14.2" : "0.1.0"
304
+ version: true ? "0.15.0" : "0.1.0"
305
305
  });
306
306
  registerStaticTools(server);
307
307
  registerAdapterTools(server);
@@ -329,4 +329,4 @@ async function startMcpServer(transport, port) {
329
329
  export {
330
330
  startMcpServer
331
331
  };
332
- //# sourceMappingURL=server-4K72OKR4.js.map
332
+ //# sourceMappingURL=server-QQI4MKTY.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openape/apes",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "turbo": {
5
5
  "tags": [
6
6
  "publishable"
@@ -33,7 +33,7 @@
33
33
  "zod": "^4.3.6",
34
34
  "@openape/core": "0.13.2",
35
35
  "@openape/grants": "0.11.2",
36
- "@openape/proxy": "0.3.1"
36
+ "@openape/proxy": "0.4.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^25.3.5",
@@ -0,0 +1,13 @@
1
+ #!/bin/bash
2
+ # PreToolUse hook for the Bash tool: rewrite the tool input so the
3
+ # original command runs via `ape-shell -c <cmd>`. That re-routes every
4
+ # Bash invocation through the apes grant flow, so the agent cannot
5
+ # execute shell commands without an approved grant.
6
+ exec python3 -c '
7
+ import json, shlex, sys
8
+ data = json.load(sys.stdin)
9
+ cmd = data["tool_input"]["command"]
10
+ wrapped = "ape-shell -c " + shlex.quote(cmd)
11
+ out = {"hookSpecificOutput": {"hookEventName": "PreToolUse", "updatedToolInput": {"command": wrapped}}}
12
+ print(json.dumps(out))
13
+ '