homeagent-runner 0.4.16 → 0.4.19
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/CHANGELOG.md +37 -0
- package/README.md +202 -160
- package/README.zh-CN.md +341 -0
- package/dist/runner/lsp.js +999 -0
- package/dist/runner/patch.js +66 -11
- package/dist/runner/shells.js +305 -0
- package/dist/runner/tools.js +19 -2
- package/dist/shared/protocol.js +1 -1
- package/dist/shared/tools.js +24 -4
- package/docs/ARCHITECTURE.md +46 -44
- package/docs/ARCHITECTURE.zh-CN.md +102 -0
- package/docs/CLIENTS.md +38 -36
- package/docs/CLIENTS.zh-CN.md +132 -0
- package/docs/COMPARISON.md +24 -22
- package/docs/COMPARISON.zh-CN.md +38 -0
- package/docs/DEPLOYMENT.md +119 -106
- package/docs/DEPLOYMENT.zh-CN.md +316 -0
- package/docs/DEVELOPMENT_WORKFLOW.md +41 -39
- package/docs/DEVELOPMENT_WORKFLOW.zh-CN.md +128 -0
- package/docs/OPEN_SOURCE.md +69 -65
- package/docs/OPEN_SOURCE.zh-CN.md +133 -0
- package/docs/README.md +24 -20
- package/docs/README.zh-CN.md +31 -0
- package/docs/REMOTE_ASSIST.md +31 -29
- package/docs/REMOTE_ASSIST.zh-CN.md +48 -0
- package/docs/TOOLS.md +88 -73
- package/docs/TOOLS.zh-CN.md +122 -0
- package/docs/VALIDATION.md +114 -107
- package/docs/VALIDATION.zh-CN.md +179 -0
- package/docs/WEBCODEX_CODE_AUDIT.md +81 -79
- package/docs/WEBCODEX_CODE_AUDIT.zh-CN.md +109 -0
- package/package.json +2 -2
- package/README.en.md +0 -390
package/README.en.md
DELETED
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="public/icon.png" width="128" height="128" alt="HomeAgent icon">
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
<h1 align="center">HomeAgent</h1>
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
<strong>Connect AI to your development machines.</strong><br>
|
|
9
|
-
Self-hosted MCP relay · Local execution · Permissions you control
|
|
10
|
-
</p>
|
|
11
|
-
|
|
12
|
-
<p align="center">
|
|
13
|
-
<a href="https://github.com/jhxxr/HomeAgent/actions/workflows/ci.yml"><img src="https://github.com/jhxxr/HomeAgent/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
14
|
-
<a href="https://www.npmjs.com/package/homeagent-server"><img src="https://img.shields.io/npm/v/homeagent-server?label=server&color=0755ff" alt="Server npm version"></a>
|
|
15
|
-
<a href="https://www.npmjs.com/package/homeagent-runner"><img src="https://img.shields.io/npm/v/homeagent-runner?label=runner&color=0755ff" alt="Runner npm version"></a>
|
|
16
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-147a57" alt="MIT License"></a>
|
|
17
|
-
<a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/Node.js-%E2%89%A524.14-339933" alt="Node.js 24.14 or newer"></a>
|
|
18
|
-
</p>
|
|
19
|
-
|
|
20
|
-
<p align="center">
|
|
21
|
-
<a href="README.md">简体中文</a> · English
|
|
22
|
-
</p>
|
|
23
|
-
|
|
24
|
-
<p align="center">
|
|
25
|
-
<a href="#quick-start">Quick start</a> ·
|
|
26
|
-
<a href="docs/DEPLOYMENT.md">Deployment</a> ·
|
|
27
|
-
<a href="docs/CLIENTS.md">AI clients</a> ·
|
|
28
|
-
<a href="docs/README.md">Documentation</a> ·
|
|
29
|
-
<a href="CHANGELOG.md">Changelog</a>
|
|
30
|
-
</p>
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
HomeAgent lets Claude, ChatGPT, Cursor and other MCP clients work on your own Linux / Windows development machines through a relay you host. Runners connect outbound and execute authorized file, command and Git operations locally, without opening inbound ports.
|
|
35
|
-
|
|
36
|
-
The execution system requires no model API key, hosted relay, telemetry or paid cloud service. Tool results are sent to the AI client you choose. Version **v0.4.15** supports one administrator and multiple devices.
|
|
37
|
-
|
|
38
|
-
## Remote Assist
|
|
39
|
-
|
|
40
|
-
Create a short-lived invitation in the Dashboard for one existing client authorization. The device owner selects multiple projects, per-project permissions and a shared duration in their local Runner before access is activated, and can stop it immediately. Personal/work pairing remains unchanged. No administrator account or model API key is needed on the assisted device; program allowlists are not an OS sandbox. See the [Remote Assist guide](docs/REMOTE_ASSIST.md).
|
|
41
|
-
|
|
42
|
-
## Why HomeAgent
|
|
43
|
-
|
|
44
|
-
| Your machines, your control | Built for everyday development |
|
|
45
|
-
| --- | --- |
|
|
46
|
-
| **Self-hosted relay**: keep the Server, SQLite and audit records on your server or local network. | **Files and code**: 35 tools for project context, line-based batch reads, search, strict diffs and journaled multi-file edits. |
|
|
47
|
-
| **Outbound runners**: authenticated WebSocket connections from Linux / Windows machines. | **Observable jobs**: immediate results for short commands; wait, read output, stop and retain records for longer tasks. |
|
|
48
|
-
| **Project-level access**: manage device and client permissions, with temporary elevation and automatic expiry. | **Git workflows**: review diffs, commit selected files safely, and separately control fetch / pull / push. |
|
|
49
|
-
|
|
50
|
-
## Screenshots
|
|
51
|
-
|
|
52
|
-
The overview maps **clients → MCP Server → Runners** and brings together jobs, permission reminders, audit activity and recent events. Device search, status filters, action confirmations, project permissions and job output remain available in their management views. The current interface is in Chinese.
|
|
53
|
-
|
|
54
|
-

|
|
55
|
-
|
|
56
|
-
Screenshots are rendered by a real browser using demo devices and projects in an isolated local environment, not production data. Statistics describe the audit sample returned by the Server.
|
|
57
|
-
|
|
58
|
-
<details>
|
|
59
|
-
<summary><strong>View the mobile layout</strong></summary>
|
|
60
|
-
|
|
61
|
-
On phones, a compact live topology keeps clients, the central MCP Server and Runners on the same screen, including the activity ring and call paths. Tap a node for its full settings; the segmented navigation opens the remaining management views.
|
|
62
|
-
|
|
63
|
-
<img src="docs/screenshots/dashboard-mobile.png" width="360" alt="HomeAgent mobile Dashboard: compact live client-to-MCP-to-Runner topology">
|
|
64
|
-
|
|
65
|
-
</details>
|
|
66
|
-
|
|
67
|
-
<details>
|
|
68
|
-
<summary><strong>Explore device permissions and task output</strong></summary>
|
|
69
|
-
|
|
70
|
-
**Device permissions** · Configure project paths, access levels, Git permissions and grant duration in the browser.
|
|
71
|
-
|
|
72
|
-

|
|
73
|
-
|
|
74
|
-
**Jobs and output** · Filter jobs by status, inspect execution records and read command output.
|
|
75
|
-
|
|
76
|
-

|
|
77
|
-
|
|
78
|
-
</details>
|
|
79
|
-
|
|
80
|
-
## How it works
|
|
81
|
-
|
|
82
|
-
```mermaid
|
|
83
|
-
flowchart TB
|
|
84
|
-
Clients["Claude / ChatGPT / Cursor"] -->|"HTTPS · MCP · OAuth / Token"| Server["HomeAgent Server"]
|
|
85
|
-
Server --- Console["Web Dashboard · SQLite · Audit"]
|
|
86
|
-
Runner["Linux / Windows Runner"] -->|"Outbound · WSS"| Server
|
|
87
|
-
Runner --- Files["Project files and code edits"]
|
|
88
|
-
Runner --- Commands["Local commands and jobs"]
|
|
89
|
-
Runner --- Git["Git workflows"]
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Built on the official MCP SDK v2 with Streamable HTTP `/mcp`, 2026-07-28 discovery/envelopes and legacy 2025 compatibility. Authentication includes OAuth authorization-code flow with S256 PKCE, scoped Bearer tokens and one-time device pairing. Deployment options include Docker Compose, Caddy/Nginx, optional Cloudflare Tunnel and native runner service installers.
|
|
93
|
-
|
|
94
|
-
This is an early self-hosted release, not a claim of feature parity with WebCodex or an independently audited operating-system sandbox. Persistent shells/PTY, detached tasks surviving runner replacement, automatic worktree registration, preview tunnels and a full workflow-session system are not implemented.
|
|
95
|
-
|
|
96
|
-
## Quick start
|
|
97
|
-
|
|
98
|
-
The Server and Runner are separate npm packages. Install them on the relay server
|
|
99
|
-
and the development machines you want to control:
|
|
100
|
-
|
|
101
|
-
| Component | npm package | Command |
|
|
102
|
-
| --- | --- | --- |
|
|
103
|
-
| Server / Web Dashboard | `homeagent-server` | `homeagent-server` |
|
|
104
|
-
| Runner | `homeagent-runner` | `homeagent` |
|
|
105
|
-
|
|
106
|
-
| Environment | Deployment |
|
|
107
|
-
| --- | --- |
|
|
108
|
-
| Linux server for continuous use | Docker Compose, your own domain and Caddy HTTPS |
|
|
109
|
-
| Existing Node.js installation or local evaluation | npm and `homeagent-server` |
|
|
110
|
-
| Existing Nginx / Caddy | Keep the Server on loopback and use your reverse proxy |
|
|
111
|
-
|
|
112
|
-
Follow this order: **start the Server → open the Dashboard → pair a Runner →
|
|
113
|
-
connect your AI client to `/mcp`**. The Server uses built-in SQLite and does not
|
|
114
|
-
need a separate database service.
|
|
115
|
-
|
|
116
|
-
### 1. Deploy the Server
|
|
117
|
-
|
|
118
|
-
**Option A: Docker Compose with Caddy for a public Linux server.**
|
|
119
|
-
|
|
120
|
-
Install Docker Engine, Compose v2 and Git. Point your domain at the server and
|
|
121
|
-
allow inbound TCP ports 80/443. Replace `mcp.example.com` below with your domain.
|
|
122
|
-
|
|
123
|
-
```sh
|
|
124
|
-
git clone --branch v0.4.15 --depth 1 https://github.com/jhxxr/HomeAgent.git
|
|
125
|
-
cd HomeAgent
|
|
126
|
-
|
|
127
|
-
# Generate random secrets without installing Node.js on the host.
|
|
128
|
-
docker run --rm --user "$(id -u):$(id -g)" \
|
|
129
|
-
-v "$PWD:/work" -w /work \
|
|
130
|
-
node:24.22.1-bookworm-slim node scripts/init.mjs
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
Edit the generated `.env`. Keep its random `ADMIN_PASSWORD` and `SESSION_SECRET`;
|
|
134
|
-
change or add:
|
|
135
|
-
|
|
136
|
-
```dotenv
|
|
137
|
-
PUBLIC_URL=https://mcp.example.com
|
|
138
|
-
DOMAIN=mcp.example.com
|
|
139
|
-
TRUST_PROXY_HOPS=1
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
```sh
|
|
143
|
-
docker compose --profile proxy up -d --build
|
|
144
|
-
docker compose --profile proxy ps
|
|
145
|
-
docker compose logs --tail=100 server
|
|
146
|
-
curl --fail https://mcp.example.com/health
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
Caddy obtains the certificate and proxies HTTP/WebSocket connections. Open
|
|
150
|
-
`https://mcp.example.com` and sign in with `ADMIN_PASSWORD` from `.env`. Port
|
|
151
|
-
`3210` is bound only to the host's loopback interface; it does not need public
|
|
152
|
-
access. Images build locally from source.
|
|
153
|
-
|
|
154
|
-
SQLite persists in the `server-data` named volume, and Compose configures
|
|
155
|
-
`restart: unless-stopped`. Back up the database and `.env` before upgrades,
|
|
156
|
-
retain `SESSION_SECRET`, and use ordinary restarts without deleting volumes.
|
|
157
|
-
See [deployment](docs/DEPLOYMENT.md) for backups, restore and an existing Nginx.
|
|
158
|
-
|
|
159
|
-
**Option B: npm on Linux / Windows or an existing Node.js server.**
|
|
160
|
-
|
|
161
|
-
Use Node.js 24 (minimum 24.14.0; `.nvmrc` contains the checked patch version)
|
|
162
|
-
and npm. These commands work in a Linux shell or Windows PowerShell:
|
|
163
|
-
|
|
164
|
-
```sh
|
|
165
|
-
npm install -g homeagent-server@latest
|
|
166
|
-
mkdir homeagent-server
|
|
167
|
-
cd homeagent-server
|
|
168
|
-
homeagent-server init
|
|
169
|
-
homeagent-server
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
Open `http://localhost:3210`. The generated `.env` contains `ADMIN_PASSWORD`;
|
|
173
|
-
initialization does not print the password or overwrite an existing file.
|
|
174
|
-
The database defaults to `data/server.sqlite` in this directory.
|
|
175
|
-
|
|
176
|
-
For public access, set `PUBLIC_URL` in `.env` to your fixed HTTPS origin. Set
|
|
177
|
-
`TRUST_PROXY_HOPS=1` for one trusted proxy and proxy Nginx/Caddy to
|
|
178
|
-
`127.0.0.1:3210`. The command runs in the foreground and reads `.env` from its
|
|
179
|
-
**current working directory**. Use a service manager for continuous operation;
|
|
180
|
-
a Linux user systemd example is in [native Server deployment](docs/DEPLOYMENT.md#原生部署-server).
|
|
181
|
-
|
|
182
|
-
### 2. Install and pair a Runner
|
|
183
|
-
|
|
184
|
-
Install Node.js 24 and npm on the development machine. Git operations also need
|
|
185
|
-
a local Git installation. Everyday use has a single entry point:
|
|
186
|
-
|
|
187
|
-
```sh
|
|
188
|
-
npm install -g homeagent-runner@latest
|
|
189
|
-
homeagent
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
Even before login, the full-screen welcome page explains that the device is not
|
|
193
|
-
signed in. Press Enter to provide the Web URL and device name and create the
|
|
194
|
-
private `$HOME/.homeagent/runner.json`. Press `o` on the approval screen to open
|
|
195
|
-
the browser; the link is valid for 10 minutes. Confirm the device name and project
|
|
196
|
-
directory and optional project name in your signed-in browser. After approval, the Runner connects
|
|
197
|
-
automatically. You can also add projects later in the Dashboard.
|
|
198
|
-
|
|
199
|
-
**The Server stores project directories and permissions.** New local Runner
|
|
200
|
-
configurations contain no `projects/root`. The local `stateDir` holds device
|
|
201
|
-
credentials and job state. Until you configure a project, no project access is
|
|
202
|
-
available. The first project setting is permanent by default; temporary access
|
|
203
|
-
remains available in the permission editor.
|
|
204
|
-
|
|
205
|
-
There is no separate default directory: an existing `Workspace` is an ordinary
|
|
206
|
-
project and can be renamed. Editing a project preserves its ID and grants;
|
|
207
|
-
new projects use fresh IDs, and removed IDs cannot be reused. Client permission
|
|
208
|
-
editing preserves explicit grants for temporarily unavailable, pending or failed
|
|
209
|
-
projects and labels their status until you deselect them. This does not make
|
|
210
|
-
unavailable projects accessible.
|
|
211
|
-
|
|
212
|
-
```sh
|
|
213
|
-
# Use the same entry point next time; login is detected automatically:
|
|
214
|
-
homeagent
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
Successful login or startup remembers the configuration location, so
|
|
218
|
-
`homeagent` also works from another directory. Press `s` for settings: device name,
|
|
219
|
-
process limits, output and history limits, login or Server switching,
|
|
220
|
-
configuration selection, autostart and logout. Changes that replace credentials
|
|
221
|
-
or require reconnection ask for confirmation. Press `a` for activity, `o` for the
|
|
222
|
-
Dashboard, `p` to pause or reconnect, Esc to go back, and `q` or Ctrl+C to quit.
|
|
223
|
-
|
|
224
|
-
Terminals supporting SGR mouse reports can click the login entry, footer buttons
|
|
225
|
-
and menu choices, scroll long menus and activity with the wheel, and position the
|
|
226
|
-
input cursor by clicking. Press `m` outside text fields, or click the mouse toggle,
|
|
227
|
-
to disable tracking for normal terminal selection and copying. Set
|
|
228
|
-
`HOMEAGENT_MOUSE=0` to start with tracking disabled. Pasted text cannot trigger
|
|
229
|
-
shortcuts or submit a form. Keyboard navigation remains available.
|
|
230
|
-
|
|
231
|
-
Clickable controls receive a shaded background on hover and a stronger blue
|
|
232
|
-
background while pressed. Moving away restores their normal appearance;
|
|
233
|
-
monochrome terminals use inverse text instead.
|
|
234
|
-
|
|
235
|
-
Use `homeagent --config <path>` to select another configuration. Lookup order:
|
|
236
|
-
explicit path, saved location, `~/.homeagent/runner.json`. A stale location stays
|
|
237
|
-
in the full-screen app until you select a configuration explicitly.
|
|
238
|
-
The `login`, `run`, `check-config`, `service-install` and `service-uninstall`
|
|
239
|
-
commands remain available for scripts and services.
|
|
240
|
-
|
|
241
|
-
In an interactive terminal, startup enters a full-screen Runner interface that
|
|
242
|
-
temporarily hides earlier shell commands and output. It shows the app mark,
|
|
243
|
-
device and Server details, recent activity and live connection state. The layout
|
|
244
|
-
adapts to terminal resizing, and stopping with `Ctrl+C` restores the previous
|
|
245
|
-
shell screen. Piped output, services and `homeagent run --plain` keep ordinary
|
|
246
|
-
logs for systemd, scheduled tasks and scripts.
|
|
247
|
-
|
|
248
|
-

|
|
249
|
-
|
|
250
|
-
*The v0.4.11 startup card, before the full-screen redesign: actual terminal output from an isolated demo environment, using a demo device and project directory.*
|
|
251
|
-
|
|
252
|
-
Enter Windows project paths such as `E:/Projects/my-app` in the Dashboard.
|
|
253
|
-
Keep configuration and state outside every exposed project. Local settings accept only connection and runtime options; project policies
|
|
254
|
-
come exclusively from the Server.
|
|
255
|
-
|
|
256
|
-
For automatic startup, select Enable autostart in settings. After confirmation,
|
|
257
|
-
the app closes the foreground connection before handing over to the background
|
|
258
|
-
Runner. Advanced users can still stop the foreground Runner and use
|
|
259
|
-
`homeagent service-install`.
|
|
260
|
-
Linux installs a user systemd service; Windows installs a current-user login
|
|
261
|
-
task. The installer discovers the configuration and pins the service to that
|
|
262
|
-
path. This command manages the Runner only.
|
|
263
|
-
|
|
264
|
-
Command execution and Git writes are disabled by default. Enable them in the
|
|
265
|
-
Dashboard's device policy and grant the corresponding client scopes. Command aliases and environment profiles are configured in the Web editor.
|
|
266
|
-
Windows `.cmd` wrappers are not implicitly run through a shell. See the
|
|
267
|
-
[development workflow](docs/DEVELOPMENT_WORKFLOW.md) for executable aliases
|
|
268
|
-
and environment profiles.
|
|
269
|
-
|
|
270
|
-
The Dashboard manages device policies and existing PAT/OAuth grants. Device
|
|
271
|
-
policy controls the upper limit; client grants separately control devices,
|
|
272
|
-
projects, scopes, individual tools, device-wide file access and unrestricted
|
|
273
|
-
execution. Either layer can be temporary. Expiration stops managed jobs and
|
|
274
|
-
restores the permanent Server policy. Disconnecting revokes all project access
|
|
275
|
-
until the Server policy is synchronized again. Upgrade the Server and Runner to the same version.
|
|
276
|
-
|
|
277
|
-
### 3. Connect an AI client
|
|
278
|
-
|
|
279
|
-
| Purpose | Public deployment example |
|
|
280
|
-
| --- | --- |
|
|
281
|
-
| Dashboard | `https://mcp.example.com` |
|
|
282
|
-
| Client MCP endpoint | `https://mcp.example.com/mcp` |
|
|
283
|
-
| Runner `server` configuration | `https://mcp.example.com`, without `/mcp` |
|
|
284
|
-
| Health check | `https://mcp.example.com/health`, returns `version` and `runnerProtocol` |
|
|
285
|
-
|
|
286
|
-
Check versions with `homeagent-server --version` and `homeagent --version`; both
|
|
287
|
-
print the version, Node and platform, and `homeagent check-config` also lists the
|
|
288
|
-
Runner version. The Dashboard header, footer and Settings → 版本信息 show the
|
|
289
|
-
Server version plus each Runner's reported version and a match/upgrade hint. Keep
|
|
290
|
-
the Server and Runner on the same release when upgrading.
|
|
291
|
-
|
|
292
|
-
Use OAuth and approve the device/project permissions in your browser, or issue
|
|
293
|
-
a client token in the Dashboard with the intended `read / write / execute / git`
|
|
294
|
-
scopes and connect with Bearer authentication. Tokens are shown once; device
|
|
295
|
-
credentials are not client tokens.
|
|
296
|
-
|
|
297
|
-
For a local trial, use `http://localhost:3210`. Remote access requires a fixed
|
|
298
|
-
HTTPS origin, and the Server must be hosted at the origin root rather than a
|
|
299
|
-
URL subpath. See [client setup](docs/CLIENTS.md) for individual clients.
|
|
300
|
-
|
|
301
|
-
### Develop from source
|
|
302
|
-
|
|
303
|
-
Use a source checkout to change the code. npm or Compose handles ordinary
|
|
304
|
-
installation:
|
|
305
|
-
|
|
306
|
-
```sh
|
|
307
|
-
git clone https://github.com/jhxxr/HomeAgent.git
|
|
308
|
-
cd HomeAgent
|
|
309
|
-
npm ci
|
|
310
|
-
npm run build
|
|
311
|
-
npm run init
|
|
312
|
-
npm run server
|
|
313
|
-
```
|
|
314
|
-
|
|
315
|
-
The source Runner commands are
|
|
316
|
-
`npm run runner -- login` and `npm run runner -- run`, with the same
|
|
317
|
-
configuration and approval flow.
|
|
318
|
-
|
|
319
|
-
## Typical development workflow
|
|
320
|
-
|
|
321
|
-
1. `list_devices` and `get_project_context`.
|
|
322
|
-
2. `search_files` and `read_files` for relevant code and full-file hashes.
|
|
323
|
-
3. `edit_files` or `apply_unified_diff` with explicit expected hashes.
|
|
324
|
-
4. `run_command`, then `wait_process` for long executions.
|
|
325
|
-
5. `git_diff`, `git_branches` and `git_commit_paths`.
|
|
326
|
-
6. `save_project_note` for a bounded handoff to the same client identity.
|
|
327
|
-
|
|
328
|
-
For a temporary maintenance task, open the device in the Dashboard, select the
|
|
329
|
-
needed project and capability preset, then edit the existing client
|
|
330
|
-
authorization if it also needs device-wide files or unrestricted execution.
|
|
331
|
-
Revoke the temporary grant early when finished; otherwise its expiry performs
|
|
332
|
-
the same cleanup.
|
|
333
|
-
|
|
334
|
-
Multiple online devices require an explicit `deviceId`. Machine tools also
|
|
335
|
-
require `projectId`. A job UUID is an identifier, not permission to access it.
|
|
336
|
-
|
|
337
|
-
## Documentation
|
|
338
|
-
|
|
339
|
-
Detailed operational documents are currently in Chinese; the examples use the
|
|
340
|
-
same command and configuration names on all platforms.
|
|
341
|
-
|
|
342
|
-
| Document | Purpose |
|
|
343
|
-
| --- | --- |
|
|
344
|
-
| [Documentation index](docs/README.md) | All guides |
|
|
345
|
-
| [Deployment](docs/DEPLOYMENT.md) | Docker, proxies, pairing, services and backups |
|
|
346
|
-
| [Client setup](docs/CLIENTS.md) | ChatGPT, Claude, Cursor and SDK clients |
|
|
347
|
-
| [Development workflow](docs/DEVELOPMENT_WORKFLOW.md) | Tools, profiles, recovery and known limits |
|
|
348
|
-
| [Tool reference](docs/TOOLS.md) | Arguments, scopes and admin endpoints |
|
|
349
|
-
| [Architecture](docs/ARCHITECTURE.md) | Protocol and persistence |
|
|
350
|
-
| [Security](SECURITY.md) | Trust boundaries and reporting |
|
|
351
|
-
| [Validation](docs/VALIDATION.md) | Tests performed and unverified environments |
|
|
352
|
-
| [Source audit](docs/WEBCODEX_CODE_AUDIT.md) | Explicit differences from WebCodex |
|
|
353
|
-
|
|
354
|
-
## Development
|
|
355
|
-
|
|
356
|
-
```sh
|
|
357
|
-
npm ci
|
|
358
|
-
npm run verify
|
|
359
|
-
npm run notices:check
|
|
360
|
-
npm audit --omit=dev --audit-level=high
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
Tests use temporary directories and local HTTP/WebSocket servers. Python is
|
|
364
|
-
optional; its workflow test reports a skip if no interpreter is available.
|
|
365
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md) for environment details.
|
|
366
|
-
|
|
367
|
-
## Security and license
|
|
368
|
-
|
|
369
|
-
An allowed interpreter, shell or build tool runs with the runner account's
|
|
370
|
-
permissions. File-root checks constrain built-in file tools; they do not sandbox
|
|
371
|
-
arbitrary code. Use a dedicated low-privilege account or container/VM.
|
|
372
|
-
|
|
373
|
-
Original source is available under the [MIT License](LICENSE). Dependencies retain
|
|
374
|
-
their own terms in [third-party notices](THIRD_PARTY_NOTICES.md). The release
|
|
375
|
-
produces two public npm packages: `homeagent-server` contains the Server and
|
|
376
|
-
Dashboard, while `homeagent-runner` contains the Runner, shared protocol and Windows
|
|
377
|
-
helpers. Each package has an explicit file list and license notices.
|
|
378
|
-
|
|
379
|
-
See [release preparation](docs/OPEN_SOURCE.md) to generate a reviewed source
|
|
380
|
-
archive. Nothing in the release commands automatically publishes or pushes it.
|
|
381
|
-
|
|
382
|
-
The `v0.4.15` release configuration produces separate `homeagent-server` and
|
|
383
|
-
`homeagent-runner` packages; local release commands do not upload to npm or push a
|
|
384
|
-
GitHub Release. For subsequent releases, increment the version and update the
|
|
385
|
-
version files and changelog before pushing a matching `vX.Y.Z` tag. Configure
|
|
386
|
-
the repository's `NPM_TOKEN` Actions secret for token publishing. Prereleases use
|
|
387
|
-
the npm `next` tag; stable versions use `latest`. Existing npm versions must match
|
|
388
|
-
the verified tarball integrity to resume a failed GitHub Release. See the release
|
|
389
|
-
guide for required token permissions and migration to OIDC trusted publishing
|
|
390
|
-
with the `NPM_AUTH_MODE=oidc` repository variable.
|