@cfio/cohort-sync 0.4.4 → 0.4.5
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/dist/index.js +14 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11951,6 +11951,11 @@ function fetchSkills(logger) {
|
|
|
11951
11951
|
function fetchCronJobs(logger) {
|
|
11952
11952
|
try {
|
|
11953
11953
|
const storePath = path.join(os.homedir(), ".openclaw", "cron", "jobs.json");
|
|
11954
|
+
logger.info(`cohort-sync: reading cron store from ${storePath} (homedir=${os.homedir()})`);
|
|
11955
|
+
if (!fs.existsSync(storePath)) {
|
|
11956
|
+
logger.warn(`cohort-sync: cron store not found at ${storePath}`);
|
|
11957
|
+
return null;
|
|
11958
|
+
}
|
|
11954
11959
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
11955
11960
|
const parsed = JSON.parse(raw);
|
|
11956
11961
|
const jobs = Array.isArray(parsed?.jobs) ? parsed.jobs : [];
|
|
@@ -12845,6 +12850,15 @@ function registerHooks(api, cfg) {
|
|
|
12845
12850
|
agentIds: (config?.agents?.list ?? []).map((a) => a.id),
|
|
12846
12851
|
agentMessageProviders: (config?.agents?.list ?? []).map((a) => ({ id: a.id, mp: a.messageProvider }))
|
|
12847
12852
|
});
|
|
12853
|
+
diag("CONFIG_DUMP", {
|
|
12854
|
+
configKeys: config ? Object.keys(config) : [],
|
|
12855
|
+
cronKeys: config?.cron ? Object.keys(config.cron) : [],
|
|
12856
|
+
hasCronService: typeof config?.cron?.list === "function",
|
|
12857
|
+
hasCronJobs: !!config?.cron?.jobs,
|
|
12858
|
+
cronStorePath: config?.cron?.storePath ?? null,
|
|
12859
|
+
apiKeys: api ? Object.keys(api).filter((k) => typeof api[k] !== "function") : [],
|
|
12860
|
+
apiMethods: api ? Object.keys(api).filter((k) => typeof api[k] === "function") : []
|
|
12861
|
+
});
|
|
12848
12862
|
setConvexUrl(cfg);
|
|
12849
12863
|
setLogger(logger);
|
|
12850
12864
|
restoreFromHotReload(logger);
|
package/dist/package.json
CHANGED