create-auto-app 0.8.13 → 0.8.14
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 +1 -1
- package/templates/README.md +1 -0
- package/templates/shopping-app/flows/shopping-assistant.flow.ts +8 -8
- package/templates/shopping-app/tsconfig.base.json +17 -0
- package/templates/shopping-app/example-integrations/ai-chat-completion/tsconfig.test.json +0 -7
- package/templates/shopping-app/example-integrations/cart/tsconfig.test.json +0 -7
- package/templates/shopping-app/example-integrations/product-catalogue/tsconfig.test.json +0 -7
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Keep this dir empty, it's used for blah...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
command,
|
|
3
|
+
query,
|
|
4
|
+
react,
|
|
5
5
|
flow,
|
|
6
6
|
should,
|
|
7
7
|
specs,
|
|
@@ -75,7 +75,7 @@ type AddItemsToCart = Command<
|
|
|
75
75
|
>;
|
|
76
76
|
|
|
77
77
|
flow('Seasonal Assistant', () => {
|
|
78
|
-
|
|
78
|
+
command('enters shopping criteria into assistant')
|
|
79
79
|
.client(() => {
|
|
80
80
|
specs('Assistant Chat Interface', () => {
|
|
81
81
|
should('allow shopper to describe their shopping needs in natural language');
|
|
@@ -116,7 +116,7 @@ flow('Seasonal Assistant', () => {
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
react('creates a chat session').server(() => {
|
|
120
120
|
specs('When shopping criteria are entered, request wishlist creation', () => {
|
|
121
121
|
rule('Shopping criteria should trigger item suggestion', () => {
|
|
122
122
|
example('Criteria entered triggers wishlist creation')
|
|
@@ -134,7 +134,7 @@ flow('Seasonal Assistant', () => {
|
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
command('selects items relevant to the shopping criteria').server(() => {
|
|
138
138
|
data([
|
|
139
139
|
sink()
|
|
140
140
|
.command('SuggestShoppingItems')
|
|
@@ -223,7 +223,7 @@ flow('Seasonal Assistant', () => {
|
|
|
223
223
|
});
|
|
224
224
|
});
|
|
225
225
|
|
|
226
|
-
|
|
226
|
+
query('views suggested items')
|
|
227
227
|
.request(gql`
|
|
228
228
|
query GetSuggestedItems($sessionId: ID!) {
|
|
229
229
|
suggestedItems(sessionId: $sessionId) {
|
|
@@ -312,7 +312,7 @@ flow('Seasonal Assistant', () => {
|
|
|
312
312
|
});
|
|
313
313
|
});
|
|
314
314
|
|
|
315
|
-
|
|
315
|
+
command('accepts items and adds to their cart')
|
|
316
316
|
.client(() => {
|
|
317
317
|
specs('Suggested Items Screen', () => {
|
|
318
318
|
should('allow selecting specific items to add');
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"emitDecoratorMetadata": true,
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"outDir": "./dist",
|
|
10
|
+
"rootDir": ".",
|
|
11
|
+
"noEmit": false,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"strictNullChecks": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["flows/**/*", "vitest.config.ts"],
|
|
16
|
+
"exclude": ["dist", "node_modules"]
|
|
17
|
+
}
|