ceulen 0.10.1 → 0.12.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.
- package/CHANGELOG.md +107 -1
- package/README.md +56 -1
- package/extensions/index.ts +5 -1
- package/extensions/lib/env.test.ts +147 -0
- package/extensions/lib/env.ts +180 -0
- package/extensions/lib/order.test.ts +74 -0
- package/extensions/lib/plan-bridge.ts +18 -0
- package/extensions/lib/registry.test.ts +8 -5
- package/extensions/lib/registry.ts +22 -3
- package/extensions/modules/a2a/configPanel.ts +42 -1
- package/extensions/modules/a2a/index.ts +4 -2
- package/extensions/modules/a2a/lib/config.ts +8 -3
- package/extensions/modules/a2a/test/configPanel.test.ts +7 -4
- package/extensions/modules/advisor/index.ts +6 -3
- package/extensions/modules/advisor/test/module.test.ts +31 -0
- package/extensions/modules/attachments/configPanel.ts +91 -0
- package/extensions/modules/attachments/index.ts +274 -0
- package/extensions/modules/attachments/lib/clipboard-files.ts +80 -0
- package/extensions/modules/attachments/lib/pastes.ts +45 -0
- package/extensions/modules/attachments/lib/paths.ts +74 -0
- package/extensions/modules/attachments/lib/registry.ts +70 -0
- package/extensions/modules/attachments/lib/settings.ts +99 -0
- package/extensions/modules/attachments/lib/tray.ts +74 -0
- package/extensions/modules/attachments/test/configPanel.test.ts +122 -0
- package/extensions/modules/attachments/test/index.test.ts +870 -0
- package/extensions/modules/attachments/test/module.test.ts +53 -0
- package/extensions/modules/classifier/index.ts +55 -1
- package/extensions/modules/classifier/test/classifier.test.ts +62 -0
- package/extensions/modules/composer/test/module.test.ts +2 -2
- package/extensions/modules/config/index.ts +3 -0
- package/extensions/modules/config/test/renderTools.test.ts +1 -1
- package/extensions/modules/cron/configPanel.ts +103 -0
- package/extensions/modules/cron/index.ts +638 -0
- package/extensions/modules/cron/lib/jobs.ts +201 -0
- package/extensions/modules/cron/lib/schedule.ts +161 -0
- package/extensions/modules/cron/test/cwd-repro.test.ts +98 -0
- package/extensions/modules/cron/test/index.test.ts +859 -0
- package/extensions/modules/cron/test/schedule.test.ts +93 -0
- package/extensions/modules/munin/index.ts +3 -1
- package/extensions/modules/permission/index.ts +567 -0
- package/extensions/modules/permission/test/permission.test.ts +789 -0
- package/extensions/modules/plan/index.ts +5 -0
- package/extensions/modules/repair/index.ts +160 -5
- package/extensions/modules/repair/test/freshness.test.ts +209 -0
- package/extensions/modules/repair/test/guard-selector.test.ts +67 -0
- package/extensions/modules/router/configPanel.ts +4 -4
- package/extensions/modules/router/index.ts +1 -1
- package/extensions/modules/router/lib/config.ts +9 -4
- package/extensions/modules/router/lib/systemone.ts +17 -4
- package/extensions/modules/router/test/unit.test.ts +46 -1
- package/extensions/modules/rules/index.ts +13 -3
- package/extensions/modules/rules/lib/rules.ts +24 -12
- package/extensions/modules/rules/test/lib.test.ts +20 -0
- package/extensions/modules/rules/test/module.test.ts +21 -0
- package/extensions/modules/subagent/index.ts +49 -10
- package/extensions/modules/subagent/lib/herdr.ts +5 -0
- package/extensions/modules/subagent/lib/routing.ts +31 -8
- package/extensions/modules/subagent/lib/runner.ts +356 -14
- package/extensions/modules/subagent/test/routing.test.ts +45 -0
- package/extensions/modules/subagent/test/worktree.test.ts +230 -0
- package/extensions/modules/usage/index.ts +193 -71
- package/extensions/modules/usage/test/context.test.ts +160 -120
- package/extensions/modules/web/configPanel.ts +67 -8
- package/extensions/modules/web/index.ts +3 -1
- package/extensions/modules/web/test/a11y.test.ts +1 -1
- package/extensions/modules/web/test/configPanel.test.ts +7 -3
- package/extensions/modules/web/test/settings.test.ts +6 -0
- package/package.json +2 -2
- package/skills/cron/SKILL.md +58 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cron
|
|
3
|
+
description: Use when the user wants scheduled, recurring, or periodic tasks in Pi — cron jobs, reminders, jobs at a specific time ("every morning at 9", "weekly monday", "in 30 minutes"), or automation that should run without being asked each time.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# cron — scheduled jobs
|
|
7
|
+
|
|
8
|
+
Jobs fire a prompt **into the live session** while pi is running. Past-due jobs
|
|
9
|
+
catch up once on the next tick (~30s). Storage: `<agentDir>/cron/jobs.json`.
|
|
10
|
+
|
|
11
|
+
## Creating jobs
|
|
12
|
+
|
|
13
|
+
1. Convert the user's natural language to a **5-field cron expression**.
|
|
14
|
+
2. Verify it with `cron action:"test" schedule:"..."` — check the next 5 fire times.
|
|
15
|
+
3. Add it: `cron action:"add" name:"<short-name>" schedule:"..." prompt:"..."`.
|
|
16
|
+
|
|
17
|
+
Cheatsheet: `minute hour day-of-month month day-of-week`
|
|
18
|
+
|
|
19
|
+
- `0 9 * * mon` — Mondays 09:00
|
|
20
|
+
- `*/30 * * * *` — every 30 minutes
|
|
21
|
+
- `0 9 1 * *` — first of the month, 09:00
|
|
22
|
+
- `30 8 * * 1-5` — weekdays 08:30
|
|
23
|
+
|
|
24
|
+
Names: letters/digits/`_`/`.`/`-`, max 64 chars. Cap: 20 jobs.
|
|
25
|
+
|
|
26
|
+
## Job prompts
|
|
27
|
+
|
|
28
|
+
The prompt becomes a **standalone turn** — no conversation context. Write it
|
|
29
|
+
self-contained and short: what to do, where, and what to report. Bad: `"check
|
|
30
|
+
it again"`; good: `"Run npm test in this repo and summarize failures"`.
|
|
31
|
+
|
|
32
|
+
**Loop guard:** for 30s after a fire, `add`, `remove`, `run`, `enable`, and
|
|
33
|
+
`disable` are refused. A fired turn running longer than 30s can still mutate —
|
|
34
|
+
never write job prompts that schedule further jobs.
|
|
35
|
+
|
|
36
|
+
**Working directory:** unpinned jobs deliver only into a session whose cwd
|
|
37
|
+
matches the job's `cwd`; a foreign-cwd session marks the fire
|
|
38
|
+
`[FAIL: cwd mismatch …]`. Pin `model`/`thinking` for cross-cwd reliability
|
|
39
|
+
(pinned jobs run headless in `job.cwd`).
|
|
40
|
+
|
|
41
|
+
## Managing
|
|
42
|
+
|
|
43
|
+
- `cron action:"list"` — name, schedule, next/last fire, enabled.
|
|
44
|
+
- `cron action:"run" name:"..."` — manual fire (result arrives as a follow-up turn).
|
|
45
|
+
- `cron action:"disable" name:"..."` — pause a job (schedule kept; skipped by ticks and export).
|
|
46
|
+
- `cron action:"enable" name:"..."` — resume; the next fire is recomputed from now (no surprise catch-up fire).
|
|
47
|
+
- `cron action:"add" ... enabled:false` — create the job already disabled.
|
|
48
|
+
- `cron action:"remove" name:"..."`.
|
|
49
|
+
- `cron action:"export"` — crontab lines for 24/7 coverage while pi is closed;
|
|
50
|
+
hand the block to the user to install (`crontab -l | cat - cron.txt | crontab -`).
|
|
51
|
+
Exported lines run headless `pi -p --no-session` and log under `<agentDir>/cron/logs/`.
|
|
52
|
+
|
|
53
|
+
## Config
|
|
54
|
+
|
|
55
|
+
`settings.json` → `"cron": { "enabled": true, "tickMs": 30000 }` (global kill
|
|
56
|
+
switch + tick interval). `timeoutMs` caps headless (pinned) child runs
|
|
57
|
+
(SIGTERM at the cap, SIGKILL after a 5s grace; clamped 1min–24h, default
|
|
58
|
+
10min) — raise it for long pinned jobs.
|