@webex/contact-center 3.12.0-next.84 → 3.12.0-next.85
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/.sdd/manifest.json +876 -0
- package/AGENTS.md +65 -409
- package/ai-docs/ARCHITECTURE.md +168 -0
- package/ai-docs/CONTRACTS.md +46 -0
- package/ai-docs/GETTING_STARTED.md +168 -0
- package/ai-docs/GLOSSARY.md +43 -0
- package/ai-docs/README.md +25 -18
- package/ai-docs/REVIEW_CHECKLIST.md +41 -0
- package/ai-docs/RULES.md +187 -198
- package/ai-docs/SECURITY.md +52 -0
- package/ai-docs/SERVICE_STATE.md +48 -0
- package/ai-docs/SPEC_INDEX.md +65 -0
- package/ai-docs/adr/0001-spec-source-policy.md +55 -0
- package/ai-docs/adr/README.md +8 -0
- package/ai-docs/adr/_adr-template.md +31 -0
- package/ai-docs/contact-center-spec.md +341 -0
- package/ai-docs/features/generated-spec-conformance-fidelity-remediation/spec/feature-spec.md +117 -0
- package/ai-docs/features/residual-warning-coverage-completion/spec/feature-spec.md +203 -0
- package/ai-docs/features/validator-code-fidelity-drift-fix/spec/feature-spec.md +315 -0
- package/ai-docs/templates/README.md +1 -1
- package/ai-docs/templates/new-method/04-validation.md +1 -1
- package/ai-docs/templates/new-service/05-validation.md +1 -1
- package/dist/webex.js +1 -1
- package/package.json +1 -1
- package/src/metrics/ai-docs/AGENTS.md +2 -0
- package/src/metrics/ai-docs/ARCHITECTURE.md +2 -0
- package/src/metrics/ai-docs/metrics-spec.md +854 -0
- package/src/services/agent/ai-docs/AGENTS.md +3 -1
- package/src/services/agent/ai-docs/ARCHITECTURE.md +2 -0
- package/src/services/agent/ai-docs/agent-spec.md +504 -0
- package/src/services/ai-docs/AGENTS.md +4 -2
- package/src/services/ai-docs/services-spec.md +492 -0
- package/src/services/config/ai-docs/AGENTS.md +3 -1
- package/src/services/config/ai-docs/ARCHITECTURE.md +2 -0
- package/src/services/config/ai-docs/config-spec.md +669 -0
- package/src/services/core/ai-docs/AGENTS.md +4 -2
- package/src/services/core/ai-docs/ARCHITECTURE.md +2 -0
- package/src/services/core/ai-docs/core-spec.md +783 -0
- package/src/services/task/ai-docs/AGENTS.md +2 -0
- package/src/services/task/ai-docs/ARCHITECTURE.md +11 -2
- package/src/services/task/ai-docs/task-spec.md +1319 -0
- package/src/services/task/state-machine/ai-docs/AGENTS.md +38 -75
- package/src/services/task/state-machine/ai-docs/ARCHITECTURE.md +6 -4
- package/src/services/task/state-machine/ai-docs/task-state-machine-spec.md +2115 -0
- package/src/utils/AGENTS.md +3 -1
- package/src/utils/ai-docs/utils-spec.md +381 -0
- package/umd/contact-center.min.js +2 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Task Service - AI Agent Guide
|
|
2
2
|
|
|
3
|
+
> **Legacy/reference-only.** Canonical SDD: [`task-spec.md`](task-spec.md). Use the package [manifest](../../../../.sdd/manifest.json) and [`SPEC_INDEX.md`](../../../../ai-docs/SPEC_INDEX.md) for routing; code and tests remain the behavioral referee.
|
|
4
|
+
|
|
3
5
|
## Purpose
|
|
4
6
|
|
|
5
7
|
Manage task lifecycle including inbound/outbound calls, hold/resume, consult, transfer, conference, and wrapup.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Task Service - Architecture
|
|
2
2
|
|
|
3
|
+
> **Legacy/reference-only.** Canonical SDD: [`task-spec.md`](task-spec.md). Use the package [manifest](../../../../.sdd/manifest.json) and [`SPEC_INDEX.md`](../../../../ai-docs/SPEC_INDEX.md) for routing; code and tests remain the behavioral referee.
|
|
4
|
+
|
|
3
5
|
> **Purpose**: Technical documentation for task lifecycle management.
|
|
4
6
|
|
|
5
7
|
---
|
|
@@ -307,6 +309,7 @@ sequenceDiagram
|
|
|
307
309
|
participant BE as Backend
|
|
308
310
|
participant WS as WebSocket
|
|
309
311
|
participant TM as TaskManager
|
|
312
|
+
participant TF as TaskFactory
|
|
310
313
|
participant T as Task
|
|
311
314
|
participant CC as ContactCenter
|
|
312
315
|
participant App as Application
|
|
@@ -319,7 +322,8 @@ sequenceDiagram
|
|
|
319
322
|
WS->>TM: LINE_EVENTS.INCOMING_CALL
|
|
320
323
|
TM->>TM: Map call to task
|
|
321
324
|
end
|
|
322
|
-
TM->>
|
|
325
|
+
TM->>TF: TaskFactory.createTask(...)
|
|
326
|
+
TF-->>TM: Voice/WebRTC/Digital Task instance
|
|
323
327
|
TM->>TM: Store in taskCollection
|
|
324
328
|
TM->>CC: emit task:incoming
|
|
325
329
|
CC->>App: trigger task:incoming
|
|
@@ -557,9 +561,14 @@ isSecondaryEpDnAgent(interaction);
|
|
|
557
561
|
**Solution**: Check task state before operation:
|
|
558
562
|
|
|
559
563
|
```typescript
|
|
560
|
-
if (task.uiControls.hold.isEnabled) {
|
|
564
|
+
if (task.uiControls.main.hold.isEnabled) {
|
|
561
565
|
await task.hold();
|
|
562
566
|
}
|
|
567
|
+
|
|
568
|
+
// Consult-leg controls are exposed separately.
|
|
569
|
+
if (task.uiControls.consult.hold.isEnabled) {
|
|
570
|
+
// Render or enable the consult-leg hold action.
|
|
571
|
+
}
|
|
563
572
|
```
|
|
564
573
|
|
|
565
574
|
### Issue: WebRTC call not connecting
|