diff --git a/main/manager-web/package-lock.json b/main/manager-web/package-lock.json index 44affae38..cc0cd2005 100644 --- a/main/manager-web/package-lock.json +++ b/main/manager-web/package-lock.json @@ -18,6 +18,7 @@ "opus-decoder": "^0.7.7", "opus-recorder": "^8.0.5", "sm-crypto": "^0.4.0", + "v-code-diff": "^1.16.0", "vue": "^2.6.14", "vue-axios": "^3.5.2", "vue-i18n": "^8.28.2", @@ -2275,9 +2276,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -2900,9 +2898,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -2917,9 +2912,6 @@ "arm" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -2934,9 +2926,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -2951,9 +2940,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -2968,9 +2954,6 @@ "loong64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -2985,9 +2968,6 @@ "loong64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3002,9 +2982,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3019,9 +2996,6 @@ "ppc64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3036,9 +3010,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3053,9 +3024,6 @@ "riscv64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3070,9 +3038,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3087,9 +3052,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3104,9 +3066,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -13595,6 +13554,27 @@ "uuid": "bin/uuid" } }, + "node_modules/v-code-diff": { + "version": "1.16.0", + "resolved": "https://registry.npmmirror.com/v-code-diff/-/v-code-diff-1.16.0.tgz", + "integrity": "sha512-xNhzfK/OHgVs86T1Wnjb1YqSAYHXhmwAAYm8G7yVWuc96j9QWyIhG1xirWMjrzlkJr3KRGR+TUKqG23P5bl8Pg==", + "hasInstallScript": true, + "dependencies": { + "diff": "^5.2.2", + "diff-match-patch": "^1.0.5", + "highlight.js": "^11.12.0", + "vue-demi": "^0.14.10" + }, + "peerDependencies": { + "@vue/composition-api": "^1.4.9", + "vue": "^2.6.0 || >=3.0.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, "node_modules/validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmmirror.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", diff --git a/main/manager-web/package.json b/main/manager-web/package.json index 0c43a71db..f5a837221 100644 --- a/main/manager-web/package.json +++ b/main/manager-web/package.json @@ -23,6 +23,7 @@ "opus-decoder": "^0.7.7", "opus-recorder": "^8.0.5", "sm-crypto": "^0.4.0", + "v-code-diff": "^1.16.0", "vue": "^2.6.14", "vue-axios": "^3.5.2", "vue-i18n": "^8.28.2", diff --git a/main/manager-web/public/privacy-policy.html b/main/manager-web/public/privacy-policy.html deleted file mode 100644 index 495ea711e..000000000 --- a/main/manager-web/public/privacy-policy.html +++ /dev/null @@ -1,98 +0,0 @@ - - - -
- - -Welcome to the Xiao Zhi backend service (the "Service"). We are committed to protecting your personal information. This Policy explains what information we collect, how we use it, and how we protect it when you use the Service.
-Please read this Policy carefully before using the Service. By using the Service, you agree to the practices described here.
- -We may collect account information, device identifiers, device model and firmware data, agent configuration data, voice interaction data, image data, chat history, knowledge base content, voiceprint samples, logs, and verification information when needed to operate the Service.
-When you use voice, vision, memory, knowledge base, or OTA features, we may process the related content to provide those features.
- -We use the information we collect to provide, maintain, and improve the Service, manage accounts and devices, support AI interactions, store summaries and history, deliver support, and meet legal obligations.
-We do not use your personal information for purposes unrelated to the Service unless we have your consent or are otherwise permitted by law.
- -We do not sell your personal information.
-We may share information with third-party service providers only when necessary to provide AI, speech, or vision features, comply with law, protect safety and security, or with your consent.
- -Your information may be stored on the servers used to operate the Service, including databases and caches. We use reasonable technical and administrative safeguards such as encryption, access control, and auditing to help protect that information.
-No method of transmission or storage is completely secure. Please avoid entering sensitive personal or financial information unless it is necessary for the feature you are using.
- -The Service is an open source project and can be self-hosted or operated as a managed test platform. If you self-host the Service, you are responsible for your own deployment and data protection practices. If you use a deployment run by another party, that operator is responsible for their own data handling practices.
- -Some features may rely on third-party AI providers located in other jurisdictions. If you choose to use those providers, your data may be transferred and processed outside your local region, subject to the provider's own policies and the applicable law.
- -Depending on your location, you may have rights to access, correct, delete, or restrict the use of your personal information. You may also have the right to object to or request portability of your information, subject to applicable law.
- -The Service is not intended for children under the age required by applicable law. If a minor uses the Service, a parent or legal guardian should supervise the use and help protect the minor's privacy.
- -We may update this Policy from time to time. We will publish the updated version and change the "Last updated" date above when we do so.
- -If you have questions about this Policy, please contact the operator of the Service through the support channels provided in the product or project documentation.
- - - diff --git a/main/manager-web/public/user-agreement.html b/main/manager-web/public/user-agreement.html deleted file mode 100644 index 460fb5c6a..000000000 --- a/main/manager-web/public/user-agreement.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - -Welcome to the Xiao Zhi backend service (the "Service"). The Service provides backend support for connected AI hardware, including voice interaction, visual understanding, intent recognition, memory, knowledge base access, device management, and agent management. The Service is operated by the party that deploys and administers it (the "Operator", "we", or "us").
-Please read this Agreement carefully before registering, logging in, or otherwise using the Service. Certain terms, including disclaimers and limitations of liability, may affect your legal rights and deserve special attention.
-By creating an account, logging in, or otherwise using the Service, you confirm that you have read, understood, and agreed to this Agreement. If you do not agree, do not use the Service.
-This Agreement may be updated from time to time. Updated terms will be announced through the Service or related channels and become effective when published. Continued use of the Service after publication means you accept the updated terms.
- -Service: The Xiao Zhi backend service and the systems it operates, including the admin console, API interfaces, WebSocket services, and related components.
-Admin Console: The web management interface used for device management, agent configuration, and user management.
-User: Any individual, organization, or entity that accesses or uses the Service.
-Agent: An AI role configured in the Service, combining capabilities such as language models, speech recognition, speech synthesis, visual understanding, intent recognition, memory, and knowledge base access.
-Device: An ESP32 or similar hardware device connected through the Service.
- -This Agreement governs your use of the Service. It applies to all activity conducted through the Admin Console or any other supported interface.
-The Service is open source and subject to its own license terms. This Agreement governs your use of the Service and does not limit your rights under the applicable open source license.
- -3.1 Eligibility: You confirm that you have the legal capacity to enter into this Agreement. If you are a minor, you should use the Service only with the guidance and consent of a parent or legal guardian.
-3.2 Registration: You may register and log in using supported methods such as a phone verification code or username and password. You must provide accurate, complete, and up-to-date information.
-3.3 Account Security: You are responsible for safeguarding your account credentials. Any loss caused by disclosure, misuse, or unauthorized access resulting from your own actions is your responsibility.
-3.4 Use Restrictions: Your account is for your own use only. You may not transfer, lease, or lend it to any third party without the Operator's consent.
-3.5 Account Deletion: You may delete your account through the account settings or by contacting the Operator. Deleted data may not be recoverable, so please act carefully.
- -4.1 Overview: The Service uses AI technologies and third-party model APIs to provide interactive functionality for connected devices, including voice activity detection, speech recognition, language modeling, speech synthesis, visual understanding, intent recognition, memory, and knowledge base retrieval.
-4.2 Agent Management: You may create and configure agents, including role templates, model selection, speech settings, intent rules, knowledge bases, memory, and plugin settings. Agent content must not violate applicable law.
-4.3 Device Management: You may bind and manage devices, update firmware, and perform OTA upgrades. You must ensure that the devices you manage are lawfully owned or authorized for your use.
-4.4 Visual Understanding: If you use camera-based features, you must comply with applicable laws and respect the privacy of others.
-4.5 Intent Recognition: The Service may interpret user intent and trigger corresponding actions or services, such as device control or information lookup.
-4.6 Memory: The Service may store summaries of interactions to improve continuity and personalization. You may manage or delete this data through the Admin Console.
-4.7 Knowledge Base: You may upload documents or text to build a knowledge base. You are responsible for ensuring the uploaded content does not infringe third-party rights or violate applicable law.
-4.8 Voiceprint Recognition: The Service may support voiceprint enrollment for identity verification and personalization.
-4.9 Voice Cloning: The Service may support custom voice cloning from audio samples. You may not use cloned voices to impersonate others or engage in unlawful activity.
-4.10 MCP Access: The Service may operate as an MCP server or client to integrate with external systems in a standardized way.
-4.11 Context Providers: The Service may retrieve external information such as weather, news, or stock data to enrich agent responses.
-4.12 MQTT: The Service may use MQTT for message exchange with IoT devices.
-4.13 Service Notice: Outputs from third-party AI models are for reference only and do not constitute professional advice.
-4.14 Pricing: The Service is provided as an open source project and does not charge usage fees for the platform itself. Any third-party service fees are governed by the relevant provider.
-4.15 Changes: The Operator may modify, upgrade, or discontinue the Service from time to time and will attempt to provide advance notice when reasonable.
- -5.1 Lawful Use: You must comply with applicable laws and may not use the Service for unlawful, abusive, or harmful activity.
-5.2 Prohibited Conduct: You must not:
-1. Publish, transmit, or store unlawful, harmful, or infringing content.
-2. Interfere with the Service, including attacks, malware, or abusive resource consumption.
-3. Reverse engineer, decompile, or otherwise attempt to extract source code except as allowed by the open source license.
-4. Use automation to abuse quotas or system resources.
-5. Enter unlawful, offensive, or abusive content into agent configuration or prompts.
-6. Harm or attempt to harm minors.
-7. Engage in any other conduct that violates law, this Agreement, or the rights of others.
- -6.1 Open Source License: The source code is provided under its applicable open source license.
-6.2 Service Materials: Interface designs, icons, copy, and other original materials created by the Operator remain the Operator's property unless otherwise stated.
-6.3 User Content: Rights in content you upload, submit, or generate are determined under applicable law. You grant the Operator the rights necessary to store and process content for maintenance and improvement of the Service.
-6.4 Third-Party Rights: You must respect the intellectual property and other legal rights of third parties.
- -7.1 Data Collection: To provide the Service, the Operator may collect account information, device information, and usage logs. See the Privacy Policy for details.
-7.2 Protection: The Operator will take reasonable technical and administrative measures to protect personal information, but cannot guarantee absolute security.
-7.3 Security Reminder: Do not share sensitive information such as bank details, passwords, or account credentials with AI systems while using the Service.
- -8.1 AI Output: Third-party AI models may produce inaccurate, incomplete, or inappropriate results. The Operator makes no guarantee regarding the accuracy or completeness of AI-generated content.
-8.2 Service Interruptions: The Operator is not responsible for interruptions or failures caused by force majeure, network outages, third-party service failures, maintenance, security incidents, or legal or regulatory changes.
-8.3 Third-Party Services: The Service may integrate with third-party language, speech, visual, or intent services. You are responsible for complying with those providers' terms.
-8.4 As-Is: The Service is provided "as is" to the maximum extent permitted by law, without warranties of merchantability, fitness for a particular purpose, or non-infringement.
-8.5 Open Source Notice: The Service does not maintain custody of account keys, process funds, or guarantee third-party service quality or financial safety.
-8.6 Security Notice: The project may be incomplete and has not undergone full security certification. Do not deploy it in production without appropriate safeguards.
- -Users under the age of 18 should use the Service only with parental or guardian guidance and consent.
-Guardians should supervise minors' use of the Service and encourage responsible use.
- -10.1 User Termination: You may stop using the Service and delete your account at any time.
-10.2 Operator Termination: The Operator may suspend or terminate access if you violate this Agreement, use the Service unlawfully, or if required by law or operational necessity.
-10.3 Effect of Termination: After termination, the Operator has no obligation to retain your account data, subject to applicable law.
- -This Agreement is governed by the laws applicable to the Operator's place of business, unless otherwise required by mandatory law.
-Any dispute should first be resolved through good-faith negotiation. If negotiation fails, the parties may seek resolution in a court of competent jurisdiction.
- -This Agreement constitutes the entire agreement between you and the Operator regarding the Service.
-If any provision is held unenforceable, the remaining provisions remain in effect.
- - - diff --git a/main/manager-web/src/components/ModelEditDialog.vue b/main/manager-web/src/components/ModelEditDialog.vue index 2e682fefb..398d772b8 100644 --- a/main/manager-web/src/components/ModelEditDialog.vue +++ b/main/manager-web/src/components/ModelEditDialog.vue @@ -364,57 +364,92 @@ export default { \ No newline at end of file + diff --git a/main/manager-web/src/router/index.js b/main/manager-web/src/router/index.js index 95798ad8b..ad9381204 100644 --- a/main/manager-web/src/router/index.js +++ b/main/manager-web/src/router/index.js @@ -98,17 +98,6 @@ const routes = [ title: 'Knowledge Base' } }, - { - path: '/knowledge-file-upload', - name: 'KnowledgeFileUpload', - component: function () { - return import('../views/KnowledgeFileUpload.vue') - }, - meta: { - requiresAuth: true, - title: 'Document Upload' - } - }, { path: '/server-side-management', diff --git a/main/manager-web/src/styles/global.scss b/main/manager-web/src/styles/global.scss index f0e1a6553..128833c56 100644 --- a/main/manager-web/src/styles/global.scss +++ b/main/manager-web/src/styles/global.scss @@ -11,4 +11,64 @@ select:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0px 1000px transparent inset; transition: background-color 5000s ease-in-out 0s; background-color: transparent; -} \ No newline at end of file +} + +.el-footer { + height: 35px !important; /* !important ensures this overrides the default styles */ +} + +.el-icon-video-play, .el-icon-video-pause { + font-size: 18px !important; +} + +.is-light { + border: 1px solid #e4e7ed !important; + color: #595959; + font-size: 14px; + background: #fafcfe !important; + .popper__arrow { + border-top-color: #e4e7ed !important; + } +} + +@mixin scrollbar-style { + &::-webkit-scrollbar { + width: 6px; + } + &::-webkit-scrollbar-thumb { + background: #a1c9fd; + border-radius: 3px; + } + &::-webkit-scrollbar-track { + background: #f0f3fe; + border-radius: 3px; + } +} + +// Width tier for large dialogs (used by table dialogs) +:root { + --dialog-table-max: 1280px; +} + +/* Global dialog overlay */ +.v-modal { + background: rgba(15, 23, 42, 0.55) !important; + backdrop-filter: blur(2px); +} + +/* Center the wrapper of global dialogs */ +.el-dialog__wrapper.custom-dialog { + display: flex; + align-items: center; + justify-content: center; + overflow: auto; +} + +/* Center the delete-agent confirm dialog wrapper on the home page + (not a CustomDialog, so it needs its own selector) */ +.el-dialog__wrapper.delete-agent-dialog { + display: flex; + align-items: center; + justify-content: center; + overflow: auto; +} diff --git a/main/manager-web/src/views/AgentTemplateManagement.vue b/main/manager-web/src/views/AgentTemplateManagement.vue index 6c4a34ee4..ecaab0788 100644 --- a/main/manager-web/src/views/AgentTemplateManagement.vue +++ b/main/manager-web/src/views/AgentTemplateManagement.vue @@ -37,7 +37,7 @@ :cell-style="{ padding: '10px 20px' }" > - +