@clawchatsai/connector 0.0.32 → 0.0.33

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.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * Spec: specs/multitenant-p2p.md sections 6.1-6.2
11
11
  */
12
12
  export declare const PLUGIN_ID = "connector";
13
- export declare const PLUGIN_VERSION = "0.0.24";
13
+ export declare const PLUGIN_VERSION: string;
14
14
  interface PluginServiceContext {
15
15
  stateDir: string;
16
16
  logger: {
package/dist/index.js CHANGED
@@ -21,7 +21,9 @@ import { generateSessionSecret } from './session-token.js';
21
21
  // Inline from shared/api-version.ts to avoid rootDir conflict
22
22
  const CURRENT_API_VERSION = 1;
23
23
  export const PLUGIN_ID = 'connector';
24
- export const PLUGIN_VERSION = '0.0.24';
24
+ // Read version from package.json so it stays in sync with npm publishes
25
+ const _pkgJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, '..', 'package.json'), 'utf-8'));
26
+ export const PLUGIN_VERSION = _pkgJson.version;
25
27
  /** Max DataChannel message size (~256KB, leave room for envelope) */
26
28
  const MAX_DC_MESSAGE_SIZE = 256 * 1024;
27
29
  /** Active DataChannel connections: connectionId → send function */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawchatsai/connector",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "type": "module",
5
5
  "description": "ClawChats OpenClaw plugin — P2P tunnel + local API bridge",
6
6
  "main": "dist/index.js",