@crvy/rprtr 0.1.4 → 0.2.3

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +8 -7
  3. package/dist/{chunk-KLGJSEKV.js → chunk-473CWZ4V.js} +539 -130
  4. package/dist/{chunk-WRMHUY5A.js → chunk-HAFWYUNO.js} +181 -130
  5. package/dist/cli.d.ts.map +1 -1
  6. package/dist/cli.js +6 -4
  7. package/dist/index.css +26 -0
  8. package/dist/index.js +300 -79
  9. package/dist/offline-reports.d.ts +4 -0
  10. package/dist/offline-reports.d.ts.map +1 -1
  11. package/dist/report-state.d.ts +3 -1
  12. package/dist/report-state.d.ts.map +1 -1
  13. package/dist/reporter-utils.d.ts +0 -1
  14. package/dist/reporter-utils.d.ts.map +1 -1
  15. package/dist/reporter.cjs +186 -134
  16. package/dist/reporter.d.ts +1 -1
  17. package/dist/reporter.d.ts.map +1 -1
  18. package/dist/reporter.js +8 -6
  19. package/dist/schemas/http.d.ts +44 -0
  20. package/dist/schemas/http.d.ts.map +1 -0
  21. package/dist/schemas.d.ts +25 -6
  22. package/dist/schemas.d.ts.map +1 -1
  23. package/dist/server/app.d.ts +8 -1
  24. package/dist/server/app.d.ts.map +1 -1
  25. package/dist/server/handlers.d.ts +6 -0
  26. package/dist/server/handlers.d.ts.map +1 -1
  27. package/dist/server/playwright-config.d.ts +2 -0
  28. package/dist/server/playwright-config.d.ts.map +1 -0
  29. package/dist/server/report-persistence.d.ts +27 -0
  30. package/dist/server/report-persistence.d.ts.map +1 -0
  31. package/dist/server/routes-context.d.ts +13 -0
  32. package/dist/server/routes-context.d.ts.map +1 -0
  33. package/dist/server/routes.d.ts +6 -1
  34. package/dist/server/routes.d.ts.map +1 -1
  35. package/dist/server/run-controller.d.ts +87 -0
  36. package/dist/server/run-controller.d.ts.map +1 -0
  37. package/dist/server/run-routes.d.ts +3 -0
  38. package/dist/server/run-routes.d.ts.map +1 -0
  39. package/dist/server/shutdown.d.ts +17 -0
  40. package/dist/server/shutdown.d.ts.map +1 -0
  41. package/dist/server.cjs +733 -276
  42. package/dist/server.d.ts.map +1 -1
  43. package/dist/server.js +2 -2
  44. package/dist/types.d.ts +6 -0
  45. package/dist/types.d.ts.map +1 -1
  46. package/package.json +6 -5
package/CHANGELOG.md CHANGED
@@ -5,6 +5,72 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.3] - 2026-07-03
9
+
10
+ ### Fixed
11
+
12
+ - **server:** Persist report on interrupted runs and mid-run mutations
13
+ ## [0.2.2] - 2026-07-03
14
+
15
+ ### Miscellaneous
16
+
17
+ - Update repository URLs to creevey/rprtr
18
+ ## [0.2.1] - 2026-07-03
19
+ ## [0.2.0] - 2026-07-03
20
+
21
+ ### Added
22
+
23
+ - **types:** Add run-status variant to ClientWebSocketMessage
24
+ - **reporter:** Include configFile and cwd in register message
25
+ - **server:** Add RunController for spawning playwright test
26
+ - **server:** Persist register payload configFile and cwd as runContext
27
+ - **server:** Instantiate RunController in createServerApp and dispose on close
28
+ - **server:** Add POST /api/run and /api/stop, surface runEnabled in /api/report
29
+ - **client:** Wire Start/Stop buttons to /api/run and /api/stop
30
+ - **client:** Add per-test and per-suite run buttons to sidebar tree
31
+ - **run-controller:** Resolve playwright via project package manager
32
+ - **run-controller:** Descriptor-based filter with positional translation
33
+ - **run-controller:** --test-list for suites with version fallback
34
+ - **client:** Descriptor filters, no-location feedback, isRunning guard
35
+ - **client:** Add captureTestStatuses/restoreTestStatuses helpers
36
+ - **client:** Revert orphaned pending on no-event run
37
+
38
+ ### Changed
39
+
40
+ - **schemas:** Extract HTTP request schemas to schemas/http.ts
41
+ - **schemas:** Use discriminatedUnion for Run/Stop responses
42
+ - **run-controller:** Document cwd param and test launch fallback
43
+ - **reporter:** Make onBegin synchronous and defer screenshotDir creation
44
+ - **client:** Reset runEventIds on rejected-start path
45
+
46
+ ### Documentation
47
+
48
+ - **spec:** Run tests from UI design
49
+ - **plan:** Run tests from UI implementation plan
50
+ - **spec:** Run-from-UI robustness design
51
+ - **plan:** Run-from-UI robustness implementation plan
52
+ - **spec:** Stuck-pending run recovery design
53
+ - **plan:** Stuck-pending run recovery implementation plan
54
+
55
+ ### Fixed
56
+
57
+ - **run-controller:** Guard against duplicate exit/error cleanup
58
+ - **reporter:** Honor CRVY_RPRTR_SERVER_URL env as fallback serverUrl
59
+ - **run-controller:** Override reporters and strip CI env for UI-triggered runs
60
+ - **run-from-ui:** Row height, re-run status, filtered-run scope, startup config
61
+ - **run-from-ui:** Mark tests pending on start, use file:line:column for precise re-runs
62
+ - **run-controller:** Resolve @crvy/rprtr from project cwd then server module
63
+ - **run-controller:** Clean up test-list temp file on spawn throw
64
+ - **knip:** Enable production-mode analysis in strict checks
65
+
66
+ ### Styling
67
+
68
+ - **client:** Match semicolon convention and destructure location
69
+ - **docs:** Reformat CLI options table
70
+
71
+ ### Testing
72
+
73
+ - **client:** Cover undefined-restore and empty/bare-root edge cases
8
74
  ## [0.1.4] - 2026-06-19
9
75
 
10
76
  ### Added
package/README.md CHANGED
@@ -74,13 +74,14 @@ If `artifact-dir` is provided, the CLI treats it as the directory containing:
74
74
 
75
75
  Explicit flags override the paths derived from `artifact-dir`.
76
76
 
77
- | Option | Short | Default | Description |
78
- | ------------------ | ----- | --------------- | ----------------------------------------------------------------------------------------- |
79
- | `--port` | `-p` | `3000` | Server port |
80
- | `--screenshot-dir` | `-s` | `./screenshots` | Screenshot directory path |
81
- | `--report-path` | `-r` | `./report.json` | Report JSON file path or directory containing `report.json` and `crvy-rprtr-*.json` files |
82
-
83
- The CLI currently exposes only these flags. Approval-routing resolver overrides are available through the programmatic server API, not additional CLI flags.
77
+ | Option | Short | Default | Description |
78
+ | ------------------ | ----- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
79
+ | `--port` | `-p` | `3000` | Server port |
80
+ | `--screenshot-dir` | `-s` | `./screenshots` | Screenshot directory path |
81
+ | `--report-path` | `-r` | `./report.json` | Report JSON file path or directory containing `report.json` and `crvy-rprtr-*.json` files |
82
+ | `--config` | `-c` | auto-detect | Playwright config path used to enable the run buttons at startup. When omitted, the server discovers `playwright.config.*` in the working directory. A registering reporter always overrides this. |
83
+
84
+ When the server can resolve a Playwright config (via `--config` or auto-discovery, or once a reporter registers), the sidebar shows Start/Stop and per-test run buttons that trigger `playwright test` without leaving the browser. Approval-routing resolver overrides are available through the programmatic server API, not additional CLI flags.
84
85
 
85
86
  ## How It Works
86
87