devsurface 0.2.0 → 0.3.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.
- package/CHANGELOG.md +15 -0
- package/README.md +48 -2
- package/action/dist/index.js +644 -0
- package/action.yml +39 -0
- package/dist/cli/index.js +1169 -224
- package/dist/cli/index.js.map +1 -1
- package/package.json +8 -5
- package/src/web/dist/assets/index-7njY8n4D.js +10 -0
- package/src/web/dist/assets/index-DvunFIw4.css +1 -0
- package/src/web/dist/index.html +2 -2
- package/src/web/dist/assets/index-CdzG3b92.js +0 -10
- package/src/web/dist/assets/index-l7i8vzTo.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
- Added the reusable `mrfandu1/devsurface@v0` GitHub Action.
|
|
6
|
+
- Added static repository checks for onboarding documentation, scripts, configuration,
|
|
7
|
+
environment setup, and declared ports.
|
|
8
|
+
- Added workflow annotations, job summaries, optional update-in-place pull request
|
|
9
|
+
comments, and configurable failure thresholds.
|
|
10
|
+
- Added safe fallback behavior when fork pull requests have read-only tokens.
|
|
11
|
+
- Added Docker Compose service status with running, stopped, error, and unavailable states.
|
|
12
|
+
- Added dashboard controls to start and stop individual Compose services.
|
|
13
|
+
- Added bounded per-service Docker Compose logs in the Services view.
|
|
14
|
+
- Added Docker Desktop guidance when the engine is not responding on macOS or Windows.
|
|
15
|
+
- Reduced consumer-installed dependencies by bundling the browser opener and keeping
|
|
16
|
+
React build-only.
|
|
17
|
+
|
|
3
18
|
## 0.2.0
|
|
4
19
|
|
|
5
20
|
- Added retained process logs through `GET /api/logs` so the dashboard can recover session output without relying only on WebSocket state.
|
package/README.md
CHANGED
|
@@ -117,6 +117,50 @@ Run DevSurface without installing it globally:
|
|
|
117
117
|
| `devsurface init` | Create a starter `devsurface.config.json`. |
|
|
118
118
|
| `devsurface run <script>` | Run a package script and stream output. |
|
|
119
119
|
|
|
120
|
+
## GitHub Action
|
|
121
|
+
|
|
122
|
+
DevSurface can check repository onboarding health on every pull request without
|
|
123
|
+
installing dependencies or running project scripts.
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
name: DevSurface
|
|
127
|
+
|
|
128
|
+
on:
|
|
129
|
+
pull_request:
|
|
130
|
+
push:
|
|
131
|
+
branches: [main]
|
|
132
|
+
|
|
133
|
+
permissions:
|
|
134
|
+
contents: read
|
|
135
|
+
pull-requests: write
|
|
136
|
+
|
|
137
|
+
jobs:
|
|
138
|
+
health:
|
|
139
|
+
runs-on: ubuntu-latest
|
|
140
|
+
steps:
|
|
141
|
+
- uses: actions/checkout@v4
|
|
142
|
+
- uses: mrfandu1/devsurface@v0
|
|
143
|
+
with:
|
|
144
|
+
fail-on: error
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
The action always emits workflow annotations and a Markdown job summary. On pull
|
|
148
|
+
requests it also creates or updates one DevSurface comment when the workflow token
|
|
149
|
+
has `pull-requests: write`. Fork pull requests normally receive a read-only token;
|
|
150
|
+
in that case the action keeps the annotations and summary and skips the comment.
|
|
151
|
+
|
|
152
|
+
Inputs:
|
|
153
|
+
|
|
154
|
+
| Input | Default | Description |
|
|
155
|
+
| -------------- | ------- | --------------------------------------------------------------- |
|
|
156
|
+
| `path` | `.` | Repository-relative directory to check. |
|
|
157
|
+
| `fail-on` | `error` | Fail on `error`, `warning`, or never fail with `never`. |
|
|
158
|
+
| `comment` | `true` | Create or update a pull request comment when permissions allow. |
|
|
159
|
+
| `github-token` | token | Token used only for pull request comments. |
|
|
160
|
+
|
|
161
|
+
The repository checks are intentionally static. They do not install dependencies,
|
|
162
|
+
run package scripts, inspect local ports, require a real `.env`, or contact Docker.
|
|
163
|
+
|
|
120
164
|
## What It Detects
|
|
121
165
|
|
|
122
166
|
| Area | Detection |
|
|
@@ -126,7 +170,7 @@ Run DevSurface without installing it globally:
|
|
|
126
170
|
| Scripts | `package.json` scripts |
|
|
127
171
|
| Environment | `.env`, `.env.example`, missing and empty keys without values |
|
|
128
172
|
| Ports | Configured, inferred, and occupied ports using Node's `net` module |
|
|
129
|
-
| Docker | Compose files,
|
|
173
|
+
| Docker | Compose files, daemon status, service state, controls, and logs |
|
|
130
174
|
| Git | Repository presence and current branch |
|
|
131
175
|
| Framework | Next.js, Vite, Express, Fastify, NestJS, Remix, Prisma |
|
|
132
176
|
|
|
@@ -141,7 +185,8 @@ The dashboard includes:
|
|
|
141
185
|
- **Scripts**: every package script, plus grouped configured commands when present.
|
|
142
186
|
- **Environment**: `.env` and `.env.example` status, key presence, and copy-from-example.
|
|
143
187
|
- **Ports**: detected ports with availability and conflict warnings.
|
|
144
|
-
- **Services**: Docker Compose
|
|
188
|
+
- **Services**: Docker Compose daemon state, per-service status, start/stop controls,
|
|
189
|
+
and the latest 200 log lines for each service.
|
|
145
190
|
- **Logs**: expandable per-command logs with timestamps, streams, and exit state.
|
|
146
191
|
- **Repo Health**: doctor warnings for common setup issues.
|
|
147
192
|
|
|
@@ -203,6 +248,7 @@ DevSurface is designed for local development.
|
|
|
203
248
|
- Mutating API routes require dashboard intent headers.
|
|
204
249
|
- `.env` values are never returned by scanners, API routes, CLI output, or UI panels.
|
|
205
250
|
- Dashboard command runs show the exact command string first.
|
|
251
|
+
- Docker service start and stop actions show the exact Compose command before running.
|
|
206
252
|
- Destructive-looking configured commands, such as `rm -rf`, `docker volume rm`,
|
|
207
253
|
database drops, and `git clean -fd`, are visibly marked before execution.
|
|
208
254
|
- Child processes started by DevSurface are cleaned up when the dashboard exits.
|