@karmaniverous/jeeves-watcher 0.5.1 → 0.6.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/config.schema.json +70 -48
- package/dist/cli/jeeves-watcher/index.js +3349 -2831
- package/dist/index.d.ts +135 -25
- package/dist/index.js +3525 -3007
- package/package.json +3 -2
package/config.schema.json
CHANGED
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
]
|
|
139
139
|
},
|
|
140
140
|
"inferenceRules": {
|
|
141
|
-
"description": "Rules for inferring metadata from file attributes.",
|
|
141
|
+
"description": "Rules for inferring metadata from file attributes. Each entry may be an inline rule object or a file path to a JSON rule file (resolved relative to config directory).",
|
|
142
142
|
"allOf": [
|
|
143
143
|
{
|
|
144
144
|
"$ref": "#/definitions/__schema49"
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
]
|
|
195
195
|
},
|
|
196
196
|
"search": {
|
|
197
|
-
"description": "Search configuration including score thresholds.",
|
|
197
|
+
"description": "Search configuration including score thresholds and hybrid search.",
|
|
198
198
|
"allOf": [
|
|
199
199
|
{
|
|
200
200
|
"$ref": "#/definitions/__schema63"
|
|
@@ -579,57 +579,64 @@
|
|
|
579
579
|
"__schema49": {
|
|
580
580
|
"type": "array",
|
|
581
581
|
"items": {
|
|
582
|
-
"
|
|
583
|
-
|
|
584
|
-
"name": {
|
|
585
|
-
"type": "string",
|
|
586
|
-
"minLength": 1,
|
|
587
|
-
"description": "Unique name identifying this inference rule."
|
|
588
|
-
},
|
|
589
|
-
"description": {
|
|
590
|
-
"type": "string",
|
|
591
|
-
"minLength": 1,
|
|
592
|
-
"description": "Human-readable description of what this rule does."
|
|
593
|
-
},
|
|
594
|
-
"match": {
|
|
582
|
+
"anyOf": [
|
|
583
|
+
{
|
|
595
584
|
"type": "object",
|
|
596
|
-
"
|
|
597
|
-
"
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
{
|
|
608
|
-
"
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
585
|
+
"properties": {
|
|
586
|
+
"name": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"minLength": 1,
|
|
589
|
+
"description": "Unique name identifying this inference rule."
|
|
590
|
+
},
|
|
591
|
+
"description": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"minLength": 1,
|
|
594
|
+
"description": "Human-readable description of what this rule does."
|
|
595
|
+
},
|
|
596
|
+
"match": {
|
|
597
|
+
"type": "object",
|
|
598
|
+
"propertyNames": {
|
|
599
|
+
"$ref": "#/definitions/__schema50"
|
|
600
|
+
},
|
|
601
|
+
"additionalProperties": {
|
|
602
|
+
"$ref": "#/definitions/__schema51"
|
|
603
|
+
},
|
|
604
|
+
"description": "JSON Schema object to match against file attributes."
|
|
605
|
+
},
|
|
606
|
+
"schema": {
|
|
607
|
+
"description": "Array of schema references (named schema refs or inline objects) merged left-to-right.",
|
|
608
|
+
"allOf": [
|
|
609
|
+
{
|
|
610
|
+
"$ref": "#/definitions/__schema52"
|
|
611
|
+
}
|
|
612
|
+
]
|
|
613
|
+
},
|
|
614
|
+
"map": {
|
|
615
|
+
"description": "JsonMap transformation (inline definition, named map reference, or .json file path).",
|
|
616
|
+
"allOf": [
|
|
617
|
+
{
|
|
618
|
+
"$ref": "#/definitions/__schema53"
|
|
619
|
+
}
|
|
620
|
+
]
|
|
621
|
+
},
|
|
622
|
+
"template": {
|
|
623
|
+
"description": "Handlebars content template (inline string, named ref, or .hbs/.handlebars file path).",
|
|
624
|
+
"allOf": [
|
|
625
|
+
{
|
|
626
|
+
"$ref": "#/definitions/__schema56"
|
|
627
|
+
}
|
|
628
|
+
]
|
|
617
629
|
}
|
|
630
|
+
},
|
|
631
|
+
"required": [
|
|
632
|
+
"name",
|
|
633
|
+
"description",
|
|
634
|
+
"match"
|
|
618
635
|
]
|
|
619
636
|
},
|
|
620
|
-
|
|
621
|
-
"
|
|
622
|
-
"allOf": [
|
|
623
|
-
{
|
|
624
|
-
"$ref": "#/definitions/__schema56"
|
|
625
|
-
}
|
|
626
|
-
]
|
|
637
|
+
{
|
|
638
|
+
"type": "string"
|
|
627
639
|
}
|
|
628
|
-
},
|
|
629
|
-
"required": [
|
|
630
|
-
"name",
|
|
631
|
-
"description",
|
|
632
|
-
"match"
|
|
633
640
|
]
|
|
634
641
|
}
|
|
635
642
|
},
|
|
@@ -896,6 +903,21 @@
|
|
|
896
903
|
"relevant",
|
|
897
904
|
"noise"
|
|
898
905
|
]
|
|
906
|
+
},
|
|
907
|
+
"hybrid": {
|
|
908
|
+
"type": "object",
|
|
909
|
+
"properties": {
|
|
910
|
+
"enabled": {
|
|
911
|
+
"default": false,
|
|
912
|
+
"type": "boolean"
|
|
913
|
+
},
|
|
914
|
+
"textWeight": {
|
|
915
|
+
"default": 0.3,
|
|
916
|
+
"type": "number",
|
|
917
|
+
"minimum": 0,
|
|
918
|
+
"maximum": 1
|
|
919
|
+
}
|
|
920
|
+
}
|
|
899
921
|
}
|
|
900
922
|
}
|
|
901
923
|
},
|