@deckasoft/waify 0.5.0 → 0.5.1

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/README.md CHANGED
@@ -23,7 +23,7 @@ waify send # send your first message
23
23
 
24
24
  | Command | Description |
25
25
  |---|---|
26
- | `waify setup` | First-run wizard — starts Docker services, links WhatsApp, configures AI and recipient |
26
+ | `waify setup` | First-run wizard — starts Docker services, links WhatsApp, configures AI, recipient, and schedule |
27
27
  | `waify send` | Generate a message with Gemini and send it via WhatsApp |
28
28
  | `waify preview` | Preview generated messages without sending (`-n 3` for multiple candidates) |
29
29
  | `waify tui` | Launch the interactive terminal UI (tabs: Home, History, Settings, Prompt, Schedule) |
@@ -35,7 +35,7 @@ waify send # send your first message
35
35
  | `waify prompt edit` | Open the prompt in `$EDITOR` |
36
36
  | `waify prompt add-example <text>` | Add a few-shot example to the prompt |
37
37
  | `waify schedule list` | List scheduled jobs |
38
- | `waify schedule add <name> <cron>` | Add a cron job (e.g. `"0 9 * * *"`) |
38
+ | `waify schedule add <name> <cron>` | Add a 6-field cron job (e.g. `"0 0 9 * * *"` — sec min hour dom month dow) |
39
39
  | `waify schedule remove <name>` | Remove a scheduled job |
40
40
 
41
41
  ## Configuration
@@ -60,10 +60,10 @@ All config files live in `~/.config/waify/`:
60
60
 
61
61
  ## Scheduling
62
62
 
63
- Use `waify schedule add` to create cron jobs. Changes require restarting the scheduler:
63
+ Use `waify schedule add` to create cron jobs. The cron format is **6 fields** (sec min hour dom month dow). Changes require restarting the scheduler:
64
64
 
65
65
  ```bash
66
- waify schedule add morning "0 9 * * *"
66
+ waify schedule add morning "0 0 9 * * *"
67
67
  docker compose -f ~/.config/waify/docker-compose.yml restart scheduler
68
68
  ```
69
69
 
package/dist/cli/index.js CHANGED
@@ -1689,7 +1689,7 @@ var registerSchedule = (program2) => {
1689
1689
  `);
1690
1690
  });
1691
1691
  });
1692
- schedule.command("add <name> <cron>").description('Add a new job. <cron> uses 5-field crontab syntax, e.g. "0 9 * * *"').option("-c, --command <cmd>", "command for the sender container to run", "send").action((name, cron, { command }) => {
1692
+ schedule.command("add <name> <cron>").description('Add a new job. <cron> uses 6-field syntax (sec min hour dom month dow), e.g. "0 0 9 * * *"').option("-c, --command <cmd>", "command for the sender container to run", "send").action((name, cron, { command }) => {
1693
1693
  const job = ScheduledJobSchema.parse({ name, schedule: cron, command });
1694
1694
  addJob(job);
1695
1695
  console.warn(`added job "${name}" \u2014 restart scheduler: docker compose restart scheduler`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deckasoft/waify",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "AI-powered daily message sender for WhatsApp, powered by OpenWA",
5
5
  "keywords": [
6
6
  "whatsapp",