@abide/bridge 0.8.0 → 0.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @abide/bridge
2
2
 
3
+ ## 0.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e5b48ef: a call of one MCP tool is made under the grant alone — no --allowedTools past it, since a turn's prompt is the site's to answer (44.83) and a call is already the site's own choice of tool and input; --disallowedTools still refuses — RULEBOOK 44.94 ([`ac0c77c`](https://github.com/briancray/abide/commit/ac0c77ceae8789bb726ba3aa41de8c2971cc19db))
8
+
3
9
  ## 0.8.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abide/bridge",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "description": "Connects the Claude Code on your machine to the assistant on an abide site",
6
6
  "license": "MIT",
package/src/grant.ts CHANGED
@@ -236,8 +236,8 @@ function namesTool(
236
236
  /**
237
237
  * How a call of `tool` reaches this machine for a visitor who passed `claudeArgs` — the server it is
238
238
  * of, that server's configuration and the tool's name on it — or why it is refused: it is not an MCP
239
- * tool, a turn whose `tools` named it alone would not be given it (44.29), the visitor's
240
- * `--allowedTools` does not approve it, or their `--disallowedTools` names it. 44.94.
239
+ * tool, a turn whose `tools` named it alone would not be given it (44.29), or the visitor's
240
+ * `--disallowedTools` names it. 44.94.
241
241
  *
242
242
  * Throws where an `--mcp-config` they named cannot be read.
243
243
  */
@@ -269,17 +269,13 @@ export async function callGrant(
269
269
  return { refused: withheldNotices(grant).join(' ') }
270
270
  // 44.82 — a full bridge's options as the visitor gave them.
271
271
  const given = full ? [...claudeArgs] : args
272
- const allowed = takeFlag(given, ['--allowedTools', '--allowed-tools'])
273
272
  const denied = takeFlag(given, ['--disallowedTools', '--disallowed-tools'])
274
273
  if (namesTool(denied, tool, server))
275
274
  return {
276
275
  refused: `The site called ${tool}, which this bridge’s --disallowedTools names.`,
277
276
  }
278
- // A turn asks what auto mode would not approve; a call has no model to judge it, so it asks nothing.
279
- if (!namesTool(allowed, tool, server))
280
- return {
281
- refused: `The site called ${tool} directly, which this bridge does only for a tool you approved. Add \`-- --allowedTools ${tool}\` to allow it.`,
282
- }
277
+ // 44.94 — the grant is the visitor's consent, and nothing past it asks: a turn's prompt is the
278
+ // site's to answer (44.83), and a call is already the site's own choice of tool and input.
283
279
  return {
284
280
  server,
285
281
  configuration: grant.servers[server],