@pecot/visual-mcp 1.1.0 → 1.2.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.
- package/.claude-plugin/plugin.json +1 -1
- package/assets/slidev/package.json +6 -6
- package/assets/slidev/runtime/package.json +11 -11
- package/assets/slidev/scripts/eslint/_shared/dist/tsconfig.tsbuildinfo +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/tsconfig.tsbuildinfo +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/package.json +1 -1
- package/assets/slidev/scripts/eslint/text-constraints/dist/tsconfig.tsbuildinfo +1 -1
- package/assets/slidev/scripts/eslint/text-constraints/package.json +1 -1
- package/assets/slidev/scripts/eslint/validate-references/dist/lib/schema-validator.js +1 -1
- package/assets/slidev/scripts/eslint/validate-references/dist/tsconfig.tsbuildinfo +1 -1
- package/assets/slidev/scripts/eslint/validate-references/lib/schema-validator.ts +2 -2
- package/assets/slidev/scripts/eslint/validate-references/package.json +1 -1
- package/cli/dist/cli.js +3 -2
- package/cli/dist/commands/chromium/host-dependencies.js +12 -5
- package/cli/dist/commands/drawio/export.js +14 -11
- package/cli/dist/commands/drawio/theme.js +1 -1
- package/cli/dist/commands/drawio/url.js +27 -19
- package/cli/dist/commands/evidence-xlsx/create.js +11 -10
- package/cli/dist/commands/pptx-ooxml/preview.js +13 -17
- package/cli/dist/commands/slidev-project/create.js +19 -18
- package/cli/dist/commands/slidev-project/lint.js +24 -22
- package/cli/dist/commands/slidev-project/sync.js +25 -24
- package/cli/dist/commands/slidev-project/theme.js +14 -13
- package/cli/dist/commands/slidev-to-pptx/convert.d.ts +4 -0
- package/cli/dist/commands/slidev-to-pptx/convert.js +45 -32
- package/cli/dist/diagnostics.d.ts +38 -0
- package/cli/dist/diagnostics.js +46 -0
- package/cli/dist/domain/_shared/ports.d.ts +0 -1
- package/cli/dist/domain/drawio/url.d.ts +11 -7
- package/cli/dist/domain/drawio/url.js +47 -25
- package/cli/dist/domain/pptx-ooxml/prerender-replace.d.ts +1 -0
- package/cli/dist/domain/pptx-ooxml/prerender-replace.js +3 -3
- package/cli/dist/domain/slidev-project/generated-files.js +3 -3
- package/cli/dist/infra/_shared/runtime-install.d.ts +12 -84
- package/cli/dist/infra/_shared/runtime-install.js +72 -107
- package/cli/dist/infra/slidev-to-pptx/console-logger.d.ts +5 -5
- package/cli/dist/infra/slidev-to-pptx/console-logger.js +19 -20
- package/cli/dist/infra/slidev-to-pptx/dom-converter.d.ts +1 -1
- package/cli/dist/infra/slidev-to-pptx/dom-converter.js +1 -1
- package/cli/dist/infra/slidev-to-pptx/index.js +1 -9
- package/cli/dist/infra/slidev-to-pptx/pipeline.d.ts +1 -1
- package/cli/dist/infra/slidev-to-pptx/pipeline.js +2 -2
- package/cli/dist/infra/slidev-to-pptx/server.d.ts +2 -1
- package/cli/dist/infra/slidev-to-pptx/server.js +2 -2
- package/cli/dist/mcp/serve.js +5 -3
- package/cli/dist/mcp/tools/_shared.js +11 -1
- package/cli/dist/mcp/tools/drawio.js +2 -1
- package/cli/dist/mcp/tools/slide-page.js +3 -1
- package/cli/dist/mcp/tools/slide.js +3 -1
- package/npm-shrinkwrap.json +45 -51
- package/package.json +5 -5
- package/vendor/text-rules/dist/source-hash +1 -1
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
// Slidev PPTX pipeline 用の Logger
|
|
2
|
-
// sink 未指定時は process.
|
|
1
|
+
// Slidev PPTX pipeline 用の Logger 実装。出力はすべて stderr の診断行(note / warning / error)にする。
|
|
2
|
+
// sink 未指定時は process.stderr を使う。
|
|
3
3
|
import { format } from 'node:util';
|
|
4
|
+
import { createDiagnostics } from '../../diagnostics.js';
|
|
5
|
+
// 区切りのための先頭の改行は、空の note の行になるので落とす。
|
|
6
|
+
// eslint-disable-next-line unicorn/name-replacements -- args は console.log と同じ可変長引数の慣習名を維持
|
|
7
|
+
function text(...args) {
|
|
8
|
+
return format(...args).replace(/^\n+/, '');
|
|
9
|
+
}
|
|
4
10
|
const LOG_LEVELS = { normal: 0, verbose: 1, debug: 2 };
|
|
5
11
|
/**
|
|
6
|
-
指定 level の Logger を生成する。sink 未指定時は process.
|
|
12
|
+
指定 level の Logger を生成する。sink 未指定時は process.stderr を使う。
|
|
7
13
|
|
|
8
|
-
@param level 'normal' (
|
|
14
|
+
@param level 'normal' (warn / error のみ) / 'verbose' (info + verbose も note) / 'debug' (全 level)。
|
|
9
15
|
未知の level は 'normal' 扱い。
|
|
10
|
-
@param sink 注入する
|
|
16
|
+
@param sink 注入する stderr。省略時は process.stderr。
|
|
11
17
|
*/
|
|
12
|
-
export function createLogger(level = 'normal',
|
|
13
|
-
|
|
14
|
-
sink) {
|
|
15
|
-
const resolvedSink = sink ?? { stdout: process.stdout, stderr: process.stderr };
|
|
18
|
+
export function createLogger(level = 'normal', sink) {
|
|
19
|
+
const diagnostics = createDiagnostics((sink ?? { stderr: process.stderr }).stderr);
|
|
16
20
|
// LOG_LEVELS の lookup に失敗したときは、`?? 0` で normal にフォールバックする。
|
|
17
21
|
// eslint-disable-next-line security/detect-object-injection -- level は CLI flag 経由の限定値
|
|
18
22
|
const threshold = LOG_LEVELS[level] ?? 0;
|
|
19
23
|
/* eslint-disable unicorn/name-replacements -- args は console.log と同じ可変長引数の慣習名を維持 */
|
|
20
|
-
const writeOut = (...args) => {
|
|
21
|
-
resolvedSink.stdout.write(format(...args) + '\n');
|
|
22
|
-
};
|
|
23
|
-
const writeErr = (...args) => {
|
|
24
|
-
resolvedSink.stderr.write(format(...args) + '\n');
|
|
25
|
-
};
|
|
26
24
|
return {
|
|
27
|
-
info: (...args) => {
|
|
25
|
+
info: (...args) => { if (threshold >= 1)
|
|
26
|
+
diagnostics.note(text(...args)); },
|
|
28
27
|
verbose: (...args) => { if (threshold >= 1)
|
|
29
|
-
|
|
28
|
+
diagnostics.note(text(...args)); },
|
|
30
29
|
debug: (...args) => { if (threshold >= 2)
|
|
31
|
-
|
|
32
|
-
warn: (...args) => {
|
|
33
|
-
error: (...args) => {
|
|
30
|
+
diagnostics.note(text(...args)); },
|
|
31
|
+
warn: (...args) => { diagnostics.warning(text(...args)); },
|
|
32
|
+
error: (...args) => { diagnostics.error(text(...args)); },
|
|
34
33
|
};
|
|
35
34
|
/* eslint-enable unicorn/name-replacements */
|
|
36
35
|
}
|
|
@@ -6,7 +6,7 @@ slides.md の frontmatter から title を読み取る。取得できない場
|
|
|
6
6
|
ファイル読取 + title 抽出は、共通ヘルパー readSlidesTitleFromFile に委譲する。
|
|
7
7
|
ここでは、読取失敗時の warn と自契約 (undefined → null 写像) のみを担う。
|
|
8
8
|
*/
|
|
9
|
-
export declare function readSlidesTitle(distDir: string, logger
|
|
9
|
+
export declare function readSlidesTitle(distDir: string, logger: Logger): Promise<string | null>;
|
|
10
10
|
/**
|
|
11
11
|
dom-to-pptx ライブラリをページに注入する。
|
|
12
12
|
addScriptTag は script の実行まで待つため、定義の確認は直後の 1 回で足りる。
|
|
@@ -68,7 +68,7 @@ slides.md の frontmatter から title を読み取る。取得できない場
|
|
|
68
68
|
export async function readSlidesTitle(distDir, logger) {
|
|
69
69
|
const slidesPath = join(dirname(distDir), 'slides.md');
|
|
70
70
|
const title = await readSlidesTitleFromFile(slidesPath, (error) => {
|
|
71
|
-
|
|
71
|
+
logger.warn(`slides.md の読み取りをスキップ (${slidesPath}): ${errorMessage(error)}`);
|
|
72
72
|
});
|
|
73
73
|
return title ?? null;
|
|
74
74
|
}
|
|
@@ -64,15 +64,7 @@ export class InProcessSlidevPptxPipeline {
|
|
|
64
64
|
},
|
|
65
65
|
}),
|
|
66
66
|
};
|
|
67
|
-
|
|
68
|
-
// `slide convert --json` は stdout を JSON 行だけにするため、stdout を渡さない。
|
|
69
|
-
// そのため人間可読ログは stderr 側へ寄せる。process.stdout へフォールバックすると JSON イベントと混在する。
|
|
70
|
-
const stderr = arguments_.stderr ?? process.stderr;
|
|
71
|
-
const sink = {
|
|
72
|
-
stdout: arguments_.stdout ?? stderr,
|
|
73
|
-
stderr,
|
|
74
|
-
};
|
|
75
|
-
const logger = createLogger(config.logLevel, sink);
|
|
67
|
+
const logger = createLogger(config.logLevel, { stderr: arguments_.stderr ?? process.stderr });
|
|
76
68
|
const controller = new AbortController();
|
|
77
69
|
const startedAt = performance.now();
|
|
78
70
|
let lastProgress;
|
|
@@ -13,7 +13,7 @@ convertToPptx の依存注入。test 時に Browser / Server / dom-to-pptx の
|
|
|
13
13
|
export interface PipelineDependencies {
|
|
14
14
|
readonly logger?: Logger;
|
|
15
15
|
readonly createBrowser?: () => Promise<Browser>;
|
|
16
|
-
readonly createServer?: (distDir: string, port: number) => Promise<Server>;
|
|
16
|
+
readonly createServer?: (distDir: string, port: number, logger: Pick<Logger, 'error'>) => Promise<Server>;
|
|
17
17
|
/**
|
|
18
18
|
dom-to-pptx.bundle.js の絶対パスを返す関数。省略時は依存ルート経由で解決
|
|
19
19
|
*/
|
|
@@ -327,7 +327,7 @@ Phase 2+3 (旧 Python pptx-postprocess による merge) は cli 側で実施す
|
|
|
327
327
|
そのため本実装は、常に Phase 1 (DOM → 単スライド PPTX) のみを実行する。
|
|
328
328
|
*/
|
|
329
329
|
export async function convertToPptx(config, deps = {}) {
|
|
330
|
-
const logger = deps.logger ?? createLogger(config.logLevel || 'normal');
|
|
330
|
+
const logger = deps.logger ?? createLogger(config.logLevel || 'normal', { stderr: process.stderr });
|
|
331
331
|
const { templatePath, outputDir, slidePrefix, port, presDir } = config;
|
|
332
332
|
if (!isAbsolute(presDir)) {
|
|
333
333
|
throw new Error(`presDir must be an absolute path. Got: ${presDir}`);
|
|
@@ -350,7 +350,7 @@ export async function convertToPptx(config, deps = {}) {
|
|
|
350
350
|
// これを防ぐため、両者を 1 つの try-finally でくくる。
|
|
351
351
|
// chromium.launch の失敗時は、利用者誘導メッセージで wrap する。
|
|
352
352
|
throwIfAborted(deps.signal);
|
|
353
|
-
const server = await (deps.createServer ?? startServer)(distDir, port);
|
|
353
|
+
const server = await (deps.createServer ?? startServer)(distDir, port, logger);
|
|
354
354
|
// baseUrl は、要求ポートでなく実際に bind されたポートで組む。
|
|
355
355
|
// port=0 (ephemeral、既定) では OS が空きポートを採番する。
|
|
356
356
|
// そのため、並行する別プロセスの convert と衝突しない。
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Server } from 'node:http';
|
|
2
|
+
import type { Logger } from '../../domain/slidev-to-pptx/logger.js';
|
|
2
3
|
export declare const LOOPBACK_HOST = "127.0.0.1";
|
|
3
4
|
/**
|
|
4
5
|
dist 配信サーバが実際に bind したポートを解決する。
|
|
@@ -14,5 +15,5 @@ routerMode: history のデッキではスライド URL がパス (/2, /5/3 等)
|
|
|
14
15
|
そのため拡張子を持たないパスは、index.html を返してクライアントサイドルータに委譲する。
|
|
15
16
|
routerMode: hash のデッキはスライド番号がフラグメントに載り、サーバーには常に / だけが要求される。
|
|
16
17
|
*/
|
|
17
|
-
export declare function startServer(distDir: string, port: number): Promise<Server>;
|
|
18
|
+
export declare function startServer(distDir: string, port: number, logger: Pick<Logger, 'error'>): Promise<Server>;
|
|
18
19
|
//# sourceMappingURL=server.d.ts.map
|
|
@@ -30,7 +30,7 @@ routerMode: history のデッキではスライド URL がパス (/2, /5/3 等)
|
|
|
30
30
|
そのため拡張子を持たないパスは、index.html を返してクライアントサイドルータに委譲する。
|
|
31
31
|
routerMode: hash のデッキはスライド番号がフラグメントに載り、サーバーには常に / だけが要求される。
|
|
32
32
|
*/
|
|
33
|
-
export function startServer(distDir, port) {
|
|
33
|
+
export function startServer(distDir, port, logger) {
|
|
34
34
|
return new Promise((resolve, reject) => {
|
|
35
35
|
const server = createServer((request, res) => {
|
|
36
36
|
void (async () => {
|
|
@@ -81,7 +81,7 @@ export function startServer(distDir, port) {
|
|
|
81
81
|
// 以後のサーバエラー (配信中の socket error 等) は通知なしで捨てず、変換ログから観測できるようにする。
|
|
82
82
|
server.removeListener('error', reject);
|
|
83
83
|
server.on('error', (error) => {
|
|
84
|
-
|
|
84
|
+
logger.error(`dist 配信サーバ error: ${error.message}`);
|
|
85
85
|
});
|
|
86
86
|
// 起動ログは呼び出し元 (pipeline.ts) が logger 経由で出す。ここで console.log すると
|
|
87
87
|
// `slide convert --json` の stdout (JSON 行専用) に混在する。
|
package/cli/dist/mcp/serve.js
CHANGED
|
@@ -13,6 +13,7 @@ import { serveStdio, StdioServerTransport } from '@modelcontextprotocol/server/s
|
|
|
13
13
|
import { devServerRegistry } from './dev-server-registry.js';
|
|
14
14
|
import { createMcpServer } from './server.js';
|
|
15
15
|
import { allTools } from './tools/index.js';
|
|
16
|
+
import { createDiagnostics } from '../diagnostics.js';
|
|
16
17
|
import { ignoreRejection } from '../domain/_shared/ignore-rejection.js';
|
|
17
18
|
/**
|
|
18
19
|
SIGTERM / SIGINT を受けたときの終了コード (シェルの慣習どおり 128 + シグナル番号)。
|
|
@@ -46,6 +47,7 @@ export function installStdoutGuard(stdout, stderr) {
|
|
|
46
47
|
// ここで扱うのは console 系が書く utf8 文字列か Buffer に限られる。encoding を
|
|
47
48
|
// 引き回すと BufferEncoding への narrowing のために型アサーションが必要になる。
|
|
48
49
|
const done = typeof encodingOrCallback === 'function' ? encodingOrCallback : callback;
|
|
50
|
+
// eslint-disable-next-line no-restricted-syntax -- console 系が stdout へ書いた生のチャンクを、そのまま stderr へ逃がす
|
|
49
51
|
const isWritten = stderr.write(chunk);
|
|
50
52
|
done?.();
|
|
51
53
|
return isWritten;
|
|
@@ -65,7 +67,7 @@ export function installStdoutGuard(stdout, stderr) {
|
|
|
65
67
|
// stdout の相手が消えた後の書き込み (EPIPE) は Writable の 'error' として上がる。
|
|
66
68
|
// 拾わないと uncaught 例外でスタックトレースごと落ちるため、1 行報告して終了コードを立てる。
|
|
67
69
|
protocolStdout.on('error', (error) => {
|
|
68
|
-
stderr.
|
|
70
|
+
createDiagnostics(stderr).error(`stdout への書き込みに失敗しました: ${error.message}`);
|
|
69
71
|
process.exitCode = 1;
|
|
70
72
|
});
|
|
71
73
|
installedGuards.set(stdout, protocolStdout);
|
|
@@ -122,7 +124,7 @@ export function runMcpServe(dependencies) {
|
|
|
122
124
|
if (reported.has(error))
|
|
123
125
|
return;
|
|
124
126
|
reported.add(error);
|
|
125
|
-
dependencies.stderr.
|
|
127
|
+
createDiagnostics(dependencies.stderr).error(error.message);
|
|
126
128
|
};
|
|
127
129
|
const handle = serveStdio(() => {
|
|
128
130
|
// factory に持たせる副作用は、インスタンスの生成と onerror の設定だけにする。
|
|
@@ -163,7 +165,7 @@ export function executeMcpServe(buildDependencies) {
|
|
|
163
165
|
runMcpServe(dependencies);
|
|
164
166
|
}
|
|
165
167
|
catch (error) {
|
|
166
|
-
dependencies.stderr.
|
|
168
|
+
createDiagnostics(dependencies.stderr).error(formatError(error));
|
|
167
169
|
process.exitCode = 1;
|
|
168
170
|
}
|
|
169
171
|
}
|
|
@@ -246,7 +246,17 @@ export function runtimeDefaultDependencies() {
|
|
|
246
246
|
return {
|
|
247
247
|
// 永続層は版を持たない固定パスなので、解決の可否だけでなく、install 対象の内容から導く
|
|
248
248
|
// stamp も照らし合わせる (前の版で取得したツリーを、取得済みと誤判定させない)。
|
|
249
|
-
|
|
249
|
+
// manifest が読めないか @slidev/cli の宣言を欠くと、stamp が throw する。未取得として install へ進め、失敗を応答に載せる。
|
|
250
|
+
isInstalled: () => {
|
|
251
|
+
let stamp;
|
|
252
|
+
try {
|
|
253
|
+
stamp = runtimeInstallStamp(manifestPath);
|
|
254
|
+
}
|
|
255
|
+
catch {
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
return areRuntimeDependenciesInstalled(stamp);
|
|
259
|
+
},
|
|
250
260
|
root: runtimeDependencyRoot,
|
|
251
261
|
install: signal => installRuntimeDependencies({ manifestPath, signal }),
|
|
252
262
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
import { assertOutputExtension as assertDrawioExportOutputExtension, drawioExportDefaultDependencies, errorToReason as drawioExportErrorToReason, executeDrawioExport, toExitCode as drawioExportToExitCode, } from '../../commands/drawio/export.js';
|
|
11
11
|
import { drawioUrlDefaultDependencies, errorData as drawioUrlErrorData, executeDrawioUrl, toExitCode as drawioUrlToExitCode, } from '../../commands/drawio/url.js';
|
|
12
|
+
import { createDiagnostics } from '../../diagnostics.js';
|
|
12
13
|
import { resolvePluginRoot } from '../../infra/_shared/plugin-root.js';
|
|
13
14
|
import { defaultIconRoot } from '../../infra/drawio/icons.js';
|
|
14
15
|
import { parsePathArguments, toCallToolResult } from '../result.js';
|
|
@@ -97,7 +98,7 @@ call) => {
|
|
|
97
98
|
// CLI は capturePng の失敗を stderr へ書いてから warning に数える。
|
|
98
99
|
// 同じ行を残して、「警告 N 件、詳細は stderr」という message を CLI と MCP で同じ意味にする。
|
|
99
100
|
if (unavailable !== undefined)
|
|
100
|
-
output.stderr.
|
|
101
|
+
createDiagnostics(output.stderr).warning(`PNG 生成失敗: ${unavailable.message}`);
|
|
101
102
|
try {
|
|
102
103
|
const execution = await executeDrawioUrl(input.input_path,
|
|
103
104
|
// chromium が無いときは PNG を要求せずに実行する (表示用 HTML の生成は成立する)。
|
|
@@ -17,6 +17,7 @@ import path from 'node:path';
|
|
|
17
17
|
import { z } from 'zod';
|
|
18
18
|
import { errorToReason as slideThemeErrorToReason, executeSlideTheme, } from '../../commands/slidev-project/theme.js';
|
|
19
19
|
import { NodeThemeFiles } from '../../infra/slidev-theme/fs.js';
|
|
20
|
+
import { createDiagnostics } from '../../diagnostics.js';
|
|
20
21
|
import { extractSkeleton, isFrontmatterBlock } from '../../domain/slidev-theme/skeleton.js';
|
|
21
22
|
import { parsePathArguments, toCallToolResult } from '../result.js';
|
|
22
23
|
import { captureCommandOutput, formatError, TOOL_OUTPUT_SCHEMA, WINDOWS_PATH_NOTE, } from './_shared.js';
|
|
@@ -200,8 +201,9 @@ output) {
|
|
|
200
201
|
return themeFailure(error);
|
|
201
202
|
}
|
|
202
203
|
const { data: theme, references } = execution;
|
|
204
|
+
const diagnostics = createDiagnostics(output.stderr);
|
|
203
205
|
for (const warning of theme.warnings)
|
|
204
|
-
|
|
206
|
+
diagnostics.warning(warning);
|
|
205
207
|
// 一致確認はファイルを開く前に済ませる。layout は利用者入力なので、パストラバーサル・
|
|
206
208
|
// hidden 名・大文字違いはここで構造的に落とす (一致確認を後ろに回すと任意ファイル読みになる)。
|
|
207
209
|
const entry = theme.layouts.find(candidate => candidate.layout === input.layout);
|
|
@@ -162,7 +162,9 @@ export function slideConvertTool(buildDependencies = slideConvertDefaultDependen
|
|
|
162
162
|
return toCallToolResult(unavailable);
|
|
163
163
|
const output = captureCommandOutput();
|
|
164
164
|
try {
|
|
165
|
-
// json: false
|
|
165
|
+
// json: false 相当で呼び、output の stdout / stderr へ集める。
|
|
166
|
+
// 進捗の人間可読ログは stderr の診断行 (note / warning / error) で出るので、ToolResult の stderr に入る。
|
|
167
|
+
// stdout には変換結果の要約だけが入る。
|
|
166
168
|
// MCP サーバの process.stdout は JSON-RPC 専有なので、実 stdout へは何も書かせない。
|
|
167
169
|
const dependencies = {
|
|
168
170
|
...buildDependencies(),
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pecot/visual-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@pecot/visual-mcp",
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.2.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cffnpwr/textlint-plugin-comments": "1.0.0",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@textlint/module-interop": "^15.8.0",
|
|
18
18
|
"@textlint/textlint-plugin-markdown": "^15.8.0",
|
|
19
19
|
"@xmldom/xmldom": "^0.9.12",
|
|
20
|
-
"ajv": "^
|
|
21
|
-
"commander": "^15.
|
|
22
|
-
"eslint": "^10.
|
|
20
|
+
"ajv": "^8.20.0",
|
|
21
|
+
"commander": "^15.1.0",
|
|
22
|
+
"eslint": "^10.14.0",
|
|
23
23
|
"js-yaml": "^4.3.2",
|
|
24
24
|
"mime-types": "^2.1.35",
|
|
25
25
|
"playwright": "^1.64.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"textlint-rule-preset-ai-words-ja": "1.2.1",
|
|
29
29
|
"textlint-rule-preset-ja-technical-writing": "^12.0.2",
|
|
30
30
|
"web-tree-sitter": "0.27.1",
|
|
31
|
-
"xpath": "^0.0.
|
|
31
|
+
"xpath": "^0.0.36",
|
|
32
32
|
"yaml": "2.9.1",
|
|
33
33
|
"yauzl": "^3.4.0",
|
|
34
34
|
"yazl": "^3.3.1",
|
|
@@ -799,15 +799,15 @@
|
|
|
799
799
|
}
|
|
800
800
|
},
|
|
801
801
|
"node_modules/ajv": {
|
|
802
|
-
"version": "
|
|
803
|
-
"resolved": "https://registry.npmjs.org/ajv/-/ajv-
|
|
804
|
-
"integrity": "sha512-
|
|
802
|
+
"version": "8.20.0",
|
|
803
|
+
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
|
|
804
|
+
"integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
|
|
805
805
|
"license": "MIT",
|
|
806
806
|
"dependencies": {
|
|
807
|
-
"fast-deep-equal": "^3.1.
|
|
808
|
-
"fast-
|
|
809
|
-
"json-schema-traverse": "^0.
|
|
810
|
-
"
|
|
807
|
+
"fast-deep-equal": "^3.1.3",
|
|
808
|
+
"fast-uri": "^3.0.1",
|
|
809
|
+
"json-schema-traverse": "^1.0.0",
|
|
810
|
+
"require-from-string": "^2.0.2"
|
|
811
811
|
},
|
|
812
812
|
"funding": {
|
|
813
813
|
"type": "github",
|
|
@@ -1640,6 +1640,28 @@
|
|
|
1640
1640
|
"url": "https://opencollective.com/eslint"
|
|
1641
1641
|
}
|
|
1642
1642
|
},
|
|
1643
|
+
"node_modules/eslint/node_modules/ajv": {
|
|
1644
|
+
"version": "6.15.0",
|
|
1645
|
+
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
|
|
1646
|
+
"integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
|
|
1647
|
+
"license": "MIT",
|
|
1648
|
+
"dependencies": {
|
|
1649
|
+
"fast-deep-equal": "^3.1.1",
|
|
1650
|
+
"fast-json-stable-stringify": "^2.0.0",
|
|
1651
|
+
"json-schema-traverse": "^0.4.1",
|
|
1652
|
+
"uri-js": "^4.2.2"
|
|
1653
|
+
},
|
|
1654
|
+
"funding": {
|
|
1655
|
+
"type": "github",
|
|
1656
|
+
"url": "https://github.com/sponsors/epoberezkin"
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
"node_modules/eslint/node_modules/json-schema-traverse": {
|
|
1660
|
+
"version": "0.4.1",
|
|
1661
|
+
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
|
1662
|
+
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
|
|
1663
|
+
"license": "MIT"
|
|
1664
|
+
},
|
|
1643
1665
|
"node_modules/espree": {
|
|
1644
1666
|
"version": "11.2.0",
|
|
1645
1667
|
"resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
|
|
@@ -2799,9 +2821,9 @@
|
|
|
2799
2821
|
}
|
|
2800
2822
|
},
|
|
2801
2823
|
"node_modules/json-schema-traverse": {
|
|
2802
|
-
"version": "0.
|
|
2803
|
-
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.
|
|
2804
|
-
"integrity": "sha512-
|
|
2824
|
+
"version": "1.0.0",
|
|
2825
|
+
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
|
|
2826
|
+
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
|
|
2805
2827
|
"license": "MIT"
|
|
2806
2828
|
},
|
|
2807
2829
|
"node_modules/json-stable-stringify-without-jsonify": {
|
|
@@ -5186,21 +5208,15 @@
|
|
|
5186
5208
|
}
|
|
5187
5209
|
},
|
|
5188
5210
|
"node_modules/sentence-splitter": {
|
|
5189
|
-
"version": "5.0.
|
|
5190
|
-
"resolved": "https://registry.npmjs.org/sentence-splitter/-/sentence-splitter-5.0.
|
|
5191
|
-
"integrity": "sha512-
|
|
5211
|
+
"version": "5.0.3",
|
|
5212
|
+
"resolved": "https://registry.npmjs.org/sentence-splitter/-/sentence-splitter-5.0.3.tgz",
|
|
5213
|
+
"integrity": "sha512-L+vTqoKX0fFj+OPDyq15z/aVHqEnvwa4lH0j0VYQw9asAqdmenyPq9cF1L6/8PkYcyYDvPoiZwepX8ABTLcRGQ==",
|
|
5192
5214
|
"license": "MIT",
|
|
5193
5215
|
"dependencies": {
|
|
5194
|
-
"@textlint/ast-node-types": "^
|
|
5216
|
+
"@textlint/ast-node-types": "^15.8.0",
|
|
5195
5217
|
"structured-source": "^4.0.0"
|
|
5196
5218
|
}
|
|
5197
5219
|
},
|
|
5198
|
-
"node_modules/sentence-splitter/node_modules/@textlint/ast-node-types": {
|
|
5199
|
-
"version": "13.4.1",
|
|
5200
|
-
"resolved": "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-13.4.1.tgz",
|
|
5201
|
-
"integrity": "sha512-qrZyhCh8Ekk6nwArx3BROybm9BnX6vF7VcZbijetV/OM3yfS4rTYhoMWISmhVEP2H2re0CtWEyMl/XF+WdvVLQ==",
|
|
5202
|
-
"license": "MIT"
|
|
5203
|
-
},
|
|
5204
5220
|
"node_modules/set-function-length": {
|
|
5205
5221
|
"version": "1.2.2",
|
|
5206
5222
|
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
|
@@ -5550,28 +5566,6 @@
|
|
|
5550
5566
|
"node": ">=10.0.0"
|
|
5551
5567
|
}
|
|
5552
5568
|
},
|
|
5553
|
-
"node_modules/table/node_modules/ajv": {
|
|
5554
|
-
"version": "8.20.0",
|
|
5555
|
-
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
|
|
5556
|
-
"integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
|
|
5557
|
-
"license": "MIT",
|
|
5558
|
-
"dependencies": {
|
|
5559
|
-
"fast-deep-equal": "^3.1.3",
|
|
5560
|
-
"fast-uri": "^3.0.1",
|
|
5561
|
-
"json-schema-traverse": "^1.0.0",
|
|
5562
|
-
"require-from-string": "^2.0.2"
|
|
5563
|
-
},
|
|
5564
|
-
"funding": {
|
|
5565
|
-
"type": "github",
|
|
5566
|
-
"url": "https://github.com/sponsors/epoberezkin"
|
|
5567
|
-
}
|
|
5568
|
-
},
|
|
5569
|
-
"node_modules/table/node_modules/json-schema-traverse": {
|
|
5570
|
-
"version": "1.0.0",
|
|
5571
|
-
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
|
|
5572
|
-
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
|
|
5573
|
-
"license": "MIT"
|
|
5574
|
-
},
|
|
5575
5569
|
"node_modules/text-table": {
|
|
5576
5570
|
"version": "0.2.0",
|
|
5577
5571
|
"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
|
|
@@ -6861,9 +6855,9 @@
|
|
|
6861
6855
|
}
|
|
6862
6856
|
},
|
|
6863
6857
|
"node_modules/xpath": {
|
|
6864
|
-
"version": "0.0.
|
|
6865
|
-
"resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.
|
|
6866
|
-
"integrity": "sha512-
|
|
6858
|
+
"version": "0.0.36",
|
|
6859
|
+
"resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.36.tgz",
|
|
6860
|
+
"integrity": "sha512-HuqAnJx5YJoDeLub7hhcNoiRvnqqrgoSsI4kLrOtv6XkaUI0zY9ylL4+ULozB35JT1SVMfdexsMqRbTp7bkFGQ==",
|
|
6867
6861
|
"license": "MIT",
|
|
6868
6862
|
"engines": {
|
|
6869
6863
|
"node": ">=0.6.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pecot/visual-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "pecotv MCP server (standalone distribution)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
20
20
|
"@xmldom/xmldom": "^0.9.12",
|
|
21
|
-
"commander": "^15.
|
|
21
|
+
"commander": "^15.1.0",
|
|
22
22
|
"mime-types": "^2.1.35",
|
|
23
23
|
"playwright": "^1.64.1",
|
|
24
|
-
"xpath": "^0.0.
|
|
24
|
+
"xpath": "^0.0.36",
|
|
25
25
|
"yaml": "2.9.1",
|
|
26
26
|
"yauzl": "^3.4.0",
|
|
27
27
|
"yazl": "^3.3.1",
|
|
28
28
|
"zod": "^4.6.7",
|
|
29
|
-
"eslint": "^10.
|
|
29
|
+
"eslint": "^10.14.0",
|
|
30
30
|
"@eslint/markdown": "^8.0.3",
|
|
31
31
|
"js-yaml": "^4.3.2",
|
|
32
32
|
"synckit": "^0.12.3",
|
|
33
|
-
"ajv": "^
|
|
33
|
+
"ajv": "^8.20.0",
|
|
34
34
|
"@cffnpwr/textlint-plugin-comments": "1.0.0",
|
|
35
35
|
"@textlint-ja/textlint-rule-preset-ai-writing": "^1.7.0",
|
|
36
36
|
"@textlint/kernel": "^15.8.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c5ad90cdc730a0d52d5eb37f1a9e983a7fa40b0b59a7fd6e3ec0ea6429dd4fa4
|