feat: 大规模清理 claude 的类型问题及依赖

This commit is contained in:
claude-code-best
2026-03-31 22:21:35 +08:00
parent 2c759fe6fa
commit 4c0a655a1c
38 changed files with 1154 additions and 718 deletions

View File

@@ -522,7 +522,7 @@ export const getPluginCommands = memoize(async (): Promise<Command[]> => {
// Convert metadata.source (relative to plugin root) to absolute path for comparison
for (const [name, metadata] of Object.entries(
plugin.commandsMetadata,
)) {
) as [string, CommandMetadata][]) {
if (metadata.source) {
const fullMetadataPath = join(
plugin.path,
@@ -607,7 +607,7 @@ export const getPluginCommands = memoize(async (): Promise<Command[]> => {
if (plugin.commandsMetadata) {
for (const [name, metadata] of Object.entries(
plugin.commandsMetadata,
)) {
) as [string, CommandMetadata][]) {
// Only process entries with inline content (no source)
if (metadata.content && !metadata.source) {
try {