dsh-plugin-agent-memory 0.2.1 → 0.2.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.js +21 -1
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -142,7 +142,7 @@ window.__ModuleLoader__.load({
|
|
|
142
142
|
const [configured, setConfigured] = React.useState(true);
|
|
143
143
|
const [health, setHealth] = React.useState({ state: 'idle', text: '连接未检测' });
|
|
144
144
|
const [form, setForm] = React.useState({ hubUrl: '', instanceId: '', kernelUrl: '', userKey: '' });
|
|
145
|
-
const [flags, setFlags] = React.useState({ injectMemory: true, writeMemory: false });
|
|
145
|
+
const [flags, setFlags] = React.useState({ injectMemory: true, writeMemory: false, skillLearning: false });
|
|
146
146
|
const [refreshMs, setRefreshMs] = React.useState(10000);
|
|
147
147
|
const [saving, setSaving] = React.useState(false);
|
|
148
148
|
|
|
@@ -169,6 +169,7 @@ window.__ModuleLoader__.load({
|
|
|
169
169
|
setFlags({
|
|
170
170
|
injectMemory: current.injectMemory !== false,
|
|
171
171
|
writeMemory: current.writeMemory === true,
|
|
172
|
+
skillLearning: current.skillLearning === true,
|
|
172
173
|
});
|
|
173
174
|
}
|
|
174
175
|
})
|
|
@@ -209,6 +210,7 @@ window.__ModuleLoader__.load({
|
|
|
209
210
|
kernelUrl: form.kernelUrl,
|
|
210
211
|
userKey: form.userKey,
|
|
211
212
|
injectMemory: flags.injectMemory,
|
|
213
|
+
skillLearning: flags.skillLearning,
|
|
212
214
|
refreshMs,
|
|
213
215
|
writeMemory: flags.writeMemory,
|
|
214
216
|
}),
|
|
@@ -455,6 +457,24 @@ window.__ModuleLoader__.load({
|
|
|
455
457
|
}),
|
|
456
458
|
h('span', { style: { fontSize: '12px' } }, '对话结束后写回记忆库'),
|
|
457
459
|
),
|
|
460
|
+
h(
|
|
461
|
+
'label',
|
|
462
|
+
{
|
|
463
|
+
style: { ...fieldStyle, display: 'flex', alignItems: 'flex-start', gap: '6px' },
|
|
464
|
+
title: '每轮结束后把该轮对话(含工具调用与结果)写入内核,agent-memory 归档后抽取技能;内核按阈值归档,短回合不会立刻产出技能',
|
|
465
|
+
},
|
|
466
|
+
h('input', {
|
|
467
|
+
type: 'checkbox',
|
|
468
|
+
style: { marginTop: '3px' },
|
|
469
|
+
checked: flags.skillLearning,
|
|
470
|
+
onChange: (event) => setFlags({ ...flags, skillLearning: event.target.checked }),
|
|
471
|
+
}),
|
|
472
|
+
h(
|
|
473
|
+
'span',
|
|
474
|
+
{ style: { fontSize: '12px' } },
|
|
475
|
+
'把对话写回内核,用于技能自学习',
|
|
476
|
+
),
|
|
477
|
+
),
|
|
458
478
|
h(
|
|
459
479
|
'label',
|
|
460
480
|
{ style: fieldStyle },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-agent-memory",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tencent agent-memory integration for DeepSeek Harness: pick a team agent as an expert, recall its memories each turn, use its wiki / code-graph / skill assets as tools, and feed finished turns back for skill learning.",
|
|
6
6
|
"license": "MIT",
|