unifai 2.0.1

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.
Files changed (77) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +106 -0
  3. package/dist/adapters/antigravity.d.ts +24 -0
  4. package/dist/adapters/antigravity.d.ts.map +1 -0
  5. package/dist/adapters/base.d.ts +60 -0
  6. package/dist/adapters/base.d.ts.map +1 -0
  7. package/dist/adapters/claude.d.ts +25 -0
  8. package/dist/adapters/claude.d.ts.map +1 -0
  9. package/dist/adapters/copilot.d.ts +25 -0
  10. package/dist/adapters/copilot.d.ts.map +1 -0
  11. package/dist/adapters/cursor.d.ts +30 -0
  12. package/dist/adapters/cursor.d.ts.map +1 -0
  13. package/dist/adapters/index.d.ts +39 -0
  14. package/dist/adapters/index.d.ts.map +1 -0
  15. package/dist/adapters/opencode.d.ts +25 -0
  16. package/dist/adapters/opencode.d.ts.map +1 -0
  17. package/dist/chunk-63EFN7CX.js +450 -0
  18. package/dist/cli.d.ts +3 -0
  19. package/dist/cli.d.ts.map +1 -0
  20. package/dist/cli.js +14908 -0
  21. package/dist/cli.js.map +97 -0
  22. package/dist/commands/agent.d.ts +34 -0
  23. package/dist/commands/agent.d.ts.map +1 -0
  24. package/dist/commands/init.d.ts +16 -0
  25. package/dist/commands/init.d.ts.map +1 -0
  26. package/dist/commands/install.d.ts +8 -0
  27. package/dist/commands/install.d.ts.map +1 -0
  28. package/dist/commands/list.d.ts +8 -0
  29. package/dist/commands/list.d.ts.map +1 -0
  30. package/dist/commands/mcp.d.ts +40 -0
  31. package/dist/commands/mcp.d.ts.map +1 -0
  32. package/dist/commands/remove.d.ts +8 -0
  33. package/dist/commands/remove.d.ts.map +1 -0
  34. package/dist/commands/sync.d.ts +19 -0
  35. package/dist/commands/sync.d.ts.map +1 -0
  36. package/dist/commands/tui.d.ts +14 -0
  37. package/dist/commands/tui.d.ts.map +1 -0
  38. package/dist/data/prompts.d.ts +36 -0
  39. package/dist/data/prompts.d.ts.map +1 -0
  40. package/dist/index.d.ts +16 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/index.js +10648 -0
  43. package/dist/index.js.map +82 -0
  44. package/dist/openskill-ai.exe +0 -0
  45. package/dist/registry.d.ts +38 -0
  46. package/dist/registry.d.ts.map +1 -0
  47. package/dist/types/config.d.ts +103 -0
  48. package/dist/types/config.d.ts.map +1 -0
  49. package/dist/types/index.d.ts +8 -0
  50. package/dist/types/index.d.ts.map +1 -0
  51. package/dist/types.d.ts +23 -0
  52. package/dist/types.d.ts.map +1 -0
  53. package/dist/utils/agents.d.ts +15 -0
  54. package/dist/utils/agents.d.ts.map +1 -0
  55. package/dist/utils/fs-helpers.d.ts +29 -0
  56. package/dist/utils/fs-helpers.d.ts.map +1 -0
  57. package/dist/utils/git.d.ts +23 -0
  58. package/dist/utils/git.d.ts.map +1 -0
  59. package/dist/utils/installer.d.ts +37 -0
  60. package/dist/utils/installer.d.ts.map +1 -0
  61. package/dist/utils/project-detector.d.ts +23 -0
  62. package/dist/utils/project-detector.d.ts.map +1 -0
  63. package/dist/utils/readme-generator.d.ts +9 -0
  64. package/dist/utils/readme-generator.d.ts.map +1 -0
  65. package/dist/utils/skills.d.ts +11 -0
  66. package/dist/utils/skills.d.ts.map +1 -0
  67. package/package.json +78 -0
  68. package/skills/skill-writer-skills/AGENTS.md +637 -0
  69. package/skills/skill-writer-skills/README.md +49 -0
  70. package/skills/skill-writer-skills/SKILL.md +97 -0
  71. package/skills/skill-writer-skills/metadata.json +17 -0
  72. package/skills/skill-writer-skills/references/common-pitfalls.md +291 -0
  73. package/skills/skill-writer-skills/references/core-principles.md +147 -0
  74. package/skills/skill-writer-skills/references/creation-process.md +250 -0
  75. package/skills/skill-writer-skills/references/design-patterns.md +300 -0
  76. package/skills/skill-writer-skills/references/skill-anatomy.md +174 -0
  77. package/skills/skill-writer-skills/references/validation-checklist.md +194 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Agent Skills Community
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,106 @@
1
+ # unifai
2
+
3
+ > Universal AI IDE Configuration & Skill Manager
4
+
5
+ A powerful CLI tool to unify your AI coding agent experience. Standardize instructions, manage MCP servers, and install agent skills across Claude Code, Antigravity, Cursor, OpenCode, and GitHub Copilot.
6
+
7
+ ## 🚀 Key Features
8
+
9
+ - 🔄 **Universal Sync & Migration** - Synchronize and migrate agent instructions, rules, and MCP configs across all IDEs at once.
10
+ - 🛠️ **MCP Management** - Add, list, and sync Model Context Protocol servers (Standard Stdio & HTTP/SSE).
11
+ - 🤖 **Standardized Agents** - Project-level `AGENTS.md` and `CLAUDE.md` with professional prompt templates.
12
+ - ✨ **Skill Manager** - Install specialized agent instructions from any Git repository.
13
+ - 📐 **Cross-IDE Scavenging** - Automatically discover rules from `.claude/`, `.cursor/`, or `.agent/` and unify them.
14
+ - 🌐 **Global & Workspace Rules** - Manage rules centrally (e.g., `~/.gemini/GEMINI.md`) or per project.
15
+
16
+ ## 🛠️ Installation
17
+
18
+ ```bash
19
+ # Install globally
20
+ npm install -g unifai
21
+
22
+ # Or use with npx
23
+ npx unifai <command>
24
+ ```
25
+
26
+ ## 📋 Quick Start
27
+
28
+ ### 1. Unified Configuration & Migration
29
+ Moving from Claude Code to Antigravity? Or Cursor to Claude? Just sync. The tool will scavenge rules, instructions, and tools from all supported IDE paths and unify them across your system.
30
+
31
+ ```bash
32
+ # Automatically detects .claude, .cursor, and .agent configs and applies them to all detected IDEs
33
+ unifai sync
34
+ ```
35
+
36
+ ### 2. Manage MCP Servers
37
+ Add local or remote tools (via HTTP/SSE) to all your AI assistants:
38
+ ```bash
39
+ # Choose between Command (stdio) or HTTP server
40
+ unifai mcp add
41
+
42
+ # Sync your MCP setup to all IDE settings (settings.json, etc.)
43
+ unifai mcp sync
44
+ ```
45
+
46
+ ### 3. Agent Instructions
47
+ Initialize a standardized instruction set for your project with built-in best practices:
48
+ ```bash
49
+ # Creates AGENTS.md, CLAUDE.md, etc.
50
+ unifai agent init
51
+ ```
52
+
53
+ ### 4. Install Agent Skills
54
+ Install specialized behaviors (like "frontend-expert" or "testing-pro") from any Git repo:
55
+ ```bash
56
+ # Install skills from a GitHub repository
57
+ unifai includeHasan/agent-skills
58
+ ```
59
+
60
+ ## 🔄 Universal Migration Paths
61
+
62
+ The `sync` command "scavenges" configurations from these locations and migrates them to your active IDEs:
63
+
64
+ | Feature | Discovery Paths |
65
+ |---------|-----------------|
66
+ | **Instructions** | `AGENTS.md`, `CLAUDE.md`, `.github/copilot-instructions.md` |
67
+ | **Rules** | `.agent/rules/`, `.claude/rules/`, `.cursor/rules/`, `.gemini/rules/`, `.cursorrules` |
68
+ | **MCP** | `.mcp/mcp.json`, `.claude/mcp.json`, `.cursor/mcp.json` |
69
+
70
+ ## 🤖 Supported Adapters
71
+
72
+ | Adapter | Workspace File | Global File | MCP Config |
73
+ |---------|----------------|-------------|------------|
74
+ | **Antigravity** | `AGENTS.md` | `~/.gemini/GEMINI.md` | `.gemini/settings.json` |
75
+ | **Claude Code** | `CLAUDE.md` | `~/.claude.md` | `.claude/mcp.json` |
76
+ | **OpenCode** | `AGENTS.md` | `~/.opencode.md` | `mcp.json` |
77
+ | **Cursor** | `AGENTS.md` | `~/.cursorrules` | `.cursor/mcp.json` |
78
+ | **GitHub Copilot** | `.github/copilot-instructions.md` | - | - |
79
+
80
+ ## 🕹️ Command Reference
81
+
82
+ | Command | Description |
83
+ |---------|-------------|
84
+ | `sync` | Sync & Migrate all configs across all detected IDEs |
85
+ | `mcp add` | Add a new MCP server (Stdio or HTTP) |
86
+ | `mcp sync` | Sync MCP servers to all assistant configs |
87
+ | `agent init` | Initialize standardized agent instruction files |
88
+ | `agent show` | Show current agent configuration |
89
+ | `<git-url>` | Install skills from a remote repository |
90
+
91
+ ## 🏗️ Folder Structure
92
+
93
+ Universal AI IDEs follow these conventions through `unifai`:
94
+
95
+ - **Workspace Rules**: `.agent/rules/` (Unified Markdown files)
96
+ - **Agent Skills**: `.agent/skills/`
97
+ - **Global Config**: `~/.gemini/` (Settings, global rules, and instructions)
98
+
99
+ ## 📄 License
100
+
101
+ MIT © Agent Skills Community
102
+
103
+ ## 🔗 Links
104
+
105
+ - [GitHub Repository](https://github.com/includeHasan/agent-skills)
106
+ - [npm Package](https://www.npmjs.com/package/unifai)
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Antigravity Adapter
3
+ *
4
+ * Generates configuration for Antigravity (Google DeepMind's AI coding assistant)
5
+ * - Uses brain artifacts directory for agent configs
6
+ * - MCP server configuration in .gemini/settings.json
7
+ */
8
+ import { BaseAdapter } from './base.js';
9
+ import type { AgentConfig, MCPServer, RuleSet, IDEConfig } from '../types/config.js';
10
+ import type { AgentType } from '../types/index.js';
11
+ export declare class AntigravityAdapter extends BaseAdapter {
12
+ readonly id: AgentType;
13
+ readonly name = "antigravity";
14
+ readonly displayName = "Antigravity";
15
+ readonly config: IDEConfig;
16
+ isInstalled(): Promise<boolean>;
17
+ generateAgentFile(config: AgentConfig): Promise<string>;
18
+ generateRulesConfig(rules: RuleSet): Promise<Record<string, string>>;
19
+ generateMCPConfig(servers: MCPServer[]): Promise<string>;
20
+ getAgentFilePath(projectPath: string, global?: boolean): string;
21
+ getRulesPath(projectPath: string, global?: boolean): string;
22
+ getMCPConfigPath(projectPath: string, global?: boolean): string;
23
+ }
24
+ //# sourceMappingURL=antigravity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"antigravity.d.ts","sourceRoot":"","sources":["../../src/adapters/antigravity.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,qBAAa,kBAAmB,SAAQ,WAAW;IAC/C,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAiB;IACvC,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,QAAQ,CAAC,WAAW,iBAAiB;IAErC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAiBxB;IAEI,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAI/B,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAkGvD,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAyBpE,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAyB9D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO/D,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAS3D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;CAMlE"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Base Adapter Interface
3
+ *
4
+ * All IDE adapters must implement this interface to provide
5
+ * consistent configuration generation across different AI coding assistants.
6
+ */
7
+ import type { AgentConfig, MCPServer, RuleSet, SyncResult, IDEConfig } from '../types/config.js';
8
+ import type { AgentType } from '../types/index.js';
9
+ /**
10
+ * Abstract base class for IDE adapters
11
+ */
12
+ export declare abstract class BaseAdapter {
13
+ abstract readonly id: AgentType;
14
+ abstract readonly name: string;
15
+ abstract readonly displayName: string;
16
+ abstract readonly config: IDEConfig;
17
+ /**
18
+ * Check if this IDE is installed/configured on the system
19
+ */
20
+ abstract isInstalled(): Promise<boolean>;
21
+ /**
22
+ * Generate agent instructions file content
23
+ */
24
+ abstract generateAgentFile(config: AgentConfig): Promise<string>;
25
+ /**
26
+ * Generate rules configuration
27
+ */
28
+ abstract generateRulesConfig(rules: RuleSet): Promise<string | Record<string, string>>;
29
+ /**
30
+ * Generate MCP configuration
31
+ */
32
+ abstract generateMCPConfig(servers: MCPServer[]): Promise<string>;
33
+ /**
34
+ * Get the path where agent file should be written
35
+ */
36
+ abstract getAgentFilePath(projectPath: string, global?: boolean): string;
37
+ /**
38
+ * Get the path where rules should be written
39
+ */
40
+ abstract getRulesPath(projectPath: string, global?: boolean): string;
41
+ /**
42
+ * Get the path where MCP config should be written
43
+ */
44
+ abstract getMCPConfigPath(projectPath: string, global?: boolean): string;
45
+ /**
46
+ * Sync all configurations to this IDE
47
+ */
48
+ sync(projectPath: string, config: AgentConfig, rules?: RuleSet, options?: {
49
+ global?: boolean;
50
+ }): Promise<SyncResult>;
51
+ /**
52
+ * Helper to write file and track result
53
+ */
54
+ protected writeFile(path: string, content: string, result: SyncResult): Promise<void>;
55
+ }
56
+ /**
57
+ * Adapter registry type
58
+ */
59
+ export type AdapterRegistry = Map<AgentType, BaseAdapter>;
60
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/adapters/base.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;GAEG;AACH,8BAAsB,WAAW;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IAChC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAExC;;OAEG;IACH,QAAQ,CAAC,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAEhE;;OAEG;IACH,QAAQ,CAAC,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEtF;;OAEG;IACH,QAAQ,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAEjE;;OAEG;IACH,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAExE;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAEpE;;OAEG;IACH,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAExE;;OAEG;IACG,IAAI,CACN,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,WAAW,EACnB,KAAK,CAAC,EAAE,OAAO,EACf,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAC/B,OAAO,CAAC,UAAU,CAAC;IA8CtB;;OAEG;cACa,SAAS,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,UAAU,GACnB,OAAO,CAAC,IAAI,CAAC;CA6BnB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Claude Code Adapter
3
+ *
4
+ * Generates configuration for Claude Code (Anthropic's AI coding assistant)
5
+ * - CLAUDE.md for agent instructions
6
+ * - .claude/settings.json for rules
7
+ * - .claude/mcp.json for MCP servers
8
+ */
9
+ import { BaseAdapter } from './base.js';
10
+ import type { AgentConfig, MCPServer, RuleSet, IDEConfig } from '../types/config.js';
11
+ import type { AgentType } from '../types/index.js';
12
+ export declare class ClaudeCodeAdapter extends BaseAdapter {
13
+ readonly id: AgentType;
14
+ readonly name = "claude-code";
15
+ readonly displayName = "Claude Code";
16
+ readonly config: IDEConfig;
17
+ isInstalled(): Promise<boolean>;
18
+ generateAgentFile(config: AgentConfig): Promise<string>;
19
+ generateRulesConfig(rules: RuleSet): Promise<string>;
20
+ generateMCPConfig(servers: MCPServer[]): Promise<string>;
21
+ getAgentFilePath(projectPath: string, global?: boolean): string;
22
+ getRulesPath(projectPath: string, global?: boolean): string;
23
+ getMCPConfigPath(projectPath: string, global?: boolean): string;
24
+ }
25
+ //# sourceMappingURL=claude.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/adapters/claude.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,qBAAa,iBAAkB,SAAQ,WAAW;IAC9C,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAiB;IACvC,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,QAAQ,CAAC,WAAW,iBAAiB;IAErC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAaxB;IAEI,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAI/B,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IA2FvD,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAsBpD,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IA0B9D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO/D,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO3D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;CAMlE"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * GitHub Copilot Adapter
3
+ *
4
+ * Generates configuration for GitHub Copilot
5
+ * - .github/copilot-instructions.md for repository-wide instructions
6
+ * - .github/instructions/*.md for path-specific instructions
7
+ */
8
+ import { BaseAdapter } from './base.js';
9
+ import type { AgentConfig, MCPServer, RuleSet, IDEConfig } from '../types/config.js';
10
+ import type { AgentType } from '../types/index.js';
11
+ export declare class CopilotAdapter extends BaseAdapter {
12
+ readonly id: AgentType;
13
+ readonly name = "github-copilot";
14
+ readonly displayName = "GitHub Copilot";
15
+ readonly config: IDEConfig;
16
+ isInstalled(): Promise<boolean>;
17
+ generateAgentFile(config: AgentConfig): Promise<string>;
18
+ generateRulesConfig(rules: RuleSet): Promise<Record<string, string>>;
19
+ private generateInstructionFile;
20
+ generateMCPConfig(_servers: MCPServer[]): Promise<string>;
21
+ getAgentFilePath(projectPath: string, global?: boolean): string;
22
+ getRulesPath(projectPath: string, global?: boolean): string;
23
+ getMCPConfigPath(_projectPath: string, _global?: boolean): string;
24
+ }
25
+ //# sourceMappingURL=copilot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/adapters/copilot.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,qBAAa,cAAe,SAAQ,WAAW;IAC3C,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAoB;IAC1C,QAAQ,CAAC,IAAI,oBAAoB;IACjC,QAAQ,CAAC,WAAW,oBAAoB;IAExC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAaxB;IAEI,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAM/B,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAyGvD,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IA2B1E,OAAO,CAAC,uBAAuB;IAuBzB,iBAAiB,CAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAK/D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO/D,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO3D,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;CAIpE"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Cursor Adapter
3
+ *
4
+ * Generates configuration for Cursor AI IDE
5
+ * - AGENTS.md or .cursorrules for agent instructions
6
+ * - .cursor/rules/*.mdc for structured rules
7
+ * - ~/.cursor/mcp.json for MCP servers
8
+ */
9
+ import { BaseAdapter } from './base.js';
10
+ import type { AgentConfig, MCPServer, RuleSet, IDEConfig } from '../types/config.js';
11
+ import type { AgentType } from '../types/index.js';
12
+ export declare class CursorAdapter extends BaseAdapter {
13
+ readonly id: AgentType;
14
+ readonly name = "cursor";
15
+ readonly displayName = "Cursor";
16
+ readonly config: IDEConfig;
17
+ isInstalled(): Promise<boolean>;
18
+ generateAgentFile(config: AgentConfig): Promise<string>;
19
+ generateRulesConfig(rules: RuleSet): Promise<Record<string, string>>;
20
+ private generateMDCFile;
21
+ generateMCPConfig(servers: MCPServer[]): Promise<string>;
22
+ getAgentFilePath(projectPath: string, global?: boolean): string;
23
+ getRulesPath(projectPath: string, global?: boolean): string;
24
+ getMCPConfigPath(projectPath: string, global?: boolean): string;
25
+ /**
26
+ * Also generate legacy .cursorrules file for backward compatibility
27
+ */
28
+ generateLegacyCursorRules(config: AgentConfig): Promise<string>;
29
+ }
30
+ //# sourceMappingURL=cursor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/adapters/cursor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,qBAAa,aAAc,SAAQ,WAAW;IAC1C,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAY;IAClC,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,WAAW,YAAY;IAEhC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAaxB;IAEI,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAI/B,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAgEvD,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAwB1E,OAAO,CAAC,eAAe;IAoBjB,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAwB9D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO/D,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO3D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO/D;;OAEG;IACG,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;CAYxE"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Adapter Registry
3
+ *
4
+ * Exports all available IDE adapters and provides utility functions
5
+ * to work with them.
6
+ */
7
+ import { BaseAdapter } from './base.js';
8
+ import type { AgentType } from '../types/index.js';
9
+ export { BaseAdapter } from './base.js';
10
+ export { ClaudeCodeAdapter } from './claude.js';
11
+ export { OpenCodeAdapter } from './opencode.js';
12
+ export { CursorAdapter } from './cursor.js';
13
+ export { CopilotAdapter } from './copilot.js';
14
+ export { AntigravityAdapter } from './antigravity.js';
15
+ /**
16
+ * Registry of all available adapters
17
+ */
18
+ export declare const adapterRegistry: Map<AgentType, BaseAdapter>;
19
+ /**
20
+ * Get adapter by IDE type
21
+ */
22
+ export declare function getAdapter(ide: AgentType): BaseAdapter | undefined;
23
+ /**
24
+ * Get all available adapters
25
+ */
26
+ export declare function getAllAdapters(): BaseAdapter[];
27
+ /**
28
+ * Get adapters for installed IDEs
29
+ */
30
+ export declare function getInstalledAdapters(): Promise<BaseAdapter[]>;
31
+ /**
32
+ * Get adapter IDs for installed IDEs
33
+ */
34
+ export declare function getInstalledAdapterIds(): Promise<AgentType[]>;
35
+ /**
36
+ * Priority order for syncing (most commonly used first)
37
+ */
38
+ export declare const ADAPTER_PRIORITY: AgentType[];
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAwB,MAAM,WAAW,CAAC;AAM9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAStD;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,SAAS,EAAE,WAAW,CAMtD,CAAC;AAEH;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAElE;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,WAAW,EAAE,CAE9C;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAUnE;AAED;;GAEG;AACH,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAGnE;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,EAMvC,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * OpenCode Adapter
3
+ *
4
+ * Generates configuration for OpenCode AI coding assistant
5
+ * - AGENTS.md for agent instructions
6
+ * - .opencode.json for configuration
7
+ * - .opencode/mcp.json for MCP servers
8
+ */
9
+ import { BaseAdapter } from './base.js';
10
+ import type { AgentConfig, MCPServer, RuleSet, IDEConfig } from '../types/config.js';
11
+ import type { AgentType } from '../types/index.js';
12
+ export declare class OpenCodeAdapter extends BaseAdapter {
13
+ readonly id: AgentType;
14
+ readonly name = "opencode";
15
+ readonly displayName = "OpenCode";
16
+ readonly config: IDEConfig;
17
+ isInstalled(): Promise<boolean>;
18
+ generateAgentFile(config: AgentConfig): Promise<string>;
19
+ generateRulesConfig(rules: RuleSet): Promise<string>;
20
+ generateMCPConfig(servers: MCPServer[]): Promise<string>;
21
+ getAgentFilePath(projectPath: string, global?: boolean): string;
22
+ getRulesPath(projectPath: string, global?: boolean): string;
23
+ getMCPConfigPath(projectPath: string, global?: boolean): string;
24
+ }
25
+ //# sourceMappingURL=opencode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../src/adapters/opencode.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKnD,qBAAa,eAAgB,SAAQ,WAAW;IAC5C,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAc;IACpC,QAAQ,CAAC,IAAI,cAAc;IAC3B,QAAQ,CAAC,WAAW,cAAc;IAElC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAaxB;IAEI,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAI/B,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAyFvD,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAmBpD,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAwB9D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO/D,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;IAO3D,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;CAMlE"}