@friendlyrobot/discord-pi-agent 0.1.4 → 0.2.0

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/index.js CHANGED
@@ -564,7 +564,6 @@ class PromptQueue {
564
564
  function buildTimeContextPrompt(userMessage, options = {}) {
565
565
  const timeZone = options.timeZone || "UTC";
566
566
  const locale = options.locale || "en-AU";
567
- const locationLabel = options.locationLabel || timeZone;
568
567
  const now = options.now || new Date;
569
568
  const localTime = new Intl.DateTimeFormat(locale, {
570
569
  timeZone,
@@ -573,10 +572,11 @@ function buildTimeContextPrompt(userMessage, options = {}) {
573
572
  year: "2-digit",
574
573
  hour: "2-digit",
575
574
  minute: "2-digit",
576
- hour12: false
575
+ hour12: false,
576
+ timeZoneName: "short"
577
577
  }).format(now);
578
578
  const trimmedMessage = userMessage.trim();
579
- return [`Local time: ${localTime}, ${locationLabel}`, "", "User message:", trimmedMessage].join(`
579
+ return [`<time>${localTime}</time>`, "", trimmedMessage].join(`
580
580
  `);
581
581
  }
582
582
 
@@ -1,7 +1,6 @@
1
1
  export type TimeContextPromptOptions = {
2
2
  timeZone?: string;
3
3
  locale?: string;
4
- locationLabel?: string;
5
4
  now?: Date;
6
5
  };
7
6
  export declare function buildTimeContextPrompt(userMessage: string, options?: TimeContextPromptOptions): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friendlyrobot/discord-pi-agent",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "Reusable Discord gateway bridge for persistent pi agent sessions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",