@xiashe/skill 0.1.20 → 0.1.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.
@@ -8,7 +8,7 @@ import path from 'node:path';
8
8
  import { promisify } from 'node:util';
9
9
  import { gzip } from 'node:zlib';
10
10
 
11
- const VERSION = '0.1.20';
11
+ const VERSION = '0.1.21';
12
12
  const COMMAND_NAME = process.env.XIASHE_SKILL_CLI_NAME || 'xiashe-skill';
13
13
  const PRODUCT_NAME = process.env.XIASHE_SKILL_PRODUCT_NAME || (COMMAND_NAME === 'agentpie-skill' ? 'AgentPie' : 'XiaShe');
14
14
  const REGISTRY_PROVIDER = process.env.XIASHE_SKILL_REGISTRY_PROVIDER || (COMMAND_NAME === 'agentpie-skill' ? 'agentpie' : 'xiashe');
@@ -266,6 +266,7 @@ Options:
266
266
  --signing-secret <secret> Optional HMAC secret for signed runtime events.
267
267
  --source-url <url> User-provided source URL an Agent can use during third-party upload.
268
268
  --package-url <url> Deprecated alias for --source-url.
269
+ --skill-version <version> Override the Skill release version without editing package.json.
269
270
  --package-upload-url <url> Package upload ticket endpoint. Defaults to ${DEFAULT_PACKAGE_UPLOAD_URL}
270
271
  --package-artifact-url <url> Package artifact attach endpoint. Defaults to ${DEFAULT_PACKAGE_ARTIFACT_URL}
271
272
  --out <path> Output prompt or snippet file.
@@ -676,7 +677,7 @@ async function inferSkillMetadata(root, flags = {}) {
676
677
  name,
677
678
  skillKey: safeSkillKey(flags['skill-key'] || manifest?.skillKey || packageJson?.name || name),
678
679
  description: normalizeText(flags.description || manifest?.description || packageJson?.description || firstParagraph || '', 500),
679
- version: normalizeText(flags.version || manifest?.version || packageJson?.version || '0.1.0', 80),
680
+ version: normalizeText(flags['skill-version'] || packageJson?.version || manifest?.version || '0.1.0', 80),
680
681
  registry: manifest?.registry || null
681
682
  };
682
683
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiashe/skill",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "xiashe-skill": "bin/xiashe-skill.mjs"