ommlds 0.0.0.dev480__py3-none-any.whl → 0.0.0.dev503__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/.omlish-manifests.json +100 -33
- ommlds/README.md +11 -0
- ommlds/__about__.py +9 -6
- ommlds/backends/anthropic/protocol/__init__.py +13 -1
- ommlds/backends/anthropic/protocol/_dataclasses.py +1625 -0
- ommlds/backends/anthropic/protocol/sse/events.py +2 -0
- ommlds/backends/cerebras/__init__.py +7 -0
- ommlds/backends/cerebras/_dataclasses.py +4254 -0
- ommlds/backends/cerebras/_marshal.py +24 -0
- ommlds/backends/cerebras/protocol.py +312 -0
- ommlds/backends/google/protocol/__init__.py +13 -0
- ommlds/backends/google/protocol/_dataclasses.py +5997 -0
- ommlds/backends/groq/__init__.py +7 -0
- ommlds/backends/groq/_dataclasses.py +3901 -0
- ommlds/backends/groq/clients.py +9 -0
- ommlds/backends/llamacpp/logging.py +4 -1
- ommlds/backends/mlx/caching.py +7 -3
- ommlds/backends/mlx/cli.py +10 -7
- ommlds/backends/mlx/generation.py +18 -16
- ommlds/backends/mlx/limits.py +10 -6
- ommlds/backends/mlx/loading.py +7 -4
- ommlds/backends/ollama/__init__.py +7 -0
- ommlds/backends/ollama/_dataclasses.py +3488 -0
- ommlds/backends/ollama/protocol.py +3 -0
- ommlds/backends/openai/protocol/__init__.py +15 -1
- ommlds/backends/openai/protocol/_dataclasses.py +7708 -0
- ommlds/backends/tavily/__init__.py +7 -0
- ommlds/backends/tavily/_dataclasses.py +1734 -0
- ommlds/backends/transformers/__init__.py +14 -0
- ommlds/cli/__init__.py +7 -0
- ommlds/cli/_dataclasses.py +3515 -0
- ommlds/cli/backends/catalog.py +0 -5
- ommlds/cli/backends/inject.py +70 -7
- ommlds/cli/backends/meta.py +82 -0
- ommlds/cli/content/messages.py +1 -1
- ommlds/cli/inject.py +11 -3
- ommlds/cli/main.py +137 -68
- ommlds/cli/rendering/types.py +6 -0
- ommlds/cli/secrets.py +2 -1
- ommlds/cli/sessions/base.py +1 -10
- ommlds/cli/sessions/chat/configs.py +9 -17
- ommlds/cli/sessions/chat/{chat → drivers}/ai/configs.py +3 -1
- ommlds/cli/sessions/chat/drivers/ai/events.py +57 -0
- ommlds/cli/sessions/chat/{chat → drivers}/ai/inject.py +10 -3
- ommlds/cli/sessions/chat/{chat → drivers}/ai/rendering.py +1 -1
- ommlds/cli/sessions/chat/{chat → drivers}/ai/services.py +1 -1
- ommlds/cli/sessions/chat/{chat → drivers}/ai/tools.py +4 -8
- ommlds/cli/sessions/chat/{chat → drivers}/ai/types.py +9 -0
- ommlds/cli/sessions/chat/drivers/configs.py +25 -0
- ommlds/cli/sessions/chat/drivers/events/inject.py +27 -0
- ommlds/cli/sessions/chat/drivers/events/injection.py +14 -0
- ommlds/cli/sessions/chat/drivers/events/manager.py +16 -0
- ommlds/cli/sessions/chat/drivers/events/types.py +38 -0
- ommlds/cli/sessions/chat/drivers/impl.py +50 -0
- ommlds/cli/sessions/chat/drivers/inject.py +70 -0
- ommlds/cli/sessions/chat/{chat → drivers}/state/configs.py +2 -0
- ommlds/cli/sessions/chat/drivers/state/ids.py +25 -0
- ommlds/cli/sessions/chat/drivers/state/inject.py +83 -0
- ommlds/cli/sessions/chat/{chat → drivers}/state/inmemory.py +0 -4
- ommlds/cli/sessions/chat/{chat → drivers}/state/storage.py +17 -10
- ommlds/cli/sessions/chat/{chat → drivers}/state/types.py +10 -5
- ommlds/cli/sessions/chat/{tools → drivers/tools}/configs.py +2 -2
- ommlds/cli/sessions/chat/drivers/tools/confirmation.py +44 -0
- ommlds/cli/sessions/chat/drivers/tools/errorhandling.py +39 -0
- ommlds/cli/sessions/chat/{tools → drivers/tools}/execution.py +3 -4
- ommlds/cli/sessions/chat/{tools → drivers/tools}/fs/inject.py +3 -3
- ommlds/cli/sessions/chat/{tools → drivers/tools}/inject.py +7 -12
- ommlds/cli/sessions/chat/{tools → drivers/tools}/injection.py +5 -5
- ommlds/cli/sessions/chat/{tools → drivers/tools}/rendering.py +3 -3
- ommlds/cli/sessions/chat/{tools → drivers/tools}/todo/inject.py +3 -3
- ommlds/cli/sessions/chat/{tools → drivers/tools}/weather/tools.py +1 -1
- ommlds/cli/sessions/chat/drivers/types.py +31 -0
- ommlds/cli/sessions/chat/{chat → drivers}/user/configs.py +0 -3
- ommlds/cli/sessions/chat/drivers/user/inject.py +41 -0
- ommlds/cli/sessions/chat/facades/__init__.py +0 -0
- ommlds/cli/sessions/chat/facades/commands/__init__.py +0 -0
- ommlds/cli/sessions/chat/facades/commands/base.py +83 -0
- ommlds/cli/sessions/chat/facades/commands/configs.py +9 -0
- ommlds/cli/sessions/chat/facades/commands/inject.py +41 -0
- ommlds/cli/sessions/chat/facades/commands/injection.py +15 -0
- ommlds/cli/sessions/chat/facades/commands/manager.py +59 -0
- ommlds/cli/sessions/chat/facades/commands/simple.py +34 -0
- ommlds/cli/sessions/chat/facades/commands/types.py +13 -0
- ommlds/cli/sessions/chat/facades/configs.py +11 -0
- ommlds/cli/sessions/chat/facades/facade.py +26 -0
- ommlds/cli/sessions/chat/facades/inject.py +35 -0
- ommlds/cli/sessions/chat/facades/ui.py +34 -0
- ommlds/cli/sessions/chat/inject.py +8 -31
- ommlds/cli/sessions/chat/interfaces/__init__.py +0 -0
- ommlds/cli/sessions/chat/interfaces/bare/__init__.py +0 -0
- ommlds/cli/sessions/chat/interfaces/bare/configs.py +15 -0
- ommlds/cli/sessions/chat/interfaces/bare/inject.py +69 -0
- ommlds/cli/sessions/chat/interfaces/bare/interactive.py +49 -0
- ommlds/cli/sessions/chat/interfaces/bare/oneshot.py +21 -0
- ommlds/cli/sessions/chat/{tools/confirmation.py → interfaces/bare/tools.py} +3 -22
- ommlds/cli/sessions/chat/interfaces/base.py +13 -0
- ommlds/cli/sessions/chat/interfaces/configs.py +11 -0
- ommlds/cli/sessions/chat/interfaces/inject.py +29 -0
- ommlds/cli/sessions/chat/interfaces/textual/__init__.py +0 -0
- ommlds/cli/sessions/chat/interfaces/textual/app.py +310 -0
- ommlds/cli/sessions/chat/interfaces/textual/configs.py +11 -0
- ommlds/cli/sessions/chat/interfaces/textual/facades.py +19 -0
- ommlds/cli/sessions/chat/interfaces/textual/inject.py +97 -0
- ommlds/cli/sessions/chat/interfaces/textual/interface.py +24 -0
- ommlds/cli/sessions/chat/interfaces/textual/styles/__init__.py +29 -0
- ommlds/cli/sessions/chat/interfaces/textual/styles/input.tcss +53 -0
- ommlds/cli/sessions/chat/interfaces/textual/styles/markdown.tcss +7 -0
- ommlds/cli/sessions/chat/interfaces/textual/styles/messages.tcss +157 -0
- ommlds/cli/sessions/chat/interfaces/textual/tools.py +38 -0
- ommlds/cli/sessions/chat/interfaces/textual/widgets/__init__.py +0 -0
- ommlds/cli/sessions/chat/interfaces/textual/widgets/input.py +36 -0
- ommlds/cli/sessions/chat/interfaces/textual/widgets/messages.py +197 -0
- ommlds/cli/sessions/chat/session.py +8 -13
- ommlds/cli/sessions/completion/configs.py +3 -4
- ommlds/cli/sessions/completion/inject.py +1 -2
- ommlds/cli/sessions/completion/session.py +4 -8
- ommlds/cli/sessions/configs.py +10 -0
- ommlds/cli/sessions/embedding/configs.py +3 -4
- ommlds/cli/sessions/embedding/inject.py +1 -2
- ommlds/cli/sessions/embedding/session.py +4 -8
- ommlds/cli/sessions/inject.py +15 -15
- ommlds/cli/state/storage.py +7 -1
- ommlds/minichain/__init__.py +161 -38
- ommlds/minichain/_dataclasses.py +20452 -0
- ommlds/minichain/_typedvalues.py +11 -4
- ommlds/minichain/backends/impls/anthropic/names.py +3 -3
- ommlds/minichain/backends/impls/anthropic/protocol.py +2 -2
- ommlds/minichain/backends/impls/anthropic/stream.py +1 -1
- ommlds/minichain/backends/impls/cerebras/__init__.py +0 -0
- ommlds/minichain/backends/impls/cerebras/chat.py +80 -0
- ommlds/minichain/backends/impls/cerebras/names.py +45 -0
- ommlds/minichain/backends/impls/cerebras/protocol.py +143 -0
- ommlds/minichain/backends/impls/cerebras/stream.py +125 -0
- ommlds/minichain/backends/impls/duckduckgo/search.py +5 -1
- ommlds/minichain/backends/impls/google/names.py +6 -0
- ommlds/minichain/backends/impls/google/stream.py +1 -1
- ommlds/minichain/backends/impls/google/tools.py +2 -2
- ommlds/minichain/backends/impls/groq/chat.py +2 -0
- ommlds/minichain/backends/impls/groq/protocol.py +2 -2
- ommlds/minichain/backends/impls/groq/stream.py +3 -1
- ommlds/minichain/backends/impls/huggingface/repos.py +1 -5
- ommlds/minichain/backends/impls/llamacpp/chat.py +6 -3
- ommlds/minichain/backends/impls/llamacpp/completion.py +7 -3
- ommlds/minichain/backends/impls/llamacpp/stream.py +6 -3
- ommlds/minichain/backends/impls/mlx/chat.py +6 -3
- ommlds/minichain/backends/impls/ollama/chat.py +51 -57
- ommlds/minichain/backends/impls/ollama/protocol.py +144 -0
- ommlds/minichain/backends/impls/openai/format.py +4 -3
- ommlds/minichain/backends/impls/openai/names.py +3 -1
- ommlds/minichain/backends/impls/openai/stream.py +33 -1
- ommlds/minichain/backends/impls/sentencepiece/tokens.py +9 -6
- ommlds/minichain/backends/impls/tinygrad/chat.py +7 -4
- ommlds/minichain/backends/impls/tokenizers/tokens.py +9 -6
- ommlds/minichain/backends/impls/transformers/sentence.py +5 -2
- ommlds/minichain/backends/impls/transformers/tokens.py +9 -6
- ommlds/minichain/backends/impls/transformers/transformers.py +10 -8
- ommlds/minichain/backends/strings/resolving.py +1 -1
- ommlds/minichain/chat/content.py +42 -0
- ommlds/minichain/chat/messages.py +43 -39
- ommlds/minichain/chat/stream/joining.py +36 -12
- ommlds/minichain/chat/stream/types.py +1 -1
- ommlds/minichain/chat/templating.py +3 -3
- ommlds/minichain/content/__init__.py +19 -3
- ommlds/minichain/content/_marshal.py +181 -55
- ommlds/minichain/content/code.py +26 -0
- ommlds/minichain/content/composite.py +28 -0
- ommlds/minichain/content/content.py +27 -0
- ommlds/minichain/content/dynamic.py +12 -0
- ommlds/minichain/content/emphasis.py +27 -0
- ommlds/minichain/content/images.py +2 -2
- ommlds/minichain/content/json.py +2 -2
- ommlds/minichain/content/link.py +13 -0
- ommlds/minichain/content/markdown.py +12 -0
- ommlds/minichain/content/metadata.py +10 -0
- ommlds/minichain/content/namespaces.py +8 -0
- ommlds/minichain/content/placeholders.py +10 -9
- ommlds/minichain/content/quote.py +26 -0
- ommlds/minichain/content/raw.py +49 -0
- ommlds/minichain/content/recursive.py +12 -0
- ommlds/minichain/content/section.py +26 -0
- ommlds/minichain/content/sequence.py +17 -3
- ommlds/minichain/content/standard.py +32 -0
- ommlds/minichain/content/tag.py +28 -0
- ommlds/minichain/content/templates.py +13 -0
- ommlds/minichain/content/text.py +2 -2
- ommlds/minichain/content/transform/__init__.py +0 -0
- ommlds/minichain/content/transform/json.py +55 -0
- ommlds/minichain/content/transform/markdown.py +8 -0
- ommlds/minichain/content/transform/materialize.py +51 -0
- ommlds/minichain/content/transform/metadata.py +16 -0
- ommlds/minichain/content/{prepare.py → transform/prepare.py} +10 -15
- ommlds/minichain/content/transform/recursive.py +97 -0
- ommlds/minichain/content/transform/standard.py +43 -0
- ommlds/minichain/content/{transforms → transform}/stringify.py +1 -7
- ommlds/minichain/content/transform/strings.py +33 -0
- ommlds/minichain/content/transform/templates.py +25 -0
- ommlds/minichain/content/visitors.py +231 -0
- ommlds/minichain/lib/fs/tools/read.py +1 -1
- ommlds/minichain/lib/fs/tools/recursivels/rendering.py +1 -1
- ommlds/minichain/lib/fs/tools/recursivels/running.py +1 -1
- ommlds/minichain/lib/todo/tools/write.py +2 -1
- ommlds/minichain/lib/todo/types.py +1 -1
- ommlds/minichain/metadata.py +56 -2
- ommlds/minichain/resources.py +22 -1
- ommlds/minichain/services/README.md +154 -0
- ommlds/minichain/services/__init__.py +6 -2
- ommlds/minichain/services/_marshal.py +46 -10
- ommlds/minichain/services/_origclasses.py +11 -0
- ommlds/minichain/services/_typedvalues.py +8 -3
- ommlds/minichain/services/requests.py +73 -3
- ommlds/minichain/services/responses.py +73 -3
- ommlds/minichain/services/services.py +9 -0
- ommlds/minichain/stream/services.py +24 -1
- ommlds/minichain/text/applypatch.py +2 -1
- ommlds/minichain/text/toolparsing/llamacpp/types.py +1 -1
- ommlds/minichain/tokens/specials.py +1 -1
- ommlds/minichain/tools/execution/catalog.py +1 -1
- ommlds/minichain/tools/execution/errorhandling.py +36 -0
- ommlds/minichain/tools/execution/errors.py +2 -2
- ommlds/minichain/tools/execution/executors.py +1 -1
- ommlds/minichain/tools/fns.py +1 -1
- ommlds/minichain/tools/jsonschema.py +2 -2
- ommlds/minichain/tools/reflect.py +6 -6
- ommlds/minichain/tools/types.py +12 -15
- ommlds/minichain/vectors/_marshal.py +1 -1
- ommlds/minichain/vectors/embeddings.py +1 -1
- ommlds/minichain/wrappers/__init__.py +7 -0
- ommlds/minichain/wrappers/firstinwins.py +144 -0
- ommlds/minichain/wrappers/instrument.py +146 -0
- ommlds/minichain/wrappers/retry.py +168 -0
- ommlds/minichain/wrappers/services.py +98 -0
- ommlds/minichain/wrappers/stream.py +57 -0
- ommlds/nanochat/rustbpe/README.md +9 -0
- ommlds/nanochat/tokenizers.py +40 -6
- ommlds/specs/mcp/clients.py +146 -0
- ommlds/specs/mcp/protocol.py +123 -18
- ommlds/tools/git.py +82 -65
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/METADATA +13 -11
- ommlds-0.0.0.dev503.dist-info/RECORD +520 -0
- ommlds/cli/sessions/chat/chat/state/inject.py +0 -36
- ommlds/cli/sessions/chat/chat/user/inject.py +0 -62
- ommlds/cli/sessions/chat/chat/user/interactive.py +0 -31
- ommlds/cli/sessions/chat/chat/user/oneshot.py +0 -25
- ommlds/cli/sessions/chat/chat/user/types.py +0 -15
- ommlds/cli/sessions/chat/driver.py +0 -43
- ommlds/minichain/content/materialize.py +0 -196
- ommlds/minichain/content/simple.py +0 -47
- ommlds/minichain/content/transforms/base.py +0 -46
- ommlds/minichain/content/transforms/interleave.py +0 -70
- ommlds/minichain/content/transforms/squeeze.py +0 -72
- ommlds/minichain/content/transforms/strings.py +0 -24
- ommlds/minichain/content/types.py +0 -43
- ommlds/minichain/stream/wrap.py +0 -62
- ommlds-0.0.0.dev480.dist-info/RECORD +0 -427
- /ommlds/cli/sessions/chat/{chat → drivers}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{chat → drivers}/ai/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{chat → drivers}/ai/injection.py +0 -0
- /ommlds/cli/sessions/chat/{chat/state → drivers/events}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{chat/user → drivers/phases}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/phases}/inject.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/phases}/injection.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/phases}/manager.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/phases}/types.py +0 -0
- /ommlds/cli/sessions/chat/{phases → drivers/state}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/fs/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/fs/configs.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/todo/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/todo/configs.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/weather/__init__.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/weather/configs.py +0 -0
- /ommlds/cli/sessions/chat/{tools → drivers/tools}/weather/inject.py +0 -0
- /ommlds/{minichain/content/transforms → cli/sessions/chat/drivers/user}/__init__.py +0 -0
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/WHEEL +0 -0
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/entry_points.txt +0 -0
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/licenses/LICENSE +0 -0
- {ommlds-0.0.0.dev480.dist-info → ommlds-0.0.0.dev503.dist-info}/top_level.txt +0 -0
ommlds/.omlish-manifests.json
CHANGED
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"model_names": {
|
|
45
45
|
"default": "claude",
|
|
46
46
|
"aliases": {
|
|
47
|
-
"claude-opus-4-
|
|
48
|
-
"claude-opus-4-
|
|
49
|
-
"claude-opus": "claude-opus-4-
|
|
47
|
+
"claude-opus-4-5-20251101": null,
|
|
48
|
+
"claude-opus-4-5": "claude-opus-4-5-20251101",
|
|
49
|
+
"claude-opus": "claude-opus-4-5",
|
|
50
50
|
"claude-sonnet-4-5-20250929": null,
|
|
51
51
|
"claude-sonnet-4-5": "claude-sonnet-4-5-20250929",
|
|
52
52
|
"claude-sonnet": "claude-sonnet-4-5",
|
|
@@ -74,11 +74,72 @@
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
"module": ".minichain.backends.impls.cerebras.chat",
|
|
79
|
+
"attr": null,
|
|
80
|
+
"file": "ommlds/minichain/backends/impls/cerebras/chat.py",
|
|
81
|
+
"line": 26,
|
|
82
|
+
"value": {
|
|
83
|
+
"!.minichain.registries.manifests.RegistryManifest": {
|
|
84
|
+
"module": "ommlds.minichain.backends.impls.cerebras.chat",
|
|
85
|
+
"attr": "CerebrasChatChoicesService",
|
|
86
|
+
"name": "cerebras",
|
|
87
|
+
"aliases": null,
|
|
88
|
+
"type": "ChatChoicesService"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"module": ".minichain.backends.impls.cerebras.names",
|
|
94
|
+
"attr": "_BACKEND_STRINGS_MANIFEST",
|
|
95
|
+
"file": "ommlds/minichain/backends/impls/cerebras/names.py",
|
|
96
|
+
"line": 37,
|
|
97
|
+
"value": {
|
|
98
|
+
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
99
|
+
"service_cls_names": [
|
|
100
|
+
"ChatChoicesService",
|
|
101
|
+
"ChatChoicesStreamService"
|
|
102
|
+
],
|
|
103
|
+
"backend_name": "cerebras",
|
|
104
|
+
"model_names": {
|
|
105
|
+
"default": "gpt-oss-120b",
|
|
106
|
+
"aliases": {
|
|
107
|
+
"llama3.1-8b": null,
|
|
108
|
+
"llama-3.3-70b": null,
|
|
109
|
+
"llama3": "llama-3.3-70b",
|
|
110
|
+
"gpt-oss-120b": null,
|
|
111
|
+
"gpt-oss": "gpt-oss-120b",
|
|
112
|
+
"qwen-3-32b": null,
|
|
113
|
+
"qwen3": "qwen-3-32b",
|
|
114
|
+
"qwen-3-235b-a22b-instruct-2507": null,
|
|
115
|
+
"qwen-3-235b": "qwen-3-235b-a22b-instruct-2507",
|
|
116
|
+
"zai-glm-4.7": null,
|
|
117
|
+
"glm": "zai-glm-4.7"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"module": ".minichain.backends.impls.cerebras.stream",
|
|
125
|
+
"attr": null,
|
|
126
|
+
"file": "ommlds/minichain/backends/impls/cerebras/stream.py",
|
|
127
|
+
"line": 33,
|
|
128
|
+
"value": {
|
|
129
|
+
"!.minichain.registries.manifests.RegistryManifest": {
|
|
130
|
+
"module": "ommlds.minichain.backends.impls.cerebras.stream",
|
|
131
|
+
"attr": "CerebrasChatChoicesStreamService",
|
|
132
|
+
"name": "cerebras",
|
|
133
|
+
"aliases": null,
|
|
134
|
+
"type": "ChatChoicesStreamService"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
77
138
|
{
|
|
78
139
|
"module": ".minichain.backends.impls.duckduckgo.search",
|
|
79
140
|
"attr": null,
|
|
80
141
|
"file": "ommlds/minichain/backends/impls/duckduckgo/search.py",
|
|
81
|
-
"line":
|
|
142
|
+
"line": 17,
|
|
82
143
|
"value": {
|
|
83
144
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
84
145
|
"module": "ommlds.minichain.backends.impls.duckduckgo.search",
|
|
@@ -156,7 +217,7 @@
|
|
|
156
217
|
"module": ".minichain.backends.impls.google.names",
|
|
157
218
|
"attr": "_BACKEND_STRINGS_MANIFEST",
|
|
158
219
|
"file": "ommlds/minichain/backends/impls/google/names.py",
|
|
159
|
-
"line":
|
|
220
|
+
"line": 38,
|
|
160
221
|
"value": {
|
|
161
222
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
162
223
|
"service_cls_names": [
|
|
@@ -167,6 +228,10 @@
|
|
|
167
228
|
"model_names": {
|
|
168
229
|
"default": "gemini",
|
|
169
230
|
"aliases": {
|
|
231
|
+
"gemini-3-pro-preview": null,
|
|
232
|
+
"gemini-3-pro": "gemini-3-pro-preview",
|
|
233
|
+
"gemini-3-flash-preview": null,
|
|
234
|
+
"gemini-3-flash": "gemini-3-flash-preview",
|
|
170
235
|
"gemini-2.5-pro": null,
|
|
171
236
|
"gemini-2.5-flash": null,
|
|
172
237
|
"gemini-2.5-flash-lite": null,
|
|
@@ -198,7 +263,7 @@
|
|
|
198
263
|
"module": ".minichain.backends.impls.groq.chat",
|
|
199
264
|
"attr": null,
|
|
200
265
|
"file": "ommlds/minichain/backends/impls/groq/chat.py",
|
|
201
|
-
"line":
|
|
266
|
+
"line": 27,
|
|
202
267
|
"value": {
|
|
203
268
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
204
269
|
"module": "ommlds.minichain.backends.impls.groq.chat",
|
|
@@ -237,7 +302,7 @@
|
|
|
237
302
|
"module": ".minichain.backends.impls.groq.stream",
|
|
238
303
|
"attr": null,
|
|
239
304
|
"file": "ommlds/minichain/backends/impls/groq/stream.py",
|
|
240
|
-
"line":
|
|
305
|
+
"line": 34,
|
|
241
306
|
"value": {
|
|
242
307
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
243
308
|
"module": "ommlds.minichain.backends.impls.groq.stream",
|
|
@@ -252,7 +317,7 @@
|
|
|
252
317
|
"module": ".minichain.backends.impls.huggingface.repos",
|
|
253
318
|
"attr": null,
|
|
254
319
|
"file": "ommlds/minichain/backends/impls/huggingface/repos.py",
|
|
255
|
-
"line":
|
|
320
|
+
"line": 20,
|
|
256
321
|
"value": {
|
|
257
322
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
258
323
|
"module": "ommlds.minichain.backends.impls.huggingface.repos",
|
|
@@ -269,7 +334,7 @@
|
|
|
269
334
|
"module": ".minichain.backends.impls.llamacpp.chat",
|
|
270
335
|
"attr": null,
|
|
271
336
|
"file": "ommlds/minichain/backends/impls/llamacpp/chat.py",
|
|
272
|
-
"line":
|
|
337
|
+
"line": 36,
|
|
273
338
|
"value": {
|
|
274
339
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
275
340
|
"service_cls_names": [
|
|
@@ -284,7 +349,7 @@
|
|
|
284
349
|
"module": ".minichain.backends.impls.llamacpp.chat",
|
|
285
350
|
"attr": null,
|
|
286
351
|
"file": "ommlds/minichain/backends/impls/llamacpp/chat.py",
|
|
287
|
-
"line":
|
|
352
|
+
"line": 45,
|
|
288
353
|
"value": {
|
|
289
354
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
290
355
|
"module": "ommlds.minichain.backends.impls.llamacpp.chat",
|
|
@@ -299,7 +364,7 @@
|
|
|
299
364
|
"module": ".minichain.backends.impls.llamacpp.completion",
|
|
300
365
|
"attr": null,
|
|
301
366
|
"file": "ommlds/minichain/backends/impls/llamacpp/completion.py",
|
|
302
|
-
"line":
|
|
367
|
+
"line": 28,
|
|
303
368
|
"value": {
|
|
304
369
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
305
370
|
"module": "ommlds.minichain.backends.impls.llamacpp.completion",
|
|
@@ -314,7 +379,7 @@
|
|
|
314
379
|
"module": ".minichain.backends.impls.llamacpp.stream",
|
|
315
380
|
"attr": null,
|
|
316
381
|
"file": "ommlds/minichain/backends/impls/llamacpp/stream.py",
|
|
317
|
-
"line":
|
|
382
|
+
"line": 35,
|
|
318
383
|
"value": {
|
|
319
384
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
320
385
|
"service_cls_names": [
|
|
@@ -329,7 +394,7 @@
|
|
|
329
394
|
"module": ".minichain.backends.impls.llamacpp.stream",
|
|
330
395
|
"attr": null,
|
|
331
396
|
"file": "ommlds/minichain/backends/impls/llamacpp/stream.py",
|
|
332
|
-
"line":
|
|
397
|
+
"line": 44,
|
|
333
398
|
"value": {
|
|
334
399
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
335
400
|
"module": "ommlds.minichain.backends.impls.llamacpp.stream",
|
|
@@ -359,7 +424,7 @@
|
|
|
359
424
|
"module": ".minichain.backends.impls.mlx.chat",
|
|
360
425
|
"attr": null,
|
|
361
426
|
"file": "ommlds/minichain/backends/impls/mlx/chat.py",
|
|
362
|
-
"line":
|
|
427
|
+
"line": 42,
|
|
363
428
|
"value": {
|
|
364
429
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
365
430
|
"service_cls_names": [
|
|
@@ -375,7 +440,7 @@
|
|
|
375
440
|
"module": ".minichain.backends.impls.mlx.chat",
|
|
376
441
|
"attr": null,
|
|
377
442
|
"file": "ommlds/minichain/backends/impls/mlx/chat.py",
|
|
378
|
-
"line":
|
|
443
|
+
"line": 136,
|
|
379
444
|
"value": {
|
|
380
445
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
381
446
|
"module": "ommlds.minichain.backends.impls.mlx.chat",
|
|
@@ -390,7 +455,7 @@
|
|
|
390
455
|
"module": ".minichain.backends.impls.mlx.chat",
|
|
391
456
|
"attr": null,
|
|
392
457
|
"file": "ommlds/minichain/backends/impls/mlx/chat.py",
|
|
393
|
-
"line":
|
|
458
|
+
"line": 167,
|
|
394
459
|
"value": {
|
|
395
460
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
396
461
|
"module": "ommlds.minichain.backends.impls.mlx.chat",
|
|
@@ -405,7 +470,7 @@
|
|
|
405
470
|
"module": ".minichain.backends.impls.ollama.chat",
|
|
406
471
|
"attr": null,
|
|
407
472
|
"file": "ommlds/minichain/backends/impls/ollama/chat.py",
|
|
408
|
-
"line":
|
|
473
|
+
"line": 61,
|
|
409
474
|
"value": {
|
|
410
475
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
411
476
|
"service_cls_names": [
|
|
@@ -421,7 +486,7 @@
|
|
|
421
486
|
"module": ".minichain.backends.impls.ollama.chat",
|
|
422
487
|
"attr": null,
|
|
423
488
|
"file": "ommlds/minichain/backends/impls/ollama/chat.py",
|
|
424
|
-
"line":
|
|
489
|
+
"line": 94,
|
|
425
490
|
"value": {
|
|
426
491
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
427
492
|
"module": "ommlds.minichain.backends.impls.ollama.chat",
|
|
@@ -436,7 +501,7 @@
|
|
|
436
501
|
"module": ".minichain.backends.impls.ollama.chat",
|
|
437
502
|
"attr": null,
|
|
438
503
|
"file": "ommlds/minichain/backends/impls/ollama/chat.py",
|
|
439
|
-
"line":
|
|
504
|
+
"line": 137,
|
|
440
505
|
"value": {
|
|
441
506
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
442
507
|
"module": "ommlds.minichain.backends.impls.ollama.chat",
|
|
@@ -496,7 +561,7 @@
|
|
|
496
561
|
"module": ".minichain.backends.impls.openai.names",
|
|
497
562
|
"attr": "_CHAT_BACKEND_STRINGS_MANIFEST",
|
|
498
563
|
"file": "ommlds/minichain/backends/impls/openai/names.py",
|
|
499
|
-
"line":
|
|
564
|
+
"line": 67,
|
|
500
565
|
"value": {
|
|
501
566
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
502
567
|
"service_cls_names": [
|
|
@@ -521,6 +586,7 @@
|
|
|
521
586
|
"gpt-5-mini": null,
|
|
522
587
|
"gpt-5-nano": null,
|
|
523
588
|
"gpt-5.1": null,
|
|
589
|
+
"gpt-5.2": null,
|
|
524
590
|
"gpt3.5-turbo": "gpt-3.5-turbo",
|
|
525
591
|
"gpt3.5-turbo-instruct": "gpt-3.5-turbo-instruct",
|
|
526
592
|
"gpt4": "gpt-4",
|
|
@@ -535,7 +601,8 @@
|
|
|
535
601
|
"gpt5-mini": "gpt-5-mini",
|
|
536
602
|
"gpt5-nano": "gpt-5-nano",
|
|
537
603
|
"gpt5.1": "gpt-5.1",
|
|
538
|
-
"
|
|
604
|
+
"gpt5.2": "gpt-5.2",
|
|
605
|
+
"gpt": "gpt-5.2",
|
|
539
606
|
"gpt-mini": "gpt-5-mini",
|
|
540
607
|
"o3": null,
|
|
541
608
|
"o3-mini": null,
|
|
@@ -550,7 +617,7 @@
|
|
|
550
617
|
"module": ".minichain.backends.impls.openai.names",
|
|
551
618
|
"attr": "_COMPLETION_BACKEND_STRINGS_MANIFEST",
|
|
552
619
|
"file": "ommlds/minichain/backends/impls/openai/names.py",
|
|
553
|
-
"line":
|
|
620
|
+
"line": 81,
|
|
554
621
|
"value": {
|
|
555
622
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
556
623
|
"service_cls_names": [
|
|
@@ -565,7 +632,7 @@
|
|
|
565
632
|
"module": ".minichain.backends.impls.openai.names",
|
|
566
633
|
"attr": "_EMBEDDING_BACKEND_STRINGS_MANIFEST",
|
|
567
634
|
"file": "ommlds/minichain/backends/impls/openai/names.py",
|
|
568
|
-
"line":
|
|
635
|
+
"line": 93,
|
|
569
636
|
"value": {
|
|
570
637
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
571
638
|
"service_cls_names": [
|
|
@@ -580,7 +647,7 @@
|
|
|
580
647
|
"module": ".minichain.backends.impls.openai.stream",
|
|
581
648
|
"attr": null,
|
|
582
649
|
"file": "ommlds/minichain/backends/impls/openai/stream.py",
|
|
583
|
-
"line":
|
|
650
|
+
"line": 45,
|
|
584
651
|
"value": {
|
|
585
652
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
586
653
|
"module": "ommlds.minichain.backends.impls.openai.stream",
|
|
@@ -610,7 +677,7 @@
|
|
|
610
677
|
"module": ".minichain.backends.impls.tinygrad.chat",
|
|
611
678
|
"attr": null,
|
|
612
679
|
"file": "ommlds/minichain/backends/impls/tinygrad/chat.py",
|
|
613
|
-
"line":
|
|
680
|
+
"line": 118,
|
|
614
681
|
"value": {
|
|
615
682
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
616
683
|
"module": "ommlds.minichain.backends.impls.tinygrad.chat",
|
|
@@ -625,7 +692,7 @@
|
|
|
625
692
|
"module": ".minichain.backends.impls.tinygrad.chat",
|
|
626
693
|
"attr": null,
|
|
627
694
|
"file": "ommlds/minichain/backends/impls/tinygrad/chat.py",
|
|
628
|
-
"line":
|
|
695
|
+
"line": 138,
|
|
629
696
|
"value": {
|
|
630
697
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
631
698
|
"module": "ommlds.minichain.backends.impls.tinygrad.chat",
|
|
@@ -640,7 +707,7 @@
|
|
|
640
707
|
"module": ".minichain.backends.impls.tinygrad.chat",
|
|
641
708
|
"attr": null,
|
|
642
709
|
"file": "ommlds/minichain/backends/impls/tinygrad/chat.py",
|
|
643
|
-
"line":
|
|
710
|
+
"line": 169,
|
|
644
711
|
"value": {
|
|
645
712
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
646
713
|
"service_cls_names": [
|
|
@@ -656,7 +723,7 @@
|
|
|
656
723
|
"module": ".minichain.backends.impls.transformers.sentence",
|
|
657
724
|
"attr": null,
|
|
658
725
|
"file": "ommlds/minichain/backends/impls/transformers/sentence.py",
|
|
659
|
-
"line":
|
|
726
|
+
"line": 22,
|
|
660
727
|
"value": {
|
|
661
728
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
662
729
|
"module": "ommlds.minichain.backends.impls.transformers.sentence",
|
|
@@ -673,7 +740,7 @@
|
|
|
673
740
|
"module": ".minichain.backends.impls.transformers.transformers",
|
|
674
741
|
"attr": null,
|
|
675
742
|
"file": "ommlds/minichain/backends/impls/transformers/transformers.py",
|
|
676
|
-
"line":
|
|
743
|
+
"line": 52,
|
|
677
744
|
"value": {
|
|
678
745
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
679
746
|
"service_cls_names": [
|
|
@@ -689,7 +756,7 @@
|
|
|
689
756
|
"module": ".minichain.backends.impls.transformers.transformers",
|
|
690
757
|
"attr": null,
|
|
691
758
|
"file": "ommlds/minichain/backends/impls/transformers/transformers.py",
|
|
692
|
-
"line":
|
|
759
|
+
"line": 68,
|
|
693
760
|
"value": {
|
|
694
761
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
695
762
|
"module": "ommlds.minichain.backends.impls.transformers.transformers",
|
|
@@ -706,7 +773,7 @@
|
|
|
706
773
|
"module": ".minichain.backends.impls.transformers.transformers",
|
|
707
774
|
"attr": null,
|
|
708
775
|
"file": "ommlds/minichain/backends/impls/transformers/transformers.py",
|
|
709
|
-
"line":
|
|
776
|
+
"line": 199,
|
|
710
777
|
"value": {
|
|
711
778
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
712
779
|
"module": "ommlds.minichain.backends.impls.transformers.transformers",
|
|
@@ -723,7 +790,7 @@
|
|
|
723
790
|
"module": ".minichain.backends.impls.transformers.transformers",
|
|
724
791
|
"attr": null,
|
|
725
792
|
"file": "ommlds/minichain/backends/impls/transformers/transformers.py",
|
|
726
|
-
"line":
|
|
793
|
+
"line": 229,
|
|
727
794
|
"value": {
|
|
728
795
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
729
796
|
"module": "ommlds.minichain.backends.impls.transformers.transformers",
|
|
@@ -873,7 +940,7 @@
|
|
|
873
940
|
"module": ".tools.git",
|
|
874
941
|
"attr": null,
|
|
875
942
|
"file": "ommlds/tools/git.py",
|
|
876
|
-
"line":
|
|
943
|
+
"line": 196,
|
|
877
944
|
"value": {
|
|
878
945
|
"!omdev.tools.git.messages.GitMessageGeneratorManifest": {
|
|
879
946
|
"module": "ommlds.tools.git",
|
ommlds/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
ML / AI code.
|
|
4
|
+
|
|
5
|
+
# Notable packages
|
|
6
|
+
|
|
7
|
+
- **[cli](https://github.com/wrmsr/omlish/blob/master/ommlds/cli)** (cli: `om mc`) - A general purpose ai cli, inspired
|
|
8
|
+
and in the spirit of [simonw's](https://github.com/simonw/llm) and others.
|
|
9
|
+
|
|
10
|
+
- **[minichain](https://github.com/wrmsr/omlish/blob/master/ommlds/minichain)** - *A thing that does the things
|
|
11
|
+
langchain people use langchain to do.*
|
ommlds/__about__.py
CHANGED
|
@@ -8,18 +8,21 @@ class Project(ProjectBase):
|
|
|
8
8
|
description = 'ommlds'
|
|
9
9
|
|
|
10
10
|
dependencies = [
|
|
11
|
-
f'omdev == {__version__}',
|
|
12
11
|
f'omlish == {__version__}',
|
|
13
12
|
]
|
|
14
13
|
|
|
15
14
|
optional_dependencies = {
|
|
15
|
+
'omdev': [
|
|
16
|
+
f'omdev == {__version__}',
|
|
17
|
+
],
|
|
18
|
+
|
|
16
19
|
'backends': [
|
|
17
|
-
# 'diffusers ~= 0.
|
|
20
|
+
# 'diffusers ~= 0.36',
|
|
18
21
|
|
|
19
22
|
'llama-cpp-python ~= 0.3',
|
|
20
23
|
|
|
21
24
|
'mlx ~= 0.30; sys_platform == "darwin"',
|
|
22
|
-
'mlx-lm ~= 0.
|
|
25
|
+
'mlx-lm ~= 0.29; sys_platform == "darwin"',
|
|
23
26
|
|
|
24
27
|
# 'sentencepiece ~= 0.2', # FIXME: https://github.com/google/sentencepiece/issues/1121
|
|
25
28
|
|
|
@@ -33,7 +36,7 @@ class Project(ProjectBase):
|
|
|
33
36
|
'torch ~= 2.9',
|
|
34
37
|
|
|
35
38
|
'transformers ~= 4.57',
|
|
36
|
-
'sentence-transformers ~= 5.
|
|
39
|
+
'sentence-transformers ~= 5.2',
|
|
37
40
|
],
|
|
38
41
|
|
|
39
42
|
'huggingface': [
|
|
@@ -56,11 +59,11 @@ class Project(ProjectBase):
|
|
|
56
59
|
],
|
|
57
60
|
|
|
58
61
|
'pillow': [
|
|
59
|
-
'pillow ~= 12.
|
|
62
|
+
'pillow ~= 12.1',
|
|
60
63
|
],
|
|
61
64
|
|
|
62
65
|
'search': [
|
|
63
|
-
'ddgs ~= 9.
|
|
66
|
+
'ddgs ~= 9.10',
|
|
64
67
|
],
|
|
65
68
|
|
|
66
69
|
'wiki': [
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
from omlish import dataclasses as _dc # noqa
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
_dc.init_package(
|
|
5
|
+
globals(),
|
|
6
|
+
codegen=True,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
##
|
|
11
|
+
|
|
12
|
+
|
|
1
13
|
from . import types # noqa
|
|
2
14
|
|
|
3
15
|
|
|
4
16
|
##
|
|
5
17
|
|
|
6
18
|
|
|
7
|
-
from omlish import marshal as _msh
|
|
19
|
+
from omlish import marshal as _msh # noqa
|
|
8
20
|
|
|
9
21
|
_msh.register_global_module_import('._marshal', __package__)
|