chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export declare function parseAllowedTools(allowedTools: string | string[] | undefined): string[] | undefined;
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { SkillScope, LoadedSkill } from "./types";
|
||||
import type { SkillMcpConfig } from "../skill-mcp-manager/types";
|
||||
export declare function mapWithConcurrency<T, R>(items: T[], mapper: (item: T) => Promise<R>, concurrency: number): Promise<R[]>;
|
||||
export declare function loadMcpJsonFromDirAsync(skillDir: string): Promise<SkillMcpConfig | undefined>;
|
||||
export declare function loadSkillFromPathAsync(skillPath: string, resolvedPath: string, defaultName: string, scope: SkillScope): Promise<LoadedSkill | null>;
|
||||
export declare function discoverSkillsInDirAsync(skillsDir: string): Promise<LoadedSkill[]>;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { LoadedSkill, SkillScope } from "./types";
|
||||
export declare function discoverAllSkillsBlocking(dirs: string[], scopes: SkillScope[]): LoadedSkill[];
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { SkillsConfig } from "../../config/schema";
|
||||
import type { LoadedSkill } from "./types";
|
||||
export declare function normalizePathForGlob(path: string): string;
|
||||
export declare function discoverConfigSourceSkills(options: {
|
||||
config: SkillsConfig | undefined;
|
||||
configDir: string;
|
||||
}): Promise<LoadedSkill[]>;
|
||||
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1,2 @@
|
||||
import { type GitMasterConfig } from "../../config/schema";
|
||||
export declare function injectGitMasterConfig(template: string, config?: GitMasterConfig): string;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
export * from "./types";
|
||||
export * from "./loader";
|
||||
export * from "./merger";
|
||||
export * from "./skill-content";
|
||||
export * from "./skill-directory-loader";
|
||||
export * from "./loaded-skill-from-path";
|
||||
export * from "./skill-mcp-config";
|
||||
export * from "./skill-deduplication";
|
||||
export * from "./skill-definition-record";
|
||||
export * from "./git-master-template-injection";
|
||||
export * from "./skill-discovery";
|
||||
export * from "./skill-resolution-options";
|
||||
export * from "./loaded-skill-template-extractor";
|
||||
export * from "./skill-template-resolver";
|
||||
export * from "./config-source-discovery";
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { SkillScope, LoadedSkill } from "./types";
|
||||
export declare function loadSkillFromPath(options: {
|
||||
skillPath: string;
|
||||
resolvedPath: string;
|
||||
defaultName: string;
|
||||
scope: SkillScope;
|
||||
namePrefix?: string;
|
||||
}): Promise<LoadedSkill | null>;
|
||||
export declare function inferSkillNameFromFileName(filePath: string): string;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { LoadedSkill } from "./types";
|
||||
export declare function extractSkillTemplate(skill: LoadedSkill): string;
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import type { CommandDefinition } from "../claude-code-command-loader/types";
|
||||
import type { LoadedSkill } from "./types";
|
||||
export declare function loadUserSkills(): Promise<Record<string, CommandDefinition>>;
|
||||
export declare function loadProjectSkills(directory?: string): Promise<Record<string, CommandDefinition>>;
|
||||
export declare function loadOpencodeGlobalSkills(): Promise<Record<string, CommandDefinition>>;
|
||||
export declare function loadOpencodeProjectSkills(directory?: string): Promise<Record<string, CommandDefinition>>;
|
||||
export interface DiscoverSkillsOptions {
|
||||
includeClaudeCodePaths?: boolean;
|
||||
directory?: string;
|
||||
}
|
||||
export declare function discoverAllSkills(directory?: string): Promise<LoadedSkill[]>;
|
||||
export declare function discoverSkills(options?: DiscoverSkillsOptions): Promise<LoadedSkill[]>;
|
||||
export declare function getSkillByName(name: string, options?: DiscoverSkillsOptions): Promise<LoadedSkill | undefined>;
|
||||
export declare function discoverUserClaudeSkills(): Promise<LoadedSkill[]>;
|
||||
export declare function discoverProjectClaudeSkills(directory?: string): Promise<LoadedSkill[]>;
|
||||
export declare function discoverOpencodeGlobalSkills(): Promise<LoadedSkill[]>;
|
||||
export declare function discoverOpencodeProjectSkills(directory?: string): Promise<LoadedSkill[]>;
|
||||
export declare function discoverProjectAgentsSkills(directory?: string): Promise<LoadedSkill[]>;
|
||||
export declare function discoverGlobalAgentsSkills(): Promise<LoadedSkill[]>;
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { LoadedSkill } from "./types";
|
||||
import type { SkillsConfig } from "../../config/schema";
|
||||
import type { BuiltinSkill } from "../builtin-skills/types";
|
||||
export interface MergeSkillsOptions {
|
||||
configDir?: string;
|
||||
}
|
||||
export declare function mergeSkills(builtinSkills: BuiltinSkill[], config: SkillsConfig | undefined, configSourceSkills: LoadedSkill[], userClaudeSkills: LoadedSkill[], userOpencodeSkills: LoadedSkill[], projectClaudeSkills: LoadedSkill[], projectOpencodeSkills: LoadedSkill[], options?: MergeSkillsOptions): LoadedSkill[];
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { BuiltinSkill } from "../../builtin-skills/types";
|
||||
import type { LoadedSkill } from "../types";
|
||||
export declare function builtinToLoadedSkill(builtin: BuiltinSkill): LoadedSkill;
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { LoadedSkill } from "../types";
|
||||
import type { SkillDefinition } from "../../../config/schema";
|
||||
export declare function configEntryToLoadedSkill(name: string, entry: SkillDefinition, configDir?: string): LoadedSkill | null;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { SkillScope } from "../types";
|
||||
export declare const SCOPE_PRIORITY: Record<SkillScope, number>;
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { LoadedSkill } from "../types";
|
||||
import type { SkillDefinition } from "../../../config/schema";
|
||||
export declare function mergeSkillDefinitions(base: LoadedSkill, patch: SkillDefinition): LoadedSkill;
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { SkillsConfig, SkillDefinition } from "../../../config/schema";
|
||||
export declare function normalizeSkillsConfig(config: SkillsConfig | undefined): {
|
||||
sources: Array<string | {
|
||||
path: string;
|
||||
recursive?: boolean;
|
||||
glob?: string;
|
||||
}>;
|
||||
enable: string[];
|
||||
disable: string[];
|
||||
entries: Record<string, boolean | SkillDefinition>;
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
export type { SkillResolutionOptions } from "./skill-resolution-options";
|
||||
export { clearSkillCache, getAllSkills } from "./skill-discovery";
|
||||
export { extractSkillTemplate } from "./loaded-skill-template-extractor";
|
||||
export { injectGitMasterConfig } from "./git-master-template-injection";
|
||||
export { resolveSkillContent, resolveMultipleSkills, resolveSkillContentAsync, resolveMultipleSkillsAsync, } from "./skill-template-resolver";
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { LoadedSkill } from "./types";
|
||||
export declare function deduplicateSkillsByName(skills: LoadedSkill[]): LoadedSkill[];
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { CommandDefinition } from "../claude-code-command-loader/types";
|
||||
import type { LoadedSkill } from "./types";
|
||||
export declare function skillsToCommandDefinitionRecord(skills: LoadedSkill[]): Record<string, CommandDefinition>;
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { LoadedSkill, SkillScope } from "./types";
|
||||
export declare function loadSkillsFromDir(options: {
|
||||
skillsDir: string;
|
||||
scope: SkillScope;
|
||||
namePrefix?: string;
|
||||
depth?: number;
|
||||
maxDepth?: number;
|
||||
}): Promise<LoadedSkill[]>;
|
||||
@@ -0,0 +1,4 @@
|
||||
import type { LoadedSkill } from "./types";
|
||||
import type { SkillResolutionOptions } from "./skill-resolution-options";
|
||||
export declare function clearSkillCache(): void;
|
||||
export declare function getAllSkills(options?: SkillResolutionOptions): Promise<LoadedSkill[]>;
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { SkillMcpConfig } from "../skill-mcp-manager/types";
|
||||
export declare function parseSkillMcpConfigFromFrontmatter(content: string): SkillMcpConfig | undefined;
|
||||
export declare function loadMcpJsonFromDir(skillDir: string): Promise<SkillMcpConfig | undefined>;
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { BrowserAutomationProvider, GitMasterConfig } from "../../config/schema";
|
||||
export interface SkillResolutionOptions {
|
||||
gitMasterConfig?: GitMasterConfig;
|
||||
browserProvider?: BrowserAutomationProvider;
|
||||
disabledSkills?: Set<string>;
|
||||
/** Project directory to discover project-level skills from. Falls back to process.cwd() if not provided. */
|
||||
directory?: string;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { SkillResolutionOptions } from "./skill-resolution-options";
|
||||
export declare function resolveSkillContent(skillName: string, options?: SkillResolutionOptions): string | null;
|
||||
export declare function resolveMultipleSkills(skillNames: string[], options?: SkillResolutionOptions): {
|
||||
resolved: Map<string, string>;
|
||||
notFound: string[];
|
||||
};
|
||||
export declare function resolveSkillContentAsync(skillName: string, options?: SkillResolutionOptions): Promise<string | null>;
|
||||
export declare function resolveMultipleSkillsAsync(skillNames: string[], options?: SkillResolutionOptions): Promise<{
|
||||
resolved: Map<string, string>;
|
||||
notFound: string[];
|
||||
}>;
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
import type { CommandDefinition } from "../claude-code-command-loader/types";
|
||||
import type { SkillMcpConfig } from "../skill-mcp-manager/types";
|
||||
export type SkillScope = "builtin" | "config" | "user" | "project" | "opencode" | "opencode-project";
|
||||
export interface SkillMetadata {
|
||||
name?: string;
|
||||
description?: string;
|
||||
model?: string;
|
||||
"argument-hint"?: string;
|
||||
agent?: string;
|
||||
subtask?: boolean;
|
||||
license?: string;
|
||||
compatibility?: string;
|
||||
metadata?: Record<string, string>;
|
||||
"allowed-tools"?: string | string[];
|
||||
mcp?: SkillMcpConfig;
|
||||
}
|
||||
export interface LazyContentLoader {
|
||||
loaded: boolean;
|
||||
content?: string;
|
||||
load: () => Promise<string>;
|
||||
}
|
||||
export interface LoadedSkill {
|
||||
name: string;
|
||||
path?: string;
|
||||
resolvedPath?: string;
|
||||
definition: CommandDefinition;
|
||||
scope: SkillScope;
|
||||
license?: string;
|
||||
compatibility?: string;
|
||||
metadata?: Record<string, string>;
|
||||
allowedTools?: string[];
|
||||
mcpConfig?: SkillMcpConfig;
|
||||
lazyContent?: LazyContentLoader;
|
||||
}
|
||||
Reference in New Issue
Block a user