@voltui/agent 0.0.0-stage → 0.5.0
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 +21 -0
- package/README.md +62 -2
- package/content.js +787 -0
- package/installer.js +440 -0
- package/package.json +39 -4
- package/setup-agent.js +9 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Volt UI 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
CHANGED
|
@@ -1,3 +1,63 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @voltui/agent
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Connects your AI coding agent to the [Volt UI](https://volt-ui.andersseen.dev) MCP server and
|
|
4
|
+
installs the Volt UI context files it needs (skill, rules, snippets) into your project.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npx @voltui/agent # interactive
|
|
8
|
+
npx @voltui/agent claude # one agent
|
|
9
|
+
npx @voltui/agent cursor copilot # several
|
|
10
|
+
npx @voltui/agent --all --yes # every agent, no prompts
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Requires Node 20 or newer. No dependencies.
|
|
14
|
+
|
|
15
|
+
## What each agent gets
|
|
16
|
+
|
|
17
|
+
| Agent | Files written |
|
|
18
|
+
| ---------- | -------------------------------------------------------------------------------------------- |
|
|
19
|
+
| `claude` | `.mcp.json` (`http` transport), `.claude/skills/volt-ui/SKILL.md` |
|
|
20
|
+
| `cursor` | `.cursor/mcp.json`, `.cursorrules` |
|
|
21
|
+
| `windsurf` | `.codeium/windsurf/mcp_config.json` |
|
|
22
|
+
| `copilot` | `.vscode/mcp.json`, `.github/copilot-instructions.md`, `.vscode/volt-snippets.code-snippets` |
|
|
23
|
+
| `vscode` | `.vscode/volt-snippets.code-snippets` |
|
|
24
|
+
|
|
25
|
+
Claude Desktop is not configured by files: add the server under Settings → Connectors.
|
|
26
|
+
|
|
27
|
+
## It will not clobber your config
|
|
28
|
+
|
|
29
|
+
Running it again is safe, and `--dry-run` shows what would change first.
|
|
30
|
+
|
|
31
|
+
- **JSON configs** are merged: your other servers and keys stay. A file that is not valid JSON
|
|
32
|
+
(comments, trailing commas) is left untouched and the run fails with a message.
|
|
33
|
+
- **`.cursorrules`, `copilot-instructions.md`** get one block between
|
|
34
|
+
`<!-- volt-ui:begin … -->` and `<!-- volt-ui:end -->`. Your own text outside it is never touched;
|
|
35
|
+
the block is replaced in place on re-runs, so upgrading the package updates it.
|
|
36
|
+
- **Skill and snippets files** belong entirely to Volt UI and are rewritten.
|
|
37
|
+
|
|
38
|
+
## Options
|
|
39
|
+
|
|
40
|
+
| Option | Meaning |
|
|
41
|
+
| ---------------------------------- | -------------------------------------------------------------------- |
|
|
42
|
+
| `--all` | set up every agent |
|
|
43
|
+
| `--dir <path>` | project directory (default: the current directory) |
|
|
44
|
+
| `--url <url>` | MCP endpoint to write (default: `https://volt-ui.pages.dev/api/mcp`) |
|
|
45
|
+
| `--dry-run` | print what would change, write nothing |
|
|
46
|
+
| `--uninstall` | remove what this installer wrote; your other config is kept |
|
|
47
|
+
| `-y`, `--yes` | never prompt; with no agent given, set up every agent |
|
|
48
|
+
| `-v`, `--version` / `-h`, `--help` | |
|
|
49
|
+
|
|
50
|
+
Without a terminal (CI, scripts) and without an agent or `--all`, it fails instead of waiting for input.
|
|
51
|
+
|
|
52
|
+
Exit codes: `0` ok · `1` failed (for example an unparseable config) · `2` bad usage.
|
|
53
|
+
|
|
54
|
+
## Removing it
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx @voltui/agent claude --uninstall
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Links
|
|
61
|
+
|
|
62
|
+
[Documentation](https://volt-ui.andersseen.dev/docs/ai-mcp) ·
|
|
63
|
+
[Source](https://github.com/Andersseen/volt-ui/tree/main/cli/agent) · MIT
|