@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.
- package/dist/client.js +12 -1
- 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
|
|
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) {
|