chattermate-cli 0.5.0__tar.gz → 0.7.0__tar.gz

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 (37) hide show
  1. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/PKG-INFO +9 -1
  2. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/README.md +8 -0
  3. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/__init__.py +1 -1
  4. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/client.py +114 -0
  5. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/customization.py +6 -5
  6. chattermate_cli-0.7.0/chattermate_cli/commands/help_center.py +507 -0
  7. chattermate_cli-0.7.0/chattermate_cli/commands/ticketing.py +396 -0
  8. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/main.py +4 -0
  9. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/mcp_server.py +166 -0
  10. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli.egg-info/PKG-INFO +9 -1
  11. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli.egg-info/SOURCES.txt +4 -0
  12. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/pyproject.toml +1 -1
  13. chattermate_cli-0.7.0/tests/test_help_center.py +163 -0
  14. chattermate_cli-0.7.0/tests/test_ticketing.py +164 -0
  15. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/LICENSE +0 -0
  16. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/__init__.py +0 -0
  17. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/agent.py +0 -0
  18. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/ai.py +0 -0
  19. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/auth.py +0 -0
  20. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/knowledge.py +0 -0
  21. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/lead_capture.py +0 -0
  22. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/widget.py +0 -0
  23. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/commands/workflow.py +0 -0
  24. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/config.py +0 -0
  25. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli/context.py +0 -0
  26. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli.egg-info/dependency_links.txt +0 -0
  27. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli.egg-info/entry_points.txt +0 -0
  28. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli.egg-info/requires.txt +0 -0
  29. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/chattermate_cli.egg-info/top_level.txt +0 -0
  30. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/setup.cfg +0 -0
  31. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/tests/test_ai.py +0 -0
  32. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/tests/test_client.py +0 -0
  33. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/tests/test_customization.py +0 -0
  34. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/tests/test_knowledge.py +0 -0
  35. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/tests/test_lead_capture.py +0 -0
  36. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/tests/test_mcp.py +0 -0
  37. {chattermate_cli-0.5.0 → chattermate_cli-0.7.0}/tests/test_widget.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chattermate-cli
3
- Version: 0.5.0
3
+ Version: 0.7.0
4
4
  Summary: ChatterMate CLI and MCP server — sign up, authenticate, and configure agents, workflows and knowledge from the terminal or an AI agent.
5
5
  Author: ChatterMate
6
6
  License: AGPL-3.0-or-later
@@ -63,6 +63,14 @@ chattermate workflow get <agent-id>
63
63
  chattermate workflow create --agent-id <agent-id> --name "Onboarding"
64
64
  chattermate knowledge add-url --website https://docs.acme.com --agent-id <agent-id>
65
65
  chattermate knowledge status <queue-id>
66
+
67
+ # Inspect AI tickets and drive investigations
68
+ chattermate ticketing list --status open --priority urgent
69
+ chattermate ticketing show TKT-4
70
+ chattermate ticketing investigate TKT-4 --note "check the payment gateway first"
71
+ chattermate ticketing investigation TKT-4 # hypotheses, verdicts, confidence
72
+ chattermate ticketing rca TKT-4 # the root-cause document
73
+ chattermate ticketing settings show
66
74
  ```
67
75
 
68
76
  Every command accepts `--json` for machine-readable output.
@@ -45,6 +45,14 @@ chattermate workflow get <agent-id>
45
45
  chattermate workflow create --agent-id <agent-id> --name "Onboarding"
46
46
  chattermate knowledge add-url --website https://docs.acme.com --agent-id <agent-id>
47
47
  chattermate knowledge status <queue-id>
48
+
49
+ # Inspect AI tickets and drive investigations
50
+ chattermate ticketing list --status open --priority urgent
51
+ chattermate ticketing show TKT-4
52
+ chattermate ticketing investigate TKT-4 --note "check the payment gateway first"
53
+ chattermate ticketing investigation TKT-4 # hypotheses, verdicts, confidence
54
+ chattermate ticketing rca TKT-4 # the root-cause document
55
+ chattermate ticketing settings show
48
56
  ```
49
57
 
50
58
  Every command accepts `--json` for machine-readable output.
@@ -16,4 +16,4 @@ You should have received a copy of the GNU Affero General Public License
16
16
  along with this program. If not, see <https://www.gnu.org/licenses/>
17
17
  """
18
18
 
19
- __version__ = "0.5.0"
19
+ __version__ = "0.7.0"
@@ -325,3 +325,117 @@ class Client:
325
325
 
326
326
  def get_ai_config(self) -> Any:
327
327
  return self.request("GET", "/ai/config")
328
+
329
+ # -- help center / FAQ -------------------------------------------------
330
+ # Org is taken from the authenticated user server-side, so no org_id here.
331
+
332
+ def list_faqs(self, params: Optional[Dict[str, Any]] = None) -> Any:
333
+ return self.request("GET", "/help-center/faqs", params=params)
334
+
335
+ def faq_categories(self) -> Any:
336
+ return self.request("GET", "/help-center/faqs/categories")
337
+
338
+ def create_faq(self, payload: Dict[str, Any]) -> Any:
339
+ return self.request("POST", "/help-center/faqs", json=payload)
340
+
341
+ def update_faq(self, faq_id: str, payload: Dict[str, Any]) -> Any:
342
+ return self.request("PUT", f"/help-center/faqs/{faq_id}", json=payload)
343
+
344
+ def delete_faq(self, faq_id: str) -> Any:
345
+ return self.request("DELETE", f"/help-center/faqs/{faq_id}")
346
+
347
+ def bulk_faq_status(self, faq_ids: List[str], status: str) -> Any:
348
+ return self.request(
349
+ "POST", "/help-center/faqs/bulk-status",
350
+ json={"faq_ids": faq_ids, "status": status},
351
+ )
352
+
353
+ def bulk_delete_faqs(self, faq_ids: List[str]) -> Any:
354
+ return self.request("POST", "/help-center/faqs/bulk-delete", json={"faq_ids": faq_ids})
355
+
356
+ def upload_faq_image(self, name: str, content: bytes, content_type: str) -> Any:
357
+ return self.request(
358
+ "POST", "/help-center/faqs/image",
359
+ files={"file": (name, content, content_type)},
360
+ )
361
+
362
+ # settings / branding
363
+ def get_help_center_settings(self) -> Any:
364
+ return self.request("GET", "/help-center/settings")
365
+
366
+ def update_help_center_settings(self, payload: Dict[str, Any]) -> Any:
367
+ return self.request("PUT", "/help-center/settings", json=payload)
368
+
369
+ def upload_help_center_logo(self, name: str, content: bytes, content_type: str) -> Any:
370
+ return self.request(
371
+ "POST", "/help-center/logo",
372
+ files={"file": (name, content, content_type)},
373
+ )
374
+
375
+ def remove_help_center_logo(self) -> Any:
376
+ return self.request("DELETE", "/help-center/logo")
377
+
378
+ # import (URL / PDF) — async, returns a job
379
+ def import_help_center_url(self, url: str, mode: str = "qa") -> Any:
380
+ return self.request("POST", "/help-center/import", json={"url": url, "mode": mode})
381
+
382
+ def import_help_center_pdf(self, name: str, content: bytes) -> Any:
383
+ return self.request(
384
+ "POST", "/help-center/import/pdf",
385
+ files={"file": (name, content, "application/pdf")},
386
+ )
387
+
388
+ # custom domain
389
+ def set_help_center_domain(self, domain: str) -> Any:
390
+ return self.request("POST", "/help-center/domain", json={"domain": domain})
391
+
392
+ def clear_help_center_domain(self) -> Any:
393
+ return self.request("DELETE", "/help-center/domain")
394
+
395
+ def verify_help_center_domain(self) -> Any:
396
+ return self.request("POST", "/help-center/domain/verify")
397
+
398
+ def help_center_domain_status(self) -> Any:
399
+ return self.request("GET", "/help-center/domain/status")
400
+
401
+ # jobs (import/generate status polling)
402
+ def help_center_job(self, active: bool = True) -> Any:
403
+ return self.request("GET", "/help-center/jobs", params={"active": active})
404
+
405
+ def help_center_job_by_id(self, job_id: int) -> Any:
406
+ return self.request("GET", f"/help-center/jobs/{job_id}")
407
+
408
+ # ---- AI ticketing ----
409
+ def list_tickets(self, params: Optional[Dict[str, Any]] = None) -> Any:
410
+ return self.request("GET", "/tickets", params=params)
411
+
412
+ def ticket_stats(self) -> Any:
413
+ return self.request("GET", "/tickets/stats")
414
+
415
+ def get_ticket(self, ticket_id: str) -> Any:
416
+ return self.request("GET", f"/tickets/{ticket_id}")
417
+
418
+ def comment_ticket(self, ticket_id: str, body: str, is_internal: bool = True) -> Any:
419
+ return self.request(
420
+ "POST",
421
+ f"/tickets/{ticket_id}/comments",
422
+ json={"body": body, "is_internal": is_internal},
423
+ )
424
+
425
+ def investigate_ticket(
426
+ self, ticket_id: str, run_type: str = "investigation", context_note: Optional[str] = None
427
+ ) -> Any:
428
+ payload: Dict[str, Any] = {"run_type": run_type}
429
+ if context_note:
430
+ payload["context_note"] = context_note
431
+ return self.request("POST", f"/tickets/{ticket_id}/investigate", json=payload)
432
+
433
+ def ticket_investigation(self, ticket_id: str, run_id: Optional[str] = None) -> Any:
434
+ params = {"run_id": run_id} if run_id else None
435
+ return self.request("GET", f"/tickets/{ticket_id}/investigation", params=params)
436
+
437
+ def get_ticket_settings(self) -> Any:
438
+ return self.request("GET", "/tickets/settings")
439
+
440
+ def update_ticket_settings(self, payload: Dict[str, Any]) -> Any:
441
+ return self.request("PUT", "/tickets/settings", json=payload)
@@ -90,14 +90,15 @@ def set_customization(
90
90
  None, "--position", help=f"Widget position. One of: {', '.join(WIDGET_POSITIONS)}."),
91
91
  font: Optional[str] = typer.Option(None, "--font", help="Font family."),
92
92
  custom_css: Optional[str] = typer.Option(None, "--custom-css", help="Custom CSS."),
93
- # Welcome / messaging
94
- welcome_title: Optional[str] = typer.Option(None, "--welcome-title"),
95
- welcome_subtitle: Optional[str] = typer.Option(None, "--welcome-subtitle"),
96
- welcome_message: Optional[str] = typer.Option(None, "--welcome-message"),
93
+ # Welcome / messaging (max lengths enforced by the API)
94
+ welcome_title: Optional[str] = typer.Option(None, "--welcome-title", help="Welcome title (max 100 chars)."),
95
+ welcome_subtitle: Optional[str] = typer.Option(None, "--welcome-subtitle", help="Welcome subtitle (max 250 chars)."),
96
+ welcome_message: Optional[str] = typer.Option(None, "--welcome-message", help="Welcome message (max 500 chars)."),
97
97
  quick_action: List[str] = typer.Option(
98
98
  [], "--quick-action", help="Quick-action chip (repeatable; replaces the list)."),
99
99
  initiation_message: List[str] = typer.Option(
100
- [], "--initiation-message", help="Proactive initiation message (repeatable; replaces the list)."),
100
+ [], "--initiation-message",
101
+ help="Proactive launcher nudge, max 100 chars (repeatable; replaces the list)."),
101
102
  # Toggles
102
103
  show_citations: Optional[bool] = typer.Option(
103
104
  None, "--show-citations/--no-show-citations", help="Show knowledge-base citations."),