@cohaku/cli 0.2.9 → 0.2.10
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/{chunk-XJ56C4HL.js → chunk-L63I4DKW.js} +1 -1
- package/dist/{chunk-RXWVUSUF.js → chunk-NB6QOARI.js} +1 -1
- package/dist/{chunk-TZ2L3ECW.js → chunk-O5TCSRSD.js} +2 -2
- package/dist/{chunk-JRHHXNCR.js → chunk-YNSEADV6.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/{init-ES444NMA.js → init-UZICSKDK.js} +2 -2
- package/dist/{mcp-TEONTYV5.js → mcp-HPHXYCLI.js} +3 -3
- package/dist/{serve-TZE6R6A4.js → serve-3SE3ZUHO.js} +2 -2
- package/dist/{start-Z4WADK62.js → start-IO2DUWXP.js} +4 -4
- package/dist/{status-NDCORO6Z.js → status-T54UJ2L2.js} +1 -1
- package/package.json +3 -2
|
@@ -12,9 +12,9 @@ function hasClaude() {
|
|
|
12
12
|
}
|
|
13
13
|
function isClaudeMcpRegistered() {
|
|
14
14
|
try {
|
|
15
|
-
const output = execSync("claude mcp list", {
|
|
15
|
+
const output = execSync("claude mcp list 2>&1", {
|
|
16
16
|
encoding: "utf-8",
|
|
17
|
-
|
|
17
|
+
shell: "/bin/sh"
|
|
18
18
|
});
|
|
19
19
|
return output.includes("cohaku");
|
|
20
20
|
} catch {
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__commonJS,
|
|
6
6
|
__require,
|
|
7
7
|
__toESM
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NB6QOARI.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/error.js
|
|
11
11
|
var require_error = __commonJS({
|
|
@@ -3461,23 +3461,23 @@ var {
|
|
|
3461
3461
|
var program2 = new Command();
|
|
3462
3462
|
program2.name("cohaku").description("Cohaku AI \u2014 persistent memory layer for coding agents").version(VERSION);
|
|
3463
3463
|
program2.command("init").description("Initialize Cohaku for this project").action(async () => {
|
|
3464
|
-
const { initCommand } = await import("./init-
|
|
3464
|
+
const { initCommand } = await import("./init-UZICSKDK.js");
|
|
3465
3465
|
await initCommand();
|
|
3466
3466
|
});
|
|
3467
3467
|
program2.command("mcp").description("Start MCP server (stdio transport)").action(async () => {
|
|
3468
|
-
const { mcpCommand } = await import("./mcp-
|
|
3468
|
+
const { mcpCommand } = await import("./mcp-HPHXYCLI.js");
|
|
3469
3469
|
await mcpCommand();
|
|
3470
3470
|
});
|
|
3471
3471
|
program2.command("start").description("Start MCP server + dashboard together").option("-p, --port <port>", "Dashboard port", String(24200)).action(async (opts) => {
|
|
3472
|
-
const { startCommand } = await import("./start-
|
|
3472
|
+
const { startCommand } = await import("./start-IO2DUWXP.js");
|
|
3473
3473
|
await startCommand({ port: Number(opts.port) });
|
|
3474
3474
|
});
|
|
3475
3475
|
program2.command("serve").description("Start HTTP API server with dashboard (no MCP)").option("-p, --port <port>", "Port number", String(24200)).action(async (opts) => {
|
|
3476
|
-
const { serveCommand } = await import("./serve-
|
|
3476
|
+
const { serveCommand } = await import("./serve-3SE3ZUHO.js");
|
|
3477
3477
|
await serveCommand({ port: Number(opts.port) });
|
|
3478
3478
|
});
|
|
3479
3479
|
program2.command("status").description("Show current status and memory statistics").action(async () => {
|
|
3480
|
-
const { statusCommand } = await import("./status-
|
|
3480
|
+
const { statusCommand } = await import("./status-T54UJ2L2.js");
|
|
3481
3481
|
await statusCommand();
|
|
3482
3482
|
});
|
|
3483
3483
|
program2.parse();
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
hasClaude,
|
|
4
4
|
isClaudeMcpRegistered,
|
|
5
5
|
registerMcp
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O5TCSRSD.js";
|
|
7
7
|
import {
|
|
8
8
|
createEngine
|
|
9
9
|
} from "./chunk-HUMYWLCL.js";
|
|
10
10
|
import {
|
|
11
11
|
VERSION
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NB6QOARI.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/init.ts
|
|
15
15
|
var c = {
|
|
@@ -2,15 +2,15 @@ import { createRequire } from 'module'; const require = createRequire(import.met
|
|
|
2
2
|
import {
|
|
3
3
|
StdioServerTransport,
|
|
4
4
|
createServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YNSEADV6.js";
|
|
6
6
|
import {
|
|
7
7
|
checkForUpdate,
|
|
8
8
|
printBanner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L63I4DKW.js";
|
|
10
10
|
import {
|
|
11
11
|
createEngine
|
|
12
12
|
} from "./chunk-HUMYWLCL.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-NB6QOARI.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/mcp.ts
|
|
16
16
|
async function mcpCommand() {
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
checkForUpdate,
|
|
8
8
|
printBanner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L63I4DKW.js";
|
|
10
10
|
import {
|
|
11
11
|
createEngine
|
|
12
12
|
} from "./chunk-HUMYWLCL.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-NB6QOARI.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/serve.ts
|
|
16
16
|
import { join, dirname } from "path";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
hasClaude,
|
|
4
4
|
isClaudeMcpRegistered,
|
|
5
5
|
registerMcp
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O5TCSRSD.js";
|
|
7
7
|
import {
|
|
8
8
|
StdioServerTransport,
|
|
9
9
|
createServer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YNSEADV6.js";
|
|
11
11
|
import {
|
|
12
12
|
createApi,
|
|
13
13
|
serve
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
checkForUpdate,
|
|
17
17
|
printBanner
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L63I4DKW.js";
|
|
19
19
|
import {
|
|
20
20
|
createEngine
|
|
21
21
|
} from "./chunk-HUMYWLCL.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-NB6QOARI.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/start.ts
|
|
25
25
|
import { join, dirname } from "path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cohaku/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "CLI for Cohaku AI \u2014 persistent memory layer for coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@cohaku/api": "workspace:*",
|
|
40
|
-
"@cohaku/dashboard": "workspace:*",
|
|
41
40
|
"@cohaku/core": "workspace:*",
|
|
41
|
+
"@cohaku/dashboard": "workspace:*",
|
|
42
42
|
"@cohaku/mcp": "workspace:*",
|
|
43
43
|
"@cohaku/shared": "workspace:*",
|
|
44
44
|
"@hono/node-server": "^1.14.0",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"nanoid": "^5.1.6",
|
|
51
51
|
"tsup": "^8.5.0",
|
|
52
52
|
"typescript": "^5.7.0",
|
|
53
|
+
"vitest": "^4.0.18",
|
|
53
54
|
"zod": "^4.3.6"
|
|
54
55
|
}
|
|
55
56
|
}
|