@space3-npm/cybersoul-client 1.4.2 → 1.4.3
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/dist/client.js +9 -6
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -291,7 +291,8 @@ ${scenarioContext}
|
|
|
291
291
|
${isProactive
|
|
292
292
|
? "5. REAL-TIME PACING: You are initiating the conversation because the user hasn't replied recently. Transition naturally from your last message or start a new topic seamlessly. Ensure everything happens in a single real-time moment."
|
|
293
293
|
: "5. REAL-TIME PACING: Write ONLY your immediate, split-second reaction to the user's exact last message. Do NOT narrate actions over a span of time (e.g., waiting, hearing steps, then walking to the door). Ensure everything happens in a single real-time moment."}
|
|
294
|
-
6. STRANGER BOUNDARY: Keep a polite, natural distance with strangers. If Familiarity is low or Stage is STRANGER, do not act overly warm, eager, or affectionate. Real humans are guarded with people they just met
|
|
294
|
+
6. STRANGER BOUNDARY: Keep a polite, natural distance with strangers. If Familiarity is low or Stage is STRANGER, do not act overly warm, eager, or affectionate. Real humans are guarded with people they just met.
|
|
295
|
+
7. LANGUAGE MATCHING: You MUST generate your responses and actions in the EXACT SAME LANGUAGE as the user's chat.`;
|
|
295
296
|
}
|
|
296
297
|
normalizeOngoingSceneState(raw, fallbackOutfit) {
|
|
297
298
|
if (raw === null || raw === undefined)
|
|
@@ -1143,10 +1144,11 @@ Your task is to merge the 'Current Core Memory' and 'Current User Codex' with 'N
|
|
|
1143
1144
|
5. **Limit:** Maximum 10 items per array.
|
|
1144
1145
|
|
|
1145
1146
|
**Rules for UserCodex:**
|
|
1146
|
-
1. **
|
|
1147
|
-
2. **
|
|
1148
|
-
3. **
|
|
1149
|
-
4. **
|
|
1147
|
+
1. **CRITICAL ROLE ISOLATION:** The User Codex is exclusively for recording facts about the HUMAN USER. You MUST NOT extract or insert the character's own traits, boundaries, preferences, or dialogue style into the userCodex. If the summary mentions "Character likes X" or "Character's boundary is Y", IGNORE IT completely for the userCodex.
|
|
1148
|
+
2. **Deduplicate & Consolidate:** Remove duplicate hobbies, traits, boundaries, and preferences. Combine related points into concise descriptors.
|
|
1149
|
+
3. **Update Facts:** If the new events contain updated basic info (like new realName, different occupation), update it. Otherwise keep the existing info.
|
|
1150
|
+
4. **Keep it Clean:** Maximum 15 items per array.
|
|
1151
|
+
5. **CRITICAL Anti-Destruction Rule:** NEVER use placeholder values like 'string'. If a fact is not mentioned and is absent from Current User Codex, OMIT the key entirely. If a fact ALREADY EXISTS in the Current User Codex, you MUST retain it in your output. DO NOT reset existing arrays or strings to empty.
|
|
1150
1152
|
|
|
1151
1153
|
**Output Format**: MUST be valid JSON matching this schema:
|
|
1152
1154
|
{
|
|
@@ -1179,7 +1181,8 @@ Your task is to merge the 'Current Core Memory' and 'Current User Codex' with 'N
|
|
|
1179
1181
|
}
|
|
1180
1182
|
}
|
|
1181
1183
|
}
|
|
1182
|
-
DO NOT RETURN ANY MARKDOWN WRAPPERS OR OTHER TEXT. ONLY RAW JSON
|
|
1184
|
+
DO NOT RETURN ANY MARKDOWN WRAPPERS OR OTHER TEXT. ONLY RAW JSON.
|
|
1185
|
+
CRITICAL: You MUST write the JSON content values using the EXACT SAME LANGUAGE as the input "New Events & Information", "Current Core Memory", and "Current User Codex" (e.g., if the input is in Chinese, you MUST write the output values in Chinese).`;
|
|
1183
1186
|
const currentTime = state.current_time
|
|
1184
1187
|
? new Date(state.current_time).toLocaleString("zh-CN", {
|
|
1185
1188
|
timeZone: "Asia/Shanghai",
|