Skill: chat tools, skill library, retry/worktree facts, current auth
Add references/chat.md (pipelines MCP chat tools incl. show_diff, sent references, question forms, chat RPCs with send_at) and install it. SKILL.md: run worktrees, retry modes and failed-only retry, wait through human stages, server skill library, chat tools pointer. operations/debugging: retry resumes the failed stage by default; interrupted and canceled runs cannot retry; runs rm; search --debug-files; per-run worktrees no longer future; session export for OpenCode/Claude/Pi and repair. access: hashed web password, ./password, server-token, current proxy routes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,26 +1,32 @@
|
||||
# Hosting, access and deployment
|
||||
|
||||
The browser client is `web/serve.mjs`: static files plus a `/connect` WebSocket
|
||||
proxy and `/artifacts/` proxy to the Pipelines server. Plain `node serve.mjs` is
|
||||
enough for local work.
|
||||
The front door is `web/serve.mjs`: sign-in, the Flutter web app built from
|
||||
`app/`, and a same-origin proxy to the Pipelines server for `/connect`,
|
||||
`/files`, `/artifacts/` and `/chat-uploads`; it also serves app updates at
|
||||
`/updates/`. The native apps go through it too.
|
||||
|
||||
## Password gate
|
||||
|
||||
`serve.mjs` refuses pages, assets, artifacts and `/connect` without a signed
|
||||
session cookie. The password and signing secret live outside the repository:
|
||||
|
||||
`~/.config/pipelines/web-auth.json` (mode `600`), e.g.
|
||||
|
||||
```json
|
||||
{ "password": "…", "secret": "…" }
|
||||
```
|
||||
`~/.config/pipelines/web-auth.json` (mode `600`, `PIPELINES_WEB_AUTH_FILE`)
|
||||
holds an scrypt `password_hash`, the cookie `secret` and a `generation`; a
|
||||
plaintext `password` written there is hashed on load and signs everyone out.
|
||||
|
||||
The sign-in page is `/login`; **Remember me** keeps a 30-day cookie, otherwise
|
||||
the cookie lives until the browser closes. Wrong passwords are throttled. Tests
|
||||
that start their own `serve.mjs` set `PIPELINES_WEB_AUTH=disabled`; never put that
|
||||
in a service.
|
||||
|
||||
Changing the password: edit the file, then restart the web service.
|
||||
Change the password with `./password` from the source checkout (signs every
|
||||
device out; `--revoke-all` keeps the password); Settings → Sign-in security →
|
||||
Sign out everywhere revokes sessions without a restart.
|
||||
|
||||
The proxy reaches the server with `X-Pipelines-Token` from the private
|
||||
`~/.config/pipelines/server-token` (`PIPELINES_SERVER_TOKEN_FILE`), which the
|
||||
installer creates; local CLI calls and server-launched stages and chats read
|
||||
the same file. It is separate from the web password.
|
||||
|
||||
## Bind and exposure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user