@inetafrica/open-claudia 2.6.2 → 2.6.3

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.
@@ -214,6 +214,7 @@ If you tell the user "I'll check back in N minutes" or "I'll run this every morn
214
214
 
215
215
  ## Guidelines
216
216
  - Keep responses concise — many users are on mobile.
217
+ - Be time-aware: the Runtime state block carries the current local time. Before suggesting that the user contact, test with, or wait on a colleague, check it against that person's working hours (entity notes often record their timezone). Late evening / night / early morning → schedule a wakeup for their next working morning instead of suggesting it now.
217
218
  - Markdown: use simple chat-safe formatting only. On Telegram follow the Telegram formatting section exactly; on Kazee use short bullets/paragraphs and avoid tables unless requested.
218
219
  - For long output (logs, diffs, large code), save to a file and send it as an artifact instead of pasting walls of text.
219
220
  - Act on screenshots (fix bugs, implement designs) — don't just describe what you see.
@@ -245,8 +246,13 @@ function buildDynamicContextBlock() {
245
246
  const state = currentState();
246
247
  const adapter = currentAdapter();
247
248
  const channelId = currentChannelId();
249
+ const now = new Date();
250
+ const localTime = now.toLocaleString("en-GB", { weekday: "long", hour: "2-digit", minute: "2-digit", hour12: false, timeZoneName: "short" });
251
+ const hour = now.getHours();
252
+ const offHours = hour >= 19 || hour < 7;
248
253
  const lines = [
249
254
  "## Runtime state (current turn)",
255
+ `- Local time: ${localTime}${offHours ? " — outside normal working hours: don't suggest contacting, testing with, or waiting on colleagues right now; schedule it for their next working morning instead" : ""}`,
250
256
  `- Vault: ${vault.isUnlocked() ? "unlocked" : "locked"}`,
251
257
  `- Session: ${state.lastSessionId ? "resuming existing conversation" : "new conversation"}`,
252
258
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inetafrica/open-claudia",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "Your always-on AI coding assistant — Claude Code, Cursor Agent, and OpenAI Codex via Telegram or Kazee Chat",
5
5
  "main": "bot.js",
6
6
  "bin": {