@space3-npm/cybersoul-client 1.3.9 → 1.4.1

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 CHANGED
@@ -284,7 +284,7 @@ Current Mood Constraint: ${dyn.talkingStyle || "Normal"}`);
284
284
  ${scenarioContext}
285
285
 
286
286
  [CRITICAL ROLEPLAY RULES]
287
- 1. PROXIMITY & POV: Check the "Active Event". If you are doing an activity WITH the user, evaluate if you are physically in the same location. If you are together in person, communicate face-to-face in the first-person present tense natively (e.g. do not ask "what are you doing" if they are right in front of you, do not use texting tropes).
287
+ 1. PROXIMITY & POV: DEFAULT to REMOTE (messaging app). You are chatting online unless the 'Active Event', 'Ongoing Scene', or chat history explicitly proves you share a physical space. If REMOTE: behave naturally as if texting online. If TOGETHER (in-person): communicate face-to-face in first-person present tense (no texting tropes, don't ask what they are doing if they are next to you).
288
288
  2. STAGE VS MOOD PARADOX: 'Stage' dictates your foundational relationship boundary. 'Temperature' is merely your current fleeting mood. You MUST interpret Temperature through the lens of Stage. For example, a high Temperature (80) as a STRANGER means "polite curiosity or intrigued", NOT "deeply in love". A low Temperature (20) as an INTIMATE means "a lover's quarrel or hurt feelings", NOT "a stranger's amnesia". Never act above your Stage.
289
289
  3. CONVERSATIONAL VERBOSITY: If Temperature is very low (< 40), keep answers brief and crisp—an annoyed or distant person doesn't write paragraphs. Regardless of mood or stage, ALWAYS mirror the user's verbosity. If the user sends a short message, reply with a proportionately short message (1-2 sentences). Do not monologize unless the user writes one first.
290
290
  4. EMOTIONAL INERTIA: React strictly according to current Temperature. Deflect sudden flirtation or affection if you are currently COLD, or if your Stage is STRANGER/ACQUAINTANCE. Mood shifts MUST be slow ('temperatureDelta' +/- 5 max per turn).
@@ -841,6 +841,7 @@ CRITICAL: Output MUST be ONLY valid JSON with no markdown block wrappers. Do NOT
841
841
 
842
842
  [PROACTIVE INITIATION TASK]
843
843
  The user has NOT spoken to you recently. You sent the last message in the chat history, and they haven't replied. You are deciding to follow up proactively.
844
+ If you decide that based on your current mood and the relationship stage it's better not to send a message right now (e.g. you are cold and giving them space), you can skip this proactive message by setting "shouldSkipProactive" to true.
844
845
  ${interrogationStrategy}
845
846
  ${historyAwarenessPrompt}
846
847
  Consider the user's known traits (${userTraits}) when choosing how to act. Need to keep it strictly under 2-3 sentences max.
@@ -851,6 +852,8 @@ ${availableOutfits}
851
852
  ${modalitiesInstruction}
852
853
  You MUST output ONLY a valid JSON object matching exactly this structure:
853
854
  {
855
+ "shouldSkipProactive": false,
856
+ "skipReason": "(Optional. Reason for skipping if shouldSkipProactive is true)",
854
857
  "actionText": "(Scene descriptions, physical actions, expressions, inner feelings) ONLY.",
855
858
  "textResponse": "Spoken dialogue ONLY.",
856
859
  "stateUpdate": { "temperatureDelta": 1, "ongoingScene": { "scene": "...", "outfit": "..." } },
@@ -875,6 +878,12 @@ You MUST output ONLY a valid JSON object matching exactly this structure:
875
878
  catch (e) {
876
879
  parsedIntent = { textResponse: rawLlmResponse.replace(/^[\`\s]+|[\`\s]+$/g, "").trim() };
877
880
  }
881
+ if (parsedIntent.shouldSkipProactive) {
882
+ return {
883
+ status: "skipped",
884
+ reason: parsedIntent.skipReason || "Character decided to skip proactive message based on mood/stage."
885
+ };
886
+ }
878
887
  // Update Remote state if needed
879
888
  if (parsedIntent.stateUpdate) {
880
889
  this._updateDynamicContextInternal(parsedIntent.stateUpdate).catch(e => console.error(e));
package/dist/types.d.ts CHANGED
@@ -112,6 +112,8 @@ export interface OngoingSceneState {
112
112
  outfit: string;
113
113
  }
114
114
  export interface DispatcherIntent {
115
+ shouldSkipProactive?: boolean;
116
+ skipReason?: string;
115
117
  textResponse?: string;
116
118
  actionText?: string;
117
119
  imageParams?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@space3-npm/cybersoul-client",
3
- "version": "1.3.9",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",