@vibemastery/zurf 0.1.0 → 0.2.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 CHANGED
@@ -5,8 +5,8 @@ A lightweight CLI for searching and fetching web pages, powered by Browserbase.
5
5
 
6
6
 
7
7
  [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
8
- [![Version](https://img.shields.io/npm/v/zurf.svg)](https://npmjs.org/package/zurf)
9
- [![Downloads/week](https://img.shields.io/npm/dw/zurf.svg)](https://npmjs.org/package/zurf)
8
+ [![Version](https://img.shields.io/npm/v/@vibemastery/zurf.svg)](https://npmjs.org/package/@vibemastery/zurf)
9
+ [![Downloads/week](https://img.shields.io/npm/dw/@vibemastery/zurf.svg)](https://npmjs.org/package/@vibemastery/zurf)
10
10
 
11
11
  ## Configuration
12
12
 
@@ -39,503 +39,9 @@ $ zurf search "browserbase fetch api" --json
39
39
  $ zurf fetch https://example.com --json
40
40
  ```
41
41
 
42
- <!-- toc -->
43
- * [Usage](#usage)
44
- * [Commands](#commands)
45
- <!-- tocstop -->
46
- # Usage
47
- <!-- usage -->
42
+ ## Installation
43
+
48
44
  ```sh-session
49
45
  $ npm install -g @vibemastery/zurf
50
- $ zurf COMMAND
51
- running command...
52
- $ zurf (--version)
53
- @vibemastery/zurf/0.1.0 darwin-arm64 node-v22.22.2
54
- $ zurf --help [COMMAND]
55
- USAGE
56
- $ zurf COMMAND
57
- ...
58
- ```
59
- <!-- usagestop -->
60
- # Commands
61
- <!-- commands -->
62
- * [`zurf autocomplete [SHELL]`](#zurf-autocomplete-shell)
63
- * [`zurf config which`](#zurf-config-which)
64
- * [`zurf fetch URL`](#zurf-fetch-url)
65
- * [`zurf help [COMMAND]`](#zurf-help-command)
66
- * [`zurf init`](#zurf-init)
67
- * [`zurf plugins`](#zurf-plugins)
68
- * [`zurf plugins add PLUGIN`](#zurf-plugins-add-plugin)
69
- * [`zurf plugins:inspect PLUGIN...`](#zurf-pluginsinspect-plugin)
70
- * [`zurf plugins install PLUGIN`](#zurf-plugins-install-plugin)
71
- * [`zurf plugins link PATH`](#zurf-plugins-link-path)
72
- * [`zurf plugins remove [PLUGIN]`](#zurf-plugins-remove-plugin)
73
- * [`zurf plugins reset`](#zurf-plugins-reset)
74
- * [`zurf plugins uninstall [PLUGIN]`](#zurf-plugins-uninstall-plugin)
75
- * [`zurf plugins unlink [PLUGIN]`](#zurf-plugins-unlink-plugin)
76
- * [`zurf plugins update`](#zurf-plugins-update)
77
- * [`zurf search QUERY`](#zurf-search-query)
78
-
79
- ## `zurf autocomplete [SHELL]`
80
-
81
- Display autocomplete installation instructions.
82
-
83
- ```
84
- USAGE
85
- $ zurf autocomplete [SHELL] [-r]
86
-
87
- ARGUMENTS
88
- [SHELL] (zsh|bash|powershell) Shell type
89
-
90
- FLAGS
91
- -r, --refresh-cache Refresh cache (ignores displaying instructions)
92
-
93
- DESCRIPTION
94
- Display autocomplete installation instructions.
95
-
96
- EXAMPLES
97
- $ zurf autocomplete
98
-
99
- $ zurf autocomplete bash
100
-
101
- $ zurf autocomplete zsh
102
-
103
- $ zurf autocomplete powershell
104
-
105
- $ zurf autocomplete --refresh-cache
106
- ```
107
-
108
- _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.42/src/commands/autocomplete/index.ts)_
109
-
110
- ## `zurf config which`
111
-
112
- Show where the API key is loaded from
113
-
114
- ```
115
- USAGE
116
- $ zurf config which [--json]
117
-
118
- FLAGS
119
- --json [env: ZURF_JSON] Print machine-readable JSON to stdout
120
-
121
- DESCRIPTION
122
- Show where the API key is loaded from
123
-
124
- Show where the Browserbase API key would be loaded from (no secret printed).
125
- Resolution order: BROWSERBASE_API_KEY, then project .zurf/config.json (walk-up), then global config in the CLI config
126
- directory.
127
-
128
- EXAMPLES
129
- $ zurf config which
130
-
131
- $ zurf config which --json
132
- ```
133
-
134
- _See code: [src/commands/config/which.ts](https://github.com/vibemastery/zurf/blob/v0.1.0/src/commands/config/which.ts)_
135
-
136
- ## `zurf fetch URL`
137
-
138
- Fetch a URL via Browserbase
139
-
140
- ```
141
- USAGE
142
- $ zurf fetch URL [--json] [--allow-insecure-ssl] [--allow-redirects] [-o <value>] [--proxies]
143
-
144
- ARGUMENTS
145
- URL URL to fetch
146
-
147
- FLAGS
148
- -o, --output=<value> Write response body to this file (full content); otherwise human mode prints a truncated
149
- preview to stdout
150
- --allow-insecure-ssl Disable TLS certificate verification (use only if you trust the target)
151
- --allow-redirects Follow HTTP redirects
152
- --json [env: ZURF_JSON] Print machine-readable JSON to stdout
153
- --proxies Route through Browserbase proxies (helps with some blocked sites)
154
-
155
- DESCRIPTION
156
- Fetch a URL via Browserbase
157
-
158
- Fetch a URL via Browserbase (no browser session; static HTML, 1 MB max).
159
- Requires authentication. Run `zurf init --global` or use a project key before first use.
160
-
161
- EXAMPLES
162
- $ zurf fetch https://example.com
163
-
164
- $ zurf fetch https://example.com --json
165
-
166
- $ zurf fetch https://example.com -o page.html --proxies
167
- ```
168
-
169
- _See code: [src/commands/fetch/index.ts](https://github.com/vibemastery/zurf/blob/v0.1.0/src/commands/fetch/index.ts)_
170
-
171
- ## `zurf help [COMMAND]`
172
-
173
- Display help for zurf.
174
-
175
- ```
176
- USAGE
177
- $ zurf help [COMMAND...] [-n]
178
-
179
- ARGUMENTS
180
- [COMMAND...] Command to show help for.
181
-
182
- FLAGS
183
- -n, --nested-commands Include all nested commands in the output.
184
-
185
- DESCRIPTION
186
- Display help for zurf.
187
- ```
188
-
189
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.40/src/commands/help.ts)_
190
-
191
- ## `zurf init`
192
-
193
- Configure Browserbase API key storage
194
-
195
- ```
196
- USAGE
197
- $ zurf init [--json] [--api-key <value>] [--gitignore] [--global] [--local]
198
-
199
- FLAGS
200
- --api-key=<value> API key for non-interactive use. Prefer piping stdin or using a TTY prompt — values on the command
201
- line are visible in shell history and process listings.
202
- --gitignore Append .zurf/ to ./.gitignore if that entry is missing
203
- --global Store API key in user config (oclif config dir for this CLI)
204
- --json [env: ZURF_JSON] Print machine-readable JSON to stdout
205
- --local Store API key in ./.zurf/config.json for this directory
206
-
207
- DESCRIPTION
208
- Configure Browserbase API key storage
209
-
210
- Save your Browserbase API key to global or project config.
211
- Global path follows oclif config (same as `zurf config which`).
212
-
213
- EXAMPLES
214
- $ zurf init --global
215
-
216
- $ zurf init --local
217
-
218
- printenv BROWSERBASE_API_KEY | zurf init --global
219
- ```
220
-
221
- _See code: [src/commands/init/index.ts](https://github.com/vibemastery/zurf/blob/v0.1.0/src/commands/init/index.ts)_
222
-
223
- ## `zurf plugins`
224
-
225
- List installed plugins.
226
-
227
- ```
228
- USAGE
229
- $ zurf plugins [--json] [--core]
230
-
231
- FLAGS
232
- --core Show core plugins.
233
-
234
- GLOBAL FLAGS
235
- --json Format output as json.
236
-
237
- DESCRIPTION
238
- List installed plugins.
239
-
240
- EXAMPLES
241
- $ zurf plugins
242
- ```
243
-
244
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/index.ts)_
245
-
246
- ## `zurf plugins add PLUGIN`
247
-
248
- Installs a plugin into zurf.
249
-
250
- ```
251
- USAGE
252
- $ zurf plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
253
-
254
- ARGUMENTS
255
- PLUGIN... Plugin to install.
256
-
257
- FLAGS
258
- -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
259
- -h, --help Show CLI help.
260
- -s, --silent Silences npm output.
261
- -v, --verbose Show verbose npm output.
262
-
263
- GLOBAL FLAGS
264
- --json Format output as json.
265
-
266
- DESCRIPTION
267
- Installs a plugin into zurf.
268
-
269
- Uses npm to install plugins.
270
-
271
- Installation of a user-installed plugin will override a core plugin.
272
-
273
- Use the ZURF_NPM_LOG_LEVEL environment variable to set the npm loglevel.
274
- Use the ZURF_NPM_REGISTRY environment variable to set the npm registry.
275
-
276
- ALIASES
277
- $ zurf plugins add
278
-
279
- EXAMPLES
280
- Install a plugin from npm registry.
281
-
282
- $ zurf plugins add myplugin
283
-
284
- Install a plugin from a github url.
285
-
286
- $ zurf plugins add https://github.com/someuser/someplugin
287
-
288
- Install a plugin from a github slug.
289
-
290
- $ zurf plugins add someuser/someplugin
291
- ```
292
-
293
- ## `zurf plugins:inspect PLUGIN...`
294
-
295
- Displays installation properties of a plugin.
296
-
46
+ $ zurf --help
297
47
  ```
298
- USAGE
299
- $ zurf plugins inspect PLUGIN...
300
-
301
- ARGUMENTS
302
- PLUGIN... [default: .] Plugin to inspect.
303
-
304
- FLAGS
305
- -h, --help Show CLI help.
306
- -v, --verbose
307
-
308
- GLOBAL FLAGS
309
- --json Format output as json.
310
-
311
- DESCRIPTION
312
- Displays installation properties of a plugin.
313
-
314
- EXAMPLES
315
- $ zurf plugins inspect myplugin
316
- ```
317
-
318
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/inspect.ts)_
319
-
320
- ## `zurf plugins install PLUGIN`
321
-
322
- Installs a plugin into zurf.
323
-
324
- ```
325
- USAGE
326
- $ zurf plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
327
-
328
- ARGUMENTS
329
- PLUGIN... Plugin to install.
330
-
331
- FLAGS
332
- -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
333
- -h, --help Show CLI help.
334
- -s, --silent Silences npm output.
335
- -v, --verbose Show verbose npm output.
336
-
337
- GLOBAL FLAGS
338
- --json Format output as json.
339
-
340
- DESCRIPTION
341
- Installs a plugin into zurf.
342
-
343
- Uses npm to install plugins.
344
-
345
- Installation of a user-installed plugin will override a core plugin.
346
-
347
- Use the ZURF_NPM_LOG_LEVEL environment variable to set the npm loglevel.
348
- Use the ZURF_NPM_REGISTRY environment variable to set the npm registry.
349
-
350
- ALIASES
351
- $ zurf plugins add
352
-
353
- EXAMPLES
354
- Install a plugin from npm registry.
355
-
356
- $ zurf plugins install myplugin
357
-
358
- Install a plugin from a github url.
359
-
360
- $ zurf plugins install https://github.com/someuser/someplugin
361
-
362
- Install a plugin from a github slug.
363
-
364
- $ zurf plugins install someuser/someplugin
365
- ```
366
-
367
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/install.ts)_
368
-
369
- ## `zurf plugins link PATH`
370
-
371
- Links a plugin into the CLI for development.
372
-
373
- ```
374
- USAGE
375
- $ zurf plugins link PATH [-h] [--install] [-v]
376
-
377
- ARGUMENTS
378
- PATH [default: .] path to plugin
379
-
380
- FLAGS
381
- -h, --help Show CLI help.
382
- -v, --verbose
383
- --[no-]install Install dependencies after linking the plugin.
384
-
385
- DESCRIPTION
386
- Links a plugin into the CLI for development.
387
-
388
- Installation of a linked plugin will override a user-installed or core plugin.
389
-
390
- e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
391
- command will override the user-installed or core plugin implementation. This is useful for development work.
392
-
393
-
394
- EXAMPLES
395
- $ zurf plugins link myplugin
396
- ```
397
-
398
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/link.ts)_
399
-
400
- ## `zurf plugins remove [PLUGIN]`
401
-
402
- Removes a plugin from the CLI.
403
-
404
- ```
405
- USAGE
406
- $ zurf plugins remove [PLUGIN...] [-h] [-v]
407
-
408
- ARGUMENTS
409
- [PLUGIN...] plugin to uninstall
410
-
411
- FLAGS
412
- -h, --help Show CLI help.
413
- -v, --verbose
414
-
415
- DESCRIPTION
416
- Removes a plugin from the CLI.
417
-
418
- ALIASES
419
- $ zurf plugins unlink
420
- $ zurf plugins remove
421
-
422
- EXAMPLES
423
- $ zurf plugins remove myplugin
424
- ```
425
-
426
- ## `zurf plugins reset`
427
-
428
- Remove all user-installed and linked plugins.
429
-
430
- ```
431
- USAGE
432
- $ zurf plugins reset [--hard] [--reinstall]
433
-
434
- FLAGS
435
- --hard Delete node_modules and package manager related files in addition to uninstalling plugins.
436
- --reinstall Reinstall all plugins after uninstalling.
437
- ```
438
-
439
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/reset.ts)_
440
-
441
- ## `zurf plugins uninstall [PLUGIN]`
442
-
443
- Removes a plugin from the CLI.
444
-
445
- ```
446
- USAGE
447
- $ zurf plugins uninstall [PLUGIN...] [-h] [-v]
448
-
449
- ARGUMENTS
450
- [PLUGIN...] plugin to uninstall
451
-
452
- FLAGS
453
- -h, --help Show CLI help.
454
- -v, --verbose
455
-
456
- DESCRIPTION
457
- Removes a plugin from the CLI.
458
-
459
- ALIASES
460
- $ zurf plugins unlink
461
- $ zurf plugins remove
462
-
463
- EXAMPLES
464
- $ zurf plugins uninstall myplugin
465
- ```
466
-
467
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/uninstall.ts)_
468
-
469
- ## `zurf plugins unlink [PLUGIN]`
470
-
471
- Removes a plugin from the CLI.
472
-
473
- ```
474
- USAGE
475
- $ zurf plugins unlink [PLUGIN...] [-h] [-v]
476
-
477
- ARGUMENTS
478
- [PLUGIN...] plugin to uninstall
479
-
480
- FLAGS
481
- -h, --help Show CLI help.
482
- -v, --verbose
483
-
484
- DESCRIPTION
485
- Removes a plugin from the CLI.
486
-
487
- ALIASES
488
- $ zurf plugins unlink
489
- $ zurf plugins remove
490
-
491
- EXAMPLES
492
- $ zurf plugins unlink myplugin
493
- ```
494
-
495
- ## `zurf plugins update`
496
-
497
- Update installed plugins.
498
-
499
- ```
500
- USAGE
501
- $ zurf plugins update [-h] [-v]
502
-
503
- FLAGS
504
- -h, --help Show CLI help.
505
- -v, --verbose
506
-
507
- DESCRIPTION
508
- Update installed plugins.
509
- ```
510
-
511
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/update.ts)_
512
-
513
- ## `zurf search QUERY`
514
-
515
- Search the web via Browserbase
516
-
517
- ```
518
- USAGE
519
- $ zurf search QUERY [--json] [-n <value>]
520
-
521
- ARGUMENTS
522
- QUERY Search query, max 200 characters (quote for multiple words)
523
-
524
- FLAGS
525
- -n, --num-results=<value> [default: 10] Number of results (1–25)
526
- --json [env: ZURF_JSON] Print machine-readable JSON to stdout
527
-
528
- DESCRIPTION
529
- Search the web via Browserbase
530
-
531
- Search the web via Browserbase (Exa-powered).
532
- Requires authentication. Run `zurf init --global` or use a project key before first use.
533
-
534
- EXAMPLES
535
- $ zurf search "browserbase documentation"
536
-
537
- $ zurf search "laravel inertia" --num-results 5 --json
538
- ```
539
-
540
- _See code: [src/commands/search/index.ts](https://github.com/vibemastery/zurf/blob/v0.1.0/src/commands/search/index.ts)_
541
- <!-- commandsstop -->
@@ -100,54 +100,6 @@
100
100
  "index.js"
101
101
  ]
102
102
  },
103
- "search": {
104
- "aliases": [],
105
- "args": {
106
- "query": {
107
- "description": "Search query, max 200 characters (quote for multiple words)",
108
- "name": "query",
109
- "required": true
110
- }
111
- },
112
- "description": "Search the web via Browserbase (Exa-powered).\nRequires authentication. Run `zurf init --global` or use a project key before first use.",
113
- "examples": [
114
- "<%= config.bin %> <%= command.id %> \"browserbase documentation\"",
115
- "<%= config.bin %> <%= command.id %> \"laravel inertia\" --num-results 5 --json"
116
- ],
117
- "flags": {
118
- "json": {
119
- "description": "Print machine-readable JSON to stdout",
120
- "env": "ZURF_JSON",
121
- "name": "json",
122
- "allowNo": false,
123
- "type": "boolean"
124
- },
125
- "num-results": {
126
- "char": "n",
127
- "description": "Number of results (1–25)",
128
- "name": "num-results",
129
- "default": 10,
130
- "hasDynamicHelp": false,
131
- "multiple": false,
132
- "type": "option"
133
- }
134
- },
135
- "hasDynamicHelp": false,
136
- "hiddenAliases": [],
137
- "id": "search",
138
- "pluginAlias": "@vibemastery/zurf",
139
- "pluginName": "@vibemastery/zurf",
140
- "pluginType": "core",
141
- "strict": true,
142
- "summary": "Search the web via Browserbase",
143
- "isESM": true,
144
- "relativePath": [
145
- "dist",
146
- "commands",
147
- "search",
148
- "index.js"
149
- ]
150
- },
151
103
  "init": {
152
104
  "aliases": [],
153
105
  "args": {},
@@ -207,7 +159,55 @@
207
159
  "init",
208
160
  "index.js"
209
161
  ]
162
+ },
163
+ "search": {
164
+ "aliases": [],
165
+ "args": {
166
+ "query": {
167
+ "description": "Search query, max 200 characters (quote for multiple words)",
168
+ "name": "query",
169
+ "required": true
170
+ }
171
+ },
172
+ "description": "Search the web via Browserbase (Exa-powered).\nRequires authentication. Run `zurf init --global` or use a project key before first use.",
173
+ "examples": [
174
+ "<%= config.bin %> <%= command.id %> \"browserbase documentation\"",
175
+ "<%= config.bin %> <%= command.id %> \"laravel inertia\" --num-results 5 --json"
176
+ ],
177
+ "flags": {
178
+ "json": {
179
+ "description": "Print machine-readable JSON to stdout",
180
+ "env": "ZURF_JSON",
181
+ "name": "json",
182
+ "allowNo": false,
183
+ "type": "boolean"
184
+ },
185
+ "num-results": {
186
+ "char": "n",
187
+ "description": "Number of results (1–25)",
188
+ "name": "num-results",
189
+ "default": 10,
190
+ "hasDynamicHelp": false,
191
+ "multiple": false,
192
+ "type": "option"
193
+ }
194
+ },
195
+ "hasDynamicHelp": false,
196
+ "hiddenAliases": [],
197
+ "id": "search",
198
+ "pluginAlias": "@vibemastery/zurf",
199
+ "pluginName": "@vibemastery/zurf",
200
+ "pluginType": "core",
201
+ "strict": true,
202
+ "summary": "Search the web via Browserbase",
203
+ "isESM": true,
204
+ "relativePath": [
205
+ "dist",
206
+ "commands",
207
+ "search",
208
+ "index.js"
209
+ ]
210
210
  }
211
211
  },
212
- "version": "0.1.0"
212
+ "version": "0.2.2"
213
213
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vibemastery/zurf",
3
3
  "description": "A lightweight CLI for searching and fetching web pages, powered by Browserbase.",
4
- "version": "0.1.0",
4
+ "version": "0.2.2",
5
5
  "author": "Luis Güette",
6
6
  "bin": {
7
7
  "zurf": "./bin/run.js"
@@ -81,10 +81,9 @@
81
81
  "lint": "eslint",
82
82
  "postpack": "shx rm -f oclif.manifest.json",
83
83
  "posttest": "pnpm run lint",
84
- "prepack": "oclif manifest && oclif readme",
84
+ "prepack": "oclif manifest",
85
85
  "pretest": "pnpm run build",
86
- "test": "mocha --forbid-only \"test/**/*.test.ts\"",
87
- "version": "oclif readme && git add README.md"
86
+ "test": "mocha --forbid-only \"test/**/*.test.ts\""
88
87
  },
89
88
  "types": "dist/index.d.ts"
90
89
  }