@forgenex/cli 0.0.0-stage → 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.
@@ -0,0 +1,584 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://forgenex.com/sdk/extension-v1.schema.json",
4
+ "title": "App del CRM ForgeNEX",
5
+ "description": "Formato «forgenex.extension», versión 1. Valida la forma; «forgenex-sdk validar» valida todo (el mismo validador que el CRM).",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "formato",
10
+ "formato_version",
11
+ "id",
12
+ "nombre",
13
+ "version",
14
+ "autor"
15
+ ],
16
+ "properties": {
17
+ "$schema": {
18
+ "type": "string"
19
+ },
20
+ "formato": {
21
+ "const": "forgenex.extension"
22
+ },
23
+ "formato_version": {
24
+ "type": "integer",
25
+ "minimum": 1,
26
+ "maximum": 1,
27
+ "description": "Versión del FORMATO (no de la app)."
28
+ },
29
+ "id": {
30
+ "type": "string",
31
+ "maxLength": 200,
32
+ "pattern": "^[a-z][a-z0-9-]{0,62}(\\.[a-z0-9][a-z0-9-]{0,62}){1,6}$",
33
+ "description": "Dominio inverso: com.tuempresa.mi-extension. No cambia nunca."
34
+ },
35
+ "nombre": {
36
+ "type": "string",
37
+ "maxLength": 80
38
+ },
39
+ "descripcion": {
40
+ "type": "string",
41
+ "maxLength": 500
42
+ },
43
+ "version": {
44
+ "type": "string",
45
+ "pattern": "^(0|[1-9][0-9]{0,5})\\.(0|[1-9][0-9]{0,5})\\.(0|[1-9][0-9]{0,5})(-[0-9a-z.-]{1,30})?$",
46
+ "description": "La versión de la app (semver)."
47
+ },
48
+ "autor": {
49
+ "oneOf": [
50
+ {
51
+ "type": "string",
52
+ "maxLength": 120
53
+ },
54
+ {
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "required": [
58
+ "nombre"
59
+ ],
60
+ "properties": {
61
+ "nombre": {
62
+ "type": "string",
63
+ "maxLength": 120
64
+ },
65
+ "web": {
66
+ "type": "string",
67
+ "format": "uri",
68
+ "description": "https"
69
+ }
70
+ }
71
+ }
72
+ ]
73
+ },
74
+ "icono": {
75
+ "type": "string",
76
+ "pattern": "^[a-z0-9-]{1,40}$",
77
+ "description": "Un icono de lucide."
78
+ },
79
+ "idiomas": {
80
+ "type": "array",
81
+ "maxItems": 30,
82
+ "items": {
83
+ "type": "string",
84
+ "pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
85
+ }
86
+ },
87
+ "compatible_crm": {
88
+ "type": "string",
89
+ "maxLength": 80,
90
+ "description": "Rango de versiones del CRM: «>=1.6.0-284» o «>=1.6.0-284 <2.0.0»."
91
+ },
92
+ "licencia": {
93
+ "type": "string",
94
+ "maxLength": 40
95
+ },
96
+ "depende_de": {
97
+ "type": "array",
98
+ "maxItems": 20,
99
+ "description": "Otras apps que tienen que estar instaladas.",
100
+ "items": {
101
+ "oneOf": [
102
+ {
103
+ "type": "string"
104
+ },
105
+ {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "required": [
109
+ "id"
110
+ ],
111
+ "properties": {
112
+ "id": {
113
+ "type": "string"
114
+ },
115
+ "version": {
116
+ "type": "string"
117
+ }
118
+ }
119
+ }
120
+ ]
121
+ }
122
+ },
123
+ "ofrece": {
124
+ "type": "array",
125
+ "maxItems": 20,
126
+ "items": {
127
+ "type": "string",
128
+ "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
129
+ },
130
+ "description": "Contratos con nombre que ofrece a otras apps. Se valida, pero todavía no se ejecuta (llega en una fase siguiente de las apps)."
131
+ },
132
+ "usa": {
133
+ "type": "array",
134
+ "maxItems": 20,
135
+ "items": {
136
+ "type": "string",
137
+ "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
138
+ },
139
+ "description": "Contratos que usa de otras. Se valida, pero todavía no se ejecuta (llega en una fase siguiente de las apps)."
140
+ },
141
+ "solucion": {
142
+ "type": "string",
143
+ "maxLength": 200,
144
+ "pattern": "^[A-Za-z0-9_./-]{1,200}$",
145
+ "description": "El fichero de la solución del paquete («solucion.json», formato forgenex.solucion): sus módulos se instalan como copia."
146
+ },
147
+ "montajes": {
148
+ "type": "array",
149
+ "maxItems": 20,
150
+ "description": "Dónde se cuelga su interfaz, en una caja aislada (iframe sin origen). Se pintan «pagina», «ficha_pestana», «ficha_bloque», «inicio_bloque» y «accion_ficha»; «accion_tabla», «vista», «ajustes» y «publica» se validan, pero todavía no se pintan.",
151
+ "items": {
152
+ "type": "object",
153
+ "additionalProperties": false,
154
+ "required": [
155
+ "id",
156
+ "punto",
157
+ "entrada",
158
+ "titulo"
159
+ ],
160
+ "properties": {
161
+ "id": {
162
+ "type": "string",
163
+ "pattern": "^[a-z][a-z0-9_-]{0,40}$"
164
+ },
165
+ "punto": {
166
+ "enum": [
167
+ "pagina",
168
+ "ficha_pestana",
169
+ "ficha_bloque",
170
+ "inicio_bloque",
171
+ "accion_ficha",
172
+ "accion_tabla",
173
+ "vista",
174
+ "ajustes",
175
+ "publica"
176
+ ]
177
+ },
178
+ "entrada": {
179
+ "type": "string",
180
+ "maxLength": 200,
181
+ "pattern": "^[A-Za-z0-9_./-]{1,200}$",
182
+ "description": "Un fichero del paquete (relativo, sin «..»)."
183
+ },
184
+ "titulo": {
185
+ "type": "string",
186
+ "maxLength": 60
187
+ },
188
+ "icono": {
189
+ "type": "string"
190
+ },
191
+ "modulo": {
192
+ "type": "string"
193
+ },
194
+ "permiso": {
195
+ "type": "string",
196
+ "description": "<módulo>.<operación>, dentro de «permisos»."
197
+ }
198
+ }
199
+ }
200
+ },
201
+ "funciones": {
202
+ "type": "array",
203
+ "maxItems": 20,
204
+ "description": "Funciones JS que corren aisladas en el servidor del CRM (QuickJS), con `crm` (la API v1 recortada a lo aceptado) y `fetch` (solo a su «red» aceptada). Las de «calculo» se llaman desde su interfaz por extensiones.calcular, solo con lecturas del CRM y sin red.",
205
+ "items": {
206
+ "type": "object",
207
+ "additionalProperties": false,
208
+ "required": [
209
+ "nombre",
210
+ "entrada",
211
+ "disparador"
212
+ ],
213
+ "properties": {
214
+ "nombre": {
215
+ "type": "string",
216
+ "pattern": "^[a-z][a-z0-9_]{0,40}$"
217
+ },
218
+ "titulo": {
219
+ "type": "string",
220
+ "maxLength": 80
221
+ },
222
+ "descripcion": {
223
+ "type": "string",
224
+ "maxLength": 300
225
+ },
226
+ "entrada": {
227
+ "type": "string",
228
+ "maxLength": 200,
229
+ "pattern": "^[A-Za-z0-9_./-]{1,200}$",
230
+ "description": "Su fichero .js del paquete: `export default async function (entrada, contexto) { … }`."
231
+ },
232
+ "disparador": {
233
+ "type": "object",
234
+ "additionalProperties": false,
235
+ "required": [
236
+ "tipo"
237
+ ],
238
+ "description": "evento (con «evento», que esté en permisos.eventos), programada (con «cron» de 5 campos, como poco cada 15 min, hora de Madrid), webhook, automatizacion (un paso del diseñador) o calculo.",
239
+ "properties": {
240
+ "tipo": {
241
+ "enum": [
242
+ "evento",
243
+ "programada",
244
+ "webhook",
245
+ "automatizacion",
246
+ "calculo",
247
+ "herramienta",
248
+ "publica"
249
+ ]
250
+ },
251
+ "evento": {
252
+ "type": "string"
253
+ },
254
+ "cron": {
255
+ "type": "string"
256
+ }
257
+ }
258
+ },
259
+ "tope": {
260
+ "type": "object",
261
+ "additionalProperties": false,
262
+ "description": "Por llamada. Por defecto, 5000 ms y 64 MB.",
263
+ "properties": {
264
+ "ms": {
265
+ "type": "integer",
266
+ "minimum": 100,
267
+ "maximum": 30000
268
+ },
269
+ "memoria_mb": {
270
+ "type": "integer",
271
+ "minimum": 16,
272
+ "maximum": 256
273
+ }
274
+ }
275
+ },
276
+ "red": {
277
+ "type": "array",
278
+ "maxItems": 10,
279
+ "items": {
280
+ "type": "string",
281
+ "pattern": "^(\\*\\.)?([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"
282
+ },
283
+ "description": "Los dominios a los que llama (dentro de permisos.red_hacia). Solo https y sin seguir redirecciones."
284
+ },
285
+ "parametros": {
286
+ "type": "object",
287
+ "maxProperties": 20,
288
+ "description": "Solo en las de «automatizacion»: su entrada en el paso del diseñador.",
289
+ "additionalProperties": {
290
+ "type": "object",
291
+ "additionalProperties": false,
292
+ "required": [
293
+ "tipo",
294
+ "desc"
295
+ ],
296
+ "properties": {
297
+ "tipo": {
298
+ "enum": [
299
+ "texto",
300
+ "numero",
301
+ "si_no",
302
+ "fecha"
303
+ ]
304
+ },
305
+ "desc": {
306
+ "type": "string",
307
+ "maxLength": 200
308
+ },
309
+ "requerido": {
310
+ "type": "boolean"
311
+ }
312
+ }
313
+ }
314
+ },
315
+ "salida": {
316
+ "type": "array",
317
+ "maxItems": 30,
318
+ "description": "Las claves que devuelve (el paso deja guardar cada una en un campo). Con { clave, titulo }, el diseñador enseña el título («Días hábiles»).",
319
+ "items": {
320
+ "anyOf": [
321
+ {
322
+ "type": "string",
323
+ "pattern": "^[a-z][a-z0-9_]{0,40}$"
324
+ },
325
+ {
326
+ "type": "object",
327
+ "additionalProperties": false,
328
+ "required": [
329
+ "clave"
330
+ ],
331
+ "properties": {
332
+ "clave": {
333
+ "type": "string",
334
+ "pattern": "^[a-z][a-z0-9_]{0,40}$"
335
+ },
336
+ "titulo": {
337
+ "type": "string",
338
+ "maxLength": 60
339
+ }
340
+ }
341
+ }
342
+ ]
343
+ }
344
+ }
345
+ }
346
+ }
347
+ },
348
+ "servidor": {
349
+ "type": "object",
350
+ "additionalProperties": false,
351
+ "required": [
352
+ "url"
353
+ ],
354
+ "description": "El servidor propio del desarrollador. Se valida, pero todavía no se ejecuta (llega en una fase siguiente de las apps).",
355
+ "properties": {
356
+ "url": {
357
+ "type": "string",
358
+ "format": "uri"
359
+ },
360
+ "webhooks": {
361
+ "type": "array",
362
+ "items": {
363
+ "type": "string"
364
+ }
365
+ }
366
+ }
367
+ },
368
+ "herramientas_ia": {
369
+ "type": "array",
370
+ "maxItems": 20,
371
+ "description": "Herramientas para Pix (1.9.0). Cada una apunta a una función de disparador «herramienta», que recibe su «entrada» y devuelve solo las claves de su «salida». Corre como la app recortada a la persona que habla con Pix. «escribe»: la persona confirma antes; sin él, si intenta escribir, también. «permiso» («vehiculos.ver», dentro de permisos.modulos): quien no lo tiene en su papel no la ve; sin él, solo la ve quien puede ver todos los módulos que la app tiene aceptados.",
372
+ "items": {
373
+ "type": "object",
374
+ "additionalProperties": false,
375
+ "required": [
376
+ "nombre",
377
+ "descripcion",
378
+ "riesgo",
379
+ "funcion"
380
+ ],
381
+ "properties": {
382
+ "nombre": {
383
+ "type": "string",
384
+ "pattern": "^[a-z][a-z0-9_]{2,40}$"
385
+ },
386
+ "descripcion": {
387
+ "type": "string",
388
+ "maxLength": 500
389
+ },
390
+ "entrada": {
391
+ "type": "object",
392
+ "maxProperties": 20,
393
+ "description": "Lo que Pix (o el MCP) le pasa: { campo: { tipo, desc, requerido? } }, como los «parametros» de una función. Tipos: texto, numero, si_no o fecha (en el MCP salen como string, number, boolean y string con fecha). No es un JSON Schema.",
394
+ "additionalProperties": {
395
+ "type": "object",
396
+ "additionalProperties": false,
397
+ "required": [
398
+ "tipo",
399
+ "desc"
400
+ ],
401
+ "properties": {
402
+ "tipo": {
403
+ "enum": [
404
+ "texto",
405
+ "numero",
406
+ "si_no",
407
+ "fecha"
408
+ ]
409
+ },
410
+ "desc": {
411
+ "type": "string",
412
+ "maxLength": 200
413
+ },
414
+ "requerido": {
415
+ "type": "boolean"
416
+ }
417
+ }
418
+ }
419
+ },
420
+ "salida": {
421
+ "type": "array",
422
+ "items": {
423
+ "type": "string",
424
+ "pattern": "^[a-z][a-z0-9_]{0,40}$"
425
+ }
426
+ },
427
+ "riesgo": {
428
+ "enum": [
429
+ "bajo",
430
+ "medio",
431
+ "alto"
432
+ ]
433
+ },
434
+ "funcion": {
435
+ "type": "string",
436
+ "pattern": "^[a-z][a-z0-9_]{0,40}$"
437
+ },
438
+ "escribe": {
439
+ "type": "boolean"
440
+ },
441
+ "permiso": {
442
+ "type": "string",
443
+ "maxLength": 80
444
+ }
445
+ }
446
+ }
447
+ },
448
+ "ajustes": {
449
+ "type": "array",
450
+ "maxItems": 40,
451
+ "description": "Ajustes (1.13.0): un formulario en Ajustes › Apps › la app, con valores POR ESPACIO (cada instalación los suyos; al instalar, vacíos). La app los lee con la operación v1 `app.ajustes` y sus funciones en `contexto.ajustes`. «requerido» marca el campo en el formulario, pero la app se activa igual sin él: compruébalo en la función. «opcion» lleva «opciones»: [{ valor, etiqueta }]; el valor de «modulo» es la clave de un módulo del espacio y el de «campo», «modulo.campo».",
452
+ "items": {
453
+ "type": "object",
454
+ "additionalProperties": false,
455
+ "required": [
456
+ "clave",
457
+ "etiqueta",
458
+ "tipo"
459
+ ],
460
+ "properties": {
461
+ "clave": {
462
+ "type": "string",
463
+ "pattern": "^[a-z][a-z0-9_]{0,40}$"
464
+ },
465
+ "etiqueta": {
466
+ "type": "string",
467
+ "maxLength": 80
468
+ },
469
+ "tipo": {
470
+ "enum": [
471
+ "texto",
472
+ "numero",
473
+ "si_no",
474
+ "opcion",
475
+ "modulo",
476
+ "campo"
477
+ ]
478
+ },
479
+ "opciones": {
480
+ "type": "array",
481
+ "items": {
482
+ "type": "object",
483
+ "additionalProperties": false,
484
+ "required": [
485
+ "valor",
486
+ "etiqueta"
487
+ ],
488
+ "properties": {
489
+ "valor": {
490
+ "type": "string",
491
+ "maxLength": 60
492
+ },
493
+ "etiqueta": {
494
+ "type": "string",
495
+ "maxLength": 80
496
+ }
497
+ }
498
+ }
499
+ },
500
+ "requerido": {
501
+ "type": "boolean"
502
+ }
503
+ }
504
+ }
505
+ },
506
+ "secretos": {
507
+ "type": "array",
508
+ "maxItems": 10,
509
+ "description": "Secretos (1.13.0): claves de terceros que pone el administrador de CADA espacio en Ajustes › Apps › la app; van cifradas y SOLO las recibe una función de servidor mientras corre (`contexto.secretos`). Nunca la interfaz, la v1, el MCP ni una exportación.",
510
+ "items": {
511
+ "type": "object",
512
+ "additionalProperties": false,
513
+ "required": [
514
+ "clave",
515
+ "etiqueta"
516
+ ],
517
+ "properties": {
518
+ "clave": {
519
+ "type": "string",
520
+ "pattern": "^[a-z][a-z0-9_]{0,40}$"
521
+ },
522
+ "etiqueta": {
523
+ "type": "string",
524
+ "maxLength": 80
525
+ },
526
+ "descripcion": {
527
+ "type": "string",
528
+ "maxLength": 300
529
+ }
530
+ }
531
+ }
532
+ },
533
+ "permisos": {
534
+ "type": "object",
535
+ "additionalProperties": false,
536
+ "description": "Lo que pide. El administrador lo ve y lo acepta al instalar; la clave de la app nunca puede más (ni más que el papel de su responsable).",
537
+ "properties": {
538
+ "modulos": {
539
+ "type": "object",
540
+ "maxProperties": 40,
541
+ "description": "Módulo → operaciones. De serie: contactos (ver, crear, editar, borrar); empresas (ver, crear, editar, borrar); oportunidades (ver, crear, editar, borrar); tareas (ver, crear, editar, borrar); notas (ver, editar). Los de su solución o del espacio, por su clave: ver, crear, editar, borrar.",
542
+ "additionalProperties": {
543
+ "type": "array",
544
+ "minItems": 1,
545
+ "maxItems": 4,
546
+ "uniqueItems": true,
547
+ "items": {
548
+ "enum": [
549
+ "ver",
550
+ "crear",
551
+ "editar",
552
+ "borrar"
553
+ ]
554
+ }
555
+ }
556
+ },
557
+ "almacen": {
558
+ "type": "boolean",
559
+ "description": "Guardar sus datos internos (clave-valor JSON) en el almacén de la app."
560
+ },
561
+ "red_hacia": {
562
+ "type": "array",
563
+ "maxItems": 20,
564
+ "items": {
565
+ "type": "string",
566
+ "pattern": "^(\\*\\.)?([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"
567
+ },
568
+ "description": "Los dominios a los que pueden conectarse sus funciones («*.ejemplo.com» cubre sus subdominios). El administrador acepta cada uno."
569
+ },
570
+ "eventos": {
571
+ "type": "array",
572
+ "maxItems": 40,
573
+ "items": {
574
+ "type": "string"
575
+ },
576
+ "description": "Los eventos del CRM de los que se entera (registro.creado, registro.actualizado…). El administrador acepta cada uno."
577
+ }
578
+ }
579
+ }
580
+ },
581
+ "x-forgenex": {
582
+ "tamanoMaximoBytes": 256000
583
+ }
584
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ quickjs-emscripten copyright (c) 2019-2024 Jake Teton-Landis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,47 @@
1
+ quickjs-emscripten:
2
+ The MIT License
3
+
4
+ quickjs-emscripten copyright (c) 2019-2024 Jake Teton-Landis
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+
24
+
25
+ quickjs:
26
+ QuickJS Javascript Engine
27
+
28
+ Copyright (c) 2017-2021 Fabrice Bellard
29
+ Copyright (c) 2017-2021 Charlie Gordon
30
+
31
+ Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ of this software and associated documentation files (the "Software"), to deal
33
+ in the Software without restriction, including without limitation the rights
34
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
+ copies of the Software, and to permit persons to whom the Software is
36
+ furnished to do so, subject to the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be included in
39
+ all copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
44
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
47
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Sami Koskimäki
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.