@lousy-agents/mcp 5.14.2 → 5.14.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.
Files changed (2) hide show
  1. package/dist/mcp-server.js +46 -33
  2. package/package.json +2 -2
@@ -27029,10 +27029,9 @@ function getFsSafePythonConfig() {
27029
27029
  };
27030
27030
  }
27031
27031
  function canFallbackFromPythonError(error) {
27032
+ const code = error instanceof Error && "code" in error ? error.code : undefined;
27032
27033
  return (getFsSafePythonConfig().mode !== "require" &&
27033
- error instanceof Error &&
27034
- "code" in error &&
27035
- error.code === "helper-unavailable");
27034
+ (code === "helper-unavailable" || code === "unsupported-platform"));
27036
27035
  }
27037
27036
 
27038
27037
  // EXTERNAL MODULE: external "node:child_process"
@@ -59963,8 +59962,10 @@ class Composer {
59963
59962
  }
59964
59963
  }
59965
59964
  if (afterDoc) {
59966
- Array.prototype.push.apply(doc.errors, this.errors);
59967
- Array.prototype.push.apply(doc.warnings, this.warnings);
59965
+ for (let i = 0; i < this.errors.length; ++i)
59966
+ doc.errors.push(this.errors[i]);
59967
+ for (let i = 0; i < this.warnings.length; ++i)
59968
+ doc.warnings.push(this.warnings[i]);
59968
59969
  }
59969
59970
  else {
59970
59971
  doc.errors = this.errors;
@@ -63779,7 +63780,7 @@ class Lexer {
63779
63780
  const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
63780
63781
  this.indentNext = this.indentValue + 1;
63781
63782
  this.indentValue += n;
63782
- return yield* this.parseBlockStart();
63783
+ return 'block-start';
63783
63784
  }
63784
63785
  return 'doc';
63785
63786
  }
@@ -64100,32 +64101,36 @@ class Lexer {
64100
64101
  return 0;
64101
64102
  }
64102
64103
  *pushIndicators() {
64103
- switch (this.charAt(0)) {
64104
- case '!':
64105
- return ((yield* this.pushTag()) +
64106
- (yield* this.pushSpaces(true)) +
64107
- (yield* this.pushIndicators()));
64108
- case '&':
64109
- return ((yield* this.pushUntil(isNotAnchorChar)) +
64110
- (yield* this.pushSpaces(true)) +
64111
- (yield* this.pushIndicators()));
64112
- case '-': // this is an error
64113
- case '?': // this is an error outside flow collections
64114
- case ':': {
64115
- const inFlow = this.flowLevel > 0;
64116
- const ch1 = this.charAt(1);
64117
- if (isEmpty(ch1) || (inFlow && flowIndicatorChars.has(ch1))) {
64118
- if (!inFlow)
64119
- this.indentNext = this.indentValue + 1;
64120
- else if (this.flowKey)
64121
- this.flowKey = false;
64122
- return ((yield* this.pushCount(1)) +
64123
- (yield* this.pushSpaces(true)) +
64124
- (yield* this.pushIndicators()));
64104
+ let n = 0;
64105
+ loop: while (true) {
64106
+ switch (this.charAt(0)) {
64107
+ case '!':
64108
+ n += yield* this.pushTag();
64109
+ n += yield* this.pushSpaces(true);
64110
+ continue loop;
64111
+ case '&':
64112
+ n += yield* this.pushUntil(isNotAnchorChar);
64113
+ n += yield* this.pushSpaces(true);
64114
+ continue loop;
64115
+ case '-': // this is an error
64116
+ case '?': // this is an error outside flow collections
64117
+ case ':': {
64118
+ const inFlow = this.flowLevel > 0;
64119
+ const ch1 = this.charAt(1);
64120
+ if (isEmpty(ch1) || (inFlow && flowIndicatorChars.has(ch1))) {
64121
+ if (!inFlow)
64122
+ this.indentNext = this.indentValue + 1;
64123
+ else if (this.flowKey)
64124
+ this.flowKey = false;
64125
+ n += yield* this.pushCount(1);
64126
+ n += yield* this.pushSpaces(true);
64127
+ continue loop;
64128
+ }
64125
64129
  }
64126
64130
  }
64131
+ break loop;
64127
64132
  }
64128
- return 0;
64133
+ return n;
64129
64134
  }
64130
64135
  *pushTag() {
64131
64136
  if (this.charAt(1) === '<') {
@@ -64305,6 +64310,14 @@ function getFirstKeyStartProps(prev) {
64305
64310
  }
64306
64311
  return prev.splice(i, prev.length);
64307
64312
  }
64313
+ function arrayPushArray(target, source) {
64314
+ // May exhaust call stack with large `source` array
64315
+ if (source.length < 1e5)
64316
+ Array.prototype.push.apply(target, source);
64317
+ else
64318
+ for (let i = 0; i < source.length; ++i)
64319
+ target.push(source[i]);
64320
+ }
64308
64321
  function fixFlowSeqItems(fc) {
64309
64322
  if (fc.start.type === 'flow-seq-start') {
64310
64323
  for (const it of fc.items) {
@@ -64317,12 +64330,12 @@ function fixFlowSeqItems(fc) {
64317
64330
  delete it.key;
64318
64331
  if (isFlowToken(it.value)) {
64319
64332
  if (it.value.end)
64320
- Array.prototype.push.apply(it.value.end, it.sep);
64333
+ arrayPushArray(it.value.end, it.sep);
64321
64334
  else
64322
64335
  it.value.end = it.sep;
64323
64336
  }
64324
64337
  else
64325
- Array.prototype.push.apply(it.start, it.sep);
64338
+ arrayPushArray(it.start, it.sep);
64326
64339
  delete it.sep;
64327
64340
  }
64328
64341
  }
@@ -64742,7 +64755,7 @@ class Parser {
64742
64755
  const prev = map.items[map.items.length - 2];
64743
64756
  const end = prev?.value?.end;
64744
64757
  if (Array.isArray(end)) {
64745
- Array.prototype.push.apply(end, it.start);
64758
+ arrayPushArray(end, it.start);
64746
64759
  end.push(this.sourceToken);
64747
64760
  map.items.pop();
64748
64761
  return;
@@ -64957,7 +64970,7 @@ class Parser {
64957
64970
  const prev = seq.items[seq.items.length - 2];
64958
64971
  const end = prev?.value?.end;
64959
64972
  if (Array.isArray(end)) {
64960
- Array.prototype.push.apply(end, it.start);
64973
+ arrayPushArray(end, it.start);
64961
64974
  end.push(this.sourceToken);
64962
64975
  seq.items.pop();
64963
64976
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lousy-agents/mcp",
3
- "version": "5.14.2",
3
+ "version": "5.14.4",
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": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@modelcontextprotocol/sdk": "1.29.0",
40
- "yaml": "2.8.4",
40
+ "yaml": "2.9.0",
41
41
  "zod": "4.4.3"
42
42
  },
43
43
  "devDependencies": {