safentic 1.0.6__tar.gz → 1.0.7__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 (38) hide show
  1. {safentic-1.0.6/safentic.egg-info → safentic-1.0.7}/PKG-INFO +1 -1
  2. {safentic-1.0.6 → safentic-1.0.7}/pyproject.toml +1 -1
  3. {safentic-1.0.6 → safentic-1.0.7}/safentic/__init__.py +1 -1
  4. {safentic-1.0.6 → safentic-1.0.7}/safentic/layer.py +2 -5
  5. {safentic-1.0.6 → safentic-1.0.7/safentic.egg-info}/PKG-INFO +1 -1
  6. {safentic-1.0.6 → safentic-1.0.7}/LICENSE.txt +0 -0
  7. {safentic-1.0.6 → safentic-1.0.7}/MANIFEST.in +0 -0
  8. {safentic-1.0.6 → safentic-1.0.7}/README.md +0 -0
  9. {safentic-1.0.6 → safentic-1.0.7}/requirements/constraints.txt +0 -0
  10. {safentic-1.0.6 → safentic-1.0.7}/requirements/requirements-dev.txt +0 -0
  11. {safentic-1.0.6 → safentic-1.0.7}/requirements/requirements.txt +0 -0
  12. {safentic-1.0.6 → safentic-1.0.7}/safentic/_internal/errors.py +0 -0
  13. {safentic-1.0.6 → safentic-1.0.7}/safentic/adapters/mcp_adapter.py +0 -0
  14. {safentic-1.0.6 → safentic-1.0.7}/safentic/cli/__init__.py +0 -0
  15. {safentic-1.0.6 → safentic-1.0.7}/safentic/cli/commands/check_tool.py +0 -0
  16. {safentic-1.0.6 → safentic-1.0.7}/safentic/cli/commands/logs.py +0 -0
  17. {safentic-1.0.6 → safentic-1.0.7}/safentic/cli/commands/validate_policy.py +0 -0
  18. {safentic-1.0.6 → safentic-1.0.7}/safentic/cli/main.py +0 -0
  19. {safentic-1.0.6 → safentic-1.0.7}/safentic/cli/utils.py +0 -0
  20. {safentic-1.0.6 → safentic-1.0.7}/safentic/config.py +0 -0
  21. {safentic-1.0.6 → safentic-1.0.7}/safentic/decorators.py +0 -0
  22. {safentic-1.0.6 → safentic-1.0.7}/safentic/helper/__init__.py +0 -0
  23. {safentic-1.0.6 → safentic-1.0.7}/safentic/helper/helper.py +0 -0
  24. {safentic-1.0.6 → safentic-1.0.7}/safentic/logger/__init__.py +0 -0
  25. {safentic-1.0.6 → safentic-1.0.7}/safentic/logger/audit.py +0 -0
  26. {safentic-1.0.6 → safentic-1.0.7}/safentic/policy_enforcer.py +0 -0
  27. {safentic-1.0.6 → safentic-1.0.7}/safentic/policy_engine.py +0 -0
  28. {safentic-1.0.6 → safentic-1.0.7}/safentic/verifiers/__init__.py +0 -0
  29. {safentic-1.0.6 → safentic-1.0.7}/safentic/verifiers/llm_verifier.py +0 -0
  30. {safentic-1.0.6 → safentic-1.0.7}/safentic.egg-info/SOURCES.txt +0 -0
  31. {safentic-1.0.6 → safentic-1.0.7}/safentic.egg-info/dependency_links.txt +0 -0
  32. {safentic-1.0.6 → safentic-1.0.7}/safentic.egg-info/entry_points.txt +0 -0
  33. {safentic-1.0.6 → safentic-1.0.7}/safentic.egg-info/requires.txt +0 -0
  34. {safentic-1.0.6 → safentic-1.0.7}/safentic.egg-info/top_level.txt +0 -0
  35. {safentic-1.0.6 → safentic-1.0.7}/safentic_poc/backend/__init__.py +0 -0
  36. {safentic-1.0.6 → safentic-1.0.7}/safentic_poc/backend/api/__init__.py +0 -0
  37. {safentic-1.0.6 → safentic-1.0.7}/safentic_poc/backend/api/main.py +0 -0
  38. {safentic-1.0.6 → safentic-1.0.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: safentic
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: Safentic SDK for AI agent runtime enforcement interception.
5
5
  Author-email: Safentic <contact@safentic.com>
6
6
  License-Expression: LicenseRef-Proprietary
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "safentic"
3
- version = "1.0.6"
3
+ version = "1.0.7"
4
4
  description = "Safentic SDK for AI agent runtime enforcement interception."
5
5
  authors = [{ name = "Safentic", email = "contact@safentic.com" }]
6
6
  readme = "README.md"
@@ -2,4 +2,4 @@ from .layer import SafetyLayer
2
2
  from ._internal.errors import SafenticError
3
3
 
4
4
  __all__ = ["SafetyLayer", "SafenticError"]
5
- __version__ = "1.0.6"
5
+ __version__ = "1.0.7"
@@ -52,17 +52,14 @@ class SafetyLayer:
52
52
  self.raise_on_block: bool = raise_on_block
53
53
  self.logger: AuditLogger = AuditLogger()
54
54
 
55
- # Decide where policy.yaml lives (env var > default repo path)
56
55
  policy_path = os.getenv(
57
56
  "SAFENTIC_POLICY_PATH",
58
- os.path.join(
59
- os.path.dirname(__file__), "..", "policy_file_docs", "policy.yaml"
60
- ),
57
+ os.path.abspath(os.path.join(os.getcwd(), "config", "policy.yaml")),
61
58
  )
62
59
 
63
60
  # Build engine and inject API key to verifier
64
61
  engine = PolicyEngine(policy_path=policy_path)
65
- engine.llm.set_api_key(api_key)
62
+ engine.llm.set_api_key(os.getenv("OPENAI_API_KEY", ""))
66
63
 
67
64
  # Strict enforcer injection
68
65
  self.enforcer = PolicyEnforcer(policy_engine=engine)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: safentic
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: Safentic SDK for AI agent runtime enforcement interception.
5
5
  Author-email: Safentic <contact@safentic.com>
6
6
  License-Expression: LicenseRef-Proprietary
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes