@chengxianglibra/dsh-data-analysis 0.2.1 → 0.2.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.
- package/README.en.md +6 -3
- package/README.md +6 -3
- package/lib/client/credentials/create-datasource.js +1 -1
- package/lib/client/credentials/install.js +1 -1
- package/lib/client/input-context.js +1 -1
- package/lib/client/python-tool/card.js +2 -2
- package/lib/client/python-tool/model.js +1 -1
- package/lib/client/right-tabs/install.js +10 -7
- package/lib/client/settings/install.js +7 -3
- package/lib/client-composition.js +701 -0
- package/lib/client.js +82 -71
- package/lib/compatibility.js +1 -0
- package/lib/datasource/changes-contract.js +6 -2
- package/lib/datasource/defaults.js +26 -4
- package/lib/datasource/python.js +3 -1
- package/lib/datasource/rpc.js +3 -3
- package/lib/environment/runtime.js +2 -0
- package/lib/environment/workspace.js +13 -1
- package/lib/integration.js +5 -0
- package/lib/plugin.js +18 -8
- package/lib/presentation/execution-policy.js +5 -0
- package/lib/presentation/projection/index.js +27 -10
- package/lib/presentation/tool.js +2 -1
- package/lib/settings.js +11 -15
- package/lib/types/client/settings/card.d.ts +2 -2
- package/lib/types/client.d.ts +1 -0
- package/lib/types/compatibility.d.ts +1 -0
- package/lib/types/datasource/defaults.d.ts +2 -1
- package/lib/types/datasource/rpc.d.ts +2 -2
- package/lib/types/disclosure/execution-guidance.d.ts +8 -0
- package/lib/types/environment/errors.d.ts +1 -1
- package/lib/types/environment/runtime.d.ts +2 -0
- package/lib/types/environment/workspace.d.ts +2 -1
- package/lib/types/integration.d.ts +16 -0
- package/lib/types/plugin.d.ts +26 -3
- package/lib/types/presentation/execution-policy.d.ts +5 -0
- package/lib/types/rpc.d.ts +2 -2
- package/lib/types/semantic-reference/rpc.d.ts +2 -2
- package/lib/types/settings.d.ts +8 -8
- package/package.json +89 -70
- package/python/presentation-kit/dist/dsh_data_analysis_presentation_kit-1.1.0-py3-none-any.whl +0 -0
- package/skills/dsh-data-analysis-files/SKILL.md +3 -3
- package/skills/dsh-data-analysis-files/references/delivery.md +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chengxianglibra/dsh-data-analysis",
|
|
3
3
|
"description": "Marivo runtime, live Help, secure datasource execution and presentation delivery for DeepSeek Harness",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/chengxianglibra/dsh-data-analysis.git",
|
|
@@ -31,6 +31,14 @@
|
|
|
31
31
|
"types": "./lib/types/client.d.ts",
|
|
32
32
|
"default": "./lib/client.js"
|
|
33
33
|
},
|
|
34
|
+
"./client-composition": {
|
|
35
|
+
"types": "./lib/types/client.d.ts",
|
|
36
|
+
"default": "./lib/client-composition.js"
|
|
37
|
+
},
|
|
38
|
+
"./integration": {
|
|
39
|
+
"types": "./lib/types/integration.d.ts",
|
|
40
|
+
"default": "./lib/integration.js"
|
|
41
|
+
},
|
|
34
42
|
"./environment": {
|
|
35
43
|
"types": "./lib/types/environment/index.d.ts",
|
|
36
44
|
"default": "./lib/environment/index.js"
|
|
@@ -74,7 +82,7 @@
|
|
|
74
82
|
"schema": "dsh-data-analysis-compatibility/v2",
|
|
75
83
|
"dsh": {
|
|
76
84
|
"distribution": "@deepseek-ai/dsh",
|
|
77
|
-
"peerRange": ">=0.1.
|
|
85
|
+
"peerRange": ">=0.1.7-rc.1"
|
|
78
86
|
},
|
|
79
87
|
"marivo": {
|
|
80
88
|
"version": "0.5.5",
|
|
@@ -82,7 +90,8 @@
|
|
|
82
90
|
},
|
|
83
91
|
"contracts": {
|
|
84
92
|
"runtimeInstallation": "dsh-data-analysis-runtime/v3",
|
|
85
|
-
"subprocessPolicy": "direct-argv-inherited-env-snapshot-overlay-v2"
|
|
93
|
+
"subprocessPolicy": "direct-argv-inherited-env-snapshot-overlay-v2",
|
|
94
|
+
"integration": "dsh-data-analysis-integration/v1"
|
|
86
95
|
}
|
|
87
96
|
},
|
|
88
97
|
"dsh": {
|
|
@@ -101,7 +110,9 @@
|
|
|
101
110
|
"@deepseek-ai/dsh-client-ui-layout",
|
|
102
111
|
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
103
112
|
"@deepseek-ai/dsh-client-ui-settings",
|
|
104
|
-
"@deepseek-ai/dsh-client-ui-settings-plugins"
|
|
113
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins",
|
|
114
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager",
|
|
115
|
+
"@deepseek-ai/dsh-client-ui-workspace"
|
|
105
116
|
],
|
|
106
117
|
"platform": "web"
|
|
107
118
|
},
|
|
@@ -112,37 +123,42 @@
|
|
|
112
123
|
"dependencies": {
|
|
113
124
|
"@aws-sdk/client-s3": "^3.1129.0",
|
|
114
125
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
126
|
+
"@noble/hashes": "2.4.0",
|
|
115
127
|
"zod": "^4.4.3"
|
|
116
128
|
},
|
|
117
129
|
"devDependencies": {
|
|
118
|
-
"@deepseek-ai/dsh-
|
|
119
|
-
"@deepseek-ai/dsh-
|
|
120
|
-
"@deepseek-ai/dsh-
|
|
121
|
-
"@deepseek-ai/dsh-
|
|
122
|
-
"@deepseek-ai/dsh-
|
|
123
|
-
"@deepseek-ai/dsh-client-
|
|
124
|
-
"@deepseek-ai/dsh-client-ui-
|
|
125
|
-
"@deepseek-ai/dsh-client-ui-
|
|
126
|
-
"@deepseek-ai/dsh-
|
|
127
|
-
"@deepseek-ai/dsh-
|
|
128
|
-
"@deepseek-ai/dsh-
|
|
129
|
-
"@deepseek-ai/dsh-
|
|
130
|
-
"@deepseek-ai/dsh-
|
|
131
|
-
"@deepseek-ai/dsh-
|
|
132
|
-
"@deepseek-ai/dsh-
|
|
133
|
-
"@deepseek-ai/dsh-
|
|
134
|
-
"@deepseek-ai/dsh-
|
|
135
|
-
"@deepseek-ai/dsh-
|
|
136
|
-
"@deepseek-ai/dsh-
|
|
137
|
-
"@deepseek-ai/dsh-
|
|
138
|
-
"@deepseek-ai/dsh-
|
|
139
|
-
"@deepseek-ai/dsh-
|
|
140
|
-
"@deepseek-ai/dsh-
|
|
141
|
-
"@deepseek-ai/dsh-
|
|
142
|
-
"@deepseek-ai/dsh-
|
|
143
|
-
"@deepseek-ai/dsh-
|
|
144
|
-
"@deepseek-ai/dsh-
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
130
|
+
"@deepseek-ai/dsh-app-boot": "0.1.7-rc.1",
|
|
131
|
+
"@deepseek-ai/dsh-config-editor": "0.1.7-rc.1",
|
|
132
|
+
"@deepseek-ai/dsh-agent-loop": "0.1.7-rc.1",
|
|
133
|
+
"@deepseek-ai/dsh-anonymous-user-id": "0.1.7-rc.1",
|
|
134
|
+
"@deepseek-ai/dsh-bash-local": "0.1.7-rc.1",
|
|
135
|
+
"@deepseek-ai/dsh-client-store": "0.1.7-rc.1",
|
|
136
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.1",
|
|
137
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.1.7-rc.1",
|
|
138
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.1.7-rc.1",
|
|
139
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.1",
|
|
140
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.1.7-rc.1",
|
|
141
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.1",
|
|
142
|
+
"@deepseek-ai/dsh-credentials-local": "0.1.7-rc.1",
|
|
143
|
+
"@deepseek-ai/dsh-fs-local": "0.1.7-rc.1",
|
|
144
|
+
"@deepseek-ai/dsh-sandbox-local": "0.1.7-rc.1",
|
|
145
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.1",
|
|
146
|
+
"@deepseek-ai/dsh-fs-observation-policy": "0.1.7-rc.1",
|
|
147
|
+
"@deepseek-ai/dsh-launch-environment": "0.1.7-rc.1",
|
|
148
|
+
"@deepseek-ai/dsh-llm-deepseek": "0.1.7-rc.1",
|
|
149
|
+
"@deepseek-ai/dsh-scope": "0.1.7-rc.1",
|
|
150
|
+
"@deepseek-ai/dsh-session-persistence": "0.1.7-rc.1",
|
|
151
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.1.7-rc.1",
|
|
152
|
+
"@deepseek-ai/dsh-session-projection": "0.1.7-rc.1",
|
|
153
|
+
"@deepseek-ai/dsh-skill": "0.1.7-rc.1",
|
|
154
|
+
"@deepseek-ai/dsh-storage": "0.1.7-rc.1",
|
|
155
|
+
"@deepseek-ai/dsh-storage-json": "0.1.7-rc.1",
|
|
156
|
+
"@deepseek-ai/dsh-subprocess-local": "0.1.7-rc.1",
|
|
157
|
+
"@deepseek-ai/dsh-tool-bash": "0.1.7-rc.1",
|
|
158
|
+
"@deepseek-ai/dsh-tool-fs": "0.1.7-rc.1",
|
|
159
|
+
"@deepseek-ai/dsh-tool-present": "0.1.7-rc.1",
|
|
160
|
+
"@deepseek-ai/dsh-tool-skill": "0.1.7-rc.1",
|
|
161
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.1.7-rc.1",
|
|
146
162
|
"@shikijs/core": "4.4.3",
|
|
147
163
|
"@shikijs/engine-javascript": "4.4.3",
|
|
148
164
|
"@shikijs/langs": "4.4.3",
|
|
@@ -159,47 +175,50 @@
|
|
|
159
175
|
"sql-formatter": "15.8.2",
|
|
160
176
|
"typescript": "^6.0.3",
|
|
161
177
|
"zustand": "4.4.7",
|
|
162
|
-
"@deepseek-ai/dsh-settings": "0.1.
|
|
163
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.
|
|
164
|
-
"@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.
|
|
165
|
-
"@deepseek-ai/dsh-
|
|
178
|
+
"@deepseek-ai/dsh-settings": "0.1.7-rc.1",
|
|
179
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.1",
|
|
180
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.7-rc.1",
|
|
181
|
+
"@deepseek-ai/dsh-ptc-runtime-node": "0.1.7-rc.1",
|
|
182
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.1.7-rc.1"
|
|
166
183
|
},
|
|
167
184
|
"peerDependencies": {
|
|
168
185
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
169
|
-
"@deepseek-ai/dsh-agent": ">=0.1.
|
|
170
|
-
"@deepseek-ai/dsh-api-gateway": ">=0.1.
|
|
171
|
-
"@deepseek-ai/dsh-api-session-controller": ">=0.1.
|
|
172
|
-
"@deepseek-ai/dsh-api-workspace-controller": ">=0.1.
|
|
173
|
-
"@deepseek-ai/dsh-atomic-write": ">=0.1.
|
|
174
|
-
"@deepseek-ai/dsh-client-connection": ">=0.1.
|
|
175
|
-
"@deepseek-ai/dsh-client-locale": ">=0.1.
|
|
176
|
-
"@deepseek-ai/dsh-client-ui-chat": ">=0.1.
|
|
177
|
-
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.
|
|
178
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": ">=0.1.
|
|
179
|
-
"@deepseek-ai/dsh-client-ui-layout": ">=0.1.
|
|
180
|
-
"@deepseek-ai/dsh-client-ui-primitives": ">=0.1.
|
|
181
|
-
"@deepseek-ai/dsh-client-ui-
|
|
182
|
-
"@deepseek-ai/dsh-client-ui-
|
|
183
|
-
"@deepseek-ai/dsh-client-ui-
|
|
184
|
-
"@deepseek-ai/dsh-
|
|
185
|
-
"@deepseek-ai/dsh-
|
|
186
|
-
"@deepseek-ai/dsh-
|
|
187
|
-
"@deepseek-ai/dsh-
|
|
188
|
-
"@deepseek-ai/dsh-
|
|
189
|
-
"@deepseek-ai/dsh-
|
|
190
|
-
"@deepseek-ai/dsh-
|
|
191
|
-
"@deepseek-ai/dsh-
|
|
192
|
-
"@deepseek-ai/dsh-
|
|
193
|
-
"@deepseek-ai/dsh-
|
|
194
|
-
"@deepseek-ai/dsh-
|
|
195
|
-
"@deepseek-ai/dsh-
|
|
196
|
-
"@deepseek-ai/dsh-
|
|
197
|
-
"@deepseek-ai/dsh-
|
|
198
|
-
"@deepseek-ai/dsh-
|
|
199
|
-
"@deepseek-ai/dsh-
|
|
186
|
+
"@deepseek-ai/dsh-agent": ">=0.1.7-rc.1",
|
|
187
|
+
"@deepseek-ai/dsh-api-gateway": ">=0.1.7-rc.1",
|
|
188
|
+
"@deepseek-ai/dsh-api-session-controller": ">=0.1.7-rc.1",
|
|
189
|
+
"@deepseek-ai/dsh-api-workspace-controller": ">=0.1.7-rc.1",
|
|
190
|
+
"@deepseek-ai/dsh-atomic-write": ">=0.1.7-rc.1",
|
|
191
|
+
"@deepseek-ai/dsh-client-connection": ">=0.1.7-rc.1",
|
|
192
|
+
"@deepseek-ai/dsh-client-locale": ">=0.1.7-rc.1",
|
|
193
|
+
"@deepseek-ai/dsh-client-ui-chat": ">=0.1.7-rc.1",
|
|
194
|
+
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.7-rc.1",
|
|
195
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": ">=0.1.7-rc.1",
|
|
196
|
+
"@deepseek-ai/dsh-client-ui-layout": ">=0.1.7-rc.1",
|
|
197
|
+
"@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-rc.1",
|
|
198
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": ">=0.1.7-rc.1",
|
|
199
|
+
"@deepseek-ai/dsh-client-ui-workspace": ">=0.1.7-rc.1",
|
|
200
|
+
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.1.7-rc.1",
|
|
201
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": ">=0.1.7-rc.1",
|
|
202
|
+
"@deepseek-ai/dsh-client-ui-tool": ">=0.1.7-rc.1",
|
|
203
|
+
"@deepseek-ai/dsh-credentials": ">=0.1.7-rc.1",
|
|
204
|
+
"@deepseek-ai/dsh-home-paths": ">=0.1.7-rc.1",
|
|
205
|
+
"@deepseek-ai/dsh-llm": ">=0.1.7-rc.1",
|
|
206
|
+
"@deepseek-ai/dsh-sandbox": ">=0.1.7-rc.1",
|
|
207
|
+
"@deepseek-ai/dsh-scope": ">=0.1.7-rc.1",
|
|
208
|
+
"@deepseek-ai/dsh-session": ">=0.1.7-rc.1",
|
|
209
|
+
"@deepseek-ai/dsh-shell": ">=0.1.7-rc.1",
|
|
210
|
+
"@deepseek-ai/dsh-shell-env": ">=0.1.7-rc.1",
|
|
211
|
+
"@deepseek-ai/dsh-skill-filesystem": ">=0.1.7-rc.1",
|
|
212
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.1.7-rc.1",
|
|
213
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.1.7-rc.1",
|
|
214
|
+
"@deepseek-ai/dsh-tools": ">=0.1.7-rc.1",
|
|
215
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.1.7-rc.1",
|
|
216
|
+
"@deepseek-ai/dsh-typert-registry": ">=0.1.7-rc.1",
|
|
217
|
+
"@deepseek-ai/dsh-util-values": ">=0.1.7-rc.1",
|
|
218
|
+
"@deepseek-ai/dsh-workspace": ">=0.1.7-rc.1",
|
|
200
219
|
"react": "^18.3.1",
|
|
201
|
-
"@deepseek-ai/dsh-settings": ">=0.1.
|
|
202
|
-
"@deepseek-ai/dsh-client-ui-settings": ">=0.1.
|
|
203
|
-
"@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.
|
|
220
|
+
"@deepseek-ai/dsh-settings": ">=0.1.7-rc.1",
|
|
221
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.1.7-rc.1",
|
|
222
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.7-rc.1"
|
|
204
223
|
}
|
|
205
224
|
}
|
package/python/presentation-kit/dist/dsh_data_analysis_presentation_kit-1.1.0-py3-none-any.whl
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dsh-data-analysis-files
|
|
3
|
-
description: 分析附件或 Workspace 中的 CSV、JSON、Parquet、Excel 数据,回答问题或交付 CSV、JSON、PNG
|
|
3
|
+
description: 分析附件或 Workspace 中的 CSV、JSON、Parquet、Excel 数据,回答问题或交付 CSV、TSV、XLSX、JSON、PNG 文件并使用原生表格预览。可接续报告展示,无需先建立 Marivo datasource 或语义模型。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# 文件分析
|
|
@@ -37,8 +37,8 @@ description: 分析附件或 Workspace 中的 CSV、JSON、Parquet、Excel 数
|
|
|
37
37
|
|
|
38
38
|
## 按用户目标交付
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
普通答案和简短比较表格直接在聊天中回答,不额外创建文件。用户要查看或交付已有的 CSV、TSV、XLSX 表格文件时,确认当前 Session 可访问该文件后,按[文件交付](references/delivery.md)调用实际可用的 Harness 原生 `present`;交付卡片由 Harness 在右侧打开只读表格预览。用户要求生成 CSV、TSV、JSON、PNG 等实际文件时,通过 `marivo_python` 生成最终文件,优先写入当前绑定 Workspace;确认执行成功、文件存在后再调用 `present`。文件生成和原生声明分别核对,路径或代码块不能替代交付。不承诺插件能写入 XLSX,也不把 Harness 对旧 `.xls` 的预览当作插件可分析 `.xls`。
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
需要在报告中筛选或联动分析结果的图表、表格、报告或看板时加载 `dsh-data-analysis-presentation`,将 DataFrame 交给现有 writer,关联实际返回的 `codeRef`,用 `marivo_present` 保存固定 Build。在正文说明文件名与分析范围,不将文件结果冒充 Marivo Artifact 或 Evidence。普通 `present` 不赋予文件 Report/Build 或 Evidence 身份。
|
|
43
43
|
|
|
44
44
|
需要起步代码时读[简短示例](references/examples.md);其中提供无需额外依赖的 PNG 写入代码,也通过 `marivo_python` 执行。
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# 文件交付与恢复
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
用户要求查看或交付 CSV、TSV、XLSX、JSON、PNG 等实际文件时读取本页。生成或确认文件后,按当前 Harness 原生 `present` 工具契约交付;不猜测附件缓存或 Shell 私有临时目录。工具拥有路径与类型校验,契约见 Harness `dsh-v0.1.7-rc.1/packages/deliverables/tool-present/README.zh.md`。
|
|
4
4
|
|
|
5
5
|
## 生成与声明
|
|
6
6
|
|
|
7
7
|
只交付用户要求的最终文件。报告内部的 `presentation.json`、computed 数据和 receipt 不作为默认附件;用户另行要求时,先确认实际文件已经存在且当前 Session 可访问。浏览器内生成的下载不伪装成 Session 文件;报告 HTML 交给展示 Skill 的导出或发布流程。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
文件生成成功,或用户要求预览且已有文件确认可访问后,调用 `present`,分别核对生成与声明结果。CSV、TSV、XLSX 由 Harness 原生表格预览读取文件,契约见 `dsh-v0.1.7-rc.1/packages/client/ui-sidebar-documentpreview/README.zh.md`;这是只读文件视图,不是 Marivo Report/Build,也不代表插件支持写入 XLSX 或分析旧 `.xls`。当前缺少 `present` 时,说明文件实际状态和原生交付能力不可用,并提供准确路径;不虚构卡片,不安装工具或改写 profile。
|
|
10
10
|
|
|
11
11
|
## 失败与再次交付
|
|
12
12
|
|