lupacode 0.1.0 → 0.2.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/README.md +46 -0
- package/bin/lupacode.cmd +1 -1
- package/dist/index.js +9782 -6205
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# lupacode
|
|
2
|
+
|
|
3
|
+
AI-powered terminal coding assistant.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g lupacode
|
|
9
|
+
# or
|
|
10
|
+
bun install -g lupacode
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Quick start
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
lupacode
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Configuration
|
|
20
|
+
|
|
21
|
+
| Env var | Default | Required | Description |
|
|
22
|
+
|---|---|---|---|
|
|
23
|
+
| `API_URL` | `https://lupacodeserver-production.up.railway.app` | No | LupaCode API server |
|
|
24
|
+
| `CLERK_FRONTEND_API` | — | For `/login` | Clerk frontend API URL |
|
|
25
|
+
| `CLERK_OAUTH_CLIENT_ID` | — | For `/login` | Clerk OAuth client ID |
|
|
26
|
+
| `CLERK_OAUTH_CLIENT_SECRET` | — | For `/login` | Clerk OAuth client secret |
|
|
27
|
+
|
|
28
|
+
### Setting up authentication
|
|
29
|
+
|
|
30
|
+
The CLI uses Clerk for OAuth login. To authenticate:
|
|
31
|
+
|
|
32
|
+
1. Create a free account at [clerk.com](https://clerk.com)
|
|
33
|
+
2. Create a new application
|
|
34
|
+
3. Copy your **Frontend API URL** (looks like `https://your-app.clerk.accounts.dev`)
|
|
35
|
+
4. In the OAuth settings, create an OAuth application to get a **Client ID** and **Client Secret**
|
|
36
|
+
5. Set these in your environment or `.env` file:
|
|
37
|
+
```env
|
|
38
|
+
CLERK_FRONTEND_API=https://your-app.clerk.accounts.dev
|
|
39
|
+
CLERK_OAUTH_CLIENT_ID=your-client-id
|
|
40
|
+
CLERK_OAUTH_CLIENT_SECRET=your-client-secret
|
|
41
|
+
```
|
|
42
|
+
6. Run `lupacode` and type `/login`
|
|
43
|
+
|
|
44
|
+
## Requirements
|
|
45
|
+
|
|
46
|
+
- [Bun](https://bun.sh) >= 1.0
|
package/bin/lupacode.cmd
CHANGED