vulcan-core 1.1.4__py3-none-any.whl → 1.1.5__py3-none-any.whl

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.

Potentially problematic release.


This version of vulcan-core might be problematic. Click here for more details.

vulcan_core/ast_utils.py CHANGED
@@ -279,13 +279,10 @@ class ASTProcessor[T: Callable]:
279
279
 
280
280
  try:
281
281
  # Get the source file and line number
282
- filename = self.func.__code__.co_filename
282
+ # Avoid reading source from files directly, as it may fail in some cases (e.g., lambdas in REPL)
283
+ file_content = "".join(inspect.findsource(self.func)[0])
283
284
  lambda_lineno = self.func.__code__.co_firstlineno
284
285
 
285
- # Read the source file
286
- with open(filename, encoding="utf-8") as f:
287
- file_content = f.read()
288
-
289
286
  # Parse the AST of the source file
290
287
  file_ast = ast.parse(file_content)
291
288
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: vulcan-core
3
- Version: 1.1.4
3
+ Version: 1.1.5
4
4
  Summary: AI-Hybrid Rules Engine for Logical Reasoning.
5
5
  License: Apache-2.0
6
6
  Keywords: rules,logic,reasoning,ai,artificial intelligence,RAG,LLM
@@ -1,12 +1,12 @@
1
1
  vulcan_core/__init__.py,sha256=pjCnmbMjrsp672WXRQeOV0aSKUEoA_mj0o7q_ouMWs8,1057
2
2
  vulcan_core/actions.py,sha256=RO5w5X-drxtDY_mVv0xR2njasWkGPt1AZo9RXsBi8X0,917
3
- vulcan_core/ast_utils.py,sha256=E0QOr2t49U8kCKtl52KTI8GJCTuBBWYfVLwCzRjZFn0,21340
3
+ vulcan_core/ast_utils.py,sha256=pD-l2DYsP7CZrMkvQxQIu2-7uiC9vSEgMG0X_SmujF4,21332
4
4
  vulcan_core/conditions.py,sha256=ZK4plEO2dB7gq0esroEhL29naB_qAsoU4AVSv0rXClk,15670
5
5
  vulcan_core/engine.py,sha256=WjayTDEjKaIEVkkSZyDjdbu1Xy1XIvPewI83l6Sjo9g,9672
6
6
  vulcan_core/models.py,sha256=7um3u-rAy9gg2otTnZFGlKfHJKfsvGEosU3mGq_0jyg,8964
7
7
  vulcan_core/util.py,sha256=Uq5uWhrfWd8fNv6IeeTFZRGeLBAECPZUx63UjbbSMrA,3420
8
- vulcan_core-1.1.4.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
9
- vulcan_core-1.1.4.dist-info/METADATA,sha256=ppV9WmJ7nFE7zBaBbtkCK7VGAaZCM2rD0I35Ck6OtfY,4425
10
- vulcan_core-1.1.4.dist-info/NOTICE,sha256=UN1_Gd_Snmu8T62mxExNUdIF2o7DMdGu8bI8rKqhVnc,244
11
- vulcan_core-1.1.4.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
12
- vulcan_core-1.1.4.dist-info/RECORD,,
8
+ vulcan_core-1.1.5.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
9
+ vulcan_core-1.1.5.dist-info/METADATA,sha256=9eM53T0S7-euOXHCQAALdwphuyp34jcrBAGyRpVNo-w,4425
10
+ vulcan_core-1.1.5.dist-info/NOTICE,sha256=UN1_Gd_Snmu8T62mxExNUdIF2o7DMdGu8bI8rKqhVnc,244
11
+ vulcan_core-1.1.5.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
12
+ vulcan_core-1.1.5.dist-info/RECORD,,