@wot-ui/cli 0.0.1-beta.7 → 0.0.1-beta.8

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # open-wot
1
+ # Open Wot
2
2
 
3
3
  open-wot 是 wot-ui 的 AI 工具链仓库,当前对外发布的核心包为 `@wot-ui/cli`。它提供命令行工具、MCP Server、离线组件知识库与数据提取脚本,用于把 wot-ui v2 的组件知识接入编辑器、AI Agent 和本地工程分析流程。
4
4
 
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as resolveVersion, i as listComponents, n as lintProject, o as loadMetadataFile, r as findComponent, s as version, t as analyzeUsage } from "./scanner-B5dljsZu.mjs";
2
+ import { a as resolveVersion, i as listComponents, n as lintProject, o as loadMetadataFile, r as findComponent, s as version, t as analyzeUsage } from "./scanner-DYthnCXr.mjs";
3
3
  import process from "node:process";
4
4
  import { Command } from "commander";
5
5
  import { existsSync, readFileSync } from "node:fs";
@@ -328,7 +328,7 @@ function registerListCommand(program) {
328
328
  //#region src/commands/mcp.ts
329
329
  function registerMcpCommand(program) {
330
330
  program.command("mcp").description("Start the wot-ui MCP server").action(async () => {
331
- const { startMcpServer } = await import("./server-Bn2u7Czs.mjs");
331
+ const { startMcpServer } = await import("./server-65ejz4L2.mjs");
332
332
  await startMcpServer();
333
333
  });
334
334
  }
@@ -5,7 +5,7 @@ import { gunzipSync } from "node:zlib";
5
5
  import { parse } from "@vue/compiler-sfc";
6
6
 
7
7
  //#region package.json
8
- var version = "0.0.1-beta.7";
8
+ var version = "0.0.1-beta.8";
9
9
 
10
10
  //#endregion
11
11
  //#region src/data/loader.ts
@@ -1,4 +1,4 @@
1
- import { a as resolveVersion, i as listComponents, n as lintProject, o as loadMetadataFile, r as findComponent, s as version } from "./scanner-B5dljsZu.mjs";
1
+ import { a as resolveVersion, i as listComponents, n as lintProject, o as loadMetadataFile, r as findComponent, s as version } from "./scanner-DYthnCXr.mjs";
2
2
  import process from "node:process";
3
3
  import { McpServer, StdioServerTransport } from "@modelcontextprotocol/server";
4
4
  import * as z from "zod/v4";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wot-ui/cli",
3
3
  "type": "module",
4
- "version": "0.0.1-beta.7",
4
+ "version": "0.0.1-beta.8",
5
5
  "description": "面向 wot-ui 的 CLI、MCP 与数据提取工具集",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/antfu",
@@ -42,6 +42,8 @@
42
42
  "@antfu/ni": "^28.0.0",
43
43
  "@antfu/utils": "^9.3.0",
44
44
  "@types/node": "^25.0.1",
45
+ "@vitest/coverage-v8": "4.0.15",
46
+ "baseline-browser-mapping": "^2.10.18",
45
47
  "bumpp": "^10.3.2",
46
48
  "eslint": "^9.39.2",
47
49
  "lint-staged": "^16.2.7",
@@ -59,7 +61,7 @@
59
61
  "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
60
62
  },
61
63
  "lint-staged": {
62
- "*": "eslint --fix"
64
+ "*": "eslint --fix --no-warn-ignored"
63
65
  },
64
66
  "scripts": {
65
67
  "build": "tsdown",
@@ -71,8 +73,7 @@
71
73
  "release": "bumpp",
72
74
  "start": "tsx src/index.ts",
73
75
  "test": "vitest run",
74
- "test:all": "pnpm test",
75
- "test:cli": "pnpm test",
76
+ "test:coverage": "vitest run --coverage --coverage.reporter=lcov --coverage.reporter=text",
76
77
  "test:watch": "vitest",
77
78
  "typecheck": "tsc --noEmit",
78
79
  "typecheck:all": "pnpm typecheck",