@wonsukchoi/crondex 0.5.0 → 0.6.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.
@@ -0,0 +1,26 @@
1
+ id: travel-insurance-expiry-check
2
+ version: 1
3
+ name: Travel Insurance Expiry Check
4
+ description: >
5
+ Warns you if you have an upcoming trip with no travel insurance policy
6
+ covering it, or a policy expiring before the trip ends. Use this if
7
+ you've ever booked a trip and only thought about insurance the night before.
8
+ category: travel
9
+ tags: [travel, insurance, documents]
10
+ schedule: "0 9 * * 1"
11
+ timezone: "UTC"
12
+ runner: shell
13
+ command: >
14
+ policy_end_ts=$(date -d "{{policy_end_date}}" +%s 2>/dev/null || date -jf "%Y-%m-%d" "{{policy_end_date}}" +%s);
15
+ trip_end_ts=$(date -d "{{trip_end_date}}" +%s 2>/dev/null || date -jf "%Y-%m-%d" "{{trip_end_date}}" +%s);
16
+ if [ "$policy_end_ts" -lt "$trip_end_ts" ]; then echo "WARNING: travel insurance ends {{policy_end_date}}, before trip ends {{trip_end_date}}"; exit 1;
17
+ else echo "OK: travel insurance covers the full trip"; fi
18
+ variables:
19
+ policy_end_date:
20
+ default: "2026-12-31"
21
+ description: Date your current travel insurance policy ends (YYYY-MM-DD).
22
+ trip_end_date:
23
+ default: "2026-12-31"
24
+ description: Date your upcoming trip ends (YYYY-MM-DD).
25
+ compatible_agents: [generic, claude, codex]
26
+ notes: Manual date inputs — update policy_end_date and trip_end_date per trip since there's no standard API for insurance policies.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonsukchoi/crondex",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "A public directory of pre-made, agent-editable cron jobs.",
5
5
  "type": "module",
6
6
  "license": "MIT",