@cfio/cohort-sync 0.4.6 → 0.4.8

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 CHANGED
@@ -89,6 +89,7 @@ var init_keychain = __esm({
89
89
 
90
90
  // src/hooks.ts
91
91
  import fs2 from "node:fs";
92
+ import os2 from "node:os";
92
93
  import path2 from "node:path";
93
94
 
94
95
  // ../../node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
@@ -7633,14 +7634,14 @@ var require_node_gyp_build = __commonJS({
7633
7634
  "../common/temp/node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/node-gyp-build.js"(exports, module) {
7634
7635
  var fs3 = __require("fs");
7635
7636
  var path3 = __require("path");
7636
- var os2 = __require("os");
7637
+ var os3 = __require("os");
7637
7638
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
7638
7639
  var vars = process.config && process.config.variables || {};
7639
7640
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
7640
7641
  var abi = process.versions.modules;
7641
7642
  var runtime = isElectron() ? "electron" : isNwjs() ? "node-webkit" : "node";
7642
- var arch = process.env.npm_config_arch || os2.arch();
7643
- var platform = process.env.npm_config_platform || os2.platform();
7643
+ var arch = process.env.npm_config_arch || os3.arch();
7644
+ var platform = process.env.npm_config_platform || os3.platform();
7644
7645
  var libc = process.env.LIBC || (isAlpine(platform) ? "musl" : "glibc");
7645
7646
  var armv = process.env.ARM_VERSION || (arch === "arm64" ? "8" : vars.arm_version) || "";
7646
7647
  var uv = (process.versions.uv || "").split(".")[0];
@@ -12853,18 +12854,9 @@ function registerHooks(api, cfg) {
12853
12854
  agentIds: (config?.agents?.list ?? []).map((a) => a.id),
12854
12855
  agentMessageProviders: (config?.agents?.list ?? []).map((a) => ({ id: a.id, mp: a.messageProvider }))
12855
12856
  });
12856
- const resolvedCronPath = typeof api.resolvePath === "function" ? api.resolvePath("cron/jobs.json") : null;
12857
- const runtimeKeys = api.runtime ? Object.keys(api.runtime) : [];
12858
- const runtimeMethods = api.runtime ? Object.keys(api.runtime).filter((k) => typeof api.runtime[k] === "function") : [];
12859
- diag("CONFIG_DUMP", {
12860
- resolvedCronPath,
12861
- cronPathExists: resolvedCronPath ? fs2.existsSync(resolvedCronPath) : false,
12862
- runtimeKeys,
12863
- runtimeMethods
12864
- });
12865
- if (resolvedCronPath && typeof resolvedCronPath === "string") {
12866
- setCronStorePath(resolvedCronPath);
12867
- }
12857
+ const cronPath = path2.join(os2.homedir(), ".openclaw", "cron", "jobs.json");
12858
+ setCronStorePath(cronPath);
12859
+ diag("CRON_STORE_PATH", { cronPath, exists: fs2.existsSync(cronPath) });
12868
12860
  setConvexUrl(cfg);
12869
12861
  setLogger(logger);
12870
12862
  restoreFromHotReload(logger);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfio/cohort-sync",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Syncs agent status and skills to Cohort dashboard",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfio/cohort-sync",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Syncs agent status and skills to Cohort dashboard",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.cohort.bot/gateway",