@weibaohui/experts-management 0.4.0 → 0.4.2
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/client/bundle.js +4 -3
- package/client/index.js +2 -2
- package/package.json +1 -1
package/client/bundle.js
CHANGED
|
@@ -40,7 +40,8 @@ window.__ModuleLoader__.load({
|
|
|
40
40
|
var doFetch = options.fetch || (typeof fetch !== 'undefined' ? fetch : null)
|
|
41
41
|
var inputStyle = { width: '100%', minHeight: 190, resize: 'vertical', fontFamily: 'var(--dsw-font-family)', lineHeight: 1.6, fontSize: 12, background: 'var(--dsw-alias-bg-layer-2,transparent)', color: 'inherit', border: '1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.3))', borderRadius: '8px', padding: '10px', boxSizing: 'border-box' }
|
|
42
42
|
var btnStyle = { background: 'transparent', color: 'inherit', border: '1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.3))', borderRadius: '8px', padding: '5px 12px', fontSize: 13, cursor: 'pointer', font: 'inherit' }
|
|
43
|
-
|
|
43
|
+
// 主按钮亮暗跟随:与 skills-management .sk-btn-primary 同款 token 组合
|
|
44
|
+
var primaryStyle = Object.assign({}, btnStyle, { background: 'var(--dsw-alias-state-business-primary,var(--dsw-alias-brand-primary,#4a7dff))', borderColor: 'transparent', color: 'var(--dsw-alias-label-primary-inverted,#fff)' })
|
|
44
45
|
|
|
45
46
|
return function ActionShareDialog(props) {
|
|
46
47
|
var title = props.title
|
|
@@ -825,7 +826,7 @@ window.__ModuleLoader__.load({
|
|
|
825
826
|
'- 全程与最终汇报都使用中文。',
|
|
826
827
|
].join('\n')
|
|
827
828
|
|
|
828
|
-
function DetailModal({ name, source, t, onClose, onInstalled, onDeleted, onToast }) {
|
|
829
|
+
function DetailModal({ name, source, t, onClose, onInstalled, onDeleted, onToast, onOpenSession }) {
|
|
829
830
|
const [detail, setDetail] = useState(null)
|
|
830
831
|
const [error, setError] = useState('')
|
|
831
832
|
const [busy, setBusy] = useState(false)
|
|
@@ -1043,7 +1044,7 @@ window.__ModuleLoader__.load({
|
|
|
1043
1044
|
labels: { copy: t('copyPrompt'), copied: t('copied'), run: t('runBtn'), running: t('running'), done: t('runDone'), failed: t('runFailed'), outputLabel: t('outputLabel'), openSession: t('openChat') },
|
|
1044
1045
|
run: (prompt) => fetchJson(`${API}/share/run`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ prompt, dir: detail.dir }) }),
|
|
1045
1046
|
poll: (id) => fetchJson(`${API}/share/run?id=${encodeURIComponent(id)}`),
|
|
1046
|
-
onOpenSession: (sessionId) => { if (onOpenSession) onOpenSession(sessionId) },
|
|
1047
|
+
onOpenSession: (sessionId) => { setShareOpen(false); if (onOpenSession) onOpenSession(sessionId) },
|
|
1047
1048
|
onClose: () => setShareOpen(false),
|
|
1048
1049
|
}) : null))
|
|
1049
1050
|
}
|
package/client/index.js
CHANGED
|
@@ -708,7 +708,7 @@ const EXPERT_SHARE_PROMPT = [
|
|
|
708
708
|
'- 全程与最终汇报都使用中文。',
|
|
709
709
|
].join('\n')
|
|
710
710
|
|
|
711
|
-
function DetailModal({ name, source, t, onClose, onInstalled, onDeleted, onToast }) {
|
|
711
|
+
function DetailModal({ name, source, t, onClose, onInstalled, onDeleted, onToast, onOpenSession }) {
|
|
712
712
|
const [detail, setDetail] = useState(null)
|
|
713
713
|
const [error, setError] = useState('')
|
|
714
714
|
const [busy, setBusy] = useState(false)
|
|
@@ -926,7 +926,7 @@ function DetailModal({ name, source, t, onClose, onInstalled, onDeleted, onToast
|
|
|
926
926
|
labels: { copy: t('copyPrompt'), copied: t('copied'), run: t('runBtn'), running: t('running'), done: t('runDone'), failed: t('runFailed'), outputLabel: t('outputLabel'), openSession: t('openChat') },
|
|
927
927
|
run: (prompt) => fetchJson(`${API}/share/run`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ prompt, dir: detail.dir }) }),
|
|
928
928
|
poll: (id) => fetchJson(`${API}/share/run?id=${encodeURIComponent(id)}`),
|
|
929
|
-
onOpenSession: (sessionId) => { if (onOpenSession) onOpenSession(sessionId) },
|
|
929
|
+
onOpenSession: (sessionId) => { setShareOpen(false); if (onOpenSession) onOpenSession(sessionId) },
|
|
930
930
|
onClose: () => setShareOpen(false),
|
|
931
931
|
}) : null))
|
|
932
932
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weibaohui/experts-management",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "dsh 插件 · 专家管理:管理 ntd 格式的专家与专家团队(plugin.json + Agent MD + 技能集),浏览/安装 50+ 内置专家市场;每个专家注册为「仅用户可调用」的技能,在对话输入框用 /expert-名称 即可以该专家的身份执行任务(宿主确定性注入角色定义与技能清单,不占用模型目录 token)。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|