@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/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-NM5CKDUU.js");
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
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  startServer,
22
22
  stopServer
23
- } from "./chunk-PBHUHSC3.js";
23
+ } from "./chunk-X64SFUT5.js";
24
24
  import "./chunk-MN6LCZHZ.js";
25
25
  import {
26
26
  closeDatabase,
@@ -0,0 +1,13 @@
1
+ import {
2
+ app,
3
+ startServer,
4
+ stopServer
5
+ } from "./chunk-JFTBF4JR.js";
6
+ import "./chunk-MN6LCZHZ.js";
7
+ import "./chunk-VY3BLXBW.js";
8
+ import "./chunk-MLKGABMK.js";
9
+ export {
10
+ app,
11
+ startServer,
12
+ stopServer
13
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ app,
3
+ startServer,
4
+ stopServer
5
+ } from "./chunk-X64SFUT5.js";
6
+ import "./chunk-MN6LCZHZ.js";
7
+ import "./chunk-VY3BLXBW.js";
8
+ import "./chunk-MLKGABMK.js";
9
+ export {
10
+ app,
11
+ startServer,
12
+ stopServer
13
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ app,
3
+ startServer,
4
+ stopServer
5
+ } from "./chunk-GOL6FUJL.js";
6
+ import "./chunk-MN6LCZHZ.js";
7
+ import "./chunk-VY3BLXBW.js";
8
+ import "./chunk-MLKGABMK.js";
9
+ export {
10
+ app,
11
+ startServer,
12
+ stopServer
13
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veolab/discoverylab",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "AI-powered app testing & evidence generator - Claude Code Plugin",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",