orient-cli 0.2.1 → 0.3.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.
Files changed (46) hide show
  1. package/dist/extensions/orient-playwright.d.ts +7 -0
  2. package/dist/extensions/orient-playwright.js +8 -0
  3. package/dist/extensions/orient-playwright.js.map +1 -0
  4. package/dist/extensions/orient-web-search.d.ts +5 -0
  5. package/dist/extensions/orient-web-search.js +6 -0
  6. package/dist/extensions/orient-web-search.js.map +1 -0
  7. package/dist/integrations/notebooklm/setup.d.ts +94 -0
  8. package/dist/integrations/notebooklm/setup.js +311 -0
  9. package/dist/integrations/notebooklm/setup.js.map +1 -0
  10. package/dist/integrations/playwright/bridge.d.ts +85 -0
  11. package/dist/integrations/playwright/bridge.js +225 -0
  12. package/dist/integrations/playwright/bridge.js.map +1 -0
  13. package/dist/integrations/playwright/playwright-extension.d.ts +22 -0
  14. package/dist/integrations/playwright/playwright-extension.js +209 -0
  15. package/dist/integrations/playwright/playwright-extension.js.map +1 -0
  16. package/dist/integrations/web-search/bridge.d.ts +79 -0
  17. package/dist/integrations/web-search/bridge.js +298 -0
  18. package/dist/integrations/web-search/bridge.js.map +1 -0
  19. package/dist/integrations/web-search/web-search-extension.d.ts +26 -0
  20. package/dist/integrations/web-search/web-search-extension.js +122 -0
  21. package/dist/integrations/web-search/web-search-extension.js.map +1 -0
  22. package/dist/orient/orient-extension.js +149 -1
  23. package/dist/orient/orient-extension.js.map +1 -1
  24. package/dist/package-paths.js +6 -1
  25. package/dist/package-paths.js.map +1 -1
  26. package/node_modules/@orient-cli/agent-core/package.json +2 -2
  27. package/node_modules/@orient-cli/ai/package.json +1 -1
  28. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  29. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js +2 -2
  30. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -1
  31. package/node_modules/@orient-cli/coding-agent/package.json +4 -4
  32. package/node_modules/@orient-cli/tui/package.json +1 -1
  33. package/node_modules/mime-db/HISTORY.md +541 -0
  34. package/node_modules/mime-db/LICENSE +23 -0
  35. package/node_modules/mime-db/README.md +109 -0
  36. package/node_modules/mime-db/db.json +9342 -0
  37. package/node_modules/mime-db/index.js +12 -0
  38. package/node_modules/mime-db/package.json +56 -0
  39. package/node_modules/mime-types/HISTORY.md +428 -0
  40. package/node_modules/mime-types/LICENSE +23 -0
  41. package/node_modules/mime-types/README.md +126 -0
  42. package/node_modules/mime-types/index.js +211 -0
  43. package/node_modules/mime-types/mimeScore.js +57 -0
  44. package/node_modules/mime-types/package.json +49 -0
  45. package/package.json +13 -6
  46. package/scripts/postinstall.mjs +235 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orient-cli/coding-agent",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "ORIENT Coding Agent — the engine behind orient-cli. Agent loop, tools, TUI, providers, sessions. Forked from @mariozechner/pi-coding-agent at v0.66.1; see NOTICE.md for upstream attribution.",
5
5
  "type": "module",
6
6
  "orientConfig": {
@@ -44,9 +44,9 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@mariozechner/jiti": "^2.6.2",
47
- "@orient-cli/agent-core": "^0.2.0",
48
- "@orient-cli/ai": "^0.2.0",
49
- "@orient-cli/tui": "^0.2.0",
47
+ "@orient-cli/agent-core": "^0.3.0",
48
+ "@orient-cli/ai": "^0.3.0",
49
+ "@orient-cli/tui": "^0.3.0",
50
50
  "@silvia-odwyer/photon-node": "^0.3.4",
51
51
  "ajv": "^8.17.1",
52
52
  "chalk": "^5.5.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orient-cli/tui",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "ORIENT TUI — terminal user interface library with differential rendering. Forked from @mariozechner/pi-tui at v0.66.1.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,541 @@
1
+ 1.54.0 / 2025-03-17
2
+ ===================
3
+
4
+ * Update mime type for DCM format (#362)
5
+ * mark application/octet-stream as compressible (#163)
6
+ * Fix typo in application/x-zip-compressed mimetype (#359)
7
+ * Add mime-type for Jupyter notebooks (#282)
8
+ * Add Google Drive MIME types (#311)
9
+ * Add .blend file type (#338)
10
+ * Add support for the FBX file extension (#342)
11
+ * Add Adobe DNG file (#340)
12
+ * Add Procreate Brush and Brush Set file Types (#339)
13
+ * Add support for Procreate Dreams (#341)
14
+ * replace got with undici (#352)
15
+ * Added extensions list for model/step (#293)
16
+ * Add m4b as a type of audio/mp4 (#357)
17
+ * windows 11 application/x-zip-compressed (#346)
18
+ * add dotLottie mime type (#351)
19
+ * Add some MS-related extensions and types (#336)
20
+
21
+ 1.53.0 / 2024-07-12
22
+ ===================
23
+
24
+ * Add extension `.sql` to `application/sql`
25
+ * Add extensions `.aac` and `.adts` to `audio/aac`
26
+ * Add extensions `.js` and `.mjs` to `text/javascript`
27
+ * Add extensions for `application/mp4` from IANA
28
+ * Add extensions from IANA for more MIME types
29
+ * Add Microsoft app installer types and extensions
30
+ * Add new upstream MIME types
31
+ * Fix extensions for `text/markdown` to match IANA
32
+ * Remove extension `.mjs` from `application/javascript`
33
+ * Remove obsolete MIME types from IANA data
34
+
35
+ 1.52.0 / 2022-02-21
36
+ ===================
37
+
38
+ * Add extensions from IANA for more `image/*` types
39
+ * Add extension `.asc` to `application/pgp-keys`
40
+ * Add extensions to various XML types
41
+ * Add new upstream MIME types
42
+
43
+ 1.51.0 / 2021-11-08
44
+ ===================
45
+
46
+ * Add new upstream MIME types
47
+ * Mark `image/vnd.microsoft.icon` as compressible
48
+ * Mark `image/vnd.ms-dds` as compressible
49
+
50
+ 1.50.0 / 2021-09-15
51
+ ===================
52
+
53
+ * Add deprecated iWorks mime types and extensions
54
+ * Add new upstream MIME types
55
+
56
+ 1.49.0 / 2021-07-26
57
+ ===================
58
+
59
+ * Add extension `.trig` to `application/trig`
60
+ * Add new upstream MIME types
61
+
62
+ 1.48.0 / 2021-05-30
63
+ ===================
64
+
65
+ * Add extension `.mvt` to `application/vnd.mapbox-vector-tile`
66
+ * Add new upstream MIME types
67
+ * Mark `text/yaml` as compressible
68
+
69
+ 1.47.0 / 2021-04-01
70
+ ===================
71
+
72
+ * Add new upstream MIME types
73
+ * Remove ambiguous extensions from IANA for `application/*+xml` types
74
+ * Update primary extension to `.es` for `application/ecmascript`
75
+
76
+ 1.46.0 / 2021-02-13
77
+ ===================
78
+
79
+ * Add extension `.amr` to `audio/amr`
80
+ * Add extension `.m4s` to `video/iso.segment`
81
+ * Add extension `.opus` to `audio/ogg`
82
+ * Add new upstream MIME types
83
+
84
+ 1.45.0 / 2020-09-22
85
+ ===================
86
+
87
+ * Add `application/ubjson` with extension `.ubj`
88
+ * Add `image/avif` with extension `.avif`
89
+ * Add `image/ktx2` with extension `.ktx2`
90
+ * Add extension `.dbf` to `application/vnd.dbf`
91
+ * Add extension `.rar` to `application/vnd.rar`
92
+ * Add extension `.td` to `application/urc-targetdesc+xml`
93
+ * Add new upstream MIME types
94
+ * Fix extension of `application/vnd.apple.keynote` to be `.key`
95
+
96
+ 1.44.0 / 2020-04-22
97
+ ===================
98
+
99
+ * Add charsets from IANA
100
+ * Add extension `.cjs` to `application/node`
101
+ * Add new upstream MIME types
102
+
103
+ 1.43.0 / 2020-01-05
104
+ ===================
105
+
106
+ * Add `application/x-keepass2` with extension `.kdbx`
107
+ * Add extension `.mxmf` to `audio/mobile-xmf`
108
+ * Add extensions from IANA for `application/*+xml` types
109
+ * Add new upstream MIME types
110
+
111
+ 1.42.0 / 2019-09-25
112
+ ===================
113
+
114
+ * Add `image/vnd.ms-dds` with extension `.dds`
115
+ * Add new upstream MIME types
116
+ * Remove compressible from `multipart/mixed`
117
+
118
+ 1.41.0 / 2019-08-30
119
+ ===================
120
+
121
+ * Add new upstream MIME types
122
+ * Add `application/toml` with extension `.toml`
123
+ * Mark `font/ttf` as compressible
124
+
125
+ 1.40.0 / 2019-04-20
126
+ ===================
127
+
128
+ * Add extensions from IANA for `model/*` types
129
+ * Add `text/mdx` with extension `.mdx`
130
+
131
+ 1.39.0 / 2019-04-04
132
+ ===================
133
+
134
+ * Add extensions `.siv` and `.sieve` to `application/sieve`
135
+ * Add new upstream MIME types
136
+
137
+ 1.38.0 / 2019-02-04
138
+ ===================
139
+
140
+ * Add extension `.nq` to `application/n-quads`
141
+ * Add extension `.nt` to `application/n-triples`
142
+ * Add new upstream MIME types
143
+ * Mark `text/less` as compressible
144
+
145
+ 1.37.0 / 2018-10-19
146
+ ===================
147
+
148
+ * Add extensions to HEIC image types
149
+ * Add new upstream MIME types
150
+
151
+ 1.36.0 / 2018-08-20
152
+ ===================
153
+
154
+ * Add Apple file extensions from IANA
155
+ * Add extensions from IANA for `image/*` types
156
+ * Add new upstream MIME types
157
+
158
+ 1.35.0 / 2018-07-15
159
+ ===================
160
+
161
+ * Add extension `.owl` to `application/rdf+xml`
162
+ * Add new upstream MIME types
163
+ - Removes extension `.woff` from `application/font-woff`
164
+
165
+ 1.34.0 / 2018-06-03
166
+ ===================
167
+
168
+ * Add extension `.csl` to `application/vnd.citationstyles.style+xml`
169
+ * Add extension `.es` to `application/ecmascript`
170
+ * Add new upstream MIME types
171
+ * Add `UTF-8` as default charset for `text/turtle`
172
+ * Mark all XML-derived types as compressible
173
+
174
+ 1.33.0 / 2018-02-15
175
+ ===================
176
+
177
+ * Add extensions from IANA for `message/*` types
178
+ * Add new upstream MIME types
179
+ * Fix some incorrect OOXML types
180
+ * Remove `application/font-woff2`
181
+
182
+ 1.32.0 / 2017-11-29
183
+ ===================
184
+
185
+ * Add new upstream MIME types
186
+ * Update `text/hjson` to registered `application/hjson`
187
+ * Add `text/shex` with extension `.shex`
188
+
189
+ 1.31.0 / 2017-10-25
190
+ ===================
191
+
192
+ * Add `application/raml+yaml` with extension `.raml`
193
+ * Add `application/wasm` with extension `.wasm`
194
+ * Add new `font` type from IANA
195
+ * Add new upstream font extensions
196
+ * Add new upstream MIME types
197
+ * Add extensions for JPEG-2000 images
198
+
199
+ 1.30.0 / 2017-08-27
200
+ ===================
201
+
202
+ * Add `application/vnd.ms-outlook`
203
+ * Add `application/x-arj`
204
+ * Add extension `.mjs` to `application/javascript`
205
+ * Add glTF types and extensions
206
+ * Add new upstream MIME types
207
+ * Add `text/x-org`
208
+ * Add VirtualBox MIME types
209
+ * Fix `source` records for `video/*` types that are IANA
210
+ * Update `font/opentype` to registered `font/otf`
211
+
212
+ 1.29.0 / 2017-07-10
213
+ ===================
214
+
215
+ * Add `application/fido.trusted-apps+json`
216
+ * Add extension `.wadl` to `application/vnd.sun.wadl+xml`
217
+ * Add new upstream MIME types
218
+ * Add `UTF-8` as default charset for `text/css`
219
+
220
+ 1.28.0 / 2017-05-14
221
+ ===================
222
+
223
+ * Add new upstream MIME types
224
+ * Add extension `.gz` to `application/gzip`
225
+ * Update extensions `.md` and `.markdown` to be `text/markdown`
226
+
227
+ 1.27.0 / 2017-03-16
228
+ ===================
229
+
230
+ * Add new upstream MIME types
231
+ * Add `image/apng` with extension `.apng`
232
+
233
+ 1.26.0 / 2017-01-14
234
+ ===================
235
+
236
+ * Add new upstream MIME types
237
+ * Add extension `.geojson` to `application/geo+json`
238
+
239
+ 1.25.0 / 2016-11-11
240
+ ===================
241
+
242
+ * Add new upstream MIME types
243
+
244
+ 1.24.0 / 2016-09-18
245
+ ===================
246
+
247
+ * Add `audio/mp3`
248
+ * Add new upstream MIME types
249
+
250
+ 1.23.0 / 2016-05-01
251
+ ===================
252
+
253
+ * Add new upstream MIME types
254
+ * Add extension `.3gpp` to `audio/3gpp`
255
+
256
+ 1.22.0 / 2016-02-15
257
+ ===================
258
+
259
+ * Add `text/slim`
260
+ * Add extension `.rng` to `application/xml`
261
+ * Add new upstream MIME types
262
+ * Fix extension of `application/dash+xml` to be `.mpd`
263
+ * Update primary extension to `.m4a` for `audio/mp4`
264
+
265
+ 1.21.0 / 2016-01-06
266
+ ===================
267
+
268
+ * Add Google document types
269
+ * Add new upstream MIME types
270
+
271
+ 1.20.0 / 2015-11-10
272
+ ===================
273
+
274
+ * Add `text/x-suse-ymp`
275
+ * Add new upstream MIME types
276
+
277
+ 1.19.0 / 2015-09-17
278
+ ===================
279
+
280
+ * Add `application/vnd.apple.pkpass`
281
+ * Add new upstream MIME types
282
+
283
+ 1.18.0 / 2015-09-03
284
+ ===================
285
+
286
+ * Add new upstream MIME types
287
+
288
+ 1.17.0 / 2015-08-13
289
+ ===================
290
+
291
+ * Add `application/x-msdos-program`
292
+ * Add `audio/g711-0`
293
+ * Add `image/vnd.mozilla.apng`
294
+ * Add extension `.exe` to `application/x-msdos-program`
295
+
296
+ 1.16.0 / 2015-07-29
297
+ ===================
298
+
299
+ * Add `application/vnd.uri-map`
300
+
301
+ 1.15.0 / 2015-07-13
302
+ ===================
303
+
304
+ * Add `application/x-httpd-php`
305
+
306
+ 1.14.0 / 2015-06-25
307
+ ===================
308
+
309
+ * Add `application/scim+json`
310
+ * Add `application/vnd.3gpp.ussd+xml`
311
+ * Add `application/vnd.biopax.rdf+xml`
312
+ * Add `text/x-processing`
313
+
314
+ 1.13.0 / 2015-06-07
315
+ ===================
316
+
317
+ * Add nginx as a source
318
+ * Add `application/x-cocoa`
319
+ * Add `application/x-java-archive-diff`
320
+ * Add `application/x-makeself`
321
+ * Add `application/x-perl`
322
+ * Add `application/x-pilot`
323
+ * Add `application/x-redhat-package-manager`
324
+ * Add `application/x-sea`
325
+ * Add `audio/x-m4a`
326
+ * Add `audio/x-realaudio`
327
+ * Add `image/x-jng`
328
+ * Add `text/mathml`
329
+
330
+ 1.12.0 / 2015-06-05
331
+ ===================
332
+
333
+ * Add `application/bdoc`
334
+ * Add `application/vnd.hyperdrive+json`
335
+ * Add `application/x-bdoc`
336
+ * Add extension `.rtf` to `text/rtf`
337
+
338
+ 1.11.0 / 2015-05-31
339
+ ===================
340
+
341
+ * Add `audio/wav`
342
+ * Add `audio/wave`
343
+ * Add extension `.litcoffee` to `text/coffeescript`
344
+ * Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data`
345
+ * Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install`
346
+
347
+ 1.10.0 / 2015-05-19
348
+ ===================
349
+
350
+ * Add `application/vnd.balsamiq.bmpr`
351
+ * Add `application/vnd.microsoft.portable-executable`
352
+ * Add `application/x-ns-proxy-autoconfig`
353
+
354
+ 1.9.1 / 2015-04-19
355
+ ==================
356
+
357
+ * Remove `.json` extension from `application/manifest+json`
358
+ - This is causing bugs downstream
359
+
360
+ 1.9.0 / 2015-04-19
361
+ ==================
362
+
363
+ * Add `application/manifest+json`
364
+ * Add `application/vnd.micro+json`
365
+ * Add `image/vnd.zbrush.pcx`
366
+ * Add `image/x-ms-bmp`
367
+
368
+ 1.8.0 / 2015-03-13
369
+ ==================
370
+
371
+ * Add `application/vnd.citationstyles.style+xml`
372
+ * Add `application/vnd.fastcopy-disk-image`
373
+ * Add `application/vnd.gov.sk.xmldatacontainer+xml`
374
+ * Add extension `.jsonld` to `application/ld+json`
375
+
376
+ 1.7.0 / 2015-02-08
377
+ ==================
378
+
379
+ * Add `application/vnd.gerber`
380
+ * Add `application/vnd.msa-disk-image`
381
+
382
+ 1.6.1 / 2015-02-05
383
+ ==================
384
+
385
+ * Community extensions ownership transferred from `node-mime`
386
+
387
+ 1.6.0 / 2015-01-29
388
+ ==================
389
+
390
+ * Add `application/jose`
391
+ * Add `application/jose+json`
392
+ * Add `application/json-seq`
393
+ * Add `application/jwk+json`
394
+ * Add `application/jwk-set+json`
395
+ * Add `application/jwt`
396
+ * Add `application/rdap+json`
397
+ * Add `application/vnd.gov.sk.e-form+xml`
398
+ * Add `application/vnd.ims.imsccv1p3`
399
+
400
+ 1.5.0 / 2014-12-30
401
+ ==================
402
+
403
+ * Add `application/vnd.oracle.resource+json`
404
+ * Fix various invalid MIME type entries
405
+ - `application/mbox+xml`
406
+ - `application/oscp-response`
407
+ - `application/vwg-multiplexed`
408
+ - `audio/g721`
409
+
410
+ 1.4.0 / 2014-12-21
411
+ ==================
412
+
413
+ * Add `application/vnd.ims.imsccv1p2`
414
+ * Fix various invalid MIME type entries
415
+ - `application/vnd-acucobol`
416
+ - `application/vnd-curl`
417
+ - `application/vnd-dart`
418
+ - `application/vnd-dxr`
419
+ - `application/vnd-fdf`
420
+ - `application/vnd-mif`
421
+ - `application/vnd-sema`
422
+ - `application/vnd-wap-wmlc`
423
+ - `application/vnd.adobe.flash-movie`
424
+ - `application/vnd.dece-zip`
425
+ - `application/vnd.dvb_service`
426
+ - `application/vnd.micrografx-igx`
427
+ - `application/vnd.sealed-doc`
428
+ - `application/vnd.sealed-eml`
429
+ - `application/vnd.sealed-mht`
430
+ - `application/vnd.sealed-ppt`
431
+ - `application/vnd.sealed-tiff`
432
+ - `application/vnd.sealed-xls`
433
+ - `application/vnd.sealedmedia.softseal-html`
434
+ - `application/vnd.sealedmedia.softseal-pdf`
435
+ - `application/vnd.wap-slc`
436
+ - `application/vnd.wap-wbxml`
437
+ - `audio/vnd.sealedmedia.softseal-mpeg`
438
+ - `image/vnd-djvu`
439
+ - `image/vnd-svf`
440
+ - `image/vnd-wap-wbmp`
441
+ - `image/vnd.sealed-png`
442
+ - `image/vnd.sealedmedia.softseal-gif`
443
+ - `image/vnd.sealedmedia.softseal-jpg`
444
+ - `model/vnd-dwf`
445
+ - `model/vnd.parasolid.transmit-binary`
446
+ - `model/vnd.parasolid.transmit-text`
447
+ - `text/vnd-a`
448
+ - `text/vnd-curl`
449
+ - `text/vnd.wap-wml`
450
+ * Remove example template MIME types
451
+ - `application/example`
452
+ - `audio/example`
453
+ - `image/example`
454
+ - `message/example`
455
+ - `model/example`
456
+ - `multipart/example`
457
+ - `text/example`
458
+ - `video/example`
459
+
460
+ 1.3.1 / 2014-12-16
461
+ ==================
462
+
463
+ * Fix missing extensions
464
+ - `application/json5`
465
+ - `text/hjson`
466
+
467
+ 1.3.0 / 2014-12-07
468
+ ==================
469
+
470
+ * Add `application/a2l`
471
+ * Add `application/aml`
472
+ * Add `application/atfx`
473
+ * Add `application/atxml`
474
+ * Add `application/cdfx+xml`
475
+ * Add `application/dii`
476
+ * Add `application/json5`
477
+ * Add `application/lxf`
478
+ * Add `application/mf4`
479
+ * Add `application/vnd.apache.thrift.compact`
480
+ * Add `application/vnd.apache.thrift.json`
481
+ * Add `application/vnd.coffeescript`
482
+ * Add `application/vnd.enphase.envoy`
483
+ * Add `application/vnd.ims.imsccv1p1`
484
+ * Add `text/csv-schema`
485
+ * Add `text/hjson`
486
+ * Add `text/markdown`
487
+ * Add `text/yaml`
488
+
489
+ 1.2.0 / 2014-11-09
490
+ ==================
491
+
492
+ * Add `application/cea`
493
+ * Add `application/dit`
494
+ * Add `application/vnd.gov.sk.e-form+zip`
495
+ * Add `application/vnd.tmd.mediaflex.api+xml`
496
+ * Type `application/epub+zip` is now IANA-registered
497
+
498
+ 1.1.2 / 2014-10-23
499
+ ==================
500
+
501
+ * Rebuild database for `application/x-www-form-urlencoded` change
502
+
503
+ 1.1.1 / 2014-10-20
504
+ ==================
505
+
506
+ * Mark `application/x-www-form-urlencoded` as compressible.
507
+
508
+ 1.1.0 / 2014-09-28
509
+ ==================
510
+
511
+ * Add `application/font-woff2`
512
+
513
+ 1.0.3 / 2014-09-25
514
+ ==================
515
+
516
+ * Fix engine requirement in package
517
+
518
+ 1.0.2 / 2014-09-25
519
+ ==================
520
+
521
+ * Add `application/coap-group+json`
522
+ * Add `application/dcd`
523
+ * Add `application/vnd.apache.thrift.binary`
524
+ * Add `image/vnd.tencent.tap`
525
+ * Mark all JSON-derived types as compressible
526
+ * Update `text/vtt` data
527
+
528
+ 1.0.1 / 2014-08-30
529
+ ==================
530
+
531
+ * Fix extension ordering
532
+
533
+ 1.0.0 / 2014-08-30
534
+ ==================
535
+
536
+ * Add `application/atf`
537
+ * Add `application/merge-patch+json`
538
+ * Add `multipart/x-mixed-replace`
539
+ * Add `source: 'apache'` metadata
540
+ * Add `source: 'iana'` metadata
541
+ * Remove badly-assumed charset data
@@ -0,0 +1,23 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
4
+ Copyright (c) 2015-2022 Douglas Christopher Wilson <doug@somethingdoug.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ 'Software'), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,109 @@
1
+ # mime-db
2
+
3
+ [![NPM Version][npm-version-image]][npm-url]
4
+ [![NPM Downloads][npm-downloads-image]][npm-url]
5
+ [![Node.js Version][node-image]][node-url]
6
+ [![Build Status][ci-image]][ci-url]
7
+ [![Coverage Status][coveralls-image]][coveralls-url]
8
+
9
+ This is a large database of mime types and information about them.
10
+ It consists of a single, public JSON file and does not include any logic,
11
+ allowing it to remain as un-opinionated as possible with an API.
12
+ It aggregates data from the following sources:
13
+
14
+ - https://www.iana.org/assignments/media-types/media-types.xhtml
15
+ - https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
16
+ - https://hg.nginx.org/nginx/raw-file/default/conf/mime.types
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ npm install mime-db
22
+ ```
23
+
24
+ ### Database Download
25
+
26
+ If you intend to use this in a web browser, you can conveniently access the JSON file via [jsDelivr](https://www.jsdelivr.com/), a popular CDN (Content Delivery Network). To ensure stability and compatibility, it is advisable to specify [a release tag](https://github.com/jshttp/mime-db/tags) instead of using the 'master' branch. This is because the JSON file's format might change in future updates, and relying on a specific release tag will prevent potential issues arising from these changes.
27
+
28
+ ```
29
+ https://cdn.jsdelivr.net/gh/jshttp/mime-db@master/db.json
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```js
35
+ var db = require('mime-db')
36
+
37
+ // grab data on .js files
38
+ var data = db['application/javascript']
39
+ ```
40
+
41
+ ## Data Structure
42
+
43
+ The JSON file is a map lookup for lowercased mime types.
44
+ Each mime type has the following properties:
45
+
46
+ - `.source` - where the mime type is defined.
47
+ If not set, it's probably a custom media type.
48
+ - `apache` - [Apache common media types](https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)
49
+ - `iana` - [IANA-defined media types](https://www.iana.org/assignments/media-types/media-types.xhtml)
50
+ - `nginx` - [nginx media types](https://hg.nginx.org/nginx/raw-file/default/conf/mime.types)
51
+ - `.extensions[]` - known extensions associated with this mime type.
52
+ - `.compressible` - whether a file of this type can be gzipped.
53
+ - `.charset` - the default charset associated with this type, if any.
54
+
55
+ If unknown, every property could be `undefined`.
56
+
57
+ ## Note on MIME Type Data and Semver
58
+
59
+ This package considers the programmatic api as the semver compatibility. This means the MIME type resolution is *not* considered
60
+ in the semver bumps. This means that if you want to pin your `mime-db` data you will need to do it in your application. While
61
+ this expectation was not set in docs until now, it is how the pacakge operated, so we do not feel this is a breaking change.
62
+
63
+ ## Contributing
64
+
65
+ The primary way to contribute to this database is by updating the data in
66
+ one of the upstream sources. The database is updated from the upstreams
67
+ periodically and will pull in any changes.
68
+
69
+ ### Registering Media Types
70
+
71
+ The best way to get new media types included in this library is to register
72
+ them with the IANA. The community registration procedure is outlined in
73
+ [RFC 6838 section 5](https://tools.ietf.org/html/rfc6838#section-5). Types
74
+ registered with the IANA are automatically pulled into this library.
75
+
76
+ ### Direct Inclusion
77
+
78
+ If that is not possible / feasible, they can be added directly here as a
79
+ "custom" type. To do this, it is required to have a primary source that
80
+ definitively lists the media type. If an extension is going to be listed as
81
+ associated with this media type, the source must definitively link the
82
+ media type and extension as well.
83
+
84
+ To edit the database, only make PRs against `src/custom-types.json` or
85
+ `src/custom-suffix.json`.
86
+
87
+ The `src/custom-types.json` file is a JSON object with the MIME type as the
88
+ keys and the values being an object with the following keys:
89
+
90
+ - `compressible` - leave out if you don't know, otherwise `true`/`false` to
91
+ indicate whether the data represented by the type is typically compressible.
92
+ - `extensions` - include an array of file extensions that are associated with
93
+ the type.
94
+ - `notes` - human-readable notes about the type, typically what the type is.
95
+ - `sources` - include an array of URLs of where the MIME type and the associated
96
+ extensions are sourced from. This needs to be a [primary source](https://en.wikipedia.org/wiki/Primary_source);
97
+ links to type aggregating sites and Wikipedia are _not acceptable_.
98
+
99
+ To update the build, run `npm run build`.
100
+
101
+ [ci-image]: https://badgen.net/github/checks/jshttp/mime-db/master?label=ci
102
+ [ci-url]: https://github.com/jshttp/mime-db/actions/workflows/ci.yml
103
+ [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master
104
+ [coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master
105
+ [node-image]: https://badgen.net/npm/node/mime-db
106
+ [node-url]: https://nodejs.org/en/download
107
+ [npm-downloads-image]: https://badgen.net/npm/dm/mime-db
108
+ [npm-url]: https://npmjs.org/package/mime-db
109
+ [npm-version-image]: https://badgen.net/npm/v/mime-db