@nebulit/embuilder 0.1.39

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 (212) hide show
  1. package/README.md +254 -0
  2. package/dist/cli.d.ts +2 -0
  3. package/dist/cli.js +138 -0
  4. package/package.json +49 -0
  5. package/templates/.claude/hooks/QUICKSTART.md +256 -0
  6. package/templates/.claude/hooks/README.md +533 -0
  7. package/templates/.claude/hooks/analyze-commit.sh +22 -0
  8. package/templates/.claude/hooks/analyze-commit.ts +518 -0
  9. package/templates/.claude/hooks/analyzers/README.md +198 -0
  10. package/templates/.claude/hooks/analyzers/code-quality-checker.ts +154 -0
  11. package/templates/.claude/hooks/analyzers/code-quality.md +54 -0
  12. package/templates/.claude/hooks/analyzers/commit-blocker-example.ts.disabled +110 -0
  13. package/templates/.claude/hooks/analyzers/commit-policy.md +49 -0
  14. package/templates/.claude/hooks/analyzers/event-model-validator.md +49 -0
  15. package/templates/.claude/hooks/analyzers/event-model-validator.ts +169 -0
  16. package/templates/.claude/hooks/analyzers/example-logger.ts +70 -0
  17. package/templates/.claude/hooks/analyzers/slice-scope-validator.md +81 -0
  18. package/templates/.claude/hooks/check-review-result.sh +47 -0
  19. package/templates/.claude/hooks/prepare-review.sh +34 -0
  20. package/templates/.claude/hooks/review-agent-prompt.md +42 -0
  21. package/templates/.claude/hooks/run-review-agent.sh +124 -0
  22. package/templates/.claude/settings.local.json +37 -0
  23. package/templates/.claude/skills/help/README.md +84 -0
  24. package/templates/.claude/skills/help/SKILL.md +393 -0
  25. package/templates/.claude/skills/help/templates/demo-config.json +6753 -0
  26. package/templates/.claude/skills/sample-slices/SKILL.md +8 -0
  27. package/templates/.claude/skills/sample-slices/templates/.slices/Library/addbook/code-slice.json +124 -0
  28. package/templates/.claude/skills/sample-slices/templates/.slices/Library/addbook/slice.json +255 -0
  29. package/templates/.claude/skills/sample-slices/templates/.slices/Library/availablebooks/slice.json +107 -0
  30. package/templates/.claude/skills/sample-slices/templates/.slices/index.json +20 -0
  31. package/templates/.claude/skills/sample-slices/templates/Cart/additem/slice.json +979 -0
  32. package/templates/.claude/skills/sample-slices/templates/Cart/archiveitem/slice.json +529 -0
  33. package/templates/.claude/skills/sample-slices/templates/Cart/cartitems/slice.json +1072 -0
  34. package/templates/.claude/skills/sample-slices/templates/Cart/cartwithproducts/slice.json +394 -0
  35. package/templates/.claude/skills/sample-slices/templates/Cart/changedprices/slice.json +88 -0
  36. package/templates/.claude/skills/sample-slices/templates/Cart/changeinventory/slice.json +264 -0
  37. package/templates/.claude/skills/sample-slices/templates/Cart/changeprice/slice.json +308 -0
  38. package/templates/.claude/skills/sample-slices/templates/Cart/clearcart/slice.json +358 -0
  39. package/templates/.claude/skills/sample-slices/templates/Cart/inventories/slice.json +203 -0
  40. package/templates/.claude/skills/sample-slices/templates/Cart/publishcart/slice.json +876 -0
  41. package/templates/.claude/skills/sample-slices/templates/Cart/removeitem/slice.json +560 -0
  42. package/templates/.claude/skills/sample-slices/templates/Cart/submitcart/slice.json +708 -0
  43. package/templates/.claude/skills/sample-slices/templates/Cart/submittedcartdata/slice.json +399 -0
  44. package/templates/.claude/skills/sample-slices/templates/index.json +108 -0
  45. package/templates/.claude/skills/slice-automation/SKILL.md +49 -0
  46. package/templates/.claude/skills/slice-state-change/SKILL.md +369 -0
  47. package/templates/.claude/skills/slice-state-change/templates/AddLocation/AddLocation.test.ts.sample +76 -0
  48. package/templates/.claude/skills/slice-state-change/templates/AddLocation/AddLocationCommand.ts.sample +84 -0
  49. package/templates/.claude/skills/slice-state-change/templates/AddLocation/routes.ts.sample +73 -0
  50. package/templates/.claude/skills/slice-state-change/templates/README.md +46 -0
  51. package/templates/.claude/skills/slice-state-view/SKILL.md +336 -0
  52. package/templates/.claude/skills/slice-state-view/templates/Locations/Locations.test.ts.sample +84 -0
  53. package/templates/.claude/skills/slice-state-view/templates/Locations/LocationsProjection.ts.sample +50 -0
  54. package/templates/.claude/skills/slice-state-view/templates/Locations/routes.ts.sample +46 -0
  55. package/templates/.claude/skills/slice-state-view/templates/README.md +109 -0
  56. package/templates/.claude/skills/slice-state-view/templates/Tables/Tables.test.ts.sample +104 -0
  57. package/templates/.claude/skills/slice-state-view/templates/Tables/TablesProjection.ts.sample +59 -0
  58. package/templates/.claude/skills/slice-state-view/templates/Tables/routes.ts.sample +46 -0
  59. package/templates/.claude/skills/slice-state-view/templates/V2__tables.sql +7 -0
  60. package/templates/.claude/skills/slice-state-view/templates/V8__locations.sql +7 -0
  61. package/templates/.claude/skills/test-analyzer/SKILL.md +373 -0
  62. package/templates/.claude/skills/test-analyzer/examples/specification-format.md +143 -0
  63. package/templates/.claude/skills/test-analyzer/examples/state-change-example.md +111 -0
  64. package/templates/.claude/skills/test-analyzer/examples/state-view-example.md +122 -0
  65. package/templates/AGENTS.md +110 -0
  66. package/templates/Claude.md +58 -0
  67. package/templates/README.md +178 -0
  68. package/templates/backend/.env +9 -0
  69. package/templates/backend/BACKEND_AUTH_SETUP.md +183 -0
  70. package/templates/backend/SWAGGER.md +213 -0
  71. package/templates/backend/eslint.config.mjs +31 -0
  72. package/templates/backend/flyway.conf +17 -0
  73. package/templates/backend/package.json +44 -0
  74. package/templates/backend/prd.json.example +64 -0
  75. package/templates/backend/public/assets/images/banner.png +0 -0
  76. package/templates/backend/public/assets/logo.png +0 -0
  77. package/templates/backend/public/file.svg +4 -0
  78. package/templates/backend/public/globe.svg +12 -0
  79. package/templates/backend/public/next.svg +6 -0
  80. package/templates/backend/public/vercel.svg +3 -0
  81. package/templates/backend/public/window.svg +5 -0
  82. package/templates/backend/server.ts +129 -0
  83. package/templates/backend/setup-env.sh +50 -0
  84. package/templates/backend/src/common/assertions.ts +6 -0
  85. package/templates/backend/src/common/db.ts +1 -0
  86. package/templates/backend/src/common/loadPostgresEventstore.ts +16 -0
  87. package/templates/backend/src/common/parseEndpoint.ts +51 -0
  88. package/templates/backend/src/common/replay.ts +9 -0
  89. package/templates/backend/src/common/routes.ts +19 -0
  90. package/templates/backend/src/common/testHelpers.ts +53 -0
  91. package/templates/backend/src/core/readmodel.ts +28 -0
  92. package/templates/backend/src/core/types.ts +26 -0
  93. package/templates/backend/src/process/process.ts +53 -0
  94. package/templates/backend/src/supabase/LoginHandler.ts +36 -0
  95. package/templates/backend/src/supabase/ProtectedPageProps.ts +21 -0
  96. package/templates/backend/src/supabase/README.md +171 -0
  97. package/templates/backend/src/supabase/api.ts +63 -0
  98. package/templates/backend/src/supabase/authMiddleware.ts +53 -0
  99. package/templates/backend/src/supabase/component.ts +12 -0
  100. package/templates/backend/src/supabase/requireUser.ts +72 -0
  101. package/templates/backend/src/supabase/serverProps.ts +25 -0
  102. package/templates/backend/src/supabase/staticProps.ts +10 -0
  103. package/templates/backend/src/swagger.ts +34 -0
  104. package/templates/backend/src/util/assertions.ts +6 -0
  105. package/templates/backend/supabase/config.toml +295 -0
  106. package/templates/backend/supabase/migrations/20260121155918593_catalogentries.sql.sample +23 -0
  107. package/templates/backend/supabase/seed.sql +1 -0
  108. package/templates/backend/tsconfig.json +31 -0
  109. package/templates/frontend/.env.development +3 -0
  110. package/templates/frontend/AGENTS.md +7 -0
  111. package/templates/frontend/README.md +73 -0
  112. package/templates/frontend/components.json +20 -0
  113. package/templates/frontend/eslint.config.js +26 -0
  114. package/templates/frontend/index.html +18 -0
  115. package/templates/frontend/package-lock.json +8347 -0
  116. package/templates/frontend/package.json +94 -0
  117. package/templates/frontend/postcss.config.js +6 -0
  118. package/templates/frontend/public/favicon.ico +0 -0
  119. package/templates/frontend/public/logo.png +0 -0
  120. package/templates/frontend/public/placeholder.svg +1 -0
  121. package/templates/frontend/public/robots.txt +14 -0
  122. package/templates/frontend/src/App.css +42 -0
  123. package/templates/frontend/src/App.tsx +47 -0
  124. package/templates/frontend/src/components/NavLink.tsx +28 -0
  125. package/templates/frontend/src/components/ProtectedRoute.tsx +24 -0
  126. package/templates/frontend/src/components/calendar/Calendar.tsx +302 -0
  127. package/templates/frontend/src/components/layout/DashboardLayout.tsx +21 -0
  128. package/templates/frontend/src/components/layout/Header.tsx +45 -0
  129. package/templates/frontend/src/components/layout/Sidebar.tsx +82 -0
  130. package/templates/frontend/src/components/tables/ReservationTemplates.tsx +189 -0
  131. package/templates/frontend/src/components/ui/accordion.tsx +52 -0
  132. package/templates/frontend/src/components/ui/alert-dialog.tsx +104 -0
  133. package/templates/frontend/src/components/ui/alert.tsx +43 -0
  134. package/templates/frontend/src/components/ui/aspect-ratio.tsx +5 -0
  135. package/templates/frontend/src/components/ui/avatar.tsx +38 -0
  136. package/templates/frontend/src/components/ui/badge.tsx +29 -0
  137. package/templates/frontend/src/components/ui/breadcrumb.tsx +90 -0
  138. package/templates/frontend/src/components/ui/button.tsx +47 -0
  139. package/templates/frontend/src/components/ui/calendar.tsx +54 -0
  140. package/templates/frontend/src/components/ui/card.tsx +43 -0
  141. package/templates/frontend/src/components/ui/carousel.tsx +224 -0
  142. package/templates/frontend/src/components/ui/chart.tsx +303 -0
  143. package/templates/frontend/src/components/ui/checkbox.tsx +26 -0
  144. package/templates/frontend/src/components/ui/collapsible.tsx +9 -0
  145. package/templates/frontend/src/components/ui/command.tsx +132 -0
  146. package/templates/frontend/src/components/ui/context-menu.tsx +178 -0
  147. package/templates/frontend/src/components/ui/dialog.tsx +95 -0
  148. package/templates/frontend/src/components/ui/drawer.tsx +87 -0
  149. package/templates/frontend/src/components/ui/dropdown-menu.tsx +179 -0
  150. package/templates/frontend/src/components/ui/form.tsx +129 -0
  151. package/templates/frontend/src/components/ui/hover-card.tsx +27 -0
  152. package/templates/frontend/src/components/ui/input-otp.tsx +61 -0
  153. package/templates/frontend/src/components/ui/input.tsx +22 -0
  154. package/templates/frontend/src/components/ui/label.tsx +17 -0
  155. package/templates/frontend/src/components/ui/menubar.tsx +207 -0
  156. package/templates/frontend/src/components/ui/navigation-menu.tsx +120 -0
  157. package/templates/frontend/src/components/ui/pagination.tsx +81 -0
  158. package/templates/frontend/src/components/ui/popover.tsx +29 -0
  159. package/templates/frontend/src/components/ui/progress.tsx +23 -0
  160. package/templates/frontend/src/components/ui/radio-group.tsx +36 -0
  161. package/templates/frontend/src/components/ui/resizable.tsx +37 -0
  162. package/templates/frontend/src/components/ui/scroll-area.tsx +38 -0
  163. package/templates/frontend/src/components/ui/select.tsx +143 -0
  164. package/templates/frontend/src/components/ui/separator.tsx +20 -0
  165. package/templates/frontend/src/components/ui/sheet.tsx +107 -0
  166. package/templates/frontend/src/components/ui/sidebar.tsx +637 -0
  167. package/templates/frontend/src/components/ui/skeleton.tsx +7 -0
  168. package/templates/frontend/src/components/ui/slider.tsx +23 -0
  169. package/templates/frontend/src/components/ui/sonner.tsx +27 -0
  170. package/templates/frontend/src/components/ui/stat-card.tsx +44 -0
  171. package/templates/frontend/src/components/ui/switch.tsx +27 -0
  172. package/templates/frontend/src/components/ui/table.tsx +72 -0
  173. package/templates/frontend/src/components/ui/tabs.tsx +53 -0
  174. package/templates/frontend/src/components/ui/textarea.tsx +21 -0
  175. package/templates/frontend/src/components/ui/toast.tsx +111 -0
  176. package/templates/frontend/src/components/ui/toaster.tsx +24 -0
  177. package/templates/frontend/src/components/ui/toggle-group.tsx +49 -0
  178. package/templates/frontend/src/components/ui/toggle.tsx +37 -0
  179. package/templates/frontend/src/components/ui/tooltip.tsx +28 -0
  180. package/templates/frontend/src/components/ui/use-toast.ts +3 -0
  181. package/templates/frontend/src/contexts/AuthContext.tsx +94 -0
  182. package/templates/frontend/src/contexts/RefreshContext.tsx +236 -0
  183. package/templates/frontend/src/hooks/api/index.ts +2 -0
  184. package/templates/frontend/src/hooks/api/useLocations.ts +15 -0
  185. package/templates/frontend/src/hooks/use-mobile.tsx +19 -0
  186. package/templates/frontend/src/hooks/use-toast.ts +186 -0
  187. package/templates/frontend/src/hooks/useApiContext.ts +11 -0
  188. package/templates/frontend/src/index.css +118 -0
  189. package/templates/frontend/src/integrations/supabase/client.ts +9 -0
  190. package/templates/frontend/src/lib/api-client.ts +136 -0
  191. package/templates/frontend/src/lib/api.ts +1028 -0
  192. package/templates/frontend/src/lib/utils.ts +6 -0
  193. package/templates/frontend/src/main.tsx +5 -0
  194. package/templates/frontend/src/pages/Auth.tsx +408 -0
  195. package/templates/frontend/src/pages/Dashboard.tsx +168 -0
  196. package/templates/frontend/src/pages/Menus.tsx +224 -0
  197. package/templates/frontend/src/pages/NotFound.tsx +24 -0
  198. package/templates/frontend/src/pages/Register.tsx +285 -0
  199. package/templates/frontend/src/test/example.test.ts +0 -0
  200. package/templates/frontend/src/test/setup.ts +15 -0
  201. package/templates/frontend/src/types/index.ts +8 -0
  202. package/templates/frontend/src/vite-env.d.ts +1 -0
  203. package/templates/frontend/tailwind.config.ts +101 -0
  204. package/templates/frontend/tsconfig.app.json +31 -0
  205. package/templates/frontend/tsconfig.json +16 -0
  206. package/templates/frontend/tsconfig.node.json +22 -0
  207. package/templates/frontend/vite.config.ts +21 -0
  208. package/templates/frontend/vitest.config.ts +16 -0
  209. package/templates/init.sh +1 -0
  210. package/templates/prompt.md +139 -0
  211. package/templates/ralph.sh +120 -0
  212. package/templates/server.mjs +505 -0
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: sample-slices
3
+ description: Generate a sample configuration for slices
4
+ ---
5
+
6
+ # Copy the configuration
7
+
8
+ Copy the .slices folder from templates to the project root
@@ -0,0 +1,124 @@
1
+ {
2
+ "id": "3458764661593137476",
3
+ "title": "slice: Add Book",
4
+ "specifications": [
5
+ {
6
+ "vertical": false,
7
+ "id": "GENERATED-SPEC-001",
8
+ "sliceName": "slice: Add Book",
9
+ "type": "COMMAND",
10
+ "title": "should create BookAdded event when adding a book",
11
+ "given": [],
12
+ "when": [
13
+ {
14
+ "id": "GENERATED-WHEN-001",
15
+ "linkedId": "3458764661591564785",
16
+ "title": "Add Book",
17
+ "type": "COMMAND",
18
+ "fields": [
19
+ {
20
+ "name": "title",
21
+ "type": "String",
22
+ "cardinality": "Single",
23
+ "example": "Harry Potter",
24
+ "subfields": [],
25
+ "idAttribute": false
26
+ },
27
+ {
28
+ "name": "author",
29
+ "type": "String",
30
+ "cardinality": "Single",
31
+ "example": "J.K. Rowling",
32
+ "subfields": [],
33
+ "idAttribute": false
34
+ },
35
+ {
36
+ "name": "description",
37
+ "type": "String",
38
+ "cardinality": "Single",
39
+ "example": "A magical adventure",
40
+ "subfields": [],
41
+ "idAttribute": false
42
+ },
43
+ {
44
+ "name": "isbn",
45
+ "type": "String",
46
+ "cardinality": "Single",
47
+ "example": "1234567890",
48
+ "subfields": [],
49
+ "idAttribute": false
50
+ },
51
+ {
52
+ "name": "user",
53
+ "type": "String",
54
+ "cardinality": "Single",
55
+ "example": "john@example.com",
56
+ "subfields": [],
57
+ "idAttribute": false
58
+ }
59
+ ]
60
+ }
61
+ ],
62
+ "then": [
63
+ {
64
+ "id": "GENERATED-THEN-001",
65
+ "linkedId": "3458764661586330620",
66
+ "title": "Book added",
67
+ "type": "SPEC_EVENT",
68
+ "fields": [
69
+ {
70
+ "name": "id",
71
+ "type": "String",
72
+ "cardinality": "Single",
73
+ "subfields": [],
74
+ "idAttribute": false,
75
+ "generated": true
76
+ },
77
+ {
78
+ "name": "title",
79
+ "type": "String",
80
+ "cardinality": "Single",
81
+ "example": "Harry Potter",
82
+ "subfields": [],
83
+ "idAttribute": false
84
+ },
85
+ {
86
+ "name": "author",
87
+ "type": "String",
88
+ "cardinality": "Single",
89
+ "example": "J.K. Rowling",
90
+ "subfields": [],
91
+ "idAttribute": false
92
+ },
93
+ {
94
+ "name": "description",
95
+ "type": "String",
96
+ "cardinality": "Single",
97
+ "example": "A magical adventure",
98
+ "subfields": [],
99
+ "idAttribute": false
100
+ },
101
+ {
102
+ "name": "isbn",
103
+ "type": "String",
104
+ "cardinality": "Single",
105
+ "example": "1234567890",
106
+ "subfields": [],
107
+ "idAttribute": false
108
+ },
109
+ {
110
+ "name": "user",
111
+ "type": "String",
112
+ "cardinality": "Single",
113
+ "example": "john@example.com",
114
+ "subfields": [],
115
+ "idAttribute": false
116
+ }
117
+ ]
118
+ }
119
+ ],
120
+ "comments": [],
121
+ "linkedId": "GENERATED-SPEC-001"
122
+ }
123
+ ]
124
+ }
@@ -0,0 +1,255 @@
1
+ {
2
+ "id": "3458764661593137476",
3
+ "status": "Planned",
4
+ "title": "slice: Add Book",
5
+ "context": "Library",
6
+ "sliceType": "STATE_CHANGE",
7
+ "commands": [
8
+ {
9
+ "id": "3458764661591564785",
10
+ "tags": [],
11
+ "elementContext": "INTERNAL",
12
+ "modelContext": "Library",
13
+ "context": "INTERNAL",
14
+ "slice": "slice: Add Book",
15
+ "title": "Add Book",
16
+ "fields": [
17
+ {
18
+ "name": "title",
19
+ "type": "String",
20
+ "example": "harry potter",
21
+ "subfields": [],
22
+ "cardinality": "Single",
23
+ "idAttribute": false
24
+ },
25
+ {
26
+ "name": "author",
27
+ "type": "String",
28
+ "example": "J.K. rowling",
29
+ "subfields": [],
30
+ "cardinality": "Single",
31
+ "idAttribute": false
32
+ },
33
+ {
34
+ "name": "description",
35
+ "type": "String",
36
+ "example": "J.K. rowling",
37
+ "subfields": [],
38
+ "cardinality": "Single",
39
+ "idAttribute": false
40
+ },
41
+ {
42
+ "name": "isbn",
43
+ "type": "String",
44
+ "example": "1234",
45
+ "subfields": [],
46
+ "cardinality": "Single",
47
+ "idAttribute": false
48
+ },
49
+ {
50
+ "name": "user",
51
+ "type": "String",
52
+ "subfields": [],
53
+ "cardinality": "Single",
54
+ "idAttribute": false
55
+ },
56
+ {
57
+ "name": "id",
58
+ "technicalAttribute": true,
59
+ "type": "String",
60
+ "cardinality": "Single",
61
+ "subfields": [],
62
+ "generated": true,
63
+ "idAttribute": false
64
+ }
65
+ ],
66
+ "type": "COMMAND",
67
+ "description": "",
68
+ "aggregate": "default",
69
+ "aggregateDependencies": [],
70
+ "dependencies": [
71
+ {
72
+ "id": "3458764661586330620",
73
+ "type": "OUTBOUND",
74
+ "title": "Book added",
75
+ "elementType": "EVENT"
76
+ },
77
+ {
78
+ "id": "3458764661590893982",
79
+ "type": "INBOUND",
80
+ "title": "screen",
81
+ "elementType": "SCREEN"
82
+ }
83
+ ],
84
+ "createsAggregate": false,
85
+ "triggers": [],
86
+ "sketched": false,
87
+ "prototype": {
88
+ "activeByDefault": false
89
+ }
90
+ }
91
+ ],
92
+ "events": [
93
+ {
94
+ "id": "3458764661586330620",
95
+ "tags": [],
96
+ "elementContext": "INTERNAL",
97
+ "modelContext": "Library",
98
+ "context": "INTERNAL",
99
+ "slice": "slice: Add Book",
100
+ "title": "Book added",
101
+ "fields": [
102
+ {
103
+ "name": "title",
104
+ "type": "String",
105
+ "example": "harry potter",
106
+ "subfields": [],
107
+ "cardinality": "Single",
108
+ "idAttribute": false
109
+ },
110
+ {
111
+ "name": "author",
112
+ "type": "String",
113
+ "example": "J.K. rowling",
114
+ "subfields": [],
115
+ "cardinality": "Single",
116
+ "idAttribute": false
117
+ },
118
+ {
119
+ "name": "description",
120
+ "type": "String",
121
+ "example": "J.K. rowling",
122
+ "subfields": [],
123
+ "cardinality": "Single",
124
+ "idAttribute": false
125
+ },
126
+ {
127
+ "name": "isbn",
128
+ "type": "String",
129
+ "example": "1234",
130
+ "subfields": [],
131
+ "cardinality": "Single",
132
+ "idAttribute": false
133
+ },
134
+ {
135
+ "name": "user",
136
+ "type": "String",
137
+ "subfields": [],
138
+ "cardinality": "Single",
139
+ "idAttribute": false
140
+ },
141
+ {
142
+ "name": "id",
143
+ "technicalAttribute": true,
144
+ "type": "String",
145
+ "cardinality": "Single",
146
+ "subfields": [],
147
+ "idAttribute": false
148
+ }
149
+ ],
150
+ "type": "EVENT",
151
+ "description": "",
152
+ "aggregate": "default",
153
+ "aggregateDependencies": [],
154
+ "dependencies": [
155
+ {
156
+ "id": "3458764661594769900",
157
+ "type": "OUTBOUND",
158
+ "title": "available books",
159
+ "elementType": "READMODEL"
160
+ },
161
+ {
162
+ "id": "3458764661591564785",
163
+ "type": "INBOUND",
164
+ "title": "Add Book",
165
+ "elementType": "COMMAND"
166
+ }
167
+ ],
168
+ "createsAggregate": false,
169
+ "triggers": [],
170
+ "sketched": false,
171
+ "prototype": {
172
+ "activeByDefault": false
173
+ }
174
+ }
175
+ ],
176
+ "readmodels": [],
177
+ "screens": [
178
+ {
179
+ "id": "3458764661590893982",
180
+ "tags": [],
181
+ "groupId": "3458764661590893987",
182
+ "elementContext": "INTERNAL",
183
+ "modelContext": "Library",
184
+ "context": "INTERNAL",
185
+ "slice": "slice: Add Book",
186
+ "title": "screen",
187
+ "fields": [
188
+ {
189
+ "name": "author",
190
+ "type": "String",
191
+ "generated": true,
192
+ "subfields": [],
193
+ "cardinality": "Single",
194
+ "idAttribute": false
195
+ },
196
+ {
197
+ "name": "description",
198
+ "type": "String",
199
+ "generated": true,
200
+ "subfields": [],
201
+ "cardinality": "Single",
202
+ "idAttribute": false
203
+ },
204
+ {
205
+ "name": "isbn",
206
+ "type": "String",
207
+ "generated": true,
208
+ "subfields": [],
209
+ "cardinality": "Single",
210
+ "idAttribute": false
211
+ },
212
+ {
213
+ "name": "title",
214
+ "type": "String",
215
+ "generated": true,
216
+ "subfields": [],
217
+ "cardinality": "Single",
218
+ "idAttribute": false
219
+ },
220
+ {
221
+ "name": "user",
222
+ "type": "String",
223
+ "subfields": [],
224
+ "cardinality": "Single",
225
+ "idAttribute": false
226
+ }
227
+ ],
228
+ "type": "SCREEN",
229
+ "description": "",
230
+ "aggregate": "default",
231
+ "aggregateDependencies": [],
232
+ "dependencies": [
233
+ {
234
+ "id": "3458764661591564785",
235
+ "type": "OUTBOUND",
236
+ "title": "Add Book",
237
+ "elementType": "COMMAND"
238
+ }
239
+ ],
240
+ "createsAggregate": false,
241
+ "triggers": [],
242
+ "sketched": true,
243
+ "prototype": {
244
+ "activeByDefault": false
245
+ }
246
+ }
247
+ ],
248
+ "screenImages": [],
249
+ "screenLayouts": [],
250
+ "processors": [],
251
+ "tables": [],
252
+ "specifications": [],
253
+ "actors": [],
254
+ "aggregates": []
255
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "id": "3458764661595862502",
3
+ "status": "Planned",
4
+ "title": "slice: available books",
5
+ "context": "Library",
6
+ "sliceType": "STATE_VIEW",
7
+ "commands": [],
8
+ "events": [],
9
+ "readmodels": [
10
+ {
11
+ "id": "3458764661594769900",
12
+ "tags": [],
13
+ "elementContext": "INTERNAL",
14
+ "modelContext": "Library",
15
+ "context": "INTERNAL",
16
+ "slice": "slice: available books",
17
+ "title": "available books",
18
+ "fields": [
19
+ {
20
+ "name": "title",
21
+ "type": "String",
22
+ "cardinality": "Single",
23
+ "subfields": [],
24
+ "idAttribute": false
25
+ },
26
+ {
27
+ "name": "id",
28
+ "type": "String",
29
+ "cardinality": "Single",
30
+ "subfields": [],
31
+ "idAttribute": false
32
+ }
33
+ ],
34
+ "type": "READMODEL",
35
+ "description": "",
36
+ "aggregate": "default",
37
+ "aggregateDependencies": [],
38
+ "dependencies": [
39
+ {
40
+ "id": "3458764661591233332",
41
+ "type": "OUTBOUND",
42
+ "title": "screen",
43
+ "elementType": "SCREEN"
44
+ },
45
+ {
46
+ "id": "3458764661586330620",
47
+ "type": "INBOUND",
48
+ "title": "Book added",
49
+ "elementType": "EVENT"
50
+ }
51
+ ],
52
+ "listElement": true,
53
+ "createsAggregate": false,
54
+ "triggers": [],
55
+ "sketched": false,
56
+ "prototype": {
57
+ "activeByDefault": false
58
+ }
59
+ }
60
+ ],
61
+ "screens": [
62
+ {
63
+ "id": "3458764661591233332",
64
+ "tags": [],
65
+ "groupId": "3458764661591233338",
66
+ "elementContext": "INTERNAL",
67
+ "modelContext": "Library",
68
+ "context": "INTERNAL",
69
+ "slice": "slice: available books",
70
+ "title": "screen",
71
+ "fields": [
72
+ {
73
+ "name": "title",
74
+ "type": "String",
75
+ "cardinality": "Single",
76
+ "subfields": [],
77
+ "idAttribute": false
78
+ }
79
+ ],
80
+ "type": "SCREEN",
81
+ "description": "",
82
+ "aggregate": "default",
83
+ "aggregateDependencies": [],
84
+ "dependencies": [
85
+ {
86
+ "id": "3458764661594769900",
87
+ "type": "INBOUND",
88
+ "title": "available books",
89
+ "elementType": "READMODEL"
90
+ }
91
+ ],
92
+ "createsAggregate": false,
93
+ "triggers": [],
94
+ "sketched": true,
95
+ "prototype": {
96
+ "activeByDefault": false
97
+ }
98
+ }
99
+ ],
100
+ "screenImages": [],
101
+ "screenLayouts": [],
102
+ "processors": [],
103
+ "tables": [],
104
+ "specifications": [],
105
+ "actors": [],
106
+ "aggregates": []
107
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "slices": [
3
+ {
4
+ "id": "3458764661593137476",
5
+ "slice": "slice: Add Book",
6
+ "index": 1,
7
+ "context": "Library",
8
+ "folder": "addbook",
9
+ "status": "Done"
10
+ },
11
+ {
12
+ "id": "3458764661595862502",
13
+ "slice": "slice: available books",
14
+ "index": 3,
15
+ "context": "Library",
16
+ "folder": "availablebooks",
17
+ "status": "Planned"
18
+ }
19
+ ]
20
+ }