@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 +1 -1
- package/src/api-client.ts +2 -2
- package/src/login.runtime.ts +1 -1
- package/src/tools.ts +1 -1
package/package.json
CHANGED
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
|
-
|
|
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
|
}
|
package/src/login.runtime.ts
CHANGED
|
@@ -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.
|
|
126
|
+
message: "✅ ClawChat activated successfully.",
|
|
127
127
|
});
|
|
128
128
|
} catch (err) {
|
|
129
129
|
if (err instanceof ClawlingApiError) return apiError(err);
|