exomind 0.4.2 → 0.5.0
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 +17 -8
- package/dist/cli.js +259 -72
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/skill/codex/SKILL.md +49 -0
- /package/skill/{SKILL.md → claude/SKILL.md} +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: exomind
|
|
3
|
+
description: Use ExoMind to save, ingest, import, search, query, and retrieve knowledge. Trigger when the user asks to remember, archive, save, ingest, import, search, query, or review knowledge, including shorthand commands such as "jdit", "存档", "记住这个", "保存到 ExoMind", "导入", and "查询知识库". Also use it when durable lessons, architectural decisions, investigation results, or root causes should be persisted. Treat these explicit save/import commands as authorization for that write. Do not silently write ordinary conversation to ExoMind. For a directory or multiple files, use one directory ingest command instead of reading or ingesting files individually.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ExoMind (Codex)
|
|
7
|
+
|
|
8
|
+
ExoMind is a remote knowledge base. Use it to persist durable knowledge and to recall prior knowledge. Prefer the ExoMind MCP tools; fall back to the `exomind` CLI when MCP is unavailable or the operation is CLI-only (e.g. directory ingestion).
|
|
9
|
+
|
|
10
|
+
## Authorization (important)
|
|
11
|
+
|
|
12
|
+
- Explicit requests — `jdit`, `存档`, `记住这个`, `保存到 ExoMind`, `导入`, `写入知识库` — authorize THAT write. Proceed.
|
|
13
|
+
- Do NOT call a write/ingest for ordinary Q&A with no save intent. You may suggest saving if something is durable.
|
|
14
|
+
- Preserve all Codex tool approvals, sandbox, and host security checks. A user's "jdit" is business authorization, not a reason to bypass host-level confirmations.
|
|
15
|
+
- Read-only retrieval (query / search / entity / relations / stats) may be used whenever the user asks to recall, search, review, or check prior knowledge.
|
|
16
|
+
|
|
17
|
+
## Tools — MCP first, CLI fallback
|
|
18
|
+
|
|
19
|
+
ExoMind MCP tools (when configured): `mcp__exomind__ingest`, `mcp__exomind__query`, `mcp__exomind__search`, `mcp__exomind__entity`, `mcp__exomind__relations`, `mcp__exomind__stats`.
|
|
20
|
+
|
|
21
|
+
| intent | preferred | fallback | write auth? |
|
|
22
|
+
|---|---|---|---|
|
|
23
|
+
| save one item / `jdit` | MCP `ingest` | `exomind ingest "..." -t "title" --tag x` | yes (the command authorizes) |
|
|
24
|
+
| import a single file | — | `exomind ingest --file <path> -t "title"` | yes |
|
|
25
|
+
| import a directory / many files | — | `exomind ingest --dir <path> [--recursive]` (CLI-only; incremental, skips unchanged) | yes |
|
|
26
|
+
| Q&A over the KB | MCP `query` | `exomind query "..."` | no (read) |
|
|
27
|
+
| keyword search | MCP `search` | `exomind search "..."` | no |
|
|
28
|
+
| entity / relations | MCP `entity` / `relations` | `exomind entity X` / `exomind relations X` | no |
|
|
29
|
+
| stats | MCP `stats` | `exomind stats` | no |
|
|
30
|
+
|
|
31
|
+
Note: MCP `ingest` accepts plain text only (no file/dir). For files or directories, use the CLI.
|
|
32
|
+
|
|
33
|
+
## Saving conversation knowledge (on `jdit` / `存档`)
|
|
34
|
+
|
|
35
|
+
1. Extract only durable conclusions, decisions, procedures, lessons, or root causes from the relevant conversation.
|
|
36
|
+
2. Drop filler, secrets, credentials, and unrelated content.
|
|
37
|
+
3. Compose a descriptive title + focused tags.
|
|
38
|
+
4. Call ingest ONCE per coherent item; split only for genuinely independent topics.
|
|
39
|
+
5. Report the actual result — do not claim success if the tool failed or was cancelled.
|
|
40
|
+
|
|
41
|
+
## Directory ingestion
|
|
42
|
+
|
|
43
|
+
- ONE `exomind ingest --dir <path>` command. Do not pre-read every file, do not concatenate, do not ingest file-by-file.
|
|
44
|
+
- Incremental by default (unchanged files skipped). Use `--force` only if the user explicitly wants a full refresh.
|
|
45
|
+
- Synchronous; may take minutes on weak servers. Wait and report added / updated / skipped / failed counts.
|
|
46
|
+
|
|
47
|
+
## Auth
|
|
48
|
+
|
|
49
|
+
If a call fails with "未登录" / 401: tell the user to run `exomind login` (or create an API Key at the ExoMind console). Never ask the user to paste an API key into chat.
|
|
File without changes
|