@cfio/cohort-sync 0.10.2 → 0.10.3

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
@@ -13381,7 +13381,7 @@ function dumpCtx(ctx) {
13381
13381
  function dumpEvent(event) {
13382
13382
  return dumpCtx(event);
13383
13383
  }
13384
- var PLUGIN_VERSION = true ? "0.10.2" : "unknown";
13384
+ var PLUGIN_VERSION = true ? "0.10.3" : "unknown";
13385
13385
  var _gatewayStartHandler = null;
13386
13386
  async function handleGatewayStart(event) {
13387
13387
  if (_gatewayStartHandler) {
@@ -13543,6 +13543,11 @@ function registerHooks(api, cfg) {
13543
13543
  initGatewayClient(gatewayPort, gatewayToken, cfg, resolveAgentName, logger);
13544
13544
  }
13545
13545
  const cronStorePath = api.config?.cron?.store ?? path2.join(os2.homedir(), ".openclaw", "cron", "jobs.json");
13546
+ for (const eventType of ["agent", "session", "command", "gateway", "message"]) {
13547
+ api.registerHook(eventType, async (event) => {
13548
+ logger.info(`cohort-sync: [DIAG] event=${eventType} action=${event?.action} sessionKey=${event?.sessionKey} ctxKeys=${Object.keys(event?.context ?? {}).join(",")}`);
13549
+ }, { name: `cohort-sync.diag-${eventType}`, description: `Diagnostic: catch all ${eventType} events` });
13550
+ }
13546
13551
  logger.info(`cohort-sync: registerHooks v${PLUGIN_VERSION}`);
13547
13552
  logger.info("cohort-sync: hooks registered", {
13548
13553
  PLUGIN_VERSION,
@@ -55,5 +55,5 @@
55
55
  }
56
56
  }
57
57
  },
58
- "version": "0.10.2"
58
+ "version": "0.10.3"
59
59
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfio/cohort-sync",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "OpenClaw plugin — syncs agent telemetry, sessions, and activity to the 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.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "OpenClaw plugin — syncs agent telemetry, sessions, and activity to the Cohort dashboard",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.cohort.bot/gateway",