@powerhousedao/reactor-mcp 4.1.0-dev.3 → 4.1.0-dev.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli.js +7 -3
- package/dist/src/cli.js.map +1 -1
- package/dist/src/express.d.ts +5 -0
- package/dist/src/express.d.ts.map +1 -0
- package/dist/src/express.js +59 -0
- package/dist/src/express.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -10
- package/dist/src/index.js.map +1 -1
- package/dist/src/logger.d.ts +3 -0
- package/dist/src/logger.d.ts.map +1 -0
- package/dist/src/logger.js +3 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/sdk/chat.d.ts +19 -0
- package/dist/src/sdk/chat.d.ts.map +1 -0
- package/dist/src/sdk/chat.js +60 -0
- package/dist/src/sdk/chat.js.map +1 -0
- package/dist/src/server.d.ts +3 -2
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +38 -762
- package/dist/src/server.js.map +1 -1
- package/dist/src/stdio/index.d.ts +7 -0
- package/dist/src/stdio/index.d.ts.map +1 -0
- package/dist/src/stdio/index.js +84 -0
- package/dist/src/stdio/index.js.map +1 -0
- package/dist/src/stdio/loader.d.ts +18 -0
- package/dist/src/stdio/loader.d.ts.map +1 -0
- package/dist/src/stdio/loader.js +86 -0
- package/dist/src/stdio/loader.js.map +1 -0
- package/dist/src/tools/reactor.d.ts +847 -0
- package/dist/src/tools/reactor.d.ts.map +1 -0
- package/dist/src/{mcp → tools}/reactor.js +200 -146
- package/dist/src/tools/reactor.js.map +1 -0
- package/dist/src/tools/types.d.ts.map +1 -0
- package/dist/src/{mcp → tools}/types.js.map +1 -1
- package/dist/src/{mcp → tools}/utils.d.ts +8 -21
- package/dist/src/tools/utils.d.ts.map +1 -0
- package/dist/src/{utils.js → tools/utils.js} +46 -3
- package/dist/src/tools/utils.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +17 -11
- package/dist/src/mcp/reactor.d.ts +0 -630
- package/dist/src/mcp/reactor.d.ts.map +0 -1
- package/dist/src/mcp/reactor.js.map +0 -1
- package/dist/src/mcp/types.d.ts.map +0 -1
- package/dist/src/mcp/utils.d.ts.map +0 -1
- package/dist/src/mcp/utils.js +0 -62
- package/dist/src/mcp/utils.js.map +0 -1
- package/dist/src/reactor.d.ts +0 -43
- package/dist/src/reactor.d.ts.map +0 -1
- package/dist/src/reactor.js +0 -142
- package/dist/src/reactor.js.map +0 -1
- package/dist/src/utils.d.ts +0 -10
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/utils.js.map +0 -1
- /package/dist/src/{mcp → tools}/types.d.ts +0 -0
- /package/dist/src/{mcp → tools}/types.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/reactor-mcp",
|
|
3
|
-
"version": "4.1.0-dev.
|
|
3
|
+
"version": "4.1.0-dev.30",
|
|
4
4
|
"description": "MCP server for document model operations in the Powerhouse ecosystem. For document model creation tasks, consider using the document-model-creator agent which provides a more guided experience.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/powerhouse-inc/powerhouse"
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
|
-
"
|
|
12
|
+
"./*": "./dist/src/*.js"
|
|
13
13
|
},
|
|
14
14
|
"imports": {
|
|
15
15
|
"#*": "./dist/src/*"
|
|
@@ -27,26 +27,32 @@
|
|
|
27
27
|
"keywords": [],
|
|
28
28
|
"author": "",
|
|
29
29
|
"license": "AGPL-3.0-only",
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/node": "^22.15.17",
|
|
32
|
-
"vitest": "^3.1.2"
|
|
33
|
-
},
|
|
34
30
|
"dependencies": {
|
|
31
|
+
"@ai-sdk/openai": "^2.0.0",
|
|
35
32
|
"@modelcontextprotocol/sdk": "^1.17.0",
|
|
33
|
+
"ai": "^5.0.0",
|
|
36
34
|
"change-case": "^5.4.4",
|
|
35
|
+
"express": "^4.21.1",
|
|
36
|
+
"vite": "^6.3.5",
|
|
37
37
|
"zod": "^3.24.3",
|
|
38
|
-
"@powerhousedao/
|
|
39
|
-
"@powerhousedao/
|
|
40
|
-
"document-drive": "4.1.0-dev.
|
|
41
|
-
"document-model": "4.1.0-dev.
|
|
38
|
+
"@powerhousedao/config": "4.1.0-dev.30",
|
|
39
|
+
"@powerhousedao/codegen": "4.1.0-dev.30",
|
|
40
|
+
"document-drive": "4.1.0-dev.30",
|
|
41
|
+
"document-model": "4.1.0-dev.30"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/express": "^5.0.0",
|
|
45
|
+
"@types/node": "^22.15.17",
|
|
46
|
+
"vitest": "^3.1.2"
|
|
42
47
|
},
|
|
43
48
|
"scripts": {
|
|
44
49
|
"build": "tsc --build",
|
|
45
50
|
"build:tsc": "tsc --build",
|
|
46
51
|
"prebuild": "npm run clean",
|
|
47
52
|
"lint": "eslint",
|
|
48
|
-
"test": "vitest",
|
|
53
|
+
"test": "vitest run",
|
|
49
54
|
"test:run": "vitest run",
|
|
55
|
+
"test:watch": "vitest",
|
|
50
56
|
"bench": "vitest bench",
|
|
51
57
|
"clean": "rimraf dist",
|
|
52
58
|
"clean:node_modules": "rimraf node_modules"
|
|
@@ -1,630 +0,0 @@
|
|
|
1
|
-
import type { IDocumentDriveServer } from "document-drive";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import type { ToolSchema, ToolWithCallback } from "./types.js";
|
|
4
|
-
export declare const getDocumentTool: {
|
|
5
|
-
readonly name: "getDocument";
|
|
6
|
-
readonly description: "Retrieve a document by its ID";
|
|
7
|
-
readonly inputSchema: {
|
|
8
|
-
readonly id: z.ZodString;
|
|
9
|
-
};
|
|
10
|
-
readonly outputSchema: {
|
|
11
|
-
readonly document: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const createDocumentTool: {
|
|
15
|
-
readonly name: "createDocument";
|
|
16
|
-
readonly description: "Create a new document";
|
|
17
|
-
readonly inputSchema: {
|
|
18
|
-
readonly documentType: z.ZodString;
|
|
19
|
-
readonly documentId: z.ZodOptional<z.ZodString>;
|
|
20
|
-
};
|
|
21
|
-
readonly outputSchema: {
|
|
22
|
-
readonly result: z.ZodObject<{
|
|
23
|
-
status: z.ZodEnum<["SUCCESS", "CONFLICT", "MISSING", "ERROR"]>;
|
|
24
|
-
error: z.ZodOptional<z.ZodString>;
|
|
25
|
-
operations: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
26
|
-
document: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
27
|
-
signals: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
30
|
-
operations: {}[];
|
|
31
|
-
signals: {}[];
|
|
32
|
-
document?: {} | undefined;
|
|
33
|
-
error?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
36
|
-
operations: {}[];
|
|
37
|
-
signals: {}[];
|
|
38
|
-
document?: {} | undefined;
|
|
39
|
-
error?: string | undefined;
|
|
40
|
-
}>;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export declare const getDocumentsTool: {
|
|
44
|
-
readonly name: "getDocuments";
|
|
45
|
-
readonly description: "List documents in a drive";
|
|
46
|
-
readonly inputSchema: {
|
|
47
|
-
readonly parentId: z.ZodString;
|
|
48
|
-
};
|
|
49
|
-
readonly outputSchema: {
|
|
50
|
-
readonly documentIds: z.ZodArray<z.ZodString, "many">;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare const deleteDocumentTool: {
|
|
54
|
-
readonly name: "deleteDocument";
|
|
55
|
-
readonly description: "Delete a document";
|
|
56
|
-
readonly inputSchema: {
|
|
57
|
-
readonly documentId: z.ZodString;
|
|
58
|
-
};
|
|
59
|
-
readonly outputSchema: {
|
|
60
|
-
readonly success: z.ZodBoolean;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export declare const addActionTool: {
|
|
64
|
-
readonly name: "addAction";
|
|
65
|
-
readonly description: "Add an action to a document";
|
|
66
|
-
readonly inputSchema: {
|
|
67
|
-
readonly documentId: z.ZodString;
|
|
68
|
-
readonly action: z.ZodObject<{
|
|
69
|
-
type: z.ZodString;
|
|
70
|
-
input: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>;
|
|
71
|
-
scope: z.ZodString;
|
|
72
|
-
context: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
73
|
-
}, "strict", z.ZodTypeAny, {
|
|
74
|
-
scope: string;
|
|
75
|
-
input: string | number | boolean | any[] | {} | null;
|
|
76
|
-
type: string;
|
|
77
|
-
context?: {} | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
scope: string;
|
|
80
|
-
input: string | number | boolean | any[] | {} | null;
|
|
81
|
-
type: string;
|
|
82
|
-
context?: {} | undefined;
|
|
83
|
-
}>;
|
|
84
|
-
};
|
|
85
|
-
readonly outputSchema: {
|
|
86
|
-
readonly result: z.ZodObject<{
|
|
87
|
-
status: z.ZodEnum<["SUCCESS", "CONFLICT", "MISSING", "ERROR"]>;
|
|
88
|
-
error: z.ZodOptional<z.ZodString>;
|
|
89
|
-
operations: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
90
|
-
document: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
91
|
-
signals: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
92
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
94
|
-
operations: {}[];
|
|
95
|
-
signals: {}[];
|
|
96
|
-
document?: {} | undefined;
|
|
97
|
-
error?: string | undefined;
|
|
98
|
-
}, {
|
|
99
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
100
|
-
operations: {}[];
|
|
101
|
-
signals: {}[];
|
|
102
|
-
document?: {} | undefined;
|
|
103
|
-
error?: string | undefined;
|
|
104
|
-
}>;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
export declare const addOperationTool: {
|
|
108
|
-
readonly name: "addOperation";
|
|
109
|
-
readonly description: "Add an operation to a document";
|
|
110
|
-
readonly inputSchema: {
|
|
111
|
-
readonly documentId: z.ZodString;
|
|
112
|
-
readonly operation: z.ZodObject<{
|
|
113
|
-
type: z.ZodString;
|
|
114
|
-
input: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>;
|
|
115
|
-
scope: z.ZodString;
|
|
116
|
-
index: z.ZodNumber;
|
|
117
|
-
timestamp: z.ZodString;
|
|
118
|
-
hash: z.ZodString;
|
|
119
|
-
skip: z.ZodNumber;
|
|
120
|
-
error: z.ZodOptional<z.ZodString>;
|
|
121
|
-
id: z.ZodOptional<z.ZodString>;
|
|
122
|
-
context: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
123
|
-
}, "strict", z.ZodTypeAny, {
|
|
124
|
-
scope: string;
|
|
125
|
-
input: string | number | boolean | any[] | {} | null;
|
|
126
|
-
type: string;
|
|
127
|
-
index: number;
|
|
128
|
-
timestamp: string;
|
|
129
|
-
hash: string;
|
|
130
|
-
skip: number;
|
|
131
|
-
id?: string | undefined;
|
|
132
|
-
error?: string | undefined;
|
|
133
|
-
context?: {} | undefined;
|
|
134
|
-
}, {
|
|
135
|
-
scope: string;
|
|
136
|
-
input: string | number | boolean | any[] | {} | null;
|
|
137
|
-
type: string;
|
|
138
|
-
index: number;
|
|
139
|
-
timestamp: string;
|
|
140
|
-
hash: string;
|
|
141
|
-
skip: number;
|
|
142
|
-
id?: string | undefined;
|
|
143
|
-
error?: string | undefined;
|
|
144
|
-
context?: {} | undefined;
|
|
145
|
-
}>;
|
|
146
|
-
};
|
|
147
|
-
readonly outputSchema: {
|
|
148
|
-
readonly result: z.ZodObject<{
|
|
149
|
-
status: z.ZodEnum<["SUCCESS", "CONFLICT", "MISSING", "ERROR"]>;
|
|
150
|
-
error: z.ZodOptional<z.ZodString>;
|
|
151
|
-
operations: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
152
|
-
document: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
153
|
-
signals: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
156
|
-
operations: {}[];
|
|
157
|
-
signals: {}[];
|
|
158
|
-
document?: {} | undefined;
|
|
159
|
-
error?: string | undefined;
|
|
160
|
-
}, {
|
|
161
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
162
|
-
operations: {}[];
|
|
163
|
-
signals: {}[];
|
|
164
|
-
document?: {} | undefined;
|
|
165
|
-
error?: string | undefined;
|
|
166
|
-
}>;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
export declare const getDrivesTool: {
|
|
170
|
-
readonly name: "getDrives";
|
|
171
|
-
readonly description: "List all drives";
|
|
172
|
-
readonly inputSchema: {};
|
|
173
|
-
readonly outputSchema: {
|
|
174
|
-
readonly driveIds: z.ZodArray<z.ZodString, "many">;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
export declare const addDriveTool: {
|
|
178
|
-
readonly name: "addDrive";
|
|
179
|
-
readonly description: "Create a new drive";
|
|
180
|
-
readonly inputSchema: {
|
|
181
|
-
readonly driveInput: z.ZodObject<{
|
|
182
|
-
global: z.ZodObject<{
|
|
183
|
-
name: z.ZodString;
|
|
184
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
|
-
}, "strip", z.ZodTypeAny, {
|
|
186
|
-
name: string;
|
|
187
|
-
icon?: string | null | undefined;
|
|
188
|
-
}, {
|
|
189
|
-
name: string;
|
|
190
|
-
icon?: string | null | undefined;
|
|
191
|
-
}>;
|
|
192
|
-
id: z.ZodOptional<z.ZodString>;
|
|
193
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
194
|
-
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
195
|
-
local: z.ZodOptional<z.ZodObject<{
|
|
196
|
-
availableOffline: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
-
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
-
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
availableOffline?: boolean | undefined;
|
|
200
|
-
sharingType?: string | null | undefined;
|
|
201
|
-
}, {
|
|
202
|
-
availableOffline?: boolean | undefined;
|
|
203
|
-
sharingType?: string | null | undefined;
|
|
204
|
-
}>>;
|
|
205
|
-
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
global: {
|
|
207
|
-
name: string;
|
|
208
|
-
icon?: string | null | undefined;
|
|
209
|
-
};
|
|
210
|
-
local?: {
|
|
211
|
-
availableOffline?: boolean | undefined;
|
|
212
|
-
sharingType?: string | null | undefined;
|
|
213
|
-
} | undefined;
|
|
214
|
-
id?: string | undefined;
|
|
215
|
-
slug?: string | undefined;
|
|
216
|
-
preferredEditor?: string | undefined;
|
|
217
|
-
}, {
|
|
218
|
-
global: {
|
|
219
|
-
name: string;
|
|
220
|
-
icon?: string | null | undefined;
|
|
221
|
-
};
|
|
222
|
-
local?: {
|
|
223
|
-
availableOffline?: boolean | undefined;
|
|
224
|
-
sharingType?: string | null | undefined;
|
|
225
|
-
} | undefined;
|
|
226
|
-
id?: string | undefined;
|
|
227
|
-
slug?: string | undefined;
|
|
228
|
-
preferredEditor?: string | undefined;
|
|
229
|
-
}>;
|
|
230
|
-
};
|
|
231
|
-
readonly outputSchema: {
|
|
232
|
-
readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
export declare const getDriveTool: {
|
|
236
|
-
readonly name: "getDrive";
|
|
237
|
-
readonly description: "Get a specific drive";
|
|
238
|
-
readonly inputSchema: {
|
|
239
|
-
readonly driveId: z.ZodString;
|
|
240
|
-
readonly options: z.ZodOptional<z.ZodObject<{
|
|
241
|
-
revisions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
242
|
-
checkHashes: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
-
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
revisions?: Record<string, number> | undefined;
|
|
245
|
-
checkHashes?: boolean | undefined;
|
|
246
|
-
}, {
|
|
247
|
-
revisions?: Record<string, number> | undefined;
|
|
248
|
-
checkHashes?: boolean | undefined;
|
|
249
|
-
}>>;
|
|
250
|
-
};
|
|
251
|
-
readonly outputSchema: {
|
|
252
|
-
readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
export declare const deleteDriveTool: {
|
|
256
|
-
readonly name: "deleteDrive";
|
|
257
|
-
readonly description: "Delete a drive";
|
|
258
|
-
readonly inputSchema: {
|
|
259
|
-
readonly driveId: z.ZodString;
|
|
260
|
-
};
|
|
261
|
-
readonly outputSchema: {
|
|
262
|
-
readonly success: z.ZodBoolean;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
export declare const addRemoteDriveTool: {
|
|
266
|
-
readonly name: "addRemoteDrive";
|
|
267
|
-
readonly description: "Connect to a remote drive";
|
|
268
|
-
readonly inputSchema: {
|
|
269
|
-
readonly url: z.ZodString;
|
|
270
|
-
readonly options: z.ZodObject<{
|
|
271
|
-
availableOffline: z.ZodBoolean;
|
|
272
|
-
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
-
pullFilter: z.ZodOptional<z.ZodObject<{
|
|
274
|
-
branch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
275
|
-
documentId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
276
|
-
documentType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
277
|
-
scope: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
278
|
-
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
scope?: string[] | null | undefined;
|
|
280
|
-
documentType?: string[] | null | undefined;
|
|
281
|
-
documentId?: string[] | null | undefined;
|
|
282
|
-
branch?: string[] | null | undefined;
|
|
283
|
-
}, {
|
|
284
|
-
scope?: string[] | null | undefined;
|
|
285
|
-
documentType?: string[] | null | undefined;
|
|
286
|
-
documentId?: string[] | null | undefined;
|
|
287
|
-
branch?: string[] | null | undefined;
|
|
288
|
-
}>>;
|
|
289
|
-
pullInterval: z.ZodOptional<z.ZodNumber>;
|
|
290
|
-
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
availableOffline: boolean;
|
|
292
|
-
sharingType?: string | null | undefined;
|
|
293
|
-
pullFilter?: {
|
|
294
|
-
scope?: string[] | null | undefined;
|
|
295
|
-
documentType?: string[] | null | undefined;
|
|
296
|
-
documentId?: string[] | null | undefined;
|
|
297
|
-
branch?: string[] | null | undefined;
|
|
298
|
-
} | undefined;
|
|
299
|
-
pullInterval?: number | undefined;
|
|
300
|
-
}, {
|
|
301
|
-
availableOffline: boolean;
|
|
302
|
-
sharingType?: string | null | undefined;
|
|
303
|
-
pullFilter?: {
|
|
304
|
-
scope?: string[] | null | undefined;
|
|
305
|
-
documentType?: string[] | null | undefined;
|
|
306
|
-
documentId?: string[] | null | undefined;
|
|
307
|
-
branch?: string[] | null | undefined;
|
|
308
|
-
} | undefined;
|
|
309
|
-
pullInterval?: number | undefined;
|
|
310
|
-
}>;
|
|
311
|
-
};
|
|
312
|
-
readonly outputSchema: {
|
|
313
|
-
readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
type ToolRecord<T extends readonly ToolSchema[]> = {
|
|
317
|
-
[K in T[number]["name"]]: ToolWithCallback<Extract<T[number], {
|
|
318
|
-
name: K;
|
|
319
|
-
}>>;
|
|
320
|
-
};
|
|
321
|
-
declare const allTools: readonly [{
|
|
322
|
-
readonly name: "getDocument";
|
|
323
|
-
readonly description: "Retrieve a document by its ID";
|
|
324
|
-
readonly inputSchema: {
|
|
325
|
-
readonly id: z.ZodString;
|
|
326
|
-
};
|
|
327
|
-
readonly outputSchema: {
|
|
328
|
-
readonly document: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
329
|
-
};
|
|
330
|
-
}, {
|
|
331
|
-
readonly name: "createDocument";
|
|
332
|
-
readonly description: "Create a new document";
|
|
333
|
-
readonly inputSchema: {
|
|
334
|
-
readonly documentType: z.ZodString;
|
|
335
|
-
readonly documentId: z.ZodOptional<z.ZodString>;
|
|
336
|
-
};
|
|
337
|
-
readonly outputSchema: {
|
|
338
|
-
readonly result: z.ZodObject<{
|
|
339
|
-
status: z.ZodEnum<["SUCCESS", "CONFLICT", "MISSING", "ERROR"]>;
|
|
340
|
-
error: z.ZodOptional<z.ZodString>;
|
|
341
|
-
operations: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
342
|
-
document: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
343
|
-
signals: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
344
|
-
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
346
|
-
operations: {}[];
|
|
347
|
-
signals: {}[];
|
|
348
|
-
document?: {} | undefined;
|
|
349
|
-
error?: string | undefined;
|
|
350
|
-
}, {
|
|
351
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
352
|
-
operations: {}[];
|
|
353
|
-
signals: {}[];
|
|
354
|
-
document?: {} | undefined;
|
|
355
|
-
error?: string | undefined;
|
|
356
|
-
}>;
|
|
357
|
-
};
|
|
358
|
-
}, {
|
|
359
|
-
readonly name: "getDocuments";
|
|
360
|
-
readonly description: "List documents in a drive";
|
|
361
|
-
readonly inputSchema: {
|
|
362
|
-
readonly parentId: z.ZodString;
|
|
363
|
-
};
|
|
364
|
-
readonly outputSchema: {
|
|
365
|
-
readonly documentIds: z.ZodArray<z.ZodString, "many">;
|
|
366
|
-
};
|
|
367
|
-
}, {
|
|
368
|
-
readonly name: "deleteDocument";
|
|
369
|
-
readonly description: "Delete a document";
|
|
370
|
-
readonly inputSchema: {
|
|
371
|
-
readonly documentId: z.ZodString;
|
|
372
|
-
};
|
|
373
|
-
readonly outputSchema: {
|
|
374
|
-
readonly success: z.ZodBoolean;
|
|
375
|
-
};
|
|
376
|
-
}, {
|
|
377
|
-
readonly name: "addAction";
|
|
378
|
-
readonly description: "Add an action to a document";
|
|
379
|
-
readonly inputSchema: {
|
|
380
|
-
readonly documentId: z.ZodString;
|
|
381
|
-
readonly action: z.ZodObject<{
|
|
382
|
-
type: z.ZodString;
|
|
383
|
-
input: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>;
|
|
384
|
-
scope: z.ZodString;
|
|
385
|
-
context: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
386
|
-
}, "strict", z.ZodTypeAny, {
|
|
387
|
-
scope: string;
|
|
388
|
-
input: string | number | boolean | any[] | {} | null;
|
|
389
|
-
type: string;
|
|
390
|
-
context?: {} | undefined;
|
|
391
|
-
}, {
|
|
392
|
-
scope: string;
|
|
393
|
-
input: string | number | boolean | any[] | {} | null;
|
|
394
|
-
type: string;
|
|
395
|
-
context?: {} | undefined;
|
|
396
|
-
}>;
|
|
397
|
-
};
|
|
398
|
-
readonly outputSchema: {
|
|
399
|
-
readonly result: z.ZodObject<{
|
|
400
|
-
status: z.ZodEnum<["SUCCESS", "CONFLICT", "MISSING", "ERROR"]>;
|
|
401
|
-
error: z.ZodOptional<z.ZodString>;
|
|
402
|
-
operations: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
403
|
-
document: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
404
|
-
signals: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
405
|
-
}, "strip", z.ZodTypeAny, {
|
|
406
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
407
|
-
operations: {}[];
|
|
408
|
-
signals: {}[];
|
|
409
|
-
document?: {} | undefined;
|
|
410
|
-
error?: string | undefined;
|
|
411
|
-
}, {
|
|
412
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
413
|
-
operations: {}[];
|
|
414
|
-
signals: {}[];
|
|
415
|
-
document?: {} | undefined;
|
|
416
|
-
error?: string | undefined;
|
|
417
|
-
}>;
|
|
418
|
-
};
|
|
419
|
-
}, {
|
|
420
|
-
readonly name: "addOperation";
|
|
421
|
-
readonly description: "Add an operation to a document";
|
|
422
|
-
readonly inputSchema: {
|
|
423
|
-
readonly documentId: z.ZodString;
|
|
424
|
-
readonly operation: z.ZodObject<{
|
|
425
|
-
type: z.ZodString;
|
|
426
|
-
input: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>;
|
|
427
|
-
scope: z.ZodString;
|
|
428
|
-
index: z.ZodNumber;
|
|
429
|
-
timestamp: z.ZodString;
|
|
430
|
-
hash: z.ZodString;
|
|
431
|
-
skip: z.ZodNumber;
|
|
432
|
-
error: z.ZodOptional<z.ZodString>;
|
|
433
|
-
id: z.ZodOptional<z.ZodString>;
|
|
434
|
-
context: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
435
|
-
}, "strict", z.ZodTypeAny, {
|
|
436
|
-
scope: string;
|
|
437
|
-
input: string | number | boolean | any[] | {} | null;
|
|
438
|
-
type: string;
|
|
439
|
-
index: number;
|
|
440
|
-
timestamp: string;
|
|
441
|
-
hash: string;
|
|
442
|
-
skip: number;
|
|
443
|
-
id?: string | undefined;
|
|
444
|
-
error?: string | undefined;
|
|
445
|
-
context?: {} | undefined;
|
|
446
|
-
}, {
|
|
447
|
-
scope: string;
|
|
448
|
-
input: string | number | boolean | any[] | {} | null;
|
|
449
|
-
type: string;
|
|
450
|
-
index: number;
|
|
451
|
-
timestamp: string;
|
|
452
|
-
hash: string;
|
|
453
|
-
skip: number;
|
|
454
|
-
id?: string | undefined;
|
|
455
|
-
error?: string | undefined;
|
|
456
|
-
context?: {} | undefined;
|
|
457
|
-
}>;
|
|
458
|
-
};
|
|
459
|
-
readonly outputSchema: {
|
|
460
|
-
readonly result: z.ZodObject<{
|
|
461
|
-
status: z.ZodEnum<["SUCCESS", "CONFLICT", "MISSING", "ERROR"]>;
|
|
462
|
-
error: z.ZodOptional<z.ZodString>;
|
|
463
|
-
operations: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
464
|
-
document: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
465
|
-
signals: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
466
|
-
}, "strip", z.ZodTypeAny, {
|
|
467
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
468
|
-
operations: {}[];
|
|
469
|
-
signals: {}[];
|
|
470
|
-
document?: {} | undefined;
|
|
471
|
-
error?: string | undefined;
|
|
472
|
-
}, {
|
|
473
|
-
status: "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
474
|
-
operations: {}[];
|
|
475
|
-
signals: {}[];
|
|
476
|
-
document?: {} | undefined;
|
|
477
|
-
error?: string | undefined;
|
|
478
|
-
}>;
|
|
479
|
-
};
|
|
480
|
-
}, {
|
|
481
|
-
readonly name: "getDrives";
|
|
482
|
-
readonly description: "List all drives";
|
|
483
|
-
readonly inputSchema: {};
|
|
484
|
-
readonly outputSchema: {
|
|
485
|
-
readonly driveIds: z.ZodArray<z.ZodString, "many">;
|
|
486
|
-
};
|
|
487
|
-
}, {
|
|
488
|
-
readonly name: "addDrive";
|
|
489
|
-
readonly description: "Create a new drive";
|
|
490
|
-
readonly inputSchema: {
|
|
491
|
-
readonly driveInput: z.ZodObject<{
|
|
492
|
-
global: z.ZodObject<{
|
|
493
|
-
name: z.ZodString;
|
|
494
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
-
}, "strip", z.ZodTypeAny, {
|
|
496
|
-
name: string;
|
|
497
|
-
icon?: string | null | undefined;
|
|
498
|
-
}, {
|
|
499
|
-
name: string;
|
|
500
|
-
icon?: string | null | undefined;
|
|
501
|
-
}>;
|
|
502
|
-
id: z.ZodOptional<z.ZodString>;
|
|
503
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
504
|
-
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
505
|
-
local: z.ZodOptional<z.ZodObject<{
|
|
506
|
-
availableOffline: z.ZodOptional<z.ZodBoolean>;
|
|
507
|
-
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
-
}, "strip", z.ZodTypeAny, {
|
|
509
|
-
availableOffline?: boolean | undefined;
|
|
510
|
-
sharingType?: string | null | undefined;
|
|
511
|
-
}, {
|
|
512
|
-
availableOffline?: boolean | undefined;
|
|
513
|
-
sharingType?: string | null | undefined;
|
|
514
|
-
}>>;
|
|
515
|
-
}, "strip", z.ZodTypeAny, {
|
|
516
|
-
global: {
|
|
517
|
-
name: string;
|
|
518
|
-
icon?: string | null | undefined;
|
|
519
|
-
};
|
|
520
|
-
local?: {
|
|
521
|
-
availableOffline?: boolean | undefined;
|
|
522
|
-
sharingType?: string | null | undefined;
|
|
523
|
-
} | undefined;
|
|
524
|
-
id?: string | undefined;
|
|
525
|
-
slug?: string | undefined;
|
|
526
|
-
preferredEditor?: string | undefined;
|
|
527
|
-
}, {
|
|
528
|
-
global: {
|
|
529
|
-
name: string;
|
|
530
|
-
icon?: string | null | undefined;
|
|
531
|
-
};
|
|
532
|
-
local?: {
|
|
533
|
-
availableOffline?: boolean | undefined;
|
|
534
|
-
sharingType?: string | null | undefined;
|
|
535
|
-
} | undefined;
|
|
536
|
-
id?: string | undefined;
|
|
537
|
-
slug?: string | undefined;
|
|
538
|
-
preferredEditor?: string | undefined;
|
|
539
|
-
}>;
|
|
540
|
-
};
|
|
541
|
-
readonly outputSchema: {
|
|
542
|
-
readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
543
|
-
};
|
|
544
|
-
}, {
|
|
545
|
-
readonly name: "getDrive";
|
|
546
|
-
readonly description: "Get a specific drive";
|
|
547
|
-
readonly inputSchema: {
|
|
548
|
-
readonly driveId: z.ZodString;
|
|
549
|
-
readonly options: z.ZodOptional<z.ZodObject<{
|
|
550
|
-
revisions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
551
|
-
checkHashes: z.ZodOptional<z.ZodBoolean>;
|
|
552
|
-
}, "strip", z.ZodTypeAny, {
|
|
553
|
-
revisions?: Record<string, number> | undefined;
|
|
554
|
-
checkHashes?: boolean | undefined;
|
|
555
|
-
}, {
|
|
556
|
-
revisions?: Record<string, number> | undefined;
|
|
557
|
-
checkHashes?: boolean | undefined;
|
|
558
|
-
}>>;
|
|
559
|
-
};
|
|
560
|
-
readonly outputSchema: {
|
|
561
|
-
readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
562
|
-
};
|
|
563
|
-
}, {
|
|
564
|
-
readonly name: "deleteDrive";
|
|
565
|
-
readonly description: "Delete a drive";
|
|
566
|
-
readonly inputSchema: {
|
|
567
|
-
readonly driveId: z.ZodString;
|
|
568
|
-
};
|
|
569
|
-
readonly outputSchema: {
|
|
570
|
-
readonly success: z.ZodBoolean;
|
|
571
|
-
};
|
|
572
|
-
}, {
|
|
573
|
-
readonly name: "addRemoteDrive";
|
|
574
|
-
readonly description: "Connect to a remote drive";
|
|
575
|
-
readonly inputSchema: {
|
|
576
|
-
readonly url: z.ZodString;
|
|
577
|
-
readonly options: z.ZodObject<{
|
|
578
|
-
availableOffline: z.ZodBoolean;
|
|
579
|
-
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
580
|
-
pullFilter: z.ZodOptional<z.ZodObject<{
|
|
581
|
-
branch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
582
|
-
documentId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
583
|
-
documentType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
584
|
-
scope: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
585
|
-
}, "strip", z.ZodTypeAny, {
|
|
586
|
-
scope?: string[] | null | undefined;
|
|
587
|
-
documentType?: string[] | null | undefined;
|
|
588
|
-
documentId?: string[] | null | undefined;
|
|
589
|
-
branch?: string[] | null | undefined;
|
|
590
|
-
}, {
|
|
591
|
-
scope?: string[] | null | undefined;
|
|
592
|
-
documentType?: string[] | null | undefined;
|
|
593
|
-
documentId?: string[] | null | undefined;
|
|
594
|
-
branch?: string[] | null | undefined;
|
|
595
|
-
}>>;
|
|
596
|
-
pullInterval: z.ZodOptional<z.ZodNumber>;
|
|
597
|
-
}, "strip", z.ZodTypeAny, {
|
|
598
|
-
availableOffline: boolean;
|
|
599
|
-
sharingType?: string | null | undefined;
|
|
600
|
-
pullFilter?: {
|
|
601
|
-
scope?: string[] | null | undefined;
|
|
602
|
-
documentType?: string[] | null | undefined;
|
|
603
|
-
documentId?: string[] | null | undefined;
|
|
604
|
-
branch?: string[] | null | undefined;
|
|
605
|
-
} | undefined;
|
|
606
|
-
pullInterval?: number | undefined;
|
|
607
|
-
}, {
|
|
608
|
-
availableOffline: boolean;
|
|
609
|
-
sharingType?: string | null | undefined;
|
|
610
|
-
pullFilter?: {
|
|
611
|
-
scope?: string[] | null | undefined;
|
|
612
|
-
documentType?: string[] | null | undefined;
|
|
613
|
-
documentId?: string[] | null | undefined;
|
|
614
|
-
branch?: string[] | null | undefined;
|
|
615
|
-
} | undefined;
|
|
616
|
-
pullInterval?: number | undefined;
|
|
617
|
-
}>;
|
|
618
|
-
};
|
|
619
|
-
readonly outputSchema: {
|
|
620
|
-
readonly drive: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
621
|
-
};
|
|
622
|
-
}];
|
|
623
|
-
export type ReactorMcpTools = ToolRecord<typeof allTools>;
|
|
624
|
-
export declare function createReactorMcpProvider(reactor: IDocumentDriveServer): Promise<{
|
|
625
|
-
tools: ReactorMcpTools;
|
|
626
|
-
resources: {};
|
|
627
|
-
prompts: {};
|
|
628
|
-
}>;
|
|
629
|
-
export {};
|
|
630
|
-
//# sourceMappingURL=reactor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../../src/mcp/reactor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,eAAe;;;;;;;;;CASG,CAAC;AAEhC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBA,CAAC;AAEhC,eAAO,MAAM,gBAAgB;;;;;;;;;CASE,CAAC;AAEhC,eAAO,MAAM,kBAAkB;;;;;;;;;CASA,CAAC;AAEhC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CK,CAAC;AAEhC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDE,CAAC;AAIhC,eAAO,MAAM,aAAa;;;;;;;CAOK,CAAC;AAEhC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CM,CAAC;AAEhC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;CAoBM,CAAC;AAEhC,eAAO,MAAM,eAAe;;;;;;;;;CASG,CAAC;AAEhC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CA,CAAC;AAEhC,KAAK,UAAU,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,IAAI;KAChD,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC,CAAC;CAC5E,CAAC;AAIF,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYJ,CAAC;AAGX,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE1D,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,oBAAoB;;;;GA6H3E"}
|