@ls.graphics/connect 0.1.0 → 0.1.2
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/README.md +13 -7
- package/dist/ls-graphics-connect.mjs +7751 -112
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@ local stdio package.
|
|
|
17
17
|
|
|
18
18
|
```
|
|
19
19
|
-y, --yes no questions: set up every detected tool and install the skill
|
|
20
|
-
--client LIST only these tools, even if not detected: claude-code, cursor, vscode, codex, windsurf, zed, claude-desktop, claude-desktop-bridge
|
|
21
|
-
--skill LIST where to install the skill: claude, universal (default:
|
|
20
|
+
--client LIST only these tools, even if not detected: claude-code, cursor, vscode, codex, windsurf, zed, pi, hermes, claude-desktop, claude-desktop-bridge
|
|
21
|
+
--skill LIST where to install the skill: claude, universal, hermes (default: claude and universal, plus hermes when Hermes is set up)
|
|
22
22
|
--no-skill do not install the skill
|
|
23
23
|
--helper also offer to render on this computer (not public yet)
|
|
24
24
|
--dry-run show what would change, write nothing
|
|
@@ -36,10 +36,12 @@ Without `--yes`, or without a terminal, the wizard is not interactive: it takes
|
|
|
36
36
|
| VS Code | user `mcp.json` (`Code/User/mcp.json` in the app-data folder): `servers` → `{"type": "http", "url": "…"}` | code.visualstudio.com/docs/agents/reference/mcp-configuration |
|
|
37
37
|
| Windsurf | `~/.codeium/windsurf/mcp_config.json`: `mcpServers` → `{"serverUrl": "…"}` | docs.windsurf.com/windsurf/cascade/mcp |
|
|
38
38
|
| Zed | `settings.json`: `context_servers` → `{"enabled": true, "url": "…"}` | zed.dev/docs/ai/mcp |
|
|
39
|
+
| Pi | `~/.pi/agent/mcp.json` (or `$PI_CODING_AGENT_DIR`): `mcpServers` → `{"url": "…"}`. Needs a pi with built-in MCP (`pi update`); older pi ignores the file. Sign in with `pi mcp login ls-graphics`. The skill is read from `~/.agents/skills`. | pi.dev, packages/coding-agent/docs/mcp.md |
|
|
40
|
+
| Hermes Agent | `~/.hermes/config.yaml` (`$HERMES_HOME`; `%LOCALAPPDATA%\hermes` on Windows): `mcp_servers` → `{url, auth: oauth}`. YAML is edited in place (comments and other keys stay). Sign in with `hermes mcp login ls-graphics` (on a host without a browser: `hermes mcp login ls-graphics --flow device`), then `/reload-mcp`. An existing `ls-graphics` entry keeps your other keys (`timeout`, `tools`, ...) and stays disabled if it has `enabled: false`; an entry using YAML anchors/aliases is refused and the manual lines are printed. The folder variables `HERMES_HOME` and `PI_CODING_AGENT_DIR` may use `~` and `$VAR`. Skill in `~/.hermes/skills/ls-graphics`. | hermes-agent.nousresearch.com/docs/user-guide/features/mcp |
|
|
39
41
|
| Claude Desktop | No file edit. The wizard prints Settings → Connectors → Add custom connector and offers to open the page; a connector added on claude.ai also shows in Desktop. `--client claude-desktop-bridge` instead edits `claude_desktop_config.json` to run `npx -y mcp-remote@<exact version>` (Desktop needs Node.js on its PATH). The Microsoft Store build (`%LOCALAPPDATA%\Packages\Claude_*`) is detected. | modelcontextprotocol.io/docs/develop/connect-local-servers |
|
|
40
42
|
|
|
41
|
-
Config files are edited in place: your other servers, comments and
|
|
42
|
-
`<file>.ls-graphics-backup-<time>`. A file that is not valid JSON is copied the same way and **left untouched**; the wizard says so
|
|
43
|
+
Config files are edited in place: your other servers and comments stay (JSON keeps its indentation; the Hermes YAML is re-printed by a YAML library, so comments and keys stay but spacing such as flow lists like `[a,b]` may be normalised; CRLF line endings and a BOM are kept). Before a file is changed it is copied to
|
|
44
|
+
`<file>.ls-graphics-backup-<time>`. A file that is not valid JSON (or YAML, for Hermes) is copied the same way and **left untouched**; the wizard says so
|
|
43
45
|
and moves on. Running the wizard again changes nothing. An existing `ls-graphics` entry that started the old local package
|
|
44
46
|
(`@ls.graphics/mcp-local`), or an `ls-graphics-local` entry that did, is replaced or removed, and the wizard says so.
|
|
45
47
|
|
|
@@ -58,7 +60,8 @@ Paths: macOS and Linux use `~`, `~/Library/Application Support` (macOS) or `$XDG
|
|
|
58
60
|
MCP; the per-tool rules come from the server itself. Installed to:
|
|
59
61
|
|
|
60
62
|
- `~/.claude/skills/ls-graphics/` for Claude Code
|
|
61
|
-
- `~/.agents/skills/ls-graphics/` for Codex, Cursor and other tools that read it
|
|
63
|
+
- `~/.agents/skills/ls-graphics/` for Codex, Cursor, Pi and other tools that read it
|
|
64
|
+
- `~/.hermes/skills/ls-graphics/` for Hermes Agent (only when Hermes is set up, or with `--skill hermes`; `--skill all` also creates `~/.hermes/skills`)
|
|
62
65
|
|
|
63
66
|
Files carry a hash line. A file you have not touched is updated silently; one you edited is only overwritten when you confirm
|
|
64
67
|
(a backup is kept), and under `--yes` it is skipped.
|
|
@@ -84,8 +87,11 @@ pnpm --filter @ls.graphics/connect test
|
|
|
84
87
|
pnpm --filter @ls.graphics/connect build # dist/ls-graphics-connect.mjs, one file, no runtime dependencies
|
|
85
88
|
```
|
|
86
89
|
|
|
87
|
-
The build fails if the bundle contains `AIza` (a Google/Firebase API key). The
|
|
88
|
-
`src/banner.ts`; the wizard makes no network call for it.
|
|
90
|
+
The build fails if the bundle contains `AIza` (a Google/Firebase API key). The banner (a card with the square-pixel
|
|
91
|
+
wordmark and the Pro line) is plain text in `src/banner.ts`; the wizard makes no network call for it. It sweeps in for ~1.3 s only on
|
|
92
|
+
a colour terminal that is wide enough (75+ columns), outside CI, with NO_COLOR unset; `--no-animation` or `LSG_NO_ANIMATION=1` prints it
|
|
93
|
+
settled. With NO_COLOR it is drawn in inverse video (no colour) and not animated; narrower than the card it is a one-line mark. The
|
|
94
|
+
cursor is hidden only during the sweep and restored on every exit path (end, error, Ctrl+C, SIGTERM).
|
|
89
95
|
|
|
90
96
|
## Publishing (the owner)
|
|
91
97
|
|