@lobehub/market-cli 0.0.8 → 0.0.9

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 +15 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -204,7 +204,7 @@ function registerRegisterCommand(program2) {
204
204
  },
205
205
  platform: process.arch,
206
206
  source,
207
- version: "0.0.8"
207
+ version: "0.0.9"
208
208
  });
209
209
  await saveCredentials({
210
210
  baseUrl: baseURL,
@@ -264,6 +264,16 @@ function renderTable(columns, rows) {
264
264
  }
265
265
 
266
266
  // src/commands/skills.ts
267
+ var SELF_SKILL_IDENTIFIER = "lobehub-skills-search-engine";
268
+ var SELF_SKILL_INSTALL_ERROR = `"${SELF_SKILL_IDENTIFIER}" is the skill that powers this CLI itself and cannot be installed via this command.
269
+
270
+ Install it manually:
271
+
272
+ SKILL_DIR=~/.claude/skills/${SELF_SKILL_IDENTIFIER} # adjust path for your agent
273
+ mkdir -p "$SKILL_DIR/references"
274
+ curl -s https://market.lobehub.com/s/skills > "$SKILL_DIR/SKILL.md"
275
+ curl -s https://market.lobehub.com/s/skills/references/skills-search > "$SKILL_DIR/references/skills-search.md"
276
+ curl -s https://market.lobehub.com/s/skills/references/skills-install > "$SKILL_DIR/references/skills-install.md"`;
267
277
  function createSDK() {
268
278
  const config = resolveConfig();
269
279
  if (!config.clientId || !config.clientSecret) {
@@ -333,6 +343,9 @@ Showing ${start}-${end} of ${result.totalCount} results`);
333
343
  });
334
344
  skills.command("install <identifier>").description("Download a skill package").option("--version <version>", "Specific version to download").option("--output <path>", "Output file path (defaults to current directory)").action(async (identifier, options) => {
335
345
  try {
346
+ if (identifier === SELF_SKILL_IDENTIFIER) {
347
+ throw new Error(SELF_SKILL_INSTALL_ERROR);
348
+ }
336
349
  const sdk = createSDK();
337
350
  console.log(
338
351
  `Downloading skill: ${identifier}${options.version ? `@${options.version}` : ""}...`
@@ -353,7 +366,7 @@ Showing ${start}-${end} of ${result.totalCount} results`);
353
366
 
354
367
  // src/cli.ts
355
368
  var program = new Command();
356
- program.name("lobehub-market").description("LobeHub Market CLI - Device registration and auth management").version("0.0.8");
369
+ program.name("lobehub-market").description("LobeHub Market CLI - Device registration and auth management").version("0.0.9");
357
370
  registerRegisterCommand(program);
358
371
  registerAuthCommand(program);
359
372
  registerSkillsCommand(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/market-cli",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "LobeHub Market CLI - Device registration and auth management",
5
5
  "keywords": [
6
6
  "lobehub",