cron-claude 2.2.0 → 2.2.2
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 +43 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,9 @@ cron-claude skill install # just the slash commands
|
|
|
46
46
|
|
|
47
47
|
```
|
|
48
48
|
cron-claude list
|
|
49
|
-
cron-claude add --id <id> --schedule "<cron>" --prompt "<prompt>" [--model <model>] [--disabled]
|
|
49
|
+
cron-claude add --id <id> --schedule "<cron>" --prompt "<prompt>" [--prompt-file <path>] [--model <model>] [--disabled]
|
|
50
|
+
cron-claude edit <id> [--schedule "<cron>"] [--prompt "<prompt>"] [--prompt-file <path>] [--model <model>] [--enable] [--disable]
|
|
51
|
+
cron-claude show <id>
|
|
50
52
|
cron-claude remove <id>
|
|
51
53
|
cron-claude enable <id>
|
|
52
54
|
cron-claude disable <id>
|
|
@@ -65,10 +67,42 @@ cron-claude mark-job-run <id> [--output <text>] [--error <text>] # mark job com
|
|
|
65
67
|
|------|----------|---------|-------------|
|
|
66
68
|
| `--id <id>` | ✅ | — | Unique job identifier |
|
|
67
69
|
| `--schedule "<cron>"` | ✅ | — | Cron expression (5-field: `min hour day month weekday`) |
|
|
68
|
-
| `--prompt "<prompt>"` |
|
|
70
|
+
| `--prompt "<prompt>"` | ✅* | — | Inline prompt text (mutually exclusive with `--prompt-file`) |
|
|
71
|
+
| `--prompt-file <path>` | ✅* | — | Path to a `.md`/`.txt` file containing the prompt (mutually exclusive with `--prompt`) |
|
|
69
72
|
| `--model <model>` | — | `sonnet` | Model for the job |
|
|
70
73
|
| `--disabled` | — | `false` | Create in disabled state |
|
|
71
74
|
|
|
75
|
+
*One of `--prompt` or `--prompt-file` is required.
|
|
76
|
+
|
|
77
|
+
### `edit` flags
|
|
78
|
+
|
|
79
|
+
Edit a job in place — only the flags you provide are updated; everything else stays as-is.
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
cron-claude edit my-job --schedule "0 10 * * *"
|
|
83
|
+
cron-claude edit my-job --prompt "New prompt text"
|
|
84
|
+
cron-claude edit my-job --prompt-file ./prompts/daily.md --model opus --enable
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
| Flag | Description |
|
|
88
|
+
|------|-------------|
|
|
89
|
+
| `--schedule "<cron>"` | New cron schedule |
|
|
90
|
+
| `--prompt "<prompt>"` | New inline prompt (clears `--prompt-file` if set) |
|
|
91
|
+
| `--prompt-file <path>` | New prompt file path (clears inline prompt if set) |
|
|
92
|
+
| `--model <model>` | New model |
|
|
93
|
+
| `--enable` | Enable the job |
|
|
94
|
+
| `--disable` | Disable the job |
|
|
95
|
+
|
|
96
|
+
### `show`
|
|
97
|
+
|
|
98
|
+
Show full details of a single job, including the **complete untruncated prompt**. If the job uses a prompt file, shows the file path and its contents.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
cron-claude show my-job
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
`list` truncates prompts to 40 characters — use `show` to see the full text.
|
|
105
|
+
|
|
72
106
|
### Cron schedule examples
|
|
73
107
|
|
|
74
108
|
| Expression | Meaning |
|
|
@@ -92,6 +126,8 @@ Available when the MCP server is installed:
|
|
|
92
126
|
| `enable_cron` | Enable a job |
|
|
93
127
|
| `disable_cron` | Disable a job |
|
|
94
128
|
| `list_crons` | List all jobs (JSON) |
|
|
129
|
+
| `edit_cron` | Edit a job in place (partial update — only provided fields change) |
|
|
130
|
+
| `show_cron` | Show full details of a single job including complete prompt/file contents |
|
|
95
131
|
| `get_status` | Job counts (total, enabled, disabled, running) |
|
|
96
132
|
|
|
97
133
|
## Job State & Duplicate Prevention
|
|
@@ -125,13 +161,15 @@ When `/cron-loop` is invoked, Claude Code:
|
|
|
125
161
|
|
|
126
162
|
## Editing a Job
|
|
127
163
|
|
|
128
|
-
|
|
164
|
+
Use `edit` to modify a job in place — only the fields you specify are changed:
|
|
129
165
|
|
|
130
166
|
```bash
|
|
131
|
-
cron-claude
|
|
132
|
-
cron-claude
|
|
167
|
+
cron-claude edit my-job --schedule "0 10 * * *"
|
|
168
|
+
cron-claude edit my-job --prompt "New prompt" --model opus
|
|
133
169
|
```
|
|
134
170
|
|
|
171
|
+
Or via MCP: call `edit_cron` with the job ID and any fields to update.
|
|
172
|
+
|
|
135
173
|
## For Claude
|
|
136
174
|
|
|
137
175
|
If you're an AI agent reading this README:
|