hipcortex 0.3.0__tar.gz → 0.3.1__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.
- {hipcortex-0.3.0 → hipcortex-0.3.1}/PKG-INFO +1 -1
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/cli.py +25 -16
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex.egg-info/PKG-INFO +1 -1
- {hipcortex-0.3.0 → hipcortex-0.3.1}/pyproject.toml +49 -49
- {hipcortex-0.3.0 → hipcortex-0.3.1}/README.md +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/__init__.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/adapters/__init__.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/adapters/autogen.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/adapters/crewai.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/async_client.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/client.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/install/SKILL.md +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/install/__init__.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/langchain_memory.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex/llamaindex_storage.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex.egg-info/SOURCES.txt +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex.egg-info/dependency_links.txt +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex.egg-info/entry_points.txt +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex.egg-info/requires.txt +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/hipcortex.egg-info/top_level.txt +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/setup.cfg +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/setup.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/tests/test_async_client.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/tests/test_async_langchain.py +0 -0
- {hipcortex-0.3.0 → hipcortex-0.3.1}/tests/test_cli_install.py +0 -0
|
@@ -696,22 +696,29 @@ def _getch() -> str:
|
|
|
696
696
|
|
|
697
697
|
def _run_wizard(agents: list) -> list:
|
|
698
698
|
"""Interactive multi-select. Skips section headers. Returns selected agent dicts."""
|
|
699
|
-
|
|
699
|
+
import re as _re
|
|
700
700
|
selectable = [i for i, a in enumerate(agents) if a["type"] != "section"]
|
|
701
701
|
n_all = len(agents)
|
|
702
702
|
selected: set = set()
|
|
703
|
-
sel_cursor = 0
|
|
703
|
+
sel_cursor = 0
|
|
704
704
|
|
|
705
705
|
def _display_name(a: dict) -> str:
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
706
|
+
return _re.sub(r'\033\[[^m]*m', '', a["name"])
|
|
707
|
+
|
|
708
|
+
# On Windows, cursor-up ANSI codes corrupt the display.
|
|
709
|
+
# Use cls-style redraw: print a blank separator then full list.
|
|
710
|
+
_is_windows = platform.system() == "Windows"
|
|
709
711
|
|
|
710
712
|
def render():
|
|
711
|
-
|
|
713
|
+
cur_real = selectable[sel_cursor] if selectable else -1
|
|
714
|
+
if _is_windows:
|
|
715
|
+
# Windows: no cursor-up — just reprint with blank line separator
|
|
716
|
+
print()
|
|
717
|
+
else:
|
|
718
|
+
# Unix: move cursor up to overwrite previous render
|
|
719
|
+
print(f"\033[{n_all + 3}A", end="")
|
|
712
720
|
print(f" {_BOLD}Select what to configure:{_RESET} {_GRAY}(Space toggle · Enter confirm · q quit){_RESET}")
|
|
713
721
|
print()
|
|
714
|
-
cur_real = selectable[sel_cursor] if selectable else -1
|
|
715
722
|
for i, agent in enumerate(agents):
|
|
716
723
|
if agent["type"] == "section":
|
|
717
724
|
print(f" {_DIM}{agent['name']}{_RESET}")
|
|
@@ -734,15 +741,17 @@ def _run_wizard(agents: list) -> list:
|
|
|
734
741
|
count = len(selected)
|
|
735
742
|
print(f"\n {_GREEN}{count} selected{_RESET}" if count else f"\n {_GRAY}none selected{_RESET}")
|
|
736
743
|
|
|
737
|
-
# Initial draw
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
744
|
+
# Initial draw
|
|
745
|
+
if not _is_windows:
|
|
746
|
+
# Reserve lines for cursor-up redraw on Unix
|
|
747
|
+
print(f" {_BOLD}Select what to configure:{_RESET}")
|
|
748
|
+
print()
|
|
749
|
+
for agent in agents:
|
|
750
|
+
if agent["type"] == "section":
|
|
751
|
+
print(f" {_DIM}{agent['name']}{_RESET}")
|
|
752
|
+
else:
|
|
753
|
+
print(f" ○ {_display_name(agent):<20} {_DIM}{agent['desc']}{_RESET}")
|
|
754
|
+
print()
|
|
746
755
|
|
|
747
756
|
render()
|
|
748
757
|
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools>=68", "wheel"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "hipcortex"
|
|
7
|
-
version = "0.3.
|
|
8
|
-
description = "Persistent causal memory for AI agents -- LangChain, LlamaIndex, AutoGen, CrewAI"
|
|
9
|
-
readme = "README.md"
|
|
10
|
-
license = {text = "Apache-2.0"}
|
|
11
|
-
requires-python = ">=3.9"
|
|
12
|
-
authors = [{name = "HipCortex Contributors"}]
|
|
13
|
-
keywords = ["ai", "memory", "langchain", "autogen", "crewai", "llm", "agents", "rag"]
|
|
14
|
-
classifiers = [
|
|
15
|
-
"Programming Language :: Python :: 3",
|
|
16
|
-
"License :: OSI Approved :: Apache Software License",
|
|
17
|
-
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
18
|
-
"Intended Audience :: Developers",
|
|
19
|
-
]
|
|
20
|
-
dependencies = ["requests>=2.28", "httpx>=0.27"]
|
|
21
|
-
|
|
22
|
-
[project.optional-dependencies]
|
|
23
|
-
langchain = ["langchain-core>=0.1"]
|
|
24
|
-
llamaindex = ["llama-index-core>=0.10"]
|
|
25
|
-
crewai = ["crewai>=0.28", "crewai-tools>=0.1"]
|
|
26
|
-
autogen = ["pyautogen>=0.2"]
|
|
27
|
-
benchmark = ["mem0ai>=0.1", "tabulate>=0.9"]
|
|
28
|
-
all = ["langchain-core>=0.1", "llama-index-core>=0.10",
|
|
29
|
-
"crewai>=0.28", "crewai-tools>=0.1",
|
|
30
|
-
"pyautogen>=0.2", "mem0ai>=0.1", "tabulate>=0.9"]
|
|
31
|
-
|
|
32
|
-
[project.scripts]
|
|
33
|
-
hipcortex = "hipcortex.cli:main"
|
|
34
|
-
|
|
35
|
-
[project.urls]
|
|
36
|
-
Homepage = "https://github.com/farmountain/HipCortex"
|
|
37
|
-
Repository = "https://github.com/farmountain/HipCortex"
|
|
38
|
-
Issues = "https://github.com/farmountain/HipCortex/issues"
|
|
39
|
-
Benchmark = "https://github.com/farmountain/HipCortex/blob/main/BENCHMARK.md"
|
|
40
|
-
|
|
41
|
-
[tool.setuptools.packages.find]
|
|
42
|
-
where = ["."]
|
|
43
|
-
include = ["hipcortex*"]
|
|
44
|
-
|
|
45
|
-
[tool.setuptools.package-data]
|
|
46
|
-
"hipcortex.install" = ["SKILL.md"]
|
|
47
|
-
|
|
48
|
-
[tool.pytest.ini_options]
|
|
49
|
-
asyncio_mode = "auto"
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "hipcortex"
|
|
7
|
+
version = "0.3.1"
|
|
8
|
+
description = "Persistent causal memory for AI agents -- LangChain, LlamaIndex, AutoGen, CrewAI"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "Apache-2.0"}
|
|
11
|
+
requires-python = ">=3.9"
|
|
12
|
+
authors = [{name = "HipCortex Contributors"}]
|
|
13
|
+
keywords = ["ai", "memory", "langchain", "autogen", "crewai", "llm", "agents", "rag"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: Apache Software License",
|
|
17
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
]
|
|
20
|
+
dependencies = ["requests>=2.28", "httpx>=0.27"]
|
|
21
|
+
|
|
22
|
+
[project.optional-dependencies]
|
|
23
|
+
langchain = ["langchain-core>=0.1"]
|
|
24
|
+
llamaindex = ["llama-index-core>=0.10"]
|
|
25
|
+
crewai = ["crewai>=0.28", "crewai-tools>=0.1"]
|
|
26
|
+
autogen = ["pyautogen>=0.2"]
|
|
27
|
+
benchmark = ["mem0ai>=0.1", "tabulate>=0.9"]
|
|
28
|
+
all = ["langchain-core>=0.1", "llama-index-core>=0.10",
|
|
29
|
+
"crewai>=0.28", "crewai-tools>=0.1",
|
|
30
|
+
"pyautogen>=0.2", "mem0ai>=0.1", "tabulate>=0.9"]
|
|
31
|
+
|
|
32
|
+
[project.scripts]
|
|
33
|
+
hipcortex = "hipcortex.cli:main"
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
Homepage = "https://github.com/farmountain/HipCortex"
|
|
37
|
+
Repository = "https://github.com/farmountain/HipCortex"
|
|
38
|
+
Issues = "https://github.com/farmountain/HipCortex/issues"
|
|
39
|
+
Benchmark = "https://github.com/farmountain/HipCortex/blob/main/BENCHMARK.md"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.packages.find]
|
|
42
|
+
where = ["."]
|
|
43
|
+
include = ["hipcortex*"]
|
|
44
|
+
|
|
45
|
+
[tool.setuptools.package-data]
|
|
46
|
+
"hipcortex.install" = ["SKILL.md"]
|
|
47
|
+
|
|
48
|
+
[tool.pytest.ini_options]
|
|
49
|
+
asyncio_mode = "auto"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|