ex-brain 0.2.1 → 0.2.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 +5 -1
- package/package.json +1 -1
- package/src/commands/index.ts +4 -0
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
CLI personal knowledge base built on [seekdb](https://docs.seekdb.ai/), featuring page management, hybrid search, timelines, tags, import/export, and MCP Server.
|
|
4
4
|
|
|
5
|
+
## Demo
|
|
6
|
+
|
|
7
|
+
<video controls="true" width="800" height="438"><source src="https://obcommunityprod.oss-cn-shanghai.aliyuncs.com/prod/blog/2026-04/6aaf141a-75e6-4557-a37d-58036f52fb35.mp4" type="video/mp4"></video>
|
|
8
|
+
|
|
5
9
|
## Core Features
|
|
6
10
|
|
|
7
11
|
- **Knowledge Graph Visualization** - Interactive graph showing entity relationships
|
|
@@ -142,4 +146,4 @@ Configure LLM in `~/.ebrain/settings.json`:
|
|
|
142
146
|
bun install
|
|
143
147
|
bun run src/cli.ts --help
|
|
144
148
|
bun test
|
|
145
|
-
```
|
|
149
|
+
```
|
package/package.json
CHANGED
package/src/commands/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { basename, resolve } from "node:path";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
2
3
|
import { Command } from "commander";
|
|
3
4
|
import { DEFAULT_DB_NAME, inferTypeFromSlug, slugToTitle, normalizeLongSlug, slugify } from "../config";
|
|
4
5
|
import { BrainDb } from "../db/client";
|
|
@@ -168,8 +169,11 @@ async function resolveInput(
|
|
|
168
169
|
// ---------------------------------------------------------------------------
|
|
169
170
|
|
|
170
171
|
export function buildProgram(): Command {
|
|
172
|
+
const pkgPath = new URL("../../package.json", import.meta.url);
|
|
173
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
171
174
|
const program = new Command("ebrain")
|
|
172
175
|
.description("Personal knowledge base CLI powered by seekdb")
|
|
176
|
+
.version(pkg.version, "-V, --version", "output the version number")
|
|
173
177
|
.addHelpText(
|
|
174
178
|
"after",
|
|
175
179
|
`
|