hcli-hai 2.1.1__tar.gz → 2.1.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.
- {hcli_hai-2.1.1/hcli_hai.egg-info → hcli_hai-2.1.3}/PKG-INFO +2 -2
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/cli.py +11 -11
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/package.py +1 -1
- {hcli_hai-2.1.1 → hcli_hai-2.1.3/hcli_hai.egg-info}/PKG-INFO +2 -2
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai.egg-info/SOURCES.txt +0 -9
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/pyproject.toml +4 -1
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/setup.cfg +1 -1
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/tests/test_hai.py +2 -2
- hcli_hai-2.1.1/hcli_hai/cli/__pycache__/ai.cpython-311.pyc +0 -0
- hcli_hai-2.1.1/hcli_hai/cli/__pycache__/cli.cpython-311.pyc +0 -0
- hcli_hai-2.1.1/hcli_hai/cli/__pycache__/config.cpython-311.pyc +0 -0
- hcli_hai-2.1.1/hcli_hai/cli/__pycache__/context.cpython-311.pyc +0 -0
- hcli_hai-2.1.1/hcli_hai/cli/__pycache__/logger.cpython-311.pyc +0 -0
- hcli_hai-2.1.1/hcli_hai/cli/__pycache__/model.cpython-311.pyc +0 -0
- hcli_hai-2.1.1/hcli_hai/cli/utils/__pycache__/formatting.cpython-311.pyc +0 -0
- hcli_hai-2.1.1/hcli_hai/cli/utils/__pycache__/hutils.cpython-311.pyc +0 -0
- hcli_hai-2.1.1/hcli_hai/cli/utils/__pycache__/summary.cpython-311.pyc +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/LICENSE.txt +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/MANIFEST.in +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/README.rst +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/__init__.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/__main__.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/__init__.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/ai.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/config.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/context.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/logger.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/model.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/template.json +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/utils/formatting.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/utils/hutils.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/cli/utils/summary.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/config.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/data/hcli_hai.1 +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai/hutils.py +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai.egg-info/dependency_links.txt +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai.egg-info/entry_points.txt +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai.egg-info/requires.txt +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/hcli_hai.egg-info/top_level.txt +0 -0
- {hcli_hai-2.1.1 → hcli_hai-2.1.3}/requirements.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: hcli_hai
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.3
|
|
4
4
|
Summary: HCLI hai is a python package wrapper that contains an HCLI sample application (hai); hai is an HCLI for interacting with Anthropic's Claude or OpenAI's GPT AI models via terminal input and output streams.
|
|
5
5
|
Author-email: Jeff Michaud <cometaj2@comcast.net>
|
|
6
6
|
License: MIT
|
|
@@ -27,7 +27,7 @@ class CLI:
|
|
|
27
27
|
if len(self.commands) == 1:
|
|
28
28
|
if self.inputstream is not None:
|
|
29
29
|
response = self.ai.chat(self.inputstream)
|
|
30
|
-
return io.BytesIO(response.encode('utf-8')
|
|
30
|
+
return io.BytesIO(response.encode('utf-8'))
|
|
31
31
|
|
|
32
32
|
if self.commands[1] == "clear":
|
|
33
33
|
self.ai.clear()
|
|
@@ -36,22 +36,22 @@ class CLI:
|
|
|
36
36
|
if self.commands[1] == "context":
|
|
37
37
|
if len(self.commands) == 2:
|
|
38
38
|
context = self.ai.get_context()
|
|
39
|
-
return io.BytesIO(context.serialize().encode('utf-8')
|
|
39
|
+
return io.BytesIO(context.serialize().encode('utf-8'))
|
|
40
40
|
if len(self.commands) == 3:
|
|
41
41
|
readable_context = self.ai.get_readable_context()
|
|
42
|
-
return io.BytesIO(readable_context.encode('utf-8')
|
|
42
|
+
return io.BytesIO(readable_context.encode('utf-8'))
|
|
43
43
|
|
|
44
44
|
if self.commands[1] == "ls":
|
|
45
45
|
contexts = self.ai.ls()
|
|
46
|
-
return io.BytesIO(json.dumps(contexts, indent=4).encode('utf-8')
|
|
46
|
+
return io.BytesIO(json.dumps(contexts, indent=4).encode('utf-8'))
|
|
47
47
|
|
|
48
48
|
if self.commands[1] == "new":
|
|
49
49
|
current = self.ai.new()
|
|
50
|
-
return io.BytesIO(current.encode('utf-8')
|
|
50
|
+
return io.BytesIO(current.encode('utf-8'))
|
|
51
51
|
|
|
52
52
|
if self.commands[1] == "current":
|
|
53
53
|
current = self.ai.current()
|
|
54
|
-
return io.BytesIO(current.encode('utf-8')
|
|
54
|
+
return io.BytesIO(current.encode('utf-8'))
|
|
55
55
|
|
|
56
56
|
if self.commands[1] == "behavior":
|
|
57
57
|
if self.inputstream is not None:
|
|
@@ -62,9 +62,9 @@ class CLI:
|
|
|
62
62
|
if len(self.commands) == 2:
|
|
63
63
|
name = self.ai.name()
|
|
64
64
|
if name is not None:
|
|
65
|
-
return io.BytesIO(name.encode('utf-8')
|
|
65
|
+
return io.BytesIO(name.encode('utf-8'))
|
|
66
66
|
else:
|
|
67
|
-
return io.BytesIO(b"None
|
|
67
|
+
return io.BytesIO(b"None")
|
|
68
68
|
|
|
69
69
|
if len(self.commands) == 4:
|
|
70
70
|
if self.commands[2] == "set":
|
|
@@ -75,14 +75,14 @@ class CLI:
|
|
|
75
75
|
if len(self.commands) == 2:
|
|
76
76
|
model = self.ai.model()
|
|
77
77
|
if model is not None:
|
|
78
|
-
return io.BytesIO(model.encode('utf-8')
|
|
78
|
+
return io.BytesIO(model.encode('utf-8'))
|
|
79
79
|
else:
|
|
80
|
-
return io.BytesIO(b"None
|
|
80
|
+
return io.BytesIO(b"None")
|
|
81
81
|
|
|
82
82
|
if len(self.commands) == 3:
|
|
83
83
|
if self.commands[2] == "ls":
|
|
84
84
|
models = self.ai.list_models()
|
|
85
|
-
return io.BytesIO(json.dumps(models, indent=4).encode('utf-8')
|
|
85
|
+
return io.BytesIO(json.dumps(models, indent=4).encode('utf-8'))
|
|
86
86
|
|
|
87
87
|
if len(self.commands) == 4:
|
|
88
88
|
if self.commands[2] == "set":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: hcli_hai
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.3
|
|
4
4
|
Summary: HCLI hai is a python package wrapper that contains an HCLI sample application (hai); hai is an HCLI for interacting with Anthropic's Claude or OpenAI's GPT AI models via terminal input and output streams.
|
|
5
5
|
Author-email: Jeff Michaud <cometaj2@comcast.net>
|
|
6
6
|
License: MIT
|
|
@@ -23,17 +23,8 @@ hcli_hai/cli/context.py
|
|
|
23
23
|
hcli_hai/cli/logger.py
|
|
24
24
|
hcli_hai/cli/model.py
|
|
25
25
|
hcli_hai/cli/template.json
|
|
26
|
-
hcli_hai/cli/__pycache__/ai.cpython-311.pyc
|
|
27
|
-
hcli_hai/cli/__pycache__/cli.cpython-311.pyc
|
|
28
|
-
hcli_hai/cli/__pycache__/config.cpython-311.pyc
|
|
29
|
-
hcli_hai/cli/__pycache__/context.cpython-311.pyc
|
|
30
|
-
hcli_hai/cli/__pycache__/logger.cpython-311.pyc
|
|
31
|
-
hcli_hai/cli/__pycache__/model.cpython-311.pyc
|
|
32
26
|
hcli_hai/cli/utils/formatting.py
|
|
33
27
|
hcli_hai/cli/utils/hutils.py
|
|
34
28
|
hcli_hai/cli/utils/summary.py
|
|
35
|
-
hcli_hai/cli/utils/__pycache__/formatting.cpython-311.pyc
|
|
36
|
-
hcli_hai/cli/utils/__pycache__/hutils.cpython-311.pyc
|
|
37
|
-
hcli_hai/cli/utils/__pycache__/summary.cpython-311.pyc
|
|
38
29
|
hcli_hai/data/hcli_hai.1
|
|
39
30
|
tests/test_hai.py
|
|
@@ -31,7 +31,10 @@ version = {attr = "hcli_hai.package.__version__"}
|
|
|
31
31
|
dependencies = {file = "requirements.txt"}
|
|
32
32
|
|
|
33
33
|
[tool.setuptools]
|
|
34
|
-
packages = ["hcli_hai"
|
|
34
|
+
packages = ["hcli_hai",
|
|
35
|
+
"hcli_hai.cli",
|
|
36
|
+
"hcli_hai.cli.utils",
|
|
37
|
+
"hcli_hai.data"]
|
|
35
38
|
include-package-data = true
|
|
36
39
|
|
|
37
40
|
[tool.setuptools.package-data]
|
|
@@ -37,7 +37,7 @@ def test_hai_context():
|
|
|
37
37
|
print(error)
|
|
38
38
|
print(result)
|
|
39
39
|
|
|
40
|
-
assert(result == '{\n "messages": [\n {\n "content": "",\n "role": "system"\n }\n ],\n "name": "",\n "title": ""\n}
|
|
40
|
+
assert(result == '{\n "messages": [\n {\n "content": "",\n "role": "system"\n }\n ],\n "name": "",\n "title": ""\n}')
|
|
41
41
|
|
|
42
42
|
def test_hai_name():
|
|
43
43
|
hello = """
|
|
@@ -57,4 +57,4 @@ def test_hai_name():
|
|
|
57
57
|
print(error)
|
|
58
58
|
print(result)
|
|
59
59
|
|
|
60
|
-
assert(result == 'hello
|
|
60
|
+
assert(result == 'hello')
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|
|
File without changes
|
|
File without changes
|