lynxprompt 0.1.1 → 0.2.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/README.md +141 -92
- package/dist/index.js +1503 -260
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,9 +5,18 @@ Generate AI IDE configuration files from your terminal.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
#
|
|
8
|
+
# npm (cross-platform)
|
|
9
9
|
npm install -g lynxprompt
|
|
10
10
|
|
|
11
|
+
# Homebrew (macOS)
|
|
12
|
+
brew install GeiserX/lynxprompt/lynxprompt
|
|
13
|
+
|
|
14
|
+
# Chocolatey (Windows)
|
|
15
|
+
choco install lynxprompt
|
|
16
|
+
|
|
17
|
+
# Snap (Linux)
|
|
18
|
+
snap install lynxprompt
|
|
19
|
+
|
|
11
20
|
# Or use with npx
|
|
12
21
|
npx lynxprompt
|
|
13
22
|
```
|
|
@@ -17,85 +26,136 @@ The CLI is available as both `lynxprompt` and the short alias `lynxp`.
|
|
|
17
26
|
## Quick Start
|
|
18
27
|
|
|
19
28
|
```bash
|
|
20
|
-
#
|
|
21
|
-
lynxp init
|
|
22
|
-
|
|
23
|
-
# Or use the interactive wizard for a guided setup
|
|
29
|
+
# Generate an AI config file (recommended for most users)
|
|
24
30
|
lynxp wizard
|
|
25
31
|
|
|
26
|
-
#
|
|
27
|
-
lynxp
|
|
32
|
+
# Quick generation with defaults (creates AGENTS.md)
|
|
33
|
+
lynxp wizard -y
|
|
28
34
|
|
|
29
|
-
#
|
|
30
|
-
lynxp
|
|
35
|
+
# Generate for Cursor specifically
|
|
36
|
+
lynxp wizard -f cursor
|
|
37
|
+
|
|
38
|
+
# Login to sync with LynxPrompt cloud
|
|
39
|
+
lynxp login
|
|
31
40
|
|
|
32
|
-
# Download a blueprint
|
|
41
|
+
# Download a blueprint from marketplace
|
|
33
42
|
lynxp pull bp_abc123
|
|
43
|
+
|
|
44
|
+
# Check config status
|
|
45
|
+
lynxp status
|
|
34
46
|
```
|
|
35
47
|
|
|
36
48
|
## Commands
|
|
37
49
|
|
|
38
|
-
###
|
|
50
|
+
### Wizard (`lynxp wizard`) ⭐ Recommended
|
|
51
|
+
|
|
52
|
+
Interactive wizard for generating AI IDE configurations:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Interactive mode
|
|
56
|
+
lynxp wizard
|
|
57
|
+
|
|
58
|
+
# Quick mode with defaults (generates AGENTS.md)
|
|
59
|
+
lynxp wizard -y
|
|
60
|
+
|
|
61
|
+
# Generate for specific format
|
|
62
|
+
lynxp wizard -f cursor # .cursor/rules/
|
|
63
|
+
lynxp wizard -f agents # AGENTS.md (universal)
|
|
64
|
+
lynxp wizard -f copilot # .github/copilot-instructions.md
|
|
65
|
+
|
|
66
|
+
# Generate multiple formats
|
|
67
|
+
lynxp wizard -f agents,cursor,copilot
|
|
68
|
+
|
|
69
|
+
# Non-interactive with all options
|
|
70
|
+
lynxp wizard \
|
|
71
|
+
--name "my-api" \
|
|
72
|
+
--description "REST API for user management" \
|
|
73
|
+
--stack typescript,express \
|
|
74
|
+
--format cursor \
|
|
75
|
+
--persona backend \
|
|
76
|
+
--boundaries conservative \
|
|
77
|
+
--yes
|
|
78
|
+
```
|
|
39
79
|
|
|
40
|
-
|
|
80
|
+
### Check (`lynxp check`)
|
|
41
81
|
|
|
42
|
-
|
|
43
|
-
2. Imports them or creates a starter template
|
|
44
|
-
3. Sets up the `.lynxprompt/` directory structure
|
|
82
|
+
Validate AI configuration files for CI/CD pipelines:
|
|
45
83
|
|
|
46
84
|
```bash
|
|
47
|
-
# Interactive
|
|
48
|
-
lynxp
|
|
85
|
+
# Interactive validation
|
|
86
|
+
lynxp check
|
|
87
|
+
|
|
88
|
+
# CI mode (exit code 0=pass, 1=fail)
|
|
89
|
+
lynxp check --ci
|
|
90
|
+
```
|
|
49
91
|
|
|
50
|
-
|
|
51
|
-
lynxp init --yes
|
|
92
|
+
### Status (`lynxp status`)
|
|
52
93
|
|
|
53
|
-
|
|
54
|
-
|
|
94
|
+
Show current AI configuration and tracked blueprints:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
lynxp status
|
|
55
98
|
```
|
|
56
99
|
|
|
57
|
-
|
|
100
|
+
### Pull (`lynxp pull`)
|
|
101
|
+
|
|
102
|
+
Download and track a blueprint from the marketplace:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Download and track
|
|
106
|
+
lynxp pull bp_abc123
|
|
107
|
+
|
|
108
|
+
# Preview content first
|
|
109
|
+
lynxp pull bp_abc123 --preview
|
|
58
110
|
|
|
111
|
+
# Don't track for future syncs
|
|
112
|
+
lynxp pull bp_abc123 --no-track
|
|
59
113
|
```
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
114
|
+
|
|
115
|
+
### Link / Unlink
|
|
116
|
+
|
|
117
|
+
Connect local files to cloud blueprints:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Link existing file to blueprint
|
|
121
|
+
lynxp link AGENTS.md bp_abc123
|
|
122
|
+
|
|
123
|
+
# List all tracked blueprints
|
|
124
|
+
lynxp link --list
|
|
125
|
+
|
|
126
|
+
# Disconnect from cloud
|
|
127
|
+
lynxp unlink AGENTS.md
|
|
66
128
|
```
|
|
67
129
|
|
|
68
|
-
###
|
|
130
|
+
### Diff
|
|
69
131
|
|
|
70
|
-
|
|
132
|
+
Show changes between local and cloud:
|
|
71
133
|
|
|
72
134
|
```bash
|
|
73
|
-
#
|
|
74
|
-
lynxp
|
|
135
|
+
# Compare with cloud blueprint
|
|
136
|
+
lynxp diff bp_abc123
|
|
75
137
|
|
|
76
|
-
#
|
|
77
|
-
lynxp
|
|
78
|
-
--name "my-api" \
|
|
79
|
-
--description "REST API for user management" \
|
|
80
|
-
--stack typescript,express \
|
|
81
|
-
--platforms cursor,claude \
|
|
82
|
-
--persona backend \
|
|
83
|
-
--boundaries conservative \
|
|
84
|
-
--yes
|
|
138
|
+
# Compare local rules with exports
|
|
139
|
+
lynxp diff --local
|
|
85
140
|
```
|
|
86
141
|
|
|
87
|
-
|
|
142
|
+
### Search (`lynxp search`)
|
|
143
|
+
|
|
144
|
+
Search public blueprints in the marketplace:
|
|
88
145
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
146
|
+
```bash
|
|
147
|
+
lynxp search "nextjs typescript"
|
|
148
|
+
lynxp search react --limit 10
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### List (`lynxp list`)
|
|
152
|
+
|
|
153
|
+
List your own blueprints:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
lynxp list
|
|
157
|
+
lynxp list --visibility PUBLIC
|
|
158
|
+
```
|
|
99
159
|
|
|
100
160
|
### Authentication
|
|
101
161
|
|
|
@@ -110,64 +170,53 @@ lynxp whoami
|
|
|
110
170
|
lynxp logout
|
|
111
171
|
```
|
|
112
172
|
|
|
113
|
-
###
|
|
173
|
+
### Advanced: Init and Sync
|
|
174
|
+
|
|
175
|
+
For power users who want to manage rules across multiple AI editors:
|
|
114
176
|
|
|
115
177
|
```bash
|
|
116
|
-
#
|
|
117
|
-
lynxp
|
|
118
|
-
lynxp list --visibility PUBLIC
|
|
119
|
-
lynxp list --limit 50
|
|
178
|
+
# Initialize .lynxprompt/ folder
|
|
179
|
+
lynxp init
|
|
120
180
|
|
|
121
|
-
#
|
|
122
|
-
lynxp
|
|
123
|
-
lynxp
|
|
181
|
+
# Sync rules to all configured agents
|
|
182
|
+
lynxp sync
|
|
183
|
+
lynxp sync --dry-run # Preview changes
|
|
124
184
|
|
|
125
|
-
#
|
|
126
|
-
lynxp
|
|
185
|
+
# Manage AI agents
|
|
186
|
+
lynxp agents
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Blueprint Tracking
|
|
190
|
+
|
|
191
|
+
When you pull a blueprint, LynxPrompt tracks it in `.lynxprompt/blueprints.yml`:
|
|
192
|
+
|
|
193
|
+
- **Marketplace blueprints** - Read-only, can pull updates but changes won't sync back
|
|
194
|
+
- **Team blueprints** - Full sync, push and pull changes with your team
|
|
195
|
+
- **Private blueprints** - Your own, full control
|
|
127
196
|
|
|
128
|
-
|
|
197
|
+
```bash
|
|
198
|
+
# See all tracked blueprints
|
|
129
199
|
lynxp status
|
|
200
|
+
|
|
201
|
+
# Or
|
|
202
|
+
lynxp link --list
|
|
130
203
|
```
|
|
131
204
|
|
|
132
205
|
## Environment Variables
|
|
133
206
|
|
|
134
207
|
| Variable | Description |
|
|
135
208
|
|----------|-------------|
|
|
136
|
-
| `LYNXPROMPT_TOKEN` | API token (
|
|
209
|
+
| `LYNXPROMPT_TOKEN` | API token for CI/CD (skips browser auth) |
|
|
137
210
|
| `LYNXPROMPT_API_URL` | Custom API URL (for development) |
|
|
138
211
|
|
|
139
|
-
##
|
|
140
|
-
|
|
141
|
-
LynxPrompt uses a simple directory structure:
|
|
142
|
-
|
|
143
|
-
- **`.lynxprompt/conf.yml`** - Configuration file with exporters and sources
|
|
144
|
-
- **`.lynxprompt/rules/`** - Your rules in markdown format (single source of truth)
|
|
145
|
-
|
|
146
|
-
**Workflow:**
|
|
147
|
-
|
|
148
|
-
1. Edit rules in `.lynxprompt/rules/`
|
|
149
|
-
2. Run `lynxp sync` to export to agent formats (AGENTS.md, .cursorrules, etc.)
|
|
150
|
-
3. Your AI assistants pick up the changes automatically
|
|
151
|
-
|
|
152
|
-
## Configuration File
|
|
153
|
-
|
|
154
|
-
The `conf.yml` file controls how rules are exported:
|
|
212
|
+
## CI/CD Integration
|
|
155
213
|
|
|
156
214
|
```yaml
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
- cursor # .cursorrules
|
|
161
|
-
sources:
|
|
162
|
-
- type: local
|
|
163
|
-
path: .lynxprompt/rules
|
|
215
|
+
# GitHub Actions example
|
|
216
|
+
- name: Validate AI config
|
|
217
|
+
run: npx lynxprompt check --ci
|
|
164
218
|
```
|
|
165
219
|
|
|
166
|
-
## API Access
|
|
167
|
-
|
|
168
|
-
API access requires a Pro, Max, or Teams subscription. Generate tokens at:
|
|
169
|
-
https://lynxprompt.com/settings?tab=api-tokens
|
|
170
|
-
|
|
171
220
|
## Documentation
|
|
172
221
|
|
|
173
222
|
Full documentation: https://lynxprompt.com/docs/cli
|