@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.
- package/CHANGELOG.md +7 -0
- package/README.md +65 -15
- package/dist/contracts/contract-builder.d.ts +0 -4
- package/dist/contracts/contract-builder.d.ts.map +1 -1
- package/dist/contracts/contract-builder.js +0 -6
- package/dist/contracts/contract-builder.js.map +1 -1
- package/dist/flags/index.d.ts +0 -4
- package/dist/flags/index.d.ts.map +1 -1
- package/dist/flags/index.js +0 -4
- package/dist/flags/index.js.map +1 -1
- package/dist/notifications/index.d.ts +194 -10
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +397 -59
- package/dist/notifications/index.js.map +1 -1
- package/dist/ports/events.d.ts +2 -2
- package/dist/ports/index.d.ts +1 -1
- package/dist/ports/index.d.ts.map +1 -1
- package/dist/ports/index.js +1 -1
- package/dist/ports/index.js.map +1 -1
- package/dist/providers/provider.d.ts +1 -1
- package/dist/server/server.d.ts +0 -10
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +20 -10
- package/dist/server/server.js.map +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -0
- package/dist/testing/index.js.map +1 -1
- package/package.json +1 -5
- package/skills/app-architecture/SKILL.md +8 -0
- package/src/contracts/contract-builder.ts +0 -7
- package/src/flags/index.ts +0 -5
- package/src/notifications/index.ts +678 -70
- package/src/ports/events.ts +2 -2
- package/src/ports/index.ts +0 -1
- package/src/providers/provider.ts +1 -1
- package/src/server/server.ts +2 -34
- 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
|
}
|
package/src/flags/index.ts
CHANGED
|
@@ -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
|
*/
|