Rename to hkt.sh

This commit is contained in:
mango
2026-03-21 01:10:53 +08:00
parent 76a263d0f9
commit 8f1171fe99
6676 changed files with 1724268 additions and 0 deletions

View File

@@ -0,0 +1,109 @@
# Cron Templates for Remindme
## One-Shot Reminder (Telegram)
```json
{
"name": "Reminder: <description>",
"schedule": {
"kind": "at",
"at": "2026-02-11T23:00:00Z"
},
"sessionTarget": "isolated",
"wakeMode": "now",
"payload": {
"kind": "agentTurn",
"message": "⏰ REMINDER: <message>. Deliver this reminder now."
},
"delivery": {
"mode": "announce",
"channel": "telegram",
"to": "<chatId>",
"bestEffort": true
},
"deleteAfterRun": true
}
```
## One-Shot Reminder (Discord)
```json
{
"name": "Reminder: <description>",
"schedule": {
"kind": "at",
"at": "2026-02-11T23:00:00Z"
},
"sessionTarget": "isolated",
"wakeMode": "now",
"payload": {
"kind": "agentTurn",
"message": "⏰ REMINDER: <message>. Deliver this reminder now."
},
"delivery": {
"mode": "announce",
"channel": "discord",
"to": "channel:<channelId>",
"bestEffort": true
},
"deleteAfterRun": true
}
```
## Recurring Reminder (Any Channel)
```json
{
"name": "Daily: <description>",
"schedule": {
"kind": "cron",
"expr": "0 9 * * *",
"tz": "Africa/Cairo"
},
"sessionTarget": "isolated",
"wakeMode": "now",
"payload": {
"kind": "agentTurn",
"message": "⏰ RECURRING: <message>"
},
"delivery": {
"mode": "announce",
"channel": "last",
"bestEffort": true
}
}
```
## The Janitor (Auto-Cleanup)
Install this once to clean up expired one-shot reminders every 24 hours:
```json
{
"name": "Daily Cron Cleanup",
"schedule": {
"kind": "every",
"everyMs": 86400000
},
"sessionTarget": "isolated",
"wakeMode": "next-heartbeat",
"payload": {
"kind": "agentTurn",
"message": "Time for the 24-hour remindme cleanup. List all cron jobs. Only delete jobs whose name starts with 'Reminder:' that are disabled (enabled: false) and have lastStatus: ok (finished one-shots). Do NOT delete any jobs that don't start with 'Reminder:' — those belong to other skills. Do NOT delete active recurring jobs (name starts with 'Recurring:'). Log what you deleted."
},
"delivery": {
"mode": "none"
}
}
```
## Timezone Reference
Common timezone identifiers:
- `Africa/Cairo` (GMT+2)
- `America/New_York` (EST/EDT)
- `America/Los_Angeles` (PST/PDT)
- `Europe/London` (GMT/BST)
- `Asia/Tokyo` (JST)
Always confirm the user's timezone before scheduling absolute-time reminders.