@adonis-agora/durable 0.21.1 → 0.22.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/assets/spa/assets/index-BpH1yTMa.js +81 -0
  3. package/dist/assets/spa/assets/index-BpH1yTMa.js.map +1 -0
  4. package/dist/assets/spa/assets/index-CTsYsi6p.css +1 -0
  5. package/dist/assets/spa/index.html +19 -0
  6. package/dist/providers/dashboard_provider.d.ts +51 -52
  7. package/dist/providers/dashboard_provider.d.ts.map +1 -1
  8. package/dist/providers/dashboard_provider.js +234 -121
  9. package/dist/providers/dashboard_provider.js.map +1 -1
  10. package/dist/src/dashboard/attr-filter.d.ts +8 -0
  11. package/dist/src/dashboard/attr-filter.d.ts.map +1 -0
  12. package/dist/src/dashboard/attr-filter.js +35 -0
  13. package/dist/src/dashboard/attr-filter.js.map +1 -0
  14. package/dist/src/dashboard/auth.d.ts +55 -10
  15. package/dist/src/dashboard/auth.d.ts.map +1 -1
  16. package/dist/src/dashboard/auth.js +50 -11
  17. package/dist/src/dashboard/auth.js.map +1 -1
  18. package/dist/src/dashboard/gateway-adapter.d.ts +52 -5
  19. package/dist/src/dashboard/gateway-adapter.d.ts.map +1 -1
  20. package/dist/src/dashboard/gateway-adapter.js +48 -6
  21. package/dist/src/dashboard/gateway-adapter.js.map +1 -1
  22. package/dist/src/dashboard/handlers.d.ts +56 -8
  23. package/dist/src/dashboard/handlers.d.ts.map +1 -1
  24. package/dist/src/dashboard/handlers.js +116 -14
  25. package/dist/src/dashboard/handlers.js.map +1 -1
  26. package/dist/src/dashboard/index.d.ts +4 -4
  27. package/dist/src/dashboard/index.d.ts.map +1 -1
  28. package/dist/src/dashboard/index.js +3 -3
  29. package/dist/src/dashboard/index.js.map +1 -1
  30. package/dist/src/dashboard/spa.d.ts +22 -0
  31. package/dist/src/dashboard/spa.d.ts.map +1 -0
  32. package/dist/src/dashboard/spa.js +43 -0
  33. package/dist/src/dashboard/spa.js.map +1 -0
  34. package/dist/src/index.d.ts +1 -1
  35. package/dist/src/index.js +1 -1
  36. package/dist/src/transports/queue-mock-adapter.d.ts +1 -0
  37. package/dist/src/transports/queue-mock-adapter.d.ts.map +1 -1
  38. package/dist/src/transports/queue-mock-adapter.js +1 -0
  39. package/dist/src/transports/queue-mock-adapter.js.map +1 -1
  40. package/dist/stubs/config/durable_dashboard.stub +19 -0
  41. package/package.json +18 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @adonis-agora/durable
2
2
 
3
+ ## 0.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`1aace98`](https://github.com/DavideCarvalho/adonis-durable/commit/1aace980b3294c52090e7affe0233917cf0aa118) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - New React SPA dashboard, with the API surface it needs
8
+
9
+ The dashboard is now a proper `@adonis-agora/durable-dashboard` React + Vite + Tailwind SPA (run list
10
+ with virtualization/infinite-scroll pagination, step timeline, workflow topology graph via
11
+ `@xyflow/react`, fix-and-replay, bulk retry/cancel, breakpoint continue, live worker heartbeats), served
12
+ by `@adonis-agora/durable`'s existing `dashboard_provider`. The original hand-rolled
13
+ `assets/dashboard.html` stays mounted at `<path>/legacy` for backward compatibility — nothing already
14
+ depending on it breaks.
15
+
16
+ New backend endpoints back the SPA, mirroring `@dudousxd/nestjs-durable-dashboard`'s
17
+ `DurableApiController`:
18
+
19
+ - `GET /api/workers` — full per-group worker health (every live worker's heartbeat, not just a count)
20
+ - `GET /api/topology` — this deployment's durable role, for the header badge
21
+ - `POST /api/runs/:id/retry-with-input` — fix-and-replay: a fresh linked run with corrected input
22
+ - `POST /api/runs/:id/continue` — resume a run paused at a `ctx.breakpoint()`
23
+ - `POST /api/bulk/:action` (`retry`|`cancel`) — apply an action to every run matching the list filter
24
+ - `GET /api/runs/:id/stream` — SSE live-tail of one run's lifecycle events
25
+ - `GET /api/runs` now also filters by `namespace` and repeatable `attr=key:op:value` search-attribute
26
+ predicates
27
+
28
+ `dashboardAuth` gains a second, additive auth mode: alongside the existing `login` hook (Mode B —
29
+ built-in login page), a host app can now configure a `session` hook (Mode A) that validates the host's
30
+ OWN auth off the raw request, for an "open the console from your app" button. Either or both may be
31
+ configured; only one is required. `DashboardAuthOptions.login` is now optional (was previously
32
+ required) to make room for `session`-only setups — existing configs with `login` keep working
33
+ unchanged.
34
+
35
+ ### Patch Changes
36
+
37
+ - [`1aace98`](https://github.com/DavideCarvalho/adonis-durable/commit/1aace980b3294c52090e7affe0233917cf0aa118) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Fix `MockAdapter` missing `renewJobs`, added to `@adonisjs/queue`'s `Adapter` interface
38
+
39
+ A recent `@adonisjs/queue` bump added a `renewJobs` method to its `Adapter` interface. The queue
40
+ transport's `MockAdapter` (used by the in-memory/testing transport) didn't implement it, which broke
41
+ structural assignability to `Adapter`. It now has the same "unsupported" stub as the adapter's other
42
+ not-yet-implemented methods.
43
+
3
44
  ## 0.21.1
4
45
 
5
46
  ### Patch Changes