@tencent-rtc/trtc-agent-skills 0.1.3 → 0.1.4
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/.cursor/rules/main.mdc +12 -0
- package/AGENTS.md +14 -104
- package/CLAUDE.md +15 -127
- package/CODEBUDDY.md +32 -118
- package/README.md +7 -5
- package/README.zh.md +7 -5
- package/bin/cli.js +133 -41
- package/hooks/__pycache__/cursor-adapter.cpython-313.pyc +0 -0
- package/hooks/cursor-adapter.py +45 -18
- package/hooks/hooks-cursor.json +5 -18
- package/hooks/hooks.json +6 -31
- package/knowledge-base/conference/web/index.yaml +143 -0
- package/knowledge-base/platform-slice-template.md +1041 -133
- package/knowledge-base/products.yaml +76 -0
- package/knowledge-base/scenario-spec.md +1316 -115
- package/knowledge-base/scenarios/conference/base/general-conference.md +22 -2
- package/knowledge-base/scenarios/conference/base/webinar-conference.md +14 -0
- package/knowledge-base/scenarios/conference/medical/1v1-video-consultation.md +19 -0
- package/knowledge-base/scenarios/conference/medical/medical-multidoctor-consultation.md +13 -0
- package/knowledge-base/scenarios/live/entertainment-live-room.md +12 -0
- package/knowledge-base/slice-spec.md +2377 -299
- package/knowledge-base/slices/conference/web/integration-audit.md +1 -1
- package/knowledge-base/slices/conference/web/login-auth.md +14 -1
- package/knowledge-base/tooling/aliases.yaml +92 -0
- package/knowledge-base/tooling/intent-signals.yaml +181 -0
- package/knowledge-base/tooling/symptom-keywords.yaml +21 -0
- package/package.json +1 -1
- package/skills/trtc/SKILL.md +202 -245
- package/skills/trtc/hooks/__pycache__/report_prompt.cpython-313.pyc +0 -0
- package/skills/{trtc-topic/guardrails → trtc/hooks}/gate_slice_read.py +12 -8
- package/skills/{trtc-topic/guardrails → trtc/hooks}/gate_slice_write.py +16 -12
- package/skills/{trtc-topic/guardrails → trtc/hooks}/stop_require_apply_evidence.py +22 -14
- package/skills/trtc/hooks/topic_phase_gate.py +161 -0
- package/skills/{trtc-topic → trtc}/runtime/README.md +2 -2
- package/skills/{trtc-onboarding/reference/reporting-protocol.md → trtc/runtime/REPORTING.md} +5 -5
- package/skills/{trtc-topic → trtc}/runtime/RUNTIME.md +5 -5
- package/skills/trtc/runtime/lib/__init__.py +0 -0
- package/skills/{trtc-topic → trtc}/runtime/package-lock.json +2 -2
- package/skills/{trtc-topic → trtc}/runtime/package.json +2 -2
- package/skills/{trtc-topic → trtc}/runtime/telemetry-bridge.mjs +1 -1
- package/skills/{trtc-topic/scripts → trtc/tools}/STATE-MACHINE-GUIDE.md +23 -23
- package/skills/trtc/tools/__init__.py +2 -0
- package/skills/trtc/tools/__pycache__/__init__.cpython-313.pyc +0 -0
- package/skills/trtc/tools/__pycache__/query_classifier.cpython-313.pyc +0 -0
- package/skills/trtc/tools/__pycache__/reporting.cpython-313.pyc +0 -0
- package/skills/trtc/tools/__pycache__/search.cpython-313.pyc +0 -0
- package/skills/trtc/tools/__pycache__/session.cpython-313.pyc +0 -0
- package/skills/trtc/tools/apply.py +540 -0
- package/skills/trtc/tools/docs.py +712 -0
- package/skills/trtc/tools/docsbot.py +182 -0
- package/skills/trtc/tools/entry/render_ai_instructions.py +92 -0
- package/skills/trtc/tools/flow.py +1089 -0
- package/skills/{trtc-topic/scripts → trtc/tools}/init_slice_queue.py +5 -4
- package/skills/{trtc-topic/scripts → trtc/tools}/next_slice.py +5 -4
- package/skills/trtc/tools/query_classifier.py +301 -0
- package/skills/trtc/tools/reporting.py +447 -0
- package/skills/trtc/tools/search.py +817 -0
- package/skills/trtc/tools/session.py +1261 -0
- package/skills/trtc/tools/state_machine.py +690 -0
- package/skills/trtc-ai-service/README.md +195 -0
- package/skills/trtc-ai-service/README.zh-CN.md +193 -0
- package/skills/trtc-ai-service/SKILL.md +945 -0
- package/skills/trtc-ai-service/auto_adapters/README.md +40 -0
- package/skills/trtc-ai-service/auto_adapters/frontend-spa/README.md +27 -0
- package/skills/trtc-ai-service/auto_adapters/frontend-spa/angular/voice-agent.component.ts.tpl +131 -0
- package/skills/trtc-ai-service/auto_adapters/frontend-spa/manifest.yaml +57 -0
- package/skills/trtc-ai-service/auto_adapters/frontend-spa/react/VoiceAgent.tsx.tpl +142 -0
- package/skills/trtc-ai-service/auto_adapters/frontend-spa/vue/VoiceAgent.vue.tpl +121 -0
- package/skills/trtc-ai-service/auto_adapters/integration_templates/generic-backend.md +45 -0
- package/skills/trtc-ai-service/auto_adapters/integration_templates/generic-frontend.md +51 -0
- package/skills/trtc-ai-service/auto_adapters/integration_templates/generic-rest-api.md +93 -0
- package/skills/trtc-ai-service/auto_adapters/java-backend/README.md +25 -0
- package/skills/trtc-ai-service/auto_adapters/java-backend/manifest.yaml +30 -0
- package/skills/trtc-ai-service/auto_adapters/java-backend/quarkus/VoiceAgentFilter.java.tpl +64 -0
- package/skills/trtc-ai-service/auto_adapters/java-backend/springboot/VoiceAgentFilter.java.tpl +91 -0
- package/skills/trtc-ai-service/auto_adapters/manifest.yaml +43 -0
- package/skills/trtc-ai-service/auto_adapters/node-backend/README.md +25 -0
- package/skills/trtc-ai-service/auto_adapters/node-backend/express.js.tpl +40 -0
- package/skills/trtc-ai-service/auto_adapters/node-backend/fastify.js.tpl +27 -0
- package/skills/trtc-ai-service/auto_adapters/node-backend/koa.js.tpl +31 -0
- package/skills/trtc-ai-service/auto_adapters/node-backend/manifest.yaml +47 -0
- package/skills/trtc-ai-service/auto_adapters/python-backend/README.md +22 -0
- package/skills/trtc-ai-service/auto_adapters/python-backend/django.py.tpl +32 -0
- package/skills/trtc-ai-service/auto_adapters/python-backend/fastapi.py.tpl +35 -0
- package/skills/trtc-ai-service/auto_adapters/python-backend/flask.py.tpl +31 -0
- package/skills/trtc-ai-service/auto_adapters/python-backend/manifest.yaml +45 -0
- package/skills/trtc-ai-service/capabilities/__init__.py +43 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/.env.example +29 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/INTEGRATION.md +134 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/INTERFACE_ADAPT.md +111 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/QUICK_START.md +62 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/manifest.yaml +250 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/requirements.txt +6 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/__init__.py +10 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/_capability_loader.py +218 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/agent.py +231 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/credentials.py +132 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/health.py +355 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/log_filter.py +76 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/modality.py +109 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/server.py +312 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/trtc_client.py +315 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/src/usersig.py +90 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/tests/test_skeleton.py +216 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/web-demo/README.md +48 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/web-demo/app.js +415 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/web-demo/index.html +68 -0
- package/skills/trtc-ai-service/capabilities/conversation-core/web-demo/styles.css +136 -0
- package/skills/trtc-ai-service/capabilities/digital-human/README.md +31 -0
- package/skills/trtc-ai-service/capabilities/digital-human/manifest.yaml +64 -0
- package/skills/trtc-ai-service/capabilities/digital-human/src/__init__.py +2 -0
- package/skills/trtc-ai-service/capabilities/digital-human/src/router.py +43 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/INTERFACE_ADAPT.md +353 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/README.md +44 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/manifest.yaml +227 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/__init__.py +2 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/adapters/__init__.py +9 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/adapters/default_rest.py +242 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/adapters/factory.py +89 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/adapters/local_queue.py +258 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/adapters/mock.py +132 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/core/__init__.py +25 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/core/intent_detector.py +75 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/core/models.py +163 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/core/service.py +192 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/feedback_store.py +54 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/ports/__init__.py +4 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/ports/handoff_client.py +86 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/queue.py +62 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/router.py +201 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/summary_link.py +77 -0
- package/skills/trtc-ai-service/capabilities/human-handoff/src/trigger.py +25 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/INTERFACE_ADAPT.md +297 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/README.md +51 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/data/faq.json +20 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/manifest.yaml +211 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/__init__.py +8 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/adapters/__init__.py +9 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/adapters/default_rest.py +209 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/adapters/factory.py +86 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/adapters/local_json.py +172 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/adapters/mock.py +91 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/core/__init__.py +12 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/core/models.py +77 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/core/scoring.py +73 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/core/service.py +78 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/ports/__init__.py +4 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/ports/kb_client.py +61 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/retriever.py +56 -0
- package/skills/trtc-ai-service/capabilities/knowledge-base/src/router.py +85 -0
- package/skills/trtc-ai-service/capabilities/session-summary/INTERFACE_ADAPT.md +99 -0
- package/skills/trtc-ai-service/capabilities/session-summary/README.md +47 -0
- package/skills/trtc-ai-service/capabilities/session-summary/data/test_session.json +18 -0
- package/skills/trtc-ai-service/capabilities/session-summary/manifest.yaml +165 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/__init__.py +2 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/adapters/__init__.py +5 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/adapters/base.py +31 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/adapters/default_rest.py +67 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/adapters/factory.py +51 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/adapters/local_json.py +42 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/adapters/mock.py +22 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/recorder.py +210 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/router.py +93 -0
- package/skills/trtc-ai-service/capabilities/session-summary/src/summarizer.py +163 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/INTERFACE_ADAPT.md +158 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/README.md +50 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/data/tools.yaml +58 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/examples/__init__.py +1 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/examples/local_tools.py +101 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/manifest.yaml +146 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/src/__init__.py +8 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/src/dispatcher.py +54 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/src/registry.py +219 -0
- package/skills/trtc-ai-service/capabilities/tool-calling/src/router.py +50 -0
- package/skills/trtc-ai-service/references/business-contract-spec.md +263 -0
- package/skills/trtc-ai-service/scenarios/custom-builder/README.md +86 -0
- package/skills/trtc-ai-service/scenarios/custom-builder/output-templates/recipe.yaml.j2 +194 -0
- package/skills/trtc-ai-service/scenarios/custom-builder/prompts/q1-business-scenario.md +43 -0
- package/skills/trtc-ai-service/scenarios/custom-builder/prompts/q2-io-modality.md +57 -0
- package/skills/trtc-ai-service/scenarios/custom-builder/prompts/q3-ui-form.md +55 -0
- package/skills/trtc-ai-service/scenarios/custom-builder/prompts/q4-capabilities.md +78 -0
- package/skills/trtc-ai-service/scenarios/customer-service/README.md +114 -0
- package/skills/trtc-ai-service/scenarios/customer-service/recipe.yaml +154 -0
- package/skills/trtc-ai-service/scenarios/customer-service/sample-data/README.md +32 -0
- package/skills/trtc-ai-service/scenarios/customer-service/sample-data/faq-sample.json +37 -0
- package/skills/trtc-ai-service/scenarios/customer-service/system-prompt.template.md +94 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/admin-board/app.js +347 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/admin-board/index.html +125 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/admin-board/styles.css +487 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/admin-board/tokens.css +71 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/design-system/DESIGN_GUIDELINES.md +370 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/README.md +68 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/app.js +1307 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/data.js +40 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/index.html +233 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/mock-shop.json +21 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/styles.css +603 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/tokens.css +71 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/widget-floating/agent-link.js +323 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/widget-floating/app.js +458 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/widget-floating/index.html +109 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/widget-floating/styles.css +489 -0
- package/skills/trtc-ai-service/scenarios/customer-service/ui/widget-floating/tokens.css +59 -0
- package/skills/trtc-ai-service/scripts/add-capability.py +364 -0
- package/skills/trtc-ai-service/scripts/contract-adapt.py +334 -0
- package/skills/trtc-ai-service/scripts/detect-stack.py +40 -0
- package/skills/trtc-ai-service/scripts/lib/__init__.py +20 -0
- package/skills/trtc-ai-service/scripts/lib/adapter_codegen.py +509 -0
- package/skills/trtc-ai-service/scripts/lib/arbitrator.py +152 -0
- package/skills/trtc-ai-service/scripts/lib/contract_resolver.py +519 -0
- package/skills/trtc-ai-service/scripts/lib/credential_validators.py +253 -0
- package/skills/trtc-ai-service/scripts/lib/curl_parser.py +303 -0
- package/skills/trtc-ai-service/scripts/lib/degrader.py +140 -0
- package/skills/trtc-ai-service/scripts/lib/injector.py +347 -0
- package/skills/trtc-ai-service/scripts/lib/manifest_resolver.py +288 -0
- package/skills/trtc-ai-service/scripts/lib/openapi_parser.py +289 -0
- package/skills/trtc-ai-service/scripts/lib/stack_detector.py +159 -0
- package/skills/trtc-ai-service/scripts/lib/tokens_compile.py +204 -0
- package/skills/trtc-ai-service/scripts/post-install-patch.py +225 -0
- package/skills/trtc-ai-service/scripts/setup-credentials.py +393 -0
- package/skills/trtc-ai-service/scripts/verify-credentials.py +108 -0
- package/skills/trtc-ai-service/start.sh +111 -0
- package/skills/trtc-ai-service/tests/__init__.py +1 -0
- package/skills/trtc-ai-service/tests/test_arbitrator.py +64 -0
- package/skills/trtc-ai-service/tests/test_capability_overlay.py +85 -0
- package/skills/trtc-ai-service/tests/test_contract_resolver.py +190 -0
- package/skills/trtc-ai-service/tests/test_handoff_ports.py +195 -0
- package/skills/trtc-ai-service/tests/test_kb_ports.py +195 -0
- package/skills/trtc-ai-service/tests/test_manifest_resolver.py +95 -0
- package/skills/trtc-ai-service/tests/test_recipe_assembly.py +175 -0
- package/skills/trtc-ai-service/tests/test_stack_and_degrader.py +101 -0
- package/skills/trtc-ai-service/tests/test_verify_credentials.py +285 -0
- package/skills/trtc-ai-service/triggers.yaml +29 -0
- package/skills/trtc-conference/SKILL.md +324 -0
- package/skills/trtc-conference/flows/onboarding.md +205 -0
- package/skills/trtc-conference/flows/topic.md +474 -0
- package/skills/trtc-conference/flows/troubleshoot.md +85 -0
- package/skills/trtc-conference/hooks/pretooluse_require_business_decisions.py +213 -0
- package/skills/trtc-conference/playbooks/medical-quickstart.md +84 -0
- package/skills/trtc-conference/playbooks/official-roomkit.md +97 -0
- package/skills/trtc-conference/references/local-usersig/basic-info-config.ts +39 -0
- package/skills/trtc-conference/references/usersig-handling.md +134 -0
- package/skills/trtc-conference/templates/medical-consultation/src/config/lib-generate-test-usersig-es.min.d.ts +4 -0
- package/skills/trtc-conference/templates/medical-consultation/src/config/lib-generate-test-usersig-es.min.js +2 -0
- package/skills/trtc-conference/tests/__pycache__/test_conference_onboarding_contract.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-conference/tests/__pycache__/test_conference_topic_flow_contract.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-conference/tests/test_conference_index_contract.py +43 -0
- package/skills/trtc-conference/tests/test_conference_onboarding_contract.py +103 -0
- package/skills/trtc-conference/tests/test_conference_template_contract.py +25 -0
- package/skills/trtc-conference/tests/test_conference_topic_flow_contract.py +132 -0
- package/skills/trtc-conference/tools/apply_checks.py +328 -0
- package/skills/trtc-conference/verify_lib/__init__.py +0 -0
- package/skills/{trtc-apply/guardrails/apply_lib → trtc-conference/verify_lib}/rule_parser.py +1 -1
- package/skills/trtc-docs/SKILL.md +91 -119
- package/.cursor/rules/ui-mode.mdc +0 -99
- package/ai-instructions/base.md +0 -13
- package/ai-instructions/ui-mode.md +0 -93
- package/knowledge-base/index.yaml +0 -462
- package/skills/trtc/room-builder/SKILL.md +0 -133
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/README.md +0 -108
- package/skills/trtc/room-builder/tools/render_ai_instructions.py +0 -226
- package/skills/trtc-apply/SKILL.md +0 -97
- package/skills/trtc-onboarding/SKILL.md +0 -841
- package/skills/trtc-onboarding/reference/path-a1-demo.md +0 -103
- package/skills/trtc-onboarding/reference/path-a2-integrate.md +0 -737
- package/skills/trtc-onboarding/reference/path-b-troubleshoot.md +0 -186
- package/skills/trtc-onboarding/reference/path-c-expand.md +0 -43
- package/skills/trtc-onboarding/reference/supported-matrix.md +0 -100
- package/skills/trtc-search/SKILL.md +0 -228
- package/skills/trtc-topic/SKILL.md +0 -622
- package/skills/trtc-topic/scripts/apply.py +0 -581
- package/skills/trtc-topic/scripts/lib/state_machine.py +0 -328
- package/skills/trtc-topic/tests/README.md +0 -70
- package/skills/trtc-topic/tests/conftest.py +0 -72
- package/skills/trtc-topic/tests/test_apply_cli.py +0 -480
- package/skills/trtc-topic/tests/test_end_to_end.py +0 -305
- package/skills/trtc-topic/tests/test_finalize_session.py +0 -51
- package/skills/trtc-topic/tests/test_gates.py +0 -316
- package/skills/trtc-topic/tests/test_session_resolver.py +0 -260
- package/skills/trtc-topic/tests/test_state_machine.py +0 -414
- package/skills/trtc-topic/tests/test_stop_require_apply.py +0 -99
- package/skills/trtc-topic/tests/test_topic_skill_invariants.py +0 -130
- /package/skills/{trtc-topic → trtc}/runtime/lib/platforms.py +0 -0
- /package/skills/{trtc-topic → trtc}/runtime/telemetry_collector.py +0 -0
- /package/skills/{trtc-onboarding/reference → trtc/runtime}/usersig-handling.md +0 -0
- /package/skills/{trtc-topic/scripts → trtc/tools}/finalize_session.py +0 -0
- /package/skills/{trtc-apply/guardrails/apply_lib → trtc-ai-service/capabilities/conversation-core/tests}/__init__.py +0 -0
- /package/skills/{trtc-topic → trtc-conference}/references/execution-units.yaml +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios/medical-consultation/src/config → trtc-conference/references/local-usersig}/lib-generate-test-usersig-es.min.d.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios/medical-consultation/src/config → trtc-conference/references/local-usersig}/lib-generate-test-usersig-es.min.js +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/docs/backend-contract.zh-CN.md +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/docs/integration.zh-CN.md +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/docs/theme.zh-CN.md +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/index.html +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/package.json +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/postcss.config.js +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/App.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/ConsultationManagePanel.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/LanguageSwitch.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/LoadingSpinner.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/MedicalAlert.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/MedicalBusinessPanel.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/MedicalButton.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/MedicalConfirmDialog.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/MedicalDataPanel.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/MedicalRecordPanel.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/components/PrescriptionPanel.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/config/basic-info-config.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/config/runtime-config.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/env.d.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/components/ConsultationChatPanel.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/components/ConsultationMembersPanel.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/components/ConsultationTranscriptionPanel.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/components/ConsultationVideoStage.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/components/InviteDoctorDialog.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/components/KickMemberConfirmDialog.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/types.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/useConsultationChat.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/useConsultationDevices.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/useConsultationParticipants.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/useConsultationPermissions.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/features/consultation/utils.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/i18n/en-US/index.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/i18n/index.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/i18n/medicalTranslate.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/i18n/state.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/i18n/zh-CN/index.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/main.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/mock/appointments.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/mock/users.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/router/index.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/index.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/integration/appointmentService.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/integration/authService.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/integration/launchContext.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/integration/userService.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/mock/appointmentService.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/mock/authService.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/mock/userService.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/services/adapters/types.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/shared/icons.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/styles/index.css +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/styles/tailwind.css +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/styles/theme.css +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/utils/auth.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/utils/format.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/utils/navigation.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/utils/session.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/views/DoctorConsultationView.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/views/DoctorDashboardView.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/views/LoginView.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/views/PatientConsultationFinishedView.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/views/PatientConsultationView.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/views/PatientSelectDoctorView.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/src/views/PatientWaitingView.vue +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/tsconfig.json +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/tsconfig.node.json +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation/vite.config.ts +0 -0
- /package/skills/{trtc/room-builder/templates/scenarios → trtc-conference/templates}/medical-consultation//346/216/245/345/205/245/350/257/264/346/230/216.md" +0 -0
- /package/skills/{trtc-topic/runtime/lib → trtc-conference/tools}/__init__.py +0 -0
package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/styles.css
ADDED
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
/* ===== DESIGN TOKENS ===== */
|
|
2
|
+
:root {
|
|
3
|
+
--foreground: #1a1530;
|
|
4
|
+
--muted: #6b6580;
|
|
5
|
+
--card: rgba(255,255,255,0.55);
|
|
6
|
+
--card-strong: rgba(255,255,255,0.78);
|
|
7
|
+
--card-border: rgba(255,255,255,0.85);
|
|
8
|
+
--primary: #9b7bf7;
|
|
9
|
+
--pink: #f7b7d4;
|
|
10
|
+
--blue: #7ba8f7;
|
|
11
|
+
--green: #34c77b;
|
|
12
|
+
--red: #ff5c7a;
|
|
13
|
+
--accent-grad: linear-gradient(135deg, #9b7bf7 0%, #f7b7d4 100%);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
* { box-sizing: border-box; }
|
|
17
|
+
body { background: #f7f3ff; color: var(--foreground); }
|
|
18
|
+
|
|
19
|
+
.bg-ambient {
|
|
20
|
+
background:
|
|
21
|
+
radial-gradient(900px 700px at 12% 10%, #f0e6ff 0%, transparent 60%),
|
|
22
|
+
radial-gradient(900px 800px at 92% 18%, #ffe2ee 0%, transparent 60%),
|
|
23
|
+
radial-gradient(1200px 900px at 50% 100%, #dfeaff 0%, transparent 65%),
|
|
24
|
+
radial-gradient(700px 500px at 80% 80%, #f4e6ff 0%, transparent 60%),
|
|
25
|
+
#f7f3ff;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ===== GLASS PANEL ===== */
|
|
29
|
+
.glass {
|
|
30
|
+
background: var(--card);
|
|
31
|
+
backdrop-filter: blur(22px) saturate(140%);
|
|
32
|
+
-webkit-backdrop-filter: blur(22px) saturate(140%);
|
|
33
|
+
border: 1px solid var(--card-border);
|
|
34
|
+
box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset,
|
|
35
|
+
0 12px 40px -12px rgba(120,90,200,0.18),
|
|
36
|
+
0 4px 16px -8px rgba(160,120,220,0.12);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* ===== UTILITY ===== */
|
|
40
|
+
.pill {
|
|
41
|
+
display: inline-flex; align-items: center; gap: 5px;
|
|
42
|
+
font-size: 11px; padding: 5px 11px; border-radius: 999px;
|
|
43
|
+
background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.9);
|
|
44
|
+
color: #4a4565; font-weight: 500;
|
|
45
|
+
}
|
|
46
|
+
.kbd {
|
|
47
|
+
display: inline-block; padding: 1px 7px; border-radius: 6px;
|
|
48
|
+
background: rgba(155,123,247,0.15); color: var(--primary);
|
|
49
|
+
font-weight: 600; font-size: 12px;
|
|
50
|
+
}
|
|
51
|
+
.status-dot {
|
|
52
|
+
display: inline-block; width: 7px; height: 7px; border-radius: 999px;
|
|
53
|
+
background: #34c77b; box-shadow: 0 0 0 3px rgba(52,199,123,0.18);
|
|
54
|
+
animation: pulse-dot 1.6s ease-in-out infinite;
|
|
55
|
+
}
|
|
56
|
+
@keyframes pulse-dot {
|
|
57
|
+
0%, 100% { opacity: 1; }
|
|
58
|
+
50% { opacity: 0.5; }
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ===== KB TABS ===== */
|
|
62
|
+
.kb-tabs {
|
|
63
|
+
display: flex; gap: 4px; padding: 4px;
|
|
64
|
+
background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.85);
|
|
65
|
+
border-radius: 12px;
|
|
66
|
+
}
|
|
67
|
+
.kb-tab {
|
|
68
|
+
flex: 1; padding: 8px 0; font-size: 13px; font-weight: 600;
|
|
69
|
+
color: var(--muted); border-radius: 9px; transition: all .2s ease;
|
|
70
|
+
border: none; cursor: pointer; background: transparent;
|
|
71
|
+
}
|
|
72
|
+
.kb-tab:hover { color: #1a1530; }
|
|
73
|
+
.kb-tab.active {
|
|
74
|
+
background: white; color: #1a1530;
|
|
75
|
+
box-shadow: 0 4px 12px -4px rgba(155,123,247,0.25);
|
|
76
|
+
}
|
|
77
|
+
.kb-search {
|
|
78
|
+
display: flex; align-items: center; gap: 8px; padding: 0 12px;
|
|
79
|
+
background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.9);
|
|
80
|
+
border-radius: 10px;
|
|
81
|
+
}
|
|
82
|
+
.kb-search input {
|
|
83
|
+
flex: 1; background: transparent; outline: none; padding: 9px 0;
|
|
84
|
+
font-size: 13px; color: #1a1530; border: none;
|
|
85
|
+
}
|
|
86
|
+
.kb-search input::placeholder { color: var(--muted); }
|
|
87
|
+
.kb-list { scrollbar-width: none; -ms-overflow-style: none; }
|
|
88
|
+
.kb-list::-webkit-scrollbar { display: none; }
|
|
89
|
+
|
|
90
|
+
/* product card */
|
|
91
|
+
.product-card {
|
|
92
|
+
display: flex; align-items: center; gap: 11px; padding: 10px;
|
|
93
|
+
border-radius: 14px; background: rgba(255,255,255,0.6);
|
|
94
|
+
border: 1px solid rgba(255,255,255,0.8);
|
|
95
|
+
transition: all .25s ease; cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
.product-card:hover {
|
|
98
|
+
transform: translateY(-2px); background: rgba(255,255,255,0.9);
|
|
99
|
+
box-shadow: 0 8px 24px -10px rgba(155,123,247,0.3);
|
|
100
|
+
}
|
|
101
|
+
.product-card.disabled {
|
|
102
|
+
opacity: 0.5; cursor: not-allowed; pointer-events: none;
|
|
103
|
+
}
|
|
104
|
+
.product-thumb-img {
|
|
105
|
+
width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
|
|
106
|
+
object-fit: cover; background: linear-gradient(135deg,#f0e6ff,#ffe2ee);
|
|
107
|
+
box-shadow: 0 6px 16px -6px rgba(0,0,0,0.18);
|
|
108
|
+
}
|
|
109
|
+
.product-card .name { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #1a1530; }
|
|
110
|
+
.product-card .meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
|
|
111
|
+
.product-card .price { font-size: 12.5px; color: var(--primary); font-weight: 700; }
|
|
112
|
+
.tag { font-size: 9.5px; padding: 2px 7px; border-radius: 999px; font-weight: 600; letter-spacing: .02em; }
|
|
113
|
+
.tag-instock { background: rgba(52,199,123,0.15); color: #1f8e57; }
|
|
114
|
+
.tag-low { background: rgba(255,157,77,0.18); color: #c46500; }
|
|
115
|
+
.tag-hot { background: rgba(247,183,212,0.4); color: #c54a82; }
|
|
116
|
+
|
|
117
|
+
/* order card */
|
|
118
|
+
.order-card {
|
|
119
|
+
padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.6);
|
|
120
|
+
border: 1px solid rgba(255,255,255,0.8);
|
|
121
|
+
transition: all .2s ease; cursor: pointer;
|
|
122
|
+
}
|
|
123
|
+
.order-card:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
|
|
124
|
+
.order-card.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
|
|
125
|
+
.order-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
|
|
126
|
+
.order-card .oid { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: #1a1530; }
|
|
127
|
+
.order-card .odate { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
|
|
128
|
+
.order-card .body { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
|
|
129
|
+
.order-card .body img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
|
|
130
|
+
.order-card .pname { font-size: 11.5px; line-height: 1.35; color: #1a1530; font-weight: 500; }
|
|
131
|
+
.order-card .pprice { font-size: 11px; color: var(--muted); margin-top: 2px; }
|
|
132
|
+
.badge { font-size: 10px; padding: 3px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
|
|
133
|
+
.b-delivered { background: rgba(52,199,123,0.15); color: #1f8e57; }
|
|
134
|
+
.b-shipped { background: rgba(123,168,247,0.2); color: #3b6bcf; }
|
|
135
|
+
.b-processing { background: rgba(255,157,77,0.2); color: #c46500; }
|
|
136
|
+
|
|
137
|
+
/* ===== ORB (BIG) ===== */
|
|
138
|
+
.orb-wrap {
|
|
139
|
+
position: relative; width: 160px; height: 160px;
|
|
140
|
+
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
|
141
|
+
overflow: visible; margin-top: 12px;
|
|
142
|
+
}
|
|
143
|
+
@media (min-height: 760px) { .orb-wrap { width: 200px; height: 200px; } }
|
|
144
|
+
|
|
145
|
+
.orb {
|
|
146
|
+
width: 100%; height: 100%; border-radius: 50%;
|
|
147
|
+
background:
|
|
148
|
+
radial-gradient(circle at 32% 28%, #ffffff 0%, rgba(255,255,255,0.8) 12%, transparent 35%),
|
|
149
|
+
radial-gradient(circle at 65% 75%, rgba(247,183,212,0.9) 0%, transparent 50%),
|
|
150
|
+
radial-gradient(circle at 30% 70%, rgba(123,168,247,0.8) 0%, transparent 55%),
|
|
151
|
+
linear-gradient(135deg, #b89cff 0%, #f7b7d4 50%, #9bc0ff 100%);
|
|
152
|
+
box-shadow:
|
|
153
|
+
inset -12px -16px 32px rgba(120,80,200,0.28),
|
|
154
|
+
inset 10px 12px 24px rgba(255,255,255,0.6),
|
|
155
|
+
0 24px 60px -10px rgba(155,123,247,0.6),
|
|
156
|
+
0 8px 24px rgba(247,183,212,0.4);
|
|
157
|
+
position: relative;
|
|
158
|
+
animation: breathe 3.4s ease-in-out infinite;
|
|
159
|
+
}
|
|
160
|
+
.orb-shine {
|
|
161
|
+
position: absolute; top: 14%; left: 22%; width: 34%; height: 24%;
|
|
162
|
+
border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,0.95) 0%, transparent 70%);
|
|
163
|
+
filter: blur(2px);
|
|
164
|
+
}
|
|
165
|
+
.orb-core {
|
|
166
|
+
position: absolute; inset: 36%; border-radius: 50%;
|
|
167
|
+
background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, transparent 70%);
|
|
168
|
+
animation: core-pulse 2s ease-in-out infinite;
|
|
169
|
+
}
|
|
170
|
+
.orb-halo {
|
|
171
|
+
position: absolute; inset: -8px; border-radius: 50%;
|
|
172
|
+
background: radial-gradient(circle, rgba(155,123,247,0.25) 0%, transparent 60%);
|
|
173
|
+
animation: halo 3.4s ease-out infinite;
|
|
174
|
+
}
|
|
175
|
+
.orb-halo-2 { animation-delay: 1.1s; }
|
|
176
|
+
.orb-halo-3 { animation-delay: 2.2s; }
|
|
177
|
+
|
|
178
|
+
@keyframes breathe {
|
|
179
|
+
0%, 100% { transform: scale(1); }
|
|
180
|
+
50% { transform: scale(1.05); }
|
|
181
|
+
}
|
|
182
|
+
@keyframes core-pulse {
|
|
183
|
+
0%, 100% { opacity: 0.45; transform: scale(0.9); }
|
|
184
|
+
50% { opacity: 1; transform: scale(1.12); }
|
|
185
|
+
}
|
|
186
|
+
@keyframes halo {
|
|
187
|
+
0% { transform: scale(0.85); opacity: 0.65; }
|
|
188
|
+
100% { transform: scale(1.7); opacity: 0; }
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.orb-wrap.idle .orb { animation: breathe 4.5s ease-in-out infinite; }
|
|
192
|
+
.orb-wrap.listening .orb { animation: breathe 1.2s ease-in-out infinite; }
|
|
193
|
+
.orb-wrap.speaking .orb { animation: breathe 0.7s ease-in-out infinite; }
|
|
194
|
+
|
|
195
|
+
/* ===== BIG WAVE ===== */
|
|
196
|
+
.wave-big {
|
|
197
|
+
display: flex; align-items: center; justify-content: center;
|
|
198
|
+
gap: 5px; height: 80px; width: min(520px, 90%);
|
|
199
|
+
}
|
|
200
|
+
.wave-big span {
|
|
201
|
+
display: block; width: 5px; height: 10px; border-radius: 5px;
|
|
202
|
+
background: linear-gradient(180deg, #9b7bf7, #f7b7d4);
|
|
203
|
+
animation: wv 1.1s ease-in-out infinite;
|
|
204
|
+
}
|
|
205
|
+
.wave-big span:nth-child(8n+1) { animation-delay: 0s; }
|
|
206
|
+
.wave-big span:nth-child(8n+2) { animation-delay: .07s; }
|
|
207
|
+
.wave-big span:nth-child(8n+3) { animation-delay: .14s; }
|
|
208
|
+
.wave-big span:nth-child(8n+4) { animation-delay: .21s; }
|
|
209
|
+
.wave-big span:nth-child(8n+5) { animation-delay: .28s; }
|
|
210
|
+
.wave-big span:nth-child(8n+6) { animation-delay: .21s; }
|
|
211
|
+
.wave-big span:nth-child(8n+7) { animation-delay: .14s; }
|
|
212
|
+
.wave-big span:nth-child(8n+8) { animation-delay: .07s; }
|
|
213
|
+
|
|
214
|
+
@keyframes wv {
|
|
215
|
+
0%, 100% { height: 10px; opacity: .55; }
|
|
216
|
+
50% { height: 64px; opacity: 1; }
|
|
217
|
+
}
|
|
218
|
+
.wave-big.idle span { animation-play-state: paused; height: 10px; opacity: .4; }
|
|
219
|
+
.wave-big.listening span { animation-duration: .7s; }
|
|
220
|
+
.wave-big.speaking span { animation-duration: .5s; }
|
|
221
|
+
|
|
222
|
+
/* ===== CTL PILLS ===== */
|
|
223
|
+
.ctl-pill {
|
|
224
|
+
display: inline-flex; align-items: center; gap: 8px;
|
|
225
|
+
padding: 11px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
|
|
226
|
+
background: var(--accent-grad); color: white;
|
|
227
|
+
box-shadow: 0 10px 26px -10px rgba(155,123,247,0.6);
|
|
228
|
+
transition: all .2s ease; cursor: pointer; border: none;
|
|
229
|
+
}
|
|
230
|
+
.ctl-pill:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(155,123,247,0.7); }
|
|
231
|
+
.ctl-pill.ctl-ghost {
|
|
232
|
+
background: rgba(255,255,255,0.75); color: #1a1530;
|
|
233
|
+
border: 1px solid rgba(255,255,255,0.95);
|
|
234
|
+
box-shadow: 0 4px 14px -6px rgba(120,90,200,0.2);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* ===== CHAT (drawer) ===== */
|
|
238
|
+
.chat { overflow-y: auto; max-height: 280px; scroll-behavior: smooth; }
|
|
239
|
+
.chat::-webkit-scrollbar { width: 6px; }
|
|
240
|
+
.chat::-webkit-scrollbar-thumb { background: rgba(155,123,247,0.25); border-radius: 6px; }
|
|
241
|
+
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
|
|
242
|
+
.bubble-row.user { justify-content: flex-end; }
|
|
243
|
+
.bubble-avatar {
|
|
244
|
+
width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
|
|
245
|
+
display: flex; align-items: center; justify-content: center;
|
|
246
|
+
color: white; font-size: 10px; font-weight: 700;
|
|
247
|
+
}
|
|
248
|
+
.bubble-avatar.ai { background: var(--accent-grad); }
|
|
249
|
+
.bubble-avatar.user { background: linear-gradient(135deg, #7ba8f7, #9b7bf7); }
|
|
250
|
+
.bubble {
|
|
251
|
+
max-width: 78%; padding: 9px 13px; border-radius: 16px;
|
|
252
|
+
font-size: 12.5px; line-height: 1.5;
|
|
253
|
+
border: 1px solid rgba(255,255,255,0.85);
|
|
254
|
+
animation: bubble-in .35s ease-out;
|
|
255
|
+
}
|
|
256
|
+
.bubble.ai { background: rgba(255,255,255,0.85); color: #1a1530; border-top-left-radius: 5px; border-color: rgba(155,123,247,0.25); }
|
|
257
|
+
.bubble.user { background: linear-gradient(135deg, #9b7bf7, #b89cff); color: white; border-top-right-radius: 5px; }
|
|
258
|
+
.bubble.system {
|
|
259
|
+
background: rgba(255,255,255,0.6); color: var(--muted); font-size: 11px;
|
|
260
|
+
font-style: italic; text-align: center; margin: 0 auto;
|
|
261
|
+
border-radius: 999px; padding: 5px 12px;
|
|
262
|
+
}
|
|
263
|
+
@keyframes bubble-in {
|
|
264
|
+
from { opacity: 0; transform: translateY(6px); }
|
|
265
|
+
to { opacity: 1; transform: translateY(0); }
|
|
266
|
+
}
|
|
267
|
+
.typing {
|
|
268
|
+
display: inline-flex; gap: 4px; padding: 3px 0;
|
|
269
|
+
}
|
|
270
|
+
.typing span {
|
|
271
|
+
width: 5px; height: 5px; border-radius: 50%;
|
|
272
|
+
background: var(--primary); opacity: 0.4;
|
|
273
|
+
animation: tdot 1.2s ease-in-out infinite;
|
|
274
|
+
}
|
|
275
|
+
.typing span:nth-child(2) { animation-delay: .2s; }
|
|
276
|
+
.typing span:nth-child(3) { animation-delay: .4s; }
|
|
277
|
+
@keyframes tdot {
|
|
278
|
+
0%, 100% { opacity: .3; transform: translateY(0); }
|
|
279
|
+
50% { opacity: 1; transform: translateY(-3px); }
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* ===== DOCK ===== */
|
|
283
|
+
.dock-area { display: flex; align-items: center; justify-content: center; min-height: 62px; position: relative; margin-top: 14px; }
|
|
284
|
+
|
|
285
|
+
.dock-start-fab {
|
|
286
|
+
width: 58px; height: 58px; border-radius: 50%;
|
|
287
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
288
|
+
background: linear-gradient(135deg, #34c77b, #5edca0); color: white;
|
|
289
|
+
border: 1px solid rgba(255,255,255,0.55);
|
|
290
|
+
box-shadow:
|
|
291
|
+
0 1px 0 rgba(255,255,255,0.6) inset,
|
|
292
|
+
0 14px 32px -8px rgba(52,199,123,0.55),
|
|
293
|
+
0 6px 18px -6px rgba(52,199,123,0.4);
|
|
294
|
+
backdrop-filter: blur(14px) saturate(140%);
|
|
295
|
+
-webkit-backdrop-filter: blur(14px) saturate(140%);
|
|
296
|
+
transition: transform .25s ease, opacity .25s ease, width .35s cubic-bezier(.4,0,.2,1), box-shadow .25s ease;
|
|
297
|
+
transform-origin: center;
|
|
298
|
+
cursor: pointer;
|
|
299
|
+
}
|
|
300
|
+
.dock-start-fab:hover { transform: scale(1.06); box-shadow: 0 18px 38px -8px rgba(52,199,123,0.65); }
|
|
301
|
+
.dock-start-fab:active { transform: scale(0.95); }
|
|
302
|
+
|
|
303
|
+
.dock-expanded {
|
|
304
|
+
display: flex; align-items: center; justify-content: center; gap: 10px;
|
|
305
|
+
padding: 8px; border-radius: 999px;
|
|
306
|
+
background: rgba(255,255,255,0.55);
|
|
307
|
+
backdrop-filter: blur(18px) saturate(150%);
|
|
308
|
+
-webkit-backdrop-filter: blur(18px) saturate(150%);
|
|
309
|
+
border: 1px solid rgba(255,255,255,0.85);
|
|
310
|
+
box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset, 0 14px 36px -12px rgba(120,90,200,0.3);
|
|
311
|
+
position: absolute; left: 50%;
|
|
312
|
+
transform: translateX(-50%) scale(.6);
|
|
313
|
+
transform-origin: center;
|
|
314
|
+
opacity: 0; pointer-events: none;
|
|
315
|
+
width: 0; overflow: hidden;
|
|
316
|
+
transition: opacity .25s ease, transform .35s cubic-bezier(.4,0,.2,1), width .4s cubic-bezier(.4,0,.2,1);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.dock-area[data-state="expanded"] .dock-start-fab {
|
|
320
|
+
opacity: 0; transform: scale(.4); pointer-events: none; width: 0; height: 0;
|
|
321
|
+
margin: 0; padding: 0; border: 0; box-shadow: none;
|
|
322
|
+
}
|
|
323
|
+
.dock-area[data-state="expanded"] .dock-expanded {
|
|
324
|
+
opacity: 1; pointer-events: auto;
|
|
325
|
+
transform: translateX(-50%) scale(1);
|
|
326
|
+
width: auto;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.dock-btn {
|
|
330
|
+
display: inline-flex; align-items: center; gap: 8px;
|
|
331
|
+
padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
|
|
332
|
+
border: 1px solid rgba(255,255,255,0.9);
|
|
333
|
+
background: rgba(255,255,255,0.75); color: #1a1530;
|
|
334
|
+
transition: all .2s ease; white-space: nowrap; cursor: pointer;
|
|
335
|
+
}
|
|
336
|
+
.dock-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(0,0,0,0.15); }
|
|
337
|
+
.dock-mic { width: 46px; height: 46px; padding: 0; justify-content: center; background: rgba(255,255,255,0.85); }
|
|
338
|
+
.dock-mic.muted { background: linear-gradient(135deg, #ff5c7a, #ff8aa3); color: white; border-color: rgba(255,92,122,0.4); }
|
|
339
|
+
.dock-agent {
|
|
340
|
+
background: linear-gradient(135deg, #7ba8f7, #9bc0ff); color: white;
|
|
341
|
+
border-color: rgba(123,168,247,0.4);
|
|
342
|
+
}
|
|
343
|
+
.dock-hang {
|
|
344
|
+
width: 46px; height: 46px; padding: 0; justify-content: center;
|
|
345
|
+
background: linear-gradient(135deg, #ff5c7a, #ff8aa3); color: white;
|
|
346
|
+
border-color: rgba(255,92,122,0.4);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* ===== IM DRAWER ===== */
|
|
350
|
+
.im-drawer {
|
|
351
|
+
position: absolute; right: 18px; bottom: 90px; width: 360px;
|
|
352
|
+
max-width: calc(100% - 36px);
|
|
353
|
+
background: rgba(255,255,255,0.82);
|
|
354
|
+
backdrop-filter: blur(22px) saturate(150%);
|
|
355
|
+
-webkit-backdrop-filter: blur(22px) saturate(150%);
|
|
356
|
+
border: 1px solid rgba(255,255,255,0.9);
|
|
357
|
+
border-radius: 18px;
|
|
358
|
+
box-shadow: 0 24px 60px -16px rgba(120,90,200,0.35);
|
|
359
|
+
opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
|
|
360
|
+
transition: all .25s ease; z-index: 30;
|
|
361
|
+
}
|
|
362
|
+
.im-drawer.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
|
|
363
|
+
.im-head {
|
|
364
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
365
|
+
padding: 11px 14px; border-bottom: 1px solid rgba(155,123,247,0.12);
|
|
366
|
+
}
|
|
367
|
+
.im-close-btn {
|
|
368
|
+
width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
|
|
369
|
+
border-radius: 8px; color: var(--muted); background: transparent; border: none; cursor: pointer;
|
|
370
|
+
}
|
|
371
|
+
.im-close-btn:hover { background: rgba(155,123,247,0.12); color: #1a1530; }
|
|
372
|
+
.im-input {
|
|
373
|
+
display: flex; align-items: center; gap: 6px; padding: 8px;
|
|
374
|
+
border-top: 1px solid rgba(155,123,247,0.12);
|
|
375
|
+
}
|
|
376
|
+
.send-btn {
|
|
377
|
+
width: 32px; height: 32px; border-radius: 50%; margin-right: 4px;
|
|
378
|
+
background: var(--accent-grad); color: white;
|
|
379
|
+
display: flex; align-items: center; justify-content: center;
|
|
380
|
+
box-shadow: 0 6px 16px -4px rgba(155,123,247,0.5);
|
|
381
|
+
transition: transform .15s ease; border: none; cursor: pointer;
|
|
382
|
+
}
|
|
383
|
+
.send-btn:hover { transform: scale(1.06); }
|
|
384
|
+
|
|
385
|
+
/* ===== COMPACT BAR ===== */
|
|
386
|
+
.compact-bar {
|
|
387
|
+
display: none; align-items: center; justify-content: space-between; gap: 12px;
|
|
388
|
+
margin: -2px 0 18px; animation: fade-in-down .35s ease;
|
|
389
|
+
}
|
|
390
|
+
#right-console[data-view="detail"] .compact-bar { display: flex; }
|
|
391
|
+
#right-console[data-view="detail"] .default-view { display: none; }
|
|
392
|
+
#right-console[data-view="detail"] #dock { display: none; }
|
|
393
|
+
.compact-back {
|
|
394
|
+
width: 40px; height: 40px; border-radius: 50%;
|
|
395
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
396
|
+
background: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.95);
|
|
397
|
+
color: #1a1530; box-shadow: 0 4px 12px -4px rgba(120,90,200,0.2);
|
|
398
|
+
transition: all .2s; cursor: pointer;
|
|
399
|
+
}
|
|
400
|
+
.compact-back:hover { transform: scale(1.06); background: #fff; }
|
|
401
|
+
.compact-bar { justify-content: center; }
|
|
402
|
+
.compact-pill {
|
|
403
|
+
display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
|
|
404
|
+
border-radius: 999px; background: rgba(255,255,255,0.7);
|
|
405
|
+
border: 1px solid rgba(255,255,255,0.95);
|
|
406
|
+
box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset, 0 8px 24px -10px rgba(155,123,247,0.3);
|
|
407
|
+
max-width: 240px; overflow: hidden;
|
|
408
|
+
}
|
|
409
|
+
.compact-orb {
|
|
410
|
+
position: relative; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
|
|
411
|
+
background:
|
|
412
|
+
radial-gradient(circle at 32% 28%, #fff 0%, rgba(255,255,255,0.7) 14%, transparent 38%),
|
|
413
|
+
radial-gradient(circle at 65% 75%, rgba(247,183,212,0.9) 0%, transparent 55%),
|
|
414
|
+
linear-gradient(135deg, #b89cff, #f7b7d4 55%, #9bc0ff);
|
|
415
|
+
box-shadow: inset -3px -4px 8px rgba(120,80,200,0.3), 0 4px 12px -3px rgba(155,123,247,0.5);
|
|
416
|
+
animation: breathe 2.6s ease-in-out infinite;
|
|
417
|
+
}
|
|
418
|
+
.co-shine {
|
|
419
|
+
position: absolute; top: 18%; left: 24%; width: 32%; height: 24%;
|
|
420
|
+
border-radius: 50%; background: radial-gradient(ellipse, #fff 0%, transparent 70%);
|
|
421
|
+
}
|
|
422
|
+
.compact-wave { display: flex; align-items: center; gap: 2px; height: 24px; overflow: hidden; }
|
|
423
|
+
.compact-wave span {
|
|
424
|
+
display: block; width: 2.5px; height: 5px; border-radius: 2px;
|
|
425
|
+
background: linear-gradient(180deg, #9b7bf7, #f7b7d4);
|
|
426
|
+
animation: cwv 1s ease-in-out infinite;
|
|
427
|
+
}
|
|
428
|
+
@keyframes cwv {
|
|
429
|
+
0%, 100% { height: 5px; opacity: .5; }
|
|
430
|
+
50% { height: 18px; opacity: 1; }
|
|
431
|
+
}
|
|
432
|
+
.compact-wave span:nth-child(2n) { animation-delay: .1s; }
|
|
433
|
+
.compact-wave span:nth-child(3n) { animation-delay: .2s; }
|
|
434
|
+
.compact-wave span:nth-child(4n) { animation-delay: .3s; }
|
|
435
|
+
.compact-wave span:nth-child(5n) { animation-delay: .15s; }
|
|
436
|
+
@keyframes fade-in-down {
|
|
437
|
+
from { opacity: 0; transform: translateY(-8px); }
|
|
438
|
+
to { opacity: 1; transform: translateY(0); }
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/* ===== DETAIL VIEW ===== */
|
|
442
|
+
.detail-view {
|
|
443
|
+
display: none; flex-direction: column; align-items: center; gap: 22px;
|
|
444
|
+
padding: 8px 0 12px; flex: 1; animation: detail-in .4s ease;
|
|
445
|
+
}
|
|
446
|
+
#right-console[data-view="detail"] .detail-view { display: flex; }
|
|
447
|
+
@keyframes detail-in {
|
|
448
|
+
from { opacity: 0; transform: translateY(10px); }
|
|
449
|
+
to { opacity: 1; transform: translateY(0); }
|
|
450
|
+
}
|
|
451
|
+
.detail-question {
|
|
452
|
+
font-size: 22px; font-weight: 600; text-align: center; line-height: 1.4;
|
|
453
|
+
color: #1a1530; max-width: 480px; letter-spacing: -.01em;
|
|
454
|
+
}
|
|
455
|
+
.detail-card-wrap { width: 100%; max-width: 520px; }
|
|
456
|
+
|
|
457
|
+
/* product detail card */
|
|
458
|
+
.dc-product {
|
|
459
|
+
background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.95);
|
|
460
|
+
border-radius: 22px; padding: 18px; display: flex; gap: 18px;
|
|
461
|
+
box-shadow: 0 14px 40px -16px rgba(155,123,247,0.35), 0 1px 0 rgba(255,255,255,0.9) inset;
|
|
462
|
+
}
|
|
463
|
+
.dc-product .pic {
|
|
464
|
+
width: 140px; height: 140px; border-radius: 18px;
|
|
465
|
+
background: linear-gradient(135deg, #f0e6ff, #ffe2ee); object-fit: cover;
|
|
466
|
+
flex-shrink: 0; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.18);
|
|
467
|
+
}
|
|
468
|
+
.dc-product .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
|
|
469
|
+
.dc-product .pname { font-size: 16px; font-weight: 700; color: #1a1530; line-height: 1.3; }
|
|
470
|
+
.dc-product .rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
|
|
471
|
+
.dc-product .rating .stars { color: #f5a623; letter-spacing: 1px; }
|
|
472
|
+
.dc-product .desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
|
|
473
|
+
.dc-product .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
|
|
474
|
+
.dc-product .price { font-size: 22px; font-weight: 800; color: var(--primary); }
|
|
475
|
+
.dc-product .price .cur { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
|
|
476
|
+
.dc-product .add {
|
|
477
|
+
width: 34px; height: 34px; border-radius: 50%; background: #1a1530; color: white;
|
|
478
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
479
|
+
transition: transform .15s; cursor: pointer; border: none;
|
|
480
|
+
}
|
|
481
|
+
.dc-product .add:hover { transform: scale(1.08); }
|
|
482
|
+
|
|
483
|
+
/* order detail card */
|
|
484
|
+
.dc-order {
|
|
485
|
+
background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.95);
|
|
486
|
+
border-radius: 22px; padding: 18px;
|
|
487
|
+
box-shadow: 0 14px 40px -16px rgba(155,123,247,0.35), 0 1px 0 rgba(255,255,255,0.9) inset;
|
|
488
|
+
}
|
|
489
|
+
.dc-order .ohead {
|
|
490
|
+
display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
|
|
491
|
+
margin-bottom: 14px; padding-bottom: 12px;
|
|
492
|
+
border-bottom: 1px dashed rgba(155,123,247,0.2);
|
|
493
|
+
}
|
|
494
|
+
.dc-order .oid { font-size: 15px; font-weight: 700; color: #1a1530; font-variant-numeric: tabular-nums; }
|
|
495
|
+
.dc-order .odate { font-size: 12px; color: var(--muted); margin-top: 2px; }
|
|
496
|
+
.dc-order .obody { display: flex; gap: 12px; align-items: center; }
|
|
497
|
+
.dc-order .obody img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
|
|
498
|
+
.dc-order .obody .pn { font-size: 13.5px; font-weight: 600; color: #1a1530; }
|
|
499
|
+
.dc-order .obody .pq { font-size: 12px; color: var(--muted); margin-top: 2px; }
|
|
500
|
+
.dc-order .ototal {
|
|
501
|
+
display: flex; justify-content: space-between; align-items: center;
|
|
502
|
+
margin-top: 12px; padding-top: 12px;
|
|
503
|
+
border-top: 1px dashed rgba(155,123,247,0.2);
|
|
504
|
+
}
|
|
505
|
+
.dc-order .ototal .lbl { font-size: 12px; color: var(--muted); }
|
|
506
|
+
.dc-order .ototal .val { font-size: 18px; font-weight: 800; color: var(--primary); }
|
|
507
|
+
|
|
508
|
+
/* ===== TOAST ===== */
|
|
509
|
+
.kb-toast {
|
|
510
|
+
position: absolute; top: 14px; left: 50%;
|
|
511
|
+
transform: translateX(-50%) translateY(-8px);
|
|
512
|
+
background: rgba(91,71,179,.95); color: #fff;
|
|
513
|
+
font-size: 12px; font-weight: 500; padding: 8px 14px;
|
|
514
|
+
border-radius: 10px; box-shadow: 0 8px 24px rgba(91,71,179,.35);
|
|
515
|
+
opacity: 0; pointer-events: none; transition: all .25s ease;
|
|
516
|
+
z-index: 50; white-space: nowrap;
|
|
517
|
+
display: flex; align-items: center; gap: 6px;
|
|
518
|
+
}
|
|
519
|
+
.kb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
520
|
+
.kb-toast::before { content: "!"; font-size: 13px; font-weight: 700; }
|
|
521
|
+
|
|
522
|
+
/* ===== QUEUE PROGRESS ===== */
|
|
523
|
+
#queue-progress-wrap {
|
|
524
|
+
display: none;
|
|
525
|
+
width: min(100%, 380px);
|
|
526
|
+
margin: 0 auto;
|
|
527
|
+
padding: 0 12px;
|
|
528
|
+
}
|
|
529
|
+
#queue-progress-wrap.show-progress { display: block; }
|
|
530
|
+
#queue-progress-wrap .w-full.h-1\.5 { background: rgba(255,255,255,0.4); border-radius: 999px; overflow: hidden; }
|
|
531
|
+
|
|
532
|
+
/* ===== RESPONSIVE ===== */
|
|
533
|
+
@media (max-width: 1024px) {
|
|
534
|
+
aside { height: auto !important; max-height: 50vh !important; }
|
|
535
|
+
.im-drawer { right: 12px; bottom: 80px; }
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/* ===== RATING CARD (post-call CSAT) ===== */
|
|
539
|
+
.rating-overlay {
|
|
540
|
+
position: fixed; inset: 0; z-index: 100;
|
|
541
|
+
background: rgba(26,21,48,0.35);
|
|
542
|
+
backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
|
|
543
|
+
display: flex; align-items: center; justify-content: center;
|
|
544
|
+
animation: fade-in-down .25s ease;
|
|
545
|
+
}
|
|
546
|
+
.rating-card {
|
|
547
|
+
width: 380px; max-width: calc(100% - 32px);
|
|
548
|
+
border-radius: 24px; padding: 28px 24px;
|
|
549
|
+
display: flex; flex-direction: column; align-items: center; gap: 14px;
|
|
550
|
+
animation: bubble-in .35s ease-out;
|
|
551
|
+
}
|
|
552
|
+
.rating-icon {
|
|
553
|
+
width: 48px; height: 48px; border-radius: 50%;
|
|
554
|
+
display: flex; align-items: center; justify-content: center;
|
|
555
|
+
background: var(--accent-grad); color: white;
|
|
556
|
+
box-shadow: 0 10px 24px -8px rgba(155,123,247,0.55);
|
|
557
|
+
}
|
|
558
|
+
.rating-title { font-size: 18px; font-weight: 700; color: #1a1530; text-align: center; }
|
|
559
|
+
.rating-sub { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: -8px; }
|
|
560
|
+
.rating-stars { display: flex; gap: 6px; }
|
|
561
|
+
.star-btn {
|
|
562
|
+
width: 44px; height: 44px; border-radius: 12px;
|
|
563
|
+
display: flex; align-items: center; justify-content: center;
|
|
564
|
+
background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.9);
|
|
565
|
+
color: #c9c2d8; cursor: pointer; transition: all .15s ease;
|
|
566
|
+
}
|
|
567
|
+
.star-btn:hover { transform: translateY(-2px); }
|
|
568
|
+
.star-btn.lit {
|
|
569
|
+
color: #f5a623; background: rgba(245,166,35,0.12);
|
|
570
|
+
border-color: rgba(245,166,35,0.4);
|
|
571
|
+
}
|
|
572
|
+
.rating-comment {
|
|
573
|
+
width: 100%; border-radius: 14px; padding: 12px 14px;
|
|
574
|
+
background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.9);
|
|
575
|
+
font-size: 13px; color: #1a1530; outline: none; resize: none;
|
|
576
|
+
font-family: inherit;
|
|
577
|
+
}
|
|
578
|
+
.rating-comment:focus { border-color: rgba(155,123,247,0.5); }
|
|
579
|
+
.rating-actions { display: flex; gap: 10px; width: 100%; justify-content: center; margin-top: 4px; }
|
|
580
|
+
#rating-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
|
|
581
|
+
|
|
582
|
+
/* ===== HUMAN AGENT MODE (handoff connected) ===== */
|
|
583
|
+
#right-console.handoff-mode .orb {
|
|
584
|
+
background:
|
|
585
|
+
radial-gradient(circle at 32% 28%, #ffffff 0%, rgba(255,255,255,0.8) 12%, transparent 35%),
|
|
586
|
+
radial-gradient(circle at 65% 75%, rgba(123,168,247,0.9) 0%, transparent 50%),
|
|
587
|
+
linear-gradient(135deg, #7ba8f7 0%, #9bc0ff 50%, #b8d0ff 100%);
|
|
588
|
+
box-shadow:
|
|
589
|
+
inset -12px -16px 32px rgba(40,90,200,0.28),
|
|
590
|
+
inset 10px 12px 24px rgba(255,255,255,0.6),
|
|
591
|
+
0 24px 60px -10px rgba(123,168,247,0.6),
|
|
592
|
+
0 8px 24px rgba(155,200,255,0.4);
|
|
593
|
+
}
|
|
594
|
+
/* Issue 4: once a human agent is connected, the dock keeps ONLY the hang-up button
|
|
595
|
+
(mic + human-support are hidden), restyled as an "End call" pill. */
|
|
596
|
+
#right-console.handoff-mode .dock-mic,
|
|
597
|
+
#right-console.handoff-mode .dock-agent { display: none !important; }
|
|
598
|
+
.dock-btn.hang-agent {
|
|
599
|
+
width: auto; padding: 10px 20px; gap: 8px;
|
|
600
|
+
background: linear-gradient(135deg, #ff5c7a, #ff8aa3); color: #fff;
|
|
601
|
+
border-color: rgba(255,92,122,0.4);
|
|
602
|
+
}
|
|
603
|
+
.dock-btn.hang-agent span { font-size: 13px; font-weight: 600; white-space: nowrap; }
|
package/skills/trtc-ai-service/scenarios/customer-service/ui/voice-customer-service/tokens.css
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Design tokens — light purple-pink glassmorphism (unified theme).
|
|
3
|
+
*
|
|
4
|
+
* This is the single source of truth for the --color-* / --font-* / --radius-*
|
|
5
|
+
* design variables shared by the customer widget and the admin ticket board.
|
|
6
|
+
* The palette is LIGHT glassmorphism: soft purple + light pink + pale blue radial
|
|
7
|
+
* ambient over a #f7f3ff base, translucent white glass surfaces, purple accent.
|
|
8
|
+
* (See DESIGN_GUIDELINES.md §1 / §2 / §12.)
|
|
9
|
+
*
|
|
10
|
+
* NOTE: in the skill source this file is auto-generated from design_tokens.json
|
|
11
|
+
* (`python3 -m scripts.lib.tokens_compile`). In this demo deployment it is
|
|
12
|
+
* hand-aligned to the running light theme so the design variables match reality.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
:root {
|
|
16
|
+
/* Background / surfaces */
|
|
17
|
+
--color-bg-gradient-start: #f0e6ff;
|
|
18
|
+
--color-bg-gradient-end: #ffe2ee;
|
|
19
|
+
--color-bg-gradient:
|
|
20
|
+
radial-gradient(900px 700px at 12% 10%, #f0e6ff 0%, transparent 60%),
|
|
21
|
+
radial-gradient(900px 800px at 92% 18%, #ffe2ee 0%, transparent 60%),
|
|
22
|
+
radial-gradient(1200px 900px at 50% 100%, #dfeaff 0%, transparent 65%),
|
|
23
|
+
#f7f3ff;
|
|
24
|
+
--color-bg-surface: rgba(255,255,255,0.55);
|
|
25
|
+
--color-bg-surface-strong: rgba(255,255,255,0.82);
|
|
26
|
+
--color-bg-border: rgba(155,123,247,0.18);
|
|
27
|
+
|
|
28
|
+
/* Brand / accent */
|
|
29
|
+
--color-brand-accent: #9b7bf7;
|
|
30
|
+
|
|
31
|
+
/* Text */
|
|
32
|
+
--color-text-primary: #1a1530;
|
|
33
|
+
--color-text-secondary: #6b6580;
|
|
34
|
+
--color-text-tertiary: rgba(26,21,48,0.45);
|
|
35
|
+
--color-text-disabled: rgba(26,21,48,0.25);
|
|
36
|
+
--color-text-placeholder: rgba(26,21,48,0.45);
|
|
37
|
+
|
|
38
|
+
/* Status (success / info / warning / error) — darkened for readability on light */
|
|
39
|
+
--color-status-success: #1f8e57;
|
|
40
|
+
--color-status-info: #3b6bcf;
|
|
41
|
+
--color-status-warning: #c46500;
|
|
42
|
+
--color-status-error: #d6476b;
|
|
43
|
+
|
|
44
|
+
/* Input */
|
|
45
|
+
--color-input-bg: rgba(255,255,255,0.6);
|
|
46
|
+
--color-input-icon-send: rgba(26,21,48,0.5);
|
|
47
|
+
|
|
48
|
+
/* Typography */
|
|
49
|
+
--font-family-base: Inter, 'SF Pro Display', system-ui, sans-serif;
|
|
50
|
+
--font-size-title: 26px;
|
|
51
|
+
--font-weight-title: 400;
|
|
52
|
+
--line-height-title: 1.3;
|
|
53
|
+
--font-size-brand: 14px;
|
|
54
|
+
--font-weight-brand: 500;
|
|
55
|
+
--font-size-placeholder: 15px;
|
|
56
|
+
--font-weight-placeholder: 400;
|
|
57
|
+
|
|
58
|
+
/* Spacing */
|
|
59
|
+
--space-card-padding: 28px;
|
|
60
|
+
--space-input-padding-x: 16px;
|
|
61
|
+
--space-input-padding-y: 12px;
|
|
62
|
+
--space-gap-brand-title: 8px;
|
|
63
|
+
|
|
64
|
+
/* Radius */
|
|
65
|
+
--radius-card: 18px;
|
|
66
|
+
--radius-input: 12px;
|
|
67
|
+
--radius-logo: 6px;
|
|
68
|
+
|
|
69
|
+
/* Effects */
|
|
70
|
+
--effect-input-blur: blur(20px);
|
|
71
|
+
}
|