create-auto-app 0.11.14 → 0.11.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-auto-app",
3
- "version": "0.11.14",
3
+ "version": "0.11.15",
4
4
  "description": "Create Auto Engineer apps with no configuration",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "fs-extra": "^11.2.0",
34
34
  "inquirer": "^9.2.15",
35
35
  "ora": "^8.0.1",
36
- "@auto-engineer/id": "0.11.14"
36
+ "@auto-engineer/id": "0.11.15"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/fs-extra": "^11.0.4",
@@ -48,7 +48,6 @@ type TodoAdded = Event<
48
48
  type TodoListSummary = State<
49
49
  'TodoListSummary',
50
50
  {
51
- summaryId: string;
52
51
  totalTodos: number;
53
52
  pendingCount: number;
54
53
  inProgressCount: number;
@@ -229,7 +228,7 @@ narrative('Todo List', 'AUTO-T8dL3k9Xw', () => {
229
228
  }`),
230
229
  )
231
230
  .server(() => {
232
- data([source().state('TodoState').fromProjection('Todos', 'todoId')]);
231
+ data([source().state<TodoState>('TodoState').fromProjection('Todos', 'todoId')]);
233
232
  specs(() => {
234
233
  rule('all todos are displayed with their current status', 'AUTO-r4E5Fr1B', () => {
235
234
  example('shows multiple todos in different states')
@@ -280,7 +279,7 @@ narrative('Todo List', 'AUTO-T8dL3k9Xw', () => {
280
279
  }`),
281
280
  )
282
281
  .server(() => {
283
- data([source().state('TodoListSummary').fromProjection('TodoSummary', 'summaryId')]);
282
+ data([source().state('TodoListSummary').fromSingletonProjection('TodoSummary')]);
284
283
  specs(() => {
285
284
  rule('summary shows overall todo list statistics', 'AUTO-r5F6Gs2C', () => {
286
285
  example('calculates summary from multiple todos')
@@ -305,7 +304,6 @@ narrative('Todo List', 'AUTO-T8dL3k9Xw', () => {
305
304
  .and<TodoMarkedInProgress>({ todoId: 'todo-001', markedAt: new Date('2030-01-01T10:00:00.000Z') })
306
305
  .and<TodoMarkedComplete>({ todoId: 'todo-002', completedAt: new Date('2030-01-01T11:00:00.000Z') })
307
306
  .then<TodoListSummary>({
308
- summaryId: 'main-summary',
309
307
  totalTodos: 3,
310
308
  pendingCount: 1,
311
309
  inProgressCount: 1,