@beignet/core 0.0.33 → 0.0.34

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +65 -15
  3. package/dist/contracts/contract-builder.d.ts +0 -4
  4. package/dist/contracts/contract-builder.d.ts.map +1 -1
  5. package/dist/contracts/contract-builder.js +0 -6
  6. package/dist/contracts/contract-builder.js.map +1 -1
  7. package/dist/flags/index.d.ts +0 -4
  8. package/dist/flags/index.d.ts.map +1 -1
  9. package/dist/flags/index.js +0 -4
  10. package/dist/flags/index.js.map +1 -1
  11. package/dist/notifications/index.d.ts +194 -10
  12. package/dist/notifications/index.d.ts.map +1 -1
  13. package/dist/notifications/index.js +397 -59
  14. package/dist/notifications/index.js.map +1 -1
  15. package/dist/ports/events.d.ts +2 -2
  16. package/dist/ports/index.d.ts +1 -1
  17. package/dist/ports/index.d.ts.map +1 -1
  18. package/dist/ports/index.js +1 -1
  19. package/dist/ports/index.js.map +1 -1
  20. package/dist/providers/provider.d.ts +1 -1
  21. package/dist/server/server.d.ts +0 -10
  22. package/dist/server/server.d.ts.map +1 -1
  23. package/dist/server/server.js +20 -10
  24. package/dist/server/server.js.map +1 -1
  25. package/dist/testing/index.d.ts +1 -1
  26. package/dist/testing/index.d.ts.map +1 -1
  27. package/dist/testing/index.js +1 -0
  28. package/dist/testing/index.js.map +1 -1
  29. package/package.json +1 -5
  30. package/skills/app-architecture/SKILL.md +8 -0
  31. package/src/contracts/contract-builder.ts +0 -7
  32. package/src/flags/index.ts +0 -5
  33. package/src/notifications/index.ts +678 -70
  34. package/src/ports/events.ts +2 -2
  35. package/src/ports/index.ts +0 -1
  36. package/src/providers/provider.ts +1 -1
  37. package/src/server/server.ts +2 -34
  38. package/src/testing/index.ts +2 -0
@@ -184,8 +184,16 @@ Register workflow artifacts explicitly:
184
184
  - schedules in `server/schedules.ts`
185
185
  - tasks in `server/tasks.ts`
186
186
  - outbox events and jobs in `server/outbox.ts`
187
+ - queued notification definitions and their delivery job in
188
+ `server/notifications.ts`, then add that job to every worker/outbox registry
187
189
  - seeds through the app's seed entrypoint, usually `server/seed.ts`
188
190
 
191
+ Notification channels run independently and return per-channel outcomes. Use
192
+ the inline dispatcher for immediate delivery and the queued dispatcher/provider
193
+ for one independently retryable job per channel. Preferences are an optional
194
+ app-owned `NotificationPreferencesPort`; inbox persistence remains app-owned
195
+ through `beignet make inbox`.
196
+
189
197
  For apps that opt into runtime boot checks, declare workflow artifacts in
190
198
  `server/runtime-integrity.ts` with `defineRuntimeManifest(...)`, compare them
191
199
  to the central registries with `defineRuntimeRegistries(...)`, and pass the
@@ -111,13 +111,6 @@ export class ContractBuilder<
111
111
  /**
112
112
  * URL path template for this contract.
113
113
  */
114
- get pathTemplate(): TPath {
115
- return this._path;
116
- }
117
-
118
- /**
119
- * URL path template alias.
120
- */
121
114
  get path(): TPath {
122
115
  return this._path;
123
116
  }
@@ -406,11 +406,6 @@ export function defineFlags<const TRegistry extends FlagRegistry>(
406
406
  return registry;
407
407
  }
408
408
 
409
- /**
410
- * Alias for apps that prefer to name the collection explicitly.
411
- */
412
- export const defineFlagRegistry = defineFlags;
413
-
414
409
  /**
415
410
  * Evaluate a flag through any `FlagsPort`.
416
411
  */