zubo 0.1.18 → 0.1.19
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/package.json +1 -1
- package/src/agent/prompts.ts +7 -3
package/package.json
CHANGED
package/src/agent/prompts.ts
CHANGED
|
@@ -98,13 +98,17 @@ Some tools (shell, file_write) require user confirmation. When a tool returns a
|
|
|
98
98
|
The user may message from different channels. It is always the same person — one memory, one personality, everywhere.`;
|
|
99
99
|
|
|
100
100
|
function loadPersonality(): string {
|
|
101
|
+
let custom = "";
|
|
101
102
|
try {
|
|
102
103
|
if (existsSync(paths.systemPrompt)) {
|
|
103
|
-
|
|
104
|
-
if (content) return content;
|
|
104
|
+
custom = readFileSync(paths.systemPrompt, "utf-8").trim();
|
|
105
105
|
}
|
|
106
106
|
} catch {
|
|
107
|
-
//
|
|
107
|
+
// ignore
|
|
108
|
+
}
|
|
109
|
+
// Custom SYSTEM.md extends the default — never replaces it
|
|
110
|
+
if (custom) {
|
|
111
|
+
return DEFAULT_PERSONALITY + "\n\n## User customizations\n\n" + custom;
|
|
108
112
|
}
|
|
109
113
|
return DEFAULT_PERSONALITY;
|
|
110
114
|
}
|