@newbase-clawchat/openclaw-clawchat 2026.4.20 → 2026.4.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newbase-clawchat/openclaw-clawchat",
3
- "version": "2026.4.20",
3
+ "version": "2026.4.21",
4
4
  "description": "OpenClaw ClawChat channel plugin",
5
5
  "files": [
6
6
  "index.ts",
package/src/api-client.ts CHANGED
@@ -32,7 +32,7 @@ export interface OpenclawClawlingApiClient {
32
32
  */
33
33
  agentsConnect(params: {
34
34
  /** The invite code entered by the operator. */
35
- inviteCode: string;
35
+ code: string;
36
36
  /** Platform the agent is attaching from (e.g. "openclaw"). */
37
37
  platform: string;
38
38
  /** Agent type tag (e.g. "bot"). */
@@ -179,7 +179,7 @@ export function createOpenclawClawlingApiClient(opts: ApiClientOptions): Opencla
179
179
  },
180
180
  );
181
181
  },
182
- async agentsConnect({ inviteCode, platform, type }): Promise<AgentConnectResult> {
182
+ async agentsConnect({ code: inviteCode, platform, type }): Promise<AgentConnectResult> {
183
183
  if (!inviteCode?.trim()) {
184
184
  throw new ClawlingApiError("validation", "agentsConnect: inviteCode is required");
185
185
  }
@@ -94,7 +94,7 @@ export async function runOpenclawClawlingLogin(params: LoginParams): Promise<voi
94
94
  let result;
95
95
  try {
96
96
  result = await apiClient.agentsConnect({
97
- inviteCode,
97
+ code: inviteCode,
98
98
  platform: AGENTS_CONNECT_PLATFORM,
99
99
  type: AGENTS_CONNECT_TYPE,
100
100
  });
package/src/tools.ts CHANGED
@@ -123,7 +123,7 @@ export function registerOpenclawClawlingTools(api: OpenClawPluginApi): void {
123
123
  });
124
124
  return jsonResponse({
125
125
  ok: true,
126
- message: "ClawChat activated successfully. Need to Restart Gateway for changes to take effect. You can now use clawchat_* tools.",
126
+ message: "ClawChat activated successfully.",
127
127
  });
128
128
  } catch (err) {
129
129
  if (err instanceof ClawlingApiError) return apiError(err);