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.
Files changed (32) hide show
  1. {haillo-0.2.2/haillo.egg-info → haillo-0.2.3}/PKG-INFO +8 -8
  2. {haillo-0.2.2 → haillo-0.2.3}/README.rst +4 -4
  3. {haillo-0.2.2 → haillo-0.2.3}/haillo/haillo.py +17 -12
  4. {haillo-0.2.2 → haillo-0.2.3}/haillo/package.py +2 -2
  5. {haillo-0.2.2 → haillo-0.2.3/haillo.egg-info}/PKG-INFO +8 -8
  6. {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/requires.txt +1 -1
  7. {haillo-0.2.2 → haillo-0.2.3}/pyproject.toml +2 -2
  8. {haillo-0.2.2 → haillo-0.2.3}/requirements.txt +1 -1
  9. {haillo-0.2.2 → haillo-0.2.3}/LICENSE.txt +0 -0
  10. {haillo-0.2.2 → haillo-0.2.3}/MANIFEST.in +0 -0
  11. {haillo-0.2.2 → haillo-0.2.3}/haillo/__init__.py +0 -0
  12. {haillo-0.2.2 → haillo-0.2.3}/haillo/__main__.py +0 -0
  13. {haillo-0.2.2 → haillo-0.2.3}/haillo/config.py +0 -0
  14. {haillo-0.2.2 → haillo-0.2.3}/haillo/data/haillo.1 +0 -0
  15. {haillo-0.2.2 → haillo-0.2.3}/haillo/hutils.py +0 -0
  16. {haillo-0.2.2 → haillo-0.2.3}/haillo/logger.py +0 -0
  17. {haillo-0.2.2 → haillo-0.2.3}/haillo/static/context.css +0 -0
  18. {haillo-0.2.2 → haillo-0.2.3}/haillo/static/context.css.backup +0 -0
  19. {haillo-0.2.2 → haillo-0.2.3}/haillo/static/context.js +0 -0
  20. {haillo-0.2.2 → haillo-0.2.3}/haillo/static/context.js.backup +0 -0
  21. {haillo-0.2.2 → haillo-0.2.3}/haillo/static/icons/icon_144x144.png +0 -0
  22. {haillo-0.2.2 → haillo-0.2.3}/haillo/static/manifest.json +0 -0
  23. {haillo-0.2.2 → haillo-0.2.3}/haillo/static/sidebar.css +0 -0
  24. {haillo-0.2.2 → haillo-0.2.3}/haillo/static/sidebar.js +0 -0
  25. {haillo-0.2.2 → haillo-0.2.3}/haillo/templates/chat_history.html +0 -0
  26. {haillo-0.2.2 → haillo-0.2.3}/haillo/templates/index.html +0 -0
  27. {haillo-0.2.2 → haillo-0.2.3}/haillo/templates/sidebar.html +0 -0
  28. {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/SOURCES.txt +0 -0
  29. {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/dependency_links.txt +0 -0
  30. {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/entry_points.txt +0 -0
  31. {haillo-0.2.2 → haillo-0.2.3}/haillo.egg-info/top_level.txt +0 -0
  32. {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.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.1
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, via hypertext [2]
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
- - 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]
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, via hypertext [2]
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
- - 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]
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
- if not sys.stdin.isatty():
57
- sys.stdin = io.BytesIO()
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
- chunks = cli(f"hai set {context_id}")
157
- chunk_count = 0
158
- for dest, chunk in chunks:
159
- chunk_count += 1
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
- chunks = cli(f"hai rm {context_id}")
173
- chunk_count = 0
174
- for dest, chunk in chunks:
175
- chunk_count += 1
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,6 +1,6 @@
1
1
  from __future__ import absolute_import, division, print_function
2
2
 
3
- __version__ = "0.2.2"
4
- dependencies = ["flask==3.0.1",
3
+ __version__ = "0.2.3"
4
+ dependencies = ["flask==3.1.0",
5
5
  "huckle>=5.5.4,<6.0.0",
6
6
  "hcli_hai>=3.0.0,<4.0.0"]
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: haillo
3
- Version: 0.2.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.1
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, via hypertext [2]
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
- - 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]
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
 
@@ -1,3 +1,3 @@
1
- flask==3.0.1
1
+ flask==3.1.0
2
2
  huckle<6.0.0,>=5.5.4
3
3
  hcli_hai<4.0.0,>=3.0.0
@@ -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"
@@ -1,3 +1,3 @@
1
- flask==3.0.1
1
+ flask==3.1.0
2
2
  huckle>=5.5.4,<6.0.0
3
3
  hcli_hai>=3.0.0,<4.0.0
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