Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bunfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ coveragePathIgnorePatterns = [
]

[serve.static]
plugins = ["bun-plugin-tailwind", "./scripts/reactCompilerPlugin.ts"]
plugins = ["./scripts/reactCompilerPlugin.ts", "bun-plugin-tailwind"]
environment = "PUBLIC_*"
54 changes: 33 additions & 21 deletions docs/api/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ route files under `backend/src/routes/` for exact validation details.
| Method | Path | Purpose |
| ------ | ------------------------- | ------------------------------------------------------ |
| `GET` | `/api/health/live` | Public web-process liveness. |
| `HEAD` | `/api/health/live` | Bodyless public web-process liveness probe. |
| `GET` | `/api/health/ready` | Public activation readiness; `503` when not ready. |
| `HEAD` | `/api/health/ready` | Bodyless readiness probe with the same status as GET. |
| `GET` | `/api/health/diagnostics` | Authenticated readiness details and dependency status. |
| `GET` | `/api/sessions` | Normalized session snapshot from Gateway. |

Expand Down Expand Up @@ -200,6 +202,13 @@ already-running execution finishes cooperatively.
| `POST` | `/api/backup` | Creates config backup. |
| `POST` | `/api/restart` | Queues an OpenClaw Gateway restart and waits for its persisted result. |

## Dashboard Settings

| Method | Path | Purpose |
| ------ | --------------- | ------------------------------------------------------------- |
| `GET` | `/api/settings` | Reads Dashboard preferences plus current Gateway connection. |
| `PUT` | `/api/settings` | Updates the validated Dashboard preference subset atomically. |

## Files, Config Files, Logs, Media

| Method | Path | Purpose |
Expand All @@ -210,8 +219,9 @@ already-running execution finishes cooperatively.
| `GET` | `/api/config-files` | Lists OpenClaw config files. |
| `GET` | `/api/config-files/*` | Reads a config file under OpenClaw root. |
| `PUT` | `/api/config-files/*` | Writes a config file under OpenClaw root. |
| `GET` | `/api/logs/info` | Lists log files/metadata. |
| `GET` | `/api/logs/content` | Reads log content. |
| `GET` | `/api/logs/dashboard` | Reads the bounded Dashboard service log tail. |
| `GET` | `/api/logs/openclaw/files` | Lists readable OpenClaw log files and metadata. |
| `GET` | `/api/logs/openclaw/content` | Reads a bounded tail from one allowlisted OpenClaw log file. |
| `GET` | `/api/media` | Serves or safely previews media bytes from OpenClaw media roots. |
| `GET` | `/api/chat/media/outgoing/*` | Proxies an exact managed Gateway media path with backend-held auth. |

Expand All @@ -232,31 +242,33 @@ upstream download metadata.

## Docker

| Method | Path | Purpose |
| -------- | ------------------------------------------------ | ----------------------------------------- |
| `GET` | `/api/docker/containers` | Lists containers. |
| `GET` | `/api/docker/containers/:containerId` | Reads container details. |
| `POST` | `/api/docker/containers/:containerId/action` | Queues a container start/stop/restart. |
| `GET` | `/api/docker/containers/:containerId/logs` | Reads container logs. |
| `POST` | `/api/docker/exec/start` | Queues a worker-owned container exec job. |
| `GET` | `/api/docker/exec/:jobId` | Reads persisted exec output/state. |
| `POST` | `/api/docker/exec/:jobId/stop` | Requests exec cancellation. |
| `GET` | `/api/docker/images` | Lists images. |
| `DELETE` | `/api/docker/images/:imageId` | Queues image deletion. |
| `GET` | `/api/docker/volumes` | Lists volumes. |
| `DELETE` | `/api/docker/volumes/:volumeName` | Queues volume deletion. |
| `POST` | `/api/docker/prune` | Queues a Docker prune target. |
| `POST` | `/api/docker/stack/action` | Queues a Compose stack action. |
| `GET` | `/api/docker/updater/services` | Lists managed update services. |
| `GET` | `/api/docker/updater/events` | Lists update events. |
| `POST` | `/api/docker/updater/run` | Queues an updater scan. |
| `POST` | `/api/docker/updater/services/:serviceId/update` | Queues one managed service update. |
| Method | Path | Purpose |
| -------- | ------------------------------------------------ | ------------------------------------------- |
| `GET` | `/api/docker/containers` | Lists containers. |
| `GET` | `/api/docker/containers/stats` | Reads the current container stats snapshot. |
| `GET` | `/api/docker/containers/:containerId` | Reads container details. |
| `POST` | `/api/docker/containers/:containerId/action` | Queues a container start/stop/restart. |
| `GET` | `/api/docker/containers/:containerId/logs` | Reads container logs. |
| `POST` | `/api/docker/exec/start` | Queues a worker-owned container exec job. |
| `GET` | `/api/docker/exec/:jobId` | Reads persisted exec output/state. |
| `POST` | `/api/docker/exec/:jobId/stop` | Requests exec cancellation. |
| `GET` | `/api/docker/images` | Lists images. |
| `DELETE` | `/api/docker/images/:imageId` | Queues image deletion. |
| `GET` | `/api/docker/volumes` | Lists volumes. |
| `DELETE` | `/api/docker/volumes/:volumeName` | Queues volume deletion. |
| `POST` | `/api/docker/prune` | Queues a Docker prune target. |
| `POST` | `/api/docker/stack/action` | Queues a Compose stack action. |
| `GET` | `/api/docker/updater/services` | Lists managed update services. |
| `GET` | `/api/docker/updater/events` | Lists update events. |
| `POST` | `/api/docker/updater/run` | Queues an updater scan. |
| `POST` | `/api/docker/updater/services/:serviceId/update` | Queues one managed service update. |

## Pull Requests And Deployments

| Method | Path | Purpose |
| ------ | -------------------------------------------- | ---------------------------------------------------------- |
| `GET` | `/api/pull-requests` | Lists Dashboard PRs. |
| `POST` | `/api/pull-requests/stacks` | Creates one reviewed native GitHub PR stack. |
| `POST` | `/api/pull-requests/:number/approve` | Queues merge, optionally followed by deploy. |
| `POST` | `/api/pull-requests/:number/reject` | Queues reject/close. |
| `POST` | `/api/pull-requests/:number/review-approval` | Queues review approval. |
Expand Down
8 changes: 5 additions & 3 deletions docs/architecture/greenfield-rewrite.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Greenfield Rewrite Blueprint

> **Status:** implementation started. The rewrite is built beside the current production
> implementation and targets a fresh database with no compatibility layer.
> **Status:** implementation active. Phase 0 evidence is complete and Phase 2 is complete for its
> stated server scope; the remaining foundation, browser, domain, Gateway/chat, privileged,
> hardening, and cutover phases are incomplete. The rewrite is built beside the current
> production implementation and targets a fresh database with no compatibility layer.
>
> **Audit date:** 2026-08-04. Package versions and the Bun canary snapshot in this document
> **Audit date:** 2026-08-06. Package versions and the Bun canary snapshot in this document
> are point-in-time facts. They are rechecked during an explicit candidate-promotion round,
> not for ordinary feature or review commits.

Expand Down
Loading
Loading