@apex-inc/mcp-server 0.33.0 → 0.34.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.
Files changed (66) hide show
  1. package/README.md +19 -18
  2. package/dist/api-client.d.ts +5 -0
  3. package/dist/api-client.d.ts.map +1 -1
  4. package/dist/api-client.js +40 -24
  5. package/dist/api-client.js.map +1 -1
  6. package/dist/index.js +7 -4
  7. package/dist/index.js.map +1 -1
  8. package/dist/prompts.d.ts.map +1 -1
  9. package/dist/prompts.js +5 -7
  10. package/dist/prompts.js.map +1 -1
  11. package/dist/setup-catchup-tools.d.ts.map +1 -1
  12. package/dist/setup-catchup-tools.js +15 -3
  13. package/dist/setup-catchup-tools.js.map +1 -1
  14. package/dist/smoke-tools.d.ts +56 -0
  15. package/dist/smoke-tools.d.ts.map +1 -0
  16. package/dist/smoke-tools.js +261 -0
  17. package/dist/smoke-tools.js.map +1 -0
  18. package/dist/tool-catalog.d.ts +10 -0
  19. package/dist/tool-catalog.d.ts.map +1 -0
  20. package/dist/tool-catalog.js +36 -0
  21. package/dist/tool-catalog.js.map +1 -0
  22. package/dist/tool-groups.d.ts +5 -0
  23. package/dist/tool-groups.d.ts.map +1 -0
  24. package/dist/tool-groups.js +206 -0
  25. package/dist/tool-groups.js.map +1 -0
  26. package/dist/tool-shared.d.ts +300 -0
  27. package/dist/tool-shared.d.ts.map +1 -0
  28. package/dist/tool-shared.js +319 -0
  29. package/dist/tool-shared.js.map +1 -0
  30. package/dist/tools/accounts.d.ts +124 -0
  31. package/dist/tools/accounts.d.ts.map +1 -0
  32. package/dist/tools/accounts.js +99 -0
  33. package/dist/tools/accounts.js.map +1 -0
  34. package/dist/tools/adoption.d.ts +499 -0
  35. package/dist/tools/adoption.d.ts.map +1 -0
  36. package/dist/tools/adoption.js +447 -0
  37. package/dist/tools/adoption.js.map +1 -0
  38. package/dist/tools/context.d.ts +216 -0
  39. package/dist/tools/context.d.ts.map +1 -0
  40. package/dist/tools/context.js +328 -0
  41. package/dist/tools/context.js.map +1 -0
  42. package/dist/tools/experiments.d.ts +1066 -0
  43. package/dist/tools/experiments.d.ts.map +1 -0
  44. package/dist/tools/experiments.js +2090 -0
  45. package/dist/tools/experiments.js.map +1 -0
  46. package/dist/tools/letters.d.ts +1107 -0
  47. package/dist/tools/letters.d.ts.map +1 -0
  48. package/dist/tools/letters.js +1324 -0
  49. package/dist/tools/letters.js.map +1 -0
  50. package/dist/tools/measurement.d.ts +886 -0
  51. package/dist/tools/measurement.d.ts.map +1 -0
  52. package/dist/tools/measurement.js +1353 -0
  53. package/dist/tools/measurement.js.map +1 -0
  54. package/dist/tools/partners.d.ts +364 -0
  55. package/dist/tools/partners.d.ts.map +1 -0
  56. package/dist/tools/partners.js +199 -0
  57. package/dist/tools/partners.js.map +1 -0
  58. package/dist/tools.d.ts +3161 -2826
  59. package/dist/tools.d.ts.map +1 -1
  60. package/dist/tools.js +26 -6112
  61. package/dist/tools.js.map +1 -1
  62. package/package.json +3 -2
  63. package/skills/apex-communications/SKILL.md +5 -5
  64. package/skills/apex-experimentation/SKILL.md +8 -11
  65. package/skills/apex-growth-intelligence/SKILL.md +1 -1
  66. package/skills/apex-integration-cookbook/SKILL.md +1 -1
@@ -0,0 +1,1066 @@
1
+ import { z } from "zod";
2
+ export declare const experimentTools: {
3
+ plan_experiment: {
4
+ description: string;
5
+ schema: z.ZodObject<{
6
+ goal: z.ZodString;
7
+ targetUrl: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ goal: string;
10
+ targetUrl?: string | undefined;
11
+ }, {
12
+ goal: string;
13
+ targetUrl?: string | undefined;
14
+ }>;
15
+ handler: ({ goal, targetUrl }: {
16
+ goal: string;
17
+ targetUrl?: string;
18
+ }) => Promise<{
19
+ content: {
20
+ type: "text";
21
+ text: string;
22
+ }[];
23
+ }>;
24
+ };
25
+ start_reasoning: {
26
+ description: string;
27
+ schema: z.ZodObject<{
28
+ decision: z.ZodString;
29
+ belief: z.ZodString;
30
+ confidence: z.ZodNumber;
31
+ }, "strip", z.ZodTypeAny, {
32
+ decision: string;
33
+ belief: string;
34
+ confidence: number;
35
+ }, {
36
+ decision: string;
37
+ belief: string;
38
+ confidence: number;
39
+ }>;
40
+ handler: ({ decision, belief, confidence }: {
41
+ decision: string;
42
+ belief: string;
43
+ confidence: number;
44
+ }) => Promise<{
45
+ content: {
46
+ type: "text";
47
+ text: string;
48
+ }[];
49
+ }>;
50
+ };
51
+ create_belief: {
52
+ description: string;
53
+ schema: z.ZodObject<{
54
+ statement: z.ZodString;
55
+ confidence: z.ZodNumber;
56
+ parentBeliefId: z.ZodOptional<z.ZodString>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ confidence: number;
59
+ statement: string;
60
+ parentBeliefId?: string | undefined;
61
+ }, {
62
+ confidence: number;
63
+ statement: string;
64
+ parentBeliefId?: string | undefined;
65
+ }>;
66
+ handler: ({ statement, confidence, parentBeliefId }: {
67
+ statement: string;
68
+ confidence: number;
69
+ parentBeliefId?: string;
70
+ }) => Promise<{
71
+ content: {
72
+ type: "text";
73
+ text: string;
74
+ }[];
75
+ }>;
76
+ };
77
+ create_experiment: {
78
+ description: string;
79
+ schema: z.ZodObject<{
80
+ name: z.ZodString;
81
+ targetUrl: z.ZodString;
82
+ controlContent: z.ZodString;
83
+ variantContent: z.ZodString;
84
+ targetComponent: z.ZodOptional<z.ZodString>;
85
+ targetAnchor: z.ZodOptional<z.ZodString>;
86
+ trafficSplit: z.ZodOptional<z.ZodNumber>;
87
+ beliefId: z.ZodOptional<z.ZodString>;
88
+ hypothesisId: z.ZodOptional<z.ZodString>;
89
+ predictionId: z.ZodOptional<z.ZodString>;
90
+ beliefStatement: z.ZodOptional<z.ZodString>;
91
+ beliefConfidence: z.ZodOptional<z.ZodNumber>;
92
+ hypothesisStatement: z.ZodOptional<z.ZodString>;
93
+ primaryMetricEvent: z.ZodOptional<z.ZodString>;
94
+ primaryMetricType: z.ZodOptional<z.ZodEnum<["rate", "count", "revenue", "duration"]>>;
95
+ primaryMetricValueProperty: z.ZodOptional<z.ZodString>;
96
+ guardrailEvent: z.ZodOptional<z.ZodString>;
97
+ guardrailType: z.ZodOptional<z.ZodEnum<["rate", "revenue", "duration"]>>;
98
+ guardrailThreshold: z.ZodOptional<z.ZodNumber>;
99
+ predictionMagnitude: z.ZodOptional<z.ZodString>;
100
+ surface: z.ZodOptional<z.ZodEnum<["web", "mobile"]>>;
101
+ dataSourceId: z.ZodOptional<z.ZodString>;
102
+ randomizationUnit: z.ZodOptional<z.ZodEnum<["device", "visitor", "person", "account", "org"]>>;
103
+ minSamplePerArm: z.ZodOptional<z.ZodNumber>;
104
+ runtimeDays: z.ZodOptional<z.ZodNumber>;
105
+ preview: z.ZodOptional<z.ZodBoolean>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ name: string;
108
+ targetUrl: string;
109
+ controlContent: string;
110
+ variantContent: string;
111
+ surface?: "web" | "mobile" | undefined;
112
+ targetComponent?: string | undefined;
113
+ targetAnchor?: string | undefined;
114
+ trafficSplit?: number | undefined;
115
+ beliefId?: string | undefined;
116
+ hypothesisId?: string | undefined;
117
+ predictionId?: string | undefined;
118
+ beliefStatement?: string | undefined;
119
+ beliefConfidence?: number | undefined;
120
+ hypothesisStatement?: string | undefined;
121
+ primaryMetricEvent?: string | undefined;
122
+ primaryMetricType?: "duration" | "rate" | "count" | "revenue" | undefined;
123
+ primaryMetricValueProperty?: string | undefined;
124
+ guardrailEvent?: string | undefined;
125
+ guardrailType?: "duration" | "rate" | "revenue" | undefined;
126
+ guardrailThreshold?: number | undefined;
127
+ predictionMagnitude?: string | undefined;
128
+ dataSourceId?: string | undefined;
129
+ randomizationUnit?: "account" | "device" | "visitor" | "person" | "org" | undefined;
130
+ minSamplePerArm?: number | undefined;
131
+ runtimeDays?: number | undefined;
132
+ preview?: boolean | undefined;
133
+ }, {
134
+ name: string;
135
+ targetUrl: string;
136
+ controlContent: string;
137
+ variantContent: string;
138
+ surface?: "web" | "mobile" | undefined;
139
+ targetComponent?: string | undefined;
140
+ targetAnchor?: string | undefined;
141
+ trafficSplit?: number | undefined;
142
+ beliefId?: string | undefined;
143
+ hypothesisId?: string | undefined;
144
+ predictionId?: string | undefined;
145
+ beliefStatement?: string | undefined;
146
+ beliefConfidence?: number | undefined;
147
+ hypothesisStatement?: string | undefined;
148
+ primaryMetricEvent?: string | undefined;
149
+ primaryMetricType?: "duration" | "rate" | "count" | "revenue" | undefined;
150
+ primaryMetricValueProperty?: string | undefined;
151
+ guardrailEvent?: string | undefined;
152
+ guardrailType?: "duration" | "rate" | "revenue" | undefined;
153
+ guardrailThreshold?: number | undefined;
154
+ predictionMagnitude?: string | undefined;
155
+ dataSourceId?: string | undefined;
156
+ randomizationUnit?: "account" | "device" | "visitor" | "person" | "org" | undefined;
157
+ minSamplePerArm?: number | undefined;
158
+ runtimeDays?: number | undefined;
159
+ preview?: boolean | undefined;
160
+ }>;
161
+ handler: (args: {
162
+ name: string;
163
+ targetUrl: string;
164
+ controlContent: string;
165
+ variantContent: string;
166
+ targetComponent?: string;
167
+ targetAnchor?: string;
168
+ trafficSplit?: number;
169
+ beliefId?: string;
170
+ hypothesisId?: string;
171
+ predictionId?: string;
172
+ beliefStatement?: string;
173
+ beliefConfidence?: number;
174
+ hypothesisStatement?: string;
175
+ primaryMetricEvent?: string;
176
+ primaryMetricType?: "rate" | "count" | "revenue" | "duration";
177
+ primaryMetricValueProperty?: string;
178
+ guardrailEvent?: string;
179
+ guardrailType?: "rate" | "revenue" | "duration";
180
+ guardrailThreshold?: number;
181
+ predictionMagnitude?: string;
182
+ surface?: "web" | "mobile";
183
+ dataSourceId?: string;
184
+ randomizationUnit?: "device" | "visitor" | "person" | "account" | "org";
185
+ minSamplePerArm?: number;
186
+ runtimeDays?: number;
187
+ preview?: boolean;
188
+ }) => Promise<{
189
+ content: {
190
+ type: "text";
191
+ text: string;
192
+ }[];
193
+ isError: boolean;
194
+ } | {
195
+ content: {
196
+ type: "text";
197
+ text: string;
198
+ }[];
199
+ isError?: undefined;
200
+ }>;
201
+ };
202
+ attach_experiment_asset: {
203
+ description: string;
204
+ schema: z.ZodObject<{
205
+ experimentId: z.ZodString;
206
+ variantKey: z.ZodString;
207
+ imageBase64: z.ZodOptional<z.ZodString>;
208
+ url: z.ZodOptional<z.ZodString>;
209
+ viewport: z.ZodOptional<z.ZodEnum<["desktop", "tablet", "mobile"]>>;
210
+ format: z.ZodOptional<z.ZodEnum<["png", "jpeg"]>>;
211
+ label: z.ZodOptional<z.ZodString>;
212
+ commitSha: z.ZodOptional<z.ZodString>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ experimentId: string;
215
+ variantKey: string;
216
+ label?: string | undefined;
217
+ url?: string | undefined;
218
+ imageBase64?: string | undefined;
219
+ viewport?: "mobile" | "desktop" | "tablet" | undefined;
220
+ format?: "png" | "jpeg" | undefined;
221
+ commitSha?: string | undefined;
222
+ }, {
223
+ experimentId: string;
224
+ variantKey: string;
225
+ label?: string | undefined;
226
+ url?: string | undefined;
227
+ imageBase64?: string | undefined;
228
+ viewport?: "mobile" | "desktop" | "tablet" | undefined;
229
+ format?: "png" | "jpeg" | undefined;
230
+ commitSha?: string | undefined;
231
+ }>;
232
+ handler: (args: {
233
+ experimentId: string;
234
+ variantKey: string;
235
+ imageBase64?: string;
236
+ url?: string;
237
+ viewport?: "desktop" | "tablet" | "mobile";
238
+ format?: "png" | "jpeg";
239
+ label?: string;
240
+ commitSha?: string;
241
+ }) => Promise<{
242
+ content: {
243
+ type: "text";
244
+ text: string;
245
+ }[];
246
+ isError: boolean;
247
+ } | {
248
+ content: {
249
+ type: "text";
250
+ text: string;
251
+ }[];
252
+ isError?: undefined;
253
+ }>;
254
+ };
255
+ recapture_experiment_screenshots: {
256
+ description: string;
257
+ schema: z.ZodObject<{
258
+ experimentId: z.ZodString;
259
+ }, "strip", z.ZodTypeAny, {
260
+ experimentId: string;
261
+ }, {
262
+ experimentId: string;
263
+ }>;
264
+ handler: ({ experimentId }: {
265
+ experimentId: string;
266
+ }) => Promise<{
267
+ content: {
268
+ type: "text";
269
+ text: string;
270
+ }[];
271
+ isError?: undefined;
272
+ } | {
273
+ content: {
274
+ type: "text";
275
+ text: string;
276
+ }[];
277
+ isError: boolean;
278
+ }>;
279
+ };
280
+ verify_experiment_wiring: {
281
+ description: string;
282
+ schema: z.ZodObject<{
283
+ experimentId: z.ZodString;
284
+ }, "strip", z.ZodTypeAny, {
285
+ experimentId: string;
286
+ }, {
287
+ experimentId: string;
288
+ }>;
289
+ handler: ({ experimentId }: {
290
+ experimentId: string;
291
+ }) => Promise<{
292
+ content: {
293
+ type: "text";
294
+ text: string;
295
+ }[];
296
+ }>;
297
+ };
298
+ activate_experiment: {
299
+ description: string;
300
+ schema: z.ZodObject<{
301
+ experimentId: z.ZodString;
302
+ force: z.ZodOptional<z.ZodBoolean>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ experimentId: string;
305
+ force?: boolean | undefined;
306
+ }, {
307
+ experimentId: string;
308
+ force?: boolean | undefined;
309
+ }>;
310
+ handler: ({ experimentId, force }: {
311
+ experimentId: string;
312
+ force?: boolean;
313
+ }) => Promise<{
314
+ content: {
315
+ type: "text";
316
+ text: string;
317
+ }[];
318
+ }>;
319
+ };
320
+ pause_experiment: {
321
+ description: string;
322
+ schema: z.ZodObject<{
323
+ experimentId: z.ZodString;
324
+ }, "strip", z.ZodTypeAny, {
325
+ experimentId: string;
326
+ }, {
327
+ experimentId: string;
328
+ }>;
329
+ handler: ({ experimentId }: {
330
+ experimentId: string;
331
+ }) => Promise<{
332
+ content: {
333
+ type: "text";
334
+ text: string;
335
+ }[];
336
+ }>;
337
+ };
338
+ track_deployment: {
339
+ description: string;
340
+ schema: z.ZodObject<{
341
+ experimentId: z.ZodString;
342
+ commitSha: z.ZodString;
343
+ branch: z.ZodOptional<z.ZodString>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ experimentId: string;
346
+ commitSha: string;
347
+ branch?: string | undefined;
348
+ }, {
349
+ experimentId: string;
350
+ commitSha: string;
351
+ branch?: string | undefined;
352
+ }>;
353
+ handler: ({ experimentId, commitSha, branch }: {
354
+ experimentId: string;
355
+ commitSha: string;
356
+ branch?: string;
357
+ }) => Promise<{
358
+ content: {
359
+ type: "text";
360
+ text: string;
361
+ }[];
362
+ }>;
363
+ };
364
+ check_deployment: {
365
+ description: string;
366
+ schema: z.ZodObject<{
367
+ experimentId: z.ZodString;
368
+ }, "strip", z.ZodTypeAny, {
369
+ experimentId: string;
370
+ }, {
371
+ experimentId: string;
372
+ }>;
373
+ handler: ({ experimentId }: {
374
+ experimentId: string;
375
+ }) => Promise<{
376
+ content: {
377
+ type: "text";
378
+ text: string;
379
+ }[];
380
+ }>;
381
+ };
382
+ archive_experiment: {
383
+ description: string;
384
+ schema: z.ZodObject<{
385
+ experimentId: z.ZodString;
386
+ }, "strip", z.ZodTypeAny, {
387
+ experimentId: string;
388
+ }, {
389
+ experimentId: string;
390
+ }>;
391
+ handler: ({ experimentId }: {
392
+ experimentId: string;
393
+ }) => Promise<{
394
+ content: {
395
+ type: "text";
396
+ text: string;
397
+ }[];
398
+ }>;
399
+ };
400
+ list_experiments: {
401
+ description: string;
402
+ schema: z.ZodObject<{
403
+ status: z.ZodOptional<z.ZodEnum<["all", "running", "completed", "draft", "paused", "archived"]>>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ status?: "all" | "draft" | "paused" | "running" | "completed" | "archived" | undefined;
406
+ }, {
407
+ status?: "all" | "draft" | "paused" | "running" | "completed" | "archived" | undefined;
408
+ }>;
409
+ handler: ({ status }: {
410
+ status?: string;
411
+ }) => Promise<{
412
+ content: {
413
+ type: "text";
414
+ text: string;
415
+ }[];
416
+ }>;
417
+ };
418
+ get_results: {
419
+ description: string;
420
+ schema: z.ZodObject<{
421
+ experimentId: z.ZodString;
422
+ }, "strip", z.ZodTypeAny, {
423
+ experimentId: string;
424
+ }, {
425
+ experimentId: string;
426
+ }>;
427
+ handler: ({ experimentId }: {
428
+ experimentId: string;
429
+ }) => Promise<{
430
+ content: {
431
+ type: "text";
432
+ text: string;
433
+ }[];
434
+ }>;
435
+ };
436
+ list_beliefs: {
437
+ description: string;
438
+ schema: z.ZodObject<{
439
+ query: z.ZodOptional<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ query?: string | undefined;
442
+ }, {
443
+ query?: string | undefined;
444
+ }>;
445
+ handler: ({ query }: {
446
+ query?: string;
447
+ }) => Promise<{
448
+ content: {
449
+ type: "text";
450
+ text: string;
451
+ }[];
452
+ }>;
453
+ };
454
+ update_experiment: {
455
+ description: string;
456
+ schema: z.ZodObject<{
457
+ experimentId: z.ZodString;
458
+ name: z.ZodOptional<z.ZodString>;
459
+ surface: z.ZodOptional<z.ZodEnum<["web", "mobile"]>>;
460
+ hypothesis: z.ZodOptional<z.ZodString>;
461
+ targetUrl: z.ZodOptional<z.ZodString>;
462
+ predictionId: z.ZodOptional<z.ZodString>;
463
+ primaryMetricEvent: z.ZodOptional<z.ZodString>;
464
+ primaryMetricType: z.ZodOptional<z.ZodEnum<["rate", "count", "revenue", "duration"]>>;
465
+ guardrailEvent: z.ZodOptional<z.ZodString>;
466
+ minSamplePerArm: z.ZodOptional<z.ZodNumber>;
467
+ runtimeDays: z.ZodOptional<z.ZodNumber>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ experimentId: string;
470
+ name?: string | undefined;
471
+ surface?: "web" | "mobile" | undefined;
472
+ targetUrl?: string | undefined;
473
+ predictionId?: string | undefined;
474
+ primaryMetricEvent?: string | undefined;
475
+ primaryMetricType?: "duration" | "rate" | "count" | "revenue" | undefined;
476
+ guardrailEvent?: string | undefined;
477
+ minSamplePerArm?: number | undefined;
478
+ runtimeDays?: number | undefined;
479
+ hypothesis?: string | undefined;
480
+ }, {
481
+ experimentId: string;
482
+ name?: string | undefined;
483
+ surface?: "web" | "mobile" | undefined;
484
+ targetUrl?: string | undefined;
485
+ predictionId?: string | undefined;
486
+ primaryMetricEvent?: string | undefined;
487
+ primaryMetricType?: "duration" | "rate" | "count" | "revenue" | undefined;
488
+ guardrailEvent?: string | undefined;
489
+ minSamplePerArm?: number | undefined;
490
+ runtimeDays?: number | undefined;
491
+ hypothesis?: string | undefined;
492
+ }>;
493
+ handler: (args: {
494
+ experimentId: string;
495
+ name?: string;
496
+ surface?: "web" | "mobile";
497
+ hypothesis?: string;
498
+ targetUrl?: string;
499
+ predictionId?: string;
500
+ primaryMetricEvent?: string;
501
+ primaryMetricType?: "rate" | "count" | "revenue" | "duration";
502
+ guardrailEvent?: string;
503
+ minSamplePerArm?: number;
504
+ runtimeDays?: number;
505
+ }) => Promise<{
506
+ content: {
507
+ type: "text";
508
+ text: string;
509
+ }[];
510
+ isError: boolean;
511
+ } | {
512
+ content: {
513
+ type: "text";
514
+ text: string;
515
+ }[];
516
+ isError?: undefined;
517
+ }>;
518
+ };
519
+ fork_experiment: {
520
+ description: string;
521
+ schema: z.ZodObject<{
522
+ experimentId: z.ZodString;
523
+ }, "strip", z.ZodTypeAny, {
524
+ experimentId: string;
525
+ }, {
526
+ experimentId: string;
527
+ }>;
528
+ handler: ({ experimentId }: {
529
+ experimentId: string;
530
+ }) => Promise<{
531
+ content: {
532
+ type: "text";
533
+ text: string;
534
+ }[];
535
+ isError: boolean;
536
+ } | {
537
+ content: {
538
+ type: "text";
539
+ text: string;
540
+ }[];
541
+ isError?: undefined;
542
+ }>;
543
+ };
544
+ check_experiment_conflicts: {
545
+ description: string;
546
+ schema: z.ZodObject<{
547
+ experimentId: z.ZodOptional<z.ZodString>;
548
+ surface: z.ZodOptional<z.ZodEnum<["web", "mobile"]>>;
549
+ targetComponent: z.ZodOptional<z.ZodString>;
550
+ targetUrl: z.ZodOptional<z.ZodString>;
551
+ targetAnchor: z.ZodOptional<z.ZodString>;
552
+ dataSourceId: z.ZodOptional<z.ZodString>;
553
+ primaryMetricEvent: z.ZodOptional<z.ZodString>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ surface?: "web" | "mobile" | undefined;
556
+ targetUrl?: string | undefined;
557
+ targetComponent?: string | undefined;
558
+ targetAnchor?: string | undefined;
559
+ primaryMetricEvent?: string | undefined;
560
+ dataSourceId?: string | undefined;
561
+ experimentId?: string | undefined;
562
+ }, {
563
+ surface?: "web" | "mobile" | undefined;
564
+ targetUrl?: string | undefined;
565
+ targetComponent?: string | undefined;
566
+ targetAnchor?: string | undefined;
567
+ primaryMetricEvent?: string | undefined;
568
+ dataSourceId?: string | undefined;
569
+ experimentId?: string | undefined;
570
+ }>;
571
+ handler: (args: {
572
+ experimentId?: string;
573
+ surface?: string;
574
+ targetComponent?: string;
575
+ targetUrl?: string;
576
+ targetAnchor?: string;
577
+ dataSourceId?: string;
578
+ primaryMetricEvent?: string;
579
+ }) => Promise<{
580
+ content: {
581
+ type: "text";
582
+ text: string;
583
+ }[];
584
+ isError?: undefined;
585
+ } | {
586
+ content: {
587
+ type: "text";
588
+ text: string;
589
+ }[];
590
+ isError: boolean;
591
+ }>;
592
+ };
593
+ check_live_tests: {
594
+ description: string;
595
+ schema: z.ZodObject<{
596
+ file_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
597
+ file_contents: z.ZodOptional<z.ZodArray<z.ZodObject<{
598
+ path: z.ZodString;
599
+ content: z.ZodString;
600
+ }, "strip", z.ZodTypeAny, {
601
+ path: string;
602
+ content: string;
603
+ }, {
604
+ path: string;
605
+ content: string;
606
+ }>, "many">>;
607
+ urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
608
+ communication_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
609
+ journey_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
610
+ milestone_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ file_paths?: string[] | undefined;
613
+ file_contents?: {
614
+ path: string;
615
+ content: string;
616
+ }[] | undefined;
617
+ urls?: string[] | undefined;
618
+ communication_ids?: string[] | undefined;
619
+ journey_ids?: string[] | undefined;
620
+ milestone_ids?: string[] | undefined;
621
+ }, {
622
+ file_paths?: string[] | undefined;
623
+ file_contents?: {
624
+ path: string;
625
+ content: string;
626
+ }[] | undefined;
627
+ urls?: string[] | undefined;
628
+ communication_ids?: string[] | undefined;
629
+ journey_ids?: string[] | undefined;
630
+ milestone_ids?: string[] | undefined;
631
+ }>;
632
+ handler: (args: {
633
+ file_paths?: string[];
634
+ file_contents?: Array<{
635
+ path: string;
636
+ content: string;
637
+ }>;
638
+ urls?: string[];
639
+ communication_ids?: string[];
640
+ journey_ids?: string[];
641
+ milestone_ids?: string[];
642
+ }) => Promise<{
643
+ content: {
644
+ type: "text";
645
+ text: string;
646
+ }[];
647
+ isError?: undefined;
648
+ } | {
649
+ content: {
650
+ type: "text";
651
+ text: string;
652
+ }[];
653
+ isError: boolean;
654
+ }>;
655
+ };
656
+ set_experiment_mutex: {
657
+ description: string;
658
+ schema: z.ZodObject<{
659
+ experimentId: z.ZodString;
660
+ withExperimentId: z.ZodString;
661
+ mode: z.ZodOptional<z.ZodEnum<["add", "remove"]>>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ experimentId: string;
664
+ withExperimentId: string;
665
+ mode?: "add" | "remove" | undefined;
666
+ }, {
667
+ experimentId: string;
668
+ withExperimentId: string;
669
+ mode?: "add" | "remove" | undefined;
670
+ }>;
671
+ handler: ({ experimentId, withExperimentId, mode }: {
672
+ experimentId: string;
673
+ withExperimentId: string;
674
+ mode?: "add" | "remove";
675
+ }) => Promise<{
676
+ content: {
677
+ type: "text";
678
+ text: string;
679
+ }[];
680
+ isError?: undefined;
681
+ } | {
682
+ content: {
683
+ type: "text";
684
+ text: string;
685
+ }[];
686
+ isError: boolean;
687
+ }>;
688
+ };
689
+ suggest_experiment: {
690
+ description: string;
691
+ schema: z.ZodObject<{
692
+ context: z.ZodOptional<z.ZodString>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ context?: string | undefined;
695
+ }, {
696
+ context?: string | undefined;
697
+ }>;
698
+ handler: ({ context }: {
699
+ context?: string;
700
+ }) => Promise<{
701
+ content: {
702
+ type: "text";
703
+ text: string;
704
+ }[];
705
+ }>;
706
+ };
707
+ promote_winner: {
708
+ description: string;
709
+ schema: z.ZodObject<{
710
+ experimentId: z.ZodString;
711
+ winner: z.ZodEnum<["control", "variant_b"]>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ experimentId: string;
714
+ winner: "control" | "variant_b";
715
+ }, {
716
+ experimentId: string;
717
+ winner: "control" | "variant_b";
718
+ }>;
719
+ handler: ({ experimentId, winner }: {
720
+ experimentId: string;
721
+ winner: string;
722
+ }) => Promise<{
723
+ content: {
724
+ type: "text";
725
+ text: string;
726
+ }[];
727
+ }>;
728
+ };
729
+ get_experiment_results: {
730
+ description: string;
731
+ schema: z.ZodObject<{
732
+ experiment_id: z.ZodString;
733
+ }, "strip", z.ZodTypeAny, {
734
+ experiment_id: string;
735
+ }, {
736
+ experiment_id: string;
737
+ }>;
738
+ handler: ({ experiment_id }: {
739
+ experiment_id: string;
740
+ }) => Promise<{
741
+ content: {
742
+ type: "text";
743
+ text: string;
744
+ }[];
745
+ }>;
746
+ };
747
+ promote_experiment_winner: {
748
+ description: string;
749
+ schema: z.ZodObject<{
750
+ experiment_id: z.ZodString;
751
+ force: z.ZodOptional<z.ZodBoolean>;
752
+ winner_key: z.ZodOptional<z.ZodString>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ experiment_id: string;
755
+ force?: boolean | undefined;
756
+ winner_key?: string | undefined;
757
+ }, {
758
+ experiment_id: string;
759
+ force?: boolean | undefined;
760
+ winner_key?: string | undefined;
761
+ }>;
762
+ handler: ({ experiment_id, force, winner_key, }: {
763
+ experiment_id: string;
764
+ force?: boolean;
765
+ winner_key?: string;
766
+ }) => Promise<{
767
+ content: {
768
+ type: "text";
769
+ text: string;
770
+ }[];
771
+ }>;
772
+ };
773
+ graduate_experiment: {
774
+ description: string;
775
+ schema: z.ZodObject<{
776
+ experimentId: z.ZodString;
777
+ }, "strip", z.ZodTypeAny, {
778
+ experimentId: string;
779
+ }, {
780
+ experimentId: string;
781
+ }>;
782
+ handler: ({ experimentId }: {
783
+ experimentId: string;
784
+ }) => Promise<{
785
+ content: {
786
+ type: "text";
787
+ text: string;
788
+ }[];
789
+ }>;
790
+ };
791
+ record_outcome: {
792
+ description: string;
793
+ schema: z.ZodObject<{
794
+ experimentId: z.ZodString;
795
+ beliefId: z.ZodString;
796
+ outcome: z.ZodEnum<["confirmed", "contradicted", "inconclusive"]>;
797
+ metricDelta: z.ZodNumber;
798
+ notes: z.ZodOptional<z.ZodString>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ outcome: "confirmed" | "contradicted" | "inconclusive";
801
+ beliefId: string;
802
+ experimentId: string;
803
+ metricDelta: number;
804
+ notes?: string | undefined;
805
+ }, {
806
+ outcome: "confirmed" | "contradicted" | "inconclusive";
807
+ beliefId: string;
808
+ experimentId: string;
809
+ metricDelta: number;
810
+ notes?: string | undefined;
811
+ }>;
812
+ handler: (args: {
813
+ experimentId: string;
814
+ beliefId: string;
815
+ outcome: string;
816
+ metricDelta: number;
817
+ notes?: string;
818
+ }) => Promise<{
819
+ content: {
820
+ type: "text";
821
+ text: string;
822
+ }[];
823
+ }>;
824
+ };
825
+ predict_impact: {
826
+ description: string;
827
+ schema: z.ZodObject<{
828
+ description: z.ZodString;
829
+ }, "strip", z.ZodTypeAny, {
830
+ description: string;
831
+ }, {
832
+ description: string;
833
+ }>;
834
+ handler: ({ description }: {
835
+ description: string;
836
+ }) => Promise<{
837
+ content: {
838
+ type: "text";
839
+ text: string;
840
+ }[];
841
+ }>;
842
+ };
843
+ evaluate_feature: {
844
+ description: string;
845
+ schema: z.ZodObject<{
846
+ feature: z.ZodString;
847
+ targetMetric: z.ZodOptional<z.ZodString>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ feature: string;
850
+ targetMetric?: string | undefined;
851
+ }, {
852
+ feature: string;
853
+ targetMetric?: string | undefined;
854
+ }>;
855
+ handler: ({ feature, targetMetric }: {
856
+ feature: string;
857
+ targetMetric?: string;
858
+ }) => Promise<{
859
+ content: {
860
+ type: "text";
861
+ text: string;
862
+ }[];
863
+ }>;
864
+ };
865
+ link_experiment: {
866
+ description: string;
867
+ schema: z.ZodObject<{
868
+ experimentId: z.ZodString;
869
+ system: z.ZodEnum<["github", "github-issues", "linear", "jira", "trello"]>;
870
+ kind: z.ZodEnum<["pr", "issue"]>;
871
+ repo: z.ZodOptional<z.ZodString>;
872
+ externalId: z.ZodString;
873
+ url: z.ZodOptional<z.ZodString>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ kind: "pr" | "issue";
876
+ experimentId: string;
877
+ system: "linear" | "github" | "github-issues" | "jira" | "trello";
878
+ externalId: string;
879
+ url?: string | undefined;
880
+ repo?: string | undefined;
881
+ }, {
882
+ kind: "pr" | "issue";
883
+ experimentId: string;
884
+ system: "linear" | "github" | "github-issues" | "jira" | "trello";
885
+ externalId: string;
886
+ url?: string | undefined;
887
+ repo?: string | undefined;
888
+ }>;
889
+ handler: (args: {
890
+ experimentId: string;
891
+ system: string;
892
+ kind: string;
893
+ repo?: string;
894
+ externalId: string;
895
+ url?: string;
896
+ }) => Promise<{
897
+ content: {
898
+ type: "text";
899
+ text: string;
900
+ }[];
901
+ }>;
902
+ };
903
+ unlink_experiment: {
904
+ description: string;
905
+ schema: z.ZodObject<{
906
+ experimentId: z.ZodString;
907
+ linkId: z.ZodString;
908
+ }, "strip", z.ZodTypeAny, {
909
+ experimentId: string;
910
+ linkId: string;
911
+ }, {
912
+ experimentId: string;
913
+ linkId: string;
914
+ }>;
915
+ handler: ({ experimentId, linkId }: {
916
+ experimentId: string;
917
+ linkId: string;
918
+ }) => Promise<{
919
+ content: {
920
+ type: "text";
921
+ text: string;
922
+ }[];
923
+ }>;
924
+ };
925
+ gate_experiment_on_merge: {
926
+ description: string;
927
+ schema: z.ZodObject<{
928
+ experimentId: z.ZodString;
929
+ engineeringLinkId: z.ZodString;
930
+ rampOnMerge: z.ZodOptional<z.ZodNumber>;
931
+ primaryMetric: z.ZodString;
932
+ minSampleSize: z.ZodNumber;
933
+ maxDurationDays: z.ZodNumber;
934
+ stoppingRule: z.ZodString;
935
+ }, "strip", z.ZodTypeAny, {
936
+ experimentId: string;
937
+ engineeringLinkId: string;
938
+ primaryMetric: string;
939
+ minSampleSize: number;
940
+ maxDurationDays: number;
941
+ stoppingRule: string;
942
+ rampOnMerge?: number | undefined;
943
+ }, {
944
+ experimentId: string;
945
+ engineeringLinkId: string;
946
+ primaryMetric: string;
947
+ minSampleSize: number;
948
+ maxDurationDays: number;
949
+ stoppingRule: string;
950
+ rampOnMerge?: number | undefined;
951
+ }>;
952
+ handler: (args: {
953
+ experimentId: string;
954
+ engineeringLinkId: string;
955
+ rampOnMerge?: number;
956
+ primaryMetric: string;
957
+ minSampleSize: number;
958
+ maxDurationDays: number;
959
+ stoppingRule: string;
960
+ }) => Promise<{
961
+ content: {
962
+ type: "text";
963
+ text: string;
964
+ }[];
965
+ }>;
966
+ };
967
+ open_graduation_pr: {
968
+ description: string;
969
+ schema: z.ZodObject<{
970
+ experimentId: z.ZodString;
971
+ }, "strip", z.ZodTypeAny, {
972
+ experimentId: string;
973
+ }, {
974
+ experimentId: string;
975
+ }>;
976
+ handler: ({ experimentId }: {
977
+ experimentId: string;
978
+ }) => Promise<{
979
+ content: {
980
+ type: "text";
981
+ text: string;
982
+ }[];
983
+ }>;
984
+ };
985
+ open_revert_pr: {
986
+ description: string;
987
+ schema: z.ZodObject<{
988
+ experimentId: z.ZodString;
989
+ }, "strip", z.ZodTypeAny, {
990
+ experimentId: string;
991
+ }, {
992
+ experimentId: string;
993
+ }>;
994
+ handler: ({ experimentId }: {
995
+ experimentId: string;
996
+ }) => Promise<{
997
+ content: {
998
+ type: "text";
999
+ text: string;
1000
+ }[];
1001
+ }>;
1002
+ };
1003
+ get_automation_controls: {
1004
+ description: string;
1005
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1006
+ handler: () => Promise<{
1007
+ content: {
1008
+ type: "text";
1009
+ text: string;
1010
+ }[];
1011
+ }>;
1012
+ };
1013
+ update_automation_controls: {
1014
+ description: string;
1015
+ schema: z.ZodObject<{
1016
+ onWin: z.ZodOptional<z.ZodEnum<["do_nothing", "notify", "auto"]>>;
1017
+ onLose: z.ZodOptional<z.ZodEnum<["do_nothing", "notify", "auto"]>>;
1018
+ writeRepos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1019
+ githubVisibility: z.ZodOptional<z.ZodEnum<["full", "minimal", "off"]>>;
1020
+ commitConvention: z.ZodOptional<z.ZodEnum<["conventional", "none", "custom"]>>;
1021
+ branchConvention: z.ZodOptional<z.ZodEnum<["apex", "feature", "feat", "chore", "custom"]>>;
1022
+ workingHours: z.ZodOptional<z.ZodEnum<["anytime", "off_hours", "business_hours"]>>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ onWin?: "do_nothing" | "notify" | "auto" | undefined;
1025
+ onLose?: "do_nothing" | "notify" | "auto" | undefined;
1026
+ writeRepos?: string[] | undefined;
1027
+ githubVisibility?: "full" | "minimal" | "off" | undefined;
1028
+ commitConvention?: "custom" | "none" | "conventional" | undefined;
1029
+ branchConvention?: "custom" | "feature" | "apex" | "feat" | "chore" | undefined;
1030
+ workingHours?: "anytime" | "off_hours" | "business_hours" | undefined;
1031
+ }, {
1032
+ onWin?: "do_nothing" | "notify" | "auto" | undefined;
1033
+ onLose?: "do_nothing" | "notify" | "auto" | undefined;
1034
+ writeRepos?: string[] | undefined;
1035
+ githubVisibility?: "full" | "minimal" | "off" | undefined;
1036
+ commitConvention?: "custom" | "none" | "conventional" | undefined;
1037
+ branchConvention?: "custom" | "feature" | "apex" | "feat" | "chore" | undefined;
1038
+ workingHours?: "anytime" | "off_hours" | "business_hours" | undefined;
1039
+ }>;
1040
+ handler: (args: Record<string, unknown>) => Promise<{
1041
+ content: {
1042
+ type: "text";
1043
+ text: string;
1044
+ }[];
1045
+ }>;
1046
+ };
1047
+ list_engineering_links: {
1048
+ description: string;
1049
+ schema: z.ZodObject<{
1050
+ experimentId: z.ZodString;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ experimentId: string;
1053
+ }, {
1054
+ experimentId: string;
1055
+ }>;
1056
+ handler: ({ experimentId }: {
1057
+ experimentId: string;
1058
+ }) => Promise<{
1059
+ content: {
1060
+ type: "text";
1061
+ text: string;
1062
+ }[];
1063
+ }>;
1064
+ };
1065
+ };
1066
+ //# sourceMappingURL=experiments.d.ts.map