@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/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { ComponentType, AITool, RegistryItem, RegistryManifest } from '@seedr/shared';
2
- export { AITool, ComponentType, RegistryItem, RegistryManifest } from '@seedr/shared';
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 tool root (e.g., "skills", "agents") */
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 AIToolConfig {
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
- tool: string;
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 AI_TOOLS: Record<AITool, AIToolConfig>;
52
- declare const ALL_TOOLS: AITool[];
53
- declare function getToolConfig(tool: AITool): AIToolConfig;
54
- declare function getToolPath(tool: AITool, scope: "project" | "user", cwd?: string): string;
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
- tool: AITool;
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, tools: AITool[], scope: InstallScope, method: InstallMethod, cwd?: string): Promise<InstallResult[]>;
73
- declare function uninstallSkill(slug: string, tool: AITool, scope: InstallScope, cwd?: string): Promise<boolean>;
74
- declare function getInstalledSkills(tool: AITool, scope: InstallScope, cwd?: string): Promise<string[]>;
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: AITool): string;
117
+ declare function convertSkillToTool(content: string, targetTool: CodingAgent): string;
118
118
 
119
- interface DetectedTool {
120
- tool: AITool;
119
+ interface DetectedAgent {
120
+ agent: CodingAgent;
121
121
  scope: InstallScope;
122
122
  path: string;
123
123
  }
124
- declare function detectInstalledTools(cwd?: string): Promise<DetectedTool[]>;
125
- declare function detectProjectTools(cwd?: string): Promise<AITool[]>;
126
- declare function isToolInstalled(tool: AITool, scope: InstallScope, cwd?: string): Promise<boolean>;
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 { type AIToolConfig, AI_TOOLS, ALL_TOOLS, type InstallMethod, type InstallOptions, type InstallScope, type InstalledItem, convertSkillToTool, detectInstalledTools, detectProjectTools, getInstalledSkills, getItem, getItemContent, getToolConfig, getToolPath, installSkill, isToolInstalled, listItems, loadManifest, parseSkillMarkdown, searchItems, uninstallSkill };
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
- AI_TOOLS,
4
- ALL_TOOLS,
5
- detectInstalledTools,
6
- detectProjectTools,
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
- isToolInstalled,
13
+ isAgentInstalled,
14
14
  listItems,
15
15
  loadManifest,
16
16
  searchItems,
17
17
  uninstallSkill
18
- } from "./chunk-DI5Z3O3G.js";
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
- AI_TOOLS,
124
- ALL_TOOLS,
123
+ ALL_AGENTS,
124
+ CODING_AGENTS,
125
125
  convertSkillToTool,
126
- detectInstalledTools,
127
- detectProjectTools,
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
- isToolInstalled,
134
+ isAgentInstalled,
135
135
  listItems,
136
136
  loadManifest,
137
137
  parseSkillMarkdown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolr/seedr",
3
- "version": "0.1.71",
3
+ "version": "0.1.73",
4
4
  "description": "Seed your projects with AI configurations",
5
5
  "type": "module",
6
6
  "bin": {