toolmenu 0.14.0 → 0.14.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/README.md CHANGED
@@ -104,7 +104,7 @@ jobs:
104
104
  - uses: actions/setup-node@v7
105
105
  with: { node-version: 22 }
106
106
  - run: npm ci && npm run build
107
- - uses: niksa90/toolmenu@v0.14.0
107
+ - uses: niksa90/toolmenu@v0.14.1
108
108
  with:
109
109
  command: node dist/server.js
110
110
  baseline: menu.json # your committed snapshot
package/dist/diff.js CHANGED
@@ -1148,7 +1148,11 @@ function expandRefs(schema) {
1148
1148
  return { ...walk(target, [...stack, o.$ref]), ...walk(siblings, stack) };
1149
1149
  }
1150
1150
  }
1151
- return Object.fromEntries(Object.entries(o).map(([k, v]) => [k, walk(v, stack)]));
1151
+ // A $ref left as a $ref (a recursive definition past MAX_UNROLL): `definitions` and `$defs` are one
1152
+ // place under two spellings, and the root pool is dropped below, so the reference reads the same.
1153
+ // Left as written, a generator upgrade that renames the pool made every recursive $ref look like a
1154
+ // different option ("no longer accepts #/definitions/x" beside the unchanged #/$defs/x).
1155
+ return Object.fromEntries(Object.entries(o).map(([k, v]) => [k, k === '$ref' && typeof v === 'string' ? v.replace(/^#\/definitions\//, '#/$defs/') : walk(v, stack)]));
1152
1156
  };
1153
1157
  const { $defs: _defs, definitions: _definitions, ...rest } = schema;
1154
1158
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolmenu",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Lint your MCP server's tool menu for changes that confuse agents or break caches.",
5
5
  "author": "Nikša Perović (https://niksa.me)",
6
6
  "main": "dist/index.js",