ai-dot 0.1.0-alpha.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ai-dot contributors
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,95 @@
1
+ # ai-dot
2
+
3
+ Configure once, generate for all AI coding tools.
4
+
5
+ `ai-dot` reads a single `.ai/` config directory and emits native configuration files for Claude Code, Cursor, Codex, OpenCode, GitHub Copilot, and Antigravity.
6
+
7
+ > **Alpha** — this tool is under active development. Expect breaking changes.
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install -g ai-dot
13
+ ```
14
+
15
+ ## Quick start
16
+
17
+ ```bash
18
+ # Scaffold a new .ai/ directory
19
+ ai-dot init
20
+
21
+ # Generate config files for all targets
22
+ ai-dot sync
23
+
24
+ # Generate for specific targets
25
+ ai-dot sync --target claude cursor
26
+
27
+ # Check config validity
28
+ ai-dot check
29
+
30
+ # See what's changed since last sync
31
+ ai-dot status
32
+ ```
33
+
34
+ ## How it works
35
+
36
+ You define your AI coding config once in `.ai/`:
37
+
38
+ ```
39
+ .ai/
40
+ config.yaml # MCP servers, permissions, hooks, ignore patterns
41
+ directives/ # Markdown instruction files
42
+ code-style.md
43
+ testing.md
44
+ skills/ # Reusable skill definitions
45
+ commit/SKILL.md
46
+ agents/ # Agent definitions
47
+ reviewer.md
48
+ ```
49
+
50
+ Then `ai-dot sync` generates the native config files each tool expects:
51
+
52
+ | Target | Output |
53
+ |--------|--------|
54
+ | Claude Code | `CLAUDE.md`, `.claude/`, `.mcp.json` |
55
+ | Cursor | `.cursor/`, `.cursorrules` |
56
+ | Codex | `AGENTS.md`, `.codex/` |
57
+ | OpenCode | `AGENTS.md`, `opencode.json` |
58
+ | GitHub Copilot | `.github/copilot-instructions.md`, `.copilot/` |
59
+ | Antigravity | `ANTIGRAVITY.md` |
60
+
61
+ ## Import existing config
62
+
63
+ Already have config files for one tool? Import them:
64
+
65
+ ```bash
66
+ # Import from existing Claude Code config
67
+ ai-dot import --source claude
68
+
69
+ # Import from Cursor
70
+ ai-dot import --source cursor
71
+ ```
72
+
73
+ ## Commands
74
+
75
+ | Command | Description |
76
+ |---------|-------------|
77
+ | `ai-dot init` | Scaffold a `.ai/` directory with guided setup |
78
+ | `ai-dot sync` | Generate config files for target tools |
79
+ | `ai-dot check` | Validate config and report compatibility |
80
+ | `ai-dot status` | Show sync state and detect manual edits |
81
+ | `ai-dot import` | Import config from an existing tool |
82
+ | `ai-dot add` | Add a directive, skill, or agent |
83
+
84
+ ## Programmatic usage
85
+
86
+ ```typescript
87
+ import { loadConfig, emitAll } from "ai-dot";
88
+
89
+ const config = await loadConfig({ scope: "project" });
90
+ const files = emitAll(config);
91
+ ```
92
+
93
+ ## License
94
+
95
+ MIT