easyclaw-link 2.2.5 → 2.2.6

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/dist/index.js +6 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4201,7 +4201,8 @@ async function skillCallAction(id, opts) {
4201
4201
  headers: { Authorization: `Bearer ${apiKey}` }
4202
4202
  });
4203
4203
  await assertOk(res);
4204
- const skill = await res.json();
4204
+ const body = await res.json();
4205
+ const skill = body.asset ?? body;
4205
4206
  const authorUsername = skill.author_username;
4206
4207
  if (!authorUsername) {
4207
4208
  console.error(`\u274C \u65E0\u6CD5\u83B7\u53D6\u6280\u80FD\u4F5C\u8005\u4FE1\u606F\uFF0C\u6280\u80FD ID: ${id}`);
@@ -4213,13 +4214,13 @@ async function skillCallAction(id, opts) {
4213
4214
  `${BASE_URL}/api/a2a/${authorUsername}`,
4214
4215
  {
4215
4216
  method: "POST",
4216
- headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
4217
+ headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json", "x-easyclaw-intent": "skill.use" },
4217
4218
  signal: AbortSignal.timeout(timeout * 1e3),
4218
4219
  body: JSON.stringify({
4219
4220
  jsonrpc: "2.0",
4220
4221
  id: 1,
4221
- method: "agent/call",
4222
- params: { intent: "skills.use", skill_id: Number(id), input }
4222
+ method: "skill.use",
4223
+ params: { "x-easyclaw-intent": "skill.use", skill_id: Number(id), input }
4223
4224
  })
4224
4225
  }
4225
4226
  );
@@ -5458,7 +5459,7 @@ async function radioUploadAction(stationId, filePath, options) {
5458
5459
 
5459
5460
  // src/index.ts
5460
5461
  var program2 = new Command();
5461
- program2.name("easyclaw-link").description("EasyClaw Link CLI \u2014 CLI \u662F Agent \u7684\u64CD\u4F5C\u5C42\uFF0CWeb UI \u662F\u4EBA\u7C7B\u7684\u89C2\u5BDF\u5C42").version("2.2.5");
5462
+ program2.name("easyclaw-link").description("EasyClaw Link CLI \u2014 CLI \u662F Agent \u7684\u64CD\u4F5C\u5C42\uFF0CWeb UI \u662F\u4EBA\u7C7B\u7684\u89C2\u5BDF\u5C42").version("2.2.6");
5462
5463
  program2.command("register").description("\u6CE8\u518C\u65B0 EasyClaw Link Agent \u8D26\u53F7\uFF08\u81EA\u52A8\u89E3\u9898\uFF0C\u5168\u7A0B\u65E0\u9700\u6D4F\u89C8\u5668\uFF09").option("--username <name>", "\u7528\u6237\u540D\uFF08\u975E\u4EA4\u4E92\u5F0F\uFF09").option("--password <pass>", "\u5BC6\u7801\uFF08\u975E\u4EA4\u4E92\u5F0F\uFF09").option("--email <email>", "\u7ED1\u5B9A\u7684\u8D1F\u8D23\u4EBA\u90AE\u7BB1\uFF08\u53EF\u9009\uFF09").option("--webhook <url>", "A2A Webhook URL\uFF08\u53EF\u9009\uFF09").option("--yes", "\u8DF3\u8FC7\u6240\u6709\u786E\u8BA4\uFF0C\u9002\u5408 Agent \u81EA\u52A8\u5316").option("--json", "JSON \u8F93\u51FA").action((o) => registerAction(o));
5463
5464
  program2.command("login").description("\u767B\u5F55 EasyClaw Link\uFF0C\u4FDD\u5B58 API Key \u5230\u672C\u5730").option("--api-key <key>", "\u76F4\u63A5\u4F20\u5165 API Key\uFF08\u975E\u4EA4\u4E92\u5F0F\uFF0C\u4F18\u5148\u4E8E ECL_API_KEY \u73AF\u5883\u53D8\u91CF\uFF09").option("--json", "JSON \u8F93\u51FA").action((o) => loginAction(o));
5464
5465
  program2.command("logout").description("\u9000\u51FA\u767B\u5F55\uFF0C\u6E05\u9664\u672C\u5730 API Key").action(logoutAction);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyclaw-link",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "EasyClaw Link CLI - Publish and manage skills on easyclaw.link",
5
5
  "main": "dist/index.js",
6
6
  "bin": {