bestax-mcp 1.18.84 → 1.18.85
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/data/components/Numberinput.json +7 -7
- package/data/components/Slider.json +7 -7
- package/dist/fences.d.ts +27 -0
- package/dist/fences.d.ts.map +1 -0
- package/dist/fences.js +58 -0
- package/dist/helper-props.d.ts +0 -20
- package/dist/helper-props.d.ts.map +1 -1
- package/dist/helper-props.js +1 -3
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +1 -17
- package/package.json +1 -1
|
@@ -11,27 +11,27 @@
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"title": "With Min and Max",
|
|
14
|
-
"code": "function example() {\n const [quantity, setQuantity] = useState(1);\n return (\n <Block>\n <
|
|
14
|
+
"code": "function example() {\n const [quantity, setQuantity] = useState(1);\n return (\n <Block>\n <Numberinput\n label=\"Quantity (1-10)\"\n value={quantity}\n onChange={setQuantity}\n min={1}\n max={10}\n color=\"primary\"\n />\n </Block>\n );\n}"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"title": "Color Variants",
|
|
18
|
-
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Numberinput defaultValue={5} color=\"primary\" />\n <Numberinput defaultValue={5} color=\"success\" />\n <Numberinput defaultValue={5} color=\"info\" />\n <Numberinput defaultValue={5} color=\"warning\" />\n <Numberinput defaultValue={5} color=\"danger\" />\n</Block>"
|
|
18
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Numberinput aria-label=\"Quantity\" defaultValue={5} color=\"primary\" />\n <Numberinput aria-label=\"Quantity\" defaultValue={5} color=\"success\" />\n <Numberinput aria-label=\"Quantity\" defaultValue={5} color=\"info\" />\n <Numberinput aria-label=\"Quantity\" defaultValue={5} color=\"warning\" />\n <Numberinput aria-label=\"Quantity\" defaultValue={5} color=\"danger\" />\n</Block>"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"title": "Size Variants",
|
|
22
|
-
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Numberinput
|
|
22
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Numberinput\n aria-label=\"Quantity\"\n defaultValue={5}\n size=\"small\"\n color=\"primary\"\n />\n <Numberinput aria-label=\"Quantity\" defaultValue={5} color=\"primary\" />\n <Numberinput\n aria-label=\"Quantity\"\n defaultValue={5}\n size=\"medium\"\n color=\"primary\"\n />\n <Numberinput\n aria-label=\"Quantity\"\n defaultValue={5}\n size=\"large\"\n color=\"primary\"\n />\n</Block>"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"title": "Controls Position",
|
|
26
|
-
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Block>\n <
|
|
26
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Block>\n <Numberinput\n label=\"Both sides (default)\"\n defaultValue={5}\n controlsPosition=\"both\"\n color=\"primary\"\n />\n </Block>\n <Block>\n <Numberinput\n label=\"Left only\"\n defaultValue={5}\n controlsPosition=\"left\"\n color=\"info\"\n />\n </Block>\n <Block>\n <Numberinput\n label=\"Right only\"\n defaultValue={5}\n controlsPosition=\"right\"\n color=\"success\"\n />\n </Block>\n</Block>"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"title": "Rounded Buttons",
|
|
30
|
-
"code": "<Numberinput
|
|
30
|
+
"code": "<Numberinput\n aria-label=\"Quantity\"\n defaultValue={5}\n controlsRounded\n color=\"primary\"\n/>"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"title": "Custom Step",
|
|
34
|
-
"code": "function example() {\n const [value, setValue] = useState(0);\n return (\n <Block>\n <
|
|
34
|
+
"code": "function example() {\n const [value, setValue] = useState(0);\n return (\n <Block>\n <Numberinput\n label=\"Step by 10\"\n value={value}\n onChange={setValue}\n step={10}\n min={0}\n max={100}\n color=\"info\"\n />\n <Paragraph mt=\"2\">Value: {value}</Paragraph>\n </Block>\n );\n}"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"title": "Read-only Input",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"title": "Disabled State",
|
|
46
|
-
"code": "<Numberinput defaultValue={5} disabled />"
|
|
46
|
+
"code": "<Numberinput aria-label=\"Quantity\" defaultValue={5} disabled />"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"title": "Context-Aware Rendering › Default (with label)",
|
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"title": "With Output Display",
|
|
14
|
-
"code": "function example() {\n const [value, setValue] = useState(50);\n return (\n <Block>\n <Slider
|
|
14
|
+
"code": "function example() {\n const [value, setValue] = useState(50);\n return (\n <Block>\n <Slider\n aria-label=\"Value\"\n value={value}\n onChange={setValue}\n showOutput\n color=\"primary\"\n />\n <Paragraph mt=\"4\">Value: {value}</Paragraph>\n </Block>\n );\n}"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"title": "Color Variants",
|
|
18
|
-
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Slider defaultValue={50} color=\"primary\" showOutput />\n <Slider defaultValue={50} color=\"success\" showOutput />\n <Slider defaultValue={50} color=\"info\" showOutput />\n <Slider defaultValue={50} color=\"warning\" showOutput />\n <Slider defaultValue={50} color=\"danger\" showOutput />\n</Block>"
|
|
18
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Slider aria-label=\"Value\" defaultValue={50} color=\"primary\" showOutput />\n <Slider aria-label=\"Value\" defaultValue={50} color=\"success\" showOutput />\n <Slider aria-label=\"Value\" defaultValue={50} color=\"info\" showOutput />\n <Slider aria-label=\"Value\" defaultValue={50} color=\"warning\" showOutput />\n <Slider aria-label=\"Value\" defaultValue={50} color=\"danger\" showOutput />\n</Block>"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"title": "Size Variants",
|
|
22
|
-
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Block>\n <
|
|
22
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Block>\n <Slider label=\"Small\" defaultValue={50} size=\"small\" color=\"primary\" />\n </Block>\n <Block>\n <Slider label=\"Normal\" defaultValue={50} color=\"primary\" />\n </Block>\n <Block>\n <Slider label=\"Medium\" defaultValue={50} size=\"medium\" color=\"primary\" />\n </Block>\n <Block>\n <Slider label=\"Large\" defaultValue={50} size=\"large\" color=\"primary\" />\n </Block>\n</Block>"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"title": "Rounded and Circle",
|
|
26
|
-
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Block>\n <
|
|
26
|
+
"code": "<Block display=\"flex\" flexDirection=\"column\">\n <Block>\n <Slider\n label=\"Rounded\"\n defaultValue={50}\n isRounded\n color=\"info\"\n showOutput\n />\n </Block>\n <Block>\n <Slider\n label=\"Circle Thumb\"\n defaultValue={50}\n isCircle\n color=\"success\"\n showOutput\n />\n </Block>\n <Block>\n <Slider\n label=\"Both\"\n defaultValue={50}\n isRounded\n isCircle\n color=\"warning\"\n showOutput\n />\n </Block>\n</Block>"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"title": "Custom Range",
|
|
30
|
-
"code": "function example() {\n const [value, setValue] = useState(500);\n return (\n <Block>\n <Slider\n value={value}\n onChange={setValue}\n min={0}\n max={1000}\n step={50}\n showOutput\n color=\"primary\"\n />\n <Paragraph mt=\"4\">Value: ${value}</Paragraph>\n </Block>\n );\n}"
|
|
30
|
+
"code": "function example() {\n const [value, setValue] = useState(500);\n return (\n <Block>\n <Slider\n aria-label=\"Value\"\n value={value}\n onChange={setValue}\n min={0}\n max={1000}\n step={50}\n showOutput\n color=\"primary\"\n />\n <Paragraph mt=\"4\">Value: ${value}</Paragraph>\n </Block>\n );\n}"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"title": "Range Slider",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"title": "Custom Output Format",
|
|
42
|
-
"code": "function example() {\n const [value, setValue] = useState(50);\n return (\n <Block>\n <Slider\n value={value}\n onChange={setValue}\n showOutput\n color=\"success\"\n formatOutput={v => `${v}%`}\n />\n <Paragraph mt=\"4\">Progress: {value}%</Paragraph>\n </Block>\n );\n}"
|
|
42
|
+
"code": "function example() {\n const [value, setValue] = useState(50);\n return (\n <Block>\n <Slider\n aria-label=\"Value\"\n value={value}\n onChange={setValue}\n showOutput\n color=\"success\"\n formatOutput={v => `${v}%`}\n />\n <Paragraph mt=\"4\">Progress: {value}%</Paragraph>\n </Block>\n );\n}"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"title": "Disabled Slider",
|
|
46
|
-
"code": "<Slider defaultValue={30} disabled color=\"primary\" />"
|
|
46
|
+
"code": "<Slider aria-label=\"Value\" defaultValue={30} disabled color=\"primary\" />"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"title": "Context-Aware Rendering › Default (with label)",
|
package/dist/fences.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fenced code in the markdown the server serves, and the sections a helper
|
|
3
|
+
* guide splits into around it.
|
|
4
|
+
*
|
|
5
|
+
* Dependency-free, and in plain erasable TypeScript, on purpose:
|
|
6
|
+
* `scripts/gen-mcp-index.mjs` loads this file with node's type stripping, so
|
|
7
|
+
* the notes it adds to a guide's sections land in the sections
|
|
8
|
+
* `get_helper_props` serves (#2243).
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The fence open after a line, given the one open before it: the opening run
|
|
12
|
+
* with its indent, or null. A run of three or more backticks or tildes, at any
|
|
13
|
+
* indent, as in a list item, opens one. Only a run of its own character, at
|
|
14
|
+
* least as long, with nothing after it, indented at most three more than the
|
|
15
|
+
* opening run, closes it, so "```ts" inside a "```" fence is code, and so is a
|
|
16
|
+
* run an example indents deeper. A backtick run with a backtick after it is a
|
|
17
|
+
* code span (```a```), which opens nothing.
|
|
18
|
+
*/
|
|
19
|
+
export declare function fenceAfter(line: string, open: string | null): string | null;
|
|
20
|
+
/**
|
|
21
|
+
* A helper guide's sections, each starting at a `##` or `###` heading outside
|
|
22
|
+
* fenced code, with the text before the first heading as a section of its own.
|
|
23
|
+
* A heading line inside a fence, in an example's template literal, say, is
|
|
24
|
+
* code. Joined with a newline, the sections give back the guide.
|
|
25
|
+
*/
|
|
26
|
+
export declare function sections(doc: string): string[];
|
|
27
|
+
//# sourceMappingURL=fences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fences.d.ts","sourceRoot":"","sources":["../src/fences.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAgB3E;AAKD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAa9C"}
|
package/dist/fences.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fenced code in the markdown the server serves, and the sections a helper
|
|
3
|
+
* guide splits into around it.
|
|
4
|
+
*
|
|
5
|
+
* Dependency-free, and in plain erasable TypeScript, on purpose:
|
|
6
|
+
* `scripts/gen-mcp-index.mjs` loads this file with node's type stripping, so
|
|
7
|
+
* the notes it adds to a guide's sections land in the sections
|
|
8
|
+
* `get_helper_props` serves (#2243).
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The fence open after a line, given the one open before it: the opening run
|
|
12
|
+
* with its indent, or null. A run of three or more backticks or tildes, at any
|
|
13
|
+
* indent, as in a list item, opens one. Only a run of its own character, at
|
|
14
|
+
* least as long, with nothing after it, indented at most three more than the
|
|
15
|
+
* opening run, closes it, so "```ts" inside a "```" fence is code, and so is a
|
|
16
|
+
* run an example indents deeper. A backtick run with a backtick after it is a
|
|
17
|
+
* code span (```a```), which opens nothing.
|
|
18
|
+
*/
|
|
19
|
+
export function fenceAfter(line, open) {
|
|
20
|
+
// A line split from CRLF text keeps its \r, and is read the same.
|
|
21
|
+
const marker = line.match(/^([ \t]*)(`{3,}|~{3,})([^\r]*)\r?$/);
|
|
22
|
+
if (!marker)
|
|
23
|
+
return open;
|
|
24
|
+
const [, indent, run, after] = marker;
|
|
25
|
+
if (open === null) {
|
|
26
|
+
return run[0] === '`' && after.includes('`') ? null : indent + run;
|
|
27
|
+
}
|
|
28
|
+
const openRun = open.trimStart();
|
|
29
|
+
const openIndent = open.length - openRun.length;
|
|
30
|
+
const closes = run[0] === openRun[0] &&
|
|
31
|
+
run.length >= openRun.length &&
|
|
32
|
+
!after.trim() &&
|
|
33
|
+
indent.length <= openIndent + 3;
|
|
34
|
+
return closes ? null : open;
|
|
35
|
+
}
|
|
36
|
+
/** A heading a helper guide starts a section at. */
|
|
37
|
+
const SECTION_HEADING = /^#{2,3} /;
|
|
38
|
+
/**
|
|
39
|
+
* A helper guide's sections, each starting at a `##` or `###` heading outside
|
|
40
|
+
* fenced code, with the text before the first heading as a section of its own.
|
|
41
|
+
* A heading line inside a fence, in an example's template literal, say, is
|
|
42
|
+
* code. Joined with a newline, the sections give back the guide.
|
|
43
|
+
*/
|
|
44
|
+
export function sections(doc) {
|
|
45
|
+
const out = [[]];
|
|
46
|
+
let fence = null;
|
|
47
|
+
for (const line of doc.split('\n')) {
|
|
48
|
+
const current = out[out.length - 1];
|
|
49
|
+
if (fence === null && SECTION_HEADING.test(line) && current.length) {
|
|
50
|
+
out.push([line]);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
current.push(line);
|
|
54
|
+
}
|
|
55
|
+
fence = fenceAfter(line, fence);
|
|
56
|
+
}
|
|
57
|
+
return out.map(lines => lines.join('\n'));
|
|
58
|
+
}
|
package/dist/helper-props.d.ts
CHANGED
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shaping the helper-prop reference so asking one question does not cost the whole page.
|
|
3
|
-
*
|
|
4
|
-
* `get_helper_props` was 54,886 characters — 49% of everything a cold-start builder read in
|
|
5
|
-
* a measured session, on the tool this server's own `instructions` tell every client to call
|
|
6
|
-
* before writing styling. Its `group` argument was supposed to prevent that and did not: the
|
|
7
|
-
* filter substring-matched whole section BODIES, and three sections (`Supported Props`,
|
|
8
|
-
* `Viewport-Specific Properties`, `Full TypeScript Definition`) name every helper keyword, so
|
|
9
|
-
* `group: "text"` matched 21 of 41 sections — 87% of the page.
|
|
10
|
-
*
|
|
11
|
-
* Matching headings instead is not the fix either; it is a regression. `spacing` and
|
|
12
|
-
* `typography` — two of the three groups the tool's own description advertises — match no
|
|
13
|
-
* heading at all and would answer nothing.
|
|
14
|
-
*
|
|
15
|
-
* So the groups are curated, and each one carries its own slice of the prop table. The
|
|
16
|
-
* governing rule is that **no call ever loses a prop name**: the default lists every prop with
|
|
17
|
-
* its accepted values, because a builder has to be able to look up a valid value in one
|
|
18
|
-
* call. What moves behind `group` is the prose and the live examples, which are re-fetchable
|
|
19
|
-
* and which nothing breaks without.
|
|
20
|
-
*/
|
|
21
1
|
/**
|
|
22
2
|
* Markdown tables in the generated index are column-padded for human reading. That padding
|
|
23
3
|
* is 32% of this document — 16,352 characters, of which `Supported Props` alone contributes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper-props.d.ts","sourceRoot":"","sources":["../src/helper-props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helper-props.d.ts","sourceRoot":"","sources":["../src/helper-props.ts"],"names":[],"mappings":"AAsBA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CA6B/C;AAED,MAAM,WAAW,WAAW;IAC1B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAyHrD,CAAC;AAEF,eAAO,MAAM,WAAW,UAA6B,CAAC;AAEtD,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAezD;AAID,uFAAuF;AACvF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAe/D;AAMD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASvD;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBnE"}
|
package/dist/helper-props.js
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* call. What moves behind `group` is the prose and the live examples, which are re-fetchable
|
|
19
19
|
* and which nothing breaks without.
|
|
20
20
|
*/
|
|
21
|
+
import { sections } from './fences.js';
|
|
21
22
|
/**
|
|
22
23
|
* Markdown tables in the generated index are column-padded for human reading. That padding
|
|
23
24
|
* is 32% of this document — 16,352 characters, of which `Supported Props` alone contributes
|
|
@@ -206,9 +207,6 @@ export function resolveGroup(input) {
|
|
|
206
207
|
}
|
|
207
208
|
return null;
|
|
208
209
|
}
|
|
209
|
-
// scripts/gen-mcp-index.mjs notes a site image in each of these sections
|
|
210
|
-
// (`SLICE`), so a change to where this splits changes that too.
|
|
211
|
-
const sections = (doc) => doc.split(/\n(?=#{2,3} )/);
|
|
212
210
|
const headingOf = (chunk) => chunk.split('\n')[0].trim();
|
|
213
211
|
/** The `## Supported Props` table, reflowed, header rows plus the rows for `props`. */
|
|
214
212
|
export function propTable(doc, props) {
|
package/dist/search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAKjE,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAID;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,WACI,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAI5E;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAI/D;AAkJD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAkF/D,CAAC;AAqBF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,SAAS,MAAM,EAAO,GAC5B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAyBrB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAcD;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,MAAM,GACf,YAAY,EAAE,CAsBhB;AA0FD,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,eAAe,EAAE,EAC7B,MAAM,EAAE,KAAK,EAAE,EACf,KAAK,EAAE,OAAO,EAAE,EAChB,QAAQ,GAAE,SAAS,YAAY,EAAO,GACrC,GAAG,EAAE,CAiMP;AAoBD;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,SAAI,GAAG,MAAM,EAAE,CAe3E"}
|
package/dist/search.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fenceAfter } from './fences.js';
|
|
1
2
|
import { attributedLinks } from './format.js';
|
|
2
3
|
import { resolveGroup } from './helper-props.js';
|
|
3
4
|
const norm = (s) => s.toLowerCase();
|
|
@@ -320,23 +321,6 @@ export function aliasMatches(query, names = []) {
|
|
|
320
321
|
}
|
|
321
322
|
return out;
|
|
322
323
|
}
|
|
323
|
-
/**
|
|
324
|
-
* The fence open after a line, given the one open before it. A run of three or
|
|
325
|
-
* more backticks or tildes opens one, and only a run of its own character, at
|
|
326
|
-
* least as long, with nothing after it closes it, so "```ts" inside a "```"
|
|
327
|
-
* fence is code. A backtick run with a backtick after it is a code span
|
|
328
|
-
* (```a```), which opens nothing.
|
|
329
|
-
*/
|
|
330
|
-
function fenceAfter(line, open) {
|
|
331
|
-
const marker = line.match(/^\s*(`{3,}|~{3,})(.*)$/);
|
|
332
|
-
if (!marker)
|
|
333
|
-
return open;
|
|
334
|
-
const [, run, after] = marker;
|
|
335
|
-
if (open === null)
|
|
336
|
-
return run[0] === '`' && after.includes('`') ? null : run;
|
|
337
|
-
const closes = run[0] === open[0] && run.length >= open.length && !after.trim();
|
|
338
|
-
return closes ? null : open;
|
|
339
|
-
}
|
|
340
324
|
/** A section's non-blank lines outside its fenced code, as they are written. */
|
|
341
325
|
function proseLines(lines) {
|
|
342
326
|
const out = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bestax-mcp",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.85",
|
|
4
4
|
"mcpName": "io.github.allxsmith/bestax-mcp",
|
|
5
5
|
"description": "MCP server for @allxsmith/bestax-bulma — component props, examples, CSS variables and agent skills, served offline from a version-pinned index",
|
|
6
6
|
"type": "module",
|