@jiggai/recipes 0.2.15 → 0.2.16
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 +6 -0
- package/docs/INSTALLATION.md +7 -0
- package/index.ts +6 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,6 +15,12 @@ Once published:
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
openclaw plugins install @jiggai/recipes
|
|
18
|
+
|
|
19
|
+
# If you use a plugin allowlist (plugins.allow), you must explicitly trust it:
|
|
20
|
+
openclaw config get plugins.allow --json
|
|
21
|
+
# then add "recipes" and set it back, e.g.
|
|
22
|
+
openclaw config set plugins.allow --json '["memory-core","telegram","recipes"]'
|
|
23
|
+
|
|
18
24
|
openclaw gateway restart
|
|
19
25
|
openclaw plugins list
|
|
20
26
|
```
|
package/docs/INSTALLATION.md
CHANGED
|
@@ -15,6 +15,13 @@ Once published, you can install directly via npm:
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
openclaw plugins install @jiggai/recipes
|
|
18
|
+
|
|
19
|
+
# If you have plugins.allow set (plugin allowlist), you must explicitly add "recipes"
|
|
20
|
+
# or OpenClaw will refuse to load it.
|
|
21
|
+
openclaw config get plugins.allow --json
|
|
22
|
+
# then add "recipes" and set it back, e.g.
|
|
23
|
+
openclaw config set plugins.allow --json '["memory-core","telegram","recipes"]'
|
|
24
|
+
|
|
18
25
|
openclaw gateway restart
|
|
19
26
|
openclaw plugins list
|
|
20
27
|
```
|
package/index.ts
CHANGED
|
@@ -386,7 +386,12 @@ async function reconcileRecipeCronJobs(opts: {
|
|
|
386
386
|
const statePath = path.join(opts.scope.stateDir, "notes", "cron-jobs.json");
|
|
387
387
|
const state = await loadCronMappingState(statePath);
|
|
388
388
|
|
|
389
|
-
|
|
389
|
+
// Fast path: if we have no prior installed ids for these desired jobs, skip cron.list.
|
|
390
|
+
// cron.list can be slow/hang on some setups; we can still create jobs and record ids.
|
|
391
|
+
const desiredKeys = desired.map((j) => cronKey(opts.scope as any, j.id));
|
|
392
|
+
const hasAnyInstalled = desiredKeys.some((k) => Boolean(state.entries[k]?.installedCronId));
|
|
393
|
+
|
|
394
|
+
const list = hasAnyInstalled ? await cronList(opts.api) : { jobs: [] };
|
|
390
395
|
const byId = new Map((list?.jobs ?? []).map((j) => [j.id, j] as const));
|
|
391
396
|
|
|
392
397
|
const now = Date.now();
|
package/openclaw.plugin.json
CHANGED