@omem-ai/cli 0.0.0-stage → 0.0.1

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.
Files changed (3) hide show
  1. package/README.md +23 -2
  2. package/dist/omem.js +17634 -0
  3. package/package.json +26 -4
package/README.md CHANGED
@@ -1,3 +1,24 @@
1
- # Temporary Holding Version
1
+ # @omem-ai/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 在自己的电脑上用一台远程的 omem:在终端里调它的工具,或者把它作为 MCP 服务接给 Claude Code、Codex 这类 Agent。工具以你自己的身份运行,只能用你看得到的空间。
4
+
5
+ 这个包只有一个文件,不带依赖,不含服务端(向量、飞书、Agent 运行、网页)。要在本机运行 omem 服务、用本机的库,请装完整版 `@omem-ai/app`。两个包的命令都叫 `omem`,同一台机器上装一个就行:完整版也有下面这些命令。
6
+
7
+ ```bash
8
+ npm install -g @omem-ai/cli # Node 20 以上
9
+ ```
10
+
11
+ ```bash
12
+ omem login https://omem.example.com # 浏览器里登录并确认,拿到只属于你的令牌,记成一个远程地址
13
+ omem tool list_spaces # 调用工具;omem tool help [工具名|分组] 看说明
14
+ omem tool search query=退款 space=proj-a
15
+ claude mcp add omem -- omem mcp # 给 Claude Code 接上(默认远程地址;也可 --remote <名字> / --url <地址>)
16
+ omem open /wiki # 在浏览器里打开远程 omem,直接登录
17
+ omem remote add|list|default|rm # 管理记下的远程地址(~/.omem/client.json)
18
+ ```
19
+
20
+ 凭据按顺序取:环境变量 `OMEM_TOKEN`、`OMEM_AUTH_CMD`(一条输出凭据的命令,比如组织登录体系的 JWT,需要服务端装了对应的鉴权插件)、`omem login` 存下的令牌。地址按顺序取:`--url`、`--remote`、`OMEM_URL`、默认远程地址。
21
+
22
+ `--space`、`--spaces`、`--read-only` 限定默认空间、可用空间和只读;`--session`、`--agent`、`--model`、`--effort` 登记到对方运行页上的会话和 Agent 信息。
23
+
24
+ 设计见仓库里的 docs/v2/remote-clients.md。