@tencent-rtc/trtc-agent-skills 0.1.1 → 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 -97
- package/CLAUDE.md +15 -120
- 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 +26 -3
- 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 +155 -0
- package/knowledge-base/slices/conference/web/login-auth.md +16 -2
- package/knowledge-base/slices/conference/web/official-roomkit-login-ui.md +41 -13
- package/knowledge-base/slices/conference/web/prejoin-check.md +8 -5
- 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 -244
- 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/room-builder/assets/local-usersig/basic-info-config.ts +39 -0
- package/skills/trtc/room-builder/assets/local-usersig/lib-generate-test-usersig-es.min.d.ts +4 -0
- package/skills/trtc/room-builder/assets/local-usersig/lib-generate-test-usersig-es.min.js +2 -0
- package/skills/{trtc-topic → trtc}/runtime/README.md +2 -2
- package/skills/{trtc-onboarding/reference/reporting-protocol.md → trtc/runtime/REPORTING.md} +5 -3
- 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/runtime/usersig-handling.md +134 -0
- 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 -92
- package/ai-instructions/base.md +0 -13
- package/ai-instructions/ui-mode.md +0 -86
- package/knowledge-base/index.yaml +0 -454
- package/skills/trtc/room-builder/SKILL.md +0 -138
- 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 -839
- package/skills/trtc-onboarding/reference/path-a1-demo.md +0 -103
- package/skills/trtc-onboarding/reference/path-a2-integrate.md +0 -693
- package/skills/trtc-onboarding/reference/path-b-troubleshoot.md +0 -115
- package/skills/trtc-onboarding/reference/path-c-expand.md +0 -43
- package/skills/trtc-onboarding/reference/supported-matrix.md +0 -100
- package/skills/trtc-onboarding/reference/usersig-handling.md +0 -140
- package/skills/trtc-search/SKILL.md +0 -221
- package/skills/trtc-topic/SKILL.md +0 -638
- 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-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
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
/* =====================================================================
|
|
2
|
+
* Ticket Agent Board — Stylesheet
|
|
3
|
+
* Entry: scenarios/customer-service/ui/admin-board/index.html
|
|
4
|
+
* Calls: /api/v1/handoff/admin/tickets/*
|
|
5
|
+
* ===================================================================== */
|
|
6
|
+
|
|
7
|
+
/* The light purple-pink glassmorphism palette lives in tokens.css (single source of
|
|
8
|
+
truth, shared with the customer widget — issue 10 / design sync). This file only
|
|
9
|
+
adds component styles; no :root override is needed here. */
|
|
10
|
+
|
|
11
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
12
|
+
|
|
13
|
+
/* HTML hidden attribute must truly hide elements:
|
|
14
|
+
Class selectors like .drawer{display:flex} have higher specificity than UA [hidden]{display:none},
|
|
15
|
+
without this rule drawer.hidden=true gets overridden by display:flex → drawer won't close. */
|
|
16
|
+
[hidden] { display: none !important; }
|
|
17
|
+
|
|
18
|
+
html, body {
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
min-height: 100vh;
|
|
22
|
+
font-family: var(--font-family-base);
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
color: var(--color-text-primary);
|
|
25
|
+
background: var(--color-bg-gradient);
|
|
26
|
+
background-attachment: fixed;
|
|
27
|
+
-webkit-font-smoothing: antialiased;
|
|
28
|
+
text-rendering: optimizeLegibility;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
button, input, select { font-family: inherit; }
|
|
32
|
+
a { color: var(--color-brand-accent); text-decoration: none; }
|
|
33
|
+
a:hover { text-decoration: underline; }
|
|
34
|
+
|
|
35
|
+
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
|
|
36
|
+
|
|
37
|
+
/* ---------- 通用按钮 ---------- */
|
|
38
|
+
.btn {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: 6px;
|
|
42
|
+
padding: 8px 14px;
|
|
43
|
+
border: 1px solid var(--color-bg-border);
|
|
44
|
+
border-radius: var(--radius-input);
|
|
45
|
+
background: var(--color-bg-surface);
|
|
46
|
+
color: var(--color-text-primary);
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
transition: background 0.18s ease, border-color 0.18s ease;
|
|
49
|
+
font-size: 13px;
|
|
50
|
+
}
|
|
51
|
+
.btn:hover { background: var(--color-bg-surface-strong); }
|
|
52
|
+
.btn:focus-visible { outline: 2px solid var(--color-brand-accent); outline-offset: 2px; }
|
|
53
|
+
.btn[disabled] { color: var(--color-text-disabled); cursor: not-allowed; opacity: 0.6; }
|
|
54
|
+
.btn--ghost { background: transparent; }
|
|
55
|
+
.btn--small { padding: 6px 10px; font-size: 12px; }
|
|
56
|
+
.btn--accent {
|
|
57
|
+
background: var(--color-brand-accent);
|
|
58
|
+
color: #fff;
|
|
59
|
+
border-color: transparent;
|
|
60
|
+
}
|
|
61
|
+
.btn--accent:hover { filter: brightness(1.05); }
|
|
62
|
+
.btn--danger { color: var(--color-status-error); }
|
|
63
|
+
.btn--danger:hover { background: var(--color-bg-surface-strong); }
|
|
64
|
+
|
|
65
|
+
.icon-btn {
|
|
66
|
+
width: 32px;
|
|
67
|
+
height: 32px;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
padding: 0;
|
|
72
|
+
border-radius: 999px;
|
|
73
|
+
border: 1px solid transparent;
|
|
74
|
+
background: var(--color-bg-surface);
|
|
75
|
+
color: var(--color-text-primary);
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
.icon-btn:hover { background: var(--color-bg-surface-strong); }
|
|
79
|
+
.icon-btn:focus-visible { outline: 2px solid var(--color-brand-accent); outline-offset: 2px; }
|
|
80
|
+
|
|
81
|
+
/* ---------- Top bar ---------- */
|
|
82
|
+
.topbar {
|
|
83
|
+
position: sticky;
|
|
84
|
+
top: 0;
|
|
85
|
+
z-index: 5;
|
|
86
|
+
background: var(--color-bg-surface);
|
|
87
|
+
border-bottom: 1px solid var(--color-bg-border);
|
|
88
|
+
}
|
|
89
|
+
@supports (backdrop-filter: blur(20px)) {
|
|
90
|
+
.topbar { backdrop-filter: var(--effect-input-blur); }
|
|
91
|
+
}
|
|
92
|
+
@supports not (backdrop-filter: blur(20px)) {
|
|
93
|
+
.topbar { background: var(--color-bg-surface-strong); }
|
|
94
|
+
}
|
|
95
|
+
.topbar__inner {
|
|
96
|
+
max-width: 1280px;
|
|
97
|
+
margin: 0 auto;
|
|
98
|
+
padding: 12px 24px;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: space-between;
|
|
102
|
+
gap: 16px;
|
|
103
|
+
flex-wrap: wrap;
|
|
104
|
+
}
|
|
105
|
+
.brand-mark { display: inline-flex; align-items: center; gap: 8px; }
|
|
106
|
+
.brand-mark__logo {
|
|
107
|
+
width: 22px;
|
|
108
|
+
height: 22px;
|
|
109
|
+
border-radius: var(--radius-logo);
|
|
110
|
+
background: var(--color-brand-accent);
|
|
111
|
+
display: inline-block;
|
|
112
|
+
}
|
|
113
|
+
.brand-mark__name {
|
|
114
|
+
color: var(--color-text-primary);
|
|
115
|
+
font-size: 15px;
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
}
|
|
118
|
+
.brand-mark__tag {
|
|
119
|
+
margin-left: 4px;
|
|
120
|
+
padding: 2px 6px;
|
|
121
|
+
font-size: 11px;
|
|
122
|
+
text-transform: uppercase;
|
|
123
|
+
letter-spacing: 0.6px;
|
|
124
|
+
color: var(--color-text-secondary);
|
|
125
|
+
border: 1px solid var(--color-bg-border);
|
|
126
|
+
border-radius: 999px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.topbar__meta {
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: 18px;
|
|
133
|
+
flex-wrap: wrap;
|
|
134
|
+
}
|
|
135
|
+
.metric {
|
|
136
|
+
display: inline-flex;
|
|
137
|
+
align-items: baseline;
|
|
138
|
+
gap: 6px;
|
|
139
|
+
color: var(--color-text-secondary);
|
|
140
|
+
}
|
|
141
|
+
.metric__label { font-size: 12px; }
|
|
142
|
+
.metric__value {
|
|
143
|
+
color: var(--color-text-primary);
|
|
144
|
+
font-size: 18px;
|
|
145
|
+
font-weight: 600;
|
|
146
|
+
font-variant-numeric: tabular-nums;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.auto-toggle {
|
|
150
|
+
display: inline-flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
gap: 6px;
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
color: var(--color-text-secondary);
|
|
155
|
+
user-select: none;
|
|
156
|
+
}
|
|
157
|
+
.auto-toggle input { accent-color: var(--color-brand-accent); }
|
|
158
|
+
|
|
159
|
+
/* ---------- Main layout ---------- */
|
|
160
|
+
.layout {
|
|
161
|
+
max-width: 1280px;
|
|
162
|
+
margin: 0 auto;
|
|
163
|
+
padding: 24px;
|
|
164
|
+
display: grid;
|
|
165
|
+
grid-template-columns: 220px minmax(0, 1fr);
|
|
166
|
+
gap: 24px;
|
|
167
|
+
align-items: start;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* ---------- Left rail ---------- */
|
|
171
|
+
.filter-rail {
|
|
172
|
+
border: 1px solid var(--color-bg-border);
|
|
173
|
+
border-radius: var(--radius-card);
|
|
174
|
+
background: var(--color-bg-surface);
|
|
175
|
+
padding: 16px;
|
|
176
|
+
box-shadow: 0 12px 40px -16px rgba(120,90,200,0.22);
|
|
177
|
+
}
|
|
178
|
+
@supports (backdrop-filter: blur(20px)) {
|
|
179
|
+
.filter-rail { backdrop-filter: var(--effect-input-blur); }
|
|
180
|
+
}
|
|
181
|
+
@supports not (backdrop-filter: blur(20px)) {
|
|
182
|
+
.filter-rail { background: var(--color-bg-surface-strong); }
|
|
183
|
+
}
|
|
184
|
+
.filter-rail__title {
|
|
185
|
+
margin: 0 0 8px;
|
|
186
|
+
font-size: 12px;
|
|
187
|
+
font-weight: 600;
|
|
188
|
+
color: var(--color-text-tertiary);
|
|
189
|
+
text-transform: uppercase;
|
|
190
|
+
letter-spacing: 0.6px;
|
|
191
|
+
}
|
|
192
|
+
.filter-rail__title:not(:first-child) { margin-top: 18px; }
|
|
193
|
+
|
|
194
|
+
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
|
|
195
|
+
.filter-item {
|
|
196
|
+
display: flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
gap: 8px;
|
|
199
|
+
width: 100%;
|
|
200
|
+
padding: 8px 10px;
|
|
201
|
+
border: 1px solid transparent;
|
|
202
|
+
border-radius: var(--radius-input);
|
|
203
|
+
background: transparent;
|
|
204
|
+
color: var(--color-text-secondary);
|
|
205
|
+
text-align: left;
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
font-size: 13px;
|
|
208
|
+
}
|
|
209
|
+
.filter-item:hover { background: var(--color-bg-surface-strong); color: var(--color-text-primary); }
|
|
210
|
+
.filter-item.is-active {
|
|
211
|
+
background: var(--color-bg-surface-strong);
|
|
212
|
+
color: var(--color-text-primary);
|
|
213
|
+
border-color: var(--color-bg-border);
|
|
214
|
+
}
|
|
215
|
+
.filter-item .badge {
|
|
216
|
+
width: 8px;
|
|
217
|
+
height: 8px;
|
|
218
|
+
border-radius: 999px;
|
|
219
|
+
display: inline-block;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.badge--success { background: var(--color-status-success); }
|
|
223
|
+
.badge--info { background: var(--color-status-info); }
|
|
224
|
+
.badge--warning { background: var(--color-status-warning); }
|
|
225
|
+
.badge--error { background: var(--color-status-error); }
|
|
226
|
+
|
|
227
|
+
/* ---------- 内容 / 表格 ---------- */
|
|
228
|
+
.content {
|
|
229
|
+
border: 1px solid var(--color-bg-border);
|
|
230
|
+
border-radius: var(--radius-card);
|
|
231
|
+
background: var(--color-bg-surface);
|
|
232
|
+
padding: 20px 20px 8px;
|
|
233
|
+
min-width: 0;
|
|
234
|
+
box-shadow: 0 12px 40px -16px rgba(120,90,200,0.22);
|
|
235
|
+
}
|
|
236
|
+
@supports (backdrop-filter: blur(20px)) {
|
|
237
|
+
.content { backdrop-filter: var(--effect-input-blur); }
|
|
238
|
+
}
|
|
239
|
+
@supports not (backdrop-filter: blur(20px)) {
|
|
240
|
+
.content { background: var(--color-bg-surface-strong); }
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.content__head {
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: baseline;
|
|
246
|
+
justify-content: space-between;
|
|
247
|
+
gap: 16px;
|
|
248
|
+
margin-bottom: 12px;
|
|
249
|
+
}
|
|
250
|
+
.content__title {
|
|
251
|
+
margin: 0;
|
|
252
|
+
font-size: 18px;
|
|
253
|
+
font-weight: 600;
|
|
254
|
+
color: var(--color-text-primary);
|
|
255
|
+
}
|
|
256
|
+
.content__sub {
|
|
257
|
+
margin: 0;
|
|
258
|
+
font-size: 12px;
|
|
259
|
+
color: var(--color-text-tertiary);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.table-wrap { overflow-x: auto; }
|
|
263
|
+
.ticket-table {
|
|
264
|
+
width: 100%;
|
|
265
|
+
border-collapse: collapse;
|
|
266
|
+
font-size: 13px;
|
|
267
|
+
}
|
|
268
|
+
.ticket-table thead th {
|
|
269
|
+
text-align: left;
|
|
270
|
+
padding: 10px 8px;
|
|
271
|
+
font-weight: 500;
|
|
272
|
+
color: var(--color-text-tertiary);
|
|
273
|
+
border-bottom: 1px solid var(--color-bg-border);
|
|
274
|
+
font-size: 12px;
|
|
275
|
+
text-transform: uppercase;
|
|
276
|
+
letter-spacing: 0.4px;
|
|
277
|
+
}
|
|
278
|
+
.ticket-table tbody td {
|
|
279
|
+
padding: 12px 8px;
|
|
280
|
+
border-bottom: 1px solid var(--color-bg-border);
|
|
281
|
+
vertical-align: middle;
|
|
282
|
+
color: var(--color-text-primary);
|
|
283
|
+
}
|
|
284
|
+
.ticket-table tbody tr:hover { background: var(--color-bg-surface-strong); cursor: pointer; }
|
|
285
|
+
.ticket-table tbody tr.is-selected { background: var(--color-bg-surface-strong); }
|
|
286
|
+
.ticket-table__col-actions { text-align: right; }
|
|
287
|
+
.ticket-table .ticket-id {
|
|
288
|
+
font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
|
|
289
|
+
color: var(--color-text-secondary);
|
|
290
|
+
font-size: 12px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.priority {
|
|
294
|
+
display: inline-flex;
|
|
295
|
+
align-items: center;
|
|
296
|
+
gap: 4px;
|
|
297
|
+
padding: 2px 8px;
|
|
298
|
+
border-radius: 999px;
|
|
299
|
+
border: 1px solid var(--color-bg-border);
|
|
300
|
+
font-size: 11px;
|
|
301
|
+
text-transform: uppercase;
|
|
302
|
+
letter-spacing: 0.4px;
|
|
303
|
+
color: var(--color-text-secondary);
|
|
304
|
+
}
|
|
305
|
+
.priority[data-level="urgent"] { color: var(--color-status-error); border-color: var(--color-status-error); }
|
|
306
|
+
.priority[data-level="high"] { color: var(--color-status-warning); border-color: var(--color-status-warning); }
|
|
307
|
+
.priority[data-level="normal"] { color: var(--color-text-secondary); }
|
|
308
|
+
.priority[data-level="low"] { color: var(--color-text-tertiary); }
|
|
309
|
+
|
|
310
|
+
.status-pill {
|
|
311
|
+
display: inline-flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
gap: 6px;
|
|
314
|
+
padding: 4px 10px;
|
|
315
|
+
border-radius: 999px;
|
|
316
|
+
font-size: 12px;
|
|
317
|
+
background: var(--color-bg-surface-strong);
|
|
318
|
+
border: 1px solid var(--color-bg-border);
|
|
319
|
+
}
|
|
320
|
+
.status-pill::before {
|
|
321
|
+
content: "";
|
|
322
|
+
width: 6px;
|
|
323
|
+
height: 6px;
|
|
324
|
+
border-radius: 999px;
|
|
325
|
+
background: var(--color-text-disabled);
|
|
326
|
+
}
|
|
327
|
+
.status-pill[data-status="pending"]::before { background: var(--color-status-warning); }
|
|
328
|
+
.status-pill[data-status="processing"]::before { background: var(--color-status-info); }
|
|
329
|
+
.status-pill[data-status="closed"]::before { background: var(--color-status-success); }
|
|
330
|
+
.status-pill[data-status="canceled"]::before { background: var(--color-status-error); }
|
|
331
|
+
.status-pill[data-status="timeout"]::before { background: var(--color-status-error); }
|
|
332
|
+
|
|
333
|
+
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
|
|
334
|
+
|
|
335
|
+
.empty-row td {
|
|
336
|
+
text-align: center;
|
|
337
|
+
padding: 32px 8px;
|
|
338
|
+
color: var(--color-text-tertiary);
|
|
339
|
+
font-style: italic;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* ---------- Right drawer ---------- */
|
|
343
|
+
.drawer {
|
|
344
|
+
position: fixed;
|
|
345
|
+
top: 0;
|
|
346
|
+
right: 0;
|
|
347
|
+
width: min(420px, 100vw);
|
|
348
|
+
height: 100vh;
|
|
349
|
+
background: var(--color-bg-surface-strong);
|
|
350
|
+
border-left: 1px solid var(--color-bg-border);
|
|
351
|
+
z-index: 10;
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
box-shadow: -16px 0 32px rgba(120, 90, 200, 0.22);
|
|
355
|
+
}
|
|
356
|
+
@supports (backdrop-filter: blur(20px)) {
|
|
357
|
+
.drawer { backdrop-filter: var(--effect-input-blur); }
|
|
358
|
+
}
|
|
359
|
+
.drawer__head {
|
|
360
|
+
display: flex;
|
|
361
|
+
align-items: center;
|
|
362
|
+
justify-content: space-between;
|
|
363
|
+
padding: 16px 20px;
|
|
364
|
+
border-bottom: 1px solid var(--color-bg-border);
|
|
365
|
+
}
|
|
366
|
+
.drawer__title { margin: 0; font-size: 15px; font-weight: 600; }
|
|
367
|
+
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 18px 20px; }
|
|
368
|
+
.drawer__placeholder { color: var(--color-text-tertiary); font-style: italic; }
|
|
369
|
+
|
|
370
|
+
.detail-grid {
|
|
371
|
+
display: grid;
|
|
372
|
+
grid-template-columns: 88px minmax(0, 1fr);
|
|
373
|
+
gap: 8px 14px;
|
|
374
|
+
margin: 0 0 16px;
|
|
375
|
+
}
|
|
376
|
+
.detail-grid dt {
|
|
377
|
+
color: var(--color-text-tertiary);
|
|
378
|
+
font-size: 12px;
|
|
379
|
+
text-transform: uppercase;
|
|
380
|
+
letter-spacing: 0.4px;
|
|
381
|
+
}
|
|
382
|
+
.detail-grid dd {
|
|
383
|
+
margin: 0;
|
|
384
|
+
color: var(--color-text-primary);
|
|
385
|
+
font-size: 13px;
|
|
386
|
+
word-break: break-word;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.transcript {
|
|
390
|
+
margin: 0 0 16px;
|
|
391
|
+
padding: 12px 14px;
|
|
392
|
+
border: 1px solid var(--color-bg-border);
|
|
393
|
+
border-radius: var(--radius-input);
|
|
394
|
+
background: var(--color-bg-surface);
|
|
395
|
+
font-size: 13px;
|
|
396
|
+
line-height: 1.5;
|
|
397
|
+
color: var(--color-text-secondary);
|
|
398
|
+
white-space: pre-wrap;
|
|
399
|
+
}
|
|
400
|
+
.transcript__title {
|
|
401
|
+
font-size: 12px;
|
|
402
|
+
text-transform: uppercase;
|
|
403
|
+
color: var(--color-text-tertiary);
|
|
404
|
+
margin: 0 0 6px;
|
|
405
|
+
letter-spacing: 0.4px;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.action-row {
|
|
409
|
+
display: flex;
|
|
410
|
+
flex-wrap: wrap;
|
|
411
|
+
gap: 8px;
|
|
412
|
+
margin-top: 12px;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.toast {
|
|
416
|
+
position: fixed;
|
|
417
|
+
left: 50%;
|
|
418
|
+
bottom: 24px;
|
|
419
|
+
transform: translateX(-50%);
|
|
420
|
+
padding: 10px 16px;
|
|
421
|
+
border-radius: var(--radius-input);
|
|
422
|
+
background: var(--color-bg-surface-strong);
|
|
423
|
+
border: 1px solid var(--color-bg-border);
|
|
424
|
+
color: var(--color-text-primary);
|
|
425
|
+
font-size: 13px;
|
|
426
|
+
z-index: 50;
|
|
427
|
+
pointer-events: none;
|
|
428
|
+
opacity: 0;
|
|
429
|
+
transition: opacity 0.2s ease;
|
|
430
|
+
}
|
|
431
|
+
.toast.is-visible { opacity: 1; }
|
|
432
|
+
.toast[data-tone="error"] { color: var(--color-status-error); }
|
|
433
|
+
.toast[data-tone="success"] { color: var(--color-status-success); }
|
|
434
|
+
|
|
435
|
+
/* ---------- Session summary block (session-summary) ---------- */
|
|
436
|
+
.summary-block {
|
|
437
|
+
margin-top: 16px;
|
|
438
|
+
padding-top: 12px;
|
|
439
|
+
border-top: 1px solid var(--color-bg-border);
|
|
440
|
+
}
|
|
441
|
+
.summary-body { font-size: 13px; color: var(--color-text-secondary); }
|
|
442
|
+
.summary-empty { color: var(--color-text-tertiary); margin: 6px 0; }
|
|
443
|
+
.summary-grid {
|
|
444
|
+
display: grid;
|
|
445
|
+
grid-template-columns: auto 1fr;
|
|
446
|
+
gap: 6px 12px;
|
|
447
|
+
margin: 8px 0;
|
|
448
|
+
}
|
|
449
|
+
.summary-grid dt { color: var(--color-text-tertiary); font-size: 12px; }
|
|
450
|
+
.summary-grid dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
|
|
451
|
+
.summary-chip {
|
|
452
|
+
display: inline-block;
|
|
453
|
+
padding: 2px 8px;
|
|
454
|
+
border-radius: 999px;
|
|
455
|
+
background: var(--color-bg-surface-strong);
|
|
456
|
+
border: 1px solid var(--color-bg-border);
|
|
457
|
+
color: var(--color-text-primary);
|
|
458
|
+
font-size: 12px;
|
|
459
|
+
}
|
|
460
|
+
.summary-meta { font-size: 11px; color: var(--color-text-tertiary); margin: 8px 0 0; }
|
|
461
|
+
|
|
462
|
+
/* ---------- Customer feedback block (issue 6) ---------- */
|
|
463
|
+
.feedback-block {
|
|
464
|
+
margin-top: 16px;
|
|
465
|
+
padding-top: 12px;
|
|
466
|
+
border-top: 1px solid var(--color-bg-border);
|
|
467
|
+
}
|
|
468
|
+
.feedback-body {
|
|
469
|
+
border: 1px solid var(--color-bg-border);
|
|
470
|
+
border-radius: var(--radius-input);
|
|
471
|
+
background: var(--color-bg-surface);
|
|
472
|
+
padding: 12px 14px;
|
|
473
|
+
}
|
|
474
|
+
.feedback-rating { display: flex; align-items: center; gap: 10px; }
|
|
475
|
+
.feedback-stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }
|
|
476
|
+
.feedback-score { font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
|
|
477
|
+
.feedback-comment {
|
|
478
|
+
margin-top: 8px; font-size: 13px; line-height: 1.5;
|
|
479
|
+
color: var(--color-text-secondary); word-break: break-word;
|
|
480
|
+
}
|
|
481
|
+
.feedback-comment.feedback-empty { color: var(--color-text-tertiary); font-style: italic; }
|
|
482
|
+
|
|
483
|
+
/* ---------- Responsive ---------- */
|
|
484
|
+
@media (max-width: 900px) {
|
|
485
|
+
.layout { grid-template-columns: 1fr; }
|
|
486
|
+
.drawer { width: 100vw; }
|
|
487
|
+
}
|
|
@@ -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
|
+
}
|