@lousy-agents/mcp 5.23.12 → 5.23.14

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.
Files changed (2) hide show
  1. package/dist/mcp-server.js +10 -8
  2. package/package.json +1 -1
@@ -74604,8 +74604,8 @@ function handle_definition_definition(node, _, state, info) {
74604
74604
  if (
74605
74605
  // If there’s no url, or…
74606
74606
  !node.url ||
74607
- // If there are control characters or whitespace.
74608
- /[\0- \u007F]/.test(node.url)
74607
+ // If there are control characters, whitespace, or a leading `<`.
74608
+ /^<|[\0- \u007F]/.test(node.url)
74609
74609
  ) {
74610
74610
  subexit = state.enter('destinationLiteral')
74611
74611
  value += tracker.move('<')
@@ -76888,8 +76888,8 @@ function image_image(node, _, state, info) {
76888
76888
  if (
76889
76889
  // If there’s no url but there is a title…
76890
76890
  (!node.url && node.title) ||
76891
- // If there are control characters or whitespace.
76892
- /[\0- \u007F]/.test(node.url)
76891
+ // If there are control characters, whitespace, or a leading `<`.
76892
+ /^<|[\0- \u007F]/.test(node.url)
76893
76893
  ) {
76894
76894
  subexit = state.enter('destinationLiteral')
76895
76895
  value += tracker.move('<')
@@ -77238,9 +77238,9 @@ function link_link(node, _, state, info) {
77238
77238
  //
77239
77239
  // …instead fixes it.
77240
77240
  //
77241
- // Control characters or whitespace in the url need an enclosed destination,
77242
- // which also prevents this.
77243
- const enclose = /[\0- \u007F]/.test(node.url)
77241
+ // Control characters, whitespace, or a leading `<` in the url need an
77242
+ // enclosed destination, which also prevents this.
77243
+ const enclose = /^<|[\0- \u007F]/.test(node.url)
77244
77244
  const last = info.before.charAt(info.before.length - 1)
77245
77245
  let title = node.title || undefined
77246
77246
 
@@ -78256,7 +78256,8 @@ const unsafe = [
78256
78256
  // HTML could start with an exclamation mark (declaration, cdata, comment),
78257
78257
  // slash (closing tag), question mark (instruction), or a letter (tag).
78258
78258
  // An autolink also starts with a letter.
78259
- // Finally, it could break out of a destination literal.
78259
+ // It could break out of a destination literal,
78260
+ // or start one at the start of a destination raw.
78260
78261
  {atBreak: true, character: '<', after: '[!/?A-Za-z]'},
78261
78262
  {
78262
78263
  character: '<',
@@ -78265,6 +78266,7 @@ const unsafe = [
78265
78266
  notInConstruct: fullPhrasingSpans
78266
78267
  },
78267
78268
  {character: '<', inConstruct: 'destinationLiteral'},
78269
+ {character: '<', before: '[( ]', inConstruct: 'destinationRaw'},
78268
78270
  // An equals to can start setext heading underlines.
78269
78271
  {atBreak: true, character: '='},
78270
78272
  // A greater than can start block quotes and it can break out of a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lousy-agents/mcp",
3
- "version": "5.23.12",
3
+ "version": "5.23.14",
4
4
  "description": "MCP server for lousy-agents - provides AI coding assistant tools via the Model Context Protocol",
5
5
  "type": "module",
6
6
  "repository": {