@dofy/namo 0.6.2 → 0.7.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.
- package/README.md +8 -4
- package/README.zh-CN.md +8 -4
- package/dist/scripts/smoke-skills.js +2 -4
- package/dist/scripts/smoke-skills.js.map +1 -1
- package/dist/src/agent-registry.js +46 -9
- package/dist/src/agent-registry.js.map +1 -1
- package/dist/src/agents.js +60 -8
- package/dist/src/agents.js.map +1 -1
- package/dist/src/auto-memory.js +1 -1
- package/dist/src/cards.js +1 -1
- package/dist/src/cards.js.map +1 -1
- package/dist/src/claude-runtime.js +331 -0
- package/dist/src/claude-runtime.js.map +1 -0
- package/dist/src/cli.js +5 -4
- package/dist/src/cli.js.map +1 -1
- package/dist/src/codex-connection.js +10 -1
- package/dist/src/codex-connection.js.map +1 -1
- package/dist/src/daily-turns.js +56 -0
- package/dist/src/daily-turns.js.map +1 -0
- package/dist/src/doctor.js +3 -3
- package/dist/src/doctor.js.map +1 -1
- package/dist/src/engine.js +164 -75
- package/dist/src/engine.js.map +1 -1
- package/dist/src/external-wait-bridge.js +1 -3
- package/dist/src/external-wait-bridge.js.map +1 -1
- package/dist/src/external-waits.js +13 -12
- package/dist/src/external-waits.js.map +1 -1
- package/dist/src/feedback.js +27 -11
- package/dist/src/feedback.js.map +1 -1
- package/dist/src/image-inputs.js +1 -0
- package/dist/src/image-inputs.js.map +1 -1
- package/dist/src/live-upgrade.js +1 -1
- package/dist/src/live-upgrade.js.map +1 -1
- package/dist/src/locales/en.js +61 -20
- package/dist/src/locales/en.js.map +1 -1
- package/dist/src/locales/zh-CN.js +61 -20
- package/dist/src/locales/zh-CN.js.map +1 -1
- package/dist/src/management.js +84 -16
- package/dist/src/management.js.map +1 -1
- package/dist/src/memory-extractor.js +2 -2
- package/dist/src/memory-extractor.js.map +1 -1
- package/dist/src/onboarding.js +28 -10
- package/dist/src/onboarding.js.map +1 -1
- package/dist/src/prompts.js +1 -1
- package/dist/src/prompts.js.map +1 -1
- package/dist/src/runner-worker.js +5 -6
- package/dist/src/runner-worker.js.map +1 -1
- package/dist/src/runner.js +11 -1
- package/dist/src/runner.js.map +1 -1
- package/dist/src/runtime-config.js +5 -1
- package/dist/src/runtime-config.js.map +1 -1
- package/dist/src/runtime.js +1 -1
- package/dist/src/tasks.js +35 -3
- package/dist/src/tasks.js.map +1 -1
- package/dist/src/ui.js +1 -1
- package/dist/src/ui.js.map +1 -1
- package/dist/ui/assets/index-CcbYEcXS.js +133 -0
- package/dist/ui/assets/{index-CJAhDqDy.css → index-Cks2QULV.css} +1 -1
- package/dist/ui/index.html +2 -2
- package/docs/architecture.md +12 -11
- package/docs/operations.md +15 -3
- package/docs/release-notes.md +20 -0
- package/docs/technical-guide-zh-cn.md +7 -7
- package/docs/technical-guide.md +7 -7
- package/docs-site/content.js +6 -6
- package/package.json +2 -2
- package/dist/ui/assets/index-if-v2JVj.js +0 -131
package/dist/ui/index.html
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<link rel="preload" href="/assets/jetbrains-mono-latin-D000Msq0.woff2" as="font" type="font/woff2" crossorigin />
|
|
9
9
|
<link rel="preload" href="/assets/caveat-latin-500-WbB_DO0N.woff2" as="font" type="font/woff2" crossorigin />
|
|
10
10
|
<title>Namo · Local workbench</title>
|
|
11
|
-
<script type="module" crossorigin src="/assets/index-
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-CcbYEcXS.js"></script>
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Cks2QULV.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="root"></div>
|
package/docs/architecture.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 技术实现
|
|
2
2
|
|
|
3
|
-
Namo
|
|
3
|
+
Namo 负责身份、权限、任务调度和交付。执行器注册表将每个任务绑定到官方 Codex app-server 或 Claude Code CLI。
|
|
4
4
|
|
|
5
5
|
技术栈:TypeScript、Node.js 24.15+、SQLite、飞书官方 SDK;本地 UI 使用 React、Radix Themes、Lucide 和 Vite。当前 schema 为 16:表与索引集中在 [schema.ts](../src/schema.ts),初始化和版本检查集中在 [schema-migrations.ts](../src/schema-migrations.ts)。
|
|
6
6
|
|
|
@@ -24,10 +24,8 @@ flowchart TB
|
|
|
24
24
|
DB[(SQLite)]
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Sandbox[沙箱<br/>授权目录与 Skills]
|
|
30
|
-
end
|
|
27
|
+
Agent[Codex app-server 或 Claude Code CLI<br/>推理与工具调用]
|
|
28
|
+
Sandbox[执行器权限控制<br/>授权目录与工具]
|
|
31
29
|
|
|
32
30
|
Feishu --> In --> Queue --> Runner --> Agent
|
|
33
31
|
Agent <--> Sandbox
|
|
@@ -42,9 +40,9 @@ flowchart TB
|
|
|
42
40
|
In & Queue & Runner & Receipts & Wait & Out & Memory -.-> DB
|
|
43
41
|
```
|
|
44
42
|
|
|
45
|
-
|
|
43
|
+
工作线关联连续任务。一次任务可包含多个等待或恢复运行。聊天、工作线、任务与执行器原生 session 分别保存。通过 `/agent` 切换时,Namo 按当前用户和聊天范围恢复所选执行器的工作线,任务保留创建时的执行器绑定。
|
|
46
44
|
|
|
47
|
-
|
|
45
|
+
消息先持久化再确认收件,调度器安排独立 runner。Codex 在沙箱中使用获准目录和 Skills,MCP 和 GitHub 请求经宿主管理的工具访问。Claude Code 通过受限 CLI 使用授权目录内的文件工具。Codex 任务需要用户回答或外部条件时可进入持久等待,满足条件后再恢复。结果和证据先保存,再排队投递到飞书。模型完成、平台接受和用户实际收件是不同的事实。
|
|
48
46
|
|
|
49
47
|
## 模块与约束
|
|
50
48
|
|
|
@@ -53,9 +51,10 @@ flowchart TB
|
|
|
53
51
|
| 入站与调度 | [engine](../src/engine.ts)、[tasks](../src/tasks.ts) | 先落库再确认;同聊天串行、全局限流、重叠真实目录互斥 |
|
|
54
52
|
| 独立执行 | [runner](../src/runner.ts)、[worker](../src/runner-worker.ts) | 唯一运行归属;接收端重启后关联原运行,失联不重启模型;取消只停止所属进程组 |
|
|
55
53
|
| Codex 协议 | [connection](../src/codex-connection.ts)、[runtime](../src/runtime.ts) | 官方 provider、独立认证、目录白名单;修订回执未知时不自动重送 |
|
|
54
|
+
| Claude Code 协议 | [claude-runtime](../src/claude-runtime.ts)、[agent-registry](../src/agent-registry.ts) | 独立认证与会话,受限文件工具,使用明确的 session ID 续接,取消和超时停止所属进程组 |
|
|
56
55
|
| 受限浏览器原型 | [ego-browser-prototype](../src/ego-browser-prototype.ts)、[worker](../src/runner-worker.ts) | 私聊配对用户逐任务批准或显式持久授权;固定操作、宿主持有空间绑定;能力外操作和结果不明均不自动执行或重试 |
|
|
57
56
|
| 人工 / 外部等待 | [waits](../src/waits.ts)、[external-waits](../src/external-waits.ts) | 等待释放执行资源,保留聊天顺序;回答绑定身份和版本;GitHub 固定 HEAD,恢复只消费一次 |
|
|
58
|
-
| 身份与资源 | [access](../src/access.ts)、[path-policy](../src/path-policy.ts)、[skill-access](../src/skill-access.ts) |
|
|
57
|
+
| 身份与资源 | [access](../src/access.ts)、[path-policy](../src/path-policy.ts)、[skill-access](../src/skill-access.ts) | 组织准入保留;已准入成员共享写目录与 MCP;续接与交付重验权限;Skills 保留个人启停设置 |
|
|
59
58
|
| 档案与记忆 | [assistant](../src/assistant.ts)、[memory](../src/memory.ts)、[extractor](../src/memory-extractor.ts) | 档案显式启用;长期事实带来源和范围;人工纠正、停用、删除不能被自动恢复 |
|
|
60
59
|
| 材料与产物 | [materials](../src/materials.ts)、[image-inputs](../src/image-inputs.ts)、[artifacts](../src/artifacts.ts) | 有界读取授权原消息;图片和交付文件冻结内容;正文不能生成授权,拒绝越界及敏感路径 |
|
|
61
60
|
| 展示与投递 | [public-progress](../src/public-progress.ts)、[feedback](../src/feedback.ts)、[recovery](../src/recovery.ts) | 只展示公开进展与有界证据;结果先保存再发送;未知投递不重试模型或盲重发 |
|
|
@@ -68,6 +67,8 @@ flowchart TB
|
|
|
68
67
|
|
|
69
68
|
**数据与恢复。** SQLite 保存 inbox、task、run、wait、outbox 和审计。取消、回答、恢复以事务顺序决定归属;心跳过期不转移执行权,失联进程及后代核对完成前保留目录占位。模型完成、平台接受、用户收件是三类事实,不能相互推断。
|
|
70
69
|
|
|
70
|
+
[模型日额度](../src/daily-turns.ts) 按 UTC 统计前台任务和后台模型调用。接收器切换时,只有确认未交给 runner 的运行才退回额度;已结束运行的占位记录可清理,累计调用次数继续保留。
|
|
71
|
+
|
|
71
72
|
开发期采用 v13 基线,不再维护 v0–12 的兼容转换。v13 / v14 / v15 可在停机备份后迁移到 v16。空库在一个事务中初始化,失败整体回滚;不兼容旧库明确拒绝写入,绝不自动删库。重建步骤见[运维指南](operations.md)。
|
|
72
73
|
|
|
73
74
|
| 数据域 | 独立表与约束 |
|
|
@@ -83,11 +84,11 @@ flowchart TB
|
|
|
83
84
|
|
|
84
85
|
新业务表使用 STRICT 类型、外键和状态约束;状态队列、归属查询和历史排序有对应索引。JSON 仅用于有界列表、证据和冻结快照;这些业务记录不再存入 `settings`。
|
|
85
86
|
|
|
86
|
-
**目录。** `codex.directories
|
|
87
|
+
**目录。** 普通任务可读取本机文件,Namo 配置、数据、独立登录目录和显式拒绝路径除外;已准入成员可写入 `codex.directories`、独立任务工作目录和系统临时目录。主机其他用户配置和凭据文件如未明确拒绝,也可能被读取;只应准入可信成员。MCP 保存授权后统一可用,请求的读写操作直接执行而不逐次审批。新任务的 cwd 始终为独立会话目录;初始化必须明确输入可写目录,不能默认采用进程当前目录。旧配置只在兼容读取入口转换为目录列表,保存时移除旧字段并生成私有备份;旧 `readPaths` 不升级为写权限。`task_directories` 冻结每个任务的 cwd 与完整可写目录集;运行及失联占位均按这些路径互斥。共享白名单时,不同聊天也会因可写目录重叠而串行。记忆提取仍使用独立的受限只读策略。
|
|
87
88
|
|
|
88
89
|
**上下文。** 每次运行冻结输入、可写目录、权限、助手设置和记忆版本。普通配置保存不改变既有运行及已创建的排队任务;接收器暂缓创建新任务,待旧队列完成后自动切换配置并处理已持久化的新请求。仅默认模型变化保留原生上下文;目录或执行策略变化时,在同一工作线内重建模型会话并携带有界历史摘录,旧任务保持原记录;组织授权撤销仍会阻断执行及交付。worker 通过私有管道接收生效配置,模型不继承宿主飞书 / GitHub 凭据。
|
|
89
90
|
|
|
90
|
-
**记忆。**
|
|
91
|
+
**记忆。** 前台任务空闲时,服务的默认执行器从直接用户消息提取有证据的长期事实。提取使用独立临时会话并关闭工具和自定义扩展。两个执行器共用记忆库。`global / local` 知识层级与 `shared / private / chat` 披露范围、来源目录授权分别检查;全局存储不代表公开。临时要求不写长期记忆,迁移候选须人工启用。既有 session 与历史副本不会随删除自动清除。
|
|
91
92
|
|
|
92
93
|
工作台按用户展示提取队列概况与最近 20 条记录,区分无可保存内容、候选未采用和执行失败。最多尝试三次,前台任务抢占不计失败;仅保存和展示已知错误类别,不暴露原始消息或 SDK 错误。
|
|
93
94
|
|
|
@@ -132,7 +133,7 @@ pnpm run smoke:codex
|
|
|
132
133
|
|
|
133
134
|
工作台更新日志在前端构建时自动从 Git 生成:以主线 `package.json` 的版本变化为边界,纳入合并进来的 `feat`、`fix`、`perf`、`style` 提交说明。新版本更新 `package.json` 后正常构建即可,不修改源码或 Git 索引;只包含已提交内容,显示提交说明原文,并过滤疑似敏感信息。已整理的历史版本保留中英文说明。没有完整仓库历史(包括浅克隆)的构建回退到随代码保存的历史记录,并在较新版本提示无法生成详情;分发包运行时不需要 Git。CI 获取完整历史以生成日志。
|
|
134
135
|
|
|
135
|
-
[CI](../.github/workflows/ci.yml) 在 main 推送与 PR 上运行 Node.js
|
|
136
|
+
[CI](../.github/workflows/ci.yml) 在 main 推送与 PR 上运行 Node.js 26 的 Linux / macOS 构建和现有测试,再用 `node scripts/check-package.mjs` 核对包的运行文件、UI 资源及排除项;同一命令可本地复验。真实 Codex / 飞书验收保留在本机,不放入 CI。
|
|
136
137
|
|
|
137
138
|
图标统一来自 Lucide;字体现有许可证见 [assets/fonts](../assets/fonts/README.md),Logo 使用 [namo-logo.png](../assets/namo-logo.png)。UI 文案使用稳定英文 message ID,两套语言占位符保持一致。
|
|
138
139
|
|
package/docs/operations.md
CHANGED
|
@@ -7,7 +7,19 @@
|
|
|
7
7
|
|
|
8
8
|
在容器或 SSH 终端中使用 `namo config` 配置模型、执行参数、目录、飞书消息与组织准入、GitHub、MCP、助手、用户档案和 Codex 更新;Docker 可运行 `docker exec -it <容器名> namo config`。菜单在支持的终端中原位刷新,退出后恢复原终端画面;使用方向键选择字段、Enter 编辑;表单底部的 `S` 保存、`Esc` 返回,返回时可放弃未保存的草稿;初次配置仍使用 `namo init`。配置、数据和独立 Codex 登录目录必须使用持久卷;Linux 服务以前台 `namo start` 运行,由容器管理器管理。保存后的生效状态以菜单显示为准,“等待生效”表示尚未生效。各表单在内存中保存草稿,可逐项编辑、清空或放弃,明确确认后才写入;MCP 连接支持新增、编辑、移除、测试及从 Codex 导入。工作台的浏览器主题属于浏览器本地偏好,不适用于终端。Codex 更新检查、升级和回退在后台执行;启动后保持终端打开,并重新进入更新菜单查看最终状态,退出管理进程会取消尚未完成的操作。
|
|
9
9
|
|
|
10
|
-
Codex 可使用 `namo login --device-auth` 调用官方设备登录(已完成真实登录验证);GitHub 本机登录先执行 `gh auth login`,也可在菜单中使用独立令牌。MCP OAuth 会在终端显示授权链接:在浏览器完成授权后,复制最终的 `http://127.0.0.1:.../api/mcp-oauth/callback?...` 地址并粘贴到终端的隐藏输入,即使浏览器提示无法连接也可复制。该地址含一次性授权码,请勿分享;授权流程保持 10 分钟有效。服务商仍需支持现有 OAuth 发现与动态注册要求;终端 MCP OAuth 尚未通过真实服务商验收。
|
|
10
|
+
Codex 可使用 `namo login --profile codex --device-auth` 调用官方设备登录(已完成真实登录验证);GitHub 本机登录先执行 `gh auth login`,也可在菜单中使用独立令牌。MCP OAuth 会在终端显示授权链接:在浏览器完成授权后,复制最终的 `http://127.0.0.1:.../api/mcp-oauth/callback?...` 地址并粘贴到终端的隐藏输入,即使浏览器提示无法连接也可复制。该地址含一次性授权码,请勿分享;授权流程保持 10 分钟有效。服务商仍需支持现有 OAuth 发现与动态注册要求;终端 MCP OAuth 尚未通过真实服务商验收。
|
|
11
|
+
|
|
12
|
+
## Claude Code 与执行器切换
|
|
13
|
+
|
|
14
|
+
安装官方 Claude Code CLI 2.1.330 或更新版本。在本机工作台 **连接设置**启用 Claude Code。使用 Claude 账号时,保存后运行页面提供的 `namo login --profile claude`,由官方 CLI 处理浏览器登录。也可以在 `namo init` 选择 `claude` 作为首个执行器。
|
|
15
|
+
|
|
16
|
+
使用 Kaon Router 等支持 Anthropic Messages API 的自定义网关时,在「认证方式」选择与现有 Claude Code 相同的认证方式。原来使用 `ANTHROPIC_AUTH_TOKEN` 时选 Bearer Token,使用 `ANTHROPIC_API_KEY` 时选 API Key。填写原来的 `ANTHROPIC_BASE_URL`、网关凭据以及网关要求的模型 ID。地址支持 HTTPS 或本机回环 HTTP,填基础地址及网关要求的路径前缀。保存后可运行真实回复测试验证。凭据保存在 Namo 私有配置中,仅传给所选 Claude Code 进程。
|
|
17
|
+
|
|
18
|
+
工作台的默认执行器用于没有个人选择的新工作线。飞书私聊中用 `/agent` 查看当前和可用的执行器,用 `/agent claude` 或 `/agent codex` 切换,用 `/agent default` 恢复服务默认。切回时会续接该执行器最近的工作线。请先完成或停止当前会话里尚未结束的任务。
|
|
19
|
+
|
|
20
|
+
Claude Code 在 macOS 和 Linux 上支持文字、图片、授权目录内的文件搜索、读取和编辑。需要 Shell、Skills、Namo MCP、GitHub 工具、模型触发的持久等待或运行中追加指令时,可切换到 Codex。后台自动记忆跟随服务的默认执行器,两者共用记忆库。卡片标题仍使用 Codex。授权目录应与 Namo 的数据和登录目录分开,避免重叠。
|
|
21
|
+
|
|
22
|
+
仅有终端时,可在配置文件的顶层加入 `"agents": {"defaultProfile":"codex","profiles":{"claude":{"adapter":"claude","enabled":true,"bin":"claude"}}}`。使用自定义网关时,在 Claude 配置中增加 `"gateway":{"baseUrl":"https://gateway.example/anthropic","auth":"bearer","secret":"替换为网关凭据"}`,API Key 则使用 `"auth":"api-key"`。将 `defaultProfile` 改为 `claude` 可让新工作线默认使用 Claude Code。
|
|
11
23
|
|
|
12
24
|
## 配置与权限
|
|
13
25
|
|
|
@@ -15,7 +27,7 @@ Codex 可使用 `namo login --device-auth` 调用官方设备登录(已完成
|
|
|
15
27
|
|
|
16
28
|
- 使用初始化向导、终端配置菜单或工作台修改配置,字段示例见 [config.example.json](../config.example.json)。保存会备份并检查并发修改;新版服务自动等待已接受队列完成后切换配置。等待期间新普通请求先持久化,切换成功后才创建任务;取消、审批和等待回答继续处理。在途任务不因普通设置变更重启,撤权仍即时检查。切换失败保留旧配置和等待请求;修正配置后自动重试。更换 App ID、飞书区域或数据目录属于实例迁移,不自动切换。
|
|
17
29
|
- 并发上限可设置为 4–64,未设置时默认为 8。旧配置中的 1–3 会保留在文件中,运行时按最低值 4 处理。
|
|
18
|
-
-
|
|
30
|
+
- 初始化必须明确填写可写目录,所有准入成员共享写权限;系统临时目录也可写。普通任务可以读取本机其他未禁止文件,包括其他应用的配置或凭据,应仅准入可信成员。Namo 配置、数据、隔离登录和显式拒绝路径仍受保护。新数据与对话工作目录位于用户级 Namo 目录,不默认使用启动目录。
|
|
19
31
|
- Codex 使用独立登录目录;重新认证运行 `namo login`,不要复制个人认证或改用第三方网关。
|
|
20
32
|
- 组织模式校验租户身份与应用可用范围;成员使用各自的对话工作目录,共享全部白名单目录和已授权 MCP;私人历史与记忆仍按原归属隔离。
|
|
21
33
|
- 配置变化在旧队列完成后自动用于新任务;需要主动重建原生会话时发送 `/refresh`,携带有限历史摘录。`/new` 只用于开启空上下文。旧任务及历史绑定保留。
|
|
@@ -115,7 +127,7 @@ macOS 上安装并完成 Ego Lite 初始化后,已配对用户在私聊中请
|
|
|
115
127
|
|
|
116
128
|
组织模式下,`codex.allowedModels` 可列出私聊允许选择的模型 ID;缺省或空数组只允许跟随服务默认模型。群聊任务使用服务默认模型。已有个人模型偏好不会被删除,但不在允许列表内时不会用于新任务;已接受任务的模型保持原样。
|
|
117
129
|
|
|
118
|
-
`codex.dailyTurnLimit` 可设置每天(UTC)允许启动的模型轮次数,包含前台任务、后台记忆提取和卡片标题总结;`0` 表示不限。组织模式缺省为 100,非组织模式缺省不限。达到上限的任务保留排队并告知用户,下一 UTC
|
|
130
|
+
`codex.dailyTurnLimit` 可设置每天(UTC)允许启动的模型轮次数,包含前台任务、后台记忆提取和卡片标题总结;`0` 表示不限。组织模式缺省为 100,非组织模式缺省不限。达到上限的任务保留排队并告知用户,下一 UTC 日自动继续;记忆提取也会等待,标题则直接使用截取内容。该计数只记录轮次,实际费用以处理请求的服务为准。
|
|
119
131
|
|
|
120
132
|
任务卡片先显示任务和结果的简短截取。若服务账号的模型目录包含受支持的小模型,Namo 可在有空闲并发名额时异步生成标题;模型不可用、超时、额度不足或前台任务需要名额时保留截取标题,不阻塞任务或回复。模型目录只是候选列表,不保证账号对每个模型有推理权限。每个任务的开始和完成标题各最多尝试一次。
|
|
121
133
|
|
package/docs/release-notes.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Release notes
|
|
2
2
|
|
|
3
|
+
## 0.7.1 — Unreleased
|
|
4
|
+
|
|
5
|
+
- The local workbench stays available when a configured working directory is
|
|
6
|
+
missing, so the directory can be repaired from Settings.
|
|
7
|
+
- Foreground tasks and background model calls share daily turn accounting.
|
|
8
|
+
Completed runs clear their reservations while retaining the recorded usage.
|
|
9
|
+
- GitHub check polling skips waits that are already settled.
|
|
10
|
+
- CI builds and tests on Node.js 26. The CLI supports Node.js 24.15 and newer.
|
|
11
|
+
Installing this update for an existing background service requires a receiver
|
|
12
|
+
restart.
|
|
13
|
+
|
|
14
|
+
## 0.7.0 — 2026-11-18
|
|
15
|
+
|
|
16
|
+
- Ordinary tasks can read local files unless explicitly blocked and can write
|
|
17
|
+
to authorized directories and the system temporary directory. Namo's own
|
|
18
|
+
configuration, data and isolated login remain protected.
|
|
19
|
+
- Local toolchains can access their installed binaries and runtime libraries.
|
|
20
|
+
Admitted users may read other applications' credentials unless those paths
|
|
21
|
+
are explicitly denied; admit only trusted users.
|
|
22
|
+
|
|
3
23
|
## 0.4.1 — 2026-10-30
|
|
4
24
|
|
|
5
25
|
- Clarify the MCP connection editor with separate connection, authorization and
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
- **提问与回答**:Agent 可暂停等待补充;引用问题回复,或点击与问题对应的选项按钮后继续。
|
|
15
15
|
- **独立运行进程**:任务与接收服务分别运行;中断或结果不明时保留记录供核对,不盲目重跑。
|
|
16
16
|
- **执行证据**:文件补丁、命令退出码、产物检查和 Git HEAD 快照,并明确采集范围与限制。
|
|
17
|
-
-
|
|
18
|
-
- **材料与产物**:有界读取合并转发文字和直接发送的 UTF-8
|
|
17
|
+
- **助手与范围记忆**:可选启用助手身份和风格,长期记忆保留来源及隐私范围,支持纠正、停用、删除及有界交接。Codex 和 Claude Code 共用记忆,由默认执行器自动整理。记忆不提供操作授权。
|
|
18
|
+
- **材料与产物**:有界读取合并转发文字和直接发送的 UTF-8 文本文件,经授权交付指定任务文件。直接发送的 PNG/JPEG 图片以有界、不可变的方式交给所选执行器。
|
|
19
19
|
- **本地工作台**:Dashboard、任务和会话搜索、用户 / 状态 / 日期筛选、分页、详情、用户档案、助手设置、迁移记忆审阅、配置与连接诊断。
|
|
20
20
|
- **简洁聊天回复**:持久化受理表情、原消息 / 话题回复、安全富文本和一张可更新的进度卡片。标题可由小模型后台总结,失败时保留文本截取,并计入模型轮次;按钮需配置飞书回调。
|
|
21
21
|
- **受控继续执行**:固定 HEAD 的 GitHub 检查(公开仓库或显式配置的私有仓库)可在不让模型轮询的情况下恢复原任务;Git push 按请求直接执行,记录确切任务、提交、远端和分支。
|
|
22
22
|
- **MCP**:通过工作台或 `namo config` 接入公网 HTTPS 服务(支持 OAuth 或 Bearer)及可信的本地 stdio 程序。本地进程以 Namo 的系统用户权限运行,所有获准对话的成员可调用其工具。
|
|
23
|
-
-
|
|
23
|
+
- **本地服务管理**:引导式初始化、独立的执行器登录、诊断、不可变发布目录与 macOS 后台服务命令。
|
|
24
24
|
|
|
25
25
|
工作台与 CLI 支持**英文、简体中文**,默认跟随系统语言,无法匹配时回退英文。任务内容、用户输入和执行日志保留原文。
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ PDF / Office / 音视频材料解析、自主派工和离线消息补拉仍不
|
|
|
28
28
|
|
|
29
29
|
## 安装与初始化
|
|
30
30
|
|
|
31
|
-
需要 **Node.js 24.15+**、官方 Codex CLI
|
|
31
|
+
需要 **Node.js 24.15+**、官方 Codex CLI 或 Claude Code 2.1.330+,以及已启用机器人能力的飞书或 Lark 企业自建应用。
|
|
32
32
|
|
|
33
33
|
安装 npm 包并开始初始化:
|
|
34
34
|
|
|
@@ -47,13 +47,13 @@ pnpm run build
|
|
|
47
47
|
pnpm cli init
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
可恢复的向导会引导你选择执行器、完成独立登录、设置目录白名单、填写应用凭据和配对。真实模型和收发验证可选,可能使用账号额度。Claude Code 自定义网关和私聊执行器切换见[运维手册](operations.md#claude-code-与执行器切换)。
|
|
51
51
|
|
|
52
52
|
也可构建本地 CLI 安装包:
|
|
53
53
|
|
|
54
54
|
```sh
|
|
55
55
|
pnpm pack
|
|
56
|
-
npm install -g ./dofy-namo-0.
|
|
56
|
+
npm install -g ./dofy-namo-0.7.1.tgz
|
|
57
57
|
namo init
|
|
58
58
|
```
|
|
59
59
|
|
|
@@ -109,7 +109,7 @@ macOS 上,`namo service install` 安装并启动后台服务;`start`、`stop
|
|
|
109
109
|
|
|
110
110
|
- 初始化必须明确填写目录白名单,目录统一开放读写;默认工作目录和数据保存在用户级 Namo 目录,不使用当前项目目录。
|
|
111
111
|
- 服务配置、任务数据和独立 Codex 认证文件始终排除在 Agent 可访问范围之外。不要为解决工具链路径问题而开放整个个人目录。
|
|
112
|
-
-
|
|
112
|
+
- 普通任务可读取本机未禁止的文件,可写入获准目录和系统临时目录;Namo 配置、数据和独立登录目录仍受保护。个人 Codex 中停用的技能在 Namo 中仍保持停用,但普通任务的全机读取权限不阻止直接读取其文件。可用 `pnpm run smoke:skills` 验证边界。
|
|
113
113
|
- 写权限也允许删除文件。取消、超时或重置上下文不会撤销已发生的操作。
|
|
114
114
|
- Git push 记录绑定确切任务、用户 / 聊天、明确的仓库目录、预配置远端、分支、HEAD SHA、配置版本和有效期,提交请求后直接执行,无需再次批准。这是**有限保护**,不是完整强制隔离:通用联网 Agent 或其他凭据路径仍可能绕过审批入口。部署没有通用目标实现。
|
|
115
115
|
- OpenClaw 导入必须显式选择来源文件、受支持版本和应用;不继承模型认证、网关、插件或任务,也不会自动接管接收端。切换和回退保留为需验证的人工门槛。
|
package/docs/technical-guide.md
CHANGED
|
@@ -14,13 +14,13 @@ This guide covers setup, capabilities, operation and execution boundaries. For m
|
|
|
14
14
|
- **Questions and answers:** the agent can pause for your input; answer by replying to the question or choosing a matching card option.
|
|
15
15
|
- **Independent runners:** active tasks run separately from the receiver. Uncertain or interrupted work is retained for review instead of blindly rerunning it.
|
|
16
16
|
- **Execution evidence:** file patches, command exit codes, artifact checks and Git HEAD snapshots, with capture limits made explicit.
|
|
17
|
-
- **Assistant and scoped memory:** opt-in assistant identity and style,
|
|
18
|
-
- **Materials and artifacts:** bounded reading of merged-forward text and direct UTF-8 text files, plus authorized delivery of selected task files.
|
|
17
|
+
- **Assistant and scoped memory:** opt-in assistant identity and style, sourced long-term facts with privacy controls, explicit correction, disabling and deletion, and bounded handoffs. Codex and Claude Code share scoped memory, and the default backend handles automatic extraction. Memories never grant operation authority.
|
|
18
|
+
- **Materials and artifacts:** bounded reading of merged-forward text and direct UTF-8 text files, plus authorized delivery of selected task files. The selected backend receives direct PNG/JPEG images as bounded, immutable inputs.
|
|
19
19
|
- **Local workbench:** a dashboard, searchable task and session lists, user/status/date filters, pagination, details, profiles, assistant settings, memory review, configuration and connection diagnostics.
|
|
20
20
|
- **Concise chat replies:** durable acceptance reactions, original-message/topic routing, safe rich text and a single updatable progress card. A small model can summarize titles in the background; failures retain text excerpts and model turns count toward the daily limit. Buttons require the Feishu callback subscription.
|
|
21
21
|
- **Controlled continuations:** exact-head GitHub check waits (public, or explicitly configured private repositories) can resume the same task without model polling; requested Git pushes execute directly and record the exact task, commit, remote and branch.
|
|
22
22
|
- **MCP:** Connect public HTTPS services with OAuth or Bearer authorization, or trusted local stdio programs through the workbench or `namo config`. Local processes run with the Namo user’s OS permissions; admitted bot members can invoke their tools.
|
|
23
|
-
- **Local service management:** guided setup, isolated
|
|
23
|
+
- **Local service management:** guided setup, isolated executor login, diagnostics, immutable service releases and macOS background service commands.
|
|
24
24
|
|
|
25
25
|
The workbench and CLI support **English and Simplified Chinese**. They follow the system language by default and fall back to English for unsupported languages. Task content, user input and execution logs retain their original language.
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ Organization setup: open **Connections** in the workbench to configure organizat
|
|
|
30
30
|
|
|
31
31
|
## Get started
|
|
32
32
|
|
|
33
|
-
Requirements
|
|
33
|
+
Requirements include **Node.js 24.15+**, either the official Codex CLI or Claude Code 2.1.330+, and a Feishu or Lark internal app with bot capabilities.
|
|
34
34
|
|
|
35
35
|
Install the npm package and start setup:
|
|
36
36
|
|
|
@@ -49,13 +49,13 @@ pnpm run build
|
|
|
49
49
|
pnpm cli init
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
The resumable wizard guides you through
|
|
52
|
+
The resumable wizard guides you through executor selection, isolated login, a required directory whitelist, app credentials and user pairing. A live model and messaging check is optional and may use account quota. To configure Claude Code with a custom gateway or switch executors in a direct chat, see the [operations guide](operations.md#claude-code-与执行器切换).
|
|
53
53
|
|
|
54
54
|
To build a local CLI package:
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
pnpm pack
|
|
58
|
-
npm install -g ./dofy-namo-0.
|
|
58
|
+
npm install -g ./dofy-namo-0.7.1.tgz
|
|
59
59
|
namo init
|
|
60
60
|
```
|
|
61
61
|
|
|
@@ -111,7 +111,7 @@ See the [conversation guide (Chinese)](getting-started.md#用自然语言与-nam
|
|
|
111
111
|
|
|
112
112
|
- Setup requires an explicit directory whitelist. All admitted bot users share read/write access. Conversation files and new instance data use the user-level Namo directory; the launch directory is never the default workspace.
|
|
113
113
|
- Configuration, runtime data and isolated Codex login files remain excluded from agent access. Do not grant access to your entire home directory to fix a toolchain issue.
|
|
114
|
-
-
|
|
114
|
+
- Ordinary tasks can read local files unless blocked and write to allowed directories and the system temporary directory. Namo configuration, data and isolated login remain protected. Personal Codex skill opt-outs remain disabled, though broad local read access does not prevent direct reads of their files. Run `pnpm run smoke:skills` to check the boundaries.
|
|
115
115
|
- Write permission also permits file deletion. Cancellation, timeout or context reset does not undo completed actions.
|
|
116
116
|
- Git push records bind an exact task, owner/chat, explicit repository directory, configured remote, branch, HEAD SHA, configuration revision and expiry, then execute directly without another approval step. This is **limited protection**, not complete enforcement: a generally networked agent or another credential path could bypass the approval entrypoint. Deployment is not implemented as a generic target.
|
|
117
117
|
- OpenClaw import requires an explicitly selected source file, supported version and application. It never imports provider authentication, gateways, plugins or tasks, and it cannot automatically take over a receiver; cutover and rollback remain an explicit, verified manual gate.
|
package/docs-site/content.js
CHANGED
|
@@ -6,10 +6,10 @@ export const groups = [
|
|
|
6
6
|
{ id:'maintain', zh:'维护与开发', en:'Operate & develop', items:['service','recovery','architecture','development'] },
|
|
7
7
|
];
|
|
8
8
|
export const sections = [
|
|
9
|
-
{ id:'overview', icon:'compass', zh:{ title:'认识 Namo', body:`<p>Namo 把官方 Codex 连接到飞书或 Lark。私聊发消息,或在群里 @ 机器人,就能让它处理获准目录中的文件、运行测试、审查代码并在原会话回复。</p><p
|
|
10
|
-
{ id:'install', icon:'download', zh:{ title:'安装与初始化', body:`<p>准备 Node.js 24.15 或更新版本、官方 Codex CLI
|
|
11
|
-
namo init</code></pre><p
|
|
12
|
-
namo init</code></pre><p>The wizard guides you through allowed directories, app credentials,
|
|
9
|
+
{ id:'overview', icon:'compass', zh:{ title:'认识 Namo', body:`<p>Namo 把官方 Codex 或 Claude Code 连接到飞书或 Lark。私聊发消息,或在群里 @ 机器人,就能让它处理获准目录中的文件、运行测试、审查代码并在原会话回复。</p><p>任务状态保存在你的机器上;模型推理使用所选执行器对应的服务。Namo 处于早期可用阶段,需要自行托管和维护。</p><div class="notice"><p><strong>开始之前:</strong>后台服务管理支持 macOS;其他平台可前台运行,但尚未完成完整平台验收。</p></div>`}, en:{ title:'Meet Namo', body:`<p>Namo connects the official Codex or Claude Code CLI to Feishu or Lark. Send a direct message or mention the bot in a group to work on files in allowed directories, run tests, review code and receive a reply in the same conversation.</p><p>Task state stays on your machine; model inference uses the service associated with the selected backend. Namo is an early-access project that you host and maintain yourself.</p><div class="notice"><p><strong>Before you begin:</strong> background service management supports macOS. Other platforms can run in the foreground but have not completed full platform acceptance.</p></div>`}},
|
|
10
|
+
{ id:'install', icon:'download', zh:{ title:'安装与初始化', body:`<p>准备 Node.js 24.15 或更新版本、官方 Codex CLI 或 Claude Code 2.1.330 及以上版本,以及启用了机器人的飞书或 Lark 自建应用。安装并初始化:</p><pre><code>npm install -g @dofy/namo
|
|
11
|
+
namo init</code></pre><p>向导会引导你选择执行器、配置可访问目录和应用凭据、完成独立登录和配对。真实模型和消息测试是可选步骤,可能消耗账号额度。</p><h3>启动与工作台</h3><p>如果没有安装 macOS 后台服务,使用 <code>namo start</code> 前台运行。用 <code>namo ui</code> 打开本地工作台,在连接设置中启用 Claude Code 或调整默认执行器。飞书私聊可用 <code>/agent claude</code> 和 <code>/agent codex</code> 切换并续接各自的工作线。</p><div class="notice"><p>不要同时为同一个飞书应用运行另一个接收器。</p></div>`}, en:{ title:'Install & initialize', body:`<p>Prepare Node.js 24.15 or newer, the official Codex CLI or Claude Code 2.1.330 or newer, and a Feishu or Lark internal app with a bot. Install and initialize:</p><pre><code>npm install -g @dofy/namo
|
|
12
|
+
namo init</code></pre><p>The wizard guides you through backend selection, allowed directories, app credentials, isolated sign-in and user pairing. Live model and message tests are optional and may use account quota.</p><h3>Start the service and workbench</h3><p>If you did not install the macOS background service, run <code>namo start</code> in the foreground. Open the local workbench with <code>namo ui</code>. In Connections, enable Claude Code or change the default backend. Send <code>/agent claude</code> or <code>/agent codex</code> in a direct chat to switch and resume that backend’s workstream.</p><div class="notice"><p>Do not run a second receiver for the same Feishu app.</p></div>`}},
|
|
13
13
|
{ id:'feishu', icon:'message', zh:{ title:'连接飞书或 Lark', body:`<p>创建并发布企业自建应用,启用机器人并设置应用可用范围。使用长连接接收事件;在初始化向导提示后,在机器人私聊中发送一次性配对码。</p><div class="table-wrap"><table><thead><tr><th>配置</th><th>需要的内容</th></tr></thead><tbody><tr><td>消息事件</td><td><code>im.message.receive_v1</code></td></tr><tr><td>消息权限</td><td><code>im:message.p2p_msg:readonly</code>、<code>im:message.group_at_msg:readonly</code>、<code>im:message:send_as_bot</code></td></tr><tr><td>卡片按钮</td><td>额外订阅 <code>card.action.trigger</code></td></tr></tbody></table></div><p>组织接入可在初始化后从工作台配置。应用可用范围、事件和权限变更需要在飞书后台发布后生效。</p>`}, en:{ title:'Connect Feishu or Lark', body:`<p>Create and publish an internal app, enable its bot, and set the app’s availability. Receive events through a long connection. When the wizard prompts you, send the one-time pairing code in a direct chat with the bot.</p><div class="table-wrap"><table><thead><tr><th>Setting</th><th>Required</th></tr></thead><tbody><tr><td>Message event</td><td><code>im.message.receive_v1</code></td></tr><tr><td>Message scopes</td><td><code>im:message.p2p_msg:readonly</code>, <code>im:message.group_at_msg:readonly</code>, <code>im:message:send_as_bot</code></td></tr><tr><td>Card buttons</td><td>Also subscribe to <code>card.action.trigger</code></td></tr></tbody></table></div><p>Organization access can be configured later in the workbench. Publish changes to app availability, events and permissions in the Feishu console.</p>`}},
|
|
14
14
|
{ id:'first-task', icon:'send', zh:{ title:'开始第一个任务', body:`<p>在私聊里直接说出目标;群聊默认需要 @ 机器人。例如:</p><ul><li>“检查这个项目的测试结果,告诉我失败原因。”</li><li>“审查这个 PR,指出需要处理的问题。”</li><li>“把刚完成的报告发给我。”</li></ul><p>Namo 会反馈进度,缺少必要信息时可暂停等待回答。取消任务不会撤销已经发生的文件或外部操作。</p>`}, en:{ title:'Start your first task', body:`<p>State your goal in a direct chat; group chats require a mention by default. For example:</p><ul><li>“Check the project tests and explain any failures.”</li><li>“Review this PR and point out issues to address.”</li><li>“Send me the report you just finished.”</li></ul><p>Namo reports progress and can pause for missing information. Canceling a task does not undo file or external actions that have already happened.</p>`}},
|
|
15
15
|
{ id:'workbench', icon:'layout', zh:{ title:'本地工作台', body:`<p>工作台集中管理任务、会话、定时任务、助手、记忆、个人档案和连接设置。它仅监听本机地址,启动时通过一次性授权建立会话。</p><pre><code>namo ui</code></pre><p>启动后保持终端进程运行。侧栏可切换英文和简体中文;历史内容和任务原文不会被翻译。配置保存后,已接受的队列保留原配置,新任务在安全切换后使用新配置。</p>`}, en:{ title:'Local workbench', body:`<p>The workbench brings together tasks, sessions, schedules, assistant settings, memories, profiles and connections. It listens on loopback only and establishes a session through one-time startup authorization.</p><pre><code>namo ui</code></pre><p>Keep the terminal process running while using it. The sidebar switches between English and Simplified Chinese; past task content is not translated. Accepted work keeps its existing configuration; new tasks use the new configuration after a safe switch.</p>`}},
|
|
@@ -17,13 +17,13 @@ namo init</code></pre><p>The wizard guides you through allowed directories, app
|
|
|
17
17
|
{ id:'memory', icon:'brain', zh:{ title:'助手与记忆', body:`<p>工作台可设置助手身份、职责和回答风格,并选择是否使用本人档案。长期记忆从直接对话中提取有来源的信息;隐私与可见范围会在读取时检查,记忆本身不授予操作权限。</p><p>你可以查看、纠正、停用或删除记忆。删除影响后续检索,但不会同时清除既有会话、历史消息或备份;需要干净上下文时使用 <code>/new</code>。</p>`}, en:{ title:'Assistant & memory', body:`<p>Set the assistant’s identity, responsibilities and response style in the workbench, and choose whether it uses your profile. Long-term memory extracts sourced facts from direct conversations; privacy and visibility are checked when reading. Memory does not grant authority to act.</p><p>You can inspect, correct, disable or delete memories. Deletion affects future retrieval but does not erase existing sessions, messages or backups; use <code>/new</code> for a clean context.</p>`}},
|
|
18
18
|
{ id:'materials', icon:'file', zh:{ title:'材料与文件交付', body:`<p>可处理直接发送的 UTF-8 文本、Markdown、PNG / JPEG,以及合并转发中的文字。PDF、Office 和音视频内容解析目前不支持;合并转发内的附件也可能不可读取。</p><p>可以明确要求交付任务中的文件。系统校验文件归属与内容后发送;官方图片生成工具产生的图片会在任务完成或等待后进入自动交付。平台接受消息不等于用户已经收到。</p>`}, en:{ title:'Materials & file delivery', body:`<p>Namo can process directly sent UTF-8 text, Markdown, PNG / JPEG images and text in merged forwards. PDF, Office, audio and video interpretation are not supported; attachments inside merged forwards may also be unavailable.</p><p>Explicitly request files from a task for delivery. The service validates ownership and content before sending. Images produced by the official image tool enter automatic delivery when a task finishes or waits. Platform acceptance does not mean the user received the message.</p>`}},
|
|
19
19
|
{ id:'schedules', icon:'clock', zh:{ title:'定时任务', body:`<p>在私聊中自然语言创建、查看、暂停或删除提醒与任务,也可在工作台查看状态。请提供时间和时区;每日和每周按固定间隔重复。</p><p>服务停机时不会执行;恢复后错过的多次触发合并为一次。暂停或删除不会撤销已入队或已执行的工作。</p>`}, en:{ title:'Scheduled work', body:`<p>Create, inspect, pause or delete reminders and tasks in a private chat, and review their status in the workbench. Specify a time and time zone; daily and weekly schedules use fixed intervals.</p><p>Nothing runs while the service is stopped. Multiple missed triggers are combined into one after recovery. Pausing or deleting a schedule does not undo work already queued or performed.</p>`}},
|
|
20
|
-
{ id:'directories', icon:'folder', zh:{ title:'目录与执行权限', body:`<p
|
|
20
|
+
{ id:'directories', icon:'folder', zh:{ title:'目录与执行权限', body:`<p>初始化时必须明确选择可写目录。所有获准与机器人对话的成员及群聊共享这些目录的写权限,系统临时目录也可写;写权限包括删除文件。</p><div class="notice"><p><strong>读取范围:</strong>普通任务可以读取本机未禁止的文件,包括其他应用的配置或凭据;请只准入可信成员。</p></div><p>Namo 配置、运行数据、隔离的 Codex 登录和显式拒绝路径仍受保护。用户停用的 Skills 保持停用,但普通任务可直接读取未禁止的技能文件。</p>`}, en:{ title:'Directories & permissions', body:`<p>Setup requires explicit writable directories. All admitted members and group chats share write access to those directories and the system temporary directory; write access includes deletion.</p><div class="notice"><p><strong>Read access:</strong> ordinary tasks can read local files unless blocked, including other applications’ configuration and credentials. Admit only trusted members.</p></div><p>Namo configuration, runtime data, isolated Codex login and explicitly denied paths remain protected. Disabled Skills remain disabled, though ordinary tasks can directly read their files unless blocked.</p>`}},
|
|
21
21
|
{ id:'github', icon:'git', zh:{ title:'GitHub', body:`<p>在工作台的<strong>连接设置 → GitHub</strong>中配置本机 <code>gh</code> 登录或独立令牌。已准入成员可在私聊和群聊中按用户请求使用该账号实际拥有的 API 权限,不再设置逐仓库授权。</p><p>PR 审查读取固定 base/head 的有界补丁;GitHub 检查等待不会自动执行写操作。Git push 入口会记录和校验任务、目录、远端、分支与提交,但这只是有限保护,不能约束其他通用联网工具。</p>`}, en:{ title:'GitHub', body:`<p>Configure a local <code>gh</code> login or a dedicated token in <strong>Connections → GitHub</strong>. Admitted members can use the account’s actual API permissions in private and group chats within the user’s request; no repository grant lists apply.</p><p>PR review reads bounded patches at fixed base/head commits; GitHub check waits do not perform writes. The Git push entry records and validates the task, directory, remote, branch and commit. This is limited protection and cannot constrain other general network tools.</p>`}},
|
|
22
22
|
{ id:'mcp', icon:'plug', zh:{ title:'MCP 连接', body:`<p>在工作台添加公网 HTTPS Streamable HTTP MCP 连接,使用 OAuth 或 Bearer 令牌授权。已准入成员共享已授权连接,并在外部账号权限范围内执行用户请求的读写操作。</p><p>也可以添加可信的本地 stdio 程序,填写可执行文件绝对路径和 JSON 参数数组;进程以 Namo 系统用户的权限运行,所有获准对话的成员均可调用。本地或内网 HTTP 地址及自定义请求头不支持。结果不明时先核对外部服务,不要盲目重复执行。</p>`}, en:{ title:'MCP connections', body:`<p>Add public HTTPS Streamable HTTP MCP connections in the workbench and authorize them with OAuth or a Bearer token. Admitted members share authorized connections and can carry out requested reads and writes within the external account’s permissions.</p><p>Trusted local stdio programs can also be added using an absolute executable path and a JSON array of arguments; they run with the Namo OS user’s permissions and are available to admitted bot members. Local or private-network HTTP addresses and custom request headers are not supported. Check the external service when an outcome is unknown instead of blindly repeating the operation.</p>`}},
|
|
23
23
|
{ id:'browser', icon:'globe', zh:{ title:'Ego 浏览器', body:`<p>macOS 上,已配对用户可在私聊中使用受限的 Ego Lite 浏览器。首次任务会请求授权,单次授权包括打开、快照、点击和填写;按键需单独确认。</p><p>启用卡片回调后可直接点击授权按钮,也可回复 <code>永久允许 MA-编号</code>,允许本人未来私聊任务使用当前固定操作和按键;发送 <code>撤销浏览器永久授权</code> 可撤销。浏览器使用自己的网络权限和登录状态。</p><div class="notice"><p>不支持任意脚本、原始 CDP、上传下载或选择已有空间。群聊、定时任务不能使用;结果不明时不会自动重试。</p></div>`}, en:{ title:'Ego browser', body:`<p>On macOS, paired users can use the restricted Ego Lite browser in private chats. The first task requests authorization for opening pages, snapshots, clicks and filling; key presses require separate approval.</p><p>With card callbacks enabled, use the approval buttons, or reply <code>/mcp-approve MA-ID --always</code> to allow the current fixed actions and keys for your future private-chat tasks. Send <code>/browser-revoke</code> to revoke it. The browser uses its own network permissions and logged-in sessions.</p><div class="notice"><p>Arbitrary scripts, raw CDP, uploads, downloads and selecting existing spaces are unsupported. Group chats and scheduled tasks cannot use it; unknown outcomes are not automatically retried.</p></div>`}},
|
|
24
24
|
{ id:'service', icon:'server', zh:{ title:'服务与升级', body:`<p>macOS 后台服务使用固定、经过校验的发布快照。构建源码不会自动切换服务;使用 <code>namo service upgrade</code> 创建并验证快照和备份。</p><div class="table-wrap"><table><thead><tr><th>命令</th><th>用途</th></tr></thead><tbody><tr><td><code>namo service install</code></td><td>首次安装并启动后台服务</td></tr><tr><td><code>namo service upgrade</code></td><td>校验备份并升级已安装的服务</td></tr><tr><td><code>namo service stop</code> / <code>start</code></td><td>停止或启动已有服务</td></tr></tbody></table></div><p>兼容变更可在线切换,新执行版本先观察五分钟。不兼容的接收器、存储或依赖变更需要安排停机窗口,确认任务、等待、runner 和投递均已收口后再升级。停止接收器不会自动停止独立 runner。</p><p>卸载保留配置、数据与登录;不要用旧备份覆盖升级后产生的新消息。</p>`}, en:{ title:'Service & upgrades', body:`<p>The macOS background service uses a verified, pinned release snapshot. Building source does not switch the running service; <code>namo service upgrade</code> creates and verifies a snapshot and backup.</p><div class="table-wrap"><table><thead><tr><th>Command</th><th>Purpose</th></tr></thead><tbody><tr><td><code>namo service install</code></td><td>Install and start the background service</td></tr><tr><td><code>namo service upgrade</code></td><td>Verify a backup and upgrade an installed service</td></tr><tr><td><code>namo service stop</code> / <code>start</code></td><td>Stop or start the existing service</td></tr></tbody></table></div><p>Compatible changes can switch online, with the new execution version observed for five minutes. Incompatible receiver, storage or dependency changes require a planned stop after tasks, waits, runners and deliveries are settled. Stopping the receiver does not automatically stop independent runners.</p><p>Uninstall retains configuration, data and login. Do not overwrite messages created after an upgrade with an old backup.</p>`}},
|
|
25
25
|
{ id:'recovery', icon:'life', zh:{ title:'异常与恢复', body:`<div class="table-wrap"><table><thead><tr><th>情况</th><th>下一步</th></tr></thead><tbody><tr><td>无法收消息</td><td>在连接设置运行诊断;核对应用发布、事件、权限和重复接收端。</td></tr><tr><td>Codex 未登录</td><td>运行 <code>namo login</code>,再检查连接。</td></tr><tr><td>runner 失联</td><td>检查进程、后代进程和实际效果,再解除占位;不要重跑。</td></tr><tr><td>投递结果不明</td><td>先在飞书核实,再通过工作台处理已保存的结果。</td></tr></tbody></table></div><p>平台接受、用户收到和模型完成是不同的事实。遇到未知结果时先核对,避免重复执行或发送。</p>`}, en:{ title:'Troubleshooting & recovery', body:`<div class="table-wrap"><table><thead><tr><th>Situation</th><th>Next step</th></tr></thead><tbody><tr><td>No messages received</td><td>Run diagnostics in Connections; check app publication, events, scopes and duplicate receivers.</td></tr><tr><td>Codex is signed out</td><td>Run <code>namo login</code>, then check the connection.</td></tr><tr><td>Runner lost</td><td>Inspect the process, descendants and actual effects before releasing its reservation; do not replay it.</td></tr><tr><td>Delivery unknown</td><td>Check Feishu first, then handle the saved result in the workbench.</td></tr></tbody></table></div><p>Model completion, platform acceptance and user receipt are separate facts. Verify unknown outcomes before repeating an action or send.</p>`}},
|
|
26
|
-
{ id:'architecture', icon:'layers', zh:{ title:'工作原理', body:`<p>消息先写入 SQLite,再确认收件。调度器启动独立 runner,由官方 Codex app-server
|
|
26
|
+
{ id:'architecture', icon:'layers', zh:{ title:'工作原理', body:`<p>消息先写入 SQLite,再确认收件。调度器启动独立 runner,由官方 Codex app-server 或 Claude Code CLI 按各自的权限策略执行。GitHub、MCP 等宿主管理的工具使用配置的凭据;凭据不会交给模型进程。</p><p>任务、等待、结果和投递记录持久保存。中断或失联时不自动重放;工作台只绑定本机地址,并使用启动授权、HttpOnly 会话、Host / Origin 检查和 CSP。</p><p>当前数据库 schema 为 16;兼容的 v13–v15 可迁移,不兼容的旧库会被拒绝,不会自动删除。</p><p><a href="https://github.com/dofy/namo/blob/main/docs/architecture.md" target="_blank" rel="noopener noreferrer">查看模块实现与已知边界(中文)</a></p>`}, en:{ title:'How it works', body:`<p>Messages are written to SQLite before acknowledgment. The scheduler starts an independent runner. The official Codex app-server or Claude Code CLI executes under its own permission policy. Host-managed tools such as GitHub and MCP use configured credentials without passing them to the model process.</p><p>Tasks, waits, results and delivery records are durable. Interrupted or lost work is not automatically replayed. The workbench binds to loopback and uses startup authorization, an HttpOnly session, Host and Origin checks, and CSP.</p><p>The current database schema is 16. Compatible v13–v15 databases can migrate; incompatible older databases are rejected rather than deleted.</p><p><a href="https://github.com/dofy/namo/blob/main/docs/architecture.md" target="_blank" rel="noopener noreferrer">Module implementation and known boundaries (Chinese)</a></p>`}},
|
|
27
27
|
{ id:'development', icon:'code', zh:{ title:'开发与验证', body:`<p>Namo 使用 TypeScript、Node.js 内置 SQLite、飞书官方 SDK 与 Codex app-server。工作台使用 React、Radix Themes 和 Vite。</p><pre><code>pnpm test
|
|
28
28
|
node scripts/check-package.mjs
|
|
29
29
|
pnpm run smoke:skills
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dofy/namo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typescript": "7.0.2",
|
|
27
27
|
"vite": "8.3.5"
|
|
28
28
|
},
|
|
29
|
-
"description": "A local-first AI work companion
|
|
29
|
+
"description": "A local-first AI work companion for Feishu and Lark with Codex and Claude Code support.",
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
32
|
"url": "git+https://github.com/dofy/namo.git"
|