@hyperfixi/mcp-server 2.5.1 → 2.6.0

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.
@@ -122,17 +122,19 @@ function gte(i, y) {
122
122
  }
123
123
  function expand_(str, max, isTop) {
124
124
  const expansions = [];
125
- const m = balanced("{", "}", str);
126
- if (!m)
127
- return [str];
128
- const pre = m.pre;
129
- const post = m.post.length ? expand_(m.post, max, false) : [""];
130
- if (/\$$/.test(m.pre)) {
131
- for (let k2 = 0; k2 < post.length && k2 < max; k2++) {
132
- const expansion = pre + "{" + m.body + "}" + post[k2];
133
- expansions.push(expansion);
134
- }
135
- } else {
125
+ for (; ; ) {
126
+ const m = balanced("{", "}", str);
127
+ if (!m)
128
+ return [str];
129
+ const pre = m.pre;
130
+ if (/\$$/.test(m.pre)) {
131
+ const post2 = m.post.length ? expand_(m.post, max, false) : [""];
132
+ for (let k2 = 0; k2 < post2.length && k2 < max; k2++) {
133
+ const expansion = pre + "{" + m.body + "}" + post2[k2];
134
+ expansions.push(expansion);
135
+ }
136
+ return expansions;
137
+ }
136
138
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
137
139
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
138
140
  const isSequence = isNumericSequence || isAlphaSequence;
@@ -140,10 +142,12 @@ function expand_(str, max, isTop) {
140
142
  if (!isSequence && !isOptions) {
141
143
  if (m.post.match(/,(?!,).*\}/)) {
142
144
  str = m.pre + "{" + m.body + escClose + m.post;
143
- return expand_(str, max, true);
145
+ isTop = true;
146
+ continue;
144
147
  }
145
148
  return [str];
146
149
  }
150
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
147
151
  let n;
148
152
  if (isSequence) {
149
153
  n = m.body.split(/\.\./);
@@ -207,8 +211,8 @@ function expand_(str, max, isTop) {
207
211
  }
208
212
  }
209
213
  }
214
+ return expansions;
210
215
  }
211
- return expansions;
212
216
  }
213
217
 
214
218
  // ../../node_modules/minimatch/dist/esm/assert-valid-pattern.js
package/dist/index.js CHANGED
@@ -7973,7 +7973,7 @@ function createInlineExtractor() {
7973
7973
  const fs = await import("fs");
7974
7974
  const path = await import("path");
7975
7975
  const crypto = await import("crypto");
7976
- const { glob } = await import("./esm-RQFF6QRX.js");
7976
+ const { glob } = await import("./esm-QBB5EI36.js");
7977
7977
  const globs = [
7978
7978
  "**/*.html",
7979
7979
  "**/*.htm",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperfixi/mcp-server",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "Model Context Protocol server for HyperFixi hyperscript development",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "service:restart": "launchctl stop com.lokascript.mcp-server && launchctl start com.lokascript.mcp-server",
25
25
  "service:status": "launchctl list | grep lokascript || echo 'Not running'",
26
26
  "service:logs": "tail -f logs/stdout.log logs/stderr.log",
27
- "test:check": "vitest run --reporter=dot 2>&1 | tail -5"
27
+ "test:check": "VITEST_QUIET=1 bash ../../scripts/vitest-run.sh --reporter=dot"
28
28
  },
29
29
  "keywords": [
30
30
  "mcp",
@@ -37,30 +37,30 @@
37
37
  "author": "LokaScript Contributors",
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
- "@hyperfixi/patterns-reference": "^2.5.1",
41
- "@lokascript/compilation-service": "^2.5.1",
42
- "@lokascript/domain-config": "^2.5.1",
43
- "@lokascript/framework": "^2.5.1",
44
- "@lokascript/planner": "^2.5.1",
45
- "@lokascript/semantic": "^2.5.1",
40
+ "@hyperfixi/patterns-reference": "^2.6.0",
41
+ "@lokascript/compilation-service": "^2.6.0",
42
+ "@lokascript/domain-config": "^2.6.0",
43
+ "@lokascript/framework": "^2.6.0",
44
+ "@lokascript/planner": "^2.6.0",
45
+ "@lokascript/semantic": "^2.6.0",
46
46
  "@modelcontextprotocol/sdk": "^1.25.0",
47
47
  "yaml": "^2.8.3"
48
48
  },
49
49
  "peerDependencies": {
50
- "@hyperfixi/core": "^2.5.1",
51
- "@hyperfixi/patterns-reference": "^2.5.1",
52
- "@hyperfixi/server-bridge": "^2.5.1",
53
- "@lokascript/compilation-service": "^2.5.1",
54
- "@lokascript/domain-bdd": "^2.5.1",
55
- "@lokascript/domain-behaviorspec": "^2.5.1",
56
- "@lokascript/domain-flow": "^2.5.1",
57
- "@lokascript/domain-jsx": "^2.5.1",
58
- "@lokascript/domain-llm": "^2.5.1",
59
- "@lokascript/domain-sql": "^2.5.1",
60
- "@lokascript/domain-todo": "^2.5.1",
61
- "@lokascript/domain-voice": "^2.5.1",
62
- "@lokascript/framework": "^2.5.1",
63
- "@lokascript/semantic": "^2.5.1"
50
+ "@hyperfixi/core": "^2.6.0",
51
+ "@hyperfixi/patterns-reference": "^2.6.0",
52
+ "@hyperfixi/server-bridge": "^2.6.0",
53
+ "@lokascript/compilation-service": "^2.6.0",
54
+ "@lokascript/domain-bdd": "^2.6.0",
55
+ "@lokascript/domain-behaviorspec": "^2.6.0",
56
+ "@lokascript/domain-flow": "^2.6.0",
57
+ "@lokascript/domain-jsx": "^2.6.0",
58
+ "@lokascript/domain-llm": "^2.6.0",
59
+ "@lokascript/domain-sql": "^2.6.0",
60
+ "@lokascript/domain-todo": "^2.6.0",
61
+ "@lokascript/domain-voice": "^2.6.0",
62
+ "@lokascript/framework": "^2.6.0",
63
+ "@lokascript/semantic": "^2.6.0"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@lokascript/compilation-service": {
@@ -107,20 +107,20 @@
107
107
  }
108
108
  },
109
109
  "devDependencies": {
110
- "@hyperfixi/core": "^2.5.1",
111
- "@hyperfixi/patterns-reference": "^2.5.1",
112
- "@hyperfixi/server-bridge": "^2.5.1",
113
- "@lokascript/compilation-service": "^2.5.1",
114
- "@lokascript/domain-bdd": "^2.5.1",
115
- "@lokascript/domain-behaviorspec": "^2.5.1",
116
- "@lokascript/domain-flow": "^2.5.1",
117
- "@lokascript/domain-jsx": "^2.5.1",
118
- "@lokascript/domain-llm": "^2.5.1",
119
- "@lokascript/domain-sql": "^2.5.1",
120
- "@lokascript/domain-todo": "^2.5.1",
121
- "@lokascript/domain-voice": "^2.5.1",
122
- "@lokascript/framework": "^2.5.1",
123
- "@lokascript/semantic": "^2.5.1",
110
+ "@hyperfixi/core": "^2.6.0",
111
+ "@hyperfixi/patterns-reference": "^2.6.0",
112
+ "@hyperfixi/server-bridge": "^2.6.0",
113
+ "@lokascript/compilation-service": "^2.6.0",
114
+ "@lokascript/domain-bdd": "^2.6.0",
115
+ "@lokascript/domain-behaviorspec": "^2.6.0",
116
+ "@lokascript/domain-flow": "^2.6.0",
117
+ "@lokascript/domain-jsx": "^2.6.0",
118
+ "@lokascript/domain-llm": "^2.6.0",
119
+ "@lokascript/domain-sql": "^2.6.0",
120
+ "@lokascript/domain-todo": "^2.6.0",
121
+ "@lokascript/domain-voice": "^2.6.0",
122
+ "@lokascript/framework": "^2.6.0",
123
+ "@lokascript/semantic": "^2.6.0",
124
124
  "@types/node": "^20.0.0",
125
125
  "tsup": "^8.0.0",
126
126
  "tsx": "^4.0.0",