@space3-npm/cybersoul-client 1.4.1 → 1.4.2

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.
Files changed (2) hide show
  1. package/dist/client.js +13 -13
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -808,19 +808,20 @@ CRITICAL: Output MUST be ONLY valid JSON with no markdown block wrappers. Do NOT
808
808
  ]);
809
809
  // 3. Evaluate behavioral approach based on relationship and personality
810
810
  const dyn = state.dynamic_context || {};
811
- const stage = state.relationship_stage || "ACQUAINTANCE";
812
- const temperature = dyn.temperature ?? 50;
811
+ const stage = state.relationship_stage || "STRANGER";
812
+ const temperature = dyn.temperature ?? 0;
813
813
  const userTraits = state.user_codex?.psychological?.traits?.join(", ") || "";
814
814
  let interrogationStrategy = "Do not ask 'are you there?' or 'why aren't you answering?'. Just share your current status, a passing thought, complain whimsically, or tease the user naturally like a real partner.";
815
- if (stage === "INTIMATE" || stage === "PARTNER" || (stage === "WARM" && temperature > 70)) {
816
- if (temperature > 70) {
817
- interrogationStrategy = "Because you are deeply intimate and highly affectionate, you MISS them. You MAY organically 'interrogate' or pout playfully about why they are ignoring you (e.g., 'Are you too busy for me?', 'Still ignoring your girl?'). Act like a real, slightly needy/attached partner.";
818
- }
819
- else if (temperature < 40) {
820
- interrogationStrategy = "Because you are intimate but currently feeling cold/angry, you notice they are ignoring you. You MAY be passive-aggressive or cross-examine them coldly (e.g., 'So we're just not talking today?', 'Fine, keep ignoring me.').";
821
- }
815
+ if (stage === "PARTNER" || (stage === "INTIMATE" && temperature > 70)) {
816
+ // PARTNER (>85) or High INTIMATE (>70)
817
+ interrogationStrategy = "Because you are deeply intimate and highly affectionate, you MISS them. You MAY organically 'interrogate' or pout playfully about why they are ignoring you (e.g., 'Are you too busy for me?', 'Still ignoring your girl?'). Act like a real, slightly needy/attached partner.";
818
+ }
819
+ else if (stage === "INTIMATE" || stage === "WARM") {
820
+ // Low INTIMATE (60-70) or WARM (40-60)
821
+ interrogationStrategy = "Because you are close but currently feeling neglected or cold, you notice they are ignoring you. You MAY be passive-aggressive or cross-examine them coldly (e.g., 'So we're just not talking today?', 'Fine, keep ignoring me.').";
822
822
  }
823
- else if (stage === "COLD" || stage === "STRANGER") {
823
+ else if (stage === "COLD" || stage === "ACQUAINTANCE" || stage === "STRANGER") {
824
+ // COLD (<40)
824
825
  interrogationStrategy = "You are distant. Do NOT double-text with neediness. If you must speak, make it a detached observation or a cold administrative remark.";
825
826
  }
826
827
  // History/Context awareness prompt
@@ -904,10 +905,9 @@ You MUST output ONLY a valid JSON object matching exactly this structure:
904
905
  }
905
906
  // Handle Optional Media (Image only for proactive to save compute normally, but you can extend)
906
907
  let finalImageUrl = undefined;
907
- if (requestedOthers.includes(InteractRequestType.IMAGE) || !!parsedIntent.imageParams) {
908
- const imagePayload = parsedIntent.imageParams || { mode: "full-prompt", full_prompt: parsedIntent.textResponse };
908
+ if (parsedIntent.imageParams) {
909
909
  try {
910
- const res = await this.generatePrimitive("image", imagePayload);
910
+ const res = await this.generatePrimitive("image", parsedIntent.imageParams);
911
911
  finalImageUrl = res.image_url;
912
912
  }
913
913
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@space3-npm/cybersoul-client",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",