@sparkelf/dsh-artifact-app 0.1.0 → 0.1.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/lib/client.js +1165 -355
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +21 -3
- package/lib/index.js +159 -16
- package/package.json +5 -5
- package/skills/artifact-app-authoring/SKILL.md +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkelf/dsh-artifact-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "DataOps cockpit artifacts in the DSH right sidebar: templates, render host, SSE open bridge and model tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@deepseek-ai/cordis": "4.0.4",
|
|
70
|
-
"@deepseek-ai/dsh-client-locale": "0.1
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1
|
|
70
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.2",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
|
|
73
73
|
"@deepseek-ai/dsh-credentials": "0.1.7-rc.2",
|
|
74
74
|
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2",
|
|
75
75
|
"@deepseek-ai/dsh-skill": "0.1.7-rc.2",
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
"react-dom": "^18.2.0",
|
|
83
83
|
"tsdown": "^0.22.2"
|
|
84
84
|
}
|
|
85
|
-
}
|
|
85
|
+
}
|
|
@@ -37,6 +37,14 @@ metadata:
|
|
|
37
37
|
8. **格式化用 `artifactApp.format.number/percent/currency/date`**;配置从 `artifactApp.config` 读;启动时调 `artifactApp.ready()`。
|
|
38
38
|
9. **发布必须用户明确确认。** 先让用户看到预览,问「确认发布吗?」;只有用户明确说「发布 / 确认」后才调用 `cockpit_publish`。
|
|
39
39
|
|
|
40
|
+
## 二·补、组件参考库(component_search / component_read)
|
|
41
|
+
|
|
42
|
+
- **先判断模板能否覆盖。** 如果模板里已经把这个图表、地图或交互控件实现得很好,直接在模板实现上改数据/文案/样式,**没有必要**再查组件库。
|
|
43
|
+
- 只有当「模板中没有该组件、或模板里的实现达不到需求,且你自己不确定怎么写」时,才调用 `component_search`(按 tags/能力/关键词)检索,再用 `component_read` 读参考实现。
|
|
44
|
+
- 还没选模板时不要查组件库——先 `artifact_template_list` 看模板库。
|
|
45
|
+
- 组件是**参考代码**,不是可实例化模板:不要把组件 id 当 `template_id` 传给 `cockpit_publish` / `cockpit_preview`。
|
|
46
|
+
- 改造模板已有组件时,优先在模板实现上改,不要整段替换。
|
|
47
|
+
|
|
40
48
|
## 三、禁止
|
|
41
49
|
|
|
42
50
|
- 直接 `fetch('/api/...')`、手写 `Authorization`、读取或打印 token。
|