cmcts-c-agent-embedding 1.0.13 → 1.0.14-cagent
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/.augment-guidelines +24 -0
- package/.env +35 -35
- package/.eslintrc.cjs +1 -0
- package/.idea/AICommit.xml +6 -0
- package/.idea/AugmentWebviewStateStore.xml +10 -0
- package/.idea/Flowise-share-chatbox.iml +0 -1
- package/.idea/codeStyles/Project.xml +31 -0
- package/.idea/inspectionProfiles/Project_Default.xml +13 -10
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +0 -1
- package/.idea/vcs.xml +0 -1
- package/dist/components/Bot.d.ts +10 -0
- package/dist/components/Bot.d.ts.map +1 -1
- package/dist/components/FeedbackContentDialog.d.ts +3 -0
- package/dist/components/FeedbackContentDialog.d.ts.map +1 -1
- package/dist/components/Toast.d.ts +10 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/bubbles/BotBubble.d.ts +5 -0
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -1
- package/dist/components/bubbles/LoadingBubble.d.ts +7 -1
- package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -1
- package/dist/components/bubbles/SourceBubble.d.ts.map +1 -1
- package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -1
- package/dist/components/buttons/CopyMessageButton.d.ts +10 -0
- package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/EditMessageButton.d.ts +8 -0
- package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/FeedbackButtons.d.ts +1 -0
- package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -1
- package/dist/components/buttons/PopupToast.d.ts +7 -0
- package/dist/components/buttons/PopupToast.d.ts.map +1 -0
- package/dist/components/buttons/SendButton.d.ts +1 -0
- package/dist/components/buttons/SendButton.d.ts.map +1 -1
- package/dist/components/dialogs/EditMessageDialog.d.ts +9 -0
- package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
- package/dist/components/icons/AddImageIcon.d.ts.map +1 -1
- package/dist/components/icons/CheckIcon.d.ts +3 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/CopyIcon.d.ts +5 -0
- package/dist/components/icons/CopyIcon.d.ts.map +1 -0
- package/dist/components/icons/EditIcon.d.ts +5 -0
- package/dist/components/icons/EditIcon.d.ts.map +1 -0
- package/dist/components/icons/FullScreenIcon.d.ts +3 -0
- package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsDownIcon.d.ts +3 -1
- package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -1
- package/dist/components/icons/ThumbsUpIcon.d.ts +3 -1
- package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -1
- package/dist/components/icons/index.d.ts +4 -0
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/image/PreviewImage.d.ts +5 -0
- package/dist/components/image/PreviewImage.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +4 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -1
- package/dist/components/inputs/textInput/components/TextInput.d.ts +22 -3
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
- package/dist/features/bubble/types.d.ts +1 -0
- package/dist/features/bubble/types.d.ts.map +1 -1
- package/dist/features/full/components/Full.d.ts.map +1 -1
- package/dist/features/popup/components/Popup.d.ts.map +1 -1
- package/dist/queries/sendMessageQuery.d.ts +47 -1
- package/dist/queries/sendMessageQuery.d.ts.map +1 -1
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/transcriptApi.d.ts +8 -0
- package/dist/utils/transcriptApi.d.ts.map +1 -0
- package/dist/utils/ultimateJsonParser.d.ts +2 -0
- package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
- package/dist/web.d.ts +4 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +1 -1
- package/dist/window.d.ts +2 -0
- package/dist/window.d.ts.map +1 -1
- package/package.json +5 -3
- package/public/index.html +2 -116
- package/.husky/pre-commit +0 -18
- package/a.json +0 -57
- package/bun.lockb +0 -0
- package/dist/BubbleChat.d.ts +0 -13
- package/dist/BubbleChat.d.ts.map +0 -1
- package/dist/FullPageChat.d.ts +0 -18
- package/dist/FullPageChat.d.ts.map +0 -1
- package/dist/components/ImageUploadButton.d.ts +0 -11
- package/dist/components/ImageUploadButton.d.ts.map +0 -1
- package/dist/components/RecordAudioButton.d.ts +0 -11
- package/dist/components/RecordAudioButton.d.ts.map +0 -1
- package/dist/components/SendButton.d.ts +0 -12
- package/dist/components/SendButton.d.ts.map +0 -1
- package/dist/index.js +0 -1
- package/test.html +0 -17
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
### WHEN A USER ASKS IN A LANGUAGE OTHER THAN ENGLISH, PLEASE REITERATE THE USER'S REQUEST IN YOUR UNDERSTANDING IN ENGLISH BEFORE STARTING TO DO THE REQUEST. ALWAYS THINK, ANSWER, PERFORM IN ENGLISH.
|
|
2
|
+
# ###
|
|
3
|
+
|
|
4
|
+
- Don't write code without using it; ensure everything written is utilized in the project.
|
|
5
|
+
- Comments must explain 'what' and 'why', not 'how' - code should be self-explanatory in implementation. Specifically: 'what' refers to the business logic or purpose the code serves, 'why' explains the reasoning behind design decisions, trade-offs made, or non-obvious choices. The 'how' should be evident from clean, well-structured code with meaningful variable names and clear control flow.
|
|
6
|
+
- Avoid over-commenting - excessive comments indicate poor code quality. A well-written codebase needs minimal comments because the code itself communicates clearly. If you find yourself writing many comments to explain code, refactor the code instead. Comments should be rare and valuable, not cluttering every line.
|
|
7
|
+
- Function comments must explain purpose and reasoning, placed at function beginnings.
|
|
8
|
+
- Code must prioritize readability for human understanding over computer execution efficiency.
|
|
9
|
+
- Maintain long-term maintainability over short-term optimization.
|
|
10
|
+
- Understand and design proper data structures first - good data structures lead to good code.
|
|
11
|
+
- Avoid unnecessary complexity - implement simple solutions unless complexity is truly required.
|
|
12
|
+
- New code you write is garbage if it doesn't follow Linus Torvalds' clean code principles - the father of Linux. These principles include: keep it simple and obvious, make code readable like good prose, avoid premature optimization, write code that clearly expresses intent, minimize abstraction layers, and never add functionality "just in case" - only implement what's needed now. Remember: good taste in code means knowing when to stop adding features and complexity.
|
|
13
|
+
- Before implementation, first use provided reading, searching, browsing, web, and other tools to understand the data structure of the request.
|
|
14
|
+
- Avoid over-engineering - focus on delivering the minimal viable solution that meets the specified acceptance criteria.
|
|
15
|
+
- Only create automated tests if explicitly required in the original requirements.
|
|
16
|
+
- Define all data input/output structures first before writing any logic.
|
|
17
|
+
- Define all function input parameters and return values before implementation.
|
|
18
|
+
- Define all required functions and their signatures at once before writing implementation logic.
|
|
19
|
+
- Implementation logic should be written only after all data structures and function definitions are complete.
|
|
20
|
+
|
|
21
|
+
- Thís project is using solid-js 1.7.1.
|
|
22
|
+
|
|
23
|
+
# TO ENSURE THE QUALITY OF THE CODE WRITTEN, EVERY TIME YOU COMPLETE A CODING TASK, YOU ARE REQUIRED TO RUN THE FULL FOLLOWING FLOW:
|
|
24
|
+
- Flow: write code -> run `yarn run lint` and fix lint errors -> run `yarn run type-check` and finally `yarn run format`.
|
package/.env
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
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=
|
|
34
|
-
chatflow_2=
|
|
35
|
-
|
|
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
36
|
CHATWOOT_BASE_URL=http://203.145.47.214:8003
|
package/.eslintrc.cjs
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="com.github.blarc.ai.commits.intellij.plugin.settings.ProjectSettings">
|
|
4
|
+
<option name="splitButtonActionSelectedLLMClientId" value="1ebebfb1-3058-49aa-ad9b-c8eae648b7de" />
|
|
5
|
+
</component>
|
|
6
|
+
</project>
|