agent-device-lab 0.0.0-stage → 0.3.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/LICENSE +202 -0
- package/NOTICE +10 -0
- package/README.md +150 -2
- package/assets/dashboard/app.css +238 -0
- package/assets/dashboard/app.js +976 -0
- package/assets/dashboard/index.html +120 -0
- package/bin/agentlab.js +8 -0
- package/dist/cli/ci.js +443 -0
- package/dist/cli/flow.js +127 -0
- package/dist/cli/main.js +855 -0
- package/dist/cli/signals.js +38 -0
- package/dist/core/action-log.js +125 -0
- package/dist/core/auth.js +175 -0
- package/dist/core/bundle.js +432 -0
- package/dist/core/checks.js +137 -0
- package/dist/core/ci.js +389 -0
- package/dist/core/commands.js +366 -0
- package/dist/core/control.js +217 -0
- package/dist/core/detectors.js +392 -0
- package/dist/core/devices.js +83 -0
- package/dist/core/doctor.js +203 -0
- package/dist/core/explore-safety.js +110 -0
- package/dist/core/extract.js +1445 -0
- package/dist/core/feed.js +493 -0
- package/dist/core/findings.js +179 -0
- package/dist/core/format.js +311 -0
- package/dist/core/init.js +607 -0
- package/dist/core/lab.js +1979 -0
- package/dist/core/migrate.js +35 -0
- package/dist/core/observation.js +161 -0
- package/dist/core/ownership.js +142 -0
- package/dist/core/process-group.js +206 -0
- package/dist/core/process-identity.js +56 -0
- package/dist/core/profile.js +816 -0
- package/dist/core/project-runner.js +359 -0
- package/dist/core/replay.js +303 -0
- package/dist/core/reproduction.js +36 -0
- package/dist/core/scan-policy.js +156 -0
- package/dist/core/scan-report.js +145 -0
- package/dist/core/scan.js +455 -0
- package/dist/core/schema.js +39 -0
- package/dist/core/services.js +134 -0
- package/dist/core/steps.js +80 -0
- package/dist/core/sweep.js +138 -0
- package/dist/core/trace-sanitize.js +641 -0
- package/dist/core/url-redact.js +25 -0
- package/dist/core/versions.js +29 -0
- package/dist/core/zip.js +264 -0
- package/dist/daemon/main.js +160 -0
- package/dist/daemon/state.js +93 -0
- package/dist/dashboard/open.js +25 -0
- package/dist/dashboard/server.js +366 -0
- package/dist/mcp/server.js +89 -0
- package/package.json +63 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Agent Device Lab
|
|
2
|
+
Copyright 2026 Colony Innovations
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
It depends on, and does not include, the following software, installed by npm
|
|
7
|
+
under their own licences:
|
|
8
|
+
|
|
9
|
+
Playwright (Apache-2.0), Copyright (c) Microsoft Corporation
|
|
10
|
+
Model Context Protocol TypeScript SDK (MIT), Copyright (c) Anthropic, PBC
|
package/README.md
CHANGED
|
@@ -1,3 +1,151 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Agent Device Lab
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Agent Device Lab lets a coding agent start your web app, use it at phone, tablet or desktop size, and report what breaks, while you watch.
|
|
4
|
+
|
|
5
|
+
- **It runs your project.** The lab starts the services your app needs, in order, or attaches to ones already running. When it finishes it stops only what it started.
|
|
6
|
+
- **It gives the agent a small, exact view.** The agent gets a short list of the controls on screen, each with a ref (`e1`, `e2`, ...). After every click or keystroke it gets only what changed.
|
|
7
|
+
- **It finds layout defects.** It records problems a person would hit at each screen size, such as a button pushed off the edge on a phone, each with measurements and the steps to reproduce it.
|
|
8
|
+
- **You stay in charge.** A local dashboard shows the agent's screen live. You can pause the agent, take over the browser, hand it back, or stop the run.
|
|
9
|
+
|
|
10
|
+
The same commands work from a terminal (`agentlab`), from an MCP server for Claude Code and Codex, and in CI with predictable exit codes.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
**Status:** Web V1 (`0.3.1`). It is tested on Linux x64 (Debian 12 and Ubuntu 24.04) with Node.js 22 and 24. macOS, Windows and arm64 are untested, and Alpine does not work. See [Limitations](#limitations).
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
You need **Node.js 22 or newer**.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install -g agent-device-lab # the command it installs is `agentlab`
|
|
22
|
+
agentlab install-browser # the Chromium build the lab needs (add --with-deps on a bare Debian or Ubuntu image)
|
|
23
|
+
agentlab doctor # checks Node, the browser and your environment
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
To build it from source instead:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
git clone https://github.com/Colony-Innovations/agent-device-lab.git && cd agent-device-lab
|
|
30
|
+
npm ci && npm pack # builds and writes agent-device-lab-<version>.tgz
|
|
31
|
+
npm install -g ./agent-device-lab-*.tgz
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Per-project installs, `npx`, upgrading and uninstalling are in [docs/install.md](docs/install.md).
|
|
35
|
+
|
|
36
|
+
## Try it
|
|
37
|
+
|
|
38
|
+
The fastest way to learn the lab is the [getting-started guide](docs/getting-started.md). It takes about ten minutes, uses a small demo app with a defect planted in it, and shows the real output of every command.
|
|
39
|
+
|
|
40
|
+
In your own project the short version is:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
cd /path/to/your-app
|
|
44
|
+
|
|
45
|
+
agentlab init # shows what it detected and the agentlab.json it proposes; writes nothing until you confirm
|
|
46
|
+
agentlab start # starts your app, opens a browser at the size in your profile (phone by default), prints the first observation
|
|
47
|
+
agentlab ui # opens the dashboard so you can watch
|
|
48
|
+
|
|
49
|
+
agentlab observe # the controls on screen, with refs
|
|
50
|
+
agentlab click e3 # by ref; or: agentlab click --name "Save" --role button
|
|
51
|
+
agentlab fill e6 "Acme Ltd"
|
|
52
|
+
agentlab inspect # the findings recorded so far, with evidence and reproduction steps
|
|
53
|
+
|
|
54
|
+
agentlab sweep /reports # one page at 320, 390, 768 and 1440 px
|
|
55
|
+
agentlab stop # closes the browser and stops only the services the lab started
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The browser has no window of its own. You watch it in the dashboard, so nothing covers your screen. Pass `--headed` to `start` if you also want a browser window.
|
|
59
|
+
|
|
60
|
+
The lab reads one file in your project, `agentlab.json`. A minimal one:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"schemaVersion": 2,
|
|
65
|
+
"name": "my-app",
|
|
66
|
+
"services": { "web": { "command": "npm run dev", "url": "http://127.0.0.1:5173", "readiness": { "path": "/" } } },
|
|
67
|
+
"app": { "service": "web" },
|
|
68
|
+
"device": "mobile-390"
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
`device` sets the screen the agent uses: `mobile-320`, `mobile-390`, `tablet-768` or `desktop-1440`. Everything works the same way at each size.
|
|
73
|
+
|
|
74
|
+
The lab runs only the commands written there, so committing the file is how you approve them. Every setting is in [docs/configuration.md](docs/configuration.md).
|
|
75
|
+
|
|
76
|
+
## Use it from your coding agent
|
|
77
|
+
|
|
78
|
+
`agentlab mcp` is an MCP server with 25 tools that mirror the terminal commands. Register it once:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
claude mcp add --scope user agentlab -- "$(command -v agentlab)" mcp --headless # Claude Code
|
|
82
|
+
codex mcp add agentlab -- "$(command -v agentlab)" mcp --headless # Codex CLI
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Then ask your agent, for example: "Start the lab on this project, open the Reports page and tell me what breaks at phone width." The agent calls `start` with your project's path, then observes and acts. Setup details, the tool list and what the agent should do on each error are in [docs/mcp.md](docs/mcp.md).
|
|
86
|
+
|
|
87
|
+
## Watch and step in
|
|
88
|
+
|
|
89
|
+
Every session serves a dashboard on `127.0.0.1`. Run `agentlab ui` in the project directory to open it.
|
|
90
|
+
|
|
91
|
+
- The centre shows the agent's screen live. During a sweep or scan it follows the width being measured, and a line above it says what you are looking at.
|
|
92
|
+
- The left shows each action and what it changed. The right shows the findings.
|
|
93
|
+
- The buttons let you **pause** the agent, **take over** the browser, **return** control, **stop** the run, or use the **emergency stop**.
|
|
94
|
+
|
|
95
|
+
The link the agent receives is view-only. Only the link from `agentlab ui` has the controls. While you have control the agent's actions are refused with a clear message, and it must look at the page again before it continues. See [docs/dashboard.md](docs/dashboard.md).
|
|
96
|
+
|
|
97
|
+
## Run it in CI
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
agentlab test --validate-only # check the profile and environment; start nothing
|
|
101
|
+
agentlab test --out agentlab-results
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
`agentlab test` starts the project, runs the flows, sweeps and scans your profile selects, stops what it started, and exits **0** for pass, **1** when the policy failed, **2** when it could not run and **3** on a timeout. It writes a JSON result, a JUnit file, an HTML report, evidence and failure bundles, and keeps secrets out of all of them. A failure bundle can be re-run later with `agentlab replay`. See [docs/ci.md](docs/ci.md) and the [GitHub Actions example](examples/ci/github-actions.yml).
|
|
105
|
+
|
|
106
|
+
## How findings work
|
|
107
|
+
|
|
108
|
+
Each finding has an id, a device, a severity, a confidence, measurements in CSS pixels and the steps to reproduce it from the start of the session. A finding stays recorded even when a later action succeeds.
|
|
109
|
+
|
|
110
|
+
A finding is **confirmed** only when a measurement shows a person is affected: a hit test, an interaction, clipping, a WCAG rule or the browser's layout-shift metric. Everything else is **heuristic**, and a heuristic is never high severity without such a measurement. The detectors and the scan rules are described in [docs/web-v1-m2.md](docs/web-v1-m2.md).
|
|
111
|
+
|
|
112
|
+
## Limitations
|
|
113
|
+
|
|
114
|
+
- Linux x64 with glibc only. macOS, Windows and arm64 are untested, and Alpine does not work.
|
|
115
|
+
- The devices are Chromium emulation, not real phones: no iOS Safari, no on-screen keyboard.
|
|
116
|
+
- Supervision is cooperative, not a sandbox. It stops an agent that uses the lab's commands; it does not contain an agent that has a shell.
|
|
117
|
+
- The findings are only as good as the detectors, and a sweep sees a page only as it first loads. Use scans for drawers, dialogs and other states.
|
|
118
|
+
|
|
119
|
+
The full list and the roadmap are in [docs/limitations.md](docs/limitations.md).
|
|
120
|
+
|
|
121
|
+
## Documentation
|
|
122
|
+
|
|
123
|
+
Start with the [documentation index](docs/README.md). The pages people need most:
|
|
124
|
+
|
|
125
|
+
| to | read |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| learn the tool step by step | [docs/getting-started.md](docs/getting-started.md) |
|
|
128
|
+
| install, upgrade or uninstall | [docs/install.md](docs/install.md) |
|
|
129
|
+
| write `agentlab.json` | [docs/configuration.md](docs/configuration.md) |
|
|
130
|
+
| look up a command or flag | [docs/cli.md](docs/cli.md) |
|
|
131
|
+
| connect an agent over MCP | [docs/mcp.md](docs/mcp.md) |
|
|
132
|
+
| watch and supervise a session | [docs/dashboard.md](docs/dashboard.md) |
|
|
133
|
+
| gate a pipeline | [docs/ci.md](docs/ci.md) |
|
|
134
|
+
| fix a problem | [docs/troubleshooting.md](docs/troubleshooting.md) |
|
|
135
|
+
| understand what is and is not protected | [docs/security.md](docs/security.md) |
|
|
136
|
+
|
|
137
|
+
Measurements of the lab, including a benchmark against Playwright MCP and runs on four independent apps, are listed under [Evidence](docs/README.md#evidence) in the index. Each states its method and its caveats.
|
|
138
|
+
|
|
139
|
+
## Contributing and security
|
|
140
|
+
|
|
141
|
+
Building, testing and the project's rules are in [CONTRIBUTING.md](CONTRIBUTING.md). Report a security issue privately as described in [SECURITY.md](SECURITY.md), not in a public issue. Changes by release are in [CHANGELOG.md](CHANGELOG.md).
|
|
142
|
+
|
|
143
|
+
## Support development
|
|
144
|
+
|
|
145
|
+
If Agent Device Lab is useful to you, you can support its ongoing development
|
|
146
|
+
for $2/month on [Patreon](https://www.patreon.com/Ikafa).
|
|
147
|
+
Support is completely optional.
|
|
148
|
+
|
|
149
|
+
## Licence
|
|
150
|
+
|
|
151
|
+
Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). Copyright 2026 Colony Innovations.
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg: #f4f5f7; --panel: #ffffff; --ink: #1b1f24; --muted: #667085; --line: #e2e5ea;
|
|
3
|
+
--ok: #117a43; --ok-bg: #e7f6ee; --err: #b42318; --err-bg: #fdecea; --warn: #9a5b00; --warn-bg: #fff4e0;
|
|
4
|
+
--high: #b42318; --medium: #b25e00; --low: #52606d; --accent: #2462d6; --sel: #eaf1ff;
|
|
5
|
+
color-scheme: light dark;
|
|
6
|
+
}
|
|
7
|
+
@media (prefers-color-scheme: dark) {
|
|
8
|
+
:root {
|
|
9
|
+
--bg: #111418; --panel: #1a1e24; --ink: #e6e9ee; --muted: #8b95a3; --line: #2b313a;
|
|
10
|
+
--ok: #4cc38a; --ok-bg: #16281f; --err: #ff7b72; --err-bg: #2d1717; --warn: #f0b64d; --warn-bg: #2c2312;
|
|
11
|
+
--high: #ff7b72; --medium: #f0a24d; --low: #9aa6b2; --accent: #6ea0ff; --sel: #1d2a40;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
* { box-sizing: border-box; }
|
|
15
|
+
[hidden] { display: none !important; }
|
|
16
|
+
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
|
|
17
|
+
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
|
|
18
|
+
.muted { color: var(--muted); }
|
|
19
|
+
.small { font-size: 12px; font-weight: 400; }
|
|
20
|
+
.grow { flex: 1; }
|
|
21
|
+
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
|
|
22
|
+
|
|
23
|
+
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
|
|
24
|
+
.brand { font-weight: 700; }
|
|
25
|
+
.pill { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); }
|
|
26
|
+
.pill[data-state="active"] { background: var(--ok-bg); color: var(--ok); }
|
|
27
|
+
.pill[data-state="starting"] { background: var(--warn-bg); color: var(--warn); }
|
|
28
|
+
.pill[data-state="failed"] { background: var(--err-bg); color: var(--err); }
|
|
29
|
+
.conn { font-size: 12px; color: var(--muted); }
|
|
30
|
+
.conn::before { content: "●"; margin-right: 5px; }
|
|
31
|
+
.conn[data-conn="live"]::before { color: var(--ok); }
|
|
32
|
+
.conn[data-conn="reconnecting"]::before, .conn[data-conn="connecting"]::before { color: var(--warn); }
|
|
33
|
+
.conn[data-conn="closed"]::before { color: var(--muted); }
|
|
34
|
+
.conn[data-conn="denied"]::before { color: var(--err); }
|
|
35
|
+
|
|
36
|
+
.status { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 20px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
|
|
37
|
+
.status > div { display: flex; flex-direction: column; min-width: 0; }
|
|
38
|
+
.status .wide { grid-column: span 2; }
|
|
39
|
+
.status span:not(.k) { overflow-wrap: anywhere; }
|
|
40
|
+
.k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
|
|
41
|
+
.status .num.bad { color: var(--err); }
|
|
42
|
+
|
|
43
|
+
.notice { margin: 12px 16px 0; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }
|
|
44
|
+
.start-error { margin: 12px 16px 0; padding: 12px 14px; border-radius: 8px; background: var(--err-bg); color: var(--err); }
|
|
45
|
+
.start-error h3 { margin: 0 0 4px; font-size: 14px; }
|
|
46
|
+
.start-error pre { margin: 8px 0 0; color: var(--ink); background: var(--panel); padding: 8px; border-radius: 6px; overflow: auto; max-height: 240px; }
|
|
47
|
+
|
|
48
|
+
.grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(280px, 360px); gap: 12px; padding: 12px 16px 24px; align-items: start; }
|
|
49
|
+
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
|
|
50
|
+
.panel h2 { font-size: 13px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .05em; }
|
|
51
|
+
@media (max-width: 1100px) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid > .viewport-panel { grid-column: 1 / -1; order: 0; position: static; } }
|
|
52
|
+
@media (max-width: 720px) { .grid { grid-template-columns: minmax(0, 1fr); } .timeline-panel, .findings-panel { grid-column: 1 / -1; } .status .wide { grid-column: auto; } }
|
|
53
|
+
|
|
54
|
+
/* The viewport is the stage in the middle; the timeline sits to its left and findings to its right. */
|
|
55
|
+
.timeline-panel { order: 1; }
|
|
56
|
+
.viewport-panel { order: 2; position: sticky; top: 64px; }
|
|
57
|
+
.findings-panel { order: 3; }
|
|
58
|
+
.vp-now { margin: 0 0 10px; text-align: center; font-size: 13px; }
|
|
59
|
+
.vp-now strong { font-weight: 600; }
|
|
60
|
+
/* Sized to the device on screen (--vp-w × --vp-h in CSS pixels), shrunk to fit the column and the window. */
|
|
61
|
+
.device { position: relative; box-sizing: border-box; margin: 0 auto; width: min(100%, calc(var(--vp-w, 390) * 1px + 16px), calc(max(420px, 100vh - 330px) * var(--vp-w, 390) / var(--vp-h, 844))); border: 8px solid #20252c; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: var(--vp-w, 390) / var(--vp-h, 844); transition: width .25s ease; }
|
|
62
|
+
@media (prefers-reduced-motion: reduce) { .device { transition: none; } }
|
|
63
|
+
.device img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
|
|
64
|
+
.device img:not([src]) { visibility: hidden; }
|
|
65
|
+
/* The frame on screen is still the previous width's: fade it until this width's first frame arrives. */
|
|
66
|
+
.device.switching img { opacity: .25; }
|
|
67
|
+
.device.switching::after { content: 'loading this width…'; position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; color: #20252c; font-size: 13px; }
|
|
68
|
+
.vp-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa4b2; font-size: 13px; }
|
|
69
|
+
|
|
70
|
+
.timeline { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow: auto; }
|
|
71
|
+
.entry { border-left: 3px solid var(--line); padding: 6px 10px 8px; margin: 0 0 8px; border-radius: 0 6px 6px 0; }
|
|
72
|
+
.entry.success { border-left-color: var(--ok); }
|
|
73
|
+
.entry.error { border-left-color: var(--err); background: var(--err-bg); }
|
|
74
|
+
.entry.pan { border-left-color: var(--warn); background: var(--warn-bg); }
|
|
75
|
+
.entry.meta { border-left-color: var(--line); color: var(--muted); }
|
|
76
|
+
.entry .head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
|
|
77
|
+
.entry .time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
78
|
+
.entry .what { font-weight: 600; }
|
|
79
|
+
.entry .outcome { font-size: 12px; font-weight: 700; }
|
|
80
|
+
.entry.success .outcome { color: var(--ok); }
|
|
81
|
+
.entry.error .outcome { color: var(--err); }
|
|
82
|
+
.entry .dur { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
83
|
+
.chip { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11.5px; background: var(--line); }
|
|
84
|
+
.chip.timeout { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
|
|
85
|
+
.entry ul { margin: 4px 0 0; padding-left: 18px; }
|
|
86
|
+
.entry li { margin: 1px 0; }
|
|
87
|
+
.entry details { margin-top: 4px; color: var(--muted); }
|
|
88
|
+
.entry details summary { cursor: pointer; }
|
|
89
|
+
.entry .notes { margin-top: 4px; font-style: italic; color: var(--muted); }
|
|
90
|
+
.entry .banner { margin-top: 6px; font-weight: 600; color: var(--warn); }
|
|
91
|
+
.entry .err { margin-top: 4px; }
|
|
92
|
+
.entry .settle { margin-top: 4px; color: var(--warn); }
|
|
93
|
+
/* 24 px tall and spaced so neighbours are not hit by mistake (WCAG 2.2 SC 2.5.8): found by sweeping this page with the lab. */
|
|
94
|
+
.fchip { border: 0; cursor: pointer; font: inherit; font-size: 11.5px; min-height: 24px; padding: 3px 10px; border-radius: 999px; margin: 6px 6px 0 0; color: #fff; }
|
|
95
|
+
.sev-high { background: var(--high); }
|
|
96
|
+
.sev-medium { background: var(--medium); }
|
|
97
|
+
.sev-low { background: var(--low); }
|
|
98
|
+
|
|
99
|
+
.serverlog { margin-top: 10px; }
|
|
100
|
+
.serverlog pre { max-height: 220px; overflow: auto; margin: 6px 0 0; padding: 8px; background: var(--bg); border-radius: 6px; font-size: 12px; white-space: pre-wrap; }
|
|
101
|
+
|
|
102
|
+
.findings { list-style: none; margin: 0; padding: 0; }
|
|
103
|
+
.findings li.item { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 8px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
|
|
104
|
+
.findings li.item:hover { border-color: var(--line); }
|
|
105
|
+
.findings li.item[aria-selected="true"] { background: var(--sel); border-color: var(--accent); }
|
|
106
|
+
.findings li.item.fresh { animation: flash 1.6s ease-out; }
|
|
107
|
+
@keyframes flash { from { background: var(--warn-bg); } to { background: transparent; } }
|
|
108
|
+
.findings .sev { grid-row: span 2; align-self: start; font-size: 11px; font-weight: 700; color: #fff; padding: 1px 7px; border-radius: 4px; text-transform: uppercase; }
|
|
109
|
+
.findings .kind { font-weight: 600; }
|
|
110
|
+
.findings .msg { color: var(--muted); font-size: 12.5px; }
|
|
111
|
+
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
|
|
112
|
+
.chips button { font: inherit; font-size: 12px; min-height: 24px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
|
|
113
|
+
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
|
|
114
|
+
.conf { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 0 6px; border-radius: 4px; margin-left: 4px; }
|
|
115
|
+
.conf-confirmed { background: var(--err-bg); color: var(--err); }
|
|
116
|
+
.conf-heuristic { background: var(--line); color: var(--muted); }
|
|
117
|
+
.sweep { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
|
|
118
|
+
.sweep-devices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
|
119
|
+
.sweep-devices button { width: 100%; text-align: left; font: inherit; font-size: 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px; cursor: pointer; }
|
|
120
|
+
.sweep-devices button[aria-pressed="true"] { border-color: var(--accent); background: var(--sel); }
|
|
121
|
+
.sweep-devices .state { font-weight: 700; }
|
|
122
|
+
.sweep-devices .state.running { color: var(--warn); }
|
|
123
|
+
.sweep-devices .state.error { color: var(--err); }
|
|
124
|
+
.sweep-devices .state.bad { color: var(--err); }
|
|
125
|
+
.sweep-devices .state.clean { color: var(--ok); }
|
|
126
|
+
.sweep-devices img { display: block; width: 100%; max-height: 140px; object-fit: cover; object-position: top; margin-top: 4px; border-radius: 4px; border: 1px solid var(--line); }
|
|
127
|
+
.finding-detail { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
|
|
128
|
+
.finding-detail h3 { margin: 0 0 6px; font-size: 15px; }
|
|
129
|
+
.finding-detail table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 6px 0; }
|
|
130
|
+
.finding-detail td { border-top: 1px solid var(--line); padding: 3px 6px; vertical-align: top; }
|
|
131
|
+
.finding-detail td:first-child { color: var(--muted); white-space: nowrap; }
|
|
132
|
+
.finding-detail ol { margin: 4px 0; padding-left: 20px; }
|
|
133
|
+
.finding-detail figure { margin: 8px 0 0; }
|
|
134
|
+
.finding-detail figure img { width: 100%; max-width: 260px; border: 1px solid var(--line); border-radius: 8px; display: block; }
|
|
135
|
+
.finding-detail figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
|
|
136
|
+
|
|
137
|
+
/* stateful scan */
|
|
138
|
+
.scan { margin: 12px 16px 0; }
|
|
139
|
+
.scan-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
|
|
140
|
+
.verdict { padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
|
|
141
|
+
.verdict.pass { background: var(--ok-bg); color: var(--ok); }
|
|
142
|
+
.verdict.fail { background: var(--err-bg); color: var(--err); }
|
|
143
|
+
.reasons { flex-basis: 100%; margin: 2px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
|
|
144
|
+
.scan-matrix-wrap { overflow-x: auto; }
|
|
145
|
+
.scan-matrix { border-collapse: separate; border-spacing: 6px; width: 100%; }
|
|
146
|
+
.scan-matrix th { font-size: 12px; text-align: left; font-weight: 600; padding: 2px 4px; vertical-align: bottom; }
|
|
147
|
+
.scan-matrix td { vertical-align: top; min-width: 150px; }
|
|
148
|
+
.cell { display: block; width: 100%; text-align: left; font: inherit; font-size: 12.5px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
|
|
149
|
+
.cell[aria-pressed="true"] { border-color: var(--accent); background: var(--sel); }
|
|
150
|
+
.cell span { display: block; }
|
|
151
|
+
.cell-state { font-weight: 600; }
|
|
152
|
+
.cell-pending { color: var(--muted); }
|
|
153
|
+
.cell-running .cell-state { color: var(--warn); }
|
|
154
|
+
.cell-ok .cell-state { color: var(--ok); }
|
|
155
|
+
.cell-failed { border-color: var(--err); background: var(--err-bg); }
|
|
156
|
+
.cell-failed .cell-state { color: var(--err); }
|
|
157
|
+
.cell-failed.cell-before { border-style: dashed; border-color: var(--warn); background: var(--warn-bg); }
|
|
158
|
+
.cell-failed.cell-before .cell-state { color: var(--warn); }
|
|
159
|
+
.cell-error { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
|
|
160
|
+
.scan-run { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
|
|
161
|
+
.scan-run h3 { margin: 0 0 6px; font-size: 15px; }
|
|
162
|
+
.scan-run .k { margin: 10px 0 4px; }
|
|
163
|
+
.run-error { padding: 6px 8px; border-radius: 6px; background: var(--err-bg); color: var(--err); font-size: 12.5px; }
|
|
164
|
+
.run-error.before { background: var(--warn-bg); color: var(--warn); }
|
|
165
|
+
.states { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
|
|
166
|
+
.state { display: flex; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
|
|
167
|
+
.state-body { min-width: 0; overflow-wrap: anywhere; }
|
|
168
|
+
.thumb { flex: none; width: 88px; height: 120px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
|
|
169
|
+
.thumb.ph { display: grid; place-items: center; text-align: center; }
|
|
170
|
+
.chip.state-failed, .chip.state-blocked { background: var(--err-bg); color: var(--err); }
|
|
171
|
+
.err-text { color: var(--err); }
|
|
172
|
+
.skipped { border-collapse: collapse; width: 100%; font-size: 12.5px; }
|
|
173
|
+
.skipped th { text-align: left; color: var(--muted); font-weight: 600; padding: 3px 6px; }
|
|
174
|
+
.skipped td { border-top: 1px solid var(--line); padding: 3px 6px; vertical-align: top; overflow-wrap: anywhere; }
|
|
175
|
+
.explored, .limits { margin: 0; padding-left: 18px; }
|
|
176
|
+
|
|
177
|
+
.run-filter { margin: 0 0 8px; color: var(--muted); }
|
|
178
|
+
button.link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
|
|
179
|
+
.findings li.group { list-style: none; margin: 0 0 4px; }
|
|
180
|
+
.group-head { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 8px; cursor: pointer; }
|
|
181
|
+
.group-head[aria-expanded="true"] { background: var(--sel); border-color: var(--accent); }
|
|
182
|
+
.group-head .sev { grid-row: span 2; align-self: start; font-size: 11px; font-weight: 700; color: #fff; padding: 1px 7px; border-radius: 4px; text-transform: uppercase; }
|
|
183
|
+
.group-head .kind { font-weight: 600; }
|
|
184
|
+
.group-head .msg { color: var(--muted); font-size: 12.5px; }
|
|
185
|
+
.members { list-style: none; margin: 4px 0 0 10px; padding: 0; }
|
|
186
|
+
.findings .why { grid-column: 2; }
|
|
187
|
+
.suppressed { margin-top: 10px; }
|
|
188
|
+
.suppressed summary { cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
|
|
189
|
+
.pair { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
|
|
190
|
+
.pair figure.ev { margin: 4px 0 0; flex: 1 1 140px; min-width: 0; max-width: 200px; }
|
|
191
|
+
.pair figure.ev img { width: 100%; max-width: none; }
|
|
192
|
+
.pair.widths figure.ev { flex-basis: 100px; max-width: 140px; }
|
|
193
|
+
.pair.before-after figure.ev:first-child img { border-color: var(--warn); }
|
|
194
|
+
.finding-detail table.measure th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 3px 6px; }
|
|
195
|
+
.finding-detail table.measure td:first-child { color: var(--ink); }
|
|
196
|
+
.harm-functional, .harm-expectation { color: var(--err); font-weight: 600; }
|
|
197
|
+
.harm-cosmetic { color: var(--warn); }
|
|
198
|
+
|
|
199
|
+
/* supervision */
|
|
200
|
+
.supervision { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
|
|
201
|
+
.sup-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
|
|
202
|
+
.mode-badge { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--ok-bg); color: var(--ok); }
|
|
203
|
+
.mode-badge[data-mode="pausing"], .mode-badge[data-mode="paused"] { background: var(--warn-bg); color: var(--warn); }
|
|
204
|
+
.mode-badge[data-mode="human"] { background: var(--accent); color: #fff; }
|
|
205
|
+
.mode-badge[data-mode="stopping"], .mode-badge[data-mode="stopped"] { background: var(--err-bg); color: var(--err); }
|
|
206
|
+
.ctl-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
|
|
207
|
+
.ctl-buttons button, .human-keys button, .human-row button { font: inherit; font-size: 12.5px; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
|
|
208
|
+
.ctl-buttons button:hover:not([aria-disabled="true"]), .human-keys button:hover, .human-row button:hover { border-color: var(--accent); }
|
|
209
|
+
.ctl-buttons button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
|
|
210
|
+
.ctl-buttons button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
|
|
211
|
+
.ctl-buttons button.danger { color: var(--err); border-color: var(--err); }
|
|
212
|
+
.ctl-buttons button.strong { font-weight: 700; }
|
|
213
|
+
.ctl-buttons button.confirming { background: var(--err); border-color: var(--err); color: #fff; }
|
|
214
|
+
.ctl-buttons button:focus-visible, .human-keys button:focus-visible, .human-row button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
215
|
+
.ctl-error { margin-top: 8px; padding: 6px 10px; border-radius: 6px; background: var(--err-bg); color: var(--err); font-size: 12.5px; }
|
|
216
|
+
.viewonly { margin: 8px 16px 0; }
|
|
217
|
+
|
|
218
|
+
.human-panel { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
|
|
219
|
+
.human-banner { margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; background: var(--sel); border: 1px solid var(--accent); }
|
|
220
|
+
.human-form { display: grid; gap: 4px; margin: 8px 0; }
|
|
221
|
+
.human-row { display: flex; gap: 6px; }
|
|
222
|
+
.human-row input[type="text"], .human-row input[type="password"] { flex: 1; min-width: 0; font: inherit; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
|
|
223
|
+
.human-keys { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
224
|
+
.device.human { border-color: var(--accent); }
|
|
225
|
+
.device.human img { cursor: crosshair; }
|
|
226
|
+
|
|
227
|
+
/* supervision entries in the timeline */
|
|
228
|
+
.entry.marker { display: flex; align-items: center; gap: 8px; border-left: 0; padding: 4px 0; margin: 4px 0 10px; background: none; color: var(--warn); font-weight: 600; }
|
|
229
|
+
.entry.marker::before, .entry.marker::after { content: ""; flex: 1; border-top: 2px solid currentColor; opacity: .4; }
|
|
230
|
+
.entry.marker .marker-text { flex: 0 1 auto; text-align: center; overflow-wrap: anywhere; }
|
|
231
|
+
.entry.marker.stopped { color: var(--err); }
|
|
232
|
+
.entry.human { border-left-color: var(--accent); background: var(--sel); }
|
|
233
|
+
.entry.human .what { color: var(--accent); }
|
|
234
|
+
.pico { display: inline-block; position: relative; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
|
|
235
|
+
.pico::before { content: ""; position: absolute; left: 4px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
|
|
236
|
+
.pico::after { content: ""; position: absolute; left: 1px; top: 8px; width: 12px; height: 6px; border-radius: 6px 6px 0 0; background: var(--accent); }
|
|
237
|
+
.entry.refused { border-left-style: dashed; border-left-color: var(--err); }
|
|
238
|
+
.chip.refused { background: var(--err-bg); color: var(--err); font-weight: 600; }
|