Merge ddfcde4e91795ed953bde8154c511eea9a5469b1 into 5e417b44e1540f528d2ae63e3e20229a902d1db2
This commit is contained in:
commit
393747b6fa
@ -252,9 +252,10 @@ SCHEDULE TYPES (schedule.kind):
|
||||
- "every": Recurring interval
|
||||
{ "kind": "every", "everyMs": <interval-ms>, "anchorMs": <optional-start-ms> }
|
||||
- "cron": Cron expression
|
||||
{ "kind": "cron", "expr": "<cron-expression>", "tz": "<optional-timezone>" }
|
||||
{ "kind": "cron", "expr": "<cron-expression>", "tz": "<optional-IANA-timezone>" }
|
||||
When tz is omitted, cron expressions are evaluated in the Gateway's local system timezone (NOT UTC).
|
||||
|
||||
ISO timestamps without an explicit timezone are treated as UTC.
|
||||
ISO timestamps (schedule.kind="at") without an explicit timezone offset are treated as UTC.
|
||||
|
||||
PAYLOAD TYPES (payload.kind):
|
||||
- "systemEvent": Injects text as system event into session
|
||||
|
||||
@ -76,7 +76,11 @@ export function registerCronAddCommand(cron: Command) {
|
||||
.option("--at <when>", "Run once at time (ISO) or +duration (e.g. 20m)")
|
||||
.option("--every <duration>", "Run every duration (e.g. 10m, 1h)")
|
||||
.option("--cron <expr>", "Cron expression (5-field or 6-field with seconds)")
|
||||
.option("--tz <iana>", "Timezone for cron expressions (IANA)", "")
|
||||
.option(
|
||||
"--tz <iana>",
|
||||
"Timezone for cron expressions (IANA, defaults to system local timezone)",
|
||||
"",
|
||||
)
|
||||
.option("--stagger <duration>", "Cron stagger window (e.g. 30s, 5m)")
|
||||
.option("--exact", "Disable cron staggering (set stagger to 0)", false)
|
||||
.option("--system-event <text>", "System event payload (main session)")
|
||||
|
||||
@ -44,7 +44,10 @@ export function registerCronEditCommand(cron: Command) {
|
||||
.option("--at <when>", "Set one-shot time (ISO) or duration like 20m")
|
||||
.option("--every <duration>", "Set interval duration like 10m")
|
||||
.option("--cron <expr>", "Set cron expression")
|
||||
.option("--tz <iana>", "Timezone for cron expressions (IANA)")
|
||||
.option(
|
||||
"--tz <iana>",
|
||||
"Timezone for cron expressions (IANA, defaults to system local timezone)",
|
||||
)
|
||||
.option("--stagger <duration>", "Cron stagger window (e.g. 30s, 5m)")
|
||||
.option("--exact", "Disable cron staggering (set stagger to 0)")
|
||||
.option("--system-event <text>", "Set systemEvent payload")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user