ommlds 0.0.0.dev456__py3-none-any.whl → 0.0.0.dev458__py3-none-any.whl
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.
- ommlds/__about__.py +1 -1
- ommlds/cli/sessions/chat/code.py +1 -5
- ommlds/cli/sessions/chat/interactive.py +4 -5
- ommlds/cli/sessions/chat/printing.py +3 -6
- ommlds/cli/sessions/chat/tools.py +2 -5
- ommlds/minichain/backends/impls/transformers/tokens.py +1 -1
- {ommlds-0.0.0.dev456.dist-info → ommlds-0.0.0.dev458.dist-info}/METADATA +5 -5
- {ommlds-0.0.0.dev456.dist-info → ommlds-0.0.0.dev458.dist-info}/RECORD +12 -12
- {ommlds-0.0.0.dev456.dist-info → ommlds-0.0.0.dev458.dist-info}/WHEEL +0 -0
- {ommlds-0.0.0.dev456.dist-info → ommlds-0.0.0.dev458.dist-info}/entry_points.txt +0 -0
- {ommlds-0.0.0.dev456.dist-info → ommlds-0.0.0.dev458.dist-info}/licenses/LICENSE +0 -0
- {ommlds-0.0.0.dev456.dist-info → ommlds-0.0.0.dev458.dist-info}/top_level.txt +0 -0
ommlds/__about__.py
CHANGED
ommlds/cli/sessions/chat/code.py
CHANGED
|
@@ -16,10 +16,6 @@ from .state import ChatStateManager
|
|
|
16
16
|
from .tools import ToolUseExecutor
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
with lang.auto_proxy_import(globals()):
|
|
20
|
-
from omdev import ptk
|
|
21
|
-
|
|
22
|
-
|
|
23
19
|
##
|
|
24
20
|
|
|
25
21
|
|
|
@@ -90,7 +86,7 @@ class CodeChatSession(ChatSession['CodeChatSession.Config']):
|
|
|
90
86
|
req_msg = mc.UserMessage(self._config.initial_message)
|
|
91
87
|
else:
|
|
92
88
|
try:
|
|
93
|
-
prompt =
|
|
89
|
+
prompt = input('> ') # FIXME: async lol
|
|
94
90
|
except EOFError:
|
|
95
91
|
break
|
|
96
92
|
req_msg = mc.UserMessage(prompt)
|
|
@@ -10,10 +10,6 @@ from .printing import ChatSessionPrinter
|
|
|
10
10
|
from .state import ChatStateManager
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
with lang.auto_proxy_import(globals()):
|
|
14
|
-
from omdev import ptk
|
|
15
|
-
|
|
16
|
-
|
|
17
13
|
##
|
|
18
14
|
|
|
19
15
|
|
|
@@ -58,7 +54,10 @@ class InteractiveChatSession(ChatSession['InteractiveChatSession.Config']):
|
|
|
58
54
|
*([mc.ModelName(mn)] if (mn := self._config.model_name) is not None else []),
|
|
59
55
|
)) as mdl:
|
|
60
56
|
while True:
|
|
61
|
-
|
|
57
|
+
try:
|
|
58
|
+
prompt = input('> ') # FIXME: async lol
|
|
59
|
+
except EOFError:
|
|
60
|
+
break
|
|
62
61
|
|
|
63
62
|
req_msg = mc.UserMessage(prompt)
|
|
64
63
|
|
|
@@ -9,8 +9,8 @@ from .... import minichain as mc
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
with lang.auto_proxy_import(globals()):
|
|
12
|
-
from
|
|
13
|
-
from
|
|
12
|
+
from rich import console as rich_console
|
|
13
|
+
from rich import markdown as rich_markdown
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
##
|
|
@@ -91,7 +91,4 @@ class MarkdownStringChatSessionPrinter(StringChatSessionPrinter):
|
|
|
91
91
|
if not s:
|
|
92
92
|
return
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
ptk_md.Markdown(s),
|
|
96
|
-
style=ptk.Style(list(ptk_md.MARKDOWN_STYLE)),
|
|
97
|
-
)
|
|
94
|
+
rich_console.Console().print(rich_markdown.Markdown(s))
|
|
@@ -4,14 +4,11 @@ import typing as ta
|
|
|
4
4
|
from omlish import check
|
|
5
5
|
from omlish import lang
|
|
6
6
|
from omlish.formats import json
|
|
7
|
+
from omlish.term.confirm import confirm_action
|
|
7
8
|
|
|
8
9
|
from .... import minichain as mc
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
with lang.auto_proxy_import(globals()):
|
|
12
|
-
from omdev import ptk
|
|
13
|
-
|
|
14
|
-
|
|
15
12
|
##
|
|
16
13
|
|
|
17
14
|
|
|
@@ -50,7 +47,7 @@ class AskingToolExecutionConfirmation(ToolExecutionConfirmation):
|
|
|
50
47
|
args=tr.args,
|
|
51
48
|
# spec=msh.marshal(tce.spec),
|
|
52
49
|
)
|
|
53
|
-
cr =
|
|
50
|
+
cr = confirm_action(f'Execute requested tool?\n\n{json.dumps_pretty(tr_dct)}') # FIXME: async lol
|
|
54
51
|
|
|
55
52
|
if not cr:
|
|
56
53
|
raise ToolExecutionRequestDeniedError
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ommlds
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev458
|
|
4
4
|
Summary: ommlds
|
|
5
5
|
Author: wrmsr
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -14,8 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Requires-Python: >=3.13
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: omdev==0.0.0.
|
|
18
|
-
Requires-Dist: omlish==0.0.0.
|
|
17
|
+
Requires-Dist: omdev==0.0.0.dev458
|
|
18
|
+
Requires-Dist: omlish==0.0.0.dev458
|
|
19
19
|
Provides-Extra: all
|
|
20
20
|
Requires-Dist: llama-cpp-python~=0.3; extra == "all"
|
|
21
21
|
Requires-Dist: mlx~=0.29; extra == "all"
|
|
@@ -24,7 +24,7 @@ Requires-Dist: tiktoken~=0.11; extra == "all"
|
|
|
24
24
|
Requires-Dist: tinygrad~=0.11; extra == "all"
|
|
25
25
|
Requires-Dist: tokenizers~=0.22; extra == "all"
|
|
26
26
|
Requires-Dist: torch~=2.8; extra == "all"
|
|
27
|
-
Requires-Dist: transformers~=4.
|
|
27
|
+
Requires-Dist: transformers~=4.57; extra == "all"
|
|
28
28
|
Requires-Dist: sentence-transformers~=5.1; extra == "all"
|
|
29
29
|
Requires-Dist: huggingface-hub~=0.35; extra == "all"
|
|
30
30
|
Requires-Dist: datasets~=4.1; extra == "all"
|
|
@@ -44,7 +44,7 @@ Requires-Dist: tiktoken~=0.11; extra == "backends"
|
|
|
44
44
|
Requires-Dist: tinygrad~=0.11; extra == "backends"
|
|
45
45
|
Requires-Dist: tokenizers~=0.22; extra == "backends"
|
|
46
46
|
Requires-Dist: torch~=2.8; extra == "backends"
|
|
47
|
-
Requires-Dist: transformers~=4.
|
|
47
|
+
Requires-Dist: transformers~=4.57; extra == "backends"
|
|
48
48
|
Requires-Dist: sentence-transformers~=5.1; extra == "backends"
|
|
49
49
|
Provides-Extra: huggingface
|
|
50
50
|
Requires-Dist: huggingface-hub~=0.35; extra == "huggingface"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
ommlds/.omlish-manifests.json,sha256=B8lb6DKPpx-lvUmJJObifPZx-fy273KUbjQoHImyb7o,17992
|
|
2
|
-
ommlds/__about__.py,sha256=
|
|
2
|
+
ommlds/__about__.py,sha256=XNUdE90MuxGmrq-8fqOcmIDOlrcApuoObzGrDUnxxMM,1759
|
|
3
3
|
ommlds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
ommlds/huggingface.py,sha256=JfEyfKOxU3-SY_ojtXBJFNeD-NIuKjvMe3GL3e93wNA,1175
|
|
5
5
|
ommlds/_hacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -88,13 +88,13 @@ ommlds/cli/sessions/base.py,sha256=oTqsqZ9jhBWFblANpVWLLIzmRfP8HO9QYtPnZ-GZxS0,4
|
|
|
88
88
|
ommlds/cli/sessions/inject.py,sha256=sCwNFDhiyir1taxufFVEcHtaK_o14IcsQOvGUHWM9Jo,545
|
|
89
89
|
ommlds/cli/sessions/chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
90
90
|
ommlds/cli/sessions/chat/base.py,sha256=GlDBXZ-KymSokNl1a7uwX1abswmRE67Q0zOIHjhZb_0,796
|
|
91
|
-
ommlds/cli/sessions/chat/code.py,sha256=
|
|
91
|
+
ommlds/cli/sessions/chat/code.py,sha256=6hnjibVMTxSUciIIsDPsLHLGMlJNNUZtVQJxFkpi8sM,4269
|
|
92
92
|
ommlds/cli/sessions/chat/inject.py,sha256=uF-QJvONu5sntXxaEu5KTYy2MUaSY8c5oJz0HpK3c7E,2621
|
|
93
|
-
ommlds/cli/sessions/chat/interactive.py,sha256=
|
|
94
|
-
ommlds/cli/sessions/chat/printing.py,sha256=
|
|
93
|
+
ommlds/cli/sessions/chat/interactive.py,sha256=gurYiDCQSY_5llcE75zvEbpVp77AbKSfgY243Z68bLw,2039
|
|
94
|
+
ommlds/cli/sessions/chat/printing.py,sha256=b1HyripqYnRobLyTPgRidcDLvxIpyqPzgUMiXdklBGE,2327
|
|
95
95
|
ommlds/cli/sessions/chat/prompt.py,sha256=T2h04r9LYA9urYKQZZldoT0Jon_jpKgcbQmtS9xquj8,4915
|
|
96
96
|
ommlds/cli/sessions/chat/state.py,sha256=CjYkcpZ4fEBE0kPl1g101EDzq0MKy6S6E84dfDhwzcQ,2649
|
|
97
|
-
ommlds/cli/sessions/chat/tools.py,sha256=
|
|
97
|
+
ommlds/cli/sessions/chat/tools.py,sha256=dj6ADr6RIJnoIKH5wxRLGkgKAfZ_TtnqNLQ6uO-1Gfg,2325
|
|
98
98
|
ommlds/cli/sessions/completion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
99
|
ommlds/cli/sessions/completion/completion.py,sha256=2ZrzmHBCF3mG13ABcoiHva6OUzPpdF7qzByteaLNsxk,1077
|
|
100
100
|
ommlds/cli/sessions/embedding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -165,7 +165,7 @@ ommlds/minichain/backends/impls/tokenizers/__init__.py,sha256=47DEQpj8HBSa-_TImW
|
|
|
165
165
|
ommlds/minichain/backends/impls/tokenizers/tokens.py,sha256=_8Q49k5YroG5wQI0cuK6kOJ3XYwjhpaAS04ejhzBsWw,1500
|
|
166
166
|
ommlds/minichain/backends/impls/transformers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
167
167
|
ommlds/minichain/backends/impls/transformers/sentence.py,sha256=1bFJ-ND3MOkj7mNsPuISrQCpqTs7npmmNmYcc2go-Fk,1393
|
|
168
|
-
ommlds/minichain/backends/impls/transformers/tokens.py,sha256=
|
|
168
|
+
ommlds/minichain/backends/impls/transformers/tokens.py,sha256=uS3-IWOJRUMBfPDVRrp3SCaXdE1yzEdKHQcyv0JZQIw,2089
|
|
169
169
|
ommlds/minichain/backends/impls/transformers/transformers.py,sha256=Bb1RnvDlo8bzu24ByhDacDC0sN7R7KYZnPZ9hjbViBg,5287
|
|
170
170
|
ommlds/minichain/backends/strings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
171
171
|
ommlds/minichain/backends/strings/manifests.py,sha256=kmlanVUAZqIh0P95Mm8H20e8ib3gEgYHHUlkCXDQGFk,413
|
|
@@ -325,9 +325,9 @@ ommlds/wiki/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
325
325
|
ommlds/wiki/utils/io.py,sha256=UKgDJGtmpnWvIqVd2mJc2QNPOqlToEY1GEveNp6_pMo,7088
|
|
326
326
|
ommlds/wiki/utils/progress.py,sha256=EhvKcMFYtsarCQhIahlO6f0SboyAKP3UwUyrnVnP-Vk,3222
|
|
327
327
|
ommlds/wiki/utils/xml.py,sha256=vVV8Ctn13aaRM9eYfs9Wd6rHn5WOCEUzQ44fIhOvJdg,3754
|
|
328
|
-
ommlds-0.0.0.
|
|
329
|
-
ommlds-0.0.0.
|
|
330
|
-
ommlds-0.0.0.
|
|
331
|
-
ommlds-0.0.0.
|
|
332
|
-
ommlds-0.0.0.
|
|
333
|
-
ommlds-0.0.0.
|
|
328
|
+
ommlds-0.0.0.dev458.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
|
329
|
+
ommlds-0.0.0.dev458.dist-info/METADATA,sha256=b8d8j6_YrLFPOasPpJ4NyVqc5lNOuHC0S1We79UNN68,3224
|
|
330
|
+
ommlds-0.0.0.dev458.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
331
|
+
ommlds-0.0.0.dev458.dist-info/entry_points.txt,sha256=Z5YWtX7ClfiCKdW-dd_CSVvM0h4yQpJPi-2G3q6gNFo,35
|
|
332
|
+
ommlds-0.0.0.dev458.dist-info/top_level.txt,sha256=Rbnk5d5wi58vnAXx13WFZqdQ4VX8hBCS2hEL3WeXOhY,7
|
|
333
|
+
ommlds-0.0.0.dev458.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|