@adonis-agora/durable 0.21.1 → 0.23.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 +49 -0
- package/dist/assets/spa/assets/index-BxZp72PC.js +67 -0
- package/dist/assets/spa/assets/index-BxZp72PC.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/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 +55 -5
- package/dist/src/dashboard/gateway-adapter.d.ts.map +1 -1
- package/dist/src/dashboard/gateway-adapter.js +53 -6
- package/dist/src/dashboard/gateway-adapter.js.map +1 -1
- package/dist/src/dashboard/handlers.d.ts +66 -8
- package/dist/src/dashboard/handlers.d.ts.map +1 -1
- package/dist/src/dashboard/handlers.js +132 -18
- 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/engine.d.ts +10 -1
- package/dist/src/engine.d.ts.map +1 -1
- package/dist/src/engine.js +11 -0
- package/dist/src/engine.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/interfaces.d.ts +15 -0
- package/dist/src/interfaces.d.ts.map +1 -1
- package/dist/src/run-waiting.d.ts +25 -0
- package/dist/src/run-waiting.d.ts.map +1 -0
- package/dist/src/run-waiting.js +59 -0
- package/dist/src/run-waiting.js.map +1 -0
- package/dist/src/telescope/extension.d.ts.map +1 -1
- package/dist/src/telescope/extension.js +1 -0
- package/dist/src/telescope/extension.js.map +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/stubs/config/durable_dashboard.stub +19 -0
- package/package.json +23 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @adonis-agora/durable
|
|
2
2
|
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7742d2f`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/7742d2fada29de36f083be95394b3c9a805838fa) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `GET /runs` (the dashboard's runs list) now stamps `waiting` on a `suspended` run parked on a signal/webhook/child-await/breakpoint, resolved from one bulk `listSignalWaiters` scan — matching `@dudousxd/nestjs-durable-dashboard`'s list rows. Verified by running both dashboards side by side with live data: a run suspended on `ctx.waitForSignal` previously showed a generic "RUNNING" badge in the runs list (the underlying `listSignalWaiters` primitive existed on the store, but nothing wired it into the dashboard's list endpoint); it now shows "AWAITING / signal `<name>`" the same as the NestJS console. The single-run detail view was unaffected (it already derives this from the run's timeline).
|
|
8
|
+
|
|
9
|
+
- [`7cbd668`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/7cbd668a3462f801fd0ef9fd516a54b88d19e8c4) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - The `durableTelescopeExtension()` now contributes `entryTypes` (`{ id: 'durable', label: 'Workflows', dot: 'bg-amber-400' }`), matching `nestjs-durable`'s extension — the "Workflows" nav badge now shows up in the Telescope dashboard's entry-type navigation.
|
|
10
|
+
|
|
11
|
+
## 0.22.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`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
|
|
16
|
+
|
|
17
|
+
The dashboard is now a proper `@adonis-agora/durable-dashboard` React + Vite + Tailwind SPA (run list
|
|
18
|
+
with virtualization/infinite-scroll pagination, step timeline, workflow topology graph via
|
|
19
|
+
`@xyflow/react`, fix-and-replay, bulk retry/cancel, breakpoint continue, live worker heartbeats), served
|
|
20
|
+
by `@adonis-agora/durable`'s existing `dashboard_provider`. The original hand-rolled
|
|
21
|
+
`assets/dashboard.html` stays mounted at `<path>/legacy` for backward compatibility — nothing already
|
|
22
|
+
depending on it breaks.
|
|
23
|
+
|
|
24
|
+
New backend endpoints back the SPA, mirroring `@dudousxd/nestjs-durable-dashboard`'s
|
|
25
|
+
`DurableApiController`:
|
|
26
|
+
|
|
27
|
+
- `GET /api/workers` — full per-group worker health (every live worker's heartbeat, not just a count)
|
|
28
|
+
- `GET /api/topology` — this deployment's durable role, for the header badge
|
|
29
|
+
- `POST /api/runs/:id/retry-with-input` — fix-and-replay: a fresh linked run with corrected input
|
|
30
|
+
- `POST /api/runs/:id/continue` — resume a run paused at a `ctx.breakpoint()`
|
|
31
|
+
- `POST /api/bulk/:action` (`retry`|`cancel`) — apply an action to every run matching the list filter
|
|
32
|
+
- `GET /api/runs/:id/stream` — SSE live-tail of one run's lifecycle events
|
|
33
|
+
- `GET /api/runs` now also filters by `namespace` and repeatable `attr=key:op:value` search-attribute
|
|
34
|
+
predicates
|
|
35
|
+
|
|
36
|
+
`dashboardAuth` gains a second, additive auth mode: alongside the existing `login` hook (Mode B —
|
|
37
|
+
built-in login page), a host app can now configure a `session` hook (Mode A) that validates the host's
|
|
38
|
+
OWN auth off the raw request, for an "open the console from your app" button. Either or both may be
|
|
39
|
+
configured; only one is required. `DashboardAuthOptions.login` is now optional (was previously
|
|
40
|
+
required) to make room for `session`-only setups — existing configs with `login` keep working
|
|
41
|
+
unchanged.
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- [`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
|
|
46
|
+
|
|
47
|
+
A recent `@adonisjs/queue` bump added a `renewJobs` method to its `Adapter` interface. The queue
|
|
48
|
+
transport's `MockAdapter` (used by the in-memory/testing transport) didn't implement it, which broke
|
|
49
|
+
structural assignability to `Adapter`. It now has the same "unsupported" stub as the adapter's other
|
|
50
|
+
not-yet-implemented methods.
|
|
51
|
+
|
|
3
52
|
## 0.21.1
|
|
4
53
|
|
|
5
54
|
### Patch Changes
|