@veolab/discoverylab 0.1.0 → 0.1.2
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/LICENSE +21 -0
- package/README.md +63 -193
- package/dist/chunk-GOL6FUJL.js +6045 -0
- package/dist/chunk-JFTBF4JR.js +6040 -0
- package/dist/chunk-X64SFUT5.js +6099 -0
- package/dist/cli.js +31 -1
- package/dist/index.js +1 -1
- package/dist/server-2DXLKLFM.js +13 -0
- package/dist/server-G2SY3DOS.js +13 -0
- package/dist/server-OESJUEYC.js +13 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ program.command("serve").description("Start the DiscoveryLab web UI server").opt
|
|
|
11
11
|
console.log(chalk.cyan("\n DiscoveryLab"));
|
|
12
12
|
console.log(chalk.gray(" AI-powered app testing & evidence generator\n"));
|
|
13
13
|
try {
|
|
14
|
-
const { startServer } = await import("./server-
|
|
14
|
+
const { startServer } = await import("./server-G2SY3DOS.js");
|
|
15
15
|
await startServer(port);
|
|
16
16
|
console.log(chalk.green(` Server running at http://localhost:${port}`));
|
|
17
17
|
console.log(chalk.gray(" Press Ctrl+C to stop\n"));
|
|
@@ -76,6 +76,36 @@ program.command("init").description("Initialize DiscoveryLab data directories").
|
|
|
76
76
|
process.exit(1);
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
+
program.command("install").description("Install DiscoveryLab as Claude Code MCP server").action(async () => {
|
|
80
|
+
const { homedir } = await import("os");
|
|
81
|
+
const { existsSync, readFileSync, writeFileSync } = await import("fs");
|
|
82
|
+
const { join } = await import("path");
|
|
83
|
+
const claudeConfigPath = join(homedir(), ".claude.json");
|
|
84
|
+
console.log(chalk.cyan("\n Installing DiscoveryLab MCP...\n"));
|
|
85
|
+
try {
|
|
86
|
+
let config = {};
|
|
87
|
+
if (existsSync(claudeConfigPath)) {
|
|
88
|
+
const content = readFileSync(claudeConfigPath, "utf-8");
|
|
89
|
+
config = JSON.parse(content);
|
|
90
|
+
}
|
|
91
|
+
if (!config.mcpServers) {
|
|
92
|
+
config.mcpServers = {};
|
|
93
|
+
}
|
|
94
|
+
config.mcpServers.discoverylab = {
|
|
95
|
+
command: "npx",
|
|
96
|
+
args: ["-y", "@veolab/discoverylab@latest", "mcp"]
|
|
97
|
+
};
|
|
98
|
+
writeFileSync(claudeConfigPath, JSON.stringify(config, null, 2));
|
|
99
|
+
console.log(chalk.green(" \u2713 Added to ~/.claude.json"));
|
|
100
|
+
console.log();
|
|
101
|
+
console.log(chalk.white(" Restart Claude Code to activate."));
|
|
102
|
+
console.log(chalk.gray(" Or run: discoverylab serve"));
|
|
103
|
+
console.log();
|
|
104
|
+
} catch (error) {
|
|
105
|
+
console.error(chalk.red(` Failed to install: ${error}`));
|
|
106
|
+
process.exit(1);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
79
109
|
program.command("mcp").description("Run as MCP server (for Claude Code integration)").action(async () => {
|
|
80
110
|
try {
|
|
81
111
|
const { getDatabase } = await import("./db-IWIL65EX.js");
|
package/dist/index.js
CHANGED