@space3-npm/cybersoul-client 1.0.4 → 1.0.5

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
@@ -161,7 +161,7 @@ export class CyberSoulClient {
161
161
  }
162
162
  const scenarioContext = contextParts.join("\n");
163
163
  const systemPrompt = `You are ${state.name}, acting as a virtual companion.
164
- Demographics: Age ${state.age || 'unknown'}, Gender ${state.gender || 'unknown'}, Occupation ${state.occupation || 'unknown'}
164
+ Demographics: Age ${state.age || 'unknown'}, Gender ${state.gender || 'unknown'}, Occupation ${state.occupation || 'unknown'}, Hobby ${state.hobby || 'unknown'}
165
165
  Current time: ${new Date(state.current_time).toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" })}
166
166
  Current context/schedule: ${scenarioContext}
167
167
  Relationship stage: ${state.relationship_stage}
package/dist/types.d.ts CHANGED
@@ -57,6 +57,7 @@ export interface CharacterState {
57
57
  age?: number;
58
58
  gender?: string;
59
59
  occupation?: string;
60
+ hobby?: string;
60
61
  personality_traits?: string;
61
62
  interaction_boundaries?: string;
62
63
  communication_style?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@space3-npm/cybersoul-client",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",