@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.
Files changed (47) hide show
  1. package/.sdd/manifest.json +876 -0
  2. package/AGENTS.md +65 -409
  3. package/ai-docs/ARCHITECTURE.md +168 -0
  4. package/ai-docs/CONTRACTS.md +46 -0
  5. package/ai-docs/GETTING_STARTED.md +168 -0
  6. package/ai-docs/GLOSSARY.md +43 -0
  7. package/ai-docs/README.md +25 -18
  8. package/ai-docs/REVIEW_CHECKLIST.md +41 -0
  9. package/ai-docs/RULES.md +187 -198
  10. package/ai-docs/SECURITY.md +52 -0
  11. package/ai-docs/SERVICE_STATE.md +48 -0
  12. package/ai-docs/SPEC_INDEX.md +65 -0
  13. package/ai-docs/adr/0001-spec-source-policy.md +55 -0
  14. package/ai-docs/adr/README.md +8 -0
  15. package/ai-docs/adr/_adr-template.md +31 -0
  16. package/ai-docs/contact-center-spec.md +341 -0
  17. package/ai-docs/features/generated-spec-conformance-fidelity-remediation/spec/feature-spec.md +117 -0
  18. package/ai-docs/features/residual-warning-coverage-completion/spec/feature-spec.md +203 -0
  19. package/ai-docs/features/validator-code-fidelity-drift-fix/spec/feature-spec.md +315 -0
  20. package/ai-docs/templates/README.md +1 -1
  21. package/ai-docs/templates/new-method/04-validation.md +1 -1
  22. package/ai-docs/templates/new-service/05-validation.md +1 -1
  23. package/dist/webex.js +1 -1
  24. package/package.json +1 -1
  25. package/src/metrics/ai-docs/AGENTS.md +2 -0
  26. package/src/metrics/ai-docs/ARCHITECTURE.md +2 -0
  27. package/src/metrics/ai-docs/metrics-spec.md +854 -0
  28. package/src/services/agent/ai-docs/AGENTS.md +3 -1
  29. package/src/services/agent/ai-docs/ARCHITECTURE.md +2 -0
  30. package/src/services/agent/ai-docs/agent-spec.md +504 -0
  31. package/src/services/ai-docs/AGENTS.md +4 -2
  32. package/src/services/ai-docs/services-spec.md +492 -0
  33. package/src/services/config/ai-docs/AGENTS.md +3 -1
  34. package/src/services/config/ai-docs/ARCHITECTURE.md +2 -0
  35. package/src/services/config/ai-docs/config-spec.md +669 -0
  36. package/src/services/core/ai-docs/AGENTS.md +4 -2
  37. package/src/services/core/ai-docs/ARCHITECTURE.md +2 -0
  38. package/src/services/core/ai-docs/core-spec.md +783 -0
  39. package/src/services/task/ai-docs/AGENTS.md +2 -0
  40. package/src/services/task/ai-docs/ARCHITECTURE.md +11 -2
  41. package/src/services/task/ai-docs/task-spec.md +1319 -0
  42. package/src/services/task/state-machine/ai-docs/AGENTS.md +38 -75
  43. package/src/services/task/state-machine/ai-docs/ARCHITECTURE.md +6 -4
  44. package/src/services/task/state-machine/ai-docs/task-state-machine-spec.md +2115 -0
  45. package/src/utils/AGENTS.md +3 -1
  46. package/src/utils/ai-docs/utils-spec.md +381 -0
  47. 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->>T: new Task(data)
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