mulch-cli 0.5.0 → 0.6.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/README.md +12 -1
- package/package.json +11 -16
- package/src/api.ts +310 -0
- package/src/cli.ts +54 -0
- package/src/commands/add.ts +61 -0
- package/src/commands/compact.ts +924 -0
- package/src/commands/delete.ts +103 -0
- package/src/commands/diff.ts +209 -0
- package/src/commands/doctor.ts +586 -0
- package/src/commands/edit.ts +253 -0
- package/src/commands/init.ts +33 -0
- package/src/commands/learn.ts +170 -0
- package/src/commands/onboard.ts +362 -0
- package/src/commands/prime.ts +327 -0
- package/src/commands/prune.ts +128 -0
- package/src/commands/query.ts +177 -0
- package/src/commands/ready.ts +194 -0
- package/src/commands/record.ts +959 -0
- package/src/commands/search.ts +234 -0
- package/src/commands/setup.ts +823 -0
- package/src/commands/status.ts +83 -0
- package/src/commands/sync.ts +224 -0
- package/src/commands/update.ts +112 -0
- package/src/commands/validate.ts +107 -0
- package/src/index.ts +50 -0
- package/src/schemas/config.ts +31 -0
- package/src/schemas/index.ts +18 -0
- package/src/schemas/record-schema.ts +177 -0
- package/src/schemas/record.ts +83 -0
- package/src/utils/bm25.ts +243 -0
- package/src/utils/budget.ts +157 -0
- package/src/utils/config.ts +117 -0
- package/src/utils/expertise.ts +379 -0
- package/src/utils/format.ts +767 -0
- package/src/utils/git.ts +89 -0
- package/src/utils/index.ts +54 -0
- package/src/utils/json-output.ts +13 -0
- package/src/utils/lock.ts +82 -0
- package/src/utils/markers.ts +51 -0
- package/{dist/utils/scoring.d.ts → src/utils/scoring.ts} +53 -9
- package/src/utils/version.ts +46 -0
- package/dist/api.d.ts +0 -65
- package/dist/api.d.ts.map +0 -1
- package/dist/api.js +0 -196
- package/dist/api.js.map +0 -1
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -50
- package/dist/cli.js.map +0 -1
- package/dist/commands/add.d.ts +0 -3
- package/dist/commands/add.d.ts.map +0 -1
- package/dist/commands/add.js +0 -47
- package/dist/commands/add.js.map +0 -1
- package/dist/commands/compact.d.ts +0 -5
- package/dist/commands/compact.d.ts.map +0 -1
- package/dist/commands/compact.js +0 -709
- package/dist/commands/compact.js.map +0 -1
- package/dist/commands/delete.d.ts +0 -3
- package/dist/commands/delete.d.ts.map +0 -1
- package/dist/commands/delete.js +0 -82
- package/dist/commands/delete.js.map +0 -1
- package/dist/commands/diff.d.ts +0 -11
- package/dist/commands/diff.d.ts.map +0 -1
- package/dist/commands/diff.js +0 -170
- package/dist/commands/diff.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -3
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -391
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/edit.d.ts +0 -3
- package/dist/commands/edit.d.ts.map +0 -1
- package/dist/commands/edit.js +0 -198
- package/dist/commands/edit.js.map +0 -1
- package/dist/commands/init.d.ts +0 -3
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -30
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/learn.d.ts +0 -12
- package/dist/commands/learn.d.ts.map +0 -1
- package/dist/commands/learn.js +0 -130
- package/dist/commands/learn.js.map +0 -1
- package/dist/commands/onboard.d.ts +0 -10
- package/dist/commands/onboard.d.ts.map +0 -1
- package/dist/commands/onboard.js +0 -286
- package/dist/commands/onboard.js.map +0 -1
- package/dist/commands/prime.d.ts +0 -3
- package/dist/commands/prime.d.ts.map +0 -1
- package/dist/commands/prime.js +0 -242
- package/dist/commands/prime.js.map +0 -1
- package/dist/commands/prune.d.ts +0 -8
- package/dist/commands/prune.d.ts.map +0 -1
- package/dist/commands/prune.js +0 -90
- package/dist/commands/prune.js.map +0 -1
- package/dist/commands/query.d.ts +0 -3
- package/dist/commands/query.d.ts.map +0 -1
- package/dist/commands/query.js +0 -133
- package/dist/commands/query.js.map +0 -1
- package/dist/commands/ready.d.ts +0 -3
- package/dist/commands/ready.d.ts.map +0 -1
- package/dist/commands/ready.js +0 -160
- package/dist/commands/ready.js.map +0 -1
- package/dist/commands/record.d.ts +0 -13
- package/dist/commands/record.d.ts.map +0 -1
- package/dist/commands/record.js +0 -689
- package/dist/commands/record.js.map +0 -1
- package/dist/commands/search.d.ts +0 -3
- package/dist/commands/search.d.ts.map +0 -1
- package/dist/commands/search.js +0 -163
- package/dist/commands/search.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -29
- package/dist/commands/setup.d.ts.map +0 -1
- package/dist/commands/setup.js +0 -548
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/status.d.ts +0 -3
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -61
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -3
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js +0 -176
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/update.d.ts +0 -3
- package/dist/commands/update.d.ts.map +0 -1
- package/dist/commands/update.js +0 -72
- package/dist/commands/update.js.map +0 -1
- package/dist/commands/validate.d.ts +0 -3
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/validate.js +0 -86
- package/dist/commands/validate.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -10
- package/dist/index.js.map +0 -1
- package/dist/schemas/config.d.ts +0 -17
- package/dist/schemas/config.d.ts.map +0 -1
- package/dist/schemas/config.js +0 -16
- package/dist/schemas/config.js.map +0 -1
- package/dist/schemas/index.d.ts +0 -5
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/index.js +0 -3
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/record-schema.d.ts +0 -403
- package/dist/schemas/record-schema.d.ts.map +0 -1
- package/dist/schemas/record-schema.js +0 -150
- package/dist/schemas/record-schema.js.map +0 -1
- package/dist/schemas/record.d.ts +0 -62
- package/dist/schemas/record.d.ts.map +0 -1
- package/dist/schemas/record.js +0 -2
- package/dist/schemas/record.js.map +0 -1
- package/dist/utils/bm25.d.ts +0 -39
- package/dist/utils/bm25.d.ts.map +0 -1
- package/dist/utils/bm25.js +0 -171
- package/dist/utils/bm25.js.map +0 -1
- package/dist/utils/budget.d.ts +0 -35
- package/dist/utils/budget.d.ts.map +0 -1
- package/dist/utils/budget.js +0 -114
- package/dist/utils/budget.js.map +0 -1
- package/dist/utils/config.d.ts +0 -12
- package/dist/utils/config.d.ts.map +0 -1
- package/dist/utils/config.js +0 -89
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/expertise.d.ts +0 -57
- package/dist/utils/expertise.d.ts.map +0 -1
- package/dist/utils/expertise.js +0 -276
- package/dist/utils/expertise.js.map +0 -1
- package/dist/utils/format.d.ts +0 -31
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js +0 -562
- package/dist/utils/format.js.map +0 -1
- package/dist/utils/git.d.ts +0 -6
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js +0 -81
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/index.d.ts +0 -8
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -8
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/json-output.d.ts +0 -8
- package/dist/utils/json-output.d.ts.map +0 -1
- package/dist/utils/json-output.js +0 -7
- package/dist/utils/json-output.js.map +0 -1
- package/dist/utils/lock.d.ts +0 -6
- package/dist/utils/lock.d.ts.map +0 -1
- package/dist/utils/lock.js +0 -70
- package/dist/utils/lock.js.map +0 -1
- package/dist/utils/markers.d.ts +0 -22
- package/dist/utils/markers.d.ts.map +0 -1
- package/dist/utils/markers.js +0 -42
- package/dist/utils/markers.js.map +0 -1
- package/dist/utils/scoring.d.ts.map +0 -1
- package/dist/utils/scoring.js +0 -80
- package/dist/utils/scoring.js.map +0 -1
- package/dist/utils/version.d.ts +0 -15
- package/dist/utils/version.d.ts.map +0 -1
- package/dist/utils/version.js +0 -48
- package/dist/utils/version.js.map +0 -1
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
export declare const recordSchema: {
|
|
2
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
3
|
-
readonly title: "Mulch Expertise Record";
|
|
4
|
-
readonly description: "A single expertise record in a Mulch domain file";
|
|
5
|
-
readonly type: "object";
|
|
6
|
-
readonly definitions: {
|
|
7
|
-
readonly classification: {
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
readonly enum: readonly ["foundational", "tactical", "observational"];
|
|
10
|
-
};
|
|
11
|
-
readonly evidence: {
|
|
12
|
-
readonly type: "object";
|
|
13
|
-
readonly properties: {
|
|
14
|
-
readonly commit: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
};
|
|
17
|
-
readonly date: {
|
|
18
|
-
readonly type: "string";
|
|
19
|
-
};
|
|
20
|
-
readonly issue: {
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
};
|
|
23
|
-
readonly file: {
|
|
24
|
-
readonly type: "string";
|
|
25
|
-
};
|
|
26
|
-
readonly bead: {
|
|
27
|
-
readonly type: "string";
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
readonly additionalProperties: false;
|
|
31
|
-
};
|
|
32
|
-
readonly outcome: {
|
|
33
|
-
readonly type: "object";
|
|
34
|
-
readonly properties: {
|
|
35
|
-
readonly status: {
|
|
36
|
-
readonly type: "string";
|
|
37
|
-
readonly enum: readonly ["success", "failure", "partial"];
|
|
38
|
-
};
|
|
39
|
-
readonly duration: {
|
|
40
|
-
readonly type: "number";
|
|
41
|
-
};
|
|
42
|
-
readonly test_results: {
|
|
43
|
-
readonly type: "string";
|
|
44
|
-
};
|
|
45
|
-
readonly agent: {
|
|
46
|
-
readonly type: "string";
|
|
47
|
-
};
|
|
48
|
-
readonly notes: {
|
|
49
|
-
readonly type: "string";
|
|
50
|
-
};
|
|
51
|
-
readonly recorded_at: {
|
|
52
|
-
readonly type: "string";
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
readonly required: readonly ["status"];
|
|
56
|
-
readonly additionalProperties: false;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
readonly oneOf: readonly [{
|
|
60
|
-
readonly type: "object";
|
|
61
|
-
readonly properties: {
|
|
62
|
-
readonly id: {
|
|
63
|
-
readonly type: "string";
|
|
64
|
-
readonly pattern: "^mx-[0-9a-f]{4,8}$";
|
|
65
|
-
};
|
|
66
|
-
readonly type: {
|
|
67
|
-
readonly type: "string";
|
|
68
|
-
readonly const: "convention";
|
|
69
|
-
};
|
|
70
|
-
readonly content: {
|
|
71
|
-
readonly type: "string";
|
|
72
|
-
};
|
|
73
|
-
readonly classification: {
|
|
74
|
-
readonly $ref: "#/definitions/classification";
|
|
75
|
-
};
|
|
76
|
-
readonly recorded_at: {
|
|
77
|
-
readonly type: "string";
|
|
78
|
-
};
|
|
79
|
-
readonly evidence: {
|
|
80
|
-
readonly $ref: "#/definitions/evidence";
|
|
81
|
-
};
|
|
82
|
-
readonly tags: {
|
|
83
|
-
readonly type: "array";
|
|
84
|
-
readonly items: {
|
|
85
|
-
readonly type: "string";
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
readonly relates_to: {
|
|
89
|
-
readonly type: "array";
|
|
90
|
-
readonly items: {
|
|
91
|
-
readonly type: "string";
|
|
92
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
readonly supersedes: {
|
|
96
|
-
readonly type: "array";
|
|
97
|
-
readonly items: {
|
|
98
|
-
readonly type: "string";
|
|
99
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
readonly outcomes: {
|
|
103
|
-
readonly type: "array";
|
|
104
|
-
readonly items: {
|
|
105
|
-
readonly $ref: "#/definitions/outcome";
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
readonly required: readonly ["type", "content", "classification", "recorded_at"];
|
|
110
|
-
readonly additionalProperties: false;
|
|
111
|
-
}, {
|
|
112
|
-
readonly type: "object";
|
|
113
|
-
readonly properties: {
|
|
114
|
-
readonly id: {
|
|
115
|
-
readonly type: "string";
|
|
116
|
-
readonly pattern: "^mx-[0-9a-f]{4,8}$";
|
|
117
|
-
};
|
|
118
|
-
readonly type: {
|
|
119
|
-
readonly type: "string";
|
|
120
|
-
readonly const: "pattern";
|
|
121
|
-
};
|
|
122
|
-
readonly name: {
|
|
123
|
-
readonly type: "string";
|
|
124
|
-
};
|
|
125
|
-
readonly description: {
|
|
126
|
-
readonly type: "string";
|
|
127
|
-
};
|
|
128
|
-
readonly files: {
|
|
129
|
-
readonly type: "array";
|
|
130
|
-
readonly items: {
|
|
131
|
-
readonly type: "string";
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
readonly classification: {
|
|
135
|
-
readonly $ref: "#/definitions/classification";
|
|
136
|
-
};
|
|
137
|
-
readonly recorded_at: {
|
|
138
|
-
readonly type: "string";
|
|
139
|
-
};
|
|
140
|
-
readonly evidence: {
|
|
141
|
-
readonly $ref: "#/definitions/evidence";
|
|
142
|
-
};
|
|
143
|
-
readonly tags: {
|
|
144
|
-
readonly type: "array";
|
|
145
|
-
readonly items: {
|
|
146
|
-
readonly type: "string";
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
readonly relates_to: {
|
|
150
|
-
readonly type: "array";
|
|
151
|
-
readonly items: {
|
|
152
|
-
readonly type: "string";
|
|
153
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
readonly supersedes: {
|
|
157
|
-
readonly type: "array";
|
|
158
|
-
readonly items: {
|
|
159
|
-
readonly type: "string";
|
|
160
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
readonly outcomes: {
|
|
164
|
-
readonly type: "array";
|
|
165
|
-
readonly items: {
|
|
166
|
-
readonly $ref: "#/definitions/outcome";
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
readonly required: readonly ["type", "name", "description", "classification", "recorded_at"];
|
|
171
|
-
readonly additionalProperties: false;
|
|
172
|
-
}, {
|
|
173
|
-
readonly type: "object";
|
|
174
|
-
readonly properties: {
|
|
175
|
-
readonly id: {
|
|
176
|
-
readonly type: "string";
|
|
177
|
-
readonly pattern: "^mx-[0-9a-f]{4,8}$";
|
|
178
|
-
};
|
|
179
|
-
readonly type: {
|
|
180
|
-
readonly type: "string";
|
|
181
|
-
readonly const: "failure";
|
|
182
|
-
};
|
|
183
|
-
readonly description: {
|
|
184
|
-
readonly type: "string";
|
|
185
|
-
};
|
|
186
|
-
readonly resolution: {
|
|
187
|
-
readonly type: "string";
|
|
188
|
-
};
|
|
189
|
-
readonly classification: {
|
|
190
|
-
readonly $ref: "#/definitions/classification";
|
|
191
|
-
};
|
|
192
|
-
readonly recorded_at: {
|
|
193
|
-
readonly type: "string";
|
|
194
|
-
};
|
|
195
|
-
readonly evidence: {
|
|
196
|
-
readonly $ref: "#/definitions/evidence";
|
|
197
|
-
};
|
|
198
|
-
readonly tags: {
|
|
199
|
-
readonly type: "array";
|
|
200
|
-
readonly items: {
|
|
201
|
-
readonly type: "string";
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
readonly relates_to: {
|
|
205
|
-
readonly type: "array";
|
|
206
|
-
readonly items: {
|
|
207
|
-
readonly type: "string";
|
|
208
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
readonly supersedes: {
|
|
212
|
-
readonly type: "array";
|
|
213
|
-
readonly items: {
|
|
214
|
-
readonly type: "string";
|
|
215
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
readonly outcomes: {
|
|
219
|
-
readonly type: "array";
|
|
220
|
-
readonly items: {
|
|
221
|
-
readonly $ref: "#/definitions/outcome";
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
readonly required: readonly ["type", "description", "resolution", "classification", "recorded_at"];
|
|
226
|
-
readonly additionalProperties: false;
|
|
227
|
-
}, {
|
|
228
|
-
readonly type: "object";
|
|
229
|
-
readonly properties: {
|
|
230
|
-
readonly id: {
|
|
231
|
-
readonly type: "string";
|
|
232
|
-
readonly pattern: "^mx-[0-9a-f]{4,8}$";
|
|
233
|
-
};
|
|
234
|
-
readonly type: {
|
|
235
|
-
readonly type: "string";
|
|
236
|
-
readonly const: "decision";
|
|
237
|
-
};
|
|
238
|
-
readonly title: {
|
|
239
|
-
readonly type: "string";
|
|
240
|
-
};
|
|
241
|
-
readonly rationale: {
|
|
242
|
-
readonly type: "string";
|
|
243
|
-
};
|
|
244
|
-
readonly date: {
|
|
245
|
-
readonly type: "string";
|
|
246
|
-
};
|
|
247
|
-
readonly classification: {
|
|
248
|
-
readonly $ref: "#/definitions/classification";
|
|
249
|
-
};
|
|
250
|
-
readonly recorded_at: {
|
|
251
|
-
readonly type: "string";
|
|
252
|
-
};
|
|
253
|
-
readonly evidence: {
|
|
254
|
-
readonly $ref: "#/definitions/evidence";
|
|
255
|
-
};
|
|
256
|
-
readonly tags: {
|
|
257
|
-
readonly type: "array";
|
|
258
|
-
readonly items: {
|
|
259
|
-
readonly type: "string";
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
readonly relates_to: {
|
|
263
|
-
readonly type: "array";
|
|
264
|
-
readonly items: {
|
|
265
|
-
readonly type: "string";
|
|
266
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
readonly supersedes: {
|
|
270
|
-
readonly type: "array";
|
|
271
|
-
readonly items: {
|
|
272
|
-
readonly type: "string";
|
|
273
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
readonly outcomes: {
|
|
277
|
-
readonly type: "array";
|
|
278
|
-
readonly items: {
|
|
279
|
-
readonly $ref: "#/definitions/outcome";
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
readonly required: readonly ["type", "title", "rationale", "classification", "recorded_at"];
|
|
284
|
-
readonly additionalProperties: false;
|
|
285
|
-
}, {
|
|
286
|
-
readonly type: "object";
|
|
287
|
-
readonly properties: {
|
|
288
|
-
readonly id: {
|
|
289
|
-
readonly type: "string";
|
|
290
|
-
readonly pattern: "^mx-[0-9a-f]{4,8}$";
|
|
291
|
-
};
|
|
292
|
-
readonly type: {
|
|
293
|
-
readonly type: "string";
|
|
294
|
-
readonly const: "reference";
|
|
295
|
-
};
|
|
296
|
-
readonly name: {
|
|
297
|
-
readonly type: "string";
|
|
298
|
-
};
|
|
299
|
-
readonly description: {
|
|
300
|
-
readonly type: "string";
|
|
301
|
-
};
|
|
302
|
-
readonly files: {
|
|
303
|
-
readonly type: "array";
|
|
304
|
-
readonly items: {
|
|
305
|
-
readonly type: "string";
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
readonly classification: {
|
|
309
|
-
readonly $ref: "#/definitions/classification";
|
|
310
|
-
};
|
|
311
|
-
readonly recorded_at: {
|
|
312
|
-
readonly type: "string";
|
|
313
|
-
};
|
|
314
|
-
readonly evidence: {
|
|
315
|
-
readonly $ref: "#/definitions/evidence";
|
|
316
|
-
};
|
|
317
|
-
readonly tags: {
|
|
318
|
-
readonly type: "array";
|
|
319
|
-
readonly items: {
|
|
320
|
-
readonly type: "string";
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
readonly relates_to: {
|
|
324
|
-
readonly type: "array";
|
|
325
|
-
readonly items: {
|
|
326
|
-
readonly type: "string";
|
|
327
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
readonly supersedes: {
|
|
331
|
-
readonly type: "array";
|
|
332
|
-
readonly items: {
|
|
333
|
-
readonly type: "string";
|
|
334
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
|
-
readonly outcomes: {
|
|
338
|
-
readonly type: "array";
|
|
339
|
-
readonly items: {
|
|
340
|
-
readonly $ref: "#/definitions/outcome";
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
readonly required: readonly ["type", "name", "description", "classification", "recorded_at"];
|
|
345
|
-
readonly additionalProperties: false;
|
|
346
|
-
}, {
|
|
347
|
-
readonly type: "object";
|
|
348
|
-
readonly properties: {
|
|
349
|
-
readonly id: {
|
|
350
|
-
readonly type: "string";
|
|
351
|
-
readonly pattern: "^mx-[0-9a-f]{4,8}$";
|
|
352
|
-
};
|
|
353
|
-
readonly type: {
|
|
354
|
-
readonly type: "string";
|
|
355
|
-
readonly const: "guide";
|
|
356
|
-
};
|
|
357
|
-
readonly name: {
|
|
358
|
-
readonly type: "string";
|
|
359
|
-
};
|
|
360
|
-
readonly description: {
|
|
361
|
-
readonly type: "string";
|
|
362
|
-
};
|
|
363
|
-
readonly classification: {
|
|
364
|
-
readonly $ref: "#/definitions/classification";
|
|
365
|
-
};
|
|
366
|
-
readonly recorded_at: {
|
|
367
|
-
readonly type: "string";
|
|
368
|
-
};
|
|
369
|
-
readonly evidence: {
|
|
370
|
-
readonly $ref: "#/definitions/evidence";
|
|
371
|
-
};
|
|
372
|
-
readonly tags: {
|
|
373
|
-
readonly type: "array";
|
|
374
|
-
readonly items: {
|
|
375
|
-
readonly type: "string";
|
|
376
|
-
};
|
|
377
|
-
};
|
|
378
|
-
readonly relates_to: {
|
|
379
|
-
readonly type: "array";
|
|
380
|
-
readonly items: {
|
|
381
|
-
readonly type: "string";
|
|
382
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
readonly supersedes: {
|
|
386
|
-
readonly type: "array";
|
|
387
|
-
readonly items: {
|
|
388
|
-
readonly type: "string";
|
|
389
|
-
readonly pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$";
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
readonly outcomes: {
|
|
393
|
-
readonly type: "array";
|
|
394
|
-
readonly items: {
|
|
395
|
-
readonly $ref: "#/definitions/outcome";
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
readonly required: readonly ["type", "name", "description", "classification", "recorded_at"];
|
|
400
|
-
readonly additionalProperties: false;
|
|
401
|
-
}];
|
|
402
|
-
};
|
|
403
|
-
//# sourceMappingURL=record-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/record-schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmJf,CAAC"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
const linkArray = { type: "array", items: { type: "string", pattern: "^([a-z0-9-]+:)?mx-[0-9a-f]{4,8}$" } };
|
|
2
|
-
export const recordSchema = {
|
|
3
|
-
$schema: "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
title: "Mulch Expertise Record",
|
|
5
|
-
description: "A single expertise record in a Mulch domain file",
|
|
6
|
-
type: "object",
|
|
7
|
-
definitions: {
|
|
8
|
-
classification: {
|
|
9
|
-
type: "string",
|
|
10
|
-
enum: ["foundational", "tactical", "observational"],
|
|
11
|
-
},
|
|
12
|
-
evidence: {
|
|
13
|
-
type: "object",
|
|
14
|
-
properties: {
|
|
15
|
-
commit: { type: "string" },
|
|
16
|
-
date: { type: "string" },
|
|
17
|
-
issue: { type: "string" },
|
|
18
|
-
file: { type: "string" },
|
|
19
|
-
bead: { type: "string" },
|
|
20
|
-
},
|
|
21
|
-
additionalProperties: false,
|
|
22
|
-
},
|
|
23
|
-
outcome: {
|
|
24
|
-
type: "object",
|
|
25
|
-
properties: {
|
|
26
|
-
status: { type: "string", enum: ["success", "failure", "partial"] },
|
|
27
|
-
duration: { type: "number" },
|
|
28
|
-
test_results: { type: "string" },
|
|
29
|
-
agent: { type: "string" },
|
|
30
|
-
notes: { type: "string" },
|
|
31
|
-
recorded_at: { type: "string" },
|
|
32
|
-
},
|
|
33
|
-
required: ["status"],
|
|
34
|
-
additionalProperties: false,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
oneOf: [
|
|
38
|
-
{
|
|
39
|
-
type: "object",
|
|
40
|
-
properties: {
|
|
41
|
-
id: { type: "string", pattern: "^mx-[0-9a-f]{4,8}$" },
|
|
42
|
-
type: { type: "string", const: "convention" },
|
|
43
|
-
content: { type: "string" },
|
|
44
|
-
classification: { $ref: "#/definitions/classification" },
|
|
45
|
-
recorded_at: { type: "string" },
|
|
46
|
-
evidence: { $ref: "#/definitions/evidence" },
|
|
47
|
-
tags: { type: "array", items: { type: "string" } },
|
|
48
|
-
relates_to: linkArray,
|
|
49
|
-
supersedes: linkArray,
|
|
50
|
-
outcomes: { type: "array", items: { $ref: "#/definitions/outcome" } },
|
|
51
|
-
},
|
|
52
|
-
required: ["type", "content", "classification", "recorded_at"],
|
|
53
|
-
additionalProperties: false,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: "object",
|
|
57
|
-
properties: {
|
|
58
|
-
id: { type: "string", pattern: "^mx-[0-9a-f]{4,8}$" },
|
|
59
|
-
type: { type: "string", const: "pattern" },
|
|
60
|
-
name: { type: "string" },
|
|
61
|
-
description: { type: "string" },
|
|
62
|
-
files: { type: "array", items: { type: "string" } },
|
|
63
|
-
classification: { $ref: "#/definitions/classification" },
|
|
64
|
-
recorded_at: { type: "string" },
|
|
65
|
-
evidence: { $ref: "#/definitions/evidence" },
|
|
66
|
-
tags: { type: "array", items: { type: "string" } },
|
|
67
|
-
relates_to: linkArray,
|
|
68
|
-
supersedes: linkArray,
|
|
69
|
-
outcomes: { type: "array", items: { $ref: "#/definitions/outcome" } },
|
|
70
|
-
},
|
|
71
|
-
required: ["type", "name", "description", "classification", "recorded_at"],
|
|
72
|
-
additionalProperties: false,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
type: "object",
|
|
76
|
-
properties: {
|
|
77
|
-
id: { type: "string", pattern: "^mx-[0-9a-f]{4,8}$" },
|
|
78
|
-
type: { type: "string", const: "failure" },
|
|
79
|
-
description: { type: "string" },
|
|
80
|
-
resolution: { type: "string" },
|
|
81
|
-
classification: { $ref: "#/definitions/classification" },
|
|
82
|
-
recorded_at: { type: "string" },
|
|
83
|
-
evidence: { $ref: "#/definitions/evidence" },
|
|
84
|
-
tags: { type: "array", items: { type: "string" } },
|
|
85
|
-
relates_to: linkArray,
|
|
86
|
-
supersedes: linkArray,
|
|
87
|
-
outcomes: { type: "array", items: { $ref: "#/definitions/outcome" } },
|
|
88
|
-
},
|
|
89
|
-
required: ["type", "description", "resolution", "classification", "recorded_at"],
|
|
90
|
-
additionalProperties: false,
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: "object",
|
|
94
|
-
properties: {
|
|
95
|
-
id: { type: "string", pattern: "^mx-[0-9a-f]{4,8}$" },
|
|
96
|
-
type: { type: "string", const: "decision" },
|
|
97
|
-
title: { type: "string" },
|
|
98
|
-
rationale: { type: "string" },
|
|
99
|
-
date: { type: "string" },
|
|
100
|
-
classification: { $ref: "#/definitions/classification" },
|
|
101
|
-
recorded_at: { type: "string" },
|
|
102
|
-
evidence: { $ref: "#/definitions/evidence" },
|
|
103
|
-
tags: { type: "array", items: { type: "string" } },
|
|
104
|
-
relates_to: linkArray,
|
|
105
|
-
supersedes: linkArray,
|
|
106
|
-
outcomes: { type: "array", items: { $ref: "#/definitions/outcome" } },
|
|
107
|
-
},
|
|
108
|
-
required: ["type", "title", "rationale", "classification", "recorded_at"],
|
|
109
|
-
additionalProperties: false,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
type: "object",
|
|
113
|
-
properties: {
|
|
114
|
-
id: { type: "string", pattern: "^mx-[0-9a-f]{4,8}$" },
|
|
115
|
-
type: { type: "string", const: "reference" },
|
|
116
|
-
name: { type: "string" },
|
|
117
|
-
description: { type: "string" },
|
|
118
|
-
files: { type: "array", items: { type: "string" } },
|
|
119
|
-
classification: { $ref: "#/definitions/classification" },
|
|
120
|
-
recorded_at: { type: "string" },
|
|
121
|
-
evidence: { $ref: "#/definitions/evidence" },
|
|
122
|
-
tags: { type: "array", items: { type: "string" } },
|
|
123
|
-
relates_to: linkArray,
|
|
124
|
-
supersedes: linkArray,
|
|
125
|
-
outcomes: { type: "array", items: { $ref: "#/definitions/outcome" } },
|
|
126
|
-
},
|
|
127
|
-
required: ["type", "name", "description", "classification", "recorded_at"],
|
|
128
|
-
additionalProperties: false,
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
type: "object",
|
|
132
|
-
properties: {
|
|
133
|
-
id: { type: "string", pattern: "^mx-[0-9a-f]{4,8}$" },
|
|
134
|
-
type: { type: "string", const: "guide" },
|
|
135
|
-
name: { type: "string" },
|
|
136
|
-
description: { type: "string" },
|
|
137
|
-
classification: { $ref: "#/definitions/classification" },
|
|
138
|
-
recorded_at: { type: "string" },
|
|
139
|
-
evidence: { $ref: "#/definitions/evidence" },
|
|
140
|
-
tags: { type: "array", items: { type: "string" } },
|
|
141
|
-
relates_to: linkArray,
|
|
142
|
-
supersedes: linkArray,
|
|
143
|
-
outcomes: { type: "array", items: { $ref: "#/definitions/outcome" } },
|
|
144
|
-
},
|
|
145
|
-
required: ["type", "name", "description", "classification", "recorded_at"],
|
|
146
|
-
additionalProperties: false,
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
};
|
|
150
|
-
//# sourceMappingURL=record-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record-schema.js","sourceRoot":"","sources":["../../src/schemas/record-schema.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,kCAAkC,EAAE,EAAW,CAAC;AAErH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EAAE,kDAAkD;IAC/D,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,eAAe,CAAC;SACpD;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC1B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,KAAK,EAAE,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;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,CAAC;YAC1E,oBAAoB,EAAE,KAAK;SAC5B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACrD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;gBACxC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC/B,cAAc,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE;gBACxD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC/B,QAAQ,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;gBAC5C,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;gBAClD,UAAU,EAAE,SAAS;gBACrB,UAAU,EAAE,SAAS;gBACrB,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE;aACtE;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,CAAC;YAC1E,oBAAoB,EAAE,KAAK;SAC5B;KACF;CACO,CAAC"}
|
package/dist/schemas/record.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export type RecordType = "convention" | "pattern" | "failure" | "decision" | "reference" | "guide";
|
|
2
|
-
export type Classification = "foundational" | "tactical" | "observational";
|
|
3
|
-
export interface Evidence {
|
|
4
|
-
commit?: string;
|
|
5
|
-
date?: string;
|
|
6
|
-
issue?: string;
|
|
7
|
-
file?: string;
|
|
8
|
-
bead?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface Outcome {
|
|
11
|
-
status: "success" | "failure" | "partial";
|
|
12
|
-
duration?: number;
|
|
13
|
-
test_results?: string;
|
|
14
|
-
agent?: string;
|
|
15
|
-
notes?: string;
|
|
16
|
-
recorded_at?: string;
|
|
17
|
-
}
|
|
18
|
-
interface BaseRecord {
|
|
19
|
-
id?: string;
|
|
20
|
-
classification: Classification;
|
|
21
|
-
recorded_at: string;
|
|
22
|
-
evidence?: Evidence;
|
|
23
|
-
tags?: string[];
|
|
24
|
-
relates_to?: string[];
|
|
25
|
-
supersedes?: string[];
|
|
26
|
-
outcomes?: Outcome[];
|
|
27
|
-
}
|
|
28
|
-
export interface ConventionRecord extends BaseRecord {
|
|
29
|
-
type: "convention";
|
|
30
|
-
content: string;
|
|
31
|
-
}
|
|
32
|
-
export interface PatternRecord extends BaseRecord {
|
|
33
|
-
type: "pattern";
|
|
34
|
-
name: string;
|
|
35
|
-
description: string;
|
|
36
|
-
files?: string[];
|
|
37
|
-
}
|
|
38
|
-
export interface FailureRecord extends BaseRecord {
|
|
39
|
-
type: "failure";
|
|
40
|
-
description: string;
|
|
41
|
-
resolution: string;
|
|
42
|
-
}
|
|
43
|
-
export interface DecisionRecord extends BaseRecord {
|
|
44
|
-
type: "decision";
|
|
45
|
-
title: string;
|
|
46
|
-
rationale: string;
|
|
47
|
-
date?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface ReferenceRecord extends BaseRecord {
|
|
50
|
-
type: "reference";
|
|
51
|
-
name: string;
|
|
52
|
-
description: string;
|
|
53
|
-
files?: string[];
|
|
54
|
-
}
|
|
55
|
-
export interface GuideRecord extends BaseRecord {
|
|
56
|
-
type: "guide";
|
|
57
|
-
name: string;
|
|
58
|
-
description: string;
|
|
59
|
-
}
|
|
60
|
-
export type ExpertiseRecord = ConventionRecord | PatternRecord | FailureRecord | DecisionRecord | ReferenceRecord | GuideRecord;
|
|
61
|
-
export {};
|
|
62
|
-
//#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U;IAC/C,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,GACvB,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,cAAc,GACd,eAAe,GACf,WAAW,CAAC"}
|
package/dist/schemas/record.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../src/schemas/record.ts"],"names":[],"mappings":""}
|
package/dist/utils/bm25.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { ExpertiseRecord } from "../schemas/record.js";
|
|
2
|
-
/**
|
|
3
|
-
* BM25 parameters (tuned for short document collections like expertise records)
|
|
4
|
-
*/
|
|
5
|
-
export interface BM25Params {
|
|
6
|
-
/** Controls non-linear term frequency normalization (typical: 1.2-2.0) */
|
|
7
|
-
k1: number;
|
|
8
|
-
/** Controls document length normalization (0 = no normalization, 1 = full normalization) */
|
|
9
|
-
b: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Default BM25 parameters optimized for expertise records
|
|
13
|
-
*/
|
|
14
|
-
export declare const DEFAULT_BM25_PARAMS: BM25Params;
|
|
15
|
-
/**
|
|
16
|
-
* Result of BM25 search
|
|
17
|
-
*/
|
|
18
|
-
export interface BM25Result {
|
|
19
|
-
record: ExpertiseRecord;
|
|
20
|
-
score: number;
|
|
21
|
-
/** Fields that matched the query */
|
|
22
|
-
matchedFields: string[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Tokenize text into searchable terms
|
|
26
|
-
*/
|
|
27
|
-
export declare function tokenize(text: string): string[];
|
|
28
|
-
/**
|
|
29
|
-
* Extract searchable text from a record
|
|
30
|
-
*/
|
|
31
|
-
export declare function extractRecordText(record: ExpertiseRecord): {
|
|
32
|
-
allText: string;
|
|
33
|
-
fieldTexts: Record<string, string>;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Search records using BM25 ranking
|
|
37
|
-
*/
|
|
38
|
-
export declare function searchBM25(records: ExpertiseRecord[], query: string, params?: BM25Params): BM25Result[];
|
|
39
|
-
//# sourceMappingURL=bm25.d.ts.map
|