@lucern/events 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  Operational eventing helpers for Lucern: domain event contracts, event matching,
4
4
  outbox helper re-exports, webhook validation, webhook signing, retry scheduling,
5
- and delivery record sanitization.
5
+ delivery record sanitization, and a typed webhook delivery state machine.
6
+
7
+ The XState delivery machine models operational delivery states such as pending,
8
+ delivering, retry scheduled, delivered, failed, and dead-lettered. It is a
9
+ package-local lifecycle helper for webhook delivery safety; it is not the final
10
+ Campaign #4 bitemporal replay architecture.
6
11
 
7
12
  ## Built by: EK-13.8 (Eventing + Async Integrations)
8
13
 
@@ -13,5 +18,7 @@ bitemporal replay architecture. Source Horizons, Output Objects, Computation
13
18
  Runs, Bitemporal Events, Replay Records, and source-horizon-bound artifact
14
19
  replay remain roadmap contracts.
15
20
 
16
- See `docs/reference/mcp-event-packages.md` for package-boundary truth and
17
- `docs/development/mcp-eventing-workflows.md` for development workflow examples.
21
+ See `docs/engineering/packages/catalogs/mcp-event-packages.md` for
22
+ package-boundary truth and
23
+ `docs/engineering/packages/workflows/mcp-eventing-workflows.md` for development
24
+ workflow examples.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export { eventPatternToRegExp, matchesAnyEventPattern, matchesEventPattern } from './matching.js';
2
2
  export { CreateDomainEventInput, DOMAIN_EVENT_TYPES, DOMAIN_EVENT_VERSION, DomainActorType, DomainEvent, DomainEventData, DomainEventType, DomainResourceType, EVENT_RETENTION_DEFAULT_DAYS, EventCursor, EventListQuery, EventListResult, ReplayEventsInput, ReplayEventsResult, WEBHOOK_MAX_ATTEMPTS, WEBHOOK_RETRY_DELAYS_MS, WebhookCreateInput, WebhookDeliveriesResult, WebhookDeliveryAttemptRecord, WebhookDeliveryRecord, WebhookDeliveryStatus, WebhookHealthResult, WebhookRecord, WebhookSecretMode, WebhookTestResult, WebhookUpdateInput, buildDomainEvent, compareEventCursor, createEventId, decodeEventCursor, emitDomainEvent, encodeEventCursor, inferActorType, isAfterCursor, normalizeRetentionDays, sortEventsByCursor } from '@lucern/contracts';
3
+ export { WebhookDeliveryLifecycleState, WebhookDeliveryMachine, WebhookDeliveryMachineContext, WebhookDeliveryMachineEvent, WebhookDeliveryMachineSnapshot, computeWebhookNextAttemptAt, createWebhookDeliveryMachineContext, evaluateWebhookDeliveryTransition, normalizeWebhookDeliveryLifecycleState, webhookDeliveryMachine } from './webhook-delivery-machine.js';
3
4
  export { assertValidWebhookSecret, assertValidWebhookUrl, computeWebhookSignature, nextDeliveryAttemptAt, normalizeWebhookPatterns, resolveDeliveryFailureStatus, sanitizeWebhookRecord, truncateWebhookResponseBody } from './webhooks.js';
5
+ import 'xstate';