@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 +6 -1
- package/dist/openclaw.plugin.json +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
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.
|
|
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,
|
package/dist/package.json
CHANGED
package/package.json
CHANGED