prodboard 0.1.2 → 0.1.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/CHANGELOG.md +6 -0
- package/README.md +1 -4
- package/package.json +1 -1
- package/src/commands/install.ts +3 -2
- package/src/index.ts +0 -1
- package/src/mcp.ts +6 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -25,10 +25,7 @@ Cron Daemon ──┘
|
|
|
25
25
|
# Install
|
|
26
26
|
bun install -g prodboard
|
|
27
27
|
|
|
28
|
-
#
|
|
29
|
-
prodboard init
|
|
30
|
-
|
|
31
|
-
# Connect Claude Code to the board
|
|
28
|
+
# Connect Claude Code to the board (auto-initializes on first use)
|
|
32
29
|
claude mcp add prodboard -- bunx prodboard mcp
|
|
33
30
|
```
|
|
34
31
|
|
package/package.json
CHANGED
package/src/commands/install.ts
CHANGED
|
@@ -71,7 +71,8 @@ export async function install(args: string[]): Promise<void> {
|
|
|
71
71
|
const alreadyInstalled = fs.existsSync(SERVICE_PATH);
|
|
72
72
|
|
|
73
73
|
if (alreadyInstalled && !flags.force) {
|
|
74
|
-
console.log("prodboard is already installed as a systemd service.");
|
|
74
|
+
console.log("prodboard is already installed as a systemd service. Restarting...");
|
|
75
|
+
await runSystemctl("restart", SERVICE_NAME);
|
|
75
76
|
const { stdout } = await runSystemctl("status", SERVICE_NAME);
|
|
76
77
|
console.log(stdout);
|
|
77
78
|
return;
|
|
@@ -99,7 +100,7 @@ export async function install(args: string[]): Promise<void> {
|
|
|
99
100
|
process.exit(1);
|
|
100
101
|
}
|
|
101
102
|
|
|
102
|
-
const start = await runSystemctl("
|
|
103
|
+
const start = await runSystemctl("restart", SERVICE_NAME);
|
|
103
104
|
if (start.exitCode !== 0) {
|
|
104
105
|
console.error("Failed to start service:", start.stderr);
|
|
105
106
|
process.exit(1);
|
package/src/index.ts
CHANGED
package/src/mcp.ts
CHANGED
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
ReadResourceRequestSchema,
|
|
8
8
|
} from "@modelcontextprotocol/sdk/types.js";
|
|
9
9
|
import { Database } from "bun:sqlite";
|
|
10
|
+
import { existsSync } from "fs";
|
|
10
11
|
import { ensureDb } from "./db.ts";
|
|
11
|
-
import { loadConfig } from "./config.ts";
|
|
12
|
+
import { loadConfig, PRODBOARD_DIR } from "./config.ts";
|
|
12
13
|
import {
|
|
13
14
|
createIssue, getIssueByPrefix, listIssues, updateIssue,
|
|
14
15
|
deleteIssue, getIssueCounts, validateStatus, resolveIssueId,
|
|
@@ -432,6 +433,10 @@ export async function handleListRuns(db: Database, params: any) {
|
|
|
432
433
|
}
|
|
433
434
|
|
|
434
435
|
export async function startMcpServer(): Promise<void> {
|
|
436
|
+
if (!existsSync(PRODBOARD_DIR)) {
|
|
437
|
+
const { init } = await import("./commands/init.ts");
|
|
438
|
+
await init([]);
|
|
439
|
+
}
|
|
435
440
|
const db = ensureDb();
|
|
436
441
|
const config = loadConfig();
|
|
437
442
|
const pkg = await import("../package.json");
|