@karmaniverous/jeeves-watcher 0.6.9 → 0.7.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.
- package/config.schema.json +243 -78
- package/dist/cli/jeeves-watcher/index.js +366 -96
- package/dist/index.d.ts +30 -0
- package/dist/index.js +367 -100
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ type ConfigWatchConfig = z.infer<typeof configWatchConfigSchema>;
|
|
|
41
41
|
declare const apiConfigSchema: z.ZodObject<{
|
|
42
42
|
host: z.ZodOptional<z.ZodString>;
|
|
43
43
|
port: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
cacheTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
44
45
|
}, z.core.$strip>;
|
|
45
46
|
/** API server configuration: host binding and port. */
|
|
46
47
|
type ApiConfig = z.infer<typeof apiConfigSchema>;
|
|
@@ -76,6 +77,20 @@ declare const inferenceRuleSchema: z.ZodObject<{
|
|
|
76
77
|
}, z.core.$strip>]>>>;
|
|
77
78
|
map: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<_karmaniverous_jsonmap.JsonMapMap, unknown, z.core.$ZodTypeInternals<_karmaniverous_jsonmap.JsonMapMap, unknown>>, z.ZodString]>>;
|
|
78
79
|
template: z.ZodOptional<z.ZodString>;
|
|
80
|
+
render: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
frontmatter: z.ZodArray<z.ZodString>;
|
|
82
|
+
body: z.ZodArray<z.ZodObject<{
|
|
83
|
+
path: z.ZodString;
|
|
84
|
+
heading: z.ZodNumber;
|
|
85
|
+
label: z.ZodOptional<z.ZodString>;
|
|
86
|
+
format: z.ZodOptional<z.ZodString>;
|
|
87
|
+
formatArgs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
88
|
+
each: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
headingTemplate: z.ZodOptional<z.ZodString>;
|
|
90
|
+
contentPath: z.ZodOptional<z.ZodString>;
|
|
91
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
79
94
|
}, z.core.$strip>;
|
|
80
95
|
/** An inference rule: JSON Schema match condition, schema array, and optional JsonMap transformation. */
|
|
81
96
|
type InferenceRule = z.infer<typeof inferenceRuleSchema>;
|
|
@@ -122,6 +137,7 @@ declare const jeevesWatcherConfigSchema: z.ZodObject<{
|
|
|
122
137
|
api: z.ZodOptional<z.ZodObject<{
|
|
123
138
|
host: z.ZodOptional<z.ZodString>;
|
|
124
139
|
port: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
cacheTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
125
141
|
}, z.core.$strip>>;
|
|
126
142
|
extractors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
127
143
|
stateDir: z.ZodOptional<z.ZodString>;
|
|
@@ -135,6 +151,20 @@ declare const jeevesWatcherConfigSchema: z.ZodObject<{
|
|
|
135
151
|
}, z.core.$strip>]>>>;
|
|
136
152
|
map: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<_karmaniverous_jsonmap.JsonMapMap, unknown, z.core.$ZodTypeInternals<_karmaniverous_jsonmap.JsonMapMap, unknown>>, z.ZodString]>>;
|
|
137
153
|
template: z.ZodOptional<z.ZodString>;
|
|
154
|
+
render: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
frontmatter: z.ZodArray<z.ZodString>;
|
|
156
|
+
body: z.ZodArray<z.ZodObject<{
|
|
157
|
+
path: z.ZodString;
|
|
158
|
+
heading: z.ZodNumber;
|
|
159
|
+
label: z.ZodOptional<z.ZodString>;
|
|
160
|
+
format: z.ZodOptional<z.ZodString>;
|
|
161
|
+
formatArgs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
162
|
+
each: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
headingTemplate: z.ZodOptional<z.ZodString>;
|
|
164
|
+
contentPath: z.ZodOptional<z.ZodString>;
|
|
165
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
}, z.core.$strip>>;
|
|
138
168
|
}, z.core.$strip>, z.ZodString]>>>;
|
|
139
169
|
maps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<_karmaniverous_jsonmap.JsonMapMap, unknown, z.core.$ZodTypeInternals<_karmaniverous_jsonmap.JsonMapMap, unknown>>, z.ZodString, z.ZodObject<{
|
|
140
170
|
map: z.ZodUnion<[z.ZodType<_karmaniverous_jsonmap.JsonMapMap, unknown, z.core.$ZodTypeInternals<_karmaniverous_jsonmap.JsonMapMap, unknown>>, z.ZodString]>;
|