@pathmode/mcp-server 1.30.0 → 1.31.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/dist/index.js +22355 -10331
- package/dist/packages/intentspec-format/briefChoices.d.ts +1 -1
- package/dist/packages/intentspec-format/briefChoices.d.ts.map +1 -1
- package/dist/packages/intentspec-format/repoChoices.d.ts +118 -0
- package/dist/packages/intentspec-format/repoChoices.d.ts.map +1 -0
- package/dist/packages/mcp-server/src/adopt.d.ts +3 -0
- package/dist/packages/mcp-server/src/adopt.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/api-client.d.ts +9 -5
- package/dist/packages/mcp-server/src/api-client.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/index.d.ts +0 -26
- package/dist/packages/mcp-server/src/index.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/measurement-schema.d.ts +98 -449
- package/dist/packages/mcp-server/src/measurement-schema.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/push-spec.d.ts +14 -0
- package/dist/packages/mcp-server/src/push-spec.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/repo-bound-preflight.d.ts +18 -0
- package/dist/packages/mcp-server/src/repo-bound-preflight.d.ts.map +1 -0
- package/manifest.json +1 -1
- package/package.json +3 -2
- package/skills/compile-intent/SKILL.md +3 -1
- package/skills/implement-intent/SKILL.md +10 -1
- package/skills/preflight/SKILL.md +3 -3
- package/skills/review-against-intent/SKILL.md +3 -3
|
@@ -17,72 +17,48 @@
|
|
|
17
17
|
* units and source labels.
|
|
18
18
|
*/
|
|
19
19
|
import { z } from 'zod';
|
|
20
|
-
export declare const comparatorEnum: z.ZodEnum<
|
|
21
|
-
|
|
20
|
+
export declare const comparatorEnum: z.ZodEnum<{
|
|
21
|
+
gt: "gt";
|
|
22
|
+
gte: "gte";
|
|
23
|
+
lt: "lt";
|
|
24
|
+
lte: "lte";
|
|
25
|
+
eq: "eq";
|
|
26
|
+
}>;
|
|
27
|
+
export declare const windowKindEnum: z.ZodEnum<{
|
|
28
|
+
rolling: "rolling";
|
|
29
|
+
fixed: "fixed";
|
|
30
|
+
since_ship: "since_ship";
|
|
31
|
+
}>;
|
|
22
32
|
export declare const queryRefShape: z.ZodObject<{
|
|
23
33
|
kind: z.ZodString;
|
|
24
34
|
id: z.ZodString;
|
|
25
|
-
},
|
|
26
|
-
kind: string;
|
|
27
|
-
id: string;
|
|
28
|
-
}, {
|
|
29
|
-
kind: string;
|
|
30
|
-
id: string;
|
|
31
|
-
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
32
36
|
/**
|
|
33
37
|
* Refinements do not appear in the JSON Schema the model sees, so the requirement is also
|
|
34
38
|
* stated in each `describe`. The refinement is what stops a malformed window reaching the
|
|
35
39
|
* API; the description is what stops the model producing one in the first place.
|
|
36
40
|
*/
|
|
37
|
-
export declare const windowShape: z.
|
|
38
|
-
kind: z.ZodEnum<
|
|
41
|
+
export declare const windowShape: z.ZodObject<{
|
|
42
|
+
kind: z.ZodEnum<{
|
|
43
|
+
rolling: "rolling";
|
|
44
|
+
fixed: "fixed";
|
|
45
|
+
since_ship: "since_ship";
|
|
46
|
+
}>;
|
|
39
47
|
duration: z.ZodOptional<z.ZodString>;
|
|
40
48
|
start: z.ZodOptional<z.ZodString>;
|
|
41
49
|
end: z.ZodOptional<z.ZodString>;
|
|
42
|
-
},
|
|
43
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
44
|
-
duration?: string | undefined;
|
|
45
|
-
start?: string | undefined;
|
|
46
|
-
end?: string | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
49
|
-
duration?: string | undefined;
|
|
50
|
-
start?: string | undefined;
|
|
51
|
-
end?: string | undefined;
|
|
52
|
-
}>, {
|
|
53
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
54
|
-
duration?: string | undefined;
|
|
55
|
-
start?: string | undefined;
|
|
56
|
-
end?: string | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
59
|
-
duration?: string | undefined;
|
|
60
|
-
start?: string | undefined;
|
|
61
|
-
end?: string | undefined;
|
|
62
|
-
}>, {
|
|
63
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
64
|
-
duration?: string | undefined;
|
|
65
|
-
start?: string | undefined;
|
|
66
|
-
end?: string | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
69
|
-
duration?: string | undefined;
|
|
70
|
-
start?: string | undefined;
|
|
71
|
-
end?: string | undefined;
|
|
72
|
-
}>;
|
|
50
|
+
}, z.core.$strip>;
|
|
73
51
|
export declare const expectationShape: z.ZodObject<{
|
|
74
|
-
operator: z.ZodEnum<
|
|
52
|
+
operator: z.ZodEnum<{
|
|
53
|
+
gt: "gt";
|
|
54
|
+
gte: "gte";
|
|
55
|
+
lt: "lt";
|
|
56
|
+
lte: "lte";
|
|
57
|
+
eq: "eq";
|
|
58
|
+
}>;
|
|
75
59
|
target: z.ZodNumber;
|
|
76
60
|
unit: z.ZodOptional<z.ZodString>;
|
|
77
|
-
},
|
|
78
|
-
target: number;
|
|
79
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
80
|
-
unit?: string | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
target: number;
|
|
83
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
84
|
-
unit?: string | undefined;
|
|
85
|
-
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
86
62
|
/** Mirrors the optional query recipe stored on a StructuredOutcome. */
|
|
87
63
|
export declare const outcomeMeasurementDefinitionShape: z.ZodObject<{
|
|
88
64
|
source: z.ZodObject<{
|
|
@@ -90,346 +66,95 @@ export declare const outcomeMeasurementDefinitionShape: z.ZodObject<{
|
|
|
90
66
|
queryRef: z.ZodObject<{
|
|
91
67
|
kind: z.ZodString;
|
|
92
68
|
id: z.ZodString;
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
id: string;
|
|
96
|
-
}, {
|
|
97
|
-
kind: string;
|
|
98
|
-
id: string;
|
|
99
|
-
}>;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
provider: string;
|
|
102
|
-
queryRef: {
|
|
103
|
-
kind: string;
|
|
104
|
-
id: string;
|
|
105
|
-
};
|
|
106
|
-
}, {
|
|
107
|
-
provider: string;
|
|
108
|
-
queryRef: {
|
|
109
|
-
kind: string;
|
|
110
|
-
id: string;
|
|
111
|
-
};
|
|
112
|
-
}>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
}, z.core.$strip>;
|
|
113
71
|
resultSelector: z.ZodOptional<z.ZodString>;
|
|
114
72
|
expectation: z.ZodObject<{
|
|
115
|
-
operator: z.ZodEnum<
|
|
73
|
+
operator: z.ZodEnum<{
|
|
74
|
+
gt: "gt";
|
|
75
|
+
gte: "gte";
|
|
76
|
+
lt: "lt";
|
|
77
|
+
lte: "lte";
|
|
78
|
+
eq: "eq";
|
|
79
|
+
}>;
|
|
116
80
|
target: z.ZodNumber;
|
|
117
81
|
unit: z.ZodOptional<z.ZodString>;
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
unit?: string | undefined;
|
|
126
|
-
}>;
|
|
127
|
-
window: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
128
|
-
kind: z.ZodEnum<["rolling", "fixed", "since_ship"]>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
window: z.ZodObject<{
|
|
84
|
+
kind: z.ZodEnum<{
|
|
85
|
+
rolling: "rolling";
|
|
86
|
+
fixed: "fixed";
|
|
87
|
+
since_ship: "since_ship";
|
|
88
|
+
}>;
|
|
129
89
|
duration: z.ZodOptional<z.ZodString>;
|
|
130
90
|
start: z.ZodOptional<z.ZodString>;
|
|
131
91
|
end: z.ZodOptional<z.ZodString>;
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
duration?: string | undefined;
|
|
135
|
-
start?: string | undefined;
|
|
136
|
-
end?: string | undefined;
|
|
137
|
-
}, {
|
|
138
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
139
|
-
duration?: string | undefined;
|
|
140
|
-
start?: string | undefined;
|
|
141
|
-
end?: string | undefined;
|
|
142
|
-
}>, {
|
|
143
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
144
|
-
duration?: string | undefined;
|
|
145
|
-
start?: string | undefined;
|
|
146
|
-
end?: string | undefined;
|
|
147
|
-
}, {
|
|
148
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
149
|
-
duration?: string | undefined;
|
|
150
|
-
start?: string | undefined;
|
|
151
|
-
end?: string | undefined;
|
|
152
|
-
}>, {
|
|
153
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
154
|
-
duration?: string | undefined;
|
|
155
|
-
start?: string | undefined;
|
|
156
|
-
end?: string | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
159
|
-
duration?: string | undefined;
|
|
160
|
-
start?: string | undefined;
|
|
161
|
-
end?: string | undefined;
|
|
162
|
-
}>;
|
|
163
|
-
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
source: {
|
|
165
|
-
provider: string;
|
|
166
|
-
queryRef: {
|
|
167
|
-
kind: string;
|
|
168
|
-
id: string;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
expectation: {
|
|
172
|
-
target: number;
|
|
173
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
174
|
-
unit?: string | undefined;
|
|
175
|
-
};
|
|
176
|
-
window: {
|
|
177
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
178
|
-
duration?: string | undefined;
|
|
179
|
-
start?: string | undefined;
|
|
180
|
-
end?: string | undefined;
|
|
181
|
-
};
|
|
182
|
-
resultSelector?: string | undefined;
|
|
183
|
-
}, {
|
|
184
|
-
source: {
|
|
185
|
-
provider: string;
|
|
186
|
-
queryRef: {
|
|
187
|
-
kind: string;
|
|
188
|
-
id: string;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
expectation: {
|
|
192
|
-
target: number;
|
|
193
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
194
|
-
unit?: string | undefined;
|
|
195
|
-
};
|
|
196
|
-
window: {
|
|
197
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
198
|
-
duration?: string | undefined;
|
|
199
|
-
start?: string | undefined;
|
|
200
|
-
end?: string | undefined;
|
|
201
|
-
};
|
|
202
|
-
resultSelector?: string | undefined;
|
|
203
|
-
}>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
}, z.core.$strip>;
|
|
204
94
|
export declare const outcomeMeasurementEntryShape: z.ZodObject<{
|
|
205
95
|
source: z.ZodObject<{
|
|
206
96
|
provider: z.ZodString;
|
|
207
97
|
queryRef: z.ZodObject<{
|
|
208
98
|
kind: z.ZodString;
|
|
209
99
|
id: z.ZodString;
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
id: string;
|
|
213
|
-
}, {
|
|
214
|
-
kind: string;
|
|
215
|
-
id: string;
|
|
216
|
-
}>;
|
|
217
|
-
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
provider: string;
|
|
219
|
-
queryRef: {
|
|
220
|
-
kind: string;
|
|
221
|
-
id: string;
|
|
222
|
-
};
|
|
223
|
-
}, {
|
|
224
|
-
provider: string;
|
|
225
|
-
queryRef: {
|
|
226
|
-
kind: string;
|
|
227
|
-
id: string;
|
|
228
|
-
};
|
|
229
|
-
}>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
}, z.core.$strip>;
|
|
230
102
|
resultSelector: z.ZodOptional<z.ZodString>;
|
|
231
103
|
expectation: z.ZodObject<{
|
|
232
|
-
operator: z.ZodEnum<
|
|
104
|
+
operator: z.ZodEnum<{
|
|
105
|
+
gt: "gt";
|
|
106
|
+
gte: "gte";
|
|
107
|
+
lt: "lt";
|
|
108
|
+
lte: "lte";
|
|
109
|
+
eq: "eq";
|
|
110
|
+
}>;
|
|
233
111
|
target: z.ZodNumber;
|
|
234
112
|
unit: z.ZodOptional<z.ZodString>;
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
unit?: string | undefined;
|
|
243
|
-
}>;
|
|
244
|
-
window: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
245
|
-
kind: z.ZodEnum<["rolling", "fixed", "since_ship"]>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
window: z.ZodObject<{
|
|
115
|
+
kind: z.ZodEnum<{
|
|
116
|
+
rolling: "rolling";
|
|
117
|
+
fixed: "fixed";
|
|
118
|
+
since_ship: "since_ship";
|
|
119
|
+
}>;
|
|
246
120
|
duration: z.ZodOptional<z.ZodString>;
|
|
247
121
|
start: z.ZodOptional<z.ZodString>;
|
|
248
122
|
end: z.ZodOptional<z.ZodString>;
|
|
249
|
-
},
|
|
250
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
251
|
-
duration?: string | undefined;
|
|
252
|
-
start?: string | undefined;
|
|
253
|
-
end?: string | undefined;
|
|
254
|
-
}, {
|
|
255
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
256
|
-
duration?: string | undefined;
|
|
257
|
-
start?: string | undefined;
|
|
258
|
-
end?: string | undefined;
|
|
259
|
-
}>, {
|
|
260
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
261
|
-
duration?: string | undefined;
|
|
262
|
-
start?: string | undefined;
|
|
263
|
-
end?: string | undefined;
|
|
264
|
-
}, {
|
|
265
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
266
|
-
duration?: string | undefined;
|
|
267
|
-
start?: string | undefined;
|
|
268
|
-
end?: string | undefined;
|
|
269
|
-
}>, {
|
|
270
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
271
|
-
duration?: string | undefined;
|
|
272
|
-
start?: string | undefined;
|
|
273
|
-
end?: string | undefined;
|
|
274
|
-
}, {
|
|
275
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
276
|
-
duration?: string | undefined;
|
|
277
|
-
start?: string | undefined;
|
|
278
|
-
end?: string | undefined;
|
|
279
|
-
}>;
|
|
280
|
-
} & {
|
|
123
|
+
}, z.core.$strip>;
|
|
281
124
|
outcome: z.ZodNumber;
|
|
282
|
-
},
|
|
283
|
-
source: {
|
|
284
|
-
provider: string;
|
|
285
|
-
queryRef: {
|
|
286
|
-
kind: string;
|
|
287
|
-
id: string;
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
expectation: {
|
|
291
|
-
target: number;
|
|
292
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
293
|
-
unit?: string | undefined;
|
|
294
|
-
};
|
|
295
|
-
window: {
|
|
296
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
297
|
-
duration?: string | undefined;
|
|
298
|
-
start?: string | undefined;
|
|
299
|
-
end?: string | undefined;
|
|
300
|
-
};
|
|
301
|
-
outcome: number;
|
|
302
|
-
resultSelector?: string | undefined;
|
|
303
|
-
}, {
|
|
304
|
-
source: {
|
|
305
|
-
provider: string;
|
|
306
|
-
queryRef: {
|
|
307
|
-
kind: string;
|
|
308
|
-
id: string;
|
|
309
|
-
};
|
|
310
|
-
};
|
|
311
|
-
expectation: {
|
|
312
|
-
target: number;
|
|
313
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
314
|
-
unit?: string | undefined;
|
|
315
|
-
};
|
|
316
|
-
window: {
|
|
317
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
318
|
-
duration?: string | undefined;
|
|
319
|
-
start?: string | undefined;
|
|
320
|
-
end?: string | undefined;
|
|
321
|
-
};
|
|
322
|
-
outcome: number;
|
|
323
|
-
resultSelector?: string | undefined;
|
|
324
|
-
}>;
|
|
125
|
+
}, z.core.$strip>;
|
|
325
126
|
export declare const provenanceShape: z.ZodObject<{
|
|
326
127
|
provider: z.ZodString;
|
|
327
128
|
queryRef: z.ZodObject<{
|
|
328
129
|
kind: z.ZodString;
|
|
329
130
|
id: z.ZodString;
|
|
330
|
-
},
|
|
331
|
-
kind: string;
|
|
332
|
-
id: string;
|
|
333
|
-
}, {
|
|
334
|
-
kind: string;
|
|
335
|
-
id: string;
|
|
336
|
-
}>;
|
|
131
|
+
}, z.core.$strip>;
|
|
337
132
|
queryVersion: z.ZodOptional<z.ZodString>;
|
|
338
|
-
window: z.
|
|
339
|
-
kind: z.ZodEnum<
|
|
133
|
+
window: z.ZodObject<{
|
|
134
|
+
kind: z.ZodEnum<{
|
|
135
|
+
rolling: "rolling";
|
|
136
|
+
fixed: "fixed";
|
|
137
|
+
since_ship: "since_ship";
|
|
138
|
+
}>;
|
|
340
139
|
duration: z.ZodOptional<z.ZodString>;
|
|
341
140
|
start: z.ZodOptional<z.ZodString>;
|
|
342
141
|
end: z.ZodOptional<z.ZodString>;
|
|
343
|
-
},
|
|
344
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
345
|
-
duration?: string | undefined;
|
|
346
|
-
start?: string | undefined;
|
|
347
|
-
end?: string | undefined;
|
|
348
|
-
}, {
|
|
349
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
350
|
-
duration?: string | undefined;
|
|
351
|
-
start?: string | undefined;
|
|
352
|
-
end?: string | undefined;
|
|
353
|
-
}>, {
|
|
354
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
355
|
-
duration?: string | undefined;
|
|
356
|
-
start?: string | undefined;
|
|
357
|
-
end?: string | undefined;
|
|
358
|
-
}, {
|
|
359
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
360
|
-
duration?: string | undefined;
|
|
361
|
-
start?: string | undefined;
|
|
362
|
-
end?: string | undefined;
|
|
363
|
-
}>, {
|
|
364
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
365
|
-
duration?: string | undefined;
|
|
366
|
-
start?: string | undefined;
|
|
367
|
-
end?: string | undefined;
|
|
368
|
-
}, {
|
|
369
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
370
|
-
duration?: string | undefined;
|
|
371
|
-
start?: string | undefined;
|
|
372
|
-
end?: string | undefined;
|
|
373
|
-
}>;
|
|
142
|
+
}, z.core.$strip>;
|
|
374
143
|
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
375
144
|
expectation: z.ZodOptional<z.ZodObject<{
|
|
376
|
-
operator: z.ZodEnum<
|
|
145
|
+
operator: z.ZodEnum<{
|
|
146
|
+
gt: "gt";
|
|
147
|
+
gte: "gte";
|
|
148
|
+
lt: "lt";
|
|
149
|
+
lte: "lte";
|
|
150
|
+
eq: "eq";
|
|
151
|
+
}>;
|
|
377
152
|
target: z.ZodNumber;
|
|
378
153
|
unit: z.ZodOptional<z.ZodString>;
|
|
379
|
-
},
|
|
380
|
-
target: number;
|
|
381
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
382
|
-
unit?: string | undefined;
|
|
383
|
-
}, {
|
|
384
|
-
target: number;
|
|
385
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
386
|
-
unit?: string | undefined;
|
|
387
|
-
}>>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
388
155
|
rawResponse: z.ZodOptional<z.ZodUnknown>;
|
|
389
156
|
recordedByTool: z.ZodOptional<z.ZodString>;
|
|
390
|
-
},
|
|
391
|
-
provider: string;
|
|
392
|
-
queryRef: {
|
|
393
|
-
kind: string;
|
|
394
|
-
id: string;
|
|
395
|
-
};
|
|
396
|
-
window: {
|
|
397
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
398
|
-
duration?: string | undefined;
|
|
399
|
-
start?: string | undefined;
|
|
400
|
-
end?: string | undefined;
|
|
401
|
-
};
|
|
402
|
-
expectation?: {
|
|
403
|
-
target: number;
|
|
404
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
405
|
-
unit?: string | undefined;
|
|
406
|
-
} | undefined;
|
|
407
|
-
queryVersion?: string | undefined;
|
|
408
|
-
evaluatedAt?: string | undefined;
|
|
409
|
-
rawResponse?: unknown;
|
|
410
|
-
recordedByTool?: string | undefined;
|
|
411
|
-
}, {
|
|
412
|
-
provider: string;
|
|
413
|
-
queryRef: {
|
|
414
|
-
kind: string;
|
|
415
|
-
id: string;
|
|
416
|
-
};
|
|
417
|
-
window: {
|
|
418
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
419
|
-
duration?: string | undefined;
|
|
420
|
-
start?: string | undefined;
|
|
421
|
-
end?: string | undefined;
|
|
422
|
-
};
|
|
423
|
-
expectation?: {
|
|
424
|
-
target: number;
|
|
425
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
426
|
-
unit?: string | undefined;
|
|
427
|
-
} | undefined;
|
|
428
|
-
queryVersion?: string | undefined;
|
|
429
|
-
evaluatedAt?: string | undefined;
|
|
430
|
-
rawResponse?: unknown;
|
|
431
|
-
recordedByTool?: string | undefined;
|
|
432
|
-
}>;
|
|
157
|
+
}, z.core.$strip>;
|
|
433
158
|
/** The tool's field map, in the ZodRawShape form `registerTool` expects. */
|
|
434
159
|
export declare const recordOutcomeMeasurementInputSchema: {
|
|
435
160
|
intentId: z.ZodString;
|
|
@@ -446,109 +171,33 @@ export declare const recordOutcomeMeasurementInputSchema: {
|
|
|
446
171
|
queryRef: z.ZodObject<{
|
|
447
172
|
kind: z.ZodString;
|
|
448
173
|
id: z.ZodString;
|
|
449
|
-
},
|
|
450
|
-
kind: string;
|
|
451
|
-
id: string;
|
|
452
|
-
}, {
|
|
453
|
-
kind: string;
|
|
454
|
-
id: string;
|
|
455
|
-
}>;
|
|
174
|
+
}, z.core.$strip>;
|
|
456
175
|
queryVersion: z.ZodOptional<z.ZodString>;
|
|
457
|
-
window: z.
|
|
458
|
-
kind: z.ZodEnum<
|
|
176
|
+
window: z.ZodObject<{
|
|
177
|
+
kind: z.ZodEnum<{
|
|
178
|
+
rolling: "rolling";
|
|
179
|
+
fixed: "fixed";
|
|
180
|
+
since_ship: "since_ship";
|
|
181
|
+
}>;
|
|
459
182
|
duration: z.ZodOptional<z.ZodString>;
|
|
460
183
|
start: z.ZodOptional<z.ZodString>;
|
|
461
184
|
end: z.ZodOptional<z.ZodString>;
|
|
462
|
-
},
|
|
463
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
464
|
-
duration?: string | undefined;
|
|
465
|
-
start?: string | undefined;
|
|
466
|
-
end?: string | undefined;
|
|
467
|
-
}, {
|
|
468
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
469
|
-
duration?: string | undefined;
|
|
470
|
-
start?: string | undefined;
|
|
471
|
-
end?: string | undefined;
|
|
472
|
-
}>, {
|
|
473
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
474
|
-
duration?: string | undefined;
|
|
475
|
-
start?: string | undefined;
|
|
476
|
-
end?: string | undefined;
|
|
477
|
-
}, {
|
|
478
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
479
|
-
duration?: string | undefined;
|
|
480
|
-
start?: string | undefined;
|
|
481
|
-
end?: string | undefined;
|
|
482
|
-
}>, {
|
|
483
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
484
|
-
duration?: string | undefined;
|
|
485
|
-
start?: string | undefined;
|
|
486
|
-
end?: string | undefined;
|
|
487
|
-
}, {
|
|
488
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
489
|
-
duration?: string | undefined;
|
|
490
|
-
start?: string | undefined;
|
|
491
|
-
end?: string | undefined;
|
|
492
|
-
}>;
|
|
185
|
+
}, z.core.$strip>;
|
|
493
186
|
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
494
187
|
expectation: z.ZodOptional<z.ZodObject<{
|
|
495
|
-
operator: z.ZodEnum<
|
|
188
|
+
operator: z.ZodEnum<{
|
|
189
|
+
gt: "gt";
|
|
190
|
+
gte: "gte";
|
|
191
|
+
lt: "lt";
|
|
192
|
+
lte: "lte";
|
|
193
|
+
eq: "eq";
|
|
194
|
+
}>;
|
|
496
195
|
target: z.ZodNumber;
|
|
497
196
|
unit: z.ZodOptional<z.ZodString>;
|
|
498
|
-
},
|
|
499
|
-
target: number;
|
|
500
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
501
|
-
unit?: string | undefined;
|
|
502
|
-
}, {
|
|
503
|
-
target: number;
|
|
504
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
505
|
-
unit?: string | undefined;
|
|
506
|
-
}>>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
507
198
|
rawResponse: z.ZodOptional<z.ZodUnknown>;
|
|
508
199
|
recordedByTool: z.ZodOptional<z.ZodString>;
|
|
509
|
-
},
|
|
510
|
-
provider: string;
|
|
511
|
-
queryRef: {
|
|
512
|
-
kind: string;
|
|
513
|
-
id: string;
|
|
514
|
-
};
|
|
515
|
-
window: {
|
|
516
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
517
|
-
duration?: string | undefined;
|
|
518
|
-
start?: string | undefined;
|
|
519
|
-
end?: string | undefined;
|
|
520
|
-
};
|
|
521
|
-
expectation?: {
|
|
522
|
-
target: number;
|
|
523
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
524
|
-
unit?: string | undefined;
|
|
525
|
-
} | undefined;
|
|
526
|
-
queryVersion?: string | undefined;
|
|
527
|
-
evaluatedAt?: string | undefined;
|
|
528
|
-
rawResponse?: unknown;
|
|
529
|
-
recordedByTool?: string | undefined;
|
|
530
|
-
}, {
|
|
531
|
-
provider: string;
|
|
532
|
-
queryRef: {
|
|
533
|
-
kind: string;
|
|
534
|
-
id: string;
|
|
535
|
-
};
|
|
536
|
-
window: {
|
|
537
|
-
kind: "rolling" | "fixed" | "since_ship";
|
|
538
|
-
duration?: string | undefined;
|
|
539
|
-
start?: string | undefined;
|
|
540
|
-
end?: string | undefined;
|
|
541
|
-
};
|
|
542
|
-
expectation?: {
|
|
543
|
-
target: number;
|
|
544
|
-
operator: "gt" | "gte" | "lt" | "lte" | "eq";
|
|
545
|
-
unit?: string | undefined;
|
|
546
|
-
} | undefined;
|
|
547
|
-
queryVersion?: string | undefined;
|
|
548
|
-
evaluatedAt?: string | undefined;
|
|
549
|
-
rawResponse?: unknown;
|
|
550
|
-
recordedByTool?: string | undefined;
|
|
551
|
-
}>>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
552
201
|
};
|
|
553
202
|
/**
|
|
554
203
|
* The one constraint that cannot live in the field map.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measurement-schema.d.ts","sourceRoot":"","sources":["file:///Users/jannelammi/code/Pathmode/packages/mcp-server/src/measurement-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"measurement-schema.d.ts","sourceRoot":"","sources":["file:///Users/jannelammi/code/Pathmode/packages/mcp-server/src/measurement-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;EAA2C,CAAC;AACvE,eAAO,MAAM,cAAc;;;;EAA6C,CAAC;AAEzE,eAAO,MAAM,aAAa;;;iBAGxB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;;;;iBAclB,CAAC;AAEP,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAI3B,CAAC;AAEH,uEAAuE;AACvE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ5C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEvC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS1B,CAAC;AAEH,4EAA4E;AAC5E,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW/C,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,GAAG,IAAI,CAKxG"}
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
* come from the server rather than be inferred locally: a v1 create is stamped agent-authored and
|
|
27
27
|
* pending by the API, and a client that guessed would drift the day that policy changed. */
|
|
28
28
|
export interface SettledIdentity {
|
|
29
|
+
repoChoiceReviewVersion?: number;
|
|
30
|
+
appliedFromRepoBodyRevision?: string;
|
|
31
|
+
rebasedFromRepoBodyRevision?: string;
|
|
29
32
|
id: string;
|
|
30
33
|
specVersion?: string;
|
|
31
34
|
repoBodyRevision?: string | null;
|
|
@@ -37,6 +40,11 @@ export interface SettledIdentity {
|
|
|
37
40
|
authorizationNote?: string | null;
|
|
38
41
|
}
|
|
39
42
|
export interface PushClient {
|
|
43
|
+
getWorkspace?(): Promise<{
|
|
44
|
+
capabilities?: {
|
|
45
|
+
repoChoiceReview?: number;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
40
48
|
createIntent(input: any): Promise<SettledIdentity>;
|
|
41
49
|
/** Used to recover when a create commits but its response is lost. */
|
|
42
50
|
getIntent?(id: string): Promise<SettledIdentity>;
|
|
@@ -45,6 +53,9 @@ export interface PushClient {
|
|
|
45
53
|
getIntentChangeRequest?(intentId: string, requestId: string): Promise<{
|
|
46
54
|
changeRequest?: {
|
|
47
55
|
status?: string;
|
|
56
|
+
targetField?: string;
|
|
57
|
+
baseRepoBodyRevision?: string;
|
|
58
|
+
appliedRepoBodyRevision?: string;
|
|
48
59
|
};
|
|
49
60
|
}>;
|
|
50
61
|
updateIntent(id: string, input: any): Promise<SettledIdentity>;
|
|
@@ -97,6 +108,7 @@ export interface PushSpecInput {
|
|
|
97
108
|
};
|
|
98
109
|
/** Called once identity is settled, before any enrichment. This is the file write. */
|
|
99
110
|
onIdentitySettled: (result: {
|
|
111
|
+
canonicalIntent?: Record<string, unknown>;
|
|
100
112
|
canonicalId: string;
|
|
101
113
|
specVersion?: string;
|
|
102
114
|
sourceUrl: string;
|
|
@@ -107,6 +119,8 @@ export interface PushSpecInput {
|
|
|
107
119
|
}
|
|
108
120
|
export type PushSpecResult = {
|
|
109
121
|
ok: true;
|
|
122
|
+
rebasedFromRepoBodyRevision?: string;
|
|
123
|
+
appliedFromRepoBodyRevision?: string;
|
|
110
124
|
canonicalId: string;
|
|
111
125
|
specVersion?: string;
|
|
112
126
|
sourceUrl: string;
|