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.
Files changed (92) hide show
  1. package/.augment-guidelines +24 -0
  2. package/.env +35 -35
  3. package/.eslintrc.cjs +1 -0
  4. package/.idea/AICommit.xml +6 -0
  5. package/.idea/AugmentWebviewStateStore.xml +10 -0
  6. package/.idea/Flowise-share-chatbox.iml +0 -1
  7. package/.idea/codeStyles/Project.xml +31 -0
  8. package/.idea/inspectionProfiles/Project_Default.xml +13 -10
  9. package/.idea/misc.xml +6 -0
  10. package/.idea/modules.xml +0 -1
  11. package/.idea/vcs.xml +0 -1
  12. package/dist/components/Bot.d.ts +10 -0
  13. package/dist/components/Bot.d.ts.map +1 -1
  14. package/dist/components/FeedbackContentDialog.d.ts +3 -0
  15. package/dist/components/FeedbackContentDialog.d.ts.map +1 -1
  16. package/dist/components/Toast.d.ts +10 -0
  17. package/dist/components/Toast.d.ts.map +1 -0
  18. package/dist/components/bubbles/BotBubble.d.ts +5 -0
  19. package/dist/components/bubbles/BotBubble.d.ts.map +1 -1
  20. package/dist/components/bubbles/LoadingBubble.d.ts +7 -1
  21. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -1
  22. package/dist/components/bubbles/SourceBubble.d.ts.map +1 -1
  23. package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -1
  24. package/dist/components/buttons/CopyMessageButton.d.ts +10 -0
  25. package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
  26. package/dist/components/buttons/EditMessageButton.d.ts +8 -0
  27. package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
  28. package/dist/components/buttons/FeedbackButtons.d.ts +1 -0
  29. package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -1
  30. package/dist/components/buttons/PopupToast.d.ts +7 -0
  31. package/dist/components/buttons/PopupToast.d.ts.map +1 -0
  32. package/dist/components/buttons/SendButton.d.ts +1 -0
  33. package/dist/components/buttons/SendButton.d.ts.map +1 -1
  34. package/dist/components/dialogs/EditMessageDialog.d.ts +9 -0
  35. package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
  36. package/dist/components/icons/AddImageIcon.d.ts.map +1 -1
  37. package/dist/components/icons/CheckIcon.d.ts +3 -0
  38. package/dist/components/icons/CheckIcon.d.ts.map +1 -0
  39. package/dist/components/icons/CopyIcon.d.ts +5 -0
  40. package/dist/components/icons/CopyIcon.d.ts.map +1 -0
  41. package/dist/components/icons/EditIcon.d.ts +5 -0
  42. package/dist/components/icons/EditIcon.d.ts.map +1 -0
  43. package/dist/components/icons/FullScreenIcon.d.ts +3 -0
  44. package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
  45. package/dist/components/icons/ThumbsDownIcon.d.ts +3 -1
  46. package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -1
  47. package/dist/components/icons/ThumbsUpIcon.d.ts +3 -1
  48. package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -1
  49. package/dist/components/icons/index.d.ts +4 -0
  50. package/dist/components/icons/index.d.ts.map +1 -1
  51. package/dist/components/image/PreviewImage.d.ts +5 -0
  52. package/dist/components/image/PreviewImage.d.ts.map +1 -0
  53. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +4 -0
  54. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -1
  55. package/dist/components/inputs/textInput/components/TextInput.d.ts +22 -3
  56. package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -1
  57. package/dist/constants.d.ts.map +1 -1
  58. package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
  59. package/dist/features/bubble/types.d.ts +1 -0
  60. package/dist/features/bubble/types.d.ts.map +1 -1
  61. package/dist/features/full/components/Full.d.ts.map +1 -1
  62. package/dist/features/popup/components/Popup.d.ts.map +1 -1
  63. package/dist/queries/sendMessageQuery.d.ts +47 -1
  64. package/dist/queries/sendMessageQuery.d.ts.map +1 -1
  65. package/dist/utils/index.d.ts +4 -0
  66. package/dist/utils/index.d.ts.map +1 -1
  67. package/dist/utils/transcriptApi.d.ts +8 -0
  68. package/dist/utils/transcriptApi.d.ts.map +1 -0
  69. package/dist/utils/ultimateJsonParser.d.ts +2 -0
  70. package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
  71. package/dist/web.d.ts +4 -0
  72. package/dist/web.d.ts.map +1 -1
  73. package/dist/web.js +1 -1
  74. package/dist/window.d.ts +2 -0
  75. package/dist/window.d.ts.map +1 -1
  76. package/package.json +5 -3
  77. package/public/index.html +2 -116
  78. package/.husky/pre-commit +0 -18
  79. package/a.json +0 -57
  80. package/bun.lockb +0 -0
  81. package/dist/BubbleChat.d.ts +0 -13
  82. package/dist/BubbleChat.d.ts.map +0 -1
  83. package/dist/FullPageChat.d.ts +0 -18
  84. package/dist/FullPageChat.d.ts.map +0 -1
  85. package/dist/components/ImageUploadButton.d.ts +0 -11
  86. package/dist/components/ImageUploadButton.d.ts.map +0 -1
  87. package/dist/components/RecordAudioButton.d.ts +0 -11
  88. package/dist/components/RecordAudioButton.d.ts.map +0 -1
  89. package/dist/components/SendButton.d.ts +0 -12
  90. package/dist/components/SendButton.d.ts.map +0 -1
  91. package/dist/index.js +0 -1
  92. 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=1d93aaac-ac11-44b8-9646-6ac075fa700d
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
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line no-undef
1
2
  module.exports = {
2
3
  root: true,
3
4
  extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:solid/typescript'],
@@ -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>