@colbymchenry/codegraph-darwin-arm64 0.9.4 → 0.9.5
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/lib/dist/bin/codegraph.js +12 -0
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +14 -1
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +15 -2
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +170 -78
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/languages/index.d.ts.map +1 -1
- package/lib/dist/extraction/languages/index.js +2 -0
- package/lib/dist/extraction/languages/index.js.map +1 -1
- package/lib/dist/extraction/languages/objc.d.ts +3 -0
- package/lib/dist/extraction/languages/objc.d.ts.map +1 -0
- package/lib/dist/extraction/languages/objc.js +133 -0
- package/lib/dist/extraction/languages/objc.js.map +1 -0
- package/lib/dist/extraction/tree-sitter-types.d.ts +4 -0
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +82 -5
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/index.d.ts +21 -2
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +33 -0
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/instructions-template.d.ts +2 -2
- package/lib/dist/installer/instructions-template.d.ts.map +1 -1
- package/lib/dist/installer/instructions-template.js +1 -1
- package/lib/dist/mcp/daemon-paths.d.ts +46 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-paths.js +125 -0
- package/lib/dist/mcp/daemon-paths.js.map +1 -0
- package/lib/dist/mcp/daemon.d.ts +161 -0
- package/lib/dist/mcp/daemon.d.ts.map +1 -0
- package/lib/dist/mcp/daemon.js +403 -0
- package/lib/dist/mcp/daemon.js.map +1 -0
- package/lib/dist/mcp/engine.d.ts +100 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -0
- package/lib/dist/mcp/engine.js +291 -0
- package/lib/dist/mcp/engine.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +64 -53
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +307 -387
- package/lib/dist/mcp/index.js.map +1 -1
- package/lib/dist/mcp/proxy.d.ts +46 -0
- package/lib/dist/mcp/proxy.d.ts.map +1 -0
- package/lib/dist/mcp/proxy.js +276 -0
- package/lib/dist/mcp/proxy.js.map +1 -0
- package/lib/dist/mcp/server-instructions.d.ts +1 -1
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +1 -1
- package/lib/dist/mcp/session.d.ts +67 -0
- package/lib/dist/mcp/session.d.ts.map +1 -0
- package/lib/dist/mcp/session.js +276 -0
- package/lib/dist/mcp/session.js.map +1 -0
- package/lib/dist/mcp/tools.d.ts +49 -0
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +239 -14
- package/lib/dist/mcp/tools.js.map +1 -1
- package/lib/dist/mcp/transport.d.ts +111 -29
- package/lib/dist/mcp/transport.d.ts.map +1 -1
- package/lib/dist/mcp/transport.js +181 -71
- package/lib/dist/mcp/transport.js.map +1 -1
- package/lib/dist/mcp/version.d.ts +19 -0
- package/lib/dist/mcp/version.d.ts.map +1 -0
- package/lib/dist/mcp/version.js +71 -0
- package/lib/dist/mcp/version.js.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts +3 -2
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +274 -3
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.d.ts +3 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/expo-modules.js +143 -0
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -0
- package/lib/dist/resolution/frameworks/fabric.d.ts +3 -0
- package/lib/dist/resolution/frameworks/fabric.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/fabric.js +354 -0
- package/lib/dist/resolution/frameworks/fabric.js.map +1 -0
- package/lib/dist/resolution/frameworks/index.d.ts +4 -0
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +21 -1
- package/lib/dist/resolution/frameworks/index.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.d.ts +3 -0
- package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/react-native.js +360 -0
- package/lib/dist/resolution/frameworks/react-native.js.map +1 -0
- package/lib/dist/resolution/frameworks/swift-objc.d.ts +37 -0
- package/lib/dist/resolution/frameworks/swift-objc.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/swift-objc.js +252 -0
- package/lib/dist/resolution/frameworks/swift-objc.js.map +1 -0
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +1 -0
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/swift-objc-bridge.d.ts +134 -0
- package/lib/dist/resolution/swift-objc-bridge.d.ts.map +1 -0
- package/lib/dist/resolution/swift-objc-bridge.js +256 -0
- package/lib/dist/resolution/swift-objc-bridge.js.map +1 -0
- package/lib/dist/sync/index.d.ts +3 -1
- package/lib/dist/sync/index.d.ts.map +1 -1
- package/lib/dist/sync/index.js +7 -1
- package/lib/dist/sync/index.js.map +1 -1
- package/lib/dist/sync/watcher.d.ts +109 -7
- package/lib/dist/sync/watcher.d.ts.map +1 -1
- package/lib/dist/sync/watcher.js +215 -33
- package/lib/dist/sync/watcher.js.map +1 -1
- package/lib/dist/sync/worktree.d.ts +54 -0
- package/lib/dist/sync/worktree.d.ts.map +1 -0
- package/lib/dist/sync/worktree.js +136 -0
- package/lib/dist/sync/worktree.js.map +1 -0
- package/lib/dist/types.d.ts +1 -1
- package/lib/dist/types.d.ts.map +1 -1
- package/lib/dist/types.js +1 -0
- package/lib/dist/types.js.map +1 -1
- package/lib/node_modules/.package-lock.json +29 -1
- package/lib/node_modules/chokidar/LICENSE +21 -0
- package/lib/node_modules/chokidar/README.md +305 -0
- package/lib/node_modules/chokidar/esm/handler.d.ts +90 -0
- package/lib/node_modules/chokidar/esm/handler.js +629 -0
- package/lib/node_modules/chokidar/esm/index.d.ts +215 -0
- package/lib/node_modules/chokidar/esm/index.js +798 -0
- package/lib/node_modules/chokidar/esm/package.json +1 -0
- package/lib/node_modules/chokidar/handler.d.ts +90 -0
- package/lib/node_modules/chokidar/handler.js +635 -0
- package/lib/node_modules/chokidar/index.d.ts +215 -0
- package/lib/node_modules/chokidar/index.js +804 -0
- package/lib/node_modules/chokidar/package.json +69 -0
- package/lib/node_modules/readdirp/LICENSE +21 -0
- package/lib/node_modules/readdirp/README.md +120 -0
- package/lib/node_modules/readdirp/esm/index.d.ts +108 -0
- package/lib/node_modules/readdirp/esm/index.js +257 -0
- package/lib/node_modules/readdirp/esm/package.json +1 -0
- package/lib/node_modules/readdirp/index.d.ts +108 -0
- package/lib/node_modules/readdirp/index.js +263 -0
- package/lib/node_modules/readdirp/package.json +70 -0
- package/lib/package.json +2 -1
- package/package.json +1 -1
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* MCP
|
|
3
|
+
* MCP JSON-RPC Transports
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Two flavors share the same wire format (newline-delimited JSON-RPC 2.0):
|
|
6
|
+
*
|
|
7
|
+
* - `StdioTransport` — original transport; reads/writes the process's
|
|
8
|
+
* stdin/stdout. Used by direct-mode MCP servers.
|
|
9
|
+
* - `SocketTransport` — wraps a single `net.Socket`. Used by the shared-daemon
|
|
10
|
+
* architecture (see {@link ./daemon}) to multiplex multiple MCP clients onto
|
|
11
|
+
* one CodeGraph instance via per-connection sessions.
|
|
12
|
+
*
|
|
13
|
+
* Both implement {@link JsonRpcTransport} so the session-level protocol logic
|
|
14
|
+
* (initialize / tools/list / tools/call, plus server-initiated `roots/list`)
|
|
15
|
+
* is identical regardless of where the bytes come from.
|
|
6
16
|
*/
|
|
7
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
18
|
if (k2 === undefined) k2 = k;
|
|
@@ -38,7 +48,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
48
|
};
|
|
39
49
|
})();
|
|
40
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.StdioTransport = exports.ErrorCodes = void 0;
|
|
51
|
+
exports.SocketTransport = exports.StdioTransport = exports.ErrorCodes = void 0;
|
|
42
52
|
const readline = __importStar(require("readline"));
|
|
43
53
|
// Standard JSON-RPC error codes
|
|
44
54
|
exports.ErrorCodes = {
|
|
@@ -49,48 +59,18 @@ exports.ErrorCodes = {
|
|
|
49
59
|
InternalError: -32603,
|
|
50
60
|
};
|
|
51
61
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
62
|
+
* Shared implementation of newline-delimited JSON-RPC 2.0 over any
|
|
63
|
+
* `Readable`/`Writable` stream pair. Stdio and socket transports both wrap
|
|
64
|
+
* this — the only difference between them is which streams get plugged in
|
|
65
|
+
* and how a "close" propagates back to the owning code.
|
|
55
66
|
*/
|
|
56
|
-
class
|
|
57
|
-
rl = null;
|
|
67
|
+
class LineBasedJsonRpcTransport {
|
|
58
68
|
messageHandler = null;
|
|
59
69
|
// Outstanding server-initiated requests (e.g. roots/list), keyed by the id
|
|
60
70
|
// we sent. Responses from the client are matched back here.
|
|
61
71
|
pending = new Map();
|
|
62
72
|
nextRequestId = 1;
|
|
63
|
-
|
|
64
|
-
* Start listening for messages on stdin
|
|
65
|
-
*/
|
|
66
|
-
start(handler) {
|
|
67
|
-
this.messageHandler = handler;
|
|
68
|
-
this.rl = readline.createInterface({
|
|
69
|
-
input: process.stdin,
|
|
70
|
-
output: process.stdout,
|
|
71
|
-
terminal: false,
|
|
72
|
-
});
|
|
73
|
-
this.rl.on('line', async (line) => {
|
|
74
|
-
await this.handleLine(line);
|
|
75
|
-
});
|
|
76
|
-
this.rl.on('close', () => {
|
|
77
|
-
process.exit(0);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Stop listening
|
|
82
|
-
*/
|
|
83
|
-
stop() {
|
|
84
|
-
// Fail any in-flight server-initiated requests so their awaiters don't hang.
|
|
85
|
-
for (const { reject } of this.pending.values()) {
|
|
86
|
-
reject(new Error('Transport stopped'));
|
|
87
|
-
}
|
|
88
|
-
this.pending.clear();
|
|
89
|
-
if (this.rl) {
|
|
90
|
-
this.rl.close();
|
|
91
|
-
this.rl = null;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
73
|
+
stopped = false;
|
|
94
74
|
/**
|
|
95
75
|
* Send a server-initiated request to the client and await its response.
|
|
96
76
|
*
|
|
@@ -100,7 +80,7 @@ class StdioTransport {
|
|
|
100
80
|
* on timeout so callers can fall back rather than hang forever.
|
|
101
81
|
*/
|
|
102
82
|
request(method, params, timeoutMs = 5000) {
|
|
103
|
-
const id =
|
|
83
|
+
const id = `${this.idPrefix()}-${this.nextRequestId++}`;
|
|
104
84
|
return new Promise((resolve, reject) => {
|
|
105
85
|
const timer = setTimeout(() => {
|
|
106
86
|
this.pending.delete(id);
|
|
@@ -112,49 +92,34 @@ class StdioTransport {
|
|
|
112
92
|
resolve: (value) => { clearTimeout(timer); resolve(value); },
|
|
113
93
|
reject: (error) => { clearTimeout(timer); reject(error); },
|
|
114
94
|
});
|
|
115
|
-
|
|
95
|
+
this.write(JSON.stringify({ jsonrpc: '2.0', id, method, params }));
|
|
116
96
|
});
|
|
117
97
|
}
|
|
118
|
-
/**
|
|
119
|
-
* Send a response
|
|
120
|
-
*/
|
|
121
98
|
send(response) {
|
|
122
|
-
|
|
123
|
-
process.stdout.write(json + '\n');
|
|
99
|
+
this.write(JSON.stringify(response));
|
|
124
100
|
}
|
|
125
|
-
/**
|
|
126
|
-
* Send a notification (no id)
|
|
127
|
-
*/
|
|
128
101
|
notify(method, params) {
|
|
129
|
-
const notification = {
|
|
130
|
-
|
|
131
|
-
method,
|
|
132
|
-
params,
|
|
133
|
-
};
|
|
134
|
-
process.stdout.write(JSON.stringify(notification) + '\n');
|
|
102
|
+
const notification = { jsonrpc: '2.0', method, params };
|
|
103
|
+
this.write(JSON.stringify(notification));
|
|
135
104
|
}
|
|
136
|
-
/**
|
|
137
|
-
* Send a success response
|
|
138
|
-
*/
|
|
139
105
|
sendResult(id, result) {
|
|
140
|
-
this.send({
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
});
|
|
106
|
+
this.send({ jsonrpc: '2.0', id, result });
|
|
107
|
+
}
|
|
108
|
+
sendError(id, code, message, data) {
|
|
109
|
+
this.send({ jsonrpc: '2.0', id, error: { code, message, data } });
|
|
145
110
|
}
|
|
146
111
|
/**
|
|
147
|
-
*
|
|
112
|
+
* Fail any in-flight server-initiated requests so their awaiters don't hang.
|
|
113
|
+
* Called from `stop()` in subclasses.
|
|
148
114
|
*/
|
|
149
|
-
|
|
150
|
-
this.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
});
|
|
115
|
+
rejectPending(reason) {
|
|
116
|
+
for (const { reject } of this.pending.values()) {
|
|
117
|
+
reject(new Error(reason));
|
|
118
|
+
}
|
|
119
|
+
this.pending.clear();
|
|
155
120
|
}
|
|
156
121
|
/**
|
|
157
|
-
* Handle an incoming line of JSON
|
|
122
|
+
* Handle an incoming line of JSON. Both transports feed lines here.
|
|
158
123
|
*/
|
|
159
124
|
async handleLine(line) {
|
|
160
125
|
const trimmed = line.trim();
|
|
@@ -229,5 +194,150 @@ class StdioTransport {
|
|
|
229
194
|
return true;
|
|
230
195
|
}
|
|
231
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Stdio Transport for MCP
|
|
199
|
+
*
|
|
200
|
+
* Reads JSON-RPC messages from stdin and writes responses to stdout. Used by
|
|
201
|
+
* the direct (single-process) MCP server path, where the MCP host launches
|
|
202
|
+
* one server per session and talks to it over the child's stdio. Also used by
|
|
203
|
+
* shared-daemon mode for the launcher's session (with `exitOnClose: false`)
|
|
204
|
+
* so the daemon outlives its launcher.
|
|
205
|
+
*/
|
|
206
|
+
class StdioTransport extends LineBasedJsonRpcTransport {
|
|
207
|
+
rl = null;
|
|
208
|
+
opts;
|
|
209
|
+
constructor(opts = {}) {
|
|
210
|
+
super();
|
|
211
|
+
this.opts = {
|
|
212
|
+
exitOnClose: opts.exitOnClose ?? true,
|
|
213
|
+
onClose: opts.onClose ?? (() => { }),
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
start(handler) {
|
|
217
|
+
this.messageHandler = handler;
|
|
218
|
+
this.rl = readline.createInterface({
|
|
219
|
+
input: process.stdin,
|
|
220
|
+
output: process.stdout,
|
|
221
|
+
terminal: false,
|
|
222
|
+
});
|
|
223
|
+
this.rl.on('line', async (line) => {
|
|
224
|
+
await this.handleLine(line);
|
|
225
|
+
});
|
|
226
|
+
this.rl.on('close', () => {
|
|
227
|
+
this.opts.onClose();
|
|
228
|
+
if (this.opts.exitOnClose) {
|
|
229
|
+
process.exit(0);
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
stop() {
|
|
234
|
+
if (this.stopped)
|
|
235
|
+
return;
|
|
236
|
+
this.stopped = true;
|
|
237
|
+
this.rejectPending('Transport stopped');
|
|
238
|
+
if (this.rl) {
|
|
239
|
+
this.rl.close();
|
|
240
|
+
this.rl = null;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
write(line) {
|
|
244
|
+
process.stdout.write(line + '\n');
|
|
245
|
+
}
|
|
246
|
+
idPrefix() {
|
|
247
|
+
return 'cg-srv';
|
|
248
|
+
}
|
|
249
|
+
}
|
|
232
250
|
exports.StdioTransport = StdioTransport;
|
|
251
|
+
/**
|
|
252
|
+
* Socket Transport for MCP daemon sessions.
|
|
253
|
+
*
|
|
254
|
+
* Wraps a single `net.Socket` (Unix domain socket on POSIX, named pipe on
|
|
255
|
+
* Windows). One instance per connected MCP client. Unlike {@link StdioTransport},
|
|
256
|
+
* `stop()` and stream-close *don't* call `process.exit` — a daemon-side session
|
|
257
|
+
* ending must not bring down the whole daemon.
|
|
258
|
+
*/
|
|
259
|
+
class SocketTransport extends LineBasedJsonRpcTransport {
|
|
260
|
+
socket;
|
|
261
|
+
prefix;
|
|
262
|
+
buffer = '';
|
|
263
|
+
closeHandlers = [];
|
|
264
|
+
constructor(socket, prefix = 'cg-sock') {
|
|
265
|
+
super();
|
|
266
|
+
this.socket = socket;
|
|
267
|
+
this.prefix = prefix;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Register a callback fired exactly once when the socket closes (from either
|
|
271
|
+
* side). Used by the daemon to decrement its connected-clients refcount.
|
|
272
|
+
*/
|
|
273
|
+
onClose(handler) {
|
|
274
|
+
this.closeHandlers.push(handler);
|
|
275
|
+
}
|
|
276
|
+
start(handler) {
|
|
277
|
+
this.messageHandler = handler;
|
|
278
|
+
this.socket.setEncoding('utf8');
|
|
279
|
+
this.socket.on('data', (chunk) => {
|
|
280
|
+
this.buffer += chunk;
|
|
281
|
+
let idx;
|
|
282
|
+
// Drain every complete line; tail-fragment stays in the buffer for the
|
|
283
|
+
// next chunk. The handler is async but we don't await it here — JSON-RPC
|
|
284
|
+
// permits out-of-order responses, and serializing here would deadlock if
|
|
285
|
+
// a handler issued a server-initiated request that needed a *later* line
|
|
286
|
+
// to arrive (e.g. roots/list mid-tools-call).
|
|
287
|
+
while ((idx = this.buffer.indexOf('\n')) !== -1) {
|
|
288
|
+
const line = this.buffer.slice(0, idx);
|
|
289
|
+
this.buffer = this.buffer.slice(idx + 1);
|
|
290
|
+
void this.handleLine(line);
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
this.socket.on('close', () => this.handleSocketClose());
|
|
294
|
+
this.socket.on('error', (err) => {
|
|
295
|
+
// Don't crash the daemon over a broken pipe; just shut this connection.
|
|
296
|
+
process.stderr.write(`[CodeGraph daemon] socket error: ${err.message}\n`);
|
|
297
|
+
this.handleSocketClose();
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
stop() {
|
|
301
|
+
if (this.stopped)
|
|
302
|
+
return;
|
|
303
|
+
this.stopped = true;
|
|
304
|
+
this.rejectPending('Transport stopped');
|
|
305
|
+
if (!this.socket.destroyed) {
|
|
306
|
+
this.socket.end();
|
|
307
|
+
this.socket.destroy();
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Write a one-shot line directly to the socket (no JSON-RPC framing applied
|
|
312
|
+
* by this class — caller produces the line). The daemon uses this for the
|
|
313
|
+
* hello/handshake line that precedes the JSON-RPC stream.
|
|
314
|
+
*/
|
|
315
|
+
writeRaw(line) {
|
|
316
|
+
if (!this.socket.destroyed) {
|
|
317
|
+
this.socket.write(line.endsWith('\n') ? line : line + '\n');
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
write(line) {
|
|
321
|
+
if (!this.socket.destroyed) {
|
|
322
|
+
this.socket.write(line + '\n');
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
idPrefix() {
|
|
326
|
+
return this.prefix;
|
|
327
|
+
}
|
|
328
|
+
handleSocketClose() {
|
|
329
|
+
if (this.stopped)
|
|
330
|
+
return;
|
|
331
|
+
this.stopped = true;
|
|
332
|
+
this.rejectPending('Socket closed');
|
|
333
|
+
for (const h of this.closeHandlers) {
|
|
334
|
+
try {
|
|
335
|
+
h();
|
|
336
|
+
}
|
|
337
|
+
catch { /* never let a close-handler take the daemon down */ }
|
|
338
|
+
}
|
|
339
|
+
this.closeHandlers = [];
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
exports.SocketTransport = SocketTransport;
|
|
233
343
|
//# sourceMappingURL=transport.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/mcp/transport.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/mcp/transport.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mDAAqC;AAyCrC,gCAAgC;AACnB,QAAA,UAAU,GAAG;IACxB,UAAU,EAAE,CAAC,KAAK;IAClB,cAAc,EAAE,CAAC,KAAK;IACtB,cAAc,EAAE,CAAC,KAAK;IACtB,aAAa,EAAE,CAAC,KAAK;IACrB,aAAa,EAAE,CAAC,KAAK;CACb,CAAC;AAmBX;;;;;GAKG;AACH,MAAe,yBAAyB;IAC5B,cAAc,GAA0B,IAAI,CAAC;IACvD,2EAA2E;IAC3E,4DAA4D;IAClD,OAAO,GAAG,IAAI,GAAG,EAGvB,CAAC;IACK,aAAa,GAAG,CAAC,CAAC;IAClB,OAAO,GAAG,KAAK,CAAC;IAO1B;;;;;;;OAOG;IACH,OAAO,CAAC,MAAc,EAAE,MAAgB,EAAE,SAAS,GAAG,IAAI;QACxD,MAAM,EAAE,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC;QACxD,OAAO,IAAI,OAAO,CAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC9C,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC5B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBACxB,MAAM,CAAC,IAAI,KAAK,CAAC,mBAAmB,SAAS,mBAAmB,MAAM,YAAY,CAAC,CAAC,CAAC;YAC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C,CAAC;QAC9D,CAAC;IACH,CAAC;IAES,KAAK,CAAC,IAAY;QAC1B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YAC3B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAES,QAAQ;QAChB,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAEO,iBAAiB;QACvB,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO;QACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACpC,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACnC,IAAI,CAAC;gBAAC,CAAC,EAAE,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC,CAAC,oDAAoD,CAAC,CAAC;QAC7E,CAAC;QACD,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IAC1B,CAAC;CACF;AAnFD,0CAmFC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolved package version, computed once at module load.
|
|
3
|
+
*
|
|
4
|
+
* The version string is the rendezvous datum between cooperating daemon and
|
|
5
|
+
* proxy processes: the daemon advertises its version in the hello line, and
|
|
6
|
+
* the proxy refuses to share IPC across a mismatch (falls back to direct
|
|
7
|
+
* mode). Keeping the resolution in one place avoids drift between the CLI
|
|
8
|
+
* `--version` output (which reads `package.json` directly) and the daemon
|
|
9
|
+
* handshake.
|
|
10
|
+
*
|
|
11
|
+
* Resolution strategy: read the bundled `package.json` two levels up from
|
|
12
|
+
* this file — same relative position whether we're loaded from `src/mcp/` or
|
|
13
|
+
* the `dist/mcp/` output, since `tsc` preserves the layout. If reading fails
|
|
14
|
+
* (e.g. the package was unpacked oddly), fall back to "0.0.0-unknown" — a
|
|
15
|
+
* sentinel that will never match a real version, so the proxy harmlessly
|
|
16
|
+
* falls back to direct mode.
|
|
17
|
+
*/
|
|
18
|
+
export declare const CodeGraphPackageVersion: string;
|
|
19
|
+
//# sourceMappingURL=version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/mcp/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAmBH,eAAO,MAAM,uBAAuB,QAAuB,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Resolved package version, computed once at module load.
|
|
4
|
+
*
|
|
5
|
+
* The version string is the rendezvous datum between cooperating daemon and
|
|
6
|
+
* proxy processes: the daemon advertises its version in the hello line, and
|
|
7
|
+
* the proxy refuses to share IPC across a mismatch (falls back to direct
|
|
8
|
+
* mode). Keeping the resolution in one place avoids drift between the CLI
|
|
9
|
+
* `--version` output (which reads `package.json` directly) and the daemon
|
|
10
|
+
* handshake.
|
|
11
|
+
*
|
|
12
|
+
* Resolution strategy: read the bundled `package.json` two levels up from
|
|
13
|
+
* this file — same relative position whether we're loaded from `src/mcp/` or
|
|
14
|
+
* the `dist/mcp/` output, since `tsc` preserves the layout. If reading fails
|
|
15
|
+
* (e.g. the package was unpacked oddly), fall back to "0.0.0-unknown" — a
|
|
16
|
+
* sentinel that will never match a real version, so the proxy harmlessly
|
|
17
|
+
* falls back to direct mode.
|
|
18
|
+
*/
|
|
19
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
22
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
24
|
+
}
|
|
25
|
+
Object.defineProperty(o, k2, desc);
|
|
26
|
+
}) : (function(o, m, k, k2) {
|
|
27
|
+
if (k2 === undefined) k2 = k;
|
|
28
|
+
o[k2] = m[k];
|
|
29
|
+
}));
|
|
30
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
31
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
32
|
+
}) : function(o, v) {
|
|
33
|
+
o["default"] = v;
|
|
34
|
+
});
|
|
35
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
36
|
+
var ownKeys = function(o) {
|
|
37
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
38
|
+
var ar = [];
|
|
39
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
40
|
+
return ar;
|
|
41
|
+
};
|
|
42
|
+
return ownKeys(o);
|
|
43
|
+
};
|
|
44
|
+
return function (mod) {
|
|
45
|
+
if (mod && mod.__esModule) return mod;
|
|
46
|
+
var result = {};
|
|
47
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
48
|
+
__setModuleDefault(result, mod);
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
})();
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.CodeGraphPackageVersion = void 0;
|
|
54
|
+
const fs = __importStar(require("fs"));
|
|
55
|
+
const path = __importStar(require("path"));
|
|
56
|
+
function readPackageVersion() {
|
|
57
|
+
try {
|
|
58
|
+
const pkgPath = path.join(__dirname, '..', '..', 'package.json');
|
|
59
|
+
const raw = fs.readFileSync(pkgPath, 'utf8');
|
|
60
|
+
const parsed = JSON.parse(raw);
|
|
61
|
+
if (typeof parsed?.version === 'string' && parsed.version.length > 0) {
|
|
62
|
+
return parsed.version;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
// Fall through to sentinel.
|
|
67
|
+
}
|
|
68
|
+
return '0.0.0-unknown';
|
|
69
|
+
}
|
|
70
|
+
exports.CodeGraphPackageVersion = readPackageVersion();
|
|
71
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/mcp/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2CAA6B;AAE7B,SAAS,kBAAkB;IACzB,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,OAAO,MAAM,EAAE,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrE,OAAO,MAAM,CAAC,OAAO,CAAC;QACxB,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,4BAA4B;IAC9B,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAEY,QAAA,uBAAuB,GAAG,kBAAkB,EAAE,CAAC"}
|
|
@@ -2,8 +2,9 @@ import type { QueryBuilder } from '../db/queries';
|
|
|
2
2
|
import type { ResolutionContext } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Synthesize dispatcher→callback edges (field observers + EventEmitters +
|
|
5
|
-
* React re-render + JSX children + Vue templates
|
|
6
|
-
*
|
|
5
|
+
* React re-render + JSX children + Vue templates + RN event channel +
|
|
6
|
+
* Fabric native-impl). Returns the count added. Never throws into
|
|
7
|
+
* indexing — callers wrap in try/catch.
|
|
7
8
|
*/
|
|
8
9
|
export declare function synthesizeCallbackEdges(queries: QueryBuilder, ctx: ResolutionContext): number;
|
|
9
10
|
//# sourceMappingURL=callback-synthesizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback-synthesizer.d.ts","sourceRoot":"","sources":["../../src/resolution/callback-synthesizer.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"callback-synthesizer.d.ts","sourceRoot":"","sources":["../../src/resolution/callback-synthesizer.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgvBjD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAiC7F"}
|