dsh-galatea 0.3.2 → 0.3.5
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/beat-tool.js +6 -6
- package/package.json +6 -1
package/lib/beat-tool.js
CHANGED
|
@@ -70,8 +70,8 @@ export function makeBeatTool(deps) {
|
|
|
70
70
|
const entries = deps.listEntries();
|
|
71
71
|
const state = deps.loadState();
|
|
72
72
|
|
|
73
|
-
const liveCfg = typeof deps.config === 'function' ? deps.config() : (deps.config ?? {});
|
|
74
|
-
|
|
73
|
+
const liveCfg = typeof deps.config === 'function' ? deps.config() : (deps.config ?? {});
|
|
74
|
+
|
|
75
75
|
const r = planBeat({
|
|
76
76
|
now: new Date(),
|
|
77
77
|
state,
|
|
@@ -85,9 +85,9 @@ export function makeBeatTool(deps) {
|
|
|
85
85
|
const material = entries.find((e) => e.id === r.materialId) ?? null;
|
|
86
86
|
const picked = material ?? pickMaterial(entries, state.lastSpokeAt ?? null).entry;
|
|
87
87
|
|
|
88
|
-
// 给人看的那几行:把它自己最近的决定翻成人话。
|
|
89
|
-
const journal = renderJournal(state, { quietRounds: liveCfg.quietRounds });
|
|
90
|
-
|
|
88
|
+
// 给人看的那几行:把它自己最近的决定翻成人话。
|
|
89
|
+
const journal = renderJournal(state, { quietRounds: liveCfg.quietRounds });
|
|
90
|
+
|
|
91
91
|
const lines = [];
|
|
92
92
|
lines.push(r.speak ? '现在会说话。' : '现在不会说话。');
|
|
93
93
|
lines.push(`理由:${r.reason} —— ${r.detail}`);
|
|
@@ -106,7 +106,7 @@ export function makeBeatTool(deps) {
|
|
|
106
106
|
prompt: r.prompt ?? '',
|
|
107
107
|
switched: r.switched === true,
|
|
108
108
|
previous: r.previous ?? '',
|
|
109
|
-
text: lines.join('\n'),
|
|
109
|
+
text: lines.join('\n'),
|
|
110
110
|
journal,
|
|
111
111
|
};
|
|
112
112
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-galatea",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Galatea — memory, heartbeat and continuity for DeepSeek Harness agents.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/Vounea/Galatea.git",
|
|
8
|
+
"directory": "."
|
|
9
|
+
},
|
|
5
10
|
"type": "module",
|
|
6
11
|
"main": "index.js",
|
|
7
12
|
"license": "MIT",
|