@adonis-agora/durable 0.21.0 → 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.
- package/CHANGELOG.md +54 -0
- package/dist/assets/spa/assets/index-BpH1yTMa.js +81 -0
- package/dist/assets/spa/assets/index-BpH1yTMa.js.map +1 -0
- package/dist/assets/spa/assets/index-CTsYsi6p.css +1 -0
- package/dist/assets/spa/index.html +19 -0
- package/dist/providers/dashboard_provider.d.ts +51 -52
- package/dist/providers/dashboard_provider.d.ts.map +1 -1
- package/dist/providers/dashboard_provider.js +234 -121
- package/dist/providers/dashboard_provider.js.map +1 -1
- package/dist/providers/durable_provider.d.ts.map +1 -1
- package/dist/providers/durable_provider.js +5 -2
- package/dist/providers/durable_provider.js.map +1 -1
- package/dist/src/dashboard/attr-filter.d.ts +8 -0
- package/dist/src/dashboard/attr-filter.d.ts.map +1 -0
- package/dist/src/dashboard/attr-filter.js +35 -0
- package/dist/src/dashboard/attr-filter.js.map +1 -0
- package/dist/src/dashboard/auth.d.ts +55 -10
- package/dist/src/dashboard/auth.d.ts.map +1 -1
- package/dist/src/dashboard/auth.js +50 -11
- package/dist/src/dashboard/auth.js.map +1 -1
- package/dist/src/dashboard/gateway-adapter.d.ts +52 -5
- package/dist/src/dashboard/gateway-adapter.d.ts.map +1 -1
- package/dist/src/dashboard/gateway-adapter.js +48 -6
- package/dist/src/dashboard/gateway-adapter.js.map +1 -1
- package/dist/src/dashboard/handlers.d.ts +56 -8
- package/dist/src/dashboard/handlers.d.ts.map +1 -1
- package/dist/src/dashboard/handlers.js +116 -14
- package/dist/src/dashboard/handlers.js.map +1 -1
- package/dist/src/dashboard/index.d.ts +4 -4
- package/dist/src/dashboard/index.d.ts.map +1 -1
- package/dist/src/dashboard/index.js +3 -3
- package/dist/src/dashboard/index.js.map +1 -1
- package/dist/src/dashboard/spa.d.ts +22 -0
- package/dist/src/dashboard/spa.d.ts.map +1 -0
- package/dist/src/dashboard/spa.js +43 -0
- package/dist/src/dashboard/spa.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/transports/queue-mock-adapter.d.ts +1 -0
- package/dist/src/transports/queue-mock-adapter.d.ts.map +1 -1
- package/dist/src/transports/queue-mock-adapter.js +1 -0
- package/dist/src/transports/queue-mock-adapter.js.map +1 -1
- package/dist/src/workflow-discovery.d.ts +15 -3
- package/dist/src/workflow-discovery.d.ts.map +1 -1
- package/dist/src/workflow-discovery.js +13 -6
- package/dist/src/workflow-discovery.js.map +1 -1
- package/dist/stubs/config/durable_dashboard.stub +19 -0
- package/package.json +18 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
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
|
+
|
|
44
|
+
## 0.21.1
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- [`940f85b`](https://github.com/DavideCarvalho/adonis-durable/commit/940f85b1ed60717ebde2b1bb3c38abe40504ec8b) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Workflow classes can now use constructor dependency injection
|
|
49
|
+
|
|
50
|
+
`registerWorkflowClass`/`registerWorkflowsFromDir`/`registerWorkflowsFromBarrel` accept an optional
|
|
51
|
+
**workflow class factory**. The `durable_provider` passes `(Ctor) => app.container.make(Ctor)`, so a
|
|
52
|
+
workflow's constructor is resolved by the AdonisJS IoC container — constructor parameters are
|
|
53
|
+
injected just like `@adonisjs/queue` jobs. Without a factory (library/tests), the class is still
|
|
54
|
+
instantiated with `new Ctor()` as before. The factory may return a promise (the container's `make`
|
|
55
|
+
is async), so the registration functions are now async.
|
|
56
|
+
|
|
3
57
|
## 0.21.0
|
|
4
58
|
|
|
5
59
|
### Minor Changes
|