@eficy/dsh-plugin 0.0.0-stage → 0.2.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 yee94
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,64 @@
1
- # Temporary Holding Version
1
+ # [Eficy](https://github.com/yee94/Eficy) for DeepSeek Harness
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Eficy 为 DeepSeek Harness 提供基于 React 组件生态的单文件页面创作与预览。预置 shadcn、Lucide 和 Recharts 的使用支持,配合 Tailwind 样式和设计指导,用于生成布局、样式和交互较完整的报告、看板及小工具。
4
+
5
+ ## 特性
6
+
7
+ ### 内置组件支持
8
+
9
+ | 组件库 | 用途 |
10
+ | --- | --- |
11
+ | shadcn | 按钮、表单、卡片、表格、标签页等界面组件 |
12
+ | Lucide | 风格统一的图标 |
13
+ | Recharts | 折线图、柱状图、饼图等数据图表,以及提示和图例 |
14
+
15
+ 助手可以直接组合这些组件完成页面,不必逐个编写基础控件、绘制图标或实现图表。
16
+
17
+ ### 设计指导
18
+
19
+ 随插件提供布局、信息层级、主题、图表选择和响应式排版的指导。报告按结论、关键指标、图表和明细组织,并提供经营分析、履约分析模板作为起点。具体布局和风格可以按需求调整。
20
+
21
+ ### React 生态与 Tailwind 样式复用
22
+
23
+ 除预置组件外,也可以直接使用兼容浏览器加载的 React 生态组件,无需为每份页面单独搭建项目或手动编译、打包。样式支持 Tailwind 常用工具类写法,可复用现有的间距、颜色、布局和响应式样式。
24
+
25
+ ### 面向成品的单文件产物
26
+
27
+ 内容、数据、组件和交互保存在一个文件中。生成目标是一份具有完整布局、统一样式和必要交互的页面,例如可筛选的分析报告、能调整参数的预算工具,而不只是基础标签的组合。
28
+
29
+ 文件可以在会话中直接预览、继续修改,也可以导出为文档、长图或交互网页。
30
+
31
+ ## 与 Markdown、HTML 的区别
32
+
33
+ | 能力 | Markdown | 原生 HTML | Eficy |
34
+ | --- | --- | --- | --- |
35
+ | 内容基础 | 文字、表格、图片 | 页面标签和基础表单元素 | React 组件、数据和交互 |
36
+ | 界面、图标与图表 | 通常依赖阅读器扩展或图片 | 需要自行实现或接入组件库 | 已提供 shadcn、Lucide、Recharts 支持 |
37
+ | React 组件复用 | 基础格式不提供 | 需要另外接入运行环境及组件 | 可直接使用兼容的 React 组件 |
38
+ | 样式 | 主要由阅读器主题决定 | 自行编写样式或接入样式框架 | 支持 Tailwind 常用工具类与组件主题 |
39
+ | 设计约定 | 格式本身不提供 | 格式本身不提供 | 配套设计指导和报告模板 |
40
+ | 典型产物 | 以阅读为主的文档 | 完成度取决于自行组织的页面实现 | 面向直接使用的交互报告、看板和小工具 |
41
+
42
+ 原生 HTML 本身不包含这些组件库、React 运行环境、Tailwind 样式支持和设计约定。使用 HTML 制作相同页面时,需要另行接入这些能力;Eficy 已经把它们作为创作基础提供给助手。这是它与普通 HTML 预览的主要区别。
43
+
44
+ Markdown 适合说明、笔记和总结。需要较完整的界面、数据展示和交互时,Eficy 可以减少从基础元素开始搭建页面的工作。最终页面仍可导出为 HTML,让未安装插件的人在浏览器中使用。
45
+
46
+ ## 使用
47
+
48
+ 向助手提供数据和需求,例如:
49
+
50
+ > 用 Eficy 把这份销售数据做成月度报告,展示主要结论、销售额、增长趋势和渠道表现,支持按地区筛选。
51
+
52
+ 生成后点击预览链接,在右侧查看和操作页面。需要调整时继续描述修改要求,例如“增加按月份筛选”或“把渠道占比改成柱状图”。没有实际数据时,可以要求使用并标注演示数据。
53
+
54
+ ## 导出
55
+
56
+ 点击预览右上角的下载图标,选择格式:
57
+
58
+ | 格式 | 用途 | 保存内容 |
59
+ | --- | --- | --- |
60
+ | PDF | 阅读、存档或打印 | 当前页面的分页图片,保留筛选结果;文字不能选中复制 |
61
+ | PNG | 分享完整长图 | 当前页面及筛选结果 |
62
+ | HTML | 在浏览器中继续操作 | 保留交互功能,从页面的初始数据和条件开始运行 |
63
+
64
+ HTML 导出不保存当前临时输入或筛选状态。需要指定默认条件时,请让助手修改页面的初始设置。部分组件、图片和字体需要联网加载。
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: eficy
3
+ name: '@eficy/dsh-plugin'
@@ -0,0 +1,237 @@
1
+ --- react/LICENSE ---
2
+ MIT License
3
+
4
+ Copyright (c) Facebook, Inc. and its affiliates.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+
24
+
25
+ --- react-dom/LICENSE ---
26
+ MIT License
27
+
28
+ Copyright (c) Facebook, Inc. and its affiliates.
29
+
30
+ Permission is hereby granted, free of charge, to any person obtaining a copy
31
+ of this software and associated documentation files (the "Software"), to deal
32
+ in the Software without restriction, including without limitation the rights
33
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
34
+ copies of the Software, and to permit persons to whom the Software is
35
+ furnished to do so, subject to the following conditions:
36
+
37
+ The above copyright notice and this permission notice shall be included in all
38
+ copies or substantial portions of the Software.
39
+
40
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
46
+ SOFTWARE.
47
+
48
+
49
+ --- sucrase/LICENSE ---
50
+ The MIT License (MIT)
51
+
52
+ Copyright (c) 2012-2018 various contributors (see AUTHORS)
53
+
54
+ Permission is hereby granted, free of charge, to any person obtaining a copy
55
+ of this software and associated documentation files (the "Software"), to deal
56
+ in the Software without restriction, including without limitation the rights
57
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
58
+ copies of the Software, and to permit persons to whom the Software is
59
+ furnished to do so, subject to the following conditions:
60
+
61
+ The above copyright notice and this permission notice shall be included in all
62
+ copies or substantial portions of the Software.
63
+
64
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
65
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
66
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
67
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
68
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
69
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
70
+ SOFTWARE.
71
+
72
+
73
+ --- recharts/LICENSE ---
74
+ The MIT License (MIT)
75
+
76
+ Copyright (c) 2015-present recharts
77
+
78
+ Permission is hereby granted, free of charge, to any person obtaining a copy
79
+ of this software and associated documentation files (the "Software"), to deal
80
+ in the Software without restriction, including without limitation the rights
81
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
82
+ copies of the Software, and to permit persons to whom the Software is
83
+ furnished to do so, subject to the following conditions:
84
+
85
+ The above copyright notice and this permission notice shall be included in all
86
+ copies or substantial portions of the Software.
87
+
88
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
89
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
90
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
91
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
92
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
93
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
94
+ SOFTWARE.
95
+
96
+
97
+
98
+ --- html-to-image/LICENSE ---
99
+ MIT License
100
+
101
+ Copyright (c) 2017-2025 W.Y.
102
+
103
+ Permission is hereby granted, free of charge, to any person obtaining a copy
104
+ of this software and associated documentation files (the "Software"), to deal
105
+ in the Software without restriction, including without limitation the rights
106
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
107
+ copies of the Software, and to permit persons to whom the Software is
108
+ furnished to do so, subject to the following conditions:
109
+
110
+ The above copyright notice and this permission notice shall be included in all
111
+ copies or substantial portions of the Software.
112
+
113
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
114
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
115
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
116
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
117
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
118
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
119
+ SOFTWARE.
120
+
121
+
122
+ --- @eficy/browser/dist/standalone.js.LICENSE.txt ---
123
+ /*! *****************************************************************************
124
+ Copyright (C) Microsoft. All rights reserved.
125
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
126
+ this file except in compliance with the License. You may obtain a copy of the
127
+ License at http://www.apache.org/licenses/LICENSE-2.0
128
+
129
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
130
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
131
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
132
+ MERCHANTABLITY OR NON-INFRINGEMENT.
133
+
134
+ See the Apache Version 2.0 License for specific language governing permissions
135
+ and limitations under the License.
136
+ ***************************************************************************** */
137
+
138
+ /*! *****************************************************************************
139
+ Copyright (c) Microsoft Corporation.
140
+
141
+ Permission to use, copy, modify, and/or distribute this software for any
142
+ purpose with or without fee is hereby granted.
143
+
144
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
145
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
146
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
147
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
148
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
149
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
150
+ PERFORMANCE OF THIS SOFTWARE.
151
+ ***************************************************************************** */
152
+
153
+ /**
154
+ * @license React
155
+ * react-jsx-runtime.production.min.js
156
+ *
157
+ * Copyright (c) Facebook, Inc. and its affiliates.
158
+ *
159
+ * This source code is licensed under the MIT license found in the
160
+ * LICENSE file in the root directory of this source tree.
161
+ */
162
+
163
+ /**
164
+ * @license React
165
+ * use-sync-external-store-shim.production.js
166
+ *
167
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
168
+ *
169
+ * This source code is licensed under the MIT license found in the
170
+ * LICENSE file in the root directory of this source tree.
171
+ */
172
+
173
+ --- @eficy/shadcn-ui/dist/index.js.LICENSE.txt ---
174
+ /**
175
+ * @license React
176
+ * react-is.production.min.js
177
+ *
178
+ * Copyright (c) Facebook, Inc. and its affiliates.
179
+ *
180
+ * This source code is licensed under the MIT license found in the
181
+ * LICENSE file in the root directory of this source tree.
182
+ */
183
+
184
+ /**
185
+ * @license lucide-react v0.577.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */
190
+
191
+ --- jspdf ---
192
+ Copyright
193
+ (c) 2010-2025 James Hall, https://github.com/MrRio/jsPDF
194
+ (c) 2015-2025 yWorks GmbH, https://www.yworks.com/
195
+
196
+ Permission is hereby granted, free of charge, to any person obtaining
197
+ a copy of this software and associated documentation files (the
198
+ "Software"), to deal in the Software without restriction, including
199
+ without limitation the rights to use, copy, modify, merge, publish,
200
+ distribute, sublicense, and/or sell copies of the Software, and to
201
+ permit persons to whom the Software is furnished to do so, subject to
202
+ the following conditions:
203
+
204
+ The above copyright notice and this permission notice shall be
205
+ included in all copies or substantial portions of the Software.
206
+
207
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
208
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
209
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
210
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
211
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
212
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
213
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
214
+
215
+
216
+ --- @deepseek-ai/dsh-util-workspace-path ---
217
+ MIT License
218
+
219
+ Copyright (c) 2026 DeepSeek
220
+
221
+ Permission is hereby granted, free of charge, to any person obtaining a copy
222
+ of this software and associated documentation files (the "Software"), to deal
223
+ in the Software without restriction, including without limitation the rights
224
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
225
+ copies of the Software, and to permit persons to whom the Software is
226
+ furnished to do so, subject to the following conditions:
227
+
228
+ The above copyright notice and this permission notice shall be included in all
229
+ copies or substantial portions of the Software.
230
+
231
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
232
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
233
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
234
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
235
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
236
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
237
+ SOFTWARE.