@dofy/namo 0.0.0-stage → 0.7.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.
Files changed (276) hide show
  1. package/README.md +54 -2
  2. package/README.zh-CN.md +55 -0
  3. package/assets/fonts/Caveat-OFL.txt +93 -0
  4. package/assets/fonts/JetBrainsMono-OFL.txt +93 -0
  5. package/assets/fonts/README.md +29 -0
  6. package/assets/namo-logo.png +0 -0
  7. package/bin/namo.js +13 -0
  8. package/config.example.json +31 -0
  9. package/dist/scripts/changelog.js +104 -0
  10. package/dist/scripts/changelog.js.map +1 -0
  11. package/dist/scripts/smoke-codex.js +25 -0
  12. package/dist/scripts/smoke-codex.js.map +1 -0
  13. package/dist/scripts/smoke-skills.js +60 -0
  14. package/dist/scripts/smoke-skills.js.map +1 -0
  15. package/dist/src/access-contract.js +2 -0
  16. package/dist/src/access-contract.js.map +1 -0
  17. package/dist/src/access.js +53 -0
  18. package/dist/src/access.js.map +1 -0
  19. package/dist/src/agent-registry.js +102 -0
  20. package/dist/src/agent-registry.js.map +1 -0
  21. package/dist/src/agents.js +83 -0
  22. package/dist/src/agents.js.map +1 -0
  23. package/dist/src/approval-service.js +189 -0
  24. package/dist/src/approval-service.js.map +1 -0
  25. package/dist/src/approvals.js +423 -0
  26. package/dist/src/approvals.js.map +1 -0
  27. package/dist/src/artifact-delivery.js +242 -0
  28. package/dist/src/artifact-delivery.js.map +1 -0
  29. package/dist/src/artifacts.js +223 -0
  30. package/dist/src/artifacts.js.map +1 -0
  31. package/dist/src/assistant-setup.js +23 -0
  32. package/dist/src/assistant-setup.js.map +1 -0
  33. package/dist/src/assistant.js +245 -0
  34. package/dist/src/assistant.js.map +1 -0
  35. package/dist/src/auto-memory.js +309 -0
  36. package/dist/src/auto-memory.js.map +1 -0
  37. package/dist/src/background-work.js +16 -0
  38. package/dist/src/background-work.js.map +1 -0
  39. package/dist/src/browse.js +202 -0
  40. package/dist/src/browse.js.map +1 -0
  41. package/dist/src/business-storage.js +54 -0
  42. package/dist/src/business-storage.js.map +1 -0
  43. package/dist/src/cards.js +341 -0
  44. package/dist/src/cards.js.map +1 -0
  45. package/dist/src/changelog-contract.js +2 -0
  46. package/dist/src/changelog-contract.js.map +1 -0
  47. package/dist/src/cli.js +316 -0
  48. package/dist/src/cli.js.map +1 -0
  49. package/dist/src/codex-connection.js +294 -0
  50. package/dist/src/codex-connection.js.map +1 -0
  51. package/dist/src/codex-distribution.js +425 -0
  52. package/dist/src/codex-distribution.js.map +1 -0
  53. package/dist/src/codex-installation.js +65 -0
  54. package/dist/src/codex-installation.js.map +1 -0
  55. package/dist/src/codex-items.js +15 -0
  56. package/dist/src/codex-items.js.map +1 -0
  57. package/dist/src/codex-mcp-import.js +86 -0
  58. package/dist/src/codex-mcp-import.js.map +1 -0
  59. package/dist/src/codex-updates.js +287 -0
  60. package/dist/src/codex-updates.js.map +1 -0
  61. package/dist/src/config-prompts.js +355 -0
  62. package/dist/src/config-prompts.js.map +1 -0
  63. package/dist/src/config-reload.js +144 -0
  64. package/dist/src/config-reload.js.map +1 -0
  65. package/dist/src/config.js +164 -0
  66. package/dist/src/config.js.map +1 -0
  67. package/dist/src/control-classifier.js +86 -0
  68. package/dist/src/control-classifier.js.map +1 -0
  69. package/dist/src/control-display.js +30 -0
  70. package/dist/src/control-display.js.map +1 -0
  71. package/dist/src/conversation-control.js +308 -0
  72. package/dist/src/conversation-control.js.map +1 -0
  73. package/dist/src/directory-approval.js +122 -0
  74. package/dist/src/directory-approval.js.map +1 -0
  75. package/dist/src/docs-site.js +75 -0
  76. package/dist/src/docs-site.js.map +1 -0
  77. package/dist/src/doctor.js +61 -0
  78. package/dist/src/doctor.js.map +1 -0
  79. package/dist/src/ego-browser-prototype.js +105 -0
  80. package/dist/src/ego-browser-prototype.js.map +1 -0
  81. package/dist/src/engine.js +1458 -0
  82. package/dist/src/engine.js.map +1 -0
  83. package/dist/src/evidence.js +237 -0
  84. package/dist/src/evidence.js.map +1 -0
  85. package/dist/src/external-wait-bridge.js +129 -0
  86. package/dist/src/external-wait-bridge.js.map +1 -0
  87. package/dist/src/external-waits.js +666 -0
  88. package/dist/src/external-waits.js.map +1 -0
  89. package/dist/src/feedback.js +351 -0
  90. package/dist/src/feedback.js.map +1 -0
  91. package/dist/src/feishu-setup.js +115 -0
  92. package/dist/src/feishu-setup.js.map +1 -0
  93. package/dist/src/feishu.js +323 -0
  94. package/dist/src/feishu.js.map +1 -0
  95. package/dist/src/generated-images.js +46 -0
  96. package/dist/src/generated-images.js.map +1 -0
  97. package/dist/src/github-access.js +222 -0
  98. package/dist/src/github-access.js.map +1 -0
  99. package/dist/src/github-api.js +246 -0
  100. package/dist/src/github-api.js.map +1 -0
  101. package/dist/src/github-local.js +75 -0
  102. package/dist/src/github-local.js.map +1 -0
  103. package/dist/src/github-review.js +129 -0
  104. package/dist/src/github-review.js.map +1 -0
  105. package/dist/src/i18n.js +27 -0
  106. package/dist/src/i18n.js.map +1 -0
  107. package/dist/src/image-inputs.js +334 -0
  108. package/dist/src/image-inputs.js.map +1 -0
  109. package/dist/src/inbox-retention.js +48 -0
  110. package/dist/src/inbox-retention.js.map +1 -0
  111. package/dist/src/legacy-config.js +28 -0
  112. package/dist/src/legacy-config.js.map +1 -0
  113. package/dist/src/live-runtime.js +37 -0
  114. package/dist/src/live-runtime.js.map +1 -0
  115. package/dist/src/live-upgrade.js +192 -0
  116. package/dist/src/live-upgrade.js.map +1 -0
  117. package/dist/src/locale.js +9 -0
  118. package/dist/src/locale.js.map +1 -0
  119. package/dist/src/locales/en.js +1429 -0
  120. package/dist/src/locales/en.js.map +1 -0
  121. package/dist/src/locales/zh-CN.js +1428 -0
  122. package/dist/src/locales/zh-CN.js.map +1 -0
  123. package/dist/src/management-operations.js +107 -0
  124. package/dist/src/management-operations.js.map +1 -0
  125. package/dist/src/management.js +910 -0
  126. package/dist/src/management.js.map +1 -0
  127. package/dist/src/materials.js +280 -0
  128. package/dist/src/materials.js.map +1 -0
  129. package/dist/src/mcp-connections.js +279 -0
  130. package/dist/src/mcp-connections.js.map +1 -0
  131. package/dist/src/mcp-endpoint-contract.js +17 -0
  132. package/dist/src/mcp-endpoint-contract.js.map +1 -0
  133. package/dist/src/mcp-oauth-flow.js +83 -0
  134. package/dist/src/mcp-oauth-flow.js.map +1 -0
  135. package/dist/src/mcp-oauth.js +322 -0
  136. package/dist/src/mcp-oauth.js.map +1 -0
  137. package/dist/src/mcp-operation.js +27 -0
  138. package/dist/src/mcp-operation.js.map +1 -0
  139. package/dist/src/mcp-public-network.js +58 -0
  140. package/dist/src/mcp-public-network.js.map +1 -0
  141. package/dist/src/mcp-write-approval.js +153 -0
  142. package/dist/src/mcp-write-approval.js.map +1 -0
  143. package/dist/src/memory-access.js +7 -0
  144. package/dist/src/memory-access.js.map +1 -0
  145. package/dist/src/memory-commands.js +52 -0
  146. package/dist/src/memory-commands.js.map +1 -0
  147. package/dist/src/memory-extractor.js +87 -0
  148. package/dist/src/memory-extractor.js.map +1 -0
  149. package/dist/src/memory.js +755 -0
  150. package/dist/src/memory.js.map +1 -0
  151. package/dist/src/messages.js +2 -0
  152. package/dist/src/messages.js.map +1 -0
  153. package/dist/src/migration-cli.js +54 -0
  154. package/dist/src/migration-cli.js.map +1 -0
  155. package/dist/src/migration-memory.js +261 -0
  156. package/dist/src/migration-memory.js.map +1 -0
  157. package/dist/src/migration.js +534 -0
  158. package/dist/src/migration.js.map +1 -0
  159. package/dist/src/model-catalog.js +58 -0
  160. package/dist/src/model-catalog.js.map +1 -0
  161. package/dist/src/model-preferences.js +29 -0
  162. package/dist/src/model-preferences.js.map +1 -0
  163. package/dist/src/onboarding.js +231 -0
  164. package/dist/src/onboarding.js.map +1 -0
  165. package/dist/src/path-policy.js +6 -0
  166. package/dist/src/path-policy.js.map +1 -0
  167. package/dist/src/paths.js +85 -0
  168. package/dist/src/paths.js.map +1 -0
  169. package/dist/src/presentation.js +86 -0
  170. package/dist/src/presentation.js.map +1 -0
  171. package/dist/src/profiles.js +87 -0
  172. package/dist/src/profiles.js.map +1 -0
  173. package/dist/src/prompts.js +51 -0
  174. package/dist/src/prompts.js.map +1 -0
  175. package/dist/src/public-progress.js +71 -0
  176. package/dist/src/public-progress.js.map +1 -0
  177. package/dist/src/record-table.js +48 -0
  178. package/dist/src/record-table.js.map +1 -0
  179. package/dist/src/recovery.js +105 -0
  180. package/dist/src/recovery.js.map +1 -0
  181. package/dist/src/release-check.js +12 -0
  182. package/dist/src/release-check.js.map +1 -0
  183. package/dist/src/release.js +200 -0
  184. package/dist/src/release.js.map +1 -0
  185. package/dist/src/repository.js +4 -0
  186. package/dist/src/repository.js.map +1 -0
  187. package/dist/src/richtext.js +165 -0
  188. package/dist/src/richtext.js.map +1 -0
  189. package/dist/src/runner-store.js +100 -0
  190. package/dist/src/runner-store.js.map +1 -0
  191. package/dist/src/runner-worker.js +326 -0
  192. package/dist/src/runner-worker.js.map +1 -0
  193. package/dist/src/runner.js +130 -0
  194. package/dist/src/runner.js.map +1 -0
  195. package/dist/src/runtime-config.js +40 -0
  196. package/dist/src/runtime-config.js.map +1 -0
  197. package/dist/src/runtime-contract.js +10 -0
  198. package/dist/src/runtime-contract.js.map +1 -0
  199. package/dist/src/runtime-host.js +84 -0
  200. package/dist/src/runtime-host.js.map +1 -0
  201. package/dist/src/runtime-version.js +38 -0
  202. package/dist/src/runtime-version.js.map +1 -0
  203. package/dist/src/runtime.js +593 -0
  204. package/dist/src/runtime.js.map +1 -0
  205. package/dist/src/safety.js +95 -0
  206. package/dist/src/safety.js.map +1 -0
  207. package/dist/src/schedules.js +211 -0
  208. package/dist/src/schedules.js.map +1 -0
  209. package/dist/src/schema-directory-migration.js +75 -0
  210. package/dist/src/schema-directory-migration.js.map +1 -0
  211. package/dist/src/schema-migrations.js +56 -0
  212. package/dist/src/schema-migrations.js.map +1 -0
  213. package/dist/src/schema.js +241 -0
  214. package/dist/src/schema.js.map +1 -0
  215. package/dist/src/service-bootstrap.js +53 -0
  216. package/dist/src/service-bootstrap.js.map +1 -0
  217. package/dist/src/service.js +416 -0
  218. package/dist/src/service.js.map +1 -0
  219. package/dist/src/session-list.js +58 -0
  220. package/dist/src/session-list.js.map +1 -0
  221. package/dist/src/skill-access.js +97 -0
  222. package/dist/src/skill-access.js.map +1 -0
  223. package/dist/src/store.js +172 -0
  224. package/dist/src/store.js.map +1 -0
  225. package/dist/src/task-context.js +40 -0
  226. package/dist/src/task-context.js.map +1 -0
  227. package/dist/src/task-materials.js +197 -0
  228. package/dist/src/task-materials.js.map +1 -0
  229. package/dist/src/task-progress.js +63 -0
  230. package/dist/src/task-progress.js.map +1 -0
  231. package/dist/src/tasks.js +384 -0
  232. package/dist/src/tasks.js.map +1 -0
  233. package/dist/src/terminal-config.js +132 -0
  234. package/dist/src/terminal-config.js.map +1 -0
  235. package/dist/src/terminal-forms.js +252 -0
  236. package/dist/src/terminal-forms.js.map +1 -0
  237. package/dist/src/terminal-mcp.js +123 -0
  238. package/dist/src/terminal-mcp.js.map +1 -0
  239. package/dist/src/terminal-settings.js +106 -0
  240. package/dist/src/terminal-settings.js.map +1 -0
  241. package/dist/src/theme-contract.js +8 -0
  242. package/dist/src/theme-contract.js.map +1 -0
  243. package/dist/src/title-summary.js +96 -0
  244. package/dist/src/title-summary.js.map +1 -0
  245. package/dist/src/ui-contract.js +3 -0
  246. package/dist/src/ui-contract.js.map +1 -0
  247. package/dist/src/ui.js +352 -0
  248. package/dist/src/ui.js.map +1 -0
  249. package/dist/src/upgrade-backup.js +159 -0
  250. package/dist/src/upgrade-backup.js.map +1 -0
  251. package/dist/src/version.js +4 -0
  252. package/dist/src/version.js.map +1 -0
  253. package/dist/src/waits.js +279 -0
  254. package/dist/src/waits.js.map +1 -0
  255. package/dist/ui/assets/caveat-latin-500-WbB_DO0N.woff2 +0 -0
  256. package/dist/ui/assets/index-CJAhDqDy.css +1 -0
  257. package/dist/ui/assets/index-DkhjblIL.js +131 -0
  258. package/dist/ui/assets/jetbrains-mono-latin-D000Msq0.woff2 +0 -0
  259. package/dist/ui/index.html +18 -0
  260. package/docs/README.md +22 -0
  261. package/docs/architecture.md +145 -0
  262. package/docs/development-plan.md +59 -0
  263. package/docs/getting-started.md +86 -0
  264. package/docs/operations.md +128 -0
  265. package/docs/release-notes.md +66 -0
  266. package/docs/technical-guide-zh-cn.md +153 -0
  267. package/docs/technical-guide.md +153 -0
  268. package/docs/ui-design.md +44 -0
  269. package/docs-site/README.md +15 -0
  270. package/docs-site/assets/namo-logo.png +0 -0
  271. package/docs-site/content.js +34 -0
  272. package/docs-site/index.html +27 -0
  273. package/docs-site/main.js +26 -0
  274. package/docs-site/style.css +1 -0
  275. package/docs-site/vite.config.mjs +4 -0
  276. package/package.json +71 -3
package/README.md CHANGED
@@ -1,3 +1,55 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <img src="assets/namo-logo.png" alt="Namo — an orange fox with a curled tail" width="176" />
3
+ </p>
2
4
 
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.
5
+ <h1 align="center">Namo</h1>
6
+
7
+ <p align="center"><strong>A little fox on your machine, helping you get work done.</strong><br />
8
+ A self-hosted AI work companion for Feishu and Lark, powered by Codex.</p>
9
+
10
+ <p align="center"><strong>English</strong> · <a href="README.zh-CN.md">简体中文</a><br />
11
+ <a href="https://github.com/dofy/namo">GitHub</a> · <a href="https://github.com/dofy/namo/issues">Issues</a></p>
12
+
13
+ Namo brings an AI agent into the conversations where your work happens. Send it a message or mention it in a group to work on files, run tests, review a pull request, or prepare a report. It works on your machine and replies in the same conversation.
14
+
15
+ ## What Namo can do
16
+
17
+ - **Work from chat.** Give Namo a task in Feishu or Lark, follow its progress, and answer questions when it needs more information.
18
+ - **Work with your projects.** Let it use the directories and connected services you authorize, including GitHub, remote MCP services and trusted local stdio MCP tools.
19
+ - **Keep track of work.** Review tasks, sessions, execution evidence, schedules and settings in a local workbench.
20
+ - **Remember useful context.** Use an optional assistant profile and scoped memory to carry relevant context across conversations.
21
+ - **Run on your own machine.** Namo stores task state locally and uses the official Codex service for model inference.
22
+
23
+ Namo is an early-access project. You host and maintain the service yourself; background service management currently supports macOS. Other platforms can run in the foreground but have not completed full platform acceptance.
24
+
25
+ ## Get started
26
+
27
+ You need Node.js 24.15 or newer, the official Codex CLI, and a Feishu or Lark app with bot capabilities. Install and initialize Namo:
28
+
29
+ ```sh
30
+ npm install -g @dofy/namo
31
+ namo init
32
+ ```
33
+
34
+ The setup wizard guides you through Codex login, directory access and connecting your bot. It can install a macOS background service; otherwise, use `namo start` to run in the foreground. Open the local workbench with `namo ui`.
35
+
36
+ For development, build from source with pnpm 12.15.0:
37
+
38
+ ```sh
39
+ git clone https://github.com/dofy/namo.git
40
+ cd namo
41
+ pnpm install --frozen-lockfile
42
+ pnpm run build
43
+ pnpm cli init
44
+ ```
45
+
46
+ ## Connect Inkflit
47
+
48
+ In **Settings → Connections → MCP**, choose **Add local MCP**. Set the ID to `inkflit`, the executable to `/Applications/Inkflit.app/Contents/MacOS/Inkflit`, and arguments to `["--mcp"]`, then save and test. You can also add local MCPs in `namo config`. Namo and Inkflit must run as the same user on the same Mac. Only configure trusted programs: they run with the Namo user’s OS permissions, and all admitted bot users can call their tools.
49
+
50
+ ## Learn more
51
+
52
+ - [Documentation](docs-site/) — run `pnpm cli docs` to open the bilingual guide (or `namo docs` with an installed CLI).
53
+ - [Technical guide](docs/technical-guide.md) — setup, capabilities, permissions and development.
54
+ - [Documentation index](docs/README.md) — architecture, operations and roadmap (Chinese).
55
+ - [Report an issue](https://github.com/dofy/namo/issues) — please leave out credentials and private conversation data.
@@ -0,0 +1,55 @@
1
+ <p align="center">
2
+ <img src="assets/namo-logo.png" alt="Namo — 一只蜷着尾巴的橙色狐狸" width="176" />
3
+ </p>
4
+
5
+ <h1 align="center">Namo</h1>
6
+
7
+ <p align="center"><strong>住在本地,帮你把事情做完的小狐狸。</strong><br />
8
+ 面向飞书与 Lark、由 Codex 驱动的自托管 AI 工作伙伴。</p>
9
+
10
+ <p align="center"><a href="README.md">English</a> · <strong>简体中文</strong><br />
11
+ <a href="https://github.com/dofy/namo">GitHub</a> · <a href="https://github.com/dofy/namo/issues">问题反馈</a></p>
12
+
13
+ Namo 把 AI 助手带进日常工作的对话中。给它发一条消息,或在群里 @ 它,就可以处理文件、运行测试、审查 PR 或整理报告。它在你的机器上工作,并在原会话中回复结果。
14
+
15
+ ## Namo 能做什么
16
+
17
+ - **在聊天中协作**:通过飞书或 Lark 交代任务、查看进度,在需要时回答它的问题。
18
+ - **处理项目工作**:使用你授权的目录和连接服务,包括 GitHub、远程 MCP 和可信的本地 stdio MCP 工具。
19
+ - **跟踪工作进展**:在本地工作台查看任务、会话、执行证据和定时任务,管理设置。
20
+ - **记住有用的上下文**:按需设置助手档案和范围记忆,在不同对话中使用相关信息。
21
+ - **运行在自己的机器上**:任务状态保存在本地,模型推理使用官方 Codex 服务。
22
+
23
+ Namo 目前处于早期可用阶段,需要你自行托管和维护。后台服务管理目前支持 macOS;其他平台可前台运行,但尚未完成完整平台验收。
24
+
25
+ ## 快速开始
26
+
27
+ 准备 Node.js 24.15 或更高版本、官方 Codex CLI,以及启用机器人能力的飞书或 Lark 应用。安装并初始化 Namo:
28
+
29
+ ```sh
30
+ npm install -g @dofy/namo
31
+ namo init
32
+ ```
33
+
34
+ 初始化向导会引导你登录 Codex、设置可访问目录并连接机器人。向导支持安装 macOS 后台服务;如果没有安装,可用 `namo start` 前台运行。使用 `namo ui` 打开本地工作台。
35
+
36
+ 开发时可使用 pnpm 12.15.0 从源码构建:
37
+
38
+ ```sh
39
+ git clone https://github.com/dofy/namo.git
40
+ cd namo
41
+ pnpm install --frozen-lockfile
42
+ pnpm run build
43
+ pnpm cli init
44
+ ```
45
+
46
+ ## 连接 Inkflit
47
+
48
+ 在**设置 → 连接设置 → MCP 连接**中选择**添加本地 MCP**:ID 填写 `inkflit`,可执行文件填写 `/Applications/Inkflit.app/Contents/MacOS/Inkflit`,参数填写 `["--mcp"]`,保存后测试连接。也可以在 `namo config` 中配置本地 MCP。Namo 和 Inkflit 需在同一台 Mac 以同一用户运行。请只添加可信程序:它们以 Namo 的系统用户权限运行,所有获准对话的成员都能调用其工具。
49
+
50
+ ## 了解更多
51
+
52
+ - [文档](docs-site/):运行 `pnpm cli docs` 打开中英文文档;已安装 CLI 时使用 `namo docs`。
53
+ - [技术指南](docs/technical-guide-zh-cn.md):安装、功能、权限和开发说明。
54
+ - [文档索引](docs/README.md):技术实现、运维和开发路线图。
55
+ - [问题反馈](https://github.com/dofy/namo/issues):请勿附上凭据或私密会话内容。
@@ -0,0 +1,93 @@
1
+ Copyright 2014 The Caveat Project Authors (https://github.com/googlefonts/caveat)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+
5
+ This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,29 @@
1
+ # Bundled fonts
2
+
3
+ ## JetBrains Mono
4
+
5
+ Latin text and numbers in the Namo workbench use the locally bundled
6
+ JetBrains Mono variable font (weights 100–800). Chinese characters fall back
7
+ to PingFang SC / Microsoft YaHei.
8
+
9
+ - Font project: https://github.com/JetBrains/JetBrainsMono
10
+ - Google Fonts metadata: https://github.com/google/fonts/blob/main/ofl/jetbrainsmono/METADATA.pb
11
+ - Downloaded 2026-10-26 from the Google Fonts CSS API (JetBrains Mono v24, Latin subset).
12
+ - Font binary: https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbV2o-flEEny0FZhsfKu5WU4xD7OwGtT0rU.woff2
13
+ - License: SIL Open Font License 1.1; see `JetBrainsMono-OFL.txt`.
14
+
15
+ `ui/fonts/jetbrains-mono-latin.woff2` is emitted into `dist/ui/assets` by Vite.
16
+ The application does not contact Google Fonts at runtime.
17
+
18
+ ## Caveat
19
+
20
+ The Namo wordmark uses Caveat Medium (500), a handwriting typeface.
21
+
22
+ - Font project: https://github.com/googlefonts/caveat
23
+ - Google Fonts metadata: https://github.com/google/fonts/blob/main/ofl/caveat/METADATA.pb
24
+ - Downloaded 2026-10-26 from the Google Fonts CSS API (Caveat v23, Latin subset).
25
+ - Font binary: https://fonts.gstatic.com/s/caveat/v23/WnznHAc5bAfYB2QRah7pcpNvOx-pjcB9eIWpYT5Kmgq3sw.woff2
26
+ - Local file: `ui/fonts/caveat-latin-500.woff2`.
27
+ - License: SIL Open Font License 1.1; see `Caveat-OFL.txt`.
28
+
29
+ Both fonts are bundled and loaded locally; no runtime font service is used.
Binary file
package/bin/namo.js ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ const [major, minor] = process.versions.node.split('.').map(Number);
3
+ if (major < 24 || (major === 24 && minor < 15)) {
4
+ const args = process.argv.slice(2);
5
+ const language = args.includes('--lang') ? args[args.indexOf('--lang') + 1] : process.env.NAMO_LANG;
6
+ const selected = language && language !== 'system' ? language : process.env.LC_ALL || process.env.LC_MESSAGES || process.env.LANG || Intl.DateTimeFormat().resolvedOptions().locale;
7
+ const chinese = /^zh(?:[-_.@]|$)/i.test(selected);
8
+ console.error(chinese
9
+ ? `Namo 需要 Node.js 24.15+;当前为 ${process.version}。请先安装受支持的 Node.js。`
10
+ : `Namo requires Node.js 24.15+; current version: ${process.version}. Install a supported Node.js version first.`);
11
+ process.exit(1);
12
+ }
13
+ await import('../dist/src/cli.js');
@@ -0,0 +1,31 @@
1
+ {
2
+ "version": 1,
3
+ "agent": "codex",
4
+ "dataDir": "~/.namo/data",
5
+ "concurrency": 8,
6
+ "feishu": {
7
+ "appId": "",
8
+ "appSecret": "",
9
+ "appSecretEnv": "FEISHU_APP_SECRET",
10
+ "allowedUserIds": [],
11
+ "allowedChatIds": [],
12
+ "requireMention": true,
13
+ "cards": false,
14
+ "domain": "feishu"
15
+ },
16
+ "codex": {
17
+ "bin": "codex",
18
+ "home": "~/.namo/data/codex-home",
19
+ "model": "",
20
+ "sandbox": "workspace-write",
21
+ "timeoutMs": 600000,
22
+ "networkAccess": true,
23
+ "denyPaths": [],
24
+ "allowLocalCommits": true,
25
+ "directories": []
26
+ },
27
+ "github": {
28
+ "repositories": [],
29
+ "allowedUserIds": []
30
+ }
31
+ }
@@ -0,0 +1,104 @@
1
+ import { spawnSync } from 'node:child_process';
2
+ import { realpathSync } from 'node:fs';
3
+ const baseline = '0.2.0';
4
+ const versionPattern = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/;
5
+ const known = { f2acbbf: 'changelogPage', '18ef06e': 'compactTasks' };
6
+ const kind = { feat: 'feature', fix: 'fix', perf: 'performance', style: 'style' };
7
+ function git(root, args) {
8
+ const result = spawnSync('git', ['--no-pager', ...args], { cwd: root, encoding: 'utf8', timeout: 5000, maxBuffer: 2_000_000,
9
+ env: { PATH: process.env.PATH, HOME: process.env.HOME, LC_ALL: 'C', GIT_CONFIG_GLOBAL: '/dev/null', GIT_CONFIG_NOSYSTEM: '1', GIT_OPTIONAL_LOCKS: '0' } });
10
+ return result.status === 0 && !result.error ? result.stdout : undefined;
11
+ }
12
+ function packageVersion(root, hash) {
13
+ try {
14
+ const value = JSON.parse(git(root, ['show', `${hash}:package.json`]) ?? 'null')?.version;
15
+ return typeof value === 'string' && versionPattern.test(value) ? value : undefined;
16
+ }
17
+ catch {
18
+ return;
19
+ }
20
+ }
21
+ function visibleChange(hash, subject) {
22
+ const match = /^(feat|fix|perf|style)(?:\([^\r\n()]{1,60}\))?!?:\s+(.+)$/.exec(subject);
23
+ if (!match)
24
+ return;
25
+ const text = match[2].trim();
26
+ // History becomes product-visible; omit suspicious subjects rather than leak credentials or local paths.
27
+ if (!text || text.length > 180 || /[\x00-\x1f\x7f]|(?:sk-|gh[pousr]_|github_pat_|eyJ[A-Za-z0-9_-]{12})|(?:password|secret|api.?key|access.?token|private.?key)|(?:https?:\/\/|\b[\w.+-]+@[\w.-]+\.[a-z]{2,}|(?:^|\s)(?:\/Users\/|\/home\/|\/private\/)|config\.local\.json|\bdata\/)/i.test(text))
28
+ return;
29
+ const entry = { id: hash, kind: kind[match[1]], text };
30
+ const curated = known[hash.slice(0, 7)];
31
+ if (curated)
32
+ entry.known = curated;
33
+ return entry;
34
+ }
35
+ /** Derive post-baseline releases from committed first-parent history, never from diffs or credentials. */
36
+ export function generateChangelog(root, currentVersion) {
37
+ const fallback = { source: 'fallback', releases: [] };
38
+ if (!versionPattern.test(currentVersion))
39
+ return fallback;
40
+ try {
41
+ const top = git(root, ['rev-parse', '--show-toplevel'])?.trim();
42
+ if (!top || realpathSync(top) !== realpathSync(root) || git(root, ['rev-parse', '--is-shallow-repository'])?.trim() !== 'false')
43
+ return fallback;
44
+ const versions = git(root, ['log', '--first-parent', '--format=%H', '--', 'package.json']);
45
+ if (!versions)
46
+ return fallback;
47
+ const boundaries = [];
48
+ let lastVersion;
49
+ // Version changes follow the release branch; entries also include merged feature commits.
50
+ const changes = versions.trim().split('\n').reverse();
51
+ if (changes.length > 200)
52
+ return fallback;
53
+ for (const hash of changes) {
54
+ const v = packageVersion(root, hash);
55
+ if (!v)
56
+ return fallback;
57
+ if (v !== lastVersion) {
58
+ boundaries.push({ hash, version: v });
59
+ lastVersion = v;
60
+ }
61
+ }
62
+ const baselineIndex = boundaries.findIndex(entry => entry.version === baseline);
63
+ if (baselineIndex < 0)
64
+ return fallback;
65
+ const range = (base, head) => {
66
+ const output = git(root, ['log', '--no-merges', '--topo-order', '--max-count=1001', '--format=%H%x09%cI%x09%s', `${base}..${head}`]);
67
+ if (output === undefined)
68
+ throw Error('history_unavailable');
69
+ const lines = output.trim() ? output.trim().split('\n') : [];
70
+ if (lines.length > 1000)
71
+ throw Error('history_too_large');
72
+ const result = [];
73
+ let lastDate = null;
74
+ for (const line of lines) {
75
+ const [hash, date, ...rest] = line.split('\t');
76
+ if (!/^[a-f0-9]{40,64}$/.test(hash) || !/^\d{4}-\d{2}-\d{2}T/.test(date))
77
+ throw Error('history_invalid');
78
+ const item = visibleChange(hash, rest.join('\t'));
79
+ if (item) {
80
+ result.push(item);
81
+ lastDate ??= date.slice(0, 10);
82
+ }
83
+ }
84
+ return { date: lastDate, changes: result };
85
+ };
86
+ const releases = [];
87
+ const latest = boundaries.at(-1);
88
+ const pending = range(latest.hash, 'HEAD');
89
+ if (pending.changes.length || currentVersion !== latest.version)
90
+ releases.push({ version: currentVersion === latest.version ? null : currentVersion, date: currentVersion === latest.version ? pending.date : null, changes: pending.changes });
91
+ for (let i = boundaries.length - 1; i > baselineIndex; i--) {
92
+ const release = boundaries[i], before = boundaries[i - 1];
93
+ const date = git(root, ['show', '-s', '--format=%cI', release.hash])?.trim();
94
+ if (!date || !/^\d{4}-\d{2}-\d{2}T/.test(date))
95
+ return fallback;
96
+ releases.push({ version: release.version, date: date.slice(0, 10), changes: range(before.hash, release.hash).changes });
97
+ }
98
+ return { source: 'git', releases };
99
+ }
100
+ catch {
101
+ return fallback;
102
+ }
103
+ }
104
+ //# sourceMappingURL=changelog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../scripts/changelog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,MAAM,QAAQ,GAAG,OAAO,CAAC;AACzB,MAAM,cAAc,GAAG,2FAA2F,CAAC;AACnH,MAAM,KAAK,GAA6C,EAAE,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,cAAc,EAAE,CAAC;AAC9G,MAAM,IAAI,GAAkC,EAAE,IAAI,EAAC,SAAS,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAC,OAAO,EAAE,CAAC;AAE1G,SAAS,GAAG,CAAC,IAAW,EAAC,IAAa;IACpC,MAAM,MAAM,GAAC,SAAS,CAAC,KAAK,EAAC,CAAC,YAAY,EAAC,GAAG,IAAI,CAAC,EAAC,EAAC,GAAG,EAAC,IAAI,EAAC,QAAQ,EAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,SAAS,EAAC,SAAS;QAC5G,GAAG,EAAC,EAAC,IAAI,EAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAC,IAAI,EAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,iBAAiB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CAAC,CAAC;YACnD,MAAM,IAAI,GAAC,GAAG,CAAC,IAAI,EAAC,CAAC,MAAM,EAAC,IAAI,EAAC,cAAc,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;YACvE,IAAG,CAAC,IAAI,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC;gBAAC,OAAO,QAAQ,CAAC;YAC9D,QAAQ,CAAC,IAAI,CAAC,EAAC,OAAO,EAAC,OAAO,CAAC,OAAO,EAAC,IAAI,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAC,EAAE,CAAC,EAAC,OAAO,EAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAC,CAAC,CAAC;QACjH,CAAC;QACD,OAAO,EAAC,MAAM,EAAC,KAAK,EAAC,QAAQ,EAAC,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QAAA,OAAO,QAAQ,CAAC;IAAA,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { loadConfig } from '../src/config.js';
2
+ import { CodexRuntime, probeRuntime } from '../src/runtime.js';
3
+ import { chatWorkspace } from '../src/safety.js';
4
+ const config = loadConfig();
5
+ try {
6
+ const probe = await probeRuntime(config.codex);
7
+ console.log(JSON.stringify({ ...probe, modelTurnVerified: false }));
8
+ if (process.argv.includes('--run')) {
9
+ if (!probe.authenticated)
10
+ throw new Error('请先 pnpm cli login,握手已通过但尚未验证模型推理。');
11
+ const runtime = new CodexRuntime(config.codex);
12
+ const run = await runtime.run({ cwd: chatWorkspace(config.dataDir, '__smoke__'),
13
+ prompt: 'Do not call tools. Reply with exactly FEISHU_CODEX_SMOKE_OK.',
14
+ signal: new AbortController().signal, onThread: () => { }, onTurn: () => { },
15
+ });
16
+ if (run.text !== 'FEISHU_CODEX_SMOKE_OK')
17
+ throw new Error('模型回复未符合 smoke 断言');
18
+ console.log(JSON.stringify({ modelTurnVerified: true, exactReply: true }));
19
+ }
20
+ }
21
+ catch (error) {
22
+ console.error(error instanceof Error ? error.message : 'smoke_failed');
23
+ process.exitCode = 1;
24
+ }
25
+ //# sourceMappingURL=smoke-codex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smoke-codex.js","sourceRoot":"","sources":["../../scripts/smoke-codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;AAC5B,IAAI,CAAC;IACH,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IACpE,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACnC,IAAI,CAAC,KAAK,CAAC,aAAa;YAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QAC/E,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC;YAC7E,MAAM,EAAE,8DAA8D;YACtE,MAAM,EAAE,IAAI,eAAe,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;SAC3E,CAAC,CAAC;QACH,IAAI,GAAG,CAAC,IAAI,KAAK,uBAAuB;YAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7E,CAAC;AACH,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IAAC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AAC/F,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { existsSync, mkdirSync } from 'node:fs';
2
+ import { randomUUID } from 'node:crypto';
3
+ import { homedir } from 'node:os';
4
+ import { dirname, join } from 'node:path';
5
+ import { loadConfig } from '../src/config.js';
6
+ import { connectCodex, RuntimeError } from '../src/runtime.js';
7
+ const quote = (value) => "'" + value.replaceAll("'", "'\"'\"'") + "'";
8
+ /** No inference, Feishu receiver, credential output, or changes to configuration. */
9
+ async function main() {
10
+ if (process.platform === 'win32')
11
+ throw new Error('posix_probe_required');
12
+ const config = loadConfig();
13
+ const cwd = join(config.dataDir, 'probe-workspace');
14
+ mkdirSync(cwd, { recursive: true, mode: 0o700 });
15
+ const rpc = await connectCodex(config.codex, cwd);
16
+ try {
17
+ await rpc.request('plugin/list', { cwds: [cwd], forceRefetch: false });
18
+ const catalog = await rpc.request('skills/list', { cwds: [cwd], forceReload: true });
19
+ const skills = catalog.data.flatMap((entry) => entry.skills);
20
+ const enabled = skills.filter((s) => s.enabled);
21
+ const disabled = skills.filter((s) => !s.enabled);
22
+ const controls = [config.file, join(config.codex.home, 'auth.json'), join(config.codex.home, 'config.toml')].filter(existsSync);
23
+ const parents = [homedir(), join(homedir(), '.codex'), config.codex.home].filter(existsSync);
24
+ const commands = [];
25
+ const read = (path, label, index) => commands.push(`if head -c 1 ${quote(path)} >/dev/null 2>/dev/null; then printf '${label}-read ${index}\\n'; else printf '${label}-blocked ${index}\\n'; fi`);
26
+ enabled.forEach((s, i) => read(s.path, 'skill', i));
27
+ disabled.forEach((s, i) => read(s.path, 'disabled', i));
28
+ controls.forEach((path, i) => read(path, 'protected', i));
29
+ parents.forEach((path, i) => commands.push(`if ls ${quote(path)} >/dev/null 2>/dev/null; then printf 'parent-read ${i}\\n'; else printf 'parent-blocked ${i}\\n'; fi`));
30
+ const nonce = randomUUID();
31
+ enabled.forEach((s, i) => {
32
+ const marker = quote(join(dirname(s.path), `.namo-readonly-probe-${nonce}-${i}`));
33
+ // Only a fresh, empty marker is attempted; a successful unexpected create
34
+ // is removed immediately. Never open an existing skill file for writing.
35
+ commands.push(`if (set -C; : > ${marker}) 2>/dev/null; then rm -f ${marker}; printf 'write-allowed ${i}\\n'; else printf 'write-blocked ${i}\\n'; fi`);
36
+ });
37
+ const result = await rpc.request('command/exec', { command: ['/bin/sh', '-c', commands.join('\n')], cwd,
38
+ permissionProfile: 'feishu-bot', timeoutMs: 20000, outputBytesCap: 65536 });
39
+ const lines = result.stdout.split('\n').filter(Boolean);
40
+ const count = (prefix) => lines.filter(line => line.startsWith(prefix + ' ')).length;
41
+ const unreadableSkillNames = lines.filter(line => line.startsWith('skill-blocked '))
42
+ .map(line => enabled[Number(line.split(' ')[1])].name);
43
+ const report = { inferenceTurnsStarted: 0, enabledSkills: enabled.length, readableSkills: count('skill-read'), unreadableSkillNames,
44
+ disabledSkillNames: disabled.map((s) => s.name), disabledReadsBlocked: count('disabled-blocked'),
45
+ skillWritesBlocked: count('write-blocked'), protectedReadsBlocked: count('protected-blocked'), protectedReadChecks: controls.length,
46
+ parentListingsBlocked: count('parent-blocked'), parentListingChecks: parents.length };
47
+ console.log(JSON.stringify(report));
48
+ if (result.exitCode !== 0 || !enabled.length || report.readableSkills !== enabled.length
49
+ || report.skillWritesBlocked !== enabled.length || report.protectedReadsBlocked !== controls.length)
50
+ process.exitCode = 1;
51
+ }
52
+ finally {
53
+ await rpc.close();
54
+ }
55
+ }
56
+ void main().catch(error => {
57
+ console.error(JSON.stringify({ error: error instanceof RuntimeError ? error.code : 'skills_probe_failed' }));
58
+ process.exitCode = 1;
59
+ });
60
+ //# sourceMappingURL=smoke-skills.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smoke-skills.js","sourceRoot":"","sources":["../../scripts/smoke-skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE/D,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,GAAG,CAAC;AAE9E,qFAAqF;AACrF,KAAK,UAAU,IAAI;IACjB,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAC,iBAAiB,CAAC,CAAC;IACnD,SAAS,CAAC,GAAG,EAAC,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,EAAC,KAAK,EAAC,CAAC,CAAC;IAC3C,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAClD,IAAI,CAAC;QACH,MAAM,GAAG,CAA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AAM,CAAC,QAAQ,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,cAAc,KAAK,OAAO,CAAC,MAAM;eACnF,MAAM,CAAC,kBAAkB,KAAK,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,qBAAqB,KAAK,QAAQ,CAAC,MAAM;YAAE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IAC9H,CAAC;YAAS,CAAC;QAAC,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;IAAC,CAAC;AAClC,CAAC;AAED,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACxB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,YAAY,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;IAC7G,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=access-contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-contract.js","sourceRoot":"","sources":["../../src/access-contract.ts"],"names":[],"mappings":""}