@plumpslabs/fennec-cli 1.10.0 → 1.11.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 +44 -1
- package/dist/index.js +1348 -108
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -94,6 +94,33 @@ npm run dev 2>&1 | fennec pipe --name "dev-server"
|
|
|
94
94
|
|
|
95
95
|
> *"Why is my app broken?"* — AI uses Fennec to check browser console, network, and server logs simultaneously.
|
|
96
96
|
|
|
97
|
+
## Features
|
|
98
|
+
|
|
99
|
+
### 🧠 AI-Native API
|
|
100
|
+
Fennec's AI-Native API provides 7 observation-centric tools for AI agents:
|
|
101
|
+
- `observe()` — Multi-sensor observation with level-based detail
|
|
102
|
+
- `ai_diagnose()` — Full-stack diagnosis with root cause inference
|
|
103
|
+
- `correlate()` — Cross-layer event correlation with timeline
|
|
104
|
+
- `summarize()` — Token-efficient log/event/DOM compression
|
|
105
|
+
- `explain()` — Plain-language incident/state explanation
|
|
106
|
+
- `investigate()` — Deep dive with Lazy Context Level 2-3
|
|
107
|
+
- `predict()` — Pattern-based failure prediction
|
|
108
|
+
|
|
109
|
+
### 🦊 Lazy Context — 200x Token Savings
|
|
110
|
+
Information delivered in levels, config-driven:
|
|
111
|
+
```
|
|
112
|
+
Level 0 (Pulse): Always sent ~5 tokens
|
|
113
|
+
Level 1 (Summary): On error ~50 tokens
|
|
114
|
+
Level 2 (Detail): On expand ~200 tokens
|
|
115
|
+
Level 3 (Raw): On request ~2000+ tokens
|
|
116
|
+
```
|
|
117
|
+
### 🚀 Zero-Dependency Browser Mode
|
|
118
|
+
Fennec auto-detects the best browser adapter:
|
|
119
|
+
- **CDP Observer** (default, zero deps) — lightweight observation
|
|
120
|
+
- **Playwright** (optional) — full automation (click, type, upload)
|
|
121
|
+
|
|
122
|
+
Configure via `browser.adapter: "auto" | "cdp" | "playwright"`
|
|
123
|
+
|
|
97
124
|
## CLI Commands
|
|
98
125
|
|
|
99
126
|
| Command | Description |
|
|
@@ -146,6 +173,16 @@ npm run dev 2>&1 | fennec pipe --name "admin-test"
|
|
|
146
173
|
fennec start # In another MCP client config
|
|
147
174
|
```
|
|
148
175
|
|
|
176
|
+
### AI Diagnosis (One-Liner)
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Start server with pipe
|
|
180
|
+
npm run dev 2>&1 | fennec pipe --name "my-app"
|
|
181
|
+
|
|
182
|
+
# In AI: "Why is my app broken?"
|
|
183
|
+
# AI calls observe() → ai_diagnose() → finds root cause
|
|
184
|
+
```
|
|
185
|
+
|
|
149
186
|
## Configuration
|
|
150
187
|
|
|
151
188
|
Fennec works with zero config, but supports customization:
|
|
@@ -158,12 +195,18 @@ Key configuration options (see [full reference](docs/configuration.md)):
|
|
|
158
195
|
|
|
159
196
|
```yaml
|
|
160
197
|
browser:
|
|
161
|
-
|
|
198
|
+
adapter: auto # auto, cdp, or playwright
|
|
199
|
+
type: chromium # chromium, firefox, or webkit
|
|
162
200
|
headless: true
|
|
163
201
|
viewport:
|
|
164
202
|
width: 1280
|
|
165
203
|
height: 720
|
|
166
204
|
|
|
205
|
+
lazyContext:
|
|
206
|
+
level1: true # Auto-attach summary on errors
|
|
207
|
+
level2: false # Attach detail on expand
|
|
208
|
+
level3: false # Attach raw data on request
|
|
209
|
+
|
|
167
210
|
security:
|
|
168
211
|
sandbox: true
|
|
169
212
|
allowProcessSpawn: true
|