cimux-mcp 0.1.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 (38) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +133 -0
  3. package/dist/cli/cimux-cli.d.ts +10 -0
  4. package/dist/cli/cimux-cli.js +201 -0
  5. package/dist/cli/cimux-cli.js.map +1 -0
  6. package/dist/index.d.ts +15 -0
  7. package/dist/index.js +34 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/install/cimux-install-plan.d.ts +29 -0
  10. package/dist/install/cimux-install-plan.js +187 -0
  11. package/dist/install/cimux-install-plan.js.map +1 -0
  12. package/dist/mcp/cimux-mcp-server.d.ts +4 -0
  13. package/dist/mcp/cimux-mcp-server.js +59 -0
  14. package/dist/mcp/cimux-mcp-server.js.map +1 -0
  15. package/dist/model/context-package.d.ts +913 -0
  16. package/dist/model/context-package.js +153 -0
  17. package/dist/model/context-package.js.map +1 -0
  18. package/dist/registration/mailbox-registration.d.ts +30 -0
  19. package/dist/registration/mailbox-registration.js +48 -0
  20. package/dist/registration/mailbox-registration.js.map +1 -0
  21. package/dist/runtime/mailbox-runtime.d.ts +22 -0
  22. package/dist/runtime/mailbox-runtime.js +50 -0
  23. package/dist/runtime/mailbox-runtime.js.map +1 -0
  24. package/dist/service/cimux-mailbox-service.d.ts +87 -0
  25. package/dist/service/cimux-mailbox-service.js +126 -0
  26. package/dist/service/cimux-mailbox-service.js.map +1 -0
  27. package/dist/storage/mailbox-store.d.ts +22 -0
  28. package/dist/storage/mailbox-store.js +2 -0
  29. package/dist/storage/mailbox-store.js.map +1 -0
  30. package/dist/storage/sqlite-cimux-store.d.ts +21 -0
  31. package/dist/storage/sqlite-cimux-store.js +201 -0
  32. package/dist/storage/sqlite-cimux-store.js.map +1 -0
  33. package/dist/version.d.ts +2 -0
  34. package/dist/version.js +3 -0
  35. package/dist/version.js.map +1 -0
  36. package/docs/mvp-readiness.md +85 -0
  37. package/package.json +51 -0
  38. package/scripts/demo-local-handoff.mjs +73 -0
@@ -0,0 +1,913 @@
1
+ import { z } from "zod";
2
+ export declare const mailboxNameSchema: z.ZodString;
3
+ export declare const mailboxSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ createdAt: z.ZodString;
6
+ lastSeenAt: z.ZodNullable<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ name: string;
9
+ createdAt: string;
10
+ lastSeenAt: string | null;
11
+ }, {
12
+ name: string;
13
+ createdAt: string;
14
+ lastSeenAt: string | null;
15
+ }>;
16
+ export declare const fileArtifactSchema: z.ZodObject<{
17
+ path: z.ZodString;
18
+ repo: z.ZodOptional<z.ZodString>;
19
+ lineStart: z.ZodOptional<z.ZodNumber>;
20
+ lineEnd: z.ZodOptional<z.ZodNumber>;
21
+ note: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ path: string;
24
+ repo?: string | undefined;
25
+ lineStart?: number | undefined;
26
+ lineEnd?: number | undefined;
27
+ note?: string | undefined;
28
+ }, {
29
+ path: string;
30
+ repo?: string | undefined;
31
+ lineStart?: number | undefined;
32
+ lineEnd?: number | undefined;
33
+ note?: string | undefined;
34
+ }>;
35
+ export declare const functionArtifactSchema: z.ZodObject<{
36
+ name: z.ZodString;
37
+ file: z.ZodOptional<z.ZodString>;
38
+ signature: z.ZodOptional<z.ZodString>;
39
+ note: z.ZodOptional<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ name: string;
42
+ note?: string | undefined;
43
+ file?: string | undefined;
44
+ signature?: string | undefined;
45
+ }, {
46
+ name: string;
47
+ note?: string | undefined;
48
+ file?: string | undefined;
49
+ signature?: string | undefined;
50
+ }>;
51
+ export declare const commitArtifactSchema: z.ZodObject<{
52
+ sha: z.ZodString;
53
+ repo: z.ZodOptional<z.ZodString>;
54
+ message: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ sha: string;
57
+ message?: string | undefined;
58
+ repo?: string | undefined;
59
+ }, {
60
+ sha: string;
61
+ message?: string | undefined;
62
+ repo?: string | undefined;
63
+ }>;
64
+ export declare const pullRequestArtifactSchema: z.ZodObject<{
65
+ id: z.ZodOptional<z.ZodString>;
66
+ url: z.ZodOptional<z.ZodString>;
67
+ title: z.ZodOptional<z.ZodString>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ id?: string | undefined;
70
+ url?: string | undefined;
71
+ title?: string | undefined;
72
+ }, {
73
+ id?: string | undefined;
74
+ url?: string | undefined;
75
+ title?: string | undefined;
76
+ }>;
77
+ export declare const urlArtifactSchema: z.ZodObject<{
78
+ url: z.ZodString;
79
+ title: z.ZodOptional<z.ZodString>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ url: string;
82
+ title?: string | undefined;
83
+ }, {
84
+ url: string;
85
+ title?: string | undefined;
86
+ }>;
87
+ export declare const codeSnippetArtifactSchema: z.ZodObject<{
88
+ language: z.ZodOptional<z.ZodString>;
89
+ label: z.ZodOptional<z.ZodString>;
90
+ code: z.ZodString;
91
+ }, "strip", z.ZodTypeAny, {
92
+ code: string;
93
+ language?: string | undefined;
94
+ label?: string | undefined;
95
+ }, {
96
+ code: string;
97
+ language?: string | undefined;
98
+ label?: string | undefined;
99
+ }>;
100
+ export declare const artifactsSchema: z.ZodDefault<z.ZodObject<{
101
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
102
+ path: z.ZodString;
103
+ repo: z.ZodOptional<z.ZodString>;
104
+ lineStart: z.ZodOptional<z.ZodNumber>;
105
+ lineEnd: z.ZodOptional<z.ZodNumber>;
106
+ note: z.ZodOptional<z.ZodString>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ path: string;
109
+ repo?: string | undefined;
110
+ lineStart?: number | undefined;
111
+ lineEnd?: number | undefined;
112
+ note?: string | undefined;
113
+ }, {
114
+ path: string;
115
+ repo?: string | undefined;
116
+ lineStart?: number | undefined;
117
+ lineEnd?: number | undefined;
118
+ note?: string | undefined;
119
+ }>, "many">>;
120
+ functions: z.ZodDefault<z.ZodArray<z.ZodObject<{
121
+ name: z.ZodString;
122
+ file: z.ZodOptional<z.ZodString>;
123
+ signature: z.ZodOptional<z.ZodString>;
124
+ note: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ name: string;
127
+ note?: string | undefined;
128
+ file?: string | undefined;
129
+ signature?: string | undefined;
130
+ }, {
131
+ name: string;
132
+ note?: string | undefined;
133
+ file?: string | undefined;
134
+ signature?: string | undefined;
135
+ }>, "many">>;
136
+ commits: z.ZodDefault<z.ZodArray<z.ZodObject<{
137
+ sha: z.ZodString;
138
+ repo: z.ZodOptional<z.ZodString>;
139
+ message: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ sha: string;
142
+ message?: string | undefined;
143
+ repo?: string | undefined;
144
+ }, {
145
+ sha: string;
146
+ message?: string | undefined;
147
+ repo?: string | undefined;
148
+ }>, "many">>;
149
+ pullRequests: z.ZodDefault<z.ZodArray<z.ZodObject<{
150
+ id: z.ZodOptional<z.ZodString>;
151
+ url: z.ZodOptional<z.ZodString>;
152
+ title: z.ZodOptional<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ id?: string | undefined;
155
+ url?: string | undefined;
156
+ title?: string | undefined;
157
+ }, {
158
+ id?: string | undefined;
159
+ url?: string | undefined;
160
+ title?: string | undefined;
161
+ }>, "many">>;
162
+ urls: z.ZodDefault<z.ZodArray<z.ZodObject<{
163
+ url: z.ZodString;
164
+ title: z.ZodOptional<z.ZodString>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ url: string;
167
+ title?: string | undefined;
168
+ }, {
169
+ url: string;
170
+ title?: string | undefined;
171
+ }>, "many">>;
172
+ codeSnippets: z.ZodDefault<z.ZodArray<z.ZodObject<{
173
+ language: z.ZodOptional<z.ZodString>;
174
+ label: z.ZodOptional<z.ZodString>;
175
+ code: z.ZodString;
176
+ }, "strip", z.ZodTypeAny, {
177
+ code: string;
178
+ language?: string | undefined;
179
+ label?: string | undefined;
180
+ }, {
181
+ code: string;
182
+ language?: string | undefined;
183
+ label?: string | undefined;
184
+ }>, "many">>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ files: {
187
+ path: string;
188
+ repo?: string | undefined;
189
+ lineStart?: number | undefined;
190
+ lineEnd?: number | undefined;
191
+ note?: string | undefined;
192
+ }[];
193
+ functions: {
194
+ name: string;
195
+ note?: string | undefined;
196
+ file?: string | undefined;
197
+ signature?: string | undefined;
198
+ }[];
199
+ commits: {
200
+ sha: string;
201
+ message?: string | undefined;
202
+ repo?: string | undefined;
203
+ }[];
204
+ pullRequests: {
205
+ id?: string | undefined;
206
+ url?: string | undefined;
207
+ title?: string | undefined;
208
+ }[];
209
+ urls: {
210
+ url: string;
211
+ title?: string | undefined;
212
+ }[];
213
+ codeSnippets: {
214
+ code: string;
215
+ language?: string | undefined;
216
+ label?: string | undefined;
217
+ }[];
218
+ }, {
219
+ files?: {
220
+ path: string;
221
+ repo?: string | undefined;
222
+ lineStart?: number | undefined;
223
+ lineEnd?: number | undefined;
224
+ note?: string | undefined;
225
+ }[] | undefined;
226
+ functions?: {
227
+ name: string;
228
+ note?: string | undefined;
229
+ file?: string | undefined;
230
+ signature?: string | undefined;
231
+ }[] | undefined;
232
+ commits?: {
233
+ sha: string;
234
+ message?: string | undefined;
235
+ repo?: string | undefined;
236
+ }[] | undefined;
237
+ pullRequests?: {
238
+ id?: string | undefined;
239
+ url?: string | undefined;
240
+ title?: string | undefined;
241
+ }[] | undefined;
242
+ urls?: {
243
+ url: string;
244
+ title?: string | undefined;
245
+ }[] | undefined;
246
+ codeSnippets?: {
247
+ code: string;
248
+ language?: string | undefined;
249
+ label?: string | undefined;
250
+ }[] | undefined;
251
+ }>>;
252
+ export declare const ackStateSchema: z.ZodObject<{
253
+ status: z.ZodEnum<["pending", "acknowledged"]>;
254
+ ackAt: z.ZodNullable<z.ZodString>;
255
+ ackBy: z.ZodNullable<z.ZodString>;
256
+ note: z.ZodNullable<z.ZodString>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ status: "pending" | "acknowledged";
259
+ note: string | null;
260
+ ackAt: string | null;
261
+ ackBy: string | null;
262
+ }, {
263
+ status: "pending" | "acknowledged";
264
+ note: string | null;
265
+ ackAt: string | null;
266
+ ackBy: string | null;
267
+ }>;
268
+ export declare const createContextPackageInputSchema: z.ZodObject<{
269
+ fromMailbox: z.ZodString;
270
+ toMailbox: z.ZodString;
271
+ title: z.ZodString;
272
+ summary: z.ZodString;
273
+ body: z.ZodString;
274
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
275
+ artifacts: z.ZodDefault<z.ZodDefault<z.ZodObject<{
276
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
277
+ path: z.ZodString;
278
+ repo: z.ZodOptional<z.ZodString>;
279
+ lineStart: z.ZodOptional<z.ZodNumber>;
280
+ lineEnd: z.ZodOptional<z.ZodNumber>;
281
+ note: z.ZodOptional<z.ZodString>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ path: string;
284
+ repo?: string | undefined;
285
+ lineStart?: number | undefined;
286
+ lineEnd?: number | undefined;
287
+ note?: string | undefined;
288
+ }, {
289
+ path: string;
290
+ repo?: string | undefined;
291
+ lineStart?: number | undefined;
292
+ lineEnd?: number | undefined;
293
+ note?: string | undefined;
294
+ }>, "many">>;
295
+ functions: z.ZodDefault<z.ZodArray<z.ZodObject<{
296
+ name: z.ZodString;
297
+ file: z.ZodOptional<z.ZodString>;
298
+ signature: z.ZodOptional<z.ZodString>;
299
+ note: z.ZodOptional<z.ZodString>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ name: string;
302
+ note?: string | undefined;
303
+ file?: string | undefined;
304
+ signature?: string | undefined;
305
+ }, {
306
+ name: string;
307
+ note?: string | undefined;
308
+ file?: string | undefined;
309
+ signature?: string | undefined;
310
+ }>, "many">>;
311
+ commits: z.ZodDefault<z.ZodArray<z.ZodObject<{
312
+ sha: z.ZodString;
313
+ repo: z.ZodOptional<z.ZodString>;
314
+ message: z.ZodOptional<z.ZodString>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ sha: string;
317
+ message?: string | undefined;
318
+ repo?: string | undefined;
319
+ }, {
320
+ sha: string;
321
+ message?: string | undefined;
322
+ repo?: string | undefined;
323
+ }>, "many">>;
324
+ pullRequests: z.ZodDefault<z.ZodArray<z.ZodObject<{
325
+ id: z.ZodOptional<z.ZodString>;
326
+ url: z.ZodOptional<z.ZodString>;
327
+ title: z.ZodOptional<z.ZodString>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ id?: string | undefined;
330
+ url?: string | undefined;
331
+ title?: string | undefined;
332
+ }, {
333
+ id?: string | undefined;
334
+ url?: string | undefined;
335
+ title?: string | undefined;
336
+ }>, "many">>;
337
+ urls: z.ZodDefault<z.ZodArray<z.ZodObject<{
338
+ url: z.ZodString;
339
+ title: z.ZodOptional<z.ZodString>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ url: string;
342
+ title?: string | undefined;
343
+ }, {
344
+ url: string;
345
+ title?: string | undefined;
346
+ }>, "many">>;
347
+ codeSnippets: z.ZodDefault<z.ZodArray<z.ZodObject<{
348
+ language: z.ZodOptional<z.ZodString>;
349
+ label: z.ZodOptional<z.ZodString>;
350
+ code: z.ZodString;
351
+ }, "strip", z.ZodTypeAny, {
352
+ code: string;
353
+ language?: string | undefined;
354
+ label?: string | undefined;
355
+ }, {
356
+ code: string;
357
+ language?: string | undefined;
358
+ label?: string | undefined;
359
+ }>, "many">>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ files: {
362
+ path: string;
363
+ repo?: string | undefined;
364
+ lineStart?: number | undefined;
365
+ lineEnd?: number | undefined;
366
+ note?: string | undefined;
367
+ }[];
368
+ functions: {
369
+ name: string;
370
+ note?: string | undefined;
371
+ file?: string | undefined;
372
+ signature?: string | undefined;
373
+ }[];
374
+ commits: {
375
+ sha: string;
376
+ message?: string | undefined;
377
+ repo?: string | undefined;
378
+ }[];
379
+ pullRequests: {
380
+ id?: string | undefined;
381
+ url?: string | undefined;
382
+ title?: string | undefined;
383
+ }[];
384
+ urls: {
385
+ url: string;
386
+ title?: string | undefined;
387
+ }[];
388
+ codeSnippets: {
389
+ code: string;
390
+ language?: string | undefined;
391
+ label?: string | undefined;
392
+ }[];
393
+ }, {
394
+ files?: {
395
+ path: string;
396
+ repo?: string | undefined;
397
+ lineStart?: number | undefined;
398
+ lineEnd?: number | undefined;
399
+ note?: string | undefined;
400
+ }[] | undefined;
401
+ functions?: {
402
+ name: string;
403
+ note?: string | undefined;
404
+ file?: string | undefined;
405
+ signature?: string | undefined;
406
+ }[] | undefined;
407
+ commits?: {
408
+ sha: string;
409
+ message?: string | undefined;
410
+ repo?: string | undefined;
411
+ }[] | undefined;
412
+ pullRequests?: {
413
+ id?: string | undefined;
414
+ url?: string | undefined;
415
+ title?: string | undefined;
416
+ }[] | undefined;
417
+ urls?: {
418
+ url: string;
419
+ title?: string | undefined;
420
+ }[] | undefined;
421
+ codeSnippets?: {
422
+ code: string;
423
+ language?: string | undefined;
424
+ label?: string | undefined;
425
+ }[] | undefined;
426
+ }>>>;
427
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ title: string;
430
+ fromMailbox: string;
431
+ toMailbox: string;
432
+ summary: string;
433
+ body: string;
434
+ tags: string[];
435
+ artifacts: {
436
+ files: {
437
+ path: string;
438
+ repo?: string | undefined;
439
+ lineStart?: number | undefined;
440
+ lineEnd?: number | undefined;
441
+ note?: string | undefined;
442
+ }[];
443
+ functions: {
444
+ name: string;
445
+ note?: string | undefined;
446
+ file?: string | undefined;
447
+ signature?: string | undefined;
448
+ }[];
449
+ commits: {
450
+ sha: string;
451
+ message?: string | undefined;
452
+ repo?: string | undefined;
453
+ }[];
454
+ pullRequests: {
455
+ id?: string | undefined;
456
+ url?: string | undefined;
457
+ title?: string | undefined;
458
+ }[];
459
+ urls: {
460
+ url: string;
461
+ title?: string | undefined;
462
+ }[];
463
+ codeSnippets: {
464
+ code: string;
465
+ language?: string | undefined;
466
+ label?: string | undefined;
467
+ }[];
468
+ };
469
+ payload: Record<string, unknown>;
470
+ }, {
471
+ title: string;
472
+ fromMailbox: string;
473
+ toMailbox: string;
474
+ summary: string;
475
+ body: string;
476
+ tags?: string[] | undefined;
477
+ artifacts?: {
478
+ files?: {
479
+ path: string;
480
+ repo?: string | undefined;
481
+ lineStart?: number | undefined;
482
+ lineEnd?: number | undefined;
483
+ note?: string | undefined;
484
+ }[] | undefined;
485
+ functions?: {
486
+ name: string;
487
+ note?: string | undefined;
488
+ file?: string | undefined;
489
+ signature?: string | undefined;
490
+ }[] | undefined;
491
+ commits?: {
492
+ sha: string;
493
+ message?: string | undefined;
494
+ repo?: string | undefined;
495
+ }[] | undefined;
496
+ pullRequests?: {
497
+ id?: string | undefined;
498
+ url?: string | undefined;
499
+ title?: string | undefined;
500
+ }[] | undefined;
501
+ urls?: {
502
+ url: string;
503
+ title?: string | undefined;
504
+ }[] | undefined;
505
+ codeSnippets?: {
506
+ code: string;
507
+ language?: string | undefined;
508
+ label?: string | undefined;
509
+ }[] | undefined;
510
+ } | undefined;
511
+ payload?: Record<string, unknown> | undefined;
512
+ }>;
513
+ export declare const contextPackageSchema: z.ZodObject<{
514
+ fromMailbox: z.ZodString;
515
+ toMailbox: z.ZodString;
516
+ title: z.ZodString;
517
+ summary: z.ZodString;
518
+ body: z.ZodString;
519
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
520
+ artifacts: z.ZodDefault<z.ZodDefault<z.ZodObject<{
521
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
522
+ path: z.ZodString;
523
+ repo: z.ZodOptional<z.ZodString>;
524
+ lineStart: z.ZodOptional<z.ZodNumber>;
525
+ lineEnd: z.ZodOptional<z.ZodNumber>;
526
+ note: z.ZodOptional<z.ZodString>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ path: string;
529
+ repo?: string | undefined;
530
+ lineStart?: number | undefined;
531
+ lineEnd?: number | undefined;
532
+ note?: string | undefined;
533
+ }, {
534
+ path: string;
535
+ repo?: string | undefined;
536
+ lineStart?: number | undefined;
537
+ lineEnd?: number | undefined;
538
+ note?: string | undefined;
539
+ }>, "many">>;
540
+ functions: z.ZodDefault<z.ZodArray<z.ZodObject<{
541
+ name: z.ZodString;
542
+ file: z.ZodOptional<z.ZodString>;
543
+ signature: z.ZodOptional<z.ZodString>;
544
+ note: z.ZodOptional<z.ZodString>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ name: string;
547
+ note?: string | undefined;
548
+ file?: string | undefined;
549
+ signature?: string | undefined;
550
+ }, {
551
+ name: string;
552
+ note?: string | undefined;
553
+ file?: string | undefined;
554
+ signature?: string | undefined;
555
+ }>, "many">>;
556
+ commits: z.ZodDefault<z.ZodArray<z.ZodObject<{
557
+ sha: z.ZodString;
558
+ repo: z.ZodOptional<z.ZodString>;
559
+ message: z.ZodOptional<z.ZodString>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ sha: string;
562
+ message?: string | undefined;
563
+ repo?: string | undefined;
564
+ }, {
565
+ sha: string;
566
+ message?: string | undefined;
567
+ repo?: string | undefined;
568
+ }>, "many">>;
569
+ pullRequests: z.ZodDefault<z.ZodArray<z.ZodObject<{
570
+ id: z.ZodOptional<z.ZodString>;
571
+ url: z.ZodOptional<z.ZodString>;
572
+ title: z.ZodOptional<z.ZodString>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ id?: string | undefined;
575
+ url?: string | undefined;
576
+ title?: string | undefined;
577
+ }, {
578
+ id?: string | undefined;
579
+ url?: string | undefined;
580
+ title?: string | undefined;
581
+ }>, "many">>;
582
+ urls: z.ZodDefault<z.ZodArray<z.ZodObject<{
583
+ url: z.ZodString;
584
+ title: z.ZodOptional<z.ZodString>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ url: string;
587
+ title?: string | undefined;
588
+ }, {
589
+ url: string;
590
+ title?: string | undefined;
591
+ }>, "many">>;
592
+ codeSnippets: z.ZodDefault<z.ZodArray<z.ZodObject<{
593
+ language: z.ZodOptional<z.ZodString>;
594
+ label: z.ZodOptional<z.ZodString>;
595
+ code: z.ZodString;
596
+ }, "strip", z.ZodTypeAny, {
597
+ code: string;
598
+ language?: string | undefined;
599
+ label?: string | undefined;
600
+ }, {
601
+ code: string;
602
+ language?: string | undefined;
603
+ label?: string | undefined;
604
+ }>, "many">>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ files: {
607
+ path: string;
608
+ repo?: string | undefined;
609
+ lineStart?: number | undefined;
610
+ lineEnd?: number | undefined;
611
+ note?: string | undefined;
612
+ }[];
613
+ functions: {
614
+ name: string;
615
+ note?: string | undefined;
616
+ file?: string | undefined;
617
+ signature?: string | undefined;
618
+ }[];
619
+ commits: {
620
+ sha: string;
621
+ message?: string | undefined;
622
+ repo?: string | undefined;
623
+ }[];
624
+ pullRequests: {
625
+ id?: string | undefined;
626
+ url?: string | undefined;
627
+ title?: string | undefined;
628
+ }[];
629
+ urls: {
630
+ url: string;
631
+ title?: string | undefined;
632
+ }[];
633
+ codeSnippets: {
634
+ code: string;
635
+ language?: string | undefined;
636
+ label?: string | undefined;
637
+ }[];
638
+ }, {
639
+ files?: {
640
+ path: string;
641
+ repo?: string | undefined;
642
+ lineStart?: number | undefined;
643
+ lineEnd?: number | undefined;
644
+ note?: string | undefined;
645
+ }[] | undefined;
646
+ functions?: {
647
+ name: string;
648
+ note?: string | undefined;
649
+ file?: string | undefined;
650
+ signature?: string | undefined;
651
+ }[] | undefined;
652
+ commits?: {
653
+ sha: string;
654
+ message?: string | undefined;
655
+ repo?: string | undefined;
656
+ }[] | undefined;
657
+ pullRequests?: {
658
+ id?: string | undefined;
659
+ url?: string | undefined;
660
+ title?: string | undefined;
661
+ }[] | undefined;
662
+ urls?: {
663
+ url: string;
664
+ title?: string | undefined;
665
+ }[] | undefined;
666
+ codeSnippets?: {
667
+ code: string;
668
+ language?: string | undefined;
669
+ label?: string | undefined;
670
+ }[] | undefined;
671
+ }>>>;
672
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
673
+ } & {
674
+ id: z.ZodString;
675
+ createdAt: z.ZodString;
676
+ readAt: z.ZodNullable<z.ZodString>;
677
+ ack: z.ZodObject<{
678
+ status: z.ZodEnum<["pending", "acknowledged"]>;
679
+ ackAt: z.ZodNullable<z.ZodString>;
680
+ ackBy: z.ZodNullable<z.ZodString>;
681
+ note: z.ZodNullable<z.ZodString>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ status: "pending" | "acknowledged";
684
+ note: string | null;
685
+ ackAt: string | null;
686
+ ackBy: string | null;
687
+ }, {
688
+ status: "pending" | "acknowledged";
689
+ note: string | null;
690
+ ackAt: string | null;
691
+ ackBy: string | null;
692
+ }>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ createdAt: string;
695
+ id: string;
696
+ title: string;
697
+ fromMailbox: string;
698
+ toMailbox: string;
699
+ summary: string;
700
+ body: string;
701
+ tags: string[];
702
+ artifacts: {
703
+ files: {
704
+ path: string;
705
+ repo?: string | undefined;
706
+ lineStart?: number | undefined;
707
+ lineEnd?: number | undefined;
708
+ note?: string | undefined;
709
+ }[];
710
+ functions: {
711
+ name: string;
712
+ note?: string | undefined;
713
+ file?: string | undefined;
714
+ signature?: string | undefined;
715
+ }[];
716
+ commits: {
717
+ sha: string;
718
+ message?: string | undefined;
719
+ repo?: string | undefined;
720
+ }[];
721
+ pullRequests: {
722
+ id?: string | undefined;
723
+ url?: string | undefined;
724
+ title?: string | undefined;
725
+ }[];
726
+ urls: {
727
+ url: string;
728
+ title?: string | undefined;
729
+ }[];
730
+ codeSnippets: {
731
+ code: string;
732
+ language?: string | undefined;
733
+ label?: string | undefined;
734
+ }[];
735
+ };
736
+ payload: Record<string, unknown>;
737
+ readAt: string | null;
738
+ ack: {
739
+ status: "pending" | "acknowledged";
740
+ note: string | null;
741
+ ackAt: string | null;
742
+ ackBy: string | null;
743
+ };
744
+ }, {
745
+ createdAt: string;
746
+ id: string;
747
+ title: string;
748
+ fromMailbox: string;
749
+ toMailbox: string;
750
+ summary: string;
751
+ body: string;
752
+ readAt: string | null;
753
+ ack: {
754
+ status: "pending" | "acknowledged";
755
+ note: string | null;
756
+ ackAt: string | null;
757
+ ackBy: string | null;
758
+ };
759
+ tags?: string[] | undefined;
760
+ artifacts?: {
761
+ files?: {
762
+ path: string;
763
+ repo?: string | undefined;
764
+ lineStart?: number | undefined;
765
+ lineEnd?: number | undefined;
766
+ note?: string | undefined;
767
+ }[] | undefined;
768
+ functions?: {
769
+ name: string;
770
+ note?: string | undefined;
771
+ file?: string | undefined;
772
+ signature?: string | undefined;
773
+ }[] | undefined;
774
+ commits?: {
775
+ sha: string;
776
+ message?: string | undefined;
777
+ repo?: string | undefined;
778
+ }[] | undefined;
779
+ pullRequests?: {
780
+ id?: string | undefined;
781
+ url?: string | undefined;
782
+ title?: string | undefined;
783
+ }[] | undefined;
784
+ urls?: {
785
+ url: string;
786
+ title?: string | undefined;
787
+ }[] | undefined;
788
+ codeSnippets?: {
789
+ code: string;
790
+ language?: string | undefined;
791
+ label?: string | undefined;
792
+ }[] | undefined;
793
+ } | undefined;
794
+ payload?: Record<string, unknown> | undefined;
795
+ }>;
796
+ export declare const contextPackagePreviewSchema: z.ZodObject<{
797
+ id: z.ZodString;
798
+ fromMailbox: z.ZodString;
799
+ toMailbox: z.ZodString;
800
+ title: z.ZodString;
801
+ summary: z.ZodString;
802
+ tags: z.ZodArray<z.ZodString, "many">;
803
+ createdAt: z.ZodString;
804
+ readAt: z.ZodNullable<z.ZodString>;
805
+ ack: z.ZodObject<{
806
+ status: z.ZodEnum<["pending", "acknowledged"]>;
807
+ ackAt: z.ZodNullable<z.ZodString>;
808
+ ackBy: z.ZodNullable<z.ZodString>;
809
+ note: z.ZodNullable<z.ZodString>;
810
+ }, "strip", z.ZodTypeAny, {
811
+ status: "pending" | "acknowledged";
812
+ note: string | null;
813
+ ackAt: string | null;
814
+ ackBy: string | null;
815
+ }, {
816
+ status: "pending" | "acknowledged";
817
+ note: string | null;
818
+ ackAt: string | null;
819
+ ackBy: string | null;
820
+ }>;
821
+ artifactCounts: z.ZodObject<{
822
+ files: z.ZodNumber;
823
+ functions: z.ZodNumber;
824
+ commits: z.ZodNumber;
825
+ pullRequests: z.ZodNumber;
826
+ urls: z.ZodNumber;
827
+ codeSnippets: z.ZodNumber;
828
+ }, "strip", z.ZodTypeAny, {
829
+ files: number;
830
+ functions: number;
831
+ commits: number;
832
+ pullRequests: number;
833
+ urls: number;
834
+ codeSnippets: number;
835
+ }, {
836
+ files: number;
837
+ functions: number;
838
+ commits: number;
839
+ pullRequests: number;
840
+ urls: number;
841
+ codeSnippets: number;
842
+ }>;
843
+ payloadKeys: z.ZodArray<z.ZodString, "many">;
844
+ }, "strip", z.ZodTypeAny, {
845
+ createdAt: string;
846
+ id: string;
847
+ title: string;
848
+ fromMailbox: string;
849
+ toMailbox: string;
850
+ summary: string;
851
+ tags: string[];
852
+ readAt: string | null;
853
+ ack: {
854
+ status: "pending" | "acknowledged";
855
+ note: string | null;
856
+ ackAt: string | null;
857
+ ackBy: string | null;
858
+ };
859
+ artifactCounts: {
860
+ files: number;
861
+ functions: number;
862
+ commits: number;
863
+ pullRequests: number;
864
+ urls: number;
865
+ codeSnippets: number;
866
+ };
867
+ payloadKeys: string[];
868
+ }, {
869
+ createdAt: string;
870
+ id: string;
871
+ title: string;
872
+ fromMailbox: string;
873
+ toMailbox: string;
874
+ summary: string;
875
+ tags: string[];
876
+ readAt: string | null;
877
+ ack: {
878
+ status: "pending" | "acknowledged";
879
+ note: string | null;
880
+ ackAt: string | null;
881
+ ackBy: string | null;
882
+ };
883
+ artifactCounts: {
884
+ files: number;
885
+ functions: number;
886
+ commits: number;
887
+ pullRequests: number;
888
+ urls: number;
889
+ codeSnippets: number;
890
+ };
891
+ payloadKeys: string[];
892
+ }>;
893
+ export declare const DEFAULT_INBOX_PREVIEW_LIMIT = 20;
894
+ export declare const MAX_INBOX_PREVIEW_LIMIT = 50;
895
+ export declare const PREVIEW_TITLE_MAX_LENGTH = 180;
896
+ export declare const PREVIEW_SUMMARY_MAX_LENGTH = 280;
897
+ export declare const PREVIEW_TAG_MAX_COUNT = 5;
898
+ export type MailboxName = z.infer<typeof mailboxNameSchema>;
899
+ export type Mailbox = z.infer<typeof mailboxSchema>;
900
+ export type FileArtifact = z.infer<typeof fileArtifactSchema>;
901
+ export type FunctionArtifact = z.infer<typeof functionArtifactSchema>;
902
+ export type CommitArtifact = z.infer<typeof commitArtifactSchema>;
903
+ export type PullRequestArtifact = z.infer<typeof pullRequestArtifactSchema>;
904
+ export type UrlArtifact = z.infer<typeof urlArtifactSchema>;
905
+ export type CodeSnippetArtifact = z.infer<typeof codeSnippetArtifactSchema>;
906
+ export type Artifacts = z.infer<typeof artifactsSchema>;
907
+ export type AckState = z.infer<typeof ackStateSchema>;
908
+ export type CreateContextPackageInput = z.input<typeof createContextPackageInputSchema>;
909
+ export type NormalizedCreateContextPackageInput = z.output<typeof createContextPackageInputSchema>;
910
+ export type ContextPackage = z.infer<typeof contextPackageSchema>;
911
+ export type ContextPackagePreview = z.infer<typeof contextPackagePreviewSchema>;
912
+ export declare function createContextPackagePreview(contextPackage: ContextPackage): ContextPackagePreview;
913
+ export declare function normalizeInboxPreviewLimit(limit?: number): number;