integral-mind 0.1.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 +52 -0
- package/dist/cli.js +945 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.js +82 -0
- package/dist/client.js.map +1 -0
- package/dist/config.js +75 -0
- package/dist/config.js.map +1 -0
- package/dist/docs.js +188 -0
- package/dist/docs.js.map +1 -0
- package/dist/exit.js +10 -0
- package/dist/exit.js.map +1 -0
- package/dist/hooks.js +261 -0
- package/dist/hooks.js.map +1 -0
- package/dist/redact.js +77 -0
- package/dist/redact.js.map +1 -0
- package/dist/sync/cli.js +431 -0
- package/dist/sync/cli.js.map +1 -0
- package/dist/sync/mempalace-source.js +136 -0
- package/dist/sync/mempalace-source.js.map +1 -0
- package/dist/sync/mempalace.js +215 -0
- package/dist/sync/mempalace.js.map +1 -0
- package/dist/sync/obsidian-source.js +30 -0
- package/dist/sync/obsidian-source.js.map +1 -0
- package/dist/sync/obsidian.js +52 -0
- package/dist/sync/obsidian.js.map +1 -0
- package/dist/sync/repo-source.js +43 -0
- package/dist/sync/repo-source.js.map +1 -0
- package/dist/sync/repo.js +51 -0
- package/dist/sync/repo.js.map +1 -0
- package/dist/sync/state.js +87 -0
- package/dist/sync/state.js.map +1 -0
- package/dist/sync/tree-sync.js +56 -0
- package/dist/sync/tree-sync.js.map +1 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# integral-mind
|
|
2
|
+
|
|
3
|
+
CLI for [Integral Mind](https://github.com/nutter96/Integral-Mind) — push sessions, text, files, and URLs into your self-hosted knowledge base, search it, and inspect it over HTTPS. A thin HTTP client: no database, no parsers, one dependency.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g integral-mind
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires Node 20+. Installs two identical bins: `im` and `integral-mind`. Works on Linux, macOS, and Windows (the `sync repo` connector additionally needs `git` on PATH).
|
|
12
|
+
|
|
13
|
+
## Quickstart
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
im config set url https://your-instance.example.com
|
|
17
|
+
im config set token imk_... # create one in the webapp: Settings → MCP tokens
|
|
18
|
+
|
|
19
|
+
im push text "First captured note"
|
|
20
|
+
im search "captured"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Environment variables `INTEGRAL_MIND_URL` and `INTEGRAL_MIND_TOKEN` override the config file, so headless/CI use needs no file at all.
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
im config set <url|token> <value> Store connection settings
|
|
29
|
+
im config show Show effective config and its sources
|
|
30
|
+
im push session [options] Push a session envelope (redacted by default)
|
|
31
|
+
im push text|file|url|youtube ... Capture content
|
|
32
|
+
im search <query> [options] Hybrid search (--type --after --before --code --sessions)
|
|
33
|
+
im sync <connector> [options] Delta-sync a machine-local source (mempalace, obsidian, repo)
|
|
34
|
+
im recent / im stats Recently ingested sources / corpus statistics
|
|
35
|
+
im projects|sources|tokens ... Admin operations (admin token)
|
|
36
|
+
im hooks install claude Auto-push Claude Code sessions at session end
|
|
37
|
+
im docs Print the full manual
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Run `im docs` for the canonical manual, or `im docs --drop-in` for an AGENTS.md block you can paste into a repo.
|
|
41
|
+
|
|
42
|
+
## Notes for Windows
|
|
43
|
+
|
|
44
|
+
The config file lives at `~/.config/integral-mind/config.json` on every platform (that is `C:\Users\you\.config\integral-mind\` on Windows). On POSIX systems it is written mode `0600` because it holds a bearer token; on Windows the default location inherits your profile directory's per-user ACL instead. If you point `INTEGRAL_MIND_CONFIG_DIR` somewhere outside your profile on Windows, securing that directory is up to you — the CLI does not inspect ACLs.
|
|
45
|
+
|
|
46
|
+
## Exit codes
|
|
47
|
+
|
|
48
|
+
`0` success · `1` runtime failure · `2` usage error · `3` auth failure · `4` not found · `5` validation rejected
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
MIT
|