@auto-engineer/narrative 1.140.0 → 1.140.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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +3 -3
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +14 -0
- package/README.md +8 -8
- package/package.json +4 -4
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/narrative@1.
|
|
2
|
+
> @auto-engineer/narrative@1.140.0 test /home/runner/work/auto-engineer/auto-engineer/packages/narrative
|
|
3
3
|
> vitest run --reporter=dot
|
|
4
4
|
|
|
5
5
|
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
[2m Test Files [22m [1m[32m22 passed[39m[22m[90m (22)[39m
|
|
11
11
|
[2m Tests [22m [1m[32m354 passed[39m[22m[90m (354)[39m
|
|
12
|
-
[2m Start at [22m
|
|
13
|
-
[2m Duration [22m
|
|
12
|
+
[2m Start at [22m 07:30:04
|
|
13
|
+
[2m Duration [22m 42.24s[2m (transform 7.79s, setup 0ms, collect 54.03s, tests 29.87s, environment 6ms, prepare 14.94s)[22m
|
|
14
14
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @auto-engineer/flow
|
|
2
2
|
|
|
3
|
+
## 1.140.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f0fed96`](https://github.com/BeOnAuto/auto-engineer/commit/f0fed96e8e43283d2c397f4d5223dc81160c1181) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **global**: version packages
|
|
8
|
+
- **global**: rename Journey→Narrative, Narrative→Scene, Slice→Moment
|
|
9
|
+
|
|
10
|
+
- [`e0421d7`](https://github.com/BeOnAuto/auto-engineer/commit/e0421d7325b74bdc5fdf186e9d9106ce1670fb14) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Updated design tokens and documentation to reflect the Scene/Moment naming convention
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [[`f0fed96`](https://github.com/BeOnAuto/auto-engineer/commit/f0fed96e8e43283d2c397f4d5223dc81160c1181), [`e0421d7`](https://github.com/BeOnAuto/auto-engineer/commit/e0421d7325b74bdc5fdf186e9d9106ce1670fb14)]:
|
|
13
|
+
- @auto-engineer/file-store@1.140.1
|
|
14
|
+
- @auto-engineer/id@1.140.1
|
|
15
|
+
- @auto-engineer/message-bus@1.140.1
|
|
16
|
+
|
|
3
17
|
## 1.140.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @auto-engineer/narrative
|
|
2
2
|
|
|
3
|
-
TypeScript DSL for defining business
|
|
3
|
+
TypeScript DSL for defining business scenes using BDD patterns with Given/When/Then syntax.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ TypeScript DSL for defining business narratives using BDD patterns with Given/Wh
|
|
|
8
8
|
|
|
9
9
|
Without `@auto-engineer/narrative`, you would have to manually structure behavioral specifications, write boilerplate for command/query definitions, and handle the conversion between specification code and JSON models.
|
|
10
10
|
|
|
11
|
-
This package enables developers to express system behavior through
|
|
11
|
+
This package enables developers to express system behavior through scenes containing moments (commands, queries, reactions, experiences). Each moment supports client and server specifications using Gherkin-style Given/When/Then syntax.
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -44,7 +44,7 @@ flow('Orders', () => {
|
|
|
44
44
|
|
|
45
45
|
## How-to Guides
|
|
46
46
|
|
|
47
|
-
### Define a Command
|
|
47
|
+
### Define a Command Moment
|
|
48
48
|
|
|
49
49
|
```typescript
|
|
50
50
|
import { flow, command, specs, rule, example } from '@auto-engineer/narrative';
|
|
@@ -64,7 +64,7 @@ flow('Users', () => {
|
|
|
64
64
|
});
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
### Define a Query
|
|
67
|
+
### Define a Query Moment
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
70
|
import { flow, query, describe, it, data, source } from '@auto-engineer/narrative';
|
|
@@ -98,7 +98,7 @@ flow('Payments', () => {
|
|
|
98
98
|
});
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
### Load
|
|
101
|
+
### Load Scenes from File System
|
|
102
102
|
|
|
103
103
|
```typescript
|
|
104
104
|
import { getNarratives } from '@auto-engineer/narrative';
|
|
@@ -138,7 +138,7 @@ import { COMMANDS, exportSchemaCommandHandler } from '@auto-engineer/narrative/n
|
|
|
138
138
|
| Main | `@auto-engineer/narrative` | Core DSL and types |
|
|
139
139
|
| Node | `@auto-engineer/narrative/node` | Command handlers |
|
|
140
140
|
|
|
141
|
-
###
|
|
141
|
+
### Moment Types
|
|
142
142
|
|
|
143
143
|
| Type | Description | Client | Server |
|
|
144
144
|
|------|-------------|--------|--------|
|
|
@@ -176,8 +176,8 @@ src/
|
|
|
176
176
|
|
|
177
177
|
### Key Concepts
|
|
178
178
|
|
|
179
|
-
- **
|
|
180
|
-
- **
|
|
179
|
+
- **Scenes**: Business capabilities containing moments
|
|
180
|
+
- **Moments**: Behavioral units (command, query, react, experience)
|
|
181
181
|
- **Specifications**: BDD-style Given/When/Then assertions
|
|
182
182
|
- **Data Flow**: Sinks (outbound) and Sources (inbound)
|
|
183
183
|
|
package/package.json
CHANGED
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
27
|
"zod": "^3.22.4",
|
|
28
28
|
"zod-to-json-schema": "^3.22.3",
|
|
29
|
-
"@auto-engineer/file-store": "1.140.
|
|
30
|
-
"@auto-engineer/
|
|
31
|
-
"@auto-engineer/
|
|
29
|
+
"@auto-engineer/file-store": "1.140.1",
|
|
30
|
+
"@auto-engineer/id": "1.140.1",
|
|
31
|
+
"@auto-engineer/message-bus": "1.140.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^20.0.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"version": "1.140.
|
|
41
|
+
"version": "1.140.1",
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsx scripts/build.ts",
|
|
44
44
|
"test": "vitest run --reporter=dot",
|