@abide/abide 0.110.3 → 0.110.4

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/abide
2
2
 
3
+ ## 0.110.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 2838836: an MCP tool call under a mount is asked under the mount, so a route whose first segment is the mount's name no longer 404s ([`0ceed49`](https://github.com/briancray/abide/commit/0ceed4966d55cd1b56902dc88c7961725319418f))
8
+
3
9
  ## 0.110.3
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abide/abide",
3
- "version": "0.110.3",
3
+ "version": "0.110.4",
4
4
  "type": "module",
5
5
  "description": "Isomorphic type-safe framework for reactive async interfaces for humans and machines",
6
6
  "license": "MIT",
@@ -15,6 +15,7 @@
15
15
 
16
16
  import { isFailed } from '#shared/Failed.ts'
17
17
  import { namedLogger } from '#shared/log.ts'
18
+ import { mounted } from '#shared/mount.ts'
18
19
  import { type Reactive, reactive } from '#shared/reactive/index.ts'
19
20
  import { parseRoutePattern } from '#shared/routePattern.ts'
20
21
  import { argsInURL, rpcRequest } from '#shared/rpcRequest.ts'
@@ -510,7 +511,9 @@ function callOf(
510
511
  // 38.68 — the answer is read here rather than sent on, and nothing in process decodes it.
511
512
  headers.delete('accept-encoding')
512
513
  if (call.body !== undefined) headers.set('content-type', 'application/json')
513
- return new Request(new URL(call.url, asked.url), {
514
+ // 16.10 — under the mount, as `rpc.url` is: the app takes the mount off what it is asked, and a
515
+ // route whose first segment is the mount's name would lose that segment instead.
516
+ return new Request(new URL(mounted(call.url), asked.url), {
514
517
  method,
515
518
  headers,
516
519
  body: call.body ?? null,