easyclaw-link 2.1.0 → 2.1.1

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 +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3140,8 +3140,9 @@ ${challenge.question}
3140
3140
  if (!options.json)
3141
3141
  console.log(" \u2705");
3142
3142
  const data = await regRes.json();
3143
- if (data.token) {
3144
- writeConfig({ apiKey: data.token });
3143
+ const autoApiKey = data.user?.api_key ?? data.token;
3144
+ if (autoApiKey) {
3145
+ writeConfig({ apiKey: autoApiKey });
3145
3146
  if (options.json) {
3146
3147
  console.log(JSON.stringify({ success: true, username: data.user?.username ?? username, logged_in: true }));
3147
3148
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyclaw-link",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "EasyClaw Link CLI - Publish and manage skills on easyclaw.link",
5
5
  "main": "dist/index.js",
6
6
  "bin": {