@powerhousedao/reactor-mcp 5.0.12 → 5.1.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { type IDocumentDriveServer } from "document-drive";
1
+ import type { IDocumentDriveServer } from "document-drive";
2
2
  import type { DocumentModelGlobalState } from "document-model";
3
3
  import { z } from "zod";
4
4
  import type { ToolSchema, ToolWithCallback } from "./types.js";
@@ -20,50 +20,7 @@ export declare const getDocumentTool: {
20
20
  readonly id: z.ZodString;
21
21
  };
22
22
  readonly outputSchema: {
23
- readonly document: z.ZodObject<{
24
- header: z.ZodObject<{
25
- id: z.ZodString;
26
- name: z.ZodString;
27
- createdAtUtcIso: z.ZodString;
28
- lastModifiedAtUtcIso: z.ZodString;
29
- documentType: z.ZodString;
30
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
31
- id: z.ZodString;
32
- name: z.ZodString;
33
- createdAtUtcIso: z.ZodString;
34
- lastModifiedAtUtcIso: z.ZodString;
35
- documentType: z.ZodString;
36
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
37
- id: z.ZodString;
38
- name: z.ZodString;
39
- createdAtUtcIso: z.ZodString;
40
- lastModifiedAtUtcIso: z.ZodString;
41
- documentType: z.ZodString;
42
- }, z.ZodTypeAny, "passthrough">>;
43
- state: z.ZodUnknown;
44
- }, "strip", z.ZodTypeAny, {
45
- header: {
46
- name: string;
47
- documentType: string;
48
- id: string;
49
- createdAtUtcIso: string;
50
- lastModifiedAtUtcIso: string;
51
- } & {
52
- [k: string]: unknown;
53
- };
54
- state?: unknown;
55
- }, {
56
- header: {
57
- name: string;
58
- documentType: string;
59
- id: string;
60
- createdAtUtcIso: string;
61
- lastModifiedAtUtcIso: string;
62
- } & {
63
- [k: string]: unknown;
64
- };
65
- state?: unknown;
66
- }>;
23
+ readonly document: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
67
24
  };
68
25
  };
69
26
  export declare const getDocumentsTool: {
@@ -195,131 +152,7 @@ export declare const getDriveTool: {
195
152
  }>>;
196
153
  };
197
154
  readonly outputSchema: {
198
- readonly drive: z.ZodObject<{
199
- header: z.ZodObject<{
200
- id: z.ZodString;
201
- name: z.ZodString;
202
- createdAtUtcIso: z.ZodString;
203
- lastModifiedAtUtcIso: z.ZodString;
204
- } & {
205
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
206
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
207
- id: z.ZodString;
208
- name: z.ZodString;
209
- createdAtUtcIso: z.ZodString;
210
- lastModifiedAtUtcIso: z.ZodString;
211
- } & {
212
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
213
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
214
- id: z.ZodString;
215
- name: z.ZodString;
216
- createdAtUtcIso: z.ZodString;
217
- lastModifiedAtUtcIso: z.ZodString;
218
- } & {
219
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
220
- }, z.ZodTypeAny, "passthrough">>;
221
- state: z.ZodObject<{
222
- global: z.ZodObject<Required<{
223
- icon: z.ZodType<import("document-drive").Maybe<string>, any, import("document-drive").Maybe<string>>;
224
- name: z.ZodType<string, any, string>;
225
- nodes: z.ZodType<import("document-drive").Node[], any, import("document-drive").Node[]>;
226
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
227
- name: import("document-drive").Scalars["String"]["output"];
228
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
229
- nodes: Array<import("document-drive").Node>;
230
- }, {
231
- name: import("document-drive").Scalars["String"]["output"];
232
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
233
- nodes: Array<import("document-drive").Node>;
234
- }>;
235
- local: z.ZodObject<Required<{
236
- availableOffline: z.ZodType<boolean, any, boolean>;
237
- listeners: z.ZodType<import("document-drive").Listener[], any, import("document-drive").Listener[]>;
238
- sharingType: z.ZodType<import("document-drive").Maybe<string>, any, import("document-drive").Maybe<string>>;
239
- triggers: z.ZodType<import("document-drive").Trigger[], any, import("document-drive").Trigger[]>;
240
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
241
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
242
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
243
- listeners: Array<import("document-drive").Listener>;
244
- triggers: Array<import("document-drive").Trigger>;
245
- }, {
246
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
247
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
248
- listeners: Array<import("document-drive").Listener>;
249
- triggers: Array<import("document-drive").Trigger>;
250
- }>;
251
- }, "strip", z.ZodTypeAny, {
252
- global: {
253
- name: import("document-drive").Scalars["String"]["output"];
254
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
255
- nodes: Array<import("document-drive").Node>;
256
- };
257
- local: {
258
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
259
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
260
- listeners: Array<import("document-drive").Listener>;
261
- triggers: Array<import("document-drive").Trigger>;
262
- };
263
- }, {
264
- global: {
265
- name: import("document-drive").Scalars["String"]["output"];
266
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
267
- nodes: Array<import("document-drive").Node>;
268
- };
269
- local: {
270
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
271
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
272
- listeners: Array<import("document-drive").Listener>;
273
- triggers: Array<import("document-drive").Trigger>;
274
- };
275
- }>;
276
- }, "strip", z.ZodTypeAny, {
277
- header: {
278
- name: string;
279
- documentType: "powerhouse/document-drive";
280
- id: string;
281
- createdAtUtcIso: string;
282
- lastModifiedAtUtcIso: string;
283
- } & {
284
- [k: string]: unknown;
285
- };
286
- state: {
287
- global: {
288
- name: import("document-drive").Scalars["String"]["output"];
289
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
290
- nodes: Array<import("document-drive").Node>;
291
- };
292
- local: {
293
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
294
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
295
- listeners: Array<import("document-drive").Listener>;
296
- triggers: Array<import("document-drive").Trigger>;
297
- };
298
- };
299
- }, {
300
- header: {
301
- name: string;
302
- documentType: "powerhouse/document-drive";
303
- id: string;
304
- createdAtUtcIso: string;
305
- lastModifiedAtUtcIso: string;
306
- } & {
307
- [k: string]: unknown;
308
- };
309
- state: {
310
- global: {
311
- name: import("document-drive").Scalars["String"]["output"];
312
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
313
- nodes: Array<import("document-drive").Node>;
314
- };
315
- local: {
316
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
317
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
318
- listeners: Array<import("document-drive").Listener>;
319
- triggers: Array<import("document-drive").Trigger>;
320
- };
321
- };
322
- }>;
155
+ readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
323
156
  };
324
157
  };
325
158
  export declare const deleteDriveTool: {
@@ -437,50 +270,7 @@ declare const allTools: readonly [{
437
270
  readonly id: z.ZodString;
438
271
  };
439
272
  readonly outputSchema: {
440
- readonly document: z.ZodObject<{
441
- header: z.ZodObject<{
442
- id: z.ZodString;
443
- name: z.ZodString;
444
- createdAtUtcIso: z.ZodString;
445
- lastModifiedAtUtcIso: z.ZodString;
446
- documentType: z.ZodString;
447
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
448
- id: z.ZodString;
449
- name: z.ZodString;
450
- createdAtUtcIso: z.ZodString;
451
- lastModifiedAtUtcIso: z.ZodString;
452
- documentType: z.ZodString;
453
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
454
- id: z.ZodString;
455
- name: z.ZodString;
456
- createdAtUtcIso: z.ZodString;
457
- lastModifiedAtUtcIso: z.ZodString;
458
- documentType: z.ZodString;
459
- }, z.ZodTypeAny, "passthrough">>;
460
- state: z.ZodUnknown;
461
- }, "strip", z.ZodTypeAny, {
462
- header: {
463
- name: string;
464
- documentType: string;
465
- id: string;
466
- createdAtUtcIso: string;
467
- lastModifiedAtUtcIso: string;
468
- } & {
469
- [k: string]: unknown;
470
- };
471
- state?: unknown;
472
- }, {
473
- header: {
474
- name: string;
475
- documentType: string;
476
- id: string;
477
- createdAtUtcIso: string;
478
- lastModifiedAtUtcIso: string;
479
- } & {
480
- [k: string]: unknown;
481
- };
482
- state?: unknown;
483
- }>;
273
+ readonly document: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
484
274
  };
485
275
  }, {
486
276
  readonly name: "createDocument";
@@ -616,131 +406,7 @@ declare const allTools: readonly [{
616
406
  }>>;
617
407
  };
618
408
  readonly outputSchema: {
619
- readonly drive: z.ZodObject<{
620
- header: z.ZodObject<{
621
- id: z.ZodString;
622
- name: z.ZodString;
623
- createdAtUtcIso: z.ZodString;
624
- lastModifiedAtUtcIso: z.ZodString;
625
- } & {
626
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
627
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
628
- id: z.ZodString;
629
- name: z.ZodString;
630
- createdAtUtcIso: z.ZodString;
631
- lastModifiedAtUtcIso: z.ZodString;
632
- } & {
633
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
634
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
635
- id: z.ZodString;
636
- name: z.ZodString;
637
- createdAtUtcIso: z.ZodString;
638
- lastModifiedAtUtcIso: z.ZodString;
639
- } & {
640
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
641
- }, z.ZodTypeAny, "passthrough">>;
642
- state: z.ZodObject<{
643
- global: z.ZodObject<Required<{
644
- icon: z.ZodType<import("document-drive").Maybe<string>, any, import("document-drive").Maybe<string>>;
645
- name: z.ZodType<string, any, string>;
646
- nodes: z.ZodType<import("document-drive").Node[], any, import("document-drive").Node[]>;
647
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
648
- name: import("document-drive").Scalars["String"]["output"];
649
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
650
- nodes: Array<import("document-drive").Node>;
651
- }, {
652
- name: import("document-drive").Scalars["String"]["output"];
653
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
654
- nodes: Array<import("document-drive").Node>;
655
- }>;
656
- local: z.ZodObject<Required<{
657
- availableOffline: z.ZodType<boolean, any, boolean>;
658
- listeners: z.ZodType<import("document-drive").Listener[], any, import("document-drive").Listener[]>;
659
- sharingType: z.ZodType<import("document-drive").Maybe<string>, any, import("document-drive").Maybe<string>>;
660
- triggers: z.ZodType<import("document-drive").Trigger[], any, import("document-drive").Trigger[]>;
661
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
662
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
663
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
664
- listeners: Array<import("document-drive").Listener>;
665
- triggers: Array<import("document-drive").Trigger>;
666
- }, {
667
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
668
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
669
- listeners: Array<import("document-drive").Listener>;
670
- triggers: Array<import("document-drive").Trigger>;
671
- }>;
672
- }, "strip", z.ZodTypeAny, {
673
- global: {
674
- name: import("document-drive").Scalars["String"]["output"];
675
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
676
- nodes: Array<import("document-drive").Node>;
677
- };
678
- local: {
679
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
680
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
681
- listeners: Array<import("document-drive").Listener>;
682
- triggers: Array<import("document-drive").Trigger>;
683
- };
684
- }, {
685
- global: {
686
- name: import("document-drive").Scalars["String"]["output"];
687
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
688
- nodes: Array<import("document-drive").Node>;
689
- };
690
- local: {
691
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
692
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
693
- listeners: Array<import("document-drive").Listener>;
694
- triggers: Array<import("document-drive").Trigger>;
695
- };
696
- }>;
697
- }, "strip", z.ZodTypeAny, {
698
- header: {
699
- name: string;
700
- documentType: "powerhouse/document-drive";
701
- id: string;
702
- createdAtUtcIso: string;
703
- lastModifiedAtUtcIso: string;
704
- } & {
705
- [k: string]: unknown;
706
- };
707
- state: {
708
- global: {
709
- name: import("document-drive").Scalars["String"]["output"];
710
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
711
- nodes: Array<import("document-drive").Node>;
712
- };
713
- local: {
714
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
715
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
716
- listeners: Array<import("document-drive").Listener>;
717
- triggers: Array<import("document-drive").Trigger>;
718
- };
719
- };
720
- }, {
721
- header: {
722
- name: string;
723
- documentType: "powerhouse/document-drive";
724
- id: string;
725
- createdAtUtcIso: string;
726
- lastModifiedAtUtcIso: string;
727
- } & {
728
- [k: string]: unknown;
729
- };
730
- state: {
731
- global: {
732
- name: import("document-drive").Scalars["String"]["output"];
733
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
734
- nodes: Array<import("document-drive").Node>;
735
- };
736
- local: {
737
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
738
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
739
- listeners: Array<import("document-drive").Listener>;
740
- triggers: Array<import("document-drive").Trigger>;
741
- };
742
- };
743
- }>;
409
+ readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
744
410
  };
745
411
  }, {
746
412
  readonly name: "deleteDrive";
@@ -849,50 +515,7 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
849
515
  readonly id: z.ZodString;
850
516
  };
851
517
  readonly outputSchema: {
852
- readonly document: z.ZodObject<{
853
- header: z.ZodObject<{
854
- id: z.ZodString;
855
- name: z.ZodString;
856
- createdAtUtcIso: z.ZodString;
857
- lastModifiedAtUtcIso: z.ZodString;
858
- documentType: z.ZodString;
859
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
860
- id: z.ZodString;
861
- name: z.ZodString;
862
- createdAtUtcIso: z.ZodString;
863
- lastModifiedAtUtcIso: z.ZodString;
864
- documentType: z.ZodString;
865
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
866
- id: z.ZodString;
867
- name: z.ZodString;
868
- createdAtUtcIso: z.ZodString;
869
- lastModifiedAtUtcIso: z.ZodString;
870
- documentType: z.ZodString;
871
- }, z.ZodTypeAny, "passthrough">>;
872
- state: z.ZodUnknown;
873
- }, "strip", z.ZodTypeAny, {
874
- header: {
875
- name: string;
876
- documentType: string;
877
- id: string;
878
- createdAtUtcIso: string;
879
- lastModifiedAtUtcIso: string;
880
- } & {
881
- [k: string]: unknown;
882
- };
883
- state?: unknown;
884
- }, {
885
- header: {
886
- name: string;
887
- documentType: string;
888
- id: string;
889
- createdAtUtcIso: string;
890
- lastModifiedAtUtcIso: string;
891
- } & {
892
- [k: string]: unknown;
893
- };
894
- state?: unknown;
895
- }>;
518
+ readonly document: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
896
519
  };
897
520
  } & {
898
521
  callback: (args: {
@@ -1080,131 +703,7 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
1080
703
  }>>;
1081
704
  };
1082
705
  readonly outputSchema: {
1083
- readonly drive: z.ZodObject<{
1084
- header: z.ZodObject<{
1085
- id: z.ZodString;
1086
- name: z.ZodString;
1087
- createdAtUtcIso: z.ZodString;
1088
- lastModifiedAtUtcIso: z.ZodString;
1089
- } & {
1090
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
1091
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1092
- id: z.ZodString;
1093
- name: z.ZodString;
1094
- createdAtUtcIso: z.ZodString;
1095
- lastModifiedAtUtcIso: z.ZodString;
1096
- } & {
1097
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
1098
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1099
- id: z.ZodString;
1100
- name: z.ZodString;
1101
- createdAtUtcIso: z.ZodString;
1102
- lastModifiedAtUtcIso: z.ZodString;
1103
- } & {
1104
- documentType: z.ZodLiteral<"powerhouse/document-drive">;
1105
- }, z.ZodTypeAny, "passthrough">>;
1106
- state: z.ZodObject<{
1107
- global: z.ZodObject<Required<{
1108
- icon: z.ZodType<import("document-drive").Maybe<string>, any, import("document-drive").Maybe<string>>;
1109
- name: z.ZodType<string, any, string>;
1110
- nodes: z.ZodType<import("document-drive").Node[], any, import("document-drive").Node[]>;
1111
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
1112
- name: import("document-drive").Scalars["String"]["output"];
1113
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1114
- nodes: Array<import("document-drive").Node>;
1115
- }, {
1116
- name: import("document-drive").Scalars["String"]["output"];
1117
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1118
- nodes: Array<import("document-drive").Node>;
1119
- }>;
1120
- local: z.ZodObject<Required<{
1121
- availableOffline: z.ZodType<boolean, any, boolean>;
1122
- listeners: z.ZodType<import("document-drive").Listener[], any, import("document-drive").Listener[]>;
1123
- sharingType: z.ZodType<import("document-drive").Maybe<string>, any, import("document-drive").Maybe<string>>;
1124
- triggers: z.ZodType<import("document-drive").Trigger[], any, import("document-drive").Trigger[]>;
1125
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
1126
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
1127
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1128
- listeners: Array<import("document-drive").Listener>;
1129
- triggers: Array<import("document-drive").Trigger>;
1130
- }, {
1131
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
1132
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1133
- listeners: Array<import("document-drive").Listener>;
1134
- triggers: Array<import("document-drive").Trigger>;
1135
- }>;
1136
- }, "strip", z.ZodTypeAny, {
1137
- global: {
1138
- name: import("document-drive").Scalars["String"]["output"];
1139
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1140
- nodes: Array<import("document-drive").Node>;
1141
- };
1142
- local: {
1143
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
1144
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1145
- listeners: Array<import("document-drive").Listener>;
1146
- triggers: Array<import("document-drive").Trigger>;
1147
- };
1148
- }, {
1149
- global: {
1150
- name: import("document-drive").Scalars["String"]["output"];
1151
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1152
- nodes: Array<import("document-drive").Node>;
1153
- };
1154
- local: {
1155
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
1156
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1157
- listeners: Array<import("document-drive").Listener>;
1158
- triggers: Array<import("document-drive").Trigger>;
1159
- };
1160
- }>;
1161
- }, "strip", z.ZodTypeAny, {
1162
- header: {
1163
- name: string;
1164
- documentType: "powerhouse/document-drive";
1165
- id: string;
1166
- createdAtUtcIso: string;
1167
- lastModifiedAtUtcIso: string;
1168
- } & {
1169
- [k: string]: unknown;
1170
- };
1171
- state: {
1172
- global: {
1173
- name: import("document-drive").Scalars["String"]["output"];
1174
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1175
- nodes: Array<import("document-drive").Node>;
1176
- };
1177
- local: {
1178
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
1179
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1180
- listeners: Array<import("document-drive").Listener>;
1181
- triggers: Array<import("document-drive").Trigger>;
1182
- };
1183
- };
1184
- }, {
1185
- header: {
1186
- name: string;
1187
- documentType: "powerhouse/document-drive";
1188
- id: string;
1189
- createdAtUtcIso: string;
1190
- lastModifiedAtUtcIso: string;
1191
- } & {
1192
- [k: string]: unknown;
1193
- };
1194
- state: {
1195
- global: {
1196
- name: import("document-drive").Scalars["String"]["output"];
1197
- icon: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1198
- nodes: Array<import("document-drive").Node>;
1199
- };
1200
- local: {
1201
- availableOffline: import("document-drive").Scalars["Boolean"]["output"];
1202
- sharingType: import("document-drive").Maybe<import("document-drive").Scalars["String"]["output"]>;
1203
- listeners: Array<import("document-drive").Listener>;
1204
- triggers: Array<import("document-drive").Trigger>;
1205
- };
1206
- };
1207
- }>;
706
+ readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1208
707
  };
1209
708
  } & {
1210
709
  callback: (args: {
@@ -1 +1 @@
1
- {"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../../src/tools/reactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAM/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,kBAAkB;;;;;;;;;;CAWA,CAAC;AAEhC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcG,CAAC;AAEhC,eAAO,MAAM,gBAAgB;;;;;;;;;CASE,CAAC;AAEhC,eAAO,MAAM,kBAAkB;;;;;;;;;CASA,CAAC;AAEhC,eAAO,MAAM,cAAc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@@
1
- import { DocumentDriveLocalStateSchema, DocumentDriveStateSchema, } from "document-drive";
2
- import { DriveDocumentHeaderSchema } from "document-drive/drive-document-model/gen/document-schema";
3
- import { BaseDocumentHeaderSchema, DocumentModelGlobalStateSchema, } from "document-model";
1
+ import { DocumentModelGlobalStateSchema } from "document-model";
4
2
  import { generateId } from "document-model/core";
5
3
  import { z } from "zod";
6
4
  import { toolWithCallback, validateDocumentModelAction } from "./utils.js";
@@ -23,12 +21,7 @@ export const getDocumentTool = {
23
21
  id: z.string().describe("ID of the document to retrieve"),
24
22
  },
25
23
  outputSchema: {
26
- document: z
27
- .object({
28
- header: BaseDocumentHeaderSchema.passthrough(),
29
- state: z.unknown(),
30
- })
31
- .describe("The retrieved Document"),
24
+ document: z.object({}).describe("The retrieved Document"),
32
25
  },
33
26
  };
34
27
  export const getDocumentsTool = {
@@ -189,15 +182,7 @@ export const getDriveTool = {
189
182
  .describe("Optional get document options"),
190
183
  },
191
184
  outputSchema: {
192
- drive: z
193
- .object({
194
- header: DriveDocumentHeaderSchema.passthrough(),
195
- state: z.object({
196
- global: DocumentDriveStateSchema(),
197
- local: DocumentDriveLocalStateSchema(),
198
- }),
199
- })
200
- .describe("Drive document"), // TODO: Define DocumentDriveDocument schema
185
+ drive: z.object({}).describe("Drive document"), // TODO: Define DocumentDriveDocument schema
201
186
  },
202
187
  };
203
188
  export const deleteDriveTool = {
@@ -408,13 +393,8 @@ export async function createReactorMcpProvider(reactor) {
408
393
  return { driveId: result.header.id };
409
394
  }),
410
395
  getDrive: toolWithCallback(getDriveTool, async (params) => {
411
- const { header, state: { global, local }, } = await reactor.getDrive(params.driveId, params.options);
412
- return {
413
- drive: {
414
- header: header,
415
- state: { global, local },
416
- },
417
- };
396
+ const { header, state } = await reactor.getDrive(params.driveId, params.options);
397
+ return { drive: { header, state } };
418
398
  }),
419
399
  deleteDrive: toolWithCallback(deleteDriveTool, async (params) => {
420
400
  try {
@@ -467,12 +447,6 @@ export async function createReactorMcpProvider(reactor) {
467
447
  if (!schema) {
468
448
  throw new Error(`Document model '${params.type}' not found`);
469
449
  }
470
- if ("auth" in schema) {
471
- delete schema["auth"];
472
- }
473
- if ("document" in schema) {
474
- delete schema["document"];
475
- }
476
450
  return { schema };
477
451
  }),
478
452
  };