haillo 0.2.2__tar.gz → 0.2.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.
- {haillo-0.2.2/haillo.egg-info → haillo-0.2.3}/PKG-INFO +8 -8
- {haillo-0.2.2 → haillo-0.2.3}/README.rst +4 -4
- {haillo-0.2.2 → haillo-0.2.3}/haillo/haillo.py +17 -12
- {haillo-0.2.2 → haillo-0.2.3}/haillo/package.py +2 -2
- {haillo-0.2.2 → haillo-0.2.3/haillo.egg-info}/PKG-INFO +8 -8
- {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/requires.txt +1 -1
- {haillo-0.2.2 → haillo-0.2.3}/pyproject.toml +2 -2
- {haillo-0.2.2 → haillo-0.2.3}/requirements.txt +1 -1
- {haillo-0.2.2 → haillo-0.2.3}/LICENSE.txt +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/MANIFEST.in +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/__init__.py +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/__main__.py +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/config.py +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/data/haillo.1 +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/hutils.py +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/logger.py +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/static/context.css +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/static/context.css.backup +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/static/context.js +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/static/context.js.backup +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/static/icons/icon_144x144.png +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/static/manifest.json +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/static/sidebar.css +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/static/sidebar.js +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/templates/chat_history.html +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/templates/index.html +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo/templates/sidebar.html +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/SOURCES.txt +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/dependency_links.txt +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/entry_points.txt +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/top_level.txt +0 -0
- {haillo-0.2.2 → haillo-0.2.3}/setup.cfg +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: haillo
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary: Haillo is a web frontend for hai (hcli_hai), the command line AI chat application.
|
|
3
|
+
Version: 0.2.3
|
|
4
|
+
Summary: Haillo is a web frontend for hai (hcli_hai), the HCLI command line AI chat application.
|
|
5
5
|
Author-email: Jeff Michaud <cometaj2@proton.me>
|
|
6
6
|
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/cometaj2/haillo
|
|
8
|
-
Keywords: web,ui,cli,client,server,connector,hypermedia,rest,generic,development
|
|
8
|
+
Keywords: ai,llm,web,ui,cli,client,server,connector,hypermedia,rest,generic,development
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: Topic :: Software Development
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
18
|
Description-Content-Type: text/x-rst
|
|
19
19
|
License-File: LICENSE.txt
|
|
20
|
-
Requires-Dist: flask==3.0
|
|
20
|
+
Requires-Dist: flask==3.1.0
|
|
21
21
|
Requires-Dist: huckle<6.0.0,>=5.5.4
|
|
22
22
|
Requires-Dist: hcli_hai<4.0.0,>=3.0.0
|
|
23
23
|
|
|
@@ -26,7 +26,7 @@ Requires-Dist: hcli_hai<4.0.0,>=3.0.0
|
|
|
26
26
|
Haillo
|
|
27
27
|
======
|
|
28
28
|
|
|
29
|
-
Haillo is a web frontend for hai (hcli_hai), the command line AI chat application.
|
|
29
|
+
Haillo is a web frontend for hai (hcli_hai), the HCLI command line AI chat application.
|
|
30
30
|
|
|
31
31
|
----
|
|
32
32
|
|
|
@@ -41,11 +41,11 @@ Help shape HCLI and it's ecosystem by raising issues on github!
|
|
|
41
41
|
Related HCLI Projects
|
|
42
42
|
---------------------
|
|
43
43
|
|
|
44
|
-
- hcli_core, an HCLI Connector that can be used to expose a REST API that behaves as a CLI
|
|
44
|
+
- hcli_core, an HCLI Connector that can be used to expose a REST API that behaves as a CLI [2]
|
|
45
45
|
|
|
46
|
-
- huckle is a CLI, and python library, that can act as an impostor for any CLI expressed via hypertext [3]
|
|
46
|
+
- huckle is a CLI, and python library, that can act as an impostor for any CLI expressed via hypertext command line interface (HCLI) semantics [3]
|
|
47
47
|
|
|
48
|
-
-
|
|
48
|
+
- hcli_hai, a python package wrapper that contains an HCLI sample application (hai); hai is an HCLI for interacting with Anthropic's Claude models via terminal input and output streams. [4]
|
|
49
49
|
|
|
50
50
|
[2] https://github.com/cometaj2/hcli_core
|
|
51
51
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Haillo
|
|
4
4
|
======
|
|
5
5
|
|
|
6
|
-
Haillo is a web frontend for hai (hcli_hai), the command line AI chat application.
|
|
6
|
+
Haillo is a web frontend for hai (hcli_hai), the HCLI command line AI chat application.
|
|
7
7
|
|
|
8
8
|
----
|
|
9
9
|
|
|
@@ -18,11 +18,11 @@ Help shape HCLI and it's ecosystem by raising issues on github!
|
|
|
18
18
|
Related HCLI Projects
|
|
19
19
|
---------------------
|
|
20
20
|
|
|
21
|
-
- hcli_core, an HCLI Connector that can be used to expose a REST API that behaves as a CLI
|
|
21
|
+
- hcli_core, an HCLI Connector that can be used to expose a REST API that behaves as a CLI [2]
|
|
22
22
|
|
|
23
|
-
- huckle is a CLI, and python library, that can act as an impostor for any CLI expressed via hypertext [3]
|
|
23
|
+
- huckle is a CLI, and python library, that can act as an impostor for any CLI expressed via hypertext command line interface (HCLI) semantics [3]
|
|
24
24
|
|
|
25
|
-
-
|
|
25
|
+
- hcli_hai, a python package wrapper that contains an HCLI sample application (hai); hai is an HCLI for interacting with Anthropic's Claude models via terminal input and output streams. [4]
|
|
26
26
|
|
|
27
27
|
[2] https://github.com/cometaj2/hcli_core
|
|
28
28
|
|
|
@@ -53,8 +53,8 @@ def webapp():
|
|
|
53
53
|
# Huckle to attempt to stream data when there is none to stream, leading to unexpected stream interruption
|
|
54
54
|
# socket closeout in urllib3's pool and bad file descriptor errors.
|
|
55
55
|
##########################################################################################################
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
# if not sys.stdin.isatty():
|
|
57
|
+
# sys.stdin = io.BytesIO()
|
|
58
58
|
|
|
59
59
|
app = Flask(__name__)
|
|
60
60
|
|
|
@@ -150,13 +150,14 @@ def webapp():
|
|
|
150
150
|
@app.route('/context/<context_id>')
|
|
151
151
|
def navigate_context(context_id):
|
|
152
152
|
try:
|
|
153
|
-
# Execute hai set
|
|
154
|
-
cmd_start = time.time()
|
|
155
153
|
logging.info("Switching to context_id " + context_id)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
|
|
155
|
+
stream = io.BytesIO(b'')
|
|
156
|
+
with stdin(stream):
|
|
157
|
+
chunks = cli(f"hai set {context_id}")
|
|
158
|
+
chunk_count = 0
|
|
159
|
+
for dest, chunk in chunks:
|
|
160
|
+
chunk_count += 1
|
|
160
161
|
|
|
161
162
|
return redirect(url_for('index'))
|
|
162
163
|
except Exception as error:
|
|
@@ -169,10 +170,14 @@ def webapp():
|
|
|
169
170
|
def delete_context(context_id):
|
|
170
171
|
try:
|
|
171
172
|
logging.info("Removing context_id " + context_id)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
|
|
174
|
+
stream = io.BytesIO(b'')
|
|
175
|
+
with stdin(stream):
|
|
176
|
+
chunks = cli(f"hai rm {context_id}")
|
|
177
|
+
chunk_count = 0
|
|
178
|
+
for dest, chunk in chunks:
|
|
179
|
+
chunk_count += 1
|
|
180
|
+
|
|
176
181
|
return redirect(url_for('index'))
|
|
177
182
|
except Exception as error:
|
|
178
183
|
logging.error(f"Context deletion failed: {error}")
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: haillo
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary: Haillo is a web frontend for hai (hcli_hai), the command line AI chat application.
|
|
3
|
+
Version: 0.2.3
|
|
4
|
+
Summary: Haillo is a web frontend for hai (hcli_hai), the HCLI command line AI chat application.
|
|
5
5
|
Author-email: Jeff Michaud <cometaj2@proton.me>
|
|
6
6
|
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/cometaj2/haillo
|
|
8
|
-
Keywords: web,ui,cli,client,server,connector,hypermedia,rest,generic,development
|
|
8
|
+
Keywords: ai,llm,web,ui,cli,client,server,connector,hypermedia,rest,generic,development
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: Topic :: Software Development
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
18
|
Description-Content-Type: text/x-rst
|
|
19
19
|
License-File: LICENSE.txt
|
|
20
|
-
Requires-Dist: flask==3.0
|
|
20
|
+
Requires-Dist: flask==3.1.0
|
|
21
21
|
Requires-Dist: huckle<6.0.0,>=5.5.4
|
|
22
22
|
Requires-Dist: hcli_hai<4.0.0,>=3.0.0
|
|
23
23
|
|
|
@@ -26,7 +26,7 @@ Requires-Dist: hcli_hai<4.0.0,>=3.0.0
|
|
|
26
26
|
Haillo
|
|
27
27
|
======
|
|
28
28
|
|
|
29
|
-
Haillo is a web frontend for hai (hcli_hai), the command line AI chat application.
|
|
29
|
+
Haillo is a web frontend for hai (hcli_hai), the HCLI command line AI chat application.
|
|
30
30
|
|
|
31
31
|
----
|
|
32
32
|
|
|
@@ -41,11 +41,11 @@ Help shape HCLI and it's ecosystem by raising issues on github!
|
|
|
41
41
|
Related HCLI Projects
|
|
42
42
|
---------------------
|
|
43
43
|
|
|
44
|
-
- hcli_core, an HCLI Connector that can be used to expose a REST API that behaves as a CLI
|
|
44
|
+
- hcli_core, an HCLI Connector that can be used to expose a REST API that behaves as a CLI [2]
|
|
45
45
|
|
|
46
|
-
- huckle is a CLI, and python library, that can act as an impostor for any CLI expressed via hypertext [3]
|
|
46
|
+
- huckle is a CLI, and python library, that can act as an impostor for any CLI expressed via hypertext command line interface (HCLI) semantics [3]
|
|
47
47
|
|
|
48
|
-
-
|
|
48
|
+
- hcli_hai, a python package wrapper that contains an HCLI sample application (hai); hai is an HCLI for interacting with Anthropic's Claude models via terminal input and output streams. [4]
|
|
49
49
|
|
|
50
50
|
[2] https://github.com/cometaj2/hcli_core
|
|
51
51
|
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "haillo"
|
|
7
7
|
dynamic = ["version", "dependencies"]
|
|
8
|
-
description = "Haillo is a web frontend for hai (hcli_hai), the command line AI chat application."
|
|
8
|
+
description = "Haillo is a web frontend for hai (hcli_hai), the HCLI command line AI chat application."
|
|
9
9
|
readme = "README.rst"
|
|
10
10
|
authors = [{name = "Jeff Michaud", email = "cometaj2@proton.me"}]
|
|
11
11
|
license = {text = "MIT"}
|
|
@@ -20,7 +20,7 @@ classifiers = [
|
|
|
20
20
|
"Programming Language :: Python :: 3.11",
|
|
21
21
|
"Programming Language :: Python :: 3.12"
|
|
22
22
|
]
|
|
23
|
-
keywords = ["web", "ui", "cli", "client", "server", "connector", "hypermedia", "rest", "generic", "development"]
|
|
23
|
+
keywords = ["ai", "llm", "web", "ui", "cli", "client", "server", "connector", "hypermedia", "rest", "generic", "development"]
|
|
24
24
|
|
|
25
25
|
[project.urls]
|
|
26
26
|
Homepage = "https://github.com/cometaj2/haillo"
|
|
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
|