Skip to content

Commit 17b9a2c

Browse files
authored
feat: icl v1a (#344)
* wip: vercel ai sdk upt * wip: icl web feature * chore: icl hasura migrations, metadata and seeds * chore: genql gen * impr: chat opt separator render * impr: accordion chevron pos * impr: chat-list space
1 parent 76f727d commit 17b9a2c

File tree

112 files changed

+32653
-10567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+32653
-10567
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ _dev
88
__dev
99
.vercel
1010
.vscode/
11+
12+
.vercel
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VSCODE/a5c5f03f87f4503a2952aa8ee85ed71552e56e16b3c48813751bf8fea927b7a7

apps/hasura/metadata/databases/masterbots/tables/public_category.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ array_relationships:
1414
foreign_key_constraint_on:
1515
column: category_id
1616
table:
17-
name: label_chatbot_category
17+
name: label_chatbot_category_domain
1818
schema: public
1919
select_permissions:
2020
- role: anonymous
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
table:
2+
name: category_enum
3+
schema: public
4+
object_relationships:
5+
- name: domain_enum
6+
using:
7+
foreign_key_constraint_on: domain
8+
array_relationships:
9+
- name: subcategoryEnumsByCategoryDomain
10+
using:
11+
manual_configuration:
12+
column_mapping:
13+
domain: domain
14+
name: category
15+
insertion_order: null
16+
remote_table:
17+
name: subcategory_enum
18+
schema: public
19+
- name: subcategory_enums
20+
using:
21+
foreign_key_constraint_on:
22+
columns:
23+
- domain
24+
- category
25+
table:
26+
name: subcategory_enum
27+
schema: public
28+
select_permissions:
29+
- role: anonymous
30+
permission:
31+
columns:
32+
- domain
33+
- name
34+
- added
35+
filter: {}
36+
comment: ""
37+
- role: user
38+
permission:
39+
columns:
40+
- domain
41+
- name
42+
- added
43+
filter: {}
44+
comment: ""

apps/hasura/metadata/databases/masterbots/tables/public_chatbot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ array_relationships:
4141
foreign_key_constraint_on:
4242
column: chatbot_id
4343
table:
44-
name: label_chatbot_category
44+
name: label_chatbot_category_domain
4545
schema: public
4646
- name: preferences
4747
using:
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
table:
2+
name: domain_enum
3+
schema: public
4+
array_relationships:
5+
- name: category_enums
6+
using:
7+
foreign_key_constraint_on:
8+
column: domain
9+
table:
10+
name: category_enum
11+
schema: public
12+
- name: label_chatbot_category_domains
13+
using:
14+
foreign_key_constraint_on:
15+
column: domain_id
16+
table:
17+
name: label_chatbot_category_domain
18+
schema: public
19+
- name: tag_enums
20+
using:
21+
foreign_key_constraint_on:
22+
column: domain
23+
table:
24+
name: tag_enum
25+
schema: public
26+
select_permissions:
27+
- role: anonymous
28+
permission:
29+
columns:
30+
- name
31+
- added
32+
filter: {}
33+
comment: ""
34+
- role: user
35+
permission:
36+
columns:
37+
- name
38+
- added
39+
filter: {}
40+
comment: ""
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
table:
2+
name: example
3+
schema: public
4+
object_relationships:
5+
- name: subcategoryEnumBySubcategoryCategoryDomain
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
category: category
10+
domain: domain
11+
subcategory: name
12+
insertion_order: null
13+
remote_table:
14+
name: subcategory_enum
15+
schema: public
16+
- name: subcategory_enum
17+
using:
18+
foreign_key_constraint_on:
19+
- domain
20+
- category
21+
- subcategory
22+
select_permissions:
23+
- role: anonymous
24+
permission:
25+
columns:
26+
- tags
27+
- category
28+
- domain
29+
- subcategory
30+
- metadata
31+
- prompt
32+
- response
33+
- added
34+
- example_id
35+
filter: {}
36+
comment: ""
37+
- role: user
38+
permission:
39+
columns:
40+
- tags
41+
- category
42+
- domain
43+
- subcategory
44+
- metadata
45+
- prompt
46+
- response
47+
- added
48+
- example_id
49+
filter: {}
50+
comment: ""

apps/hasura/metadata/databases/masterbots/tables/public_label.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ array_relationships:
77
foreign_key_constraint_on:
88
column: label_id
99
table:
10-
name: label_chatbot_category
10+
name: label_chatbot_category_domain
1111
schema: public
1212
select_permissions:
1313
- role: anonymous
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
table:
2+
name: label_chatbot_category_domain
3+
schema: public
4+
object_relationships:
5+
- name: category
6+
using:
7+
foreign_key_constraint_on: category_id
8+
- name: chatbot
9+
using:
10+
foreign_key_constraint_on: chatbot_id
11+
- name: domain_enum
12+
using:
13+
foreign_key_constraint_on: domain_id
14+
- name: label
15+
using:
16+
foreign_key_constraint_on: label_id
17+
select_permissions:
18+
- role: anonymous
19+
permission:
20+
columns:
21+
- category_id
22+
- chatbot_id
23+
- label_id
24+
filter: {}
25+
comment: ""
26+
- role: moderator
27+
permission:
28+
columns:
29+
- category_id
30+
- chatbot_id
31+
- label_id
32+
filter: {}
33+
comment: ""
34+
- role: user
35+
permission:
36+
columns:
37+
- category_id
38+
- chatbot_id
39+
- label_id
40+
filter: {}
41+
comment: ""

apps/hasura/metadata/databases/masterbots/tables/public_message.yaml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,35 @@ table:
22
name: message
33
schema: public
44
object_relationships:
5+
- name: message
6+
using:
7+
foreign_key_constraint_on: augmented_from
58
- name: messageTypeEnum
69
using:
710
foreign_key_constraint_on: role
811
- name: thread
912
using:
1013
foreign_key_constraint_on: thread_id
14+
array_relationships:
15+
- name: messages
16+
using:
17+
foreign_key_constraint_on:
18+
column: augmented_from
19+
table:
20+
name: message
21+
schema: public
1122
insert_permissions:
1223
- role: moderator
1324
permission:
1425
check: {}
1526
columns:
27+
- augmented_from
1628
- content
17-
- role
1829
- created_at
30+
- examples
1931
- message_id
32+
- prompt
33+
- role
2034
- thread_id
2135
comment: ""
2236
- role: user
@@ -26,19 +40,26 @@ insert_permissions:
2640
user_id:
2741
_eq: X-Hasura-User-Id
2842
columns:
43+
- augmented_from
2944
- content
3045
- role
3146
- created_at
47+
- examples
3248
- message_id
49+
- prompt
50+
- role
3351
- thread_id
3452
comment: ""
3553
select_permissions:
3654
- role: anonymous
3755
permission:
3856
columns:
57+
- augmented_from
3958
- content
4059
- created_at
60+
- examples
4161
- message_id
62+
- prompt
4263
- thread_id
4364
- role
4465
filter: {}
@@ -47,19 +68,24 @@ select_permissions:
4768
permission:
4869
columns:
4970
- content
50-
- role
5171
- created_at
72+
- examples
5273
- message_id
74+
- prompt
75+
- role
5376
- thread_id
5477
filter: {}
5578
comment: ""
5679
- role: user
5780
permission:
5881
columns:
82+
- augmented_from
5983
- content
6084
- role
6185
- created_at
86+
- examples
6287
- message_id
88+
- prompt
6389
- thread_id
6490
filter: {}
6591
comment: ""

0 commit comments

Comments
 (0)