skillhub/cli/src/shared/constants.ts
dongmucat bdc94ad19c fix(publish): address code review findings for dry-run
- Exit non-zero (code 6) when --dry-run validation fails, enabling
  CI/CD pipeline integration
- Add archived skill check: dry-run now detects when the publisher's
  own skill is archived
- Add version-exists check: dry-run now detects when the resolved
  version is already published
- Use StandardCharsets.UTF_8 for SKILL.md content parsing
2026-05-18 10:57:14 +08:00

13 lines
333 B
TypeScript

import { PKG_NAME, PKG_VERSION } from '../generated/pkg-info'
export const DEFAULT_REGISTRY = 'https://skill.xfyun.cn'
export const CLI_VERSION: string = PKG_VERSION
export const CLI_PACKAGE_NAME: string = PKG_NAME
export const EXIT = {
generic: 1,
auth: 2,
network: 3,
filesystem: 4,
usage: 5,
validation: 6
} as const