@clawchatsai/connector 0.0.31 → 0.0.32

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawchatsai/connector",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
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
  }