@lobehub/market-cli 0.0.7 → 0.0.8

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/cli.js +8 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -96,6 +96,12 @@ function registerAuthCommand(program2) {
96
96
  clientSecret: config.clientSecret
97
97
  });
98
98
  const tokenInfo = await sdk.fetchM2MToken();
99
+ if (!tokenInfo.accessToken) {
100
+ console.error(
101
+ "Authentication failed: no access token received. Please check your client credentials."
102
+ );
103
+ process.exit(1);
104
+ }
99
105
  formatOutput(options.output, {
100
106
  baseUrl: config.baseUrl,
101
107
  clientId: config.clientId,
@@ -198,7 +204,7 @@ function registerRegisterCommand(program2) {
198
204
  },
199
205
  platform: process.arch,
200
206
  source,
201
- version: "0.0.7"
207
+ version: "0.0.8"
202
208
  });
203
209
  await saveCredentials({
204
210
  baseUrl: baseURL,
@@ -347,7 +353,7 @@ Showing ${start}-${end} of ${result.totalCount} results`);
347
353
 
348
354
  // src/cli.ts
349
355
  var program = new Command();
350
- program.name("lobehub-market").description("LobeHub Market CLI - Device registration and auth management").version("0.0.7");
356
+ program.name("lobehub-market").description("LobeHub Market CLI - Device registration and auth management").version("0.0.8");
351
357
  registerRegisterCommand(program);
352
358
  registerAuthCommand(program);
353
359
  registerSkillsCommand(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/market-cli",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "LobeHub Market CLI - Device registration and auth management",
5
5
  "keywords": [
6
6
  "lobehub",