ct-toolkit 0.4.2__tar.gz → 0.4.3__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 (71) hide show
  1. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/PKG-INFO +3 -3
  2. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/README.md +2 -2
  3. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/__init__.py +1 -1
  4. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/provenance/log.py +5 -3
  5. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit.egg-info/PKG-INFO +3 -3
  6. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/pyproject.toml +1 -1
  7. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/LICENSE +0 -0
  8. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/__main__.py +0 -0
  9. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/cli.py +0 -0
  10. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/__init__.py +0 -0
  11. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/async_wrapper.py +0 -0
  12. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/circuit_breaker.py +0 -0
  13. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/compatibility.py +0 -0
  14. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/compression_guard.py +0 -0
  15. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/exceptions.py +0 -0
  16. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/integrity.py +0 -0
  17. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/kernel.py +0 -0
  18. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/core/wrapper.py +0 -0
  19. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/divergence/__init__.py +0 -0
  20. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/divergence/analysis.py +0 -0
  21. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/divergence/engine.py +0 -0
  22. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/divergence/l2_judge.py +0 -0
  23. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/divergence/l3_icm.py +0 -0
  24. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/divergence/loss.py +0 -0
  25. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/divergence/scheduler.py +0 -0
  26. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/endorsement/__init__.py +0 -0
  27. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/endorsement/probes/__init__.py +0 -0
  28. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/endorsement/reflective.py +0 -0
  29. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/identity/__init__.py +0 -0
  30. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/identity/embedding.py +0 -0
  31. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/identity/templates/__init__.py +0 -0
  32. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/identity/templates/defense.yaml +0 -0
  33. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/identity/templates/finance.yaml +0 -0
  34. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/identity/templates/general.yaml +0 -0
  35. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/identity/templates/medical.yaml +0 -0
  36. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/kernels/__init__.py +0 -0
  37. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/kernels/default.yaml +0 -0
  38. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/kernels/defense.yaml +0 -0
  39. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/middleware/__init__.py +0 -0
  40. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/middleware/autogen.py +0 -0
  41. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/middleware/crewai.py +0 -0
  42. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/middleware/deepagents.py +0 -0
  43. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/middleware/langchain.py +0 -0
  44. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/middleware/litellm.py +0 -0
  45. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/profile_checksums.sha256 +0 -0
  46. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/provenance/__init__.py +0 -0
  47. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/provenance/vault/__init__.py +0 -0
  48. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/server.py +0 -0
  49. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/utils/__init__.py +0 -0
  50. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/utils/logger.py +0 -0
  51. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/utils/metrics.py +0 -0
  52. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/utils/sensitive_masker.py +0 -0
  53. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit/utils/telemetry.py +0 -0
  54. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit.egg-info/SOURCES.txt +0 -0
  55. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit.egg-info/dependency_links.txt +0 -0
  56. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit.egg-info/entry_points.txt +0 -0
  57. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit.egg-info/requires.txt +0 -0
  58. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/ct_toolkit.egg-info/top_level.txt +0 -0
  59. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/setup.cfg +0 -0
  60. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_analysis.py +0 -0
  61. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_async_and_streaming.py +0 -0
  62. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_background_latency.py +0 -0
  63. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_cli.py +0 -0
  64. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_cli_extended.py +0 -0
  65. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_deep_agents_integration.py +0 -0
  66. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_distributed_headers_and_cli.py +0 -0
  67. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_enterprise_db_and_otel.py +0 -0
  68. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_l1_semantic.py +0 -0
  69. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_loss.py +0 -0
  70. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_optional_dependencies.py +0 -0
  71. {ct_toolkit-0.4.2 → ct_toolkit-0.4.3}/tests/test_summarization_drift.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ct-toolkit
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Computational Theseus Toolkit — Identity Continuity Guardrails for Agentic Systems
5
5
  Author: Hakan Damar
6
6
  License: Apache-2.0
@@ -92,7 +92,7 @@ $ ct-toolkit status
92
92
  | | | | | | |____ ____) | |____| |__| |____) | | |__| | |__| |/ ____ \| | \ \| |__| |
93
93
  |_| |_| |_|______|_____/|______|_____/|_____/ \_____|\____//_/ \_\_| \_\_____/
94
94
 
95
- Computational Theseus Toolkit (CT Toolkit) v0.4.2
95
+ Computational Theseus Toolkit (CT Toolkit) v0.4.3
96
96
  Identity Continuity Guardrails for Agentic Systems
97
97
 
98
98
  ╭──────────────────── CT Toolkit Audit & Telemetry Status ─────────────────────╮
@@ -219,7 +219,7 @@ The L2 judge does not evaluate Jinja2 expressions in user requests or model resp
219
219
  | :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
220
220
  | **Tests** | ✅ 426 passed, 3 skipped (100% success rate, 90%+ coverage) |
221
221
  | **Downloads** | [![PyPI Downloads](https://static.pepy.tech/personalized-badge/ct-toolkit?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=MAGENTA&left_text=downloads)](https://pepy.tech/projects/ct-toolkit) |
222
- | **Last Phase** | ✅ v0.4.2: Pillow 13.0.0, filelock 4.2.4, setuptools 84.2.1, certifi 2026.10.23 security fixes (Dependabot #77-122, #86, #117) |
222
+ | **Last Phase** | ✅ v0.4.3: SQL injection fix in provenance log (CodeQL #50) |
223
223
 
224
224
  ### Framework & Model Support
225
225
 
@@ -20,7 +20,7 @@ $ ct-toolkit status
20
20
  | | | | | | |____ ____) | |____| |__| |____) | | |__| | |__| |/ ____ \| | \ \| |__| |
21
21
  |_| |_| |_|______|_____/|______|_____/|_____/ \_____|\____//_/ \_\_| \_\_____/
22
22
 
23
- Computational Theseus Toolkit (CT Toolkit) v0.4.2
23
+ Computational Theseus Toolkit (CT Toolkit) v0.4.3
24
24
  Identity Continuity Guardrails for Agentic Systems
25
25
 
26
26
  ╭──────────────────── CT Toolkit Audit & Telemetry Status ─────────────────────╮
@@ -147,7 +147,7 @@ The L2 judge does not evaluate Jinja2 expressions in user requests or model resp
147
147
  | :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
148
148
  | **Tests** | ✅ 426 passed, 3 skipped (100% success rate, 90%+ coverage) |
149
149
  | **Downloads** | [![PyPI Downloads](https://static.pepy.tech/personalized-badge/ct-toolkit?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=MAGENTA&left_text=downloads)](https://pepy.tech/projects/ct-toolkit) |
150
- | **Last Phase** | ✅ v0.4.2: Pillow 13.0.0, filelock 4.2.4, setuptools 84.2.1, certifi 2026.10.23 security fixes (Dependabot #77-122, #86, #117) |
150
+ | **Last Phase** | ✅ v0.4.3: SQL injection fix in provenance log (CodeQL #50) |
151
151
 
152
152
  ### Framework & Model Support
153
153
 
@@ -23,7 +23,7 @@ from ct_toolkit.core.exceptions import (
23
23
  ChainIntegrityError,
24
24
  )
25
25
 
26
- __version__ = "0.4.2"
26
+ __version__ = "0.4.3"
27
27
 
28
28
  __all__ = [
29
29
  "TheseusWrapper",
@@ -666,11 +666,13 @@ class ProvenanceLog:
666
666
  query += " WHERE " + " AND ".join(conditions)
667
667
 
668
668
  query += " ORDER BY timestamp ASC"
669
+ params: tuple[int, ...] = ()
669
670
  if limit:
670
- query += f" LIMIT {limit}"
671
-
671
+ query += " LIMIT ?"
672
+ params = (int(limit),)
673
+
672
674
  assert self._conn is not None
673
- rows = self._conn.execute(query).fetchall()
675
+ rows = self._conn.execute(query, params).fetchall()
674
676
  return [self._row_to_entry(r) for r in rows]
675
677
 
676
678
  def _get_last_entry_hash(self) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ct-toolkit
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Computational Theseus Toolkit — Identity Continuity Guardrails for Agentic Systems
5
5
  Author: Hakan Damar
6
6
  License: Apache-2.0
@@ -92,7 +92,7 @@ $ ct-toolkit status
92
92
  | | | | | | |____ ____) | |____| |__| |____) | | |__| | |__| |/ ____ \| | \ \| |__| |
93
93
  |_| |_| |_|______|_____/|______|_____/|_____/ \_____|\____//_/ \_\_| \_\_____/
94
94
 
95
- Computational Theseus Toolkit (CT Toolkit) v0.4.2
95
+ Computational Theseus Toolkit (CT Toolkit) v0.4.3
96
96
  Identity Continuity Guardrails for Agentic Systems
97
97
 
98
98
  ╭──────────────────── CT Toolkit Audit & Telemetry Status ─────────────────────╮
@@ -219,7 +219,7 @@ The L2 judge does not evaluate Jinja2 expressions in user requests or model resp
219
219
  | :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
220
220
  | **Tests** | ✅ 426 passed, 3 skipped (100% success rate, 90%+ coverage) |
221
221
  | **Downloads** | [![PyPI Downloads](https://static.pepy.tech/personalized-badge/ct-toolkit?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=MAGENTA&left_text=downloads)](https://pepy.tech/projects/ct-toolkit) |
222
- | **Last Phase** | ✅ v0.4.2: Pillow 13.0.0, filelock 4.2.4, setuptools 84.2.1, certifi 2026.10.23 security fixes (Dependabot #77-122, #86, #117) |
222
+ | **Last Phase** | ✅ v0.4.3: SQL injection fix in provenance log (CodeQL #50) |
223
223
 
224
224
  ### Framework & Model Support
225
225
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ct-toolkit"
7
- version = "0.4.2"
7
+ version = "0.4.3"
8
8
  description = "Computational Theseus Toolkit — Identity Continuity Guardrails for Agentic Systems"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11, <3.14"
File without changes
File without changes
File without changes
File without changes