@clawchatsai/connector 0.0.31 → 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.31",
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",
package/server.js CHANGED
@@ -742,6 +742,9 @@ async function handleUpdateWorkspace(req, res, params) {
742
742
  if (body.icon !== undefined) {
743
743
  ws.workspaces[params.name].icon = body.icon;
744
744
  }
745
+ if (body.lastThread !== undefined) {
746
+ ws.workspaces[params.name].lastThread = body.lastThread;
747
+ }
745
748
  setWorkspaces(ws);
746
749
  send(res, 200, { workspace: ws.workspaces[params.name] });
747
750
  }
@@ -3176,6 +3179,7 @@ export function createApp(config = {}) {
3176
3179
  if (body.label !== undefined) ws.workspaces[params.name].label = body.label;
3177
3180
  if (body.color !== undefined) ws.workspaces[params.name].color = body.color;
3178
3181
  if (body.icon !== undefined) ws.workspaces[params.name].icon = body.icon;
3182
+ if (body.lastThread !== undefined) ws.workspaces[params.name].lastThread = body.lastThread;
3179
3183
  _setWorkspaces(ws);
3180
3184
  send(res, 200, { workspace: ws.workspaces[params.name] });
3181
3185
  }