@crypto512/jicon-mcp 1.2.0 → 2.0.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 (161) hide show
  1. package/README.md +73 -67
  2. package/TOOL_LIST.md +785 -133
  3. package/dist/config/constants.d.ts +18 -7
  4. package/dist/config/constants.d.ts.map +1 -1
  5. package/dist/config/constants.js +21 -8
  6. package/dist/config/constants.js.map +1 -1
  7. package/dist/config/loader.d.ts +11 -11
  8. package/dist/config/loader.d.ts.map +1 -1
  9. package/dist/config/loader.js +53 -93
  10. package/dist/config/loader.js.map +1 -1
  11. package/dist/config/types.d.ts +3 -6
  12. package/dist/config/types.d.ts.map +1 -1
  13. package/dist/config/types.js +2 -4
  14. package/dist/config/types.js.map +1 -1
  15. package/dist/confluence/formatters.js +1 -1
  16. package/dist/confluence/formatters.js.map +1 -1
  17. package/dist/confluence/tools.d.ts +8 -12
  18. package/dist/confluence/tools.d.ts.map +1 -1
  19. package/dist/confluence/tools.js +285 -233
  20. package/dist/confluence/tools.js.map +1 -1
  21. package/dist/index.js +17 -26
  22. package/dist/index.js.map +1 -1
  23. package/dist/jira/formatters.d.ts +1 -0
  24. package/dist/jira/formatters.d.ts.map +1 -1
  25. package/dist/jira/formatters.js +13 -12
  26. package/dist/jira/formatters.js.map +1 -1
  27. package/dist/jira/tools.d.ts +4 -0
  28. package/dist/jira/tools.d.ts.map +1 -1
  29. package/dist/jira/tools.js +234 -44
  30. package/dist/jira/tools.js.map +1 -1
  31. package/dist/permissions/tool-registry.d.ts +2 -2
  32. package/dist/permissions/tool-registry.d.ts.map +1 -1
  33. package/dist/permissions/tool-registry.js +4 -2
  34. package/dist/permissions/tool-registry.js.map +1 -1
  35. package/dist/permissions/write-home-validator.d.ts.map +1 -1
  36. package/dist/permissions/write-home-validator.js +13 -3
  37. package/dist/permissions/write-home-validator.js.map +1 -1
  38. package/dist/tempo/defaults.d.ts +17 -0
  39. package/dist/tempo/defaults.d.ts.map +1 -0
  40. package/dist/tempo/defaults.js +26 -0
  41. package/dist/tempo/defaults.js.map +1 -0
  42. package/dist/tempo/tools.d.ts +5 -0
  43. package/dist/tempo/tools.d.ts.map +1 -1
  44. package/dist/tempo/tools.js +161 -35
  45. package/dist/tempo/tools.js.map +1 -1
  46. package/dist/utils/buffer-pipeline/index.d.ts +30 -0
  47. package/dist/utils/buffer-pipeline/index.d.ts.map +1 -0
  48. package/dist/utils/buffer-pipeline/index.js +317 -0
  49. package/dist/utils/buffer-pipeline/index.js.map +1 -0
  50. package/dist/utils/buffer-pipeline/output/csv.d.ts +20 -0
  51. package/dist/utils/buffer-pipeline/output/csv.d.ts.map +1 -0
  52. package/dist/utils/buffer-pipeline/output/csv.js +117 -0
  53. package/dist/utils/buffer-pipeline/output/csv.js.map +1 -0
  54. package/dist/utils/buffer-pipeline/output/json.d.ts +16 -0
  55. package/dist/utils/buffer-pipeline/output/json.d.ts.map +1 -0
  56. package/dist/utils/buffer-pipeline/output/json.js +48 -0
  57. package/dist/utils/buffer-pipeline/output/json.js.map +1 -0
  58. package/dist/utils/buffer-pipeline/output/markdown.d.ts +15 -0
  59. package/dist/utils/buffer-pipeline/output/markdown.d.ts.map +1 -0
  60. package/dist/utils/buffer-pipeline/output/markdown.js +105 -0
  61. package/dist/utils/buffer-pipeline/output/markdown.js.map +1 -0
  62. package/dist/utils/buffer-pipeline/output/xhtml-list.d.ts +16 -0
  63. package/dist/utils/buffer-pipeline/output/xhtml-list.d.ts.map +1 -0
  64. package/dist/utils/buffer-pipeline/output/xhtml-list.js +81 -0
  65. package/dist/utils/buffer-pipeline/output/xhtml-list.js.map +1 -0
  66. package/dist/utils/buffer-pipeline/output/xhtml-table.d.ts +15 -0
  67. package/dist/utils/buffer-pipeline/output/xhtml-table.d.ts.map +1 -0
  68. package/dist/utils/buffer-pipeline/output/xhtml-table.js +176 -0
  69. package/dist/utils/buffer-pipeline/output/xhtml-table.js.map +1 -0
  70. package/dist/utils/buffer-pipeline/schema.d.ts +1878 -0
  71. package/dist/utils/buffer-pipeline/schema.d.ts.map +1 -0
  72. package/dist/utils/buffer-pipeline/schema.js +168 -0
  73. package/dist/utils/buffer-pipeline/schema.js.map +1 -0
  74. package/dist/utils/buffer-pipeline/stages/filter.d.ts +32 -0
  75. package/dist/utils/buffer-pipeline/stages/filter.d.ts.map +1 -0
  76. package/dist/utils/buffer-pipeline/stages/filter.js +208 -0
  77. package/dist/utils/buffer-pipeline/stages/filter.js.map +1 -0
  78. package/dist/utils/buffer-pipeline/stages/format.d.ts +45 -0
  79. package/dist/utils/buffer-pipeline/stages/format.d.ts.map +1 -0
  80. package/dist/utils/buffer-pipeline/stages/format.js +160 -0
  81. package/dist/utils/buffer-pipeline/stages/format.js.map +1 -0
  82. package/dist/utils/buffer-pipeline/stages/group-by.d.ts +25 -0
  83. package/dist/utils/buffer-pipeline/stages/group-by.d.ts.map +1 -0
  84. package/dist/utils/buffer-pipeline/stages/group-by.js +190 -0
  85. package/dist/utils/buffer-pipeline/stages/group-by.js.map +1 -0
  86. package/dist/utils/buffer-pipeline/stages/select.d.ts +54 -0
  87. package/dist/utils/buffer-pipeline/stages/select.d.ts.map +1 -0
  88. package/dist/utils/buffer-pipeline/stages/select.js +228 -0
  89. package/dist/utils/buffer-pipeline/stages/select.js.map +1 -0
  90. package/dist/utils/buffer-pipeline/stages/sort.d.ts +20 -0
  91. package/dist/utils/buffer-pipeline/stages/sort.d.ts.map +1 -0
  92. package/dist/utils/buffer-pipeline/stages/sort.js +96 -0
  93. package/dist/utils/buffer-pipeline/stages/sort.js.map +1 -0
  94. package/dist/utils/buffer-pipeline/types.d.ts +277 -0
  95. package/dist/utils/buffer-pipeline/types.d.ts.map +1 -0
  96. package/dist/utils/buffer-pipeline/types.js +8 -0
  97. package/dist/utils/buffer-pipeline/types.js.map +1 -0
  98. package/dist/utils/buffer-tools.d.ts +749 -19
  99. package/dist/utils/buffer-tools.d.ts.map +1 -1
  100. package/dist/utils/buffer-tools.js +738 -491
  101. package/dist/utils/buffer-tools.js.map +1 -1
  102. package/dist/utils/content-buffer.d.ts +55 -4
  103. package/dist/utils/content-buffer.d.ts.map +1 -1
  104. package/dist/utils/content-buffer.js +107 -9
  105. package/dist/utils/content-buffer.js.map +1 -1
  106. package/dist/utils/jicon-help.d.ts +1 -1
  107. package/dist/utils/jicon-help.d.ts.map +1 -1
  108. package/dist/utils/jicon-help.js +345 -99
  109. package/dist/utils/jicon-help.js.map +1 -1
  110. package/dist/utils/json-structure.d.ts +121 -0
  111. package/dist/utils/json-structure.d.ts.map +1 -0
  112. package/dist/utils/json-structure.js +637 -0
  113. package/dist/utils/json-structure.js.map +1 -0
  114. package/dist/utils/plantuml/include-expander.d.ts +31 -30
  115. package/dist/utils/plantuml/include-expander.d.ts.map +1 -1
  116. package/dist/utils/plantuml/include-expander.js +167 -133
  117. package/dist/utils/plantuml/include-expander.js.map +1 -1
  118. package/dist/utils/plantuml/index.d.ts +3 -3
  119. package/dist/utils/plantuml/index.d.ts.map +1 -1
  120. package/dist/utils/plantuml/index.js +4 -4
  121. package/dist/utils/plantuml/index.js.map +1 -1
  122. package/dist/utils/plantuml/service.d.ts +13 -24
  123. package/dist/utils/plantuml/service.d.ts.map +1 -1
  124. package/dist/utils/plantuml/service.js +49 -99
  125. package/dist/utils/plantuml/service.js.map +1 -1
  126. package/dist/utils/plantuml/tools.d.ts.map +1 -1
  127. package/dist/utils/plantuml/tools.js +33 -72
  128. package/dist/utils/plantuml/tools.js.map +1 -1
  129. package/dist/utils/plantuml/types.d.ts +1 -35
  130. package/dist/utils/plantuml/types.d.ts.map +1 -1
  131. package/dist/utils/plantuml/types.js +1 -11
  132. package/dist/utils/plantuml/types.js.map +1 -1
  133. package/dist/utils/plantuml/validation-helper.d.ts +1 -1
  134. package/dist/utils/plantuml/validation-helper.js +12 -12
  135. package/dist/utils/plantuml/validation-helper.js.map +1 -1
  136. package/dist/utils/response-formatter.d.ts +68 -0
  137. package/dist/utils/response-formatter.d.ts.map +1 -1
  138. package/dist/utils/response-formatter.js +186 -78
  139. package/dist/utils/response-formatter.js.map +1 -1
  140. package/dist/utils/url-tools.d.ts.map +1 -1
  141. package/dist/utils/url-tools.js +22 -0
  142. package/dist/utils/url-tools.js.map +1 -1
  143. package/dist/utils/xhtml/error-locator.js +2 -2
  144. package/dist/utils/xhtml/error-locator.js.map +1 -1
  145. package/dist/utils/xhtml/index.d.ts +1 -1
  146. package/dist/utils/xhtml/index.d.ts.map +1 -1
  147. package/dist/utils/xhtml/index.js +1 -1
  148. package/dist/utils/xhtml/index.js.map +1 -1
  149. package/dist/utils/xhtml/parser.d.ts +34 -5
  150. package/dist/utils/xhtml/parser.d.ts.map +1 -1
  151. package/dist/utils/xhtml/parser.js +66 -11
  152. package/dist/utils/xhtml/parser.js.map +1 -1
  153. package/dist/utils/xhtml/plantuml.d.ts.map +1 -1
  154. package/dist/utils/xhtml/plantuml.js +5 -3
  155. package/dist/utils/xhtml/plantuml.js.map +1 -1
  156. package/dist/utils/xhtml/serializer.d.ts.map +1 -1
  157. package/dist/utils/xhtml/serializer.js +12 -15
  158. package/dist/utils/xhtml/serializer.js.map +1 -1
  159. package/dist/utils/xhtml/types.d.ts +1 -0
  160. package/dist/utils/xhtml/types.d.ts.map +1 -1
  161. package/package.json +12 -4
@@ -2,29 +2,29 @@
2
2
  * Buffer management tools for MCP Server
3
3
  *
4
4
  * Provides tools to retrieve chunks from buffered content,
5
- * list active buffers, clear buffers, search content, edit content,
6
- * and save content to files.
5
+ * list active buffers, clear buffers, search content, and edit content.
7
6
  */
8
7
  import { z } from "zod";
9
8
  import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
9
+ import { type PipelineDefinition } from "./buffer-pipeline/index.js";
10
10
  export declare function createBufferTools(): {
11
11
  buffer_create: {
12
12
  description: string;
13
13
  inputSchema: z.ZodObject<{
14
- content: z.ZodString;
14
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
15
15
  contentType: z.ZodEnum<["xhtml", "plain", "json"]>;
16
16
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- content: string;
18
+ content: string | Record<string, unknown> | unknown[];
19
19
  contentType: "json" | "xhtml" | "plain";
20
20
  metadata?: Record<string, unknown> | undefined;
21
21
  }, {
22
- content: string;
22
+ content: string | Record<string, unknown> | unknown[];
23
23
  contentType: "json" | "xhtml" | "plain";
24
24
  metadata?: Record<string, unknown> | undefined;
25
25
  }>;
26
26
  handler: (args: {
27
- content: string;
27
+ content: string | unknown[] | Record<string, unknown>;
28
28
  contentType: "xhtml" | "plain" | "json";
29
29
  metadata?: Record<string, unknown>;
30
30
  }) => Promise<CallToolResult>;
@@ -50,6 +50,27 @@ export declare function createBufferTools(): {
50
50
  limit?: number;
51
51
  }) => Promise<CallToolResult>;
52
52
  };
53
+ buffer_get_items: {
54
+ description: string;
55
+ inputSchema: z.ZodObject<{
56
+ bufferId: z.ZodString;
57
+ start: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
58
+ count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ bufferId: string;
61
+ count: number;
62
+ start: number;
63
+ }, {
64
+ bufferId: string;
65
+ count?: number | undefined;
66
+ start?: number | undefined;
67
+ }>;
68
+ handler: (args: {
69
+ bufferId: string;
70
+ start?: number;
71
+ count?: number;
72
+ }) => Promise<CallToolResult>;
73
+ };
53
74
  buffer_list: {
54
75
  description: string;
55
76
  inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -283,25 +304,734 @@ export declare function createBufferTools(): {
283
304
  validatePlantUml?: boolean;
284
305
  }) => Promise<CallToolResult>;
285
306
  };
286
- buffer_save_to_file: {
307
+ buffer_pipeline: {
287
308
  description: string;
288
309
  inputSchema: z.ZodObject<{
289
- bufferId: z.ZodString;
290
- outputPath: z.ZodString;
291
- decodeBase64: z.ZodOptional<z.ZodBoolean>;
310
+ sourceBufferId: z.ZodString;
311
+ pipeline: z.ZodObject<{
312
+ select: z.ZodOptional<z.ZodObject<{
313
+ fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
314
+ from: z.ZodOptional<z.ZodString>;
315
+ field: z.ZodOptional<z.ZodString>;
316
+ as: z.ZodOptional<z.ZodString>;
317
+ transform: z.ZodOptional<z.ZodEnum<["uppercase", "lowercase", "date", "number", "boolean", "string"]>>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ field?: string | undefined;
320
+ transform?: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
321
+ from?: string | undefined;
322
+ as?: string | undefined;
323
+ }, {
324
+ field?: string | undefined;
325
+ transform?: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
326
+ from?: string | undefined;
327
+ as?: string | undefined;
328
+ }>, {
329
+ field?: string | undefined;
330
+ transform?: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
331
+ from?: string | undefined;
332
+ as?: string | undefined;
333
+ }, {
334
+ field?: string | undefined;
335
+ transform?: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
336
+ from?: string | undefined;
337
+ as?: string | undefined;
338
+ }>, {
339
+ from: string;
340
+ as: string | undefined;
341
+ transform: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
342
+ }, {
343
+ field?: string | undefined;
344
+ transform?: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
345
+ from?: string | undefined;
346
+ as?: string | undefined;
347
+ }>, "many">;
348
+ }, "strip", z.ZodTypeAny, {
349
+ fields: {
350
+ from: string;
351
+ as: string | undefined;
352
+ transform: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
353
+ }[];
354
+ }, {
355
+ fields: {
356
+ field?: string | undefined;
357
+ transform?: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
358
+ from?: string | undefined;
359
+ as?: string | undefined;
360
+ }[];
361
+ }>>;
362
+ filter: z.ZodOptional<z.ZodArray<z.ZodType<{
363
+ field: string;
364
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
365
+ value?: unknown;
366
+ or?: Array<{
367
+ field: string;
368
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
369
+ value?: unknown;
370
+ or?: unknown[];
371
+ }>;
372
+ }, z.ZodTypeDef, {
373
+ field: string;
374
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
375
+ value?: unknown;
376
+ or?: Array<{
377
+ field: string;
378
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
379
+ value?: unknown;
380
+ or?: unknown[];
381
+ }>;
382
+ }>, "many">>;
383
+ groupBy: z.ZodOptional<z.ZodObject<{
384
+ field: z.ZodString;
385
+ aggregations: z.ZodArray<z.ZodObject<{
386
+ function: z.ZodEnum<["count", "sum", "avg", "min", "max", "first", "last", "list", "unique"]>;
387
+ field: z.ZodOptional<z.ZodString>;
388
+ as: z.ZodString;
389
+ }, "strip", z.ZodTypeAny, {
390
+ function: "count" | "sum" | "avg" | "min" | "max" | "first" | "last" | "list" | "unique";
391
+ as: string;
392
+ field?: string | undefined;
393
+ }, {
394
+ function: "count" | "sum" | "avg" | "min" | "max" | "first" | "last" | "list" | "unique";
395
+ as: string;
396
+ field?: string | undefined;
397
+ }>, "many">;
398
+ }, "strip", z.ZodTypeAny, {
399
+ field: string;
400
+ aggregations: {
401
+ function: "count" | "sum" | "avg" | "min" | "max" | "first" | "last" | "list" | "unique";
402
+ as: string;
403
+ field?: string | undefined;
404
+ }[];
405
+ }, {
406
+ field: string;
407
+ aggregations: {
408
+ function: "count" | "sum" | "avg" | "min" | "max" | "first" | "last" | "list" | "unique";
409
+ as: string;
410
+ field?: string | undefined;
411
+ }[];
412
+ }>>;
413
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
+ field: z.ZodString;
415
+ direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ field: string;
418
+ direction: "desc" | "asc";
419
+ }, {
420
+ field: string;
421
+ direction?: "desc" | "asc" | undefined;
422
+ }>, "many">>;
423
+ limit: z.ZodOptional<z.ZodNumber>;
424
+ format: z.ZodOptional<z.ZodArray<z.ZodObject<{
425
+ condition: z.ZodType<{
426
+ field: string;
427
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
428
+ value?: unknown;
429
+ or?: Array<{
430
+ field: string;
431
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
432
+ value?: unknown;
433
+ or?: unknown[];
434
+ }>;
435
+ }, z.ZodTypeDef, {
436
+ field: string;
437
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
438
+ value?: unknown;
439
+ or?: Array<{
440
+ field: string;
441
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
442
+ value?: unknown;
443
+ or?: unknown[];
444
+ }>;
445
+ }>;
446
+ style: z.ZodObject<{
447
+ cssClass: z.ZodOptional<z.ZodString>;
448
+ prefix: z.ZodOptional<z.ZodString>;
449
+ suffix: z.ZodOptional<z.ZodString>;
450
+ color: z.ZodOptional<z.ZodString>;
451
+ backgroundColor: z.ZodOptional<z.ZodString>;
452
+ bold: z.ZodOptional<z.ZodBoolean>;
453
+ italic: z.ZodOptional<z.ZodBoolean>;
454
+ icon: z.ZodOptional<z.ZodString>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ cssClass?: string | undefined;
457
+ prefix?: string | undefined;
458
+ suffix?: string | undefined;
459
+ color?: string | undefined;
460
+ backgroundColor?: string | undefined;
461
+ bold?: boolean | undefined;
462
+ italic?: boolean | undefined;
463
+ icon?: string | undefined;
464
+ }, {
465
+ cssClass?: string | undefined;
466
+ prefix?: string | undefined;
467
+ suffix?: string | undefined;
468
+ color?: string | undefined;
469
+ backgroundColor?: string | undefined;
470
+ bold?: boolean | undefined;
471
+ italic?: boolean | undefined;
472
+ icon?: string | undefined;
473
+ }>;
474
+ fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ condition: {
477
+ field: string;
478
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
479
+ value?: unknown;
480
+ or?: Array<{
481
+ field: string;
482
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
483
+ value?: unknown;
484
+ or?: unknown[];
485
+ }>;
486
+ };
487
+ style: {
488
+ cssClass?: string | undefined;
489
+ prefix?: string | undefined;
490
+ suffix?: string | undefined;
491
+ color?: string | undefined;
492
+ backgroundColor?: string | undefined;
493
+ bold?: boolean | undefined;
494
+ italic?: boolean | undefined;
495
+ icon?: string | undefined;
496
+ };
497
+ fields?: string[] | undefined;
498
+ }, {
499
+ condition: {
500
+ field: string;
501
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
502
+ value?: unknown;
503
+ or?: Array<{
504
+ field: string;
505
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
506
+ value?: unknown;
507
+ or?: unknown[];
508
+ }>;
509
+ };
510
+ style: {
511
+ cssClass?: string | undefined;
512
+ prefix?: string | undefined;
513
+ suffix?: string | undefined;
514
+ color?: string | undefined;
515
+ backgroundColor?: string | undefined;
516
+ bold?: boolean | undefined;
517
+ italic?: boolean | undefined;
518
+ icon?: string | undefined;
519
+ };
520
+ fields?: string[] | undefined;
521
+ }>, "many">>;
522
+ output: z.ZodEffects<z.ZodObject<{
523
+ type: z.ZodEnum<["xhtml_table", "xhtml_list", "json", "csv", "markdown"]>;
524
+ table: z.ZodOptional<z.ZodObject<{
525
+ title: z.ZodOptional<z.ZodString>;
526
+ columns: z.ZodArray<z.ZodObject<{
527
+ field: z.ZodString;
528
+ header: z.ZodString;
529
+ link: z.ZodOptional<z.ZodObject<{
530
+ type: z.ZodEnum<["jira", "confluence", "tempo", "custom"]>;
531
+ template: z.ZodOptional<z.ZodString>;
532
+ }, "strip", z.ZodTypeAny, {
533
+ type: "jira" | "confluence" | "tempo" | "custom";
534
+ template?: string | undefined;
535
+ }, {
536
+ type: "jira" | "confluence" | "tempo" | "custom";
537
+ template?: string | undefined;
538
+ }>>;
539
+ width: z.ZodOptional<z.ZodString>;
540
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ field: string;
543
+ header: string;
544
+ link?: {
545
+ type: "jira" | "confluence" | "tempo" | "custom";
546
+ template?: string | undefined;
547
+ } | undefined;
548
+ width?: string | undefined;
549
+ align?: "left" | "center" | "right" | undefined;
550
+ }, {
551
+ field: string;
552
+ header: string;
553
+ link?: {
554
+ type: "jira" | "confluence" | "tempo" | "custom";
555
+ template?: string | undefined;
556
+ } | undefined;
557
+ width?: string | undefined;
558
+ align?: "left" | "center" | "right" | undefined;
559
+ }>, "many">;
560
+ showRowNumbers: z.ZodOptional<z.ZodBoolean>;
561
+ tableClass: z.ZodOptional<z.ZodString>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ columns: {
564
+ field: string;
565
+ header: string;
566
+ link?: {
567
+ type: "jira" | "confluence" | "tempo" | "custom";
568
+ template?: string | undefined;
569
+ } | undefined;
570
+ width?: string | undefined;
571
+ align?: "left" | "center" | "right" | undefined;
572
+ }[];
573
+ title?: string | undefined;
574
+ showRowNumbers?: boolean | undefined;
575
+ tableClass?: string | undefined;
576
+ }, {
577
+ columns: {
578
+ field: string;
579
+ header: string;
580
+ link?: {
581
+ type: "jira" | "confluence" | "tempo" | "custom";
582
+ template?: string | undefined;
583
+ } | undefined;
584
+ width?: string | undefined;
585
+ align?: "left" | "center" | "right" | undefined;
586
+ }[];
587
+ title?: string | undefined;
588
+ showRowNumbers?: boolean | undefined;
589
+ tableClass?: string | undefined;
590
+ }>>;
591
+ list: z.ZodOptional<z.ZodObject<{
592
+ title: z.ZodOptional<z.ZodString>;
593
+ template: z.ZodString;
594
+ style: z.ZodOptional<z.ZodEnum<["bullet", "numbered", "none"]>>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ template: string;
597
+ title?: string | undefined;
598
+ style?: "bullet" | "numbered" | "none" | undefined;
599
+ }, {
600
+ template: string;
601
+ title?: string | undefined;
602
+ style?: "bullet" | "numbered" | "none" | undefined;
603
+ }>>;
604
+ includeMetadata: z.ZodOptional<z.ZodBoolean>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ type: "json" | "xhtml_table" | "xhtml_list" | "csv" | "markdown";
607
+ table?: {
608
+ columns: {
609
+ field: string;
610
+ header: string;
611
+ link?: {
612
+ type: "jira" | "confluence" | "tempo" | "custom";
613
+ template?: string | undefined;
614
+ } | undefined;
615
+ width?: string | undefined;
616
+ align?: "left" | "center" | "right" | undefined;
617
+ }[];
618
+ title?: string | undefined;
619
+ showRowNumbers?: boolean | undefined;
620
+ tableClass?: string | undefined;
621
+ } | undefined;
622
+ list?: {
623
+ template: string;
624
+ title?: string | undefined;
625
+ style?: "bullet" | "numbered" | "none" | undefined;
626
+ } | undefined;
627
+ includeMetadata?: boolean | undefined;
628
+ }, {
629
+ type: "json" | "xhtml_table" | "xhtml_list" | "csv" | "markdown";
630
+ table?: {
631
+ columns: {
632
+ field: string;
633
+ header: string;
634
+ link?: {
635
+ type: "jira" | "confluence" | "tempo" | "custom";
636
+ template?: string | undefined;
637
+ } | undefined;
638
+ width?: string | undefined;
639
+ align?: "left" | "center" | "right" | undefined;
640
+ }[];
641
+ title?: string | undefined;
642
+ showRowNumbers?: boolean | undefined;
643
+ tableClass?: string | undefined;
644
+ } | undefined;
645
+ list?: {
646
+ template: string;
647
+ title?: string | undefined;
648
+ style?: "bullet" | "numbered" | "none" | undefined;
649
+ } | undefined;
650
+ includeMetadata?: boolean | undefined;
651
+ }>, {
652
+ type: "json" | "xhtml_table" | "xhtml_list" | "csv" | "markdown";
653
+ table?: {
654
+ columns: {
655
+ field: string;
656
+ header: string;
657
+ link?: {
658
+ type: "jira" | "confluence" | "tempo" | "custom";
659
+ template?: string | undefined;
660
+ } | undefined;
661
+ width?: string | undefined;
662
+ align?: "left" | "center" | "right" | undefined;
663
+ }[];
664
+ title?: string | undefined;
665
+ showRowNumbers?: boolean | undefined;
666
+ tableClass?: string | undefined;
667
+ } | undefined;
668
+ list?: {
669
+ template: string;
670
+ title?: string | undefined;
671
+ style?: "bullet" | "numbered" | "none" | undefined;
672
+ } | undefined;
673
+ includeMetadata?: boolean | undefined;
674
+ }, {
675
+ type: "json" | "xhtml_table" | "xhtml_list" | "csv" | "markdown";
676
+ table?: {
677
+ columns: {
678
+ field: string;
679
+ header: string;
680
+ link?: {
681
+ type: "jira" | "confluence" | "tempo" | "custom";
682
+ template?: string | undefined;
683
+ } | undefined;
684
+ width?: string | undefined;
685
+ align?: "left" | "center" | "right" | undefined;
686
+ }[];
687
+ title?: string | undefined;
688
+ showRowNumbers?: boolean | undefined;
689
+ tableClass?: string | undefined;
690
+ } | undefined;
691
+ list?: {
692
+ template: string;
693
+ title?: string | undefined;
694
+ style?: "bullet" | "numbered" | "none" | undefined;
695
+ } | undefined;
696
+ includeMetadata?: boolean | undefined;
697
+ }>;
698
+ }, "strict", z.ZodTypeAny, {
699
+ output: {
700
+ type: "json" | "xhtml_table" | "xhtml_list" | "csv" | "markdown";
701
+ table?: {
702
+ columns: {
703
+ field: string;
704
+ header: string;
705
+ link?: {
706
+ type: "jira" | "confluence" | "tempo" | "custom";
707
+ template?: string | undefined;
708
+ } | undefined;
709
+ width?: string | undefined;
710
+ align?: "left" | "center" | "right" | undefined;
711
+ }[];
712
+ title?: string | undefined;
713
+ showRowNumbers?: boolean | undefined;
714
+ tableClass?: string | undefined;
715
+ } | undefined;
716
+ list?: {
717
+ template: string;
718
+ title?: string | undefined;
719
+ style?: "bullet" | "numbered" | "none" | undefined;
720
+ } | undefined;
721
+ includeMetadata?: boolean | undefined;
722
+ };
723
+ sort?: {
724
+ field: string;
725
+ direction: "desc" | "asc";
726
+ }[] | undefined;
727
+ filter?: {
728
+ field: string;
729
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
730
+ value?: unknown;
731
+ or?: Array<{
732
+ field: string;
733
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
734
+ value?: unknown;
735
+ or?: unknown[];
736
+ }>;
737
+ }[] | undefined;
738
+ format?: {
739
+ condition: {
740
+ field: string;
741
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
742
+ value?: unknown;
743
+ or?: Array<{
744
+ field: string;
745
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
746
+ value?: unknown;
747
+ or?: unknown[];
748
+ }>;
749
+ };
750
+ style: {
751
+ cssClass?: string | undefined;
752
+ prefix?: string | undefined;
753
+ suffix?: string | undefined;
754
+ color?: string | undefined;
755
+ backgroundColor?: string | undefined;
756
+ bold?: boolean | undefined;
757
+ italic?: boolean | undefined;
758
+ icon?: string | undefined;
759
+ };
760
+ fields?: string[] | undefined;
761
+ }[] | undefined;
762
+ limit?: number | undefined;
763
+ select?: {
764
+ fields: {
765
+ from: string;
766
+ as: string | undefined;
767
+ transform: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
768
+ }[];
769
+ } | undefined;
770
+ groupBy?: {
771
+ field: string;
772
+ aggregations: {
773
+ function: "count" | "sum" | "avg" | "min" | "max" | "first" | "last" | "list" | "unique";
774
+ as: string;
775
+ field?: string | undefined;
776
+ }[];
777
+ } | undefined;
778
+ }, {
779
+ output: {
780
+ type: "json" | "xhtml_table" | "xhtml_list" | "csv" | "markdown";
781
+ table?: {
782
+ columns: {
783
+ field: string;
784
+ header: string;
785
+ link?: {
786
+ type: "jira" | "confluence" | "tempo" | "custom";
787
+ template?: string | undefined;
788
+ } | undefined;
789
+ width?: string | undefined;
790
+ align?: "left" | "center" | "right" | undefined;
791
+ }[];
792
+ title?: string | undefined;
793
+ showRowNumbers?: boolean | undefined;
794
+ tableClass?: string | undefined;
795
+ } | undefined;
796
+ list?: {
797
+ template: string;
798
+ title?: string | undefined;
799
+ style?: "bullet" | "numbered" | "none" | undefined;
800
+ } | undefined;
801
+ includeMetadata?: boolean | undefined;
802
+ };
803
+ sort?: {
804
+ field: string;
805
+ direction?: "desc" | "asc" | undefined;
806
+ }[] | undefined;
807
+ filter?: {
808
+ field: string;
809
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
810
+ value?: unknown;
811
+ or?: Array<{
812
+ field: string;
813
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
814
+ value?: unknown;
815
+ or?: unknown[];
816
+ }>;
817
+ }[] | undefined;
818
+ format?: {
819
+ condition: {
820
+ field: string;
821
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
822
+ value?: unknown;
823
+ or?: Array<{
824
+ field: string;
825
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
826
+ value?: unknown;
827
+ or?: unknown[];
828
+ }>;
829
+ };
830
+ style: {
831
+ cssClass?: string | undefined;
832
+ prefix?: string | undefined;
833
+ suffix?: string | undefined;
834
+ color?: string | undefined;
835
+ backgroundColor?: string | undefined;
836
+ bold?: boolean | undefined;
837
+ italic?: boolean | undefined;
838
+ icon?: string | undefined;
839
+ };
840
+ fields?: string[] | undefined;
841
+ }[] | undefined;
842
+ limit?: number | undefined;
843
+ select?: {
844
+ fields: {
845
+ field?: string | undefined;
846
+ transform?: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
847
+ from?: string | undefined;
848
+ as?: string | undefined;
849
+ }[];
850
+ } | undefined;
851
+ groupBy?: {
852
+ field: string;
853
+ aggregations: {
854
+ function: "count" | "sum" | "avg" | "min" | "max" | "first" | "last" | "list" | "unique";
855
+ as: string;
856
+ field?: string | undefined;
857
+ }[];
858
+ } | undefined;
859
+ }>;
860
+ dryRun: z.ZodOptional<z.ZodBoolean>;
292
861
  }, "strip", z.ZodTypeAny, {
293
- bufferId: string;
294
- outputPath: string;
295
- decodeBase64?: boolean | undefined;
862
+ sourceBufferId: string;
863
+ pipeline: {
864
+ output: {
865
+ type: "json" | "xhtml_table" | "xhtml_list" | "csv" | "markdown";
866
+ table?: {
867
+ columns: {
868
+ field: string;
869
+ header: string;
870
+ link?: {
871
+ type: "jira" | "confluence" | "tempo" | "custom";
872
+ template?: string | undefined;
873
+ } | undefined;
874
+ width?: string | undefined;
875
+ align?: "left" | "center" | "right" | undefined;
876
+ }[];
877
+ title?: string | undefined;
878
+ showRowNumbers?: boolean | undefined;
879
+ tableClass?: string | undefined;
880
+ } | undefined;
881
+ list?: {
882
+ template: string;
883
+ title?: string | undefined;
884
+ style?: "bullet" | "numbered" | "none" | undefined;
885
+ } | undefined;
886
+ includeMetadata?: boolean | undefined;
887
+ };
888
+ sort?: {
889
+ field: string;
890
+ direction: "desc" | "asc";
891
+ }[] | undefined;
892
+ filter?: {
893
+ field: string;
894
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
895
+ value?: unknown;
896
+ or?: Array<{
897
+ field: string;
898
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
899
+ value?: unknown;
900
+ or?: unknown[];
901
+ }>;
902
+ }[] | undefined;
903
+ format?: {
904
+ condition: {
905
+ field: string;
906
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
907
+ value?: unknown;
908
+ or?: Array<{
909
+ field: string;
910
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
911
+ value?: unknown;
912
+ or?: unknown[];
913
+ }>;
914
+ };
915
+ style: {
916
+ cssClass?: string | undefined;
917
+ prefix?: string | undefined;
918
+ suffix?: string | undefined;
919
+ color?: string | undefined;
920
+ backgroundColor?: string | undefined;
921
+ bold?: boolean | undefined;
922
+ italic?: boolean | undefined;
923
+ icon?: string | undefined;
924
+ };
925
+ fields?: string[] | undefined;
926
+ }[] | undefined;
927
+ limit?: number | undefined;
928
+ select?: {
929
+ fields: {
930
+ from: string;
931
+ as: string | undefined;
932
+ transform: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
933
+ }[];
934
+ } | undefined;
935
+ groupBy?: {
936
+ field: string;
937
+ aggregations: {
938
+ function: "count" | "sum" | "avg" | "min" | "max" | "first" | "last" | "list" | "unique";
939
+ as: string;
940
+ field?: string | undefined;
941
+ }[];
942
+ } | undefined;
943
+ };
944
+ dryRun?: boolean | undefined;
296
945
  }, {
297
- bufferId: string;
298
- outputPath: string;
299
- decodeBase64?: boolean | undefined;
946
+ sourceBufferId: string;
947
+ pipeline: {
948
+ output: {
949
+ type: "json" | "xhtml_table" | "xhtml_list" | "csv" | "markdown";
950
+ table?: {
951
+ columns: {
952
+ field: string;
953
+ header: string;
954
+ link?: {
955
+ type: "jira" | "confluence" | "tempo" | "custom";
956
+ template?: string | undefined;
957
+ } | undefined;
958
+ width?: string | undefined;
959
+ align?: "left" | "center" | "right" | undefined;
960
+ }[];
961
+ title?: string | undefined;
962
+ showRowNumbers?: boolean | undefined;
963
+ tableClass?: string | undefined;
964
+ } | undefined;
965
+ list?: {
966
+ template: string;
967
+ title?: string | undefined;
968
+ style?: "bullet" | "numbered" | "none" | undefined;
969
+ } | undefined;
970
+ includeMetadata?: boolean | undefined;
971
+ };
972
+ sort?: {
973
+ field: string;
974
+ direction?: "desc" | "asc" | undefined;
975
+ }[] | undefined;
976
+ filter?: {
977
+ field: string;
978
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
979
+ value?: unknown;
980
+ or?: Array<{
981
+ field: string;
982
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
983
+ value?: unknown;
984
+ or?: unknown[];
985
+ }>;
986
+ }[] | undefined;
987
+ format?: {
988
+ condition: {
989
+ field: string;
990
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
991
+ value?: unknown;
992
+ or?: Array<{
993
+ field: string;
994
+ operator: z.infer<typeof import("./buffer-pipeline/schema.js").FilterOperatorSchema>;
995
+ value?: unknown;
996
+ or?: unknown[];
997
+ }>;
998
+ };
999
+ style: {
1000
+ cssClass?: string | undefined;
1001
+ prefix?: string | undefined;
1002
+ suffix?: string | undefined;
1003
+ color?: string | undefined;
1004
+ backgroundColor?: string | undefined;
1005
+ bold?: boolean | undefined;
1006
+ italic?: boolean | undefined;
1007
+ icon?: string | undefined;
1008
+ };
1009
+ fields?: string[] | undefined;
1010
+ }[] | undefined;
1011
+ limit?: number | undefined;
1012
+ select?: {
1013
+ fields: {
1014
+ field?: string | undefined;
1015
+ transform?: "string" | "number" | "boolean" | "date" | "uppercase" | "lowercase" | undefined;
1016
+ from?: string | undefined;
1017
+ as?: string | undefined;
1018
+ }[];
1019
+ } | undefined;
1020
+ groupBy?: {
1021
+ field: string;
1022
+ aggregations: {
1023
+ function: "count" | "sum" | "avg" | "min" | "max" | "first" | "last" | "list" | "unique";
1024
+ as: string;
1025
+ field?: string | undefined;
1026
+ }[];
1027
+ } | undefined;
1028
+ };
1029
+ dryRun?: boolean | undefined;
300
1030
  }>;
301
1031
  handler: (args: {
302
- bufferId: string;
303
- outputPath: string;
304
- decodeBase64?: boolean;
1032
+ sourceBufferId: string;
1033
+ pipeline: PipelineDefinition;
1034
+ dryRun?: boolean;
305
1035
  }) => Promise<CallToolResult>;
306
1036
  };
307
1037
  };