@pecot/visual-mcp 4.0.2-dev.157 → 4.0.2-dev.160
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pecot/visual-mcp",
|
|
3
|
-
"version": "4.0.2-dev.
|
|
3
|
+
"version": "4.0.2-dev.160",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@pecot/visual-mcp",
|
|
9
|
-
"version": "4.0.2-dev.
|
|
9
|
+
"version": "4.0.2-dev.160",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cffnpwr/textlint-plugin-comments": "1.0.0",
|
|
@@ -191,9 +191,9 @@
|
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
"node_modules/@eslint-community/regexpp": {
|
|
194
|
-
"version": "4.12.
|
|
195
|
-
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.
|
|
196
|
-
"integrity": "sha512-
|
|
194
|
+
"version": "4.12.4",
|
|
195
|
+
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.4.tgz",
|
|
196
|
+
"integrity": "sha512-1qH3WeISXHFS8P3QI0lntHlMrlfTh1OarxlRbPNDEkSCqoyXC3apBE7MDyRKOL8HpuW48aQtff30wvEFww/4ww==",
|
|
197
197
|
"license": "MIT",
|
|
198
198
|
"engines": {
|
|
199
199
|
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
|
|
@@ -3312,9 +3312,9 @@
|
|
|
3312
3312
|
}
|
|
3313
3313
|
},
|
|
3314
3314
|
"node_modules/mdast-util-to-markdown": {
|
|
3315
|
-
"version": "2.2.
|
|
3316
|
-
"resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.
|
|
3317
|
-
"integrity": "sha512-
|
|
3315
|
+
"version": "2.2.5",
|
|
3316
|
+
"resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.5.tgz",
|
|
3317
|
+
"integrity": "sha512-mxOMQQ8NgisvTarkSUqZwi6GmzNo490V932DpEK/0+OETIeVJBzq4QuMt45fqqcsF5EYMlJENjSSAZxh89VJsg==",
|
|
3318
3318
|
"license": "MIT",
|
|
3319
3319
|
"dependencies": {
|
|
3320
3320
|
"@types/mdast": "^4.0.0",
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ const SCANNERS = new Map([
|
|
|
9
9
|
['.pyi', pythonStrings],
|
|
10
10
|
['.sh', shellStrings],
|
|
11
11
|
['.bash', shellStrings],
|
|
12
|
+
['.bats', shellStrings],
|
|
12
13
|
['.json', jsonStrings],
|
|
13
14
|
['.jsonc', jsonStrings],
|
|
14
15
|
['.yaml', yamlStrings],
|
|
@@ -298,11 +299,13 @@ export async function stringParagraphs(text, extension, lineStarts = lineStartsO
|
|
|
298
299
|
}
|
|
299
300
|
export { documentOf } from './inline-spans.js';
|
|
300
301
|
const EXTENSIONS = SCANNERS.keys().toArray();
|
|
302
|
+
// comments plugin が知らない拡張子を、同じ文法の拡張子で読ませる。bats のファイルは bash の文法で書く。
|
|
303
|
+
const COMMENT_EXTENSIONS = new Map([['.bats', '.bash']]);
|
|
301
304
|
// 文字列の外にあるコメントの Paragraph。.vue は comments plugin が読めないので、script の中身だけを残した本文を拡張子ごとに読ませる。
|
|
302
305
|
async function commentNodes(text, extension) {
|
|
303
306
|
const Processor = loadCommentsPlugin().Processor;
|
|
304
307
|
if (extension !== '.vue') {
|
|
305
|
-
return documentOf(await new Processor().processor(extension).preProcess(text)).children;
|
|
308
|
+
return documentOf(await new Processor().processor(COMMENT_EXTENSIONS.get(extension) ?? extension).preProcess(text)).children;
|
|
306
309
|
}
|
|
307
310
|
const documents = await Promise.all(vueScripts(text).map(async ({ grammar, masked }) => documentOf(await new Processor().processor(SCRIPT_EXTENSIONS.get(grammar) ?? '.js').preProcess(masked)).children));
|
|
308
311
|
return documents.flat();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
494285e69ab6ba54ebe584f13f4df5f8986de0576e342924b687033c75bab1df
|