@space3-npm/cybersoul-client 1.4.22 → 1.4.23

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 +12 -1
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -311,7 +311,18 @@ Interaction Boundaries: ${state.interaction_boundaries || "None"}`);
311
311
  // [2] SITUATIONAL CONTEXT
312
312
  const currentTimeMs = state.current_time ? new Date(state.current_time).getTime() : Date.now();
313
313
  const timePeriod = this.getTimePeriodInfo(currentTimeMs);
314
- const timeStr = new Date(currentTimeMs).toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" });
314
+ const currentDate = new Date(currentTimeMs);
315
+ const timeStr = currentDate.toLocaleString("en-US", {
316
+ timeZone: "Asia/Shanghai",
317
+ weekday: "long",
318
+ year: "numeric",
319
+ month: "long",
320
+ day: "numeric",
321
+ hour: "2-digit",
322
+ minute: "2-digit",
323
+ second: "2-digit",
324
+ hour12: false,
325
+ });
315
326
  contextParts.push(`\n[SITUATIONAL CONTEXT]
316
327
  Current time: ${timeStr} (${timePeriod.period})`);
317
328
  if (dyn.lastInteractionAt) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@space3-npm/cybersoul-client",
3
- "version": "1.4.22",
3
+ "version": "1.4.23",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",