cmcts-c-agent-embedding-react 1.0.3 → 1.0.5

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/.idea/modules.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ProjectModuleManager">
4
4
  <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/Flowise-share-chatbox.iml" filepath="$PROJECT_DIR$/.idea/Flowise-share-chatbox.iml" />
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/Flowise-share-chatbox-main.iml" filepath="$PROJECT_DIR$/.idea/Flowise-share-chatbox-main.iml" />
6
6
  </modules>
7
7
  </component>
8
8
  </project>
package/.idea/vcs.xml CHANGED
@@ -1,6 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
3
+ <component name="VcsDirectoryMappings" defaultProject="true" />
6
4
  </project>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PropertiesComponent">{}</component>
4
+ </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmcts-c-agent-embedding-react",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "React library to display flowise chatbot on your website",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/.env DELETED
@@ -1,36 +0,0 @@
1
- # ==============================================
2
- # REQUIRED CONFIGURATION
3
- # ==============================================
4
-
5
- # API Host URL (required)
6
- # This should be the URL where your Flowise instance is running
7
- # Example: https://your-flowise-instance.com
8
- API_HOST=https://stock.cmcts.ai/c-agent
9
-
10
- # Flowise API Key (required)
11
- # Generate this from your Flowise instance settings page
12
- # Example: OxxGE-h_LaH7ZYorStjTOik1XY999RxxoHpCSYl8BXxc
13
- FLOWISE_API_KEY=ztl44tnaaZKMAEHmPBYgCCw3tiEdE-ls5F9Uv7kyMG4
14
-
15
- # ==============================================
16
- # CHATFLOWS CONFIGURATION (required)
17
- # ==============================================
18
-
19
- # Format: [identifier]=[chatflowId],[allowedDomain1],[allowedDomain2],...
20
- #
21
- # Each entry consists of:
22
- # - identifier: Any name you choose (e.g., agent1, support, salesbot)
23
- # - chatflowId: The UUID of your Flowise chatflow
24
- # - allowedDomains: Comma-separated list of domains where this chat can be embedded
25
- # Note: Wildcard domains (*) are not supported for security reasons
26
- #
27
- # Examples:
28
- # agent1=20db97c6-64c9-4411-bab4-7d6202171600,https://example1.com
29
- # support=1c28f529-a70f-5001-9bc5-4f4c5d03d8c0,https://example2.com,https://another-example2.com
30
- # salesbot=3db97c6-64c9-4411-bab4-7d620217160a,https://sales.example.com
31
-
32
- # Add your chatflows below:
33
- chatflow_1=6a63bb88-88f7-4c4d-805e-9c027c85707b
34
- chatflow_2=
35
-
36
- CHATWOOT_BASE_URL=http://203.145.47.214:8003
@@ -1,60 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <option name="LINE_SEPARATOR" value="&#10;" />
4
- <HTMLCodeStyleSettings>
5
- <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
6
- </HTMLCodeStyleSettings>
7
- <JSCodeStyleSettings version="0">
8
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
9
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
10
- <option name="USE_DOUBLE_QUOTES" value="false" />
11
- <option name="FORCE_QUOTE_STYlE" value="true" />
12
- <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
13
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
14
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
15
- </JSCodeStyleSettings>
16
- <TypeScriptCodeStyleSettings version="0">
17
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
18
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
19
- <option name="USE_DOUBLE_QUOTES" value="false" />
20
- <option name="FORCE_QUOTE_STYlE" value="true" />
21
- <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
22
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
23
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
24
- </TypeScriptCodeStyleSettings>
25
- <VueCodeStyleSettings>
26
- <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
27
- <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
28
- </VueCodeStyleSettings>
29
- <codeStyleSettings language="HTML">
30
- <option name="SOFT_MARGINS" value="150" />
31
- <indentOptions>
32
- <option name="INDENT_SIZE" value="2" />
33
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
34
- <option name="TAB_SIZE" value="2" />
35
- </indentOptions>
36
- </codeStyleSettings>
37
- <codeStyleSettings language="JavaScript">
38
- <option name="SOFT_MARGINS" value="150" />
39
- <indentOptions>
40
- <option name="INDENT_SIZE" value="2" />
41
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
42
- <option name="TAB_SIZE" value="2" />
43
- </indentOptions>
44
- </codeStyleSettings>
45
- <codeStyleSettings language="TypeScript">
46
- <option name="SOFT_MARGINS" value="150" />
47
- <indentOptions>
48
- <option name="INDENT_SIZE" value="2" />
49
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
50
- <option name="TAB_SIZE" value="2" />
51
- </indentOptions>
52
- </codeStyleSettings>
53
- <codeStyleSettings language="Vue">
54
- <option name="SOFT_MARGINS" value="150" />
55
- <indentOptions>
56
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
57
- </indentOptions>
58
- </codeStyleSettings>
59
- </code_scheme>
60
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>
@@ -1,16 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
5
- <option name="myValues">
6
- <value>
7
- <list size="1">
8
- <item index="0" class="java.lang.String" itemvalue="className" />
9
- </list>
10
- </value>
11
- </option>
12
- <option name="myCustomValuesEnabled" value="true" />
13
- </inspection_tool>
14
- <inspection_tool class="JSXNamespaceValidation" enabled="false" level="INFORMATION" enabled_by_default="false" />
15
- </profile>
16
- </component>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PrettierConfiguration">
4
- <option name="myConfigurationMode" value="AUTOMATIC" />
5
- </component>
6
- </project>
package/a.json DELETED
@@ -1,57 +0,0 @@
1
- [
2
- {
3
- "agentName": "question_analyzer",
4
- "messages": [
5
- "{\"sub_requests\":[\"gọi tư vấn viên\"],\"convesation_related\":true,\"worker_call\":false,\"name\":\"Van dong\",\"phone_number\":\"0376561156\",\"human_support\":true,\"unsatisfied_times\":0}"
6
- ],
7
- "usedTools": [
8
- null
9
- ],
10
- "sourceDocuments": [
11
- null
12
- ],
13
- "artifacts": [
14
- null
15
- ],
16
- "state": {
17
- "worker_call": false,
18
- "sub_requests": [
19
- "gọi tư vấn viên"
20
- ],
21
- "current_date": "Thursday, December 26, 2024 at 05:11 AM UTC",
22
- "name": "Van dong",
23
- "phone_number": "0376561156",
24
- "human_support": true
25
- },
26
- "nodeName": "seqLLMNode",
27
- "nodeId": "seqLLMNode_0"
28
- },
29
- {
30
- "agentName": "check_call_CMC_worker",
31
- "messages": [
32
- "human_router"
33
- ],
34
- "nodeName": "seqCondition",
35
- "nodeId": "seqCondition_0"
36
- },
37
- {
38
- "agentName": "human_router",
39
- "messages": [
40
- "{\"assistant_phone_number\":\"034567812\",\"assistant_name\":\"Huy - Tư vấn viên học phí, học bổng\"}"
41
- ],
42
- "usedTools": [
43
- null
44
- ],
45
- "sourceDocuments": [
46
- null
47
- ],
48
- "artifacts": [
49
- null
50
- ],
51
- "state": {
52
- "human_support": false
53
- },
54
- "nodeName": "seqLLMNode",
55
- "nodeId": "seqLLMNode_3"
56
- }
57
- ]
package/bun.lockb DELETED
Binary file
package/test.html DELETED
@@ -1,17 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Title</title>
6
- </head>
7
- <body>
8
- <flowise-fullchatbot></flowise-fullchatbot>
9
- <script type="module">
10
- import Chatbot from 'http://localhost:5678/web.js';
11
- Chatbot.initFull({
12
- chatflowid: 'your-identifier-here',
13
- apiHost: 'https://stock.cmcts.ai/c-agent',
14
- });
15
- </script>
16
- </body>
17
- </html>