mcp-squared 0.3.1 → 0.3.3
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/README.md +15 -0
- package/dist/index.js +5 -17
- package/dist/tui/config.js +3521 -0
- package/dist/tui/monitor.js +2144 -0
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -27,6 +27,21 @@ npx mcp-squared --help
|
|
|
27
27
|
npm exec --yes mcp-squared -- --help
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
If you see `Cannot find module '@/version.js'`, check for a stale global install:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
which mcp-squared
|
|
34
|
+
npm ls -g --depth=0 mcp-squared
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`mcp-squared@0.3.0` shipped unresolved `@/...` aliases in `dist/index.js`. Remove the old global package and re-run:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm uninstall -g mcp-squared
|
|
41
|
+
hash -r
|
|
42
|
+
npx --yes mcp-squared@latest --help
|
|
43
|
+
```
|
|
44
|
+
|
|
30
45
|
### Install globally
|
|
31
46
|
|
|
32
47
|
```bash
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __returnValue = (v) => v;
|
|
5
|
-
function __exportSetter(name, newValue) {
|
|
6
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
7
|
-
}
|
|
8
4
|
var __export = (target, all) => {
|
|
9
5
|
for (var name in all)
|
|
10
6
|
__defProp(target, name, {
|
|
11
7
|
get: all[name],
|
|
12
8
|
enumerable: true,
|
|
13
9
|
configurable: true,
|
|
14
|
-
set:
|
|
10
|
+
set: (newValue) => all[name] = () => newValue
|
|
15
11
|
});
|
|
16
12
|
};
|
|
17
13
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -290,36 +286,28 @@ var exports_monitor_loader = {};
|
|
|
290
286
|
__export(exports_monitor_loader, {
|
|
291
287
|
runMonitorTui: () => runMonitorTui
|
|
292
288
|
});
|
|
293
|
-
function getMonitorModuleSpecifier() {
|
|
294
|
-
const modulePath = ["./", "monitor", ".js"].join("");
|
|
295
|
-
const baseUrl = new URL(".", import.meta.url);
|
|
296
|
-
return new URL(modulePath, baseUrl).href;
|
|
297
|
-
}
|
|
298
289
|
async function loadMonitorModule() {
|
|
299
|
-
return import(
|
|
290
|
+
return import(MONITOR_MODULE_SPECIFIER);
|
|
300
291
|
}
|
|
301
292
|
async function runMonitorTui(options = {}) {
|
|
302
293
|
const { runMonitorTui: runMonitor } = await loadMonitorModule();
|
|
303
294
|
return runMonitor(options);
|
|
304
295
|
}
|
|
296
|
+
var MONITOR_MODULE_SPECIFIER = "./tui/monitor.js";
|
|
305
297
|
|
|
306
298
|
// src/tui/config-loader.ts
|
|
307
299
|
var exports_config_loader = {};
|
|
308
300
|
__export(exports_config_loader, {
|
|
309
301
|
runConfigTui: () => runConfigTui
|
|
310
302
|
});
|
|
311
|
-
function getConfigModuleSpecifier() {
|
|
312
|
-
const modulePath = ["./", "config", ".js"].join("");
|
|
313
|
-
const baseUrl = new URL(".", import.meta.url);
|
|
314
|
-
return new URL(modulePath, baseUrl).href;
|
|
315
|
-
}
|
|
316
303
|
function loadConfigModule() {
|
|
317
|
-
return import(
|
|
304
|
+
return import(CONFIG_MODULE_SPECIFIER);
|
|
318
305
|
}
|
|
319
306
|
async function runConfigTui() {
|
|
320
307
|
const { runConfigTui: _run } = await loadConfigModule();
|
|
321
308
|
return _run();
|
|
322
309
|
}
|
|
310
|
+
var CONFIG_MODULE_SPECIFIER = "./tui/config.js";
|
|
323
311
|
|
|
324
312
|
// src/init/runner.ts
|
|
325
313
|
var exports_runner = {};
|