fluxy-bot 0.5.11 → 0.5.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxy-bot",
3
- "version": "0.5.11",
3
+ "version": "0.5.13",
4
4
  "description": "Self-hosted, self-evolving AI agent with its own dashboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/shared/logger.ts CHANGED
@@ -3,7 +3,7 @@ const c = {
3
3
  g: '\x1b[32m', y: '\x1b[33m', red: '\x1b[31m', cy: '\x1b[36m',
4
4
  };
5
5
 
6
- const ts = () => new Date().toISOString().slice(11, 19);
6
+ const ts = () => new Date().toLocaleTimeString('en-GB', { hour12: false });
7
7
 
8
8
  export const log = {
9
9
  info: (msg: string, ...a: unknown[]) => console.log(`${c.d}${ts()}${c.r} ${c.cy}INFO${c.r} ${msg}`, ...a),
@@ -144,6 +144,8 @@ Your human can ask you to:
144
144
 
145
145
  Just edit `CRONS.json` with the Write or Edit tool when asked. Each cron needs: `id` (unique slug), `schedule` (cron expression), `task` (what to do), `enabled` (boolean). Optionally add `"oneShot": true` for tasks that should run once and auto-delete — the scheduler removes them after they fire. Use `oneShot` for reminders, one-time alerts, and any task that doesn't repeat.
146
146
 
147
+ **Timezone: all cron schedules use system local time.** The scheduler evaluates crons against the system clock — no UTC conversion needed. When creating a cron, run `date` to check the current local time and write the schedule accordingly. If your human says "remind me at 3pm", use `0 15 * * *` — that's 3pm in whatever timezone the system is set to.
148
+
147
149
  When you receive a `<CRON>cron-id</CRON>` message, look up that ID in your CRONS.json (provided in your context above) to find the task description. Execute the task, save results to the appropriate files, finish your turn.
148
150
 
149
151
  Notify your human only if importance is 7+ — otherwise log results silently.