aurora-actr 0.3.1__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.
@@ -0,0 +1,42 @@
1
+ """
2
+ Aurora Reasoning Namespace Package
3
+
4
+ Provides transparent access to aurora_reasoning package through the aurora.reasoning namespace.
5
+ This enables imports like:
6
+ from aurora.reasoning.decompose import decompose_problem
7
+ from aurora.reasoning.synthesize import synthesize_solution
8
+ """
9
+
10
+ import importlib
11
+ import sys
12
+
13
+
14
+ # Pre-populate sys.modules with all known submodules to enable direct imports
15
+ _SUBMODULES = ["decompose", "llm_client", "prompts", "synthesize", "verify"]
16
+
17
+ for _submodule_name in _SUBMODULES:
18
+ _original = f"aurora_reasoning.{_submodule_name}"
19
+ _namespace = f"aurora.reasoning.{_submodule_name}"
20
+ try:
21
+ if _original not in sys.modules:
22
+ _module = importlib.import_module(_original)
23
+ else:
24
+ _module = sys.modules[_original]
25
+ sys.modules[_namespace] = _module
26
+ except ImportError:
27
+ pass # Submodule may not exist yet
28
+
29
+
30
+ def __getattr__(name):
31
+ """Dynamically import submodules from aurora_reasoning when accessed."""
32
+ original_module_name = f"aurora_reasoning.{name}"
33
+ try:
34
+ module = importlib.import_module(original_module_name)
35
+ sys.modules[f"aurora.reasoning.{name}"] = module
36
+ return module
37
+ except ImportError:
38
+ raise AttributeError(f"module 'aurora.reasoning' has no attribute '{name}'")
39
+
40
+
41
+ # Re-export all public members
42
+ from aurora_reasoning import * # noqa: E402, F401, F403, I001
File without changes
@@ -0,0 +1 @@
1
+ """Aurora scripts package."""
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env python3
2
+ """AURORA Uninstall Helper Script.
3
+
4
+ Removes all AURORA packages cleanly.
5
+ """
6
+
7
+ import argparse
8
+ import subprocess
9
+ import sys
10
+ from pathlib import Path
11
+
12
+
13
+ def main():
14
+ """Main uninstall function."""
15
+ parser = argparse.ArgumentParser(
16
+ description="Uninstall all AURORA packages",
17
+ formatter_class=argparse.RawDescriptionHelpFormatter,
18
+ )
19
+ parser.add_argument(
20
+ "--keep-config",
21
+ action="store_true",
22
+ help="Keep ~/.aurora configuration directory",
23
+ )
24
+ parser.add_argument(
25
+ "--yes",
26
+ "-y",
27
+ action="store_true",
28
+ help="Skip confirmation prompt",
29
+ )
30
+
31
+ args = parser.parse_args()
32
+
33
+ # List of packages to uninstall
34
+ packages = [
35
+ "aurora", # Meta-package
36
+ "aurora-core",
37
+ "aurora-context-code",
38
+ "aurora-soar",
39
+ "aurora-reasoning",
40
+ "aurora-cli",
41
+ "aurora-testing",
42
+ ]
43
+
44
+ print("\n[AURORA Uninstall]")
45
+ print("\nThe following packages will be removed:")
46
+ for pkg in packages:
47
+ print(f" - {pkg}")
48
+
49
+ if not args.keep_config:
50
+ config_dir = Path.home() / ".aurora"
51
+ if config_dir.exists():
52
+ print("\nConfiguration directory will be removed:")
53
+ print(f" - {config_dir}")
54
+
55
+ # Confirmation
56
+ if not args.yes:
57
+ response = input("\nProceed with uninstall? [y/N]: ")
58
+ if response.lower() != "y":
59
+ print("Uninstall cancelled.")
60
+ sys.exit(0)
61
+
62
+ print("\n[Uninstalling packages...]")
63
+
64
+ # Uninstall each package
65
+ for pkg in packages:
66
+ print(f"\n→ Removing {pkg}...")
67
+ try:
68
+ result = subprocess.run(
69
+ [sys.executable, "-m", "pip", "uninstall", "-y", pkg],
70
+ capture_output=True,
71
+ text=True,
72
+ )
73
+ if result.returncode == 0:
74
+ print(f"✓ {pkg} removed")
75
+ else:
76
+ # Package might not be installed - that's okay
77
+ if (
78
+ "not installed" in result.stdout.lower()
79
+ or "not installed" in result.stderr.lower()
80
+ ):
81
+ print(f" {pkg} was not installed (skipping)")
82
+ else:
83
+ print(f"⚠ Failed to remove {pkg}: {result.stderr}")
84
+ except Exception as e:
85
+ print(f"⚠ Error removing {pkg}: {e}")
86
+
87
+ # Remove config directory if requested
88
+ if not args.keep_config:
89
+ config_dir = Path.home() / ".aurora"
90
+ if config_dir.exists():
91
+ print("\n→ Removing configuration directory...")
92
+ try:
93
+ import shutil
94
+
95
+ shutil.rmtree(config_dir)
96
+ print(f"✓ Removed {config_dir}")
97
+ except Exception as e:
98
+ print(f"⚠ Failed to remove {config_dir}: {e}")
99
+ print(f" You can manually remove it with: rm -rf {config_dir}")
100
+
101
+ print("\n✓ AURORA uninstall complete!\n")
102
+
103
+
104
+ if __name__ == "__main__":
105
+ main()
@@ -0,0 +1,42 @@
1
+ """
2
+ Aurora SOAR Namespace Package
3
+
4
+ Provides transparent access to aurora_soar package through the aurora.soar namespace.
5
+ This enables imports like:
6
+ from aurora.soar.orchestrator import SOAROrchestrator
7
+ from aurora.soar.phases.implementation import ImplementationPhase
8
+ """
9
+
10
+ import importlib
11
+ import sys
12
+
13
+
14
+ # Pre-populate sys.modules with all known submodules to enable direct imports
15
+ _SUBMODULES = ["agent_registry", "headless", "orchestrator", "phases"]
16
+
17
+ for _submodule_name in _SUBMODULES:
18
+ _original = f"aurora_soar.{_submodule_name}"
19
+ _namespace = f"aurora.soar.{_submodule_name}"
20
+ try:
21
+ if _original not in sys.modules:
22
+ _module = importlib.import_module(_original)
23
+ else:
24
+ _module = sys.modules[_original]
25
+ sys.modules[_namespace] = _module
26
+ except ImportError:
27
+ pass # Submodule may not exist yet
28
+
29
+
30
+ def __getattr__(name):
31
+ """Dynamically import submodules from aurora_soar when accessed."""
32
+ original_module_name = f"aurora_soar.{name}"
33
+ try:
34
+ module = importlib.import_module(original_module_name)
35
+ sys.modules[f"aurora.soar.{name}"] = module
36
+ return module
37
+ except ImportError:
38
+ raise AttributeError(f"module 'aurora.soar' has no attribute '{name}'")
39
+
40
+
41
+ # Re-export all public members
42
+ from aurora_soar import * # noqa: E402, F401, F403, I001
aurora/soar/py.typed ADDED
File without changes
@@ -0,0 +1,42 @@
1
+ """
2
+ Aurora Testing Namespace Package
3
+
4
+ Provides transparent access to aurora_testing package through the aurora.testing namespace.
5
+ This enables imports like:
6
+ from aurora.testing.fixtures import create_test_chunk
7
+ from aurora.testing.mocks import MockMemoryStore
8
+ """
9
+
10
+ import importlib
11
+ import sys
12
+
13
+
14
+ # Pre-populate sys.modules with all known submodules to enable direct imports
15
+ _SUBMODULES = ["benchmarks", "fixtures", "mocks"]
16
+
17
+ for _submodule_name in _SUBMODULES:
18
+ _original = f"aurora_testing.{_submodule_name}"
19
+ _namespace = f"aurora.testing.{_submodule_name}"
20
+ try:
21
+ if _original not in sys.modules:
22
+ _module = importlib.import_module(_original)
23
+ else:
24
+ _module = sys.modules[_original]
25
+ sys.modules[_namespace] = _module
26
+ except ImportError:
27
+ pass # Submodule may not exist yet
28
+
29
+
30
+ def __getattr__(name):
31
+ """Dynamically import submodules from aurora_testing when accessed."""
32
+ original_module_name = f"aurora_testing.{name}"
33
+ try:
34
+ module = importlib.import_module(original_module_name)
35
+ sys.modules[f"aurora.testing.{name}"] = module
36
+ return module
37
+ except ImportError:
38
+ raise AttributeError(f"module 'aurora.testing' has no attribute '{name}'")
39
+
40
+
41
+ # Re-export all public members
42
+ from aurora_testing import * # noqa: E402, F401, F403, I001
File without changes