@adonis-agora/durable 0.25.0 → 0.26.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 +38 -0
- package/dist/assets/spa/assets/{index-CV232q_B.js → index-ClD9G7pa.js} +10 -10
- package/dist/assets/spa/assets/index-ClD9G7pa.js.map +1 -0
- package/dist/assets/spa/assets/index-Ds6dCWMa.css +1 -0
- package/dist/assets/spa/index.html +2 -2
- package/dist/providers/durable_provider.d.ts.map +1 -1
- package/dist/providers/durable_provider.js +25 -0
- package/dist/providers/durable_provider.js.map +1 -1
- package/dist/src/dashboard/index.d.ts +1 -1
- package/dist/src/dashboard/index.js +1 -1
- package/dist/src/engine.d.ts +7 -0
- 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/event-trigger-bridge.d.ts +32 -0
- package/dist/src/event-trigger-bridge.d.ts.map +1 -0
- package/dist/src/event-trigger-bridge.js +122 -0
- package/dist/src/event-trigger-bridge.js.map +1 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/workflow-discovery.d.ts.map +1 -1
- package/dist/src/workflow-discovery.js +13 -1
- package/dist/src/workflow-discovery.js.map +1 -1
- package/dist/src/workflow-events.d.ts +85 -0
- package/dist/src/workflow-events.d.ts.map +1 -0
- package/dist/src/workflow-events.js +58 -0
- package/dist/src/workflow-events.js.map +1 -0
- package/package.json +5 -2
- package/skills/durable-cluster/SKILL.md +308 -0
- package/skills/durable-determinism/SKILL.md +260 -0
- package/skills/durable-reliability/SKILL.md +352 -0
- package/skills/durable-setup/SKILL.md +293 -0
- package/skills/durable-transports-stores/SKILL.md +296 -0
- package/skills/durable-workflows/SKILL.md +399 -0
- package/dist/assets/spa/assets/index-CTsYsi6p.css +0 -1
- package/dist/assets/spa/assets/index-CV232q_B.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @adonis-agora/durable
|
|
2
2
|
|
|
3
|
+
## 0.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c4a32e0`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/c4a32e0d0d5938305785e988391069ab6e54ccca) - **Event-triggered workflows** — start a workflow when an external event fires, the sibling
|
|
8
|
+
of `static schedule`:
|
|
9
|
+
|
|
10
|
+
- `@OnEvent({ event })` — subscribe to an Adonis emitter event (exact name).
|
|
11
|
+
- `@OnDiagnostic({ lib, event? })` — subscribe to an `@adonis-agora/diagnostics` channel
|
|
12
|
+
(`agora:<lib>:<event>`), exact, regex over events, or every event of a lib.
|
|
13
|
+
- `static on = [...]` — the colocated literal form (decorators only stamp it).
|
|
14
|
+
- The durable provider bridges the Adonis emitter + the diagnostics registry into the
|
|
15
|
+
engine: exact triggers route through `publishEvent` (idempotent by `evt:<id>:<workflow>`),
|
|
16
|
+
regex/any triggers start the workflow directly with the event payload as input.
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
@OnDiagnostic({ lib: "payments", event: "payment.succeeded" })
|
|
20
|
+
export class ProcessPaymentWorkflow extends BaseWorkflow {
|
|
21
|
+
static workflow = { name: "process-payment" };
|
|
22
|
+
async run(ctx, input) {
|
|
23
|
+
/* input = the payment.succeeded payload */
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 0.25.1
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- [#78](https://github.com/DavideCarvalho/adonis-agora-durable/pull/78) [`bb587ec`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/bb587ec36d9bf0742b72eb74abd653fe349dd9ea) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Add TanStack Intent AI-agent skills
|
|
33
|
+
|
|
34
|
+
Ships seven `SKILL.md` agent skills co-located with their packages and published in the npm tarballs via a new `"skills/"` entry in each package's `files` array:
|
|
35
|
+
|
|
36
|
+
- `packages/adonis/skills/` — durable-setup, durable-workflows, durable-determinism, durable-transports-stores, durable-reliability, durable-cluster
|
|
37
|
+
- `packages/dashboard/skills/` — durable-observability
|
|
38
|
+
|
|
39
|
+
Each package also gains the `tanstack-intent` keyword and a devDependency on `@tanstack/intent`. Discovery artifacts (`_artifacts/domain_map.yaml`, `skill_spec.md`, `skill_tree.yaml`) live at the repo root, and `.github/workflows/check-skills.yml` validates skills on PRs.
|
|
40
|
+
|
|
3
41
|
## 0.25.0
|
|
4
42
|
|
|
5
43
|
### Minor Changes
|