@space3-npm/cybersoul-client 1.1.7 → 1.1.8
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 +5 -4
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -156,8 +156,9 @@ ${scenarioContext}
|
|
|
156
156
|
"style": "e.g., photorealistic (ENGLISH ONLY)"
|
|
157
157
|
}`;
|
|
158
158
|
}
|
|
159
|
-
getEventSchemaParams() {
|
|
160
|
-
|
|
159
|
+
getEventSchemaParams(userName) {
|
|
160
|
+
const name = userName || "the user";
|
|
161
|
+
return `"eventTitle": "CRITICAL: Must include BOTH ‘WHAT to do’ AND ‘WITH WHOM’ (use their specific name if known, e.g., 'Having coffee with ${name}'). If you don't explicitly include WITH WHOM the event is by name, it is a hard failure.",
|
|
161
162
|
"eventDescription": "e.g. 'Meeting at the cafe, chatting about life' (Detailed description of the event and virtual scene)",
|
|
162
163
|
"scheduledStartTimeStr": "HH:MM (Optional, 24-hour format if a specific time today is agreed upon, e.g., '14:30', otherwise null)",
|
|
163
164
|
"durationMins": 60,
|
|
@@ -236,7 +237,7 @@ You MUST output ONLY a valid JSON object matching this exact structure:
|
|
|
236
237
|
{
|
|
237
238
|
"acceptEvent": true,
|
|
238
239
|
"reason": "string (Why you accepted or declined, speaking in character)",
|
|
239
|
-
${this.getEventSchemaParams()}
|
|
240
|
+
${this.getEventSchemaParams(state.dynamic_context?.userNickname)}
|
|
240
241
|
}
|
|
241
242
|
|
|
242
243
|
CRITICAL: Output MUST be ONLY valid JSON with no markdown block wrappers. Do NOT wrap the JSON in \`\`\`json or add conversational text.`;
|
|
@@ -530,7 +531,7 @@ Output JSON Schema:
|
|
|
530
531
|
"stateUpdate": { "temperatureDelta": 1, "userNickname": "What you now call the user", "agentNickname": "What the user calls you", "talkingStyle": "Current mood/style of talking" },
|
|
531
532
|
"userAnalysis": { "newFactsLearned": [{ "category": "occupation", "value": "Software Engineer" }] },
|
|
532
533
|
"triggerEvent": {
|
|
533
|
-
${this.getEventSchemaParams()}
|
|
534
|
+
${this.getEventSchemaParams(state.dynamic_context?.userNickname)}
|
|
534
535
|
},
|
|
535
536
|
${this.getImageSchemaParams()},
|
|
536
537
|
${this.getVoiceSchemaFromState(state)}
|