@lucern/events 0.3.0-alpha.9 → 1.0.1

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
@@ -1,5 +1,24 @@
1
- # packages/events
1
+ # @lucern/events
2
2
 
3
- Event infrastructure: outbox pattern, webhook delivery, replay, projection reconciliation.
3
+ Operational eventing helpers for Lucern: domain event contracts, event matching,
4
+ outbox helper re-exports, webhook validation, webhook signing, retry scheduling,
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.
4
11
 
5
12
  ## Built by: EK-13.8 (Eventing + Async Integrations)
13
+
14
+ ## Replay boundary
15
+
16
+ This package is operational eventing substrate. It is not the final Campaign #4
17
+ bitemporal replay architecture. Source Horizons, Output Objects, Computation
18
+ Runs, Bitemporal Events, Replay Records, and source-horizon-bound artifact
19
+ replay remain roadmap contracts.
20
+
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';