@redaksjon/context 0.0.3
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/LICENSE.md +65 -0
- package/README.md +224 -0
- package/dist/index.cjs +27 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/index2.cjs +36 -0
- package/dist/index2.cjs.map +1 -0
- package/dist/index2.js +24 -0
- package/dist/index2.js.map +1 -0
- package/dist/index3.cjs +22 -0
- package/dist/index3.cjs.map +1 -0
- package/dist/index3.js +17 -0
- package/dist/index3.js.map +1 -0
- package/dist/index4.cjs +16 -0
- package/dist/index4.cjs.map +1 -0
- package/dist/index4.js +12 -0
- package/dist/index4.js.map +1 -0
- package/dist/index5.cjs +16 -0
- package/dist/index5.cjs.map +1 -0
- package/dist/index5.js +12 -0
- package/dist/index5.js.map +1 -0
- package/dist/index6.cjs +23 -0
- package/dist/index6.cjs.map +1 -0
- package/dist/index6.js +19 -0
- package/dist/index6.js.map +1 -0
- package/dist/index7.cjs +42 -0
- package/dist/index7.cjs.map +1 -0
- package/dist/index7.js +35 -0
- package/dist/index7.js.map +1 -0
- package/dist/index8.cjs +22 -0
- package/dist/index8.cjs.map +1 -0
- package/dist/index8.js +18 -0
- package/dist/index8.js.map +1 -0
- package/dist/schemas/company.d.ts +46 -0
- package/dist/schemas/company.d.ts.map +1 -0
- package/dist/schemas/ignored.d.ts +43 -0
- package/dist/schemas/ignored.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +346 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/person.d.ts +55 -0
- package/dist/schemas/person.d.ts.map +1 -0
- package/dist/schemas/project.d.ts +203 -0
- package/dist/schemas/project.d.ts.map +1 -0
- package/dist/schemas/term.d.ts +55 -0
- package/dist/schemas/term.d.ts.map +1 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Project classification signals.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ProjectClassificationSchema: z.ZodObject<{
|
|
6
|
+
context_type: z.ZodEnum<["work", "personal", "mixed"]>;
|
|
7
|
+
associated_people: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
+
associated_companies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
+
explicit_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
context_type: "work" | "personal" | "mixed";
|
|
13
|
+
associated_people?: string[] | undefined;
|
|
14
|
+
associated_companies?: string[] | undefined;
|
|
15
|
+
topics?: string[] | undefined;
|
|
16
|
+
explicit_phrases?: string[] | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
context_type: "work" | "personal" | "mixed";
|
|
19
|
+
associated_people?: string[] | undefined;
|
|
20
|
+
associated_companies?: string[] | undefined;
|
|
21
|
+
topics?: string[] | undefined;
|
|
22
|
+
explicit_phrases?: string[] | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Project routing configuration.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ProjectRoutingSchema: z.ZodObject<{
|
|
28
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
29
|
+
structure: z.ZodEnum<["none", "year", "month", "day"]>;
|
|
30
|
+
filename_options: z.ZodArray<z.ZodEnum<["date", "time", "subject"]>, "many">;
|
|
31
|
+
auto_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
structure: "none" | "year" | "month" | "day";
|
|
34
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
35
|
+
destination?: string | undefined;
|
|
36
|
+
auto_tags?: string[] | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
structure: "none" | "year" | "month" | "day";
|
|
39
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
40
|
+
destination?: string | undefined;
|
|
41
|
+
auto_tags?: string[] | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* Project relationships.
|
|
45
|
+
*/
|
|
46
|
+
export declare const ProjectRelationshipsSchema: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
48
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
49
|
+
siblings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
50
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
51
|
+
relatedTerms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
parent?: string | undefined;
|
|
54
|
+
children?: string[] | undefined;
|
|
55
|
+
siblings?: string[] | undefined;
|
|
56
|
+
dependsOn?: string[] | undefined;
|
|
57
|
+
relatedTerms?: string[] | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
parent?: string | undefined;
|
|
60
|
+
children?: string[] | undefined;
|
|
61
|
+
siblings?: string[] | undefined;
|
|
62
|
+
dependsOn?: string[] | undefined;
|
|
63
|
+
relatedTerms?: string[] | undefined;
|
|
64
|
+
}>>;
|
|
65
|
+
/**
|
|
66
|
+
* Project entity - work contexts that affect routing and understanding.
|
|
67
|
+
*/
|
|
68
|
+
export declare const ProjectSchema: z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
72
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
73
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
74
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
75
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
76
|
+
source: z.ZodOptional<z.ZodString>;
|
|
77
|
+
} & {
|
|
78
|
+
type: z.ZodLiteral<"project">;
|
|
79
|
+
description: z.ZodOptional<z.ZodString>;
|
|
80
|
+
classification: z.ZodObject<{
|
|
81
|
+
context_type: z.ZodEnum<["work", "personal", "mixed"]>;
|
|
82
|
+
associated_people: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
83
|
+
associated_companies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
+
explicit_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
context_type: "work" | "personal" | "mixed";
|
|
88
|
+
associated_people?: string[] | undefined;
|
|
89
|
+
associated_companies?: string[] | undefined;
|
|
90
|
+
topics?: string[] | undefined;
|
|
91
|
+
explicit_phrases?: string[] | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
context_type: "work" | "personal" | "mixed";
|
|
94
|
+
associated_people?: string[] | undefined;
|
|
95
|
+
associated_companies?: string[] | undefined;
|
|
96
|
+
topics?: string[] | undefined;
|
|
97
|
+
explicit_phrases?: string[] | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
routing: z.ZodObject<{
|
|
100
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
101
|
+
structure: z.ZodEnum<["none", "year", "month", "day"]>;
|
|
102
|
+
filename_options: z.ZodArray<z.ZodEnum<["date", "time", "subject"]>, "many">;
|
|
103
|
+
auto_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
structure: "none" | "year" | "month" | "day";
|
|
106
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
107
|
+
destination?: string | undefined;
|
|
108
|
+
auto_tags?: string[] | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
structure: "none" | "year" | "month" | "day";
|
|
111
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
112
|
+
destination?: string | undefined;
|
|
113
|
+
auto_tags?: string[] | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
sounds_like: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
116
|
+
relationships: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
118
|
+
children: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
119
|
+
siblings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
120
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
121
|
+
relatedTerms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
parent?: string | undefined;
|
|
124
|
+
children?: string[] | undefined;
|
|
125
|
+
siblings?: string[] | undefined;
|
|
126
|
+
dependsOn?: string[] | undefined;
|
|
127
|
+
relatedTerms?: string[] | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
parent?: string | undefined;
|
|
130
|
+
children?: string[] | undefined;
|
|
131
|
+
siblings?: string[] | undefined;
|
|
132
|
+
dependsOn?: string[] | undefined;
|
|
133
|
+
relatedTerms?: string[] | undefined;
|
|
134
|
+
}>>;
|
|
135
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
type: "project";
|
|
138
|
+
id: string;
|
|
139
|
+
name: string;
|
|
140
|
+
classification: {
|
|
141
|
+
context_type: "work" | "personal" | "mixed";
|
|
142
|
+
associated_people?: string[] | undefined;
|
|
143
|
+
associated_companies?: string[] | undefined;
|
|
144
|
+
topics?: string[] | undefined;
|
|
145
|
+
explicit_phrases?: string[] | undefined;
|
|
146
|
+
};
|
|
147
|
+
routing: {
|
|
148
|
+
structure: "none" | "year" | "month" | "day";
|
|
149
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
150
|
+
destination?: string | undefined;
|
|
151
|
+
auto_tags?: string[] | undefined;
|
|
152
|
+
};
|
|
153
|
+
sounds_like?: string[] | undefined;
|
|
154
|
+
notes?: string | undefined;
|
|
155
|
+
createdAt?: Date | undefined;
|
|
156
|
+
updatedAt?: Date | undefined;
|
|
157
|
+
createdBy?: string | undefined;
|
|
158
|
+
namespace?: string | undefined;
|
|
159
|
+
source?: string | undefined;
|
|
160
|
+
description?: string | undefined;
|
|
161
|
+
relationships?: {
|
|
162
|
+
parent?: string | undefined;
|
|
163
|
+
children?: string[] | undefined;
|
|
164
|
+
siblings?: string[] | undefined;
|
|
165
|
+
dependsOn?: string[] | undefined;
|
|
166
|
+
relatedTerms?: string[] | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
active?: boolean | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
type: "project";
|
|
171
|
+
id: string;
|
|
172
|
+
name: string;
|
|
173
|
+
classification: {
|
|
174
|
+
context_type: "work" | "personal" | "mixed";
|
|
175
|
+
associated_people?: string[] | undefined;
|
|
176
|
+
associated_companies?: string[] | undefined;
|
|
177
|
+
topics?: string[] | undefined;
|
|
178
|
+
explicit_phrases?: string[] | undefined;
|
|
179
|
+
};
|
|
180
|
+
routing: {
|
|
181
|
+
structure: "none" | "year" | "month" | "day";
|
|
182
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
183
|
+
destination?: string | undefined;
|
|
184
|
+
auto_tags?: string[] | undefined;
|
|
185
|
+
};
|
|
186
|
+
sounds_like?: string[] | undefined;
|
|
187
|
+
notes?: string | undefined;
|
|
188
|
+
createdAt?: Date | undefined;
|
|
189
|
+
updatedAt?: Date | undefined;
|
|
190
|
+
createdBy?: string | undefined;
|
|
191
|
+
namespace?: string | undefined;
|
|
192
|
+
source?: string | undefined;
|
|
193
|
+
description?: string | undefined;
|
|
194
|
+
relationships?: {
|
|
195
|
+
parent?: string | undefined;
|
|
196
|
+
children?: string[] | undefined;
|
|
197
|
+
siblings?: string[] | undefined;
|
|
198
|
+
dependsOn?: string[] | undefined;
|
|
199
|
+
relatedTerms?: string[] | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
active?: boolean | undefined;
|
|
202
|
+
}>;
|
|
203
|
+
//# sourceMappingURL=project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;EAMtC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;GAM1B,CAAC;AAEd;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Term entity - domain-specific terminology and acronyms.
|
|
4
|
+
*/
|
|
5
|
+
export declare const TermSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
9
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
10
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
11
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
12
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
13
|
+
source: z.ZodOptional<z.ZodString>;
|
|
14
|
+
} & {
|
|
15
|
+
type: z.ZodLiteral<"term">;
|
|
16
|
+
expansion: z.ZodOptional<z.ZodString>;
|
|
17
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
18
|
+
sounds_like: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
+
projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
type: "term";
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
sounds_like?: string[] | undefined;
|
|
27
|
+
notes?: string | undefined;
|
|
28
|
+
createdAt?: Date | undefined;
|
|
29
|
+
updatedAt?: Date | undefined;
|
|
30
|
+
createdBy?: string | undefined;
|
|
31
|
+
namespace?: string | undefined;
|
|
32
|
+
source?: string | undefined;
|
|
33
|
+
topics?: string[] | undefined;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
expansion?: string | undefined;
|
|
36
|
+
domain?: string | undefined;
|
|
37
|
+
projects?: string[] | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
type: "term";
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
sounds_like?: string[] | undefined;
|
|
43
|
+
notes?: string | undefined;
|
|
44
|
+
createdAt?: Date | undefined;
|
|
45
|
+
updatedAt?: Date | undefined;
|
|
46
|
+
createdBy?: string | undefined;
|
|
47
|
+
namespace?: string | undefined;
|
|
48
|
+
source?: string | undefined;
|
|
49
|
+
topics?: string[] | undefined;
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
expansion?: string | undefined;
|
|
52
|
+
domain?: string | undefined;
|
|
53
|
+
projects?: string[] | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
//# sourceMappingURL=term.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term.d.ts","sourceRoot":"","sources":["../../src/schemas/term.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASrB,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PersonSchema, ProjectSchema, CompanySchema, TermSchema, IgnoredTermSchema } from './schemas';
|
|
3
|
+
export type Person = z.infer<typeof PersonSchema>;
|
|
4
|
+
export type Project = z.infer<typeof ProjectSchema>;
|
|
5
|
+
export type Company = z.infer<typeof CompanySchema>;
|
|
6
|
+
export type Term = z.infer<typeof TermSchema>;
|
|
7
|
+
export type IgnoredTerm = z.infer<typeof IgnoredTermSchema>;
|
|
8
|
+
export type RedaksjonEntity = Person | Project | Company | Term | IgnoredTerm;
|
|
9
|
+
export type RedaksjonEntityType = 'person' | 'project' | 'company' | 'term' | 'ignored';
|
|
10
|
+
export declare const TYPE_TO_DIRECTORY: Record<RedaksjonEntityType, string>;
|
|
11
|
+
export declare const DIRECTORY_TO_TYPE: Record<string, RedaksjonEntityType>;
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,YAAY,EACZ,aAAa,EACb,aAAa,EACb,UAAU,EACV,iBAAiB,EACpB,MAAM,WAAW,CAAC;AAGnB,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,GAAG,WAAW,CAAC;AAG9E,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAGxF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAMjE,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAMjE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@redaksjon/context",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Shared context schemas for redaksjon tools",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/redaksjon/redaksjon-context.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"context",
|
|
12
|
+
"schemas",
|
|
13
|
+
"redaksjon",
|
|
14
|
+
"overcontext",
|
|
15
|
+
"zod"
|
|
16
|
+
],
|
|
17
|
+
"author": "Tim O'Brien <tobrien@discursive.com>",
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18.0.0",
|
|
21
|
+
"npm": ">=9.0.0"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./schemas": {
|
|
32
|
+
"import": "./dist/schemas/index.js",
|
|
33
|
+
"types": "./dist/schemas/index.d.ts"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "npm run lint && tsc --noEmit && vite build",
|
|
41
|
+
"dev": "vite",
|
|
42
|
+
"watch": "vite build --watch",
|
|
43
|
+
"test": "vitest run",
|
|
44
|
+
"test:coverage": "vitest run --coverage",
|
|
45
|
+
"lint": "eslint . --ext .ts",
|
|
46
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
47
|
+
"clean": "rm -rf dist",
|
|
48
|
+
"precommit": "npm run lint && npm run test && npm run build",
|
|
49
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@theunwalked/overcontext": "^0.0.3",
|
|
53
|
+
"zod": "^3.0.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
57
|
+
"@eslint/js": "^9.18.0",
|
|
58
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
59
|
+
"@types/node": "^22.0.0",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
61
|
+
"@typescript-eslint/parser": "^8.20.0",
|
|
62
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
63
|
+
"ajv": "^8.17.1",
|
|
64
|
+
"eslint": "^9.18.0",
|
|
65
|
+
"eslint-plugin-import": "^2.31.0",
|
|
66
|
+
"globals": "^15.14.0",
|
|
67
|
+
"typescript": "^5.5.0",
|
|
68
|
+
"vite": "^7.3.1",
|
|
69
|
+
"vite-plugin-dts": "^4.5.4",
|
|
70
|
+
"vitest": "^2.1.8",
|
|
71
|
+
"yaml": "^2.3.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"zod": "^3.0.0"
|
|
75
|
+
}
|
|
76
|
+
}
|