@wenyan-md/mcp 1.0.1 → 1.0.3

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.
Files changed (51) hide show
  1. package/README.md +34 -2
  2. package/package.json +2 -2
  3. package/dist/highlight/highlight/styles/atom-one-dark.min.css +0 -1
  4. package/dist/highlight/highlight/styles/atom-one-light.min.css +0 -1
  5. package/dist/highlight/highlight/styles/dracula.min.css +0 -8
  6. package/dist/highlight/highlight/styles/github-dark.min.css +0 -10
  7. package/dist/highlight/highlight/styles/github.min.css +0 -10
  8. package/dist/highlight/highlight/styles/monokai.min.css +0 -1
  9. package/dist/highlight/highlight/styles/solarized-dark.min.css +0 -8
  10. package/dist/highlight/highlight/styles/solarized-light.min.css +0 -8
  11. package/dist/highlight/highlight/styles/xcode.min.css +0 -1
  12. package/dist/highlight/styles/atom-one-dark.min.css +0 -1
  13. package/dist/highlight/styles/atom-one-light.min.css +0 -1
  14. package/dist/highlight/styles/dracula.min.css +0 -8
  15. package/dist/highlight/styles/github-dark.min.css +0 -10
  16. package/dist/highlight/styles/github.min.css +0 -10
  17. package/dist/highlight/styles/monokai.min.css +0 -1
  18. package/dist/highlight/styles/solarized-dark.min.css +0 -8
  19. package/dist/highlight/styles/solarized-light.min.css +0 -8
  20. package/dist/highlight/styles/xcode.min.css +0 -1
  21. package/dist/index.d.ts +0 -11
  22. package/dist/mac_style.css +0 -8
  23. package/dist/main.js +0 -495
  24. package/dist/publish.d.ts +0 -2
  25. package/dist/publish.d.ts.map +0 -1
  26. package/dist/publish.js +0 -142
  27. package/dist/resources.d.ts +0 -3
  28. package/dist/resources.d.ts.map +0 -1
  29. package/dist/resources.js +0 -42
  30. package/dist/theme.d.ts +0 -7
  31. package/dist/theme.d.ts.map +0 -1
  32. package/dist/theme.js +0 -42
  33. package/dist/themes/default.css +0 -180
  34. package/dist/themes/lapis.css +0 -190
  35. package/dist/themes/maize.css +0 -190
  36. package/dist/themes/orangeheart.css +0 -180
  37. package/dist/themes/phycat.css +0 -331
  38. package/dist/themes/pie.css +0 -236
  39. package/dist/themes/purple.css +0 -179
  40. package/dist/themes/rainbow.css +0 -163
  41. package/dist/themes/themes/default.css +0 -180
  42. package/dist/themes/themes/lapis.css +0 -190
  43. package/dist/themes/themes/maize.css +0 -190
  44. package/dist/themes/themes/orangeheart.css +0 -180
  45. package/dist/themes/themes/phycat.css +0 -331
  46. package/dist/themes/themes/pie.css +0 -236
  47. package/dist/themes/themes/purple.css +0 -179
  48. package/dist/themes/themes/rainbow.css +0 -163
  49. package/dist/types.d.ts +0 -10
  50. package/dist/types.d.ts.map +0 -1
  51. package/dist/types.js +0 -1
package/dist/theme.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export type Theme = {
2
- id: string;
3
- name: string;
4
- description: string;
5
- };
6
- export declare const themes: Record<string, Theme>;
7
- //# sourceMappingURL=theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAyCxC,CAAC"}
package/dist/theme.js DELETED
@@ -1,42 +0,0 @@
1
- export const themes = {
2
- default: {
3
- id: "default",
4
- name: "Default",
5
- description: "A clean, classic layout ideal for long-form reading.",
6
- },
7
- orangeHeart: {
8
- id: "orangeheart",
9
- name: "OrangeHeart",
10
- description: "A vibrant and elegant theme in warm orange tones.",
11
- },
12
- rainbow: {
13
- id: "rainbow",
14
- name: "Rainbow",
15
- description: "A colorful, lively theme with a clean layout.",
16
- },
17
- lapis: {
18
- id: "lapis",
19
- name: "Lapis",
20
- description: "A minimal and refreshing theme in cool blue tones.",
21
- },
22
- pie: {
23
- id: "pie",
24
- name: "Pie",
25
- description: "Inspired by sspai.com and Misty — modern, sharp, and stylish.",
26
- },
27
- maize: {
28
- id: "maize",
29
- name: "Maize",
30
- description: "A crisp, light theme with a soft maize palette.",
31
- },
32
- purple: {
33
- id: "purple",
34
- name: "Purple",
35
- description: "Clean and minimalist, with a subtle purple accent.",
36
- },
37
- phycat: {
38
- id: "phycat",
39
- name: "phycat",
40
- description: "物理猫-薄荷:a mint-green theme with clear structure and hierarchy.",
41
- },
42
- };
@@ -1,180 +0,0 @@
1
- /**
2
- * 欢迎使用自定义主题功能,使用教程:
3
- * https://babyno.top/posts/2024/11/wenyan-supports-customized-themes/
4
- */
5
- /* 全局属性 */
6
- #wenyan {
7
- font-family: var(--sans-serif-font);
8
- line-height: 1.75;
9
- font-size: 16px;
10
- }
11
- /* 全局子元素属性 */
12
- /* 支持分组 */
13
- #wenyan h1,
14
- #wenyan h2,
15
- #wenyan h3,
16
- #wenyan h4,
17
- #wenyan h5,
18
- #wenyan h6,
19
- #wenyan p,
20
- #wenyan pre {
21
- margin: 1em 0;
22
- }
23
- /* 段落 */
24
- #wenyan p {
25
- }
26
- /* 加粗 */
27
- #wenyan p strong {
28
- }
29
- /* 斜体 */
30
- #wenyan p em {
31
- }
32
- /* 一级标题 */
33
- #wenyan h1 {
34
- text-align: center;
35
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
36
- font-size: 1.5em;
37
- }
38
- /* 标题文字 */
39
- #wenyan h1 span {
40
- }
41
- /* 标题前缀,h1-h6都支持前缀 */
42
- #wenyan h1::before {
43
- }
44
- /* 标题后缀,h1-h6都支持后缀 */
45
- #wenyan h1::after {
46
- }
47
- /* 二级标题 */
48
- #wenyan h2 {
49
- text-align: center;
50
- font-size: 1.2em;
51
- border-bottom: 1px solid #f7f7f7;
52
- font-weight: bold;
53
- }
54
- /* 三-六级标题 */
55
- #wenyan h3,
56
- #wenyan h4,
57
- #wenyan h5,
58
- #wenyan h6 {
59
- font-size: 1em;
60
- font-weight: bold;
61
- }
62
- /* 列表 */
63
- #wenyan ul,
64
- #wenyan ol {
65
- padding-left: 1.2em;
66
- }
67
- /* 列表元素 */
68
- #wenyan li {
69
- margin-left: 1.2em;
70
- }
71
- /* 图片 */
72
- #wenyan img {
73
- max-width: 100%;
74
- height: auto;
75
- margin: 0 auto;
76
- display: block;
77
- }
78
- /* 表格 */
79
- #wenyan table {
80
- border-collapse: collapse;
81
- margin: 1.4em auto;
82
- max-width: 100%;
83
- table-layout: fixed;
84
- text-align: left;
85
- overflow: auto;
86
- display: table;
87
- word-wrap: break-word;
88
- word-break: break-all;
89
- }
90
- /* 表格单元格 */
91
- #wenyan table td,
92
- #wenyan table th {
93
- font-size: 0.75em;
94
- padding: 9px 12px;
95
- line-height: 22px;
96
- color: #222;
97
- border: 1px solid #d8d8d8;
98
- vertical-align: top;
99
- }
100
- /* 表格表头 */
101
- #wenyan table th {
102
- font-weight: bold;
103
- background-color: #f0f0f0;
104
- }
105
- /* 表格斑马条纹效果 */
106
- #wenyan table tr:nth-child(2n) {
107
- background-color: #f8f8f8;
108
- }
109
- /* 引用块 */
110
- #wenyan blockquote {
111
- background: #afb8c133;
112
- border-left: 0.5em solid #ccc;
113
- margin: 1.5em 0;
114
- padding: 0.5em 10px;
115
- font-style: italic;
116
- font-size: 0.9em;
117
- }
118
- /* 引用块前缀 */
119
- #wenyan blockquote::before {
120
- }
121
- /* 引用块后缀 */
122
- #wenyan blockquote::after {
123
- }
124
- /* 行内代码 */
125
- #wenyan p code {
126
- font-family: var(--monospace-font);
127
- color: #ff502c;
128
- padding: 4px 6px;
129
- font-size: 0.78em;
130
- }
131
- /* 代码块外围 */
132
- #wenyan pre {
133
- border-radius: 5px;
134
- line-height: 2;
135
- margin: 1em 0.5em;
136
- padding: .5em;
137
- box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;
138
- }
139
- /* 代码块 */
140
- #wenyan pre code {
141
- font-family: var(--monospace-font);
142
- display: block;
143
- overflow-x: auto;
144
- margin: .5em;
145
- padding: 0;
146
- }
147
- /* 分割线 */
148
- #wenyan hr {
149
- border: none;
150
- border-top: 1px solid #ddd;
151
- margin-top: 2em;
152
- margin-bottom: 2em;
153
- }
154
- /* 链接 */
155
- #wenyan a {
156
- word-wrap: break-word;
157
- color: #0069c2;
158
- }
159
- /* 原始链接旁脚注上标 */
160
- #wenyan .footnote {
161
- color: #0069c2;
162
- }
163
- /* 脚注行 */
164
- #wenyan #footnotes p {
165
- display: flex;
166
- margin: 0;
167
- font-size: 0.9em;
168
- }
169
- /* 脚注行内编号 */
170
- #wenyan .footnote-num {
171
- display: inline;
172
- width: 10%;
173
- }
174
- /* 脚注行内文字 */
175
- #wenyan .footnote-txt {
176
- display: inline;
177
- width: 90%;
178
- word-wrap: break-word;
179
- word-break: break-all;
180
- }
@@ -1,190 +0,0 @@
1
- /*
2
- * Typora Theme - Lapis / Author - YiNN
3
- * https://github.com/YiNNx/typora-theme-lapis
4
- */
5
-
6
- :root {
7
- --text-color: #40464f;
8
- --primary-color: #4870ac;
9
- --bg-color: #ffffff;
10
- --marker-color: #a2b6d4;
11
- --source-color: #a8a8a9;
12
- --header-span-color: var(--primary-color);
13
- --block-bg-color: #f6f8fa;
14
- }
15
- #wenyan {
16
- color: var(--text-color);
17
- font-family: var(--sans-serif-font);
18
- line-height: 1.75;
19
- font-size: 16px;
20
- }
21
- #wenyan p,
22
- #wenyan pre {
23
- margin: 1em 0.8em;
24
- }
25
- #wenyan strong {
26
- color: var(--primary-color);
27
- }
28
- #wenyan a {
29
- word-wrap: break-word;
30
- color: var(--primary-color);
31
- }
32
- #wenyan p {
33
- color: var(--text-color);
34
- }
35
- #wenyan h4,
36
- #wenyan h5,
37
- #wenyan h6 {
38
- font-weight: normal;
39
- }
40
- #wenyan h1,
41
- #wenyan h2,
42
- #wenyan h3,
43
- #wenyan h4,
44
- #wenyan h5,
45
- #wenyan h6 {
46
- padding: 0px;
47
- color: var(--primary-color);
48
- margin: 1.2em 0 1em;
49
- }
50
- #wenyan h1 {
51
- text-align: center;
52
- }
53
- #wenyan h2 {
54
- padding: 1px 12.5px;
55
- border-radius: 4px;
56
- display: inline-block;
57
- }
58
- #wenyan h2,
59
- #wenyan h2 code {
60
- background-color: var(--header-span-color);
61
- }
62
- #wenyan h2,
63
- #wenyan h2 a,
64
- #wenyan h2 code,
65
- #wenyan h2 strong {
66
- color: var(--bg-color);
67
- }
68
- #wenyan h1 {
69
- font-size: 1.5em;
70
- }
71
- #wenyan h2 {
72
- font-size: 1.3em;
73
- }
74
- #wenyan h3 {
75
- font-size: 1.3em;
76
- }
77
- #wenyan h4 {
78
- font-size: 1.2em;
79
- }
80
- #wenyan h5 {
81
- font-size: 1.2em;
82
- }
83
- #wenyan h6 {
84
- font-size: 1.2em;
85
- }
86
- #wenyan ul {
87
- list-style-type: disc;
88
- }
89
- #wenyan em {
90
- padding: 0 3px 0 0;
91
- }
92
- #wenyan ul ul {
93
- list-style-type: square;
94
- }
95
- #wenyan ol {
96
- list-style-type: decimal;
97
- }
98
- #wenyan blockquote {
99
- display: block;
100
- font-size: 0.9em;
101
- border-left: 3px solid var(--primary-color);
102
- padding: 0.5em 1em;
103
- margin: 0;
104
- background: var(--block-bg-color);
105
- }
106
- #wenyan p code {
107
- color: var(--primary-color);
108
- font-size: 0.9em;
109
- font-weight: normal;
110
- word-wrap: break-word;
111
- padding: 2px 4px 2px;
112
- border-radius: 3px;
113
- margin: 2px;
114
- background-color: var(--block-bg-color);
115
- font-family: var(--monospace-font);
116
- word-break: break-all;
117
- }
118
- #wenyan img {
119
- max-width: 100%;
120
- max-width: 100%;
121
- height: auto;
122
- margin: 0 auto;
123
- display: block;
124
- }
125
- #wenyan table {
126
- display: table;
127
- text-align: justify;
128
- overflow-x: auto;
129
- border-collapse: collapse;
130
- margin: 1.4em auto;
131
- max-width: 100%;
132
- table-layout: fixed;
133
- text-align: left;
134
- overflow: auto;
135
- word-wrap: break-word;
136
- word-break: break-all;
137
- }
138
- #wenyan table th,
139
- #wenyan table td {
140
- border: 1px solid #d9dfe4;
141
- padding: 9px 12px;
142
- font-size: 0.75em;
143
- line-height: 22px;
144
- vertical-align: top;
145
- }
146
- #wenyan table th {
147
- text-align: center;
148
- font-weight: bold;
149
- color: var(--primary-color);
150
- background: #f7f7f7;
151
- }
152
- #wenyan hr {
153
- margin-top: 20px;
154
- margin-bottom: 20px;
155
- border: 0;
156
- border-top: 2px solid #eef2f5;
157
- border-radius: 2px;
158
- }
159
- #wenyan pre {
160
- border-radius: 5px;
161
- line-height: 2;
162
- margin: 1em 0.5em;
163
- padding: .5em;
164
- box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;
165
- }
166
- #wenyan pre code {
167
- display: block;
168
- overflow-x: auto;
169
- margin: .5em;
170
- padding: 0;
171
- font-family: var(--monospace-font);
172
- }
173
- #wenyan .footnote {
174
- color: var(--primary-color);
175
- }
176
- #wenyan #footnotes p {
177
- display: flex;
178
- margin: 0;
179
- font-size: 0.9em;
180
- }
181
- #wenyan .footnote-num {
182
- display: inline;
183
- width: 10%;
184
- }
185
- #wenyan .footnote-txt {
186
- display: inline;
187
- width: 90%;
188
- word-wrap: break-word;
189
- word-break: break-all;
190
- }
@@ -1,190 +0,0 @@
1
- /*
2
- * Typora Theme - Maize / Author - BEATREE
3
- * https://github.com/BEATREE/typora-maize-theme
4
- */
5
-
6
- :root {
7
- --bg-color: #fafafa;
8
- --text-color: #333333;
9
- --primary-color: #428bca;
10
- }
11
- #wenyan {
12
- font-family: var(--sans-serif-font);
13
- line-height: 1.75;
14
- font-size: 16px;
15
- }
16
- #wenyan p,
17
- #wenyan pre {
18
- margin: 1em 0;
19
- }
20
- #wenyan h1,
21
- #wenyan h2,
22
- #wenyan h3,
23
- #wenyan h4,
24
- #wenyan h5,
25
- #wenyan h6 {
26
- margin: 1.2em 0 1em;
27
- padding: 0px;
28
- font-weight: bold;
29
- }
30
- #wenyan h1 {
31
- font-size: 1.5em;
32
- }
33
- #wenyan h2::before {
34
- content: "";
35
- width: 20px;
36
- height: 30px;
37
- background-image: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIj4KICAgIDxnPgogICAgICAgIDxwYXRoIGQ9Im0zMy40NTIgNjIuMTQyUzY2LjA2MyAxNC45MzcgOTAuNDU2IDEwLjI4M2wxLjQyOSAxLjcxNFM3Mi41MzIgMjkuNTgyIDU4LjEzMyA0OC41ODNDNDMuMDg0IDY4LjQ0MiAzNi4wNTggODkuOTQ3IDMxLjg4IDg5LjcxNWMtNS42ODEtLjQxLTEyLjQyOS0zNy43MTYtMjMuMjg3LTMzLjI4Ny0yLjI4Ni0uNTcxIDMuOTEyLTkuNjE0IDEyLjU3Mi03LjU3MiA1LjQzIDEuMjgxIDEyLjI4NyAxMy4yODYgMTIuMjg3IDEzLjI4NnoiIGZpbGw9IiNmZmIxMWIiIC8+CiAgICA8L2c+Cjwvc3ZnPg==);
38
- background-repeat: no-repeat;
39
- background-size: 20px 20px;
40
- margin-right: 4px;
41
- background-position-y: 10px;
42
- }
43
- #wenyan h2 {
44
- font-size: 1.3em;
45
- display: flex;
46
- align-items: top;
47
- }
48
- #wenyan h2 span {
49
- font-weight: bold;
50
- color: #333;
51
- padding: 3px 10px 1px;
52
- }
53
- #wenyan h3 {
54
- font-size: 1.3em;
55
- }
56
- #wenyan h4 {
57
- font-size: 1.2em;
58
- }
59
- #wenyan h5 {
60
- font-size: 1.2em;
61
- }
62
- #wenyan h6 {
63
- font-size: 1.2em;
64
- }
65
- #wenyan ul,
66
- #wenyan ol {
67
- margin-top: 8px;
68
- margin-bottom: 8px;
69
- padding-left: 40px;
70
- color: black;
71
- }
72
- #wenyan ul {
73
- list-style-type: disc;
74
- }
75
- #wenyan ul ul {
76
- list-style-type: square;
77
- }
78
- #wenyan ol {
79
- list-style-type: decimal;
80
- }
81
- #wenyan strong {
82
- color: #e49123;
83
- font-weight: bold;
84
- }
85
- #wenyan blockquote {
86
- margin: 0;
87
- padding: 10px 10px 10px 20px;
88
- font-size: 0.9em;
89
- background: #fff9f9;
90
- border-left: 3px solid #ffb11b;
91
- color: #6a737d;
92
- overflow: auto;
93
- }
94
- #wenyan a {
95
- word-wrap: break-word;
96
- text-decoration: none;
97
- font-weight: bold;
98
- color: #e49123;
99
- border-bottom: 1px solid #e49123;
100
- }
101
- #wenyan hr {
102
- height: 1px;
103
- padding: 0;
104
- border: none;
105
- text-align: center;
106
- background-image: linear-gradient(to right, rgba(231, 93, 109, 0.3), rgba(255, 159, 150, 0.75), rgba(255, 216, 181, 0.3));
107
- }
108
- #wenyan p code,
109
- #wenyan span code,
110
- #wenyan li code {
111
- font-family: var(--monospace-font);
112
- word-wrap: break-word;
113
- padding: 2px 4px;
114
- border-radius: 4px;
115
- margin: 0 2px;
116
- word-break: break-all;
117
- color: rgb(235, 76, 55);
118
- background-color: #f0f0f0;
119
- font-size: .8em;
120
- }
121
- #wenyan img {
122
- max-width: 100%;
123
- display: block;
124
- margin: 0 auto;
125
- width: 85%;
126
- border-radius: 5px;
127
- box-shadow: 0px 4px 12px #84a1a8;
128
- border: 0px;
129
- }
130
- #wenyan table {
131
- border-collapse: collapse;
132
- margin: 1.4em auto;
133
- max-width: 100%;
134
- table-layout: fixed;
135
- text-align: left;
136
- overflow: auto;
137
- display: table;
138
- word-wrap: break-word;
139
- word-break: break-all;
140
- }
141
- #wenyan table td,
142
- #wenyan table th {
143
- font-size: 0.75em;
144
- padding: 9px 12px;
145
- line-height: 22px;
146
- color: #222;
147
- border: 1px solid rgb(255, 216, 181);
148
- vertical-align: top;
149
- }
150
- #wenyan table th {
151
- font-weight: bold;
152
- color: #ffb11b;
153
- background: #fff9f9;
154
- }
155
- #wenyan table tr:nth-child(2n) {
156
- background: #fff9f9;
157
- }
158
- #wenyan pre {
159
- border-radius: 5px;
160
- line-height: 2;
161
- margin: 1em 0.5em;
162
- padding: .5em;
163
- box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;
164
- }
165
- #wenyan pre code {
166
- display: block;
167
- overflow-x: auto;
168
- margin: .5em;
169
- padding: 0;
170
- font-family: var(--monospace-font);
171
- }
172
- #wenyan .footnote {
173
- font-weight: bold;
174
- color: #e49123;
175
- }
176
- #wenyan #footnotes p {
177
- display: flex;
178
- margin: 0;
179
- font-size: 0.9em;
180
- }
181
- #wenyan .footnote-num {
182
- display: inline;
183
- width: 10%;
184
- }
185
- #wenyan .footnote-txt {
186
- display: inline;
187
- width: 90%;
188
- word-wrap: break-word;
189
- word-break: break-all;
190
- }