skeptic-cli 0.2.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/AGENTS.md +303 -0
- package/LICENSES.md +327 -0
- package/README.md +393 -0
- package/agent-skills/skeptic/SKILL.md +99 -0
- package/agent-skills/skeptic/agents/openai.yaml +4 -0
- package/bin/launcher.mjs +18 -0
- package/dist/index.d.ts +1252 -0
- package/dist/index.mjs +1748 -0
- package/dist/skeptic.mjs +1750 -0
- package/dist/templates/example.spec.ts +20 -0
- package/dist/templates/guidance/accessibility.md +41 -0
- package/dist/templates/guidance/animation.md +35 -0
- package/dist/templates/guidance/design.md +41 -0
- package/dist/templates/guidance/performance.md +37 -0
- package/dist/templates/guidance/react.md +50 -0
- package/dist/templates/guidance/responsive.md +46 -0
- package/dist/templates/guidance/security.md +42 -0
- package/dist/templates/guidance/seo.md +43 -0
- package/dist/templates/skeptic.config.yaml +31 -0
- package/dist/templates/tsconfig.json +15 -0
- package/dist/web-vitals.iife.js +1 -0
- package/dist/worker.mjs +724 -0
- package/package.json +110 -0
- package/scripts/install-agent-skills.mjs +145 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
Instructions for AI coding agents authoring and running tests with
|
|
4
|
+
`skeptic-cli`.
|
|
5
|
+
|
|
6
|
+
Skeptic is a TypeScript-first Playwright runner. Author `*.spec.ts` files,
|
|
7
|
+
discover selectors with `skeptic inspect`, run them with `skeptic run`, and use
|
|
8
|
+
the generated artifacts as the source of truth when debugging.
|
|
9
|
+
|
|
10
|
+
## Fast Loop
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
skeptic doctor --quick
|
|
14
|
+
skeptic inspect <url> --interactive --compact
|
|
15
|
+
skeptic run tests/<scenario>.spec.ts --observability --video --trace
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Use `skeptic observe <url>` when you need a one-off QA capture without writing a
|
|
19
|
+
spec.
|
|
20
|
+
|
|
21
|
+
## Skill Installation
|
|
22
|
+
|
|
23
|
+
The npm package installs a managed `skeptic` skill for Claude Code, Codex,
|
|
24
|
+
Cursor, and OpenCode into user-level skill directories when `npm install` runs.
|
|
25
|
+
Use that skill when an agent needs browser QA, spec authoring, or MCP browser
|
|
26
|
+
tool guidance.
|
|
27
|
+
|
|
28
|
+
Manual install commands:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
skeptic add skill --agent all --scope project
|
|
32
|
+
skeptic add skill --agent all --scope user
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Project scope writes `.claude/skills/skeptic`, `.agents/skills/skeptic`,
|
|
36
|
+
`.cursor/skills/skeptic`, and `.opencode/skills/skeptic`. User scope writes the
|
|
37
|
+
matching home-directory locations. Skeptic only replaces skills marked as
|
|
38
|
+
managed by `skeptic-cli`; custom skills are not overwritten.
|
|
39
|
+
|
|
40
|
+
## Test Shape
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import { test, expect } from "skeptic-cli";
|
|
44
|
+
|
|
45
|
+
test("homepage smoke", async ({ page, snapshot, screenshot, observability }) => {
|
|
46
|
+
await page.goto("https://example.com");
|
|
47
|
+
await expect(page).toHaveTitle(/Example Domain/);
|
|
48
|
+
|
|
49
|
+
const tree = await snapshot(page);
|
|
50
|
+
await tree.byRole("link", { name: "More information..." }).click();
|
|
51
|
+
|
|
52
|
+
await screenshot("homepage", { fullPage: true });
|
|
53
|
+
await observability.expectNoConsoleErrors();
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Rules for generated or hand-written specs:
|
|
58
|
+
|
|
59
|
+
- Import only from `skeptic-cli` unless the scenario truly needs another local helper.
|
|
60
|
+
- Keep browser actions inside `test(...)`, `test.beforeEach(...)`, or `test.afterEach(...)`.
|
|
61
|
+
- Do not put browser side effects at module top level; discovery imports the spec before execution.
|
|
62
|
+
- Prefer role, label, text, and test-id locators over CSS.
|
|
63
|
+
- Use `snapshot(page)` before interacting with elements discovered through Skeptic refs.
|
|
64
|
+
- Save visual checkpoints with `screenshot("name")` when they help debug failures.
|
|
65
|
+
|
|
66
|
+
## Fixture API
|
|
67
|
+
|
|
68
|
+
| Member | Use |
|
|
69
|
+
|---|---|
|
|
70
|
+
| `page` | Playwright `Page` |
|
|
71
|
+
| `expect` | Re-exported Playwright Test expect |
|
|
72
|
+
| `snapshot(target?, opts?)` | ARIA + cursor-interactive discovery |
|
|
73
|
+
| `screenshot(name, opts?)` | PNG capture with optional ref annotations |
|
|
74
|
+
| `settle()` | Best-effort network-idle settle |
|
|
75
|
+
| `observability` | Performance, network, console, and accessibility assertions |
|
|
76
|
+
| `ai` | Vision-backed assertions, defect checks, and text extraction |
|
|
77
|
+
| `ctx` | Per-test execution context |
|
|
78
|
+
|
|
79
|
+
### Snapshot Helpers
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
const tree = await snapshot(page, { interactive: true, compact: true });
|
|
83
|
+
await tree.byRole("button", { name: "Submit" }).click();
|
|
84
|
+
await tree.byText(/Welcome/).isVisible();
|
|
85
|
+
await tree.byTestId("save").click();
|
|
86
|
+
await (await tree.byRef("e3")).click();
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`tree.byRef("eN")` is only valid for refs minted by that exact
|
|
90
|
+
`snapshot(...)` call. After navigation, modal opens, route changes, or major DOM
|
|
91
|
+
mutation, capture a new snapshot.
|
|
92
|
+
|
|
93
|
+
Snapshot options:
|
|
94
|
+
|
|
95
|
+
| Option | Default | Use |
|
|
96
|
+
|---|---:|---|
|
|
97
|
+
| `interactive` | `false` | Keep ref-bearing entries only |
|
|
98
|
+
| `compact` | `false` | Keep ref-bearing entries plus minimal ancestors |
|
|
99
|
+
| `selector` | `"body"` | Scope capture to a subtree |
|
|
100
|
+
| `viewportAware` | `true` | Include viewport-hidden markers |
|
|
101
|
+
| `includeCursorInteractive` | `true` | Detect click handlers without ARIA roles |
|
|
102
|
+
|
|
103
|
+
## Inspect Workflow
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
skeptic inspect https://example.com
|
|
107
|
+
skeptic inspect https://example.com --interactive --compact
|
|
108
|
+
skeptic inspect https://example.com --json
|
|
109
|
+
skeptic inspect https://example.com --annotated --annotate-output inspect.png
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
The output includes `selectorHint:` lines. Copy those into test code as durable
|
|
113
|
+
selectors. Do not copy raw `@eN` refs into a spec unless the same spec first
|
|
114
|
+
calls `snapshot(page)` and uses the matching `tree.byRef(...)`.
|
|
115
|
+
|
|
116
|
+
Common flags:
|
|
117
|
+
|
|
118
|
+
| Flag | Use |
|
|
119
|
+
|---|---|
|
|
120
|
+
| `--interactive` | Show ref-bearing entries |
|
|
121
|
+
| `--compact` | Reduce snapshot size |
|
|
122
|
+
| `--selector <css>` | Scope to part of the page |
|
|
123
|
+
| `--json` | Machine-readable refs and stats |
|
|
124
|
+
| `--device <id>` | Discover at a device profile |
|
|
125
|
+
| `--connect <url>` | Attach to an existing browser over CDP |
|
|
126
|
+
| `--with-playwright-hints` | Print Playwright locator snippets |
|
|
127
|
+
| `--wait <ms>` | Wait before capture |
|
|
128
|
+
|
|
129
|
+
If an element cannot be found during execution, re-run `inspect` against the
|
|
130
|
+
failure state and update the selector from observed output.
|
|
131
|
+
|
|
132
|
+
## Running Specs
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
skeptic run
|
|
136
|
+
skeptic run tests/login.spec.ts
|
|
137
|
+
skeptic run tests/**/*.spec.ts --tag smoke
|
|
138
|
+
skeptic run --parallel 4
|
|
139
|
+
skeptic run --shard-split 4 --shard-index 1
|
|
140
|
+
skeptic run --list
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`--parallel` runs multiple spec-file workers at once. Tests inside one file run
|
|
144
|
+
in declaration order.
|
|
145
|
+
|
|
146
|
+
Use `--bail` for sequential fail-fast behavior. Use `--retries <n>` for flaky
|
|
147
|
+
retries. Use `--hard-timeout <ms>` to enforce a per-test ceiling.
|
|
148
|
+
|
|
149
|
+
## Observability
|
|
150
|
+
|
|
151
|
+
Attach collectors with `--observability` or per file:
|
|
152
|
+
|
|
153
|
+
```ts
|
|
154
|
+
test.use({ collectors: ["performance", "network", "console", "accessibility"] });
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Assertions:
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
await observability.expectPerformance({ lcp: "<2500ms", cls: "<0.1" });
|
|
161
|
+
await observability.expectNoNetworkErrors({ allow: [/analytics/] });
|
|
162
|
+
await observability.expectNoConsoleErrors();
|
|
163
|
+
await observability.expectAccessible({ standard: "WCAG21AA" });
|
|
164
|
+
const metrics = await observability.snapshot();
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
`--observability` enables performance, network, console, accessibility,
|
|
168
|
+
full-page screenshot defaults, visual settle, automatic accessibility audit, and
|
|
169
|
+
artifact sidecars. Use `--observability-write-sidecars` to force sidecar files.
|
|
170
|
+
|
|
171
|
+
## Screenshots
|
|
172
|
+
|
|
173
|
+
```ts
|
|
174
|
+
await screenshot("before-submit");
|
|
175
|
+
await screenshot("after-submit", { fullPage: true });
|
|
176
|
+
await screenshot("annotated", { annotate: true, annotateScope: "main" });
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Annotated screenshots add numbered labels over interactive refs and return an
|
|
180
|
+
annotation map without accessible names, so structured metadata does not repeat
|
|
181
|
+
potentially sensitive page text.
|
|
182
|
+
|
|
183
|
+
## AI
|
|
184
|
+
|
|
185
|
+
Configure a provider and key before using AI helpers.
|
|
186
|
+
|
|
187
|
+
```yaml
|
|
188
|
+
ai:
|
|
189
|
+
provider: openai
|
|
190
|
+
model: gpt-4o
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
await ai.assert("the success toast is visible");
|
|
195
|
+
await ai.assertNoDefects();
|
|
196
|
+
const total = await ai.extract("invoice total");
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Use:
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
skeptic generate --message "test checkout"
|
|
203
|
+
skeptic generate --diff
|
|
204
|
+
skeptic run --analyze
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Generated tests are typechecked and imported before being written.
|
|
208
|
+
|
|
209
|
+
## MCP Browser Tools
|
|
210
|
+
|
|
211
|
+
When Skeptic is exposed through MCP, prefer its browser tools for page QA:
|
|
212
|
+
|
|
213
|
+
| Tool | Use |
|
|
214
|
+
|---|---|
|
|
215
|
+
| `browser_open` | Navigate using project browser/auth/safety config |
|
|
216
|
+
| `browser_snapshot` | Capture refs and snapshot text |
|
|
217
|
+
| `browser_playwright` | Run focused Playwright code with `page`, `context`, `browser`, `ref` |
|
|
218
|
+
| `browser_screenshot` | Capture PNG, annotated PNG, or snapshot-only output |
|
|
219
|
+
| `browser_console_logs` | Read captured console messages |
|
|
220
|
+
| `browser_network_requests` | Read requests and computed issues |
|
|
221
|
+
| `browser_performance_metrics` | Capture Web Vitals, LoAF, resources, and `perf-trace.md` |
|
|
222
|
+
| `browser_accessibility_audit` | Run axe-core plus IBM Equal Access when available |
|
|
223
|
+
| `browser_close` | Close the session |
|
|
224
|
+
|
|
225
|
+
MCP browser tools honor:
|
|
226
|
+
|
|
227
|
+
```yaml
|
|
228
|
+
safety:
|
|
229
|
+
allowedDomains: ["example.com", "*.example.org"]
|
|
230
|
+
actionPolicy: .skeptic/action-policy.json
|
|
231
|
+
confirmActions: ["browser_playwright"]
|
|
232
|
+
maxOutputChars: 120000
|
|
233
|
+
contentBoundaries: true
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
`confirmActions` fail closed in MCP because stdio tools cannot prompt safely.
|
|
237
|
+
|
|
238
|
+
## Evidence
|
|
239
|
+
|
|
240
|
+
With the relevant flags, Skeptic writes:
|
|
241
|
+
|
|
242
|
+
- `results.json`
|
|
243
|
+
- `report.html`
|
|
244
|
+
- `junit.xml`
|
|
245
|
+
- screenshots
|
|
246
|
+
- annotated screenshots
|
|
247
|
+
- WebM video
|
|
248
|
+
- Playwright trace zip
|
|
249
|
+
- `perf-trace.md`
|
|
250
|
+
- `network.json`
|
|
251
|
+
- `console.json`
|
|
252
|
+
- `accessibility.json`
|
|
253
|
+
- `audit.md`
|
|
254
|
+
|
|
255
|
+
Use paths from `results.json` rather than guessing artifact filenames.
|
|
256
|
+
|
|
257
|
+
## Config Defaults
|
|
258
|
+
|
|
259
|
+
```yaml
|
|
260
|
+
url: http://localhost:3000
|
|
261
|
+
tests: "tests/**/*.spec.ts"
|
|
262
|
+
|
|
263
|
+
browser:
|
|
264
|
+
engine: chromium
|
|
265
|
+
headless: true
|
|
266
|
+
timeout: 30000
|
|
267
|
+
|
|
268
|
+
execution:
|
|
269
|
+
retries: 0
|
|
270
|
+
bail: false
|
|
271
|
+
parallel: 1
|
|
272
|
+
|
|
273
|
+
output:
|
|
274
|
+
dir: ./skeptic-output
|
|
275
|
+
reporters: [console]
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## CI
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
skeptic add github-action
|
|
282
|
+
skeptic add github-action --ai --provider openai
|
|
283
|
+
skeptic comment --results ./skeptic-output/results.json
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
The generated workflow runs `skeptic run --ci` and uploads `skeptic-output/`.
|
|
287
|
+
|
|
288
|
+
## Troubleshooting
|
|
289
|
+
|
|
290
|
+
```bash
|
|
291
|
+
skeptic doctor --json --quick
|
|
292
|
+
skeptic browsers install chromium
|
|
293
|
+
skeptic daemon status
|
|
294
|
+
skeptic daemon stop
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
When reporting a failure, include:
|
|
298
|
+
|
|
299
|
+
- command run
|
|
300
|
+
- `results.json`
|
|
301
|
+
- failing test name
|
|
302
|
+
- first failing step error
|
|
303
|
+
- screenshot/video/trace paths from the result
|
package/LICENSES.md
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
# Third-party licenses and attributions
|
|
2
|
+
|
|
3
|
+
skeptic-cli is distributed under the [MIT License](#mit-license-skeptic-cli)
|
|
4
|
+
(see `package.json:license`). Portions of skeptic are derived from upstream
|
|
5
|
+
projects under their own terms; those terms and the corresponding NOTICE
|
|
6
|
+
attributions follow.
|
|
7
|
+
|
|
8
|
+
## NOTICE — agent-browser (Apache License 2.0)
|
|
9
|
+
|
|
10
|
+
Portions of this software are derived from
|
|
11
|
+
[agent-browser](https://github.com/vercel-labs/agent-browser) © 2025 Vercel Inc.,
|
|
12
|
+
licensed under the Apache License 2.0.
|
|
13
|
+
|
|
14
|
+
The agent-browser project provided the algorithmic basis for several of
|
|
15
|
+
skeptic's agent-discovery primitives. The Rust originals were ported to
|
|
16
|
+
TypeScript as part of the v0.2.0 TS-pivot bundle. Files that contain ported
|
|
17
|
+
algorithms carry a `// Source: agent-browser <path>:<lines> © Vercel Inc.,
|
|
18
|
+
Apache 2.0` header at the top of the file. The current set of derived files,
|
|
19
|
+
maintained for the convenience of downstream auditors, is:
|
|
20
|
+
|
|
21
|
+
- `cli/src/api/snapshot.ts` — `render_tree` / `compact_tree` rendering modes
|
|
22
|
+
(`agent-browser/cli/src/native/snapshot.rs:1060-1230`).
|
|
23
|
+
- `cli/src/executor/aria-snapshot-capture.ts` — cursor-interactive heuristic
|
|
24
|
+
for elements that have click handlers but no ARIA role.
|
|
25
|
+
- `cli/src/executor/aria-ref-resolver.ts` — `RefMap` dispatch by ref kind.
|
|
26
|
+
- `cli/src/executor/aria-ref-types.ts` — `AriaRefEntry` / `RefEntry` shape.
|
|
27
|
+
- `cli/src/commands/inspect.ts` — CDP auto-discovery flow
|
|
28
|
+
(`/json/version` → `/json/list` → direct `/devtools/browser` WebSocket;
|
|
29
|
+
`agent-browser/cli/src/native/cdp/discovery.rs:1-100`).
|
|
30
|
+
- `cli/src/api/screenshot.ts` and `cli/src/executor/annotation-overlay.ts` —
|
|
31
|
+
annotation-record shape and `fullPage` projection with `scrollY` offset.
|
|
32
|
+
- `cli/AGENTS.md` — overall workflow-doc structure (Discovery / Selectors /
|
|
33
|
+
Output / Failure modes / Patterns / Cursor + video). The TypeScript content
|
|
34
|
+
is original; the section ordering and the agent-facing framing are adapted.
|
|
35
|
+
- `cli/src/daemon/socket.ts` — line-delimited JSON framing on a Unix socket,
|
|
36
|
+
malformed-line tolerance, `looks_like_http` early-exit, idle-reset signal on
|
|
37
|
+
each accepted command (`agent-browser/cli/src/native/daemon.rs:357-430`).
|
|
38
|
+
Stale-socket cleanup with realpath check, the `0700` parent-dir mode, and
|
|
39
|
+
the optional `SKEPTIC_DAEMON_AUTH_TOKEN` shared-secret handshake are
|
|
40
|
+
skeptic-original.
|
|
41
|
+
- `cli/src/daemon/lifecycle.ts` — start-up + shut-down skeleton: pid /
|
|
42
|
+
version / engine sidecar files written on start and unlinked on exit;
|
|
43
|
+
idle-timer-with-reset that re-arms on every accepted command; SIGINT /
|
|
44
|
+
SIGTERM / SIGHUP handlers close the BrowserServer before process exit so
|
|
45
|
+
destructors fire and Chrome processes don't get orphaned
|
|
46
|
+
(`agent-browser/cli/src/native/daemon.rs:115-255` and `:439-482`).
|
|
47
|
+
- `cli/src/daemon/rpc.ts` — control-plane-only RPC dispatch (handshake,
|
|
48
|
+
version probe, idle-reset, stop). No browser-context or page operations
|
|
49
|
+
are marshaled over the socket; workers connect directly to
|
|
50
|
+
`BrowserServer.wsEndpoint()` via Playwright's
|
|
51
|
+
`pw[engine].connect(wsEndpoint)` and own their own `BrowserContext`. The
|
|
52
|
+
handshake fields and engine-mismatch / version-mismatch paths follow the
|
|
53
|
+
shape at `agent-browser/cli/src/native/daemon.rs:357-430`.
|
|
54
|
+
- `cli/src/daemon/client.ts` — auto-spawn-with-detached-unref, the
|
|
55
|
+
version-mismatch restart loop with retry cap, and the bounded
|
|
56
|
+
socket-readiness probe (`agent-browser/cli/src/connection.rs:574-602`).
|
|
57
|
+
The Playwright `pw[engine].connect` + BrowserContext-per-test isolation
|
|
58
|
+
model that sits on top is skeptic-original — agent-browser marshals every
|
|
59
|
+
browser op over the socket, skeptic hands out the raw WebSocket and lets
|
|
60
|
+
Playwright's native disconnect-cleanup handle teardown.
|
|
61
|
+
- `cli/src/daemon/auto-spawn.ts` — the "ensure daemon running before doing
|
|
62
|
+
browser work" gate (`agent-browser/cli/src/connection.rs:574-602`).
|
|
63
|
+
agent-browser calls `ensure_daemon` from the CLI main, never from a
|
|
64
|
+
worker; this helper enforces the same discipline for skeptic — the
|
|
65
|
+
prewarm runs in the main process so a `worker_thread` never resolves to
|
|
66
|
+
`dist/worker.mjs` and mis-spawns a "daemon" that is actually the worker
|
|
67
|
+
entrypoint.
|
|
68
|
+
|
|
69
|
+
All five daemon files carry the verbatim
|
|
70
|
+
`// Source: agent-browser/cli/src/<path>:<lines> © Vercel Inc., Apache 2.0`
|
|
71
|
+
header at the top, in line with the per-file convention used elsewhere in
|
|
72
|
+
this NOTICE. The portions above were derived from the agent-browser
|
|
73
|
+
sources cited; the Playwright-connection model, the shared-secret token,
|
|
74
|
+
and the BrowserContext-per-test isolation contract are skeptic's own.
|
|
75
|
+
|
|
76
|
+
The list above is informational and may lag the source. The authoritative
|
|
77
|
+
record is the per-file `// Source: agent-browser ...` header — it is checked
|
|
78
|
+
on every PR that touches a derived file. If you find a file that carries
|
|
79
|
+
agent-browser code without a header, please open an issue.
|
|
80
|
+
|
|
81
|
+
In accordance with §4(d) of the Apache License 2.0, this NOTICE block is
|
|
82
|
+
distributed alongside skeptic-cli (via `package.json:files`) so that
|
|
83
|
+
downstream consumers receive the attribution.
|
|
84
|
+
|
|
85
|
+
## Apache License 2.0 (full text)
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Apache License
|
|
89
|
+
Version 2.0, January 2004
|
|
90
|
+
http://www.apache.org/licenses/
|
|
91
|
+
|
|
92
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
93
|
+
|
|
94
|
+
1. Definitions.
|
|
95
|
+
|
|
96
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
97
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
98
|
+
|
|
99
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
100
|
+
the copyright owner that is granting the License.
|
|
101
|
+
|
|
102
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
103
|
+
other entities that control, are controlled by, or are under common
|
|
104
|
+
control with that entity. For the purposes of this definition,
|
|
105
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
106
|
+
direction or management of such entity, whether by contract or
|
|
107
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
108
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
109
|
+
|
|
110
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
111
|
+
exercising permissions granted by this License.
|
|
112
|
+
|
|
113
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
114
|
+
including but not limited to software source code, documentation
|
|
115
|
+
source, and configuration files.
|
|
116
|
+
|
|
117
|
+
"Object" form shall mean any form resulting from mechanical
|
|
118
|
+
transformation or translation of a Source form, including but
|
|
119
|
+
not limited to compiled object code, generated documentation,
|
|
120
|
+
and conversions to other media types.
|
|
121
|
+
|
|
122
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
123
|
+
Object form, made available under the License, as indicated by a
|
|
124
|
+
copyright notice that is included in or attached to the work
|
|
125
|
+
(an example is provided in the Appendix below).
|
|
126
|
+
|
|
127
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
128
|
+
form, that is based on (or derived from) the Work and for which the
|
|
129
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
130
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
131
|
+
of this License, Derivative Works shall not include works that remain
|
|
132
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
133
|
+
the Work and Derivative Works thereof.
|
|
134
|
+
|
|
135
|
+
"Contribution" shall mean any work of authorship, including
|
|
136
|
+
the original version of the Work and any modifications or additions
|
|
137
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
138
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
139
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
140
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
141
|
+
means any form of electronic, verbal, or written communication sent
|
|
142
|
+
to the Licensor or its representatives, including but not limited to
|
|
143
|
+
communication on electronic mailing lists, source code control systems,
|
|
144
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
145
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
146
|
+
excluding communication that is conspicuously marked or otherwise
|
|
147
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
148
|
+
|
|
149
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
150
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
151
|
+
subsequently incorporated within the Work.
|
|
152
|
+
|
|
153
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
154
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
155
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
156
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
157
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
158
|
+
Work and such Derivative Works in Source or Object form.
|
|
159
|
+
|
|
160
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
161
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
162
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
163
|
+
(except as stated in this section) patent license to make, have made,
|
|
164
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
165
|
+
where such license applies only to those patent claims licensable
|
|
166
|
+
by such Contributor that are necessarily infringed by their
|
|
167
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
168
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
169
|
+
institute patent litigation against any entity (including a
|
|
170
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
171
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
172
|
+
or contributory patent infringement, then any patent licenses
|
|
173
|
+
granted to You under this License for that Work shall terminate
|
|
174
|
+
as of the date such litigation is filed.
|
|
175
|
+
|
|
176
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
177
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
178
|
+
modifications, and in Source or Object form, provided that You
|
|
179
|
+
meet the following conditions:
|
|
180
|
+
|
|
181
|
+
(a) You must give any other recipients of the Work or
|
|
182
|
+
Derivative Works a copy of this License; and
|
|
183
|
+
|
|
184
|
+
(b) You must cause any modified files to carry prominent notices
|
|
185
|
+
stating that You changed the files; and
|
|
186
|
+
|
|
187
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
188
|
+
that You distribute, all copyright, patent, trademark, and
|
|
189
|
+
attribution notices from the Source form of the Work,
|
|
190
|
+
excluding those notices that do not pertain to any part of
|
|
191
|
+
the Derivative Works; and
|
|
192
|
+
|
|
193
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
194
|
+
distribution, then any Derivative Works that You distribute must
|
|
195
|
+
include a readable copy of the attribution notices contained
|
|
196
|
+
within such NOTICE file, excluding those notices that do not
|
|
197
|
+
pertain to any part of the Derivative Works, in at least one
|
|
198
|
+
of the following places: within a NOTICE text file distributed
|
|
199
|
+
as part of the Derivative Works; within the Source form or
|
|
200
|
+
documentation, if provided along with the Derivative Works; or,
|
|
201
|
+
within a display generated by the Derivative Works, if and
|
|
202
|
+
wherever such third-party notices normally appear. The contents
|
|
203
|
+
of the NOTICE file are for informational purposes only and
|
|
204
|
+
do not modify the License. You may add Your own attribution
|
|
205
|
+
notices within Derivative Works that You distribute, alongside
|
|
206
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
207
|
+
that such additional attribution notices cannot be construed
|
|
208
|
+
as modifying the License.
|
|
209
|
+
|
|
210
|
+
You may add Your own copyright statement to Your modifications and
|
|
211
|
+
may provide additional or different license terms and conditions
|
|
212
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
213
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
214
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
215
|
+
the conditions stated in this License.
|
|
216
|
+
|
|
217
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
218
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
219
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
220
|
+
this License, without any additional terms or conditions.
|
|
221
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
222
|
+
the terms of any separate license agreement you may have executed
|
|
223
|
+
with Licensor regarding such Contributions.
|
|
224
|
+
|
|
225
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
226
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
227
|
+
except as required for reasonable and customary use in describing the
|
|
228
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
229
|
+
|
|
230
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
231
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
232
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
233
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
234
|
+
implied, including, without limitation, any warranties or conditions
|
|
235
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
236
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
237
|
+
appropriateness of using or redistributing the Work and assume any
|
|
238
|
+
risks associated with Your exercise of permissions under this License.
|
|
239
|
+
|
|
240
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
241
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
242
|
+
unless required by applicable law (such as deliberate and grossly
|
|
243
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
244
|
+
liable to You for damages, including any direct, indirect, special,
|
|
245
|
+
incidental, or consequential damages of any character arising as a
|
|
246
|
+
result of this License or out of the use or inability to use the
|
|
247
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
248
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
249
|
+
other commercial damages or losses), even if such Contributor
|
|
250
|
+
has been advised of the possibility of such damages.
|
|
251
|
+
|
|
252
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
253
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
254
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
255
|
+
or other liability obligations and/or rights consistent with this
|
|
256
|
+
License. However, in accepting such obligations, You may act only
|
|
257
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
258
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
259
|
+
defend, and hold each Contributor harmless for any liability
|
|
260
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
261
|
+
of your accepting any such warranty or additional liability.
|
|
262
|
+
|
|
263
|
+
END OF TERMS AND CONDITIONS
|
|
264
|
+
|
|
265
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
266
|
+
|
|
267
|
+
To apply the Apache License to your work, attach the following
|
|
268
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
269
|
+
replaced with your own identifying information. (Don't include
|
|
270
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
271
|
+
comment syntax for the file format. We also recommend that a
|
|
272
|
+
file or class name and description of purpose be included on the
|
|
273
|
+
same "printed page" as the copyright notice for easier
|
|
274
|
+
identification within third-party archives.
|
|
275
|
+
|
|
276
|
+
Copyright [yyyy] [name of copyright owner]
|
|
277
|
+
|
|
278
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
279
|
+
you may not use this file except in compliance with the License.
|
|
280
|
+
You may obtain a copy of the License at
|
|
281
|
+
|
|
282
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
283
|
+
|
|
284
|
+
Unless required by applicable law or agreed to in writing, software
|
|
285
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
286
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
287
|
+
See the License for the specific language governing permissions and
|
|
288
|
+
limitations under the License.
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Inspirations (no code copy)
|
|
292
|
+
|
|
293
|
+
skeptic's cursor overlay, dual-engine accessibility audit, and several
|
|
294
|
+
diagnostic patterns were inspired by [`expect`](https://github.com/expectquality/expect)
|
|
295
|
+
(Functional Source License 1.1-MIT, becomes MIT in 2028). Per FSL's
|
|
296
|
+
non-compete restriction during the source-available window, skeptic does **not**
|
|
297
|
+
copy code from expect. Where a feature was prompted by expect's behavior,
|
|
298
|
+
the implementation was written from skeptic's own primitives — usually from a
|
|
299
|
+
different angle (e.g. cursor markers ride on a `Page` Proxy boundary in
|
|
300
|
+
skeptic, not on a CDP shim). The patterns are inspirational; the code is
|
|
301
|
+
original.
|
|
302
|
+
|
|
303
|
+
## MIT License (skeptic-cli)
|
|
304
|
+
|
|
305
|
+
```
|
|
306
|
+
MIT License
|
|
307
|
+
|
|
308
|
+
Copyright (c) skeptic-cli authors
|
|
309
|
+
|
|
310
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
311
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
312
|
+
in the Software without restriction, including without limitation the rights
|
|
313
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
314
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
315
|
+
furnished to do so, subject to the following conditions:
|
|
316
|
+
|
|
317
|
+
The above copyright notice and this permission notice shall be included in
|
|
318
|
+
all copies or substantial portions of the Software.
|
|
319
|
+
|
|
320
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
321
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
322
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
323
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
324
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
325
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
326
|
+
THE SOFTWARE.
|
|
327
|
+
```
|