hcli-hai 2.0.0__tar.gz → 2.1.0__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.0.0/hcli_hai.egg-info → hcli_hai-2.1.0}/PKG-INFO +1 -1
- hcli_hai-2.1.0/hcli_hai/cli/__pycache__/ai.cpython-311.pyc +0 -0
- hcli_hai-2.1.0/hcli_hai/cli/__pycache__/cli.cpython-311.pyc +0 -0
- hcli_hai-2.1.0/hcli_hai/cli/__pycache__/config.cpython-311.pyc +0 -0
- hcli_hai-2.1.0/hcli_hai/cli/__pycache__/context.cpython-311.pyc +0 -0
- hcli_hai-2.1.0/hcli_hai/cli/__pycache__/logger.cpython-311.pyc +0 -0
- hcli_hai-2.1.0/hcli_hai/cli/__pycache__/model.cpython-311.pyc +0 -0
- hcli_hai-2.1.0/hcli_hai/cli/utils/__pycache__/formatting.cpython-311.pyc +0 -0
- hcli_hai-2.1.0/hcli_hai/cli/utils/__pycache__/hutils.cpython-311.pyc +0 -0
- hcli_hai-2.1.0/hcli_hai/cli/utils/__pycache__/summary.cpython-311.pyc +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/package.py +1 -1
- {hcli_hai-2.0.0 → hcli_hai-2.1.0/hcli_hai.egg-info}/PKG-INFO +1 -1
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai.egg-info/SOURCES.txt +9 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/tests/test_hai.py +21 -4
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/LICENSE.txt +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/MANIFEST.in +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/README.rst +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/__init__.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/__main__.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/__init__.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/ai.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/cli.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/config.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/context.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/logger.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/model.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/template.json +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/utils/formatting.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/utils/hutils.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/cli/utils/summary.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/config.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/data/hcli_hai.1 +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai/hutils.py +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai.egg-info/dependency_links.txt +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai.egg-info/entry_points.txt +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai.egg-info/requires.txt +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/hcli_hai.egg-info/top_level.txt +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/pyproject.toml +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/requirements.txt +0 -0
- {hcli_hai-2.0.0 → hcli_hai-2.1.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hcli_hai
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hcli_hai
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
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,8 +23,17 @@ 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
|
|
26
32
|
hcli_hai/cli/utils/formatting.py
|
|
27
33
|
hcli_hai/cli/utils/hutils.py
|
|
28
34
|
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
|
|
29
38
|
hcli_hai/data/hcli_hai.1
|
|
30
39
|
tests/test_hai.py
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
from __future__ import absolute_import, division, print_function
|
|
2
|
-
|
|
3
1
|
import subprocess
|
|
4
2
|
import os
|
|
5
3
|
|
|
6
|
-
def
|
|
4
|
+
def test_hai_context():
|
|
7
5
|
setup = """
|
|
8
6
|
#!/bin/bash
|
|
9
7
|
set -x
|
|
@@ -30,7 +28,6 @@ def test_function():
|
|
|
30
28
|
eval $(huckle env)
|
|
31
29
|
hai new > /dev/null 2>&1
|
|
32
30
|
hai context
|
|
33
|
-
kill $(ps aux | grep '[g]unicorn' | awk '{print $2}')
|
|
34
31
|
"""
|
|
35
32
|
|
|
36
33
|
p2 = subprocess.Popen(['bash', '-c', hello], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
@@ -41,3 +38,23 @@ def test_function():
|
|
|
41
38
|
print(result)
|
|
42
39
|
|
|
43
40
|
assert(result == '{\n "messages": [\n {\n "content": "",\n "role": "system"\n }\n ],\n "name": "",\n "title": ""\n}\n')
|
|
41
|
+
|
|
42
|
+
def test_hai_name():
|
|
43
|
+
hello = """
|
|
44
|
+
#!/bin/bash
|
|
45
|
+
set -x
|
|
46
|
+
|
|
47
|
+
eval $(huckle env)
|
|
48
|
+
hai name set hello
|
|
49
|
+
hai name
|
|
50
|
+
ps aux | grep '[g]unicorn' | awk '{print $2}' | xargs kill
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
p3 = subprocess.Popen(['bash', '-c', hello], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
54
|
+
out, err = p3.communicate()
|
|
55
|
+
error = err.decode('utf-8')
|
|
56
|
+
result = out.decode('utf-8')
|
|
57
|
+
print(error)
|
|
58
|
+
print(result)
|
|
59
|
+
|
|
60
|
+
assert(result == 'hello\n')
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|