shadok-ai 0.19.23 → 0.19.24
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/context/scheduler-skill/SKILL.md +11 -11
- package/dist/skill-paths.d.ts +12 -0
- package/dist/skill-paths.js +12 -0
- package/dist/skill-paths.js.map +1 -1
- package/package.json +1 -1
|
@@ -61,17 +61,17 @@ absent, and you find out at 6am rather than now. A name that isn't in the vault
|
|
|
61
61
|
is skipped just as silently. Your own shell having the key proves nothing about
|
|
62
62
|
the guard's.
|
|
63
63
|
|
|
64
|
-
`schedule.mjs env` prints exactly what a guard gets here. Run it before writing a
|
|
64
|
+
`node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs env` prints exactly what a guard gets here. Run it before writing a
|
|
65
65
|
check that needs a secret.
|
|
66
66
|
|
|
67
67
|
## Commands
|
|
68
68
|
|
|
69
69
|
```
|
|
70
|
-
node scripts/schedule.mjs add --schedule <spec> --prompt "<text>" [--check "<shell command>"] [--tz <zone>]
|
|
71
|
-
node scripts/schedule.mjs list
|
|
72
|
-
node scripts/schedule.mjs del <id>
|
|
73
|
-
node scripts/schedule.mjs tz [<zone>|-]
|
|
74
|
-
node scripts/schedule.mjs env
|
|
70
|
+
node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs add --schedule <spec> --prompt "<text>" [--check "<shell command>"] [--tz <zone>]
|
|
71
|
+
node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs list
|
|
72
|
+
node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs del <id>
|
|
73
|
+
node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs tz [<zone>|-]
|
|
74
|
+
node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs env
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
`<spec>`: `every:30m` · `every:2h` · `daily:09:00` · `once:2026-08-25T08:42`.
|
|
@@ -98,7 +98,7 @@ Two behaviours worth knowing:
|
|
|
98
98
|
carries its own date, so say in it what it is about and when it was for.
|
|
99
99
|
|
|
100
100
|
```
|
|
101
|
-
node scripts/schedule.mjs add \
|
|
101
|
+
node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs add \
|
|
102
102
|
--schedule once:2026-08-25T08:42 \
|
|
103
103
|
--prompt "REMINDER — Alex is back today. Two documents have been stuck in generation since 18/08: …"
|
|
104
104
|
```
|
|
@@ -109,8 +109,8 @@ A `daily` runs at that wall-clock time **in a timezone**, and the default is
|
|
|
109
109
|
whatever the SERVER's machine is set to. On a machine running in UTC,
|
|
110
110
|
`daily:09:00` fires at 11:00 for someone in Paris — silently.
|
|
111
111
|
|
|
112
|
-
- `schedule.mjs tz` prints the timezone `daily` schedules actually use.
|
|
113
|
-
- `schedule.mjs tz Europe/Paris` pins it for every `daily` on this instance,
|
|
112
|
+
- `node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs tz` prints the timezone `daily` schedules actually use.
|
|
113
|
+
- `node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs tz Europe/Paris` pins it for every `daily` on this instance,
|
|
114
114
|
including the ones already scheduled (they're realigned immediately).
|
|
115
115
|
- `--tz Europe/Paris` on `add` pins one schedule only.
|
|
116
116
|
|
|
@@ -126,7 +126,7 @@ So check `tz` BEFORE scheduling a dated reminder, not after.
|
|
|
126
126
|
### Example — guarded monitoring (near-zero tokens)
|
|
127
127
|
|
|
128
128
|
```
|
|
129
|
-
node scripts/schedule.mjs add \
|
|
129
|
+
node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs add \
|
|
130
130
|
--schedule daily:09:00 \
|
|
131
131
|
--check "python3 $HOME/.claude/skills/google-ads/scripts/check_budget.py" \
|
|
132
132
|
--prompt "The monitoring detected a Google Ads budget anomaly. Write a clear, actionable alert for the team."
|
|
@@ -135,7 +135,7 @@ node scripts/schedule.mjs add \
|
|
|
135
135
|
### Example — plain recurring report (runs every time)
|
|
136
136
|
|
|
137
137
|
```
|
|
138
|
-
node scripts/schedule.mjs add --schedule daily:18:00 \
|
|
138
|
+
node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs add --schedule daily:18:00 \
|
|
139
139
|
--prompt "Review the day on the account and post a short summary."
|
|
140
140
|
```
|
|
141
141
|
|
package/dist/skill-paths.d.ts
CHANGED
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* So the base the docs/prompts name must be rewritten to where the skills were
|
|
16
16
|
* actually installed for THIS instance. Pure and tiny so it is unit-testable;
|
|
17
17
|
* the mode→base decision and the wiring live in `server.ts`.
|
|
18
|
+
*
|
|
19
|
+
* The other half of the rule is on the SHIPPED side, and it cannot be fixed
|
|
20
|
+
* here: a command written `node scripts/x.mjs` names no base at all, so there
|
|
21
|
+
* is nothing to rewrite — and the skill's directory is not the agent's cwd, so
|
|
22
|
+
* the agent has to invent an absolute path. It invents the conventional
|
|
23
|
+
* `~/.claude/skills/...`, which exists for the server user and for every
|
|
24
|
+
* mono-tenant install, and NOT in a dropped group agent's HOME. Measured: a
|
|
25
|
+
* group agent ran `node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs
|
|
26
|
+
* list` and got a bare MODULE_NOT_FOUND, with nothing in it naming the tier it
|
|
27
|
+
* should have read. Every shipped skill therefore spells the full
|
|
28
|
+
* `~/.claude/skills/<skill>/...` path, and `test/skill-paths.test.ts` refuses
|
|
29
|
+
* the next relative one.
|
|
18
30
|
*/
|
|
19
31
|
/** The literal base the shipped skill docs and prompts are written with. */
|
|
20
32
|
export declare const HOME_SKILLS_BASE = "~/.claude/skills";
|
package/dist/skill-paths.js
CHANGED
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* So the base the docs/prompts name must be rewritten to where the skills were
|
|
16
16
|
* actually installed for THIS instance. Pure and tiny so it is unit-testable;
|
|
17
17
|
* the mode→base decision and the wiring live in `server.ts`.
|
|
18
|
+
*
|
|
19
|
+
* The other half of the rule is on the SHIPPED side, and it cannot be fixed
|
|
20
|
+
* here: a command written `node scripts/x.mjs` names no base at all, so there
|
|
21
|
+
* is nothing to rewrite — and the skill's directory is not the agent's cwd, so
|
|
22
|
+
* the agent has to invent an absolute path. It invents the conventional
|
|
23
|
+
* `~/.claude/skills/...`, which exists for the server user and for every
|
|
24
|
+
* mono-tenant install, and NOT in a dropped group agent's HOME. Measured: a
|
|
25
|
+
* group agent ran `node ~/.claude/skills/shadok-scheduler/scripts/schedule.mjs
|
|
26
|
+
* list` and got a bare MODULE_NOT_FOUND, with nothing in it naming the tier it
|
|
27
|
+
* should have read. Every shipped skill therefore spells the full
|
|
28
|
+
* `~/.claude/skills/<skill>/...` path, and `test/skill-paths.test.ts` refuses
|
|
29
|
+
* the next relative one.
|
|
18
30
|
*/
|
|
19
31
|
/** The literal base the shipped skill docs and prompts are written with. */
|
|
20
32
|
export const HOME_SKILLS_BASE = "~/.claude/skills";
|
package/dist/skill-paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-paths.js","sourceRoot":"","sources":["../src/skill-paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"skill-paths.js","sourceRoot":"","sources":["../src/skill-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY,EAAE,IAAY;IAC1D,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,gBAAgB;QAAE,OAAO,IAAI,CAAC;IACpD,OAAO,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC"}
|