@cfio/cohort-sync 0.21.0 → 0.23.0

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
@@ -6,6 +6,9 @@ var __export = (target, all) => {
6
6
 
7
7
  var define_process_env_default = {};
8
8
 
9
+ // index.ts
10
+ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
11
+
9
12
  // ../../node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
10
13
  var value_exports = {};
11
14
  __export(value_exports, {
@@ -13423,7 +13426,7 @@ function dumpCtx(ctx) {
13423
13426
  function dumpEvent(event) {
13424
13427
  return dumpCtx(event);
13425
13428
  }
13426
- var PLUGIN_VERSION = true ? "0.21.0" : "unknown";
13429
+ var PLUGIN_VERSION = true ? "0.23.0" : "unknown";
13427
13430
  function resolveGatewayToken(api) {
13428
13431
  const token = api.config?.gateway?.auth?.token;
13429
13432
  return typeof token === "string" ? token : null;
@@ -14347,7 +14350,7 @@ function textResult(text, details) {
14347
14350
  return { content: [{ type: "text", text }], details: details ?? void 0 };
14348
14351
  }
14349
14352
  var sharedHookState = null;
14350
- var plugin = {
14353
+ var plugin = definePluginEntry({
14351
14354
  id: "cohort-sync",
14352
14355
  name: "Cohort Sync",
14353
14356
  description: "Syncs agent status and skills to Cohort dashboard",
@@ -14647,7 +14650,7 @@ Do not attempt more comments until tomorrow.`);
14647
14650
  }
14648
14651
  });
14649
14652
  }
14650
- };
14653
+ });
14651
14654
  var index_default = plugin;
14652
14655
  export {
14653
14656
  index_default as default
@@ -1,5 +1,11 @@
1
1
  {
2
2
  "id": "cohort-sync",
3
+ "activation": {
4
+ "onStartup": true,
5
+ "onCapabilities": [
6
+ "hook"
7
+ ]
8
+ },
3
9
  "uiHints": {
4
10
  "apiUrl": {
5
11
  "label": "Cohort API URL",
@@ -55,5 +61,5 @@
55
61
  }
56
62
  }
57
63
  },
58
- "version": "0.21.0"
64
+ "version": "0.23.0"
59
65
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfio/cohort-sync",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "OpenClaw plugin — syncs agent telemetry, sessions, and activity to the Cohort dashboard",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "id": "cohort-sync",
3
+ "activation": {
4
+ "onStartup": true,
5
+ "onCapabilities": ["hook"]
6
+ },
3
7
  "uiHints": {
4
8
  "apiUrl": {
5
9
  "label": "Cohort API URL",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfio/cohort-sync",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
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",