@toolr/seedr 0.1.71 → 0.1.73
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/{chunk-DI5Z3O3G.js → chunk-OYOVC7VN.js} +188 -69
- package/dist/cli.js +252 -346
- package/dist/index.d.ts +20 -20
- package/dist/index.js +15 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ComponentType,
|
|
2
|
-
export {
|
|
1
|
+
import { ComponentType, CodingAgent, RegistryItem, RegistryManifest } from '@seedr/shared';
|
|
2
|
+
export { CodingAgent, ComponentType, RegistryItem, RegistryManifest } from '@seedr/shared';
|
|
3
3
|
|
|
4
4
|
type InstallScope = "project" | "user" | "local";
|
|
5
5
|
type InstallMethod = "symlink" | "copy";
|
|
6
6
|
type ContentStructure = "directory" | "file" | "json-merge" | "plugin";
|
|
7
7
|
interface ContentTypeConfig {
|
|
8
|
-
/** Relative path from
|
|
8
|
+
/** Relative path from agent root (e.g., "skills", "agents") */
|
|
9
9
|
path: string;
|
|
10
10
|
/** File extension (e.g., ".md") */
|
|
11
11
|
extension: string;
|
|
@@ -18,7 +18,7 @@ interface ContentTypeConfig {
|
|
|
18
18
|
/** For json-merge: field to merge into (e.g., "hooks", "mcpServers") */
|
|
19
19
|
mergeField?: string;
|
|
20
20
|
}
|
|
21
|
-
interface
|
|
21
|
+
interface CodingAgentConfig {
|
|
22
22
|
/** Display name (e.g., "Claude Code") */
|
|
23
23
|
name: string;
|
|
24
24
|
/** Short identifier (e.g., "claude") */
|
|
@@ -41,17 +41,17 @@ interface InstallOptions {
|
|
|
41
41
|
interface InstalledItem {
|
|
42
42
|
slug: string;
|
|
43
43
|
type: string;
|
|
44
|
-
|
|
44
|
+
agent: string;
|
|
45
45
|
scope: InstallScope;
|
|
46
46
|
method: InstallMethod;
|
|
47
47
|
path: string;
|
|
48
48
|
installedAt: string;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
declare const
|
|
52
|
-
declare const
|
|
53
|
-
declare function
|
|
54
|
-
declare function
|
|
51
|
+
declare const CODING_AGENTS: Record<CodingAgent, CodingAgentConfig>;
|
|
52
|
+
declare const ALL_AGENTS: CodingAgent[];
|
|
53
|
+
declare function getAgentConfig(agent: CodingAgent): CodingAgentConfig;
|
|
54
|
+
declare function getAgentPath(agent: CodingAgent, scope: "project" | "user", cwd?: string): string;
|
|
55
55
|
|
|
56
56
|
declare function loadManifest(): Promise<RegistryManifest>;
|
|
57
57
|
declare function getItem(slug: string, type?: ComponentType): Promise<RegistryItem | undefined>;
|
|
@@ -63,15 +63,15 @@ declare function searchItems(query: string): Promise<RegistryItem[]>;
|
|
|
63
63
|
declare function getItemContent(item: RegistryItem): Promise<string>;
|
|
64
64
|
|
|
65
65
|
interface InstallResult {
|
|
66
|
-
|
|
66
|
+
agent: CodingAgent;
|
|
67
67
|
success: boolean;
|
|
68
68
|
path: string;
|
|
69
69
|
error?: string;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
declare function installSkill(item: RegistryItem,
|
|
73
|
-
declare function uninstallSkill(slug: string,
|
|
74
|
-
declare function getInstalledSkills(
|
|
72
|
+
declare function installSkill(item: RegistryItem, agents: CodingAgent[], scope: InstallScope, method: InstallMethod, cwd?: string): Promise<InstallResult[]>;
|
|
73
|
+
declare function uninstallSkill(slug: string, agent: CodingAgent, scope: InstallScope, cwd?: string): Promise<boolean>;
|
|
74
|
+
declare function getInstalledSkills(agent: CodingAgent, scope: InstallScope, cwd?: string): Promise<string[]>;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Strategy pattern interfaces for skill conversion.
|
|
@@ -114,15 +114,15 @@ declare function parseSkillMarkdown(content: string): ParsedSkill;
|
|
|
114
114
|
* @param targetTool - The AI tool to convert for
|
|
115
115
|
* @returns Converted content string
|
|
116
116
|
*/
|
|
117
|
-
declare function convertSkillToTool(content: string, targetTool:
|
|
117
|
+
declare function convertSkillToTool(content: string, targetTool: CodingAgent): string;
|
|
118
118
|
|
|
119
|
-
interface
|
|
120
|
-
|
|
119
|
+
interface DetectedAgent {
|
|
120
|
+
agent: CodingAgent;
|
|
121
121
|
scope: InstallScope;
|
|
122
122
|
path: string;
|
|
123
123
|
}
|
|
124
|
-
declare function
|
|
125
|
-
declare function
|
|
126
|
-
declare function
|
|
124
|
+
declare function detectInstalledAgents(cwd?: string): Promise<DetectedAgent[]>;
|
|
125
|
+
declare function detectProjectAgents(cwd?: string): Promise<CodingAgent[]>;
|
|
126
|
+
declare function isAgentInstalled(agent: CodingAgent, scope: InstallScope, cwd?: string): Promise<boolean>;
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { ALL_AGENTS, CODING_AGENTS, type CodingAgentConfig, type InstallMethod, type InstallOptions, type InstallScope, type InstalledItem, convertSkillToTool, detectInstalledAgents, detectProjectAgents, getAgentConfig, getAgentPath, getInstalledSkills, getItem, getItemContent, installSkill, isAgentInstalled, listItems, loadManifest, parseSkillMarkdown, searchItems, uninstallSkill };
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
ALL_AGENTS,
|
|
4
|
+
CODING_AGENTS,
|
|
5
|
+
detectInstalledAgents,
|
|
6
|
+
detectProjectAgents,
|
|
7
|
+
getAgentConfig,
|
|
8
|
+
getAgentPath,
|
|
7
9
|
getInstalledSkills,
|
|
8
10
|
getItem,
|
|
9
11
|
getItemContent,
|
|
10
|
-
getToolConfig,
|
|
11
|
-
getToolPath,
|
|
12
12
|
installSkill,
|
|
13
|
-
|
|
13
|
+
isAgentInstalled,
|
|
14
14
|
listItems,
|
|
15
15
|
loadManifest,
|
|
16
16
|
searchItems,
|
|
17
17
|
uninstallSkill
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OYOVC7VN.js";
|
|
19
19
|
|
|
20
20
|
// src/converters/index.ts
|
|
21
21
|
import matter from "gray-matter";
|
|
@@ -120,18 +120,18 @@ function convertSkillToTool(content, targetTool) {
|
|
|
120
120
|
return converter.convert(skill);
|
|
121
121
|
}
|
|
122
122
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
ALL_AGENTS,
|
|
124
|
+
CODING_AGENTS,
|
|
125
125
|
convertSkillToTool,
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
detectInstalledAgents,
|
|
127
|
+
detectProjectAgents,
|
|
128
|
+
getAgentConfig,
|
|
129
|
+
getAgentPath,
|
|
128
130
|
getInstalledSkills,
|
|
129
131
|
getItem,
|
|
130
132
|
getItemContent,
|
|
131
|
-
getToolConfig,
|
|
132
|
-
getToolPath,
|
|
133
133
|
installSkill,
|
|
134
|
-
|
|
134
|
+
isAgentInstalled,
|
|
135
135
|
listItems,
|
|
136
136
|
loadManifest,
|
|
137
137
|
parseSkillMarkdown,
|