@pecot/visual-mcp 4.0.2-dev.158 → 4.0.2
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
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@pecot/visual-mcp",
|
|
9
|
-
"version": "4.0.2
|
|
9
|
+
"version": "4.0.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cffnpwr/textlint-plugin-comments": "1.0.0",
|
|
@@ -191,18 +191,18 @@
|
|
|
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"
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
202
|
"node_modules/@eslint/config-array": {
|
|
203
|
-
"version": "0.23.
|
|
204
|
-
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.
|
|
205
|
-
"integrity": "sha512-
|
|
203
|
+
"version": "0.23.7",
|
|
204
|
+
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.7.tgz",
|
|
205
|
+
"integrity": "sha512-Ix1tmZjA7/OmE7ROAfORe83hVnqlDzLpZVHFjHQt5mvLm1U03qMexpaxKqFIL362QV32SoPaZqmKQr3tdqFY2w==",
|
|
206
206
|
"license": "Apache-2.0",
|
|
207
207
|
"dependencies": {
|
|
208
208
|
"@eslint/object-schema": "^3.0.5",
|
|
@@ -1464,9 +1464,9 @@
|
|
|
1464
1464
|
}
|
|
1465
1465
|
},
|
|
1466
1466
|
"node_modules/eslint": {
|
|
1467
|
-
"version": "10.
|
|
1468
|
-
"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.
|
|
1469
|
-
"integrity": "sha512
|
|
1467
|
+
"version": "10.16.0",
|
|
1468
|
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.16.0.tgz",
|
|
1469
|
+
"integrity": "sha512-Xu3PRLG/wCaZWZ20gkExUcNqL2mWWsXTR+Lln3Sof4Y9WuA678fH9hrlQ8B6UNwbTnsKdDdBYOd2jxtycXVTGQ==",
|
|
1470
1470
|
"license": "MIT",
|
|
1471
1471
|
"workspaces": [
|
|
1472
1472
|
"packages/*"
|
|
@@ -1474,7 +1474,7 @@
|
|
|
1474
1474
|
"dependencies": {
|
|
1475
1475
|
"@eslint-community/eslint-utils": "^4.8.0",
|
|
1476
1476
|
"@eslint-community/regexpp": "^4.12.2",
|
|
1477
|
-
"@eslint/config-array": "^0.23.
|
|
1477
|
+
"@eslint/config-array": "^0.23.7",
|
|
1478
1478
|
"@eslint/config-helpers": "^0.7.0",
|
|
1479
1479
|
"@eslint/core": "^1.2.1",
|
|
1480
1480
|
"@eslint/plugin-kit": "^0.7.3",
|
|
@@ -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
|
+
fd686416ce3781a22850df91b54b6c0b30c346575dc6966d9c339e43c71aa550
|