@easbot/skills 0.3.10 → 0.3.11
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.
- package/dist/assets/txt/template/skill-template-en-US.txt +50 -0
- package/dist/assets/txt/template/skill-template-zh-CN.txt +50 -0
- package/dist/chunks/blob-LYSE5I24.mjs +1 -0
- package/dist/chunks/blob-NYUAIVUS.cjs +1 -0
- package/dist/chunks/chunk-4IO7TNWC.mjs +223 -0
- package/dist/chunks/chunk-IWCI7DET.mjs +6 -0
- package/dist/chunks/chunk-KJPMAUXZ.cjs +1 -0
- package/dist/chunks/chunk-L6KE3VIY.mjs +2 -0
- package/dist/chunks/chunk-PGDLW2JN.cjs +2 -0
- package/dist/chunks/chunk-S76WRD5J.cjs +6 -0
- package/dist/chunks/chunk-WQJKBJSM.cjs +223 -0
- package/dist/chunks/chunk-Y2X6FBMZ.mjs +1 -0
- package/dist/chunks/scan-47YPOLJX.mjs +1 -0
- package/dist/chunks/scan-5G765ZEF.cjs +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +140 -14
- package/dist/index.d.ts +140 -14
- package/dist/index.mjs +1 -1
- package/package.json +4 -5
- package/dist/chunks/blob-3ZTTX2CZ.mjs +0 -1
- package/dist/chunks/blob-UAS6F4BG.cjs +0 -1
- package/dist/chunks/chunk-645XWVJB.mjs +0 -208
- package/dist/chunks/chunk-DLDPJGDD.cjs +0 -208
- package/dist/chunks/chunk-XDSGBJHO.cjs +0 -2
- package/dist/chunks/chunk-ZEMGS5WR.mjs +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AgentResult } from '@vercel/detect-agent';
|
|
2
|
+
import { Lang } from '@easbot/utils';
|
|
2
3
|
import { IGlobal, IInstance, ISubAgentRunner } from '@easbot/types';
|
|
3
4
|
|
|
4
5
|
type AgentType = 'aider-desk' | 'amp' | 'antigravity' | 'easbot' | 'antigravity-cli' | 'astrbot' | 'autohand-code' | 'augment' | 'bob' | 'claude-code' | 'openclaw' | 'cline' | 'codearts-agent' | 'codebuddy' | 'codemaker' | 'codestudio' | 'codex' | 'command-code' | 'continue' | 'cortex' | 'crush' | 'cursor' | 'deepagents' | 'devin' | 'dexto' | 'droid' | 'eve' | 'firebender' | 'forgecode' | 'gemini-cli' | 'github-copilot' | 'goose' | 'hermes-agent' | 'inference-sh' | 'iflow-cli' | 'jazz' | 'junie' | 'kilo' | 'kimi-code-cli' | 'kiro-cli' | 'kode' | 'lingma' | 'loaf' | 'mcpjam' | 'mistral-vibe' | 'moxby' | 'mux' | 'neovate' | 'opencode' | 'openhands' | 'ona' | 'pi' | 'qoder' | 'qoder-cn' | 'qwen-code' | 'replit' | 'reasonix' | 'roo' | 'rovodev' | 'tabnine-cli' | 'terramind' | 'tinycloud' | 'trae' | 'trae-cn' | 'warp' | 'windsurf' | 'zed' | 'zencoder' | 'zenflow' | 'pochi' | 'promptscript' | 'adal' | 'universal';
|
|
@@ -18,6 +19,7 @@ interface AgentConfig {
|
|
|
18
19
|
detectInstalled: () => Promise<boolean>;
|
|
19
20
|
showInUniversalList?: boolean;
|
|
20
21
|
showInUniversalPrompt?: boolean;
|
|
22
|
+
isUniversalShared?: boolean;
|
|
21
23
|
}
|
|
22
24
|
interface ParsedSource {
|
|
23
25
|
type: 'github' | 'gitlab' | 'git' | 'local' | 'well-known';
|
|
@@ -25,7 +27,6 @@ interface ParsedSource {
|
|
|
25
27
|
subpath?: string;
|
|
26
28
|
localPath?: string;
|
|
27
29
|
ref?: string;
|
|
28
|
-
skillFilter?: string;
|
|
29
30
|
}
|
|
30
31
|
interface RemoteSkill$1 {
|
|
31
32
|
name: string;
|
|
@@ -44,9 +45,20 @@ declare function detectInstalledAgents(): Promise<AgentType[]>;
|
|
|
44
45
|
declare function getAgentConfig(type: AgentType): AgentConfig;
|
|
45
46
|
declare const EVE_SUBAGENTS_DIR: string;
|
|
46
47
|
declare function getEveSubagents(cwd?: string): string[];
|
|
48
|
+
type UniversalScope = 'project' | 'global';
|
|
49
|
+
declare function matchesUniversalScope(type: AgentType, scope: UniversalScope): boolean;
|
|
47
50
|
declare function getUniversalAgents(): AgentType[];
|
|
48
|
-
declare function getVisibleUniversalAgents(): AgentType[];
|
|
49
51
|
declare function getNonUniversalAgents(): AgentType[];
|
|
52
|
+
declare const PROJECT_SKILLS_DIR_PATTERN: RegExp;
|
|
53
|
+
declare function getAgentProjectSkillDirs(): string[];
|
|
54
|
+
declare function getAgentGlobalSkillDirs(): string[];
|
|
55
|
+
interface AgentSkillDirsResult {
|
|
56
|
+
readonly project: string[];
|
|
57
|
+
readonly global: string[];
|
|
58
|
+
readonly all: string[];
|
|
59
|
+
}
|
|
60
|
+
declare function getAgentSkillDirs(): AgentSkillDirsResult;
|
|
61
|
+
declare function getAgentProjectSkillContainerPrefixes(): string[];
|
|
50
62
|
declare function isUniversalAgent(type: AgentType): boolean;
|
|
51
63
|
|
|
52
64
|
declare function shouldInstallInternalSkills(): boolean;
|
|
@@ -62,6 +74,74 @@ declare function discoverSkills(basePath: string, subpath?: string, options?: Di
|
|
|
62
74
|
declare function getSkillDisplayName(skill: Skill): string;
|
|
63
75
|
declare function filterSkills(skills: Skill[], inputNames: string[]): Skill[];
|
|
64
76
|
|
|
77
|
+
type InstallState = 'absent' | 'symlinked' | 'copied' | 'orphan' | 'divergent';
|
|
78
|
+
type CellScope = 'global' | 'project';
|
|
79
|
+
interface InstallCell {
|
|
80
|
+
readonly scope: CellScope;
|
|
81
|
+
readonly state: InstallState;
|
|
82
|
+
readonly targetPath: string;
|
|
83
|
+
readonly sourceRealpath?: string;
|
|
84
|
+
readonly sourceDir: string;
|
|
85
|
+
}
|
|
86
|
+
interface AgentInstallMatrix {
|
|
87
|
+
readonly agentId: AgentType;
|
|
88
|
+
readonly cells: {
|
|
89
|
+
readonly global: InstallCell;
|
|
90
|
+
readonly project: InstallCell;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
type CellAction = {
|
|
94
|
+
readonly kind: 'install';
|
|
95
|
+
readonly agentId: AgentType;
|
|
96
|
+
readonly scope: CellScope;
|
|
97
|
+
readonly mode: InstallMode;
|
|
98
|
+
readonly targetPath: string;
|
|
99
|
+
} | {
|
|
100
|
+
readonly kind: 'skip';
|
|
101
|
+
readonly agentId: AgentType;
|
|
102
|
+
readonly scope: CellScope;
|
|
103
|
+
readonly state: 'symlinked' | 'copied';
|
|
104
|
+
} | {
|
|
105
|
+
readonly kind: 'report';
|
|
106
|
+
readonly agentId: AgentType;
|
|
107
|
+
readonly scope: CellScope;
|
|
108
|
+
readonly state: 'divergent' | 'orphan';
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
interface PostInstallInput {
|
|
112
|
+
readonly skillId: string;
|
|
113
|
+
readonly sourceDir: string;
|
|
114
|
+
readonly targetAgents: readonly AgentType[];
|
|
115
|
+
readonly installGlobally: boolean;
|
|
116
|
+
readonly defaultMode: 'symlink' | 'copy';
|
|
117
|
+
readonly assumeYes: boolean;
|
|
118
|
+
readonly cwd?: string;
|
|
119
|
+
readonly includeEveSubagents?: boolean;
|
|
120
|
+
}
|
|
121
|
+
interface PostInstallResult {
|
|
122
|
+
readonly skipped: boolean;
|
|
123
|
+
readonly installed: readonly CellAction[];
|
|
124
|
+
readonly reported: readonly CellAction[];
|
|
125
|
+
readonly matrix?: readonly AgentInstallMatrix[];
|
|
126
|
+
}
|
|
127
|
+
declare function probeCell(targetPath: string, sourceDir: string): Promise<InstallState>;
|
|
128
|
+
declare function planActions(matrix: readonly AgentInstallMatrix[], defaultMode: 'symlink' | 'copy'): CellAction[];
|
|
129
|
+
declare function applyActions(actions: readonly CellAction[], ctx: {
|
|
130
|
+
readonly sourceDir: string;
|
|
131
|
+
readonly installGlobally: boolean;
|
|
132
|
+
readonly cwd: string;
|
|
133
|
+
}): Promise<{
|
|
134
|
+
installed: CellAction[];
|
|
135
|
+
reported: CellAction[];
|
|
136
|
+
}>;
|
|
137
|
+
declare function buildMatrix(targetAgents: readonly AgentType[], ctx: {
|
|
138
|
+
skillId: string;
|
|
139
|
+
sourceDir: string;
|
|
140
|
+
cwd: string;
|
|
141
|
+
includeEveSubagents?: boolean;
|
|
142
|
+
}): AgentInstallMatrix[];
|
|
143
|
+
declare function runPostInstallReconcile(input: PostInstallInput): Promise<PostInstallResult>;
|
|
144
|
+
|
|
65
145
|
interface RemoteSkill {
|
|
66
146
|
name: string;
|
|
67
147
|
description: string;
|
|
@@ -283,6 +363,9 @@ interface SearchSkill {
|
|
|
283
363
|
}
|
|
284
364
|
interface FindOptions {
|
|
285
365
|
owner?: string;
|
|
366
|
+
json?: boolean;
|
|
367
|
+
local?: boolean;
|
|
368
|
+
path?: string;
|
|
286
369
|
}
|
|
287
370
|
interface ParseFindOptionsResult {
|
|
288
371
|
query: string;
|
|
@@ -291,12 +374,15 @@ interface ParseFindOptionsResult {
|
|
|
291
374
|
}
|
|
292
375
|
declare function parseFindOptions(args: string[]): ParseFindOptionsResult;
|
|
293
376
|
declare function searchSkillsAPI(query: string, owner?: string): Promise<SearchSkill[]>;
|
|
294
|
-
declare function runFind(args: string[]): Promise<
|
|
377
|
+
declare function runFind(args: string[]): Promise<number>;
|
|
295
378
|
|
|
296
379
|
interface ListOptions {
|
|
297
380
|
global?: boolean;
|
|
381
|
+
project?: boolean;
|
|
298
382
|
agent?: string[];
|
|
299
383
|
json?: boolean;
|
|
384
|
+
all?: boolean;
|
|
385
|
+
yes?: boolean;
|
|
300
386
|
}
|
|
301
387
|
declare function parseListOptions(args: string[]): ListOptions;
|
|
302
388
|
declare function runList(args: string[]): Promise<void>;
|
|
@@ -304,6 +390,7 @@ declare function runList(args: string[]): Promise<void>;
|
|
|
304
390
|
interface RemoveOptions {
|
|
305
391
|
global?: boolean;
|
|
306
392
|
agent?: string[];
|
|
393
|
+
skill?: string[];
|
|
307
394
|
yes?: boolean;
|
|
308
395
|
all?: boolean;
|
|
309
396
|
}
|
|
@@ -377,6 +464,8 @@ interface UpdateCheckOptions {
|
|
|
377
464
|
global?: boolean;
|
|
378
465
|
project?: boolean;
|
|
379
466
|
yes?: boolean;
|
|
467
|
+
all?: boolean;
|
|
468
|
+
force?: boolean;
|
|
380
469
|
skills?: string[];
|
|
381
470
|
}
|
|
382
471
|
declare function parseUpdateOptions(args: string[]): UpdateCheckOptions;
|
|
@@ -510,7 +599,6 @@ interface BlobInstallResult {
|
|
|
510
599
|
}
|
|
511
600
|
declare function tryBlobInstall(ownerRepo: string, options?: {
|
|
512
601
|
subpath?: string;
|
|
513
|
-
skillFilter?: string;
|
|
514
602
|
ref?: string;
|
|
515
603
|
getToken?: () => string | null;
|
|
516
604
|
includeInternal?: boolean;
|
|
@@ -545,6 +633,7 @@ interface FindTelemetryData {
|
|
|
545
633
|
query: string;
|
|
546
634
|
resultCount: string;
|
|
547
635
|
interactive?: '1';
|
|
636
|
+
mode?: 'local' | 'remote';
|
|
548
637
|
}
|
|
549
638
|
interface SyncTelemetryData {
|
|
550
639
|
event: 'experimental_sync';
|
|
@@ -552,7 +641,20 @@ interface SyncTelemetryData {
|
|
|
552
641
|
successCount: string;
|
|
553
642
|
agents: string;
|
|
554
643
|
}
|
|
555
|
-
|
|
644
|
+
interface CacheCleanAllTelemetryData {
|
|
645
|
+
event: 'cache_clean_all';
|
|
646
|
+
cacheRoot?: string;
|
|
647
|
+
}
|
|
648
|
+
interface CacheCleanSourceTelemetryData {
|
|
649
|
+
event: 'cache_clean_source';
|
|
650
|
+
source: string;
|
|
651
|
+
}
|
|
652
|
+
interface CacheRemoveSourceTelemetryData {
|
|
653
|
+
event: 'cache_remove_source';
|
|
654
|
+
source: string;
|
|
655
|
+
removedSkills?: string;
|
|
656
|
+
}
|
|
657
|
+
type TelemetryData = InstallTelemetryData | RemoveTelemetryData | UpdateTelemetryData | FindTelemetryData | SyncTelemetryData | CacheCleanAllTelemetryData | CacheCleanSourceTelemetryData | CacheRemoveSourceTelemetryData;
|
|
556
658
|
declare function setDetectedAgent(agentName: string | null): void;
|
|
557
659
|
declare function setVersion(version: string): void;
|
|
558
660
|
interface PartnerAudit {
|
|
@@ -595,18 +697,11 @@ declare function parseFrontmatter(raw: string): {
|
|
|
595
697
|
content: string;
|
|
596
698
|
};
|
|
597
699
|
|
|
598
|
-
declare const I18n: {
|
|
599
|
-
readonly defaultLocale: "zh-CN";
|
|
600
|
-
readonly timeZone: "Asia/Shanghai";
|
|
601
|
-
readonly locales: string[];
|
|
602
|
-
};
|
|
603
|
-
type Locale = (typeof I18n)['locales'][number];
|
|
604
|
-
|
|
605
700
|
interface SkillsCliDeps {
|
|
606
701
|
version?: string;
|
|
607
702
|
cwd?: string;
|
|
608
703
|
inAgent?: boolean;
|
|
609
|
-
locale?:
|
|
704
|
+
locale?: Lang;
|
|
610
705
|
}
|
|
611
706
|
interface SkillsCliResult {
|
|
612
707
|
code: number;
|
|
@@ -617,6 +712,37 @@ declare function renderBanner(deps?: SkillsCliDeps): void;
|
|
|
617
712
|
declare function renderHelp(deps?: SkillsCliDeps): void;
|
|
618
713
|
declare function handleSkillsCli(args: string[], deps?: SkillsCliDeps): Promise<SkillsCliResult>;
|
|
619
714
|
|
|
715
|
+
type InstallScope = 'project' | 'global';
|
|
716
|
+
type AcquireMode = 'install' | 'update';
|
|
717
|
+
interface AcquireInput extends ParsedSource {
|
|
718
|
+
mode?: AcquireMode;
|
|
719
|
+
skillNames?: string[];
|
|
720
|
+
scope?: InstallScope;
|
|
721
|
+
}
|
|
722
|
+
interface AcquireResult {
|
|
723
|
+
storeDir: string;
|
|
724
|
+
cacheHit: boolean;
|
|
725
|
+
source: 'local-cp' | 'cache-clone' | 'cache-pull' | 'well-known-fetch' | 'blob-fetch';
|
|
726
|
+
}
|
|
727
|
+
declare function getSourceDir({ scope }: {
|
|
728
|
+
scope: InstallScope;
|
|
729
|
+
}): string;
|
|
730
|
+
declare function getCacheRoot(): string;
|
|
731
|
+
declare function getCacheRepoDir(parsed: ParsedSource): string;
|
|
732
|
+
declare function acquireSourceClone(input: AcquireInput): Promise<AcquireResult>;
|
|
733
|
+
declare function ensureCachedSource(source: {
|
|
734
|
+
url: string;
|
|
735
|
+
ref?: string;
|
|
736
|
+
sourceId: string;
|
|
737
|
+
}): Promise<string>;
|
|
738
|
+
declare function installFromCache({ cachePath, skillName, scope, }: {
|
|
739
|
+
cachePath: string;
|
|
740
|
+
skillName: string;
|
|
741
|
+
scope: InstallScope;
|
|
742
|
+
}): Promise<string>;
|
|
743
|
+
declare function cleanCachedRepo(parsed: ParsedSource): Promise<void>;
|
|
744
|
+
declare function cleanCache(): Promise<void>;
|
|
745
|
+
|
|
620
746
|
interface SkillsAgentAdapter {
|
|
621
747
|
global: IGlobal;
|
|
622
748
|
instance: IInstance;
|
|
@@ -645,4 +771,4 @@ declare function getXdgState(): string;
|
|
|
645
771
|
declare function getXdgCache(): string;
|
|
646
772
|
declare function getProjectDirectory(): string;
|
|
647
773
|
|
|
648
|
-
export { AGENTS_DIR, type AddOptions, type AgentConfig, type AgentProcess, type AgentSpawn, type AgentType, type AuditResponse, BLOB_ALLOWED_REPOS, type BlobInstallResult, type BlobSkill, DEFAULT_CLONE_TIMEOUT, type DiscoverSkillsOptions, type DismissedPrompts, EVE_SUBAGENTS_DIR, type FindOptions, GitCloneError, type HostProvider, type InstallMode, type InstalledSkill, type LocalSkillLockEntry, type LocalSkillLockFile, type MaterializedUseSkill, type ParseFindOptionsResult, type ParseUseOptionsResult, type ParsedSource, type PartnerAudit, type ProviderMatch, type ProviderRegistry, type RemoteSkill as ProviderRemoteSkill, type RemoteSkill$1 as RemoteSkill, type RemoveOptions, type RepoTree, SKILLS_SUBDIR, type SearchSkill, type Skill, type SkillAuditData, type SkillDownloadResponse, type SkillLockEntry, type SkillLockFile, type SkillSnapshotFile, type SkillsAgentAdapter, type SkillsCliDeps, type SkillsCliResult, type SyncOptions, type TreeEntry, UNIVERSAL_SKILLS_DIR, type UpdateCheckOptions, type UpdateScope, type UseOptions, type UseSkill, type WellKnownFileContent, type WellKnownIndex, type WellKnownIndexV1, type WellKnownIndexV2, WellKnownProvider, type WellKnownSkill, type WellKnownSkillEntry, type WellKnownSkillEntryV1, type WellKnownSkillEntryV2, addSkillToLocalLock, addSkillToLock, agents, buildUsePrompt, cleanupTempDir, cloneRepo, computeContentHash, computeSkillFolderHash, detectAgent, detectInstalledAgents, discoverSkills, dismissPrompt, fetchAuditData, fetchRepoTree, fetchSkillFolderHash, filterSkills, findProvider, findSkillMdPaths, flushTelemetry, getAgentAdapter, getAgentBaseDir, getAgentConfig, getAgentName, getAgentType, getAllLockedSkills, getCanonicalPath, getCanonicalSkillsDir, getEveSubagentSkillsDir, getEveSubagents, getGitHubToken, getGlobal, getHomeDir, getInstallPath, getInstance, getLastSelectedAgents, getLocalLockPath, getNonUniversalAgents, getOpenClawGlobalSkillsDir, getOwnerRepo, getProjectDirectory, getProviders, getSkillDisplayName, getSkillFolderHashFromTree, getSkillFromLock, getSkillLockPath, getSkillsBySource,
|
|
774
|
+
export { AGENTS_DIR, type AddOptions, type AgentConfig, type AgentInstallMatrix, type AgentProcess, type AgentSkillDirsResult, type AgentSpawn, type AgentType, type AuditResponse, BLOB_ALLOWED_REPOS, type BlobInstallResult, type BlobSkill, type CellAction, type CellScope, DEFAULT_CLONE_TIMEOUT, type DiscoverSkillsOptions, type DismissedPrompts, EVE_SUBAGENTS_DIR, type FindOptions, GitCloneError, type HostProvider, type InstallCell, type InstallMode, type InstallScope, type InstallState, type InstalledSkill, type LocalSkillLockEntry, type LocalSkillLockFile, type MaterializedUseSkill, PROJECT_SKILLS_DIR_PATTERN, type ParseFindOptionsResult, type ParseUseOptionsResult, type ParsedSource, type PartnerAudit, type PostInstallInput, type PostInstallResult, type ProviderMatch, type ProviderRegistry, type RemoteSkill as ProviderRemoteSkill, type RemoteSkill$1 as RemoteSkill, type RemoveOptions, type RepoTree, SKILLS_SUBDIR, type SearchSkill, type Skill, type SkillAuditData, type SkillDownloadResponse, type SkillLockEntry, type SkillLockFile, type SkillSnapshotFile, type SkillsAgentAdapter, type SkillsCliDeps, type SkillsCliResult, type SyncOptions, type TreeEntry, UNIVERSAL_SKILLS_DIR, type UniversalScope, type UpdateCheckOptions, type UpdateScope, type UseOptions, type UseSkill, type WellKnownFileContent, type WellKnownIndex, type WellKnownIndexV1, type WellKnownIndexV2, WellKnownProvider, type WellKnownSkill, type WellKnownSkillEntry, type WellKnownSkillEntryV1, type WellKnownSkillEntryV2, acquireSourceClone, addSkillToLocalLock, addSkillToLock, agents, applyActions, buildMatrix, buildUsePrompt, cleanCache, cleanCachedRepo, cleanupTempDir, cloneRepo, computeContentHash, computeSkillFolderHash, detectAgent, detectInstalledAgents, discoverSkills, dismissPrompt, ensureCachedSource, fetchAuditData, fetchRepoTree, fetchSkillFolderHash, filterSkills, findProvider, findSkillMdPaths, flushTelemetry, getAgentAdapter, getAgentBaseDir, getAgentConfig, getAgentGlobalSkillDirs, getAgentName, getAgentProjectSkillContainerPrefixes, getAgentProjectSkillDirs, getAgentSkillDirs, getAgentType, getAllLockedSkills, getCacheRepoDir, getCacheRoot, getCanonicalPath, getCanonicalSkillsDir, getEveSubagentSkillsDir, getEveSubagents, getGitHubToken, getGlobal, getHomeDir, getInstallPath, getInstance, getLastSelectedAgents, getLocalLockPath, getNonUniversalAgents, getOpenClawGlobalSkillsDir, getOwnerRepo, getProjectDirectory, getProviders, getSkillDisplayName, getSkillFolderHashFromTree, getSkillFromLock, getSkillLockPath, getSkillsBySource, getSourceDir, getUniversalAgents, getXdgCache, getXdgConfig, getXdgData, getXdgState, handleSkillsCli, hasAgentAdapter, hasProjectSkills, initTelemetry, installBlobSkillForAgent, installFromCache, installRemoteSkillForAgent, installSkillForAgent, installWellKnownSkillForAgent, isGitHubHttpsCloneUrl, isGitHubSsoAuthError, isPromptDismissed, isRepoPrivate, isRunningInAgent, isSkillInstalled, isSubpathSafe, isUniversalAgent, launchAgentInteractively, listInstalledSkills, matchesSkillFilter, matchesUniversalScope, materializeUseSkill, parseAddOptions, parseFindOptions, parseFrontmatter, parseGitHubRepoUrl, parseListOptions, parseOwnerRepo, parseRemoveOptions, parseSkillMd, parseSource, parseSyncOptions, parseUpdateOptions, parseUseOptions, planActions, probeCell, readLocalLock, readSkillLock, registerProvider, registry, removeCommand, removeSkillFromLocalLock, removeSkillFromLock, renderBanner, renderHelp, requireAgentAdapter, resetGhAuthWarning, resetGlobalAdapter, resetInstanceAdapter, resetRepoTreeAuthState, resolveUpdateScope, runAdd, runFind, runInstallFromLock, runList, runPostInstallReconcile, runSync, runUpdate, runUse, sanitizeMetadata, sanitizeName, sanitizeSubpath, saveSelectedAgents, searchSkillsAPI, setAgentAdapter, setDetectedAgent, setGlobalAdapter, setInstanceAdapter, setVersion, shouldInstallInternalSkills, stripTerminalEscapes, toSkillSlug, track, tryBlobInstall, wellKnownProvider, writeLocalLock, writeSkillLock };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{f as DEFAULT_CLONE_TIMEOUT,g as GitCloneError,m as WellKnownProvider,r as acquireSourceClone,R as addSkillToLock,y as applyActions,z as buildMatrix,ra as buildUsePrompt,v as cleanCache,u as cleanCachedRepo,l as cleanupTempDir,k as cloneRepo,N as computeContentHash,G as detectAgent,X as dismissPrompt,s as ensureCachedSource,D as fetchAuditData,Q as fetchSkillFolderHash,F as flushTelemetry,I as getAgentName,J as getAgentType,U as getAllLockedSkills,q as getCacheRepoDir,p as getCacheRoot,P as getGitHubToken,Y as getLastSelectedAgents,a as getOwnerRepo,T as getSkillFromLock,K as getSkillLockPath,V as getSkillsBySource,o as getSourceDir,xa as handleSkillsCli,ma as hasProjectSkills,_ as initTelemetry,t as installFromCache,i as isGitHubHttpsCloneUrl,j as isGitHubSsoAuthError,W as isPromptDismissed,c as isRepoPrivate,H as isRunningInAgent,ua as launchAgentInteractively,oa as matchesSkillFilter,sa as materializeUseSkill,aa as parseAddOptions,ba as parseFindOptions,h as parseGitHubRepoUrl,ha as parseListOptions,b as parseOwnerRepo,ka as parseRemoveOptions,e as parseSource,fa as parseSyncOptions,la as parseUpdateOptions,qa as parseUseOptions,x as planActions,w as probeCell,L as readSkillLock,ja as removeCommand,S as removeSkillFromLock,va as renderBanner,wa as renderHelp,O as resetGhAuthWarning,na as resolveUpdateScope,$ as runAdd,da as runFind,ga as runInstallFromLock,ia as runList,A as runPostInstallReconcile,ea as runSync,pa as runUpdate,ta as runUse,d as sanitizeSubpath,Z as saveSelectedAgents,ca as searchSkillsAPI,B as setDetectedAgent,C as setVersion,E as track,n as wellKnownProvider,M as writeSkillLock}from'./chunks/chunk-4IO7TNWC.mjs';export{a as BLOB_ALLOWED_REPOS,e as fetchRepoTree,g as findSkillMdPaths,f as getSkillFolderHashFromTree,d as resetRepoTreeAuthState,c as toSkillSlug,h as tryBlobInstall}from'./chunks/chunk-L6KE3VIY.mjs';export{o as AGENTS_DIR,p as SKILLS_SUBDIR,q as UNIVERSAL_SKILLS_DIR,e as addSkillToLocalLock,d as computeSkillFolderHash,j as discoverSkills,l as filterSkills,u as getAgentBaseDir,A as getCanonicalPath,s as getCanonicalSkillsDir,t as getEveSubagentSkillsDir,z as getInstallPath,a as getLocalLockPath,k as getSkillDisplayName,D as installBlobSkillForAgent,B as installRemoteSkillForAgent,v as installSkillForAgent,C as installWellKnownSkillForAgent,y as isSkillInstalled,i as isSubpathSafe,E as listInstalledSkills,h as parseSkillMd,b as readLocalLock,f as removeSkillFromLocalLock,r as sanitizeName,g as shouldInstallInternalSkills,c as writeLocalLock}from'./chunks/chunk-IWCI7DET.mjs';import {a}from'./chunks/chunk-Y2X6FBMZ.mjs';export{z as EVE_SUBAGENTS_DIR,E as PROJECT_SKILLS_DIR_PATTERN,w as agents,x as detectInstalledAgents,k as getAgentAdapter,y as getAgentConfig,G as getAgentGlobalSkillDirs,I as getAgentProjectSkillContainerPrefixes,F as getAgentProjectSkillDirs,H as getAgentSkillDirs,A as getEveSubagents,f as getGlobal,n as getHomeDir,i as getInstance,D as getNonUniversalAgents,v as getOpenClawGlobalSkillsDir,s as getProjectDirectory,C as getUniversalAgents,r as getXdgCache,o as getXdgConfig,p as getXdgData,q as getXdgState,l as hasAgentAdapter,J as isUniversalAgent,B as matchesUniversalScope,u as parseFrontmatter,m as requireAgentAdapter,e as resetGlobalAdapter,h as resetInstanceAdapter,c as sanitizeMetadata,j as setAgentAdapter,d as setGlobalAdapter,g as setInstanceAdapter,b as stripTerminalEscapes}from'./chunks/chunk-Y2X6FBMZ.mjs';var l=class{constructor(){a(this,"providers",[]);}register(e){if(this.providers.some(r=>r.id===e.id))throw new Error(`Provider with id "${e.id}" already registered`);this.providers.push(e);}findProvider(e){for(let r of this.providers)if(r.match(e).matches)return r;return null}getProviders(){return [...this.providers]}},o=new l;function jt(t){o.register(t);}function Xt(t){return o.findProvider(t)}function qt(){return o.getProviders()}export{Xt as findProvider,qt as getProviders,jt as registerProvider,o as registry};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easbot/skills",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "Skills management system for EAS Agent ecosystem (add / remove / list / find / update / sync / use)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -54,12 +54,11 @@
|
|
|
54
54
|
"xdg-basedir": "^5.1.0",
|
|
55
55
|
"yaml": "^2.9.0",
|
|
56
56
|
"zod": "^4.4.3",
|
|
57
|
-
"@easbot/utils": "0.3.
|
|
58
|
-
"@easbot/
|
|
59
|
-
"@easbot/
|
|
57
|
+
"@easbot/utils": "0.3.11",
|
|
58
|
+
"@easbot/mcp": "0.3.11",
|
|
59
|
+
"@easbot/types": "0.3.11"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@biomejs/biome": "^2.4.14",
|
|
63
62
|
"@types/node": "^25.6.2",
|
|
64
63
|
"tsup": "^8.5.1",
|
|
65
64
|
"typescript": "^6.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{e as BLOB_ALLOWED_REPOS,h as fetchRepoTree,j as findSkillMdPaths,i as getSkillFolderHashFromTree,g as resetRepoTreeAuthState,f as toSkillSlug,k as tryBlobInstall}from'./chunk-ZEMGS5WR.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkXDSGBJHO_cjs=require('./chunk-XDSGBJHO.cjs');Object.defineProperty(exports,"BLOB_ALLOWED_REPOS",{enumerable:true,get:function(){return chunkXDSGBJHO_cjs.f}});Object.defineProperty(exports,"fetchRepoTree",{enumerable:true,get:function(){return chunkXDSGBJHO_cjs.i}});Object.defineProperty(exports,"findSkillMdPaths",{enumerable:true,get:function(){return chunkXDSGBJHO_cjs.k}});Object.defineProperty(exports,"getSkillFolderHashFromTree",{enumerable:true,get:function(){return chunkXDSGBJHO_cjs.j}});Object.defineProperty(exports,"resetRepoTreeAuthState",{enumerable:true,get:function(){return chunkXDSGBJHO_cjs.h}});Object.defineProperty(exports,"toSkillSlug",{enumerable:true,get:function(){return chunkXDSGBJHO_cjs.g}});Object.defineProperty(exports,"tryBlobInstall",{enumerable:true,get:function(){return chunkXDSGBJHO_cjs.l}});
|