@weibaohui/experts-management 0.4.0 → 0.4.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/client/bundle.js +2 -2
- package/client/index.js +2 -2
- package/package.json +1 -1
package/client/bundle.js
CHANGED
|
@@ -825,7 +825,7 @@ window.__ModuleLoader__.load({
|
|
|
825
825
|
'- 全程与最终汇报都使用中文。',
|
|
826
826
|
].join('\n')
|
|
827
827
|
|
|
828
|
-
function DetailModal({ name, source, t, onClose, onInstalled, onDeleted, onToast }) {
|
|
828
|
+
function DetailModal({ name, source, t, onClose, onInstalled, onDeleted, onToast, onOpenSession }) {
|
|
829
829
|
const [detail, setDetail] = useState(null)
|
|
830
830
|
const [error, setError] = useState('')
|
|
831
831
|
const [busy, setBusy] = useState(false)
|
|
@@ -1043,7 +1043,7 @@ window.__ModuleLoader__.load({
|
|
|
1043
1043
|
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
1044
|
run: (prompt) => fetchJson(`${API}/share/run`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ prompt, dir: detail.dir }) }),
|
|
1045
1045
|
poll: (id) => fetchJson(`${API}/share/run?id=${encodeURIComponent(id)}`),
|
|
1046
|
-
onOpenSession: (sessionId) => { if (onOpenSession) onOpenSession(sessionId) },
|
|
1046
|
+
onOpenSession: (sessionId) => { setShareOpen(false); if (onOpenSession) onOpenSession(sessionId) },
|
|
1047
1047
|
onClose: () => setShareOpen(false),
|
|
1048
1048
|
}) : null))
|
|
1049
1049
|
}
|
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.1",
|
|
4
4
|
"description": "dsh 插件 · 专家管理:管理 ntd 格式的专家与专家团队(plugin.json + Agent MD + 技能集),浏览/安装 50+ 内置专家市场;每个专家注册为「仅用户可调用」的技能,在对话输入框用 /expert-名称 即可以该专家的身份执行任务(宿主确定性注入角色定义与技能清单,不占用模型目录 token)。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|