@beignet/core 0.0.55 → 0.0.56
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 +6 -0
- package/README.md +5 -0
- package/package.json +1 -1
- package/skills/app-architecture/SKILL.md +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @beignet/core
|
|
2
2
|
|
|
3
|
+
## 0.0.56
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b2bae46: Generate small features with named workflows in `use-cases.ts`, support both compact and split layouts in generators and diagnostics, and document when to split workflows into separate files.
|
|
8
|
+
|
|
3
9
|
## 0.0.55
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -14,6 +14,11 @@ idempotency, locks, outbox, mail, notifications, payments, search, webhooks,
|
|
|
14
14
|
feature flags, error reporting, encryption, broadcasting, schedules, uploads, entitlements, pagination
|
|
15
15
|
helpers, testing helpers, and OpenAPI generation.
|
|
16
16
|
|
|
17
|
+
Small features can keep named workflows in `features/<feature>/use-cases.ts`.
|
|
18
|
+
Use `use-cases/` with an `index.ts` when workflows need separate modules; retain
|
|
19
|
+
the same exports so route and test imports stay unchanged. See
|
|
20
|
+
[use-case organization](https://beignetjs.com/application#organize-use-cases).
|
|
21
|
+
|
|
17
22
|
## Installation
|
|
18
23
|
|
|
19
24
|
```bash
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ features/<feature>/
|
|
|
26
26
|
schemas.ts
|
|
27
27
|
routes.ts
|
|
28
28
|
agent-capabilities.ts
|
|
29
|
-
use-cases
|
|
29
|
+
use-cases.ts
|
|
30
30
|
domain/
|
|
31
31
|
ports.ts
|
|
32
32
|
policy.ts
|
|
@@ -43,6 +43,11 @@ features/<feature>/
|
|
|
43
43
|
factories/
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
Keep small workflows together in `use-cases.ts`. Split them into `use-cases/`
|
|
47
|
+
when they have substantial independent logic or dependencies, and re-export the
|
|
48
|
+
same names through `index.ts` to preserve imports. Never keep both forms in one
|
|
49
|
+
feature. Contracts and shared schemas stay browser-safe in their own modules.
|
|
50
|
+
|
|
46
51
|
Small features do not need every file. The starter ships a lean subset;
|
|
47
52
|
workflow folders, `lib/` builders, and central registries appear when a
|
|
48
53
|
generator or deliberate feature change introduces that concern.
|