fix: address dsh badge review feedback

This commit is contained in:
Turtle
2026-08-06 18:54:53 +08:00
parent 928c99876e
commit 4dede454ed
18 changed files with 48 additions and 35 deletions

View File

@@ -7,14 +7,14 @@
import { readFile } from 'node:fs/promises'
import { fileURLToPath } from 'node:url'
import type { Context } from 'cordis'
import type {
SkillCandidate,
SkillDefinition,
SkillProvider,
import {
BUNDLED_SKILL_RANK,
type SkillCandidate,
type SkillDefinition,
type SkillProvider,
} from '@deepseek-ai/dsh-skill'
const PROVIDER_NAME = 'dsh-badge'
const BUNDLED_RANK = 600
const SKILL_BODY_URL = new URL('../assets/dsh-badge.md', import.meta.url)
const RESOURCE_BASE = {
kind: 'directory',
@@ -29,7 +29,7 @@ const CANDIDATE: SkillCandidate = {
provider: PROVIDER_NAME,
source: 'bundled',
resourceBase: RESOURCE_BASE,
rank: BUNDLED_RANK,
rank: BUNDLED_SKILL_RANK,
locator: SKILL_BODY_URL,
}