@bitseek/hermes-webui 0.1.0-beta.1 → 0.1.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 CHANGED
@@ -84,6 +84,7 @@ hermes-webui doctor
84
84
  - 创建运行时状态目录。
85
85
  - 创建并管理 Python venv。
86
86
  - 按 vendored WebUI 的 `requirements.txt` 安装 Python 依赖。
87
+ - 默认启用 BitSeek 外观和扩展入口,包括 “AI 同事” 页面。
87
88
  - 启动 vendored `agent-frontend-shell/server.py`。
88
89
  - 等待 `/health` 健康检查通过。
89
90
  - 把 PID、日志路径和运行时信息写入状态目录。
@@ -130,6 +131,19 @@ HERMES_WEBUI_HOST 默认 127.0.0.1
130
131
  HERMES_WEBUI_PORT 默认 8787
131
132
  ```
132
133
 
134
+ BitSeek 扩展默认值:
135
+
136
+ ```text
137
+ HERMES_WEBUI_EXTENSION_DIR 默认 ./extensions
138
+ HERMES_WEBUI_EXTENSION_STYLESHEET_URLS 默认 /extensions/themes/bitseek/index.css
139
+ HERMES_WEBUI_EXTENSION_SCRIPT_URLS 默认 /extensions/themes/bitseek/index.js,/extensions/index.js
140
+ HERMES_WEBUI_BOT_NAME 默认 BitSeek Claw
141
+ ```
142
+
143
+ 这些默认值在 macOS、Linux、Windows 上都可用。`./extensions` 会由 vendored
144
+ WebUI 按运行时源码目录解析,不依赖当前 shell 的工作目录。显式设置同名环境变量
145
+ 可以覆盖默认值。
146
+
133
147
  示例:
134
148
 
135
149
  ```bash
@@ -27,6 +27,12 @@ const packageJson = JSON.parse(readFileSync(resolve(packageRoot, 'package.json')
27
27
 
28
28
  const DEFAULT_HOST = '127.0.0.1'
29
29
  const DEFAULT_PORT = 8787
30
+ const BITSEEK_DEFAULT_ENV = {
31
+ HERMES_WEBUI_EXTENSION_DIR: './extensions',
32
+ HERMES_WEBUI_EXTENSION_STYLESHEET_URLS: '/extensions/themes/bitseek/index.css',
33
+ HERMES_WEBUI_EXTENSION_SCRIPT_URLS: '/extensions/themes/bitseek/index.js,/extensions/index.js',
34
+ HERMES_WEBUI_BOT_NAME: 'BitSeek Claw',
35
+ }
30
36
 
31
37
  function usage() {
32
38
  console.log(`@bitseek/hermes-webui v${packageJson.version}
@@ -250,6 +256,9 @@ function buildEnv(python, options) {
250
256
  const paths = statePaths()
251
257
  const env = {
252
258
  ...process.env,
259
+ ...Object.fromEntries(
260
+ Object.entries(BITSEEK_DEFAULT_ENV).filter(([key]) => !process.env[key]),
261
+ ),
253
262
  HERMES_HOME: hermesHome(),
254
263
  HERMES_WEBUI_STATE_DIR: paths.dir,
255
264
  HERMES_WEBUI_HOST: options.host,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitseek/hermes-webui",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Npm wrapper for Bitseek Hermes WebUI runtime.",
6
6
  "bin": {