@8pt-dev/cli 0.3.0 → 0.3.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 +21 -0
- package/README.md +34 -3
- package/bin/8pt.js +1 -1
- package/package.json +41 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 8pt
|
|
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,6 +1,8 @@
|
|
|
1
1
|
# 8pt CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
8pt makes any AI model ship professional-grade UI: curated components, full-page templates, themes, icons and Skills, delivered to Claude Code, Cursor, Codex and Trae through one MCP server and CLI.
|
|
4
|
+
|
|
5
|
+
Search and install 8pt components, templates, themes, icons and Skills from your terminal or coding agent. Requires Node.js 18+.
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
8
|
npm i -g @8pt-dev/cli
|
|
@@ -12,10 +14,39 @@ npm i -g @8pt-dev/cli
|
|
|
12
14
|
8pt add <slug>
|
|
13
15
|
```
|
|
14
16
|
|
|
15
|
-
In CI or scripts skip login: `--api-key <key>` or `API_KEY_8PT=<key>`.
|
|
17
|
+
No global install: `npx @8pt-dev/cli <command>`. In CI or scripts skip login: `--api-key <key>` or `API_KEY_8PT=<key>`.
|
|
16
18
|
|
|
17
19
|
With `8pt init`, coding agents build every UI strictly from 8pt templates, components, one 8pt theme and 8pt icons.
|
|
18
20
|
|
|
19
21
|
Commands: init, design, rules, login, logout, status, search, add, prompt, templates, template, skills, skill, install-skill, theme, icons, mcp. Run `8pt --help`.
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
## MCP
|
|
24
|
+
|
|
25
|
+
Endpoint `https://8pt.dev/api/mcp` (Streamable HTTP), header `Authorization: Bearer <your 8pt API Key>`.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
claude mcp add --transport http 8pt https://8pt.dev/api/mcp \
|
|
29
|
+
--header "Authorization: Bearer <YOUR_8PT_API_KEY>"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Cursor / Trae / other clients:
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"mcpServers": {
|
|
37
|
+
"8pt": {
|
|
38
|
+
"url": "https://8pt.dev/api/mcp",
|
|
39
|
+
"headers": { "Authorization": "Bearer <YOUR_8PT_API_KEY>" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`8pt mcp [claude|codex|cursor]` prints the config for your client.
|
|
46
|
+
|
|
47
|
+
## Links
|
|
48
|
+
|
|
49
|
+
- Website: https://8pt.dev
|
|
50
|
+
- Docs: https://8pt.dev/docs/
|
|
51
|
+
- GitHub: https://github.com/8pt-dev/8pt
|
|
52
|
+
- Support: support@8pt.dev
|
package/bin/8pt.js
CHANGED
|
@@ -7,7 +7,7 @@ import path from "node:path";
|
|
|
7
7
|
import readline from "node:readline";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
|
|
10
|
-
const VERSION = "0.3.
|
|
10
|
+
const VERSION = "0.3.1";
|
|
11
11
|
const BASE = (process.env.EIGHTPT_BASE_URL || "https://8pt.dev").replace(/\/+$/, "");
|
|
12
12
|
const CONF_DIR = process.env.EIGHTPT_CONFIG_DIR || path.join(process.env.XDG_CONFIG_HOME || path.join(os.homedir(), ".config"), "8pt");
|
|
13
13
|
const CONF = path.join(CONF_DIR, "config.json");
|
package/package.json
CHANGED
|
@@ -1,12 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@8pt-dev/cli",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "8pt CLI:
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "8pt CLI: make any AI model ship professional-grade UI. Search and install 8pt components, templates, themes, icons and Skills from your terminal or coding agent (Claude Code, Cursor, Codex).",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"bin": {
|
|
7
|
+
"8pt": "bin/8pt.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"skill",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=18"
|
|
16
|
+
},
|
|
9
17
|
"homepage": "https://8pt.dev",
|
|
10
|
-
"
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/8pt-dev/8pt.git",
|
|
21
|
+
"directory": "cli"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/8pt-dev/8pt/issues",
|
|
25
|
+
"email": "support@8pt.dev"
|
|
26
|
+
},
|
|
27
|
+
"author": "8pt (https://8pt.dev)",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"8pt",
|
|
30
|
+
"mcp",
|
|
31
|
+
"mcp-server",
|
|
32
|
+
"ui-components",
|
|
33
|
+
"claude-code",
|
|
34
|
+
"cursor",
|
|
35
|
+
"codex",
|
|
36
|
+
"trae",
|
|
37
|
+
"design-system",
|
|
38
|
+
"ai-coding",
|
|
39
|
+
"components",
|
|
40
|
+
"templates",
|
|
41
|
+
"themes",
|
|
42
|
+
"icons",
|
|
43
|
+
"skills",
|
|
44
|
+
"cli"
|
|
45
|
+
],
|
|
11
46
|
"license": "MIT"
|
|
12
47
|
}
|